/* Donk Contest — site styles
   Palette and type carried over from the WordPress (Astra) theme. */
/* Self-hosted fonts (SIL Open Font License) — no third-party font requests */
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/work-sans-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/work-sans-bold.woff") format("woff"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --gold: #f9c349;
  --gold-deep: #ffb100;
  --ink: #1e1810;
  --ink-2: #1e2925;
  --text: #4f4e49;
  --muted: #7a7972;
  --paper: #f8f7f3;
  --white: #fff;
  --line: #e6e3da;
  --danger: #b3261e;
  --ok: #1d6b3a;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgb(30 24 16 / .25);
  --wrap: min(1160px, 100% - 2.5rem);
  --font-head: "Open Sans", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.7 var(--font-body); }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.wrap { width: var(--wrap); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .9rem 2rem; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--ink); font: 700 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; box-shadow: 0 6px 18px -8px rgb(255 177 0 / .8); }
.btn:hover { background: var(--gold-deep); color: var(--ink); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--dark { background: var(--ink); color: var(--white); box-shadow: none; }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: rgb(255 255 255 / .12); color: inherit; }
.btn--sm { min-height: 40px; padding: .6rem 1.2rem; font-size: .72rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(30 24 16 / .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { width: 132px; }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { color: rgb(255 255 255 / .88); text-decoration: none; font: 600 .82rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: .75rem .7rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-left: .6rem; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); padding: .5rem; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.25rem 1.5rem; background: var(--ink); max-height: calc(100dvh - 72px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 1rem .25rem; font-size: .95rem; border-bottom: 1px solid rgb(255 255 255 / .08); border-radius: 0; }
  .nav .btn { margin: 1rem 0 0; border-bottom: 0; border-radius: 999px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 820px); display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(30 24 16 / .55) 0%, rgb(30 24 16 / .35) 45%, rgb(30 24 16 / .8) 100%); }
.hero__inner { padding: 5rem 1.25rem 6rem; }
.hero__date { display: inline-block; font: 700 clamp(.85rem, 1.6vw, 1.05rem)/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; padding: .55rem 1rem; border: 1px solid rgb(249 195 73 / .55); border-radius: 999px; background: rgb(0 0 0 / .25); }
.hero__logo { width: min(560px, 88vw); margin: 0 auto .6rem; filter: drop-shadow(0 8px 24px rgb(0 0 0 / .45)); }
.hero h1 { color: var(--white); font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .3em; text-transform: uppercase; font-weight: 700; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.page-hero { background: var(--ink); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { color: rgb(255 255 255 / .75); margin: .75rem 0 0; max-width: 62ch; }
.eyebrow { display: block; font: 700 .75rem/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .9rem; }
.page-hero .eyebrow { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink-2); color: rgb(255 255 255 / .8); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--gold { background: var(--gold); color: var(--ink); position: relative; }
.section--gold::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 28px; height: 28px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: rgb(255 255 255 / .65); }
.section--gold .section-head p { color: rgb(30 24 16 / .75); }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }
.lead { font-size: 1.12rem; color: var(--ink); }

/* ---------- Video facade ---------- */
.yt { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000 center/cover no-repeat; box-shadow: var(--shadow); }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / .45)); cursor: pointer; display: grid; place-items: center; }
.yt button span { width: 74px; height: 52px; border-radius: 14px; background: rgb(30 24 16 / .85); display: grid; place-items: center; transition: background .15s; }
.yt button:hover span { background: #e00; }
.yt button svg { width: 26px; height: 26px; fill: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.video-grid figcaption { margin-top: .75rem; font: 700 1rem/1.35 var(--font-head); color: var(--ink); }

/* ---------- Forms ---------- */
.card { background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font: 600 .9rem/1.3 var(--font-head); color: var(--ink); margin-bottom: .45rem; }
.field .req { color: var(--danger); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); transition: border-color .15s, background-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-deep); background: var(--white); box-shadow: 0 0 0 4px rgb(249 195 73 / .3); }
textarea { min-height: 150px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 .9rem/1 var(--font-head); color: var(--ink); cursor: pointer; transition: all .15s; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.chips input:focus-visible + span { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.cf-turnstile { min-height: 65px; }
.notice { border-radius: 10px; padding: .9rem 1.1rem; font-weight: 500; margin-top: 1rem; }
.notice[hidden] { display: none; }
.notice--ok { background: #e6f4ea; color: var(--ok); }
.notice--err { background: #fdecea; color: var(--danger); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 2rem; max-width: 980px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 18px; width: 2px; background: rgb(30 41 37 / .25); }
.t-item { position: relative; padding-left: 56px; }
.t-item::before { content: ""; position: absolute; left: 10px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 5px var(--paper); }
.t-time { font: 700 .85rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 20px 0 .75rem; }
.t-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; }
.t-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.t-card div { padding: 1.25rem 1.4rem 1.4rem; }
.t-card h3 { color: #d99a00; margin-bottom: .35rem; }
.t-card p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 820px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .t-item { padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; }
  .t-item::before { left: 50%; transform: translateX(-50%); }
  .t-time { grid-column: 1; text-align: right; }
  .t-card { grid-column: 2; grid-row: 1; }
  .t-item:nth-child(even) .t-time { grid-column: 2; text-align: left; }
  .t-item:nth-child(even) .t-card { grid-column: 1; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: rgb(0 0 0 / .08); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgb(10 8 5 / .9); }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; }
.lightbox button { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 1.6rem; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 0 var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; font: 700 1.08rem/1.35 var(--font-head); color: var(--white); background: var(--ink-2); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 1.25rem 1.5rem .25rem; }

/* ---------- Posts ---------- */
.post-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s ease; }
.post-card:hover { transform: translateY(-3px); color: inherit; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--ink); }
.post-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card time { font: 600 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #c48900; }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose img, .prose .yt { margin: 2rem auto; border-radius: var(--radius); }
.prose figure { margin: 2rem 0; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: -.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.post-meta { color: rgb(255 255 255 / .7); font-size: .95rem; margin-top: .9rem; }
.back-link { display: inline-flex; gap: .4rem; margin-top: 2.5rem; font-weight: 600; }

/* ---------- Misc ---------- */
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 2rem 0; }
.stat { background: var(--white); border-radius: var(--radius); padding: 1.4rem; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.stat strong { display: block; font: 800 2rem/1.1 var(--font-head); color: var(--ink); }
.stat span { color: var(--muted); font-size: .95rem; }
.swatches { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 1.5rem 0; }
.swatch { border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); font-size: .85rem; }
.swatch i { display: block; height: 72px; }
.swatch span { display: block; padding: .6rem .8rem; font-family: ui-monospace, monospace; }
.map { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.embed-frame { width: 100%; min-height: 720px; border: 0; border-radius: var(--radius); background: var(--white); }
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .08); color: var(--white); transition: background .15s, color .15s; }
.social a:hover { background: var(--gold); color: var(--ink); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.section:not(.section--dark) .social a { background: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / .7); padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-grid h2 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-logo { width: 170px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

/* ---------- Voting ---------- */
.vote-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tabs button { min-height: 44px; padding: .55rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: 700 .85rem/1 var(--font-head); color: var(--ink); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.entry-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.entry { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.entry__img { position: relative; aspect-ratio: 4/3; background: var(--ink); }
.entry__img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.entry__num { position: absolute; top: .75rem; left: .75rem; background: var(--gold); color: var(--ink); font: 800 .95rem/1 var(--font-head); padding: .45rem .7rem; border-radius: 8px; }
.entry__cat { position: absolute; top: .75rem; right: .75rem; background: rgb(30 24 16 / .8); color: var(--white); font: 700 .7rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: .45rem .65rem; border-radius: 8px; }
.entry__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.entry__body h3 { margin: 0; font-size: 1.2rem; }
.entry__meta { color: var(--muted); font-size: .92rem; margin: 0; }
.entry__desc { font-size: .95rem; margin: .25rem 0 0; }
.entry__foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.entry__votes { font: 800 1.05rem/1 var(--font-head); color: var(--ink); }
.entry.is-voted { outline: 3px solid var(--gold-deep); }
.entry .btn.voted { background: var(--ink); color: var(--gold); box-shadow: none; }
.status-bar { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; background: var(--white); padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: 0 2px 0 var(--line); margin-bottom: 1.5rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; font: 700 .75rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: .5rem .8rem; border-radius: 999px; background: var(--paper); color: var(--ink); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--open { background: #e6f4ea; color: var(--ok); }
.pill--closed { background: #fdecea; color: var(--danger); }
.modal { border: 0; border-radius: 18px; padding: 0; width: min(460px, 94vw); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5); }
.modal::backdrop { background: rgb(10 8 5 / .7); }
.modal .card { box-shadow: none; }
.modal h2 { font-size: 1.5rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.code-input { letter-spacing: .5em; text-align: center; font: 800 1.6rem/1 var(--font-head) !important; }

/* Admin */
.admin-body { background: #efede6; }
.admin-shell { width: min(980px, 100% - 1.5rem); margin: 0 auto; padding: 1.25rem 0 4rem; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0 1.25rem; }
.admin-top img { width: 110px; }
.admin-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin-bottom: 1.25rem; position: sticky; top: 0; z-index: 5; background: #efede6; padding: .5rem 0; }
.admin-tabs button { min-height: 48px; border: 0; border-radius: 12px; background: var(--white); font: 700 .8rem/1.1 var(--font-head); color: var(--ink); cursor: pointer; }
.admin-tabs button[aria-selected="true"] { background: var(--ink); color: var(--gold); }
.photo-drop { position: relative; display: grid; place-items: center; text-align: center; min-height: 220px; border: 2px dashed #cfcabb; border-radius: 16px; background: var(--paper); cursor: pointer; overflow: hidden; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop img { width: 100%; max-height: 360px; object-fit: cover; }
.photo-drop svg { width: 44px; height: 44px; margin: 0 auto .5rem; color: var(--muted); }
.admin-list { display: grid; gap: .75rem; }
.admin-row { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; align-items: center; background: var(--white); border-radius: 12px; padding: .65rem; }
.admin-row img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--ink); }
.admin-row h3 { font-size: 1rem; margin: 0; }
.admin-row p { margin: 0; font-size: .85rem; color: var(--muted); }
.admin-row .actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.admin-row.is-hidden { opacity: .55; }
.tally { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .75rem; align-items: center; background: var(--white); border-radius: 12px; padding: .75rem 1rem; }
.tally .rank { font: 800 1.3rem/1 var(--font-head); color: #c48900; }
.tally .bar { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; margin-top: .4rem; }
.tally .bar i { display: block; height: 100%; background: var(--gold-deep); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--white); border-radius: 12px; padding: 1rem 1.1rem; }
.switch-row strong { font-family: var(--font-head); color: var(--ink); }
.switch-row p { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.switch { position: relative; width: 56px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #cfcabb; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 4px; top: 4px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(24px); }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--font-head); color: var(--ink); background: var(--paper); }
tr.void td { text-decoration: line-through; opacity: .55; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: .85rem 1.25rem; border-radius: 12px; z-index: 99; box-shadow: var(--shadow); max-width: 92vw; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: .75rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold-deep); transition: width .2s; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-deep); text-underline-offset: 3px; cursor: pointer; }
.how { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 2rem; counter-reset: how; }
.how li { list-style: none; background: var(--white); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 3.4rem; position: relative; font-size: .95rem; box-shadow: 0 2px 0 var(--line); }
.how li::before { counter-increment: how; content: counter(how); position: absolute; left: 1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold); color: var(--ink); font: 800 .95rem/1.8rem var(--font-head); text-align: center; }
.how strong { display: block; color: var(--ink); font-family: var(--font-head); }
.vote-search { max-width: 260px; min-height: 44px !important; }
[hidden] { display: none !important; }
.entry .btn.voted:disabled { opacity: 1; }
.admin-body .stat-grid { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.admin-body .stat { padding: .8rem; box-shadow: none; border-top-width: 3px; }
.admin-body .stat strong { font-size: 1.5rem; }
.admin-body .stat span { font-size: .8rem; }
@media (max-width: 560px) {
  .admin-row { grid-template-columns: 64px 1fr; }
  .admin-row img { width: 64px; height: 52px; }
  .admin-row .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-body .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .how { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .how li { padding: .75rem .6rem; text-align: center; font-size: .82rem; }
  .how li::before { position: static; display: block; margin: 0 auto .4rem; }
  .how li span { display: none; }
}

/* Forms: notes + optional labels */
.opt { font-weight: 500; color: var(--muted); font-size: .85em; }
.form-note { font-size: .88rem; color: var(--muted); margin: 1.25rem 0 0; }
.form-note a { color: inherit; }

/* Click-to-load map */
.map-facade { display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, #2a231a, #1e2925); color: #fff; }
.map-facade div { display: grid; gap: .5rem; justify-items: center; padding: 1.5rem; }
.map-facade strong { font-family: var(--font-head); font-size: 1.15rem; }
.map-facade span { color: var(--gold); font-weight: 600; }
.map-facade small { color: rgb(255 255 255 / .55); font-size: .78rem; }

/* Public car page /c/N */
.car-hero { background: radial-gradient(1200px 500px at 85% -10%, rgb(249 195 73 / .14), transparent 60%), var(--ink); color: rgb(255 255 255 / .82); padding: clamp(2rem, 6vw, 4.5rem) 0; min-height: 70vh; }
.car-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: .25rem 0 .75rem; }
.car-hero .eyebrow { color: var(--gold); }
.car-num { font: 800 clamp(3.5rem, 11vw, 6.5rem)/0.9 var(--font-head); color: var(--gold); letter-spacing: -.03em; }
.car-layout { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .car-layout { grid-template-columns: 1.25fr 1fr; } }
.car-gallery { display: grid; gap: .6rem; grid-template-columns: repeat(3, 1fr); }
.car-gallery a { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: #000; }
.car-gallery a.cover { grid-column: 1 / -1; aspect-ratio: 16/10; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.car-gallery img { width: 100%; height: 100%; object-fit: cover; }
.car-meta { margin: 0 0 .35rem; color: rgb(255 255 255 / .7); }
.car-meta a { color: var(--gold); }
.car-desc { margin-top: 1rem; font-size: 1.05rem; }
.car-hero .btn--ghost { color: #fff; }
.car-hero--teaser { display: grid; align-items: center; text-align: left; background: radial-gradient(900px 500px at 80% 20%, rgb(249 195 73 / .18), transparent 60%), var(--ink); }
.car-hero--teaser p { max-width: 52ch; font-size: 1.1rem; }

/* ================= Owner portal /my-car/ ================= */
.owner-body { background: #14100a; color: rgb(255 255 255 / .82); }
.owner-body .site-footer { background: #0e0b07; }
.op { position: relative; isolation: isolate; padding: clamp(1.5rem, 5vw, 3.5rem) 0 5rem; min-height: 80vh; }
.op::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 480px at 85% -5%, rgb(249 195 73 / .16), transparent 60%),
  radial-gradient(700px 420px at -10% 30%, rgb(30 41 37 / .9), transparent 70%); }
.op h1, .op h2, .op h3 { color: #fff; }
.op-wrap { width: min(1120px, 100% - 2rem); margin: 0 auto; }
.op-head { display: grid; gap: 1.25rem; align-items: end; grid-template-columns: 1fr; margin-bottom: 1.75rem; }
@media (min-width: 820px) { .op-head { grid-template-columns: auto 1fr auto; } }
.op-badge { position: relative; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 28px;
  background: linear-gradient(145deg, #2b2316, #17120b); border: 1px solid rgb(249 195 73 / .35); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 20px 50px -20px rgb(249 195 73 / .35); }
.op-badge small { position: absolute; top: 14px; font: 700 .62rem/1 var(--font-head); letter-spacing: .25em; color: rgb(249 195 73 / .8); }
.op-badge strong { font: 800 3.4rem/1 var(--font-head); color: var(--gold); letter-spacing: -.04em; margin-top: 10px; }
.op-title .eyebrow { color: var(--gold); margin-bottom: .5rem; }
.op-title h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin: 0; }
.op-title p { margin: .4rem 0 0; color: rgb(255 255 255 / .6); }
.op-status { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px; font: 700 .78rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); color: #fff; justify-self: start; }
.op-status i { width: 9px; height: 9px; border-radius: 50%; background: #8a8577; box-shadow: 0 0 0 4px rgb(138 133 119 / .2); }
.op-status[data-s="pending"] i { background: #f9c349; box-shadow: 0 0 0 4px rgb(249 195 73 / .2); animation: pulse 1.6s infinite; }
.op-status[data-s="approved"] i { background: #3ccf7a; box-shadow: 0 0 0 4px rgb(60 207 122 / .2); }
.op-status[data-s="rejected"] i { background: #ff6b5b; box-shadow: 0 0 0 4px rgb(255 107 91 / .2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(249 195 73 / 0); } }

.op-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: st; }
.op-steps li { position: relative; padding-top: 14px; font: 600 .72rem/1.25 var(--font-head); letter-spacing: .04em; color: rgb(255 255 255 / .4); }
.op-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .1); }
.op-steps li.done { color: rgb(255 255 255 / .85); }
.op-steps li.done::before { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.op-steps li.now { color: var(--gold); }
.op-steps li.now::before { background: linear-gradient(90deg, var(--gold) 50%, rgb(255 255 255 / .1) 50%); }
@media (max-width: 560px) { .op-steps li { font-size: .62rem; } }

.op-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .op-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } .op-side { position: sticky; top: 92px; } }
.op-panel { background: linear-gradient(180deg, rgb(255 255 255 / .055), rgb(255 255 255 / .025)); border: 1px solid rgb(255 255 255 / .09); border-radius: 22px; padding: clamp(1.1rem, 3vw, 1.75rem); backdrop-filter: blur(6px); }
.op-panel + .op-panel { margin-top: 1.5rem; }
.op-panel h2 { font-size: 1.2rem; margin: 0 0 .3rem; display: flex; align-items: center; gap: .6rem; }
.op-panel h2 b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--gold); color: var(--ink); font-size: .8rem; }
.op-panel > p.sub { margin: 0 0 1.1rem; color: rgb(255 255 255 / .55); font-size: .93rem; }

.op-photos { display: grid; gap: .6rem; grid-template-columns: repeat(3, 1fr); }
.op-photo { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: rgb(0 0 0 / .35); border: 1px solid rgb(255 255 255 / .08); }
.op-photo.cover { grid-column: 1 / -1; aspect-ratio: 16/10; }
.op-photo img { width: 100%; height: 100%; object-fit: cover; }
.op-photo .tag { position: absolute; top: .6rem; left: .6rem; background: var(--gold); color: var(--ink); font: 800 .65rem/1 var(--font-head); letter-spacing: .15em; padding: .4rem .55rem; border-radius: 6px; }
.op-photo .tools { position: absolute; right: .5rem; bottom: .5rem; display: flex; gap: .35rem; }
.op-photo .tools button { min-height: 36px; padding: .45rem .7rem; border-radius: 999px; border: 0; background: rgb(14 11 7 / .78); color: #fff; font: 700 .72rem/1 var(--font-head); cursor: pointer; backdrop-filter: blur(6px); }
.op-photo .tools button:hover { background: var(--gold); color: var(--ink); }
.op-add { display: grid; place-items: center; text-align: center; cursor: pointer; border: 1.5px dashed rgb(249 195 73 / .45); background: rgb(249 195 73 / .04); color: rgb(255 255 255 / .75); transition: background .15s, border-color .15s; }
.op-add:hover { background: rgb(249 195 73 / .09); border-color: var(--gold); }
.op-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.op-add svg { width: 34px; height: 34px; color: var(--gold); margin: 0 auto .4rem; }
.op-add strong { font: 700 .92rem/1.2 var(--font-head); color: #fff; display: block; }
.op-add span { font-size: .78rem; color: rgb(255 255 255 / .5); }
.op-photo.uploading::after { content: ""; position: absolute; inset: 0; background: rgb(14 11 7 / .55); }
.op-ring { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; color: #fff; font: 800 .9rem var(--font-head); }
.op-ring svg { position: absolute; width: 64px; height: 64px; transform: rotate(-90deg); }
.op-ring circle { fill: none; stroke-width: 5; }
.op-ring .bg { stroke: rgb(255 255 255 / .2); }
.op-ring .fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 176; transition: stroke-dashoffset .2s; }

.op .field label, .op .field legend { color: rgb(255 255 255 / .85); }
.op input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .op select, .op textarea {
  background: rgb(0 0 0 / .28); border-color: rgb(255 255 255 / .12); color: #fff; }
.op input::placeholder, .op textarea::placeholder { color: rgb(255 255 255 / .35); }
.op input:focus, .op textarea:focus, .op select:focus { background: rgb(0 0 0 / .4); }
.op .chips span { background: rgb(0 0 0 / .28); border-color: rgb(255 255 255 / .14); color: #fff; }
.op .chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.op .hint, .op .opt { color: rgb(255 255 255 / .45); }
.op .counter { float: right; font-size: .78rem; color: rgb(255 255 255 / .4); }
.op .btn--ghost { color: #fff; }
.op .notice--ok { background: rgb(60 207 122 / .12); color: #7ee3a8; }
.op .notice--err { background: rgb(255 107 91 / .12); color: #ffb0a6; }

.op-banner { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 16px; margin-bottom: 1.5rem; background: rgb(249 195 73 / .1); border: 1px solid rgb(249 195 73 / .3); color: #fff; }
.op-banner.err { background: rgb(255 107 91 / .1); border-color: rgb(255 107 91 / .35); }
.op-banner.ok { background: rgb(60 207 122 / .1); border-color: rgb(60 207 122 / .35); }
.op-banner strong { display: block; font-family: var(--font-head); }
.op-banner p { margin: .2rem 0 0; color: rgb(255 255 255 / .7); font-size: .93rem; }

.op-preview { border-radius: 18px; overflow: hidden; background: #fff; color: var(--text); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .9); }
.op-preview .entry__img { aspect-ratio: 4/3; }
.op-preview .ph { display: grid; place-items: center; height: 100%; color: rgb(255 255 255 / .35); font: 700 .85rem var(--font-head); }
.op-label { font: 700 .7rem/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: rgb(255 255 255 / .45); margin: 0 0 .8rem; }

.op-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0 .25rem; }
.op-count div { background: rgb(0 0 0 / .3); border: 1px solid rgb(255 255 255 / .08); border-radius: 12px; padding: .7rem .4rem; text-align: center; }
.op-count strong { display: block; font: 800 1.6rem/1 var(--font-head); color: #fff; }
.op-count span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .45); }
.op-share { display: grid; gap: .6rem; }
.op-link { display: flex; align-items: center; gap: .5rem; background: rgb(0 0 0 / .35); border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; padding: .4rem .4rem .4rem .9rem; }
.op-link code { flex: 1; font: 600 .95rem/1.2 ui-monospace, monospace; color: var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-checkin { text-align: center; }
.op-checkin .btn { width: 100%; min-height: 60px; font-size: .9rem; }
.op-lost { max-width: 520px; margin: 2rem auto 0; }
.op-empty { text-align: center; padding: 3rem 1rem; }
.op-sticky { position: sticky; bottom: 0; z-index: 20; margin-top: 1.5rem; padding: .9rem 0 calc(.9rem + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, #14100a 35%); }
.op-sticky .btn { width: 100%; min-height: 56px; }
.admin-tabs button { font-size: .74rem; padding: 0 .2rem; }
#review-count:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: .7rem; margin-left: 2px; }
.review-card { background: var(--white); border-radius: 14px; padding: .9rem; display: grid; gap: .75rem; }
.review-card .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.review-card .thumbs a:first-child { grid-column: 1 / -1; }
.review-card .thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: var(--ink); }
.review-card .thumbs a:first-child img { aspect-ratio: 16/10; }
.review-card h3 { margin: 0; font-size: 1.1rem; }
.review-card dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; margin: 0; font-size: .88rem; }
.review-card dt { color: var(--muted); }
.review-card dd { margin: 0; word-break: break-word; }
.status-tag { display: inline-block; font: 700 .65rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: .3rem .45rem; border-radius: 5px; background: var(--paper); color: var(--ink); vertical-align: middle; }
.status-tag.approved { background: #e6f4ea; color: var(--ok); }
.status-tag.pending { background: #fff4d6; color: #8a5a00; }
.status-tag.rejected { background: #fdecea; color: var(--danger); }
.status-tag.draft { background: #eeece6; color: var(--muted); }
.op-photo:not(.cover) .tools { left: .35rem; right: .35rem; bottom: .35rem; justify-content: space-between; }
.op-photo:not(.cover) .tools button { min-height: 32px; padding: .35rem .55rem; font-size: .66rem; }
.op-photo:not(.cover).op-add svg { width: 26px; height: 26px; margin-bottom: .2rem; }
.op-photo:not(.cover).op-add strong { font-size: .8rem; }
.op-photo:not(.cover).op-add span { display: none; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink); cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ink); flex: none; }
