/* ============================================================================
   trexiptv.forum — "Field Manual"
   A symptom-first troubleshooting site. Designed as technical documentation:
   paper ground, hairline rules instead of shadows, square corners, serif for
   long-form measure, sans for structure, mono for anything you would type.
   Colour is a state signal only — never decoration.

   Font <link> required in the PHP <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:ital,wght@0,400;0,600;1,400&display=swap">
   ========================================================================= */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* ground */
  --paper:      #FBFAF7;   /* warm page stock                                */
  --plate:      #FFFFFF;   /* panels sitting on the page (plans, forms, log) */
  --band:       #F1EEE6;   /* .alt banded sections                           */
  --sink:       #E9E5DA;   /* pressed / inert fills                          */

  /* ink */
  --ink:        #1A1A18;   /* body — 16.7:1 on paper                         */
  --ink-2:      #56534C;   /* secondary —  7.35:1 on paper                   */
  --rule:       #DDD8CD;   /* hairlines                                      */
  --rule-2:     #8E887B;   /* interactive borders — 3.38:1 on paper          */

  /* signal */
  --accent:     #0E4F6E;   /* links, primary — 8.52:1 on paper               */
  --accent-2:   #0A3B52;   /* pressed / deep band ground                     */
  --ok:         #17603A;
  --ok-bg:      #EDF5EF;
  --bad:        #99231F;
  --bad-bg:     #FBEFEE;
  --warn:       #7A5200;
  --info-bg:    #EDF3F6;

  /* type */
  --sans:  "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* rhythm — 8px base, documentation-tight */
  --s1: 4px;  --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 24px; --s6: 32px;  --s7: 48px;  --s8: 64px;
  --gutter: 20px;
  --measure: 68ch;
  --r: 2px;                /* the only radius in the system                  */

  color-scheme: light;     /* this design is committed to paper              */
}

/* Under a dark OS preference the design stays paper — it is the point of the
   site — but the stock is dimmed to cut glare and the rules are firmed up so
   nothing washes out on a low-brightness screen. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #F4F1EA;
    --plate: #FBF9F4;
    --band:  #EBE7DD;
    --sink:  #E2DDD1;
    --rule:  #D4CEC1;
    --rule-2:#7F7A6D;
  }
}

/* --- 2. Reset & base ----------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16.5px/1.68 var(--serif);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  counter-reset: sectionnum;
  overflow-wrap: break-word;
}

body.site-forum { text-rendering: optimizeLegibility; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.017em;
  margin: 0 0 var(--s3);
  color: var(--ink);
}
h1 { font-weight: 700; font-size: clamp(1.95rem, 5.4vw, 2.9rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); }
h3 { font-size: 1.14rem; }
h4 { font-size: 0.82rem; }

p { margin: 0 0 var(--s4); max-width: var(--measure); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

img, svg { max-width: 100%; height: auto; }

ul { margin: 0 0 var(--s4); padding-left: 1.15em; }
li { margin-bottom: var(--s1); }

strong { font-weight: 600; }
sup { font-size: 0.52em; vertical-align: super; line-height: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s6) 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

::selection { background: #CFE3EC; color: var(--ink); }

/* --- 3. Layout utilities ------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.small  { font-size: 0.86rem; line-height: 1.55; }
.mut    { color: var(--ink-2); }
.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }
.mb0    { margin-bottom: 0; }
.mt     { margin-top: var(--s5); }

/* Anything a reader might have to type, copy or compare, character by
   character: hosts, ports, MAC addresses, playlist URLs, error strings. */
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 500;
  background: var(--sink);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 0.1em 0.38em;
  overflow-wrap: anywhere;
  color: #14343F;
}

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; }
/* Chips carry the long strings on this site — portal hosts, playlist URLs,
   device models — so they must wrap inside themselves rather than push the
   page sideways on a 360px screen. */
.chip {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  background: var(--plate);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: 4px 9px;
  color: var(--ink-2);
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Tables are set as manual tables: open on both sides, one rule under the
   header, one under each row. No box, no banded header. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 var(--s5);
}
.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 440px;
  font-size: 0.92rem;
  border-top: 1px solid var(--rule-2);
}
.table-wrap th {
  font: 500 0.74rem/1.3 var(--mono);
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--ink-2);
  background: none;
  padding: 9px 14px 7px;
  border-bottom: 1px solid var(--rule-2);
  white-space: nowrap;
}
.table-wrap td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table-wrap td:first-child { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }

/* --- 4. Skip link -------------------------------------------------------- */

.skip {
  position: fixed;
  top: 0; left: var(--s4);
  z-index: 90;
  transform: translateY(-140%);
  background: var(--accent);
  color: #FFF;
  font: 600 0.85rem var(--sans);
  padding: 10px 16px;
  border-radius: 0 0 var(--r) var(--r);
  text-decoration: none;
  transition: transform 0.14s ease;
}
.skip:focus { transform: translateY(0); color: #FFF; }

/* --- 5. Header ----------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark { width: 26px; height: 26px; display: block; border-radius: var(--r); }
.brand-text {
  font: 600 1.06rem/1 var(--sans);
  letter-spacing: -0.02em;
}
.brand-text strong { font-weight: 700; color: var(--accent); }

.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a {
  font: 500 0.93rem var(--sans);
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.nav a.on, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

.nav .nav-cta {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: 7px 13px;
}
.nav .nav-cta:hover { border-color: var(--accent); background: var(--info-bg); color: var(--accent-2); }
.nav .nav-cta.on, .nav .nav-cta[aria-current] { border-color: var(--accent); background: var(--info-bg); }

/* Burger — three plain bars. Open state does not fold the bars into a cross;
   it swaps them for a mono multiplication sign, the same glyph language the
   rest of the manual uses. */
.burger {
  display: none;
  position: relative;
  width: 40px; height: 36px;
  padding: 8px 9px;
  background: none;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: opacity 0.12s ease;
}
.burger span + span { margin-top: 5px; }

/* The open state may be signalled by a class on the nav or by aria-expanded
   on the button. Both are honoured so one shared script can drive the whole
   family of themes without either signal being the odd one out. */
.site-head:has(#nav.open) .burger span,
.burger[aria-expanded="true"] span { opacity: 0; }
.site-head:has(#nav.open) .burger::after,
.burger[aria-expanded="true"]::after {
  content: "\00D7";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 1.45rem/1 var(--mono);
  color: var(--ink);
}

/* .98 rather than a whole pixel: fractional viewports (zoom, non-integer DPR)
   would otherwise fall through the gap between the two queries. */
@media (max-width: 779.98px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-2);
    padding: var(--s2) var(--gutter) var(--s4);
  }
  .nav.open,
  .site-head:has(.burger[aria-expanded="true"]) .nav { display: flex; }
  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
  /* Current page is marked with a mono pointer, not a bar in the margin. */
  .nav a.on, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--rule); }
  .nav a.on:not(.nav-cta)::before,
  .nav a[aria-current]:not(.nav-cta)::before {
    content: "\203A";
    font-family: var(--mono);
    font-weight: 500;
    color: var(--accent);
    margin-right: var(--s2);
  }
  .nav .nav-cta {
    margin-top: var(--s4);
    text-align: center;
    border: 1px solid var(--accent);
    padding: 12px;
    font-size: 0.9rem;
  }
}

/* --- 6. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font: 600 0.92rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.btn-primary { background: var(--accent); color: #FFF; border-color: var(--accent); }      /* 8.89:1 */
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #FFF; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--sink); border-color: var(--ink-2); color: var(--ink); }
.btn-block { display: flex; width: 100%; }

/* A checkout button that cannot be pressed must not look pressable. */
.btn:disabled,
.btn[aria-disabled="true"],
.btn[disabled] {
  background: var(--sink);
  color: var(--ink-2);          /* 6.09:1 on --sink */
  border-color: var(--rule);
  cursor: not-allowed;
  pointer-events: none;
}

/* --- 7. Hero ------------------------------------------------------------- */

.hero {
  border-bottom: 1px solid var(--rule);
  padding: var(--s7) 0 var(--s6);
  background:
    repeating-linear-gradient(to right,  rgba(14,79,110,0.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(to bottom, rgba(14,79,110,0.045) 0 1px, transparent 1px 28px),
    var(--paper);
}
.hero-inner { display: grid; gap: var(--s6); align-items: start; }
.hero-copy { min-width: 0; }   /* long mono strings must not blow the column */
.hero-home { padding: var(--s7) 0 var(--s8); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font: 500 0.74rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--s4);
}
/* A comment token, not a rule: the eyebrow is annotation, and this manual
   annotates in mono. */
.eyebrow::before {
  content: "//";
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);           /* 7.35:1 on --paper */
}

.hero h1 { margin-bottom: var(--s4); max-width: 18ch; }
.hero-home h1 { max-width: 15ch; }

.lede {
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: var(--s5);
}

.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* The illustration is presented as a documentation figure: plate, hairline
   frame, no shadow. */
.hero-art {
  border: 1px solid var(--rule);
  background: var(--plate);
  padding: var(--s3);
}
.hero-art img { display: block; width: 100%; }

/* Not two columns of equal weight — a text column set to its measure with a
   fixed-width margin figure beside it, the way a manual carries a plate. */
@media (min-width: 880px) {
  .hero-home .hero-inner {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: var(--s6) var(--s7);
  }
  .hero { padding: var(--s8) 0 var(--s7); }
}
@media (min-width: 1040px) {
  .hero-home .hero-inner { grid-template-columns: minmax(0, 1fr) 384px; }
}
@media (max-width: 879.98px) {
  .hero-art { max-width: 420px; }   /* the plate is portrait */
}

/* --- 8. Sections --------------------------------------------------------- */

.section { padding: var(--s7) 0; border-bottom: 1px solid var(--rule); counter-increment: sectionnum; }
.section.alt { background: var(--band); }
.section:last-of-type { border-bottom: 0; }

.section-head { margin-bottom: var(--s6); }
.section-head h2 { margin-bottom: var(--s3); max-width: 26ch; }
/* Sections are numbered like chapters of a manual. */
.section-head h2::before {
  content: counter(sectionnum, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-right: 0.72em;
  vertical-align: 0.14em;
}
.section-head p { color: var(--ink-2); max-width: 62ch; margin-bottom: 0; }
.section-head.center { text-align: center; }
.section-head.center h2, .section-head.center p { margin-inline: auto; }

@media (min-width: 780px) { .section { padding: var(--s8) 0; } }

/* --- 9. Prose blocks ----------------------------------------------------- */

.prose { display: grid; gap: var(--s6); }
.block {
  border-top: 2px solid var(--ink);
  padding-top: var(--s4);
  max-width: var(--measure);
}
.block h2 {
  font-size: 1.22rem;
  letter-spacing: -0.012em;
  margin-bottom: var(--s2);
}
.block p { margin-bottom: 0; color: var(--ink-2); }
.block p + p { margin-top: var(--s3); }

/* The alternate block reads as a marked passage — the symptom you were
   scanning for. Left bar, tinted stock, no heavier type. */
.block-alt {
  border-top: 0;
  border-left: 3px solid var(--accent);
  background: var(--info-bg);
  padding: var(--s4) var(--s5);
  max-width: 74ch;
}
.block-alt h2 { color: var(--accent-2); }
.block-alt p { color: var(--ink); }

@media (min-width: 820px) {
  .prose { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s7); }
  .prose .block-alt { grid-column: 1 / -1; }
}

/* --- 10. Plans ----------------------------------------------------------- */

/* The terms are columns of one specification table, so they break on declared
   points (1 / 2 / 3) and share a common height rather than reflowing at
   whatever width a card happens to want. */
.plans {
  display: grid;
  gap: var(--s3);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--plate);
  border: 1px solid var(--rule-2);
  border-top: 3px solid var(--ink);
  border-radius: var(--r);
  padding: var(--s5) var(--s5) var(--s4);
}
.plan .tag {
  position: absolute;
  top: -3px; right: var(--s5);
  font: 500 0.68rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 8px 4px;
}
.plan .term {
  font: 600 0.76rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-2);
  margin-bottom: var(--s3);
}
.plan .save {
  display: inline-block;
  align-self: flex-start;   /* .plan is a column flexbox — stop the badge stretching */
  font: 500 0.74rem/1 var(--mono);
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid #C6DED0;
  border-radius: var(--r);
  padding: 4px 7px;
  margin-bottom: var(--s3);
}
.plan .price {
  font: 600 2.6rem/1 var(--mono);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 1px;
}
.plan .price sup { font-size: 0.42em; font-weight: 500; color: var(--ink-2); top: 0.42em; position: relative; }
.plan .per {
  font: 400 0.84rem var(--sans);
  color: var(--ink-2);
  margin: var(--s1) 0 var(--s4);
}
.plan ul {
  list-style: none;
  margin: 0 0 var(--s5);
  padding: 0;
  border-top: 1px solid var(--rule);
  font-size: 0.93rem;
}
.plan li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  color: var(--ink-2);
}
/* The list token is typed, not drawn: a mono guillemet, in keeping with a
   manual that sets everything you could enter in mono. */
.plan li::before {
  content: "\203A";
  position: absolute;
  left: 0; top: 8px;
  font: 500 1em/1.6 var(--mono);
  color: var(--accent);          /* 8.89:1 on --plate */
}
.plan .btn { margin-top: auto; width: 100%; }

/* Emphasis without shadow or scale: a heavier frame and an accent cap rule. */
.plan.featured { border-color: var(--accent); border-top-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan.featured .tag { background: var(--accent); color: #FFF; }
.plan.featured .price { color: var(--accent-2); }

/* --- 11. FAQ ------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule-2); max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: var(--s4) 40px var(--s4) 0;
  font: 600 1rem/1.45 var(--sans);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font: 400 1.3rem/1 var(--mono);
  color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--accent-2); }
.faq summary:hover { color: var(--accent-2); }
.faq .body { padding: 0 var(--s5) var(--s5) 0; }
.faq .body p { color: var(--ink-2); margin-bottom: var(--s3); max-width: 68ch; }
.faq .body p:last-child { margin-bottom: 0; }

/* --- 12. Band ------------------------------------------------------------ */

.band {
  background: var(--accent-2);
  color: #FFF;                                  /* 11.93:1 */
  border-top: 1px solid var(--accent-2);
  padding: var(--s7) 0;
}
.band-inner { display: grid; gap: var(--s5); align-items: center; }
.band h2 { color: #FFF; max-width: 22ch; }
.band p { color: #D7E5EC; max-width: 58ch; }    /* 9.1:1 on accent-2        */
.band-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.band .btn-primary { background: #FFF; color: var(--accent-2); border-color: #FFF; }
.band .btn-primary:hover { background: #D7E5EC; color: var(--accent-2); border-color: #D7E5EC; }
.band .btn-ghost { color: #FFF; border-color: rgba(255,255,255,0.55); }
.band .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #FFF; color: #FFF; }

@media (min-width: 840px) {
  .band-inner { grid-template-columns: 1fr auto; gap: var(--s7); }
}

/* --- 13. Notices --------------------------------------------------------- */

.notice {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink-2);
  background: var(--plate);
  padding: var(--s4) var(--s5);
  margin: 0 0 var(--s5);
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: 0 var(--r) var(--r) 0;
}
.notice::before {
  content: "Note";
  display: block;
  font: 600 0.7rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  margin-bottom: var(--s2);
}
.notice p:last-child { margin-bottom: 0; }
.notice .mono { background: #FFF; }

.notice.info { border-left-color: var(--accent); background: var(--info-bg); }
.notice.info::before { content: "Info"; color: var(--accent); }
.notice.ok { border-left-color: var(--ok); background: var(--ok-bg); }
.notice.ok::before { content: "Resolved"; color: var(--ok); }
.notice.bad { border-left-color: var(--bad); background: var(--bad-bg); }
.notice.bad::before { content: "Error"; color: var(--bad); }

/* --- 14. Forms ----------------------------------------------------------- */

.form { max-width: 620px; }
.form .section-head h2::before { content: none; }

.field { margin-bottom: var(--s5); }
.field > label {
  display: block;
  font: 600 0.78rem/1.3 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: var(--s2);
}
/* Controls are styled whether or not the template wraps them in .field — a
   bare control inside .form (or inside .row2) must not fall back to the OS
   widget. Ticks, radios and button-type inputs are excluded: a full-width
   54px text field is the wrong shape for all of them. */
:is(.field, .form) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
:is(.field, .form) select,
:is(.field, .form) textarea {
  width: 100%;
  font: 400 1rem var(--mono);
  color: var(--ink);
  background: var(--plate);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: 11px 12px;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
:is(.field, .form) textarea { font-family: var(--serif); min-height: 120px; resize: vertical; line-height: 1.6; }
/* A drawn chevron, not a pair of gradient triangles — the same stroked mark
   the manual uses for "go on". */
:is(.field, .form) select {
  font-family: var(--sans);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' viewBox='0 0 13 8'%3E%3Cpath d='M1.4 1.4 6.5 6.5 11.6 1.4' fill='none' stroke='%2356534C' stroke-width='1.8'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-size: 13px 8px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
:is(.field, .form) input:not([type="checkbox"]):not([type="radio"]):focus,
:is(.field, .form) :is(select, textarea):focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
:is(.field, .form) :is(input, textarea)::placeholder { color: #6E6A61; }  /* 5.39:1 */

.hint {
  display: block;
  font: 400 0.82rem/1.5 var(--sans);
  color: var(--ink-2);
  margin-top: var(--s2);
}

.row2 { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Options are rows of an options table, not cards: a marker rail down the
   left, a hairline under each row, no fill until one is chosen. Written for
   both markups — .choice wrapping a label, and .choice on the label itself —
   so a single shared template cannot break it. */
.choice { display: block; margin-bottom: var(--s2); }
.choice > label,
label.choice,
.choice:not(:has(label)) {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: var(--s4);
  row-gap: 3px;
  align-items: start;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--rule-2);   /* 3.38:1 on --paper, 3.04:1 on --band */
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--s3) var(--s4);
  cursor: pointer;
}
.choice > label:hover,
label.choice:hover,
.choice:not(:has(label)):hover { border-left-color: var(--ink-2); background: var(--sink); }
.choice input { grid-row: span 2; margin: 1px 0 0; accent-color: var(--accent); width: 18px; height: 18px; }
.choice .t { font: 600 0.97rem var(--sans); color: var(--ink); }
.choice .d { grid-column: 2; font-size: 0.87rem; color: var(--ink-2); font-family: var(--sans); }
/* Chosen = the rail turns to signal and the stock tints. Two properties, no
   inset frame. */
.choice > label:has(input:checked),
label.choice:has(input:checked),
.choice:not(:has(label)):has(input:checked) { border-left-color: var(--accent); background: var(--info-bg); }
.choice > label:has(input:focus-visible),
label.choice:has(input:focus-visible),
.choice:not(:has(label)):has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.summary-box {
  background: var(--plate);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: var(--s5);
  margin: 0 0 var(--s5);
}
.summary-box .line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  padding: 9px 0;
  border-bottom: 1px dotted var(--rule-2);
  font-size: 0.94rem;
  color: var(--ink-2);
}
.summary-box .line > :last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
/* The ledger convention: a double rule closes the column, not a heavy one. */
.summary-box .line.total {
  border-bottom: 0;
  border-top: 4px double var(--ink);
  margin-top: var(--s2);
  padding-top: var(--s4);
  font: 600 1rem var(--sans);
  color: var(--ink);
}
.summary-box .line.total > :last-child { font-size: 1.35rem; font-weight: 600; }

/* --- 15. Footer ---------------------------------------------------------- */

.site-foot {
  background: var(--band);
  border-top: 1px solid var(--rule-2);
  padding-top: var(--s7);
  font-size: 0.92rem;
}
.foot-grid { display: grid; gap: var(--s6); padding-bottom: var(--s6); }
.foot-about .brand-text { display: block; margin-bottom: var(--s3); font-size: 1.02rem; }
.foot-note { color: var(--ink-2); max-width: 42ch; margin-bottom: var(--s3); }
.foot-note.foot-small { font-size: 0.82rem; line-height: 1.55; }

.site-foot h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-2);
  margin-bottom: var(--s3);
}
.site-foot h4.mt { margin-top: var(--s5); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot li a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.site-foot li a:hover { color: var(--accent-2); border-bottom-color: var(--accent); }

.foot-base {
  border-top: 1px solid var(--rule);
  padding-block: var(--s4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  font-size: 0.82rem;
  color: var(--ink-2);
  font-family: var(--mono);
}

@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s7); } }
@media (min-width: 480px) and (max-width: 699.98px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- 16. Page hooks & narrow screens ------------------------------------- */

body.page-home .hero-home .lede { max-width: 52ch; }
body:not(.page-home) .hero { padding: var(--s6) 0 var(--s5); }
body:not(.page-home) .hero h1 { max-width: 24ch; }

@media (max-width: 420.98px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .plan { padding: var(--s4); }
  .plan .price { font-size: 2.2rem; }
  .plan .tag { right: var(--s4); }
  .block-alt { padding: var(--s4); }
  .summary-box { padding: var(--s4); }
  .choice > label, label.choice, .choice:not(:has(label)) { padding: var(--s3); column-gap: var(--s3); }
  .head-inner { gap: var(--s3); }
  .foot-base { flex-direction: column; }
}

/* --- 17. Utility overrides ----------------------------------------------
   Single-purpose helpers the templates sprinkle anywhere (p.mb0, h4.mt,
   .section-head.center). Declared last so component rules of equal
   specificity cannot quietly win. */

.mb0 { margin-bottom: 0 !important; }
.mt  { margin-top: var(--s5) !important; }
.center { text-align: center !important; }

/* --- 18. Motion & print -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-head, .burger, .band-actions, .skip { display: none !important; }
  body { background: #FFF; font-size: 11pt; }
  .section, .hero { border-color: #CCC; padding: 12pt 0; }
  .faq details { border-color: #CCC; }
  .faq .body { display: block !important; }
  a { color: #000; }
}

