/* ==== aircooledhelper.com - ONE style for every page (2026-11-22, "ONE UNIFIED STYLE across all pages") ====
   Loaded by includes/site.php ach_head() on every page. A style guide comes later - when it does, it replaces THIS FILE.
   1. the design tokens (--ach-*), light + dark (Auto follows the device; the header's switch sets html[data-theme])
   2. aliases: the pages' older variable names (--ec-* calculator, --tq-* torque, --h-* home) point at the tokens,
      so every page draws from the same palette. New pages: use --ach-* only.
   3. base + the shared header / menu
   Keep native CSS nesting; shared values as variables in :root (house rule). */

/* ---- 1. tokens ---- */
:root {
    /* Inspired by the digital paint chips in data/paint.json: L360, L87 and L53. */
    --ach-sea-blue: #274c5f;
    --ach-pearl-white: #ddd9ce;
    --ach-wax-red: #942d26;
    --ach-hero-gold: #e4aa54;
    --ach-hero-cream: #fff5dc;
    /* Saturn Yellow and brighter screen accents inspired by Ravenna Green and Phoenix Red. */
    --ach-paint-yellow: #f4db4a;
    --ach-paint-lime: #bfd744;
    --ach-paint-orange: #ff8954;
    --ach-paint-coral: #ff795f;
    --ach-paint-turquoise: #53ded1;
    --ach-paint-blue: #71c7fb;
    --ach-paint-violet: #c6a8fa;
    /* Factory codes paired with the digital chip colors in data/paint.json. */
    --ach-vw-l630: #31399c; /* Cobalt Blue */
    --ach-vw-l13m: #f4db4a; /* Saturn Yellow */
    --ach-vw-l32k: #dc331c; /* Phoenix Red */
    --ach-vw-l20c: #df6132; /* Nepal Orange */
    --ach-vw-l65k: #9ab027; /* Ravenna Green */
    --ach-vw-l51p: #5f98c3; /* Olympic Blue */
    --ach-vw-l95b: #72a086; /* Turquoise Metallic */
    --ach-vw-l60a: #059391; /* Tropical Green */
    --ach-vw-l20a: #d49901; /* Marino Yellow */
    --ach-vw-l97b: #364e81; /* Ancona Blue */
    --ach-displacement-bg: var(--ach-vw-l13m);
    --ach-paint-ink: #0b1117;
    --ach-paint-tint: 35%;
    --ach-vehicle-brightness: 54%;
    --ach-selected-vehicle-brightness: 100%;
    --ach-bg: #f5f1e7; --ach-panel: #fffdf7; --ach-ink: #1b3038; --ach-muted: #3d4c50; --ach-line: #c9c8bd;
    --ach-accent: #8a2a24; --ach-accent-ink: #fffdf7;
    --ach-accent-text: #882a24;
    --ach-link: #203f4b;
    --ach-chip: #e8e8dd; --ach-on: var(--ach-vw-l630); --ach-on-ink: #fffdf7;
    --ach-good: #165026; --ach-warn: #703c05; --ach-bad: #891c17;
    --ach-note-bg: #fff3d6; --ach-note-edge: #e0a100; --ach-note-ink: #6e4800;
    --ach-answer-bg: #e3f3e8; --ach-answer-edge: #1f7a3a; --ach-answer-ink: #145a29;
    --ach-focus: #224f63;
    --ach-big: var(--ach-ink);
    --ach-step1: #24598a; --ach-step2: #c8102e; --ach-step-ink: #ffffff;
    --ach-acc-bg: #e6ebe8; --ach-acc-line: #aab9b7; --ach-acc-ink: var(--ach-ink);
    --ach-acc-open: var(--ach-vw-l630); --ach-acc-open-ink: #fffdf7;
    --ach-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E");
    --ach-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
    --ach-radius: 14px; --ach-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .06);
    --ach-font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;   /* Jost = Google's Futura (VW's 1960s ads) */
    --ach-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ach-bar: #31399c; --ach-bar-ink: #fffdf7; --ach-bar-muted: #e1e7df; --ach-bar-line: #a1a6e2;
    --ach-bar-focus: var(--ach-pearl-white);
    --ach-control-line: #7b7e73;
    --ach-trim: linear-gradient(180deg, #ffffff 0%, #e4e8ed 22%, #9aa2ab 48%, #5d646c 58%, #f4f6f9 74%, #b8bfc7 88%, #6a727b 100%);   /* polished chrome (2026-11-22) */
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ach-paint-tint: 20%;
    --ach-vehicle-brightness: 100%;
    --ach-selected-vehicle-brightness: 43%;
    --ach-control-line: #8a8a8e;
    --ach-bg: #1c1c1e; --ach-panel: #2a2a2d; --ach-ink: #f8f3e8; --ach-muted: #d9d9d6; --ach-line: #58585c;
    --ach-link: #b9e1ec; --ach-accent-text: #ffaaa0; --ach-step-ink: #111317;
    --ach-chip: #36363a; --ach-on: #c6bdff; --ach-on-ink: #151639;
    --ach-good: #a6e7b9; --ach-warn: #ffd298; --ach-bad: #ffcbc4;
    --ach-note-bg: #2e2614; --ach-note-edge: #c99200; --ach-note-ink: #f0c060;
    --ach-big: #fffdf7; --ach-step1: #7ab6f0; --ach-step2: #ff8077;
    --ach-focus: #add9e5; --ach-answer-bg: #142a1c; --ach-answer-edge: #4cc274; --ach-answer-ink: #6fd893;
    --ach-acc-bg: #36363a; --ach-acc-line: #68686c; --ach-acc-ink: var(--ach-ink); --ach-acc-open: #30348a;
} }
:root[data-theme="dark"] {
    color-scheme: dark;
    --ach-paint-tint: 20%;
    --ach-vehicle-brightness: 100%;
    --ach-selected-vehicle-brightness: 43%;
    --ach-control-line: #8a8a8e;
    --ach-bg: #1c1c1e; --ach-panel: #2a2a2d; --ach-ink: #f8f3e8; --ach-muted: #d9d9d6; --ach-line: #58585c;
    --ach-link: #b9e1ec; --ach-accent-text: #ffaaa0; --ach-step-ink: #111317;
    --ach-chip: #36363a; --ach-on: #c6bdff; --ach-on-ink: #151639;
    --ach-good: #a6e7b9; --ach-warn: #ffd298; --ach-bad: #ffcbc4;
    --ach-note-bg: #2e2614; --ach-note-edge: #c99200; --ach-note-ink: #f0c060;
    --ach-big: #fffdf7; --ach-step1: #7ab6f0; --ach-step2: #ff8077;
    --ach-focus: #add9e5; --ach-answer-bg: #142a1c; --ach-answer-edge: #4cc274; --ach-answer-ink: #6fd893;
    --ach-acc-bg: #36363a; --ach-acc-line: #68686c; --ach-acc-ink: var(--ach-ink); --ach-acc-open: #30348a;
}

/* The lighter accent belongs on the masthead so keyboard focus stays visible in either theme. */
.ach-header {
    --ach-accent: var(--ach-bar-focus);
    --ach-focus: var(--ach-bar-focus);
    & .ach-search .ach-mic.on { color: var(--ach-bar); }
}
/* ---- 2. aliases - the pages' older names -> the tokens ---- */
:root {
    --ec-bg: var(--ach-bg); --ec-panel: var(--ach-panel); --ec-ink: var(--ach-ink); --ec-muted: var(--ach-muted); --ec-line: var(--ach-line);
    --ec-accent: var(--ach-accent); --ec-accent-ink: var(--ach-accent-ink); --ec-chip: var(--ach-chip); --ec-chip-on: var(--ach-on); --ec-chip-on-ink: var(--ach-on-ink);
    --ec-good: var(--ach-good); --ec-warn: var(--ach-warn); --ec-bad: var(--ach-bad); --ec-solve: var(--ach-answer-bg); --ec-solve-edge: var(--ach-answer-edge); --ec-solve-ink: var(--ach-answer-ink); --ec-focus: var(--ach-focus);
    --ec-radius: var(--ach-radius); --ec-shadow: var(--ach-shadow); --ec-font: var(--ach-font); --ec-mono: var(--ach-mono);
    --ec-acc-bg: var(--ach-acc-bg); --ec-acc-line: var(--ach-acc-line); --ec-acc-ink: var(--ach-acc-ink); --ec-acc-open: var(--ach-acc-open);
    --ec-acc-open-ink: var(--ach-acc-open-ink); --ec-plus: var(--ach-plus); --ec-minus: var(--ach-minus);
    --tq-bg: var(--ach-bg); --tq-panel: var(--ach-panel); --tq-ink: var(--ach-ink); --tq-muted: var(--ach-muted); --tq-line: var(--ach-line);
    --tq-accent: var(--ach-accent); --tq-chip: var(--ach-chip); --tq-on: var(--ach-on); --tq-on-ink: var(--ach-on-ink);
    --tq-warn-bg: var(--ach-note-bg); --tq-warn: var(--ach-note-ink); --tq-warn-edge: var(--ach-note-edge); --tq-big: var(--ach-big);
    --tq-radius: var(--ach-radius); --tq-shadow: var(--ach-shadow); --tq-s1: var(--ach-step1); --tq-s2: var(--ach-step2); --tq-font: var(--ach-font);
    --h-bg: var(--ach-bg); --h-panel: var(--ach-panel); --h-ink: var(--ach-ink); --h-muted: var(--ach-muted); --h-line: var(--ach-line); --h-accent: var(--ach-accent);
}

/* ---- 3. base + header ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* a hidden row stays hidden even when its own style says display: grid / flex */
html, body { margin: 0; }
body { background: var(--ach-bg); color: var(--ach-ink); font-family: var(--ach-font); line-height: 1.45; -webkit-text-size-adjust: 100%; }
/* Keep link contrast at AAA on shared content surfaces. Visited links use the same color. */
a { color: var(--ach-link); text-underline-offset: 2px; &:visited { color: var(--ach-link); } &:hover { text-decoration-thickness: 2px; } }
.ach-header {
    background: var(--ach-bar); color: var(--ach-bar-ink); border-bottom: 1px solid var(--ach-bar-line);
    position: relative; z-index: 50;   /* the menu groups' lists drop over the page */
    /* the header looks the SAME on every page (2026-11-22: "Top menu should not change page by page") - pages must
       never style bare header / button / a / nav; these rules are class-scoped so a page's element styles can't reach them */
    margin: 0; padding: 0; display: block; font-family: var(--ach-font); font-size: 16px; line-height: 1.3;
    /* the LOGO takes both rows (2026-11-22: "Make the logo take up two rows. Then text top row and links second row") */
    .ach-inner { max-width: 1080px; margin: 0 auto; padding: 8px 16px 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
        column-gap: 16px; align-items: center; }
    .ach-logo { grid-row: 1 / 3; color: var(--ach-bar-ink); display: block; padding-bottom: 8px; &:hover, &:focus-visible { color: #fff; } }
    .ach-logo-svg { height: 84px; width: auto; display: block; }
    .ach-top { display: flex; align-items: center; gap: 12px; min-width: 0; padding-top: 2px; }
    .ach-word { color: var(--ach-bar-ink); text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: .01em; white-space: nowrap; line-height: 1.1;
        display: flex; flex-direction: column;
        /* the firing order, as a sub heading */
        .ach-sub { font-size: .62em; font-weight: 600; letter-spacing: .32em; color: var(--ach-bar-muted); margin-top: 3px; } }
    /* SITEWIDE SEARCH (2026-11-22: "a one stop shop ... Add a sitewide search also") */
    .ach-search { flex: 1 1 260px; max-width: 560px; margin-left: auto; display: flex; position: relative;
        input { all: unset; box-sizing: border-box; width: 100%; font-family: var(--ach-font); font-size: 1rem; color: var(--ach-bar-ink);
            background: rgba(255, 255, 255, .08); border: 1px solid var(--ach-bar-line); border-radius: 10px; padding: 9px 44px 9px 12px;
            &::placeholder { color: var(--ach-bar-ink); opacity: 1; }
            &:focus { outline: 2px solid var(--ach-focus); outline-offset: 1px; } }
        &.has-mic input { padding-right: 80px; }
        .ach-mic { all: unset; position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 36px; height: 32px; display: grid; place-items: center; cursor: pointer;
            color: var(--ach-bar-ink); border-radius: 8px; &:hover, &:focus-visible { background: rgba(255, 255, 255, .12); } &.on { color: #fff; background: var(--ach-accent); } &[hidden] { display: none; } }
        .ach-go { all: unset; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 32px; display: grid; place-items: center;
            cursor: pointer; color: var(--ach-bar-ink); font-size: 1.15rem; border-radius: 8px; &:hover, &:focus-visible { background: rgba(255, 255, 255, .12); } } }
    nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: -12px; align-self: end;
        a { color: var(--ach-bar-muted); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 12px; border-radius: 8px 8px 0 0;
            &:hover, &:focus-visible { color: var(--ach-bar-ink); background: rgba(255, 255, 255, .08); }
            &.on { color: var(--ach-bar-ink); box-shadow: inset 0 -3px var(--ach-accent); } }
        /* MENU GROUPS (tap to open) - the group button looks like a link, with a small arrow; its list drops under it (site.php: button[aria-expanded] + div[hidden]) */
        .ach-grp { position: relative;
            > .ach-gbtn { all: unset; box-sizing: border-box; cursor: pointer; color: var(--ach-bar-muted); font-weight: 600; font-size: 1rem; padding: 8px 12px; border-radius: 8px 8px 0 0;
                display: flex; align-items: center; gap: 6px; user-select: none;
                &::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
                &:hover, &:focus-visible { color: var(--ach-bar-ink); background: rgba(255, 255, 255, .08); }
                &:focus-visible { outline: 3px solid var(--ach-accent); outline-offset: -3px; } }
            &.open > .ach-drop { display: flex; }
            > .ach-gbtn[aria-expanded="true"] { color: var(--ach-bar-ink); background: rgba(255, 255, 255, .08); &::after { transform: translateY(2px) rotate(-135deg); } }
            &.on > .ach-gbtn { color: var(--ach-bar-ink); box-shadow: inset 0 -3px var(--ach-accent); }
            .ach-drop { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px; display: none; flex-direction: column; padding: 6px;
                background: var(--ach-bar); border: 1px solid var(--ach-bar-line); border-radius: 0 10px 10px 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
                a { border-radius: 8px; padding: 10px 12px; &.on { box-shadow: inset 3px 0 var(--ach-accent); } } } } }
    .ach-btn { all: unset; box-sizing: border-box; background: none; border: 1px solid var(--ach-bar-line); color: var(--ach-bar-ink); border-radius: 8px;
        padding: 6px 10px; font-family: var(--ach-font); font-size: .95rem; font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap;
        &:hover { border-color: var(--ach-bar-muted); }
        &:focus-visible { outline: 3px solid var(--ach-accent); outline-offset: 2px; } }
    .ach-toggle { display: none; }
}
/* CONTACT FORM - the footer's pop-up (dialog.ach-modal) and the contact/ page share .ach-cform */
.ach-cform {
    label { display: block; font-weight: 700; margin: 14px 0 6px; small { font-weight: 500; color: var(--ach-muted); } }
    label:first-of-type { margin-top: 4px; }
    input, textarea { box-sizing: border-box; width: 100%; font: inherit; font-size: 1.05rem; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--ach-control-line);
        background: var(--ach-bg); color: var(--ach-ink); &:focus { outline: 3px solid var(--ach-focus); outline-offset: 1px; } }
    textarea { min-height: 150px; resize: vertical; }
}
.ach-cform-page { background: var(--ach-panel); border: 1px solid var(--ach-line); border-radius: var(--ach-radius); padding: 18px; box-shadow: var(--ach-shadow); }
.ach-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ach-send { margin-top: 16px; font: inherit; font-weight: 800; font-size: 1.1rem; padding: 12px 24px; border-radius: 10px; border: 0; cursor: pointer;
    background: var(--ach-accent); color: var(--ach-accent-ink); &:disabled { opacity: .6; cursor: wait; } &:focus-visible { outline: 3px solid var(--ach-focus); outline-offset: 2px; } }
dialog.ach-modal { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-sizing: border-box; padding: 18px 20px 20px; border: 1px solid var(--ach-line);
    border-radius: 14px; background: var(--ach-panel); color: var(--ach-ink); font-family: var(--ach-font); box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    &::backdrop { background: rgba(10, 12, 16, .6); }
    h2 { margin: 0; font-size: 1.35rem; }
    .ach-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .ach-modal-x:not(.ach-send) { all: unset; cursor: pointer; font-size: 1.3rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--ach-muted);
        &:hover, &:focus-visible { background: var(--ach-chip); color: var(--ach-ink); } }
    .ach-modal-lead { margin: 6px 0 4px; color: var(--ach-muted); }
    .ach-modal-done p { margin: 8px 0; } }
@media print { dialog.ach-modal { display: none; } }
/* RUNNING BOARD under the banner (2026-11-22: "a little running board. Dark and light gray bars then a chrome bar with reflection
   effect ... smaller rectangle on top to bigger, giving the illusion of a curve, then a silver with rounded edge on both sides").
   Side view of a Beetle board: a thin dark edge, the taller ribbed rubber mat, then the chrome trim strip with rounded ends. Pure CSS. */
.ach-runboard { position: relative; height: 26px; background: #1d1f23; pointer-events: none;
    box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .55);                         /* the board's shadow on the page */
    /* 1 - thin dark top edge with a light catch (4px) + 2 - the ribbed rubber mat (12px): bold light / dark lengthwise ribs, shaded underneath */
    &::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px;
        background:
            linear-gradient(180deg, #0f1113 0 1px, #7c828a 1px 2px, #2a2d32 2px 4px, transparent 4px),
            linear-gradient(180deg, rgba(255, 255, 255, .14) 4px, rgba(0, 0, 0, .35) 16px),
            repeating-linear-gradient(180deg, #8a9098 4px 5.5px, #3a3e44 5.5px 8px); }
    /* 3 - the chrome strip: thicker, rounded both ends, a bright reflection band over a dark underside */
    &::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 8px; border-radius: 999px;
        background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 15%, #aeb6bf 38%, #5f6770 50%, #ffffff 62%, #d6dbe1 78%, #4c535b 100%);
        box-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 -1px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .9); }
}
@media print { .ach-runboard { display: none; } }
/* a torque spec quoted on another page (ach_torque) - the number up front, the link straight to its row */
.ach-tq { font-weight: 600; b { font-family: var(--ach-mono); } .ach-tq-go { font-size: .85em; font-weight: 800; white-space: nowrap; } }
/* a torque spec opened by a direct link (#row-id) - highlighted so it's obvious */
.spec.hit { background: var(--ach-answer-bg, rgba(255, 214, 102, .25)); box-shadow: 0 0 0 3px var(--ach-focus); border-radius: 10px; scroll-margin-top: 90px; }
/* BREADCRUMBS - big and obvious (ach_crumbs() in site.php) */
.ach-crumbs { margin: 4px 0 14px;
    ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 1.12rem; font-weight: 700; line-height: 1.2; }
    li { display: flex; align-items: center; }
    li + li::before { content: "\203A"; font-size: 1.5em; line-height: 1; color: var(--ach-muted); padding: 0 10px; }
    a { color: var(--ach-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; display: inline-block; padding: 8px 0;
        &:hover { text-decoration-thickness: 3px; } }
    span[aria-current] { color: var(--ach-ink); padding: 8px 0; }
}
@media print { .ach-crumbs { display: none; } }
/* phones: smaller logo, search on its own line, the links fold behind a Menu button */
@media (max-width: 700px) {
    .ach-header { .ach-inner { column-gap: 10px; } .ach-logo-svg { height: 64px; } .ach-top { flex-wrap: wrap; gap: 6px; } .ach-word { font-size: 1.08rem; }
        /* the Menu link sits UNDER the header's top row (2026-11-22: "For mobile, put the menu link under the header") */
        .ach-search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
        .ach-toggle { display: block; order: 6; flex-basis: 100%; text-align: center; margin: 0 0 8px; padding: 9px 10px; }
        .ach-word { flex: 1 1 auto; } #achTheme span { display: none; }   /* phones: the switch shows just its icon */
        nav { display: none; grid-column: 1 / -1; flex-direction: column; margin: 0 0 8px; a { padding: 10px 12px; border-radius: 8px; &.on { box-shadow: inset 3px 0 var(--ach-accent); } }
            /* phone: every group open, its name a small heading over its links */
            .ach-grp { > .ach-gbtn { pointer-events: none; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 12px 12px 2px;
                    box-shadow: none !important; background: none !important; &::after { display: none; } }
                .ach-drop { display: flex; position: static; min-width: 0; padding: 0 0 0 8px; background: none; border: 0; box-shadow: none; } } }
        &.open nav { display: flex; } }
}
@media (max-width: 380px) { .ach-header .ach-word { display: none; } }
@media print { .ach-header { display: none; } }
/* FOOTER - black on screen, light on paper. The logo follows the text color. */
.ach-footer { border-top: 1px solid var(--ach-line); margin-top: 40px; color: var(--ach-ink); background: var(--ach-panel);
    .ach-finner { max-width: 1080px; margin: 0 auto; padding: 24px 16px 32px; display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: start; }
    .ach-flogo { color: var(--ach-ink); &:hover, &:focus-visible { color: var(--ach-accent-text); } }
    .ach-flogo-svg { height: 110px; width: auto; display: block; }
    .ach-fbody { display: grid; gap: 10px; min-width: 0; }
    nav { display: flex; flex-wrap: wrap; gap: 4px 16px; a { color: var(--ach-ink); font-weight: 700; text-decoration: none; &:hover { text-decoration: underline; } } }
    .ach-contact { margin: 0; font-size: .95rem; a { color: var(--ach-link); font-weight: 700; word-break: break-all; } }
    .ach-fine { margin: 0; font-size: .85rem; color: var(--ach-muted); max-width: 75ch; a { color: inherit; } }
    .ach-disclaimer { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border: 1px solid var(--ach-line); border-radius: 8px; font-size: .85rem; color: var(--ach-muted); b { color: var(--ach-ink); } }
    @media (max-width: 560px) { .ach-finner { grid-template-columns: 1fr; } .ach-flogo-svg { height: 84px; } }
}
@media print { .ach-footer nav { display: none; } }

@media screen {
    .ach-header { background: var(--ach-bar); }   /* no top bar (2026-11-22: "take the top bar off all together") */
    .ach-footer {
        --ach-panel: #000;
        --ach-ink: #fffdf7;
        --ach-muted: #d2d2d2;
        --ach-line: #737373;
        --ach-link: #add9ff;
        --ach-accent-text: #f4db4a;
    }
}

.ach-paint-fact {
    margin: 0;
    /* 2026-11-22: smaller, no background bar, right-aligned, the header's own text colour slightly faded */
    max-width: 1080px; margin: 0 auto; box-sizing: border-box;
    padding: 0 16px 6px;
    background: none;
    color: var(--ach-bar-muted);   /* the header's soft text colour, solid - an opacity fade failed AA on the lighter paints (AA minimum) */
    text-align: right;
    font-size: .75rem;
    font-weight: 500;
    a, a:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
    a:hover, a:focus-visible { color: var(--ach-bar-ink); }
}

/* Section icons share the surrounding text color. Vehicle drawings use the same palette. */
.ach-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-end: .38em;
    flex-shrink: 0;
    vertical-align: -.125em;
    fill: currentColor;
    pointer-events: none;
}
[data-icon] { --ach-icon-color: var(--ach-paint-turquoise); }
[data-icon="book-open"], [data-icon="list"] { --ach-icon-color: var(--ach-paint-yellow); }
[data-icon="clipboard-list"], [data-icon="gauge-high"], [data-icon="gear"] { --ach-icon-color: var(--ach-paint-blue); }
[data-icon="wrench"], [data-icon="play"] { --ach-icon-color: var(--ach-paint-coral); }
[data-icon="oil-can"], [data-icon="bolt"] { --ach-icon-color: var(--ach-paint-orange); }
[data-icon="grease-gun"], [data-icon="beetle"], [data-icon="wheel"] { --ach-icon-color: var(--ach-paint-lime); }
[data-icon="palette"], [data-icon="calculator"], [data-icon="comments"] { --ach-icon-color: var(--ach-paint-violet); }

/* The bright paint is the background of the icon so its silhouette stays legible. */
@media screen {
    :is(h1, h2, h3) > svg.ach-icon[data-icon] {
        box-sizing: content-box;
        padding: .3em;
        border-radius: .32em;
        background: var(--ach-icon-color);
        color: var(--ach-paint-ink);
        vertical-align: -.33em;
    }
    .ach-header nav svg.ach-icon[data-icon] { color: var(--ach-icon-color); }
    .ach-header nav .ach-vehicle-icon { color: var(--ach-paint-lime); }
}
.ach-vehicle-icon {
    width: 1.7em;
    height: 1.125em;
    background: currentColor;
    mask: var(--ach-vehicle-art) center / contain no-repeat;
    &[data-vehicle=""] { display: none; }
    &[data-vehicle="beetle-front"] { --ach-vehicle-art: url("vehicles/beetle-front-solid.svg?v=2"); }
    &[data-vehicle="bus-front"] { --ach-vehicle-art: url("vehicles/bus-split-window-front-solid.svg?v=3"); }
    &[data-vehicle="bay-bus-front"] { --ach-vehicle-art: url("vehicles/bus-bay-window-front-solid.svg?v=3"); }
    &[data-vehicle="ghia-front"] { --ach-vehicle-art: url("vehicles/karmann-ghia-front-solid.svg"); }
    &[data-vehicle="type1"] { --ach-vehicle-art: url("vehicles/beetle-solid.svg"); --ach-vehicle-color: var(--ach-paint-yellow); }
    &[data-vehicle="superbeetle"] { --ach-vehicle-art: url("vehicles/super-beetle-solid.svg"); --ach-vehicle-color: var(--ach-paint-orange); }
    &[data-vehicle="beetleconv"] { --ach-vehicle-art: url("vehicles/beetle-convertible-solid.svg"); --ach-vehicle-color: var(--ach-paint-yellow); }
    &[data-vehicle="superconv"] { --ach-vehicle-art: url("vehicles/super-beetle-convertible-solid.svg"); --ach-vehicle-color: var(--ach-paint-orange); }
    &[data-vehicle="ghia"] { --ach-vehicle-art: url("vehicles/karmann-ghia-front-solid.svg"); --ach-vehicle-color: var(--ach-paint-coral); }
    &[data-vehicle="type2"] { --ach-vehicle-art: url("vehicles/bus-split-window-solid.svg"); --ach-vehicle-color: var(--ach-paint-turquoise); }
    &[data-vehicle="type3"] { --ach-vehicle-art: url("vehicles/type-3-fastback-solid.svg"); --ach-vehicle-color: var(--ach-paint-lime); }
    &[data-vehicle="type34"] { --ach-vehicle-art: url("vehicles/type-34-solid.svg?v=2"); --ach-vehicle-color: var(--ach-paint-violet); }
    &[data-vehicle="type4"] { --ach-vehicle-art: url("vehicles/type-4-412-solid.svg"); --ach-vehicle-color: var(--ach-paint-blue); }
    &[data-vehicle="thing"] { --ach-vehicle-art: url("vehicles/thing-solid.svg"); --ach-vehicle-color: var(--ach-paint-orange); }
}
/* Solid silhouettes switch tone with the picker background. */
:is(button[data-v], button[data-p]) > .ach-vehicle-icon {
    width: 2.5em;
    height: 1.37em;
    vertical-align: -.27em;
    color: color-mix(in srgb, var(--ach-vehicle-color, currentColor) var(--ach-vehicle-brightness), var(--ach-paint-ink));
}
:is(button[data-v], button[data-p])[aria-pressed="true"] > .ach-vehicle-icon {
    --ach-vehicle-brightness: var(--ach-selected-vehicle-brightness);
}
.ach-header {
    .ach-gbtn .ach-icon, .ach-go .ach-icon, .ach-mic .ach-icon { margin-inline-end: 0; }
    .ach-go .ach-icon, .ach-mic .ach-icon { width: 18px; height: 18px; }
    @media (max-width: 700px) { #achTheme .ach-icon { margin-inline-end: 0; } }
}
.ach-modal-x .ach-icon, .larry-x .ach-icon { margin-inline-end: 0; }

/* Home uses the same paint palette as the masthead. */
.ach-home {
    .ach-home-hero {
        display: grid;
        grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
        align-items: center;
        gap: clamp(18px, 3vw, 36px);
        margin-bottom: 28px;
        padding: clamp(22px, 5vw, 54px);
        padding-top: clamp(28px, 5vw, 58px);
        background: var(--ach-bar);
        color: var(--ach-bar-ink);
        border-radius: var(--ach-radius);
        & h1 { font-size: clamp(2.25rem, 5vw, 4.15rem); line-height: 1.02; letter-spacing: -.04em; }
        & .lead { color: var(--ach-bar-muted); margin: 12px 0 0; }
    }
    .ach-hero-lineup {
        display: grid;
        grid-template-columns: 1fr 1.2fr 1.1fr;
        align-items: end;
        padding: 7% 3% 6%;
        color: var(--ach-sea-blue);
        background:
            linear-gradient(var(--ach-wax-red), var(--ach-wax-red)) center bottom 17% / 93% 3px no-repeat,
            radial-gradient(circle at 50% 45%, var(--ach-hero-gold) 0 32%, transparent 32.5%),
            var(--ach-hero-cream);
        border: 3px solid var(--ach-pearl-white);
        border-radius: var(--ach-radius);
        box-shadow: 6px 6px 0 var(--ach-wax-red);
        transform: rotate(-3deg);
        & img { display: block; width: 100%; height: auto; }
    }
    @media (max-width: 740px) {
        .ach-home-hero { grid-template-columns: 1fr; }
        .ach-hero-lineup { width: min(100%, 340px); justify-self: center; margin: 4px 0; }
    }
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    line-height: 1.5;
    & h1 { margin: 0; font-weight: 800; }
    & .lead { font-size: 1.15rem; max-width: 60ch; }
    & .grp {
        font-size: .95rem;
        font-weight: 800;
        letter-spacing: .075em;
        text-transform: uppercase;
        margin: 27px 0 12px;
    }
    & .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
    & .card {
        display: block;
        min-width: 0;
        padding: 16px 18px 18px;
        border: 1px solid var(--ach-line);
        border-top: 6px solid var(--ach-card-paint, var(--ach-icon-color));
        border-radius: var(--ach-radius);
        background: color-mix(in srgb, var(--ach-card-paint, var(--ach-icon-color)) var(--ach-paint-tint), var(--ach-panel));
        color: var(--ach-ink);
        box-shadow: var(--ach-shadow);
        text-decoration: none;
        & h3 { display: flex; align-items: center; margin: 0 0 6px; font-size: 1.23rem; line-height: 1.28; }
        & p { margin: 0; color: var(--ach-ink); }
        &:visited { color: var(--ach-ink); }
        &:hover h3, &:focus-visible h3 { text-decoration: underline; text-underline-offset: .17em; }
        &:focus-visible { outline: 3px solid var(--ach-focus); outline-offset: 3px; }
    }
    & .card[data-icon="book-open"] { --ach-card-paint: var(--ach-vw-l13m); }
    & .card[data-icon="wrench"] { --ach-card-paint: var(--ach-vw-l32k); --ach-card-icon-ink: #fff; }
    & .card[data-icon="oil-can"] { --ach-card-paint: var(--ach-vw-l20c); }
    & .card[data-icon="grease-gun"] { --ach-card-paint: var(--ach-vw-l65k); }
    & .card[data-icon="gauge-high"] { --ach-card-paint: var(--ach-vw-l51p); }
    & .card[data-icon="barcode"] { --ach-card-paint: var(--ach-vw-l95b); }
    & .card[data-icon="palette"] { --ach-card-paint: var(--ach-vw-l60a); }
    & .card[data-icon="bolt"] { --ach-card-paint: var(--ach-vw-l20a); }
    & .card[data-icon="calculator"] { --ach-card-paint: var(--ach-vw-l97b); --ach-card-icon-ink: #fff; }
    @media screen {
        & .card h3 > svg.ach-icon[data-icon] {
            background: var(--ach-card-paint, var(--ach-icon-color));
            color: var(--ach-card-icon-ink, var(--ach-paint-ink));
        }
    }
    & .card:only-child { max-width: 60ch; }

}
@media print {
    :root, :root[data-theme="dark"], :root:not([data-theme="light"]) { color-scheme: light; }
    .ach-home { padding: 0; & .card { background: #fff; border-color: var(--ach-line); } }
    .ach-home .ach-hero-lineup { display: none; }
    .ach-home .ach-home-hero { display: block; background: none; color: inherit; padding: 0; & .lead { color: var(--ach-muted); } }
}

/* ---- 4. shared components ---- */
/* ACCORDIONS - the plus / minus style ("Use my plus minus accordions, bootstrap 5 styled" - like the Mitchell staff pages):
   square box, closed = grey with a circled plus on the left, open = blue header, white words, circled minus. Closed by default.
   <details class="acc"><summary>Title <small>note</small></summary> ...content... </details> */
details.acc {
    border: 1px solid var(--ach-acc-line); border-radius: 0; margin: 10px 0 0; background: var(--ach-panel);
    > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; background: var(--ach-acc-bg);
        color: var(--ach-acc-ink); font-weight: 700; font-size: 1rem; user-select: none;
        &::-webkit-details-marker { display: none; }
        &::before { content: ""; flex: 0 0 1.35em; width: 1.35em; height: 1.35em; background-color: currentColor;
            -webkit-mask: var(--ach-plus) center / contain no-repeat; mask: var(--ach-plus) center / contain no-repeat; }
        small { font-weight: 500; }
        &:focus-visible { outline: 3px solid var(--ach-focus); outline-offset: 2px; } }
    &[open] > summary { background: var(--ach-acc-open); color: var(--ach-acc-open-ink);
        &::before { -webkit-mask-image: var(--ach-minus); mask-image: var(--ach-minus); } }
    &[open] { padding-bottom: 6px; > :not(summary) { margin-left: 10px; margin-right: 10px; } }
}

/* ---- 5. page basics for every newer page (paint, wiring, search) ---- */
.ach-main { max-width: 1080px; margin: 0 auto; padding: 22px 16px 56px; }
.ach-h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; }
.ach-lead { margin: 6px 0 14px; color: var(--ach-muted); max-width: 70ch; }
.ach-note { background: var(--ach-note-bg); border-left: 4px solid var(--ach-note-edge); color: var(--ach-ink); padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: .92rem;
    b { color: var(--ach-note-ink); } }
.ach-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; position: sticky; top: 0; z-index: 5; background: var(--ach-bg); padding: 8px 0; }
.ach-find { flex: 1 1 260px; font: inherit; font-size: 1.1rem; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ach-control-line); background: var(--ach-panel); color: var(--ach-ink);
    &:focus { outline: 3px solid var(--ach-focus); border-color: var(--ach-focus); } }
/* tabs: big, tap-friendly (Beetle / Ghia / Bus ...) */
.ach-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px;
    button { font: inherit; font-weight: 700; font-size: 1rem; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ach-line); background: var(--ach-chip); color: var(--ach-ink); cursor: pointer;
        &[aria-pressed="true"] { background: var(--ach-on); color: var(--ach-on-ink); border-color: var(--ach-on); }
        &:focus-visible { outline: 3px solid var(--ach-focus); outline-offset: 2px; }
        small { font-weight: 500; } } }
.ach-btn2 { font: inherit; font-weight: 700; cursor: pointer; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--ach-line); background: var(--ach-panel); color: var(--ach-ink);
    &:hover, &:focus-visible { border-color: var(--ach-focus); } }
.ach-h2 { font-size: 1.25rem; margin: 22px 0 4px; }
.ach-empty { color: var(--ach-muted); padding: 18px 0; }
/* PRINT BUTTON (ach_print_button() in site.php) */
.ach-print { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; cursor: pointer; padding: 8px 14px; border-radius: 10px;
    border: 1px solid var(--ach-line); background: var(--ach-panel); color: var(--ach-ink); &:hover, &:focus-visible { border-color: var(--ach-focus); } }
.ach-printed { display: none; }
/* PRINTING - every page (2026-11-22). Paper is always light: the light tokens again, whatever the theme. No menu, search, buttons
   or videos' pictures; accordions open (site.php script) with their headers as plain headings; nothing split across a page if it fits. */
@media print {
    :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
        --ach-bg: #fff; --ach-panel: #fff; --ach-ink: #000; --ach-muted: #444; --ach-line: #bbb; --ach-chip: #eee; --ach-on: #000; --ach-on-ink: #fff;
        --ach-note-bg: #fff; --ach-note-edge: #888; --ach-note-ink: #000; --ach-answer-bg: #fff; --ach-answer-edge: #000; --ach-answer-ink: #000;
        --ach-big: #000; --ach-acc-bg: #fff; --ach-acc-line: #bbb; --ach-acc-ink: #000; --ach-acc-open: #fff; --ach-acc-open-ink: #000; --ach-shadow: none;
        --ach-good: #000; --ach-warn: #000; --ach-bad: #000; --ach-focus: #000; --ach-step1: #24598a; --ach-step2: #c8102e; --ach-step-ink: #fff;
        --ach-control-line: #777; --ach-link: #000; --ach-accent-text: #000; --ach-muted: #333; }
    @page { margin: 14mm 12mm; }
    body { background: #fff !important; color: #000; font-size: 11pt; }
    .ach-header, .ach-search, .ach-print, .ach-tools, .acc-tools, .ach-404-list, .ach-footer nav, .ach-flogo, .ach-contact, img[src*="ytimg.com"], .jump, button { display: none !important; }
    .ach-main { max-width: none; padding: 0; }
    .ach-footer { margin-top: 18px; background: #fff; .ach-finner { display: block; padding: 8px 0 0; } }
    .ach-printed { display: block; font-size: 9pt; color: #444; margin: 0 0 4px; }
    .ach-disclaimer, .ach-fine { font-size: 8pt; }
    details.acc { border-color: #bbb; break-inside: auto;
        > summary { background: #fff !important; color: #000 !important; font-weight: 800; border-bottom: 1px solid #bbb; &::before { display: none; } } }
    a { color: inherit; }
    h1, h2, h3, summary { break-after: avoid; }
    tr, li, .spec, .card, .stage, figure, img, svg { break-inside: avoid; }   /* boxes may run onto the next page; one step / row / diagram stays whole */
    /* keep the few colours that carry meaning (stage 1 blue / stage 2 red, the VW chips) - browsers drop backgrounds on paper otherwise */
    * { box-shadow: none !important; animation: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* ==== ASK LARRY (assets/larry.js, site.php ach_larry_*) ==== */
.larry-face { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.larry-stand-in { display: inline-grid; place-items: center; background: var(--ach-on); color: var(--ach-on-ink); font-weight: 900; font-size: 1.25rem; }
.larry-face.big { width: 72px; height: 72px; font-size: 2.2rem; }
.larry-fab { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px;
    border: 1px solid var(--ach-line); background: var(--ach-panel); color: var(--ach-ink); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .22); &:hover, &:focus-visible { border-color: var(--ach-focus); outline: none; } &[aria-expanded="true"] { display: none; } }
.larry-panel { position: fixed; right: 16px; bottom: 16px; z-index: 901; width: min(420px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 32px)); display: flex; flex-direction: column;
    background: var(--ach-panel); color: var(--ach-ink); border: 1px solid var(--ach-line); border-radius: var(--ach-radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    &[hidden] { display: none; } .larry-box { flex: 1; min-height: 0; } }
.larry-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--ach-line);
    b { flex: 1; font-size: 1.1rem; } .larry-face { width: 32px; height: 32px; font-size: 1rem; } a { font-size: .9rem; }
    .larry-x { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; &:hover, &:focus-visible { background: var(--ach-chip); } } }
.larry-box { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px;
    &.full { padding: 0; .larry-log { max-height: none; min-height: 200px; } } }
.larry-log { overflow-y: auto; max-height: 420px; display: flex; flex-direction: column; gap: 10px; padding: 2px; }
.larry-msg { max-width: 100%; p { margin: 0; } &.you { align-self: flex-end; p { background: var(--ach-on); color: var(--ach-on-ink); padding: 8px 12px; border-radius: 14px 14px 4px 14px; } }
    &.larry { align-self: stretch; } }
.larry-say { margin: 0 0 6px; &.small { font-size: .92rem; color: var(--ach-muted); margin-top: 8px; } }
.larry-card { border: 1px solid var(--ach-line); border-left: 5px solid var(--ach-accent); border-radius: 10px; padding: 10px 12px; background: var(--ach-bg);
    .larry-ct { font-weight: 700; } .larry-ans { font-family: var(--ach-mono); font-weight: 800; font-size: 1.5rem; color: var(--ach-big); margin: 2px 0 4px; overflow-wrap: anywhere; }
    .larry-d { font-size: .92rem; margin: 4px 0; } .larry-src { font-size: .82rem; color: var(--ach-muted); margin: 4px 0; } .larry-go { font-weight: 700; } }
.larry-tool { display: inline-block; font-weight: 700; padding: 10px 14px; border: 1px solid var(--ach-line); border-radius: 10px; background: var(--ach-bg); }
.larry-alt { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-top: 6px; border: 1px solid var(--ach-line); border-radius: 10px; text-decoration: none; color: var(--ach-ink);
    span { font-family: var(--ach-mono); font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; } b { min-width: 0; } &:hover, &:focus-visible { border-color: var(--ach-focus); } }
.larry-form { display: flex; gap: 8px; input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ach-line);
    background: var(--ach-bg); color: var(--ach-ink); &:focus { outline: 3px solid var(--ach-focus); border-color: var(--ach-focus); } } }
.larry-tries { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; span { color: var(--ach-muted); }
    button { font: inherit; font-size: .85rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--ach-line); background: var(--ach-chip); color: var(--ach-ink); cursor: pointer; } }
.larry-fine { margin: 0; font-size: .8rem; color: var(--ach-muted); }
.larry-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.larry-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border: 1px dashed var(--ach-line); border-radius: var(--ach-radius); background: var(--ach-panel);
    .larry-note-h { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--ach-muted); } }
@media print { .larry-fab, .larry-panel { display: none !important; } }
/* the not-found page (404.php): big tap-friendly links to every section */
.ach-404-list { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px;
    a { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ach-line); background: var(--ach-panel); color: var(--ach-ink); font-weight: 700; text-decoration: none;
        &:hover, &:focus-visible { border-color: var(--ach-accent); } } }
mark { background: color-mix(in srgb, var(--ach-note-edge) 40%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.ach-src { font-size: .85rem; color: var(--ach-muted); a { color: inherit; } }

/* DARK MODE = neutral grey, not tinted blue (2026-11-22: "Make general darkmode background a grey. Not the tinted blue") */
/* Pictures from elsewhere (ach_figure) - always with their credit line under them */
figure.ach-fig { margin: 14px 0; background: var(--ach-panel); border: 1px solid var(--ach-line); border-radius: var(--ach-radius); overflow: hidden;
    img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #000; }
    figcaption { padding: 10px 14px; font-size: .95rem; }
    .ach-credit { display: block; margin-top: 4px; font-size: .8rem; color: var(--ach-muted); a { color: inherit; } } }
.ach-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; figure.ach-fig { margin: 0; } }

/* Engine Building work-in-progress note: paragraphs + the book list inside the yellow note */
.ach-wip { p { margin: 0 0 6px; } ul { margin: 4px 0 0; padding-left: 20px; } li { margin: 4px 0; } a { color: inherit; } }

/* ADMIN (admin/, private - 2026-11-24) - Visitor Stats: totals, day bars, top lists. Phones: the pages table becomes cards (td data-l). */
.ach-admin {
    .ad-h2 { font-size: 1.5rem; margin: 18px 0 0; }
    .st-login { display: grid; gap: 8px; max-width: 360px;
        input { font: inherit; font-size: 1.1rem; min-height: 48px; padding: 8px 12px; border: 2px solid var(--ach-control-line); border-radius: 10px; background: var(--ach-panel); color: var(--ach-ink); }
        button { font: inherit; font-weight: 700; min-height: 48px; border: 0; border-radius: 10px; background: var(--ach-accent); color: var(--ach-accent-ink); cursor: pointer; } }
    .st-range { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0;
        a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--ach-chip); color: var(--ach-ink); font-weight: 600; text-decoration: none; }
        a[aria-current] { background: var(--ach-on); color: var(--ach-on-ink); } }
    .st-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px;
        div { background: var(--ach-panel); border: 1px solid var(--ach-line); border-radius: var(--ach-radius); padding: 14px; }
        b { display: block; font-size: 2.2rem; line-height: 1.1; color: var(--ach-big); }
        span { color: var(--ach-muted); font-weight: 600; } }
    .st-box { background: var(--ach-panel); border: 1px solid var(--ach-line); border-radius: var(--ach-radius); padding: 14px 16px; margin-bottom: 14px; min-width: 0;
        h2 { margin: 0 0 10px; font-size: 1.25rem; } }
    .st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 14px; }
    .st-none { margin: 0; color: var(--ach-muted); }
    .st-table { width: 100%; border-collapse: collapse;
        th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ach-muted); padding: 6px 8px; border-bottom: 2px solid var(--ach-line); }
        td { padding: 8px; border-bottom: 1px solid var(--ach-line); vertical-align: top; overflow-wrap: anywhere; }
        td + td, th + th { text-align: right; font-weight: 700; font-size: 1.1rem; width: 6em; }
        td small { display: block; color: var(--ach-muted); font-size: .8rem; }
        a { color: var(--ach-link); font-weight: 600; } }
    .st-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px;
        li { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 10px; align-items: center; min-height: 28px; }
        .st-d { color: var(--ach-muted); font-weight: 600; font-size: .9rem; }
        .st-bar { height: 14px; border-radius: 7px; background: var(--ach-chip); position: relative; overflow: hidden;
            &::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ach-on); border-radius: 7px; } }
        .st-n { font-size: .9rem; white-space: nowrap; } }
    .st-list { list-style: none; margin: 0; padding: 0;
        li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--ach-line); }
        span { overflow-wrap: anywhere; } b { white-space: nowrap; } }
    .st-foot { color: var(--ach-muted); max-width: 75ch; }
    .st-out { font: inherit; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 2px solid var(--ach-control-line); background: transparent; color: var(--ach-ink); cursor: pointer; }
    @media (max-width: 600px) {
        .st-table thead { display: none; }
        .st-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ach-line); padding: 6px 0; }
        .st-table td { border: 0; padding: 4px 0; width: auto; text-align: left; }
        .st-table td:first-child { grid-column: 1 / -1; }
        .st-table td[data-l]:not(:first-child)::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ach-muted); }
        .st-days li { grid-template-columns: 1fr auto; grid-template-areas: "d n" "bar bar"; gap: 2px 10px; padding: 4px 0; }
        .st-days .st-d { grid-area: d; } .st-days .st-n { grid-area: n; } .st-days .st-bar { grid-area: bar; }
    }
}

/* RESOURCES (resources/, 2026-11-24): books + websites, grouped; title = the link, then who, then what we use it for */
.ach-res {
    .res-jump { display: flex; gap: 8px; margin: 4px 0 8px;
        a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ach-chip); color: var(--ach-ink); font-weight: 600; text-decoration: none; } }
    .res-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 4px; font-size: 1.6rem; scroll-margin-top: 12px; }
    .res-sub { color: var(--ach-muted); margin: 0 0 12px; max-width: 75ch; a { color: var(--ach-link); } }
    .res-group { background: var(--ach-panel); border: 1px solid var(--ach-line); border-radius: var(--ach-radius); padding: 14px 16px; margin-bottom: 14px;
        h3 { margin: 0 0 6px; font-size: 1.15rem; } }
    .res-list { list-style: none; margin: 0; padding: 0;
        li { padding: 12px 0; border-top: 1px solid var(--ach-line); } li:first-child { border-top: 0; }
        .res-t { color: var(--ach-link); font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
        .res-by { display: block; color: var(--ach-muted); font-size: .92rem; font-weight: 600; margin-top: 2px; }
        p { margin: 4px 0 0; a { color: var(--ach-link); } } }
}
