/* The chapter editions share the type, margins and press colors of the front page. */
.edition-opening, .edition-reader { min-width: 0; }
.edition-opening { padding-block: clamp(16px, 2vw, 29px) 22px; --section-accent: #8f1655; }
.tone-course { --section-accent: #096554; }
.tone-quest { --section-accent: #8b4604; }
.tone-codex { --section-accent: #4c1d95; }
.edition-folio, .press-byline, .telegraph-label, .feature-heading > span,
.codex-emblem > span, .card-suits, .route-leg > div > span, .station-card summary span,
.wanted-notices article > span, .atlas-figure figcaption b, .byline-print {
  font-family: var(--display, "Barlow Condensed", sans-serif);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.edition-folio, .press-byline { display: flex; align-items: center; gap: .65em; flex-wrap: wrap; font-size: .88rem; }
.edition-folio a { color: inherit; text-underline-offset: .18em; }
.edition-folio b { color: var(--section-accent); }
.edition-folio { border-bottom: 1px solid #a89b88; padding-bottom: 10px; }
.edition-lead { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(1rem, 3.5vw, 4rem); padding-top: 14px; }
.edition-lead h1 {
  font: 800 clamp(2.75rem, 4.8vw, 4.9rem)/.92 var(--display, "Barlow Condensed", sans-serif);
  color: #17131c; text-transform: uppercase; letter-spacing: -.027em; margin: 0; text-wrap: balance;
}
.edition-abstract { border-left: 3px solid var(--section-accent); padding-left: clamp(1rem, 2.3vw, 2rem); }
.edition-abstract .guide-intro { color: #322a2c; font: 400 clamp(1rem, 1.15vw, 1.12rem)/1.42 var(--text, "Source Sans 3",sans-serif); margin: 0 0 10px; max-width: 70ch; }
.press-byline { font-size: .77rem; color: #47403b; }
.press-byline span { color: #9d155c; }
.telegraph {
  display: flex; align-items: stretch; width: 100%; min-width: 0; border-block: 3px double #17131c;
  font: 700 .93rem/1 var(--display, "Barlow Condensed", sans-serif);
  color: #17131c; background: #f8f1e5;
}
.telegraph-label { display: flex; align-items: center; white-space: nowrap; padding: 0 .85rem 0 .55rem; font-size: .82rem; gap: .55em; }
.telegraph-label i { font-size: 1.3em; font-style: normal; }
.telegraph > div { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #86786e #efe5d4; min-width: 0; flex: 1; }
.telegraph a { display: grid; align-items: center; white-space: nowrap; text-decoration: none; padding: .75rem .9rem; border-left: 1px solid #b7aa98; color: #332c30; }
.telegraph a:hover, .telegraph a[aria-current="location"] { background: #e7d9c3; color:#17131c; text-decoration: underline; text-underline-offset: .25em; }
.edition-reader { padding-bottom: 48px; }
.reading { min-width: 0; }
.reading > .press-byline { margin-top: 1.5rem; }
.feature-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; margin: 0 0 .88rem; flex-wrap: wrap; }
.feature-heading h2, .guide-section > h2 {
  margin: 0; font: 700 clamp(2rem, 3.5vw, 3.35rem)/.99 var(--display, "Barlow Condensed",sans-serif);
  letter-spacing: -.018em; color: #17131c;
}
.feature-heading h2 { text-transform: uppercase; }
.feature-heading > span { font-size: .85rem; color: #514142; }
.reading a { text-underline-offset: .19em; }
.feature-heading > a, .wanted-notices a, .station-card a {
  color: #8b1555; font-weight: 700; text-decoration-thickness: 1px;
}
.tier-feature, .codex-feature, .map-layers, .quest-feature { margin: clamp(22px, 3vw, 38px) 0; }
.reading .enhance-only, .js .reading .static-mode-title { display: none; }
.js .reading .mode-switch, .js .reading .layer-switches { display: flex; }
.reading [hidden] { display: none !important; }
.mode-switch, .layer-switches { gap: .35rem; flex-wrap: wrap; }
.mode-switch { margin: 0 0 .85rem; }
.reading button, .reading select, .reading input {
  border: 1.5px solid #17131c; border-radius: 0; padding: .47rem .72rem; background: #fffdf9; color: #17131c;
  font: 600 1rem/1.2 var(--text, "Source Sans 3",sans-serif); box-sizing: border-box;
}
.reading button { cursor: pointer; font-family: var(--display, "Barlow Condensed",sans-serif); font-weight: 700; }
.reading button:is(:hover,:focus-visible) { text-decoration: underline; }
.reading button[aria-pressed="true"] { background: #17131c; color: #fffdf9; }
.tier-lane {
  display: grid; grid-template-columns: clamp(56px,6vw,80px) 1fr;
  border-bottom: 1.5px solid #17131c; background: #fffdf9;
}
.rank-board { border: 2.5px solid #17131c; box-shadow: 5px 5px 0 #17131c; }
.rank-board + .rank-board, .rank-board + #board-matrix { margin-top: 1rem; }
.tier-lane:last-child { border-bottom: 0; }
.grade-S { --grade-bg: #C81D77; --grade-ink: #fffdf9; }
.grade-A { --grade-bg: #0d7c66; --grade-ink: #fffdf9; }
.grade-B { --grade-bg: #d97706; --grade-ink: #17131c; }
.grade-C { --grade-bg: #4c1d95; --grade-ink: #fffdf9; }
.grade-U { --grade-bg: #e7ddcb; --grade-ink: #17131c; }
.grade-stamp, .matrix-grade { background: var(--grade-bg); color: var(--grade-ink); }
.grade-stamp { display: grid; place-items: center; border-right: 2.5px solid #17131c; font: italic 700 3rem/.95 var(--display,"Barlow Condensed",sans-serif); }
.tier-lane > div { padding: .48rem .62rem; display: flex; gap: .45rem; flex-wrap: wrap; min-width: 0; }
.tier-token { padding: .32rem .65rem; display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-content: center; align-items: center; flex: 1 1 145px; max-width: 228px; color: #17131c; border: 1px solid #af9e8e; background: #f7efe2; text-decoration: none; }
.tier-token .kit-sigil { grid-row: span 2; width: 31px; height: 31px; color: var(--suit,#86164e); background: var(--wash,#f4d5e0); padding: 2px; }
.tier-token:hover { background: #ead9ca; outline: 1px solid #17131c; }
.tier-token b { font: 700 1.15rem/1.05 var(--display,"Barlow Condensed",sans-serif); }
.tier-token small { font-size: .72rem; line-height: 1.15; color: #584750; }
.static-mode-title { margin: 0; padding: .6rem; }
.matrix-grade { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border: 1px solid #17131c; font: 700 1.35rem/1 var(--display,"Barlow Condensed",sans-serif); }
.board-source { margin: .85rem 0 0; font-size: .89rem; color: #51493e; }
.js .reading .kit-filters { display: grid; }
.kit-filters { grid-template-columns: minmax(155px,1.7fr) repeat(3,minmax(100px,1fr)) auto; align-items: end; gap: .65rem; margin: 0 0 18px; }
.kit-filters label { display: grid; gap: .28rem; font: 700 .84rem/1.1 var(--display,"Barlow Condensed",sans-serif); text-transform: uppercase; letter-spacing: .055em; }
.kit-filters input, .kit-filters select { width: 100%; height: 38px; min-width: 0; }
.kit-filters button { height: 38px; white-space: nowrap; }
.codex-wall { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .9rem; }
.codex-card { --suit: #a61863; --wash: #f4d5e0; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-width: 0; border: 2.5px solid #17131c; box-shadow: 4px 4px 0 #17131c; background: #fffdf9; }
.suit-counter, .suit-unverified { --suit: #4c1d95; --wash: #e5d8ec; }
.suit-ranged, .suit-mobility { --suit: #0a6152; --wash: #cae4d8; }
.suit-support, .suit-traps { --suit: #834005; --wash: #ffe2a8; }
.codex-emblem {
  color: var(--suit); display: grid; grid-template-columns: 1fr 55px 1fr; align-items: start; padding: 7px 9px 5px;
  background-color: var(--wash); background-image: radial-gradient(color-mix(in srgb, var(--suit) 25%,transparent) .65px,transparent .85px);
  background-size: 3.5px 3.5px; border-bottom: 2px solid #17131c;
}
.codex-emblem > span { color: #17131c; font-size: .72rem; line-height: 1.05; font-weight: 700; }
.codex-emblem > span:last-child { text-align: right; }
.kit-sigil { width: 54px; height: 54px; align-self: center; padding: 3px; border: 1px solid currentColor; border-radius: 50%; background: var(--wash); }
.codex-file { min-width: 0; overflow-wrap: anywhere; padding: .65rem .8rem; display: flex; flex-direction: column; }
.codex-file h3 { font: 700 clamp(1.3rem,1.65vw,1.65rem)/1 var(--display,"Barlow Condensed",sans-serif); margin: 0 0 .35em; }
.codex-file h3 a { color: #17131c; text-decoration: none; }
.codex-file h3 a:hover { text-decoration: underline; }
.card-suits { color: var(--suit); font-size: .74rem; letter-spacing: .04em; }
.card-suits b + span::before { content: " / "; color: #7b6b65; }
.codex-file p { margin: .5rem 0 .65rem; font-size: .97rem; line-height: 1.25; }
.hud-keys { display: flex; flex-wrap: wrap; gap: .27rem; margin-top: auto; font-size: .88rem; }
.reading kbd { display: inline-grid; place-items: center; min-width: 1.42em; box-sizing: border-box; padding: .1em .3em; border: 1px solid #17131c; box-shadow: 0 2px 0 #17131c; background: #f9f3e8; color: #17131c; font: 700 .86rem/1.15 var(--display,"Barlow Condensed",sans-serif); }
.binding-notes { display: flex; gap: .55rem 1.6rem; flex-wrap: wrap; margin: .7rem 0 1rem; }
.binding-notes span { margin-left: .3rem; }
.map-console { background: #fffdf9; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .55rem .8rem; border: 2.5px solid #17131c; border-bottom: 0; }
.map-console > span { font-size: .9rem; color: #514740; }
.layer-switches button { padding: .35rem .6rem; }
.route-diagrams, .quest-itinerary { display: grid; border: 2.5px solid #17131c; box-shadow: 5px 5px 0 #17131c; }
.route-diagrams { grid-template-columns: repeat(3,minmax(0,1fr)); background: #eee0c1; }
.route-leg + .route-leg { border-left: 2px solid #17131c; }
.route-leg { position: relative; min-width: 0; background: repeating-linear-gradient(0deg,transparent 0 19px,#655e3d17 19px 20px), repeating-linear-gradient(90deg,transparent 0 19px,#655e3d17 19px 20px); }
.route-leg > div { position: relative; z-index: 1; padding: .8rem .9rem 0; }
.route-leg > div > span { color: #455444; font-size: .77rem; }
.route-leg h3, .roadbook-leg h3 { font: 700 clamp(1.4rem,2vw,2rem)/1 var(--display,"Barlow Condensed",sans-serif); margin: .2rem 0; }
.route-leg svg { display: block; width: 100%; height: auto; }
.route-leg p { border-top: 1px solid #8d806a; padding: .45rem .85rem; margin: 0; font-size: .9rem; font-weight: 600; background: #fbf4e5; }
.terrain-fill { fill: #d7be88; }
.route-leg:nth-child(2) .terrain-fill { fill: #e4bf96; }
.route-leg:nth-child(3) .terrain-fill { fill: #add0ba; }
.survey-contours { fill: none; stroke: #766c51; stroke-width: 1; }
.course-outline, .course-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.course-outline { stroke: #fff9e7; stroke-width: 5; }
.course-line { stroke: #17131c; stroke-width: 2; stroke-dasharray: 3 2; }
.route-terrain { --point: #0d7c66; }
.route-hazards { --point: #c81d77; }
.route-supplies { --point: #d97706; }
.stop-symbol { fill: var(--point); stroke: #17131c; stroke-width: 1.5; }
.survey-map a:hover .stop-symbol, .survey-map a:focus-visible .stop-symbol { stroke-width: 3; }
.roadbook { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.3rem 0; align-items: start; }
.roadbook-leg { background: #fffdf9; border: 2px solid #17131c; }
.roadbook-leg h3 { background: #d7e8d9; padding: .7rem .8rem; border-bottom: 2px solid #17131c; }
.station-card { border-bottom: 1px dashed #ae9b80; }
.station-card:last-child { border: 0; }
.station-card summary { padding: .5rem .7rem; cursor: pointer; font-weight: 600; }
.station-card summary span { font-size: .76rem; color: #0b6653; margin-right: .4em; }
.station-card div { padding: 0 .7rem .8rem; font-size: .96rem; }
.station-card p { margin: 0 0 .6rem; }
.quest-itinerary { grid-template-columns: repeat(4,minmax(0,1fr)); background: #fffdf9; }
.quest-step { display: block; padding: .85rem 1.15rem 1rem; position: relative; color: #17131c; text-decoration: none; }
.quest-step + .quest-step { border-left: 2px solid #17131c; }
.quest-step > div { display: flex; justify-content: space-between; align-items: flex-start; color: #834005; }
.quest-step > div > span { font: 700 .9rem/1 var(--display,"Barlow Condensed",sans-serif); letter-spacing:.1em; padding-block: .3rem; border-block: 1px solid; }
.quest-step h3 { margin: .25rem 0 .4rem; font: 700 1.7rem/1 var(--display,"Barlow Condensed",sans-serif); text-transform: uppercase; }
.quest-step p { margin: 0; font-size: 1rem; line-height: 1.35; }
.quest-step:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 56%; right: -12px; padding: 0 3px; color:#17131c; background: #fffdf9; font-weight: 700; }
.quest-step:hover h3 { text-decoration: underline; }
.wanted-notices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.2rem 0; }
.wanted-notices article { border: 4px double #17131c; background: #f3dfb8; padding: 1rem; }
.wanted-notices article > span { display: block; color: #673b1f; font-size: .8rem; }
.wanted-notices article h3 { margin: .35rem 0; font: 700 1.8rem/1 var(--display,"Barlow Condensed",sans-serif); text-transform: uppercase; }
.wanted-notices p { line-height: 1.4; }
.guide-section { padding-block: clamp(22px,3vw,38px); border-top: 2px solid #17131c; min-width: 0; }
.guide-section > h2 { margin: 0 0 .55em; text-wrap: balance; }
.guide-section h3:not(.faq-question,.wanted-notices h3,.roadbook-leg h3) { font: 700 clamp(1.3rem,2.1vw,1.9rem)/1.1 var(--display,"Barlow Condensed",sans-serif); margin: 1.1em 0 .42em; }
.guide-copy { color: #312b29; font: 400 clamp(1.04rem,1.32vw,1.17rem)/1.55 var(--text,"Source Sans 3",sans-serif); max-width: 78ch; margin: 0 0 1em; }
.guide-copy a, .atlas-table a, .guide-links a { color: #7d1948; }
.guide-copy a, .atlas-table a { text-decoration: underline; }
.press-copy-columns { columns: 2; column-gap: clamp(1.5rem,3.7vw,3.5rem); column-rule: 1px solid #c7b8a5; margin-block: .9rem 1.15rem; }
.press-copy-columns > p:last-child { margin-bottom: 0; }
.guide-links { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .65rem; }
.guide-links li { padding: .45rem .7rem; border: 1px solid #807466; background: #fffdf9; }
.guide-links a { font-weight: 600; }
.faq-question { font: 700 clamp(1.25rem,2.1vw,1.65rem)/1.14 var(--display,"Barlow Condensed",sans-serif); margin: 1.6rem 0 .45rem; }
.faq-question + p { max-width: 85ch; }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #8c7d70 #f5ede0; margin: 1rem 0 1.5rem; border: 2px solid #17131c; background: #fffdf9; }
.atlas-table { width: 100%; border-collapse: collapse; font: 400 .99rem/1.35 var(--text,"Source Sans 3",sans-serif); color: #211a20; }
.atlas-table caption { caption-side: top; background: #e7d9c4; text-align: left; padding: .5rem .75rem; font: 700 1.2rem/1.1 var(--display,"Barlow Condensed",sans-serif); }
.atlas-table th, .atlas-table td { text-align: left; vertical-align: top; padding: .64rem .75rem; border-bottom: 1px solid #b8aa97; border-right: 1px solid #d4c6b5; }
.atlas-table thead th { background: #332831; color: #fffdf9; font: 700 .97rem/1.15 var(--display,"Barlow Condensed",sans-serif); }
.atlas-table tbody th { font-weight: 600; }
.atlas-table tbody tr:nth-child(even) { background: #f8f2e9; }
.atlas-table tr:target { background: #f9e3a8 !important; }
.atlas-table th:last-child, .atlas-table td:last-child { border-right: 0; }
.atlas-table tbody tr:last-child > * { border-bottom: 0; }
.record-table { min-width: 850px; }
.record-table :is(td,th):first-child { width: 17%; }
.record-table td:last-child { width: 23%; }
.cell-note, .record-meta time { display: block; margin-top: .25rem; }
.record-meta, .cell-note { font-size: .89rem; color: #514843; }
.record-id { font-family: var(--display,"Barlow Condensed",sans-serif); font-size: .89rem; letter-spacing: .055em; }
[data-section="patch-timeline"] .record-table tbody th { border-left: 4px solid #0d7c66; }
[data-section="patch-timeline"] .record-table tbody th time { display: inline-block; font-weight: 700; }
.atlas-figure { min-width: 0; margin: 1.45rem 0 1.2rem; overflow: hidden; border: 2.5px solid #17131c; box-shadow: 5px 5px 0 #17131c; background: #fffdf9; }
.atlas-figure > a { display: grid; place-items: center; position: relative; background: #17131c; color: #fffdf9; }
.atlas-figure picture { display: contents; }
.atlas-figure img { width: 100%; height: auto; object-fit: contain; display: block; max-height: 530px; }
.enlarge-plate { position: absolute; right: 0; bottom: 0; border: 1px solid #17131c; padding: .25rem .55rem; font-weight: 700; background: #fffdf9; color: #17131c; }
.atlas-figure figcaption { display: flex; align-items: baseline; gap: .8rem; border-top: 2px solid #17131c; padding: .62rem .85rem; font-size: .95rem; line-height: 1.35; color: #332c29; }
.atlas-figure figcaption b { flex: none; font-size: .78rem; }
.badge-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,135px),1fr)); gap: .8rem; max-width: 840px; align-items: stretch; }
.badge-gallery:has(> :only-child) { max-width: 220px; }
.atlas-badge { margin: .85rem 0; display: flex; flex-direction: column; }
.atlas-badge img { height: 85px; margin: .35rem; width: auto; }
.atlas-badge figcaption { display: block; padding: .43rem .6rem; font-size: .86rem; }
.atlas-badge figcaption b { display: block; margin-bottom: .18em; }
.ad-slot { display: grid; place-items: center; width: 728px; height: 90px; box-sizing: border-box; position: relative; left: 50%; transform: translateX(-50%); margin: 1.6rem 0; border: 3px double #8c7b64; overflow: hidden; contain: strict; background: repeating-linear-gradient(135deg,#eee5d6 0 1px,transparent 1px 8px),#f7efe4; }
.ad-slot > span { position: absolute; background: #f7efe4; color: #5d5043; font-size: .8rem; line-height: 1.1; letter-spacing: .08em; padding: .3rem .65rem; z-index: 1; }
.ad-slot > :not(span) { position: absolute; inset: 0; }
@media (max-width: 980px) {
  .codex-wall { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .quest-step { padding: .8rem .9rem; }
}
@media (max-width: 768px) {
  .ad-slot { width: 300px; height: 250px; }
  .edition-lead { grid-template-columns: 1fr; gap: .85rem; }
  .edition-abstract { padding: 0; border: 0; }
  .edition-opening { padding-bottom: 15px; }
  .edition-lead h1 { max-width: 25ch; }
  .codex-wall { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kit-filters { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
  .kit-filters label:first-child { grid-column: span 2; }
  .quest-itinerary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quest-step:nth-child(3) { border-left: 0; }
  .quest-step:nth-child(n+3) { border-top: 2px solid #17131c; }
  .quest-step:nth-child(2)::after { content: "↓"; top: auto; bottom: -12px; right: 10px; }
  .wanted-notices, .roadbook { grid-template-columns: 1fr; }
  .route-leg > div { padding: .55rem .6rem 0; }
  .press-copy-columns { columns: 1; }
}
@media (max-width: 580px) {
  .edition-folio { padding-bottom: .45rem; font-size: .78rem; }
  .edition-lead { padding-top: .65rem; }
  .edition-lead h1 { font-size: clamp(2.15rem,9vw,3.05rem); }
  .edition-abstract .guide-intro { font-size: 1rem; line-height: 1.37; }
  .telegraph-label { padding-inline: .45rem; }
  .telegraph-label i { display: none; }
  .telegraph a { padding: .7rem .6rem; }
  .kit-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kit-filters label:first-child { grid-column: 1 / -1; }
  .grade-stamp { font-size: 2.2rem; }
  .tier-lane { grid-template-columns: 39px 1fr; }
  .tier-lane > div { padding: .4rem; gap: .35rem; }
  .tier-token { padding: .3rem .45rem; flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .tier-token .kit-sigil { display: none; }
  .tier-token b { font-size: 1.04rem; }
  .feature-heading { gap: .5rem; align-items: end; }
  .feature-heading h2, .guide-section > h2 { font-size: 2rem; }
  .codex-wall { gap: .55rem; }
  .codex-emblem { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; padding: .3rem .4rem; }
  .codex-emblem > span { font-size: .63rem; letter-spacing: .035em; }
  .kit-sigil { width: 34px; height: 34px; order: 3; margin: 2px auto 0; }
  .codex-emblem > span:last-child { width: calc(100% - 35px); }
  .codex-file { padding: .52rem .48rem; }
  .codex-file h3 { font-size: 1.4rem; overflow-wrap: anywhere; }
  .codex-file p { font-size: .92rem; }
  .card-suits { font-size: .67rem; }
  .hud-keys { gap: .16rem; }
  .hud-keys kbd { font-size: .73rem; }
  .mode-switch button, .layer-switches button { font-size: .88rem; padding: .4rem .45rem; }
  .route-diagrams { grid-template-columns: 1fr; }
  .route-leg + .route-leg { border-left: 0; border-top: 2px solid #17131c; }
  .route-leg > div { padding: .5rem .7rem 0; }
  .route-leg svg { max-height: 135px; }
  .map-console { padding: .5rem; }
  .atlas-figure figcaption { display: block; }
  .atlas-figure figcaption b { display: inline-block; margin-right: .45rem; }
  .atlas-badge figcaption b { display: block; }
  .atlas-table:not(.record-table) { min-width: 470px; }
  .quest-step h3 { font-size: 1.36rem; }
  .quest-step { padding: .7rem; }
  .quest-step p { font-size: .94rem; line-height: 1.3; }
  .quest-step svg { width: 38px; height: 38px; }
}
