/* NODZ — Willys MB & Ford GPW Forum. Own CSS, no build step. */

/* ---- Fonts (self-hosted, OFL; see public/assets/fonts/README.md) ---- */
@font-face {
    font-family: "Saira Stencil One";
    src: url("../fonts/saira-stencil-one-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Courier Prime";
    src: url("../fonts/courier-prime-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Courier Prime";
    src: url("../fonts/courier-prime-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-latin-wght.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}
/* Worn typewriter face for dates and metadata (Apache License 2.0). Single weight: no synthetic bold. */
@font-face {
    font-family: "Special Elite";
    src: url("../fonts/special-elite-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #F4F0E3;
    --paper-deep: #EAE4D1;
    --paper-card: #F8F5EC;
    --ink: #20241C;
    /* Original Willys MB / Ford GPW colors: olive drab body, red oxide primer, blue lusterless flat
       (dashboard data plates), engine gray. Each one reaches at least 4.5:1 contrast on the paper color. */
    --ink-soft: #5A5D5A;        /* engine gray */
    --nav: #283021;
    --olive: #576C3F;           /* olive drab */
    --olive-dark: #435331;
    --rust: #7A2E2B;            /* red oxide primer */
    --rust-dark: #5E2220;
    --blue: #3A4F65;            /* blue lusterless flat */
    --line: #B9B29C;
    --line-strong: #20241C;
    --focus: #3A4F65;
    --ok: #3E5B2C;
    /* Text colors, separate from the fills above so dark mode can lighten text and keep the Willys fills. */
    --on-fill: #F4F0E3;         /* text on olive, rust and the dark bars */
    --rust-text: #7A2E2B;
    --rust-text-strong: #5E2220;
    --olive-text: #576C3F;
    --olive-text-strong: #435331;
    --blue-text: #3A4F65;

    --font-stencil: "Saira Stencil One", "Arial Narrow", Impact, "Franklin Gothic Medium", sans-serif;
    --font-meta: "Special Elite", "Courier Prime", "Courier New", Courier, monospace;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --radius: 4px;
    --gutter: 16px;
    --max: 1240px;
}

/* BODY_FONT=typewriter: Special Elite for all text. It has one weight, so no synthetic bold;
   emphasis comes from size and colour instead. */
:root.font-typewriter {
    --font-body: "Special Elite", "Courier Prime", "Courier New", Courier, monospace;
    font-synthesis: none;
}
.font-typewriter body { font-size: 1.02rem; line-height: 1.6; letter-spacing: .01em; }
.font-typewriter .post__body, .font-typewriter .post--opening .post__body { font-size: 1.08rem; line-height: 1.65; }
.font-typewriter :is(b, strong, th, label, .button, .topic-cell__title, .forum-row__name, .site-nav a,
    .last-post__name, .reply__title, .section-title, .project-card__name, .conversation__subject) { font-weight: 400; }

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
}

/*
 * Long words without spaces (usernames up to 32 characters, forum names, titles, places, emails, links)
 * may break anywhere instead of making the page wider than a phone screen. Flex and grid children get
 * min-width: 0 so they can shrink below their longest word.
 */
h1, h2, h3, h4, .backlink a, .meta, .lead, .hint, td, th, dd, dt, .event-tag, .upcoming__title,
.category-block__desc, .forum-tile__name, .forum-tile__desc, .forum-row__name, .forum-row__desc,
.topic-cell__title, .author__name, .post__body, .featured__name, .share-url, .account-row__value,
.admin-forum__head a, .site-stats dd a { overflow-wrap: anywhere; }
[data-install][hidden] { display: none !important; }
/* In the header only on phones (inside the menu); on larger screens the footer has the button. */
@media (min-width: 761px) { .nav-install { display: none !important; } }
.site-footer .footer-install { color: var(--on-fill); text-decoration: underline; font: inherit; padding: 0; }
.site-footer .footer-install:hover { color: #fff; }
.site-nav a.nav-username { display: inline-block; max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.forum-tile__main, .forum-row__main, .upcoming__list li > *, .site-stats__list div, .admin-forum__head,
.topic-cell > *, .page-head > *, .account-section__intro { min-width: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--rust-text); text-underline-offset: 2px; }
a:hover { color: var(--rust-text-strong); }

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; }
/* Long single words ("Gebruiksvoorwaarden") get a proper hyphen in the page's language before breaking anywhere. */
h1, h2 { hyphens: auto; -webkit-hyphens: auto; }

.stencil {
    font-family: var(--font-stencil);
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.meta, time {
    font-family: var(--font-meta);
    font-size: .9rem;
    color: var(--ink-soft);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    background: var(--rust);
    color: #fff;
    padding: .5rem 1rem;
    z-index: 10;
}
.skip-link:focus { top: .5rem; color: #fff; }

/* ---- Header ---- */
.site-header {
    background: var(--nav);
    color: var(--on-fill);
    border-bottom: 3px solid var(--olive-dark);
}
.site-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: .5rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    color: var(--on-fill);
    text-decoration: none;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(244, 240, 227, .35);
    border-radius: var(--radius);
}
.brand__logo { display: block; height: 44px; width: auto; }
.brand:hover .brand__logo { filter: brightness(1.06); }
.brand:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

.site-nav {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    align-items: center;
}
.site-nav a, .site-nav .link-button {
    color: var(--on-fill);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: .35rem .6rem;
    border-radius: var(--radius);
    display: inline-block;
}
.site-nav a:hover, .site-nav .link-button:hover { background: rgba(244, 240, 227, .12); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--rust); color: #fff; }
.site-nav__account a, .site-nav__account .link-button { font-weight: 500; font-size: .92rem; padding-left: .45rem; padding-right: .45rem; }

/* Staff dropdown: <details>, so it works without JavaScript. */
.nav-dropdown { position: relative; }
.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    color: var(--on-fill);
    font-weight: 600;
    font-size: 1.05rem;
    padding: .35rem .6rem;
    border-radius: var(--radius);
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: " ▾"; font-size: .8em; }
.nav-dropdown details[open] summary::after { content: " ▴"; }
.nav-dropdown summary:hover { background: rgba(244, 240, 227, .12); color: #fff; }
.nav-dropdown summary:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.nav-dropdown summary.is-current { background: var(--rust); color: #fff; }
.site-nav .nav-dropdown__menu {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    z-index: 20;
    min-width: 13rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .35rem;
    background: var(--nav);
    border: 1px solid rgba(244, 240, 227, .25);
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.nav-dropdown__menu a { display: block; white-space: nowrap; }

.header-icons { display: none; gap: .25rem; }
.icon-link { color: var(--on-fill); padding: .4rem; display: inline-flex; border-radius: var(--radius); }
.icon-link:hover { color: #fff; background: rgba(244, 240, 227, .12); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--on-fill);
    padding: .4rem;
    cursor: pointer;
    border-radius: var(--radius);
}

.link-button {
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    color: var(--rust-text);
    padding: 0;
}
.inline-form { display: inline; margin: 0; }

.notice-bar {
    background: var(--rust);
    color: #fff;
    padding: .5rem var(--gutter);
    text-align: center;
}
.notice-bar a { color: #fff; font-weight: 700; }

/* Site-wide announcement */
.announcement { background: var(--olive); color: #fff; border-bottom: 3px solid var(--nav); }
.announcement--warning { background: var(--rust); border-bottom-color: var(--rust-dark); }
.announcement[hidden] { display: none; }
.announcement__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: .55rem var(--gutter);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}
.announcement__text { margin: 0; overflow-wrap: anywhere; }
.announcement__tag { font-family: var(--font-meta); text-transform: uppercase; letter-spacing: .06em; margin-right: .35rem; }
.announcement a { color: #fff; font-weight: 700; }
.announcement__close {
    background: none;
    border: 1.5px solid currentColor;
    color: inherit;
    border-radius: 3px;
    font-size: 1.1rem;
    line-height: 1;
    padding: .15rem .45rem;
    cursor: pointer;
}
.announcement__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.form-card .announcement { border-radius: var(--radius); margin-bottom: .75rem; }

/* ---- Layout ---- */
.page {
    flex: 1;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.25rem var(--gutter) 3rem;
}
.page:focus { outline: none; }
.narrow { max-width: 560px; }

.site-footer {
    background: var(--nav);
    color: var(--on-fill);
    margin-top: 2rem;
}
.site-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.25rem var(--gutter);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.site-footer p { margin: 0; }
.site-footer .meta { color: #D8D3C2; }
.site-stats { background: var(--olive-dark); border-bottom: 1px solid rgba(244, 240, 227, .2); }
.site-stats__list {
    max-width: var(--max);
    margin: 0 auto;
    padding: .9rem var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
}
.site-stats__list div { display: flex; flex-direction: column; }
.site-stats dt { font-family: var(--font-meta); font-size: .85rem; color: #D8D3C2; }
.site-stats dd { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--on-fill); }
.site-stats dd a { color: var(--on-fill); }
.site-footer__credit { flex-basis: 100%; font-size: .95rem; }
.footer-donate { order: -1; }
.site-nav a.nav-support { border: 1.5px solid var(--rust); color: #F3D9D0; }
.site-nav a.nav-support span { color: #E07A62; }
.site-nav a.nav-support:hover, .site-nav a.nav-support.is-current { background: var(--rust); color: #fff; }
.site-nav a.nav-support:hover span, .site-nav a.nav-support.is-current span { color: #fff; }
.support-card {
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin: 0 0 2rem;
    padding: 1.1rem 1.4rem;
    background: var(--paper-card);
    border: 1.5px solid var(--rust);
    border-left-width: 8px;
    border-radius: var(--radius);
}
.support-card__heart { margin: 0; font-size: 2.4rem; line-height: 1; color: var(--rust-text); }
.support-card__text { flex: 1 1 280px; }
.support-card__text h2 { font-size: 1.5rem; margin: 0 0 .2rem; }
.support-card__text p { margin: 0; color: var(--ink-soft); }
.donate-option .button { margin-top: .25rem; }
.facts--stacked { grid-template-columns: 1fr; border: 0; padding: 0; }
.iban { font-family: var(--font-meta); font-size: 1.2rem; letter-spacing: .03em; user-select: all; }
.site-footer__credit a { color: var(--on-fill); font-weight: 600; }
@media (max-width: 760px) {
    .site-stats__list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.footer-links li { white-space: nowrap; }
.footer-links a { color: var(--on-fill); }
.danger-link { color: var(--rust-text-strong); font-weight: 600; }

/* ---- Private messages ---- */
.count-badge {
    display: inline-block;
    min-width: 1.4rem;
    padding: 0 .35rem;
    margin-left: .25rem;
    border-radius: 999px;
    background: var(--rust);
    color: #fff;
    font-size: .8rem;
    text-align: center;
    line-height: 1.4rem;
}
.icon-link--badge { position: relative; }
.count-badge--icon { position: absolute; top: -2px; right: -4px; margin: 0; min-width: 1.15rem; line-height: 1.15rem; font-size: .7rem; padding: 0 .25rem; }
/* Notifications and Messages in the desktop bar: an icon with the count on it; the word only for screen readers. */
.site-nav a.nav-icon { position: relative; display: inline-flex; align-items: center; }
.nav-icon__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-icon .count-badge { position: absolute; top: -1px; right: -3px; margin: 0; min-width: 1.15rem; line-height: 1.15rem; font-size: .7rem; padding: 0 .25rem; }
.conversation-list { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1.5px solid var(--line-strong); }
.conversation { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.conversation__subject { font-size: 1.15rem; font-weight: 600; flex: 1 1 60%; }
.conversation.is-unread .conversation__subject { font-weight: 800; }
.topic__title--small { font-size: clamp(1.6rem, 4vw, 2.2rem); font-family: var(--font-body); font-weight: 700; }
.message-list { list-style: none; padding: 0; margin: 0; }
.message { padding: .9rem 1rem; margin-bottom: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); max-width: 680px; }
.message--mine { margin-left: auto; border-color: var(--olive); background: #EEF0E4; }
.message .post__meta { margin-bottom: .4rem; }
.message .post__body { font-size: 1.05rem; }
.member-actions { margin: 0 0 1rem; }

/* ---- Legal pages ---- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
/* "Gebruiksvoorwaarden" is one long word: a bit smaller on phones so it fits on one line. */
.legal .page-head h1 { font-size: clamp(1.35rem, 6.2vw, 2.8rem); }
.legal table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; background: var(--paper-card); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.legal th { background: var(--paper-deep); }
.legal .placeholder { background: #F6E6DF; padding: 0 .25rem; border-radius: 3px; }
/* The data table needs more room than the text: wider on desktop, with sensible column widths. */
@media (min-width: 901px) {
    .legal table { width: min(1040px, calc(100vw - 4rem)); max-width: none; font-size: .95rem; }
    .legal th:nth-child(1), .legal td:nth-child(1) { width: 24%; }
    .legal th:nth-child(2), .legal td:nth-child(2) { width: 34%; }
    .legal th:nth-child(3), .legal td:nth-child(3) { width: 14%; }
}
@media (max-width: 760px) {
    .legal table, .legal tbody, .legal tr, .legal td, .legal th { display: block; width: 100%; }
    .legal thead { display: none; }
    .legal tr { border-bottom: 2px solid var(--olive); padding: .25rem 0; }
    .legal :is(td, th) { border: 0; padding: .2rem .6rem; }
    .legal caption { display: block; width: 100%; }
    .rank-table tr { display: grid; grid-template-columns: 1fr 1fr; }
    .legal :is(td, th)[data-label]::before { content: attr(data-label); display: block; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
}

/* ---- Flash and notices ---- */
.flashes { margin-bottom: 1rem; }
.flash {
    margin: 0 0 .5rem;
    padding: .7rem 1rem;
    border-left: 5px solid var(--olive);
    background: var(--paper-card);
    border-radius: var(--radius);
}
.flash--success { border-color: var(--ok); }
.flash--error { border-color: var(--rust); background: #F6E6DF; }
.flash--info { border-color: var(--blue); }
.notice {
    padding: .7rem 1rem;
    background: var(--paper-deep);
    border-left: 5px solid var(--olive);
    border-radius: var(--radius);
}
/* Empty lists ("No conversations yet."): a quiet dashed box instead of loose text. */
.empty {
    color: var(--ink-soft);
    font-style: italic;
    padding: 1.25rem 1rem;
    margin: .5rem 0 1.25rem;
    text-align: center;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .35);
}
.region-map .empty, .stats-table .empty { text-align: left; border: 0; background: none; padding: .5rem 0; margin: 0; }

/* ---- Buttons ---- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    padding: .65rem 1.3rem;
    border-radius: var(--radius);
    border: 2px solid var(--ink);
    background: var(--paper-card);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
}
.button:hover { background: var(--paper-deep); color: var(--ink); }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.button--rust { background: var(--rust); border-color: var(--rust); color: #fff; }
.button--rust:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.button--olive { background: var(--olive); border-color: var(--olive); color: #fff; }
.button--olive:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: #fff; }
.button--outline { background: transparent; }
.button--small { font-size: .92rem; padding: .35rem .75rem; min-height: 36px; }

.badge {
    display: inline-block;
    font-family: var(--font-meta);
    font-size: .82rem;
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .05rem .45rem;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    color: var(--ink);
    background: transparent;
    vertical-align: middle;
}
.badge--archived { border-color: var(--olive); color: var(--olive-text); }
.badge--hidden { border-color: var(--rust); color: var(--rust-text); }
.badge--pinned { background: var(--nav); border-color: var(--nav); color: #fff; }
.badge--sale { background: var(--olive); border-color: var(--olive); color: #fff; }
.badge--wanted { background: #fff; border-color: var(--rust); color: var(--rust-text); }
.badge--sold, .badge--found { background: var(--paper-deep); border-color: var(--line); color: var(--ink-soft); }
.badge--solved { background: #2F6B3A; border-color: #2F6B3A; color: #fff; text-decoration: none; }
.badge--solved::before { content: "✔ "; }
.badge--status { background: var(--paper-deep); border-color: var(--line); color: var(--ink); }
.badge--status-restoration { border-color: var(--rust); color: var(--rust-text); background: #fff; }
.badge--status-running { background: var(--olive); border-color: var(--olive); color: #fff; }
.badge--status-sold { color: var(--ink-soft); }
.event-tag { white-space: normal; }
.link-button--strong { font-weight: 700; color: #2F6B3A; }

/* Solved question */
.post.is-solution { border-left: 4px solid #2F6B3A; padding-left: .9rem; }
.solution-box {
    border: 1.5px solid #2F6B3A;
    border-radius: var(--radius);
    background: #EEF4EC;
    padding: .7rem 1rem;
    margin: 0 0 1rem;
}
.solution-box__title { margin: 0 0 .2rem; font-weight: 700; color: #2F6B3A; }
.solution-box__text { margin: 0 0 .3rem; }

/* Event */
.event-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem 1.25rem;
    border: 1.5px solid var(--olive);
    border-radius: var(--radius);
    background: var(--paper-card);
    padding: .6rem 1rem;
    margin: 0 0 1rem;
}
.event-box p { margin: 0; }
.event-fields { border: 1px dashed var(--line); border-radius: var(--radius); padding: .5rem 1rem .25rem; margin: 0 0 1rem; }
.event-fields legend { font-weight: 700; padding: 0 .3rem; }
.upcoming { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); margin-bottom: 1.5rem; }
.upcoming__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem;
    background: var(--rust); color: #fff; padding: .45rem 1rem; border-radius: var(--radius) var(--radius) 0 0; }
.upcoming__head h2 { margin: 0; font-size: 1.4rem; }
.upcoming__ics { color: #fff; font-size: .9rem; }
.upcoming__list { list-style: none; margin: 0; padding: 0; }
.upcoming__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .55rem 1rem; border-top: 1px solid var(--line); }
.upcoming__list li:first-child { border-top: 0; }
.upcoming__title { font-weight: 700; color: var(--rust-text); text-decoration: none; }
.upcoming__title:hover { text-decoration: underline; }
.more-link { text-align: right; margin: -.5rem 0 1.5rem; }

/* Poll */
.poll { border: 1.5px solid var(--olive); border-radius: var(--radius); background: var(--paper-card); padding: .8rem 1rem; margin: 0 0 1.25rem; }
.poll__question { margin: 0 0 .6rem; font-size: 1.2rem; }
.poll__options { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .55rem; }
.poll__option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, 14rem) auto; align-items: center; gap: .3rem 1rem; }
.poll__option.is-mine { font-weight: 700; }
.poll__bar { width: 100%; height: .8rem; appearance: none; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-deep); overflow: hidden; }
.poll__bar::-webkit-progress-bar { background: var(--paper-deep); }
.poll__bar::-webkit-progress-value { background: var(--olive); }
.poll__bar::-moz-progress-bar { background: var(--olive); }
.poll__count { white-space: nowrap; }
.poll-fields { margin: 0 0 1rem; }
.poll-fields summary { cursor: pointer; font-weight: 700; color: var(--olive-text); }
@media (max-width: 760px) {
    .poll__option { grid-template-columns: 1fr; }
}

/* Vehicle timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--olive); }
.timeline__item { position: relative; padding: 0 0 1.2rem .5rem; }
.timeline__item::before {
    content: "";
    position: absolute;
    left: -1.65rem;
    top: .35rem;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    background: var(--rust);
    border: 2px solid var(--paper);
}
.timeline__date { margin: 0; display: flex; gap: .6rem; align-items: baseline; }
.timeline__text { margin: .2rem 0 .4rem; }
.timeline__photos { display: flex; flex-wrap: wrap; gap: .4rem; }
.timeline__photos img { width: 120px; height: 80px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }

/* Photos at full size */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    background: rgba(20, 24, 16, .94);
    padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-open { overflow: hidden; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: .5rem; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; border-radius: 3px; }
.lightbox__counter { color: #E8E3D3; font-family: var(--font-meta); font-size: .9rem; }
.lightbox button { background: rgba(244, 240, 227, .12); color: #fff; border: 1.5px solid rgba(244, 240, 227, .5); border-radius: var(--radius); cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(244, 240, 227, .25); outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { position: absolute; top: .75rem; right: .75rem; font-size: 1.6rem; line-height: 1; padding: .2rem .6rem; }
.lightbox__nav { font-size: 2.2rem; line-height: 1; padding: .4rem .7rem; margin: 0 .5rem; }
.lightbox__nav[hidden] { visibility: hidden; display: block; }

/* Admin statistics */
.stats-totals { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stats-totals dd { font-size: 1.5rem; }
.stats-chart__svg { display: block; width: 100%; height: auto; max-height: 260px; }
.stats-chart .bar-views { fill: #C7CDAE; }
.stats-chart .bar-visitors { fill: var(--olive); }
.stats-chart g:hover rect { fill: var(--rust); }
.stats-chart .axis { stroke: var(--line); stroke-width: 1; }
.stats-chart .axis-label { font-family: var(--font-meta); font-size: 12px; fill: var(--ink-soft); }
.legend { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: middle; }
.legend--visitors { background: var(--olive); }
.legend--views { background: #C7CDAE; }
.stats-lists { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem 2rem; align-items: start; margin-top: 1rem; }
@media (max-width: 760px) { .stats-lists { grid-template-columns: 1fr; } }
/* Visitors by country: each row opens the country. */
.country-list { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.country-list a { display: flex; align-items: baseline; gap: .6rem; padding: .55rem .4rem; border-bottom: 1px solid var(--line);
    color: inherit; text-decoration: none; }
.country-list a:hover { background: rgba(87, 108, 63, .14); }
.country-list a:focus-visible { outline: 3px solid #3A4F65; outline-offset: -3px; }
.country-list__name { flex: 1; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.country-list__count { color: var(--ink-soft); font-family: var(--font-meta); font-size: .88rem; }
.visits + .hint { margin-top: 1.2rem; }
@media (max-width: 600px) { .visit__when { min-width: 0; flex-basis: 100%; } }
/* Recent visits: one line per visit, the pages open underneath. */
.visits { margin-top: 1.6rem; }
.stats-lists + .hint, .visits + .hint, .empty + .hint { margin-top: 1.2rem; }
.stats-reset { margin-top: 2rem; max-width: 40rem; }
.stats-reset .section-title { margin-top: 0; }
.visit-list { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 1px solid var(--line, #C9C2AC); }
.visit { border-bottom: 1px solid var(--line, #C9C2AC); }
.visit summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .8rem; padding: .5rem .2rem; cursor: pointer; }
.visit summary:focus-visible { outline: 3px solid #3A4F65; outline-offset: 2px; }
.visit__when { font-family: var(--font-meta); font-size: .85rem; min-width: 9.5rem; }
.visit__lang { font-weight: 600; }
.visit__facts { color: var(--ink-soft); font-size: .9rem; }
.visit__entry { flex-basis: 100%; font-size: .9rem; overflow-wrap: anywhere; }
.visit__entry::before { content: "→ "; color: var(--ink-soft); }
.visit__pages { margin: 0 0 .7rem 1.6rem; padding: 0; font-size: .92rem; }
.visit__pages li { margin: .15rem 0; overflow-wrap: anywhere; }
.visit__pages .meta { margin-left: .4rem; }
.visit__time { display: inline-block; min-width: 4.6rem; font-family: var(--font-meta); font-size: .82rem; color: var(--ink-soft); }

/* Province map (inline SVG from public/assets/img/benelux-provinces.svg; colours only here) */
.benelux-map { max-width: 30rem; margin: .5rem 0; }
.benelux-map__svg { display: block; width: 100%; height: auto; }
.benelux-map .province { fill: var(--paper-card); stroke: #B9B29C; stroke-width: .8; stroke-linejoin: round; transition: fill .15s; }
.benelux-map .province.shade-0 { fill: #E8E3D2; }
.benelux-map .province.shade-1 { fill: #E3E4D4; }
.benelux-map .province.shade-2 { fill: #C7CDAE; }
.benelux-map .province.shade-3 { fill: #8E9A6C; }
.benelux-map .province.shade-4 { fill: var(--olive); }
.benelux-map a:hover .province, .benelux-map a:focus .province { fill: var(--rust); }
.benelux-map a:focus { outline: none; }
.benelux-map a:focus-visible .province { stroke: var(--ink); stroke-width: 2.5; }
.benelux-map .province.is-selected { fill: var(--rust); }
.benelux-map .border-country { fill: none; stroke: var(--rust); stroke-width: 2; stroke-linejoin: round; pointer-events: none; }
.benelux-map .map-count {
    font-family: var(--font-meta);
    font-size: 14px;
    fill: var(--ink);
    stroke: var(--paper);
    stroke-width: 3px;
    paint-order: stroke;
    pointer-events: none;
}
.region-map__layout { display: grid; grid-template-columns: minmax(16rem, 30rem) minmax(0, 1fr); gap: 1rem 2.5rem; align-items: start; }
.region-map__layout .benelux-map { margin: 0; }
.region-map__side .section-title { margin-top: 0; }
.region-map__list { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; gap: .35rem; }
.region-map__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); max-width: 26rem; }
.region-map__list a { font-weight: 700; }
@media (max-width: 760px) {
    .region-map__layout { grid-template-columns: 1fr; }
    .region-map__side { order: -1; }
}

/* Region map (schematic tiles, used when the SVG map is missing) */
.region-map { margin-bottom: 1.5rem; }
.region-map__grid {
    list-style: none;
    margin: .5rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 7.5rem));
    grid-template-rows: repeat(7, auto);
    gap: .3rem;
}
.region-map__tile a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 4.2rem;
    padding: .3rem .4rem;
    border-radius: 3px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--paper-card);
    font-size: .85rem;
    line-height: 1.25;
}
.region-map__tile--be a { border-style: dashed; }
.region-map__tile--1 a { background: #E3E4D4; }
.region-map__tile--2 a { background: #C7CDAE; }
.region-map__tile--3 a { background: #8E9A6C; color: #fff; }
.region-map__tile--4 a { background: var(--olive); color: #fff; }
.region-map__tile a:hover, .region-map__tile a:focus-visible { outline: 2px solid var(--rust); outline-offset: 1px; }
.region-map__tile.is-selected a { outline: 3px solid var(--rust); }
.region-map__name { font-weight: 700; overflow-wrap: anywhere; }
.region-map__count { font-size: .78rem; opacity: .9; }
.col-0 { grid-column: 1; } .col-1 { grid-column: 2; } .col-2 { grid-column: 3; } .col-3 { grid-column: 4; } .col-4 { grid-column: 5; }
.row-0 { grid-row: 1; } .row-1 { grid-row: 2; } .row-2 { grid-row: 3; } .row-3 { grid-row: 4; } .row-4 { grid-row: 5; } .row-5 { grid-row: 6; } .row-6 { grid-row: 7; }
@media (max-width: 760px) {
    .region-map__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .2rem; }
    .region-map__tile a { min-height: 3.6rem; font-size: .7rem; padding: .2rem; }
    .region-map__count { font-size: .65rem; }
}

/* For Sale / Wanted tabs above a classifieds forum */
.listing-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.listing-tabs a {
    padding: .3rem .9rem;
    border: 1.5px solid var(--olive);
    border-radius: 999px;
    color: var(--olive-text);
    text-decoration: none;
    font-weight: 600;
}
.listing-tabs a:hover { background: rgba(87, 108, 63, .1); }
.listing-tabs a[aria-current="page"] { background: var(--olive); color: #fff; }
.badge--pinned::before { content: "★ "; }
.topic-table tr.is-pinned { background: rgba(87, 108, 63, .07); }
/* "New" flag: a small stencilled tab next to the title, not a full badge. */
.flag-new {
    display: inline-block;
    flex: none;
    font-family: var(--font-meta);
    font-size: .68rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--rust);
    padding: .22rem .38rem .18rem;
    border-radius: 2px;
}
a.flag-new:hover, a.flag-new:focus-visible { background: var(--rust-dark); color: #fff; }
.search-hit {
    display: block;
    margin-top: .2rem;
    padding-left: .6rem;
    border-left: 3px solid var(--line);
    color: var(--ink-soft);
    font-size: .92rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.search-hit:hover { color: var(--ink); border-left-color: var(--rust); }
.search-hit mark { background: #F0DFA8; color: var(--ink); padding: 0 .1em; }
.topic-cell__titleline { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; min-width: 0; }
.post__meta .flag-new { align-self: center; }

/* Thanks */
.post__footer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: .75rem; }
.post__footer .post__actions { margin-top: 0; }
.post__footer:empty { display: none; }
.thanks-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.thanks-button {
    font: inherit;
    font-size: .92rem;
    background: transparent;
    border: 1.5px solid var(--olive);
    color: var(--olive-text);
    border-radius: 999px;
    padding: .2rem .8rem;
    cursor: pointer;
}
.thanks-button:hover { background: rgba(87, 108, 63, .1); }
.thanks-button.is-on { background: var(--olive); color: #fff; }
.thanks-count { font-family: var(--font-meta); font-size: .9rem; color: var(--ink-soft); }

/* Follow */
.topic__follow { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; margin-top: .6rem; }

/* Member list */
.member-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.member-card { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); }
.member-card__text { display: grid; gap: .15rem; min-width: 0; }
.member-card__name { font-weight: 700; overflow-wrap: anywhere; }
.badge--staff { background: var(--olive); border-color: var(--olive); color: #fff; }
.badge--supporter { border-color: var(--rust); color: var(--rust-text); background: #F6E6DF; }
.badge--supporter::before { content: "♥ "; }
.supporter-wall ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.supporter-wall a { font-family: var(--font-meta); font-size: 1.05rem; }
.supporter-admin { margin-bottom: 1rem; max-width: 520px; }
.thanks__heart { font-size: 3rem; line-height: 1; color: var(--rust-text); margin: 0 0 .25rem; }
.check-email__icon { font-size: 3rem; line-height: 1; color: var(--olive-text); margin: 0 0 .25rem; }
.check-email__sent {
    border-left: 4px solid var(--olive);
    padding: .6rem .9rem;
    background: rgba(87, 108, 63, .1);
    font-weight: 600;
    overflow-wrap: anywhere;
}
.check-email__steps li { margin-bottom: .4rem; }

.tag {
    font-family: var(--font-meta);
    font-size: .9rem;
    white-space: nowrap; /* "Ford GPW" stays one label instead of breaking over two lines */
    padding: .05rem .4rem;
    background: var(--paper-deep);
    border-radius: 3px;
    color: var(--ink);
}
.tag--link { text-decoration: none; color: var(--rust-text); }

/* ---- Hero ---- */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    margin: 0 calc(var(--gutter) * -1) 1.5rem;
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--line);
}
.hero--photo { grid-template-columns: minmax(300px, 5fr) 7fr; }
.hero__title {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    border-left: 8px solid var(--rust);
    padding-left: 1rem;
    margin-bottom: .75rem;
}
.hero__lead { font-size: 1.25rem; margin: 0 0 1.25rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero--photo { position: relative; overflow: hidden; }
.hero__text { position: relative; z-index: 1; }
/* Fixed workshop photo that fades into the paper background (left and bottom edges). */
.hero__photo { margin: 0 0 0 -12%; position: relative; }
.hero__photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 60% 50%;
    filter: sepia(.35) contrast(1.05);
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 22%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 22%);
    mask-composite: intersect;
}

/* ---- Categories ---- */
/* Forum index: one full-width block per category (olive head bar, like the topic lists), its forums
   below in two columns on wide screens and one on phones. */
.category-block {
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-card);
}
.category-block.is-archived { border-style: dashed; }
.category-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .15rem 1rem;
    background: var(--olive);
    color: var(--on-fill);
    padding: .55rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
}
.category-block__title { margin: 0; font-size: 1.55rem; overflow-wrap: anywhere; hyphens: manual; }
.category-block__title a { color: var(--on-fill); text-decoration: none; }
.category-block__title a:hover, .category-block__title a:focus-visible { color: #fff; text-decoration: underline; }
.category-block__desc { margin: 0; flex: 1 1 22rem; color: rgba(244, 240, 227, .85); font-size: .95rem; }
.forum-tiles { list-style: none; margin: 0; padding: 0; }
.forum-tile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .25rem 1.5rem;
    padding: .7rem 1rem;
    border-top: 1px solid var(--line);
}
.forum-tile:first-child { border-top: 0; }
.forum-tile__main { min-width: 0; }
.forum-tile__name { font-size: 1.15rem; font-weight: 700; color: var(--rust-text); text-decoration: none; }
.forum-tile__name:hover { text-decoration: underline; }
.forum-tile__desc { margin: .1rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.forum-tile__meta { margin: 0; font-size: .85rem; display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
@media (max-width: 760px) {
    .forum-tile { flex-direction: column; align-items: flex-start; }
    .forum-tile__meta { flex-direction: row; flex-wrap: wrap; gap: 0 .6rem; align-items: baseline; text-align: left; }
    .category-block__title { font-size: 1.35rem; }
}

.forum-rows { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1.5px solid var(--line-strong); }
.forum-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
}
.forum-row__name { font-size: 1.2rem; font-weight: 700; }
.forum-row__desc { margin: .2rem 0 0; color: var(--ink-soft); }
.forum-row__stats { display: flex; flex-direction: column; align-items: flex-end; }

/* ---- Page heads ---- */
.backlink { margin-bottom: .5rem; }
.backlink a {
    font-family: var(--font-stencil);
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--rust-text);
}
.page-head {
    border-bottom: 1.5px solid var(--rust);
    padding-bottom: .75rem;
    margin-bottom: 1.25rem;
}
.page-head h1 { font-size: clamp(1.65rem, 7vw, 2.8rem); }
.page-head .lead, .lead { margin: 0; font-size: 1.1rem; color: var(--ink-soft); }
.page-head--actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.section-title {
    font-size: 1.3rem;
    margin: 1.5rem 0 .75rem;
}

/* ---- Topic list table ---- */
.topic-list { margin-bottom: 1.5rem; }
.topic-list__head {
    background: var(--olive);
    color: var(--on-fill);
    padding: .5rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
}
.topic-list__head h2, .topic-list__head h3 { margin: 0; font-size: 1.7rem; }
.topic-list__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.topic-list__head form { margin: 0; }
.topic-list__head .link-button {
    color: var(--on-fill);
    font-size: .92rem;
    font-weight: 600;
    border: 1.5px solid rgba(244, 240, 227, .75);
    border-radius: var(--radius);
    padding: .25rem .7rem;
    text-decoration: none;
}
.topic-list__head .link-button:hover { background: var(--paper); color: var(--olive-text); }
.topic-list__head .link-button:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.topic-list .empty { border: 1px solid var(--line); border-top: 0; padding: 1rem; margin: 0; }
.topic-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--paper-card);
}
.topic-table thead th {
    text-align: left;
    font-weight: 700;
    font-size: .95rem;
    padding: .45rem .75rem;
    background: var(--paper-deep);
    border-bottom: 1px solid var(--line);
}
.topic-table td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.topic-table tr:last-child td { border-bottom: 0; }
.topic-table .num { text-align: center; font-size: 1.15rem; width: 7rem; }
.topic-table tr.is-hidden { background: #F3E3DC; }
.topic-cell { display: flex; gap: 1rem; align-items: center; }
.topic-cell__thumb {
    width: 160px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    flex: none;
    border: 1px solid var(--line);
}
.topic-cell__thumb--empty { display: block; background: var(--olive); }
.topic-cell__text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.topic-cell__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rust-text);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.topic-cell__title:hover { text-decoration: underline; }
.topic-cell .meta a { color: var(--ink-soft); }
.last-post { width: 15rem; }
.last-post__name { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
.last-post .author__rank { display: block; }
.last-post .meta { display: block; }

/* ---- Topic page ---- */
.topic__head { border-bottom: 1.5px solid var(--rust); padding-bottom: .75rem; margin-bottom: 1.25rem; }
.topic__title { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: .35rem; overflow-wrap: anywhere; }
.topic__badges { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.post {
    padding: 1rem 0 1.25rem;
    border-bottom: 1.5px solid var(--rust);
    scroll-margin-top: 1rem;
}
.post:target { background: linear-gradient(90deg, rgba(122, 46, 43, .07), transparent 60%); }
.post.is-hidden { background: #F3E3DC; padding-left: .75rem; padding-right: .75rem; }
.post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .9rem;
    margin-bottom: .75rem;
    font-family: var(--font-meta);
}
.post__date { padding-left: .9rem; border-left: 1.5px solid var(--ink); }
.meta-link { color: var(--ink); text-decoration: none; }
.meta-link:hover { text-decoration: underline; }
.author { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
/* Profile photos and initial placeholders */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.avatar--small { width: 36px; height: 36px; font-size: 1rem; }
.avatar--large { width: 112px; height: 112px; font-size: 3rem; }
.avatar--initial { font-family: var(--font-stencil); color: var(--on-fill); line-height: 1; }
.avatar--tone0 { background: var(--olive); }
.avatar--tone1 { background: var(--rust); }
.avatar--tone2 { background: var(--nav); }
.avatar--tone3 { background: #6B5D3F; }
.avatar--tone4 { background: var(--blue); }
img.avatar { border: 2px solid var(--paper-deep); background: var(--paper-deep); }
.member-head { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.avatar-edit { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.avatar-edit form { display: grid; gap: .35rem; justify-items: start; margin-bottom: .5rem; }
.avatar-edit label { font-weight: 700; }
.staff-avatar-remove { margin-bottom: 1rem; }
.staff-suspend { margin-bottom: 1rem; max-width: 560px; }
.notice--alert { border-left-color: var(--rust); background: #F6E6DF; }

/* Rank insignia (chevrons) */
.author__rank { display: inline-flex; align-items: center; gap: .25rem; }
.rank-insignia { color: var(--olive-text); flex: none; }
.rank-insignia--officer { color: #B4B9B6; }
.author__rank--large .rank-insignia { width: 20px; height: auto; }

/* Photos placed inside the text with [photo=N] */
.post__body .post-photo { margin: .6rem 0; white-space: normal; }
/* A single photo keeps its own shape (portrait or landscape): no bars beside it, never higher than 600px. */
.post__body .post-photo img { display: block; width: auto; height: auto; max-width: min(100%, 900px); max-height: 600px; border-radius: var(--radius); }
/* Photos placed right after each other: one row, same height, cropped to fit (full photo in the lightbox). */
.post__body .post-photo-row { display: grid; gap: .5rem; margin: .6rem 0; max-width: 900px; white-space: normal; }
.post__body .post-photo-row--2 { grid-template-columns: 1fr 1fr; }
.post__body .post-photo-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.post__body .post-photo-row .post-photo { margin: 0; }
.post__body .post-photo-row .post-photo img { aspect-ratio: 4 / 3; height: auto; max-height: none; object-fit: cover; }
@media (max-width: 480px) {
    .post__body .post-photo-row--3 { grid-template-columns: 1fr 1fr; }
    .post__body .post-photo-row--3 .post-photo:first-child { grid-column: span 2; }
}
.post__body + .post__photos { margin-top: 1rem; }
.photo-preview figure { display: flex; flex-direction: column; gap: .25rem; }
.photo-preview__insert { font: inherit; font-size: .75rem; padding: .15rem .3rem; border: 1px solid var(--olive); background: var(--paper-card); color: var(--olive-text-strong); border-radius: 3px; cursor: pointer; }
/* JS with the 📷 toolbar button: hide the separate "Add Photos" button; previews and limits stay visible. */
.photo-input__how--toolbar, .photo-input--toolbar .photo-input__how--plain { display: none; }
.photo-input--toolbar .photo-input__how--toolbar { display: inline; }
.photo-preview__remove { border-color: var(--rust); color: var(--rust-text-strong); }
.photo-preview__cover { display: flex; align-items: center; gap: .25rem; font-size: .75rem; cursor: pointer; }
.photo-preview__only:has(input:disabled) { opacity: .45; cursor: default; }
.photo-preview figure.is-cover-only img { outline: 3px solid var(--olive); outline-offset: -3px; }
.photo-preview__insert:disabled { opacity: .45; cursor: default; }
.photo-preview__cover input { margin: 0; accent-color: var(--olive); }
.format-bar__button--photo { min-width: 2.6rem; }
.photo-tag { font-size: .85rem; background: var(--paper-deep); padding: 0 .3rem; border-radius: 3px; }

/* FAQ as a field manual */
.fm-cover {
    border: 2px solid var(--ink);
    outline: 1px solid var(--ink);
    outline-offset: 3px;
    padding: 1.25rem 1.5rem;
    margin: .25rem 0 1.75rem;
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(87, 108, 63, .05) 14px 28px),
        var(--paper-card);
}
.fm-cover__kicker { margin: 0 0 .35rem; font-family: var(--font-meta); text-transform: uppercase; letter-spacing: .08em; color: var(--rust-text); font-size: .9rem; }
.fm-cover h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 0 0 .4rem; }
.fm-cover .lead { margin: 0; }
.fm-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.fm-toc { position: sticky; top: 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-card); padding: .9rem 1rem; }
.fm-toc__title { font-size: 1.15rem; margin: 0 0 .5rem; }
.fm-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.fm-toc a { text-decoration: none; color: var(--ink); display: flex; gap: .5rem; }
.fm-toc a:hover { color: var(--rust-text); }
.fm-toc__num { font-family: var(--font-stencil); color: var(--rust-text); min-width: 2rem; }
.fm-tools { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); display: grid; gap: .4rem; }
.fm-tools label { font-weight: 700; }
.fm-section { margin-bottom: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); overflow: hidden; }
.fm-section__title { margin: 0; padding: .55rem 1rem; background: var(--olive); color: var(--on-fill); font-size: 1.35rem; }
.fm-section__title span { opacity: .75; margin-right: .35rem; }
.fm-section__intro { margin: .9rem 1rem .4rem; }
.fm-section > .hint { margin: .5rem 1rem 1rem; }
.fm-section > .faq-item { margin: 0 1rem; }
.fm-section > .faq-item:last-child { border-bottom: 0; }
.fm-subtitle { margin: 1rem 1rem .5rem; font-size: 1rem; font-family: var(--font-meta); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.insignia-chart { list-style: none; margin: 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.insignia-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
    padding: .9rem .6rem; border: 1.5px solid var(--olive); border-radius: var(--radius); background: var(--paper);
}
.insignia-card--officer { border-color: #8D928F; background: var(--paper-deep); }
.insignia-card__badge { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.insignia-card__badge .rank-insignia { width: 34px; height: auto; }
.insignia-card__none { font-family: var(--font-meta); color: var(--ink-soft); font-size: .85rem; }
.insignia-card__rank { font-size: 1.05rem; line-height: 1.15; }
.insignia-card__meta { font-family: var(--font-meta); font-size: .82rem; color: var(--ink-soft); }
.insignia-card__need { font-weight: 700; color: var(--rust-text); font-size: .95rem; }
.faq-item__num { font-family: var(--font-meta); color: var(--rust-text); margin-right: .25rem; }
.faq-item[hidden] { display: none; }
@media (max-width: 860px) {
    .fm-layout { grid-template-columns: 1fr; gap: 1rem; }
    .fm-toc { position: static; }
    .insignia-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* FAQ (shared) */
.faq-toc ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.rank-table caption { text-align: left; font-family: var(--font-meta); color: var(--ink-soft); padding-bottom: .4rem; }
.rank-table th[scope="row"] { font-weight: 700; background: transparent; }
.rank-table__insignia { width: 4rem; }
.rank-table__insignia .rank-insignia { display: block; }
.rank-table__staff { background: var(--paper-deep); }
.faq-item { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq-item summary:hover { color: var(--rust-text); }
.faq-item p { margin: .5rem 0 .25rem; }
.faq-item:target { background: linear-gradient(90deg, rgba(122, 46, 43, .07), transparent 60%); }

/* Formatted posts */
.post__body blockquote.bb-quote {
    margin: .4rem 0;
    padding: .5rem .9rem;
    border-left: 4px solid var(--olive);
    background: var(--paper-deep);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .95em;
}
.post__body blockquote.bb-quote cite { display: block; font-style: normal; font-family: var(--font-meta); font-size: .85rem; color: var(--ink-soft); }
.post__body a { overflow-wrap: anywhere; }
.video-embed { position: relative; max-width: 720px; aspect-ratio: 16 / 9; margin: .5rem 0; background: var(--nav); border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-embed__link {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .35rem; color: var(--on-fill); text-decoration: none; text-align: center; padding: 1rem; white-space: normal;
}
.video-embed__link:hover { color: #fff; background: rgba(122, 46, 43, .25); }
.video-embed__play { font-size: 3rem; line-height: 1; }
.video-embed__text { font-weight: 700; font-size: 1.1rem; }
.video-embed__note { font-size: .85rem; opacity: .85; }
.format-bar { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .35rem; }
.format-bar__button {
    min-width: 2.25rem; min-height: 2.25rem; padding: 0 .5rem; font: inherit; font-size: .95rem; cursor: pointer;
    border: 1.5px solid var(--ink-soft); border-radius: var(--radius); background: var(--paper-card); color: var(--ink);
}
.format-bar__button:hover { background: var(--paper-deep); }
.format-bar__button--b { font-weight: 800; }
.format-bar__button--i { font-style: italic; }
.format-bar__button--u { text-decoration: underline; }
.format-help { margin: -.5rem 0 .9rem; font-size: .92rem; color: var(--ink-soft); }
.format-help summary { cursor: pointer; }
.format-help ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.format-help code { font-size: .85rem; background: var(--paper-deep); padding: 0 .25rem; border-radius: 3px; }
.edit-photos { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1rem 1rem; margin: 0 0 1rem; }
.edit-photos ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.edit-photos img { width: 160px; height: 110px; object-fit: cover; border-radius: 3px; }
.author__icon { color: var(--ink); }
.author__name { font-family: var(--font-meta); font-weight: 400; font-synthesis: none; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.author__name:hover { color: var(--rust-text); }
.author__rank { font-family: var(--font-meta); color: var(--olive-text); font-size: .95rem; }
.author .author__rank::before { content: "· "; color: var(--ink); }
.author__rank--large { font-size: 1.15rem; }
.post__body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}
.post--opening .post__body { font-size: 1.25rem; }
.post__photos { display: grid; gap: .5rem; margin-bottom: 1rem; }
.post__photos--2 { grid-template-columns: 1fr 1fr; }
.post__photos--3 { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.post__photos--3 .post__photo-figure:first-child { grid-row: span 2; }
/* Four or more photos: an even grid of three (two on phones). */
.post__photos--many { grid-template-columns: repeat(3, 1fr); }
.post__photo-figure { margin: 0; min-height: 0; display: flex; flex-direction: column; gap: .2rem; }
.post__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    max-height: 640px;
}
.post__photos--1 .post__photo img { aspect-ratio: auto; width: auto; height: auto; max-width: 100%; object-fit: contain; }
.post__photos--1 .post__photo-figure { justify-self: start; }
/* Fixed shapes so mixed portrait/landscape photos always line up. */
.post__photo { display: block; min-height: 0; }
.post__photos--2 .post__photo img, .post__photos--many .post__photo img { aspect-ratio: 4 / 3; height: auto; }
.post__photos--3 { height: clamp(300px, 42vw, 560px); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.post__photos--3 .post__photo-figure { height: 100%; }
.post__photos--3 .post__photo { flex: 1 1 auto; }
.post__photos--3 .post__photo img { height: 100%; max-height: none; }
.photo-caption { font-size: .9rem; color: var(--ink-soft); line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.post-photo .photo-caption { margin-top: .25rem; max-width: 900px; }
.post__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    margin-top: .75rem;
    font-size: .95rem;
}
.mod-inline { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: 0; }
.mod-inline input { font: inherit; font-size: .9rem; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; }

.reply { margin-top: 1.5rem; }
.reply__title { font-size: 1.5rem; font-weight: 700; }
.reply-form .field { margin-bottom: .75rem; }
.reply-form__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}
/* The photo field's parts join the grid so "Add Photos" and "Post Reply" sit side by side. */
.reply-form__actions .photo-input { display: contents; }
.reply-form__actions .photo-input__label { grid-column: 1; grid-row: 1; margin: 0; }
.reply-form__actions > .button { grid-column: 2; grid-row: 1; width: 100%; }
.reply-form__actions .photo-input__file,
.reply-form__actions .hint,
.reply-form__actions .photo-preview,
.reply-form__actions .field__error { grid-column: 1 / -1; margin: 0; }
/* Phones: "Add Photos" and "Post Reply" each get a full row instead of being squeezed side by side. */
@media (max-width: 480px) {
    .reply-form__actions { grid-template-columns: 1fr; }
    .reply-form__actions .photo-input__label { grid-column: 1; grid-row: 1; }
    .reply-form__actions > .button { grid-column: 1; grid-row: 2; }
}
.post-mod summary { cursor: pointer; color: var(--ink-soft); }
.post-mod[open] summary { margin-bottom: .4rem; }

.mod-panel {
    margin-top: 2rem;
    padding: 1rem;
    border: 1.5px dashed var(--olive);
    border-radius: var(--radius);
}
.mod-panel .section-title { margin-top: 0; }
.owner-panel {
    margin-top: 2rem;
    padding: 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
}
.owner-panel .section-title { margin-top: 0; }
.mod-panel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.mod-panel form { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.mod-panel input, .mod-panel select { width: 100%; }

/* ---- Forms ---- */
.form-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    max-width: 760px;
}
/* ---- Staff pages: one tab bar, full width, the same cards everywhere ---- */
.staff-tabs { margin: 0 0 1.25rem; border-bottom: 2px solid var(--nav); }
.staff-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.staff-tabs a {
    display: block; padding: .5rem .85rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
    border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper-deep);
}
.staff-tabs a:hover { background: var(--paper-card); color: var(--rust-text); }
.staff-tabs a[aria-current="page"] { background: var(--nav); border-color: var(--nav); color: #fff; }
.staff-tabs ~ .form-card, .staff-tabs ~ * .form-card { max-width: none; }
.staff-tabs ~ .form-card > .section-title:first-child, .staff-tabs ~ section.form-card > h2:first-child {
    margin-top: 0; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.staff-tabs ~ .page-head { border-bottom-color: var(--line-strong, var(--line)); }
@media (max-width: 600px) {
    .staff-tabs { border-bottom: 0; }
    .staff-tabs ul { gap: .35rem; }
    .staff-tabs a { border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; padding: .4rem .65rem; }
}
.term-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.term-list li { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .4rem .2rem .75rem; background: var(--paper); }
.term-list .link-button { font-size: .85rem; }
.delete-copies { margin-top: 1rem; padding-top: .75rem; border-top: 1px dashed var(--line); }
.delete-copies--urgent { border: 2px solid var(--rust); border-radius: var(--radius); padding: .75rem 1rem; }
.inline-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.inline-add .field { flex: 1 1 18rem; margin-bottom: 0; }

.field { margin-bottom: 1rem; }
.field label, .admin-form label, .mod-panel label, .filter-bar label {
    display: block;
    font-weight: 700;
    margin-bottom: .25rem;
}
/* Registration honeypot: off-screen for people, still in the form for bots. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.hint { margin: 0 0 .35rem; color: var(--ink-soft); font-size: .95rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"],
input:not([type]), select, textarea {
    font: inherit;
    font-size: 1.05rem;
    width: 100%;
    padding: .6rem .75rem;
    border: 1.5px solid var(--ink-soft);
    border-radius: var(--radius);
    background: #FDFCF8;
    color: var(--ink);
    min-height: 44px;
}
textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--rust); border-width: 2px; }
.field__error {
    margin: .35rem 0 0;
    color: var(--rust-text-strong);
    font-weight: 700;
}
.field__error::before { content: "⚠ "; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.checkbox input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--olive); }
.checkbox label { font-weight: 600; }
/* Explanation under a checkbox: lined up with the label text, not with the box. */
.checkbox__hint { margin: .2rem 0 0 1.85rem; font-size: .88rem; line-height: 1.45; }

/* ---- Sign-in, registration and recovery: one centered card ---- */
.auth { max-width: 440px; margin: clamp(.5rem, 4vw, 2.5rem) auto 2.5rem; }
.auth--wide { max-width: 540px; }
.auth .page-head { text-align: center; border-bottom: 0; padding-bottom: 0; margin-bottom: 1rem; }
.auth .page-head h1::after {
    content: ""; display: block; width: 3.5rem; height: 4px; margin: .55rem auto 0; background: var(--rust);
}
.auth .page-head .lead { margin-top: .6rem; font-size: 1rem; }
.auth .form-card { padding: clamp(1.1rem, 4vw, 1.75rem); border-top: 4px solid var(--olive); box-shadow: 0 2px 0 rgba(32, 36, 28, .08); }
.auth .form-actions { flex-direction: column; align-items: stretch; gap: .75rem; margin-top: 1.25rem; }
.auth .form-actions .button { width: 100%; justify-content: center; text-align: center; }
.auth .form-actions > a { align-self: center; }
.auth__alt { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; color: var(--ink-soft); }
.auth .notice { text-align: center; }

.photo-input__label { width: 100%; }
.js .photo-input__file {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    overflow: hidden;
}
.photo-input__file { display: block; margin-top: .5rem; max-width: 100%; }
.photo-input:has(.photo-input__file:focus-visible) .photo-input__label { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-input .hint { margin-top: .4rem; }
.photo-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.photo-preview:empty { display: none; }
.photo-preview figure { margin: 0; width: 96px; }
.photo-preview img { width: 96px; height: 72px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.photo-preview figcaption { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-preview .field__error { width: 100%; }

.filter-bar, .search-form {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}
.filter-bar select { width: auto; }
.filter-bar > label { align-self: center; font-weight: 700; margin: 0; }
/* Phones: label above its menu, menus side by side, the button full width. */
@media (max-width: 600px) {
    .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; align-items: end; }
    .filter-bar > label { grid-row: 1; }
    .filter-bar > select { grid-row: 2; width: 100%; }
    .filter-bar > .button { grid-column: 1 / -1; grid-row: 3; margin-top: .5rem; width: 100%; }
}
.search-form .field { margin: 0; flex: 1 1 180px; }
.search-form__query { flex: 3 1 280px !important; }
.search-form__submit { flex: none; }

/* ---- Projects ---- */
.project-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.project-card { border-bottom: 1.5px solid var(--rust); padding-bottom: .75rem; }
.project-card__link { text-decoration: none; color: var(--ink); display: block; }
.project-card__link img, .project-card__placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: .5rem;
}
.project-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--olive);
    color: var(--on-fill);
    font-size: 1.5rem;
}
.project-card__name { font-size: 1.3rem; font-weight: 700; color: var(--rust-text); }
.project-card .meta { margin: .25rem 0 0; }
.project__photo { margin: 0 0 1rem; }
.project__photo img { width: 100%; border-radius: var(--radius); max-height: 720px; object-fit: cover; }
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .5rem 1rem;
    margin: 0 0 1.25rem;
    padding: .75rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--font-meta); font-size: .9rem; color: var(--ink-soft); text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 700; }
/* Vehicle facts as the blue data plate on a Willys dashboard: riveted corners, stamped lettering. */
.facts--plate {
    position: relative; padding: 1rem 1.4rem; border: 2px solid #22303F; border-radius: 6px;
    background:
        radial-gradient(circle, #C9D2DB 0 2px, #22303F 2.5px 3.5px, transparent 4px) left .55rem top .55rem / 8px 8px no-repeat,
        radial-gradient(circle, #C9D2DB 0 2px, #22303F 2.5px 3.5px, transparent 4px) right .55rem top .55rem / 8px 8px no-repeat,
        radial-gradient(circle, #C9D2DB 0 2px, #22303F 2.5px 3.5px, transparent 4px) left .55rem bottom .55rem / 8px 8px no-repeat,
        radial-gradient(circle, #C9D2DB 0 2px, #22303F 2.5px 3.5px, transparent 4px) right .55rem bottom .55rem / 8px 8px no-repeat,
        var(--blue);
    box-shadow: inset 0 0 0 3px #4C6580;
}
.facts--plate dt { color: #C9D2DB; letter-spacing: .06em; }
.facts--plate dd { color: #F4F0E3; font-family: var(--font-meta); font-weight: 400; font-size: 1.1rem; letter-spacing: .03em; }
.facts--plate a, .facts--plate dd * { color: #F4F0E3; }
.gallery { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.updates { list-style: none; padding: 0; margin: 0; }
.updates li { border-left: 3px solid var(--olive); padding: .25rem 0 .25rem .75rem; margin-bottom: .75rem; }
.updates p { margin: .2rem 0 0; }
.plain-list { padding-left: 1.2rem; }
.member-ranks { display: flex; gap: .5rem; align-items: center; margin: 0; }

/* ---- Search, pager ---- */
.pager { display: flex; gap: .75rem; align-items: center; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }
.pager ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.pager a, .pager span[aria-current] {
    display: inline-block;
    min-width: 2.5rem;
    padding: .4rem .6rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 3px;
    text-decoration: none;
    font-family: var(--font-meta);
}
.pager span[aria-current] { background: var(--olive); color: #fff; border-color: var(--olive); }

/* ---- Moderation and admin ---- */
.report-list { list-style: none; padding: 0; margin: 0; }
.report { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.quote {
    margin: .5rem 0;
    padding: .5rem .9rem;
    border-left: 4px solid var(--line);
    background: var(--paper-card);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.data-table { width: 100%; border-collapse: collapse; background: var(--paper-card); }
.data-table th, .data-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--paper-deep); }
.data-table code { font-size: .85rem; }

.admin-category {
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: var(--paper-card);
}
.admin-category.is-archived { border-style: dashed; }
.admin-category__head, .admin-forum { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: center; }
.admin-category__head h2 { font-size: 1.6rem; margin: 0; }
.admin-category__head h2 a { color: var(--ink); text-decoration: none; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.admin-forums { list-style: none; margin: .75rem 0; padding: 0; border-top: 1px solid var(--line); }
.admin-forum { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.admin-forum.is-archived .admin-forum__head a { color: var(--ink-soft); }
.admin-forum__head { display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.admin-forum__head a { font-weight: 700; }
.admin-forum .admin-edit { flex-basis: 100%; }
.admin-edit summary { cursor: pointer; color: var(--rust-text); font-weight: 600; padding: .25rem 0; }
.admin-form { display: grid; gap: .35rem; max-width: 520px; padding: .5rem 0; }
.admin-form .button { justify-self: start; margin-top: .4rem; }

/* ---- Account ---- */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.account-grid .form-card { margin: 0; }
.account-grid .section-title { margin-top: 0; }
.secret { display: block; font-family: var(--font-meta); font-size: 1.15rem; padding: .5rem; background: #fff; border: 1px dashed var(--line); margin: .4rem 0; overflow-wrap: anywhere; }
.secret--uri { font-size: .85rem; }
.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: .75rem; }
/* QR code for the authenticator app: large enough for any phone camera, white quiet zone kept. */
.mfa-qr { width: min(240px, 100%); margin: .6rem 0; padding: .4rem; background: #fff; border: 1px solid var(--line); }
.mfa-qr svg { display: block; width: 100%; height: auto; }
/* Setting up: on phones the "open the app" button comes first, on computers the QR code. */
.mfa-add { display: flex; flex-direction: column; gap: .5rem; }
.mfa-add p { margin: 0 0 .4rem; }
.mfa-add__same, .mfa-add__scan { padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .4); }
.mfa-add__scan { order: 1; }
.mfa-add__same { order: 2; }
.mfa-add .mfa-manual { order: 3; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
    .mfa-add__same { order: 1; }
    .mfa-add__scan { order: 2; }
    .mfa-add__same .button { width: 100%; justify-content: center; }
}
.mfa-manual { margin-top: .5rem; }
.mfa-manual summary { cursor: pointer; color: var(--olive-text); font-weight: 600; }
.mfa-manual p { margin: .5rem 0 .2rem; }
/* Recovery codes: two columns of large, easy-to-copy codes; printed alone (see the print rules). */
.recovery-new { border: 2px solid var(--rust); }
.recovery-codes { columns: 2; column-gap: 1.5rem; padding-left: 1.6rem; margin: .75rem 0; font-family: var(--font-meta); font-size: 1.15rem; }
.recovery-codes li { margin-bottom: .35rem; break-inside: avoid; }
.recovery-codes code { letter-spacing: .08em; user-select: all; }
@media print {
    body:has(.recovery-new) .site-header, body:has(.recovery-new) .site-footer, body:has(.recovery-new) .site-stats,
    body:has(.recovery-new) .backlink, body:has(.recovery-new) .page-head, body:has(.recovery-new) main section:not(.recovery-new),
    body:has(.recovery-new) .flash, .recovery-new .form-actions { display: none !important; }
    .recovery-new { border: 1px solid #000; }
}

/* ---- Error page ---- */
/* Error pages (403, 404 …): one centered card, like a stamped field message. */
.error-page {
    max-width: 520px;
    margin: clamp(1rem, 6vw, 4rem) auto;
    padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 4vw, 2rem);
    text-align: center;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-top: 4px solid var(--rust);
    border-radius: var(--radius);
}
.error-page__code { font-size: clamp(4rem, 14vw, 6rem); color: var(--rust-text); margin: 0; line-height: 1; }
.error-page h1 { margin: .4rem 0 .6rem; }
.error-page .lead { margin: 0 auto 1.25rem; max-width: 36ch; }
.error-page p:last-child { margin: 0; }

/* ---- Mobile ---- */
@media (max-width: 760px) {
    body { font-size: 1.05rem; }

    .site-header__inner { gap: .5rem; justify-content: space-between; flex-wrap: wrap; padding: .4rem 12px; }
    .js .nav-toggle { display: inline-flex; }
    .nav-toggle[hidden] { display: none; }
    .brand { border-right: 0; padding-right: 0; flex: 1; justify-content: center; }
    .brand__logo { height: 40px; }
    .header-icons { display: inline-flex; }
    .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .25rem; padding-bottom: .5rem; }
    .site-nav ul { flex-direction: column; align-items: stretch; }
    .site-nav a, .site-nav .link-button { display: block; width: 100%; text-align: left; padding: .6rem .75rem; }
    .site-nav a.nav-username { display: block; max-width: none; }
    .site-nav a.nav-icon { display: block; }
    .nav-icon svg { display: none; }
    .nav-icon__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .nav-icon .count-badge { position: static; margin-left: .25rem; }
    .js .site-nav { display: none; }
    .js .site-nav.is-open { display: flex; }
    .site-nav__account { border-top: 1px solid rgba(244, 240, 227, .25); padding-top: .25rem; }
    .nav-dropdown summary { padding: .6rem .75rem; }
    .site-nav .nav-dropdown__menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--rust); border-radius: 0;
        margin-left: .75rem; padding: 0; min-width: 0; }

    .hero, .hero--photo { grid-template-columns: 1fr; padding-top: 1rem; }
    .hero__photo { order: -1; margin: -1rem calc(var(--gutter) * -1) -2.5rem; }
    .hero__photo img {
        -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    }

    .backlink a { font-size: 1.25rem; }
    .topic__title { font-size: clamp(2.1rem, 11vw, 3rem); }
    .post__body, .post--opening .post__body { font-size: 1.15rem; }
    .post__photos--3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
    .post__photos--3 .post__photo-figure:first-child { grid-column: span 2; grid-row: auto; }
    .post__photos--3 .post__photo-figure { height: auto; }
    .post__photos--3 .post__photo img { aspect-ratio: 4 / 3; height: auto; }
    .post__photos--3 .post__photo-figure:first-child img { aspect-ratio: 16 / 10; }
    .post__photos--many { grid-template-columns: 1fr 1fr; }

    /* Topic table stacks into rows */
    .topic-table thead { display: none; }
    .topic-table, .topic-table tbody, .topic-table tr, .topic-table td { display: block; width: 100%; }
    .topic-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-bottom: 1px solid var(--line);
        padding: .5rem 0;
    }
    .topic-table td { border: 0; padding: .25rem .75rem; }
    .topic-table td.topic-cell { grid-column: span 2; display: flex; }
    .topic-table .num { text-align: left; width: auto; font-size: 1rem; }
    .topic-table td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        font-size: .85rem;
    }
    .topic-table td.last-post { grid-column: span 2; width: auto; }
    .topic-table td.last-post::before { display: block; }
    .last-post__name, .last-post .author__rank, .last-post .meta { display: inline; margin-right: .4rem; }
    .topic-cell { align-items: flex-start; }
    .topic-cell__thumb { width: 96px; height: 64px; }
    .topic-cell__title { font-size: 1.15rem; }

    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { border-bottom: 1px solid var(--line); padding: .4rem 0; }
    .data-table td { border: 0; padding: .15rem .5rem; }
    .data-table td::before { content: attr(data-label) ": "; font-weight: 700; }

    .reply-form__actions { gap: .75rem; }
    .forum-row__stats { align-items: flex-start; }
    .page-head--actions .button { width: 100%; }
}

/* Account page: one column of sections; title and explanation left, settings right (stacked on phones) */
.account-nav { margin: 0 0 1rem; }
.account-nav ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.account-nav a {
    display: inline-block; padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper-card); color: var(--ink); text-decoration: none; font-size: .95rem;
}
.account-nav a:hover { border-color: var(--olive); color: var(--olive-text-strong); }
.account { border-top: 2px solid var(--line-strong); }
.account-section {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: .75rem 2.5rem;
    padding: 1.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem;
}
.account-section__title { margin: 0 0 .35rem; font-size: 1.35rem; }
.account-section__intro .hint { margin: 0; }
.account-section__body { min-width: 0; max-width: 40rem; }
.account-section__body > :first-child { margin-top: 0; }
.account-section__body--inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.account-section__body--inline p { margin: 0; flex: 1 1 18rem; }
.account-section select, .account-section input[type="password"] { width: 100%; max-width: 26rem; }
.account-fields { display: block; }
.account-checks { border: 0; margin: .5rem 0 0; padding: 0; }
.account-checks legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
.account-checks .checkbox { margin-bottom: .55rem; }
.account-actions { margin-top: .75rem; }
.account-row { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.account-row__label { margin: 0 0 .3rem; font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.account-row__value { margin: 0 0 .5rem; }
.account-danger { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); }
#profile .avatar-edit { margin: 0; }

@media (max-width: 720px) {
    .account-section { grid-template-columns: 1fr; padding: 1.25rem 0; }
}

/* Share links (topics, projects, invite page) */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: 1.25rem 0; }
.share__label { font-family: var(--font-meta); }
.share__list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.share__link {
    display: inline-block; padding: .3rem .8rem; min-height: 2.25rem; line-height: 1.6;
    border: 1px solid var(--olive); border-radius: 999px; background: transparent;
    color: var(--olive-text-strong); font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.share__link:hover { background: var(--olive); color: #fff; }
.share__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Project of the Month (homepage) */
.featured {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0;
    border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-card);
    margin-bottom: 1.5rem; overflow: hidden;
}
.featured__photo { display: block; background: var(--paper-deep); }
.featured__photo img { display: block; width: 100%; height: 100%; min-height: 200px; max-height: 320px; object-fit: cover; }
.featured__text { padding: 1rem 1.25rem; border-left: 5px solid var(--rust); }
.featured__kicker { margin: 0 0 .25rem; font-family: var(--font-meta); font-size: .9rem; color: var(--rust-text); text-transform: uppercase; letter-spacing: .06em; }
.featured__name { margin: 0 0 .3rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.1; }
.featured__name a { color: var(--ink); text-decoration: none; }
.featured__name a:hover { text-decoration: underline; }
.featured__note { margin: .6rem 0; white-space: pre-line; }
.featured__more { font-weight: 700; color: var(--rust-text); }
/* Project of the Month as a medal: a striped ribbon with a bronze disc, then the month. */
.badge--featured { display: inline-flex; align-items: center; gap: .45rem; background: var(--paper-card); border-color: #9A7B2F; color: var(--ink); }
.badge--featured::before {
    content: ""; flex: none; width: .95rem; height: 1.25rem;
    background:
        radial-gradient(circle at 50% 74%, #D8B45A 0 26%, #9A7B2F 27% 33%, transparent 35%),
        linear-gradient(90deg, var(--rust) 0 30%, #F4F0E3 30% 40%, var(--blue) 40% 60%, #F4F0E3 60% 70%, var(--rust) 70%) top / 100% 48% no-repeat;
}
.feature-tools textarea { width: 100%; }

/* Spread the Word */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.promo-grid .form-card { margin: 0; }
.promo-grid .section-title { margin-top: 0; }
.promo-grid textarea, .promo-grid input[type="email"] { width: 100%; }
.promo-downloads { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.promo-downloads li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; }
.sticker-preview { display: block; max-width: 100%; }
.sticker-preview img { display: block; width: 100%; height: auto; }
.share-url { font-size: 1.05rem; word-break: break-all; }
.invite-stats { margin: .75rem 0 0; }

@media (max-width: 720px) {
    .featured { grid-template-columns: 1fr; }
    .featured__photo img { max-height: 240px; }
    .featured__text { border-left: 0; border-top: 5px solid var(--rust); }
}

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

@media print {
    .site-header, .site-footer, .reply, .mod-panel, .post__actions, .share { display: none; }
}

/* ---- Spread the Word: the "WE WANT YOU" recruiting poster ---- */
.invite-banner { margin: 0 0 1.5rem; max-width: 760px; }
.invite-banner img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: var(--radius); }
.invite-banner figcaption { margin-top: .35rem; }
.invite-nudge { display: flex; gap: 1rem; align-items: center; margin: 0 0 1.25rem; padding: .75rem 1rem; border: 2px solid var(--rust); border-radius: var(--radius); background: var(--paper-card); }
.invite-nudge img { flex: none; width: 150px; height: auto; border-radius: 3px; }
.invite-nudge p { margin: 0 0 .5rem; }
.invite-nudge__title { font-size: 1.3rem; color: var(--rust-text); }
@media (max-width: 480px) { .invite-nudge { flex-direction: column; align-items: flex-start; } .invite-nudge img { width: 100%; } }

/* ---- Manual viewer: the browser's PDF viewer in the page on computers, a big button on phones ---- */
.manual-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem 1.5rem; }
.manual-head__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.manual-viewer { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-deep); margin: 0 0 1rem; }
.manual-viewer__frame { display: block; width: 100%; height: calc(100vh - 12rem); min-height: 520px; border: 0; }
.manual-phone { display: none; text-align: center; padding: 1.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); margin: 0 0 1rem; }
.manual-phone .button { font-size: 1.15rem; padding: .8rem 1.4rem; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
    .manual-viewer { display: none; }
    .manual-phone { display: block; }
    .manual-head__actions .button--outline { display: none; } /* "Open Manual" below does the same */
}

/* ---- 404: the lost jeep ---- */
.lost { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; align-items: center; gap: 0; margin: 0 0 1rem; overflow: hidden; }
.lost__text { position: relative; z-index: 1; padding: 1rem 0; }
.lost__code { font-family: var(--font-stencil); color: var(--rust-text); font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .75rem; }
.lost__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; margin: 0 0 1rem; color: var(--olive-text-strong); }
.lost__lead { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0 0 1.5rem; }
.lost__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1rem; }
.lost__art { margin: 0 0 0 -14%; }
/* No illustration (yet): the text alone, with room around it. */
.lost--text { grid-template-columns: minmax(0, 46rem); padding: clamp(1.5rem, 6vw, 4rem) 0; }
.lost__art img {
    display: block; width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to top, transparent 0%, #000 12%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to top, transparent 0%, #000 12%);
    mask-composite: intersect;
}
@media (max-width: 760px) {
    .lost { grid-template-columns: 1fr; }
    .lost__art { order: -1; margin: -1rem calc(var(--gutter) * -1) -2rem; }
    .lost__art img {
        -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    }
}

/* ---- Theme switch in the footer (Auto / Light / Dark) ---- */
.theme-switch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .5rem 0; }
.theme-switch__label { font-family: var(--font-meta); font-size: .85rem; margin-right: .25rem; color: var(--on-fill); }
.theme-switch button {
    font: inherit; font-size: .85rem; padding: .2rem .65rem; min-height: 32px; cursor: pointer;
    border: 1px solid rgba(244, 240, 227, .45); border-radius: 999px; background: transparent; color: var(--on-fill);
}
.theme-switch button:hover { border-color: var(--on-fill); }
.theme-switch button[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }

/* ---- New components: notifications, devices, progress, ads, knowledge base, history ---- */
.notifications__actions { margin: 0 0 1rem; }
.notification-list { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1.5px solid var(--line-strong); }
.notification { display: grid; grid-template-columns: 2rem 1fr auto; gap: .25rem .75rem; align-items: baseline; padding: .75rem .25rem; border-bottom: 1px solid var(--line); }
.notification__icon { text-align: center; font-weight: 700; color: var(--olive-text); }
.notification__link { color: var(--ink); text-decoration: none; }
.notification__link:hover { color: var(--rust-text); text-decoration: underline; }
.notification.is-unread { background: rgba(87, 108, 63, .08); }
.notification.is-unread .notification__link { font-weight: 700; }
@media (max-width: 600px) {
    .notification { grid-template-columns: 2rem 1fr; }
    .notification .meta { grid-column: 2; }
}
.device-list { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.device-list__item { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.device-list__item .meta { margin: .15rem 0 0; }
.account-more { margin-top: .75rem; }
.account-more > summary { cursor: pointer; color: var(--rust-text); font-weight: 600; }
.account-more[open] > summary { margin-bottom: .75rem; }

.progress { appearance: none; -webkit-appearance: none; width: 100%; max-width: 22rem; height: .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-deep); overflow: hidden; vertical-align: middle; }
.progress::-webkit-progress-bar { background: var(--paper-deep); }
.progress::-webkit-progress-value { background: var(--olive); }
.progress::-moz-progress-bar { background: var(--olive); }
.progress--small { display: block; height: .45rem; max-width: none; margin: .4rem 0 0; }
/* Vehicle profile header: room between the status/medal labels and the owner row. */
.project .topic__badges { margin-bottom: .9rem; }
.project .topic__head .post__meta { margin-top: 0; }
.convoy { position: relative; display: inline-block; width: 100%; max-width: 22rem; padding-top: 1.35rem; }
.convoy .progress { display: block; max-width: none; }
.convoy__jeep { position: absolute; top: 0; left: 0; transform: translateX(-50%); color: var(--olive); transition: left .4s ease; }
.convoy--1 .convoy__jeep { left: 11.1%; } .convoy--2 .convoy__jeep { left: 22.2%; } .convoy--3 .convoy__jeep { left: 33.3%; }
.convoy--4 .convoy__jeep { left: 44.4%; } .convoy--5 .convoy__jeep { left: 55.6%; } .convoy--6 .convoy__jeep { left: 66.7%; }
.convoy--7 .convoy__jeep { left: 77.8%; } .convoy--8 .convoy__jeep { left: 88.9%; } .convoy--9 .convoy__jeep { left: 100%; }
.convoy--0 .convoy__jeep { transform: none; }
.convoy--9 .convoy__jeep { transform: translateX(-100%); }
.project__progress-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 .75rem; }
.section-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .4rem 1.25rem; }
.section-list__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.section-list__item .meta { flex-basis: 100%; padding-left: 1.5rem; margin: 0; }
.section-list__status { width: 1rem; color: var(--ink-soft); }
.section-list__item--done .section-list__status { color: var(--olive-text); }
.section-list__item--in_progress .section-list__status { color: var(--rust-text); }
.section-list a[aria-current] { font-weight: 700; }
.section-status { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1rem 1rem; margin: 0 0 1rem; }
.section-status__grid { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(9rem, 14rem); gap: .4rem 1rem; align-items: center; }
.section-status__grid label { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .section-status__grid { grid-template-columns: 1fr; gap: .15rem; } .section-status__grid select { margin-bottom: .5rem; } }

.ad-box { margin: 0 0 1rem; }
.ad-box .facts { margin: 0; }
.ad-fields { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1rem 0; margin: 0 0 1rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-card); color: var(--ink); text-decoration: none; font-size: .95rem; }
.chip:hover { border-color: var(--rust); color: var(--rust-text); }
.chip[aria-current="page"] { background: var(--nav); border-color: var(--nav); color: #fff; }
.chip__count { font-family: var(--font-meta); font-size: .8rem; opacity: .8; }

.history { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); padding: .5rem 1rem 1rem; margin: 0 0 1rem; }
.history .section-title { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; margin-top: .5rem; }
.history__title { margin: 0 0 .5rem; }
.history__body { font-size: 1rem; }

.mention { font-weight: 600; text-decoration: none; }
.mention:hover { text-decoration: underline; }
.photo-preview__caption { font-size: .8rem !important; padding: .2rem .3rem !important; }
.edit-photos__fields { display: grid; grid-template-columns: auto 1fr; gap: .25rem .5rem; align-items: center; margin: .35rem 0; max-width: 260px; }
.edit-photos__fields label { margin: 0; font-size: .85rem; font-weight: 600; }
.edit-photos__fields input { font-size: .9rem; padding: .3rem .45rem; }
.edit-photos__order { width: 4.5rem !important; }
.edit-photos li { max-width: 260px; }

/* ==== Staff portal: sidebar, dashboard, hidden content, member tools ==== */
.page--staff { max-width: 1440px; }
.staff-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 2rem; align-items: start; }
.staff-main { min-width: 0; }
.staff-main > .page-head:first-child, .staff-main > .flashes + .page-head { margin-top: 0; }
.staff-nav {
    position: sticky; top: 1rem; background: var(--nav); color: var(--on-fill); border-radius: var(--radius);
    padding: 1rem .6rem .75rem; box-shadow: 0 2px 0 rgba(32, 36, 28, .15);
}
.staff-nav__title { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: 0 .5rem .75rem; padding-bottom: .65rem; border-bottom: 1px solid rgba(244, 240, 227, .18); }
.staff-nav__title .stencil { font-size: 1.35rem; letter-spacing: .04em; }
.staff-nav__role { font-family: var(--font-meta); font-size: .78rem; text-transform: uppercase; opacity: .75; }
.staff-nav__group + .staff-nav__group { margin-top: .6rem; }
.staff-nav__label { margin: 0 .5rem .2rem; font-family: var(--font-meta); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.staff-nav ul { list-style: none; margin: 0; padding: 0; }
.staff-nav a {
    display: flex; align-items: center; gap: .6rem; padding: .48rem .55rem; border-radius: var(--radius); border-left: 3px solid transparent;
    color: var(--on-fill); text-decoration: none; font-weight: 600; font-size: .96rem;
}
.staff-nav a:hover { background: rgba(244, 240, 227, .09); }
.staff-nav a:focus-visible { outline: 3px solid var(--paper); outline-offset: 1px; }
.staff-nav a[aria-current="page"] { background: var(--olive); border-left-color: #C9A646; }
.staff-icon { flex: none; opacity: .9; }
.staff-nav__text { flex: 1; min-width: 0; }
.staff-count { font-family: var(--font-meta); font-size: .78rem; min-width: 1.5rem; text-align: center; padding: .05rem .4rem; border-radius: 999px; background: rgba(244, 240, 227, .16); }
.staff-count--alert { background: var(--rust); color: #fff; }
.staff-nav__back { margin: .9rem .5rem 0; padding-top: .65rem; border-top: 1px solid rgba(244, 240, 227, .18); font-size: .92rem; }
.staff-nav__back a { display: inline; padding: 0; border: 0; font-weight: 400; opacity: .85; }
.staff-nav__back a:hover { background: none; text-decoration: underline; }
.nav-dropdown summary .count-badge { margin-left: .3rem; }

/* Dashboard */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .85rem; margin: 0 0 1.75rem; }
.stat-card {
    display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem .9rem; text-decoration: none; color: var(--ink);
    background: var(--paper-card); border: 1px solid var(--line); border-top: 4px solid var(--olive); border-radius: var(--radius);
    transition: transform .12s, box-shadow .12s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 3px 0 rgba(32, 36, 28, .12); color: var(--ink); }
.stat-card__value { font-family: var(--font-stencil); font-size: 2.1rem; line-height: 1.05; }
.stat-card__label { font-weight: 700; }
.stat-card__note { font-size: .88rem; color: var(--ink-soft); }
.stat-card--alert { border-top-color: var(--rust); }
.stat-card--alert .stat-card__value { color: var(--rust-text); }
.stat-card--warn { border-top-color: #9A7B2F; }
.all-clear { display: inline-flex; gap: .5rem; align-items: center; margin: 0 0 .9rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(87, 108, 63, .12); color: var(--olive-text-strong); font-weight: 600; }
.week-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); }
.week-strip > div { padding: .75rem 1rem; }
.week-strip > div + div { border-left: 1px solid var(--line); }
.week-strip dt { font-family: var(--font-meta); font-size: .82rem; text-transform: uppercase; color: var(--ink-soft); }
.week-strip dd { margin: .1rem 0 0; font-family: var(--font-stencil); font-size: 1.7rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.dash-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.activity-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.activity-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.activity-list__what { font-weight: 600; }
.activity-list__what a { font-weight: 400; }

/* Hidden content and permanent deletion */
.hidden-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.hidden-item {
    display: flex; gap: 1rem; justify-content: space-between; padding: .85rem 1rem; background: var(--paper-card);
    border: 1px solid var(--line); border-left: 4px solid var(--rust); border-radius: var(--radius);
}
.hidden-item__main { min-width: 0; flex: 1; }
.hidden-item__title { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.hidden-item .meta { margin: .15rem 0 .35rem; }
.hidden-item .quote { margin: .35rem 0; }
.hidden-item__reason { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.hidden-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; flex: none; }
.hidden-item__actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.due-badge { font-family: var(--font-meta); font-size: .82rem; padding: .15rem .55rem; border: 1px dashed var(--rust-text); border-radius: 999px; color: var(--rust-text); white-space: nowrap; }
.purge-card { margin: 0 0 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); }
.purge-card .section-title { margin-top: 0; }
.purge-list { margin: 0 0 .5rem; padding-left: 1.2rem; }
.form-card--danger { border-left: 4px solid var(--rust); }
.button--danger { background: var(--rust); border-color: var(--rust); color: #fff; }
.button--danger:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.button--danger-outline { background: transparent; border-color: var(--rust); color: var(--rust-text); }
.button--danger-outline:hover { background: var(--rust); color: #fff; }
.danger-link { color: var(--rust-text); font-weight: 600; }
.danger-link:hover { color: var(--rust-text-strong); }
.mod-panel__danger { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.split-pick { margin-top: .4rem; font-size: .92rem; }
.split-pick label { font-weight: 400; }
.post-mod .danger-link { display: inline-block; margin-top: .4rem; font-size: .92rem; }
.staff-inline { margin: 0 0 1rem; }

/* Member page: Staff Tools */
.staff-tools { margin: 0 0 1.5rem; padding: .9rem 1.1rem 1rem; border: 1.5px solid var(--blue); border-radius: var(--radius); background: var(--paper-card); }
.staff-tools__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.staff-tools__head .section-title { margin: 0; color: var(--blue-text); }
.staff-tools__head .meta { margin: 0; }
.staff-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem 1rem; margin: .75rem 0; }
.staff-facts dt { font-family: var(--font-meta); font-size: .8rem; text-transform: uppercase; color: var(--ink-soft); }
.staff-facts dd { margin: 0; overflow-wrap: anywhere; }
.staff-tools__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .6rem; align-items: start; }
.tool-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: .1rem .75rem; }
.tool-card[open] { padding-bottom: .6rem; }
.tool-card summary { cursor: pointer; font-weight: 700; padding: .5rem 0; }
.tool-card--danger { border-color: var(--rust); }
.tool-card--danger summary { color: var(--rust-text); }
.staff-tools__danger { margin: .75rem 0 0; }

/* Users list, mail log, small pieces */
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.users-table__email { overflow-wrap: anywhere; font-size: .95rem; }
.users-table .mod-inline select { min-width: 8.5rem; }
.badge--reported { border-color: var(--rust); color: var(--rust-text); }
.status-pill { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.status-pill--ok { background: rgba(87, 108, 63, .15); color: var(--olive-text-strong); }
.status-pill--bad { background: rgba(122, 46, 43, .14); color: var(--rust-text); }
.choice-group { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem .75rem; margin: 0 0 1rem; }
.choice-group legend { font-weight: 700; padding: 0 .3rem; }
.radio { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; }
.radio input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--olive); }
.radio .hint { display: block; margin: .1rem 0 0; }
.solved-hint { margin: 0 0 1rem; color: var(--olive-text-strong); }
.delete-summary { margin: 0 0 1rem; }

@media (max-width: 960px) {
    .staff-shell { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .staff-nav { position: static; padding: .6rem; }
    .staff-nav__title { margin-bottom: .4rem; padding-bottom: .4rem; }
    .staff-nav__label, .staff-nav__back { display: none; }
    .staff-nav__group { display: contents; }
    .staff-nav { display: flex; flex-wrap: wrap; gap: .3rem; }
    .staff-nav__title { flex-basis: 100%; }
    .staff-nav ul { display: contents; }
    .staff-nav a { padding: .4rem .6rem; border-left: 0; font-size: .9rem; background: rgba(244, 240, 227, .07); }
    .dash-columns { grid-template-columns: minmax(0, 1fr); }
    .week-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .week-strip > div:nth-child(3) { border-left: 0; }
    .week-strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
    .hidden-item { flex-direction: column; }
    .hidden-item__side { align-items: flex-start; }
    .hidden-item__actions { justify-content: flex-start; }
    .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .stat-card { padding: .7rem .75rem; }
    .stat-card__value { font-size: 1.7rem; }
}
/* Staff › Users: compact rows (email under the name, dates in one column, role and Save side by side) */
.users-table th, .users-table td { vertical-align: middle; }
.users-table__member { display: flex; gap: .65rem; align-items: center; min-width: 15rem; }
.users-table__member .avatar { flex: none; }
.users-table__who { display: flex; flex-direction: column; min-width: 0; }
.users-table__name { font-weight: 700; overflow-wrap: anywhere; }
.users-table__email { font-size: .88rem; color: var(--ink-soft); overflow-wrap: anywhere; word-break: normal; }
.users-table__badges { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.users-table__badges .badge { font-size: .72rem; padding: .05rem .4rem; }
.users-table__dates { white-space: nowrap; font-size: .92rem; }
.users-table__dates > span { display: block; }
.users-table td.num { white-space: nowrap; }
.users-table__rank { display: block; font-size: .82rem; }
.role-form { display: flex; gap: .35rem; align-items: center; flex-wrap: nowrap; }
.role-form select { width: auto; min-width: 7.5rem; padding-top: .3rem; padding-bottom: .3rem; min-height: 36px; }
.users-table .button { white-space: nowrap; }
@media (max-width: 720px) {
    .users-table__member { min-width: 0; }
    .users-table td.users-table__member::before { display: none; }
    .users-table__dates > span { display: inline; }
    .users-table__dates > span + span::before { content: " · "; }
}@media (max-width: 720px) {
    .data-table.users-table td.users-table__member { display: flex; padding-top: .5rem; }
    .users-table__dates { white-space: normal; }
    .data-table.users-table td.num { display: flex; gap: .4rem; align-items: baseline; }
    .users-table__rank { display: inline; }
    .data-table.users-table td:last-child::before { display: none; }
}
/* Topic › Moderator Tools: status, one-click actions, collapsible tools, and the visibility zone apart */
.mod-panel { border: 1.5px solid var(--blue); background: var(--paper-card); padding: 0; overflow: hidden; }
.mod-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem;
    padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.mod-panel__head .section-title { margin: 0; color: var(--blue-text); }
.mod-panel__status { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.mod-panel__status .status-pill:not(.status-pill--ok):not(.status-pill--bad) { border: 1px solid var(--line); font-weight: 600; }
.mod-panel__quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: .85rem 1rem 0; }
.mod-panel .mod-panel__quick form { display: inline-flex; }
.mod-panel__tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; align-items: start; padding: .85rem 1rem 1rem; }
.mod-panel__tools .tool-card { background: var(--paper); }
.mod-panel .admin-form { display: grid; align-items: stretch; }
.mod-panel__danger-zone { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; justify-content: space-between;
    padding: .85rem 1rem 1rem; border-top: 1px dashed var(--rust); background: rgba(122, 46, 43, .05); }
.mod-panel .mod-panel__hide { flex: 1; min-width: 240px; max-width: 560px; align-items: stretch; }
.mod-panel__row { display: flex; gap: .5rem; align-items: center; }
.mod-panel__row input { flex: 1; min-width: 0; }
.mod-panel__row .button { flex: none; white-space: nowrap; }
@media (max-width: 600px) {
    .mod-panel__row { flex-direction: column; align-items: stretch; }
}
/* Homepage and search: quick ways in (unanswered, solved, manuals) */
.browse-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.75rem; }
.browse-link { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; text-decoration: none; color: var(--ink);
    background: var(--paper-card); border: 1px solid var(--line); border-left: 4px solid var(--olive); border-radius: var(--radius); }
.browse-link:hover { border-color: var(--rust); border-left-color: var(--rust); color: var(--ink); }
.browse-link__icon { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    background: var(--olive); color: var(--on-fill); font-weight: 700; }
.browse-link__text { display: flex; flex-direction: column; min-width: 0; }
.browse-link__hint { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 760px) { .browse-links { grid-template-columns: minmax(0, 1fr); gap: .5rem; } }
/* Homepage on phones: only the next event (the forum stays near the top); "All events" leads to the events forum. */
.upcoming__all { display: none; color: #fff; font-size: .9rem; }
@media (max-width: 600px) {
    .upcoming { margin-bottom: 1rem; }
    .upcoming__list li:nth-child(n + 2) { display: none; }
    .upcoming__ics { display: none; }
    .upcoming__all { display: inline; }
}@media (max-width: 600px) {
    .featured__photo img { height: 150px; min-height: 0; max-height: 150px; width: 100%; object-fit: cover; }
}
/* Homepage header: the next events in one slim row under the photo (the photo stays free).
   Phones: only the next event, as one line under the buttons. */
.hero-events {
    grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap;
    margin-top: .25rem; padding: .55rem .9rem; border: 1px solid var(--line); border-left: 6px solid var(--rust);
    border-radius: var(--radius); background: var(--paper-card);
}
.hero-events__title { margin: 0; font-size: 1rem; letter-spacing: .06em; white-space: nowrap; }
.hero-events__list { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; flex-wrap: wrap; gap: .4rem 1.5rem; min-width: 0; }
.hero-events__list li { min-width: 0; }
.hero-event { display: flex; gap: .55rem; align-items: center; text-decoration: none; color: var(--ink); }
.hero-event:hover .hero-event__name { color: var(--rust-text); text-decoration: underline; }
.hero-event__date {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 2.9rem; padding: .15rem .3rem;
    background: var(--nav); color: var(--on-fill); border-radius: var(--radius); line-height: 1.05;
}
.hero-event__day { font-family: var(--font-stencil); font-size: 1rem; white-space: nowrap; }
.hero-event__month { font-family: var(--font-meta); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-event__text { display: flex; flex-direction: column; min-width: 0; }
.hero-event__name { font-weight: 700; line-height: 1.2; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-event__meta { font-family: var(--font-meta); font-size: .8rem; color: var(--ink-soft); }
.hero-events__links { display: flex; gap: .3rem 1rem; flex-wrap: wrap; margin: 0 0 0 auto; font-size: .88rem; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 761px) {
    .hero-events__list li:nth-child(n + 3) { display: none; }
}
@media (max-width: 760px) {
    .hero-events { gap: .3rem .75rem; padding: .45rem .6rem; margin-top: .5rem; }
    .hero-events__title { font-size: .82rem; flex-basis: 100%; }
    .hero-events__list li:nth-child(n + 2) { display: none; }
    .hero-event__name { max-width: none; white-space: normal; }
    .hero-events__ics { display: none; }
    .hero-events__links { margin-left: 0; }
}@media (min-width: 761px) {
    .hero-events { flex-wrap: nowrap; }
    .hero-events__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .hero-event__name { max-width: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
    .hero-events__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-events__ics { display: none; }
}
/* Homepage header with a Project of the Month: header photo behind the intro (left), the project on the right. */
.hero--featured { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1rem; align-items: stretch; }
.hero__intro, .hero-feature { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 400px; isolation: isolate; }
.hero__bg, .hero-feature__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__bg { object-position: 60% 50%; filter: sepia(.35) contrast(1.05); }
.hero__intro::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(15, 18, 12, .92) 0%, rgba(15, 18, 12, .78) 55%, rgba(15, 18, 12, .45) 100%); }
.hero--featured .hero__text { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 2rem 1.75rem; color: #F4F0E3; }
.hero--featured .hero__title { font-size: clamp(2rem, 3.6vw, 3rem); }
.hero--featured .hero__lead { color: #E8E3D3; }
.hero--featured .hero__intro .button--outline { color: #F4F0E3; border-color: #F4F0E3; background: rgba(15, 18, 12, .35); }
.hero--featured .hero__intro .button--outline:hover { background: #F4F0E3; color: #20241C; }
.hero-feature { border: 2px solid #C9A646; display: flex; flex-direction: column; justify-content: flex-end; background: #20241C; }
.hero-feature__photo { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-feature__photo img { z-index: 0; transition: transform .4s; }
.hero-feature:hover .hero-feature__photo img { transform: scale(1.03); }
.hero-feature__text { position: relative; padding: 3.5rem 1.4rem 1.2rem; color: #F4F0E3;
    background: linear-gradient(to top, rgba(15, 18, 12, .95) 0%, rgba(15, 18, 12, .85) 55%, rgba(15, 18, 12, 0) 100%); }
.hero-feature__kicker { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; padding: .2rem .6rem .2rem .3rem;
    background: rgba(15, 18, 12, .7); border: 1px solid #C9A646; border-radius: 999px;
    font-family: var(--font-meta); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #E8D9A8; }
.hero-feature__medal { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #C9A646; color: #20241C; font-size: .85rem; }
.hero-feature__name { margin: 0 0 .25rem; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
.hero-feature__name a { color: #F4F0E3; text-decoration: none; }
.hero-feature__name a:hover { text-decoration: underline; }
.hero-feature__meta { margin: 0; font-family: var(--font-meta); font-size: .9rem; color: #D7D2C2; }
.hero-feature__note { margin: .5rem 0 0; white-space: pre-line; color: #E8E3D3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-feature__more { display: inline-block; margin-top: .55rem; font-weight: 700; color: #E8D9A8; }
.hero-feature__more:hover { color: #fff; }
.hero-feature a:focus-visible, .hero__intro a:focus-visible { outline: 3px solid #E8D9A8; outline-offset: 2px; }
@media (max-width: 760px) {
    .hero--featured { grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-top: 1rem; }
    .hero__intro { min-height: 0; }
    .hero--featured .hero__text { padding: 1.5rem 1.1rem; }
    .hero-feature { min-height: 230px; }
    .hero-feature__text { padding: 2.5rem 1rem .9rem; }
    .hero-feature__note { display: none; }
}@media (max-width: 760px) {
    .hero--featured .hero__text { padding: 1.25rem 1rem; }
    .hero--featured .hero__lead { font-size: 1.05rem; margin-bottom: .9rem; }
    .hero--featured .hero__actions { flex-wrap: nowrap; gap: .5rem; }
    .hero--featured .hero__actions .button { flex: 1; padding: .55rem .6rem; font-size: .95rem; text-align: center; }
    .hero-feature { min-height: 250px; }
    .hero-feature__text { padding: 2rem .9rem .8rem; background: linear-gradient(to top, rgba(15, 18, 12, .95) 0%, rgba(15, 18, 12, .8) 60%, rgba(15, 18, 12, 0) 100%); }
    .hero-feature__kicker { font-size: .7rem; padding: .1rem .5rem .1rem .2rem; }
    .hero-feature__medal { width: 1.15rem; height: 1.15rem; font-size: .7rem; }
    .hero-feature__name { font-size: 1.5rem; }
    .hero-feature__meta { font-size: .8rem; }
}/* Header intro: title at the top, lead and buttons at the bottom, the photo visible in between. */
.hero--featured .hero__text { justify-content: flex-start; }
.hero--featured .hero__title { margin-bottom: auto; }
.hero--featured .hero__lead { margin-top: 1.5rem; }
.hero__intro::after {
    background: linear-gradient(to bottom, rgba(15, 18, 12, .85) 0%, rgba(15, 18, 12, .35) 32%, rgba(15, 18, 12, .2) 50%,
        rgba(15, 18, 12, .6) 68%, rgba(15, 18, 12, .92) 100%);
}
.hero--featured .hero__title, .hero--featured .hero__lead { text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
@media (max-width: 760px) {
    .hero__intro { min-height: 420px; }
    .hero--featured .hero__text { min-height: 420px; }
}@media (max-width: 760px) {
    .hero__intro, .hero--featured .hero__text { min-height: 380px; }
}
/* Maintenance mode banner: blue lusterless (information), on every page. */
.notice-bar--maintenance { background: var(--blue); color: #F4F0E3; }
.notice-bar--maintenance a { color: #fff; margin-left: .5rem; }
/* Projects: the Project of the Month as a banner (first page, no filters) and a gold medal on its card. */
.potm-banner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin: 0 0 1.25rem; text-decoration: none;
    color: #F4F0E3; background: #20241C; border: 2px solid #C9A646; border-radius: var(--radius); overflow: hidden; }
.potm-banner__photo img { display: block; width: 100%; height: 100%; min-height: 190px; max-height: 260px; object-fit: cover; }
.potm-banner__text { display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 1rem 1.25rem; align-items: flex-start; }
.potm-banner__name { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.05; color: #F4F0E3; }
.potm-banner__meta { font-family: var(--font-meta); font-size: .88rem; color: #D7D2C2; }
.potm-banner__note { color: #E8E3D3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.potm-banner__more { font-weight: 700; color: #E8D9A8; }
.potm-banner:hover .potm-banner__more { color: #fff; text-decoration: underline; }
.potm-banner:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.project-card--featured { position: relative; border-bottom-color: #C9A646; }
.project-card--featured .project-card__link img, .project-card--featured .project-card__placeholder { outline: 3px solid #C9A646; outline-offset: -3px; }
.project-card__medal { position: absolute; top: .5rem; left: .5rem; z-index: 1; display: inline-flex; gap: .3rem; align-items: center;
    padding: .15rem .55rem; border-radius: 999px; background: #C9A646; color: #20241C; font-family: var(--font-meta); font-size: .75rem;
    text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
@media (max-width: 600px) {
    .potm-banner { grid-template-columns: minmax(0, 1fr); }
    .potm-banner__photo img { min-height: 0; height: 150px; }
    .potm-banner__note { display: none; }
}
/* Dashboard: "Full moderation log ›" and "All members ›" below their list, not on the last line. */
.dash-columns .more-link { margin: .6rem 0 0; }
/* ==== Polish pass (18 Nov) ==== */
/* Empty states: no light-grey block in the dark theme. */
.empty { background: var(--paper-card); }
/* Staff pages: cards use the full width next to the sidebar (the forms inside keep their own width). */
.staff-main .form-card { max-width: none; }
/* A short explanation under a table or list gets breathing room. */
.table-wrap + .hint, .data-table + .hint, .stats-lists + .hint, .hidden-list + .hint, .term-list + .hint { margin-top: .9rem; }
/* Dashboard: who/when always on its own line under the action. */
.activity-list li { flex-direction: column; align-items: flex-start; gap: .1rem; }
.activity-list__member { flex-direction: row !important; align-items: center !important; justify-content: space-between; }
/* Moderation log: details wrap instead of stretching the column. */
.log-details { overflow-wrap: anywhere; }
/* New Topic: the "create a vehicle first" note keeps distance from the next field. */
.field-note { margin: -.35rem 0 1rem; }
/* Solved Questions: words, model and the button on one row (like Search). */
.filter-bar input:not([type="hidden"]) { width: auto; flex: 1 1 14rem; min-width: 0; }
/* Long topic titles: hyphenate rather than break mid-word; a bit smaller on phones. */
.topic__title { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 600px) {
    .topic__title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    /* Staff menu: one row to swipe instead of half a screen of buttons. */
    .staff-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding: .5rem; }
    .staff-nav__title { display: none; }
    .staff-nav a { white-space: nowrap; }
    .all-clear { border-radius: var(--radius); align-items: flex-start; }
    /* Forum Management: compact action buttons that stay on one row. */
    .admin-actions { gap: .3rem; }
    .admin-actions .button { padding: .3rem .5rem; font-size: .82rem; min-height: 34px; }
    .admin-actions .inline-form { display: inline-flex; gap: .3rem; }
    /* Staff Tools on a profile: facts in two columns. */
    .staff-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ==== Today in history: homepage strip, archive and the newspaper page (light "paper" in both themes) ==== */
.history-strip {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "kicker headline more" "date summary more";
    gap: .15rem 1rem; align-items: center; margin: 0 0 1.5rem; padding: .75rem 1rem; text-decoration: none;
    background: #EFE6CF; color: #1F1E1A; border: 1px solid #C7B98F; border-left: 6px solid #1F1E1A; border-radius: var(--radius);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}
.history-strip:hover { border-left-color: var(--rust); color: #1F1E1A; }
.history-strip__kicker { grid-area: kicker; font-family: var(--font-stencil); font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; color: #7A2E2B; }
.history-strip__date { grid-area: date; font-family: var(--font-meta); font-size: .82rem; color: #4A4537; white-space: nowrap; }
.history-strip__headline { grid-area: headline; font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.history-strip__summary { grid-area: summary; color: #3A372E; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.history-strip__more { grid-area: more; font-weight: 700; color: #7A2E2B; white-space: nowrap; }
.history-strip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) {
    .history-strip { grid-template-columns: 1fr; grid-template-areas: "kicker" "date" "headline" "summary" "more"; gap: .2rem; }
    .history-strip__summary { -webkit-line-clamp: 2; }
}
.history-archive { columns: 2 320px; column-gap: 2rem; }
.history-month { break-inside: avoid; margin: 0 0 1.5rem; }
.history-month__name { font-size: 1.4rem; margin: 0 0 .4rem; border-bottom: 2px solid var(--line); }
.history-month__list { list-style: none; margin: 0; padding: 0; }
.history-month__list a { display: flex; flex-direction: column; padding: .4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.history-month__list a:hover .history-month__headline { color: var(--rust-text); text-decoration: underline; }
.history-month__date { font-family: var(--font-meta); font-size: .82rem; color: var(--ink-soft); }
.history-month__headline { font-weight: 700; }
.gazette {
    max-width: 920px; margin: 0 auto 1rem; padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 1.25rem; background: #F1E9D2; color: #1F1E1A;
    border: 1px solid #C7B98F; box-shadow: 0 3px 0 rgba(0, 0, 0, .15), 0 0 0 6px rgba(199, 185, 143, .25);
}
.gazette a { color: #7A2E2B; }
.gazette__masthead { text-align: center; border-bottom: 4px double #1F1E1A; padding-bottom: .4rem; margin-bottom: 1rem; }
.gazette__name { margin: 0; font-family: var(--font-stencil); font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.gazette__dateline { display: flex; justify-content: space-between; gap: 1rem; margin: .5rem 0 0; padding-top: .35rem; border-top: 1px solid #1F1E1A;
    font-family: var(--font-meta); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.gazette__headline { margin: .3rem 0 .5rem; font-family: var(--font-stencil); font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.05; text-align: center;
    text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.gazette__summary { margin: 0 auto 1.1rem; max-width: 46rem; text-align: center; font-size: 1.12rem; font-style: italic; color: #3A372E;
    padding-bottom: .9rem; border-bottom: 1px solid #1F1E1A; }
.gazette__kind { margin: 0 0 .3rem; text-align: center; font-family: var(--font-meta); font-size: .8rem; text-transform: uppercase;
    letter-spacing: .12em; color: #7A2E2B; }
.history-kind { display: inline-block; margin-left: .3rem; padding: 0 .35rem; border: 1px solid currentColor; border-radius: 2px;
    font-family: var(--font-meta); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
    vertical-align: .1em; }
.gazette__body { columns: 2 260px; column-gap: 2rem; column-rule: 1px solid #C7B98F; font-size: 1.05rem; line-height: 1.6; text-align: left; hyphens: auto; }
.gazette__body p { margin: 0 0 .9rem; break-inside: avoid-column; }
.gazette__body p:first-child::first-letter { float: left; font-family: var(--font-stencil); font-size: 3.1rem; line-height: .9; padding: .25rem .4rem 0 0; color: #7A2E2B; }
.gazette__sources { margin-top: 1rem; padding-top: .6rem; border-top: 1px solid #1F1E1A; font-size: .9rem; }
.gazette__sources h2 { font-family: var(--font-meta); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .3rem; }
.gazette__sources ul { margin: 0; padding-left: 1.1rem; }
.gazette__discuss { text-align: center; }
.gazette__nav { display: flex; justify-content: space-between; gap: 1rem; max-width: 920px; margin: 0 auto 1rem; }
.gazette__nav a { display: flex; flex-direction: column; text-decoration: none; font-family: var(--font-meta); font-size: .85rem; max-width: 48%; }
.gazette__nav-next { text-align: right; margin-left: auto; }
.gazette__nav-title { font-family: var(--font-body); font-weight: 700; font-size: .98rem; color: var(--ink); }
@media (max-width: 600px) { .gazette__dateline { flex-direction: column; gap: .1rem; align-items: center; } .gazette__body { text-align: left; } }

/* ==== Service ribbons ==== */
.ribbons { display: inline-flex; flex-wrap: wrap; gap: 2px; vertical-align: middle; margin-left: .35rem; }
.ribbon { position: relative; display: inline-block; width: 26px; height: 8px; border: 1px solid rgba(0, 0, 0, .45); border-radius: 1px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.ribbons--large { gap: 3px; margin: 0; }
.ribbons--large .ribbon { width: 42px; height: 13px; }
.ribbon--service { background: linear-gradient(90deg, #A8262B 0 18%, #F4F0E3 18% 24%, #A8262B 24% 76%, #F4F0E3 76% 82%, #A8262B 82%); }
.ribbon-rack { display: flex; flex-direction: column; gap: .4rem; }
.ribbon-rack__list { margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--ink-soft); }

/* ==== Profile as a dog tag ==== */
.dogtag-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin: 0 0 1.5rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--line); }
.dogtag-head__photo .avatar { width: 112px; height: 112px; }
.dogtag {
    position: relative; width: min(100%, 360px); min-height: 190px; padding: 1.1rem 1.4rem 1rem 3.4rem; border-radius: 28px;
    background: linear-gradient(135deg, #E4E6E0 0%, #B9BCB5 35%, #EEF0EA 55%, #A3A79F 100%); color: #2A2C28;
    border: 1px solid #7E827B; box-shadow: inset 0 2px 1px rgba(255, 255, 255, .8), inset 0 -2px 2px rgba(0, 0, 0, .25), 0 4px 8px rgba(0, 0, 0, .35);
    font-family: var(--font-meta); text-transform: uppercase; letter-spacing: .08em;
}
.dogtag::before { content: ""; position: absolute; left: 1.05rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem; border-radius: 50%;
    background: var(--paper); border: 2px solid #7E827B; box-shadow: inset 0 2px 2px rgba(0, 0, 0, .35); }
.dogtag::after { content: ""; position: absolute; right: -6px; top: 22%; width: 12px; height: 26px; border-radius: 0 50% 50% 0; background: var(--paper); border-left: 1px solid #7E827B; }
.dogtag__chain { position: absolute; left: -2.3rem; top: 50%; width: 3.4rem; height: 0; border-top: 4px dotted #8D918A; }
.dogtag__name { margin: 0 0 .3rem; font-family: var(--font-meta); font-size: 1.45rem; line-height: 1.15; letter-spacing: .1em; overflow-wrap: anywhere;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .35); }
.dogtag__line { margin: 0 0 .15rem; font-size: .95rem; text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .3); }
.dogtag__rank svg { vertical-align: -3px; margin-right: .3rem; }
.dogtag__serial { margin: .4rem 0 0; font-size: .8rem; opacity: .7; }
.dogtag-head__extra { display: flex; flex-direction: column; gap: .6rem; min-width: 12rem; }
@media (max-width: 600px) {
    .dogtag-head { gap: 1rem; }
    .dogtag-head__photo .avatar { width: 84px; height: 84px; }
    .dogtag { padding-left: 3rem; }
    .dogtag__chain { display: none; }
}

/* ==== Before & after ==== */
.before-after { margin: 0 0 1.5rem; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.compare__item { position: relative; margin: 0; }
.compare__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.compare__tag { position: absolute; top: .5rem; left: .5rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(20, 22, 18, .78); color: #F4F0E3;
    font-family: var(--font-meta); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.compare__item--after .compare__tag { left: auto; right: .5rem; }
.compare__caption { text-transform: none; letter-spacing: 0; }
.compare.is-slider { display: block; position: relative; border-radius: var(--radius); overflow: hidden; --pos: 50%; }
.compare.is-slider .compare__item--after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare.is-slider .compare__item img { border-radius: 0; }
.compare.is-slider::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #F4F0E3;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); pointer-events: none; }
.compare.is-slider::before { content: "⇆"; position: absolute; z-index: 1; top: 50%; left: var(--pos); width: 2.4rem; height: 2.4rem; margin: -1.2rem 0 0 -1.2rem;
    display: grid; place-items: center; border-radius: 50%; background: #F4F0E3; color: #20241C; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); pointer-events: none; }
.compare__range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare.is-slider:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.before-after-pick { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem .9rem; margin: 0 0 1rem; }
.before-after-pick legend { font-weight: 700; padding: 0 .3rem; }
.before-after-pick__label { margin: .6rem 0 .3rem; }
.photo-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.photo-pick label { position: relative; cursor: pointer; }
.photo-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-pick img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 3px solid transparent; }
.photo-pick input:checked + img, .photo-pick input:checked + span { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.photo-pick input:focus-visible + img, .photo-pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-pick__none span { display: grid; place-items: center; width: 96px; height: 72px; border: 3px dashed var(--line); border-radius: var(--radius); font-size: .9rem; color: var(--ink-soft); }

/* ==== Rotate in the photo preview, drafts ==== */
.photo-preview img { transition: transform .2s; }
.photo-preview img.is-turned-90 { transform: rotate(90deg) scale(.75); }
.photo-preview img.is-turned-180 { transform: rotate(180deg); }
.photo-preview img.is-turned-270 { transform: rotate(270deg) scale(.75); }
.draft-note { margin: 0 0 .4rem; padding: .35rem .6rem; border-left: 4px solid var(--blue); background: rgba(58, 79, 101, .1); font-size: .92rem; }
.draft-note .link-button { margin-left: .4rem; }

/* Staff › Today in History: 1944 wall calendar (filled days coloured, empty days link to "Add Article"). */
.history-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin: 0 0 .5rem; }
.history-toolbar .meta { margin: 0; }
.history-toolbar .listing-tabs { margin: 0; }
.history-calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem 1.25rem; margin: .5rem 0 1rem; }
.cal-month { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); padding: .5rem .6rem .6rem; }
.cal-month__name { margin: 0 0 .35rem; font-family: var(--font-stencil); font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 3px; }
.cal-head { font-family: var(--font-meta); font-size: .7rem; text-align: center; color: var(--ink-soft); text-transform: uppercase; }
.cal-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 3px; font-size: .82rem; text-decoration: none;
    color: var(--ink-soft); border: 1px dashed var(--line); }
.cal-day:hover { border-style: solid; border-color: var(--olive); color: var(--ink); background: rgba(87, 108, 63, .1); }
.cal-day--blank { border: 0; }
.cal-day--has { border: 1px solid var(--rust); background: var(--rust); color: #fff; font-weight: 700; }
.cal-day--has:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.cal-day--draft { background: transparent; color: var(--rust-text); border-style: solid; }
.cal-day__count { position: absolute; top: -5px; right: -5px; min-width: 1rem; padding: 0 .2rem; border-radius: 999px; background: var(--nav); color: #fff;
    font-size: .62rem; line-height: 1rem; text-align: center; }
.cal-day:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.cal-legend__item { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend .cal-day { width: 1.6rem; aspect-ratio: 1; }
/* Project page: photos at a comfortable size instead of the full page width. */
.project__photo img { max-height: 520px; }
.before-after .compare { max-width: 760px; }
.before-after .compare__item img { aspect-ratio: 4 / 3; max-height: 520px; }
@media (max-width: 600px) { .project__photo img { max-height: 320px; } }
/* Photos are scaled down, never cropped: the whole photo stays visible. */
.project__photo img { width: auto; max-width: 100%; height: auto; max-height: 520px; object-fit: contain; display: block; margin: 0 auto; }
.before-after .compare__item img { object-fit: contain; background: #12150F; }
@media (max-width: 600px) { .project__photo img { max-height: 320px; } }/* Before/after at the top of a project, in place of the large photo: centred, 4:3, never cropped. */
.before-after { margin: 0 0 1.25rem; }
.before-after .compare { max-width: 700px; margin: 0 auto; }