:root {
  --paper: #f1e7d0;
  --paper-deep: #d7c49d;
  --paper-light: #fbf7ed;
  --navy: #142338;
  --navy-2: #1d304a;
  --ink: #292620;
  --gold: #ad8745;
  --gold-bright: #d3b36e;
  --red: #792b34;
  --white: #faf8f2;
  --muted: #71695d;
  --line: rgba(41, 38, 32, 0.22);
  --header-height: 88px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

main {
  min-width: 0;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #f4d58a;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(230px, 410px) 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 34px;
  border-bottom: 1px solid rgba(211, 179, 110, 0.55);
  background: var(--navy);
  color: var(--white);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: rgba(211, 179, 110, 0.25);
}

.site-header-solid {
  position: sticky;
  top: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  width: min(280px, 100%);
  height: 70px;
}

.brand-mark img {
  width: 100%;
  max-height: 66px;
  object-fit: contain;
}

.global-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  align-self: stretch;
}

.global-nav a {
  position: relative;
  display: flex;
  min-width: 102px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 15px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  font-family: Georgia, var(--serif);
  line-height: 1.15;
  text-transform: uppercase;
}

.global-nav a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.global-nav a::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 6px;
  left: 26px;
  height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.global-nav span {
  font-size: 0.78rem;
  font-weight: 700;
}

.global-nav small {
  margin-top: 4px;
  color: #c9c1b3;
  font-family: var(--sans);
  font-size: 0.64rem;
}

.archive-code {
  margin: 0 0 0 18px;
  color: #bcb3a3;
  font-family: Georgia, var(--serif);
  font-size: 0.65rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

/* Home hero */
.atlas-hero {
  display: grid;
  grid-template-columns: minmax(280px, 25%) minmax(620px, 1fr) minmax(220px, 19%);
  min-height: calc(100vh - var(--header-height));
  max-height: 980px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero-portrait {
  position: relative;
  min-height: 760px;
  border-right: 1px solid rgba(211, 179, 110, 0.45);
  overflow: hidden;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(244, 213, 138, 0.52);
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}

.portrait-caption {
  position: absolute;
  right: 19px;
  bottom: 22px;
  left: 19px;
  padding: 22px 24px 20px;
  border-top: 1px solid var(--gold-bright);
  background: rgba(20, 35, 56, 0.94);
}

.portrait-caption span,
.portrait-caption strong {
  display: block;
}

.portrait-caption span {
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.portrait-caption strong {
  margin-top: 6px;
  color: #d7ccba;
  font-family: var(--sans);
  font-size: 0.75rem;
}

.portrait-caption a {
  display: inline-block;
  margin-top: 2px;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-atlas {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 44px 38px 34px;
  background-color: var(--navy-2);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255, 255, 255, 0.025) 80px);
}

.hero-title-block {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(250px, 44%);
  column-gap: 30px;
  align-items: end;
  padding-bottom: 28px;
}

.hero-title-block .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 11px;
}

.hero-title-block h1 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, var(--serif);
  font-size: 3.65rem;
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-lead {
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--gold);
  color: #d6d0c6;
  font-size: 0.94rem;
  line-height: 1.9;
}

.map-module {
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(211, 179, 110, 0.65);
  background: #0b1726;
  min-width: 0;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(211, 179, 110, 0.45);
}

.map-toolbar figcaption {
  font-weight: 700;
}

.map-toolbar figcaption span {
  margin-right: 13px;
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.map-toolbar p {
  margin: 0;
  color: #aaa395;
  font-family: var(--sans);
  font-size: 0.68rem;
}

.map-scroll {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #173344;
}

.map-canvas {
  position: relative;
  width: 100%;
  min-width: 640px;
  height: 100%;
  min-height: 300px;
}

.map-canvas > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 57%;
}

.map-marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 2px;
  background: rgba(20, 35, 56, 0.9);
  color: var(--white);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.2;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-active {
  border-color: #f6d880;
  background: var(--red);
  transform: translateY(-2px);
}

.map-marker > span {
  width: 9px;
  height: 9px;
  border: 2px solid #fff4c8;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 213, 138, 0.22);
}

.map-record {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 17px;
  align-items: center;
  min-height: 82px;
  padding: 13px 18px;
  border-top: 1px solid rgba(211, 179, 110, 0.45);
  background: #101d2e;
}

.map-record > p {
  margin: 0;
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.68rem;
  font-weight: 700;
}

.map-record > div {
  display: grid;
}

.map-record strong {
  line-height: 1.3;
}

.map-record div span {
  color: #bcb5a8;
  font-size: 0.76rem;
  line-height: 1.5;
}

.map-record > a {
  padding: 7px 0;
  border-bottom: 1px solid var(--gold);
  color: #f1e2bc;
  font-family: var(--sans);
  font-size: 0.7rem;
  white-space: nowrap;
}

.hero-index {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 42px 26px 28px;
  background: #0f1c2c;
}

.index-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gold);
}

.index-heading span,
.index-heading strong {
  display: block;
}

.index-heading span {
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.index-heading strong {
  margin-top: 4px;
  font-size: 1.3rem;
}

.index-entry {
  display: grid;
  padding: 21px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: padding-left 150ms ease, background 150ms ease;
}

.index-entry:hover,
.index-entry:focus-visible {
  padding-left: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.index-entry span {
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.65rem;
}

.index-entry strong {
  margin: 3px 0 1px;
  font-size: 1rem;
  line-height: 1.4;
}

.index-entry small,
.index-note {
  color: #a9a295;
  font-family: var(--sans);
  font-size: 0.7rem;
}

.index-note {
  margin: auto 0 0;
  padding-top: 28px;
  line-height: 1.8;
}

/* Shared sections */
.home-section,
.related-records,
.organization-record,
.roster-section {
  padding: 90px max(38px, calc((100vw - 1440px) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: auto auto minmax(60px, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 44px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.section-heading > p span {
  margin-right: 9px;
  color: var(--red);
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.heading-rule {
  height: 1px;
  background: var(--gold);
}

.section-heading-light > p {
  color: #b7af9f;
}

.section-heading-light > p span {
  color: var(--gold-bright);
}

.section-heading-light h2 {
  color: var(--white);
}

/* Factions band */
.faction-ledger {
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(90deg, transparent, transparent 89px, rgba(41, 38, 32, 0.028) 90px);
}

.faction-ledger::before,
.faction-ledger::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 5px;
  border-top: 1px solid rgba(173, 135, 69, 0.6);
  border-bottom: 1px solid rgba(173, 135, 69, 0.35);
}

.faction-ledger::before { top: 0; }
.faction-ledger::after { bottom: 0; }

.faction-records {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.faction-record {
  position: relative;
  display: grid;
  grid-template-columns: 180px 82px minmax(250px, 1fr);
  min-height: 260px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid rgba(41, 38, 32, 0.25);
  background: rgba(250, 248, 242, 0.76);
  overflow: hidden;
}

.record-image {
  min-height: 260px;
}

.record-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}

.record-seal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  align-self: center;
  justify-self: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 1rem;
  font-weight: 700;
}

.record-copy {
  align-self: center;
  padding: 26px 28px 60px 0;
}

.record-copy > p:first-child {
  margin: 0;
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 0.67rem;
  font-weight: 700;
}

.record-copy h3 {
  margin: 5px 0 3px;
  font-size: 1.7rem;
  line-height: 1.3;
}

.record-copy > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.record-copy > p:last-child {
  margin: 16px 0 0;
  font-size: 0.86rem;
  line-height: 1.9;
}

.text-link,
.record-status {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
}

.text-link {
  border-bottom: 1px solid var(--gold);
}

.record-status {
  color: var(--muted);
}

/* Character gallery */
.character-gallery {
  background: var(--navy);
  color: var(--white);
}

.character-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.72fr;
  height: 630px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid rgba(211, 179, 110, 0.45);
}

.character-stage > * {
  min-height: 0;
}

.character-feature,
.character-slice,
.character-tall {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.character-feature,
.character-column {
  border-right: 1px solid rgba(211, 179, 110, 0.48);
}

.character-feature img,
.character-slice img,
.character-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.character-feature:hover img,
.character-slice:hover img,
.character-tall:hover img {
  transform: scale(1.025);
}

.character-feature img {
  object-position: 50% 24%;
}

.character-feature > span,
.character-feature > strong,
.character-feature > small {
  position: absolute;
  left: 28px;
  z-index: 2;
}

.character-feature > span {
  bottom: 103px;
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.68rem;
}

.character-feature > strong {
  bottom: 58px;
  padding: 5px 11px;
  background: rgba(20, 35, 56, 0.93);
  font-family: Georgia, var(--serif);
  font-size: 1.45rem;
}

.character-feature > small {
  bottom: 28px;
  padding: 2px 9px;
  background: var(--red);
  font-family: var(--sans);
}

.character-column {
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.character-slice:first-child {
  border-bottom: 1px solid rgba(211, 179, 110, 0.48);
}

.character-slice img {
  object-position: 50% 19%;
}

.character-slice > div,
.character-tall > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  padding: 19px 24px;
  border-top: 1px solid rgba(211, 179, 110, 0.8);
  background: rgba(13, 24, 39, 0.92);
}

.character-slice span,
.character-tall span {
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.62rem;
}

.character-slice strong,
.character-tall strong {
  margin-top: 3px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.character-tall img {
  object-position: 48% 22%;
}

/* Chronicle and duel */
.chronicle-duel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 690px;
}

.chronicle-panel {
  position: relative;
  display: grid;
  align-content: center;
  padding: 72px max(38px, calc((100vw - 1440px) / 2));
  padding-right: 72px;
  background-color: var(--paper-light);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 41px, rgba(41, 38, 32, 0.035) 42px);
  overflow: hidden;
}

.chronicle-panel .eyebrow {
  color: var(--red);
}

.chapter-number {
  position: absolute;
  top: 58px;
  right: 34px;
  color: rgba(121, 43, 52, 0.09);
  font-family: Georgia, var(--serif);
  font-size: 25rem;
  line-height: 1;
}

.chronicle-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin-top: 54px;
  padding: 34px 0 34px 32px;
  border-left: 2px solid var(--red);
}

.chronicle-copy > p:first-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.chronicle-copy h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 3.1rem;
  line-height: 1.25;
}

.chronicle-copy h3 {
  margin: 8px 0 24px;
  color: var(--red);
  font-size: 1.05rem;
}

.chronicle-copy > p:last-of-type {
  margin: 0;
  line-height: 2;
}

.chronicle-copy > span {
  display: inline-block;
  margin-top: 24px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
}

.duel-panel {
  position: relative;
  padding: 66px 48px 42px;
  background: #0f1b2b;
  color: var(--white);
  overflow: hidden;
}

.duel-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(211, 179, 110, 0.32);
  pointer-events: none;
}

.duel-title {
  position: relative;
  z-index: 2;
  text-align: center;
}

.duel-title p {
  margin: 0;
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.duel-title h2 {
  margin: 4px 0 28px;
  font-size: 1.6rem;
}

.duel-title h2 span {
  margin: 0 12px;
  color: var(--gold-bright);
  font-size: 0.8rem;
}

.duel-figures {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  height: 485px;
}

.duel-figures figure {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.duel-figures img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.duel-figures figure:last-child img {
  object-position: 50% 22%;
}

.duel-figures figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  padding: 13px 16px;
  border-top: 1px solid var(--gold);
  background: rgba(15, 27, 43, 0.94);
  font-size: 0.8rem;
  line-height: 1.4;
}

.duel-figures figcaption span {
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.64rem;
}

.versus {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.duel-location {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  color: #aaa295;
  font-family: var(--sans);
  font-size: 0.72rem;
  text-align: center;
}

/* Game / news */
.game-news {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 340px;
  border-top: 1px solid var(--gold);
}

.game-panel,
.news-panel {
  padding: 62px max(38px, calc((100vw - 1440px) / 2));
}

.game-panel {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-right: 1px solid rgba(211, 179, 110, 0.4);
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}

.game-panel .eyebrow {
  color: #ead8ad;
}

.game-panel h2,
.news-panel h2 {
  margin: 7px 0 12px;
  font-size: 2.1rem;
  line-height: 1.2;
}

.game-panel p:last-child {
  margin: 0;
  color: #e2d7d0;
}

.game-monogram {
  color: rgba(255, 255, 255, 0.13);
  font-family: Georgia, var(--serif);
  font-size: 8rem;
  line-height: 1;
}

.news-panel {
  background: var(--paper-light);
}

.news-panel .eyebrow {
  color: var(--red);
}

.news-panel ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.news-panel li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.news-panel li:last-child {
  border-bottom: 1px solid var(--line);
}

.news-panel li span {
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 0.67rem;
  font-weight: 700;
}

.news-panel li p {
  margin: 0;
  font-size: 0.82rem;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 150px;
  padding: 30px 44px;
  border-top: 1px solid rgba(211, 179, 110, 0.5);
  background: #0c1725;
  color: #b9b1a4;
}

.site-footer img {
  width: 250px;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
}

.footer-note {
  font-family: Georgia, var(--serif);
  font-size: 0.62rem !important;
}

/* Shared detail-page elements */
.record-trail {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 52px;
  padding: 0 max(38px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
}

.record-trail strong {
  color: var(--red);
}

.record-trail-dark {
  border-color: rgba(211, 179, 110, 0.3);
  background: #0f1c2c;
  color: #aea698;
}

/* Character detail */
.dossier-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 42%) 1fr 100px;
  min-height: 760px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.dossier-portrait {
  position: relative;
  min-height: 760px;
  border-right: 1px solid rgba(211, 179, 110, 0.45);
}

.dossier-portrait::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(244, 213, 138, 0.55);
}

.dossier-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.portrait-index {
  position: absolute;
  right: 23px;
  bottom: 23px;
  left: 23px;
  z-index: 2;
  padding: 8px 13px;
  background: rgba(20, 35, 56, 0.94);
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.66rem;
}

.dossier-heading {
  position: relative;
  align-self: center;
  max-width: 760px;
  padding: 72px 72px 72px 8%;
}

.classification {
  position: absolute;
  top: 8px;
  right: 0;
  display: grid;
  padding: 9px 14px;
  border: 1px solid rgba(211, 179, 110, 0.55);
  color: #bcb4a6;
  font-family: var(--sans);
  font-size: 0.64rem;
}

.classification strong {
  color: var(--gold-bright);
}

.dossier-heading h1 {
  margin: 16px 0 22px;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.22;
}

.dossier-heading h1 span {
  display: block;
  margin-bottom: 8px;
  color: #dfd6c8;
  font-family: Georgia, var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  text-transform: uppercase;
}

.character-lead {
  max-width: 650px;
  margin: 0;
  color: #d2ccc1;
  font-size: 1rem;
  line-height: 2;
}

.identity-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 42px 0 0;
  border-top: 1px solid rgba(211, 179, 110, 0.55);
  border-bottom: 1px solid rgba(211, 179, 110, 0.3);
}

.identity-ledger div {
  padding: 15px 17px;
  border-right: 1px solid rgba(211, 179, 110, 0.25);
  border-bottom: 1px solid rgba(211, 179, 110, 0.2);
}

.identity-ledger div:nth-child(3n),
.identity-ledger div:last-child {
  border-right: 0;
}

.identity-ledger dt {
  color: #999184;
  font-family: var(--sans);
  font-size: 0.65rem;
}

.identity-ledger dd {
  margin: 3px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.identity-ledger a {
  color: #efdba9;
  border-bottom: 1px solid var(--gold);
}

.profile-abstract {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 2px solid var(--red);
  background: rgba(248, 238, 213, 0.42);
}

.profile-abstract > span {
  color: #665744;
  font-family: var(--sans);
  font-size: 0.65rem;
}

.profile-abstract > p {
  margin: 7px 0 0;
  color: #3f3327;
  font-size: 0.88rem;
  line-height: 1.85;
}

.profile-source-link {
  display: inline-block;
  margin: 20px 0 0 24px;
  color: var(--red);
  border-bottom: 1px solid rgba(104, 34, 31, 0.5);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
}

.dossier-heading > blockquote {
  margin: 38px 0 26px;
  padding-left: 19px;
  border-left: 2px solid var(--red);
  color: var(--white);
  font-size: 1.14rem;
}

.seal-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #eadbb7;
  font-family: var(--sans);
  font-size: 0.75rem;
}

.seal-link > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: Georgia, var(--serif);
}

.dossier-side-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 45px 20px;
  border-left: 1px solid rgba(211, 179, 110, 0.35);
  color: #a69e90;
}

.dossier-side-note span,
.dossier-side-note small {
  writing-mode: vertical-rl;
  font-family: Georgia, var(--serif);
  font-size: 0.62rem;
}

.dossier-side-note b {
  color: rgba(211, 179, 110, 0.5);
  font-family: Georgia, var(--serif);
  font-size: 3rem;
  font-weight: 400;
}

.parchment-document {
  padding: 92px max(42px, calc((100vw - 1320px) / 2));
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 43px, rgba(41, 38, 32, 0.027) 44px);
}

.document-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 3px double var(--gold);
}

.document-heading p,
.document-heading span {
  margin: 0;
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.document-heading h2 {
  grid-row: 2;
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 2.35rem;
  line-height: 1.3;
}

.document-heading span {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--muted);
}

.document-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 70px;
  margin-top: 62px;
}

.document-section {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
  padding: 0 0 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.section-number {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, var(--serif);
  font-size: 2.2rem;
  line-height: 1;
}

.document-section h3 {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: 1.45rem;
}

.document-section div > p {
  max-width: 46em;
  margin: 0;
  line-height: 2.15;
}

.quote-record {
  padding: 26px;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 242, 0.6);
}

.quote-record p {
  margin: 0;
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 0.68rem;
  font-weight: 700;
}

.quote-record blockquote {
  margin: 20px 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 2;
}

.quote-record span,
.detail-image figcaption {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
}

.detail-image {
  margin: 34px 0 0;
}

.detail-image img {
  width: 100%;
  border: 1px solid var(--gold);
}

.detail-image figcaption {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.related-records {
  background: var(--paper-light);
}

.related-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 1fr;
  gap: 24px;
}

.related-faction,
.related-chronicle {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: var(--white);
}

.related-chronicle {
  background: var(--red);
}

.related-faction span,
.related-chronicle span,
.related-person span {
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.66rem;
}

.related-faction strong,
.related-chronicle strong {
  margin: 4px 0;
  font-size: 1.35rem;
}

.related-faction small,
.related-chronicle small,
.related-person small {
  color: #d0c9bd;
  font-size: 0.72rem;
}

.related-person {
  position: relative;
  min-height: 270px;
  overflow: hidden;
}

.related-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.related-person > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  padding: 18px 22px;
  border-top: 1px solid var(--gold);
  background: rgba(20, 35, 56, 0.93);
  color: var(--white);
}

/* Faction detail */
.faction-hero {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(460px, 1fr) minmax(360px, 42%);
  min-height: 720px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.faction-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.23;
}

.faction-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 37, 0.45);
}

.faction-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faction-standard {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 54px 24px;
  border-right: 1px solid rgba(211, 179, 110, 0.44);
}

.faction-standard span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 2px double var(--gold-bright);
  border-radius: 50%;
  background: rgba(20, 35, 56, 0.82);
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 1.55rem;
}

.faction-standard small {
  writing-mode: vertical-rl;
  color: #b8b0a3;
  font-family: Georgia, var(--serif);
  font-size: 0.62rem;
}

.faction-heading {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 720px;
  padding: 65px 65px;
}

.faction-heading h1 {
  margin: 15px 0 19px;
  font-size: 4.3rem;
  font-weight: 500;
  line-height: 1.15;
}

.faction-lead {
  margin: 0;
  color: #d4cdc2;
  font-size: 1.02rem;
  line-height: 2.05;
}

.faction-facts {
  margin: 42px 0 0;
  border-top: 1px solid rgba(211, 179, 110, 0.55);
}

.faction-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(211, 179, 110, 0.24);
}

.faction-facts dt {
  color: #9e9689;
  font-family: var(--sans);
  font-size: 0.68rem;
}

.faction-facts dd {
  margin: 0;
  font-size: 0.86rem;
}

.faction-facts a {
  color: #f0dcaa;
  border-bottom: 1px solid var(--gold);
}

.faction-hero-figure {
  position: relative;
  z-index: 2;
  min-height: 720px;
  border-left: 1px solid rgba(211, 179, 110, 0.44);
  overflow: hidden;
}

.faction-hero-figure::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(244, 213, 138, 0.5);
}

.faction-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.faction-hero-figure span {
  position: absolute;
  right: 21px;
  bottom: 21px;
  left: 21px;
  z-index: 2;
  padding: 9px 14px;
  background: rgba(20, 35, 56, 0.94);
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.65rem;
}

.classified-stamp {
  position: absolute;
  z-index: 3;
  right: 45%;
  bottom: 34px;
  padding: 8px 15px;
  border: 2px solid rgba(121, 43, 52, 0.78);
  color: rgba(229, 153, 161, 0.8);
  font-family: Georgia, var(--serif);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  transform: rotate(-4deg);
}

.military-overview {
  display: grid;
  grid-template-columns: minmax(460px, 1.05fr) minmax(400px, 0.95fr);
  min-height: 650px;
  background: var(--paper);
}

.overview-map {
  padding: 72px 56px 68px max(38px, calc((100vw - 1440px) / 2));
  border-right: 1px solid var(--line);
}

.overview-map > header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--gold);
}

.overview-map header span {
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 0.66rem;
  font-weight: 700;
}

.overview-map header strong {
  font-size: 0.9rem;
}

.overview-map-scroll {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--gold);
}

.overview-map-canvas {
  position: relative;
  min-width: 600px;
  height: 380px;
}

.overview-map-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% 67%;
}

.range-ring {
  position: absolute;
  left: 55%;
  top: 61%;
  width: 18%;
  min-width: 115px;
  aspect-ratio: 1;
  border: 2px dashed #f4dfac;
  border-radius: 50%;
  background: rgba(121, 43, 52, 0.15);
  transform: translate(-50%, -50%);
}

.overview-map > p {
  margin: 15px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.7;
}

.overview-copy {
  align-self: center;
  max-width: 690px;
  padding: 72px max(38px, calc((100vw - 1440px) / 2)) 72px 70px;
}

.overview-copy .section-label {
  color: var(--red);
}

.overview-copy h2 {
  margin: 9px 0 26px;
  color: var(--navy);
  font-size: 2.35rem;
  line-height: 1.45;
}

.overview-copy > p:not(.section-label) {
  margin: 0 0 18px;
  line-height: 2.1;
}

.overview-copy blockquote {
  margin: 36px 0 0;
  padding: 22px 0 22px 25px;
  border-left: 2px solid var(--red);
  color: var(--navy);
  font-size: 1.06rem;
}

.organization-record {
  background: var(--navy);
  color: var(--white);
}

.organization-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid rgba(211, 179, 110, 0.4);
}

.organization-grid article {
  min-height: 260px;
  padding: 33px 28px;
  border-right: 1px solid rgba(211, 179, 110, 0.28);
}

.organization-grid article:last-child {
  border-right: 0;
}

.organization-grid span {
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.66rem;
}

.organization-grid h3 {
  margin: 48px 0 12px;
  font-size: 1.3rem;
}

.organization-grid p {
  margin: 0;
  color: #c1baae;
  font-size: 0.82rem;
  line-height: 1.9;
}

.roster-section {
  background: var(--paper-light);
}

.roster-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(7, minmax(126px, 1fr));
  height: 510px;
  overflow-x: auto;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.roster-strip > * {
  position: relative;
  min-width: 126px;
  overflow: hidden;
  border-right: 1px solid rgba(41, 38, 32, 0.25);
}

.roster-strip > *:last-child {
  border-right: 0;
}

.roster-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.roster-strip span,
.roster-strip strong,
.roster-strip small {
  position: absolute;
  right: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 7px;
  background: rgba(20, 35, 56, 0.92);
  color: var(--white);
}

.roster-strip span {
  bottom: 78px;
  color: var(--gold-bright);
  font-family: Georgia, var(--serif);
  font-size: 0.58rem;
}

.roster-strip strong {
  bottom: 35px;
  min-height: 43px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.roster-strip small {
  bottom: 10px;
  color: #d1cabf;
  font-family: var(--sans);
  font-size: 0.62rem;
}

.roster-strip article strong {
  bottom: 12px;
}

.roster-strip article span {
  bottom: 58px;
}

.roster-primary {
  min-width: 240px;
}

.faction-history {
  display: grid;
  grid-template-columns: 0.6fr 1.6fr 0.7fr;
  min-height: 350px;
  background: var(--red);
  color: var(--white);
}

.faction-history > header,
.faction-history > article,
.faction-history > aside {
  padding: 55px 42px;
}

.faction-history > header {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.faction-history > header .eyebrow {
  color: #ead9af;
}

.faction-history > header h2 {
  margin: 9px 0 0;
  font-size: 1.8rem;
}

.faction-history > article {
  display: grid;
  grid-template-columns: 115px 1fr auto;
  gap: 25px;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.faction-history article > span,
.faction-history aside > span {
  color: #ead9af;
  font-family: Georgia, var(--serif);
  font-size: 0.66rem;
  font-weight: 700;
}

.faction-history article h3 {
  margin: 0 0 7px;
  font-size: 1.45rem;
}

.faction-history article p {
  margin: 0;
  color: #e3d8d2;
  font-size: 0.84rem;
}

.faction-history article a {
  border-bottom: 1px solid #ead9af;
  font-family: var(--sans);
  font-size: 0.7rem;
  white-space: nowrap;
}

.faction-history > aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faction-history aside strong {
  margin: 8px 0;
  font-size: 1.1rem;
}

.faction-history aside small {
  color: #d3c7c1;
}

/* Tablet */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 220px 1fr;
  }

  .archive-code {
    display: none;
  }

  .global-nav a {
    min-width: 86px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .atlas-hero {
    grid-template-columns: 33% 1fr;
    max-height: none;
  }

  .hero-index {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 0;
    padding: 0 30px;
  }

  .index-heading,
  .index-entry {
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .index-note {
    display: none;
  }

  .faction-records {
    grid-template-columns: 1fr;
  }

  .character-stage {
    grid-template-columns: 1fr 1fr;
  }

  .character-tall {
    display: none;
  }

  .chronicle-duel {
    grid-template-columns: 1fr;
  }

  .chronicle-panel {
    min-height: 560px;
  }

  .dossier-hero {
    grid-template-columns: 42% 1fr;
  }

  .dossier-side-note {
    display: none;
  }

  .faction-hero {
    grid-template-columns: 120px 1fr 38%;
  }

  .faction-heading {
    padding: 50px 40px;
  }

  .faction-heading h1 {
    font-size: 3.2rem;
  }

  .organization-grid {
    grid-template-columns: 1fr 1fr;
  }

  .organization-grid article:nth-child(2) {
    border-right: 0;
  }

  .organization-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(211, 179, 110, 0.28);
  }

  .faction-history {
    grid-template-columns: 1fr 2fr;
  }

  .faction-history > aside {
    grid-column: 1 / -1;
    min-height: 140px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* Mobile */
@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(150px, 220px) 46px;
    justify-content: space-between;
    min-height: var(--header-height);
    padding: 0 15px;
  }

  .brand-mark {
    height: 58px;
  }

  .brand-mark img {
    max-height: 54px;
  }

  .nav-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(211, 179, 110, 0.55);
    border-radius: 2px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }

  .nav-toggle > span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-open .nav-toggle > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle > span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    z-index: 2;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: start;
    padding: 18px;
    background: #0c1725;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .nav-open .global-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .global-nav a,
  .global-nav a:last-child {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 62px;
    align-items: center;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(211, 179, 110, 0.2);
  }

  .global-nav a::after {
    display: none;
  }

  .global-nav span,
  .global-nav small {
    margin: 0;
  }

  .atlas-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .hero-atlas {
    display: contents;
  }

  .hero-title-block {
    order: 1;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 42px 22px 32px;
    background: var(--navy-2);
  }

  .hero-title-block .eyebrow {
    margin-bottom: 12px;
  }

  .hero-title-block h1 {
    font-size: 2.75rem;
    line-height: 0.95;
  }

  .hero-lead {
    margin-top: 24px;
    padding-left: 15px;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }

  .hero-portrait {
    order: 2;
    width: 100%;
    min-width: 0;
    min-height: 560px;
    height: 72vh;
    max-height: 690px;
    border-right: 0;
    border-top: 1px solid var(--gold);
  }

  .hero-portrait img {
    object-position: 50% 20%;
  }

  .portrait-caption {
    padding: 17px 19px;
  }

  .portrait-caption a {
    font-size: 1.05rem;
  }

  .map-module {
    order: 3;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    border-right: 0;
    border-left: 0;
  }

  .map-toolbar {
    min-height: 56px;
    padding: 10px 16px;
  }

  .map-toolbar p {
    display: none;
  }

  .map-scroll {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .map-canvas {
    width: 780px;
    min-width: 780px;
    height: 430px;
  }

  .map-record {
    grid-template-columns: 1fr auto;
    min-height: 116px;
    gap: 10px;
    padding: 15px 17px;
  }

  .map-record > p {
    grid-column: 1 / -1;
  }

  .map-record div span {
    font-size: 0.7rem;
  }

  .map-record > a {
    align-self: end;
  }

  .hero-index {
    order: 4;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 30px 22px;
  }

  .index-heading,
  .index-entry {
    padding: 17px 2px;
    border-right: 0;
  }

  .home-section,
  .related-records,
  .organization-record,
  .roster-section {
    padding: 66px 20px;
  }

  .section-heading {
    grid-template-columns: 1fr auto;
    gap: 7px 14px;
    margin-bottom: 30px;
  }

  .section-heading > p:first-child {
    grid-column: 1 / -1;
  }

  .section-heading h2 {
    font-size: 1.7rem;
  }

  .section-heading .heading-rule {
    display: none;
  }

  .section-heading > p:last-child {
    text-align: right;
  }

  .faction-record {
    display: grid;
    grid-template-columns: 38% 1fr;
    min-height: 410px;
  }

  .record-image {
    min-height: 410px;
  }

  .record-seal {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: calc(38% - 28px);
    background: var(--paper-light);
  }

  .record-copy {
    padding: 34px 18px 80px 25px;
  }

  .record-copy h3 {
    margin-top: 9px;
    font-size: 1.35rem;
  }

  .record-copy > p:last-child {
    font-size: 0.8rem;
  }

  .text-link,
  .record-status {
    right: 18px;
    bottom: 22px;
  }

  .character-stage {
    display: block;
    height: auto;
    border: 0;
  }

  .character-feature {
    display: block;
    height: 570px;
    border: 1px solid var(--gold);
  }

  .character-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    height: 340px;
    border-right: 0;
  }

  .character-slice:first-child {
    border-right: 1px solid rgba(211, 179, 110, 0.48);
    border-bottom: 0;
  }

  .character-slice > div {
    padding: 13px 12px;
  }

  .character-slice strong {
    font-size: 0.76rem;
  }

  .chronicle-panel {
    min-height: 570px;
    padding: 62px 22px;
  }

  .chapter-number {
    right: 0;
    font-size: 21rem;
  }

  .chronicle-copy {
    margin-top: 38px;
    padding: 25px 0 25px 20px;
  }

  .chronicle-copy h2 {
    font-size: 2.25rem;
  }

  .duel-panel {
    padding: 55px 18px 36px;
  }

  .duel-title h2 {
    font-size: 1.15rem;
  }

  .duel-figures {
    grid-template-columns: 1fr;
    grid-template-rows: 390px 54px 390px;
    height: auto;
  }

  .versus {
    width: 54px;
    height: 54px;
    justify-self: center;
    margin: 0;
  }

  .game-news {
    grid-template-columns: 1fr;
  }

  .game-panel,
  .news-panel {
    padding: 55px 22px;
  }

  .game-panel {
    min-height: 310px;
    border-right: 0;
  }

  .game-panel h2,
  .news-panel h2 {
    font-size: 1.6rem;
  }

  .game-monogram {
    position: absolute;
    right: 6px;
    bottom: 16px;
    font-size: 5rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 35px 22px;
    text-align: center;
  }

  .site-footer img {
    justify-self: center;
    width: 210px;
  }

  .record-trail {
    min-height: 48px;
    padding: 0 18px;
    overflow: hidden;
    white-space: nowrap;
  }

  /* Character mobile */
  .dossier-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .dossier-portrait {
    order: 2;
    width: 100%;
    min-width: 0;
    min-height: 590px;
    height: 74vh;
    max-height: 700px;
    border-right: 0;
    border-top: 1px solid var(--gold);
  }

  .dossier-heading {
    order: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 48px 22px 42px;
  }

  .classification {
    position: static;
    display: inline-grid;
    margin-bottom: 24px;
  }

  .dossier-heading h1 {
    max-width: 100%;
    font-size: 1.95rem;
    overflow-wrap: anywhere;
  }

  .dossier-heading h1 span {
    font-size: 0.9rem;
  }

  .character-lead {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
  }

  .identity-ledger {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .identity-ledger div {
    display: grid;
    grid-template-columns: 78px 1fr;
    border-right: 0;
    border-bottom: 1px solid rgba(211, 179, 110, 0.2);
  }

  .profile-abstract {
    margin-top: 20px;
    padding: 15px 16px;
  }

  .profile-source-link {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 18px 0 0;
  }

  .dossier-heading > blockquote {
    margin-top: 29px;
    font-size: 1rem;
  }

  .parchment-document {
    padding: 66px 20px;
  }

  .document-heading {
    display: block;
  }

  .document-heading h2 {
    font-size: 1.8rem;
  }

  .document-heading span {
    display: block;
    margin-top: 12px;
  }

  .document-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 42px;
  }

  .document-section {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .document-section div > p {
    line-height: 2;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-faction,
  .related-chronicle,
  .related-person {
    min-height: 270px;
  }

  /* Faction mobile */
  .faction-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .faction-backdrop {
    display: none;
  }

  .faction-standard {
    order: 1;
    width: 100%;
    min-width: 0;
    min-height: 118px;
    flex-direction: row;
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(211, 179, 110, 0.35);
  }

  .faction-standard span {
    width: 70px;
    height: 70px;
  }

  .faction-standard small {
    writing-mode: horizontal-tb;
  }

  .faction-heading {
    order: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 42px 22px;
  }

  .faction-heading h1 {
    font-size: 2.65rem;
  }

  .faction-lead {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
  }

  .faction-facts {
    margin-top: 30px;
  }

  .faction-hero-figure {
    order: 3;
    width: 100%;
    min-width: 0;
    min-height: 620px;
    height: 76vh;
    max-height: 720px;
    border-top: 1px solid var(--gold);
    border-left: 0;
  }

  .classified-stamp {
    display: none;
  }

  .military-overview {
    grid-template-columns: 1fr;
  }

  .overview-map,
  .overview-copy {
    padding: 58px 20px;
  }

  .overview-map {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .overview-map-scroll {
    width: 100%;
    max-width: calc(100vw - 40px);
    overflow-x: auto;
  }

  .overview-map-canvas {
    width: 720px;
    min-width: 720px;
    height: 390px;
  }

  .overview-copy h2 {
    font-size: 1.85rem;
  }

  .organization-grid {
    grid-template-columns: 1fr;
  }

  .organization-grid article,
  .organization-grid article:nth-child(2) {
    min-height: 215px;
    border-right: 0;
    border-bottom: 1px solid rgba(211, 179, 110, 0.28);
  }

  .organization-grid article:last-child {
    border-bottom: 0;
  }

  .organization-grid h3 {
    margin-top: 29px;
  }

  .roster-strip {
    grid-template-columns: repeat(8, 220px);
    height: 450px;
  }

  .roster-primary {
    min-width: 220px;
  }

  .faction-history {
    grid-template-columns: 1fr;
  }

  .faction-history > header,
  .faction-history > article,
  .faction-history > aside {
    padding: 45px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .faction-history > article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faction-history article a {
    justify-self: start;
    margin-top: 14px;
  }

  .faction-history > aside {
    grid-column: auto;
  }
}

/* Final legibility and label refinements */
.wp-document {
  min-height: 65vh;
}

.atlas-without-portrait {
  grid-template-columns: minmax(620px, 1fr) minmax(220px, 19%);
}

.dossier-without-portrait {
  grid-template-columns: minmax(0, 1fr) 100px;
}

.dossier-without-portrait .dossier-heading {
  justify-self: center;
  width: min(100%, 920px);
}

.faction-without-figure {
  grid-template-columns: 170px minmax(460px, 1fr);
}

.document-grid-single {
  grid-template-columns: 1fr;
}

.related-grid-single {
  grid-template-columns: minmax(280px, 520px);
}

.character-stage.character-count-1 {
  grid-template-columns: 1fr;
}

.character-stage.character-count-2,
.character-stage.character-count-3 {
  grid-template-columns: 1.05fr 0.95fr;
}

.character-stage.character-count-1 .character-column {
  display: none;
}

.character-column .character-slice:only-child {
  grid-row: 1 / -1;
}

.character-without-image,
.roster-without-image {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.04) 40px),
    var(--paper-deep);
}

.character-without-image::before,
.roster-without-image::before {
  content: "ROYAL ARCHIVE";
  position: absolute;
  top: 24px;
  left: 24px;
  color: rgba(49, 41, 31, 0.42);
  font-family: Georgia, var(--serif);
  font-size: 0.64rem;
}

.roster-without-image strong,
.roster-without-image span {
  position: static;
  display: block;
  margin: 16px;
}

.faction-record-without-image {
  grid-template-columns: 80px minmax(0, 1fr) auto;
}

.faction-record-without-image .record-seal {
  grid-column: 1;
}

.faction-records.faction-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.document-main.wp-entry-content {
  max-width: none;
  margin: 0;
}

.organization-body {
  max-width: 960px;
  margin-inline: auto;
}

.roster-strip[style] {
  grid-template-columns: repeat(var(--pgm-member-count), minmax(126px, 1fr));
}

.archive-entry-kicker,
.archive-entry-meta {
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 0.7rem;
}

.navigation.pagination {
  margin-top: 48px;
  text-align: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.page-numbers {
  min-width: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
}

.page-numbers.current {
  color: var(--white);
  background: var(--red);
}

.news-featured-image {
  max-width: 1100px;
  margin: 48px auto 0;
  border: 4px double var(--gold);
}

.news-featured-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.archive-empty,
.news-empty {
  margin: 0;
  padding: 34px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.wp-document .document-heading h1 {
  grid-row: 2;
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 2.35rem;
  line-height: 1.3;
}

.wp-entry-content,
.wp-archive-list {
  max-width: 940px;
  margin: 54px auto 0;
}

.wp-entry-content > * + * {
  margin-top: 1.4em;
}

.wp-entry-content h2,
.wp-entry-content h3 {
  color: var(--navy);
}

.wp-entry-content a,
.wp-archive-entry a {
  color: var(--red);
  text-decoration-color: var(--gold);
}

.wp-entry-content blockquote {
  margin-inline: 0;
  padding-left: 22px;
  border-left: 2px solid var(--red);
}

.wp-entry-content hr {
  border: 0;
  border-top: 1px solid var(--gold);
}

.wp-archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.wp-archive-entry {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(248, 238, 213, 0.62);
}

.wp-archive-entry img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.wp-archive-entry h2 {
  margin: 12px 0 8px;
  color: var(--navy);
}

.wp-archive-entry p {
  margin: 0;
}

.brand-mark::after,
.hero-title-block::before,
.footer-note {
  display: none;
}

.character-dossier .character-lead,
.character-dossier .dossier-heading > blockquote,
.character-document .document-section div > p,
.character-document .quote-record blockquote {
  color: #3f3327;
}

.character-dossier .identity-ledger dt,
.character-document .quote-record span,
.character-document .detail-image figcaption {
  color: #665744;
}

.character-dossier .identity-ledger dd {
  color: #30261d;
  font-weight: 500;
}

.character-dossier .identity-ledger a,
.character-dossier .seal-link {
  color: #68221f;
  font-weight: 700;
}

.faction-hero-figure > span b {
  color: #f1d28a;
  font-weight: 700;
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .site-header,
  .site-header-solid {
    grid-template-columns: minmax(130px, 184px) 42px;
    min-height: var(--header-height);
    padding-inline: 12px;
    background: linear-gradient(rgba(255, 250, 236, 0.76), rgba(236, 220, 186, 0.88));
  }

  .brand-mark {
    width: 82%;
    height: 50px;
    padding-block: 4px;
  }

  .brand-mark img {
    max-height: 45px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-title-block::before {
    display: none;
  }

  .atlas-without-portrait,
  .dossier-without-portrait,
  .faction-without-figure {
    display: flex;
    flex-direction: column;
  }

  .character-stage.character-count-1,
  .character-stage.character-count-2,
  .character-stage.character-count-3 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Bright royal atlas visual revision */
:root {
  --paper: #ead9b5;
  --paper-deep: #d5bd8f;
  --paper-light: #f8eed5;
  --navy: #17283a;
  --navy-2: #24384b;
  --ink: #31291f;
  --gold: #9a7337;
  --gold-bright: #b38a46;
  --red: #7a302b;
  --white: #fffaf0;
  --muted: #756754;
  --line: rgba(72, 55, 34, 0.27);
}

body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.35), transparent 24%),
    radial-gradient(circle at 82% 34%, rgba(121, 87, 40, 0.08), transparent 28%),
    repeating-linear-gradient(0deg, rgba(72, 55, 34, 0.025) 0, rgba(72, 55, 34, 0.025) 1px, transparent 1px, transparent 5px);
  color: var(--ink);
}

.eyebrow,
.section-label {
  color: var(--red);
}

.site-header,
.site-header-solid {
  color: var(--ink);
  border-top: 3px double var(--gold);
  border-bottom: 3px double rgba(72, 55, 34, 0.65);
  background: linear-gradient(rgba(255, 250, 236, 0.76), rgba(236, 220, 186, 0.88));
  box-shadow: 0 4px 14px rgba(56, 40, 22, 0.16);
}

.site-header::after {
  bottom: 3px;
  background: rgba(154, 115, 55, 0.6);
}

.brand-mark {
  position: relative;
  width: min(390px, 100%);
  height: 82px;
  padding: 0;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  max-height: none;
  transform: translateY(-50%);
}

.brand-mark::after {
  content: "ROYAL ATLAS";
  position: absolute;
  right: 14px;
  bottom: 5px;
  color: rgba(220, 185, 111, 0.78);
  font-family: Georgia, var(--serif);
  font-size: 0.5rem;
}

.global-nav a,
.global-nav a:last-child {
  border-color: rgba(72, 55, 34, 0.15);
}

.global-nav a::after {
  height: 3px;
  background: var(--red);
}

.global-nav small,
.archive-code {
  color: var(--muted);
}

.atlas-hero {
  position: relative;
  grid-template-columns: minmax(280px, 25%) minmax(620px, 1fr) minmax(220px, 19%);
  padding: 18px;
  gap: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.88%, rgba(87, 64, 34, 0.14) 49.95%, rgba(255, 255, 255, 0.22) 50.05%, transparent 50.12%),
    repeating-linear-gradient(0deg, rgba(74, 56, 34, 0.025) 0, rgba(74, 56, 34, 0.025) 1px, transparent 1px, transparent 6px),
    var(--paper-light);
  border-bottom: 3px double var(--gold);
}

.atlas-hero::before {
  content: "ALTERIA ROYAL ARCHIVE  /  ATLAS I";
  position: absolute;
  z-index: 5;
  top: 4px;
  left: 50%;
  padding: 0 14px;
  color: #6e5631;
  background: var(--paper-light);
  font-family: Georgia, var(--serif);
  font-size: 0.55rem;
  transform: translateX(-50%);
}

.hero-portrait {
  min-height: 724px;
  border: 1px solid rgba(72, 55, 34, 0.55);
  border-right: 3px double var(--gold);
  background: #dfc99d;
  box-shadow: inset 0 0 0 8px rgba(255, 248, 228, 0.55);
}

.hero-portrait::after {
  inset: 24px;
  border: 3px double var(--gold);
  box-shadow: 0 0 0 7px rgba(248, 238, 213, 0.76);
}

.hero-portrait::before {
  content: "PORTRAIT No. 001";
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 30px;
  padding: 4px 9px;
  color: var(--paper-light);
  background: var(--navy);
  font-family: Georgia, var(--serif);
  font-size: 0.58rem;
  letter-spacing: 0;
}

.hero-portrait img {
  position: absolute;
  inset: 31px;
  width: calc(100% - 62px);
  height: calc(100% - 62px);
  filter: sepia(0.1) saturate(0.88) contrast(0.97);
}

.portrait-caption {
  right: 38px;
  bottom: 39px;
  left: 38px;
  padding: 17px 20px 16px;
  border: 1px solid var(--gold);
  border-top: 3px double var(--gold);
  color: var(--ink);
  background: rgba(248, 238, 213, 0.94);
  box-shadow: 0 5px 18px rgba(44, 31, 17, 0.18);
}

.portrait-caption span,
.portrait-caption strong {
  color: var(--red);
}

.portrait-caption a {
  color: var(--navy);
}

.portrait-caption small {
  display: block;
  margin-top: 4px;
  color: #66543e;
  font-family: Georgia, var(--serif);
  font-size: 0.68rem;
  line-height: 1.3;
}

.hero-atlas {
  padding: 38px 30px 30px;
  border-right: 3px double var(--gold);
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 16%, rgba(165, 126, 61, 0.09), transparent 27%),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(70, 52, 31, 0.035) 80px),
    #f3e5c4;
}

.hero-title-block {
  padding: 2px 16px 24px;
}

.hero-title-block::before {
  content: "ATLAS  /  COMPENDIUM  /  01";
  position: absolute;
  top: 0;
  right: 16px;
  color: var(--gold);
  font-family: Georgia, var(--serif);
  font-size: 0.58rem;
}

.hero-title-block::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 12px;
  left: 16px;
  height: 3px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid rgba(72, 55, 34, 0.35);
}

.hero-title-block h1 {
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-lead {
  border-left-color: var(--red);
  color: #544737;
}

.map-module {
  border: 4px double rgba(78, 57, 29, 0.72);
  color: var(--ink);
  background: #e9d5a8;
  box-shadow: inset 0 0 0 5px rgba(251, 242, 220, 0.72), 0 7px 18px rgba(57, 40, 20, 0.14);
}

.map-toolbar {
  border-bottom: 3px double rgba(78, 57, 29, 0.55);
  background: rgba(248, 238, 213, 0.9);
}

.map-toolbar figcaption span,
.map-record > p {
  color: var(--red);
}

.map-toolbar p,
.map-record div span {
  color: var(--muted);
}

.map-scroll {
  margin: 7px;
  border: 1px solid rgba(78, 57, 29, 0.45);
  background: #d4bf91;
}

.map-canvas > img,
.overview-map-canvas > img {
  filter: sepia(0.2) saturate(0.72) contrast(0.93) brightness(1.04);
}

.map-marker {
	width: 22px;
	height: 22px;
	padding: 0;
	justify-content: center;
	border-radius: 50%;
	border-color: #f2dfb5;
	background: rgba(23, 40, 58, 0.92);
	color: var(--white);
	box-shadow: 0 2px 6px rgba(38, 25, 14, 0.26);
	transform: translate(-50%, -50%);
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-active {
	border-color: #ead09a;
	background: var(--red);
	transform: translate(-50%, calc(-50% - 2px));
}

.map-marker > span {
	width: 8px;
	height: 8px;
	border-width: 1px;
	box-shadow: none;
}

.map-marker > b {
	position: absolute;
	z-index: 8;
	left: 50%;
	bottom: calc(100% + 8px);
	width: max-content;
	max-width: 190px;
	padding: 5px 8px;
	border: 1px solid rgba(225, 197, 135, 0.92);
	border-radius: 2px;
	color: #fff8df;
	background: rgba(20, 35, 56, 0.96);
	box-shadow: 0 3px 8px rgba(35, 23, 12, 0.3);
	font-family: var(--sans);
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.25;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 3px);
	transition: opacity 120ms ease, transform 120ms ease;
}

.map-marker:hover > b,
.map-marker:focus-visible > b,
.map-marker.is-active > b {
	opacity: 1;
	transform: translate(-50%, 0);
}

.map-marker.marker-edge-left > b {
	left: -5px;
	transform: translate(0, 3px);
}

.map-marker.marker-edge-left:hover > b,
.map-marker.marker-edge-left:focus-visible > b,
.map-marker.marker-edge-left.is-active > b {
	transform: translate(0, 0);
}

.map-marker.marker-edge-right > b {
	right: -5px;
	left: auto;
	transform: translate(0, 3px);
}

.map-marker.marker-edge-right:hover > b,
.map-marker.marker-edge-right:focus-visible > b,
.map-marker.marker-edge-right.is-active > b {
	transform: translate(0, 0);
}

.map-marker.marker-edge-top > b {
	top: calc(100% + 8px);
	bottom: auto;
}

.map-record {
  border-top: 3px double rgba(78, 57, 29, 0.55);
  background: rgba(248, 238, 213, 0.94);
}

.map-record > a {
  color: var(--navy);
}

.hero-index {
  padding: 34px 24px 25px;
  border: 1px solid rgba(72, 55, 34, 0.55);
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 84%, rgba(122, 48, 43, 0.08), transparent 22%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.04) 40px),
    #f5e8c8;
  box-shadow: inset 0 0 0 7px rgba(255, 250, 235, 0.52);
}

.index-heading {
  position: relative;
  padding: 12px 10px 20px;
  border-top: 3px double var(--gold);
  border-bottom: 3px double var(--gold);
}

.index-heading::before {
  content: "I";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--red);
  font-family: Georgia, var(--serif);
}

.index-heading span,
.index-entry span {
  color: var(--red);
}

.index-entry {
  margin: 0 8px;
  border-bottom-color: rgba(72, 55, 34, 0.24);
}

.index-entry:hover,
.index-entry:focus-visible {
  background: rgba(154, 115, 55, 0.08);
}

.index-entry small,
.index-note {
  color: var(--muted);
}

.index-note {
  margin: auto 8px 0;
  border-top: 1px solid var(--gold);
}

.home-section,
.related-records,
.organization-record,
.roster-section {
  position: relative;
  background-color: var(--paper-light);
  background-image: repeating-linear-gradient(0deg, rgba(72, 55, 34, 0.022) 0, rgba(72, 55, 34, 0.022) 1px, transparent 1px, transparent 6px);
}

.home-section::after,
.organization-record::after,
.roster-section::after {
  content: "";
  position: absolute;
  right: max(38px, calc((100vw - 1440px) / 2));
  bottom: 20px;
  left: max(38px, calc((100vw - 1440px) / 2));
  height: 3px;
  border-top: 1px solid rgba(154, 115, 55, 0.65);
  border-bottom: 1px solid rgba(72, 55, 34, 0.26);
  pointer-events: none;
}

.section-heading-light > p,
.section-heading-light h2 {
  color: var(--ink);
}

.faction-ledger {
  background-color: #efe0bd;
}

.faction-record,
.faction-record-primary,
.faction-record-rival {
  color: var(--ink);
  background: rgba(250, 241, 218, 0.72);
  border-color: rgba(89, 66, 37, 0.35);
  box-shadow: inset 0 0 0 5px rgba(255, 250, 237, 0.42);
}

.record-image img,
.character-stage img,
.duel-figures img,
.roster-strip img {
  filter: sepia(0.08) saturate(0.88) contrast(0.98);
}

.character-gallery {
  color: var(--ink);
  background-color: #f5e8c9;
}

.character-stage {
  height: 630px;
  padding: 10px;
  gap: 10px;
  border: 4px double rgba(78, 57, 29, 0.62);
  background: rgba(218, 195, 150, 0.42);
}

.character-feature,
.character-column,
.character-slice:first-child {
  border-color: rgba(78, 57, 29, 0.48);
}

.character-feature,
.character-slice,
.character-tall {
  border: 1px solid rgba(78, 57, 29, 0.48);
  background: var(--paper-deep);
}

.character-feature > strong,
.character-slice > div,
.character-tall > div {
  color: var(--ink);
  background: rgba(248, 238, 213, 0.93);
  border-color: var(--gold);
}

.character-feature > span,
.character-slice span,
.character-tall span {
  color: var(--red);
}

.character-feature > small {
  color: var(--white);
  background: var(--red);
}

.chronicle-duel {
  border-top: 3px double var(--gold);
  border-bottom: 3px double var(--gold);
  background: var(--paper-light);
}

.chronicle-panel {
  border-right: 1px solid rgba(72, 55, 34, 0.35);
  background-color: #f8eed5;
}

.duel-panel {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 45%, rgba(122, 48, 43, 0.06), transparent 35%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.035) 40px),
    #ead9b5;
}

.duel-panel::before {
  border: 4px double rgba(78, 57, 29, 0.62);
}

.duel-title p,
.duel-title h2 span,
.duel-figures figcaption span {
  color: var(--red);
}

.duel-figures figure {
  border: 5px solid #f5e7c6;
  outline: 1px solid var(--gold);
  box-shadow: 0 5px 15px rgba(49, 35, 18, 0.16);
}

.duel-figures figcaption {
  color: var(--ink);
  background: rgba(248, 238, 213, 0.94);
}

.versus {
  border: 3px double #d0aa62;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 4px 10px rgba(64, 30, 22, 0.22);
}

.duel-location {
  color: var(--muted);
}

.game-news {
  border-top: 0;
  border-bottom: 3px double var(--gold);
}

.game-panel,
.news-panel {
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.03) 40px),
    var(--paper-light);
}

.game-panel {
  border-right: 3px double var(--gold);
}

.game-panel .eyebrow,
.game-panel p:last-child {
  color: var(--muted);
}

.game-monogram {
  display: grid;
  place-items: center;
  width: 145px;
  height: 145px;
  border: 3px double rgba(173, 135, 69, 0.72);
  border-radius: 50%;
  color: rgba(122, 48, 43, 0.72);
  font-size: 2.2rem;
}

.site-footer {
  min-height: 126px;
  border-top: 4px solid var(--navy);
  color: var(--ink);
  background: #dfcba1;
}

.site-footer img {
  padding: 0;
  background: transparent;
}

/* Detail pages inherit the same open-chronicle language. */
.record-trail,
.record-trail-dark {
  border-color: var(--line);
  color: var(--muted);
  background: #ead9b5;
}

.dossier-hero,
.faction-hero {
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(72, 55, 34, 0.035) 80px),
    var(--paper-light);
  border-bottom: 3px double var(--gold);
}

.dossier-heading h1,
.faction-heading h1,
.faction-hero-copy h1,
.faction-hero-copy h2,
.organization-record h2,
.faction-history h2,
.faction-history h3 {
  color: var(--navy);
}

.dossier-heading p,
.dossier-heading span,
.character-lead,
.dossier-heading > blockquote,
.seal-link,
.faction-heading,
.faction-lead,
.faction-facts,
.faction-hero-copy p,
.faction-hero-copy span,
.classification,
.identity-ledger,
.quote-block,
.overview-copy,
.organization-record,
.faction-history {
  color: var(--ink);
}

.dossier-heading h1 span,
.identity-ledger dt,
.faction-facts dt,
.dossier-side-note,
.dossier-side-note span,
.dossier-side-note small {
  color: var(--muted);
}

.identity-ledger a,
.faction-facts a,
.seal-link {
  color: var(--red);
}

.dossier-portrait,
.faction-hero-figure {
  padding: 24px;
  border: 4px double rgba(78, 57, 29, 0.68);
  background: #d8bf90;
  box-shadow: inset 0 0 0 7px rgba(255, 248, 228, 0.5);
}

.dossier-portrait img,
.faction-hero-figure img {
  border: 1px solid var(--gold);
  filter: sepia(0.1) saturate(0.88) contrast(0.97);
}

.classification,
.identity-ledger,
.quote-block,
.overview-copy,
.organization-grid article,
.faction-history > article,
.faction-history > aside {
  border-color: rgba(72, 55, 34, 0.3);
  background: rgba(248, 238, 213, 0.56);
}

.faction-backdrop::after {
  background: rgba(244, 230, 199, 0.82);
}

.faction-backdrop img {
  filter: sepia(0.45) saturate(0.55) contrast(0.82) brightness(1.16);
}

.faction-standard {
  color: #f6e7c5;
  background: var(--navy);
}

.faction-standard::after {
  background: var(--red);
}

.organization-record,
.faction-history,
.roster-section {
  color: var(--ink);
  background-color: var(--paper-light);
}

.organization-grid,
.roster-strip {
  border-color: rgba(72, 55, 34, 0.45);
  background: rgba(222, 201, 160, 0.48);
}

.faction-history > header,
.faction-history > article,
.faction-history > aside {
  border-color: rgba(72, 55, 34, 0.3);
  background: transparent;
}

.faction-history > header .eyebrow,
.faction-history article > span,
.faction-history aside > span,
.faction-history article a {
  color: var(--red);
}

@media (max-width: 1180px) {
  .site-header {
    background: linear-gradient(rgba(255, 250, 236, 0.76), rgba(236, 220, 186, 0.88));
  }

  .atlas-hero {
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-header-solid {
    background: linear-gradient(rgba(255, 250, 236, 0.76), rgba(236, 220, 186, 0.88));
  }

  .brand-mark {
    width: 90%;
    height: 54px;
    padding: 0;
  }

  .brand-mark img {
    max-height: none;
  }

  .global-nav {
    color: var(--ink);
    background: var(--paper-light);
  }

  .nav-toggle span {
    background: var(--navy);
  }

  .atlas-hero {
    padding: 8px;
    background: var(--paper-light);
  }

  .atlas-hero::before {
    display: none;
  }

  .hero-title-block {
    color: var(--ink);
    background:
      repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.035) 40px),
      var(--paper-light);
  }

  .hero-title-block h1 {
    color: var(--navy);
  }

  .hero-title-block::before {
    color: var(--gold);
  }

  .hero-lead {
    color: #544737;
  }

  .hero-portrait {
    min-height: 610px;
    border-right: 1px solid rgba(72, 55, 34, 0.55);
  }

  .hero-portrait img {
    inset: 25px;
    width: calc(100% - 50px);
    height: calc(100% - 50px);
  }

  .hero-atlas {
    border-right: 0;
  }

  .character-stage {
    height: auto;
  }

  .game-panel {
    border-right: 0;
    border-bottom: 3px double var(--gold);
  }

.site-footer img {
    width: 230px;
    margin-inline: auto;
  }
}

/* Dynamic Chronicle records */
.chronicle-index-link,
.duel-title h2 a,
.duel-location a {
  color: inherit;
  text-decoration: none;
}

.chronicle-index-link {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.duel-figures figure > a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

.duel-figures-three {
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  height: 430px;
}

.duel-figures-three .versus {
  width: 48px;
  height: 48px;
  font-size: 0.8rem;
}

.duel-figure-placeholder {
  display: grid;
  place-items: center;
  background: var(--paper-light);
}

.duel-monogram {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 4px double var(--gold);
  border-radius: 50%;
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 3rem;
}

.chronicle-archive {
  min-height: 70vh;
  padding: 54px clamp(24px, 5vw, 84px) 84px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.03) 40px),
    var(--paper-light);
}

.chronicle-archive-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.chronicle-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 38px;
  border-top: 3px double var(--gold);
  border-left: 1px solid var(--line);
}

.chronicle-card {
  min-height: 360px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 235, 0.34);
}

.chronicle-card-number {
  margin: 0 0 14px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.68rem;
}

.chronicle-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.45;
}

.chronicle-card h2 a,
.record-text-link {
  color: inherit;
  text-decoration: none;
}

.chronicle-card-sides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0;
  color: var(--ink);
}

.chronicle-card-sides span {
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 0.68rem;
}

.chronicle-card > p:not(.chronicle-card-number) {
  color: var(--muted);
  line-height: 1.8;
}

.record-text-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.75rem;
}

.chronicle-archive .page-numbers {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.chronicle-archive .page-numbers a,
.chronicle-archive .page-numbers .current {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.chronicle-archive .page-numbers .current {
  color: var(--white);
  background: var(--red);
}

.chronicle-detail-hero {
  padding: 72px clamp(24px, 8vw, 130px);
  border-top: 3px double var(--gold);
  border-bottom: 3px double var(--gold);
  text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.035) 40px),
    #ead9b5;
}

.chronicle-detail-hero h1 {
  margin: 8px 0 28px;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.chronicle-detail-sides {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.chronicle-detail-sides > div {
  display: grid;
  min-width: min(260px, 100%);
  padding: 14px 22px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.chronicle-detail-sides > span {
  color: var(--red);
  font-family: Georgia, var(--serif);
}

.chronicle-detail-sides small {
  margin-top: 4px;
  color: var(--muted);
}

.chronicle-detail-lead {
  max-width: 760px;
  margin: 30px auto 0;
  line-height: 2;
}

.chronicle-document .document-main {
  max-width: 900px;
  margin: 0 auto;
}

.chronicle-document .wp-entry-content h2 {
  margin-top: 50px;
  padding-bottom: 8px;
  border-bottom: 3px double var(--gold);
  color: var(--red);
}

.chronicle-document .wp-entry-content p {
  line-height: 2.05;
}

.battle-participant-grid,
.related-grid-fluid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.battle-related-person {
  min-height: 320px;
}

@media (max-width: 920px) {
  .chronicle-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duel-figures-three {
    grid-template-columns: 1fr 38px 1fr 38px 1fr;
  }
}

@media (max-width: 640px) {
  .chronicle-archive {
    padding: 34px 16px 56px;
  }

  .chronicle-ledger {
    grid-template-columns: 1fr;
  }

  .chronicle-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .chronicle-detail-hero {
    padding: 44px 18px;
  }

  .chronicle-detail-sides {
    gap: 8px;
  }

  .chronicle-detail-sides > div {
    min-width: 0;
    width: 100%;
  }

  .duel-figures-three {
    grid-template-columns: 1fr 32px 1fr 32px 1fr;
    height: 330px;
  }

  .duel-figures-three .versus {
    width: 32px;
    height: 32px;
    font-size: 0.58rem;
  }

  .duel-figures-three figcaption {
    padding: 8px 4px;
    font-size: 0.66rem;
  }

  .duel-monogram {
    width: 76px;
    height: 76px;
    font-size: 2rem;
  }
}

/* Moderated image notice board */
.game-news {
  grid-template-columns: 1.05fr 0.95fr 1fr;
}

.game-panel,
.news-panel,
.board-panel {
  min-width: 0;
  padding: 54px 38px;
}

.news-panel {
  border-right: 1px solid rgba(173, 135, 69, 0.45);
}

.board-panel {
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.03) 40px),
    #efe1c1;
}

.board-panel .eyebrow {
  color: var(--red);
}

.board-panel h2 {
  margin: 7px 0 12px;
  color: var(--navy);
  font-size: 2.1rem;
  line-height: 1.2;
}

.board-panel ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.board-panel li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.board-panel li:last-child {
  border-bottom: 1px solid var(--line);
}

.board-panel-thumb {
  display: block;
  width: 54px;
  height: 54px;
  border: 1px solid var(--gold);
  background: var(--paper-deep);
  overflow: hidden;
}

.board-panel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-panel li span,
.board-panel li small {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
}

.board-panel li p {
  margin: 2px 0;
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.board-panel-empty {
  margin: 26px 0;
  color: var(--muted);
}

.board-panel-link {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
}

.notice-board-page {
  min-width: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.028) 40px),
    var(--paper);
}

.notice-board-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 16px;
  width: min(1800px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.board-index,
.board-notice {
  align-self: start;
  padding: 26px 24px;
  border: 3px double rgba(78, 57, 29, 0.52);
  background: rgba(249, 241, 220, 0.66);
}

.board-index h2,
.board-notice h2 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--red);
  font-size: 1rem;
  font-weight: 500;
}

.board-index h2 span,
.board-notice h2 span {
  color: var(--muted);
  font-size: 0.68rem;
}

.board-index ul,
.board-notice ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.board-index li a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.board-index li span,
.board-index li small {
  color: var(--gold);
}

.board-index li b {
  font-size: 0.78rem;
  font-weight: 500;
}

.board-index > p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 2;
  text-align: center;
}

.board-ledger {
  min-width: 0;
  padding: 32px 24px 42px;
  border-top: 1px solid rgba(173, 135, 69, 0.5);
  border-bottom: 1px solid rgba(173, 135, 69, 0.5);
  background: rgba(250, 242, 222, 0.62);
}

.board-hero {
  padding: 0 10px 22px;
}

.board-hero > p:first-child,
.board-submission header > p,
.board-record > header > p {
  margin: 0;
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 0.68rem;
  font-weight: 700;
}

.board-hero > div {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.board-hero h1 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.05;
}

.board-hero h1 span {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.board-hero > div > a,
.board-form button {
  flex: 0 0 auto;
  padding: 13px 24px;
  border: 3px double #d6b56e;
  border-radius: 0;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 3px 0 rgba(83, 42, 29, 0.16);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
}

.board-hero > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.board-list-heading,
.board-entry-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 140px;
}

.board-list-heading {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #e2cca0;
  color: #5f503d;
  font-family: var(--sans);
  font-size: 0.65rem;
}

.board-entry-row {
  min-height: 128px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(255, 250, 237, 0.54);
}

.board-entry-image {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.board-entry-image img,
.board-entry-image > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 106px;
  object-fit: cover;
  border: 1px solid var(--gold);
  color: var(--muted);
  background: var(--paper-deep);
  font-family: Georgia, var(--serif);
  font-size: 0.62rem;
}

.board-entry-copy {
  min-width: 0;
  align-self: center;
  padding: 16px 20px;
}

.board-entry-copy > p:first-child {
  margin: 0 0 5px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.62rem;
}

.board-entry-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.board-entry-copy > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.board-entry-byline {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-left: 1px solid var(--line);
  font-family: var(--sans);
}

.board-entry-byline strong {
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.board-entry-byline time {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.62rem;
}

.board-empty {
  padding: 52px 24px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.board-empty p {
  margin: 7px 0 0;
}

.notice-board-page .navigation.pagination {
  margin: 28px 0 0;
  text-align: center;
}

.notice-board-page .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.notice-board-page .page-numbers {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
}

.notice-board-page .page-numbers.current {
  color: var(--white);
  background: var(--red);
}

.board-submission {
  margin-top: 44px;
  padding: 30px;
  border: 3px double rgba(78, 57, 29, 0.52);
  background: rgba(247, 235, 207, 0.72);
}

.board-submission header h2 {
  margin: 5px 0 3px;
  color: var(--navy);
  font-size: 1.7rem;
}

.board-submission header span {
  color: var(--muted);
  font-size: 0.72rem;
}

.board-form-message {
  margin-top: 20px;
  padding: 13px 16px;
  border-left: 3px solid var(--gold);
  background: var(--paper-light);
  font-size: 0.78rem;
}

.board-form-message.is-success {
  border-left-color: #476a4d;
}

.board-form-message.is-error {
  border-left-color: var(--red);
}

.board-form {
  margin-top: 24px;
}

.board-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.board-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #514432;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
}

.board-form label > span b {
  color: var(--red);
  font-size: 0.58rem;
}

.board-form input[type="text"],
.board-form input[type="file"],
.board-form select,
.board-form textarea {
  width: 100%;
  border: 1px solid rgba(78, 57, 29, 0.42);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 252, 243, 0.88);
}

.board-form input[type="text"],
.board-form select,
.board-form textarea {
  padding: 10px 12px;
}

.board-form input[type="file"] {
  padding: 7px;
  font-family: var(--sans);
  font-size: 0.7rem;
}

.board-form label > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.62rem;
}

.board-form-content {
  display: block;
  margin-top: 18px;
}

.board-form textarea {
  resize: vertical;
}

.board-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 18px 0;
}

.board-consent input {
  margin-top: 5px;
}

.board-consent > span {
  margin: 0 !important;
  font-weight: 400 !important;
}

.board-honeypot {
  position: absolute;
  left: -9999px;
}

.board-notice > section + section {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.board-notice ol {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.board-notice ol li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.7rem;
  line-height: 1.7;
}

.board-notice ol span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--red);
}

.board-notice li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.board-notice li small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.6rem;
}

.board-notice section > p {
  color: var(--muted);
  font-size: 0.72rem;
}

.board-record-page {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(72, 55, 34, 0.028) 40px),
    var(--paper);
}

.board-record {
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  padding: 68px 0 84px;
}

.board-record > header {
  text-align: center;
}

.board-record > header h1 {
  margin: 8px 0 18px;
  color: var(--navy);
  font-size: 2.6rem;
  font-weight: 500;
}

.board-record > header div {
  display: flex;
  gap: 16px;
  justify-content: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
}

.board-record > header div span {
  color: var(--red);
}

.board-record > figure {
  margin: 42px 0 0;
  padding: 22px;
  border: 4px double rgba(78, 57, 29, 0.68);
  background: #d8bf90;
  box-shadow: inset 0 0 0 7px rgba(255, 248, 228, 0.5);
}

.board-record > figure img {
  width: 100%;
  max-height: 1100px;
  object-fit: contain;
  border: 1px solid var(--gold);
  background: var(--paper-light);
}

.board-record > figure figcaption {
  padding: 13px 4px 0;
  color: #594b39;
  font-family: var(--sans);
  font-size: 0.65rem;
  text-align: center;
}

.board-record-content {
  max-width: 760px;
  margin: 42px auto 0;
  padding: 28px 32px;
  border-top: 3px double var(--gold);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 242, 222, 0.62);
  line-height: 2;
}

.board-record > .record-text-link {
  display: block;
  width: max-content;
  margin: 32px auto 0;
}

@media (max-width: 1180px) {
  .game-news {
    grid-template-columns: 1fr 1fr;
  }

  .game-panel {
    grid-column: 1 / -1;
    min-height: 280px;
    border-right: 0;
    border-bottom: 3px double var(--gold);
  }

  .notice-board-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .board-notice {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .board-notice > section + section {
    margin: 0;
    padding: 0 0 0 36px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .game-news,
  .notice-board-layout,
  .board-notice {
    grid-template-columns: 1fr;
  }

  .game-panel,
  .news-panel,
  .board-panel {
    grid-column: auto;
    padding: 48px 22px;
  }

  .news-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(173, 135, 69, 0.45);
  }

  .board-panel h2 {
    font-size: 1.6rem;
  }

  .notice-board-layout {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .board-index,
  .board-notice {
    padding: 22px 18px;
  }

  .board-ledger {
    padding: 30px 12px 36px;
  }

  .board-hero > div {
    display: block;
  }

  .board-hero h1 {
    font-size: 2rem;
  }

  .board-hero h1 span {
    font-size: 1.15rem;
  }

  .board-hero > div > a {
    display: inline-block;
    margin: 14px 0 9px;
  }

  .board-list-heading {
    display: none;
  }

  .board-entry-row {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 112px;
    border-top: 1px solid var(--line);
  }

  .board-entry-image {
    padding: 7px;
  }

  .board-entry-image img,
  .board-entry-image > span {
    height: 96px;
  }

  .board-entry-copy {
    padding: 13px;
  }

  .board-entry-copy h2 {
    font-size: 0.86rem;
  }

  .board-entry-copy > p:last-child {
    display: none;
  }

  .board-entry-byline {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    padding: 0 13px 12px;
    border-left: 0;
  }

  .board-entry-byline time {
    margin: 0;
  }

  .board-submission {
    margin-top: 34px;
    padding: 24px 16px;
  }

  .board-form-grid {
    grid-template-columns: 1fr;
  }

  .board-form button {
    width: 100%;
  }

  .board-notice {
    display: block;
  }

  .board-notice > section + section {
    margin-top: 30px;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .board-record {
    width: calc(100% - 28px);
    padding: 44px 0 60px;
  }

  .board-record > header h1 {
    font-size: 2rem;
  }

  .board-record > header div {
    flex-wrap: wrap;
  }

  .board-record > figure {
    margin-top: 30px;
    padding: 12px;
  }

  .board-record-content {
    margin-top: 30px;
    padding: 22px 18px;
  }
}

/* Notice board threads and moderated reply tree. */
.board-index a[aria-current="page"] {
  color: var(--red);
  background: rgba(177, 135, 64, 0.09);
}

.board-thread-heading {
  grid-template-columns: 78px minmax(0, 1fr) 132px;
}

.board-thread-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 132px;
  min-height: 128px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(255, 250, 237, 0.54);
}

.board-thread-seal {
  display: grid;
  place-self: center;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px double var(--gold);
  border-radius: 50%;
  color: var(--paper-light);
  background: var(--red);
  font-size: 1rem;
}

.board-thread-row > div:nth-child(2) {
  min-width: 0;
  align-self: center;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}

.board-thread-row > div:nth-child(2) > p:first-child {
  margin: 0 0 5px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.6rem;
}

.board-thread-row h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 500;
}

.board-thread-row h2 + p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.board-thread-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-left: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.64rem;
}

.board-thread-stats strong {
  color: var(--red);
  font-family: Georgia, var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.board-thread-stats strong small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.58rem;
}

.board-thread-stats span,
.board-thread-stats time {
  margin-top: 5px;
  color: var(--muted);
}

.board-thread-page .board-form-message {
  margin: 0 10px 18px;
}

.board-thread-entry {
  border: 1px solid var(--line);
  background: rgba(255, 250, 237, 0.54);
}

.board-thread-entry + .board-thread-entry {
  margin-top: 12px;
}

.board-thread-entry-main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 130px;
  min-height: 142px;
  background: rgba(236, 215, 172, 0.18);
}

.board-thread-entry-main.without-image {
  grid-template-columns: minmax(0, 1fr) 130px;
}

.board-thread-entry-image {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.board-thread-entry-image img {
  width: 100%;
  height: 120px;
  border: 1px solid var(--gold);
  object-fit: cover;
}

.board-thread-entry-copy {
  min-width: 0;
  align-self: center;
  padding: 18px 20px;
}

.board-thread-entry-copy > p {
  margin: 0 0 5px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.6rem;
}

.board-thread-entry-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.board-thread-entry-copy > div {
  margin-top: 7px;
  color: #665641;
  font-size: 0.73rem;
  line-height: 1.7;
}

.board-thread-entry-copy > div p {
  margin: 0;
}

.board-thread-entry-byline {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-left: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.64rem;
}

.board-thread-entry-byline strong {
  overflow-wrap: anywhere;
}

.board-thread-entry-byline time,
.board-thread-entry-byline span {
  margin-top: 5px;
  color: var(--muted);
}

.board-thread-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
}

.board-thread-actions button,
.board-reply-action {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  color: var(--red);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.65rem;
}

.board-reply-tree {
  padding: 4px 16px 14px 28px;
  border-top: 1px solid rgba(173, 135, 69, 0.3);
}

.board-reply {
  position: relative;
  margin-top: 8px;
  padding-left: 22px;
}

.board-reply::before {
  position: absolute;
  top: 0;
  bottom: -9px;
  left: 4px;
  width: 1px;
  background: rgba(128, 43, 34, 0.52);
  content: "";
}

.board-reply::after {
  position: absolute;
  top: 28px;
  left: 4px;
  width: 13px;
  height: 1px;
  background: rgba(128, 43, 34, 0.52);
  content: "";
}

.board-reply-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(173, 135, 69, 0.35);
}

.board-reply-main.has-reply-image {
  grid-template-columns: minmax(0, 1fr) 78px auto;
}

.board-reply-copy {
  min-width: 0;
}

.board-reply-number {
  display: inline;
  margin: 0 8px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.58rem;
}

.board-reply-copy > strong,
.board-reply-copy > time {
  font-family: var(--sans);
  font-size: 0.64rem;
}

.board-reply-copy > time {
  margin-left: 10px;
  color: var(--muted);
}

.board-reply-copy > div {
  margin-top: 5px;
  color: #665641;
  font-size: 0.72rem;
  line-height: 1.65;
}

.board-reply-copy > div p {
  margin: 0;
}

.board-reply-image img {
  width: 72px;
  height: 58px;
  border: 1px solid var(--gold);
  object-fit: cover;
}

.board-reply-children {
  margin-left: 18px;
}

.board-reply-form {
  margin: 10px 12px 12px 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(247, 235, 207, 0.72);
}

.board-reply-form[hidden],
.board-reply-tree[hidden] {
  display: none;
}

.board-reply-form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.board-reply-form label > span {
  display: block;
  margin-bottom: 5px;
  color: #514432;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
}

.board-reply-form input[type="text"],
.board-reply-form input[type="file"],
.board-reply-form textarea {
  width: 100%;
  border: 1px solid rgba(78, 57, 29, 0.42);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 252, 243, 0.88);
}

.board-reply-form input[type="text"],
.board-reply-form textarea {
  padding: 9px 11px;
}

.board-reply-form input[type="file"] {
  padding: 6px;
  font-family: var(--sans);
  font-size: 0.66rem;
}

.board-reply-form > label:not(.board-consent) {
  display: block;
  margin-top: 14px;
}

.board-reply-form button[type="submit"] {
  padding: 10px 16px;
  border: 3px double #d6b56e;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .board-thread-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .board-thread-stats {
    grid-column: 2;
    flex-flow: row wrap;
    gap: 5px 12px;
    justify-content: flex-start;
    padding: 0 14px 14px 20px;
    border-left: 1px solid var(--line);
  }

  .board-thread-stats strong {
    font-size: 0.8rem;
  }

  .board-thread-stats span,
  .board-thread-stats time {
    margin-top: 1px;
  }

  .board-thread-entry-main,
  .board-thread-entry-main.without-image {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .board-thread-entry-main.without-image .board-thread-entry-copy {
    grid-column: 1 / -1;
  }

  .board-thread-entry-image {
    padding: 7px;
  }

  .board-thread-entry-image img {
    height: 92px;
  }

  .board-thread-entry-copy {
    padding: 13px;
  }

  .board-thread-entry-copy h2 {
    font-size: 0.88rem;
  }

  .board-thread-entry-copy > div {
    font-size: 0.68rem;
  }

  .board-thread-entry-byline {
    grid-column: 1 / -1;
    flex-flow: row wrap;
    gap: 5px 12px;
    justify-content: flex-start;
    padding: 9px 12px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .board-thread-entry-byline time,
  .board-thread-entry-byline span {
    margin: 0;
  }

  .board-reply-tree {
    padding-right: 8px;
    padding-left: 9px;
  }

  .board-reply {
    padding-left: 14px;
  }

  .board-reply::after {
    width: 8px;
  }

  .board-reply-children {
    margin-left: 5px;
  }

  .board-reply-main,
  .board-reply-main.has-reply-image {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .board-reply-image {
    grid-column: 1;
  }

  .board-reply-action {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .board-reply-form {
    margin-right: 2px;
    margin-left: 14px;
    padding: 14px;
  }

  .board-reply-form > div {
    grid-template-columns: 1fr;
  }
}
