/* Generated by tools/gen_css.mjs from src/styles.js - do not edit.
   Run `npm run css:build` after changing the source. */

:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --ink: #1c1a18;
  --ink-soft: #5d5853;
  --line: #e2ddd6;
  --accent: #b3261e;
  --accent-ink: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28,26,24,.06), 0 4px 14px rgba(28,26,24,.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171614; --surface: #211f1d; --ink: #f2efea; --ink-soft: #a9a29a;
    --line: #35322e; --accent: #e2564d; --accent-ink: #1c1a18;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --bg: #171614; --surface: #211f1d; --ink: #f2efea; --ink-soft: #a9a29a;
  --line: #35322e; --accent: #e2564d; --accent-ink: #1c1a18;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 64px; }
header.site {
  border-bottom: 1px solid var(--line); background: var(--surface); margin-bottom: 28px;
}
header.site .wrap { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.brand { font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.spacer { flex: 1; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.sub { color: var(--ink-soft); margin: 0 0 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.card h3 { margin: 0 0 4px; font-size: 1rem; }
.meta { color: var(--ink-soft); font-size: .88rem; }
.grid { display: grid; gap: 12px; }
@media (min-width: 620px) { .grid.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
textarea { min-height: 84px; resize: vertical; }
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer;
  text-decoration: none; font-size: .95rem;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
/* The sound control. Server-rendered with [hidden] and unhidden by sound.js, so
   it is never a dead button when the script fails to load or JS is off. The
   attribute selector has to out-specify .soundbtn's own display, or [hidden]
   would be ignored and the control would show up inert. */
.soundbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; margin-right: 16px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-soft); cursor: pointer; flex: none;
}
.soundbtn[hidden] { display: none; }
.soundbtn:hover { color: var(--ink); border-color: var(--ink-soft); }
.soundbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.soundbtn[data-sound-mode="off"] { opacity: .5; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px;
}
.empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px 20px;
  text-align: center; color: var(--ink-soft);
}
/* Art images are wrapped in <picture> to pin the theme. display:contents takes the
   wrapper out of layout entirely, so every rule below can go on targeting the <img>
   as though it were still a direct child. */
picture { display: contents; }
/* The splash is decoration on an empty state, so it is capped rather than fluid: at
   full width on a wide screen it stops being a hint and starts being the page. */
.empty img { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto 14px; }
.err { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--surface); border-radius: 6px; }
footer.site { color: var(--ink-soft); font-size: .84rem; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; }

/* --- the art gallery at /art ------------------------------------------------ */
.gal { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.gal.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gal.full { grid-template-columns: 1fr; }
.gal figure {
  margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-align: center;
}
.gal img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.gal figcaption { margin-top: 8px; font-size: .74rem; color: var(--ink-soft); word-break: break-word; }
.gal .ico { height: 28px; width: 28px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.jump a { font-size: .82rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; text-decoration: none; }
.note { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--surface); border-radius: 6px; margin: 0 0 24px; }

/* --- what used to be style="" attributes ------------------------------------
   Each of these replaces an inline style attribute in views.js. They are last in
   the file on purpose: several have to out-weigh a rule above them, and an inline
   attribute used to win those contests for free.

   Where a selector looks over-qualified, it is. ".card h3" is (0,1,1), so a bare
   ".doc-title" at (0,1,0) would lose to it and the margin would silently not apply -
   which is exactly the failure this whole change is prone to, since nothing renders
   an error when a class quietly does nothing. */

/* A POST form that is only a button, sitting in running text or a .row. */
.btn-form { display: inline; }
/* A whole card that is itself a link. Without this an <a> takes the accent colour from
   the "a" rule above and the UA's underline, and stays inline so the padding collapses. */
.card.link { display: block; text-decoration: none; color: inherit; }
/* A .row that follows something it should sit tight against, rather than 18px below. */
.row.flush { margin-top: 0; }
/* A document or vehicle title in a card, under its kind tag. Out-specifies .card h3. */
.card h3.doc-title { margin-top: 6px; }
/* The owner's free text under a document's dates. */
.doc-notes { margin: 8px 0 0; }
/* A meta line set apart from the body above it. Only the top margin: the bottom is
   the UA's 1em at .88rem, which the inline attribute also left alone. */
.meta.spaced { margin-top: 22px; }
/* The subtitle under a section heading, pulled up under the h2's own margin. */
.meta.section-sub { margin: -4px 0 12px; }
/* A marque-group heading in the art gallery. */
.group-head { margin: 24px 0 8px; font-size: .95rem; }
/* The report's title sits tight above its own subtitle, closer than a page h1.
   Scoped rather than given a class: there is only ever one h1 in there. */
.report-head h1 { margin-bottom: 2px; }
/* The one figure on /art that embeds a silhouette inline instead of as an <img>.
   Qualified with the element so it ties with ".gal figure" at (0,1,1) and wins on
   order, rather than losing to it if this figure is ever moved inside a gallery. */
figure.sample {
  margin: 12px 0 0; padding: 12px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.sample figcaption { margin-top: 8px; }
:root{--ad-bg:var(--bg);--ad-surface:var(--surface);--ad-ink:var(--ink);--ad-ink-soft:var(--ink-soft);--ad-line:var(--line);--ad-accent:var(--accent);--ad-accent-ink:var(--accent-ink)}.icon{vertical-align:-.18em;flex:none}.sil .body{fill:none;stroke:var(--ad-ink);stroke-width:3;stroke-linejoin:round}.sil .glass{fill:none;stroke:var(--ad-ink-soft);stroke-width:2.4;stroke-linejoin:round}.sil .detail{fill:none;stroke:var(--ad-ink-soft);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.sil .tyre{fill:none;stroke:var(--ad-ink);stroke-width:3}.sil .hub{fill:none;stroke:var(--ad-ink-soft);stroke-width:2.2}.sil .ground{fill:none;stroke:var(--ad-line);stroke-width:2.5;stroke-linecap:round}.sil.solid .body{fill:var(--ad-ink);stroke:none}.sil.solid .glass{fill:var(--ad-bg);stroke:none}.sil.solid .detail{stroke:var(--ad-bg)}.sil.solid .tyre{fill:var(--ad-ink);stroke:none}.sil.solid .hub{fill:var(--ad-bg);stroke:none}
@page { size: letter; margin: 18mm 16mm; }
@media print {
  header.site, footer.site, .noprint { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .card { border: none; box-shadow: none; padding: 0 0 10pt; border-bottom: 1px solid #ccc; break-inside: avoid; }
  .report-head { border-bottom: 2px solid #000; margin-bottom: 14pt; padding-bottom: 8pt; }
  a { color: #000; text-decoration: none; }
}
