/* ==========================================================================
   themes/vice/vice.css — "Vice": Miami neon at sunset
   --------------------------------------------------------------------------
   A TEMPORARY skin for GTA VI week. It is laid over the Project Manual and
   never edits it: this file loads after manual.css only while the theme is
   switched on (SITE_THEME=vice, or a ?theme=vice preview — see THEMES.md),
   and every rule here is scoped to html[data-theme="vice"]. Switch it off and
   the Manual renders exactly as it did before this file existed.

   Type follows GTA VI's two-part system with web-licensable stand-ins:
     - Wordmark (the "grand theft auto" logotype in Pricedown): Passion One
       900 for the cover and closing headlines (live text). A licensed
       Pricedown webfont dropped into fonts/ takes over the headlines
       automatically (see fonts/README.md). Never self-host desktop-licensed
       font files.
     - The header logo is no font at all: wordmark.svg is a custom-built
       lockup (scripts/make_vice_logo.py) of the traced puzzle mark,
       hand-drawn "LLoyd solves" letters and a spaced-out "MIAMI".
     - Website UI (Rockstar's proprietary GTA Art Deco, not licensable):
       Josefin Sans, upper-case and tracked wide, for section heads, nav,
       buttons and labels.
     - Body: Inter, a neutral grotesque, as the official site pairs it.
   No Rockstar logos, the "VI" emblem, or their names go on this site.

   Contents
     1. Tokens            8. Drawings (SVG recolour)
     2. Base              9. Lists, tables, schedules
     3. Type             10. Forms
     4. Header           11. Footer
     5. Covers (heroes)  12. Consent banner + dialogs
     6. Fields           13. Photos
     7. Actions + links  14. Motion
                         15. Leftovers from the retired sheets
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   The Manual is built on --m-* (and the retired sheets on --bp-*), so
   re-striking the tokens repaints most of the site at once. Light "paper"
   fields become dusk; ink becomes the glow of a neon sign.
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual {
    --v-night: #12041f;
    --v-dusk: #1a0830;
    --v-haze: #26103f;
    --v-plum: #3a1260;
    --v-pink: #ff2e93;
    --v-pink-ink: #ff6fb5;     /* pink that clears 4.5:1 on dusk for body-size text */
    --v-orange: #ff8a3d;
    --v-sun: #ffd36e;
    --v-aqua: #2ef2e0;
    --v-text: #fff1f8;
    --v-muted: #dcc4ea;

    --v-sunset: linear-gradient(90deg, #ff2e93 0%, #ff5c6a 50%, #ff9a3d 100%);
    --v-sunset-text: linear-gradient(180deg, #ffe08a 0%, #ffab4c 32%, #ff4f8e 68%, #ff2ec4 100%);
    --v-sky: linear-gradient(180deg, #12041f 0%, #240a42 28%, #3c0f64 56%, #5e1777 76%, #a3287f 89%, #e8466f 96%, #ff7a52 100%);
    --v-night-band: linear-gradient(160deg, #12041f 0%, #2a0b4a 55%, #4a1270 100%);
    --v-glow-pink: 0 0 .5rem rgba(255, 46, 147, .75), 0 0 1.6rem rgba(255, 46, 147, .45);
    --v-glow-aqua: 0 0 .45rem rgba(46, 242, 224, .7), 0 0 1.4rem rgba(46, 242, 224, .35);

    /* 'Vice Wordmark' is Vice Display, the theme's own drawn face, declared
       by theme_head.html while fonts/vice-display.woff2 ships. Passion One
       stands in until it loads, and for any character it lacks. */
    --v-wordmark: 'Vice Wordmark', 'Passion One', 'Arial Black', Impact, sans-serif;
    --v-deco: 'Josefin Sans', Futura, 'Century Gothic', 'Avenir Next', sans-serif;
    --v-deco-track: .07em;
    --v-radius: 999px;

    /* The Manual's palette, re-struck */
    --m-deep: var(--v-night);
    --m-blue: var(--v-pink-ink);
    --m-cyan: var(--v-aqua);
    --m-ink: var(--v-text);
    --m-slate: var(--v-muted);
    --m-pale: #e9d2f4;
    --m-chrome: #cdb0e0;
    --m-vellum: var(--v-haze);
    --m-paper: var(--v-dusk);

    --m-stamp-open: #ffc85a;
    --m-stamp-set: #43f0a8;
    --m-stamp-out: #ff6b7d;

    --m-rule: rgba(255, 111, 181, .40);
    --m-rule-soft: rgba(255, 111, 181, .20);
    --m-rule-deep: rgba(255, 255, 255, .26);
    --m-rule-deep-soft: rgba(255, 255, 255, .13);

    --m-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --m-mono: var(--v-deco);

    /* The retired sheets' tokens, re-struck the same way */
    --bp-primary: var(--v-pink-ink);
    --bp-primary-dark: var(--v-night);
    --bp-accent: var(--v-aqua);
    --bp-text: var(--v-text);
    --bp-muted: var(--v-muted);
    --bp-line: rgba(255, 111, 181, .40);
    --bp-bg-deep: var(--v-night);
    --bp-bg-soft: var(--v-haze);
    --bp-display: var(--v-deco);
    --bp-font: var(--m-sans);
    --bp-sans: var(--m-sans);
    --bp-status-decided: #43f0a8;
    --bp-status-decided-ink: #43f0a8;
    --bp-status-open: #ffc85a;
    --bp-status-disqualified: #ff6b7d;

    /* Legacy page variables some landing sheets still read */
    --primary: var(--v-pink-ink);
    --accent-blue: var(--v-aqua);
    --accent-dark: var(--v-night);
    --text: var(--v-text);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
html[data-theme="vice"] {
    background: #12041f;
    color-scheme: dark;
}

html[data-theme="vice"] .manual {
    background: var(--v-dusk);
    color: var(--v-text);
    font-family: var(--m-sans);
    font-variation-settings: normal;
    font-size: 1.03rem;
    /* Inter's tabular set widens the hyphen ("future - state"); keep tabular
       figures only where columns of numbers have to line up. */
    font-variant-numeric: normal;
    caret-color: var(--v-pink);
    accent-color: var(--v-pink);
    scrollbar-color: var(--v-pink) var(--v-night);
}

html[data-theme="vice"] .manual :is(table, .mn-keyed, .mn-schedule, .mn-ledger, .mn-measure, .mn-register) {
    font-variant-numeric: tabular-nums;
}

html[data-theme="vice"] .manual ::selection {
    background: var(--v-pink);
    color: var(--v-night);
}

html[data-theme="vice"] .manual ::-webkit-scrollbar-track {
    background: var(--v-night);
}

html[data-theme="vice"] .manual ::-webkit-scrollbar-thumb {
    background: var(--v-sunset);
    border-color: var(--v-night);
    border-radius: 999px;
}

html[data-theme="vice"] .manual :focus-visible {
    outline-color: var(--v-aqua);
}

/* --------------------------------------------------------------------------
   3. TYPE
   Wordmark: the cover headline, set like the franchise logotype and filled
   with the sunset the way the VI emblem is. Section heads and every piece
   of UI: Art Deco caps, tracked wide. Body: a neutral grotesque.
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual :is(h1, .mn-display) {
    font-family: var(--v-wordmark);
    font-weight: 900;
    font-synthesis: none;
    text-transform: none;
    letter-spacing: -.005em;
    line-height: .93;
    background: var(--v-sunset-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--v-sun);
    /* a hard ink underlayer, then the neon bleed */
    filter: drop-shadow(0 .055em 0 #0b0614) drop-shadow(0 0 .45em rgba(255, 46, 147, .45));
    font-size: clamp(3.1rem, 7.4vw, 6.8rem);
    padding-bottom: .08em;
}

html[data-theme="vice"] .manual .mn-display--long {
    font-size: clamp(2.7rem, 5.4vw, 4.6rem);
}

html[data-theme="vice"] .manual :is(h2, .mn-h2, .bp-h2, .mn-fit__head, .mn-tier__name) {
    font-family: var(--v-deco);
    font-weight: 700;
    font-synthesis: none;
    text-transform: uppercase;
    letter-spacing: var(--v-deco-track);
    line-height: 1.06;
}

/* Section heads: off-white, with only a breath of pink bleed behind them. */
html[data-theme="vice"] .manual :is(h2, .mn-h2, .bp-h2) {
    color: var(--v-text);
    text-shadow: 0 0 .5em rgba(255, 46, 147, .55), 0 0 1.2em rgba(255, 46, 147, .25);
}

html[data-theme="vice"] .manual :is(.mn-h2, .bp-h2) {
    font-size: clamp(1.75rem, 3.1vw, 2.65rem);
}

/* The sign-off every page closes on is the other big line on the sheet, so it
   is set like the cover headline: wordmark face, sunset fill. */
html[data-theme="vice"] .manual :is(.mn-close, main > section.mn-section--deep:last-of-type) :is(h2, .mn-h2) {
    font-family: var(--v-wordmark);
    font-weight: 900;
    text-transform: none;
    letter-spacing: -.005em;
    line-height: .95;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    max-width: 18ch;
    background: var(--v-sunset-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--v-sun);
    text-shadow: none;
    filter: drop-shadow(0 .055em 0 #0b0614) drop-shadow(0 0 .45em rgba(255, 46, 147, .45));
    padding-bottom: .06em;
}

html[data-theme="vice"] .manual :is(.mn-fit__head, .mn-tier__name) {
    color: var(--v-text);
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    text-shadow: 0 0 .5em rgba(46, 242, 224, .45);
}

html[data-theme="vice"] .manual :is(h3, h4):not([class*="mono"]) {
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Strong words in body copy glow a little pink. */
html[data-theme="vice"] .manual .mn-para :is(strong, b),
html[data-theme="vice"] .manual :is(p, li) > strong {
    color: #fff;
    text-shadow: 0 0 .6em rgba(255, 46, 147, .55);
}

/* Identifiers, coordinates and stamps: the Manual set them in mono; here
   they are deco caps (via --m-mono), struck in aqua. */
html[data-theme="vice"] .manual :is(.mn-mark, .mn-tag, .mn-coord, .mn-stamp, .mn-sheethead__id, .mn-keyed__no, .mn-keyed__head, .mn-drawing__title) {
    color: var(--v-aqua);
    font-weight: 600;
}

/* The labels a sign would carry: deco caps in hot pink. */
html[data-theme="vice"] .manual :is(.mn-exhibit__id, .mn-signature__k, .mn-brand__sub, .mn-cert__k) {
    font-family: var(--v-deco);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--v-pink-ink);
    text-shadow: 0 0 .7em rgba(255, 46, 147, .6);
    font-size: .74rem;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   4. HEADER
   A night bar with a pink neon tube along its foot.
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual .mn-head {
    background: rgba(18, 4, 31, .94);
    border-bottom: 0;
    box-shadow: 0 2px 0 var(--v-pink), 0 0 1.4rem rgba(255, 46, 147, .55);
    position: sticky;
    top: 0;
    z-index: 50;
}

@supports (backdrop-filter: blur(1px)) {
    html[data-theme="vice"] .manual .mn-head {
        background: rgba(18, 4, 31, .82);
        backdrop-filter: blur(10px) saturate(1.3);
    }
}

/* The brand is one custom-built lockup, wordmark.svg (scripts/make_vice_logo.py):
   the traced puzzle mark, "LLoyd solves" in hand-drawn letters, and a
   spaced-out "MIAMI", in the manner of a franchise logo. No font is involved.
   The words stay in the page for screen readers and search; only their paint
   is swapped for the art. --v-logo-ratio is the SVG's aspect ratio as the
   script prints it (a test checks it). */
html[data-theme="vice"] .manual {
    --v-logo-ratio: 4.0240;
    --v-logo-h: 3.3rem;
}

html[data-theme="vice"] .manual :is(.mn-brand__name, .rab-brand > span) {
    display: block;
    flex: none;
    height: var(--v-logo-h, 3rem);
    width: calc(var(--v-logo-h, 3rem) * var(--v-logo-ratio));
    background: url("wordmark.svg") left center / contain no-repeat;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    text-shadow: none;
    overflow: hidden;
    white-space: nowrap;
    filter: drop-shadow(0 0 .4rem rgba(80, 200, 255, .55));
    transition: filter .2s;
}

html[data-theme="vice"] .manual :is(.mn-brand, .rab-brand):hover :is(.mn-brand__name, .rab-brand > span) {
    filter: drop-shadow(0 0 .65rem rgba(80, 220, 255, .9));
}

html[data-theme="vice"] .manual .mn-brand {
    padding: .5rem 0;
}

/* Between the phone bar and a full desktop the routes and the action share
   the bar with a wider logo: step everything down a notch, never wrap. */
@media (min-width: 1081px) and (max-width: 1320px) {
    html[data-theme="vice"] .manual {
        --v-logo-h: 2.75rem;
    }

    html[data-theme="vice"] .manual .mn-nav__link {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    html[data-theme="vice"] .manual .mn-nav__label {
        letter-spacing: .08em;
    }

    html[data-theme="vice"] .manual .mn-nav__cta {
        white-space: nowrap;
        padding: 0 1.1rem;
        letter-spacing: .08em !important;
    }
}

/* "MIAMI" in the logo is the descriptor now. */
html[data-theme="vice"] .manual .mn-brand__sub {
    display: none;
}

/* The lockup carries its own puzzle mark. */
html[data-theme="vice"] .manual :is(.mn-brand__mark, .rab-brand img) {
    display: none;
}

html[data-theme="vice"] .manual .mn-nav__link {
    border-left-color: rgba(255, 255, 255, .08);
    transition: color .18s, background-color .18s, text-shadow .18s;
}

html[data-theme="vice"] .manual .mn-nav__label {
    font-family: var(--v-deco);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .84rem;
}

html[data-theme="vice"] .manual .mn-nav__link:hover {
    background: rgba(255, 46, 147, .12);
    color: #fff;
    text-shadow: var(--v-glow-pink);
}

html[data-theme="vice"] .manual .mn-nav__link.is-active {
    background: rgba(46, 242, 224, .1);
    border-bottom-color: var(--v-aqua);
    box-shadow: inset 0 -3px 0 var(--v-aqua), 0 6px 1rem -0.5rem rgba(46, 242, 224, .6);
    color: var(--v-aqua);
}

html[data-theme="vice"] .manual .mn-head__toggle {
    border-color: var(--v-pink);
    border-radius: var(--v-radius);
    box-shadow: var(--v-glow-pink);
    color: #fff;
}

@media (max-width: 1080px) {
    html[data-theme="vice"] .manual .mn-nav {
        background: var(--v-night-band);
        border-bottom: 3px solid var(--v-pink);
        box-shadow: 0 1rem 2rem -1rem rgba(255, 46, 147, .6);
    }
}

/* --------------------------------------------------------------------------
   5. COVERS — every hero is a Miami sunset
   Sky gradient, a striped sun sinking behind the exhibit, palms framing the
   corners and the skyline on the horizon. The art is all background, so the
   content and its reading order are untouched.
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual :is(.mn-cover, .bp-page-hero, .blueprint-hero, .lp-hero, .hero-section, .landing-hero, .hero-gift) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse 46% 38% at 76% 100%, rgba(255, 150, 80, .55), transparent 70%),
        var(--v-sky);
    background-color: var(--v-night);
    padding-bottom: calc(var(--s7) + 6.5rem);
    color: #fff;
}

/* The sun: a disc setting behind the skyline. Only its dome clears the
   horizon, and the dome sits in the cover's foot, below the copy, so it never
   puts text on a bright ground. Banded the way a heat-haze sun is. */
html[data-theme="vice"] .manual :is(.mn-cover, .bp-page-hero, .blueprint-hero, .lp-hero, .hero-section, .landing-hero, .hero-gift)::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: auto;
    left: auto;
    right: 14%;
    bottom: 0;
    width: min(30rem, 40vw);
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe27a 0%, #ffbf4d 12%, #ff7a52 24%, #ff3d8a 36%);
    filter: none;
    opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, #000 0 17%, transparent 17% 19%, #000 19% 23%, transparent 23% 25.5%, #000 25.5% 29%, transparent 29% 32%, #000 32% 34%, transparent 34%);
    mask-image: linear-gradient(180deg, #000 0 17%, transparent 17% 19%, #000 19% 23%, transparent 23% 25.5%, #000 25.5% 29%, transparent 29% 32%, #000 32% 34%, transparent 34%);
    transform: translateY(64%);
    pointer-events: none;
}

/* In front of the sun: the skyline on the horizon, palms framing the corners,
   and a neon line where the sea meets the sky. Negative z-index inside an
   isolated cover paints above its sky but below every piece of content. */
html[data-theme="vice"] .manual :is(.mn-cover, .bp-page-hero, .blueprint-hero, .lp-hero, .hero-section, .landing-hero, .hero-gift)::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    width: auto;
    height: auto;
    filter: none;
    background:
        linear-gradient(90deg, #ff2e93, #ff9a3d) left bottom / 100% 3px no-repeat,
        url("skyline.svg") center bottom 3px / auto 5.5rem repeat-x,
        url("palms-left.svg") left -3rem bottom / auto min(62%, 32rem) no-repeat,
        url("palms-right.svg") right -2.5rem bottom / auto min(86%, 44rem) no-repeat;
    pointer-events: none;
}

html[data-theme="vice"] .manual :is(.mn-cover__sub, .bp-page-hero__sub, .blueprint-hero__sub) {
    color: #fbe6ff;
    text-shadow: 0 1px 12px rgba(18, 4, 31, .9);
}

html[data-theme="vice"] .manual .hero-gift .floating-icons {
    display: none;
}

/* The gift sheet nests its form hero inside the scene; the inner panel lets
   the sky through. */
html[data-theme="vice"] .manual .hero-gift .hero-with-form {
    background: transparent;
}

/* Links and cites that sit on the sky are struck in sunlight, not pink, so
   they hold their contrast wherever the gradient warms up behind them. */
html[data-theme="vice"] .manual :is(.mn-cover, .bp-page-hero, .blueprint-hero, .lp-hero, .hero-section, .landing-hero, .hero-gift) :is(a:not([class]), .mn-cite__label) {
    color: #ffe08a;
    border-bottom-color: #ffe08a;
    text-decoration-color: #ffe08a;
    text-shadow: 0 0 .7em rgba(18, 4, 31, .9);
}

html[data-theme="vice"] .manual :is(.mn-cover, .bp-page-hero, .blueprint-hero, .lp-hero, .hero-section, .landing-hero, .hero-gift) :is(p, figcaption, li, em) {
    text-shadow: 0 1px 10px rgba(18, 4, 31, .85);
}

html[data-theme="vice"] .manual .mn-cover__cut {
    border-top: 4px solid transparent;
    border-image: var(--v-sunset) 1;
    box-shadow: 0 0 1rem rgba(255, 46, 147, .7);
    width: 10rem;
}

html[data-theme="vice"] .manual .mn-sheethead {
    border-bottom-color: rgba(46, 242, 224, .35);
}

/* The exhibit (founder film) hangs in a neon frame. */
html[data-theme="vice"] .manual .mn-exhibit__frame {
    border: 2px solid var(--v-aqua);
    border-radius: .9rem;
    box-shadow: var(--v-glow-aqua), 0 1.5rem 3rem -1rem rgba(0, 0, 0, .6);
}

html[data-theme="vice"] .manual .mn-exhibit__head {
    border-bottom-color: transparent;
}

html[data-theme="vice"] .manual .mn-exhibit__still {
    filter: saturate(1.1) hue-rotate(-12deg);
}

html[data-theme="vice"] .manual .mn-exhibit__frame::after {
    /* a sunset wash over the still, so the blue photo sits in the scene */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 46, 147, .22), rgba(255, 138, 61, .18));
    mix-blend-mode: color;
    pointer-events: none;
}

html[data-theme="vice"] .manual .mn-exhibit__play {
    background: var(--v-sunset);
    color: var(--v-night);
    border: 0;
    border-radius: var(--v-radius);
    box-shadow: var(--v-glow-pink);
    z-index: 2;
    font-weight: 800;
}

/* The preparer's signature sits on a night-glass plate so it reads over the
   sun wherever the sun happens to set behind it. */
html[data-theme="vice"] .manual .mn-signature {
    border: 1px solid rgba(255, 111, 181, .45);
    border-radius: 1rem;
    padding: .9rem 1.1rem;
    background: rgba(18, 4, 31, .78);
    box-shadow: 0 0 1.4rem -0.2rem rgba(255, 46, 147, .5);
    align-self: flex-start;
}

@supports (backdrop-filter: blur(1px)) {
    html[data-theme="vice"] .manual .mn-signature {
        background: rgba(18, 4, 31, .62);
        backdrop-filter: blur(8px);
    }
}

/* --------------------------------------------------------------------------
   6. FIELDS
   Light sections become dusk; deep bands become night with a neon tube on top.
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual :is(.mn-section--deep, .bp-section--deep, .blueprint-cta-band, .cta-section, .content-section.bg-gradient, .mn-exec) {
    background: var(--v-night-band);
    color: #fff;
    position: relative;
    box-shadow: inset 0 3px 0 var(--v-pink), inset 0 1.5rem 2rem -1.5rem rgba(255, 46, 147, .55);
}

/* Alternate light fields get the haze, so long pages still have rhythm. */
html[data-theme="vice"] .manual .mn-section:not(.mn-section--deep):nth-of-type(even) {
    background-color: var(--v-haze);
}

/* The closing band before the footer gets a palm at its edge. */
html[data-theme="vice"] .manual :is(.mn-exec, .blueprint-cta-band, main > section.mn-section--deep:last-of-type) {
    background-image: url("palms-right.svg"), var(--v-night-band);
    background-repeat: no-repeat, no-repeat;
    background-position: right -4rem bottom, center;
    background-size: auto 92%, cover;
}

/* Pale washes (the old vellum strips) become haze with an aqua edge. */
html[data-theme="vice"] .manual :is(.mn-scope, .bp-section--soft, .bg-light):not(.hero-gift) {
    background: var(--v-haze);
}

/* --------------------------------------------------------------------------
   7. ACTIONS + LINKS
   Every primary action is a sunset pill with a neon glow.
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual :is(.mn-stampbtn, .mn-nav__cta, .mn-head__cta, .mn-download, .bp-cta, .btn-primary, .blueprint-hero__primary, .blueprint-cta-band__primary, .crm-form button[type="submit"], button[type="submit"]:not(.bp-film-dialog__close), .lc-btn--primary) {
    background: var(--v-sunset) !important;
    background-size: 160% 100% !important;
    background-position: 0 0 !important;
    color: var(--v-night) !important;
    border: 0 !important;
    border-radius: var(--v-radius) !important;
    box-shadow: 0 0 .8rem rgba(255, 46, 147, .65), 0 .5rem 1.5rem -.5rem rgba(255, 46, 147, .7) !important;
    font-family: var(--v-deco) !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
    text-shadow: none !important;
    transition: background-position .35s ease, box-shadow .25s ease, transform .2s ease !important;
}

html[data-theme="vice"] .manual :is(.mn-stampbtn, .mn-nav__cta, .mn-head__cta, .mn-download, .bp-cta, .btn-primary, .blueprint-hero__primary, .blueprint-cta-band__primary, .crm-form button[type="submit"], button[type="submit"]:not(.bp-film-dialog__close), .lc-btn--primary):hover {
    background-position: 100% 0 !important;
    box-shadow: 0 0 1.2rem rgba(255, 46, 147, .9), 0 0 2.6rem rgba(255, 138, 61, .55) !important;
    transform: translateY(-1px);
    color: var(--v-night) !important;
}

/* The stamp's inner rule would read as a box inside a pill; retire it. */
html[data-theme="vice"] .manual .mn-stampbtn::before {
    display: none;
}

html[data-theme="vice"] .manual .mn-nav__cta {
    padding: 0 1.5rem;
}

/* Secondary actions: an aqua neon outline. */
html[data-theme="vice"] .manual :is(.btn-secondary, .bp-cta--ghost, .bp-cta--secondary, .lc-btn:not(.lc-btn--primary)) {
    background: transparent !important;
    color: var(--v-aqua) !important;
    border: 2px solid var(--v-aqua) !important;
    border-radius: var(--v-radius) !important;
    box-shadow: var(--v-glow-aqua) !important;
}

/* Links: pink, with an aqua hover. */
html[data-theme="vice"] .manual main :is(p, li, td, dd, figcaption) a:not([class]) {
    color: var(--v-pink-ink);
    text-decoration-color: rgba(255, 111, 181, .6);
}

/* Long URLs and emails break rather than push a phone sideways. */
html[data-theme="vice"] .manual main :is(p, li, td, dd) a {
    overflow-wrap: anywhere;
}

html[data-theme="vice"] .manual a:not([class]):hover {
    color: var(--v-aqua);
    text-shadow: var(--v-glow-aqua);
}

html[data-theme="vice"] .manual .mn-cite__label {
    color: var(--v-aqua);
    border-bottom-color: var(--v-aqua);
    text-shadow: 0 0 .6em rgba(46, 242, 224, .45);
}

html[data-theme="vice"] .manual .mn-cite:hover .mn-cite__label {
    color: var(--v-sun);
    border-bottom-color: var(--v-sun);
}

/* --------------------------------------------------------------------------
   8. DRAWINGS — the inline SVG plates carry their inks as attributes; CSS
   outranks presentation attributes, so they are re-inked here.
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual .mn-drawing {
    background: var(--v-night);
    border: 1px solid rgba(255, 111, 181, .45);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 2rem -0.5rem rgba(255, 46, 147, .45);
}

html[data-theme="vice"] .manual .mn-drawing__bar {
    background: rgba(255, 46, 147, .08);
    border-bottom-color: rgba(255, 111, 181, .35);
}

html[data-theme="vice"] .manual svg [stroke="#0871a6"] { stroke: var(--v-pink-ink); }
html[data-theme="vice"] .manual svg [fill="#0871a6"] { fill: var(--v-pink-ink); }
html[data-theme="vice"] .manual svg [stroke="#053b5b"] { stroke: var(--v-aqua); }
html[data-theme="vice"] .manual svg [fill="#053b5b"] { fill: var(--v-plum); }
html[data-theme="vice"] .manual svg [stroke="#0f1e2e"] { stroke: var(--v-aqua); }
html[data-theme="vice"] .manual svg [fill="#0f1e2e"] { fill: var(--v-text); }
html[data-theme="vice"] .manual svg [fill="#4a5c6b"],
html[data-theme="vice"] .manual svg [fill="#5b6b7a"] { fill: var(--v-muted); }
html[data-theme="vice"] .manual svg :is([fill="#ffffff"], [fill="#fff"]) { fill: var(--v-night); }
html[data-theme="vice"] .manual svg :is([stroke="#ffffff"], [stroke="#fff"]) { stroke: var(--v-night); }
html[data-theme="vice"] .manual svg [fill="#e8f2f8"] { fill: var(--v-haze); }

/* The future-state model glows aqua; the ghosts of the current state glow pink. */
html[data-theme="vice"] .manual .mn-lyr-future { filter: drop-shadow(0 0 4px rgba(46, 242, 224, .55)); }
html[data-theme="vice"] .manual .mn-lyr-current { filter: drop-shadow(0 0 3px rgba(255, 46, 147, .5)); }

/* The leader line down the rail becomes a neon tube. */
html[data-theme="vice"] .manual .mn-leader__path {
    stroke: var(--v-pink);
    stroke-width: 2.5;
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 46, 147, .9));
}

/* --------------------------------------------------------------------------
   9. LISTS, TABLES, SCHEDULES
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual .mn-schedule {
    border-top: 3px solid transparent;
    border-image: var(--v-sunset) 1;
}

html[data-theme="vice"] .manual :is(.mn-keyed__row, .mn-schedule li, .mn-product, .mn-ledger tr) {
    transition: background-color .2s, box-shadow .2s;
}

html[data-theme="vice"] .manual :is(.mn-keyed__row, .mn-schedule li):hover {
    background: rgba(255, 46, 147, .08);
    box-shadow: inset 3px 0 0 var(--v-pink);
}

html[data-theme="vice"] .manual :is(.mn-keyed__name, .mn-schedule__name) {
    color: #fff;
}

html[data-theme="vice"] .manual :is(.mn-stamp, [class*="-badge"]:not([class*="__"])) {
    border-radius: var(--v-radius);
    box-shadow: 0 0 .6rem currentColor;
}

/* Client and partner logos were drawn for white paper: hang each one on a
   lit white sign so it reads on the night. */
html[data-theme="vice"] .manual :is(.mn-ref__logo, .mn-product__logo, .partner-logo, .client-logo, [class*="logo"] > img) {
    width: auto;
    max-width: 9.5rem;
    height: 3.4rem;
    object-fit: contain;
    object-position: center;
    background: #fff;
    padding: .3rem;
    border-radius: .55rem;
    box-shadow: 0 0 0 2px rgba(255, 111, 181, .7), 0 0 1rem rgba(255, 46, 147, .45);
    filter: none;
    opacity: 1;
}

html[data-theme="vice"] .manual table {
    color: var(--v-text);
}

html[data-theme="vice"] .manual :is(th, thead td) {
    color: var(--v-aqua);
}

/* --------------------------------------------------------------------------
   10. FORMS
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]), textarea, select) {
    background-color: rgba(18, 4, 31, .92) !important;
    color: var(--v-text) !important;
    border: 1.5px solid rgba(255, 111, 181, .55) !important;
    border-radius: .6rem !important;
}

html[data-theme="vice"] .manual :is(input, textarea, select)::placeholder {
    color: #b79ccc;
    opacity: 1;
}

html[data-theme="vice"] .manual :is(input, textarea, select):focus {
    border-color: var(--v-aqua) !important;
    box-shadow: var(--v-glow-aqua) !important;
    outline: none;
}

html[data-theme="vice"] .manual select option {
    background: var(--v-dusk);
    color: var(--v-text);
}

html[data-theme="vice"] .manual :is(label, legend) {
    color: var(--v-text);
}

/* Submit results arrive after the page settles; strike them in neon too. */
html[data-theme="vice"] .manual .form-status--success {
    color: #43f0a8;
    background: rgba(67, 240, 168, .1);
    border-color: rgba(67, 240, 168, .5);
}

html[data-theme="vice"] .manual :is(.form-status--error, .hs-error-msg, .field-error) {
    color: #ff8a9a;
    background: rgba(255, 107, 125, .1);
    border-color: rgba(255, 107, 125, .5);
}

html[data-theme="vice"] .manual input[type="range"] {
    accent-color: var(--v-pink);
}

/* --------------------------------------------------------------------------
   11. FOOTER — the skyline at night
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual .mn-cert {
    position: relative;
    isolation: isolate;
    background: #0d0318;
    color: var(--v-text);
    border-top: 0;
    padding-top: calc(var(--s7) + 6rem);
}

/* A strip of dusk sky across the top with the city standing on it; the
   silhouette's ink is the footer's ground, so the skyline becomes the band. */
html[data-theme="vice"] .manual .mn-cert::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: 0;
    height: 6.5rem;
    background:
        url("skyline.svg") center bottom / auto 5rem repeat-x,
        linear-gradient(180deg, #12041f 0%, #4a1270 45%, #b02a7f 78%, #ff6a5c 100%);
    pointer-events: none;
}

html[data-theme="vice"] .manual .mn-cert :is(h2, h3, h4) {
    color: var(--v-aqua);
    text-shadow: 0 0 .6em rgba(46, 242, 224, .5);
}

html[data-theme="vice"] .manual .mn-cert a:hover {
    color: var(--v-pink-ink);
    text-shadow: var(--v-glow-pink);
}

/* --------------------------------------------------------------------------
   12. CONSENT BANNER + DIALOGS
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual .lc-banner {
    background: rgba(18, 4, 31, .96);
    color: var(--v-text);
    border-top: 0;
    box-shadow: 0 -3px 0 var(--v-pink), 0 -1rem 2rem -0.5rem rgba(255, 46, 147, .5);
}

html[data-theme="vice"] .manual .lc-banner__title {
    color: var(--v-pink-ink);
    font-family: var(--v-deco);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .8rem;
    text-shadow: 0 0 .7em rgba(255, 46, 147, .6);
}

html[data-theme="vice"] .manual .lc-banner a {
    color: var(--v-aqua);
}

html[data-theme="vice"] .manual :is(.lc-cat, .lc-banner__text, .lc-banner__panel) {
    color: var(--v-text);
}

html[data-theme="vice"] .manual .bp-film-dialog {
    background: var(--v-night);
    border: 2px solid var(--v-aqua);
    border-radius: 1rem;
    box-shadow: var(--v-glow-aqua);
}

html[data-theme="vice"] .manual .bp-film-dialog::backdrop {
    background: rgba(18, 4, 31, .85);
}

html[data-theme="vice"] .manual .bp-film-dialog__close {
    background: transparent;
    color: var(--v-aqua);
    border: 2px solid var(--v-aqua);
    border-radius: var(--v-radius);
}

/* --------------------------------------------------------------------------
   13. PHOTOS — portraits get a sunset duotone instead of the Manual's grey.
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual :is(.mn-signature__photo, .mn-deponent img, .mn-testimony img, .mn-quote img, .mn-seat img, .mn-cert img) {
    filter: grayscale(1) sepia(.9) hue-rotate(275deg) saturate(2.4) contrast(1.05) brightness(1.02);
    border-color: var(--v-pink) !important;
    box-shadow: var(--v-glow-pink);
}

/* --------------------------------------------------------------------------
   14. MOTION — one authored moment: the cover's headline flickers on like a
   neon sign, once. Nothing moves for anyone who asked for less motion.
   -------------------------------------------------------------------------- */
@keyframes vice-neon-on {
    0%   { opacity: 0; }
    8%   { opacity: .9; }
    12%  { opacity: .15; }
    20%  { opacity: 1; }
    26%  { opacity: .35; }
    34%  { opacity: 1; }
    100% { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    html[data-theme="vice"] .manual :is(.mn-cover, .bp-page-hero, .blueprint-hero) :is(h1, .mn-display) {
        animation: vice-neon-on 1.4s steps(1, end) .25s both;
    }
}

/* --------------------------------------------------------------------------
   15. LEFTOVERS FROM THE RETIRED SHEETS
   Surfaces blueprint.css / landing.css / gifts*.css paint with literal light
   colours that the token rebind cannot reach. Found by sweeping every route
   for light grounds and low-contrast text under this theme.
   -------------------------------------------------------------------------- */
html[data-theme="vice"] .manual :is(.bp-card, .bp-quote-card, .bp-step, .bp-faq, .bp-plate, .bp-sheet, .mn-calc, .mn-formsheet, .mn-coverform) {
    background-color: transparent;
    color: var(--v-text);
}

/* White cards on the landing and gift sheets become lit glass panels. */
html[data-theme="vice"] .manual :is(.feature-card, .info-card, .glow-box, .pulse-card, .metric-card, .highlight-pill, .step-card, .trust-chip, .rab-signals article, .rab-deliverables article, .landing-content > div:last-child) {
    background: rgba(255, 255, 255, .045) !important;
    color: var(--v-text);
    border: 1px solid rgba(255, 111, 181, .35) !important;
    border-radius: 1rem;
    box-shadow: 0 0 1.4rem -0.6rem rgba(255, 46, 147, .45);
}

html[data-theme="vice"] .manual :is(.info-card li, .metric-label, .pill-sub, .form-subtitle, .form-guarantees, .form-note, .faq-item p, .hero-compact .lead) {
    color: var(--v-muted);
}

html[data-theme="vice"] .manual :is(.icon-burst, .step-icon, .form-icon, .pill-icon) {
    background: rgba(46, 242, 224, .12);
    color: var(--v-aqua);
    border-radius: 999px;
}

/* The Blueprint gift sheet carries its own nav, form panel and register. */
html[data-theme="vice"] .manual .rab-nav {
    background: rgba(18, 4, 31, .9);
    border-bottom: 0;
    box-shadow: 0 2px 0 var(--v-pink), 0 0 1.4rem rgba(255, 46, 147, .55);
}

/* The gift sheet's bar is roomier than the site bar on wide screens; on
   phones it follows the site's logo sizes. */
@media (min-width: 761px) {
    html[data-theme="vice"] .manual .rab-brand {
        --v-logo-h: 2.9rem;
    }
}

html[data-theme="vice"] .manual :is(.rab-nav__links a, .rab-button, .mn-layer, .lc-btn) {
    font-family: var(--v-deco);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

html[data-theme="vice"] .manual .rab-nav__links a:hover {
    color: var(--v-pink-ink);
    text-shadow: var(--v-glow-pink);
}

html[data-theme="vice"] .manual .rab-button {
    background: var(--v-sunset) !important;
    color: var(--v-night) !important;
    border: 0 !important;
    outline: 0;
    border-radius: var(--v-radius) !important;
    box-shadow: 0 0 .8rem rgba(255, 46, 147, .65) !important;
    text-transform: uppercase;
    letter-spacing: .08em;
}

html[data-theme="vice"] .manual :is(.rab-button, .bp-cta, .btn-primary)::before {
    display: none;
}

html[data-theme="vice"] .manual .rab-form-panel {
    background: rgba(18, 4, 31, .92) !important;
    color: var(--v-text);
    border: 1.5px solid var(--v-pink) !important;
    border-radius: 1.1rem;
    box-shadow: var(--v-glow-pink);
}

html[data-theme="vice"] .manual .rab-form-panel h3 {
    color: var(--v-pink-ink);
}

html[data-theme="vice"] .manual .rab-register {
    background: transparent;
    border-color: rgba(255, 111, 181, .45);
    border-radius: 1rem;
}

html[data-theme="vice"] .manual .rab-register th {
    background: var(--v-plum);
    color: var(--v-aqua);
}

html[data-theme="vice"] .manual .rab-register td {
    color: var(--v-text);
    border-bottom-color: rgba(255, 111, 181, .25);
}

html[data-theme="vice"] .manual .rab-status--made {
    color: #43f0a8;
    background: transparent;
}

html[data-theme="vice"] .manual .rab-status--open {
    color: #ffc85a;
    background: transparent;
}

html[data-theme="vice"] .manual :is(.rab-file__type, .rab-signals article > span) {
    background: var(--v-sunset);
    color: var(--v-night);
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
    html[data-theme="vice"] .manual :is(.mn-cover, .bp-page-hero, .blueprint-hero, .lp-hero, .hero-section, .landing-hero, .hero-gift) {
        padding-bottom: calc(var(--s6) + 5rem);
    }

    html[data-theme="vice"] .manual :is(.mn-cover, .bp-page-hero, .blueprint-hero, .lp-hero, .hero-section, .landing-hero, .hero-gift)::after {
        background-size: 100% 3px, auto 4rem, auto 12rem, auto 16rem;
        background-position: left bottom, center bottom 3px, left -4rem bottom, right -3.5rem bottom;
    }

    html[data-theme="vice"] .manual :is(.mn-cover, .bp-page-hero, .blueprint-hero, .lp-hero, .hero-section, .landing-hero, .hero-gift)::before {
        right: 50%;
        width: 72vw;
        transform: translate(50%, 64%);
    }

    html[data-theme="vice"] .manual :is(h1, .mn-display) {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    html[data-theme="vice"] .manual :is(.mn-h2, .bp-h2) {
        font-size: clamp(1.45rem, 6.6vw, 2rem);
        letter-spacing: .05em;
    }

    html[data-theme="vice"] .manual {
        --v-logo-h: 2.35rem;
    }

    html[data-theme="vice"] .manual :is(.mn-close, main > section.mn-section--deep:last-of-type) :is(h2, .mn-h2) {
        font-size: clamp(2.3rem, 10.5vw, 3.1rem);
    }

    /* The closing palm steps back so it never sits behind a paragraph. */
    html[data-theme="vice"] .manual :is(.mn-exec, .blueprint-cta-band, main > section.mn-section--deep:last-of-type) {
        background-size: auto 46%, cover;
        background-position: right -5rem bottom, center;
    }

    html[data-theme="vice"] .manual .rab-nav__cta {
        letter-spacing: .06em !important;
        padding: .6rem .9rem;
        font-size: .72rem;
    }
}

/* The narrowest phones: the bar still holds the mark, the action and the
   Index, so the wordmark may break and the action tightens. */
@media (max-width: 400px) {
    html[data-theme="vice"] .manual {
        --v-logo-h: 2.25rem;
    }

    html[data-theme="vice"] .manual .mn-head__cta {
        padding: 0 .85rem;
        letter-spacing: .05em !important;
        font-size: .7rem;
    }

    html[data-theme="vice"] .manual .mn-head__inner {
        gap: .5rem;
    }
}

@media (max-width: 360px) {
    html[data-theme="vice"] .manual {
        --v-logo-h: 1.6rem;
    }

    html[data-theme="vice"] .manual .mn-head__cta {
        padding: 0 .65rem;
        letter-spacing: .03em !important;
    }

    html[data-theme="vice"] .manual .mn-head__inner {
        padding: 0 .85rem;
        gap: .4rem;
    }
}
