/* KustoszMT2 knowledge layer v21
   Presentation / embedded Wiki / Changes only.
   Loaded after the legacy stylesheet so these pages have one predictable layout. */

:root {
    --k21-bg: #eef0ec;
    --k21-paper: #fbfcfa;
    --k21-paper-2: #f4f6f2;
    --k21-ink: #171b18;
    --k21-muted: #626a64;
    --k21-line: #d9ddd7;
    --k21-line-strong: #c9cec7;
    --k21-wine: #8b2823;
    --k21-wine-dark: #681d19;
    --k21-gold: #b57a33;
    --k21-night: #151814;
    --k21-night-2: #1d211c;
    --k21-shadow: 0 18px 50px rgba(24, 30, 25, .08);
    --k21-radius: 18px;
}

html { scroll-behavior: smooth; }

body.presentation-page,
body.knowledge-page:not(.changes-page) {
    background: var(--k21-bg) !important;
    color: var(--k21-ink) !important;
}

body.presentation-page::before,
body.knowledge-page:not(.changes-page)::before { display: none !important; }

body.presentation-page .site-header,
body.knowledge-page:not(.changes-page) .site-header {
    position: sticky !important;
    top: 0;
    z-index: 80;
    min-height: 72px;
    border-bottom: 1px solid rgba(181, 122, 51, .22) !important;
    background: rgba(19, 22, 18, .97) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16) !important;
    backdrop-filter: blur(14px);
}

body.presentation-page .brand-name,
body.knowledge-page:not(.changes-page) .brand-name { color: #f3eadb !important; }
body.presentation-page .brand-mark,
body.knowledge-page:not(.changes-page) .brand-mark {
    background: var(--k21-wine) !important;
    box-shadow: 0 0 0 3px rgba(181, 122, 51, .13) !important;
}
body.presentation-page .site-nav a,
body.knowledge-page:not(.changes-page) .site-nav a { color: #c6c8c2 !important; }
body.presentation-page .site-nav a:hover,
body.presentation-page .site-nav a.is-active,
body.knowledge-page:not(.changes-page) .site-nav a:hover,
body.knowledge-page:not(.changes-page) .site-nav a.is-active {
    border-color: rgba(220, 178, 111, .34) !important;
    background: var(--k21-wine-dark) !important;
    color: #fff2df !important;
}

/* ------------------------------------------------------------------
   LEFT SECTION RAIL
   ------------------------------------------------------------------ */
.knowledge-layout {
    display: grid;
    width: min(1480px, calc(100% - 36px));
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    margin: 0 auto;
    padding: 24px 0 80px;
}

.knowledge-main { min-width: 0; }

.section-rail {
    position: sticky;
    top: 88px;
    z-index: 45;
    display: grid;
    max-height: calc(100vh - 106px);
    grid-template-columns: 4px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--k21-line-strong);
    border-radius: 16px;
    background: rgba(251, 252, 250, .96);
    box-shadow: 0 10px 28px rgba(25, 31, 26, .07);
    backdrop-filter: blur(12px);
}

.section-rail-head {
    grid-column: 2;
    padding: 17px 14px 13px;
    border-bottom: 1px solid var(--k21-line);
}
.section-rail-head > span {
    display: block;
    margin-bottom: 5px;
    color: var(--k21-wine);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.section-rail-head strong {
    display: block;
    overflow: hidden;
    color: var(--k21-ink);
    font: 700 15px/1.25 Georgia, serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-rail-progress {
    position: relative;
    grid-column: 1;
    grid-row: 1 / -1;
    overflow: hidden;
    background: #e3e6e1;
}
.section-rail-progress > span {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(180deg, var(--k21-gold), var(--k21-wine));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .12s linear;
}

.section-rail nav {
    grid-column: 2;
    overflow-y: auto;
    padding: 8px 7px 14px;
    scrollbar-width: thin;
    scrollbar-color: #b9bdb7 transparent;
}
.section-rail nav p {
    margin: 14px 7px 6px;
    color: #8a918b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.section-rail nav a {
    display: grid;
    min-height: 38px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    margin: 2px 0;
    border-radius: 9px;
    padding: 7px 8px;
    color: #5e665f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.section-rail nav a span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid #d6dad4;
    border-radius: 8px;
    background: #fff;
    color: #8e958f;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .04em;
}
.section-rail nav a:hover {
    background: #f1f2ee;
    color: var(--k21-ink);
    transform: translateX(2px);
}
.section-rail nav a.is-active {
    background: #f4e9e6;
    color: var(--k21-wine-dark);
}
.section-rail nav a.is-active span {
    border-color: #c78e86;
    background: var(--k21-wine);
    color: #fff;
}

#presentation-top,
#playstyle,
#progress,
#systems,
#worlds,
#bosses-preview,
#dungeon-guide,
#kompendium,
#quickstart,
#game-systems,
#missions,
#bonuses,
#world,
#bosses,
#dungeons,
#weapons { scroll-margin-top: 92px; }

/* ------------------------------------------------------------------
   PRESENTATION v21
   ------------------------------------------------------------------ */
body.presentation-page .presentation-shell.presentation-v21 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.presentation-hero-v21 {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr);
    gap: 42px;
    min-height: 520px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #272d27;
    border-radius: 22px;
    background: linear-gradient(135deg, #111410, #1a1e19 62%, #251b17);
    padding: clamp(42px, 5vw, 68px);
    box-shadow: 0 24px 64px rgba(18, 22, 18, .22);
}
.presentation-hero-copy-v21 { min-width: 0; }
.presentation-hero-copy-v21 .eyebrow,
.section-dark-v21 .eyebrow { color: #d2a15c !important; }
.presentation-hero-copy-v21 h1 {
    max-width: 760px;
    margin: 10px 0 20px;
    color: #fff4e3 !important;
    font: 700 clamp(47px, 5vw, 72px)/1.01 Georgia, "Times New Roman", serif !important;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.presentation-hero-copy-v21 > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0;
    color: #bec4bc !important;
    font-size: 17px;
    line-height: 1.72;
}
body.presentation-page .presentation-hero-copy-v21 .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    margin-top: 28px !important;
}
body.presentation-page .presentation-hero-copy-v21 .hero-actions > * {
    width: auto !important;
    flex: 0 0 auto !important;
}
.presentation-hero-copy-v21 .primary-button,
.presentation-hero-copy-v21 .secondary-button {
    min-height: 46px;
    border-radius: 10px !important;
}
.presentation-hero-copy-v21 .secondary-button {
    border-color: rgba(255,255,255,.13) !important;
    background: rgba(255,255,255,.04) !important;
    color: #e6e3da !important;
}
.presentation-hero-copy-v21 .hero-status {
    position: static !important;
    display: inline-flex;
    width: max-content;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(0,0,0,.18);
    padding: 8px 12px;
    color: #cbd0c8;
}

.presentation-hero-map-v21 {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(219, 190, 140, .22);
    border-radius: 18px;
    background: #252922;
    box-shadow: 0 22px 44px rgba(0,0,0,.28);
}
.presentation-hero-map-v21::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(8,10,8,.73));
    content: "";
    pointer-events: none;
}
.presentation-hero-map-v21 > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}
.presentation-hero-map-v21 figcaption {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 18px;
    left: 20px;
    color: #fff;
}
.presentation-hero-map-v21 figcaption span {
    display: block;
    margin-bottom: 5px;
    color: #deb26c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.presentation-hero-map-v21 figcaption strong {
    font: 700 17px/1.35 Georgia, serif;
}

body.presentation-page .presentation-facts-v21 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    overflow: hidden;
    margin: 14px 0 0 !important;
    border: 1px solid var(--k21-line-strong) !important;
    border-radius: 14px !important;
    background: var(--k21-paper) !important;
    box-shadow: none !important;
}
.presentation-facts-v21 > div {
    min-height: 88px;
    border-right: 1px solid var(--k21-line);
    padding: 18px 22px;
}
.presentation-facts-v21 > div:last-child { border-right: 0; }
.presentation-facts-v21 strong {
    display: block;
    color: var(--k21-wine) !important;
    font: 700 28px Georgia, serif !important;
}
.presentation-facts-v21 span {
    display: block;
    margin-top: 4px;
    color: var(--k21-muted) !important;
    font-size: 12px;
}

.presentation-section-v21 {
    margin-top: 16px;
    border: 1px solid var(--k21-line-strong);
    border-radius: var(--k21-radius);
    background: var(--k21-paper);
    padding: clamp(38px, 4vw, 56px);
    box-shadow: none;
}
.section-heading-v21 {
    max-width: 820px;
    margin-bottom: 28px;
}
.section-heading-v21 .eyebrow {
    margin: 0 0 8px;
    color: var(--k21-wine) !important;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.section-heading-v21 h2 {
    margin: 0 0 12px;
    color: var(--k21-ink) !important;
    font: 700 clamp(34px, 3.5vw, 48px)/1.06 Georgia, serif !important;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.section-heading-v21 > p:not(.eyebrow),
.section-heading-split-v21 > p {
    margin: 0;
    color: var(--k21-muted) !important;
    font-size: 15px;
    line-height: 1.72;
}
.section-heading-split-v21 {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: 34px;
    align-items: end;
}
.section-heading-split-v21 > div { max-width: 720px; }
.section-heading-split-v21 code {
    border-radius: 5px;
    background: #edf0eb;
    padding: 2px 5px;
    color: #4b544e;
    font-size: 12px;
}

.clean-points-v21 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border-top: 1px solid var(--k21-line);
    padding-top: 24px;
}
.clean-points-v21 article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.clean-points-v21 article > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #ddd3c4;
    border-radius: 10px;
    background: #f5efe5;
    color: var(--k21-wine);
    font-size: 10px;
    font-weight: 900;
}
.clean-points-v21 h3 { margin: 2px 0 7px; color: var(--k21-ink) !important; font: 700 19px Georgia, serif !important; }
.clean-points-v21 p { margin: 0; color: var(--k21-muted) !important; font-size: 13px; line-height: 1.6; }

.section-dark-v21 {
    border-color: #292e29;
    background: var(--k21-night) !important;
    color: #eee9de;
}
.section-dark-v21 .section-heading-v21 h2 { color: #fff1dd !important; }
.section-dark-v21 .section-heading-v21 > p:not(.eyebrow) { color: #aeb4ac !important; }

.progress-list-v21 { display: grid; gap: 10px; }
.progress-list-v21 article {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 160px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: var(--k21-night-2);
}
.progress-list-v21 img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.progress-list-v21 article > div { align-self: center; padding: 22px 26px; }
.progress-list-v21 span {
    color: #d1a15d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.progress-list-v21 h3 { margin: 6px 0 7px; color: #f8edde !important; font: 700 23px Georgia, serif !important; }
.progress-list-v21 p { margin: 0; color: #adb3ab !important; font-size: 13px; line-height: 1.58; }
.progress-list-v21 strong { display: block; margin-top: 12px; color: #d8ad6d; font-size: 11px; }

.system-list-v21 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    border-top: 1px solid var(--k21-line);
}
.system-list-v21 article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-height: 140px;
    border-bottom: 1px solid var(--k21-line);
    padding: 22px 0;
}
.system-list-v21 img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 5px 4px rgba(0,0,0,.13));
}
.system-list-v21 span { color: var(--k21-wine); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.system-list-v21 h3 { margin: 5px 0 6px; color: var(--k21-ink) !important; font: 700 20px Georgia, serif !important; }
.system-list-v21 p { margin: 0; color: var(--k21-muted) !important; font-size: 13px; line-height: 1.58; }

.map-grid-v21 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.map-grid-v21 > article {
    display: grid;
    grid-template-columns: 46% minmax(0, 1fr);
    min-height: 210px;
    overflow: hidden;
    border: 1px solid var(--k21-line-strong);
    border-radius: 14px;
    background: #fff;
}
.map-grid-v21 > article > img,
.map-duo-v21 {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}
.map-grid-v21 > article > div:last-child { align-self: center; padding: 22px; }
.map-grid-v21 span { color: var(--k21-wine); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.map-grid-v21 h3 { margin: 6px 0 8px; color: var(--k21-ink) !important; font: 700 23px Georgia, serif !important; }
.map-grid-v21 p { margin: 0; color: var(--k21-muted) !important; font-size: 13px; line-height: 1.58; }
.map-grid-v21 strong { display: block; margin-top: 12px; color: #8d672f; font-size: 11px; }
.map-grid-v21 .map-wide-v21 { grid-column: 1 / -1; grid-template-columns: 58% minmax(0, 1fr); }
.map-duo-v21 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #1b1f1a; }
.map-duo-v21 img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }

.boss-list-v21 { display: grid; gap: 10px; }
.boss-list-v21 article {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: var(--k21-night-2);
}
.boss-list-v21 article.boss-final-v21 { border-color: rgba(205, 157, 84, .34); background: linear-gradient(90deg, #221d17, #1b1e1a); }
.boss-list-v21 img { width: 100%; height: 190px; object-fit: contain; background: radial-gradient(circle at 50% 55%, rgba(137, 43, 35, .18), transparent 44%); filter: drop-shadow(0 8px 7px rgba(0,0,0,.28)); }
.boss-list-v21 article > div { align-self: center; padding: 24px 28px; }
.boss-list-v21 span { color: #d4a25c; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.boss-list-v21 h3 { margin: 6px 0 8px; color: #f9edde !important; font: 700 25px Georgia, serif !important; }
.boss-list-v21 p { margin: 0; color: #adb2aa !important; font-size: 13px; line-height: 1.58; }

.dungeon-list-v21 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.dungeon-list-v21 article {
    display: grid;
    grid-template-columns: 160px minmax(0,1fr);
    min-height: 280px;
    overflow: hidden;
    border: 1px solid var(--k21-line-strong);
    border-radius: 14px;
    background: #fff;
}
.dungeon-list-v21 img { width: 100%; height: 100%; min-height: 280px; object-fit: contain; background: #1a1d19; filter: drop-shadow(0 10px 7px rgba(0,0,0,.28)); }
.dungeon-list-v21 article > div { align-self: center; padding: 24px; }
.dungeon-list-v21 span { color: var(--k21-wine); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.dungeon-list-v21 h3 { margin: 7px 0 9px; color: var(--k21-ink) !important; font: 700 23px Georgia, serif !important; }
.dungeon-list-v21 p { margin: 0; color: var(--k21-muted) !important; font-size: 13px; line-height: 1.58; }
.dungeon-list-v21 ul { margin: 14px 0 0; padding-left: 18px; color: #69706b; font-size: 12px; line-height: 1.6; }

.presentation-cta-v21 {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 16px 0 20px;
    border: 1px solid #282d28;
    border-radius: 18px;
    background: linear-gradient(110deg, #151814, #211b16);
    padding: 38px 42px;
}
.presentation-cta-v21 .eyebrow { margin: 0 0 7px; color: #d3a35e; font-size: 9px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.presentation-cta-v21 h2 { max-width: 720px; margin: 0 0 8px; color: #fff0da !important; font: 700 31px/1.08 Georgia, serif !important; }
.presentation-cta-v21 p:not(.eyebrow) { max-width: 680px; margin: 0; color: #adb2ab; font-size: 13px; line-height: 1.62; }
.presentation-cta-v21 .primary-button { border-radius: 10px !important; white-space: nowrap; }

/* ------------------------------------------------------------------
   EMBEDDED WIKI: document-like, less card clutter
   ------------------------------------------------------------------ */
body.presentation-page .codex-shell.codex-authentic.codex-embedded {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 40px !important;
    background: transparent !important;
    color: var(--k21-ink) !important;
}

body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 16px !important;
    border: 1px solid #282d28 !important;
    border-radius: 18px !important;
    background: linear-gradient(110deg, #141713, #20241e) !important;
    padding: 40px 44px !important;
    box-shadow: none !important;
}
.codex-shell.codex-authentic .codex-library-intro .eyebrow { color: #d2a15c !important; }
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro h2 {
    max-width: 760px !important;
    margin: 7px 0 10px !important;
    color: #fff0dd !important;
    font: 700 clamp(34px, 3.7vw, 48px)/1.05 Georgia, serif !important;
}
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro p:last-child {
    max-width: 780px !important;
    margin: 0 !important;
    color: #b6bcb3 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

/* The left rail replaces the second tile navigation when Wiki is embedded. */
body.presentation-page .codex-shell.codex-authentic.codex-embedded > .codex-index-new { display: none !important; }

body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 12px 0 0 !important;
    border: 1px solid var(--k21-line-strong) !important;
    border-radius: 18px !important;
    background: var(--k21-paper) !important;
    padding: clamp(36px, 4vw, 52px) !important;
    box-shadow: none !important;
    color: var(--k21-ink) !important;
}
body.presentation-page .codex-shell.codex-authentic .codex-section-heading {
    display: block !important;
    width: 100% !important;
    max-width: 820px !important;
    margin: 0 0 26px !important;
}
body.presentation-page .codex-shell.codex-authentic .codex-section-heading > span {
    display: inline-block;
    margin: 0 0 7px !important;
    color: var(--k21-wine) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .15em !important;
    text-transform: uppercase;
}
body.presentation-page .codex-shell.codex-authentic .codex-section-heading h2 {
    max-width: 780px !important;
    margin: 0 0 10px !important;
    color: var(--k21-ink) !important;
    font: 700 clamp(31px, 3.4vw, 44px)/1.07 Georgia, serif !important;
    letter-spacing: -.025em !important;
}
body.presentation-page .codex-shell.codex-authentic .codex-section-heading p {
    max-width: 800px !important;
    margin: 0 !important;
    color: var(--k21-muted) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

/* Quick start */
body.presentation-page .codex-shell.codex-authentic .quickstart-grid-new {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
body.presentation-page .codex-shell.codex-authentic .quickstart-grid-new article {
    display: grid !important;
    min-height: 0 !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start;
    border: 1px solid var(--k21-line) !important;
    border-radius: 13px !important;
    background: #fff !important;
    padding: 20px !important;
    box-shadow: none !important;
}
body.presentation-page .codex-shell.codex-authentic .quickstart-grid-new img {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
}
body.presentation-page .codex-shell.codex-authentic .quickstart-grid-new img.quickstart-map-icon {
    border: 1px solid var(--k21-line-strong);
    border-radius: 9px;
    object-fit: cover !important;
}
body.presentation-page .codex-shell.codex-authentic .quickstart-grid-new article > div > span { color: var(--k21-wine) !important; font-size: 9px; font-weight: 900; }
body.presentation-page .codex-shell.codex-authentic .quickstart-grid-new h3 { margin: 5px 0 6px !important; color: var(--k21-ink) !important; font: 700 18px Georgia, serif !important; }
body.presentation-page .codex-shell.codex-authentic .quickstart-grid-new p { margin: 0 !important; color: var(--k21-muted) !important; font-size: 12px !important; line-height: 1.58 !important; }

/* Systems: two readable columns instead of six equal tiles. */
body.presentation-page .codex-shell.codex-authentic .system-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 26px !important;
    border-top: 1px solid var(--k21-line);
}
body.presentation-page .codex-shell.codex-authentic .system-card {
    display: grid !important;
    min-height: 0 !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
    grid-template-rows: auto auto 1fr !important;
    column-gap: 15px;
    align-content: start;
    border: 0 !important;
    border-bottom: 1px solid var(--k21-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 20px 0 !important;
    box-shadow: none !important;
}
body.presentation-page .codex-shell.codex-authentic .system-card img {
    grid-row: 1 / span 3;
    width: 46px !important;
    height: 46px !important;
    object-fit: contain !important;
}
body.presentation-page .codex-shell.codex-authentic .system-card h3 { margin: 0 0 6px !important; color: var(--k21-ink) !important; font: 700 19px Georgia, serif !important; }
body.presentation-page .codex-shell.codex-authentic .system-card p { margin: 0 !important; color: var(--k21-muted) !important; font-size: 12px !important; line-height: 1.58 !important; }
body.presentation-page .codex-shell.codex-authentic .system-card strong { grid-column: 2; margin-top: 8px; color: #8e6a35 !important; font-size: 11px !important; line-height: 1.45; }

/* Mission, pets and bonus areas */
body.presentation-page .codex-shell.codex-authentic .mission-layout,
body.presentation-page .codex-shell.codex-authentic .riding-guide {
    gap: 16px !important;
}
body.presentation-page .codex-shell.codex-authentic .mission-intro,
body.presentation-page .codex-shell.codex-authentic .riding-lead,
body.presentation-page .codex-shell.codex-authentic .riding-rules article,
body.presentation-page .codex-shell.codex-authentic .bonus-callout,
body.presentation-page .codex-shell.codex-authentic .pet-feature-card,
body.presentation-page .codex-shell.codex-authentic .pet-seal-list {
    border: 1px solid var(--k21-line) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.presentation-page .codex-shell.codex-authentic .bonus-tabs {
    display: flex !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
}
body.presentation-page .codex-shell.codex-authentic .bonus-tabs button {
    width: auto !important;
    min-width: 140px !important;
    min-height: 40px !important;
    border: 1px solid var(--k21-line-strong) !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #4b534d !important;
}
body.presentation-page .codex-shell.codex-authentic .bonus-tabs button:hover,
body.presentation-page .codex-shell.codex-authentic .bonus-tabs button.is-active {
    border-color: var(--k21-wine) !important;
    background: var(--k21-wine) !important;
    color: #fff !important;
}

/* Tables */
body.presentation-page .codex-shell.codex-authentic .mission-table-wrap,
body.presentation-page .codex-shell.codex-authentic .biolog-table-wrap,
body.presentation-page .codex-shell.codex-authentic .weapon-table-wrap,
body.presentation-page .codex-shell.codex-authentic .pet-bonus-table-wrap,
body.presentation-page .codex-shell.codex-authentic .riding-table-wrap,
body.presentation-page .codex-shell.codex-authentic .bonus-panel {
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto !important;
}
body.presentation-page .codex-shell.codex-authentic .codex-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    border: 1px solid var(--k21-line-strong) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--k21-ink) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}
body.presentation-page .codex-shell.codex-authentic .codex-table thead th {
    border-color: #2b302b !important;
    background: #1d211d !important;
    color: #f0e3cf !important;
}
body.presentation-page .codex-shell.codex-authentic .codex-table th,
body.presentation-page .codex-shell.codex-authentic .codex-table td {
    border-color: #e3e6e1 !important;
    padding: 11px 13px !important;
}
body.presentation-page .codex-shell.codex-authentic .codex-table tbody tr:nth-child(even) td { background: #f6f7f4 !important; }
body.presentation-page .codex-shell.codex-authentic .codex-table tbody tr:hover td { background: #f7ece8 !important; }

/* MAPS. These rules also support the old direct-IMG markup, so a stale wiki.php
   still cannot collapse into five 90px columns. */
body.presentation-page .codex-shell.codex-authentic .world-atlas-new { background: #f7f8f5 !important; }
body.presentation-page .codex-shell.codex-authentic .world-route-new {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}
body.presentation-page .codex-shell.codex-authentic .world-route-new > article,
body.presentation-page .codex-shell.codex-authentic .world-route-new > article.map-card-authentic {
    display: grid !important;
    min-width: 0 !important;
    min-height: 210px !important;
    grid-column: auto !important;
    grid-template-columns: 44% minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    overflow: hidden !important;
    border: 1px solid var(--k21-line-strong) !important;
    border-radius: 14px !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: none !important;
}
body.presentation-page .codex-shell.codex-authentic .world-route-new > article:last-child,
body.presentation-page .codex-shell.codex-authentic .world-route-new > article.map-card-dual {
    grid-column: 1 / -1 !important;
    grid-template-columns: 58% minmax(0, 1fr) !important;
}
body.presentation-page .codex-shell.codex-authentic .world-route-new > article > img.map-card-legacy-img,
body.presentation-page .codex-shell.codex-authentic .world-route-new > article > img:first-child {
    grid-row: 1 / span 8;
    width: 100% !important;
    height: 100% !important;
    min-height: 210px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    filter: none !important;
}
body.presentation-page .codex-shell.codex-authentic .world-route-new .map-card-media {
    width: 100% !important;
    height: 100% !important;
    min-height: 210px !important;
    overflow: hidden;
    border: 0 !important;
    border-right: 1px solid var(--k21-line) !important;
    background: #1c201c !important;
}
body.presentation-page .codex-shell.codex-authentic .world-route-new .map-card-media img {
    width: 100% !important;
    height: 100% !important;
    min-height: 210px !important;
    object-fit: cover !important;
}
body.presentation-page .codex-shell.codex-authentic .world-route-new .map-card-media-duo {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1px;
}
body.presentation-page .codex-shell.codex-authentic .world-route-new .map-card-copy {
    align-self: center;
    padding: 22px !important;
}
/* old wiki direct text nodes */
body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > span,
body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > h3,
body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > p,
body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > strong {
    grid-column: 2;
    margin-right: 22px !important;
    margin-left: 22px !important;
}
body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > span { align-self: end; margin-top: 22px !important; color: var(--k21-wine) !important; }
body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > h3 { margin-top: 6px !important; margin-bottom: 7px !important; color: var(--k21-ink) !important; font: 700 22px Georgia, serif !important; }
body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > p { min-height: 0 !important; margin-top: 0 !important; margin-bottom: 10px !important; color: var(--k21-muted) !important; font-size: 12px !important; line-height: 1.55 !important; }
body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > strong { align-self: start; margin-bottom: 22px !important; color: #8d672f !important; font-size: 11px !important; }
body.presentation-page .codex-shell.codex-authentic .map-card-copy span { color: var(--k21-wine) !important; font-size: 9px !important; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
body.presentation-page .codex-shell.codex-authentic .map-card-copy h3 { margin: 6px 0 7px !important; color: var(--k21-ink) !important; font: 700 22px Georgia, serif !important; }
body.presentation-page .codex-shell.codex-authentic .map-card-copy p { min-height: 0 !important; margin: 0 !important; color: var(--k21-muted) !important; font-size: 12px !important; line-height: 1.55 !important; }
body.presentation-page .codex-shell.codex-authentic .map-card-copy strong { display: block; margin-top: 11px; color: #8d672f !important; font-size: 11px !important; }

body.presentation-page .codex-shell.codex-authentic .map-doc-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 12px !important;
}
body.presentation-page .codex-shell.codex-authentic .map-doc-links a {
    border: 1px solid var(--k21-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    padding: 13px 14px !important;
    color: #3d453f !important;
    font-size: 11px !important;
    line-height: 1.4;
}
body.presentation-page .codex-shell.codex-authentic .map-doc-links a span { color: var(--k21-wine) !important; }

/* Hard removal of the four legacy mob category cards. */
body.presentation-page .codex-shell.codex-authentic .mob-grid { display: none !important; }

/* Bosses */
body.presentation-page .codex-shell.codex-authentic .bosses-only,
body.presentation-page .codex-shell.codex-authentic .boss-chapter-v21,
body.presentation-page .codex-shell.codex-authentic #bestiary,
body.presentation-page .codex-shell.codex-authentic #bosses,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new.bosses-only,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new.boss-chapter-v21,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new#bestiary,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new#bosses {
    background: var(--k21-night) !important;
    border-color: #292e29 !important;
}
body.presentation-page .codex-shell.codex-authentic .bosses-only .codex-section-heading h2,
body.presentation-page .codex-shell.codex-authentic .boss-chapter-v21 .codex-section-heading h2,
body.presentation-page .codex-shell.codex-authentic #bestiary .codex-section-heading h2 { color: #fff0dc !important; }
body.presentation-page .codex-shell.codex-authentic .bosses-only .codex-section-heading p,
body.presentation-page .codex-shell.codex-authentic .boss-chapter-v21 .codex-section-heading p,
body.presentation-page .codex-shell.codex-authentic #bestiary .codex-section-heading p { color: #aeb3ab !important; }
body.presentation-page .codex-shell.codex-authentic .bosses-only .codex-section-heading > span,
body.presentation-page .codex-shell.codex-authentic .boss-chapter-v21 .codex-section-heading > span,
body.presentation-page .codex-shell.codex-authentic #bestiary .codex-section-heading > span { color: #d4a35f !important; }
body.presentation-page .codex-shell.codex-authentic .boss-grid-focus,
body.presentation-page .codex-shell.codex-authentic #bestiary .boss-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-entry,
body.presentation-page .codex-shell.codex-authentic #bestiary .boss-entry {
    grid-column: auto !important;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 14px !important;
    background: var(--k21-night-2) !important;
    box-shadow: none !important;
}
body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-portrait,
body.presentation-page .codex-shell.codex-authentic #bestiary .boss-portrait {
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    background: radial-gradient(circle at 50% 55%, rgba(137,43,35,.18), transparent 42%) !important;
}
body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-portrait img,
body.presentation-page .codex-shell.codex-authentic #bestiary .boss-portrait img {
    width: 94% !important;
    height: 94% !important;
    object-fit: contain !important;
}
body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-entry > div:last-child,
body.presentation-page .codex-shell.codex-authentic #bestiary .boss-entry > div:last-child { padding: 20px !important; }
body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-entry span,
body.presentation-page .codex-shell.codex-authentic #bestiary .boss-entry span { color: #d2a15c !important; font-size: 9px !important; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-entry h3,
body.presentation-page .codex-shell.codex-authentic #bestiary .boss-entry h3 { margin: 6px 0 7px !important; color: #f8ecdc !important; font: 700 21px Georgia, serif !important; }
body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-entry p,
body.presentation-page .codex-shell.codex-authentic #bestiary .boss-entry p { margin: 0 !important; color: #aab0a8 !important; font-size: 12px !important; line-height: 1.55 !important; }

/* Dungeons and weapons */
body.presentation-page .codex-shell.codex-authentic .dungeon-atlas-new {
    background: #f8f9f6 !important;
    background-image: none !important;
}
body.presentation-page .codex-shell.codex-authentic .dungeon-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
}
body.presentation-page .codex-shell.codex-authentic .dungeon-cards article {
    min-height: 0 !important;
    border: 1px solid var(--k21-line) !important;
    border-radius: 13px !important;
    background: #fff !important;
    padding: 24px !important;
    box-shadow: none !important;
}
body.presentation-page .codex-shell.codex-authentic .dungeon-cards h3 { color: var(--k21-ink) !important; font: 700 21px Georgia, serif !important; }
body.presentation-page .codex-shell.codex-authentic .dungeon-cards p,
body.presentation-page .codex-shell.codex-authentic .dungeon-cards li { color: var(--k21-muted) !important; }
body.presentation-page .codex-shell.codex-authentic .dungeon-reward-strip {
    grid-template-columns: 190px minmax(0,1fr) !important;
    gap: 16px !important;
    border: 1px solid #d6c5aa !important;
    border-radius: 12px !important;
    background: #fff8ec !important;
    padding: 17px 18px !important;
}
body.presentation-page .codex-shell.codex-authentic .dungeon-reward-strip strong { color: #7e5622 !important; }
body.presentation-page .codex-shell.codex-authentic .reward-pills span { color: #5f635e !important; }

body.presentation-page .codex-shell.codex-authentic .weapon-75-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 9px !important;
}
body.presentation-page .codex-shell.codex-authentic .weapon-75-grid article {
    min-height: 0 !important;
    border: 1px solid var(--k21-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 18px !important;
    box-shadow: none !important;
}
body.presentation-page .codex-shell.codex-authentic .item-library {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 9px !important;
}
body.presentation-page .codex-shell.codex-authentic .item-library article {
    min-height: 0 !important;
    border: 1px solid var(--k21-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 18px !important;
}

body.presentation-page .codex-shell.codex-authentic .codex-faq-section { background: #f8f9f6 !important; }
body.presentation-page .codex-shell.codex-authentic .faq-list-new details { border-color: var(--k21-line) !important; }
body.presentation-page .codex-shell.codex-authentic .faq-list-new summary { color: var(--k21-ink) !important; font: 700 17px Georgia, serif !important; }
body.presentation-page .codex-shell.codex-authentic .faq-list-new p { color: var(--k21-muted) !important; }

/* ------------------------------------------------------------------
   CHANGES: quieter and easier to scan
   ------------------------------------------------------------------ */
body.changes-page {
    background: #121511 !important;
    color: #e8dfd2 !important;
}
body.changes-page .site-header {
    position: sticky !important;
    top: 0;
    z-index: 80;
    background: rgba(16,18,15,.97) !important;
}
body.changes-page .rebirth-shell { padding-top: 22px !important; }
body.changes-page .rebirth-hero,
body.changes-page .rebirth-intro,
body.changes-page .change-overview,
body.changes-page .comparison-band,
body.changes-page .rebirth-finale {
    width: min(1180px, calc(100% - 36px)) !important;
    border-radius: 18px !important;
}
body.changes-page .rebirth-hero {
    min-height: 480px !important;
    grid-template-columns: minmax(0,1fr) 390px !important;
    padding: 46px 50px !important;
}
body.changes-page .changes-hero-visual { min-height: 350px !important; }
body.changes-page .change-overview {
    grid-template-columns: 270px minmax(0,1fr) !important;
    gap: 34px !important;
    padding: 42px !important;
}
body.changes-page .change-overview-list {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px !important;
}
body.changes-page .change-overview-list a {
    min-height: 126px !important;
    border-radius: 12px !important;
    padding: 17px !important;
}
body.changes-page .comparison-band { margin-top: 12px !important; padding: 40px 42px !important; }
body.changes-page .versus-before,
body.changes-page .versus-after { min-height: 210px !important; padding: 27px !important; }

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 1240px) {
    .knowledge-layout {
        width: min(1180px, calc(100% - 28px));
        grid-template-columns: 165px minmax(0, 1fr);
        gap: 18px;
    }
    .section-rail nav a { font-size: 11px; }
    .presentation-hero-v21 { grid-template-columns: minmax(0,1fr) 340px; gap: 28px; }
    .clean-points-v21 { grid-template-columns: 1fr; gap: 14px; }
    .map-grid-v21 > article { grid-template-columns: 42% minmax(0,1fr); }
    body.presentation-page .codex-shell.codex-authentic .quickstart-grid-new { grid-template-columns: 1fr !important; }
}

@media (max-width: 1020px) {
    .knowledge-layout {
        display: block;
        width: calc(100% - 20px);
        padding-top: 10px;
    }
    .section-rail {
        position: sticky;
        top: 72px;
        z-index: 70;
        display: block;
        width: 100%;
        max-height: none;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    .section-rail-head,
    .section-rail-progress,
    .section-rail nav p { display: none; }
    .section-rail nav {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding: 7px;
        scrollbar-width: none;
    }
    .section-rail nav::-webkit-scrollbar { display: none; }
    .section-rail nav a {
        display: flex;
        min-width: max-content;
        min-height: 36px;
        gap: 5px;
        margin: 0;
        padding: 5px 9px 5px 6px;
        white-space: nowrap;
    }
    .section-rail nav a span { width: 25px; height: 25px; }
    .presentation-hero-v21 { grid-template-columns: 1fr; }
    .presentation-hero-map-v21 { min-height: 300px; }
    .presentation-hero-map-v21 > img { min-height: 300px; }
    .system-list-v21 { grid-template-columns: 1fr; }
    .map-grid-v21 { grid-template-columns: 1fr; }
    .map-grid-v21 .map-wide-v21 { grid-column: auto; grid-template-columns: 48% minmax(0,1fr); }
    .dungeon-list-v21 { grid-template-columns: 1fr; }
    .presentation-cta-v21 { grid-template-columns: 1fr; }
    .presentation-cta-v21 .primary-button { width: max-content; }
    body.presentation-page .codex-shell.codex-authentic .world-route-new { grid-template-columns: 1fr !important; }
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article:last-child,
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article.map-card-dual { grid-column: auto !important; grid-template-columns: 44% minmax(0,1fr) !important; }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-focus,
    body.presentation-page .codex-shell.codex-authentic #bestiary .boss-grid { grid-template-columns: 1fr !important; }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-entry,
    body.presentation-page .codex-shell.codex-authentic #bestiary .boss-entry { display: grid !important; grid-template-columns: 220px minmax(0,1fr); }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-portrait,
    body.presentation-page .codex-shell.codex-authentic #bestiary .boss-portrait { height: 220px !important; min-height: 220px !important; border-right: 1px solid rgba(255,255,255,.08) !important; border-bottom: 0 !important; }
    body.presentation-page .codex-shell.codex-authentic .dungeon-cards { grid-template-columns: 1fr !important; }
    body.presentation-page .codex-shell.codex-authentic .weapon-75-grid,
    body.presentation-page .codex-shell.codex-authentic .item-library { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    body.changes-page .rebirth-hero { grid-template-columns: 1fr !important; }
    body.changes-page .changes-hero-visual { display: none; }
    body.changes-page .change-overview { grid-template-columns: 1fr !important; }
}

@media (max-width: 680px) {
    .knowledge-layout { width: calc(100% - 12px); }
    .presentation-hero-v21,
    .presentation-section-v21,
    .presentation-cta-v21,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new {
        border-radius: 14px !important;
        padding: 26px 18px !important;
    }
    .presentation-hero-copy-v21 h1 { font-size: 42px !important; }
    .presentation-hero-map-v21 { min-height: 240px; border-radius: 12px; }
    .presentation-hero-map-v21 > img { min-height: 240px; }
    body.presentation-page .presentation-facts-v21 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .presentation-facts-v21 > div:nth-child(2) { border-right: 0; }
    .presentation-facts-v21 > div:nth-child(-n+2) { border-bottom: 1px solid var(--k21-line); }
    .section-heading-split-v21 { grid-template-columns: 1fr; gap: 10px; }
    .progress-list-v21 article,
    .map-grid-v21 > article,
    .map-grid-v21 .map-wide-v21,
    .boss-list-v21 article,
    .dungeon-list-v21 article {
        grid-template-columns: 1fr !important;
    }
    .progress-list-v21 img,
    .map-grid-v21 > article > img,
    .map-duo-v21,
    .boss-list-v21 img,
    .dungeon-list-v21 img { min-height: 210px; height: 210px; }
    .map-duo-v21 img { min-height: 210px; }
    .system-list-v21 article { grid-template-columns: 48px minmax(0,1fr); }
    body.presentation-page .codex-shell.codex-authentic .system-card-grid { grid-template-columns: 1fr !important; }
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article,
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article.map-card-authentic,
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article:last-child,
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article.map-card-dual { grid-template-columns: 1fr !important; }
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article > img.map-card-legacy-img,
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article > img:first-child,
    body.presentation-page .codex-shell.codex-authentic .world-route-new .map-card-media { grid-row: auto; height: 220px !important; min-height: 220px !important; }
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > span,
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > h3,
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > p,
    body.presentation-page .codex-shell.codex-authentic .world-route-new > article:not(.map-card-authentic) > strong { grid-column: 1; }
    body.presentation-page .codex-shell.codex-authentic .map-doc-links { grid-template-columns: 1fr !important; }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-entry,
    body.presentation-page .codex-shell.codex-authentic #bestiary .boss-entry { display: block !important; }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-focus .boss-portrait,
    body.presentation-page .codex-shell.codex-authentic #bestiary .boss-portrait { height: 220px !important; min-height: 220px !important; border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
    body.presentation-page .codex-shell.codex-authentic .weapon-75-grid,
    body.presentation-page .codex-shell.codex-authentic .item-library { grid-template-columns: 1fr !important; }
    body.presentation-page .codex-shell.codex-authentic .dungeon-reward-strip { grid-template-columns: 1fr !important; }
    body.changes-page .change-overview-list { grid-template-columns: 1fr !important; }
    body.presentation-page .presentation-hero-copy-v21 .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    body.presentation-page .presentation-hero-copy-v21 .hero-actions > * {
        width: 100% !important;
        justify-content: center !important;
    }
    body.changes-page .rebirth-hero,
    body.changes-page .rebirth-intro,
    body.changes-page .change-overview,
    body.changes-page .comparison-band,
    body.changes-page .rebirth-finale { width: calc(100% - 12px) !important; }
}

/* ==================================================================
   v22 — presentation = overview, wiki = reference.
   The two layers deliberately do not repeat the same detailed content.
   ================================================================== */

:root {
    --k22-paper: #fcfcfa;
    --k22-soft: #f4f5f1;
    --k22-line: #d7dbd4;
    --k22-ink: #171a17;
    --k22-muted: #626962;
    --k22-wine: #842923;
    --k22-gold: #b27c38;
    --k22-night: #171a16;
}

.knowledge-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 24px;
}

#presentation-top,
#identity,
#journey,
#kompendium,
#game-systems,
#biolog-details,
#bonuses,
#pets,
#riding,
#world,
#dungeons,
#catacombs,
#dragon-trial,
#weapons,
#faq { scroll-margin-top: 94px; }

/* Presentation ---------------------------------------------------- */
body.presentation-page .presentation-shell.presentation-v22 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.presentation-hero-v22 {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: center;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid #2a2f29;
    border-radius: 20px;
    background: linear-gradient(130deg, #131612 0%, #1b1f1a 58%, #281d18 100%);
    padding: clamp(38px, 5vw, 64px);
    box-shadow: 0 20px 50px rgba(19, 24, 19, .14);
}

.presentation-hero-copy-v22 .eyebrow { color: #d7aa69 !important; }
.presentation-hero-copy-v22 h1 {
    max-width: 760px;
    margin: 10px 0 18px;
    color: #fff3e2 !important;
    font: 700 clamp(46px, 5vw, 70px)/1.02 Georgia, "Times New Roman", serif !important;
    letter-spacing: -.038em;
    text-wrap: balance;
}
.presentation-hero-copy-v22 > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0;
    color: #bcc1b9 !important;
    font-size: 17px;
    line-height: 1.7;
}
body.presentation-page .presentation-hero-copy-v22 .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    margin-top: 28px !important;
}
body.presentation-page .presentation-hero-copy-v22 .hero-actions > * {
    width: auto !important;
    flex: 0 0 auto !important;
    border-radius: 9px !important;
}
.presentation-hero-copy-v22 .secondary-button {
    border-color: rgba(255,255,255,.13) !important;
    background: rgba(255,255,255,.04) !important;
    color: #e8e4db !important;
}
.presentation-hero-copy-v22 .hero-status {
    position: static !important;
    display: inline-flex;
    width: max-content;
    margin-top: 18px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(0,0,0,.16);
    padding: 8px 12px;
    color: #c9cec6;
}

.presentation-hero-map-v22 {
    position: relative;
    min-height: 365px;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(219,190,140,.2);
    border-radius: 16px;
    background: #252922;
}
.presentation-hero-map-v22::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(8,10,8,.76));
    content: "";
    pointer-events: none;
}
.presentation-hero-map-v22 > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 365px;
    object-fit: cover;
}
.presentation-hero-map-v22 figcaption {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 17px;
    left: 18px;
    color: #fff;
}
.presentation-hero-map-v22 figcaption span {
    display: block;
    margin-bottom: 4px;
    color: #d9ae6d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.presentation-hero-map-v22 figcaption strong { font-size: 14px; }

body.presentation-page .presentation-facts-v22 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 0 !important;
    margin: 10px 0 !important;
    overflow: hidden;
    border: 1px solid var(--k22-line) !important;
    border-radius: 13px !important;
    background: var(--k22-paper) !important;
    box-shadow: none !important;
}
.presentation-facts-v22 > div {
    min-height: 86px;
    border-right: 1px solid var(--k22-line);
    padding: 18px 20px;
}
.presentation-facts-v22 > div:last-child { border-right: 0; }
.presentation-facts-v22 strong {
    display: block;
    margin-bottom: 3px;
    color: var(--k22-wine) !important;
    font: 700 24px Georgia, serif !important;
}
.presentation-facts-v22 span { color: var(--k22-muted); font-size: 11px; }

.presentation-section-v22 {
    margin-top: 10px;
    border: 1px solid var(--k22-line);
    border-radius: 16px;
    background: var(--k22-paper);
    padding: clamp(34px, 4vw, 50px);
}
.section-heading-v22 { max-width: 820px; margin-bottom: 26px; }
.section-heading-v22 .eyebrow {
    margin: 0 0 7px;
    color: var(--k22-wine) !important;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.section-heading-v22 h2 {
    margin: 0 0 10px;
    color: var(--k22-ink) !important;
    font: 700 clamp(31px, 3.3vw, 44px)/1.08 Georgia, serif !important;
    letter-spacing: -.025em;
}
.section-heading-v22 > p:not(.eyebrow) {
    max-width: 770px;
    margin: 0;
    color: var(--k22-muted) !important;
    font-size: 14px;
    line-height: 1.7;
}
.compact-heading-v22 { margin-bottom: 24px; }

.identity-grid-v22 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-top: 1px solid var(--k22-line);
}
.identity-grid-v22 article {
    position: relative;
    min-height: 150px;
    border-bottom: 1px solid var(--k22-line);
    padding: 24px 34px 24px 52px;
}
.identity-grid-v22 article:nth-child(odd) { border-right: 1px solid var(--k22-line); }
.identity-grid-v22 article span {
    position: absolute;
    top: 26px;
    left: 0;
    color: var(--k22-gold);
    font-size: 10px;
    font-weight: 900;
}
.identity-grid-v22 h3 { margin: 0 0 8px; color: var(--k22-ink) !important; font: 700 21px Georgia, serif !important; }
.identity-grid-v22 p { margin: 0; color: var(--k22-muted) !important; font-size: 13px; line-height: 1.62; }

.section-dark-v22 {
    border-color: #2b302a;
    background: var(--k22-night);
}
.section-dark-v22 .section-heading-v22 .eyebrow { color: #d6a665 !important; }
.section-dark-v22 .section-heading-v22 h2 { color: #fff0dc !important; }
.section-dark-v22 .section-heading-v22 > p:not(.eyebrow) { color: #adb3aa !important; }

.journey-v22 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}
.journey-v22 article {
    display: grid;
    grid-template-columns: 165px minmax(0,1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    background: #1f231e;
}
.journey-v22 article > img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    background: #141713;
}
.journey-v22 article:last-child > img { object-fit: contain; padding: 8px; }
.journey-v22 article > div { align-self: center; padding: 20px; }
.journey-v22 span { color: #d3a35e; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.journey-v22 h3 { margin: 6px 0 7px; color: #f6ead8 !important; font: 700 21px Georgia, serif !important; }
.journey-v22 p { margin: 0; color: #aeb4ab !important; font-size: 12px; line-height: 1.58; }

.highlight-links-v22 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-top: 1px solid var(--k22-line);
}
.highlight-links-v22 a {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) 24px;
    gap: 14px;
    align-items: center;
    min-height: 102px;
    border-bottom: 1px solid var(--k22-line);
    color: inherit;
    padding: 15px 18px 15px 0;
    text-decoration: none;
}
.highlight-links-v22 a:nth-child(odd) { border-right: 1px solid var(--k22-line); padding-right: 26px; }
.highlight-links-v22 a:nth-child(even) { padding-left: 26px; }
.highlight-links-v22 img { width: 48px; height: 48px; object-fit: contain; }
.highlight-links-v22 span { display: block; margin-bottom: 3px; color: #8a918b; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.highlight-links-v22 strong { color: var(--k22-ink); font: 700 17px/1.25 Georgia, serif; }
.highlight-links-v22 b { color: var(--k22-wine); font-size: 18px; }
.highlight-links-v22 a:hover strong { color: var(--k22-wine); }

.presentation-cta-v22 {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 10px 0 18px;
    border: 1px solid #2b302a;
    border-radius: 16px;
    background: linear-gradient(115deg, #151814, #211a16);
    padding: 34px 40px;
}
.presentation-cta-v22 .eyebrow { margin: 0 0 6px; color: #d4a45f; font-size: 9px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.presentation-cta-v22 h2 { margin: 0 0 7px; color: #fff0dc !important; font: 700 29px/1.1 Georgia, serif !important; }
.presentation-cta-v22 p:not(.eyebrow) { margin: 0; color: #adb3aa; font-size: 13px; line-height: 1.6; }
.presentation-cta-v22 .primary-button { border-radius: 9px !important; white-space: nowrap; }

/* Wiki: grouped directory like a compact reference homepage ---------- */
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22 {
    margin-bottom: 10px !important;
    border-radius: 16px !important;
    padding: 36px 40px !important;
}
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22 h2 {
    max-width: 820px !important;
    font-size: clamp(32px, 3.4vw, 45px) !important;
}

.wiki-directory-v22 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 0;
    margin: 0 0 10px;
    overflow: hidden;
    border: 1px solid var(--k22-line);
    border-radius: 14px;
    background: var(--k22-paper);
}
.wiki-directory-v22 > div {
    min-width: 0;
    border-right: 1px solid var(--k22-line);
    padding: 18px;
}
.wiki-directory-v22 > div:last-child { border-right: 0; }
.wiki-directory-v22 span {
    display: block;
    margin-bottom: 9px;
    color: #858d86;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.wiki-directory-v22 a {
    display: block;
    width: fit-content;
    margin: 5px 0;
    color: var(--k22-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}
.wiki-directory-v22 a:hover { color: var(--k22-wine); text-decoration: underline; text-underline-offset: 3px; }

body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new {
    margin-top: 10px !important;
    border-radius: 15px !important;
    padding: clamp(34px, 3.6vw, 46px) !important;
}
body.presentation-page .codex-shell.codex-authentic .codex-section-heading { margin-bottom: 22px !important; }
body.presentation-page .codex-shell.codex-authentic .codex-section-heading h2 { font-size: clamp(30px, 3vw, 40px) !important; }

/* Keep dense reference material readable rather than decorative. */
body.presentation-page .codex-shell.codex-authentic .system-card-grid { gap: 0 30px !important; }
body.presentation-page .codex-shell.codex-authentic .system-card { padding: 18px 0 !important; }
body.presentation-page .codex-shell.codex-authentic .codex-table th,
body.presentation-page .codex-shell.codex-authentic .codex-table td { padding: 10px 12px !important; }

/* Dungeons: correct relationships and a single place for boss details. */
body.presentation-page .codex-shell.codex-authentic .dungeon-atlas-v22 {
    background: #f8f9f6 !important;
}
.dungeon-reference-v22 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 9px;
    margin-bottom: 12px;
}
.dungeon-reference-card-v22 {
    display: grid;
    grid-template-columns: 105px minmax(0,1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--k22-line);
    border-radius: 12px;
    background: #fff;
}
.dungeon-reference-media-v22 {
    display: grid;
    min-height: 150px;
    place-items: center;
    background: #181b17;
}
.dungeon-reference-media-v22 img { width: 95%; height: 135px; object-fit: contain; }
.dungeon-reference-card-v22 > div:last-child { align-self: center; padding: 17px; }
.dungeon-reference-card-v22 span { color: var(--k22-wine); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.dungeon-reference-card-v22 h3 { margin: 5px 0 6px; color: var(--k22-ink) !important; font: 700 18px/1.15 Georgia, serif !important; }
.dungeon-reference-card-v22 p { margin: 0; color: var(--k22-muted) !important; font-size: 11px; line-height: 1.55; }
.dungeon-reference-card-v22.no-art-v22 { grid-template-columns: 72px minmax(0,1fr); }
.dungeon-reference-mark-v22 {
    display: grid;
    min-height: 150px;
    place-items: center;
    background: #efe8dd;
    color: #865b28;
    font: 700 28px Georgia, serif;
}

.dungeon-detail-v22 {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--k22-line);
    border-radius: 13px;
    background: #fff;
}
.dungeon-detail-v22 > header {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--k22-line);
    padding: 21px 24px;
}
.dungeon-detail-v22 > header span { color: var(--k22-wine); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.dungeon-detail-v22 > header h3 { margin: 4px 0 0; color: var(--k22-ink) !important; font: 700 23px/1.15 Georgia, serif !important; }
.dungeon-detail-v22 > header > strong { color: #8b6a3f; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.dungeon-steps-v22,
.dragon-flow-v22 { display: grid; padding: 4px 24px; }
.dungeon-steps-v22 > div,
.dragon-flow-v22 > div {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid #e6e8e4;
    padding: 15px 0;
}
.dungeon-steps-v22 > div:last-child,
.dragon-flow-v22 > div:last-child { border-bottom: 0; }
.dungeon-steps-v22 b,
.dragon-flow-v22 b { color: var(--k22-gold); font-size: 10px; letter-spacing: .08em; }
.dungeon-steps-v22 span,
.dragon-flow-v22 span { color: var(--k22-muted); font-size: 12px; line-height: 1.58; }
.dungeon-steps-v22 span strong,
.dragon-flow-v22 span strong { display: block; margin-bottom: 2px; color: var(--k22-ink); font-size: 13px; }
.dungeon-note-v22 {
    margin: 0;
    border-top: 1px solid var(--k22-line);
    background: #f5f6f2;
    padding: 14px 24px;
    color: #626a63 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
}

.dungeon-detail-dragon-v22 { background: #fff; }
.boss-subsection-v22 {
    margin: 10px 24px 20px;
    overflow: hidden;
    border: 1px solid #2d322c;
    border-radius: 12px;
    background: var(--k22-night);
    padding: 22px;
}
.subsection-heading-v22 { margin-bottom: 16px; }
.subsection-heading-v22 span { color: #d6a665; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.subsection-heading-v22 h3 { margin: 4px 0 0; color: #fff0dc !important; font: 700 23px Georgia, serif !important; }
body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 9px !important;
}
body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 .boss-entry {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 11px !important;
    background: #20241f !important;
}
body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 .boss-portrait {
    height: 205px !important;
    min-height: 205px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    background: radial-gradient(circle at 50% 50%, rgba(132,41,35,.18), transparent 45%) !important;
}
body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 .boss-portrait img { width: 92% !important; height: 92% !important; object-fit: contain !important; }
body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 .boss-entry > div:last-child { padding: 16px !important; }
body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 span { color: #d6a665 !important; font-size: 8px !important; }
body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 h3 { margin: 5px 0 6px !important; color: #f7ead8 !important; font: 700 18px Georgia, serif !important; }
body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 p { margin: 0 !important; color: #abb1a8 !important; font-size: 11px !important; line-height: 1.5 !important; }

body.presentation-page .codex-shell.codex-authentic .dungeon-atlas-v22 .dungeon-reward-strip {
    margin: 0 24px 24px !important;
}

/* Weapons: no generic progression table in v22. */
body.presentation-page .codex-shell.codex-authentic .weapons-section .weapon-75-heading { margin-top: 0 !important; }

@media (max-width: 1240px) {
    .knowledge-layout { grid-template-columns: 180px minmax(0,1fr); gap: 18px; }
    .presentation-hero-v22 { grid-template-columns: minmax(0,1fr) 340px; }
    .wiki-directory-v22 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .wiki-directory-v22 > div:nth-child(3) { border-right: 0; }
    .wiki-directory-v22 > div:nth-child(-n+3) { border-bottom: 1px solid var(--k22-line); }
    .dungeon-reference-v22 { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
    .presentation-hero-v22 { grid-template-columns: 1fr; }
    .presentation-hero-map-v22,
    .presentation-hero-map-v22 > img { min-height: 290px; }
    .journey-v22 { grid-template-columns: 1fr; }
    .presentation-cta-v22 { grid-template-columns: 1fr; }
    .presentation-cta-v22 .primary-button { width: max-content; }
    .wiki-directory-v22 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .wiki-directory-v22 > div { border-bottom: 1px solid var(--k22-line); }
    .wiki-directory-v22 > div:nth-child(odd) { border-right: 1px solid var(--k22-line); }
    .wiki-directory-v22 > div:nth-child(even) { border-right: 0; }
    .wiki-directory-v22 > div:last-child { border-bottom: 0; }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 { grid-template-columns: 1fr !important; }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 .boss-entry { display: grid !important; grid-template-columns: 190px minmax(0,1fr); }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 .boss-portrait { height: 190px !important; min-height: 190px !important; border-right: 1px solid rgba(255,255,255,.08) !important; border-bottom: 0 !important; }
}

@media (max-width: 680px) {
    .presentation-hero-v22,
    .presentation-section-v22,
    .presentation-cta-v22,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new {
        border-radius: 13px !important;
        padding: 25px 17px !important;
    }
    .presentation-hero-copy-v22 h1 { font-size: 41px !important; }
    body.presentation-page .presentation-hero-copy-v22 .hero-actions { flex-direction: column !important; align-items: stretch !important; }
    body.presentation-page .presentation-hero-copy-v22 .hero-actions > * { width: 100% !important; justify-content: center !important; }
    body.presentation-page .presentation-facts-v22 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    .presentation-facts-v22 > div:nth-child(2) { border-right: 0; }
    .presentation-facts-v22 > div:nth-child(-n+2) { border-bottom: 1px solid var(--k22-line); }
    .identity-grid-v22 { grid-template-columns: 1fr; }
    .identity-grid-v22 article:nth-child(odd) { border-right: 0; }
    .identity-grid-v22 article { padding-right: 0; }
    .journey-v22 article { grid-template-columns: 1fr; }
    .journey-v22 article > img { height: 205px; min-height: 205px; }
    .highlight-links-v22 { grid-template-columns: 1fr; }
    .highlight-links-v22 a,
    .highlight-links-v22 a:nth-child(odd),
    .highlight-links-v22 a:nth-child(even) { border-right: 0; padding: 14px 0; }
    .wiki-directory-v22 { grid-template-columns: 1fr; }
    .wiki-directory-v22 > div,
    .wiki-directory-v22 > div:nth-child(odd),
    .wiki-directory-v22 > div:nth-child(even) { border-right: 0; border-bottom: 1px solid var(--k22-line); }
    .wiki-directory-v22 > div:last-child { border-bottom: 0; }
    .dungeon-reference-card-v22 { grid-template-columns: 92px minmax(0,1fr); }
    .dungeon-detail-v22 > header { display: block; }
    .dungeon-detail-v22 > header > strong { display: block; margin-top: 8px; white-space: normal; }
    .dungeon-steps-v22,
    .dragon-flow-v22 { padding: 4px 17px; }
    .dungeon-note-v22 { padding: 13px 17px; }
    .boss-subsection-v22 { margin: 10px 0 16px; padding: 16px; }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 .boss-entry { display: block !important; }
    body.presentation-page .codex-shell.codex-authentic .boss-grid-v22 .boss-portrait { height: 210px !important; min-height: 210px !important; border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
    body.presentation-page .codex-shell.codex-authentic .dungeon-atlas-v22 .dungeon-reward-strip { margin: 0 0 16px !important; }
}

/* ========================================================================== */
/* KustoszMT2 Presentation + Wiki v23                                         */
/* Clear hierarchy, high contrast, stable map cards, real mobile layout.      */
/* ========================================================================== */

body.presentation-page {
    --v23-paper: #f5f3ee;
    --v23-surface: #ffffff;
    --v23-surface-soft: #eeece6;
    --v23-ink: #171b18;
    --v23-copy: #4e5751;
    --v23-muted: #747d76;
    --v23-line: #d8d9d3;
    --v23-red: #8f1713;
    --v23-red-strong: #ad2119;
    --v23-gold: #b3833e;
    --v23-dark: #171815;
    --v23-dark-2: #20221e;
    --v23-dark-copy: #d5d7d0;
    --v23-radius: 18px;
    background: var(--v23-paper) !important;
    color: var(--v23-ink) !important;
    overflow-x: clip;
}

body.presentation-page .knowledge-layout {
    width: min(1540px, calc(100% - 36px)) !important;
    margin: 28px auto 72px !important;
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
}

body.presentation-page .knowledge-main {
    min-width: 0 !important;
    width: 100% !important;
}

body.presentation-page .section-rail {
    position: sticky !important;
    top: 92px !important;
    max-height: calc(100vh - 116px) !important;
    overflow: auto !important;
    border: 1px solid var(--v23-line) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 14px 34px rgba(28,31,27,.07) !important;
    padding: 14px !important;
    scrollbar-width: thin;
    z-index: 8 !important;
}
body.presentation-page .section-rail-head { padding: 4px 5px 12px !important; }
body.presentation-page .section-rail-head span,
body.presentation-page .section-rail nav > p {
    color: var(--v23-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}
body.presentation-page .section-rail-head strong { color: var(--v23-ink) !important; font-size: 15px !important; }
body.presentation-page .section-rail-progress { background: #e8e5de !important; height: 3px !important; margin: 0 5px 12px !important; overflow: hidden !important; }
body.presentation-page .section-rail-progress span { background: var(--v23-red) !important; transform-origin: top !important; }
body.presentation-page .section-rail nav { display: flex !important; flex-direction: column !important; gap: 3px !important; }
body.presentation-page .section-rail nav > p { margin: 12px 6px 5px !important; }
body.presentation-page .section-rail a {
    display: grid !important;
    grid-template-columns: 28px minmax(0,1fr) !important;
    gap: 7px !important;
    align-items: center !important;
    min-height: 36px !important;
    border-radius: 9px !important;
    padding: 6px 8px !important;
    color: #424944 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
body.presentation-page .section-rail a span { color: #9c8a6d !important; font: 800 9px/1 system-ui, sans-serif !important; letter-spacing: .06em !important; }
body.presentation-page .section-rail a:hover { background: #f1efe9 !important; color: var(--v23-ink) !important; }
body.presentation-page .section-rail a.is-active { background: var(--v23-dark) !important; color: #fff !important; }
body.presentation-page .section-rail a.is-active span { color: #e8b96e !important; }
body.presentation-page .section-rail .section-sub-link-v23 { margin-left: 17px !important; grid-template-columns: 18px minmax(0,1fr) !important; font-size: 11px !important; }

body.presentation-page [id] { scroll-margin-top: 110px; }

/* Presentation hierarchy */
body.presentation-page .presentation-shell,
body.presentation-page .codex-shell.codex-authentic.codex-embedded {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--v23-ink) !important;
}

body.presentation-page .presentation-hero-v22,
body.presentation-page .presentation-section-v22,
body.presentation-page .presentation-cta-v22,
body.presentation-page .video-teaser-v23,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new {
    border: 1px solid var(--v23-line) !important;
    border-radius: var(--v23-radius) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body.presentation-page .presentation-hero-v22 {
    background: var(--v23-surface) !important;
    color: var(--v23-ink) !important;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr) !important;
    gap: 0 !important;
    padding: 0 !important;
    min-height: 500px !important;
}
body.presentation-page .presentation-hero-copy-v22 { padding: clamp(38px, 5vw, 74px) !important; align-self: center !important; }
body.presentation-page .presentation-hero-copy-v22 h1 { color: var(--v23-ink) !important; font-size: clamp(46px, 5.2vw, 78px) !important; line-height: .96 !important; letter-spacing: -.045em !important; max-width: 780px !important; }
body.presentation-page .presentation-hero-copy-v22 > p:not(.eyebrow) { color: var(--v23-copy) !important; max-width: 690px !important; font-size: 16px !important; line-height: 1.75 !important; }
body.presentation-page .eyebrow { color: var(--v23-red) !important; }
body.presentation-page .presentation-hero-map-v22 { min-height: 500px !important; background: #e9e6de !important; border-left: 1px solid var(--v23-line) !important; }
body.presentation-page .presentation-hero-map-v22 > img { width: 100% !important; height: 100% !important; min-height: 500px !important; object-fit: contain !important; padding: 24px !important; background: #e9e6de !important; }
body.presentation-page .presentation-hero-map-v22 > img.is-map-fallback { object-fit: cover !important; opacity: .6; }
body.presentation-page .presentation-hero-map-v22 figcaption { background: rgba(23,24,21,.94) !important; color: #fff !important; }
body.presentation-page .presentation-hero-map-v22 figcaption span { color: #dfb66e !important; }
body.presentation-page .presentation-hero-map-v22 figcaption strong { color: #fff !important; }

body.presentation-page .primary-button { background: var(--v23-red) !important; color: #fff !important; border-color: var(--v23-red) !important; }
body.presentation-page .secondary-button { background: #fff !important; color: var(--v23-ink) !important; border-color: #c8cac5 !important; }
body.presentation-page .secondary-button:hover { border-color: var(--v23-red) !important; color: var(--v23-red) !important; }
body.presentation-page .hero-status { color: #545e57 !important; }

body.presentation-page .presentation-section-v22,
body.presentation-page .presentation-cta-v22 {
    background: var(--v23-surface) !important;
    color: var(--v23-ink) !important;
    padding: clamp(32px, 4.4vw, 62px) !important;
    margin-top: 18px !important;
}
body.presentation-page .section-heading-v22 h2,
body.presentation-page .presentation-cta-v22 h2 { color: var(--v23-ink) !important; }
body.presentation-page .section-heading-v22 > p:not(.eyebrow),
body.presentation-page .presentation-cta-v22 p { color: var(--v23-copy) !important; }
body.presentation-page .identity-grid-v22 article h3,
body.presentation-page .identity-grid-v22 article p,
body.presentation-page .identity-grid-v22 article span { color: inherit !important; }
body.presentation-page .identity-grid-v22 article p { color: var(--v23-copy) !important; }
body.presentation-page .identity-grid-v22 article span { color: var(--v23-gold) !important; }

/* The one intentional dark presentation block gets a complete contrast reset. */
body.presentation-page .section-dark-v22 {
    background: var(--v23-dark) !important;
    border-color: #2c2f29 !important;
    color: #f7f3ea !important;
}
body.presentation-page .section-dark-v22 h1,
body.presentation-page .section-dark-v22 h2,
body.presentation-page .section-dark-v22 h3,
body.presentation-page .section-dark-v22 strong { color: #fff8ec !important; }
body.presentation-page .section-dark-v22 p { color: #cbd0c8 !important; }
body.presentation-page .section-dark-v22 .eyebrow,
body.presentation-page .section-dark-v22 article span { color: #e3b569 !important; }
body.presentation-page .journey-v22 article { background: #20221e !important; border-color: #333730 !important; }
body.presentation-page .journey-v22 article h3 { color: #fff8ec !important; }
body.presentation-page .journey-v22 article p { color: #c3c8c0 !important; }
body.presentation-page .journey-v22 article > img { object-fit: contain !important; background: #161714 !important; padding: 10px !important; }
body.presentation-page .journey-v22 article > img.is-map-fallback { object-fit: cover !important; padding: 0 !important; opacity: .72; }

/* Compact local video preview; modal only opens on request. */
body.presentation-page .video-teaser-v23 { margin-top: 18px !important; background: #22231f !important; border-color: #30332c !important; }
body.presentation-page .video-teaser-button-v23 {
    width: 100% !important; border: 0 !important; padding: 0 !important; margin: 0 !important;
    display: grid !important; grid-template-columns: 250px minmax(0,1fr) !important; align-items: stretch !important;
    background: transparent !important; cursor: pointer !important; text-align: left !important; color: #fff !important;
}
body.presentation-page .video-teaser-media-v23 { position: relative !important; display: block !important; min-height: 140px !important; overflow: hidden !important; }
body.presentation-page .video-teaser-media-v23 img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
body.presentation-page .video-teaser-media-v23::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(0,0,0,.18)); }
body.presentation-page .video-teaser-media-v23 i { position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%); width:46px; height:46px; border-radius:50%; display:grid; place-items:center; background:#fff; color:#171815; font-style:normal; box-shadow:0 7px 22px rgba(0,0,0,.28); }
body.presentation-page .video-teaser-copy-v23 { padding: 24px 28px !important; display:flex !important; flex-direction:column !important; justify-content:center !important; gap:4px !important; }
body.presentation-page .video-teaser-copy-v23 small { color:#e4b56b !important; font-weight:800 !important; text-transform:uppercase !important; letter-spacing:.1em !important; font-size:10px !important; }
body.presentation-page .video-teaser-copy-v23 strong { color:#fff !important; font:700 24px/1.15 Georgia,serif !important; }
body.presentation-page .video-teaser-copy-v23 em { color:#c9cdc5 !important; font-style:normal !important; font-size:13px !important; }
body.presentation-page .video-teaser-button-v23:hover .video-teaser-media-v23 i { transform:translate(-50%,-50%) scale(1.08); }

.video-dialog-v23 { width:min(1120px,calc(100vw - 44px)); max-height:calc(100vh - 44px); padding:0; border:1px solid #3a3b35; border-radius:16px; background:#11120f; color:#fff; box-shadow:0 28px 90px rgba(0,0,0,.55); overflow:hidden; }
.video-dialog-v23::backdrop { background:rgba(8,9,7,.82); backdrop-filter:blur(4px); }
.video-dialog-v23[open] { display:block; }
.video-dialog-head-v23 { min-height:64px; padding:12px 16px 12px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #2c2e29; }
.video-dialog-head-v23 div { display:flex; flex-direction:column; gap:2px; }
.video-dialog-head-v23 span { color:#d5a55d; font-size:9px; text-transform:uppercase; letter-spacing:.12em; font-weight:800; }
.video-dialog-head-v23 strong { color:#fff; font:700 18px/1.2 Georgia,serif; }
.video-dialog-head-v23 button { width:38px; height:38px; border:1px solid #44473f; border-radius:50%; background:#1d1f1a; color:#fff; font-size:24px; cursor:pointer; }
.video-dialog-v23 video { display:block; width:100%; max-height:calc(100vh - 112px); background:#000; aspect-ratio:16/9; }

/* Embedded Wiki: light surfaces by default; dark cards get explicit text colors. */
body.presentation-page .codex-shell.codex-authentic.codex-embedded { margin-top: 20px !important; }
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new {
    background: var(--v23-surface) !important;
    color: var(--v23-ink) !important;
    margin: 0 0 18px !important;
    padding: clamp(30px, 4vw, 56px) !important;
}
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new * { box-sizing: border-box; }
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22 h2,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-heading h2,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new h3,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new strong { color: var(--v23-ink); }
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22 p,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-heading p,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new p,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new li { color: var(--v23-copy); }
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-heading > span,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22 .eyebrow { color: var(--v23-red) !important; }
body.presentation-page .drop-callout { display:block; margin-top:8px; color:var(--v23-red) !important; font-weight:900 !important; }

body.presentation-page .codex-table { background:#fff !important; color:var(--v23-ink) !important; border-color:var(--v23-line) !important; }
body.presentation-page .codex-table th { background:#22231f !important; color:#fff !important; border-color:#3b3e37 !important; }
body.presentation-page .codex-table td { background:#fff !important; color:#343b36 !important; border-color:#e0e1dc !important; }
body.presentation-page .codex-table tr:nth-child(even) td { background:#f7f6f2 !important; }
body.presentation-page .table-scroll,
body.presentation-page .riding-table-wrap { overflow-x:auto !important; -webkit-overflow-scrolling:touch; }

/* Map section v23 */
body.presentation-page .world-route-v23 { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:16px !important; margin-top:24px !important; }
body.presentation-page .map-card-v23 { min-width:0 !important; display:grid !important; grid-template-columns:minmax(210px,.72fr) minmax(0,1fr) !important; border:1px solid var(--v23-line) !important; border-radius:14px !important; background:#fff !important; overflow:hidden !important; }
body.presentation-page .map-card-media-v23 { min-height:260px !important; display:grid !important; place-items:center !important; background:#1d1f1b !important; padding:14px !important; overflow:hidden !important; }
body.presentation-page .map-card-media-v23 img { display:block !important; width:100% !important; height:100% !important; max-height:310px !important; object-fit:contain !important; border-radius:7px !important; }
body.presentation-page .map-card-media-v23 img.is-map-fallback { object-fit:cover !important; opacity:.78 !important; filter:saturate(.8) !important; }
body.presentation-page .map-card-copy-v23 { min-width:0 !important; padding:24px !important; display:flex !important; flex-direction:column !important; justify-content:center !important; }
body.presentation-page .map-card-copy-v23 > span { color:var(--v23-gold) !important; font-size:10px !important; font-weight:900 !important; text-transform:uppercase !important; letter-spacing:.1em !important; }
body.presentation-page .map-card-copy-v23 h3 { margin:7px 0 8px !important; color:var(--v23-ink) !important; font:700 25px/1.05 Georgia,serif !important; }
body.presentation-page .map-card-copy-v23 p { margin:0 0 13px !important; color:var(--v23-copy) !important; font-size:13px !important; line-height:1.6 !important; }
body.presentation-page .map-card-copy-v23 strong { color:var(--v23-red) !important; font-size:11px !important; line-height:1.45 !important; }
body.presentation-page .map-doc-links-v23 { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:10px !important; margin-top:14px !important; }
body.presentation-page .map-doc-links-v23 a { border:1px solid var(--v23-line) !important; border-radius:10px !important; background:#f8f7f3 !important; color:var(--v23-ink) !important; padding:12px 14px !important; min-width:0 !important; }
body.presentation-page .map-doc-links-v23 a span { color:var(--v23-red) !important; }

/* Dungeon guide v23 */
body.presentation-page .dungeon-jump-v23 { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:12px !important; margin:24px 0 18px !important; }
body.presentation-page .dungeon-jump-v23 a { display:grid !important; grid-template-columns:44px minmax(0,1fr) !important; column-gap:12px !important; row-gap:1px !important; align-items:center !important; padding:14px !important; border:1px solid var(--v23-line) !important; border-radius:12px !important; background:#f8f7f3 !important; text-decoration:none !important; color:var(--v23-ink) !important; }
body.presentation-page .dungeon-jump-v23 a > span { grid-row:1/3 !important; width:44px !important; height:44px !important; display:grid !important; place-items:center !important; border-radius:9px !important; background:var(--v23-dark) !important; color:#e5b86e !important; font-size:10px !important; font-weight:900 !important; }
body.presentation-page .dungeon-jump-v23 strong { color:var(--v23-ink) !important; font-size:13px !important; }
body.presentation-page .dungeon-jump-v23 small { color:var(--v23-muted) !important; font-size:10px !important; }
body.presentation-page .dungeon-jump-v23 a:hover { border-color:#aa8f64 !important; transform:translateY(-1px); }

body.presentation-page .dungeon-detail-v23 { margin-top:16px !important; border:1px solid var(--v23-line) !important; border-radius:15px !important; overflow:hidden !important; background:#fff !important; }
body.presentation-page .dungeon-detail-v23 + .dungeon-detail-v23 { margin-top:18px !important; }
body.presentation-page .dungeon-header-v23 { display:grid !important; grid-template-columns:minmax(0,1fr) 190px !important; gap:22px !important; align-items:center !important; padding:24px !important; background:#f4f2ec !important; border-bottom:1px solid var(--v23-line) !important; }
body.presentation-page .dungeon-header-v23 > div:first-child > span { color:var(--v23-red) !important; font-size:10px !important; font-weight:900 !important; text-transform:uppercase !important; letter-spacing:.11em !important; }
body.presentation-page .dungeon-header-v23 h3 { margin:6px 0 8px !important; color:var(--v23-ink) !important; font:700 28px/1.08 Georgia,serif !important; }
body.presentation-page .dungeon-header-v23 p { margin:0 !important; color:var(--v23-copy) !important; font-size:13px !important; line-height:1.62 !important; }
body.presentation-page .dungeon-boss-v23 { height:150px !important; border-radius:10px !important; background:var(--v23-dark) !important; display:grid !important; grid-template-rows:1fr auto !important; place-items:center !important; overflow:hidden !important; }
body.presentation-page .dungeon-boss-v23 img { max-width:92% !important; max-height:112px !important; object-fit:contain !important; }
body.presentation-page .dungeon-boss-v23 strong { width:100% !important; padding:7px 10px !important; text-align:center !important; background:#262822 !important; color:#e8c17d !important; font-size:9px !important; text-transform:uppercase !important; letter-spacing:.08em !important; }
body.presentation-page .dungeon-mark-v23 { width:96px !important; height:96px !important; justify-self:center !important; display:grid !important; place-items:center !important; border-radius:50% !important; background:var(--v23-dark) !important; color:#e4b76c !important; font:700 25px Georgia,serif !important; }
body.presentation-page .dungeon-steps-v23 { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:0 !important; padding:8px 24px !important; }
body.presentation-page .dungeon-steps-v23 > div { display:grid !important; grid-template-columns:36px minmax(0,1fr) !important; gap:10px !important; padding:16px 12px 16px 0 !important; border-bottom:1px solid #e5e5e0 !important; }
body.presentation-page .dungeon-steps-v23 > div:nth-child(odd) { margin-right:18px !important; border-right:1px solid #e5e5e0 !important; padding-right:20px !important; }
body.presentation-page .dungeon-steps-v23 > div:last-child { border-bottom:0 !important; }
body.presentation-page .dungeon-steps-v23 b,
body.presentation-page .dragon-flow-v23 b { color:var(--v23-gold) !important; font-size:10px !important; padding-top:3px !important; }
body.presentation-page .dungeon-steps-v23 span,
body.presentation-page .dragon-flow-v23 span { color:var(--v23-copy) !important; font-size:12px !important; line-height:1.58 !important; }
body.presentation-page .dungeon-steps-v23 span strong,
body.presentation-page .dragon-flow-v23 span strong { display:block !important; margin-bottom:3px !important; color:var(--v23-ink) !important; }
body.presentation-page .dungeon-note-v23 { margin:0 !important; padding:15px 24px !important; background:#252620 !important; color:#d8dbd3 !important; font-size:12px !important; line-height:1.55 !important; }
body.presentation-page .dungeon-note-v23 strong { color:#f6d798 !important; }
body.presentation-page .dragon-flow-v23 { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:1px !important; background:#e2e1dc !important; }
body.presentation-page .dragon-flow-v23 > div { display:grid !important; grid-template-columns:32px minmax(0,1fr) !important; gap:7px !important; padding:18px !important; background:#fff !important; }
body.presentation-page .boss-grid-v23 { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:10px !important; padding:18px 24px !important; background:#1a1b18 !important; }
body.presentation-page .boss-grid-v23 article { min-width:0 !important; display:grid !important; grid-template-columns:104px minmax(0,1fr) !important; align-items:center !important; border:1px solid #34372f !important; border-radius:10px !important; background:#22231f !important; overflow:hidden !important; }
body.presentation-page .boss-grid-v23 img { width:104px !important; height:104px !important; object-fit:contain !important; padding:8px !important; background:#141512 !important; }
body.presentation-page .boss-grid-v23 article div { padding:12px !important; }
body.presentation-page .boss-grid-v23 span { color:#ddb06a !important; font-size:9px !important; font-weight:800 !important; text-transform:uppercase !important; }
body.presentation-page .boss-grid-v23 h3 { color:#fff !important; margin:4px 0 0 !important; font:700 16px/1.15 Georgia,serif !important; }
body.presentation-page .dungeon-reward-v23 { padding:20px 24px 24px !important; background:#1a1b18 !important; }
body.presentation-page .dungeon-reward-v23 > strong { color:#fff !important; display:block !important; margin-bottom:10px !important; font-size:13px !important; }
body.presentation-page .dungeon-reward-v23 > div { display:flex !important; flex-wrap:wrap !important; gap:7px !important; }
body.presentation-page .dungeon-reward-v23 span { padding:7px 9px !important; border:1px solid #3a3d35 !important; border-radius:999px !important; color:#d8dacf !important; background:#242620 !important; font-size:10px !important; }

/* Equipment: more categories without turning it into another bonus table. */
body.presentation-page .weapon-75-grid-v23 { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:10px !important; }
body.presentation-page .weapon-75-grid-v23 article { min-width:0 !important; }
body.presentation-page .equipment-catalog-v23 { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important; margin-top:24px !important; }
body.presentation-page .equipment-catalog-v23 > article { border:1px solid var(--v23-line) !important; border-radius:13px !important; background:#faf9f6 !important; padding:18px !important; min-width:0 !important; }
body.presentation-page .equipment-category-head-v23 { display:grid !important; grid-template-columns:48px minmax(0,1fr) !important; gap:12px !important; align-items:center !important; margin-bottom:12px !important; }
body.presentation-page .equipment-category-head-v23 img { width:48px !important; height:48px !important; object-fit:contain !important; padding:7px !important; border-radius:9px !important; background:#22231f !important; }
body.presentation-page .equipment-category-head-v23 span { color:var(--v23-red) !important; font-size:9px !important; font-weight:900 !important; text-transform:uppercase !important; letter-spacing:.1em !important; }
body.presentation-page .equipment-category-head-v23 h3 { margin:3px 0 0 !important; color:var(--v23-ink) !important; font:700 18px/1.15 Georgia,serif !important; }
body.presentation-page .equipment-catalog-v23 ul { list-style:none !important; padding:0 !important; margin:0 !important; display:flex !important; flex-wrap:wrap !important; gap:6px !important; }
body.presentation-page .equipment-catalog-v23 li { padding:7px 9px !important; border:1px solid #dedfd9 !important; border-radius:8px !important; background:#fff !important; color:#3e4640 !important; font-size:11px !important; line-height:1.25 !important; }
body.presentation-page .equipment-catalog-v23 article > p { margin:11px 0 0 !important; color:var(--v23-muted) !important; font-size:11px !important; line-height:1.5 !important; }
body.presentation-page .equipment-footnote-v23 { margin-top:12px !important; padding:15px 18px !important; border-left:3px solid var(--v23-gold) !important; background:#f2efe8 !important; }
body.presentation-page .equipment-footnote-v23 strong { color:var(--v23-ink) !important; }
body.presentation-page .equipment-footnote-v23 p { display:inline !important; margin:0 0 0 7px !important; color:var(--v23-copy) !important; font-size:12px !important; }

/* Make old darker components readable as well. */
body.presentation-page .pet-feature-card,
body.presentation-page .riding-lead,
body.presentation-page .bonus-callout,
body.presentation-page .codex-faq-section details { color:var(--v23-ink) !important; }
body.presentation-page .pet-feature-card h3,
body.presentation-page .riding-lead h3,
body.presentation-page .bonus-callout h3,
body.presentation-page .codex-faq-section summary { color:var(--v23-ink) !important; }
body.presentation-page .pet-feature-card p,
body.presentation-page .riding-lead p,
body.presentation-page .bonus-callout p,
body.presentation-page .codex-faq-section details p { color:var(--v23-copy) !important; }

/* Boss chests, NPC portraits and shop catalogue. */
body.presentation-page .boss-chest-grid,
body.presentation-page .npc-feature-grid { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:12px !important; margin-top:22px !important; }
body.presentation-page .boss-chest-grid article,
body.presentation-page .npc-feature-card { min-width:0 !important; display:grid !important; grid-template-columns:74px minmax(0,1fr) !important; gap:14px !important; align-items:center !important; border:1px solid var(--v23-line) !important; border-radius:13px !important; background:#fff !important; padding:14px !important; }
body.presentation-page .boss-chest-grid article > img { width:64px !important; height:64px !important; object-fit:contain !important; padding:8px !important; border-radius:10px !important; background:#252620 !important; }
body.presentation-page .boss-chest-grid article span,
body.presentation-page .npc-feature-card > div > span,
body.presentation-page .shop-block-heading > span { color:var(--v23-red) !important; font-size:9px !important; font-weight:900 !important; text-transform:uppercase !important; letter-spacing:.08em !important; }
body.presentation-page .boss-chest-grid h3,
body.presentation-page .npc-feature-card h3,
body.presentation-page .shop-block-heading h3 { margin:4px 0 6px !important; color:var(--v23-ink) !important; font:700 18px/1.15 Georgia,serif !important; }
body.presentation-page .boss-chest-grid p,
body.presentation-page .npc-feature-card p,
body.presentation-page .shop-block-heading p { margin:0 !important; color:var(--v23-copy) !important; font-size:11px !important; line-height:1.52 !important; }
body.presentation-page .metin-drop-grid { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:12px !important; margin-top:22px !important; }
body.presentation-page .metin-drop-card { min-width:0 !important; display:grid !important; grid-template-columns:64px minmax(0,1fr) !important; gap:14px !important; align-items:center !important; border:1px solid var(--v23-line) !important; border-radius:13px !important; background:#fff !important; padding:14px !important; }
body.presentation-page .metin-drop-card > img { width:56px !important; height:56px !important; object-fit:contain !important; padding:7px !important; border-radius:10px !important; background:#252620 !important; }
body.presentation-page .metin-drop-card h3 { margin:0 0 6px !important; color:var(--v23-ink) !important; font:700 18px/1.15 Georgia,serif !important; }
body.presentation-page .metin-drop-card p { margin:0 !important; color:var(--v23-copy) !important; font-size:11px !important; line-height:1.52 !important; }
body.presentation-page .riding-drop-note-first { display:flex !important; gap:14px !important; align-items:center !important; margin:20px 0 16px !important; padding:13px 16px !important; border:1px solid var(--v23-line) !important; border-radius:12px !important; background:#f7f5ef !important; color:var(--v23-copy) !important; font-size:12px !important; line-height:1.55 !important; }
body.presentation-page .riding-drop-note-first img { width:48px !important; height:48px !important; object-fit:contain !important; flex:0 0 48px !important; }
body.presentation-page .riding-drop-note-first strong { color:var(--v23-ink) !important; }
body.presentation-page .npc-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
body.presentation-page .npc-feature-card { grid-template-columns:116px minmax(0,1fr) !important; min-height:150px !important; }
body.presentation-page .npc-portrait { width:116px !important; height:116px !important; display:grid !important; place-items:center !important; overflow:hidden !important; border-radius:11px !important; background:#23251f !important; }
body.presentation-page .npc-portrait img { width:100% !important; height:100% !important; object-fit:contain !important; }
body.presentation-page .npc-shop-block { margin-top:26px !important; padding-top:20px !important; border-top:1px solid var(--v23-line) !important; }
body.presentation-page .shop-block-heading { margin-bottom:14px !important; }
body.presentation-page .shop-item-grid { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:8px !important; }
body.presentation-page .shop-item-card { min-width:0 !important; display:grid !important; grid-template-columns:42px minmax(0,1fr) !important; align-items:center !important; gap:9px !important; padding:9px !important; border:1px solid var(--v23-line) !important; border-radius:10px !important; background:#fff !important; }
body.presentation-page .shop-item-card img { width:40px !important; height:40px !important; object-fit:contain !important; padding:3px !important; border-radius:7px !important; background:#252620 !important; }
body.presentation-page .shop-item-card strong { display:block !important; color:var(--v23-ink) !important; font-size:11px !important; line-height:1.2 !important; }
body.presentation-page .shop-item-card span { display:block !important; margin-top:4px !important; color:var(--v23-muted) !important; font-size:9px !important; line-height:1.25 !important; }
body.presentation-page .presentation-change-index { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(420px,1.2fr) !important; gap:28px !important; align-items:center !important; }
body.presentation-page .change-index-links { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:7px !important; }
body.presentation-page .change-index-links a { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:8px !important; padding:10px 11px !important; border:1px solid var(--v23-line) !important; border-radius:8px !important; background:#fff !important; color:var(--v23-ink) !important; font-size:10px !important; font-weight:800 !important; text-decoration:none !important; }
body.presentation-page .change-index-links a span { color:var(--v23-red) !important; font-size:14px !important; line-height:1 !important; }
body.presentation-page .change-index-links a:hover { border-color:var(--v23-red) !important; transform:translateY(-1px); }

/* ================================ Mobile ================================= */
@media (max-width: 1060px) {
    body.presentation-page .knowledge-layout { grid-template-columns: 190px minmax(0,1fr) !important; gap:18px !important; width:min(100% - 24px, 1320px) !important; }
    body.presentation-page .presentation-hero-v22 { grid-template-columns:1fr !important; min-height:0 !important; }
    body.presentation-page .presentation-hero-map-v22 { border-left:0 !important; border-top:1px solid var(--v23-line) !important; min-height:340px !important; }
    body.presentation-page .presentation-hero-map-v22 > img { min-height:340px !important; max-height:430px !important; }
    body.presentation-page .world-route-v23 { grid-template-columns:1fr !important; }
    body.presentation-page .map-card-v23 { grid-template-columns:260px minmax(0,1fr) !important; }
    body.presentation-page .dungeon-jump-v23 { grid-template-columns:1fr !important; }
    body.presentation-page .dragon-flow-v23 { grid-template-columns:1fr !important; }
    body.presentation-page .boss-grid-v23 { grid-template-columns:1fr !important; }
    body.presentation-page .boss-chest-grid { grid-template-columns:1fr !important; }
    body.presentation-page .metin-drop-grid { grid-template-columns:1fr !important; }
    body.presentation-page .shop-item-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    body.presentation-page .weapon-75-grid-v23 { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

@media (max-width: 820px) {
    body.presentation-page { overflow-x:hidden !important; }
    body.presentation-page .knowledge-layout {
        display:block !important;
        width:100% !important;
        margin:0 auto 48px !important;
    }
    body.presentation-page .npc-feature-grid { grid-template-columns:1fr !important; }
    body.presentation-page .presentation-change-index { grid-template-columns:1fr !important; }
    body.presentation-page .change-index-links { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    body.presentation-page .section-rail {
        position:sticky !important;
        top:64px !important;
        left:auto !important;
        width:100% !important;
        max-height:none !important;
        overflow:visible !important;
        border:0 !important;
        border-bottom:1px solid #d0d1cb !important;
        border-radius:0 !important;
        padding:8px 10px !important;
        box-shadow:0 8px 22px rgba(20,22,19,.08) !important;
        background:rgba(248,247,243,.97) !important;
        backdrop-filter:blur(10px) !important;
        z-index:30 !important;
    }
    body.presentation-page .section-rail-head,
    body.presentation-page .section-rail-progress,
    body.presentation-page .section-rail nav > p { display:none !important; }
    body.presentation-page .section-rail nav {
        display:flex !important;
        flex-direction:row !important;
        gap:6px !important;
        overflow-x:auto !important;
        overscroll-behavior-x:contain;
        scrollbar-width:none;
        padding:0 2px !important;
    }
    body.presentation-page .section-rail nav::-webkit-scrollbar { display:none; }
    body.presentation-page .section-rail a,
    body.presentation-page .section-rail .section-sub-link-v23 {
        flex:0 0 auto !important;
        display:flex !important;
        width:auto !important;
        min-height:34px !important;
        margin:0 !important;
        padding:7px 10px !important;
        border:1px solid #dedfd8 !important;
        background:#fff !important;
        color:#3f4641 !important;
        font-size:11px !important;
        white-space:nowrap !important;
    }
    body.presentation-page .section-rail a span { display:none !important; }
    body.presentation-page .section-rail a.is-active { background:var(--v23-dark) !important; border-color:var(--v23-dark) !important; color:#fff !important; }
    body.presentation-page [id] { scroll-margin-top: 118px !important; }
    body.presentation-page .knowledge-main { padding:12px 12px 0 !important; }
    body.presentation-page .presentation-hero-v22,
    body.presentation-page .presentation-section-v22,
    body.presentation-page .presentation-cta-v22,
    body.presentation-page .video-teaser-v23,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new { border-radius:14px !important; }
    body.presentation-page .presentation-hero-copy-v22 { padding:34px 24px !important; }
    body.presentation-page .presentation-hero-copy-v22 h1 { font-size:clamp(42px,11vw,60px) !important; }
    body.presentation-page .presentation-hero-map-v22,
    body.presentation-page .presentation-hero-map-v22 > img { min-height:0 !important; height:auto !important; }
    body.presentation-page .presentation-hero-map-v22 > img { aspect-ratio:16/10 !important; padding:18px !important; }
    body.presentation-page .video-teaser-button-v23 { grid-template-columns:150px minmax(0,1fr) !important; }
    body.presentation-page .video-teaser-media-v23 { min-height:120px !important; }
    body.presentation-page .video-teaser-copy-v23 { padding:18px !important; }
    body.presentation-page .video-teaser-copy-v23 strong { font-size:20px !important; }
    body.presentation-page .presentation-section-v22,
    body.presentation-page .presentation-cta-v22,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new { padding:30px 22px !important; }
    body.presentation-page .identity-grid-v22 { grid-template-columns:1fr !important; }
    body.presentation-page .journey-v22 { grid-template-columns:1fr !important; }
    body.presentation-page .journey-v22 article { grid-template-columns:130px minmax(0,1fr) !important; }
    body.presentation-page .journey-v22 article > img { height:100% !important; min-height:150px !important; }
    body.presentation-page .highlight-links-v22 { grid-template-columns:1fr !important; }
    body.presentation-page .map-card-v23 { grid-template-columns:220px minmax(0,1fr) !important; }
    body.presentation-page .map-card-media-v23 { min-height:230px !important; }
    body.presentation-page .map-doc-links-v23 { grid-template-columns:1fr !important; }
    body.presentation-page .dungeon-header-v23 { grid-template-columns:minmax(0,1fr) 150px !important; padding:20px !important; }
    body.presentation-page .dungeon-steps-v23 { grid-template-columns:1fr !important; padding:6px 20px !important; }
    body.presentation-page .dungeon-steps-v23 > div,
    body.presentation-page .dungeon-steps-v23 > div:nth-child(odd) { margin:0 !important; border-right:0 !important; padding:14px 0 !important; }
    body.presentation-page .dungeon-note-v23 { padding:14px 20px !important; }
    body.presentation-page .equipment-catalog-v23 { grid-template-columns:1fr !important; }
    body.presentation-page .wiki-directory-v22 { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

@media (max-width: 560px) {
    body.presentation-page .knowledge-main { padding:9px 9px 0 !important; }
    body.presentation-page .presentation-hero-copy-v22 { padding:30px 19px !important; }
    body.presentation-page .presentation-hero-copy-v22 h1 { font-size:clamp(39px,13vw,52px) !important; line-height:.98 !important; }
    body.presentation-page .presentation-hero-copy-v22 > p:not(.eyebrow) { font-size:14px !important; line-height:1.65 !important; }
    body.presentation-page .presentation-hero-copy-v22 .hero-actions { display:grid !important; grid-template-columns:1fr !important; gap:7px !important; }
    body.presentation-page .presentation-hero-copy-v22 .hero-actions > * { width:100% !important; justify-content:center !important; min-height:44px !important; }
    body.presentation-page .presentation-hero-map-v22 figcaption { position:static !important; }
    body.presentation-page .video-teaser-button-v23 { grid-template-columns:1fr !important; }
    body.presentation-page .video-teaser-media-v23 { aspect-ratio:16/8 !important; min-height:0 !important; }
    body.presentation-page .video-teaser-copy-v23 { padding:16px 18px 18px !important; }
    body.presentation-page .video-teaser-copy-v23 em { display:none !important; }
    body.presentation-page .presentation-section-v22,
    body.presentation-page .presentation-cta-v22,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22,
    body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new { padding:26px 17px !important; }
    body.presentation-page .section-heading-v22 h2,
    body.presentation-page .codex-section-heading h2,
    body.presentation-page .codex-library-intro-v22 h2 { font-size:clamp(31px,10vw,42px) !important; line-height:1.02 !important; }
    body.presentation-page .journey-v22 article { grid-template-columns:1fr !important; }
    body.presentation-page .journey-v22 article > img { min-height:0 !important; height:180px !important; }
    body.presentation-page .map-card-v23 { grid-template-columns:1fr !important; }
    body.presentation-page .map-card-media-v23 { min-height:0 !important; aspect-ratio:1.2/1 !important; padding:12px !important; }
    body.presentation-page .map-card-media-v23 img { max-height:none !important; }
    body.presentation-page .map-card-copy-v23 { padding:19px !important; }
    body.presentation-page .dungeon-jump-v23 a { grid-template-columns:40px minmax(0,1fr) !important; padding:12px !important; }
    body.presentation-page .dungeon-jump-v23 a > span { width:40px !important; height:40px !important; }
    body.presentation-page .dungeon-header-v23 { grid-template-columns:1fr !important; padding:19px !important; }
    body.presentation-page .dungeon-header-v23 h3 { font-size:24px !important; }
    body.presentation-page .dungeon-boss-v23 { height:180px !important; width:100% !important; }
    body.presentation-page .dungeon-boss-v23 img { max-height:138px !important; }
    body.presentation-page .dungeon-mark-v23 { justify-self:start !important; width:64px !important; height:64px !important; font-size:18px !important; }
    body.presentation-page .dungeon-steps-v23 { padding:4px 17px !important; }
    body.presentation-page .dragon-flow-v23 > div { padding:15px 17px !important; }
    body.presentation-page .boss-grid-v23 { padding:14px 16px !important; }
    body.presentation-page .boss-grid-v23 article { grid-template-columns:86px minmax(0,1fr) !important; }
    body.presentation-page .boss-grid-v23 img { width:86px !important; height:92px !important; }
    body.presentation-page .dungeon-reward-v23 { padding:18px 17px 20px !important; }
    body.presentation-page .weapon-75-grid-v23 { grid-template-columns:1fr !important; }
    body.presentation-page .equipment-catalog-v23 > article { padding:15px !important; }
    body.presentation-page .equipment-footnote-v23 p { display:block !important; margin:5px 0 0 !important; }
    body.presentation-page .wiki-directory-v22 { grid-template-columns:1fr !important; }
    body.presentation-page .codex-table { min-width:660px !important; }
    .video-dialog-v23 { width:calc(100vw - 16px); max-height:calc(100vh - 16px); border-radius:11px; }
    .video-dialog-head-v23 { min-height:58px; padding:10px 10px 10px 14px; }
    .video-dialog-v23 video { max-height:calc(100vh - 80px); }
}

/* v23 final containment fixes */
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-library-intro-v22,
body.presentation-page .codex-shell.codex-authentic.codex-embedded .codex-section-new {
    width: 100% !important;
    max-width: none !important;
}
@media (max-width: 820px) {
    body.presentation-page .section-rail { top: 66px !important; }
}

/* Ranking, Sponsor and trainers use the existing Wiki card language. */
body.presentation-page .npc-feature-grid > .npc-sponsor-card,
body.knowledge-page:not(.changes-page) .npc-feature-grid > .npc-sponsor-card { grid-column: 1 / -1 !important; }

body.presentation-page .trainer-feature-grid,
body.knowledge-page:not(.changes-page) .trainer-feature-grid { grid-template-columns: 1fr !important; }
body.presentation-page .trainer-feature-grid .trainer-feature-card,
body.knowledge-page:not(.changes-page) .trainer-feature-grid .trainer-feature-card {
    grid-template-columns: 210px minmax(0, 1fr) !important;
    min-height: 158px !important;
}
body.presentation-page .trainer-feature-card .trainer-portrait,
body.knowledge-page:not(.changes-page) .trainer-feature-card .trainer-portrait {
    width: 210px !important;
    height: 126px !important;
    background: #23251f !important;
}
body.presentation-page .trainer-feature-card .trainer-portrait img,
body.knowledge-page:not(.changes-page) .trainer-feature-card .trainer-portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

body.presentation-page .bonus-67-table-wrap,
body.knowledge-page:not(.changes-page) .bonus-67-table-wrap { max-width: 100%; overflow-x: auto; }
body.presentation-page .bonus-67-table,
body.knowledge-page:not(.changes-page) .bonus-67-table { min-width: 860px !important; }
body.presentation-page .bonus-cap-note,
body.knowledge-page:not(.changes-page) .bonus-cap-note {
    margin: 14px 0 0 !important;
    border: 1px solid #d8d9d3 !important;
    border-left: 3px solid #8f1713 !important;
    border-radius: 10px !important;
    background: #f7f5ef !important;
    padding: 13px 16px !important;
    color: #4e5751 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}
body.presentation-page .bonus-cap-note strong,
body.knowledge-page:not(.changes-page) .bonus-cap-note strong { color: #171b18 !important; }

/* The standalone Wiki shares the NPC portraits used in the presentation. */
body.knowledge-page:not(.changes-page) .npc-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}
body.knowledge-page:not(.changes-page) .npc-feature-card {
    display: grid;
    min-width: 0;
    min-height: 150px;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid #d8d9d3;
    border-radius: 13px;
    background: #fff;
    padding: 14px;
}
body.knowledge-page:not(.changes-page) .npc-portrait {
    display: grid;
    width: 116px;
    height: 116px;
    overflow: hidden;
    place-items: center;
    border-radius: 11px;
    background: #23251f;
}
body.knowledge-page:not(.changes-page) .npc-portrait img { width: 100%; height: 100%; object-fit: contain; }
body.knowledge-page:not(.changes-page) .npc-feature-card > div > span { color: #8f1713; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
body.knowledge-page:not(.changes-page) .npc-feature-card h3 { margin: 4px 0 6px; color: #171b18; font: 700 18px/1.15 Georgia, serif; }
body.knowledge-page:not(.changes-page) .npc-feature-card p { margin: 0; color: #4e5751; font-size: 11px; line-height: 1.52; }

@media (max-width: 820px) {
    body.knowledge-page:not(.changes-page) .npc-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    body.presentation-page .trainer-feature-grid .trainer-feature-card,
    body.knowledge-page:not(.changes-page) .trainer-feature-grid .trainer-feature-card { grid-template-columns: 1fr !important; }
    body.presentation-page .trainer-feature-card .trainer-portrait,
    body.knowledge-page:not(.changes-page) .trainer-feature-card .trainer-portrait { margin: 0 auto 6px; }
}

/* Seon-Pyeong's transformations follow the Wiki's existing NPC and catalog cards. */
body.presentation-page .refine-npc-grid,
body.knowledge-page:not(.changes-page) .refine-npc-grid { grid-template-columns: 1fr !important; }
body.presentation-page .refine-npc-card .npc-portrait img,
body.knowledge-page:not(.changes-page) .refine-npc-card .npc-portrait img { padding: 5px; }
.new-equipment-section .refine-groups { display: grid; gap: 20px; margin-top: 22px; }
.new-equipment-section .refine-group,
.new-equipment-section .refine-materials { border: 1px solid #d8d9d3; border-radius: 14px; background: #fff; padding: 17px; }
.new-equipment-section .table-intro { margin-bottom: 14px; }
.new-equipment-section .table-intro p { margin: 4px 0 0; color: #5b625c; font-size: 12px; }
.new-equipment-section .refine-chain-grid,
.new-equipment-section .refine-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.new-equipment-section .refine-chain-card { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; min-height: 85px; border: 1px solid #e2ded3; border-radius: 10px; background: #faf8f3; padding: 10px; }
.new-equipment-section .refine-source { display: grid; gap: 4px; min-width: 0; }
.new-equipment-section .refine-item { display: flex; align-items: center; gap: 8px; min-width: 0; color: #303832; font-size: 11px; line-height: 1.35; }
.new-equipment-section .refine-item img { width: 26px; height: 44px; flex: 0 0 26px; object-fit: contain; image-rendering: auto; }
.new-equipment-section .refine-item span,
.new-equipment-section .refine-item strong { overflow-wrap: anywhere; }
.new-equipment-section .refine-target strong { color: #8f1713; font-weight: 800; }
.new-equipment-section .refine-arrow { color: #ac782c; font-size: 22px; text-align: center; }
.new-equipment-section .refine-or { padding-left: 34px; color: #7b817a; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.new-equipment-section .refine-materials { margin-top: 20px; }
.new-equipment-section .refine-material-grid article { border: 1px solid #e2ded3; border-radius: 10px; background: #faf8f3; padding: 14px; }
.new-equipment-section .refine-material-grid h4 { margin: 0 0 6px; color: #1e251f; font: 700 17px/1.2 Georgia, serif; }
.new-equipment-section .refine-material-grid p,
.new-equipment-section .refine-source-note { margin: 0; color: #4e5751; font-size: 12px; line-height: 1.6; }
.new-equipment-section .refine-source-note { margin-top: 14px; }
.new-equipment-section .refine-source-note strong { color: #8f1713; }
@media (max-width: 780px) {
    .new-equipment-section .refine-chain-grid,
    .new-equipment-section .refine-material-grid { grid-template-columns: 1fr; }
}
