.home-hero{
  background:
    radial-gradient(1200px 240px at 5% -20%, rgba(213, 175, 89, 0.16), transparent 60%),
    radial-gradient(1000px 300px at 95% 120%, rgba(112, 152, 255, 0.12), transparent 60%),
    var(--card);
}

:root{
  --news-title-color: #c8b37e;
  --news-body-color: #f7f1e6;
  /* TEST: card-cover ratio. Roll back to 16 / 9 if needed. */
  --news-card-cover-ratio: 3 / 2;
}

.home-hero-kicker{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}

.home-hero-title{
  margin: 8px 0 0;
  font-size: clamp(12px, 2.5vw, 19px);
  line-height: 1.08;
}

.home-hero-text{
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--muted);
}

.home-section-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.news-grid{
  --news-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--news-columns), minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.news-card{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.news-card:hover{
  transform: translateY(-2px);
  border-color: rgba(213, 175, 89, 0.5);
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

.news-card-cover-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: var(--news-card-cover-ratio);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.news-card-cover{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-cover-fallback{
  background:
    linear-gradient(140deg, rgba(213,175,89,0.28), rgba(91,123,214,0.22));
}

.news-card-body{
  display: grid;
  gap: 6px;
  padding: 12px;
}

.news-card-ribbon{
  position: absolute;
  top: 14px;
  right: -56px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  padding: 6px 0;
  border-radius: 0;
  border: 1px solid rgba(255,215,64,0.82);
  border-left: 0;
  border-right: 0;
  background: linear-gradient(180deg, rgba(22, 29, 62, 0.97), rgba(11, 15, 36, 0.97));
  color: #ffd85c;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(39deg);
  box-shadow: 0 8px 18px rgba(0,0,0,0.42);
  pointer-events: none;
}

.news-card-title{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  white-space: pre-line;
  color: var(--news-title-color);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.news-card-date{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.news-card-excerpt{
  margin: 0;
  color: var(--news-body-color);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-article{
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.news-article-blocks{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 16px;
  width: 100%;
}

.news-article-cover{
  width: 100%;
  display: block;
  border-radius: 12px;
  margin-bottom: 14px;
  object-fit: cover;
  max-height: 500px;
}

.news-article-header{
  margin-bottom: 10px;
}

.news-article-title{
  margin: 0;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.1;
  white-space: pre-line;
  color: var(--news-title-color);
}

.news-block-heading,
.news-block-subheading{
  margin: 16px 0 8px;
  color: var(--news-title-color);
}

.news-block-text{
  margin: 10px 0;
  line-height: 1.75;
  color: var(--news-body-color);
}

.news-block-text p{
  margin: 0 0 10px;
}

.news-block-text p:last-child{
  margin-bottom: 0;
}

.news-block-text h2,
.news-block-text h3,
.news-block-text h4,
.news-block-text h5,
.news-block-text h6{
  margin: 18px 0 8px;
  line-height: 1.3;
  color: var(--news-title-color);
}

.news-block-text ul,
.news-block-text ol{
  margin: 8px 0 10px;
  padding-left: 22px;
}

.news-block-text blockquote{
  margin: 12px 0;
  padding: 8px 12px;
  border-left: 3px solid rgba(200,179,126,0.7);
  background: rgba(200,179,126,0.08);
}

.news-block-text pre{
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #e7ecff;
  overflow: auto;
  line-height: 1.45;
}

.news-block-text code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.news-block-text hr{
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  margin: 14px 0;
}

.news-block-text figure{
  margin: 12px 0;
}

.news-block-text figcaption{
  margin-top: 6px;
  color: rgba(247, 241, 230, 0.78);
  font-size: 0.92em;
}

.news-block-text img{
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.news-block-text table{
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
}

.news-block-text th,
.news-block-text td{
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.news-block-text th{
  background: rgba(200,179,126,0.12);
  color: var(--news-title-color);
}

.news-block-figure{
  margin: 14px 0;
}

.news-block-span-1{ grid-column: span 1; }
.news-block-span-2{ grid-column: span 2; }
.news-block-span-3{ grid-column: span 3; }
.news-block-span-4{ grid-column: span 4; }
.news-block-span-5{ grid-column: span 5; }
.news-block-span-6{ grid-column: 1 / -1; }

.news-block-line-break{
  grid-column: 1 / -1;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
}

.news-block-spacer{
  min-height: 14px;
}

.news-block-list{
  margin: 10px 0;
  padding-left: 22px;
  list-style: disc outside;
  line-height: 1.7;
  color: var(--news-body-color);
}

.news-block-list li{
  display: list-item;
  margin: 0 0 4px;
}

.news-key-takeaways{
  margin: 0 0 14px;
  padding: 12px;
  width: 100%;
  max-width: 60ch;
}

.news-key-takeaways-title{
  margin: 0 0 10px;
}

.news-key-takeaways-list{
  margin: 0;
}

.news-faq-section{
  margin-top: 14px;
  padding: 10px 12px;
  width: 100%;
  max-width: 74ch;
}

.news-faq-title{
  margin: 0 0 8px;
}

.news-faq-items{
  display: grid;
  gap: 8px;
}

.news-faq-item{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 8px;
}

.news-faq-item:first-child{
  border-top: 0;
  padding-top: 0;
}

.news-faq-question{
  margin: 0 0 4px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.3;
}

.news-faq-answer{
  margin: 0;
  line-height: 1.62;
  color: rgba(247, 241, 230, 0.92);
}

.news-saved-item{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
}

.news-saved-item-image{
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  flex: 0 0 auto;
}

.news-saved-item-body{
  min-width: 0;
  flex: 1 1 auto;
}

.news-saved-item-type{
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-saved-item-title{
  margin: 2px 0 0;
  font-size: 18px;
}

.news-saved-item-title a{
  color: var(--news-title-color);
  text-decoration: none;
}

.news-saved-item-title a:hover{
  text-decoration: underline;
}

.news-saved-item-subtitle{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.news-saved-item-text{
  margin-top: 8px;
  color: var(--news-body-color);
}

.news-saved-item-code-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.news-saved-item-code{
  display: inline-block;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.news-saved-item-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.news-saved-item-action{
  min-height: 26px;
  font-size: 12px;
  padding: 5px 10px;
}

.news-saved-item-embed{
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #e7ecff;
}

.news-saved-item-embed .news-saved-item-type,
.news-saved-item-embed .news-saved-item-title,
.news-saved-item-embed .news-saved-item-subtitle,
.news-saved-item-embed .news-saved-item-text{
  color: #e7ecff;
}

.news-saved-item-embed a{
  color: #f1dfb1;
}

.news-saved-item-embed.is-mastery-small-card{
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.news-saved-item-embed.is-mastery-small-card .news-saved-item-frame{
  border: 0;
  border-radius: 0;
  background: transparent;
}

.news-saved-item-frame{
  width: 100%;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.news-saved-item-frame iframe{
  display: block;
  width: 100%;
  border: 0;
}

.news-saved-item-frame.is-relic iframe{
  min-height: 420px;
}

.news-saved-item-frame.is-mastery iframe{
  min-height: 560px;
}

.news-saved-item-frame.is-mastery-small iframe{
  min-height: 270px;
}

.news-saved-item-frame.is-blessing iframe{
  min-height: 330px;
}

.news-block-text .news-saved-item-embed,
.news-block-list .news-saved-item-embed,
.news-saved-item-text .news-saved-item-embed{
  display: block;
  margin: 10px 0;
}

.news-block-text .news-saved-item-embed.news-block-span-2,
.news-block-list .news-saved-item-embed.news-block-span-2,
.news-saved-item-text .news-saved-item-embed.news-block-span-2{
  width: min(100%, 33.3333%);
}

.news-block-text .news-saved-item-embed.news-block-span-3,
.news-block-list .news-saved-item-embed.news-block-span-3,
.news-saved-item-text .news-saved-item-embed.news-block-span-3{
  width: min(100%, 50%);
}

.news-block-text .news-saved-item-embed.news-block-span-6,
.news-block-list .news-saved-item-embed.news-block-span-6,
.news-saved-item-text .news-saved-item-embed.news-block-span-6{
  width: 100%;
}

.news-shortcode-champion{
  margin: 10px 0;
}

.news-block-text .news-shortcode-champion,
.news-block-list .news-shortcode-champion,
.news-saved-item-text .news-shortcode-champion{
  display: block;
}

.news-block-text .news-shortcode-champion.news-block-span-1,
.news-block-list .news-shortcode-champion.news-block-span-1,
.news-saved-item-text .news-shortcode-champion.news-block-span-1{
  width: min(100%, 16.6667%);
}

.news-block-text .news-shortcode-champion.news-block-span-2,
.news-block-list .news-shortcode-champion.news-block-span-2,
.news-saved-item-text .news-shortcode-champion.news-block-span-2{
  width: min(100%, 33.3333%);
}

.news-block-text .news-shortcode-champion.news-block-span-3,
.news-block-list .news-shortcode-champion.news-block-span-3,
.news-saved-item-text .news-shortcode-champion.news-block-span-3{
  width: min(100%, 50%);
}

.news-block-text .news-shortcode-champion.news-block-span-6,
.news-block-list .news-shortcode-champion.news-block-span-6,
.news-saved-item-text .news-shortcode-champion.news-block-span-6{
  width: 100%;
}

.news-promocode-card{
  margin: 0;
  padding: 12px;
}

.news-promocode-meta{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.news-promocode-card .promo-card-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}

.news-promocode-card .promo-card-content{
  grid-column: 1 / 2;
  min-width: 0;
}

.news-promocode-rewards{
  margin-top: 10px;
  color: var(--news-body-color);
}

.news-promocode-list{
  margin: 8px 0 0;
  padding-left: 18px;
}

.news-promocode-list li{
  margin: 0 0 4px;
}

.news-promocode-card .promo-card-redeem{
  grid-column: 2 / 3;
  width: 100%;
}

.news-promocode-card .promo-redeem-code{
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 0;
  border: 2px solid #3b2d1a;
  background: #e3dec8;
  color: #1f1d16;
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.news-promocode-card .promo-copy-btn{
  margin-top: 6px;
  border: none;
  background: none;
  color: #c8b37e;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.news-promocode-card .promo-copy-btn.is-copied{
  color: #c8b37e;
  font-weight: 700;
}

.news-promocode-card .promo-copy-btn:hover{
  color: #e0ca90;
}

.news-promocode-card .promo-redeem-wrap{
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.news-promocode-card .promo-redeem-btn{
  position: relative;
  display: block;
  width: min(190px, 100%);
  aspect-ratio: 3.48 / 1;
  text-decoration: none;
  color: #efe8cf;
  background-image: url('/assets/img/site/btn.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.news-promocode-card .promo-redeem-btn span{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 1.5vw, 13px);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65);
}

.news-promocode-card .promo-redeem-btn:hover{
  filter: brightness(1.05);
}

.news-block-image{
  width: 100%;
  border-radius: 12px;
  display: block;
}

.news-pagination{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
}

.news-pagination-btn{
  min-height:30px;
  padding:5px 10px;
  border-radius:8px;
  font-size:12px;
  line-height:1.4px;
  white-space:nowrap;
  border:1px solid rgba(199, 167, 109, 0.56);
  background:linear-gradient(180deg, rgba(199, 167, 109, 0.36), rgba(199, 167, 109, 0.12));
  color:#f7e9c4;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.news-pagination-btn:hover{
  background:linear-gradient(180deg, rgba(215, 184, 124, 0.48), rgba(199, 167, 109, 0.16));
}

.news-pagination-current{
  color:#f1dfb1;
  font-size:12px;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

@media (max-width: 920px){
  .news-promocode-card .promo-card-layout{
    grid-template-columns: 1fr;
  }
  .news-promocode-card .promo-card-content,
  .news-promocode-card .promo-card-redeem{
    grid-column: 1;
  }
}

@media (max-width: 980px){
  .news-grid{ --news-columns: 2 !important; }
}

@media (max-width: 640px){
  .news-grid{ --news-columns: 1 !important; }
  .news-article-blocks{
    grid-template-columns: 1fr;
  }
  .news-block-span-1,
  .news-block-span-2,
  .news-block-span-3,
  .news-block-span-4,
  .news-block-span-5,
  .news-block-span-6{
    grid-column: 1 / -1;
  }
  .news-key-takeaways,
  .news-faq-section{
    max-width: 100%;
  }
}

@media (min-width: 980px){
  .news-key-takeaways{
    width: 50%;
  }
}

.news-wysiwyg{
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.news-wysiwyg-toolbar{
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.news-wysiwyg-toolbar button{
  padding: 6px 10px;
  border-radius: 8px;
}

.news-wysiwyg-editor{
  min-height: 76px;
  padding: 10px;
  outline: none;
  line-height: 1.5;
  color: var(--news-body-color);
}

.news-wysiwyg-editor p{
  margin: 0 0 8px;
}

.news-wysiwyg-editor blockquote{
  margin: 10px 0;
  padding: 6px 10px;
  border-left: 3px solid rgba(200,179,126,0.7);
  background: rgba(200,179,126,0.08);
}

.news-wysiwyg-editor pre{
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  overflow: auto;
}

.news-wysiwyg-editor table{
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.news-wysiwyg-editor th,
.news-wysiwyg-editor td{
  border: 1px solid rgba(255,255,255,0.16);
  padding: 6px 8px;
}

.news-wysiwyg-editor img{
  max-width: 100%;
  height: auto;
}

.news-wysiwyg-large .news-wysiwyg-editor{
  min-height: 180px;
}

.news-color-palette{
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.news-color-swatch{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0;
}

.news-color-custom{
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.news-color-custom input{
  width: 90px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.news-color-custom button{
  padding: 6px 10px;
  border-radius: 8px;
}

.news-link-modal{
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.news-link-modal[hidden]{ display: none; }

.news-link-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.74);
  backdrop-filter: blur(2px);
}

.news-link-card{
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  border-radius: 12px;
  border: 1px solid rgba(216, 174, 86, 0.32);
  background:
    radial-gradient(520px 170px at 0% 0%, rgba(216, 174, 86, 0.14), transparent 62%),
    radial-gradient(460px 180px at 100% 0%, rgba(124, 232, 255, 0.08), transparent 62%),
    rgba(12, 18, 33, 0.98);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.news-link-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.news-link-head strong{
  color: #f7f1e6;
  font-size: 20px;
  line-height: 1.1;
}

.news-link-form{
  display: grid;
  gap: 10px;
}

.news-link-label{
  display: grid;
  gap: 6px;
}

.news-link-label input{
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(199, 167, 109, 0.42);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.95), rgba(8, 14, 28, 0.78));
  color: #f7f1e6;
  padding: 0 12px;
}

.news-link-label input::placeholder{
  color: rgba(215, 185, 122, 0.66);
}

.news-link-label input:focus{
  outline: none;
  border-color: rgba(215, 184, 124, 0.75);
  box-shadow: 0 0 0 2px rgba(199, 167, 109, 0.22);
}

.news-link-suggestions{
  max-height: 220px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6, 12, 28, 0.72);
  padding: 6px;
  display: grid;
  gap: 5px;
}

.news-link-suggestion{
  width: 100%;
  text-align: left;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #f7f1e6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  padding: 8px 10px;
}

.news-link-suggestion:hover{
  border-color: rgba(216, 174, 86, 0.55);
  background: rgba(216, 174, 86, 0.14);
}

.news-link-suggest-empty{
  margin: 4px;
  color: rgba(231, 236, 255, 0.72);
  font-size: 13px;
}

.news-link-error{
  margin: 0;
  color: #ffb4b4;
  font-size: 13px;
}

.news-link-actions{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Home/frontpage default text color rollout. */
.home-hero,
.home-section-head h2{
  color: var(--text-global-primary);
}
