/* Each home chapter has its own setting. Keep this after ancient-ui.css. */
#news.news-section,
#guide.guide-section,
#weapons.weapons-section {
  isolation: isolate;
  background-image: none;
  box-shadow: inset 0 1px #bd9b6238, inset 0 -1px #090e0ed9;
}

/* Expose the roofline above each chapter instead of centering paper over it. */
#news > .section-container,
#guide > .section-container,
#weapons > .section-container {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(150px, 23svh, 280px);
}

#news .section-heading,
#guide .section-heading,
#weapons .section-heading {
  flex: 0 0 auto;
  padding-top: 0 !important;
  padding-bottom: clamp(30px, 4svh, 50px);
}

/* Wind and news: wet blue stone, a quiet post station and amber lanterns. */
#news.news-section {
  background-color: #10212a;
}

#news.news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
  background:
    linear-gradient(180deg, #07131b4d, #0b1d2410 24%, #07131b0d 65%, #08151e9c),
    linear-gradient(90deg, #081b2421, transparent 28%, transparent 72%, #081b2433),
    url('../images/section-news.webp?v=20261111-14') center 48% / cover no-repeat;
}

#news .section-heading h2 {
  color: #f0d4a0;
  text-shadow: 0 2px 3px #071016, 0 4px 18px #05121dd9;
}

#news .section-heading > p:last-child {
  color: #e0cfad;
  text-shadow: 0 2px 5px #07131b;
}

#news .news-promo {
  border-color: #ad905fbd;
  box-shadow: 0 14px 35px #020b1266, inset 0 0 0 1px #21180d;
}

#news .news-promo img { object-position: 50% center; }

/* Scrolls: warm timber and lamplight. Replace every old landscape layer. */
#guide.guide-section {
  background-color: #211a12;
}

#guide .guide-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  background:
    linear-gradient(180deg, #1b110d38, #20170d0a 29%, #1c140c1a 66%, #110f0ac2),
    linear-gradient(90deg, #140e081a, transparent 24%, transparent 75%, #140e082e),
    url('../images/section-guide.webp?v=20261111-14') center 47% / cover no-repeat;
}

#guide .guide-landscape::before,
#guide .guide-landscape::after,
#weapons .weapon-landscape::before,
#weapons .weapon-landscape::after {
  content: none;
  display: none;
  background: none;
  box-shadow: none;
}

#guide .section-heading h2 {
  color: #f1d29a;
  text-shadow: 0 2px 3px #1e130c, 0 4px 18px #171006e6;
}

#guide .section-heading > p:last-child {
  color: #e2c59b;
  text-shadow: 0 2px 5px #1d140b;
}

#guide .heading-rule {
  background: linear-gradient(90deg, transparent, #a67c3e 22%, #edca80 50%, #a67c3e 78%, transparent);
}

/* Armory: blue-black beams and cold steel, with the weapons kept legible. */
#weapons.weapons-section {
  background-color: #102026;
}

#weapons .weapon-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  background:
    linear-gradient(180deg, #07151d59, #07181d14 27%, #07181d33 70%, #061119b3),
    radial-gradient(ellipse at 53% 61%, #06161c61, transparent 67%),
    url('../images/section-weapons.webp?v=20261111-14') center 48% / cover no-repeat;
}

#weapons .section-heading h2 {
  color: #e6d7b6;
  text-shadow: 0 2px 3px #07151b, 0 4px 18px #06121be6;
}

#weapons .section-heading > p:last-child {
  color: #c7d3ce;
  text-shadow: 0 2px 5px #06151c;
}

#weapons .heading-rule {
  background: linear-gradient(90deg, transparent, #708d8b 22%, #d5c89b 50%, #708d8b 78%, transparent);
}

#weapons .weapon-caption {
  text-shadow: 0 2px 4px #041219, 0 3px 15px #041219cc;
}

#weapons .weapon-caption h3 {
  color: #efdbad;
}

#weapons .weapon-caption p {
  color: #d8d7bf;
}

#weapons .weapon-tabs {
  background: linear-gradient(90deg, #07151ba6, #07151b66);
  box-shadow: inset 0 0 0 1px #9ba89a36, 0 8px 24px #020b102e;
}

#weapons .weapon-tabs button {
  color: #d2d2b5;
  text-shadow: 0 1px 4px #051219;
  border-color: #a2b2a247;
}

#weapons .weapon-tabs button:hover,
#weapons .weapon-tabs button.is-active {
  color: #f1dda9;
  background: linear-gradient(90deg, #9a9b653b, #83978a0d);
}

#weapons .weapons-more {
  color: #e0d1ad;
  text-shadow: 0 2px 5px #06141b;
}

/* Quiet chapter seams; these do not change the content width or paper colors. */
#news.news-section::after,
#guide.guide-section::after,
#weapons.weapons-section::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid #c3a46a45;
  border-bottom: 1px solid #0a0f0b8c;
  box-shadow: inset 0 6px 15px #040b0d33, inset 0 -9px 18px #040b0d38;
}

@media (max-width: 767px) {
  #news.news-section,
  #guide.guide-section,
  #weapons.weapons-section {
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  #news > .section-container,
  #guide > .section-container,
  #weapons > .section-container {
    min-width: 0;
    min-height: 0;
    padding-top: clamp(145px, 24svh, 205px);
  }

  #news .section-heading,
  #guide .section-heading,
  #weapons .section-heading {
    padding-bottom: 30px;
  }

  #news.news-section::before {
    background:
      linear-gradient(180deg, #07131b45, #0b1d240a 23%, #07131b14 71%, #08151e9c),
      url('../images/section-news-mobile.webp?v=20261111-14') center top / cover no-repeat;
  }

  #guide .guide-landscape {
    background:
      linear-gradient(180deg, #1b110d33, #20170d0d 29%, #1c140c1a 72%, #110f0ac2),
      url('../images/section-guide-mobile.webp?v=20261111-14') center top / cover no-repeat;
  }

  #weapons .weapon-landscape {
    background:
      linear-gradient(180deg, #07151d4d, #07181d1a 28%, #07181d45 75%, #061119b3),
      radial-gradient(ellipse at 50% 66%, #06161c52, transparent 72%),
      url('../images/section-weapons-mobile.webp?v=20261111-14') center top / cover no-repeat;
  }

  #weapons .weapon-tabs {
    background: #09181dc2;
  }

  #weapons .weapon-tabs button {
    min-width: 0;
  }

  #weapons .weapon-tabs button.is-active {
    box-shadow: inset 0 -2px #b3b184;
  }
}
