/*
 * The wiki.
 *
 * Loaded after blog.css and gold-theme.css (views/blog/header.php), so it uses
 * their tokens: --l2-gold, --panel, --panel-line, --text, --text-dim,
 * --parchment, --font-epic. Every rule is scoped to the wiki's own classes
 * (wk-*): nothing here can change another page.
 */

/* ------------------------------------------------------------- backdrop */

.wk-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.wk-bg::before,
.wk-bg::after {
    content: '';
    position: absolute;
    inset: 0;
}
.wk-bg::before {
    background: var(--wk-bg) center top / cover no-repeat;
    filter: sepia(0.5) saturate(0.7) brightness(0.55) contrast(1.05);
}
.wk-bg::after {
    background:
        radial-gradient(ellipse 85% 70% at 50% 25%, rgba(5, 5, 7, 0.2) 0%, rgba(5, 5, 7, 0.78) 100%),
        linear-gradient(to bottom, rgba(5, 5, 7, 0.45) 0%, rgba(5, 5, 7, 0.7) 40%, rgba(5, 5, 7, 0.92) 100%);
}

.wk-shell {
    max-width: 1240px;
    margin: 0 auto;
}

.wk-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ------------------------------------------------------------------ bar */

.wk-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding: 0.6rem 0.75rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.wk-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--parchment);
    text-decoration: none;
}
.wk-brand .material-symbols-outlined { color: var(--l2-gold); font-size: 22px; }
.wk-brand:hover { color: #fff; }

.wk-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 0.5rem;
}
.wk-search-icon {
    position: absolute;
    left: 0.7rem;
    color: var(--text-faint);
    font-size: 20px;
    pointer-events: none;
}
.wk-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 2.5rem;
    padding: 0 0.8rem 0 2.4rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    border-radius: 0;
}
.wk-search input[type="search"]:focus,
.wk-search select:focus,
.wk-filter input:focus {
    outline: none;
    border-color: var(--l2-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
.wk-search select {
    height: 2.5rem;
    max-width: 11rem;
    padding: 0 0.6rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    border-radius: 0;
}
.wk-search-go {
    height: 2.5rem;
    padding: 0 1rem;
    background: linear-gradient(180deg, #8f6c25 0%, #5f4515 48%, #36270a 100%);
    border: 1px solid var(--l2-gold);
    color: #f7e9c4;
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}
.wk-search-go:hover { filter: brightness(1.15); }

.wk-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: #0d0b08;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}
.wk-suggest-head {
    padding: 0.5rem 0.85rem 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.wk-suggest-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    align-items: center;
    padding: 0.45rem 0.85rem;
    color: var(--text);
    text-decoration: none;
    border-left: 2px solid transparent;
}
.wk-suggest-item img,
.wk-suggest-item .material-symbols-outlined,
.wk-suggest-dot { grid-row: span 2; }
.wk-suggest-item .material-symbols-outlined { color: var(--l2-gold); font-size: 22px; width: 28px; text-align: center; }
.wk-suggest-dot { width: 10px; height: 10px; margin-left: 9px; background: rgba(212, 175, 55, 0.5); transform: rotate(45deg); }
.wk-suggest-name { color: #fff; font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.wk-suggest-meta { color: var(--text-faint); font-size: 0.75rem; line-height: 1.3; }
.wk-suggest-item:hover,
.wk-suggest-item.is-active {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--l2-gold);
}
.wk-suggest-empty { padding: 0.9rem; color: var(--text-dim); font-size: 0.9rem; }
.wk-suggest-all {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background: rgba(212, 175, 55, 0.08);
    border: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--l2-gold);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.wk-suggest-all:hover { background: rgba(212, 175, 55, 0.16); }

/* ------------------------------------------------------------ breadcrumb */

.wk-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-faint);
}
.wk-crumbs li + li::before { content: '›'; margin-right: 0.3rem; color: rgba(212, 175, 55, 0.6); }
.wk-crumbs a { color: var(--text-dim); text-decoration: none; }
.wk-crumbs a:hover { color: var(--l2-gold); }
.wk-crumbs [aria-current] { color: var(--parchment); }

/* ------------------------------------------------------------------ hero */

.wk-hero {
    margin: 0 0 1.75rem;
    padding: 1.5rem 0 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.wk-hero-compact { padding-top: 0.5rem; }
.wk-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--l2-gold);
}
.wk-kicker .material-symbols-outlined { font-size: 16px; }
.wk-hero h1 {
    margin: 0;
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: clamp(1.7rem, 4.2vw, 2.7rem);
    line-height: 1.15;
    color: var(--parchment);
    text-shadow: 0 0 22px rgba(212, 175, 55, 0.25), 0 2px 10px rgba(0, 0, 0, 0.8);
    overflow-wrap: anywhere;
}
.wk-lead {
    max-width: 60rem;
    margin: 0.85rem 0 0;
    font-size: 1.04rem;
    line-height: 1.65;
    color: var(--text);
}
.wk-server-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 60rem;
    margin: 1rem 0 0;
    padding: 0.7rem 0.9rem;
    border-left: 3px solid var(--l2-gold);
    background: rgba(212, 175, 55, 0.07);
    color: var(--parchment);
    font-size: 0.94rem;
}
.wk-server-note .material-symbols-outlined { color: var(--l2-gold); }

.wk-title-row { display: flex; align-items: center; gap: 1rem; }
.wk-entity-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    image-rendering: auto;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6), 0 0 18px rgba(212, 175, 55, 0.25);
    background: #000;
}
.wk-entity-glyph {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 64px !important;
    font-size: 38px;
    color: var(--l2-gold);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), rgba(0, 0, 0, 0.8));
}
.wk-title-row .wk-kicker { margin-bottom: 0.25rem; }

/* ---------------------------------------------------------------- layout */

.wk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.75rem;
    align-items: start;
}
.wk-main { min-width: 0; }

/*
 * The side column runs the full height of the row and only the Vertex banner,
 * always its last child, sticks: the facts and the siblings above it scroll
 * away, the banner rides along to the end of the page. (Sticking the whole
 * column hid the bottom of a tall one until the very end of the page.)
 */
.wk-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-self: stretch;
}
.wk-side > .wk-vx {
    position: sticky;
    top: 90px;
}

.wk-block {
    margin: 0 0 2rem;
}
.wk-block > h2,
.wk-h,
.wk-tip h2,
.wk-tips > h2 {
    margin: 0 0 0.85rem;
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    line-height: 1.25;
    color: var(--parchment);
}
h3.wk-h { font-size: 1.08rem; color: #f0e3bf; }
h4.wk-h { font-size: 0.98rem; color: #e9dcb6; font-family: 'Noto Serif', serif; }

.wk-field {
    margin: 0 0 1.6rem;
    padding: 1rem 1.15rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
}
.wk-field .wk-field { padding: 0; margin: 1rem 0 0; background: none; border: 0; }
.wk-field > p:last-child,
.wk-field > ul:last-child { margin-bottom: 0; }
.wk-main p { color: var(--text); }

.wk-game-text {
    margin: 0;
    padding: 0.8rem 1rem;
    border-left: 3px solid rgba(212, 175, 55, 0.65);
    background: rgba(0, 0, 0, 0.35);
    font-family: 'Noto Serif', serif;
    font-style: italic;
    color: #ece2c8;
}

.wk-dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1rem;
    margin: 0 0 1.6rem;
    padding: 1rem 1.15rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
}
.wk-dl dt { color: var(--text-faint); font-size: 0.85rem; }
.wk-dl dd { margin: 0; color: var(--text); }
.wk-dl dd p { margin: 0; }

/* stats grid */
.wk-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    margin: 0;
}
.wk-stat {
    padding: 0.5rem 0.7rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.14);
}
.wk-stat dt {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.wk-stat dd { margin: 0.15rem 0 0; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wk-stat-wide { grid-column: 1 / -1; }

.wk-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.7rem; }
.wk-badge {
    padding: 0.2rem 0.55rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--l2-gold);
}
.wk-badge-aggressive { border-color: rgba(255, 60, 0, 0.6); color: #ff8a65; }
.wk-badge-passive { border-color: rgba(34, 197, 94, 0.5); color: #86efac; }

/* lists */
.wk-list, .wk-ul, .wk-ol { margin: 0; padding-left: 1.2rem; }
.wk-list li, .wk-ul li, .wk-ol li { margin: 0.18rem 0; }
.wk-ul ul { padding-left: 1.2rem; }
.wk-ol li { margin: 0.45rem 0; }
.wk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wk-chips li {
    padding: 0.25rem 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.18);
    font-size: 0.9rem;
}
.wk-chips a { text-decoration: none; }
.wk-chips a:hover { text-decoration: underline; }

.wk-main a, .wk-side a:not(.l2-button-primary) { color: #e7c560; }
.wk-main a:hover, .wk-side a:not(.l2-button-primary):hover { color: #fff3c8; }
.wk-row-link { border-bottom: 1px dotted rgba(212, 175, 55, 0.5); text-decoration: none; }

/* tables */
.wk-table-wrap { overflow-x: auto; margin: 0.4rem 0 0; -webkit-overflow-scrolling: touch; }
.wk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.wk-table th,
.wk-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    text-align: left;
    vertical-align: top;
}
.wk-table thead th {
    position: sticky;
    top: 0;
    background: #120f0a;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--l2-gold);
    white-space: nowrap;
}
.wk-table tbody tr:hover > td { background: rgba(212, 175, 55, 0.05); }
.wk-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.wk-list-table td.wk-name { min-width: 14rem; }
.wk-name img { vertical-align: middle; margin-right: 0.45rem; border: 1px solid rgba(212, 175, 55, 0.35); }
.wk-name a { font-weight: 600; text-decoration: none; }
.wk-name a:hover { text-decoration: underline; }
.wk-name strong { color: #fff; font-weight: 600; }
.wk-group-row th {
    padding-top: 1rem;
    background: transparent;
    font-family: var(--font-epic);
    font-size: 1rem;
    color: var(--parchment);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}
.wk-group-intro-row td { color: var(--text-dim); font-size: 0.9rem; }
.wk-row-open > td { border-bottom: 0; }
.wk-detail td {
    padding: 0 0.6rem 0.9rem 2.6rem;
    color: var(--text-dim);
    font-size: 0.88rem;
}
.wk-detail .wk-dl,
.wk-detail .wk-field { margin: 0.2rem 0 0; padding: 0.5rem 0.75rem; background: rgba(0, 0, 0, 0.3); }
.wk-detail .wk-h { font-size: 0.9rem; }
:target > td { background: rgba(212, 175, 55, 0.12); }

.wk-grade {
    display: inline-block;
    min-width: 1.8rem;
    padding: 0.05rem 0.35rem;
    border: 1px solid currentColor;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}
.wk-grade-ng { color: #a1a1aa; }
.wk-grade-d { color: #86efac; }
.wk-grade-c { color: #67e8f9; }
.wk-grade-b { color: #93c5fd; }
.wk-grade-a { color: #f0abfc; }
.wk-grade-s, .wk-grade-s80, .wk-grade-s84 { color: #fcd34d; }
.wk-aggro { color: #ff8a65; font-size: 0.75rem; }

/* filter + pagination */
.wk-filter {
    position: relative;
    max-width: 26rem;
    margin: 0 0 0.75rem;
}
.wk-filter .material-symbols-outlined { position: absolute; left: 0.6rem; top: 0.55rem; color: var(--text-faint); font-size: 20px; }
.wk-filter input {
    width: 100%;
    height: 2.4rem;
    padding: 0 0.8rem 0 2.3rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    font: inherit;
    border-radius: 0;
}
.wk-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 1.5rem 0 0;
}
.wk-pages a,
.wk-pages span {
    min-width: 2.2rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    text-decoration: none;
    color: var(--text);
}
.wk-pages [aria-current] { background: rgba(212, 175, 55, 0.18); color: #fff; border-color: var(--l2-gold); }
.wk-pages a:hover { border-color: var(--l2-gold); color: #fff; }

/* chips nav (sibling subsections) */
.wk-chips-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.5rem;
}
.wk-chips-nav a {
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-size: 0.85rem;
    text-decoration: none;
}
.wk-chips-nav a span { color: var(--text-faint); font-size: 0.75rem; margin-left: 0.2rem; }
.wk-chips-nav a:hover,
.wk-chips-nav a.is-current { border-color: var(--l2-gold); color: #fff; background: rgba(212, 175, 55, 0.12); }

/* cards */
.wk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
}
.wk-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.wk-card:hover { border-color: var(--l2-gold); background: rgba(30, 24, 12, 0.95); transform: translateY(-1px); }
.wk-card-icon { color: var(--l2-gold); font-size: 24px; }
.wk-card-name { font-weight: 600; color: #fff; line-height: 1.3; }
.wk-card-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.wk-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.wk-links a { display: inline-flex; align-items: center; gap: 0.35rem; }
.wk-links .material-symbols-outlined { font-size: 18px; }

/* home */
.wk-chronicles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 0 0 2.25rem;
}
.wk-chron-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.4rem 1.4rem 1.5rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wk-chron-card:hover { border-color: var(--l2-gold); box-shadow: 0 0 28px rgba(212, 175, 55, 0.18); }
.wk-chron-card.is-server { border-color: rgba(212, 175, 55, 0.55); }
.wk-chron-flag {
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.5);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--l2-gold);
}
.wk-chron-name { font-family: var(--font-epic); font-weight: 800; font-size: 2rem; color: var(--parchment); line-height: 1.1; }
.wk-chron-full { color: var(--text-dim); font-size: 0.92rem; }
.wk-chron-stats { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.5rem 0 0.8rem; padding: 0; list-style: none; font-size: 0.9rem; color: var(--text-dim); }
.wk-chron-stats strong { color: #fff; font-variant-numeric: tabular-nums; }
.wk-chron-go { align-self: flex-start; margin-top: auto; }

.wk-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.wk-quick-col { padding: 1rem 1.15rem; background: var(--panel); border: 1px solid var(--panel-line); }
.wk-quick-col h3 { margin: 0 0 0.6rem; font-family: var(--font-epic); font-size: 1rem; color: var(--parchment); }
.wk-quick-col ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 1rem; }
.wk-quick-col li { margin: 0 0 0.35rem; break-inside: avoid; }
.wk-quick-col a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); text-decoration: none; }
.wk-quick-col a:hover { color: var(--l2-gold); }
.wk-quick-col .material-symbols-outlined { color: var(--l2-gold); font-size: 18px; }

.wk-about p { max-width: 62rem; }
.wk-source { margin: 1.5rem 0 0; font-size: 0.8rem; color: var(--text-faint); }
.wk-note { padding: 0.7rem 0.9rem; border-left: 3px solid rgba(212, 175, 55, 0.6); background: rgba(212, 175, 55, 0.06); font-size: 0.92rem; }

/* side facts */
.wk-facts {
    margin: 0;
    padding: 0.4rem 1rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
}
.wk-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.wk-facts > div:last-child { border-bottom: 0; }
.wk-facts dt { color: var(--text-faint); font-size: 0.85rem; }
.wk-facts dd { margin: 0; color: #fff; text-align: right; font-size: 0.9rem; overflow-wrap: anywhere; }

.wk-related {
    padding: 0.9rem 1rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
}
.wk-related-title { margin: 0 0 0.5rem; font-family: var(--font-epic); font-weight: 700; color: var(--parchment); }
.wk-related ul { margin: 0; padding: 0; list-style: none; }
.wk-related li { margin: 0.3rem 0; }
.wk-related a { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; font-size: 0.92rem; }
.wk-main .wk-related { margin: 0 0 1.6rem; }
.wk-main .wk-related ul { columns: 2; column-gap: 1.5rem; }
.wk-main .wk-related li { break-inside: avoid; }
@media (max-width: 700px) { .wk-main .wk-related ul { columns: 1; } }
.wk-related img { border: 1px solid rgba(212, 175, 55, 0.3); }

.wk-art { margin: 0 0 1.5rem; border: 1px solid var(--panel-line); }
.wk-art img { display: block; width: 100%; height: auto; }

.wk-jump { margin: 0 0 1.25rem; }
.wk-jump a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }

/* tips */
.wk-tips { margin: 0 0 1.6rem; }
.wk-tip {
    margin: 0 0 1rem;
    padding: 1rem 1.15rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-left: 3px solid var(--l2-gold);
}
.wk-tip h3 { margin: 0 0 0.5rem; font-family: var(--font-epic); font-size: 1.02rem; color: var(--parchment); }
.wk-tip p { margin: 0 0 0.5rem; }
.wk-tip p:last-child { margin-bottom: 0; }

.wk-toc {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
}
.wk-toc-title { margin: 0 0 0.5rem; font-family: var(--font-epic); font-weight: 700; color: var(--parchment); }
.wk-toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 1.5rem; font-size: 0.9rem; }
.wk-toc li { break-inside: avoid; margin: 0 0 0.25rem; }

.wk-index { columns: 2; column-gap: 1.5rem; padding-left: 1.2rem; }
.wk-index li { break-inside: avoid; margin: 0 0 0.3rem; }

.wk-topic-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.wk-topic-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    text-decoration: none;
}
.wk-topic-list a:hover { border-color: var(--l2-gold); }
.wk-topic-name { font-family: var(--font-epic); font-weight: 700; color: var(--parchment); }
.wk-topic-desc { grid-column: 1; color: var(--text-dim); font-size: 0.9rem; }
.wk-topic-list .wk-card-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* search results */
.wk-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.wk-results a {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.7rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    text-decoration: none;
}
.wk-results a:hover { border-color: var(--l2-gold); }
.wk-results img, .wk-results .material-symbols-outlined { grid-row: span 2; }
.wk-results .material-symbols-outlined { color: var(--l2-gold); width: 32px; text-align: center; }
.wk-result-name { color: #fff; font-weight: 600; }
.wk-result-meta { color: var(--text-faint); font-size: 0.8rem; }
.wk-empty { color: var(--text-dim); }

/* -------------------------------------------- analysis, map and questions */

/* app/Service/WikiInsights.php: one icon and one sentence per line. */
.wk-ins {
    margin: 0 0 1.6rem;
    padding: 1rem 1.15rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-left: 3px solid var(--l2-gold);
}
.wk-ins-list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.wk-ins-list li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0.6rem;
    align-items: start;
    line-height: 1.55;
    color: var(--text);
}
.wk-ins-list .material-symbols-outlined { font-size: 20px; color: var(--l2-gold); margin-top: 1px; }
.wk-ins-list strong { color: #fff; }

.wk-map { margin: 0 0 1.6rem; }
.wk-map figure { margin: 0; }
.wk-map-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 720 / 450;
    border: 1px solid var(--panel-line);
    background: #10161a;
}
.wk-map-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.95); }
.wk-map-pin {
    position: absolute;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid #fff3c8;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.85);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.45), 0 0 18px rgba(212, 175, 55, 0.9);
}
.wk-map-pin::after {
    content: '';
    position: absolute;
    inset: -14px;
    border: 2px solid rgba(255, 243, 200, 0.7);
    border-radius: 50%;
    animation: wk-pin 2s ease-out infinite;
}
@keyframes wk-pin { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wk-map-pin::after { animation: none; } }
.wk-map figcaption { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--text-dim); }

.wk-faq { margin: 0 0 1.6rem; }
.wk-faq-item {
    margin: 0 0 0.6rem;
    padding: 0.85rem 1.1rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
}
.wk-faq-item h3 { margin: 0 0 0.35rem; font-family: var(--font-epic); font-size: 1.02rem; color: var(--parchment); }
.wk-faq-item p { margin: 0; color: var(--text); line-height: 1.6; }

/* ------------------------------------------------------------------- CTA */

.wk-cta {
    position: relative;
    padding: 1.25rem 1.25rem 1.35rem;
    background:
        radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.16), transparent 60%),
        linear-gradient(160deg, rgba(34, 26, 12, 0.96), rgba(10, 8, 5, 0.96));
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.wk-cta-band { margin: 2.5rem 0 1rem; padding: 1.75rem 2rem; text-align: center; }
.wk-cta-band .wk-cta-text,
.wk-cta-band .wk-cta-title { max-width: 46rem; margin-left: auto; margin-right: auto; }
.wk-cta-band .wk-cta-actions,
.wk-cta-band .wk-cta-status { justify-content: center; }
.wk-cta-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.55);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--l2-gold);
}
.wk-cta-title {
    margin: 0.7rem 0 0.4rem;
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 1.18rem;
    line-height: 1.3;
    color: var(--parchment);
}
.wk-cta-band .wk-cta-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.wk-cta-text { margin: 0 0 0.7rem; color: var(--text); font-size: 0.93rem; line-height: 1.55; }
.wk-cta-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    color: var(--text-dim);
    font-size: 0.82rem;
}
.wk-cta-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--l2-gold);
    animation: gold-pulse 2.4s ease-in-out infinite;
}
.wk-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.wk-cta-link { font-size: 0.88rem; color: #e7c560; }
.wk-cta-link:hover { color: #fff; }

/* ------------------------------------------------------- Vertex banner */

/*
 * views/wiki/_banner.php. The server the way the landing's hero card draws it
 * (name, status, Interlude → High Five, the marks), on a strip of the Aden art
 * of the landing's social card, then this page's line and the ways in.
 */
.wk-vx {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 14, 8, 0.97) 0%, rgba(8, 7, 5, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(212, 175, 55, 0.07);
}
.wk-vx::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--l2-gold) 20%, #fff3c8 50%, var(--l2-gold) 80%, transparent);
}

.wk-vx-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 168px;
    padding: 2.6rem 1.1rem 0.8rem;
}
.wk-vx-art::before,
.wk-vx-art::after {
    content: '';
    position: absolute;
    inset: 0;
}
/* Graded like the page backdrop, so it reads as the same gold-and-black picture. */
.wk-vx-art::before {
    background: url('/img/wiki/vertex-banner.webp') center 20% / cover no-repeat;
    filter: sepia(0.35) saturate(0.85) brightness(0.78) contrast(1.05);
}
.wk-vx-art::after {
    background: linear-gradient(180deg, rgba(8, 7, 5, 0.1) 0%, rgba(8, 7, 5, 0.25) 38%, rgba(16, 12, 7, 0.97) 100%);
}
.wk-vx-art > * { position: relative; z-index: 1; }

.wk-vx-art > .wk-vx-status {
    position: absolute;
    top: 0.8rem;
    left: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.55rem;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(212, 175, 55, 0.5);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--l2-gold);
}
.wk-vx-name {
    margin: 0;
    font-family: var(--font-epic);
    font-weight: 800;
    font-size: 2.15rem;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--parchment);
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.35), 0 2px 10px rgba(0, 0, 0, 0.9);
}
.wk-vx-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.3rem;
    margin: 0.5rem 0 0;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.98rem;
    color: #f0d27a;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.wk-vx-route .material-symbols-outlined { font-size: 18px; font-style: normal; color: var(--l2-gold); }
.wk-vx-route small {
    margin-left: auto;
    font-family: 'Space Grotesk', sans-serif;
    font-style: normal;
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.wk-vx-body { padding: 0.35rem 1.1rem 1.15rem; }

.wk-vx-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.9rem;
    padding: 0;
    list-style: none;
}
.wk-vx-marks li {
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ead9a6;
}

.wk-vx-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--parchment);
    overflow-wrap: anywhere;
}
.wk-vx-text { margin: 0 0 0.85rem; font-size: 0.86rem; line-height: 1.55; color: var(--text); }

.wk-vx-perk {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.55rem 0.7rem;
    background: rgba(212, 175, 55, 0.08);
    border-left: 2px solid var(--l2-gold);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text);
}
.wk-vx-perk .material-symbols-outlined { flex-shrink: 0; font-size: 20px; color: var(--l2-gold); }
.wk-vx-perk strong { color: #fff; }

.wk-vx-actions { display: grid; gap: 0.55rem; }
.wk-vx-actions .l2-button-primary {
    --be-pad-y: 0.8rem;
    --be-pad-x: 1rem;
    width: 100%;
}
/* Above the generic side-link colour (.wk-side a:not(...)) on purpose. */
.wk-vx a.wk-vx-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.45);
    font-family: var(--font-epic);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    color: #f1dfa8;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.wk-vx a.wk-vx-discord:hover { border-color: var(--l2-gold); background: rgba(212, 175, 55, 0.12); color: #fff; }

.wk-vx-note { margin: 0.75rem 0 0.4rem; font-size: 0.76rem; line-height: 1.45; color: var(--text-faint); }
.wk-vx a.wk-vx-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--l2-gold);
}
.wk-vx a.wk-vx-more:hover { color: #fff3c8; }
.wk-vx-more .material-symbols-outlined { font-size: 16px; transition: transform 0.2s; }
.wk-vx-more:hover .material-symbols-outlined { transform: translateX(2px); }

/*
 * A sticky banner taller than the screen would hide its own buttons: on a
 * short laptop screen it drops the paragraph first, then the perk.
 */
@media (min-width: 1024px) and (max-height: 820px) {
    .wk-vx-art { min-height: 128px; padding-top: 2.4rem; }
    .wk-vx-text { display: none; }
}
@media (min-width: 1024px) and (max-height: 680px) {
    .wk-vx-perk, .wk-vx-note { display: none; }
}

/* ------------------------------------------------ home: grid and banners */

/*
 * views/wiki/home.php. The home takes the width the page has (up to 2000px),
 * so the chronicles fit four to a row, and lays out a grid of its own:
 *   - below 1200px, one column: the banner on the right is not shown (as
 *     before) and the second banner (.wk-pr) is a strip between the
 *     chronicles and the Vertex and community sections;
 *   - from 1200px, the banner on the right, as on every wiki page;
 *   - from 1800px, the second banner moves to a rail on the left, so the two
 *     flank the content. That width is also in _promo.php (data-launch-quiet).
 */
.wk-shell-home { max-width: 2000px; }

.wk-home {
    row-gap: 0;
    grid-template-areas: "top" "promo" "rest";
}
.wk-home-top { grid-area: top; }
.wk-home-rest { grid-area: rest; }
.wk-home > .wk-pr { grid-area: promo; }
.wk-home > .wk-side { grid-area: side; }

@media (min-width: 1200px) {
    .wk-home {
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-areas: "top side" "promo side" "rest side";
    }
    /* Four to a row as soon as each card keeps ~230px; three below that. */
    .wk-home .wk-chronicles { grid-template-columns: repeat(auto-fill, minmax(max(230px, calc((100% - 3rem) / 4)), 1fr)); }
}

@media (min-width: 1800px) {
    .wk-home {
        column-gap: 1.5rem;
        grid-template-columns: 290px minmax(0, 1fr) 320px;
        grid-template-areas: "promo top side" "promo rest side";
    }
}

/* ---------------------------------------------------- the second banner */

/*
 * views/wiki/_promo.php. Gold and black like the rest of the wiki, with a
 * light running round its frame, the title's second line in moving gold and
 * the landing's AI chat in the game's own style. Everything that moves stops
 * for anyone who asked for less motion.
 */
.wk-pr { min-width: 0; margin: 0 0 2.25rem; }

.wk-pr-card {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background:
        linear-gradient(160deg, rgba(21, 16, 9, 0.97) 0%, rgba(7, 6, 5, 0.98) 100%) padding-box,
        linear-gradient(100deg, #5c4512, #f3d98b, #d4af37, #f3d98b, #5c4512) border-box;
    background-size: auto, 300% 100%;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 38px rgba(212, 175, 55, 0.16);
    animation: wk-pr-run 6s linear infinite;
}

/* The party facing the dragon, from the landing's Kaelith section. */
.wk-pr-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.wk-pr-art::before,
.wk-pr-art::after {
    content: '';
    position: absolute;
    inset: 0;
}
.wk-pr-art::before {
    background: url('/img/landing/kaelith/party-dragon.webp') 70% 30% / cover no-repeat;
    filter: sepia(0.25) saturate(0.95) brightness(0.72) contrast(1.05);
}
.wk-pr-art::after {
    background:
        linear-gradient(90deg, rgba(10, 8, 5, 0.97) 0%, rgba(10, 8, 5, 0.9) 42%, rgba(10, 8, 5, 0.55) 72%, rgba(10, 8, 5, 0.7) 100%),
        linear-gradient(180deg, transparent 55%, rgba(8, 7, 5, 0.85) 100%);
}

.wk-pr-status {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.55rem;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(212, 175, 55, 0.5);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--l2-gold);
}

.wk-pr-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "head ai" "go ai";
    gap: 1.1rem 1.75rem;
    padding: 3.1rem 1.5rem 1.5rem;
}
.wk-pr-head { grid-area: head; }
.wk-pr-ai { grid-area: ai; align-self: center; display: grid; gap: 0.9rem; }
.wk-pr-go { grid-area: go; align-self: end; }

.wk-pr svg { fill: #f3d98b; }

.wk-pr-kicker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.55rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--l2-gold);
}
.wk-pr-kicker svg { width: 15px; height: 15px; flex-shrink: 0; animation: wk-pr-twinkle 3s ease-in-out infinite; }

.wk-pr-title {
    margin: 0 0 0.7rem;
    font-family: var(--font-epic);
    font-weight: 800;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    line-height: 1.18;
    color: var(--parchment);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
    overflow-wrap: anywhere;
}
.wk-pr-title span {
    display: block;
    margin-top: 0.15rem;
    background: linear-gradient(100deg, #b8892a 0%, #f3d98b 25%, #fff6d8 40%, #d4af37 60%, #f3d98b 80%, #b8892a 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
    animation: wk-pr-gold 7s linear infinite;
}

.wk-pr-text { margin: 0 0 1rem; max-width: 38rem; font-size: 0.93rem; line-height: 1.6; color: var(--text); }

.wk-pr-genuine p {
    margin: 0 0 0.45rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.wk-pr-genuine ul { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.wk-pr-genuine li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ead9a6;
}
.wk-pr-genuine li::before { content: '\2713'; color: var(--l2-gold); }

/* The landing's chat window, set the way the game sets its chat. */
.wk-pr-chat {
    border: 1px solid rgba(212, 175, 55, 0.38);
    background: linear-gradient(180deg, rgba(18, 15, 9, 0.9) 0%, rgba(6, 6, 8, 0.94) 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(212, 175, 55, 0.12);
}
.wk-pr-chat-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.5rem 0.8rem;
    background: rgba(212, 175, 55, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #efe2bd;
}
.wk-pr-chat-head svg { width: 13px; height: 13px; flex-shrink: 0; }
.wk-pr-online { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; color: var(--l2-gold); letter-spacing: 0.14em; }
.wk-pr-online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--l2-gold); animation: gold-pulse 1.6s ease-in-out infinite; }

.wk-pr-msg {
    margin: 0.6rem 0.85rem 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e4e4e7;
    animation: wk-pr-in 0.45s ease both 0.6s;
}
.wk-pr-msg b { font-weight: 700; color: #fff; }
.wk-pr-msg em { font-style: normal; font-weight: 500; font-size: 0.85em; color: #71717a; }
.wk-pr-msg-ai {
    margin-bottom: 0.8rem;
    padding-left: 0.65rem;
    border-left: 2px solid rgba(212, 175, 55, 0.6);
    color: #efe2bd;
    animation-delay: 1.5s;
}
.wk-pr-msg-ai b { display: inline-flex; align-items: center; gap: 0.25rem; vertical-align: bottom; color: #f3d98b; }
.wk-pr-msg-ai svg { width: 11px; height: 11px; }

.wk-pr-feats { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.wk-pr-feats li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.84rem; line-height: 1.45; color: var(--text); }
.wk-pr-feats strong { color: #fff; }
.wk-pr .wk-pr-feats .material-symbols-outlined {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    font-size: 18px;
    color: var(--l2-gold);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.wk-pr-cta-line {
    margin: 0 0 0.75rem;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.4;
    color: #f0d27a;
}
.wk-pr-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wk-pr .wk-pr-btn {
    --be-pad-y: 0.85rem;
    --be-pad-x: 1.4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.35);
}
/* The light that crosses the button every few seconds. */
.wk-pr-btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-110%);
    animation: wk-pr-sheen 4.5s ease-in-out infinite;
    pointer-events: none;
}
.wk-pr a.wk-pr-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.62rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.45);
    font-family: var(--font-epic);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #f1dfa8;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.wk-pr a.wk-pr-dl:hover { border-color: var(--l2-gold); background: rgba(212, 175, 55, 0.12); color: #fff; }
.wk-pr-dl .material-symbols-outlined { font-size: 18px; }
.wk-pr a.wk-pr-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--l2-gold);
}
.wk-pr a.wk-pr-more:hover { color: #fff3c8; }
.wk-pr-more .material-symbols-outlined { font-size: 16px; transition: transform 0.2s; }
.wk-pr-more:hover .material-symbols-outlined { transform: translateX(2px); }

@keyframes wk-pr-run { to { background-position: 0 0, -300% 0; } }
@keyframes wk-pr-gold { to { background-position: -250% 0; } }
@keyframes wk-pr-sheen { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(230%); } }
@keyframes wk-pr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wk-pr-twinkle {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.85; }
    50% { transform: rotate(90deg) scale(1.2); opacity: 1; }
}

/*
 * The rail (1800px up): the art becomes the top of the card, everything
 * stacks, and the card rides the scroll like the banner on the right. A
 * short screen drops the extras first, so the buttons always fit.
 */
@media (min-width: 1800px) {
    .wk-home > .wk-pr { align-self: stretch; margin: 0; }
    .wk-pr-card { position: sticky; top: 90px; }
    .wk-pr-art { position: relative; inset: auto; height: 138px; }
    .wk-pr-art::before { background-position: 62% 32%; }
    .wk-pr-art::after { background: linear-gradient(180deg, rgba(8, 7, 5, 0.05) 0%, rgba(8, 7, 5, 0.25) 45%, rgba(16, 12, 7, 0.98) 100%); }
    .wk-pr-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head" "ai" "go";
        gap: 0.95rem;
        margin-top: -1.6rem;
        padding: 0 1rem 1.1rem;
    }
    .wk-pr-title { font-size: 1.42rem; }
    .wk-pr-text { margin-bottom: 0.8rem; font-size: 0.86rem; line-height: 1.5; }
    .wk-pr-msg { font-size: 0.76rem; }
    .wk-pr-msg-ai {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }
    .wk-pr-feats li { font-size: 0.8rem; }
    .wk-pr-actions { display: grid; }
    .wk-pr .wk-pr-btn { width: 100%; }
}
/* Measured on the longest language (ru): every step keeps the card, from
   90px down, inside the screen. The features dropped here are cards of the
   Vertex section further down anyway. */
@media (min-width: 1800px) and (max-height: 1139px) {
    .wk-pr-text { display: none; }
}
@media (min-width: 1800px) and (max-height: 1059px) {
    .wk-pr-feats { display: none; }
    .wk-pr-art { height: 100px; }
}
@media (min-width: 1800px) and (max-height: 899px) {
    .wk-pr-genuine { display: none; }
    .wk-pr-msg-ai { -webkit-line-clamp: 3; }
}
@media (min-width: 1800px) and (max-height: 799px) {
    .wk-pr-chat { display: none; }
}

@media (max-width: 700px) {
    .wk-pr-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head" "ai" "go";
        padding: 3rem 1.1rem 1.25rem;
    }
    .wk-pr-art::after { background: linear-gradient(180deg, rgba(10, 8, 5, 0.7) 0%, rgba(10, 8, 5, 0.92) 40%, rgba(10, 8, 5, 0.97) 100%); }
    .wk-pr-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    .wk-pr-card,
    .wk-pr-title span,
    .wk-pr-kicker svg,
    .wk-pr-msg,
    .wk-pr-online-dot { animation: none; }
    .wk-pr-btn::after { display: none; }
}

/* ------------------------------------------ home: Vertex and community */

/*
 * views/wiki/_hub.php: cards from config/wiki.php 'hub'. A card with a link
 * is clickable as a whole (the link stretches over it); one without is a
 * guide on its way, drawn dashed and quieter.
 */
.wk-hub > h2 { display: flex; align-items: center; gap: 0.55rem; }
.wk-hub > h2 .material-symbols-outlined { color: var(--l2-gold); font-size: 1.25em; }
.wk-hub-lead { max-width: 62rem; margin: -0.3rem 0 1.15rem; color: var(--text-dim); line-height: 1.6; }
.wk-hub-sub {
    margin: 1.4rem 0 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--l2-gold);
}
.wk-hub-lead + .wk-hub-sub { margin-top: 0; }

.wk-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wk-hub-grid.is-steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.wk-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1.15rem 1.15rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wk-hub-card:not(.is-soon):hover,
.wk-hub-card:focus-within { border-color: var(--l2-gold); box-shadow: 0 0 24px rgba(212, 175, 55, 0.16); }
.wk-hub-grid.is-steps .wk-hub-card { border-top: 2px solid rgba(212, 175, 55, 0.6); }
.wk-hub-card.is-soon { border-style: dashed; border-color: rgba(212, 175, 55, 0.3); background: rgba(12, 10, 7, 0.55); }

.wk-hub-icon { display: flex; align-items: center; gap: 0.6rem; }
.wk-hub-icon .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-size: 22px;
    color: var(--l2-gold);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.4);
}
.wk-hub-card.is-soon .wk-hub-icon .material-symbols-outlined { color: var(--text-dim); border-color: rgba(212, 175, 55, 0.2); }
.wk-hub-num {
    font-family: var(--font-epic);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    color: var(--l2-gold);
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.wk-hub-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.45rem;
    margin: 0.15rem 0 0;
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 1.04rem;
    line-height: 1.3;
    color: var(--parchment);
}
.wk-hub-ai {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.12rem 0.4rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.5);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #f3d98b;
}
.wk-hub-ai svg { width: 10px; height: 10px; fill: currentColor; }

.wk-hub-text { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--text); }
.wk-hub-note {
    margin: 0;
    padding-left: 0.6rem;
    border-left: 2px solid rgba(212, 175, 55, 0.35);
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-faint);
}

.wk-main a.wk-hub-go,
.wk-hub-soon {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 3px;
    margin-top: auto;
    padding-top: 0.35rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--l2-gold);
}
.wk-main a.wk-hub-go:hover { color: #fff3c8; }
.wk-hub-go::after { content: ''; position: absolute; inset: 0; }
.wk-hub-go .material-symbols-outlined { font-size: 16px; transition: transform 0.2s; }
.wk-hub-card:hover .wk-hub-go .material-symbols-outlined { transform: translateX(2px); }
.wk-hub-soon { color: var(--text-dim); }
.wk-hub-soon .material-symbols-outlined { font-size: 15px; }

/*
 * A guide written out in full under the cards (config 'hub' 'guides'): the
 * numbered steps, the notes beside them and the buttons that end it. The
 * warning note is the one thing on the wiki that is not gold: ember red.
 */
.wk-guide {
    margin: 1.75rem 0 0;
    padding: 1.4rem 1.5rem 1.5rem;
    background: var(--panel);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 3px solid var(--l2-gold);
    scroll-margin-top: 90px;
}
.wk-guide:target { box-shadow: 0 0 28px rgba(212, 175, 55, 0.18); }

.wk-guide-head { display: flex; align-items: flex-start; gap: 0.9rem; margin: 0 0 1.2rem; }
.wk-guide-head > .material-symbols-outlined {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 24px;
    color: var(--l2-gold);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.45);
}
.wk-guide-head h3 {
    margin: 0;
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--parchment);
}
.wk-guide-lead { max-width: 60rem; margin: 0.35rem 0 0; color: var(--text-dim); line-height: 1.6; }

.wk-guide-body {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1.25rem 1.75rem;
    align-items: start;
}

.wk-guide-steps { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; counter-reset: wk-step; }
.wk-guide-steps li {
    position: relative;
    min-height: 1.9rem;
    padding: 0.15rem 0 0 2.65rem;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text);
    counter-increment: wk-step;
}
.wk-guide-steps li::before {
    content: counter(wk-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    font-family: var(--font-epic);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--l2-gold);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.55);
}
/* The line that joins one step to the next. */
.wk-guide-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: -0.75rem;
    left: 0.95rem;
    width: 1px;
    background: rgba(212, 175, 55, 0.25);
}

.wk-guide-notes { display: grid; gap: 0.8rem; }
.wk-guide-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    background: rgba(212, 175, 55, 0.07);
    border-left: 2px solid var(--l2-gold);
}
.wk-guide-note > .material-symbols-outlined { flex-shrink: 0; font-size: 22px; color: var(--l2-gold); }
.wk-guide-note p { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--text); }
.wk-guide-note p.wk-guide-note-t { margin: 0 0 0.2rem; font-size: 0.9rem; font-weight: 700; color: #fff; }
.wk-guide-note.is-warn { background: rgba(196, 72, 44, 0.12); border-left-color: #d9663f; }
.wk-guide-note.is-warn > .material-symbols-outlined { color: #ec8a63; }
.wk-guide-note.is-warn p.wk-guide-note-t { color: #ffd2bf; }

.wk-main a.wk-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 0.45rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--l2-gold);
}
.wk-main a.wk-guide-link:hover { color: #fff3c8; }
.wk-guide-link .material-symbols-outlined { font-size: 16px; }

.wk-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1.35rem 0 0; }
/* The button keeps its own white text over the main column's link colour. */
.wk-guide-actions a.l2-button-primary { color: #fff; }
.wk-main a.wk-guide-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.62rem 1.1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.45);
    font-family: var(--font-epic);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #f1dfa8;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.wk-main a.wk-guide-btn:hover { border-color: var(--l2-gold); background: rgba(212, 175, 55, 0.12); color: #fff; }

@media (max-width: 900px) {
    .wk-guide-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .wk-guide { padding: 1.1rem 1rem 1.2rem; }
    .wk-guide-head h3 { font-size: 1.1rem; }
}

/* --------------------------------------------------------------- mobile */

/*
 * Listings, the home and the search keep the full width until there is room
 * for the banner beside them. Below that, a page that ends with the band
 * (_cta.php) drops the banner (wk-vx-wide): the same pitch twice in a row
 * helps nobody.
 */
@media (max-width: 1199px) {
    .wk-layout-wide { grid-template-columns: minmax(0, 1fr); }
    .wk-layout-wide .wk-side > .wk-vx { position: static; }
    .wk-layout-wide .wk-vx-wide,
    .wk-layout-wide .wk-side-wide { display: none; }
}

@media (max-width: 1023px) {
    .wk-layout { grid-template-columns: minmax(0, 1fr); }
    .wk-side > .wk-vx { position: static; }
    .wk-vx-wide,
    .wk-side-wide { display: none; }
}

@media (max-width: 700px) {
    .wk-bar { flex-wrap: wrap; gap: 0.6rem; padding: 0.6rem; }
    .wk-search { flex-wrap: wrap; flex-basis: 100%; }
    .wk-search input[type="search"] { flex-basis: 100%; }
    .wk-search select { flex: 1; max-width: none; }
    .wk-search-icon { top: 0.65rem; }
    .wk-field, .wk-dl, .wk-tip { padding: 0.85rem 0.9rem; }
    .wk-dl { grid-template-columns: 1fr; gap: 0.1rem; }
    .wk-dl dd { margin-bottom: 0.45rem; }
    .wk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wk-toc ol, .wk-index { columns: 1; }
    .wk-quick-col ul { columns: 1; }
    .wk-cta-band { padding: 1.4rem 1.1rem; }
    .wk-entity-icon { width: 48px; height: 48px; }
    .wk-entity-glyph { width: 48px !important; font-size: 30px; }
    .wk-list-table td.wk-name { min-width: 11rem; }
    .wk-detail td { padding-left: 0.6rem; }
}
