@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Libre+Baskerville:wght@400;700&display=swap');
:root {
  --navy: #081521;
  --navy2: #102435;
  --gold: #d8ac63;
  --red: #a51e25;
  --ink: #292016;
  --paper: #f3e3c5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #07121d;
  color: #eadcc4;
  font:
    15px/1.7 Georgia,
    serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #b52b2b;
}
.wrap {
  width: min(1240px, 94%);
  margin: auto;
}
h1,
h2,
h3,
.brand,
.btn {
  font-family: Cinzel, Georgia, serif;
}
h1,
h2,
h3 {
  line-height: 1.25;
}
.site-header {
  background: #07121bf5;
  border-bottom: 1px solid #7b5936;
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--gold);
  gap: 12px;
  line-height: 1;
}
.brand-mark {
  font-size: 47px;
  color: #bd3430;
}
.brand small,
.brand em {
  display: block;
  letter-spacing: 2px;
  font: 10px Georgia;
}
.brand strong {
  display: block;
  font-size: 35px;
  letter-spacing: 2px;
}
.brand em {
  font-style: normal;
  font-size: 9px;
  margin-top: 5px;
}
nav {
  display: flex;
  align-items: center;
  gap: 23px;
}
nav > a,
.dropdown > a {
  font-size: 13px;
  color: #eee1d1;
}
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0b1a29;
  border: 1px solid #6a4b2c;
  min-width: 185px;
  padding: 8px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: grid;
}
.dropdown-menu a {
  padding: 8px;
  color: #f3e2c7;
}
.btn {
  display: inline-block;
  padding: 12px 25px;
  border: 1px solid var(--gold);
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}
.btn.primary {
  background: linear-gradient(130deg, #6f0b12, #bd2528, #640a10);
  color: #fff2d8;
  border-color: #e26350;
  box-shadow: inset 0 0 0 3px #60121a;
}
.btn.dark {
  background: #142335;
  color: #f7e5c5;
}
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--gold);
  border: 1px solid #7b5936;
  padding: 8px;
}
.hero {
  min-height: 440px;
  background:
    linear-gradient(90deg, #08131ff2 0%, #08131fba 42%, #08131f26 100%),
    radial-gradient(
      ellipse at 79% 46%,
      #b95e3b 0%,
      #4b3654 25%,
      #12243a 57%,
      #091622 80%
    );
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: '♜';
  position: absolute;
  right: 10%;
  bottom: -115px;
  font-size: 460px;
  color: #050b14;
  opacity: 0.6;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 70px 0 80px;
}
.eyebrow {
  color: #efc17b;
  letter-spacing: 4px;
  font-size: 12px;
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 70px);
  margin: 8px 0;
  color: #f6d392;
  text-shadow: 0 3px 10px #000;
}
.hero h1 em {
  font-style: normal;
  color: #fff0d3;
}
.lead {
  font-size: 18px;
  max-width: 550px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}
.server {
  font: 10px Arial;
  color: #ccbda6;
  border: 1px solid #9d7950;
  padding: 6px 14px;
  background: #0815219c;
}
.server button {
  display: block;
  border: 0;
  background: transparent;
  color: #fff;
  font: 15px Georgia;
  cursor: pointer;
  padding: 4px 0;
}
.feature-strip {
  border-top: 1px solid #715030;
  border-bottom: 1px solid #715030;
  background: #0c1b2b;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 0;
}
.features > div {
  color: var(--gold);
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.features b,
.features small {
  display: block;
  font-size: 14px;
  color: #f6e4c6;
}
.features small {
  font-size: 11px;
  color: #b7b8b9;
}
.home-grid {
  display: grid;
  grid-template-columns: 3fr 1.1fr;
  gap: 18px;
  padding-top: 25px;
}
.paper {
  background: linear-gradient(130deg, #f9edda, #e9d1a9);
  color: var(--ink);
  border: 1px solid #b89463;
  box-shadow: 0 5px 25px #0005;
  padding: 26px;
}
.paper h1,
.paper h2 {
  color: #3b2718;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-heading h2,
.journey h2,
.explore h2 {
  font-size: 24px;
  margin: 0 0 20px;
}
.section-heading a,
.readmore {
  color: #912c25;
  font-size: 13px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  border: 1px solid #c9ad84;
  background: #f8ecd9;
}
.news-art {
  height: 125px;
  background: linear-gradient(135deg, #1c3040, #ba7950 52%, #30243b);
  display: grid;
  place-items: center;
  color: #f4c881;
  font-size: 65px;
}
.news-card:nth-child(2) .news-art {
  background: linear-gradient(130deg, #150c15, #a13020, #ec893d);
}
.news-card:nth-child(3) .news-art {
  background: linear-gradient(130deg, #152c47, #7d7894, #d9ac78);
}
.news-card-body {
  padding: 14px;
}
.news-card small,
.meta,
.archive time {
  color: #856746;
  font: 11px Arial;
  letter-spacing: 1px;
}
.news-card h3 {
  font-size: 16px;
  margin: 8px 0;
}
.news-card p {
  font-size: 13px;
  line-height: 1.5;
}
.journey {
  padding: 24px;
}
.journey h2 {
  font-size: 18px;
}
.journey > a {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #c8a87c;
  padding: 10px 0;
}
.journey > a > span:first-child {
  font-size: 25px;
  color: #715035;
}
.journey > a > span:last-child {
  margin-left: auto;
}
.journey b,
.journey small {
  display: block;
  font-size: 13px;
}
.journey small {
  font-size: 11px;
  color: #735d47;
}
.explore {
  padding: 48px 0 65px;
}
.explore h2 {
  color: var(--gold);
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 22px;
}
.explore-grid a {
  min-height: 155px;
  padding: 100px 16px 14px;
  background: linear-gradient(0deg, #07121c, #273f51 70%, #926b5e);
  border: 1px solid #856542;
  font-family: Cinzel;
  color: #f3d18e;
}
.explore-grid a:nth-child(2) {
  background: linear-gradient(0deg, #07121c, #234b41 70%, #85a383);
}
.explore-grid a:nth-child(3) {
  background: linear-gradient(0deg, #07121c, #414657 70%, #c2a48b);
}
.explore-grid a:nth-child(4) {
  background: linear-gradient(0deg, #07121c, #60282e 70%, #ac443b);
}
.explore-grid small {
  display: block;
  color: #f2e6d6;
  font: 12px Georgia;
}
.interior {
  padding: 35px 0 65px;
}
.interior > .paper {
  min-height: 560px;
  padding: 35px;
}
.interior h1 {
  font-size: 36px;
}
.crumb {
  font-size: 12px;
  color: #7d5b3d;
}
.crumb a {
  color: #9a3026;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(190px, 1fr);
  gap: 38px;
}
.article-layout article {
  min-width: 0;
}
.intro {
  font-size: 18px;
}
.side {
  border-left: 1px solid #d0b68f;
  padding-left: 25px;
}
.side a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #d8c09d;
  font-size: 13px;
}
.archive {
  display: grid;
  gap: 18px;
}
.archive article {
  border-bottom: 1px solid #c6a87d;
  padding: 0 0 18px;
}
.archive h2 {
  margin: 5px 0;
  font-size: 21px;
}
.archive a,
.markdown a {
  color: #992e28;
}
.markdown {
  font-size: 16px;
  line-height: 1.8;
}
.markdown h2,
.markdown h3 {
  margin-top: 28px;
}
.markdown code {
  background: #e0caa9;
  padding: 2px 5px;
}
footer {
  background: #040b12;
  border-top: 1px solid #795535;
  color: #cabfae;
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner b {
  font-family: Cinzel;
  color: var(--gold);
}
.footer-inner a {
  margin-left: 18px;
}
.legal {
  font-size: 11px;
  color: #999;
  margin-top: 25px;
}
@media (max-width: 1000px) {
  nav {
    gap: 12px;
  }
  .brand strong {
    font-size: 27px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .journey {
    display: block;
  }
}
@media (max-width: 760px) {
  .header-inner {
    min-height: 70px;
  }
  .menu-toggle {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #081521;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }
  nav.open {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    display: grid;
    background: transparent;
    border: 0;
    padding-left: 15px;
  }
  .hero-inner {
    padding: 50px 0;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-art {
    height: 160px;
  }
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .side {
    border-left: 0;
    border-top: 1px solid #d0b68f;
    padding: 15px 0;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .interior > .paper {
    padding: 20px;
  }
  .footer-inner {
    display: block;
  }
  .footer-inner a {
    margin: 0 14px 0 0;
  }
}
@media (max-width: 440px) {
  .features {
    grid-template-columns: 1fr;
  }
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .brand strong {
    font-size: 24px;
  }
  .hero h1 {
    font-size: 36px;
  }
}

/* Krynn Reborn visual overhaul */
:root {
  --gold: #d7b174;
  --paper: #efe0bf;
  --red: #9b2628;
}
body {
  background: radial-gradient(ellipse at 50% 5%, #203448, #08131e 65%);
  font-size: 16px;
}
.wrap {
  width: min(1320px, 92%);
}
.site-header {
  background: #07111cf7;
  box-shadow: 0 10px 30px #0006;
  position: sticky;
  top: 0;
}
.header-inner {
  min-height: 96px;
}
.brand-mark {
  font-size: 52px;
  text-shadow: 0 0 20px #b53d31;
}
.brand strong {
  font-size: 34px;
}
nav > a,
.dropdown > a {
  letter-spacing: 0.06em;
}
nav > a:hover,
.dropdown > a:hover {
  color: var(--gold);
}
.hero {
  min-height: 620px;
  background:
    linear-gradient(
      90deg,
      #07121ff5 0%,
      #07121fdd 30%,
      #07121f44 68%,
      #07121f1a 100%
    ),
    url('/assets/images/hero-ansalon.svg') center center/cover no-repeat;
  border-bottom: 3px solid #a87a45;
}
.hero:after {
  content: '';
  background: linear-gradient(0deg, #07121e, transparent 42%);
  inset: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
  pointer-events: none;
}
.hero-inner {
  padding: 115px 0 125px;
}
.hero h1 {
  font-size: clamp(46px, 6vw, 88px);
  max-width: 770px;
  letter-spacing: -0.03em;
  line-height: 1.13;
}
.hero h1 em {
  color: #e4c995;
}
.hero .lead {
  font-size: 20px;
  line-height: 1.8;
  color: #eee2cf;
}
.eyebrow {
  font-weight: bold;
  letter-spacing: 0.32em;
}
.btn {
  transition:
    transform 0.2s,
    filter 0.2s;
  letter-spacing: 0.09em;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.18);
  color: white;
}
.feature-strip {
  background: #101f2e;
}
.features {
  padding: 25px 0;
}
.features > div {
  font-size: 30px;
}
.features b {
  font-family: Cinzel, serif;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.home-grid {
  padding-top: 42px;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1.1fr);
  gap: 25px;
}
.paper {
  background-color: #f0e0bd;
  background-image:
    radial-gradient(#9c76421c 0.8px, transparent 0.8px),
    linear-gradient(135deg, #f9edda, #e9d3ae);
  background-size:
    8px 8px,
    auto;
  border: 1px solid #c9a574;
  box-shadow:
    0 10px 35px #0008,
    inset 0 0 0 5px #fff3df55;
  padding: 32px;
}
.paper h1,
.paper h2,
.paper h3 {
  color: #49301f;
}
.section-heading {
  border-bottom: 1px solid #c6a77b;
  margin-bottom: 22px;
}
.section-heading h2 {
  font-size: 29px;
}
.news-card {
  box-shadow: 0 3px 12px #6d4a3026;
  transition: transform 0.2s;
}
.news-card:hover {
  transform: translateY(-4px);
}
.news-art {
  background: url('/assets/images/solamnia.svg') center/cover;
  font-size: 0;
}
.news-card:nth-child(2) .news-art {
  background: url('/assets/images/abyss.svg') center/cover;
}
.news-card:nth-child(3) .news-art {
  background: url('/assets/images/qualinost.svg') center/cover;
}
.news-art {
  height: 175px;
}
.news-card-body {
  padding: 20px;
}
.news-card h3 {
  font-size: 17px;
}
.news-card p {
  color: #5c4936;
}
.journey > a:hover {
  background: #ffffff66;
}
.journey > a > span:first-child {
  color: #a12b2b;
}
.explore {
  padding-top: 65px;
}
.explore h2 {
  font-size: 33px;
}
.explore > p {
  color: #d7c7b2;
}
.explore-grid a {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: url('/assets/images/solamnia.svg') center/cover;
  position: relative;
  font-size: 18px;
  text-shadow: 0 2px 6px #000;
}
.explore-grid a:nth-child(2) {
  background: url('/assets/images/qualinost.svg') center/cover;
}
.explore-grid a:nth-child(3) {
  background: url('/assets/images/thorbardin.svg') center/cover;
}
.explore-grid a:nth-child(4) {
  background: url('/assets/images/abyss.svg') center/cover;
}
.explore-grid a:hover {
  outline: 2px solid var(--gold);
}
.interior {
  padding-top: 55px;
}
.interior > .paper {
  padding: 55px;
  min-height: 650px;
}
.interior h1 {
  font-size: clamp(32px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid #c7a77b;
}
.intro {
  color: #76583d;
}
.article-layout {
  gap: 55px;
}
.side {
  background: #ead6b54d;
  padding: 20px;
  border-left: 2px solid #bb9464;
}
.side h3 {
  margin-top: 0;
}
.markdown {
  max-width: 75ch;
}
.markdown p {
  margin-bottom: 1.3em;
}
@media (max-width: 1000px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 520px;
  }
}
@media (max-width: 760px) {
  .site-header {
    position: relative;
  }
  .hero {
    min-height: 470px;
    background-position: 58% center;
  }
  .hero-inner {
    padding: 70px 0 85px;
  }
  .hero .lead {
    font-size: 17px;
  }
  .interior > .paper {
    padding: 25px;
  }
  .explore-grid a {
    min-height: 170px;
  }
  .home-grid {
    padding-top: 20px;
  }
}

/* Phase two: cohesive parchment interior system */
.interior-banner {
  background:
    linear-gradient(90deg, #081521ee, #08152185),
    url('/assets/images/hero-ansalon.svg') center 48% / cover;
  min-height: 210px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #b88b4e;
}
.interior-banner > .wrap {
  padding: 35px 0;
}
.interior-banner h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  color: #edc783;
  margin: 8px 0;
}
.interior-banner p {
  margin: 0;
  color: #f0e2cf;
}
.interior {
  padding-top: 24px;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.character-card {
  border: 1px solid #c6a77c;
  background: #f9edd8;
  box-shadow: 0 3px 12px #76522b24;
  overflow: hidden;
}
.character-illustration {
  height: 185px;
  background: linear-gradient(150deg, #172f3d, #64735c, #c9a070);
  display: grid;
  place-items: center;
  position: relative;
}
.character-illustration:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, #0c1d2b 5%, transparent 65%);
}
.character-illustration span {
  font-family: Cinzel, serif;
  font-size: 90px;
  color: #f2d49c77;
  text-shadow: 0 8px 20px #06131a;
}
.character-illustration-1 {
  background: linear-gradient(150deg, #122c2e, #527c66, #c5b77e);
}
.character-illustration-2 {
  background: linear-gradient(150deg, #30252a, #8e684a, #d8b57c);
}
.character-illustration-3 {
  background: linear-gradient(150deg, #1c283e, #687a9d, #c7c6ba);
}
.character-card h2 {
  font-size: 17px;
  margin: 15px 15px 4px;
}
.character-card p {
  font-size: 13px;
  margin: 0 15px 20px;
  color: #66513c;
}
.migration-note {
  font-size: 12px;
  color: #735b41;
  margin-top: 24px;
}
.connection-box {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 8px 18px;
  padding: 20px;
  border: 1px solid #bda079;
  background: #ead8b8;
  margin: 25px 0;
}
.connection-box span {
  font:
    11px Arial,
    sans-serif;
  letter-spacing: 1px;
  color: #7d5b3c;
}
.connection-box strong {
  font-size: 18px;
}
.connection-box button {
  grid-column: 3;
  grid-row: 1 / span 2;
  background: #872322;
  color: white;
  border: 0;
  padding: 12px;
  cursor: pointer;
}
.link-tiles {
  display: grid;
  gap: 10px;
}
.link-tiles a {
  padding: 14px;
  border: 1px solid #c4a477;
  background: #f8e9ce;
  color: #812522;
  font-weight: bold;
}
.link-tiles small {
  display: block;
  color: #65503d;
  font-weight: normal;
}
@media (max-width: 850px) {
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .character-grid {
    grid-template-columns: 1fr;
  }
  .connection-box {
    grid-template-columns: 1fr;
  }
  .connection-box button {
    grid-column: 1;
    grid-row: auto;
  }
  .interior-banner {
    min-height: 165px;
  }
}

/* Phase 3: approved concept artwork and branded detailing */
.hero {
  background-image:
    linear-gradient(
      90deg,
      #06111df5 0%,
      #06111de8 32%,
      #06111d68 68%,
      #06111d2a 100%
    ),
    url('/assets/images/hero-painted.webp');
  background-position:
    center,
    center 45%;
}
.interior-banner {
  background-image:
    linear-gradient(90deg, #07131eea, #07131e66),
    url('/assets/images/hero-painted.webp');
}
.news-card:nth-child(1) .news-art {
  background-image: url('/assets/images/solamnia-painted.webp');
}
.news-card:nth-child(2) .news-art {
  background-image: url('/assets/images/abyss-painted.webp');
}
.news-card:nth-child(3) .news-art {
  background-image: url('/assets/images/qualinost-painted.webp');
}
.explore-grid a:nth-child(1) {
  background-image:
    linear-gradient(0deg, #06121fdd, transparent 70%),
    url('/assets/images/solamnia-painted.webp');
}
.explore-grid a:nth-child(2) {
  background-image:
    linear-gradient(0deg, #06121fdd, transparent 70%),
    url('/assets/images/qualinost-painted.webp');
}
.explore-grid a:nth-child(3) {
  background-image:
    linear-gradient(0deg, #06121fdd, transparent 70%),
    url('/assets/images/castle-painted.webp');
}
.explore-grid a:nth-child(4) {
  background-image:
    linear-gradient(0deg, #06121fdd, transparent 70%),
    url('/assets/images/abyss-painted.webp');
}
.character-illustration {
  background-size: cover !important;
  background-position: center 30% !important;
}
.character-card:nth-child(8n + 1) .character-illustration {
  background-image: url('/assets/images/warrior-painted.webp');
}
.character-card:nth-child(8n + 2) .character-illustration {
  background-image: url('/assets/images/ranger-painted.webp');
}
.character-card:nth-child(8n + 3) .character-illustration {
  background-image: url('/assets/images/paladin-painted.webp');
}
.character-card:nth-child(8n + 4) .character-illustration {
  background-image: url('/assets/images/cleric-painted.webp');
}
.character-card:nth-child(8n + 5) .character-illustration {
  background-image: url('/assets/images/mage-painted.webp');
}
.character-card:nth-child(8n + 6) .character-illustration {
  background-image: url('/assets/images/thief-painted.webp');
}
.character-card:nth-child(8n + 7) .character-illustration {
  background-image: url('/assets/images/bard-painted.webp');
}
.character-card:nth-child(8n + 8) .character-illustration {
  background-image: url('/assets/images/druid-painted.webp');
}
.character-illustration span {
  display: none;
}
.character-illustration:before {
  background: linear-gradient(0deg, #06111d7a, transparent 45%);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border: 1px solid #a47438;
  border-radius: 50%;
  font-size: 36px;
  color: #d0432e;
  background: radial-gradient(circle, #401d19, #0c1620 68%);
  text-shadow: 0 2px 9px #f64d2b66;
}
.hero .lead {
  max-width: 570px;
}
.paper {
  border-radius: 4px;
}
.news-art {
  background-position: center;
  background-size: cover;
}
.news-card {
  overflow: hidden;
}
.character-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 24px #76522b40;
}
.character-card {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
@media (max-width: 760px) {
  .hero {
    background-position:
      center,
      62% center;
  }
  .hero-inner {
    background: linear-gradient(90deg, #06111db5, transparent);
  }
}

/* Phase 4: three-location Explore Ansalon layout. Image files can be swapped without HTML edits. */
.explore-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.explore-grid a {
  min-height: 285px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.explore-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px #0008;
}
.explore-grid .explore-palanthas {
  background-image:
    linear-gradient(0deg, #06121ff0, transparent 70%),
    url('/assets/images/palanthas.webp');
}
.explore-grid .explore-sanction {
  background-image:
    linear-gradient(0deg, #06121ff0, transparent 70%),
    url('/assets/images/sanction.webp');
}
.explore-grid .explore-solace {
  background-image:
    linear-gradient(0deg, #06121ff0, transparent 70%),
    url('/assets/images/solace.webp?v=2');
}
@media (max-width: 760px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .explore-grid a {
    min-height: 240px;
  }
}

/* Phase 6: reference directories */
.reference-heading {
  margin: 2rem 0 0.8rem;
  color: #522b19;
}
.reference-heading small {
  font-size: 0.65em;
  color: #8d7053;
}
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.reference-card {
  display: block;
  padding: 18px;
  border: 1px solid #cdb894;
  background: #fff8e8;
  color: #34281e;
  text-decoration: none;
  border-radius: 4px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.reference-card:hover {
  transform: translateY(-2px);
  border-color: #9b572e;
}
.reference-card h3 {
  margin: 0 0 8px;
  color: #7d271d;
  font-size: 1.12rem;
}
.reference-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.migration-note {
  margin-top: 2rem;
  padding: 14px;
  border-left: 3px solid #a67c45;
  background: #f6ead4;
}

/* Phase 7: searchable reference and richer detail pages */
.search-form {
  margin: 0 0 1.8rem;
}
.search-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.search-form > div {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.search-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border: 1px solid #b99b68;
  border-radius: 4px;
  background: #fffaf0;
  color: #1a1c22;
  font: inherit;
}
.search-results {
  display: grid;
  gap: 1rem;
}
.search-results article {
  padding: 1rem 0;
  border-top: 1px solid #cbb58d;
}
.search-results article h2 {
  font-size: 1.3rem;
  margin: 0.25rem 0;
}
.search-results article p {
  margin: 0.25rem 0;
}
.search-results small {
  color: #8b392c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reference-details {
  display: grid;
  grid-template-columns: minmax(130px, 200px) 1fr;
  gap: 0.65rem 1rem;
}
.reference-details dt {
  font-weight: bold;
}
.reference-details dd {
  margin: 0;
}
@media (max-width: 600px) {
  .reference-details {
    grid-template-columns: 1fr;
  }
  .reference-details dd {
    margin-bottom: 0.6rem;
  }
}

/* Phase 8 — purpose-generated, standalone landscape illustrations */
.hero {
  background-image:
    linear-gradient(90deg, #06111df0 0%, #06111dc9 37%, #06111d4b 75%),
    url('/assets/images/hero-cinematic.webp') !important;
  background-position:
    center,
    center 48%;
  background-size: cover;
}
.hero:after {
  display: none;
}
.interior-banner {
  background-image:
    linear-gradient(90deg, #07131eea, #07131e70),
    url('/assets/images/palanthas.png') !important;
  background-position:
    center,
    center 45%;
  background-size: cover;
}
.explore-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.explore-grid a {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 125px 20px 20px;
  font-size: 22px;
  line-height: 1.4;
  background-size: cover !important;
  background-position: center !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.explore-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 25px #0008;
}
.explore-grid .explore-palanthas {
  background-image:
    linear-gradient(0deg, #06121ff5, #06121f0a 76%),
    url('/assets/images/palanthas.png') !important;
}
.explore-grid .explore-sanction {
  background-image:
    linear-gradient(0deg, #06121ff5, #06121f0a 76%),
    url('/assets/images/sanction-hd.webp') !important;
}
.explore-grid .explore-solace {
  background-image:
    linear-gradient(0deg, #06121ff5, #06121f0a 76%),
    url('/assets/images/solace-hd.webp?v=2') !important;
}
.news-card:nth-child(1) .news-art {
  background-image: url('/assets/images/solace-hd.webp?v=2') !important;
}
.news-card:nth-child(2) .news-art {
  background-image: url('/assets/images/sanction-hd.webp') !important;
}
.news-card:nth-child(3) .news-art {
  background-image: url('/assets/images/palanthas.png') !important;
}
.paper {
  background: linear-gradient(135deg, #fff2dd, #f0dbb8 55%, #e9cda1);
}
.reference-details {
  display: grid;
  grid-template-columns: minmax(125px, 1fr) 2fr;
  border-top: 1px solid #c6a77c;
}
.reference-details dt,
.reference-details dd {
  padding: 10px;
  margin: 0;
  border-bottom: 1px solid #d6bb94;
  overflow-wrap: anywhere;
}
.reference-details dt {
  font-weight: bold;
  color: #654426;
}
.reference-card {
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.reference-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px #6b4b2b38;
}
@media (max-width: 760px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .explore-grid a {
    min-height: 225px;
  }
}

/* Phase 12: spell compendium, accessibility, responsive refinements */
.skip-link {
  position: absolute;
  z-index: 999;
  left: 12px;
  top: -70px;
  background: #fff3d7;
  color: #2b1b13;
  padding: 12px 18px;
}
.skip-link:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #e7aa51;
  outline-offset: 3px;
}
.spell-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.spell-filters label {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  font-weight: bold;
}
.spell-filters input,
.spell-filters select {
  width: 100%;
  padding: 12px;
  background: #fff9ee;
  border: 1px solid #bca17b;
  color: #302219;
  font: inherit;
}
.spell-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.spell-entry {
  padding: 20px;
  border: 1px solid #cbb18c;
  background: #fff8e9;
  border-radius: 4px;
  min-width: 0;
}
.spell-entry h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.spell-entry p {
  line-height: 1.55;
}
.spell-entry code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #e8d5b4;
  padding: 5px 9px;
}
.spell-entry[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .paper {
    padding: 18px;
  }
  .hero h1 {
    overflow-wrap: anywhere;
  }
  .header-inner {
    min-width: 0;
  }
  .interior > .paper {
    padding: 18px;
  }
  .spell-filters {
    display: grid;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Phase 13: expanded spell compendium */
.spell-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.spell-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}
.spell-filters input,
.spell-filters select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #b8a787;
  border-radius: 5px;
  background: #fff;
}
.spell-entry[hidden],
#spell-empty[hidden] {
  display: none !important;
}
.spell-entry {
  scroll-margin-top: 90px;
}
.spell-entry h2 a {
  color: inherit;
  text-decoration: none;
}
.spell-entry h2 a:hover {
  text-decoration: underline;
}
.spell-class-tag {
  display: inline-block;
  margin: 2px 3px 2px 0;
  padding: 2px 7px;
  border-radius: 20px;
  background: #e7dfcb;
  color: #443b2b;
}

/* Phase 14: spell directory accessibility and dense compendium layout */
.spell-entry[hidden],
#spell-empty[hidden] {
  display: none !important;
}
.spell-entry {
  scroll-margin-top: 6rem;
}
.spell-entry:target {
  outline: 2px solid #b99048;
  outline-offset: 3px;
}
.spell-entry code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.spell-filters input:focus-visible,
.spell-filters select:focus-visible {
  outline: 3px solid #b99048;
  outline-offset: 2px;
}

/* Phase 17: compact, accessible spell tools and printable reference */
.spell-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}
.spell-toolbar #spell-count {
  margin: 0 auto 0 0;
}
.spell-action {
  background: #172d3a;
  color: #fff;
  border: 1px solid #9e844b;
  border-radius: 4px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font: inherit;
}
.spell-action:hover,
.spell-action:focus-visible {
  background: #345265;
  outline-offset: 3px;
}
.spell-entry[hidden] {
  display: none !important;
}
@media print {
  header,
  footer,
  .spell-filters,
  .spell-toolbar,
  .menu-toggle,
  .interior-banner,
  .crumb {
    display: none !important;
  }
  .paper,
  .interior {
    box-shadow: none !important;
    background: white !important;
    color: black !important;
  }
  .spell-entry {
    break-inside: avoid;
    border-bottom: 1px solid #999;
  }
}

/* Phase 20: transparent content coverage and structured class progression */
.coverage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.coverage-stats > div {
  padding: 1.2rem;
  border: 1px solid #d5c7a7;
  border-radius: 10px;
  background: #f4ead4;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.coverage-stats strong {
  font-size: 2rem;
  color: #583a21;
}
.coverage-stats span {
  font-size: 0.86rem;
}
.coverage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}
.coverage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-bottom: 1px solid #d9cdb6;
}
.coverage-item span {
  font-size: 0.8rem;
  text-align: right;
  opacity: 0.8;
}
.progression-table-wrap {
  overflow-x: auto;
}
.progression-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
}
.progression-table th,
.progression-table td {
  text-align: left;
  border-bottom: 1px solid #d8cbb5;
  padding: 0.75rem;
  vertical-align: top;
}
.progression-table thead {
  background: #eee0c4;
}
.progression-table th:first-child {
  width: 22%;
}
.news-filter-label {
  display: block;
  max-width: 32rem;
  margin: 1rem 0;
}
.news-filter-label input {
  display: block;
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.4rem;
}
#news-archive article[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .coverage-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coverage-list {
    grid-template-columns: 1fr;
  }
}

/* Phase 21: readable deep-linked spell browsing */
.reference-spell-link {
  font-weight: 700;
  color: #775015;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reference-spell-link:focus-visible {
  outline: 3px solid #ba7b2e;
  outline-offset: 3px;
}
.spell-link-help {
  font-size: 0.95rem;
  color: #62564a;
}
.spell-entry:target {
  outline: 3px solid #c89b4c;
  outline-offset: 3px;
  scroll-margin-top: 5rem;
}

/* Phase 22 reference status filters */
.coverage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: #f4eddf;
  border: 1px solid #d9c9a9;
  border-radius: 8px;
}
.coverage-controls label {
  font-weight: 700;
}
.coverage-controls input,
.coverage-controls select {
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  max-width: 100%;
  border: 1px solid #9d8966;
  border-radius: 5px;
  background: #fff;
  color: #222;
}
.coverage-controls #coverage-count {
  margin-left: auto;
  font-size: 0.9rem;
  color: #51452e;
}
.coverage-item[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .coverage-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .coverage-controls #coverage-count {
    margin-left: 0;
  }
}

/* Final release: keyboard focus, readability, reduced-motion support */
:focus-visible {
  outline: 3px solid #d4a74d;
  outline-offset: 3px;
}
.paper article {
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 650px) {
  .paper {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .progression-table-wrap {
    overflow-x: auto;
  }
  .interior-banner h1 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }
}

/* Design fidelity pass: cinematic hero, ornamental navigation and split parchment layout */
:root {
  --gold: #efc77d;
  --paper: #f5dfb7;
  --red: #8f0711;
}
body {
  background: #08121b;
  color: #f3e8d6;
}
.wrap {
  width: min(1460px, 96%);
}
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: linear-gradient(90deg, #04101aef, #07111bda 68%, #081421d9);
  border-bottom: 1px solid #b98a48;
}
.header-inner {
  min-height: 75px;
  gap: 18px;
}
.brand {
  align-self: stretch;
  min-width: 310px;
  position: relative;
  padding: 10px 22px 12px 10px;
  gap: 8px;
  background: linear-gradient(110deg, #050e18, #0a1824);
  border: 1px solid #a77b42;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  box-shadow:
    0 4px 0 #060b0d,
    0 6px 14px #0009;
}
.brand:after {
  content: '✦';
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  color: #d6a14d;
  font-size: 24px;
  text-shadow: 0 1px 3px #000;
}
.brand-mark {
  font-size: 56px;
  filter: drop-shadow(0 2px 2px #000);
}
.brand strong {
  font-size: 40px;
  color: #f2c877;
  text-shadow: 1px 2px 2px #000;
}
.brand small {
  font-size: 13px;
  letter-spacing: 1.7px;
}
.brand em {
  letter-spacing: 2px;
  font-size: 9px;
}
nav {
  gap: clamp(10px, 1.9vw, 30px);
}
nav > a,
.dropdown > a {
  font-size: 15px;
  color: #fff4e6;
}
nav > a:hover,
.dropdown > a:hover {
  color: #ffda91;
}
.btn.primary {
  border: 2px solid #d69b4b;
  outline: 1px solid #5e1110;
  outline-offset: -5px;
  background: linear-gradient(#b80c18, #78020b 70%, #4e0408);
  box-shadow:
    inset 0 0 0 2px #570408,
    0 4px 10px #0009;
  clip-path: polygon(
    4% 0,
    96% 0,
    100% 15%,
    100% 85%,
    96% 100%,
    4% 100%,
    0 85%,
    0 15%
  );
  font-size: 18px;
  letter-spacing: 0.03em;
}
.nav-play {
  min-width: 152px;
}
.hero {
  min-height: 558px;
  background-image:
    linear-gradient(90deg, #020b15ad 0%, #06121a70 28%, #08131b00 70%),
    linear-gradient(0deg, #03101a 0%, transparent 24%),
    url('/assets/images/hero-cinematic.webp') !important;
  background-size: cover !important;
  background-position: center center !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-inner {
  padding: 164px 0 26px;
  flex: 1;
  width: min(1460px, 96%);
}
.hero .eyebrow {
  font-size: 19px;
  letter-spacing: 4px;
  color: #fbe2a9;
  margin: 8px 0 -6px 35px;
  text-shadow: 0 3px 5px #000;
}
.hero h1 {
  font-size: clamp(39px, 4.7vw, 75px);
  white-space: nowrap;
  margin: 0;
  color: #f7d68d;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow:
    2px 4px 4px #000,
    0 0 14px #050a11;
}
.hero-subtitle {
  font:
    600 clamp(15px, 1.8vw, 25px) Cinzel,
    Georgia,
    serif;
  color: #f3c778;
  letter-spacing: 5px;
  margin: 0 0 5px 22px;
  text-shadow: 0 2px 6px #000;
}
.hero .lead {
  font-size: 18px;
  line-height: 1.45;
  max-width: 580px;
  margin: 0 0 10px 22px;
  text-shadow: 0 2px 4px #000;
}
.hero-actions {
  margin: 14px 0 0 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-actions .btn {
  width: 325px;
  padding: 9px 18px;
  font-size: 22px;
}
.server {
  font:
    16px Georgia,
    serif;
  border: 1px solid #bb8c4d;
  min-width: 325px;
  padding: 8px 16px;
  color: #f6e7cc;
  box-shadow: 0 0 0 3px #0005;
  background: #020e17d9;
}
.server button {
  font:
    18px Georgia,
    serif;
  display: inline-block;
  margin-left: 8px;
  color: #fff5e3;
}
.hero .feature-strip {
  position: relative;
  z-index: 1;
  background: #030e18c9;
  border-top: 0;
  border-bottom: 2px solid #b5894a;
}
.features {
  padding: 10px 0;
  gap: 20px;
}
.features > div {
  font-size: 16px;
  gap: 14px;
  justify-content: center;
  border-right: 1px solid #946e40;
}
.features > div:last-child {
  border: 0;
}
.feature-icon {
  font-size: 42px;
  color: #f3c778;
  line-height: 1;
}
.features b {
  font-size: 16px;
  color: #f8d89e;
}
.features small {
  font-size: 12px;
  color: #f1e8d9;
}
.homepage-parchment {
  position: relative;
  background: linear-gradient(135deg, #fcebd0, #e6c595 80%, #f5d9aa);
  border: 4px ridge #b18346;
  border-radius: 18px;
  margin: -1px 5px 0;
  box-shadow:
    inset 0 0 35px #a47b4e8a,
    0 5px 22px #0009;
}
.homepage-parchment:before,
.homepage-parchment:after {
  content: '❧';
  position: absolute;
  top: -24px;
  color: #bf8740;
  font-size: 48px;
  text-shadow: 0 2px #160f0a;
  z-index: 2;
}
.homepage-parchment:before {
  left: 6px;
}
.homepage-parchment:after {
  right: 6px;
  transform: scaleX(-1);
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  width: 100%;
}
.home-grid > .paper {
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 22px 32px 36px;
}
.home-grid > .home-news {
  border-right: 2px solid #b58a56;
}
.home-grid h2 {
  font-size: 27px;
  font-variant: small-caps;
  margin: 0 0 17px;
  color: #24180e;
}
.section-heading {
  gap: 12px;
}
.section-heading a {
  color: #9b1314;
  font-size: 14px;
}
.news-grid {
  gap: 16px;
}
.news-card {
  border: 1px solid #d5b88e;
  border-radius: 4px;
  overflow: hidden;
  background: #f9e8cc8c;
}
.news-art {
  height: 160px;
  background-size: cover !important;
  background-position: center !important;
  font-size: 0;
}
.news-card-body {
  padding: 12px;
}
.news-card h3 {
  font-size: 17px;
  margin: 4px 0;
}
.news-card p {
  font-size: 13px;
  line-height: 1.45;
  min-height: 66px;
  margin: 6px 0;
}
.readmore {
  font-weight: bold;
}
.explore-intro {
  min-height: 89px;
}
.explore-intro h2 {
  margin-bottom: 3px;
}
.explore-intro p {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 12px 36px;
}
.home-explore .explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
}
.home-explore .explore-grid a {
  min-height: 292px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  transform: none !important;
  box-shadow: 0 3px 5px #0004;
  background-position: center !important;
  background-size: cover !important;
  overflow: hidden;
  border: 1px solid #d0a56e;
  border-radius: 4px;
}
.explore-caption {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(#03111bbf, #020b13f5 25%);
  padding: 9px 8px 7px;
}
.explore-caption strong {
  display: block;
  font:
    23px Cinzel,
    serif;
  color: #f7c776;
  font-variant: small-caps;
}
.explore-caption small {
  display: block;
  font:
    13px/1.35 Georgia,
    serif;
  color: #f9eee0;
  min-height: 54px;
}
.explore-button {
  display: block;
  background: linear-gradient(#a50b13, #600308);
  border: 1px solid #e6ad60;
  outline: 1px solid #370c0b;
  outline-offset: -4px;
  padding: 7px 4px;
  font:
    13px Georgia,
    serif;
  color: #ffe9c2;
  margin-top: 8px;
}
.journey-below {
  padding: 28px 0 50px;
}
.journey-below h2 {
  color: #f0c77d;
  font-size: 24px;
}
.journey-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.journey-links a {
  position: relative;
  background: #102335;
  border: 1px solid #a47b46;
  padding: 12px 35px 12px 16px;
}
.journey-links b,
.journey-links small {
  display: block;
}
.journey-links b {
  color: #f2c77c;
}
.journey-links small {
  font-size: 12px;
}
.journey-links a > span {
  position: absolute;
  right: 12px;
  top: 20px;
  color: #f2c77c;
}
.interior-banner {
  padding-top: 70px;
  min-height: 255px;
  background-image:
    linear-gradient(90deg, #06121af0, #07121a65),
    url('/assets/images/hero-cinematic.webp') !important;
  border-bottom: 3px solid #bd8842;
}
.interior-banner h1 {
  font-variant: small-caps;
  color: #f6ce83;
  text-shadow: 0 3px 6px #000;
}
.interior {
  width: min(1480px, 96%);
  padding-top: 0;
}
.interior > .paper {
  border: 4px ridge #bd925d;
  border-radius: 13px;
  background: linear-gradient(120deg, #fff0d3, #e9cda4 90%);
  box-shadow: inset 0 0 30px #a57b4b66;
  min-height: 550px;
}
.reference-card,
.character-card,
.spell-entry {
  border: 1px solid #c29b66;
  background: #f8e8ca;
  box-shadow: 0 3px 8px #5d422422;
}
.reference-card h3 {
  color: #642b1b;
}
.character-card {
  border-radius: 5px;
}
.character-illustration {
  height: 195px;
}
@media (max-width: 1180px) {
  .brand {
    min-width: 240px;
  }
  .brand strong {
    font-size: 30px;
  }
  .brand-mark {
    font-size: 43px;
  }
  nav {
    gap: 11px;
  }
  nav > a,
  .dropdown > a {
    font-size: 12px;
  }
  .nav-play {
    min-width: 112px;
    font-size: 14px !important;
  }
  .home-grid > .paper {
    padding: 18px;
  }
  .news-art {
    height: 125px;
  }
  .home-explore .explore-grid a {
    min-height: 245px;
  }
  .explore-caption strong {
    font-size: 17px;
  }
}
@media (max-width: 800px) {
  .site-header {
    position: absolute;
  }
  .brand {
    min-width: 0;
  }
  .menu-toggle {
    display: block;
  }
  nav {
    top: 75px;
  }
  .hero-inner {
    padding-top: 135px;
  }
  .hero h1 {
    white-space: normal;
    font-size: clamp(36px, 7vw, 62px);
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-grid > .home-news {
    border-right: 0;
    border-bottom: 2px solid #b58a56;
  }
  .home-explore .explore-grid a {
    min-height: 260px;
  }
  .journey-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .features > div:nth-child(2) {
    border: 0;
  }
}
@media (max-width: 540px) {
  .brand {
    padding: 6px 8px;
  }
  .brand-mark {
    font-size: 30px;
  }
  .brand strong {
    font-size: 23px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand em {
    font-size: 7px;
  }
  .hero {
    min-height: 640px;
    background-position: 42% center !important;
  }
  .hero-inner {
    padding: 110px 0 18px;
  }
  .hero .eyebrow {
    margin-left: 4px;
    font-size: 13px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    margin-left: 0;
  }
  .hero .lead {
    margin-left: 0;
    font-size: 16px;
  }
  .hero-actions {
    margin-left: 0;
  }
  .hero-actions .btn,
  .server {
    width: min(100%, 325px);
    min-width: 0;
  }
  .server button {
    margin-left: 0;
    font-size: 15px;
  }
  .features {
    gap: 7px;
  }
  .features > div {
    justify-content: flex-start;
    gap: 6px;
  }
  .feature-icon {
    font-size: 26px;
  }
  .features b {
    font-size: 12px;
  }
  .features small {
    font-size: 10px;
  }
  .home-grid > .paper {
    padding: 18px 13px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-art {
    height: 190px;
  }
  .news-card p {
    min-height: 0;
  }
  .home-explore .explore-grid {
    grid-template-columns: 1fr;
  }
  .home-explore .explore-grid a {
    min-height: 280px;
  }
  .explore-caption small {
    min-height: 0;
  }
  .journey-links {
    grid-template-columns: 1fr;
  }
  .interior-banner {
    padding-top: 85px;
  }
}
@media print {
  .site-header {
    position: static;
  }
}

/* Homepage-only fidelity adjustments: screenshot supplied 2026-10-16.
   Interior pages deliberately inherit their existing design. */
body.home-page {
  background: #07131d;
}
.home-page .site-header {
  background: linear-gradient(90deg, #04101af5, #07111bdc 65%, #081421d9);
  border-bottom: 0;
}
.home-page .header-inner {
  min-height: 76px;
}
.home-page .hero {
  min-height: 430px !important;
  background-image:
    linear-gradient(0deg, #04111be8 0%, transparent 21%),
    url('/assets/images/hero-cinematic.webp') !important;
  background-position: center 49% !important;
  background-size: cover !important;
}
.home-page .hero-inner {
  width: min(100%, 1120px);
  padding: 96px 12px 17px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.home-page .hero .eyebrow {
  margin: 0 0 -3px !important;
  font-size: 17px;
  letter-spacing: 5px;
}
.home-page .hero h1 {
  font-size: clamp(36px, 4.4vw, 61px);
  white-space: normal;
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin: 0 !important;
}
.home-page .hero-subtitle {
  margin: 3px 0 8px !important;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 4px;
}
.home-page .hero .lead {
  font-size: 16px;
  line-height: 1.4;
  max-width: 510px;
  margin: 0 auto 9px !important;
}
.home-page .hero-actions {
  margin: 4px 0 0 !important;
  align-items: center;
  gap: 8px;
}
.home-page .hero-actions .btn {
  width: 210px;
  padding: 7px 15px;
  font-size: 18px;
}
.home-page .server {
  min-width: 210px;
  width: 210px;
  padding: 6px 9px;
  font-size: 11px;
  text-align: left;
  line-height: 1.3;
}
.home-page .server button {
  font-size: 12px;
  margin-left: 0;
}
.home-page .feature-strip {
  background: #04101bd9;
  border-bottom: 2px solid #b78a49;
}
.home-page .features {
  padding: 8px 0;
  gap: 12px;
}
.home-page .features > div {
  gap: 10px;
}
.home-page .feature-icon {
  font-size: 33px;
}
.home-page .features b {
  font-size: 13px;
}
.home-page .features small {
  font-size: 10px;
}
.home-page .homepage-parchment {
  margin: 0 14px 0;
  border-radius: 17px;
  background: radial-gradient(
    ellipse at 50% 15%,
    #fff1d6 0%,
    #f7e0ba 55%,
    #e8c694 100%
  );
  box-shadow:
    inset 0 0 35px #9f774a7d,
    0 6px 16px #0009;
}
.home-page .home-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.home-page .home-grid > .paper {
  width: 100%;
  padding: 11px 26px 17px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.home-page .home-grid > .home-explore {
  order: 0;
  border-bottom: 1px solid #b89061 !important;
  padding-bottom: 10px !important;
}
.home-page .home-grid > .home-news {
  order: 1;
  padding-top: 11px !important;
}
.home-page .explore-intro {
  text-align: center;
  min-height: 0 !important;
}
.home-page .explore-intro h2 {
  font-size: 25px;
  margin: 0 0 1px;
}
.home-page .explore-intro p {
  font-size: 13px;
  margin: 0 0 8px !important;
}
.home-page .home-explore .explore-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.home-page .home-explore .explore-grid a {
  min-height: 244px !important;
  background-position: center !important;
  border-radius: 3px;
}
.home-page .explore-caption {
  text-align: left;
  padding: 8px 11px 9px;
  background: linear-gradient(transparent, #020b13ed 12%, #020b13f8);
}
.home-page .explore-caption strong {
  font-size: 21px;
}
.home-page .explore-caption small {
  font-size: 12px;
  min-height: 0;
  line-height: 1.25;
}
.home-page .explore-button {
  display: inline-block;
  min-width: 142px;
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
  padding: 6px 12px;
}
.home-page .home-grid h2 {
  font-size: 24px;
  margin: 0 0 10px;
}
.home-page .news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-page .news-art {
  height: 95px !important;
}
.home-page .news-card-body {
  padding: 8px 10px;
}
.home-page .news-card h3 {
  font-size: 16px;
  margin: 2px 0;
}
.home-page .news-card p {
  font-size: 12px;
  line-height: 1.3;
  min-height: 32px;
  margin: 4px 0 6px;
}
.home-page .news-card small {
  font-size: 10px;
}
.home-page .readmore {
  font-size: 12px;
}
.home-page .journey-below {
  display: none;
}
@media (max-width: 800px) {
  .home-page .hero {
    min-height: 480px !important;
  }
  .home-page .hero-inner {
    padding-top: 115px !important;
  }
  .home-page .home-grid > .paper {
    padding: 14px !important;
  }
  .home-page .home-explore .explore-grid a {
    min-height: 215px !important;
  }
  .home-page .explore-caption strong {
    font-size: 17px;
  }
}
@media (max-width: 620px) {
  .home-page .hero {
    min-height: 580px !important;
    background-position: 42% center !important;
  }
  .home-page .hero-inner {
    padding-top: 120px !important;
  }
  .home-page .hero h1 {
    font-size: clamp(32px, 8vw, 48px);
  }
  .home-page .hero .lead {
    font-size: 14px;
  }
  .home-page .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-page .homepage-parchment {
    margin: 0 5px;
  }
  .home-page .home-explore .explore-grid,
  .home-page .news-grid {
    grid-template-columns: 1fr;
  }
  .home-page .home-explore .explore-grid a {
    min-height: 255px !important;
  }
  .home-page .news-art {
    height: 165px !important;
  }
  .home-page .news-card p {
    min-height: 0;
  }
}

/* Homepage fidelity pass: constrain the illustrated composition and card widths. */
@media (min-width: 1024px) {
  .home-page .site-header,
  .home-page .hero,
  .home-page .homepage-parchment {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  .home-page .site-header {
    left: 0;
    right: 0;
    width: 100%;
  }
  .home-page .hero {
    width: 100%;
  }
  .home-page .homepage-parchment {
    width: calc(100% - 20px);
  }
  .home-page .hero-inner,
  .home-page .feature-strip .wrap,
  .home-page .header-inner {
    max-width: 1140px;
  }
  .home-page .home-grid {
    max-width: 100%;
  }
  .home-page .home-explore .explore-grid a {
    min-width: 0;
  }
  .home-page .news-card {
    min-width: 0;
  }
}
@media (min-width: 1200px) {
  .home-page .hero {
    min-height: 525px !important;
  }
  .home-page .home-explore .explore-grid a {
    min-height: 285px !important;
  }
  .home-page .news-art {
    height: 115px !important;
  }
}

/* Homepage refinement v35 — only home-page scoped selectors. */
.home-page .home-grid > .home-news {
  order: 0 !important;
  border-bottom: 1px solid #b89061 !important;
  padding-bottom: 23px !important;
  padding-top: 16px !important;
}
.home-page .home-grid > .home-explore {
  order: 1 !important;
  border-bottom: 0 !important;
  padding-top: 19px !important;
  padding-bottom: 24px !important;
}
.home-page .news-art {
  height: 205px !important;
}
.home-page .news-card-body {
  padding: 13px 14px 16px;
}
.home-page .news-card h3 {
  font-size: 18px;
}
.home-page .news-card p {
  font-size: 13px;
  line-height: 1.45;
}
.home-page .brand {
  min-width: 246px !important;
  width: 246px;
  max-width: 246px;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: #07121b !important;
  box-shadow: none !important;
  flex: 0 0 246px;
}
.home-page .brand:after {
  display: none !important;
}
.home-page .reference-logo {
  display: block;
  width: 246px;
  height: 81px;
  object-fit: contain;
}
.home-page .header-inner {
  gap: 10px !important;
}
.home-page nav {
  gap: clamp(7px, 1.15vw, 18px) !important;
  min-width: 0;
}
.home-page nav > a,
.home-page .dropdown > a {
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(11px, 1.05vw, 14px) !important;
  line-height: 1.1;
}
.home-page .nav-play {
  min-width: 102px !important;
  padding: 10px 13px !important;
}
/* Separate the image from its caption, with centered copy beneath the image. */
.home-page .home-explore .explore-grid a {
  background-size: 100% 66% !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-color: #07131f !important;
  min-height: 355px !important;
  display: flex !important;
  align-items: flex-end !important;
}
.home-page .explore-caption {
  height: 34%;
  min-height: 121px;
  padding: 10px 12px 12px !important;
  background: #06111c !important;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.home-page .explore-caption strong {
  font-size: 21px;
}
.home-page .explore-caption small {
  font-size: 12px;
  line-height: 1.3;
  min-height: 0 !important;
  max-width: 290px;
}
.home-page .explore-button {
  margin-top: 8px !important;
}
@media (max-width: 1050px) and (min-width: 801px) {
  .home-page .brand {
    min-width: 200px !important;
    width: 200px;
    max-width: 200px;
    flex-basis: 200px;
  }
  .home-page .reference-logo {
    width: 200px;
    height: 67px;
  }
  .home-page nav {
    gap: 7px !important;
  }
  .home-page nav > a,
  .home-page .dropdown > a {
    font-size: 11px !important;
  }
}
@media (max-width: 800px) {
  .home-page .brand {
    min-width: 205px !important;
    width: 205px;
    max-width: 205px;
    flex-basis: 205px;
  }
  .home-page .reference-logo {
    width: 205px;
    height: 68px;
  }
  .home-page nav {
    gap: 12px !important;
  }
  .home-page nav > a,
  .home-page .dropdown > a {
    font-size: 14px !important;
  }
  .home-page .news-art {
    height: 190px !important;
  }
  .home-page .home-explore .explore-grid a {
    min-height: 300px !important;
  }
}
@media (max-width: 620px) {
  .home-page .news-art {
    height: 210px !important;
  }
  .home-page .home-explore .explore-grid a {
    min-height: 340px !important;
  }
}

/* Homepage v36: explicit image/caption separation, clearance and features. */
.home-page .home-grid > .home-news {
  padding-top: 35px !important;
}
.home-page .home-news .section-heading {
  padding-left: 22px;
  min-height: 39px;
}
.home-page .home-explore .explore-grid a {
  background-image: none !important;
  background: #07131f !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  text-decoration: none;
}
.home-page .explore-photo {
  display: block;
  flex: none;
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
}
.home-page .explore-palanthas .explore-photo {
  background-image: url('/assets/images/palanthas.png');
}
.home-page .explore-sanction .explore-photo {
  background-image: url('/assets/images/sanction-hd.webp');
}
.home-page .explore-solace .explore-photo {
  background-image: url('/assets/images/solace-hd.webp?v=2');
}
.home-page .explore-caption {
  height: auto !important;
  min-height: 155px !important;
  flex: 1;
  padding: 14px 14px 16px !important;
  justify-content: flex-start !important;
}
.home-page .explore-caption strong {
  margin-bottom: 5px;
}
.home-page .explore-button {
  margin-top: auto !important;
  transform: translateY(8px);
}
.home-page .home-game-features {
  padding: 23px 26px 35px;
  border-top: 1px solid #b89061;
  color: #21170e;
}
.home-page .home-game-features .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.home-page .home-game-features h2 {
  margin: 0;
  font-size: 25px;
  font-variant: small-caps;
}
.home-page .home-game-features .section-heading a {
  color: #9b0610;
  font-size: 14px;
}
.home-page .home-features-intro {
  margin: 7px 0 18px;
  text-align: center;
}
.home-page .home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.home-page .home-features-grid > a {
  display: block;
  padding: 19px 15px 18px;
  text-align: center;
  background: #fff0d6;
  border: 1px solid #c9a477;
  border-radius: 5px;
  box-shadow: 0 2px 7px #76552e29;
  text-decoration: none;
  color: #27180f;
}
.home-page .home-features-grid > a:hover,
.home-page .home-features-grid > a:focus-visible {
  background: #fff7e8;
  border-color: #a36a32;
}
.home-page .home-feature-symbol {
  font-size: 32px;
  color: #8e1119;
  line-height: 1.2;
}
.home-page .home-features-grid h3 {
  font-size: 18px;
  margin: 9px 0 7px;
}
.home-page .home-features-grid p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 800px) {
  .home-page .home-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .home-news .section-heading {
    padding-left: 15px;
  }
  .home-page .explore-photo {
    height: 190px;
  }
}
@media (max-width: 620px) {
  .home-page .home-game-features {
    padding: 22px 14px;
  }
  .home-page .home-features-grid {
    grid-template-columns: 1fr;
  }
  .home-page .explore-photo {
    height: 220px;
  }
  .home-page .home-grid > .home-news {
    padding-top: 31px !important;
  }
  .home-page .home-news .section-heading {
    padding-left: 18px;
  }
}

/* Class directory: screenshot-inspired parchment portrait gallery. Scoped to /classes only. */
.classes-banner {
  min-height: 260px !important;
  padding-top: 92px !important;
  background-image:
    linear-gradient(90deg, #07131ef2 0%, #07131ed0 43%, #07131e12 100%),
    url('/assets/images/warrior-painted.webp') !important;
  background-position:
    center,
    right 35% !important;
  background-size: cover !important;
}
.classes-banner .wrap {
  max-width: 1150px;
}
.classes-banner h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0;
  color: #f4cb7c;
  font-variant: small-caps;
}
.classes-banner p {
  max-width: 550px;
  color: #fff4df;
  font-size: 1.1rem;
  line-height: 1.5;
}
.classes-directory {
  max-width: 1200px;
}
.classes-directory > .paper {
  padding: 22px 28px 38px;
}
.classes-directory .crumb {
  margin: 0 0 12px;
}
.classes-intro {
  max-width: 900px;
  margin: 0 0 24px;
  color: #4b3423;
}
.class-category {
  margin: 22px 0 30px;
}
.class-category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #c7a474;
  margin: 0 0 16px;
}
.class-category-heading h2 {
  font-variant: small-caps;
  margin: 0 0 6px;
  color: #3d2318;
}
.class-category-heading span {
  color: #76522b;
  font-size: 0.88rem;
}
.class-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.class-tile {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: #27190f;
  background: #f8ead0;
  border: 1px solid #cfae7a;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 3px 9px #4b291922;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.class-tile:hover,
.class-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 9px 20px #4b29193a;
}
.class-tile img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center 25%;
}
.class-tile-copy {
  display: block;
  padding: 9px 12px 12px;
}
.class-tile-copy strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.1;
  color: #28170d;
}
.class-tile-copy small {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.3;
  color: #4b3725;
}
@media (max-width: 820px) {
  .class-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .class-tile img {
    height: 145px;
  }
}
@media (max-width: 570px) {
  .class-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .classes-directory > .paper {
    padding: 18px 14px;
  }
  .class-tile img {
    height: 130px;
  }
  .class-tile-copy {
    padding: 8px;
  }
  .class-tile-copy strong {
    font-size: 1rem;
  }
  .class-tile-copy small {
    font-size: 0.77rem;
  }
  .classes-banner {
    min-height: 240px !important;
    background-position:
      center,
      right center !important;
  }
}

/* Class reference modal: applies only to class gallery and dialog. */
.classes-directory .class-tile {
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
}
.class-info-modal {
  width: min(850px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 2px solid #b88a48;
  border-radius: 9px;
  background: #f6e7c8;
  color: #2c1a10;
  box-shadow: 0 25px 100px #000b;
  overflow: hidden;
}
.class-info-modal::backdrop {
  background: #020a13d9;
  backdrop-filter: blur(4px);
}
.class-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  padding: 19px 25px 15px;
  background: linear-gradient(100deg, #061522, #182537);
  border-bottom: 3px solid #ad7e38;
  color: #f5d38b;
}
.class-modal-top h2 {
  font-size: 2rem;
  font-variant: small-caps;
  margin: 4px 0 0;
  color: #f5d38b;
}
#class-modal-kind {
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: #d7b67c;
}
#class-modal-close {
  border: 1px solid #b58a4d;
  border-radius: 4px;
  background: #640b17;
  color: #ffe6a9;
  font-size: 2rem;
  line-height: 1;
  width: 43px;
  height: 43px;
  cursor: pointer;
}
.class-modal-body {
  overflow: auto;
  max-height: calc(86vh - 175px);
  padding: 22px 28px;
  line-height: 1.55;
}
.class-modal-body h3 {
  font-size: 1.35rem;
  margin: 22px 0 10px;
  color: #502d18;
}
.class-modal-body .modal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0;
}
.class-modal-body .modal-stat {
  padding: 9px 12px;
  border: 1px solid #d3b78b;
  background: #fff5e1;
  border-radius: 4px;
}
.class-modal-body .modal-stat b {
  display: block;
  font-size: 0.75rem;
  color: #74502e;
  text-transform: capitalize;
}
.class-modal-body .modal-source-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.65;
}
.class-modal-body .modal-notice {
  font-size: 0.9rem;
  color: #704c31;
  background: #fff3da;
  border-left: 3px solid #b58a4d;
  padding: 10px 12px;
}
.class-modal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 25px;
  border-top: 1px solid #c7a16b;
  background: #f3ddb6;
}
.class-modal-bottom a {
  color: #8b101b;
}
.class-modal-bottom button {
  background: #670b16;
  border: 1px solid #ac7b3c;
  color: #ffe7b1;
  padding: 9px 20px;
  cursor: pointer;
  border-radius: 4px;
}
@media (max-width: 580px) {
  .class-modal-body {
    padding: 16px;
  }
  .class-modal-body .modal-stats {
    grid-template-columns: 1fr;
  }
  .class-modal-top {
    padding: 14px;
  }
  .class-modal-bottom {
    padding: 12px;
  }
  .class-modal-top h2 {
    font-size: 1.5rem;
  }
}

/* v39: legible offline class reference modals */
.class-info-modal {
  width: min(920px, calc(100vw - 24px));
  max-height: min(90dvh, 950px);
  display: none;
  flex-direction: column;
  background: #f6e7c8;
  color: #25180f;
}
.class-info-modal[open] {
  display: flex;
}
.class-modal-top,
.class-modal-bottom {
  flex-shrink: 0;
}
.class-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 28px 30px;
  line-height: 1.6;
  background: linear-gradient(#fff7e8, #f4e4c5);
}
.class-modal-body h3 {
  color: #4b2414;
  font-size: 1.4rem;
  margin: 22px 0 12px;
  border-bottom: 1px solid #c7a879;
  padding-bottom: 6px;
}
.modal-class-summary {
  font-size: 1.07rem;
  max-width: 75ch;
}
.class-modal-body .modal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 24px;
}
.class-modal-body .modal-stat {
  background: #fffaf0;
  border: 1px solid #d9bf93;
  border-radius: 5px;
  padding: 12px 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.class-modal-body .modal-stat dt {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #825528;
  font-weight: 700;
  margin-bottom: 4px;
}
.class-modal-body .modal-stat dd {
  margin: 0;
  font-size: 1rem;
  color: #26170e;
}
.modal-progress-wrap {
  overflow-x: auto;
}
.modal-progress {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.97rem;
}
.modal-progress th,
.modal-progress td {
  padding: 9px 12px;
  border-bottom: 1px solid #d8bf94;
  text-align: left;
  vertical-align: top;
}
.modal-progress thead {
  background: #5b2b20;
  color: #fff2d4;
}
.modal-progress tbody tr:nth-child(even) {
  background: #f3e2c2;
}
.modal-progress tbody th {
  width: 72px;
  white-space: nowrap;
}
.class-modal-body .modal-notice {
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 3px solid #b68743;
  background: #f5e6c8;
  font-size: 0.9rem;
}
@media (max-width: 620px) {
  .class-modal-body {
    padding: 16px;
  }
  .class-modal-body .modal-stats {
    grid-template-columns: 1fr;
  }
  .class-info-modal {
    max-height: 94dvh;
  }
}

/* v41: individual class artwork */
.classes-directory .class-tile img {
  height: 190px;
  object-fit: cover;
  object-position: center 28%;
  background: #10151d;
}
@media (max-width: 820px) {
  .classes-directory .class-tile img {
    height: 160px;
  }
}
@media (max-width: 570px) {
  .classes-directory .class-tile img {
    height: 145px;
  }
}

/* v43: race directory, scoped exclusively to the races page. */
.races-banner {
  min-height: 260px !important;
  padding-top: 92px !important;
  background-image:
    linear-gradient(90deg, #07131ef5 0%, #07131ed0 42%, #07131e0a 100%),
    url('/assets/images/elf-painted.webp') !important;
  background-position:
    center,
    right 35% !important;
  background-size: cover !important;
}
.races-banner h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0;
  color: #f4cb7c;
  font-variant: small-caps;
}
.races-banner p {
  max-width: 550px;
  color: #fff4df;
  font-size: 1.1rem;
  line-height: 1.5;
}
.races-directory {
  max-width: 1200px;
}
.races-directory > .paper {
  padding: 22px 28px 38px;
}
.races-directory .crumb {
  margin: 0 0 12px;
}
.races-directory .class-tile {
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
}
.races-directory .class-tile img {
  height: 205px;
  object-position: center 25%;
}
.races-directory .class-tile-copy small {
  overflow-wrap: anywhere;
}
.race-info-modal {
  display: none;
  flex-direction: column;
}
.race-info-modal[open] {
  display: flex;
}
.race-info-modal .modal-race-portrait {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border: 3px solid #bb9153;
  border-radius: 6px;
  float: right;
  margin: 0 0 15px 22px;
}
.race-info-modal .race-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  padding: 0;
  list-style: none;
}
.race-info-modal .race-feats li {
  background: #fff9ec;
  border: 1px solid #d6ba87;
  border-radius: 4px;
  padding: 7px 10px;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .races-directory > .paper {
    padding: 18px 14px;
  }
  .races-directory .class-tile img {
    height: 155px;
  }
  .race-info-modal .race-feats {
    grid-template-columns: 1fr;
  }
  .race-info-modal .modal-race-portrait {
    width: 90px;
    height: 90px;
    margin-left: 12px;
  }
}

/* v44: shared homepage header and logo across every route. */
.site-header .header-inner {
  gap: 10px;
  min-width: 0;
}
.site-header .brand {
  min-width: 246px;
  width: 246px;
  max-width: 246px;
  flex: 0 0 246px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #07121b;
  box-shadow: none;
  line-height: 1;
}
.site-header .brand:after {
  display: none;
}
.site-header .reference-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 246 / 81;
  object-fit: contain;
}
.site-header nav {
  gap: clamp(7px, 1.15vw, 18px);
  min-width: 0;
}
.site-header nav > a,
.site-header .dropdown > a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(11px, 1.05vw, 14px);
  line-height: 1.1;
}
.site-header .nav-play {
  min-width: 102px;
  padding: 10px 13px;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .site-header .brand {
    min-width: 200px;
    width: 200px;
    max-width: 200px;
    flex-basis: 200px;
  }
  .site-header nav {
    gap: 7px;
  }
  .site-header nav > a,
  .site-header .dropdown > a {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .site-header .brand {
    min-width: 205px;
    width: 205px;
    max-width: 205px;
    flex-basis: 205px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav > a,
  .site-header .dropdown > a {
    font-size: 14px;
  }
  .site-header .header-inner {
    min-height: 70px;
  }
}
@media (max-width: 360px) {
  .site-header .brand {
    min-width: 170px;
    width: 170px;
    max-width: 170px;
    flex-basis: 170px;
  }
}

/* v45: consistent site-wide header and constrained interior pages */
body:not(.home-page) .site-header {
  left: 0;
  right: 0;
  width: min(1200px, 100%);
  max-width: 1200px;
  margin-inline: auto;
  background: linear-gradient(90deg, #04101af5, #07111bdc 65%, #081421d9);
  border-bottom: 0;
}
body:not(.home-page) .site-header .header-inner {
  width: calc(100% - 30px);
  max-width: 1140px;
  margin-inline: auto;
  min-height: 81px;
}
body:not(.home-page) .site-header .brand {
  min-width: 246px !important;
  width: 246px !important;
  max-width: 246px !important;
  flex: 0 0 246px !important;
  align-self: center;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body:not(.home-page) .site-header .brand::after {
  content: none !important;
  display: none !important;
}
body:not(.home-page) .site-header .reference-logo {
  display: block !important;
  width: 246px !important;
  height: 81px !important;
  object-fit: contain !important;
}
body:not(.home-page) .site-header nav {
  gap: clamp(7px, 1.15vw, 18px) !important;
}
body:not(.home-page) .site-header nav > a,
body:not(.home-page) .site-header .dropdown > a {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  line-height: 1.1;
  font-size: clamp(11px, 1.05vw, 14px) !important;
}
body:not(.home-page) .site-header .nav-play {
  min-width: 102px !important;
  padding: 10px 13px !important;
}
body:not(.home-page) .interior,
body:not(.home-page) .interior-banner,
body:not(.home-page) .classes-directory,
body:not(.home-page) .races-directory {
  width: calc(100% - 20px) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body:not(.home-page) .interior > .paper,
body:not(.home-page) .classes-directory > .paper,
body:not(.home-page) .races-directory > .paper {
  max-width: 100%;
  min-width: 0;
}
body:not(.home-page) .class-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) and (min-width: 801px) {
  body:not(.home-page) .site-header .brand {
    min-width: 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    flex-basis: 200px !important;
  }
  body:not(.home-page) .site-header .reference-logo {
    width: 200px !important;
    height: 66px !important;
  }
  body:not(.home-page) .site-header nav {
    gap: 7px !important;
  }
  body:not(.home-page) .site-header nav > a,
  body:not(.home-page) .site-header .dropdown > a {
    font-size: 11px !important;
  }
}
@media (max-width: 800px) {
  body:not(.home-page) .site-header .brand {
    min-width: 205px !important;
    width: 205px !important;
    max-width: 205px !important;
    flex-basis: 205px !important;
  }
  body:not(.home-page) .site-header .reference-logo {
    width: 205px !important;
    height: 68px !important;
  }
  body:not(.home-page) .site-header .menu-toggle {
    display: block;
  }
  body:not(.home-page) .site-header nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    background: #081521;
  }
  body:not(.home-page) .site-header nav.open {
    display: flex;
  }
  body:not(.home-page) .site-header nav > a,
  body:not(.home-page) .site-header .dropdown > a {
    font-size: 14px !important;
  }
  body:not(.home-page) .class-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 440px) {
  body:not(.home-page) .class-gallery {
    grid-template-columns: 1fr;
  }
}

/* v46: use supplied exact logo across all pages. */
.site-header .reference-logo,
.home-page .reference-logo,
body:not(.home-page) .site-header .reference-logo {
  object-fit: contain !important;
  object-position: center !important;
}

/* v47: a soft charcoal-grey reading underlay behind the homepage hero copy only.
   The backdrop stays translucent so the dragon and city remain visible. */
.home-page .hero-inner {
  position: relative;
  isolation: isolate;
}
.home-page .hero-inner::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  top: 86px;
  bottom: 8px;
  width: min(710px, 96%);
  border-radius: 20px;
  background: radial-gradient(
    ellipse at center,
    rgba(47, 49, 51, 0.76) 0%,
    rgba(47, 49, 51, 0.62) 56%,
    rgba(47, 49, 51, 0.28) 82%,
    rgba(47, 49, 51, 0) 100%
  );
  pointer-events: none;
}
@media (max-width: 800px) {
  .home-page .hero-inner::before {
    top: 102px;
    bottom: 6px;
    width: min(690px, 100%);
  }
}
@media (max-width: 620px) {
  .home-page .hero-inner::before {
    top: 112px;
    bottom: 4px;
    width: 100%;
    border-radius: 14px;
  }
}

/* News archive and complete local article layouts — v48 */
.news-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 82px;
  min-height: 180px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(4, 13, 23, 0.94), rgba(4, 13, 23, 0.48)),
    url('/assets/images/hero-cinematic.webp') center 43% / cover;
  color: #f9e2aa;
  border-bottom: 2px solid #a77935;
}
.news-banner > .wrap {
  width: 100%;
  padding: 34px clamp(22px, 5vw, 58px);
}
.news-banner h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  color: #f5cf83;
  margin: 0.35rem 0 0.5rem;
  text-shadow: 0 3px 10px #000;
}
.news-banner p {
  margin: 0;
  color: #f6e7ca;
}
.news-banner .eyebrow {
  letter-spacing: 0.22em;
  color: #e1bd7d;
  font-size: 0.78rem;
}
.news-page {
  max-width: 1200px;
  margin-inline: auto;
}
.news-paper {
  padding: clamp(22px, 3vw, 44px) !important;
}
.news-archive-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: end;
  margin: 24px 0;
}
.news-archive-heading h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0;
}
.news-archive-heading p {
  margin: 6px 0;
  color: #64503b;
}
.news-archive-heading label {
  font-size: 0.85rem;
  min-width: min(100%, 270px);
}
.news-archive-heading input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #c9ab7c;
  background: #fffaf0;
  border-radius: 4px;
  margin-top: 5px;
}
.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.news-archive-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid #cba66e;
  border-radius: 5px;
  background: rgba(255, 248, 229, 0.68);
  box-shadow: 0 2px 8px rgba(67, 35, 13, 0.08);
}
.news-archive-card time,
.news-article-meta {
  color: #775938;
  font-size: 0.82rem;
}
.news-archive-card h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 10px 0;
}
.news-archive-card h3 a {
  color: #281b12;
  text-decoration: none;
}
.news-archive-card p {
  line-height: 1.55;
  margin: 0 0 16px;
}
.news-archive-more {
  margin-top: auto;
  color: #9b1b1b;
  font-weight: 700;
  text-decoration: none;
}
.news-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.news-article {
  min-width: 0;
}
.news-article-header {
  border-bottom: 1px solid #c7a77a;
  margin: 20px 0 25px;
  padding-bottom: 19px;
}
.news-article-kicker {
  color: #a0261a;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
}
.news-article-header h2 {
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  line-height: 1.12;
  color: #25170f;
  margin: 0 0 14px;
}
.news-article-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0;
}
.news-article-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #2c211a;
  overflow-wrap: anywhere;
}
.news-article-body p {
  margin: 0 0 1.25em;
}
.news-article-body h2 {
  font-size: 1.55rem;
  color: #5b2618;
  margin: 1.65em 0 0.6em;
  line-height: 1.2;
}
.news-article-body h3 {
  font-size: 1.25rem;
  color: #5b2618;
  margin: 1.5em 0 0.55em;
}
.news-article-body ul,
.news-article-body ol {
  padding-left: 1.6em;
  margin: 0 0 1.3em;
}
.news-article-body li {
  margin-bottom: 0.45em;
}
.news-article-body a {
  color: #a21d1d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-article-body pre {
  white-space: pre-wrap;
  overflow-x: auto;
  padding: 16px;
  background: transparent;
  border-left: 3px solid #ad874f;
  font:
    0.85rem/1.5 ui-monospace,
    monospace;
}
.news-article-footer {
  margin-top: 36px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid #c9ad84;
  background: transparent;
  color: #67251e;
}
.news-article-footer .news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid #b99863;
  background: linear-gradient(#fff5e1, #ead6b1);
  box-shadow:
    inset 0 0 0 2px #fff8ea70,
    0 2px 5px #4b2d1710;
  color: #722c23;
  font:
    600 13px/1.5 Cinzel,
    Georgia,
    serif;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.news-article-footer .news-back-link > span:first-child {
  font:
    20px/1 Georgia,
    serif;
  color: #976e35;
}
.news-article-footer .news-back-link:hover {
  background: #f9e9ca;
  border-color: #8c6434;
  color: #9b1b1b;
}
.news-article-footer .news-back-link:focus-visible {
  outline: 2px solid #8b3328;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .news-archive-grid,
  .news-article-layout {
    grid-template-columns: 1fr;
  }
  .news-archive-heading {
    display: block;
  }
  .news-archive-heading label {
    display: block;
    margin-top: 18px;
  }
  .news-paper {
    padding: 20px !important;
  }
  .news-banner {
    min-height: 140px;
  }
}

/* v49: image-led news archive and local article media */
.news-archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.news-archive-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #cba66e;
  background: #fff4df;
  box-shadow: 0 7px 19px rgba(56, 29, 13, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.news-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(56, 29, 13, 0.23);
}
.news-archive-image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #162330;
}
.news-archive-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.news-archive-card:hover .news-archive-image img {
  transform: scale(1.045);
}
.news-archive-image-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(145deg, rgba(5, 13, 25, 0.05), rgba(5, 13, 25, 0.25)),
    url('/assets/images/hero-cinematic.webp') center/cover;
}
.news-archive-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}
.news-archive-card h3 {
  font-size: 1.32rem;
  line-height: 1.22;
  margin: 10px 0;
}
.news-archive-card p {
  color: #493525;
  line-height: 1.52;
}
.news-archive-more {
  padding-top: 8px;
}
.news-article-featured {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid #c9a578;
  border-radius: 6px;
}
.news-article-featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}
.news-inline-figure {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid #d1b18a;
  border-radius: 6px;
  background: #f5e9d3;
}
.news-inline-figure img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 980px) {
  .news-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .news-archive-grid {
    grid-template-columns: 1fr;
  }
  .news-archive-card-content {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .news-archive-card,
  .news-archive-image img {
    transition: none;
  }
}

/* News archive: bespoke article illustrations and consistent responsive cards (v53) */
.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.news-archive-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f9ecd5;
  border: 1px solid #b78b50;
  box-shadow:
    0 5px 0 #b88b5430,
    0 12px 26px #30201325;
}
.news-archive-image {
  display: block;
  width: 100%;
  aspect-ratio: 2.25/1;
  overflow: hidden;
  background: #152637;
}
.news-archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-archive-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 17px 19px 20px;
}
.news-archive-card h3 {
  font-size: clamp(19px, 1.8vw, 23px);
  margin: 0;
  line-height: 1.22;
}
.news-archive-card time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #855b32;
}
.news-archive-card p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: #4e392a;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-archive-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: #9e1c20;
}
.news-archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px #30201332;
}
@media (max-width: 900px) {
  .news-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .news-archive-grid {
    grid-template-columns: 1fr;
  }
  .news-archive-image {
    aspect-ratio: 2.1/1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .news-archive-card {
    transition: none;
  }
  .news-archive-card:hover {
    transform: none;
  }
}

/* v57: hide date plates baked into six legacy card illustrations.
   The article publication date remains visible as normal card text. */
.news-archive-image:has(img[src$='new-perks-system-web-client-more.webp']) img,
.news-archive-image:has(
    img[src$='golems-crafting-talents-and-a-whole-lot-of-qol-and-bug-fixes.webp']
  )
  img,
.news-archive-image:has(img[src$='june-2025-update.webp']) img,
.news-archive-image:has(
    img[src$='increased-focus-on-rp-with-new-tools-loads-of-fixes-and-improvements.webp']
  )
  img,
.news-archive-image:has(
    img[src$='bug-fixes-and-quality-of-life-improvements-2.webp']
  )
  img,
.news-archive-image:has(img[src$='dragonriders-and-dialogue-quests.webp']) img,
.news-archive-image:has(
    img[src$='knights-of-takhisis-kapak-draconians-clans.webp']
  )
  img {
  height: 138%;
  object-fit: cover;
  object-position: center top;
  transform: none;
}
.news-archive-image:hover:has(img[src$='new-perks-system-web-client-more.webp'])
  img,
.news-archive-image:hover:has(
    img[src$='golems-crafting-talents-and-a-whole-lot-of-qol-and-bug-fixes.webp']
  )
  img,
.news-archive-image:hover:has(img[src$='june-2025-update.webp']) img,
.news-archive-image:hover:has(
    img[src$='increased-focus-on-rp-with-new-tools-loads-of-fixes-and-improvements.webp']
  )
  img,
.news-archive-image:hover:has(
    img[src$='bug-fixes-and-quality-of-life-improvements-2.webp']
  )
  img,
.news-archive-image:hover:has(img[src$='dragonriders-and-dialogue-quests.webp'])
  img,
.news-archive-image:hover:has(
    img[src$='knights-of-takhisis-kapak-draconians-clans.webp']
  )
  img {
  transform: none;
}
/* Tables authored in the news editor. */
.news-article-body table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.news-article-body th,
.news-article-body td {
  padding: 10px 16px;
  border: 1px solid #c9b38f;
  text-align: left;
  min-width: 100px;
}
.news-article-body th {
  background: #e8d6b9;
}
.news-article-body pre {
  max-width: 100%;
  overflow-x: auto;
}

.news-article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.news-article-body img {
  max-width: 100%;
  height: auto;
}

/* Homepage news uses the same saved card image as the archive. */
.home-page .news-card .news-art:has(img) {
  display: block;
  background: none !important;
  overflow: hidden;
}
.home-page .news-card .news-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cms-page-body img {
  max-width: 100%;
  height: auto;
}
.cms-page-body pre {
  overflow-x: auto;
  white-space: pre-wrap;
}
.cms-page-body pre code {
  background: transparent;
  padding: 0;
}
.cms-page-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 20px 0;
}
.cms-page-body th,
.cms-page-body td {
  border: 1px solid #c7ad84;
  padding: 10px 14px;
  min-width: 90px;
}
/* Long CMS menus collapse into the same menu control used on mobile. */
body .site-header.is-menu-compact .menu-toggle {
  display: block;
  flex-shrink: 0;
}
body .site-header.is-menu-compact #nav {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 75vh;
  overflow-y: auto;
  background: #0b1c2b;
  padding: 22px;
  flex-direction: column;
  align-items: stretch;
}
body .site-header.is-menu-compact #nav.open {
  display: flex !important;
}
body .site-header.is-menu-compact .dropdown-menu {
  position: static;
  display: grid;
  background: transparent;
  border: 0;
  padding: 8px 0 8px 18px;
}
body .site-header.is-menu-compact #nav > a {
  align-self: flex-start;
}
/* Public wiki uses the site's parchment and burgundy reference styling. */
.wiki-index-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 30px;
  margin: 25px 0;
}
.wiki-index-heading h2 {
  margin: 0 0 10px;
}
.wiki-index-heading p {
  margin: 0;
  color: #735d43;
}
.wiki-index-heading form {
  min-width: min(100%, 300px);
}
.wiki-index-heading label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.wiki-index-heading form > div {
  display: flex;
  gap: 8px;
}
.wiki-index-heading input {
  min-width: 0;
  flex: 1;
  padding: 11px;
  border: 1px solid #b79b70;
  background: #fff9ec;
  color: #35271c;
  font:
    14px Georgia,
    serif;
  border-radius: 3px;
}
.wiki-index-heading button {
  cursor: pointer;
}
.wiki-count,
.wiki-updated {
  color: #7e6446;
  font-size: 12px;
}
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.wiki-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff5e2;
  border: 1px solid #c4a576;
  border-radius: 5px;
  min-width: 0;
}
.wiki-card h3 {
  font-size: 21px;
  margin: 0 0 13px;
  overflow-wrap: anywhere;
}
.wiki-card h3 a {
  color: #65271f;
}
.wiki-card p {
  margin: 0 0 18px;
  color: #67503b;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.wiki-read {
  margin-top: auto;
  color: #962c23;
  font-size: 13px;
  font-weight: bold;
}
.wiki-entry {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.wiki-backlinks {
  border-top: 1px solid #c7aa7e;
  padding-top: 20px;
  margin-top: 32px;
}
.wiki-backlinks h2 {
  font-size: 20px;
}
.wiki-backlinks a {
  color: #8f2c24;
  text-decoration: underline;
}
.wiki-empty {
  padding: 30px 0;
  color: #6e563c;
}
.wiki-banner h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 980px) {
  .wiki-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .wiki-grid {
    grid-template-columns: 1fr;
  }
  .wiki-index-heading {
    display: block;
  }
  .wiki-index-heading form {
    margin-top: 22px;
  }
}
/* Frame the class illustrations inside the art, excluding the source grid's rails
   and caption strips. Preserve the bitmap's proportions while clipping its edges. */
.classes-directory .class-portrait {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 364.8/387.6;
  overflow: hidden;
  background: #15212a;
  border-bottom: 1px solid #b9945f;
}
.classes-directory .class-portrait img {
  position: absolute;
  display: block;
  max-width: none;
  width: 131.579%;
  height: auto;
  left: -13.158%;
  top: -3.529%;
  object-fit: fill;
  object-position: initial;
}
.classes-directory .class-tile-copy {
  min-height: 112px;
  padding: 14px 15px 16px;
}
.classes-directory .class-tile-copy strong {
  font-size: 1.12rem;
  line-height: 1.3;
  margin-bottom: 7px;
}
.classes-directory .class-tile-copy small {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  color: #675039;
}
.classes-directory .class-tile:focus-visible {
  outline: 3px solid #923d24;
  outline-offset: 3px;
}
@media (max-width: 570px) {
  .classes-directory .class-tile-copy {
    min-height: 0;
    padding: 12px;
  }
  .classes-directory .class-tile-copy strong {
    font-size: 1.05rem;
  }
}

/* Restored standalone artwork already fills its frame; no sheet cropping needed. */
.classes-directory .class-portrait-hd img {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Full feature directory, following the original feature-by-feature overview. */
.features-directory {
  max-width: 1200px;
}
.features-directory > .paper {
  padding: 28px 32px 36px;
}
.features-introduction {
  max-width: 850px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #59412d;
  margin-bottom: 26px;
}
.features-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-entry {
  padding: 22px;
  background: #fff9ec;
  border: 1px solid #d9bd8e;
  border-top: 3px solid #a77530;
  border-radius: 5px;
  box-shadow: 0 3px 9px #4b29190c;
}
.feature-entry h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #43291a;
}
.feature-entry p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 10px;
  color: #503c2b;
}
.feature-entry p:last-child {
  margin-bottom: 0;
}
.feature-entry a {
  color: #7c351c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feature-entry a:hover {
  color: #a52317;
}
.features-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #c7a474;
}
.features-start h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.features-start p {
  margin: 0;
}
.features-start .btn {
  flex-shrink: 0;
}
.class-category[id] {
  scroll-margin-top: 110px;
}
@media (max-width: 900px) {
  .features-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 570px) {
  .features-directory > .paper {
    padding: 20px 16px;
  }
  .features-catalog {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-entry {
    padding: 20px;
  }
  .features-start {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Illustrated faction guide. */
.factions-banner {
  background-image:
    linear-gradient(90deg, #07131eef, #07131e70),
    url('/assets/images/factions/knights-of-solamnia.webp') !important;
  background-position:
    center,
    center 40% !important;
}
.factions-directory {
  max-width: 1200px;
}
.factions-directory > .paper {
  padding: 28px 32px 36px;
}
.factions-intro {
  max-width: 940px;
  line-height: 1.8;
  color: #503c2b;
}
.factions-intro p {
  margin: 0 0 14px;
}
.factions-intro code,
.faction-copy code {
  background: #e8d4ad;
  border-radius: 3px;
  padding: 2px 6px;
  color: #43291a;
}
.factions-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
  padding: 20px 0;
  border-top: 1px solid #c7a474;
  border-bottom: 1px solid #c7a474;
}
.factions-jumps a {
  padding: 8px 13px;
  border: 1px solid #b99660;
  border-radius: 4px;
  background: #fff8e9;
  color: #5a321f;
  text-decoration: none;
  font-size: 0.95rem;
}
.factions-jumps a:hover,
.factions-jumps a:focus-visible {
  background: #5a321f;
  color: #fff3d4;
}
.factions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.faction-card {
  background: #fff9ec;
  border: 1px solid #cfad79;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 16px #4b291915;
  scroll-margin-top: 110px;
}
.faction-art {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: center 30%;
}
.faction-copy {
  padding: 24px 26px;
}
.faction-copy h2 {
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0 0 18px;
  color: #43291a;
  font-variant: small-caps;
}
.faction-copy p,
.faction-copy li {
  color: #503c2b;
  font-size: 1rem;
  line-height: 1.75;
}
.faction-copy p {
  margin: 0 0 15px;
}
.faction-copy p:last-child {
  margin-bottom: 0;
}
.faction-copy ul {
  padding-left: 22px;
  margin: 0 0 18px;
}
.faction-copy li {
  margin-bottom: 8px;
}
.faction-membership {
  grid-column: 1/-1;
  background: #edddbc;
  border-left: 4px solid #a77530;
}
.faction-membership .faction-copy {
  padding: 24px 28px;
}
@media (max-width: 700px) {
  .factions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .factions-directory > .paper {
    padding: 20px 16px;
  }
  .faction-copy {
    padding: 20px;
  }
  .faction-art {
    height: 210px;
  }
  .faction-copy h2 {
    font-size: 1.45rem;
  }
  .factions-jumps {
    gap: 8px;
  }
  .factions-jumps a {
    font-size: 0.88rem;
  }
  .faction-membership .faction-copy {
    padding: 20px;
  }
}

.factions-directory .faction-art {
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: center;
}

.spell-sort-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0;
}
.spell-sort-controls label {
  font-weight: 600;
}
.spell-sort-controls select {
  padding: 10px 12px;
  border: 1px solid #b8a787;
  border-radius: 5px;
  background: #fff;
  color: #302219;
  font: inherit;
  max-width: 100%;
}
.spell-sort-controls p {
  flex-basis: 100%;
  margin: 0;
  color: #654c35;
  font-size: 0.9rem;
  line-height: 1.5;
}
.spell-sort-controls select:focus-visible {
  outline: 3px solid #b99048;
  outline-offset: 2px;
}

.spell-circle-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 20px 0;
}
.spell-circle-controls > label {
  font-weight: 600;
}
.spell-circle-controls select {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8a787;
  border-radius: 5px;
  background: #fff;
  color: #302219;
  font: inherit;
}
.spell-circle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spell-circle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 12px;
  background: #ead6af;
  border: 1px solid #b6955e;
  border-radius: 20px;
  color: #43291a;
  font-size: 0.95rem;
}
.spell-circle-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5a321f;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.spell-circle-chip button:hover {
  background: #d6bb8b;
}
.spell-circle-controls p {
  flex-basis: 100%;
  margin: 0;
  color: #654c35;
  font-size: 0.9rem;
  line-height: 1.5;
}
.spell-circle-controls select:focus-visible,
.spell-circle-chip button:focus-visible {
  outline: 3px solid #b99048;
  outline-offset: 2px;
}
.spell-circle-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media print {
  .spell-circle-controls,
  .spell-sort-controls {
    display: none !important;
  }
}
/* Comprehensive crafting wiki: chapter navigation and readable reference data. */
.crafting-guide-page {
  max-width: 1280px;
}
.crafting-guide-page > .paper {
  padding: 28px 32px 36px;
}
.crafting-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.crafting-sidebar {
  position: sticky;
  top: 105px;
  max-height: calc(100vh - 125px);
  overflow: auto;
  padding-right: 4px;
}
.crafting-sidebar details {
  border: 1px solid #ceb17f;
  border-radius: 5px;
  background: #f6e8cb;
  margin-bottom: 16px;
}
.crafting-sidebar summary {
  padding: 14px 16px;
  font-weight: 700;
  color: #43291a;
  cursor: pointer;
}
.crafting-sidebar nav {
  display: grid;
  padding: 0 8px 8px;
}
.crafting-sidebar a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 9px;
  color: #5b3b22;
  text-decoration: none;
  line-height: 1.4;
  font-size: 0.95rem;
  border-radius: 3px;
}
.crafting-sidebar a span {
  font-size: 0.72rem;
  color: #8a693a;
}
.crafting-sidebar a:hover,
.crafting-sidebar a:focus-visible {
  background: #e6d1a8;
}
.crafting-sidebar a[aria-current] {
  background: #5a3420;
  color: #fff3d5;
}
.crafting-sidebar a[aria-current] span {
  color: #edcf92;
}
.crafting-sidebar .crafting-toc a {
  font-size: 0.87rem;
  padding: 7px 9px;
}
.crafting-article {
  min-width: 0;
  max-width: none !important;
}
.crafting-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #503c2b;
}
.crafting-start {
  padding: 25px;
  margin: 22px 0 30px;
  border: 1px solid #b99158;
  border-left: 4px solid #a77530;
  border-radius: 5px;
  background: #f3e2c0;
}
.crafting-start .eyebrow {
  color: #805322;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
}
.crafting-start h2 {
  margin: 9px 0 12px;
  font-size: 1.6rem;
}
.crafting-start p {
  line-height: 1.7;
}
.crafting-topics-heading {
  margin: 0 0 18px;
}
.crafting-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.crafting-topic {
  padding: 21px;
  border: 1px solid #d2b98f;
  border-radius: 5px;
  background: #fff9eb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.crafting-topic h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #43291a;
}
.crafting-topic p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: #503c2b;
}
.crafting-topic > a {
  margin-top: auto;
  color: #7c351c;
  font-weight: 700;
  text-underline-offset: 4px;
  font-size: 0.85rem;
}
.crafting-chapter-label {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  color: #805322;
  padding-bottom: 14px;
  border-bottom: 1px solid #d1b688;
  margin-bottom: 22px;
}
.crafting-guide-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #423322;
  overflow-wrap: anywhere;
}
.crafting-guide-body h2 {
  font-size: 1.65rem;
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #cfb485;
  scroll-margin-top: 110px;
}
.crafting-guide-body h3 {
  font-size: 1.22rem;
  margin: 28px 0 12px;
  scroll-margin-top: 110px;
}
.crafting-guide-body li {
  margin-bottom: 8px;
}
.crafting-guide-body a {
  color: #7c351c;
  text-underline-offset: 3px;
}
.crafting-guide-body pre {
  padding: 18px;
  background: #18232b;
  color: #f8e7c5;
  border-radius: 5px;
  overflow: auto;
  white-space: pre;
  max-width: 100%;
  font-size: 0.9rem;
  line-height: 1.7;
}
.crafting-guide-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  white-space: pre;
}
.crafting-guide-body :not(pre) > code {
  padding: 2px 6px;
  background: #e9d7b3;
  border-radius: 3px;
  color: #52311d;
}
.crafting-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #cdb183;
  border-radius: 5px;
  margin: 22px 0;
  background: #fff9ec;
}
.crafting-table-wrap table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
  line-height: 1.65;
}
.crafting-table-wrap th,
.crafting-table-wrap td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dfcba9;
  min-width: 130px;
}
.crafting-table-wrap thead th {
  background: #5a3420;
  color: #fff0d0;
}
.crafting-table-wrap tbody th {
  width: 32%;
  color: #51331f;
  font-weight: 700;
}
.crafting-table-wrap tr:nth-child(even) {
  background: #f4e7cb;
}
.crafting-table-wrap p {
  margin: 0 0 8px;
}
.crafting-table-wrap p:last-child {
  margin-bottom: 0;
}
.crafting-pagination {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 32px 0 20px;
  padding-top: 22px;
  border-top: 1px solid #c7a474;
}
.crafting-pagination a {
  display: grid;
  gap: 6px;
  color: #64371e;
  text-decoration: none;
  max-width: 48%;
  font-weight: 700;
  line-height: 1.5;
}
.crafting-pagination small {
  font-weight: 400;
  font-size: 0.8rem;
  color: #806341;
}
.crafting-pagination .crafting-next {
  margin-left: auto;
  text-align: right;
}
.crafting-source {
  font-size: 0.83rem;
  color: #7b6448;
  line-height: 1.6;
}
.crafting-source a {
  color: inherit;
}
@media (max-width: 900px) {
  .crafting-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
  }
  .crafting-topic-grid {
    grid-template-columns: 1fr;
  }
  .crafting-guide-page > .paper {
    padding: 22px;
  }
}
@media (max-width: 700px) {
  .crafting-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .crafting-sidebar {
    position: static;
    max-height: none;
    padding: 0;
  }
  .crafting-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crafting-sidebar .crafting-toc nav {
    grid-template-columns: 1fr;
  }
  .crafting-sidebar a {
    font-size: 0.88rem;
  }
  .crafting-guide-page > .paper {
    padding: 18px 14px;
  }
  .crafting-start {
    padding: 20px;
  }
  .crafting-guide-body h2 {
    font-size: 1.4rem;
  }
  .crafting-topic-grid {
    grid-template-columns: 1fr;
  }
  .crafting-guide-body pre {
    font-size: 0.8rem;
    padding: 14px;
  }
  .crafting-table-wrap th,
  .crafting-table-wrap td {
    padding: 10px;
  }
  .crafting-pagination a {
    font-size: 0.9rem;
  }
}
/* Keep guide navigation in the document flow, independent of the mobile site menu. */
.crafting-sidebar nav,
.crafting-pagination {
  position: static;
  inset: auto;
  background: transparent;
  flex-direction: row;
  letter-spacing: normal;
}
.crafting-sidebar nav {
  align-items: stretch;
  gap: 0;
}
.crafting-pagination {
  align-items: stretch;
}
.crafting-sidebar nav > a,
.crafting-pagination > a {
  letter-spacing: normal;
}
/* Object database uses the shared site shell without Bootstrap or external assets. */
.objectdb {
  max-width: 1280px;
}
.objectdb > .paper {
  padding: 28px 32px 36px;
}
.objectdb-tabs,
.objectdb-pagination {
  position: static;
  inset: auto;
  background: transparent;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 22px 0 28px;
}
.objectdb-tabs a {
  padding: 10px 16px;
  border: 1px solid #b99b6d;
  border-radius: 4px;
  color: #623b24;
  font-size: 0.95rem;
  letter-spacing: normal;
  background: #fff7e7;
}
.objectdb-tabs a[aria-current] {
  background: #5b3420;
  color: #fff1ce;
}
.objectdb fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.objectdb legend {
  font-size: 1.5rem;
  font-weight: 700;
  color: #43291a;
  margin-bottom: 18px;
}
.objectdb-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.objectdb label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  color: #513a28;
  font-weight: 700;
  min-width: 0;
}
.objectdb input,
.objectdb select {
  font:
    400 1rem/1.4 Georgia,
    serif;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #baa078;
  border-radius: 4px;
  padding: 11px 12px;
  color: #302219;
  background: #fffaf0;
}
.objectdb input:focus-visible,
.objectdb select:focus-visible,
.objectdb-table-wrap:focus-visible {
  outline: 3px solid #b99048;
  outline-offset: 2px;
}
.objectdb-help {
  font-size: 0.88rem;
  color: #705b40;
  line-height: 1.6;
}
.objectdb-advanced {
  border: 1px solid #cdb58d;
  border-radius: 5px;
  margin: 22px 0;
  background: #f4e5c8;
}
.objectdb-advanced summary {
  cursor: pointer;
  padding: 16px;
  font-weight: 700;
  color: #5a3420;
}
.objectdb-advanced .objectdb-fields {
  padding: 4px 18px 20px;
}
.objectdb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
}
.objectdb-actions label {
  margin-left: auto;
  min-width: 220px;
}
.objectdb-reset {
  padding: 11px 0;
  color: #7c351c;
  text-decoration: underline;
}
.objectdb .btn {
  cursor: pointer;
}
.objectdb-empty {
  border: 1px dashed #b99b6d;
  border-radius: 5px;
  padding: 28px;
  text-align: center;
  margin-top: 28px;
  background: #fff8e9;
}
.objectdb-empty h2 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.objectdb-empty a,
.objectdb-text-link {
  color: #7c351c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.objectdb-results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 18px;
  border-bottom: 1px solid #c9aa7a;
}
.objectdb-results-heading h2 {
  font-size: 1.6rem;
  margin: 0 0 12px;
}
.objectdb-results-heading p {
  font-size: 0.9rem;
  color: #715338;
  margin: 0;
}
.objectdb-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.objectdb-item {
  min-width: 0;
  padding: 22px;
  background: #fff9ec;
  border: 1px solid #ccb080;
  border-radius: 5px;
  overflow-wrap: anywhere;
  box-shadow: 0 3px 10px #4b29190d;
}
.objectdb-item-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.objectdb-item h3 {
  font-size: 1.22rem;
  line-height: 1.4;
  margin: 5px 0 18px;
  color: #43291a;
}
.objectdb-kicker {
  font-size: 0.75rem;
  color: #84603b;
}
.objectdb-enhancement {
  color: #896018;
  white-space: nowrap;
  margin-left: 6px;
}
.objectdb-level {
  padding: 4px 8px;
  border: 1px solid #d5bc91;
  background: #f1e2c4;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  color: #67431f;
}
.objectdb-item-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.objectdb-item-stats div {
  min-width: 0;
}
.objectdb-item-stats dt {
  font-size: 0.75rem;
  color: #806341;
}
.objectdb-item-stats dd {
  font-size: 0.93rem;
  margin: 2px 0 0;
  color: #422f20;
}
.objectdb-bonuses {
  border-top: 1px solid #e0ccaa;
  padding-top: 12px;
}
.objectdb-bonuses h4 {
  font-size: 0.9rem;
  margin: 0 0 7px;
  color: #5c3b20;
}
.objectdb-bonuses ul {
  padding-left: 19px;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 16px;
  color: #57402a;
}
.objectdb-item-note {
  font-size: 0.84rem;
  line-height: 1.7;
  margin: 6px 0;
  color: #634e35;
}
.objectdb-item-note strong {
  color: #52351f;
}
.objectdb-pagination {
  justify-content: center;
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid #c7a474;
}
.objectdb-pagination a {
  color: #7c351c;
  border: 1px solid #b99b6d;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.95rem;
  letter-spacing: normal;
}
.objectdb-pagination span {
  font-size: 0.9rem;
  padding: 8px;
}
.objectdb-reference-intro {
  max-width: 900px;
}
.objectdb-reference-intro h2 {
  font-size: 1.6rem;
}
.objectdb-reference-intro p {
  line-height: 1.8;
  color: #5a422b;
}
.objectdb-reference-controls {
  display: flex;
  align-items: end;
  gap: 24px;
  margin: 25px 0 18px;
  flex-wrap: wrap;
}
.objectdb-reference-controls label {
  width: 300px;
  max-width: 100%;
}
.objectdb-slot-picker {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.objectdb-slot-picker label {
  min-width: 230px;
}
.objectdb-table-wrap {
  max-width: 100%;
  max-height: 72vh;
  overflow: auto;
  border: 1px solid #c4a372;
  border-radius: 5px;
  background: #fff9ec;
}
.objectdb-matrix {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 0.88rem;
  line-height: 1.5;
}
.objectdb-matrix caption {
  text-align: left;
  padding: 14px 16px;
  color: #705238;
  background: #f0dfbf;
}
.objectdb-matrix th,
.objectdb-matrix td {
  padding: 11px 13px;
  border-bottom: 1px solid #ddc7a3;
  border-right: 1px solid #e4d1b0;
  text-align: center;
  white-space: nowrap;
}
.objectdb-matrix thead th {
  position: sticky;
  top: 0;
  background: #5b3420;
  color: #fff1ce;
  z-index: 2;
}
.objectdb-matrix th:first-child {
  position: sticky;
  left: 0;
  background: #f5e7cb;
  text-align: left;
  z-index: 1;
  color: #50331f;
  min-width: 160px;
}
.objectdb-matrix thead th:first-child {
  z-index: 3;
  background: #5b3420;
  color: #fff1ce;
}
.objectdb-matrix tbody tr:nth-child(even) {
  background: #f4e8d0;
}
.objectdb-matrix a {
  color: #7c351c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.objectdb-matrix td a {
  display: block;
  min-width: 26px;
  padding: 3px 0;
  font-weight: 700;
}
.objectdb-matrix thead a {
  color: #fff1ce;
}
.objectdb-matrix tfoot {
  font-weight: 700;
  background: #e8d2aa;
}
.objectdb [hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .objectdb-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .objectdb-results {
    grid-template-columns: 1fr;
  }
  .objectdb > .paper {
    padding: 22px;
  }
  .objectdb-tabs {
    align-items: stretch;
  }
}
@media (max-width: 520px) {
  .objectdb > .paper {
    padding: 18px 14px;
  }
  .objectdb-fields {
    grid-template-columns: 1fr;
  }
  .objectdb-tabs a {
    padding: 9px 11px;
    font-size: 0.85rem;
  }
  .objectdb-actions label {
    width: 100%;
    margin: 0;
  }
  .objectdb-results-heading {
    display: block;
  }
  .objectdb-results-heading p {
    margin-bottom: 12px;
  }
  .objectdb-item {
    padding: 18px;
  }
  .objectdb-item-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .objectdb-slot-picker label {
    width: 100%;
  }
  .objectdb-matrix th,
  .objectdb-matrix td {
    padding: 9px;
  }
  .objectdb-matrix th:first-child {
    min-width: 140px;
  }
  .objectdb-advanced .objectdb-fields {
    padding: 4px 14px 16px;
  }
}

/* Place main feature highlights between news and the Ansalon location guide. */
.home-page .home-grid > .home-game-features {
  order: 1 !important;
  border-top: 0;
  border-bottom: 1px solid #b89061;
  padding: 28px 26px 32px;
}
.home-page .home-grid > .home-explore {
  order: 2 !important;
}
.home-page .home-features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.home-page .home-features-grid > a {
  padding: 23px 18px;
}
.home-page .home-features-grid p {
  font-size: 14px;
  line-height: 1.65;
}
.home-page .home-features-intro {
  text-align: left;
  line-height: 1.7;
  margin: 10px 0 22px;
}
@media (max-width: 800px) {
  .home-page .home-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .home-page .home-grid > .home-game-features {
    padding: 24px 14px;
  }
  .home-page .home-features-grid {
    grid-template-columns: 1fr;
  }
  .home-page .home-game-features .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .home-page .home-game-features .section-heading a {
    white-space: nowrap;
  }
}
@media (max-width: 800px) {
  .home-page .site-header #nav {
    display: none !important;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: #081521;
  }
  .home-page .site-header #nav.open {
    display: flex !important;
  }
  .home-page .site-header .menu-toggle {
    display: block !important;
  }
}

.class-modal-bottom {
  justify-content: flex-end;
}

/* Match the shared footer to the site's centered content width. */
.site-footer {
  width: min(1200px, calc(100% - 20px));
  margin-inline: auto;
  padding: 30px 0;
}
.site-footer > .wrap {
  width: calc(100% - 52px);
  max-width: 1140px;
}
.site-footer .footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 18px;
  flex-wrap: wrap;
  max-width: 680px;
}
.site-footer .footer-links a {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.site-footer .footer-links .footer-patreon {
  color: #efc77c;
  border: 1px solid #8e6935;
  border-radius: 4px;
  padding: 7px 12px;
}
.site-footer .footer-patreon:hover {
  color: #fff1cb;
  background: #3d291b;
}
.site-footer .legal {
  line-height: 1.7;
}
@media (max-width: 760px) {
  .site-footer > .wrap {
    width: calc(100% - 28px);
  }
  .site-footer .footer-links {
    justify-content: flex-start;
  }
  .site-footer .footer-inner {
    gap: 16px;
  }
}

/* Setting and player activities share one compact homepage section. */
.home-page .home-grid > .home-adventure {
  order: 2 !important;
  padding: 28px 26px 32px;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
}
.adventure-heading {
  max-width: 790px;
  margin-bottom: 24px;
}
.adventure-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #875326;
}
.adventure-heading h2 {
  font-size: 28px;
  font-variant: small-caps;
  margin: 7px 0 12px;
  color: #3b2718;
}
.adventure-heading p {
  margin: 0;
  color: #59402a;
  line-height: 1.7;
}
.adventure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 30px;
  align-items: stretch;
}
.adventure-landscape {
  margin: 0;
  min-width: 0;
  border: 1px solid #b99562;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #10202b;
}
.adventure-landscape img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  flex: 1;
}
.adventure-landscape figcaption {
  padding: 13px 17px;
  color: #f1dab0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.adventure-paths {
  display: grid;
  gap: 0;
  min-width: 0;
}
.adventure-paths article {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #cbb086;
}
.adventure-paths article:first-child {
  padding-top: 0;
}
.adventure-paths article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.adventure-number {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #9a733e;
  flex-shrink: 0;
}
.adventure-paths h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #43291a;
}
.adventure-paths p {
  margin: 0 0 11px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #59402a;
}
.adventure-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}
.adventure-links a {
  color: #8d251d;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.adventure-links a:hover {
  color: #b21d20;
}
.adventure-links a:focus-visible {
  outline: 2px solid #8d251d;
  outline-offset: 4px;
}
@media (max-width: 800px) {
  .adventure-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .adventure-landscape img {
    height: 270px;
    min-height: 0;
    max-height: 270px;
    flex: none;
  }
  .adventure-paths article {
    padding: 20px 0;
  }
}
@media (max-width: 620px) {
  .home-page .home-grid > .home-adventure {
    padding: 24px 14px 28px;
  }
  .adventure-heading h2 {
    font-size: 25px;
  }
  .adventure-landscape img {
    height: 210px;
    max-height: 210px;
  }
  .adventure-paths article {
    gap: 12px;
  }
  .adventure-landscape figcaption {
    font-size: 0.82rem;
  }
}
/* Ansalon starting cities and interactive setting atlas. */
.ansalon-banner {
  background-image:
    linear-gradient(90deg, #07131ef2, #07131e80),
    url('/assets/images/palanthas.png') !important;
  background-position:
    center,
    center 45% !important;
}
.ansalon-page {
  max-width: 1280px;
}
.ansalon-page > .paper {
  padding: 30px 32px 36px;
}
.ansalon-section-heading {
  max-width: 830px;
  margin-bottom: 24px;
}
.ansalon-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #875326;
  font-weight: 700;
}
.ansalon-section-heading h2,
.ansalon-era h2 {
  font-size: 1.9rem;
  margin: 8px 0 14px;
}
.ansalon-section-heading p {
  color: #59412c;
  line-height: 1.8;
  margin: 0;
}
.ansalon-starters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.ansalon-starters article {
  min-width: 0;
  border: 1px solid #c5a372;
  border-radius: 6px;
  overflow: hidden;
  background: #fff8e8;
  box-shadow: 0 4px 12px #51321c17;
}
.ansalon-starters img {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: cover;
}
.ansalon-starters article > div {
  padding: 24px;
}
.ansalon-city-tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #8a6333;
}
.ansalon-starters h3 {
  font-size: 1.7rem;
  margin: 8px 0 12px;
  color: #43291a;
}
.ansalon-starters p {
  font-size: 1rem;
  line-height: 1.8;
  color: #59412c;
  margin: 0 0 18px;
}
.ansalon-starters a {
  color: #8d251d;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}
.ansalon-starters button {
  display: block;
  margin-top: 14px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #725230;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}
.ansalon-era {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 30px;
  margin: 38px 0;
  padding: 30px 0;
  border-block: 1px solid #cbb086;
}
.ansalon-era .markdown p:first-child {
  margin-top: 0;
}
.ansalon-era-link {
  font-weight: 700;
  font-size: 0.9rem;
}
.ansalon-atlas {
  scroll-margin-top: 105px;
}
.ansalon-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border: 1px solid #b99b6d;
  border-radius: 5px 5px 0 0;
  background: #ead8b4;
}
.ansalon-map-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ansalon-map-toolbar button {
  min-height: 38px;
  min-width: 38px;
  border: 1px solid #a58453;
  border-radius: 4px;
  background: #fff7e5;
  color: #51351f;
  cursor: pointer;
  font:
    600 1rem Georgia,
    serif;
  padding: 7px 12px;
}
.ansalon-map-toolbar button:disabled {
  opacity: 0.45;
  cursor: default;
}
.ansalon-map-toolbar output {
  font-size: 0.85rem;
  min-width: 45px;
  text-align: center;
  color: #61472d;
}
.ansalon-map-toolbar p {
  font-size: 0.83rem;
  color: #6c5134;
  margin: 0;
}
.ansalon-atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 22px;
  margin-top: 20px;
}
.ansalon-map-column {
  min-width: 0;
}
.ansalon-map-viewport {
  position: relative;
  overflow: auto;
  max-height: 550px;
  border: 1px solid #b79968;
  border-radius: 5px;
  background: #357e85;
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  isolation: isolate;
}
.ansalon-map-viewport.is-dragging {
  cursor: grabbing;
}
.ansalon-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  user-select: none;
}
.ansalon-map-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ansalon-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border: 2px solid #f4e0b5;
  border-radius: 50%;
  background: #71271e;
  color: #fff5dc;
  font:
    700 11px/1 system-ui,
    sans-serif;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 5px #0008;
  z-index: 1;
}
.ansalon-marker.is-starting-city {
  background: #f0c765;
  color: #3c2512;
  border-color: #fff2b8;
}
.ansalon-marker:hover,
.ansalon-marker:focus-visible,
.ansalon-marker[aria-pressed='true'] {
  outline: 3px solid #fff9e9;
  outline-offset: 2px;
  z-index: 4;
  background: #183c50;
  color: #fff;
}
.ansalon-marker.is-starting-city[aria-pressed='true'] {
  background: #f0c765;
  color: #3c2512;
  outline-color: #7c291f;
}
.ansalon-map-note {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #776044;
  margin: 12px 0 18px;
}
.ansalon-place-detail {
  border: 1px solid #c3a16a;
  border-left: 4px solid #9b6a2c;
  border-radius: 5px;
  background: #fff8e8;
  padding: 22px;
  min-height: 190px;
}
.ansalon-place-detail > span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #91652d;
}
.ansalon-place-detail h3 {
  font-size: 1.5rem;
  margin: 7px 0 10px;
  color: #43291a;
}
.ansalon-place-detail p {
  line-height: 1.8;
  color: #59412c;
  margin: 0 0 12px;
}
.ansalon-place-detail a {
  color: #8d251d;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ansalon-map-directory {
  min-width: 0;
}
.ansalon-map-directory label {
  display: grid;
  gap: 9px;
  font-weight: 700;
  color: #51351f;
  font-size: 0.9rem;
}
.ansalon-map-directory input {
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  font:
    1rem Georgia,
    serif;
  border: 1px solid #b99b6d;
  border-radius: 4px;
  background: #fff9ed;
  color: #43291a;
}
.ansalon-map-directory > p {
  font-size: 0.8rem;
  color: #7b6140;
  margin: 10px 0;
}
.ansalon-place-list {
  max-height: 650px;
  overflow: auto;
  border: 1px solid #ceb181;
  border-radius: 5px;
  background: #f7e8cb;
}
.ansalon-place-list button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  width: 100%;
  padding: 12px 11px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dec8a0;
  font: inherit;
  color: #52351f;
  cursor: pointer;
}
.ansalon-place-list button > span:first-child {
  font:
    700 0.75rem system-ui,
    sans-serif;
  display: grid;
  place-items: center;
  background: #e7cda0;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
}
.ansalon-place-list strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
}
.ansalon-place-list small {
  display: block;
  font-size: 0.75rem;
  color: #80603b;
  margin-top: 4px;
  line-height: 1.4;
}
.ansalon-place-list button[aria-pressed='true'] {
  background: #5a3420;
  color: #fff0cc;
}
.ansalon-place-list button[aria-pressed='true'] small {
  color: #e6cba3;
}
.ansalon-place-list button[aria-pressed='true'] > span:first-child {
  color: #43291a;
}
.ansalon-place-list button:hover {
  background: #ead3aa;
}
.ansalon-place-list button[aria-pressed='true']:hover {
  background: #6b4228;
}
.ansalon-page button:focus-visible,
.ansalon-page input:focus-visible,
.ansalon-map-viewport:focus-visible {
  outline: 3px solid #9b641f;
  outline-offset: 3px;
}
.ansalon-source-notes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid #cbb086;
  padding-top: 24px;
  margin-top: 32px;
}
.ansalon-source-notes p {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #7b6142;
  max-width: 620px;
  margin: 0;
}
.ansalon-source-notes p a {
  text-decoration: underline;
}
.ansalon-page [hidden] {
  display: none !important;
}
.ansalon-static-locations dt {
  font-weight: 700;
  margin-top: 20px;
}
.ansalon-static-locations dd {
  margin: 8px 0;
  line-height: 1.8;
}
@media (max-width: 900px) {
  .ansalon-atlas-layout {
    grid-template-columns: 1fr;
  }
  .ansalon-map-directory {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ansalon-place-list {
    max-height: 290px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ansalon-place-list button {
    border-right: 1px solid #dec8a0;
  }
  .ansalon-era {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ansalon-map-viewport {
    max-height: 480px;
  }
}
@media (max-width: 620px) {
  .ansalon-page > .paper {
    padding: 20px 14px;
  }
  .ansalon-starters {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ansalon-starters img {
    height: 200px;
  }
  .ansalon-starters article > div {
    padding: 20px;
  }
  .ansalon-section-heading h2,
  .ansalon-era h2 {
    font-size: 1.55rem;
  }
  .ansalon-map-toolbar {
    padding: 12px;
  }
  .ansalon-map-toolbar p {
    line-height: 1.6;
  }
  .ansalon-place-detail {
    padding: 18px;
  }
  .ansalon-marker {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .ansalon-place-list {
    grid-template-columns: 1fr;
    max-height: 310px;
  }
  .ansalon-era {
    margin: 28px 0;
    padding: 24px 0;
  }
  .ansalon-source-notes {
    align-items: flex-start;
  }
}

.ansalon-marker-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ansalon-marker-leaders line {
  stroke: #fff0cd;
  stroke-width: 1.5;
  filter: drop-shadow(0 1px 1px #2a211c);
}
@media (min-width: 901px) {
  .ansalon-map-viewport {
    max-height: 600px;
  }
}

/* Contact channels: Facebook, Discord and in-game only. */
.contact-page {
  max-width: 1200px;
}
.contact-page > .paper {
  padding: 30px 32px 38px;
  min-height: 0;
}
.contact-intro {
  max-width: 850px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #59412c;
  margin-bottom: 28px;
}
.contact-intro p {
  margin: 0;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.contact-method {
  min-width: 0;
  padding: 25px;
  background: #fff8e9;
  border: 1px solid #c9ab7a;
  border-top: 3px solid #a77530;
  border-radius: 5px;
}
.contact-method-number {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #a07940;
}
.contact-method .markdown h2 {
  font-size: 1.5rem;
  margin: 10px 0 16px;
}
.contact-method .markdown p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #59412c;
  overflow-wrap: anywhere;
}
.contact-method .markdown a {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #8d251d;
}
.contact-method code {
  font-size: 0.84rem;
}
.contact-method p:last-child {
  margin-bottom: 0;
}
@media (max-width: 850px) {
  .contact-methods {
    grid-template-columns: 1fr;
  }
  .contact-method {
    padding: 22px;
  }
  .contact-page > .paper {
    padding: 24px;
  }
}
@media (max-width: 520px) {
  .contact-page > .paper {
    padding: 20px 14px;
  }
  .contact-intro {
    font-size: 1rem;
  }
  .contact-methods {
    gap: 18px;
  }
}

.site-footer .footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #795b35;
  border-radius: 5px;
  color: #e8bf75;
  background: #0b1721;
  transition:
    background 0.15s,
    color 0.15s;
}
.footer-socials a:hover {
  background: #49301d;
  color: #fff0cd;
}
.footer-socials a:focus-visible {
  outline: 2px solid #efc77c;
  outline-offset: 4px;
}
.footer-socials svg {
  display: block;
}

/* City guide artwork retains its full composition on all screen sizes. */
.city-page-image {
  display: block;
  width: 100%;
  max-width: 768px;
  height: auto;
  margin: 0 0 28px;
  border-radius: 6px;
}

/* Ability details sit above the class or race dialog. */
.feat-modal-link {
  color: #7c1420;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.feat-modal-link:hover {
  color: #b22836;
}
.feat-modal-link:focus-visible {
  outline: 2px solid #7c1420;
  outline-offset: 3px;
}
.feat-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
