/* ==========================================================================
   Jurisyn — monochrome design system
   Ink on bond paper. No colour. Emphasis comes from inversion, not hue.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0B0B0C;
  --ink-90:     #1C1C1E;
  --graphite:   #6B6B68;
  --rule:       #D8D8D2;
  --rule-soft:  #E8E8E3;
  --vellum:     #F0F0EC;
  --paper:      #FAFAF8;
  --paper-pure: #FFFFFF;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --step-0:  clamp(0.98rem, 0.95rem + 0.14vw, 1.06rem);
  --step-1:  clamp(1.16rem, 1.10rem + 0.30vw, 1.34rem);
  --step-2:  clamp(1.42rem, 1.30rem + 0.58vw, 1.80rem);
  --step-3:  clamp(1.78rem, 1.55rem + 1.10vw, 2.60rem);
  --step-4:  clamp(2.20rem, 1.75rem + 2.10vw, 3.90rem);

  --gutter: clamp(1.15rem, 0.80rem + 1.70vw, 2.60rem);
  --measure: 66ch;
  --wrap: 1180px;
  --radius: 3px;

  --band-y: clamp(3.6rem, 2.4rem + 4.4vw, 6.6rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.14; letter-spacing: -0.018em; }
p, ul, ol, dl, figure, table { margin: 0; }
ul, ol { padding-left: 1.15rem; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--graphite); }

button { font: inherit; color: inherit; }

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

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

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

.band { padding-block: var(--band-y); }
.band-tight { padding-block: clamp(2.4rem, 1.8rem + 2.4vw, 4rem); }
.band-rule { border-top: 1px solid var(--rule); }
.band-invert { background: var(--ink); color: var(--paper); }
.band-vellum { background: var(--vellum); }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.9rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  z-index: 200;
  font-size: var(--step--1);
}
.skip-link:focus { left: 0.6rem; top: 0.6rem; }

/* ---------- Typographic roles ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.03;
  letter-spacing: -0.028em;
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.09;
  letter-spacing: -0.022em;
  max-width: 20ch;
}

.subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.18;
  letter-spacing: -0.016em;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.52;
  color: var(--ink-90);
  max-width: 54ch;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1rem; }
.prose h2 { font-family: var(--font-display); font-size: var(--step-2); margin-top: 2.6rem; }
.prose h3 { font-family: var(--font-display); font-size: var(--step-1); margin-top: 1.9rem; }
.prose ul, .prose ol { margin-top: 0.9rem; }
.prose li + li { margin-top: 0.4rem; }

.muted { color: var(--graphite); }
.measure-sm { max-width: 46ch; }

/* Marker — the paragraph mark used as a section number.
   Legal documents number their paragraphs; so does this site. */
.marker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.band-invert .marker { color: #9B9B98; }
.band-invert .marker::after { background: #34343A; }

/* Redaction bar — the one emphasis device on the whole site. */
.redact {
  background: var(--ink);
  color: var(--paper);
  padding: 0.04em 0.28em 0.1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.band-invert .redact { background: var(--paper); color: var(--ink); }

/* ---------- Header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.93);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  padding-top: env(safe-area-inset-top);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark-glyph {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--graphite);
  transform: translateY(-0.12em);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.4rem + 1.5vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding-block: 0.5rem;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: var(--step--1);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.band-invert .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band-invert .btn-ghost { background: transparent; color: var(--paper); }
.band-invert .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.2rem) var(--band-y); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.2rem, 1rem + 4vw, 4.4rem);
  align-items: start;
}

.hero-note {
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--graphite);
  line-height: 1.7;
  max-width: 42ch;
}

/* ---------- The signature: the thread panel with pin cites ---------- */
.thread {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--rule-soft), 0 22px 44px -32px rgba(11, 11, 12, 0.42);
  overflow: hidden;
}

.thread-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--vellum);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--graphite);
}
.thread-bar strong { color: var(--ink); font-weight: 500; }

.thread-body { padding: 1.2rem 1rem 1.35rem; }

.msg { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: 0.75rem; }
.msg + .msg { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-soft); }

.msg-avatar {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.msg-avatar-bot { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.msg-who {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  margin-bottom: 0.22rem;
}
.msg-who span {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--graphite);
  margin-left: 0.45rem;
  letter-spacing: 0.04em;
}
.msg-text { font-size: 0.94rem; line-height: 1.6; }
.msg-text p + p { margin-top: 0.6rem; }

.cites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.cite {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.34rem 0.55rem;
  cursor: pointer;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.cite:hover, .cite[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cite-num { opacity: 0.6; }

.excerpt {
  margin-top: 0.75rem;
  border-left: 2px solid var(--ink);
  background: var(--vellum);
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.excerpt[hidden] { display: none; }
.excerpt-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.4rem;
}
.excerpt q { font-style: normal; }

.thread-foot {
  border-top: 1px solid var(--rule);
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--graphite);
  background: var(--vellum);
}

/* ---------- Definition block (answer-first, for people and for AI) ---------- */
.definition {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.6rem;
}
.definition dt {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.6rem;
}
.definition dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.34;
  letter-spacing: -0.012em;
  max-width: 42ch;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cell { background: var(--paper); padding: clamp(1.3rem, 1rem + 1vw, 1.9rem); }
.band-invert .grid { background: #34343A; border-color: #34343A; }
.band-invert .cell { background: var(--ink); }
.band-vellum .cell { background: var(--vellum); }

.cell-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.9rem;
}
.cell h3 { font-size: var(--step-1); margin-bottom: 0.55rem; font-family: var(--font-display); }
.cell p { font-size: 0.94rem; color: var(--ink-90); }
.band-invert .cell p { color: #C9C9C6; }
.band-invert .cell-label { color: #9B9B98; }

/* ---------- Steps (a real sequence, so it is numbered) ---------- */
.steps { counter-reset: step; border-top: 1px solid var(--rule); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: clamp(1rem, 0.4rem + 1.6vw, 2.4rem);
  padding-block: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.step-num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--graphite);
  padding-top: 0.35rem;
}
.step-num::before { content: "¶ "; }
.step-num::after { content: counter(step, decimal-leading-zero); }
.step h3 { font-family: var(--font-display); font-size: var(--step-2); margin-bottom: 0.6rem; }
.step p { max-width: 58ch; color: var(--ink-90); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}
.table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-bottom: 0.8rem;
}
.table th, .table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.table thead th {
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
}
.table tbody th { font-weight: 500; width: 30%; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: none; }
.table-mark { font-family: var(--font-mono); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  background: none;
  border: 0;
  padding: 1.25rem 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.012em;
  min-height: 48px;
}
.faq-sign {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--graphite);
  flex: none;
  transition: transform 180ms ease;
}
.faq-q[aria-expanded="true"] .faq-sign { transform: rotate(45deg); }
.faq-a { padding-bottom: 1.35rem; max-width: 62ch; color: var(--ink-90); }
.faq-a[hidden] { display: none; }
.faq-a p + p { margin-top: 0.8rem; }

/* ---------- Facts / spec list ---------- */
.specs { border-top: 1px solid var(--rule); }
.spec {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 1rem clamp(1rem, 0.5rem + 1.5vw, 2.4rem);
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--graphite);
}
.spec dd { margin: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.plan { background: var(--paper); padding: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); display: flex; flex-direction: column; }
.plan-feature { background: var(--vellum); }
.plan-name { font-family: var(--font-display); font-size: var(--step-2); margin-bottom: 0.35rem; }
.plan-for { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--graphite); margin-bottom: 1.2rem; }
.plan-price { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; margin-bottom: 0.3rem; }
.plan-price small { font-family: var(--font-body); font-size: 0.82rem; color: var(--graphite); letter-spacing: 0; }
.plan-list { list-style: none; padding: 0; margin: 1.3rem 0 1.8rem; font-size: 0.92rem; }
.plan-list li { padding-left: 1.3rem; position: relative; }
.plan-list li + li { margin-top: 0.55rem; }
.plan-list li::before { content: "§"; position: absolute; left: 0; font-family: var(--font-mono); color: var(--graphite); font-size: 0.85rem; }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  min-height: 46px;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-hint { font-size: 0.8rem; color: var(--graphite); }
.form-note { font-size: 0.84rem; color: var(--graphite); max-width: 34rem; }
.form-status {
  border-left: 2px solid var(--ink);
  background: var(--vellum);
  padding: 0.8rem 0.95rem;
  font-size: 0.9rem;
}
.form-status[hidden] { display: none; }

/* ---------- Contact / index cards ---------- */
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  text-decoration: none;
  min-height: 46px;
}
.link-list a:hover .link-title { text-decoration: underline; }
.link-title { font-family: var(--font-display); font-size: var(--step-1); }
.link-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--graphite); letter-spacing: 0.05em; flex: none; }

/* ---------- Footer ---------- */
.colophon {
  border-top: 1px solid var(--rule);
  background: var(--vellum);
  padding-block: clamp(2.4rem, 1.8rem + 2vw, 3.6rem) 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}
.colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 1rem + 2vw, 3rem);
}
.colophon h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 1rem;
}
.colophon ul { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.colophon li + li { margin-top: 0.5rem; }
.colophon a { text-decoration: none; }
.colophon a:hover { text-decoration: underline; }
.colophon-about { font-size: 0.9rem; color: var(--ink-90); max-width: 34ch; }
.colophon-legal {
  margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
}
.colophon-legal p { margin: 0; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(2.6rem, 2rem + 2.6vw, 4.4rem) clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); border-bottom: 1px solid var(--rule); }
.crumbs { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--graphite); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin-inline: 0.45rem; }

.updated { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--graphite); margin-top: 1.4rem; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.center .lede, .center .title, .center .display { margin-inline: auto; }
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.2rem;
    box-shadow: 0 18px 30px -26px rgba(11, 11, 12, 0.5);
  }
  .nav[hidden] { display: none; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--rule-soft); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 0.9rem; }
  .nav-links a { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: transparent; text-decoration: underline; }
  .nav-links .btn { width: 100%; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .step-num { padding-top: 0; }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .btn-row .btn { width: 100%; }
  .link-list a { flex-direction: column; gap: 0.25rem; }
}

@media (max-width: 480px) {
  .colophon-grid { grid-template-columns: minmax(0, 1fr); }
  .thread-bar { flex-wrap: wrap; }
  .msg { grid-template-columns: minmax(0, 1fr); }
  .msg-avatar { display: none; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover { transform: none; }
}

@media print {
  .masthead, .nav-toggle, .btn-row, .colophon { display: none; }
  body { background: #fff; font-size: 11pt; }
  .faq-a[hidden], .excerpt[hidden] { display: block !important; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
