/* ==========================================================================
   Escape Velocity Weekly · Ghost theme · screen.css
   1. Tokens   2. Base   3. Layout   4. Header   5. Controls   6. Mark
   7. Labels and badges   8. Issue list   9. Article   10. Content cards
   11. Subscribe   12. Footer
   ========================================================================== */

/* 1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Light (default) */
    --bg: #F7F8F6;           /* Paper */
    --surface: #EEF2EF;      /* Mist */
    --surface-2: #E3E9E5;    /* tinted badges */
    --ink: #13181E;          /* 16.7:1 on Paper */
    --ink-2: #4A5361;        /* Graphite, 7.3:1 */
    --ink-3: #5D6673;        /* Slate, 5.5:1 */
    --rule: #D5DBD7;         /* hairlines, decorative only */
    --field: #7A848F;        /* control borders, 3.6:1 */
    --accent: #0B7A5E;       /* Ascent, 5.0:1; white text on it 5.3:1 */
    --accent-strong: #075C47;/* links, 7.5:1 */
    --on-accent: #FFFFFF;

    /* Ghost's Design settings can swap fonts via --gh-font-heading / --gh-font-body. */
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --font-heading: var(--gh-font-heading, var(--serif));
    --font-body: var(--gh-font-body, var(--serif));
    --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --measure: 680px;
    --wide: 1120px;
    --gutter: 24px;
    --radius: 8px;
    --radius-l: 16px;

    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #0E1318;           /* Night */
    --surface: #151C23;      /* Hull */
    --surface-2: #1C252E;
    --ink: #E7ECEF;          /* Starlight, 15.7:1 */
    --ink-2: #A9B4BF;        /* Haze, 8.9:1 */
    --ink-3: #8E99A5;        /* Dust, 6.4:1 */
    --rule: #26313B;
    --field: #5F6B77;        /* 3.4:1 */
    --accent: #4CC9A0;       /* 9.0:1 */
    --accent-strong: #6FD9B4;/* 10.9:1 */
    --on-accent: #0E1318;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        --bg: #0E1318;
        --surface: #151C23;
        --surface-2: #1C252E;
        --ink: #E7ECEF;
        --ink-2: #A9B4BF;
        --ink-3: #8E99A5;
        --rule: #26313B;
        --field: #5F6B77;
        --accent: #4CC9A0;
        --accent-strong: #6FD9B4;
        --on-accent: #0E1318;
        color-scheme: dark;
    }
}

/* 2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-optical-sizing: auto;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); font-weight: 600; text-wrap: balance; }
p { margin: 0; }

a {
    color: var(--accent-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--bg);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 16px; color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

/* 3. Layout
   -------------------------------------------------------------------------- */
.site { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
.site-main { flex: 1 0 auto; padding: clamp(36px, 6vw, 80px) var(--gutter) 0; }
.container { max-width: var(--wide); margin: 0 auto; }

/* 4. Header and navigation
   -------------------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--rule); }

.site-header-inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 12px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-right: auto;
    color: var(--ink);
    text-decoration: none;
}
.site-logo:hover { color: var(--ink); }
.site-logo-name {
    font-family: var(--serif); /* the wordmark never changes font */
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
}
.site-logo-tag {
    margin-top: 5px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-list { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }

.site-header-actions { display: flex; align-items: center; gap: 4px; }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.menu-toggle path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

@media (max-width: 719px) {
    .site-header-inner { padding: 10px 8px 10px 16px; }
    .site-logo-name { font-size: 19px; }
    .site-logo-tag { display: none; }
    .site-header-actions { order: 2; }
    .menu-toggle { display: inline-flex; }
    .site-nav {
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 4px 0 8px;
    }
    .site-nav .nav-list { flex-direction: column; }
    .js .site-nav { display: none; }
    .js .site-header.is-open .site-nav { display: flex; }
    .site-nav .nav-link { width: 100%; font-size: 17px; }
}

/* 5. Controls
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.btn:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-nav { margin-left: 8px; padding: 0 16px; }
@media (max-width: 719px) { .btn-nav { margin-left: 0; } }

.btn-quiet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--field);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

.field {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--field);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px; /* 16px stops iOS zooming on focus */
}
.field::placeholder { color: var(--ink-3); }

/* 6. The mark
   -------------------------------------------------------------------------- */
.evw-mark { flex: none; display: inline-block; }
.evw-mark-horizon { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 2.5 4; stroke-linecap: round; }
.evw-mark-horizon.is-solid { stroke-dasharray: none; stroke-width: 2.5; }
.evw-mark-curve { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.evw-mark-ring { fill: var(--bg); }
.evw-mark-node { fill: var(--ink); }
.subscribe .evw-mark-ring { fill: var(--surface); }

/* 7. Labels and evidence badges
   -------------------------------------------------------------------------- */
.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.eyebrow a { color: var(--accent-strong); text-decoration: none; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
}
.badge-human { background: var(--ink); color: var(--bg); }
.badge-model { border: 1px solid var(--ink-3); color: var(--ink); }
.badge-stage { background: var(--surface-2); color: var(--ink); }
.badge-peer { border: 1px solid var(--ink-3); color: var(--ink); }
.badge-preprint { border: 1px dashed var(--ink-2); color: var(--ink); }

/* 8. Issue list (starter homepage, tag and author pages)
   -------------------------------------------------------------------------- */
.page-intro { max-width: var(--measure); }
.page-title {
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.018em;
}
.page-dek {
    margin-top: 16px;
    font-size: clamp(19px, 1.6vw, 21px);
    line-height: 1.5;
    color: var(--ink-2);
}

.post-list { margin-top: 40px; border-top: 1px solid var(--rule); }

.post-card {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 40px;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}
.post-card-meta {
    flex: 0 0 160px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-3);
}
.post-card-body { flex: 999 1 420px; min-width: 0; }
.post-card-title { font-size: 24px; line-height: 1.25; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--accent-strong); }
.post-card-excerpt { margin-top: 8px; max-width: 62ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.post-card-info { margin-top: 10px; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink-3);
}
.pagination a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.error-page { max-width: var(--measure); padding-bottom: 48px; }
.error-page .page-title { margin-top: 16px; }

/* 9. Article (posts and pages)
   -------------------------------------------------------------------------- */
.article { max-width: var(--measure); margin: 0 auto; }

.article-title {
    margin-top: 18px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.018em;
}
.article-dek {
    margin-top: 20px;
    font-size: clamp(19px, 1.6vw, 21px);
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}

.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-family: var(--sans); }
.byline-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-text { display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; }
.byline-name { font-weight: 600; }
.byline-meta { color: var(--ink-3); }

.article-image { margin: 40px 0 0; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-image figcaption,
.gh-content figcaption {
    margin-top: 10px;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-3);
    text-align: left;
}

/* Long-form text */
.gh-content {
    margin-top: 40px;
    font-size: clamp(18px, 1.1rem + 0.25vw, 20px);
    line-height: 1.65;
}
.gh-content > * + * { margin-top: 1.1em; }
.gh-content p, .gh-content li { text-wrap: pretty; }

.gh-content h2 {
    margin-top: 2.4em;
    padding-top: 1.6em;
    border-top: 1px solid var(--rule);
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.22;
    letter-spacing: -0.01em;
}
.gh-content h3 {
    margin-top: 2em;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}
.gh-content h4 { margin-top: 1.8em; font-size: 1.05em; }
.gh-content h2 + *, .gh-content h3 + *, .gh-content h4 + * { margin-top: 0.6em; }
.gh-content h2 + h3 { margin-top: 1.2em; }

.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.4em; }
.gh-content li::marker { color: var(--ink-3); }

.gh-content blockquote:not([class]) {
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: var(--ink);
}
.gh-content blockquote.kg-blockquote-alt {
    margin: 2em 0;
    padding: 0;
    border: 0;
    font-size: 1.25em;
    line-height: 1.45;
    font-style: italic;
    text-align: left;
    color: var(--ink);
}

.gh-content hr {
    height: 1px;
    margin: 2.6em 0;
    border: 0;
    background: var(--rule);
}

.gh-content code {
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: var(--surface);
    font-family: var(--mono);
    font-size: 0.82em;
}
.gh-content pre {
    overflow-x: auto;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.6;
}
.gh-content pre code { padding: 0; background: none; font-size: inherit; }

.gh-content table {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 15px;
}
.gh-content th, .gh-content td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.gh-content th { font-weight: 600; color: var(--ink-3); }

.gh-content sup { line-height: 0; }

.article-footer { margin-top: 64px; }

.article-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}
.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 320px;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}
.article-nav-link.is-next { margin-left: auto; text-align: right; }
.article-nav-link:hover { color: var(--accent-strong); }
.article-nav-label { font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.article-nav-title { font-size: 19px; font-weight: 600; line-height: 1.3; }

/* 10. Ghost content cards (card_assets supplies the rest)
   -------------------------------------------------------------------------- */
.gh-content .kg-card { margin-top: 1.8em; margin-bottom: 0; }
.gh-content .kg-card + * { margin-top: 1.8em; }

.kg-width-wide {
    position: relative;
    width: min(1040px, calc(100vw - 2 * var(--gutter)));
    left: 50%;
    transform: translateX(-50%);
}
.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}
.kg-width-full img { border-radius: 0; }
.kg-image-card img { border-radius: var(--radius); }

/* Callout card: the default home for "Evidence" until the dedicated snippet lands */
.gh-content .kg-callout-card {
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
}
.gh-content .kg-callout-card-grey,
.gh-content .kg-callout-card-white,
.gh-content .kg-callout-card-accent { background: var(--surface); color: var(--ink); }

.gh-content .kg-bookmark-card a.kg-bookmark-container { border-color: var(--rule); border-radius: 12px; color: var(--ink); font-family: var(--sans); }
.gh-content .kg-bookmark-title { font-weight: 600; }
.gh-content .kg-bookmark-description, .gh-content .kg-bookmark-metadata { color: var(--ink-3); }

.gh-content .kg-button-card a.kg-btn,
.gh-content .kg-button-card a.kg-btn-accent {
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--sans);
    font-weight: 600;
}

.gh-content .kg-toggle-card { border-color: var(--rule); background: transparent; font-family: var(--sans); }

/* 11. Subscribe box
   -------------------------------------------------------------------------- */
.subscribe {
    max-width: var(--measure);
    margin: 64px auto 0;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-l);
    background: var(--surface);
    text-align: center;
}
.subscribe-title {
    max-width: 24ch;
    margin: 14px auto 0;
    font-size: clamp(23px, 2.6vw, 28px);
    line-height: 1.25;
}
.subscribe-form { max-width: 480px; margin: 24px auto 0; text-align: left; }
.subscribe-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.subscribe-row { display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe-row .field { flex: 999 1 240px; width: auto; }
.subscribe-row .btn { flex: 1 1 auto; min-height: 48px; }
.subscribe-note {
    margin-top: 14px;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-3);
}

/* Ghost toggles .loading, .success and .error on the form */
.subscribe-loading, .subscribe-message { display: none; }
.subscribe-form.loading .subscribe-default { display: none; }
.subscribe-form.loading .subscribe-loading { display: inline; }
.subscribe-message { margin-top: 12px; font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.subscribe-form.success .subscribe-row { display: none; }
.subscribe-form.success .subscribe-success { display: block; color: var(--ink); font-weight: 600; }
.subscribe-form.error .subscribe-error { display: block; color: var(--ink); }

/* 12. Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--rule); }

.site-footer-inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 48px var(--gutter) 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px 48px;
}
.site-footer-about { flex: 1 1 320px; max-width: 460px; }
.site-logo-small { margin-right: 0; }
.site-logo-small .site-logo-name { font-size: 19px; }
.site-footer-description {
    margin-top: 14px;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
}
.site-footer-nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 2px; }

.site-footer-legal {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 20px var(--gutter) 40px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-3);
}
.site-footer-legal p:first-child { max-width: 72ch; }

/* 13. Homepage
   -------------------------------------------------------------------------- */
.eyebrow-accent { color: var(--accent-strong); }

.home-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px 56px;
}
.home-featured { flex: 999 1 560px; min-width: 0; }
.home-featured-title {
    margin-top: 16px;
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.018em;
}
.home-featured-title a { color: var(--ink); text-decoration: none; }
.home-featured-title a:hover { color: var(--accent-strong); }
.home-featured-dek {
    margin-top: 18px;
    max-width: 60ch;
    font-size: clamp(19px, 1.6vw, 21px);
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}
.home-featured-meta { margin-top: 16px; font-family: var(--sans); font-size: 15px; color: var(--ink-3); }
.home-featured-cta { margin-top: 28px; }
.home-featured-cta path,
.btn-quiet path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Only the issue's "In this issue" block is shown from the post body */
.home-featured-toc .gh-content { margin-top: 0; }
.home-featured-toc .gh-content > :not(.evw-toc) { display: none; }
.home-featured-toc:not(:has(.evw-toc)) { display: none; }
.home-featured-toc .evw-toc { margin-top: 32px; padding: 0; border: 0; }
.home-featured-toc .evw-toc-title { display: none; }
.home-featured-toc .evw-toc ol { margin-top: 0; border-top: 1px solid var(--rule); }
.home-featured-toc .evw-toc a { font-size: 20px; font-weight: 600; }

/* Sign-up card beside the featured issue (stacks under it on phones) */
.subscribe-aside {
    flex: 1 1 300px;
    margin: 0;
    padding: 28px 28px 24px;
    text-align: left;
}
.subscribe-aside .subscribe-title { max-width: none; margin: 16px 0 0; font-size: 25px; }
.subscribe-lede { margin-top: 12px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.subscribe-aside .subscribe-form { margin: 20px 0 0; }
.subscribe-aside .subscribe-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    display: block;
    margin-bottom: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
}
.subscribe-aside .subscribe-row { flex-direction: column; }
.subscribe-aside .subscribe-row .field,
.subscribe-aside .subscribe-row .btn { flex: none; width: 100%; }

.trajectory { display: block; margin-top: 80px; overflow: visible; }
.trajectory path { fill: none; stroke: var(--field); stroke-width: 1; }

.home-recent { margin-top: 28px; }
.home-recent-title { font-size: 28px; letter-spacing: -0.01em; }
.home-recent .post-list { margin-top: 20px; }
.home-empty { max-width: var(--measure); }

/* 14. "In this issue" block (HTML card snippet: nav.evw-toc)
   -------------------------------------------------------------------------- */
.evw-toc {
    padding: 20px 0 6px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
    font-family: var(--sans);
}
.evw-toc-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.evw-toc ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: pick; }
.evw-toc li {
    counter-increment: pick;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px 0;
}
.home-featured-toc .evw-toc li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.evw-toc li::before {
    content: counter(pick, decimal-leading-zero);
    grid-row: span 2;
    padding-top: 4px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink-3);
}
.evw-toc a {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    text-decoration: none;
}
.evw-toc a:hover { color: var(--accent-strong); }
.evw-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* 15. Issue picks
   Authoring in Ghost, per pick:
   H2 headline > summary paragraphs > Evidence HTML snippet >
   H3 "Why it matters for LEV" > paragraph >
   alt quote (press the quote button twice) starting with bold "My take." > Source paragraph.
   Snippets carry inline styles for email; the !important rules below restyle them on the web.
   -------------------------------------------------------------------------- */
.post-template .gh-content { counter-reset: evw-pick; }
.post-template .gh-content > h2 { counter-increment: evw-pick; scroll-margin-top: 24px; }
.post-template .gh-content > h2::before {
    content: counter(evw-pick, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--accent-strong);
}

/* "Why it matters for LEV" and other H3 labels get the trajectory glyph */
.post-template .gh-content h3 { display: flex; align-items: center; gap: 10px; }
.post-template .gh-content h3::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M4 24H44' stroke='%23000' stroke-width='3' stroke-linecap='round' opacity='.45'/%3E%3Cpath d='M4 42Q26 42 40 6' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M4 24H44' stroke='%23000' stroke-width='3' stroke-linecap='round' opacity='.45'/%3E%3Cpath d='M4 42Q26 42 40 6' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* My take: Ghost's alternative quote style */
.post-template .gh-content blockquote.kg-blockquote-alt {
    position: relative;
    min-height: 40px;
    margin: 2em 0 0;
    padding: 0 0 0 54px;
    font-size: 1em;
    line-height: 1.6;
    font-style: italic;
    text-align: left;
    color: var(--ink);
}
.post-template .gh-content blockquote.kg-blockquote-alt::before {
    content: var(--evw-initial, "D");
    position: absolute;
    left: 0;
    top: 2px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--serif);
    font-size: 19px;
    font-style: normal;
    font-weight: 600;
}
.post-template .gh-content blockquote.kg-blockquote-alt > strong:first-child,
.post-template .gh-content blockquote.kg-blockquote-alt > b:first-child {
    display: block;
    margin-bottom: 4px;
    font-family: var(--sans);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Evidence box (HTML snippet: div.evw-evidence) */
.gh-content .evw-evidence {
    margin-top: 1.6em !important;
    padding: 20px 22px !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    font-family: var(--sans) !important;
}
.gh-content .evw-evidence-title {
    margin: 0 0 10px !important;
    font-family: var(--sans) !important;
    font-size: 12px !important;
    color: var(--ink-3) !important;
}
.gh-content .evw-evidence .evw-badges { margin: 0 !important; }
.gh-content .evw-evidence-data { display: table; width: 100%; margin: 10px 0 0 !important; font-size: inherit; }
.gh-content .evw-evidence-data td {
    width: 50%;
    padding: 8px 16px 8px 0 !important;
    border: 0 !important;
    vertical-align: top;
}
.gh-content .evw-evidence-data .k {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: var(--ink-3) !important;
}
.gh-content .evw-evidence-data .v {
    font-family: var(--mono) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: var(--ink) !important;
}
.gh-content .evw-caveat {
    margin: 14px 0 0 !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--rule) !important;
    font-family: var(--sans) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: var(--ink-2) !important;
}
.gh-content .evw-caveat strong { color: var(--ink) !important; }
@media (max-width: 479px) {
    .gh-content .evw-evidence-data td { display: block; width: 100%; padding: 6px 0 !important; }
}

/* Badges inside snippets: override the email-safe inline styles */
.gh-content .badge {
    display: inline-flex !important;
    align-items: center;
    height: 24px;
    margin: 0 4px 6px 0 !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-family: var(--sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    line-height: 1 !important;
    vertical-align: middle;
}
.gh-content .badge-human { background: var(--ink) !important; border: 1px solid var(--ink) !important; color: var(--bg) !important; }
.gh-content .badge-model,
.gh-content .badge-peer { background: transparent !important; border: 1px solid var(--ink-3) !important; color: var(--ink) !important; }
.gh-content .badge-stage { background: var(--surface-2) !important; border: 1px solid var(--surface-2) !important; color: var(--ink) !important; }
.gh-content .badge-preprint { background: transparent !important; border: 1px dashed var(--ink-2) !important; color: var(--ink) !important; }

/* "In this issue" snippet: override its email-safe inline styles */
.gh-content .evw-toc { margin-top: 2em !important; padding: 20px 0 0 !important; border-top: 1px solid var(--ink) !important; border-bottom: 0 !important; }
.gh-content .evw-toc-title { margin: 0 !important; font-family: var(--sans) !important; color: var(--ink) !important; }
.gh-content .evw-toc ol { margin: 10px 0 0 !important; padding: 0 !important; }
.gh-content .evw-toc li { margin: 0 !important; }
.gh-content .evw-toc li + li { margin-top: 0 !important; }
.gh-content .evw-toc a { color: var(--ink) !important; font-family: var(--font-body) !important; text-decoration: none !important; }
.gh-content .evw-toc a:hover { color: var(--accent-strong) !important; }
.gh-content .evw-toc .evw-badges { display: flex; flex-wrap: wrap; margin-top: 8px; }
.home-featured-toc .gh-content .evw-toc { margin-top: 32px !important; padding: 0 !important; border: 0 !important; }
.home-featured-toc .gh-content .evw-toc ol { margin-top: 0 !important; }
