/*
 * Blog styles.
 *
 * Same design tokens as the landing page (views/home.php) so the two read as
 * one site, but written as plain CSS: the landing is a scroll-snap single page
 * with `overflow: hidden` on the body, and the blog needs an ordinary
 * document that scrolls.
 *
 * The blog is gold on black like the landing. The header, the buttons and the
 * launch bubble come from css/gold-theme.css, which blog/header.php loads after
 * this file. The admin and the war page load this file too, so the colour
 * tokens below keep their values: war.css still paints its gods with them, and
 * the admin its statuses. The blog's own rules simply stop using the blue,
 * red, green and purple ones.
 */

:root {
    --l2-gold: #d4af37;
    --l2-blue: #009dff;
    --l2-red: #ff3c00;
    --l2-purple: #a855f7;
    --l2-green: #22c55e;
    --surface: #050507;
    --surface-raised: #101014;
    --surface-variant: rgba(20, 20, 25, 0.85);
    --outline: #3a3a40;
    --text: #d1d1d6;
    --text-dim: #a1a1aa;
    --text-faint: #71717a;

    /* Also in gold-theme.css; repeated so the admin, which loads only this
       file, resolves them too. */
    --parchment: #f4e6c3;
    --font-epic: 'Cinzel', 'Noto Serif', serif;
    /* The blog's own panels: near-black, warmed toward the gold. */
    --panel: rgba(12, 10, 7, 0.93);
    --panel-line: rgba(212, 175, 55, 0.22);
}

/* ============================ Backdrop ========================== */

/*
 * A town of Aden behind the blog — the cathedral of Giran, where the
 * chronicles are kept — graded toward gold and black like the landing's
 * section backdrops. Only the blog's own pages carry it (blog/header.php
 * prints the element there); the war page has a backdrop of its own.
 *
 * Fixed, like the war page's: it holds still while a long article scrolls, and
 * no `background-attachment: fixed` is needed, which iOS repaints every frame.
 * z-index -1 puts it under the copy but over the root background colour, so
 * the page stays black if the image fails to load.
 */
.blog-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.blog-bg::before,
.blog-bg::after {
    content: '';
    position: absolute;
    inset: 0;
}
.blog-bg::before {
    background: url('/img/landing/fondos/giran.webp') center top / cover no-repeat;
    filter: sepia(0.55) saturate(0.7) brightness(0.62) contrast(1.06);
}
/* The scrim: lighter up top, where the spires sit behind the masthead, and
   heavier down the page, where the cards and the prose are. */
.blog-bg::after {
    background:
        radial-gradient(ellipse 85% 70% at 50% 30%, rgba(5, 5, 7, 0.15) 0%, rgba(5, 5, 7, 0.7) 100%),
        linear-gradient(to bottom, rgba(5, 5, 7, 0.35) 0%, rgba(5, 5, 7, 0.55) 45%, rgba(5, 5, 7, 0.88) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.blog-body {
    margin: 0;
    background-color: var(--surface);
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    /*
     * `clip`, not `hidden`. overflow-x: hidden turns the body into a scroll
     * container, and every `position: sticky` inside it silently stops working —
     * which is exactly what killed the side rails. `clip` prevents sideways
     * scrolling without creating that container.
     */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--l2-gold); }

img { max-width: 100%; height: auto; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    /* Until the font arrives an icon is its name spelled out; one em is the
       glyph's width, so nothing around it moves when the glyph lands. */
    width: 1em;
    overflow: hidden;
}

/* ============================ Shell ============================ */

.lang-flags { display: flex; gap: 8px; align-items: center; }
.lang-flags a { font-size: 18px; opacity: 0.45; transition: opacity 0.2s; text-decoration: none; }
.lang-flags a:hover { opacity: 1; }
.lang-flags a.active { opacity: 1; filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.8)); }
.lang-flags span { font-size: 18px; opacity: 0.15; cursor: not-allowed; }

/* The admin's button. Every public page loads gold-theme.css, which draws
   .l2-button-primary as the site's bronze-and-gold button instead. */
.l2-button-primary {
    display: inline-block;
    background: linear-gradient(to bottom, #8a6d2d, #4a3d1d);
    border: 1px solid var(--l2-gold);
    color: #fff;
    text-decoration: none;
    padding: 0.65rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 0.15s, filter 0.15s;
}
.l2-button-primary:hover { transform: translateY(-1px); filter: brightness(1.15); }

/*
 * Width scales with the viewport instead of stopping at a fixed cap. The
 * article column and the rails both grow, so a 2560px monitor is not mostly
 * empty margin — but the prose column is bounded further down so line length
 * stays readable rather than running to 200 characters.
 */
.blog-main {
    width: 100%;
    max-width: 2200px;
    margin: 0 auto;
    padding: 2.5rem clamp(1.5rem, 3vw, 3.5rem) 4rem;
}

/* ========================= Listing ============================= */

/* The support pages open with this block too. */
.blog-hero { text-align: center; margin-bottom: 2.5rem; }
.blog-hero h1 {
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.035em;
    line-height: 1.12;
    margin: 0 0 0.9rem;
    color: var(--parchment);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.22);
}
/* A gold rule under the title, fading out at both ends. */
.blog-hero h1::after {
    content: '';
    display: block;
    width: 7rem;
    height: 1px;
    margin: 0.85rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85), transparent);
}
.blog-hero p {
    color: #c9c1ac;
    max-width: 72ch;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.pillar-nav { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin: 1.75rem 0 2.5rem; }
.pillar-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border: 1px solid var(--panel-line);
    background: rgba(8, 7, 5, 0.78);
    font-family: var(--font-epic);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cbbf9f;
    text-decoration: none;
    transition: all 0.2s;
}
.pillar-nav a:hover { border-color: var(--l2-gold); color: #f3d98b; }
.pillar-nav a.active {
    border-color: var(--l2-gold);
    color: var(--l2-gold);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}

/* auto-fill, so a wide monitor gets more cards rather than wider ones. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}

@media (min-width: 1500px) {
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.blog-card:hover {
    border-color: var(--l2-gold);
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.22), 0 10px 28px rgba(0, 0, 0, 0.45);
}
.blog-card-image { aspect-ratio: 40 / 21; background-size: cover; background-position: center; background-color: #0b0b0f; }
.blog-card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-card-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.blog-card-meta .pillar { color: var(--l2-gold); }
.blog-card h2, .blog-card h3 {
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    margin: 0;
    color: var(--parchment);
}
.blog-card p { margin: 0; font-size: 0.875rem; color: var(--text-dim); line-height: 1.6; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-faint); }

.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--panel-line);
    background: rgba(8, 7, 5, 0.78);
    text-decoration: none;
    color: #cbbf9f;
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 13px;
    transition: border-color 0.2s, color 0.2s;
}
.pagination a:hover { border-color: var(--l2-gold); color: #f3d98b; }
.pagination .current { border-color: var(--l2-gold); color: var(--l2-gold); background: rgba(212, 175, 55, 0.12); }

/* ========================= Article ============================= */

/*
 * Three columns on a wide screen: banners | article | table of contents.
 * The rails collapse into normal flow below 1024px, where a sticky sidebar
 * would just eat the viewport.
 */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "right" "left";
    gap: 2.5rem;
}
.article-rail-left  { grid-area: left; }
.article-rail-right { grid-area: right; }
.article-layout > article { grid-area: main; }

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 264px;
        grid-template-areas: "main right" "left left";
        align-items: start;
        gap: 2.5rem 2rem;
    }
}

@media (min-width: 1360px) {
    .article-layout {
        grid-template-columns: 210px minmax(0, 1fr) 232px;
        grid-template-areas: "left main right";
    }
}

/*
 * The article takes the width; the rails stay narrow. The banners are text,
 * an icon and the logo, so they read fine in 220-300px, and the reading column
 * gets everything that is left. The grid centres once the article hits its cap.
 */
@media (min-width: 1500px) {
    .article-layout {
        /* 920 rather than 860: the prose now sits inside a padded plate,
           and this keeps the line length it had before. */
        grid-template-columns:
            minmax(260px, 380px)
            minmax(0, 920px)
            minmax(270px, 390px);
        justify-content: center;
        gap: 2.5rem 2.75rem;
    }

    /* Slightly larger type: the column is wider, the line count per screen
       stays the same, and it reads better on a big monitor. */
    .article-body { font-size: 1.06rem; }
    .article-title { font-size: clamp(2.2rem, 3vw, 3rem); }
}

.article-rail { display: flex; flex-direction: column; gap: 1.25rem; }
.article-rail-inner { display: flex; flex-direction: column; gap: 1.25rem; }

/* Below the three-column layout the right rail still follows the scroll. */
@media (max-width: 1359px) {
    .article-rail-right .article-rail-inner { position: sticky; top: 90px; }
}

@media (min-width: 1360px) {
    /*
     * The rail is a full-height container carrying the backdrop; the inner
     * wrapper is what sticks. Keeping them separate is what lets the artwork
     * cover the whole aside however long the article runs, while the cards
     * still ride the scroll.
     *
     * Block, not flex: as a flex item the inner wrapper would be stretched to
     * the container's height and sticky would have nowhere to travel.
     */
    .article-rail {
        display: block;
        align-self: stretch;
    }

    .article-rail-inner {
        position: sticky;
        top: 90px;
        z-index: 1;
    }

    .article-rail[style*='--rail-bg'] {
        position: relative;
        padding: 1.1rem 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    /*
     * The artwork, at full strength — the darkening is the separate layer below,
     * so the two can be tuned independently.
     *
     * `100% auto` + `repeat-y` rather than a fixed attachment. With
     * `background-attachment: fixed` the image is sized and placed against the
     * VIEWPORT, not the rail: scaled to viewport height it came out narrower
     * than the rail, which left a black strip down one edge. Sizing to 100% of
     * the element guarantees the full width is covered whatever the rail is,
     * and repeating vertically covers the whole aside however long the article
     * runs — without the sixfold zoom that `cover` would produce on a column
     * twenty screens tall.
     */
    .article-rail[style*='--rail-bg']::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        background-image: var(--rail-bg);
        background-size: 100% auto;
        background-position: center top;
        background-repeat: repeat-y;
        /* Graded like the page backdrop behind it, so the two read as one
           gold-and-black picture rather than three paintings side by side. */
        filter: sepia(0.55) saturate(0.7) brightness(0.62) contrast(1.06);
        pointer-events: none;
    }

    /* Veil: tune the darkening without touching the image layer. */
    .article-rail[style*='--rail-bg']::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(to bottom, rgba(5, 5, 7, 0.42), rgba(5, 5, 7, 0.58));
        pointer-events: none;
    }

    /*
     * z-index only — NOT position: relative.
     *
     * This selector is more specific than .article-rail-inner, so declaring
     * `position: relative` here silently overrode the `position: sticky` on the
     * inner wrapper and the banners stopped following the scroll. Sticky is
     * already a positioned value, so z-index applies to it on its own.
     */
    .article-rail[style*='--rail-bg'] > * { z-index: 1; }
}

/* Flat black behind the prose, deliberately — and over the blog's backdrop,
   a dark plate of its own, so the copy never sits on the picture. */
.article-layout > article { background: transparent; }
.blog-has-bg .article-layout > article {
    background: linear-gradient(180deg, rgba(10, 9, 7, 0.95) 0%, rgba(6, 6, 8, 0.96) 100%);
    border: 1px solid var(--panel-line);
    border-top: 2px solid rgba(212, 175, 55, 0.65);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1.1rem, 3.2vw, 2.75rem) clamp(1.75rem, 3vw, 2.75rem);
}

/* On a phone the page margin and the plate's own padding added up to nearly
   three rem a side. The page gives most of it back, and the author box
   stacks rather than squeezing its bio into a word a line. */
@media (max-width: 640px) {
    .blog-has-bg .blog-main { padding-left: 0.75rem; padding-right: 0.75rem; }
    .blog-has-bg .article-layout > article { padding-left: 1rem; padding-right: 1rem; }
    .author-box { flex-direction: column; gap: 0.9rem; padding: 1.25rem; }
    .author-hero { padding: 1.25rem; }
}

.article-breadcrumb {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8f8670;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.article-breadcrumb a { color: #cbbf9f; text-decoration: none; }
.article-breadcrumb a:hover { color: var(--l2-gold); }

.article-title {
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.8vw, 2.5rem);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--parchment);
}
.article-subtitle { font-size: 1.05rem; color: var(--text-dim); margin: 0 0 1.5rem; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid var(--panel-line);
    border-bottom: 1px solid var(--panel-line);
    margin-bottom: 2rem;
    font-size: 13px;
    color: var(--text-faint);
}
.article-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top center; border: 1px solid rgba(212, 175, 55, 0.45); }
.article-meta a { color: var(--text); text-decoration: none; font-weight: 600; }
.article-meta a:hover { color: var(--l2-gold); }

.article-figure { margin: 0 0 2rem; }
.article-figure img { width: 100%; display: block; border: 1px solid rgba(212, 175, 55, 0.35); }
.article-figure figcaption { font-size: 12px; color: var(--text-faint); padding-top: 0.5rem; font-style: italic; }

.article-body { font-size: 1.02rem; }
.article-body p { margin: 0 0 1.25rem; }
.article-body p.article-intro { font-size: 1.1rem; color: #e4e4e7; }
.article-body h2 {
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--parchment);
    margin: 2.5rem 0 1rem;
    padding-top: 0.5rem;
    scroll-margin-top: 90px;
}
.article-body h3 {
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--l2-gold);
    margin: 1.75rem 0 0.75rem;
    scroll-margin-top: 90px;
}
.article-body a.article-link {
    color: var(--l2-gold);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.4);
    text-underline-offset: 3px;
}
.article-body a.article-link:hover { text-decoration-color: var(--l2-gold); }

/* ------------------------ Table of contents -------------------- */

.article-toc {
    border-left: 1px solid var(--outline);
    padding-left: 1rem;
}
.article-toc h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 0.75rem;
}
.article-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.article-toc li { counter-increment: toc; margin-bottom: 0.55rem; }
.article-toc a { color: var(--text-dim); text-decoration: none; font-size: 13px; line-height: 1.4; display: block; }
.article-toc a::before { content: counter(toc, decimal-leading-zero) '. '; color: var(--l2-gold); opacity: 0.6; }
.article-toc a:hover { color: var(--l2-gold); }

/* --------------------------- CTAs ------------------------------ */

.article-cta {
    margin: 2.5rem 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(16, 13, 8, 0.9);
    position: relative;
    overflow: hidden;
}
.article-cta-hero::before,
.article-cta-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--cta-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}
.article-cta-body { position: relative; padding: 1.75rem; }
.article-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.article-cta-badge .material-symbols-outlined { font-size: 16px; }
.article-cta-title { font-family: var(--font-epic); font-weight: 700; font-size: 1.3rem; line-height: 1.25; color: var(--parchment); margin: 0 0 0.5rem; }
.article-cta-desc { color: var(--text-dim); margin: 0 0 1.25rem; font-size: 0.94rem; }
.article-cta-button { margin-top: 0.25rem; }

.article-cta-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--l2-gold);
}
.article-cta-inline .article-cta-line { margin: 0; flex: 1; min-width: 200px; font-size: 0.95rem; color: #e4e4e7; }
.article-cta-icon { font-size: 22px; }

.text-l2-gold { color: var(--l2-gold); }
.text-l2-blue { color: var(--l2-blue); }
.text-l2-red { color: var(--l2-red); }
.text-l2-green { color: var(--l2-green); }
.text-l2-purple { color: var(--l2-purple); }

/* The CTAs and the side banners name an accent per pillar (config/articles.php)
   and the CTAs are stored inside each article with it. The blog is gold on
   black, so inside them every accent is gold — the markup, the stored
   articles and the config all stay as they are. */
:is(.article-cta, .side-banner) :is(.text-l2-blue, .text-l2-red, .text-l2-green, .text-l2-purple) {
    color: var(--l2-gold);
}

/* ---------------------------- FAQs ----------------------------- */

/* The section headings below are h3 in the markup now (the structure pass took
   them out of the outline's top level); the h2 selectors stay for any older
   copy. */
.article-faqs { margin: 3rem 0; }
.article-faqs > :is(h2, h3) { font-family: var(--font-epic); font-weight: 700; font-size: 1.45rem; color: var(--parchment); margin-bottom: 1.25rem; }
.article-faqs details {
    border: 1px solid var(--panel-line);
    background: rgba(16, 13, 8, 0.75);
    margin-bottom: 0.6rem;
}
.article-faqs summary {
    cursor: pointer;
    padding: 0.9rem 1.1rem;
    font-weight: 600;
    color: #fff;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.article-faqs summary::-webkit-details-marker { display: none; }
.article-faqs summary::after { content: '+'; color: var(--l2-gold); font-size: 1.2rem; line-height: 1; }
.article-faqs details[open] summary::after { content: '−'; }
.article-faqs details p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--text-dim); font-size: 0.94rem; }

/* --------------------------- Sources --------------------------- */

.article-sources { margin: 3rem 0; border-top: 1px solid var(--panel-line); padding-top: 1.5rem; }
.article-sources :is(h2, h3) { font-family: var(--font-epic); font-weight: 700; font-size: 1.2rem; color: var(--parchment); margin: 0 0 0.4rem; }
.article-sources-note { font-size: 12px; color: var(--text-faint); margin: 0 0 1rem; }
.article-sources ol { margin: 0; padding-left: 1.2rem; }
.article-sources li { margin-bottom: 0.7rem; font-size: 0.9rem; }
.article-sources li::marker { color: var(--l2-gold); }
.article-sources a { color: #f3d98b; }
.article-sources-host { display: block; font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.article-sources-supports { display: block; font-size: 12px; color: var(--text-dim); font-style: italic; }

/* -------------------------- Disclaimer ------------------------- */

.article-disclaimer {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--outline);
    background: rgba(0, 0, 0, 0.35);
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.6;
}
.article-disclaimer .material-symbols-outlined { font-size: 18px; color: var(--text-dim); flex-shrink: 0; }
.article-disclaimer p { margin: 0; }
.article-disclaimer a { color: var(--text-dim); }

/* --------------------------- Author ---------------------------- */

.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 3rem 0;
    padding: 1.5rem;
    border: 1px solid var(--panel-line);
    background: rgba(16, 13, 8, 0.75);
}
.author-box img { width: 76px; height: 76px; object-fit: cover; object-position: top center; border: 1px solid rgba(212, 175, 55, 0.45); flex-shrink: 0; }
.author-box h2 { font-family: var(--font-epic); font-weight: 700; font-size: 1.1rem; margin: 0 0 0.35rem; color: var(--parchment); }
.author-box p { margin: 0; font-size: 0.9rem; color: var(--text-dim); }
.author-box .persona-note { font-size: 11px; color: var(--text-faint); margin-top: 0.5rem; font-style: italic; }

/* The author page sits on the backdrop, so its head gets a plate too. */
.author-hero {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.75rem;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-top: 2px solid rgba(212, 175, 55, 0.65);
}
.author-hero img { width: 110px; height: 110px; object-fit: cover; object-position: top center; border: 1px solid rgba(212, 175, 55, 0.5); }
.author-hero h1 { font-family: var(--font-epic); font-weight: 700; font-size: 2rem; margin: 0 0 0.5rem; color: var(--parchment); }

/* -------------------------- Comments --------------------------- */

.comments { margin: 3rem 0 0; }
.comments > :is(h2, h3) { font-family: var(--font-epic); font-weight: 700; font-size: 1.4rem; color: var(--parchment); margin-bottom: 1.25rem; }
.comment { border-left: 2px solid rgba(212, 175, 55, 0.35); padding: 0.25rem 0 0.25rem 1rem; margin-bottom: 1.5rem; }
.comment-head { font-size: 12px; color: var(--text-faint); margin-bottom: 0.35rem; }
.comment-head strong { color: var(--l2-gold); font-weight: 600; }
.comment p { margin: 0; font-size: 0.94rem; white-space: pre-line; }

.comment-form { margin-top: 2rem; border: 1px solid var(--panel-line); padding: 1.5rem; background: rgba(16, 13, 8, 0.75); }
.comment-form label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.35rem; }
.comment-form input, .comment-form textarea {
    width: 100%;
    background: #0a0a0c;
    border: 1px solid var(--outline);
    color: var(--text);
    padding: 0.65rem 0.8rem;
    font-family: inherit;
    font-size: 0.94rem;
    margin-bottom: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--l2-gold); }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .hp { position: absolute; left: -9999px; opacity: 0; }
.comment-form .form-note { font-size: 11px; color: var(--text-faint); margin: 0 0 1rem; }
.form-flash { padding: 0.75rem 1rem; border: 1px solid var(--outline); margin-bottom: 1.25rem; font-size: 0.9rem; }
.form-flash.ok { border-color: var(--l2-green); color: var(--l2-green); }
.form-flash.error { border-color: var(--l2-red); color: var(--l2-red); }
/* Under an article a comment that went through says so in gold; errors stay
   red everywhere, and the admin and support pages keep their green. */
.comments .form-flash.ok { border-color: var(--l2-gold); color: var(--l2-gold); }

/* --------------------------- Related --------------------------- */

.related { margin: 3rem 0 0; }
.related > :is(h2, h3) { font-family: var(--font-epic); font-weight: 700; font-size: 1.35rem; color: var(--parchment); margin-bottom: 1.25rem; }

/* ---------------------------- Legal ---------------------------- */

.legal-page { max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-family: 'Noto Serif', serif; font-style: italic; font-size: 2.2rem; color: #fff; margin-bottom: 0.5rem; }
.legal-page h2 { font-family: 'Noto Serif', serif; font-size: 1.25rem; color: var(--l2-gold); margin: 2rem 0 0.75rem; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 0.96rem; }
.legal-page .updated { font-size: 12px; color: var(--text-faint); margin-bottom: 2rem; }

/* ---------------------------- Admin ---------------------------- */

.admin-shell { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.admin-nav { display: flex; gap: 1rem; border-bottom: 1px solid var(--outline); padding-bottom: 1rem; margin-bottom: 2rem; flex-wrap: wrap; align-items: center; }
.admin-nav a { color: var(--text-dim); text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.admin-nav a.active, .admin-nav a:hover { color: var(--l2-gold); }
.admin-nav .badge { background: var(--l2-red); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; color: var(--text-faint); font-weight: 500; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; padding: 0.5rem; border-bottom: 1px solid var(--outline); }
.admin-table td { padding: 0.7rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
.admin-table .status-draft { color: var(--l2-red); }
.admin-table .status-published { color: var(--l2-green); }
.admin-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.admin-actions button {
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--text-dim);
    padding: 0.25rem 0.6rem;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.admin-actions button:hover { border-color: var(--l2-gold); color: var(--l2-gold); }
.admin-actions button.danger:hover { border-color: var(--l2-red); color: var(--l2-red); }
.admin-login { max-width: 340px; margin: 6rem auto; }
.admin-login input { width: 100%; background: #0a0a0c; border: 1px solid var(--outline); color: var(--text); padding: 0.7rem 0.9rem; margin-bottom: 1rem; font-family: inherit; }
.admin-card { border: 1px solid var(--outline); padding: 1.25rem; margin-bottom: 1rem; background: var(--surface-raised); }
.admin-card .meta { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.admin-card blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--outline); white-space: pre-line; font-size: 0.92rem; }
.admin-form-field { margin-bottom: 1.25rem; }
.admin-form-field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 0.35rem; }
.admin-form-field input, .admin-form-field textarea, .admin-form-field select {
    width: 100%; background: #0a0a0c; border: 1px solid var(--outline); color: var(--text);
    padding: 0.6rem 0.8rem; font-family: inherit; font-size: 0.92rem;
}
.admin-form-field textarea { min-height: 420px; resize: vertical; font-family: 'Courier New', monospace; font-size: 0.82rem; line-height: 1.5; }

/* ------------------- Inline (secondary) article image ------------------ */
/*
 * Deliberately narrower than the featured image and without the border
 * treatment of the hero figure: it breaks up the middle of a long read without
 * competing with the image at the top.
 */
.article-figure-inline {
    margin: 2.25rem auto;
    max-width: 82%;
}
.article-figure-inline img {
    width: 100%;
    display: block;
    border: 1px solid var(--outline);
    opacity: 0.92;
}
@media (max-width: 640px) {
    .article-figure-inline { max-width: 100%; }
}

/* --------------------------- Link variants ----------------------------- */

/* Links into the landing page's own sections. */
.article-body a.article-link-site {
    color: var(--l2-gold);
    text-decoration-color: rgba(212, 175, 55, 0.4);
}
.article-body a.article-link-site:hover { text-decoration-color: var(--l2-gold); }

/* Outbound editorial links, marked with a small external-link glyph — in a
   paler gold, so they still read apart from the links into the site. */
.article-body a.article-link-out {
    color: #f3d98b;
    text-decoration-color: rgba(243, 217, 139, 0.35);
}
.article-body a.article-link-out::after {
    content: '↗';
    font-size: 0.75em;
    margin-left: 2px;
    opacity: 0.65;
    text-decoration: none;
    display: inline-block;
}

/* ---------------- Explore: navigation into the landing page ------------- */
/*
 * Deliberately presented as navigation rather than as links buried in the
 * prose. In-text section links only appear when the article actually uses the
 * phrase; this row guarantees the page is never a dead end.
 */
.article-explore {
    margin: 2.5rem 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--panel-line);
    background: rgba(212, 175, 55, 0.04);
}
/* An h3 in the markup since the structure pass; h2 kept for older copy. */
.article-explore :is(h2, h3) {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 0.75rem;
}
.article-explore ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.article-explore a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--l2-gold);
    text-decoration: none;
    font-size: 0.92rem;
}
.article-explore a:hover { text-decoration: underline; }
.article-explore .material-symbols-outlined { font-size: 16px; opacity: 0.7; }

/* -------------------- Structured blocks inside the body ---------------- */
/*
 * Lists, comparison tables and callouts. Wall-to-wall prose is harder to scan
 * and gives a search engine nothing to lift into a featured snippet.
 */

.article-body .block-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--l2-gold);
    margin: 1.75rem 0 0.6rem;
}

.article-body ul.article-list,
.article-body ol.article-list {
    margin: 0 0 1.5rem;
    padding-left: 1.35rem;
}
.article-body ul.article-list li,
.article-body ol.article-list li {
    margin-bottom: 0.55rem;
    padding-left: 0.25rem;
}
.article-body ul.article-list li::marker { color: var(--l2-gold); }
.article-body ol.article-list li::marker { color: var(--l2-gold); font-weight: 700; }

/* Tables scroll inside their own container so a wide comparison never forces
   the page itself to scroll sideways on a phone. */
.article-table-wrap { margin: 1.75rem 0; overflow-x: auto; }
.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 420px;
}
.article-table th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    background: rgba(212, 175, 55, 0.07);
    border-bottom: 1px solid var(--l2-gold);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.article-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    vertical-align: top;
}
.article-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.article-callout {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--l2-gold);
    background: rgba(212, 175, 55, 0.06);
}
.article-callout .block-title { margin-top: 0; color: var(--l2-gold); }
.article-callout p:last-child { margin: 0; color: #e4e4e7; }

/* ========================= Sticky side banners ========================= */
/*
 * Identical on every article, unlike the in-body CTAs which follow the pillar.
 * They ride the scroll so they stay reachable through a long read without
 * interrupting it. Below 1024px they drop into normal flow after the article —
 * a sticky panel on a phone would just eat the viewport.
 */

.side-banner {
    position: relative;
    border: 1px solid var(--panel-line);
    background: linear-gradient(180deg, rgba(22, 18, 11, 0.9) 0%, rgba(10, 9, 7, 0.93) 100%);
    backdrop-filter: blur(2px);
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
/* A gold hairline along the top, lit up on hover. */
.side-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6) 25%, #fff3c8 50%, rgba(212, 175, 55, 0.6) 75%, transparent);
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}
.side-banner:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(212, 175, 55, 0.08);
}
.side-banner:hover::before { opacity: 1; }

.side-banner-body { padding: 1rem 1.05rem 1.1rem; }

/* The section icon in a gold medallion, beside the title: the picture lives
   behind the whole rail, so the cards stay legible at 220px. */
.side-banner-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}
.side-banner-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 20px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.03) 72%);
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.12), 0 0 0 3px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.2s;
}
.side-banner:hover .side-banner-icon {
    box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.25), 0 0 0 3px rgba(0, 0, 0, 0.35), 0 0 14px rgba(212, 175, 55, 0.3);
}

.side-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}
.side-banner-badge .material-symbols-outlined { font-size: 14px; }

.side-banner h2 {
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--parchment);
    margin: 0 0 0.4rem;
}
.side-banner p {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-dim);
}

.side-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--l2-gold);
    text-decoration: none;
}
.side-banner-cta .material-symbols-outlined { font-size: 15px; transition: transform 0.2s; }
.side-banner:hover .side-banner-cta .material-symbols-outlined { transform: translateX(2px); }
/* The card lifts on hover, so the whole card is the link. */
.side-banner-cta::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* -------------------------------------------- The Vertex banner ("play") */
/*
 * ContentEnricher::playBanner(). The one card in the rail built to be
 * clicked, so it carries the server's own artwork (the wiki's banner strip,
 * css/wiki.css .wk-vx) and a gold rim that light travels round. Every motion
 * stops under prefers-reduced-motion.
 *
 * Its <p>s are written .side-banner-play .x: `.side-banner p` would outrank a
 * bare class.
 */

@property --sbp-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.side-banner-play {
    border: 0;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(20, 15, 8, 0.98) 0%, rgba(8, 7, 5, 0.98) 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 34px rgba(212, 175, 55, 0.16);
}
.side-banner-play:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 42px rgba(212, 175, 55, 0.28);
}
.side-banner-play::before {
    height: 2px;
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--l2-gold) 20%, #fff3c8 50%, var(--l2-gold) 80%, transparent);
}
/* The rim: a ring cut out of a conic gradient whose bright arc goes round.
   Without @property the angle cannot animate and it is a still gold border. */
.side-banner-play::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 1px;
    background: conic-gradient(
        from var(--sbp-angle),
        rgba(212, 175, 55, 0.45) 0deg,
        rgba(212, 175, 55, 0.45) 240deg,
        #fff3c8 300deg,
        rgba(212, 175, 55, 0.45) 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: sbp-orbit 7s linear infinite;
    pointer-events: none;
}
@keyframes sbp-orbit { to { --sbp-angle: 360deg; } }

.sbp-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    padding: 2.5rem 1rem 0.7rem;
    overflow: hidden;
}
.sbp-art::before,
.sbp-art::after {
    content: '';
    position: absolute;
    inset: 0;
}
/* Graded like the rail backdrop, a little brighter: it is the focal point. */
.sbp-art::before {
    background: url('/img/wiki/vertex-banner.webp') center 20% / cover no-repeat;
    filter: sepia(0.3) saturate(0.9) brightness(0.85) contrast(1.05);
    transition: transform 6s ease;
}
.side-banner-play:hover .sbp-art::before { transform: scale(1.07); }
.sbp-art::after {
    background: linear-gradient(180deg, rgba(8, 7, 5, 0.05) 0%, rgba(8, 7, 5, 0.22) 40%, rgba(16, 12, 7, 0.97) 100%);
}
.sbp-art > * { position: relative; z-index: 1; }

.sbp-art > .sbp-status {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.55rem;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.55);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--l2-gold);
}
.sbp-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--l2-gold);
    animation: gold-pulse 2s ease-in-out infinite;
}

/* Gold leaf: drop-shadow, not text-shadow, which Chrome paints over
   background-clip text. */
.side-banner-play .sbp-name {
    margin: 0;
    font-family: var(--font-epic);
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f0d27a;
    background: linear-gradient(180deg, #fff6d8 0%, #f0d27a 45%, #b8892a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 14px rgba(212, 175, 55, 0.35));
}
.side-banner-play .sbp-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.3rem;
    margin: 0.45rem 0 0;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
    color: #f0d27a;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.sbp-route .material-symbols-outlined { font-size: 18px; font-style: normal; color: var(--l2-gold); }

.sbp-body { padding: 0.35rem 1rem 1.1rem; }

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

.side-banner.side-banner-play .side-banner-title { font-size: 1.05rem; color: #fff3d6; }
.side-banner-play .sbp-text { margin: 0 0 0.8rem; }

.side-banner-play .sbp-perk {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.5rem 0.6rem;
    background: rgba(212, 175, 55, 0.09);
    border-left: 2px solid var(--l2-gold);
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text);
}
.sbp-perk .material-symbols-outlined { flex-shrink: 0; font-size: 19px; color: var(--l2-gold); }
.sbp-perk strong { color: #fff; }

/* Three classes: the button's own rules (css/gold-theme.css) come later and
   weigh two. Its glint, which normally waits for a hover, sweeps by itself
   every few seconds. */
.side-banner.side-banner-play .sbp-cta {
    --be-pad-y: 0.85rem;
    --be-pad-x: 0.75rem;
    display: flex;
    width: 100%;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}
.side-banner.side-banner-play .sbp-cta::after { animation: sbp-glint 5s ease-in-out 1.5s infinite; }
.side-banner.side-banner-play .sbp-cta:is(:hover, :focus-visible)::after { animation: none; }
@keyframes sbp-glint {
    0%, 68% { background-position: 110% 0, 0 0; }
    90%, 100% { background-position: -10% 0, 0 0; }
}

.sbp-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.45rem 0.8rem;
    margin-top: 0.8rem;
}
.side-banner-play a.sbp-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--l2-gold);
    transition: color 0.2s;
}
.side-banner-play a.sbp-link:hover { color: #fff3c8; }
.sbp-link .material-symbols-outlined { font-size: 14px; }

/*
 * The narrow rail. From 1360 to 1499px the left rail is about 180px wide:
 * the name and the button must still fit on one line, and the card still has
 * to fit a laptop screen with its button in view. It is a container query
 * rather than a breakpoint, so it follows the card, wherever it lands.
 */
.side-banner { container-type: inline-size; }

@container (max-width: 240px) {
    .sbp-art { min-height: 128px; padding: 2.3rem 0.8rem 0.6rem; }
    .sbp-art > .sbp-status { left: 0.8rem; font-size: 8.5px; letter-spacing: 0.14em; }
    .side-banner-play .sbp-name { font-size: 1.6rem; letter-spacing: 0.06em; }
    .side-banner-play .sbp-route { font-size: 0.8rem; }
    .sbp-route .material-symbols-outlined { font-size: 15px; }
    .sbp-body { padding: 0.3rem 0.8rem 0.95rem; }
    .side-banner-play .sbp-text { display: none; }
    .side-banner.side-banner-play .side-banner-title { font-size: 0.92rem; }
    .side-banner-play .sbp-perk { padding: 0.45rem 0.55rem; font-size: 0.72rem; }
    .sbp-perk .material-symbols-outlined { display: none; }
    .side-banner.side-banner-play .sbp-cta { --be-pad-x: 0.4rem; font-size: 0.66rem; letter-spacing: 0.06em; }
    .side-banner.side-banner-play .sbp-cta .material-symbols-outlined { display: none; }
    /* Wrapped over two lines, the chevron would drift to the far edge. */
    .sbp-links .sbp-link:last-child .material-symbols-outlined { display: none; }

    /* The plain cards: medallion above the title, which gets the full width. */
    .side-banner-head { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
    .side-banner-body { padding: 0.9rem 0.85rem 1rem; }
}

/* A sticky rail taller than the screen hides its own bottom: on a short
   screen the banner drops its paragraph first, then the cards under it
   theirs. The button and the perk always stay. */
@media (min-width: 1360px) and (max-height: 820px) {
    .side-banner-play .sbp-text { display: none; }
}
/* The narrow rail runs every paragraph over twice as many lines. */
@media (min-width: 1360px) and (max-width: 1499px) and (max-height: 900px),
       (min-width: 1360px) and (max-height: 700px) {
    .article-rail-left .side-banner:not(.side-banner-play) .side-banner-body > p { display: none; }
}
@media (min-width: 1360px) and (max-height: 700px) {
    .sbp-links,
    .article-rail-left .side-banner:not(.side-banner-play) .side-banner-icon { display: none; }
}

/* Beside the article this banner says what the floating "opening soon"
   bubble says, and the bubble's corner is this rail: one pitch, not two. */
@media (min-width: 1360px) {
    body:has(.side-banner-play) .launch-banner { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .side-banner:hover { transform: none; }
    .side-banner-play::after,
    .sbp-dot,
    .side-banner.side-banner-play .sbp-cta::after { animation: none; }
    .sbp-art::before { transition: none; }
}

/* Side by side rather than stacked when they fall into normal flow. The row
   is the inner wrapper, which is what holds the cards; it takes the rail's
   full width, since the cards are size containers and claim none of their own. */
@media (max-width: 1359px) {
    .article-rail-left .article-rail-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        width: 100%;
    }
    .article-rail-left .side-banner { flex: 1 1 280px; }
}

/* ============ Structure pass: headings out of the chrome ============== */
/*
 * The promo blocks and the index used to be H2s, which put nine of them in the
 * outline before the article's own sections got a look in. They are paragraphs
 * now and carry these classes instead.
 */

/* Two classes: `.side-banner p` would otherwise set its size and colour. */
.side-banner .side-banner-title {
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--parchment);
    margin: 0 0 0.4rem;
}
.side-banner .side-banner-head .side-banner-title { margin: 0; }

.author-box-name {
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
    color: var(--parchment);
}
.author-box-name a { color: var(--parchment); text-decoration: none; }
.author-box-name a:hover { color: var(--l2-gold); }

/* --------------------------- Index panel ------------------------------- */
/*
 * A panel rather than a bare list against the page: it needs enough ground of
 * its own to stay readable over the rail backdrop.
 */
.article-toc {
    background: rgba(12, 10, 7, 0.9);
    border: 1px solid var(--panel-line);
    border-left: 2px solid var(--l2-gold);
    padding: 1rem 1.1rem 1.1rem;
    backdrop-filter: blur(2px);
}

.article-toc-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--l2-gold);
    margin: 0 0 0.75rem;
}

/* Second-level entries indent, so the index mirrors the document hierarchy. */
.article-toc li.toc-level-3 { padding-left: 0.85rem; }
.article-toc li.toc-level-3 a { font-size: 12px; color: var(--text-faint); }
.article-toc li.toc-level-3 a:hover { color: var(--l2-gold); }

/* ------------------------- Cards, relisted ----------------------------- */

.card-grid { list-style: none; margin: 0; padding: 0; }
.card-grid > li { display: flex; }
.card-grid > li > .blog-card { width: 100%; }

.blog-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }

/* The card image is a real <img> now; the wrapper keeps the aspect ratio. */
.blog-card-image { position: relative; aspect-ratio: 40 / 21; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-card-title {
    font-family: var(--font-epic);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    margin: 0;
    color: var(--parchment);
}

/* ========================== Support form =============================== */
/*
 * The inputs used to take their width from the old external stylesheet, which
 * left them narrow and hugging the left edge. Sized and centred here instead,
 * with a measure wide enough to type a real support message into.
 */

.support-page { max-width: 760px; margin: 0 auto; }

.support-form {
    border: 1px solid var(--outline);
    background: var(--surface-raised);
    padding: 2rem clamp(1.25rem, 3vw, 2.25rem) 2.25rem;
}

/* Name and email share a row on anything wider than a phone. */
.support-row { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 620px) {
    .support-row { grid-template-columns: 1fr 1fr; }
}

.support-field { margin-bottom: 1.35rem; }

.support-field label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.45rem;
}

.support-field input,
.support-field textarea {
    width: 100%;
    background: #0a0a0c;
    border: 1px solid var(--outline);
    color: var(--text);
    padding: 0.8rem 0.95rem;
    font-family: inherit;
    font-size: 0.98rem;
    line-height: 1.5;
    transition: border-color 0.2s;
}
.support-field input:focus,
.support-field textarea:focus {
    outline: none;
    border-color: var(--l2-gold);
}
.support-field input::placeholder,
.support-field textarea::placeholder { color: var(--text-faint); }

.support-field textarea { min-height: 190px; resize: vertical; }

.support-note {
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.support-submit {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 12px;
    border: 1px solid var(--l2-gold);
    cursor: pointer;
}
@media (min-width: 620px) {
    .support-submit { width: auto; min-width: 220px; margin: 0 auto; }
}
/* gold-theme.css draws .l2-button-primary inline and compact; this one is a
   block of its own, centred and a size up. Three classes, to outrank it. */
.support-form .l2-button-primary.support-submit {
    display: flex;
    --be-pad-y: 0.85rem;
    --be-pad-x: 2rem;
    font-size: 0.75rem;
}

/* Shared with the comment form: off-screen rather than display:none, which
   some bots treat as a signal to skip the field. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------------------------- Tickets --------------------------------- */
/*
 * The reference travels by email, but people lose emails, so the lookup box
 * sits under the form — quieter than it, because writing a new enquiry is the
 * common case and following an old one is not.
 */

.support-lookup { margin: 1.75rem 0 0; text-align: center; }

.support-lookup label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.6rem;
}

.support-lookup-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.support-lookup-row input {
    background: #0a0a0c;
    border: 1px solid var(--outline);
    color: var(--text);
    padding: 0.6rem 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-width: 230px;
}
.support-lookup-row input:focus { outline: none; border-color: var(--l2-gold); }

.support-lookup-row button {
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--text-dim);
    padding: 0.6rem 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.support-lookup-row button:hover { border-color: var(--l2-gold); color: var(--l2-gold); }

/* The ticket's own page: the enquiry, every reply, and the box to add one. */
.ticket-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    border-bottom: 1px solid var(--outline);
    padding-bottom: 1rem;
    margin-bottom: 1.75rem;
}
.ticket-meta strong { color: var(--l2-gold); font-weight: 500; }
.ticket-meta .ticket-status-answered { color: var(--l2-green); }
.ticket-meta .ticket-status-closed { color: var(--text-faint); }

.ticket-message {
    border: 1px solid var(--outline);
    background: var(--surface-raised);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
}

/* Staff replies carry the gold edge; the visitor's own words stay plain, so a
   long thread can be read by shape before it is read by name. */
.ticket-message.from-staff { border-left: 2px solid var(--l2-gold); }

.ticket-message .who {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.6rem;
}
.ticket-message .body { white-space: pre-line; line-height: 1.7; font-size: 0.97rem; }
