/* GaugeQuote site styles. Self-contained: no outside fonts, images or imports.
   Fonts: Barlow and Barlow Condensed (SIL OFL 1.1), self-hosted, see THIRD-PARTY.md. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens: light = drafting paper, dark = cutting mat ---------- */
:root {
  --bg: #f1f4f0;
  --surface: #fbfcfa;
  --surface-2: #e6ebe6;
  --ink: #14212a;
  --ink-2: #45545e;
  --rule: #c5cec8;
  --rule-ink: #6f7d76;
  --grid-minor: rgba(30, 91, 71, 0.07);
  --grid-major: rgba(30, 91, 71, 0.13);
  --accent: #1e5b47;
  --accent-hover: #164535;
  --accent-ink: #ffffff;
  --link: #1e5b47;
  --tape: #f0be1a;
  --tape-ink: #14212a;
  --dim: #1e5b47;
  --part-fill: rgba(30, 91, 71, 0.08);
  --placeholder-bg: #fff1c2;
  --placeholder-ink: #5a4300;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --max: 1200px;
  --measure: 68ch;
  --radius: 3px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10261e;
    --surface: #153027;
    --surface-2: #1b3a2f;
    --ink: #e4ede7;
    --ink-2: #a8bbb1;
    --rule: #2f4b40;
    --rule-ink: #7f978b;
    --grid-minor: rgba(228, 237, 231, 0.05);
    --grid-major: rgba(228, 237, 231, 0.1);
    --accent: #f0be1a;
    --accent-hover: #ffd34d;
    --accent-ink: #10261e;
    --link: #f3cb48;
    --dim: #9fd3bd;
    --part-fill: rgba(240, 190, 26, 0.08);
    --placeholder-bg: #3d3410;
    --placeholder-ink: #ffe28a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10261e;
  --surface: #153027;
  --surface-2: #1b3a2f;
  --ink: #e4ede7;
  --ink-2: #a8bbb1;
  --rule: #2f4b40;
  --rule-ink: #7f978b;
  --grid-minor: rgba(228, 237, 231, 0.05);
  --grid-major: rgba(228, 237, 231, 0.1);
  --accent: #f0be1a;
  --accent-hover: #ffd34d;
  --accent-ink: #10261e;
  --link: #f3cb48;
  --dim: #9fd3bd;
  --part-fill: rgba(240, 190, 26, 0.08);
  --placeholder-bg: #3d3410;
  --placeholder-ink: #ffe28a;
  color-scheme: dark;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--tape); border-radius: 2px; }
p, ul, ol, dl, table, figure { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.3rem; }
strong { font-weight: 600; }
code {
  font-family: var(--font-code);
  font-size: 0.86em;
  background: var(--surface-2);
  padding: 0.08em 0.35em;
  border-radius: 2px;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.75rem; }
h1, h2 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 1.55rem + 4.2vw, 4.75rem); line-height: 0.98; letter-spacing: -0.005em; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.05; }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
h4 { font-weight: 600; font-size: 1.05rem; }
.lede { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.92rem; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 20; background: var(--surface); color: var(--ink); padding: 0.6rem 0.9rem; }
.skip-link:focus { top: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- Header: the ruler edge ---------- */
.site-header { background: var(--bg); position: relative; }
.site-header::after {
  content: "";
  display: block;
  height: 11px;
  border-bottom: 1px solid var(--rule-ink);
  background:
    linear-gradient(to right, var(--rule-ink) 1px, transparent 1px) 0 100% / 40px 10px repeat-x,
    linear-gradient(to right, var(--rule-ink) 1px, transparent 1px) 20px 100% / 40px 7px repeat-x,
    linear-gradient(to right, var(--rule-ink) 1px, transparent 1px) 0 100% / 8px 4px repeat-x;
  opacity: 0.75;
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; margin-right: auto; padding: 6px 0; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.01em; line-height: 1; }
.mark-ring, .mark-tick { stroke: var(--ink); }
.mark-needle { stroke: var(--accent); }
.mark-hub { fill: var(--accent); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: block; padding: 0.55rem 0.75rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: 44px; min-height: 44px; padding: 0 0.6rem;
  background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius);
  font: inherit; font-weight: 500; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

@media (max-width: 859px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 64px; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule-ink); padding: 0.5rem var(--gutter) 1rem; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.8rem 0.5rem; font-size: 1.1rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 0.9rem; }
  html:not(.js) .site-nav { position: static; padding: 0 0 0.5rem; border: 0; }
  html:not(.js) .header-row { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.65rem 1.2rem;
  font: inherit; font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--surface-2); border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0.4rem 0.8rem; font-size: 0.95rem; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.section:first-child { border-top: 0; }
.section-head { max-width: var(--measure); margin-bottom: 2rem; }
.section-head p { color: var(--ink-2); }

.paper {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: -1px -1px;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.hero h1 { max-width: 13ch; margin-bottom: 1.25rem; }
.hero .lede { color: var(--ink); opacity: 0.86; }

.drawing { margin: 0; background: var(--surface); border: 1px solid var(--rule-ink); }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing figcaption { border-top: 1px solid var(--rule); padding: 0.75rem 1rem 0.9rem; font-size: 0.92rem; color: var(--ink-2); }
.d-part { fill: var(--part-fill); stroke: var(--ink); stroke-width: 2; }
.d-hole { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.d-thin { stroke: var(--ink-2); stroke-width: 1; fill: none; }
.d-dim { stroke: var(--dim); stroke-width: 1.2; fill: none; }
.d-arrow { fill: var(--dim); }
.d-text { fill: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.d-text-dim { fill: var(--dim); font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.d-bg { fill: var(--surface); }
.d-note { fill: var(--ink-2); font-family: var(--font-body); font-size: 15px; }
.d-edge { stroke: var(--tape); stroke-width: 5; fill: none; }
.d-glint { stroke: var(--ink-2); stroke-width: 1; opacity: 0.5; }
.d-pierce { fill: var(--tape); stroke: var(--ink); stroke-width: 1.3; }
.d-path { stroke: var(--dim); stroke-width: 1.2; fill: none; stroke-dasharray: 5 4; }
.d-sheet { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.d-margin { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 6 5; }

/* Price ticket: the worked example under a drawing */
.ticket { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; margin: 0; }
.ticket th, .ticket td { padding: 0.55rem 1rem; border-top: 1px solid var(--rule); text-align: left; vertical-align: baseline; font-weight: 400; }
.ticket td:last-child { text-align: right; white-space: nowrap; font-weight: 500; }
.ticket .calc { display: block; color: var(--ink-2); font-size: 0.9rem; }
.ticket tr.total th, .ticket tr.total td { border-top: 2px solid var(--ink); font-weight: 600; font-size: 1.1rem; }
.ticket tr.total td { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }

/* ---------- Lists and grids ---------- */
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.spec-list > li { margin: 0; padding: 1.25rem 0 1.25rem 1.25rem; border-left: 3px solid var(--accent); border-top: 1px solid var(--rule); }
.spec-list > li:last-child { border-bottom: 1px solid var(--rule); }
.spec-list h3 { margin-bottom: 0.35rem; }
.spec-list p { margin: 0; color: var(--ink-2); }
@media (min-width: 860px) {
  .spec-list.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 0 2rem; }
  .spec-list.cols-3 > li { border-bottom: 1px solid var(--rule); }
}

.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.uses li { margin: 0; padding: 0.85rem 0 0.85rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.uses li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.85rem; height: 0; border-top: 1.5px solid var(--dim); }
.uses li::after { content: ""; position: absolute; left: 0; top: calc(1.35rem - 4px); height: 9px; border-left: 1.5px solid var(--dim); }
.uses strong { display: block; }
.uses span { color: var(--ink-2); }
@media (min-width: 700px) { .uses { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
@media (min-width: 1040px) { .uses { grid-template-columns: repeat(3, 1fr); } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps > li { margin: 0; counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; align-items: start; }
.steps > li::before {
  content: counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: var(--accent); border-bottom: 2px solid var(--accent); text-align: center; padding-bottom: 0.2rem;
}
.steps h3 { margin: 0.2rem 0 0.3rem; }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- Tables ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.25rem; }
.table-scroll > table { margin: 0; }
.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.spec caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; }
.spec th, .spec td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.spec thead th { border-bottom: 2px solid var(--ink); font-weight: 600; font-size: 0.95rem; }
.spec tbody th { font-weight: 400; }
.spec td.c, .spec th.c { text-align: center; padding-right: 0; padding-left: 0.5rem; width: 7.5rem; white-space: nowrap; }
.spec .r { text-align: right; }
.tick { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; color: var(--accent); }
.dash { color: var(--ink-2); }

/* ---------- Pricing ---------- */
.switches { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin: 1.5rem 0 0.5rem; }
.seg { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.seg legend { float: left; margin-right: 0.75rem; font-weight: 500; padding: 0; }
.seg-opts { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { min-width: 4.5rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.9rem; cursor: pointer; font-weight: 600; }
.seg label + input + label, .seg input + label + input + label { border-left: 1.5px solid var(--ink); }
.seg input:checked + label { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: -5px; box-shadow: inset 0 0 0 5px var(--tape); }

.cur-usd { display: none; }
html[data-currency="usd"] .cur-usd { display: inline; }
html[data-currency="usd"] .cur-eur { display: none; }
html[data-billing="yearly"] .only-monthly { display: none; }
.only-yearly { display: none; }
html[data-billing="yearly"] .only-yearly { display: inline; }
html[data-billing="yearly"] div.only-yearly, html[data-billing="yearly"] p.only-yearly { display: block; }

.plans { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); margin-top: 2rem; }
.plan { padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
@media (min-width: 720px) and (max-width: 1099px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan { padding: 1.5rem 1.5rem 2rem; }
  .plan:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
}
@media (min-width: 1100px) {
  .plans { grid-template-columns: repeat(4, 1fr); }
  .plan { padding: 1.5rem 1.25rem 2rem; border-bottom: 0; border-right: 1px solid var(--rule); }
  .plan:first-child { padding-left: 0; }
  .plan:last-child { border-right: 0; padding-right: 0; }
}
.plan h2 { font-size: 2rem; margin-bottom: 0.25rem; }
.plan .for { color: var(--ink-2); min-height: 3.2em; margin-bottom: 1rem; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; margin: 0 0 0.25rem; font-variant-numeric: tabular-nums lining-nums; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--ink-2); margin-left: 0.25rem; }
.price-note { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 1rem; }
.facts { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.facts li { margin: 0; border: 1px solid var(--rule-ink); border-radius: 2px; padding: 0.1rem 0.5rem; font-size: 0.92rem; font-weight: 500; }
.plan .includes { font-weight: 600; margin-bottom: 0.4rem; }
.plan ul.feat { padding-left: 1.1rem; margin-bottom: 1.25rem; }
.plan ul.feat li + li { margin-top: 0.2rem; }
.plan .actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.plan .actions .btn { width: 100%; }
.site-table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-variant-numeric: tabular-nums lining-nums; }
.site-table th, .site-table td { padding: 0.5rem 0.4rem 0.5rem 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: middle; }
.site-table th { white-space: nowrap; }
.site-table td.amt { font-weight: 600; white-space: nowrap; }
.site-table td.buy { text-align: right; padding-right: 0; }
.checkout-msg { margin: 0.5rem 0 0; font-weight: 500; }
.checkout-msg:empty { display: none; }
.checkout-msg::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--tape); border: 1px solid var(--ink); margin-right: 0.5rem; vertical-align: 0; }

.offer { margin-top: 2.5rem; border: 1.5px solid var(--ink); border-left: 10px solid var(--tape); background: var(--surface); padding: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .offer { grid-template-columns: 1.2fr 1fr; align-items: start; padding: 2rem; } }
.offer h2 { font-size: 2rem; }
.offer .site-table { margin-bottom: 0.5rem; }
.checkout-note { margin: 1.5rem 0 0; color: var(--ink-2); font-size: 0.95rem; }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1rem 2.25rem 1rem 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.75rem; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; max-width: var(--measure); color: var(--ink-2); }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- Docs ---------- */
.docs-layout { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 960px) { .docs-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; padding-top: 3rem; } }
.docs-nav-title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--ink-2); margin: 0 0 0.5rem; }
.docs-nav ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.docs-nav li { margin: 0; }
.docs-nav a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.5rem 0.55rem 0.9rem; color: var(--ink); text-decoration: none; margin-left: -1px; border-left: 3px solid transparent; }
.docs-nav a:hover { background: var(--surface-2); }
.docs-nav a[aria-current="page"] { border-left-color: var(--accent); font-weight: 600; }
.docs-nav .tag { font-size: 0.78rem; }
@media (min-width: 960px) { .docs-nav-inner { position: sticky; top: 1.5rem; } .docs-nav details > summary { display: none; } }
.docs-nav details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; border: 1px solid var(--rule-ink); border-radius: var(--radius); padding: 0 0.9rem; margin-bottom: 0.75rem; }
.docs-article { min-width: 0; }
.docs-article h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); }
.plan-line { margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; color: var(--ink-2); }
.tag { display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 0.05rem 0.45rem; border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.5; }
.tag-free { color: var(--ink-2); }
.tag-pro { color: var(--link); }
.tag-cutting { background: var(--tape); color: var(--tape-ink); border-color: var(--tape); }
.docs-index { list-style: none; padding: 0; margin: 0; counter-reset: doc; border-top: 2px solid var(--ink); }
.docs-index li { margin: 0; counter-increment: doc; border-bottom: 1px solid var(--rule); }
.docs-index a { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.25rem 0.75rem; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.docs-index a::before { content: counter(doc); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent); line-height: 1.1; grid-row: span 2; }
.docs-index a strong { font-size: 1.15rem; }
.docs-index a:hover strong { text-decoration: underline; text-underline-offset: 0.18em; }
.docs-index .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; font-size: 0.92rem; color: var(--ink-2); }
.pager { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.pager a { display: block; text-decoration: none; padding: 0.75rem 0; }
.pager a span { display: block; font-size: 0.88rem; color: var(--ink-2); }
.pager a strong { color: var(--link); }
.pager .next { text-align: right; grid-column: 2; }
.ui-path strong { white-space: normal; }
.example { border-left: 3px solid var(--tape); background: var(--surface); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.note { border: 1px solid var(--rule-ink); border-left: 6px solid var(--tape); background: var(--surface); padding: 0.85rem 1.1rem; margin: 0 0 1.25rem; font-weight: 500; }
.example h3, .example h4 { margin-top: 0; }
.example ul { margin-bottom: 0.5rem; }
.example p:last-child, .example ul:last-child { margin-bottom: 0; }

/* ---------- Page heads, misc ---------- */
.page-head { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-head h1 { max-width: 18ch; }
.legal .prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.placeholder { background: var(--placeholder-bg); color: var(--placeholder-ink); padding: 0.05em 0.3em; border-radius: 2px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.release { border-top: 2px solid var(--ink); padding-top: 1rem; margin-bottom: 2rem; }
.release h2 { font-size: 1.8rem; }
.notfound { padding: 4rem 0 6rem; }
.notfound .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 0.9; color: var(--dim); margin: 0 0 1rem; }

/* ---------- Footer: the drawing title block ---------- */
.site-footer { margin-top: 0; padding: 2.5rem 0 3rem; border-top: 1px solid var(--rule-ink); }
.title-block {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--ink); border: 1.5px solid var(--ink);
}
.title-block > div { background: var(--bg); padding: 0.85rem 1rem 1rem; min-width: 0; }
.tb-label { display: block; font-size: 0.8rem; color: var(--ink-2); margin-bottom: 0.3rem; }
.title-block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 1rem; }
.title-block li { margin: 0; }
.title-block a { color: var(--ink); text-decoration-color: var(--rule-ink); display: inline-block; padding: 0.45rem 0; }
.title-block p { margin: 0; }
.tb-brand { display: flex; align-items: center; gap: 0.75rem; }
.tb-brand .brand-mark { width: 40px; height: 40px; }
.tb-brand strong { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; display: block; line-height: 1; }
@media (min-width: 760px) {
  .title-block { grid-template-columns: 1.3fr 1fr 1fr; }
  .tb-brand { grid-column: 1; grid-row: span 2; }
}
@media (min-width: 1100px) {
  .title-block { grid-template-columns: 1.2fr 1.1fr 1fr 1fr; }
  .tb-operator { grid-column: 2 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .docs-nav, .btn-row { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Page additions ---------- */
.page-body { padding-top: 1rem; padding-bottom: 4.5rem; }
.steps.steps-stack { grid-template-columns: 1fr; }
.docs-article h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.docs-article h2 .tag, .docs-article h3 .tag { vertical-align: 0.3em; margin-left: 0.35rem; font-family: var(--font-body); }
.docs-article h2.q { font-family: var(--font-body); font-weight: 600; font-size: 1.2rem; line-height: 1.35; margin-top: 2rem; }

.plans-wrap { padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.docs-nav a { align-items: flex-start; }
.docs-nav a .tag { flex: none; margin-top: 0.15rem; }
@media (min-width: 960px) { .docs-nav details > summary { display: none; } }
@media (max-width: 599px) {
  .spec td.c, .spec th.c { width: 4.75rem; white-space: normal; }
  /* the drawings scale down to about 0.64 on a 393 px screen: larger viewBox type keeps labels near 12-16 px */
  .d-note { font-size: 19px; }
  .d-text-dim { font-size: 24px; }
  .d-text { font-size: 25px; }
}

/* Docs nav fold on phones: an explicit open/close sign, like the FAQ */
.docs-nav details > summary { list-style: none; }
.docs-nav details > summary::-webkit-details-marker { display: none; }
.docs-nav details > summary::after { content: "+"; margin-left: auto; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--accent); }
.docs-nav details[open] > summary::after { content: "\2212"; }
.tb-operator p + p { margin-top: 0.35rem; }
.site-table + .checkout-msg { margin: -0.5rem 0 1.25rem; }
