@charset "UTF-8";
/* ==========================================================================
   The Unofficial Ampeg Page — site stylesheet
   Single shared stylesheet for every page. No external font or CDN requests,
   so the whole site works offline and renders instantly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:        #fbf9f6;
  --paper-alt:    #f3efe9;
  --surface:      #ffffff;
  --surface-dark: #16181d;

  /* Ink */
  --ink:          #1b1e24;
  --ink-soft:     #454b57;
  --ink-muted:    #6d7481;
  --ink-invert:   #f4f1ec;

  /* Brand — "blue check" tolex blue + vintage logoplate amber */
  --brand:        #1d4e79;
  --brand-dark:   #143a5c;
  --brand-light:  #e8f0f7;
  --accent:       #b4622c;
  --accent-dark:  #8f4c20;
  --accent-light: #fbf1e8;

  /* Lines & states */
  --line:         #e3ddd3;
  --line-strong:  #cdc5b8;
  --danger:       #9b2c2c;
  --danger-bg:    #fdf2f0;
  --ok:           #2f6b46;

  /* Type */
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
               "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Times New Roman", "Songti SC", serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular",
               "Liberation Mono", Menlo, monospace;

  /* Space & shape */
  --wrap: 74rem;
  --wrap-narrow: 48rem;
  --gap: 1.5rem;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(27, 30, 36, .06),
               0 2px 8px rgba(27, 30, 36, .05);
  --shadow-md: 0 2px 4px rgba(27, 30, 36, .07),
               0 10px 26px rgba(27, 30, 36, .08);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  border-style: none;
}

img { vertical-align: middle; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { color: var(--accent-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

hr {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 2.25rem 0;
}

::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--surface-dark);
  color: var(--ink-invert);
  border-bottom: 3px solid var(--accent);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: .85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink-invert);
  flex: 0 0 auto;
}
.brand:hover { color: #fff; }
.brand__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  letter-spacing: -.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand__tag {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9aa4b2;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid #3a4150;
  color: var(--ink-invert);
  border-radius: var(--radius-sm);
  padding: .45rem .7rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: #fff; }

.site-nav { flex: 1 1 100%; }
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem;
}
.site-nav__list > li { position: relative; }
.site-nav__link {
  display: block;
  padding: .5rem .68rem;
  border-radius: var(--radius-sm);
  color: #d9dee6;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__link:focus-visible { background: #262b34; color: #fff; }
.site-nav__link[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

/* CSS-only dropdowns built on <details> — no JavaScript required */
.site-nav__group > summary {
  cursor: pointer;
  list-style: none;
  padding: .5rem .68rem;
  border-radius: var(--radius-sm);
  color: #d9dee6;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav__group > summary::-webkit-details-marker { display: none; }
.site-nav__group > summary::after {
  content: "";
  display: inline-block;
  margin-left: .4rem;
  width: .42em;
  height: .42em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.15em) rotate(45deg);
}
.site-nav__group > summary:hover { background: #262b34; color: #fff; }
.site-nav__group[open] > summary { background: #262b34; color: #fff; }
.site-nav__group ul {
  list-style: none;
  margin: .35rem 0 0;
  padding: .4rem;
  background: #21252d;
  border: 1px solid #333a45;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 15rem;
}
.site-nav__group ul a {
  display: block;
  padding: .42rem .55rem;
  border-radius: var(--radius-sm);
  color: #d9dee6;
  text-decoration: none;
  font-size: .89rem;
}
.site-nav__group ul a:hover { background: var(--brand); color: #fff; }
.site-nav__group ul .nav-note {
  display: block;
  padding: .2rem .55rem .35rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7c8798;
}

@media (max-width: 60rem) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; padding-bottom: .5rem; }
  .site-nav__link,
  .site-nav__group > summary { padding: .6rem .7rem; }
  .site-nav__group ul {
    position: static;
    box-shadow: none;
    margin-left: .6rem;
  }
}
@media (min-width: 60.0625rem) {
  .site-nav { flex: 0 1 auto; }
  .site-nav__list { justify-content: flex-end; }
  .site-nav__group ul {
    position: absolute;
    z-index: 40;
    left: 0;
    top: 100%;
  }
}

/* --------------------------------------------------------------------------
   5. Hero & page banner
   -------------------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(180deg, rgba(20, 58, 92, .92), rgba(20, 58, 92, .96)),
    repeating-linear-gradient(45deg, #17395a 0 12px, #1b4368 12px 24px);
  color: #fff;
  padding-block: 3.25rem 3rem;
  border-bottom: 3px solid var(--accent);
}
.hero--compact { padding-block: 2.1rem 1.9rem; }
.hero__eyebrow {
  margin: 0 0 .6rem;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #a9c4dd;
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 .8rem;
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero__lede {
  margin: 0;
  max-width: 52rem;
  font-size: clamp(1rem, .95rem + .35vw, 1.16rem);
  color: #dfe8f1;
}
.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
/* Links inside the hero sit on a dark field, so they need a light colour
   rather than the default brand blue. */
.hero a { color: #ffd9a8; text-underline-offset: 2px; }
.hero a:hover { color: #fff; }
.hero__lede a { color: #ffd9a8; }
.hero__lede a:hover { color: #fff; }
/* Quiet variation used for the in-memoriam banner. */
.hero--tribute {
  background: linear-gradient(180deg, #23272e, #16181d);
  border-bottom-color: #6d7481;
}
.hero--tribute .hero__eyebrow { color: #a8b0bd; }

/* --------------------------------------------------------------------------
   6. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  font-size: .83rem;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: .6rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .55rem;
  color: var(--ink-muted);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: .55rem;
  color: var(--line-strong);
}
.breadcrumbs a { color: var(--brand); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   7. Content typography
   -------------------------------------------------------------------------- */
main { display: block; }
.page { padding-block: 2.5rem 3rem; }

/* Legacy frame-era pages have no wrapper element; constrain them here. */
.page > .wrap { display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  margin: 2.2rem 0 .8rem;
  font-weight: 700;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.15rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
h5, h6 { font-size: .97rem; text-transform: uppercase; letter-spacing: .06em; }

h2 + h3, h2 + h4 { margin-top: 1.1rem; }

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }
small { font-size: .85rem; color: var(--ink-muted); }

ul, ol { margin: 0 0 1.05rem; padding-left: 1.4rem; }
li { margin-bottom: .35rem; }
li > ul, li > ol { margin-top: .35rem; margin-bottom: .35rem; }

blockquote {
  margin: 1.5rem 0;
  padding: .9rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}
blockquote p:last-child { margin-bottom: 0; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .9em; }
code {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .08em .38em;
}
pre {
  background: var(--surface-dark);
  color: #e8eaf0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

/* --------------------------------------------------------------------------
   8. Links & inline helpers
   -------------------------------------------------------------------------- */
.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 52rem;
}

.link-list { list-style: none; padding: 0; }
.link-list li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}
.link-list li:last-child { border-bottom: 0; }
.link-list a { font-weight: 600; }
.link-list .meta,
.link-list .desc { display: block; }
.link-list .desc { color: var(--ink-soft); font-weight: 400; font-size: .93rem; }
.link-list .meta {
  color: var(--ink-muted);
  font-size: .8rem;
  font-weight: 400;
  margin-top: .15rem;
}

.status {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .12em .5em;
  border-radius: 999px;
  vertical-align: .1em;
  white-space: nowrap;
}
.status--offline { background: #efe9e2; color: #8a5a2b; }
.status--archive { background: var(--brand-light); color: var(--brand-dark); }
.status--free    { background: #e7f3ea; color: var(--ok); }
.status--new     { background: var(--accent-light); color: var(--accent-dark); }

.dead-link {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.ext::after {
  content: "\2197";           /* ↗ */
  font-size: .78em;
  margin-left: .18em;
  color: var(--ink-muted);
  vertical-align: .12em;
}

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .62rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--brand); background: var(--brand-light); }

/* --------------------------------------------------------------------------
   10. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3, .card h4 { margin: 0; font-size: 1.1rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.card a.card__title {
  text-decoration: none;
  color: var(--brand);
}
.card a.card__title:hover { color: var(--accent-dark); text-decoration: underline; }

.card--link {
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  color: inherit;
}

.card__eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--accent-dark);
}
.card__foot {
  margin-top: auto;
  padding-top: .65rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--brand);
}
.card--link:hover .card__foot { color: var(--accent-dark); }

.card__icon {
  width: 44px; height: 44px;
  object-fit: contain;
}

/* Feature tiles carrying the original site artwork */
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem .8rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
  color: var(--ink);
}
.tile img { max-height: 92px; width: auto; }
.tile__label { font-weight: 700; font-size: .92rem; color: var(--brand); }
.tile:hover .tile__label { color: var(--accent-dark); }
.tile__sub { font-size: .8rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   11. Sections
   -------------------------------------------------------------------------- */
.section { padding-block: 2.6rem; }
.section--alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 1.5rem; max-width: 52rem; }
.section__head h2 { margin: 0 0 .45rem; }
.section__head p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   12. Callouts
   -------------------------------------------------------------------------- */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: var(--brand-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 .4rem;
  color: var(--brand-dark);
}

.callout--warn {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}
.callout--warn .callout__title { color: var(--danger); }

.callout--note {
  border-left-color: var(--accent);
  background: var(--accent-light);
}
.callout--note .callout__title { color: var(--accent-dark); }

.callout--quiet {
  border-left-color: var(--line-strong);
  background: var(--paper-alt);
}
.callout--quiet .callout__title { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   13. Tables
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 1.6rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
caption {
  caption-side: top;
  text-align: left;
  padding: .55rem .2rem;
  font-size: .85rem;
  color: var(--ink-muted);
}
th, td {
  padding: .62rem .8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 0;
}
tbody tr:nth-child(even) { background: var(--paper-alt); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   14. Spec lists (model data)
   -------------------------------------------------------------------------- */
.spec-list {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
  display: grid;
  gap: .2rem;
}
.spec-list li {
  margin: 0;
  padding-left: 1rem;
  position: relative;
  font-size: .93rem;
  color: var(--ink-soft);
}
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: .32rem;
  height: .32rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.model {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.model > h3 {
  margin: 0 0 .2rem;
  font-size: 1.12rem;
}
.model__tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .35rem;
}
.model__note {
  margin: .6rem 0 0;
  font-size: .88rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* Anchor-target offset so sticky-less headings are not hidden */
:target { scroll-margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   15. Figures & galleries
   -------------------------------------------------------------------------- */
.figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem;
  text-align: center;
}
.figure img { border-radius: var(--radius-sm); }
.figure figcaption {
  margin-top: .6rem;
  font-size: .84rem;
  color: var(--ink-muted);
}

.gallery {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

/* Schematic thumbnails linked to full-size GIFs */
.sheet-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.sheet-list li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
}
.sheet-list a { font-weight: 600; }
.sheet-list .meta {
  display: block;
  font-size: .8rem;
  color: var(--ink-muted);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   16. Contents / TOC blocks
   -------------------------------------------------------------------------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}
.toc h2, .toc h3 { margin: 0 0 .5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.toc ul { margin: 0; padding-left: 1.15rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. FAQ / details
   -------------------------------------------------------------------------- */
.faq { margin: 1.6rem 0; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .6rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: .85rem 1.1rem;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1.03rem;
  color: var(--brand-dark);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
}
.faq details[open] summary::before { content: "\2212"; }  /* − */
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq__body { padding: .9rem 1.1rem 1.05rem; }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   18. Forms (survey worksheet)
   -------------------------------------------------------------------------- */
.form-field { margin-bottom: 1.15rem; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: .94rem;
  margin-bottom: .3rem;
}
.form-field .hint {
  display: block;
  font-weight: 400;
  font-size: .85rem;
  color: var(--ink-muted);
  margin-bottom: .4rem;
}
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .52rem .65rem;
}
textarea { min-height: 5.5rem; resize: vertical; }
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 1.15rem;
  margin: 0 0 1.4rem;
  background: var(--surface);
}
legend {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  padding-inline: .4rem;
}
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.form-output {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  min-height: 12rem;
}

/* --------------------------------------------------------------------------
   19. Update / news log
   -------------------------------------------------------------------------- */
.log { list-style: none; padding: 0; margin: 1.6rem 0; }
.log > li {
  position: relative;
  padding: 0 0 1.35rem 1.6rem;
  border-left: 2px solid var(--line);
  margin: 0;
}
.log > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.log > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: .55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.log time {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .15rem;
}
.log p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-dark);
  color: #c3cad4;
  margin-top: 3rem;
  border-top: 3px solid var(--accent);
  font-size: .91rem;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  padding-block: 2.4rem 1.6rem;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #8792a1;
  margin: 0 0 .7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .38rem; }
.site-footer a { color: #dfe4ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__about p { margin: 0 0 .7rem; color: #a7b0bd; font-size: .89rem; }
.site-footer__bottom {
  border-top: 1px solid #2b313b;
  padding-block: 1.1rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .83rem;
  color: #8b95a3;
}
.site-footer__bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   21. 404 page
   -------------------------------------------------------------------------- */
.error-page { text-align: center; padding-block: 3.5rem; }
.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 2rem + 8vw, 7rem);
  line-height: 1;
  color: var(--accent);
  margin: 0 0 .5rem;
}
.error-page__body { max-width: 34rem; margin-inline: auto; }

/* --------------------------------------------------------------------------
   22. Components used by reference pages
   -------------------------------------------------------------------------- */

/* Danger callout — reserved for genuinely hazardous advice. */
.callout--danger {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}
.callout--danger .callout__title { color: var(--danger); }

/* Definition lists used for the glossary and for term-by-term explanations. */
.glossary { margin: 1.6rem 0; }
.glossary dt {
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 1.1rem;
}
.glossary dt:first-child { margin-top: 0; }
.glossary dd {
  margin: .25rem 0 0;
  padding-left: 0;
  color: var(--ink-soft);
}
.glossary dd + dt { border-top: 1px solid var(--line); padding-top: 1.1rem; }

/* Numbered procedure list. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.6rem 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.1rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .05rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 700;
}
.steps > li > :first-child { margin-top: 0; }
.steps > li > :last-child { margin-bottom: 0; }

/* Pull quote. */
.pull {
  margin: 2rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 4px solid var(--accent);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
  line-height: 1.4;
  color: var(--brand-dark);
}
.pull p { margin: 0; }
.pull footer {
  margin-top: .7rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-style: normal;
  color: var(--ink-muted);
}

/* Centred figure, for portraits and single images. */
.figure--center { margin-inline: auto; text-align: center; }
.figure--center img { margin-inline: auto; }

/* Grid used for image-beside-text card layouts. */
.grid--media { gap: 1rem; align-items: center; }

/* Search / "try one of these" panel on the error pages. */
.search-box {
  margin: 2rem auto;
  max-width: 40rem;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.search-box > p:first-child { margin-top: 0; font-weight: 600; }
.search-box > p:last-child { margin-bottom: 0; }

/* Inline horizontal link list. */
.inline-links {
  list-style: none;
  padding: 0;
  margin: .8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  justify-content: center;
}
.inline-links li { margin: 0; }
.inline-links a {
  display: inline-block;
  padding: .3rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}
.inline-links a:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
}

/* A supplier or resource that no longer exists: shown but not linked. */
.dead-link { font-weight: 600; color: var(--ink-muted); }
.link-list .dead-link { text-decoration: line-through; }

/* --------------------------------------------------------------------------
   23. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.hr-fancy {
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border: 0;
  border-radius: 3px;
  margin: 2.4rem 0;
}

@media print {
  .site-header, .site-footer, .breadcrumbs, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .hero { background: #fff !important; color: #000 !important; border-bottom: 1px solid #000; }
  .hero__lede, .hero__eyebrow { color: #333 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
