/* ============================================================
   ACO Vets — design system, v3 "clear deck"
   Rebuilt for readability after member feedback: light plates,
   plain sans body text, headings in Bricolage Grotesque, mono
   reserved for dates and counts only. Two themes, admin-picked:

   Harbor (default) — the Marissa Charters palette: near-white
   blue-tinted paper, white cards, deep ocean ink, ocean-blue
   primary, amber highlights.

   Olive Drab — dark-olive masthead, light olive-tinted paper,
   near-black ink, Army-gold highlights.

   Theme is set by data-theme on <html>; no auto dark mode.
   ============================================================ */

:root {
  /* Harbor plate (default) */
  --paper: hsl(205 40% 98%);
  --paper-2: hsl(205 30% 95%);
  --surface: #ffffff;
  --ink: hsl(209 45% 16%);
  --ink-strong: hsl(209 50% 11%);
  --muted: hsl(207 18% 38%);

  --primary: hsl(205 72% 36%);
  --primary-strong: hsl(205 72% 27%);
  --accent: hsl(205 72% 32%);

  --hi: hsl(28 80% 37%);            /* amber-700 — highlight text */
  --hi-border: hsl(43 96% 56%);     /* amber-400 — highlight rules */
  --tint: hsl(48 100% 96%);         /* amber-50 — highlight fill */

  --rule-strong: hsl(205 25% 74%);
  --rule-mid: hsl(205 25% 84%);
  --rule-soft: hsl(205 25% 90%);
  --shadow: 0 1px 2px hsl(209 45% 16% / 0.05), 0 10px 28px hsl(209 45% 16% / 0.08);

  /* Masthead + footer plate */
  --head-bg: rgba(255, 255, 255, 0.96);
  --head-ink: hsl(209 45% 14%);
  --head-muted: hsl(207 18% 46%);
  --head-line: hsl(205 25% 87%);
  --head-rule: var(--primary);
  --foot-bg: hsl(208 38% 22%);
  --foot-ink: hsl(205 32% 86%);

  /* Hero plate (photo overlay fallback) — kept mild, not near-black */
  --hero-a: hsl(208 48% 22%);
  --hero-b: hsl(205 56% 34%);
  --hero-ink: #eef4f9;
  --hero-muted: hsl(206 30% 74%);

  /* Legacy fixed-brand names still referenced by views */
  --navy: hsl(209 45% 14%);
  --navy-deep: hsl(209 50% 10%);
  --gold: hsl(43 80% 52%);
  --red: var(--primary);
  --red-bright: #d64545;

  --font-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1040px;
  --maxw-narrow: 720px;
  color-scheme: light;
}

[data-theme="olive"] {
  --paper: hsl(60 26% 94%);
  --paper-2: hsl(58 24% 89%);
  --surface: hsl(58 40% 98%);
  --ink: hsl(72 20% 12%);
  --ink-strong: hsl(72 24% 8%);
  --muted: hsl(70 12% 34%);

  --primary: hsl(78 39% 30%);         /* olive drab */
  --primary-strong: hsl(78 42% 22%);
  --accent: hsl(78 42% 26%);

  --hi: hsl(45 85% 32%);              /* deep army gold text */
  --hi-border: hsl(47 92% 50%);       /* yellow rules */
  --tint: hsl(52 80% 93%);

  --rule-strong: hsl(70 14% 66%);
  --rule-mid: hsl(70 14% 78%);
  --rule-soft: hsl(70 14% 86%);
  --shadow: 0 1px 2px hsl(72 24% 8% / 0.06), 0 10px 28px hsl(72 24% 8% / 0.09);

  --head-bg: hsl(74 20% 26%);
  --head-ink: hsl(55 45% 92%);
  --head-muted: hsl(60 20% 72%);
  --head-line: hsl(74 16% 36%);
  --head-rule: hsl(47 92% 50%);
  --foot-bg: hsl(74 20% 24%);
  --foot-ink: hsl(58 28% 82%);

  --hero-a: hsl(74 22% 22%);
  --hero-b: hsl(76 26% 32%);
  --hero-ink: hsl(55 50% 93%);
  --hero-muted: hsl(60 20% 70%);

  --navy: hsl(74 24% 15%);
  --navy-deep: hsl(74 26% 10%);
  --gold: hsl(47 88% 46%);
  --red: var(--primary);
  --red-bright: #c0533a;
}

/* ---------- base ---------- */

* { 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: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink-strong); }

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

::selection { background: hsl(43 96% 56% / 0.4); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--maxw-narrow); }

.sr-only, .skip {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 0; left: 0;
  width: auto; height: auto;
  clip: auto; white-space: normal;
  background: var(--ink-strong); color: #fff;
  padding: 0.7rem 1.1rem; z-index: 100;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink-strong);
  margin: 0;
  text-wrap: balance;
}

/* ============================================================
   Masthead — light and clean on Harbor, dark olive on Olive.
   ============================================================ */

.masthead {
  background: var(--head-bg);
  color: var(--head-ink);
  border-bottom: 1px solid var(--head-line);
}
.masthead__meta {
  display: flex;
  justify-content: space-between;
  padding-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--head-muted);
}
.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 0.55rem;
  padding-bottom: 0.9rem;
}
.masthead__rule {
  height: 4px;
  background: var(--head-rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--head-ink);
}
.brand__logo {
  width: 46px;
  height: 60px;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}
.brand__text { display: flex; flex-direction: column; gap: 0.18rem; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.5rem;
  line-height: 0.95;
  color: var(--head-ink);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--hi);
}
[data-theme="olive"] .brand__sub { color: var(--gold); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
}
.nav a {
  color: var(--head-ink);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--tint); color: var(--ink-strong); }
[data-theme="olive"] .nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav a.is-current { background: var(--primary); color: #fff; }
[data-theme="olive"] .nav a.is-current { background: var(--gold); color: var(--ink-strong); }

.nav-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
[data-theme="olive"] .nav-toggle { background: var(--gold); color: var(--ink-strong); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    padding-top: 0.4rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0.85rem; border-top: 1px solid var(--head-line); border-radius: 0; }
}

/* ============================================================
   Page scaffolding.
   ============================================================ */

.main { padding: clamp(1.8rem, 5vw, 3.2rem) 0 4rem; }

/* Admin-set page background photo — a hero band above the content,
   photo under a soft dark wash so the page title still leads. */
.backdrop-band {
  margin: calc(-1 * clamp(1.8rem, 5vw, 3.2rem)) 0 clamp(1.6rem, 4vw, 2.4rem);
  min-height: clamp(150px, 26vw, 300px);
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid var(--hi-border);
}

.pagehead { margin-bottom: clamp(1.4rem, 4vw, 2.2rem); }
.pagehead--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pagehead__aside {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 0.9rem;
}
.pagehead__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hi);
  margin: 0 0 0.5rem;
}
.pagehead__title {
  font-size: clamp(1.9rem, 5.5vw, 2.9rem);
  font-weight: 800;
  padding-bottom: 0.5rem;
  border-bottom: 4px solid var(--hi-border);
  margin-bottom: 0.1rem;
}
.pagehead__campaigns {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0.9rem 0 0;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--hi-border);
  margin-bottom: 1.1rem;
}

.flash {
  background: var(--tint);
  border-left: 3px solid var(--hi-border);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  margin: 0 0 1.4rem;
  border-radius: 0 10px 10px 0;
  color: var(--ink);
}
.flash--err { border-left-color: var(--red-bright); }

.empty {
  border: 1px dashed var(--rule-mid);
  padding: 1.1rem 1.2rem;
  color: var(--muted);
  border-radius: 10px;
}

.count-line {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-mid);
  padding-bottom: 0.6rem;
  margin: 0 0 1.1rem;
}

.aatw-line, .stamp-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: 3rem;
}

.intro-note {
  border-left: 3px solid var(--hi-border);
  background: var(--tint);
  border-radius: 0 10px 10px 0;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.6rem;
  max-width: 62ch;
}

.prose-block { max-width: 66ch; }
.prose-block p { margin: 0 0 1rem; }
.prose-block--mission { font-size: 1.14rem; }
.prose-block--mission .dropcap::first-letter {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding: 0.04em 0.12em 0 0;
  color: var(--primary);
}

.textlink {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.textlink--danger {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.hidden-note {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  margin: 0.4rem 0 0;
}

/* ============================================================
   Buttons.
   ============================================================ */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--primary); color: #fff; }
.btn--red:hover { background: var(--primary-strong); color: #fff; }
.btn--navy { background: var(--ink-strong); color: #fff; }
.btn--navy:hover { background: var(--primary); color: #fff; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink-strong); }
.btn--ghost-ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn--ghost-ink:hover { background: var(--tint); color: var(--ink-strong); }
.btn--small { padding: 0.5rem 1rem; font-size: 0.88rem; }

/* ============================================================
   Hero (welcome page). With an admin-set photo the view layers
   a dark wash + image via inline style; this is the fallback.
   ============================================================ */

.hero {
  background: linear-gradient(168deg, var(--hero-a) 0%, var(--hero-b) 100%);
  background-size: cover;
  background-position: center;
  color: var(--hero-ink);
  padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(2.4rem, 7vw, 4rem);
  border-bottom: 4px solid var(--hi-border);
  margin: calc(-1 * clamp(1.8rem, 5vw, 3.2rem)) 0 clamp(2rem, 6vw, 3.4rem);
}
.hero__kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero__kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--gold);
}
.hero__title {
  color: #fff;
  font-size: clamp(2.8rem, 11vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero__deck {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--hero-ink);
  max-width: 52ch;
  margin: 0 0 2.2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; }

.hero__layout {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.hero__main { flex: 1 1 420px; min-width: 0; }
.hero__crest {
  flex: 0 1 250px;
  max-width: 250px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}
@media (max-width: 720px) {
  .hero__layout { flex-direction: column-reverse; align-items: flex-start; }
  .hero__crest { max-width: 150px; }
}

.ribbon-key {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  max-width: 680px;
}
.ribbon-key__item {
  flex: 1 1 150px;
  padding: 0.75rem 0.95rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ribbon-key__item:last-child { border-right: 0; }
.ribbon-key__bar { height: 5px; border-radius: 2px; margin-bottom: 0.35rem; }
.ribbon-key__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
}
.ribbon-key__date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--hero-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Home hub — the muster sheet.
   ============================================================ */

.alert-strip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--tint);
  border: 1px solid var(--hi-border);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  margin-bottom: 1.6rem;
  text-decoration: none;
  color: var(--ink-strong);
  font-weight: 600;
  font-size: 0.95rem;
}
.alert-strip__count {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border-radius: 10px;
}
.alert-strip__arrow { margin-left: auto; color: var(--accent); }

.muster {
  list-style: none;
  margin: 0;
  padding: 0;
}
.muster__row {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.25rem 0.8rem;
  border-top: 1px solid var(--rule-mid);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.muster li:last-child .muster__row { border-bottom: 1px solid var(--rule-mid); }
.muster__row:hover { background: var(--tint); }
.muster__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--hi);
  padding-top: 0.45rem;
  width: 1.7rem;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.muster__body { flex: 1; }
.muster__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 3.4vw, 1.55rem);
  line-height: 1.08;
  color: var(--ink-strong);
}
.muster__stat {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.muster__go {
  font-size: 1.05rem;
  color: var(--accent);
  padding-top: 0.45rem;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.muster__go--label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-top: 0.7rem;
  text-transform: uppercase;
}
.muster__row:hover .muster__go { transform: translateX(4px); }
.muster__badge {
  background: var(--red-bright);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  margin-top: 0.45rem;
  flex: 0 0 auto;
}

/* ============================================================
   Forms.
   ============================================================ */

.form { max-width: 640px; }
.form--boxed {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  padding: 1.3rem 1.4rem 0.6rem;
  margin: 1rem 0 1.6rem;
  box-shadow: var(--shadow);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}
.form__grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) {
  .form__grid, .form__grid--three { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.15rem;
  border: 0;
  padding: 0;
  min-width: 0;
}
.field__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-strong);
  margin-bottom: 0.4rem;
}
.field__label em { color: var(--red-bright); font-style: normal; }
.field__help {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="search"], input[type="file"],
select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 0.68rem 0.8rem;
  width: 100%;
  min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--hi-border);
  outline-offset: 1px;
  border-color: var(--ink-strong);
}

.checks { display: flex; flex-wrap: wrap; gap: 0.45rem 1.4rem; }
.check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
}
.check input { width: auto; min-height: 0; accent-color: var(--primary); }

.field--privacy {
  border: 1px solid var(--rule-mid);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  gap: 0.5rem;
}
.field--privacy .check { margin-top: 0.35rem; }

.form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 0;
}
.logout-row { margin-top: 2.4rem; border-top: 1px solid var(--rule-soft); padding-top: 1.4rem; }

/* ============================================================
   Chips & toolbar.
   ============================================================ */

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; }
.chips a {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}
.chips a:hover { background: var(--tint); }
.chips a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.1rem;
}
.toolbar input[type="search"] { flex: 1 1 230px; }
.toolbar input[type="text"] { flex: 0 1 130px; }
.toolbar select { width: auto; }
.toolbar--wrap input[type="search"] { flex-basis: 100%; }
@media (min-width: 760px) {
  .toolbar--wrap input[type="search"] { flex-basis: 240px; }
}

/* ============================================================
   Roster cards.
   ============================================================ */

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  align-items: start;
}
.vcard {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-top: 4px solid var(--hi-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.vcard > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
}
.vcard > summary::-webkit-details-marker { display: none; }
.vcard__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink-strong);
}
.vcard__meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.vcard__camps {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hi);
  margin-top: 0.25rem;
}
.vcard__hint {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.55rem;
}
.vcard[open] .vcard__hint { display: none; }
.vcard__body {
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid var(--rule-soft);
}
.vcard__actions { display: flex; gap: 0.5rem; margin: 0.9rem 0 0; }
.vcard__actions .btn { flex: 1; text-align: center; }

.ledger {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1.1rem;
}
.ledger dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.22rem;
}
.ledger dd { margin: 0; overflow-wrap: anywhere; }
.ledger--tight { font-size: 0.92rem; gap: 0.3rem 0.9rem; }

/* ============================================================
   Message board.
   ============================================================ */

.composer { margin-bottom: 1.8rem; }
.composer textarea { margin-bottom: 0.6rem; }
.composer__row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.composer__row select { width: auto; min-width: 180px; }
.composer--reply { margin: 0.6rem 0 0; }

.feed { list-style: none; margin: 0; padding: 0; }
.post {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--hi-border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}
.post__head {
  display: flex;
  align-items: baseline;
  gap: 0.4rem 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.post__author {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink-strong);
}
.post__author--small { font-size: 0.95rem; }
.post__unit {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.post__time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.post__admin { margin-left: auto; }
.post__body { overflow-wrap: anywhere; }

.replies {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.2rem 0 0 1rem;
  border-left: 2px solid var(--rule-soft);
}
.reply { padding: 0.55rem 0; border-bottom: 1px solid var(--rule-soft); }
.reply:last-child { border-bottom: 0; }

.reply-toggle { margin-top: 0.7rem; }
.reply-toggle > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.reply-toggle > summary::-webkit-details-marker { display: none; }

/* ============================================================
   Photo archive.
   ============================================================ */

.upload-fold { margin-bottom: 1.6rem; }
.upload-fold > summary { list-style: none; }
.upload-fold > summary::-webkit-details-marker { display: none; }

.folder-strip {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.7rem;
  margin-bottom: 1.2rem;
}
.folder {
  flex: 0 0 auto;
  width: 112px;
  text-decoration: none;
  color: var(--ink);
}
.folder__swatch {
  display: block;
  height: 70px;
  border-radius: 10px;
  background-color: var(--ink-strong);
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1.1px, transparent 1.2px);
  background-size: 6px 6px;
  border-bottom: 3px solid var(--hi-border);
  transition: transform 0.14s ease;
}
.folder:hover .folder__swatch { transform: translateY(-2px); }
.folder.is-active .folder__swatch { border-bottom-color: var(--red-bright); }
.folder__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.15;
  margin-top: 0.45rem;
  color: var(--ink-strong);
}
.folder__count {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
}
.shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot__link { display: block; }
.shot__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.shot__cap { padding: 0.7rem 0.85rem 0.85rem; display: flex; flex-direction: column; gap: 0.45rem; }
.shot__title { font-weight: 600; font-size: 0.95rem; }
.shot__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.chip {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--rule-mid);
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
}
.chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.shot__by {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* ============================================================
   Admin.
   ============================================================ */

.admin-block { margin-bottom: 2.6rem; }
.queue { list-style: none; margin: 0; padding: 0; }
.queue__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0.2rem;
  border-top: 1px solid var(--rule-mid);
}
.queue__row:last-child { border-bottom: 1px solid var(--rule-mid); }
.queue__who { display: flex; flex-direction: column; gap: 0.15rem; }
.queue__mail { font-size: 0.85rem; color: var(--muted); }
.queue__actions { display: flex; gap: 0.5rem; }

.chatlog { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.chatlog__msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  line-height: 1.5;
}
.chatlog__msg--user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chatlog__msg--assistant {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--rule-mid);
  border-bottom-left-radius: 4px;
}

.copyblock {
  background: var(--paper-2);
  border: 1px solid var(--rule-mid);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.gauge { max-width: 520px; margin-bottom: 0.6rem; }
.gauge__bar {
  height: 14px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--rule-mid);
  overflow: hidden;
}
.gauge__fill {
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.gauge__fill--warn { background: var(--red-bright); }
.gauge__label {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.backdrop-thumb {
  width: 92px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--rule-mid);
  flex: 0 0 auto;
}
.backdrop-row input[type="file"] { max-width: 240px; min-height: 0; padding: 0.4rem 0.5rem; font-size: 0.85rem; }

.theme-pick { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.theme-pick label {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--rule-mid);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  background: var(--surface);
}
.theme-pick input { accent-color: var(--primary); }
.theme-pick__sw {
  width: 40px; height: 26px;
  border-radius: 6px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.theme-pick__sw--harbor { background: linear-gradient(135deg, hsl(205 72% 36%) 50%, hsl(205 40% 97%) 50%); }
.theme-pick__sw--olive { background: linear-gradient(135deg, hsl(78 39% 30%) 50%, hsl(47 92% 50%) 50%); }

/* ============================================================
   Colophon.
   ============================================================ */

.colophon {
  background: var(--foot-bg);
  color: var(--foot-ink);
  border-top: 4px solid var(--hi-border);
  padding: 2.6rem 0 3rem;
  text-align: center;
}
.colophon__motto {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.3rem;
}
.colophon__aatw {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.colophon__line {
  font-size: 0.92rem;
  margin: 0.2rem 0;
}
.social {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
}
.social__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease;
}
.social__btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.shot__edit .field { margin-bottom: 0.5rem; }
.shot__edit input, .shot__edit select { min-height: 36px; padding: 0.4rem 0.6rem; font-size: 0.9rem; }
.shot__edit .field__label { font-size: 0.75rem; margin-bottom: 0.2rem; }

/* ============================================================
   Motion discipline.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
