/* ==========================================================================
   Flowgorithm guide — main stylesheet
   Design seed: S08 Documentation Workspace (light only)
   Palette: logo green · pastel pink · pale yellow · light blue
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/OFL-LICENSES.txt) ---------- */
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #243329;
  --ink-2: #42554b;
  --muted: #52655a;
  --primary: #306030;
  --primary-ink: #264f26;
  --primary-tint: #d0ffd0;
  --primary-soft: #effaef;
  --sand: #ffffc0;
  --sand-line: #a5a564;
  --accent: #803e42;
  --accent-hover: #642d31;
  --accent-tint: #ffc0c0;
  --bg: #f8fbf7;
  --mist: #eaf4fc;
  --logo-green: #d0ffd0;
  --logo-pink: #ffc0c0;
  --logo-yellow: #ffffc0;
  --logo-blue: #c0e0ff;
  --logo-blue-ink: #183060;
  --white: #ffffff;
  --line: #d4e1d5;
  --line-soft: #e6eee6;

  --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", Consolas, Menlo, monospace;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --shadow-1: 0 1px 2px rgba(36, 51, 41, .06);
  --shadow-2: 0 10px 30px -12px rgba(36, 51, 41, .16);

  --wrap: 1180px;
  --header-h: 104px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code, kbd, .mono { font-family: var(--f-mono); font-weight: 500; }
code { font-size: .88em; background: var(--primary-soft); border: 1px solid var(--primary-tint); padding: .08em .38em; border-radius: var(--r-xs); color: var(--primary-ink); }
kbd { font-size: .82em; background: var(--white); border: 1px solid var(--line); border-bottom-width: 2px; padding: .05em .4em; border-radius: var(--r-xs); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-tint); color: var(--ink); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--ink); padding: 10px 16px; border: 2px solid var(--accent); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 900px; }
.section { padding: 88px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--mist { background: var(--mist); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 22px; border-radius: var(--r-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--logo-pink); color: #402020; border-color: #803e42; box-shadow: 0 6px 16px -8px rgba(128, 62, 66, .7); }
.btn--accent:hover { background: #f4a8a8; color: #402020; transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-ink); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--primary-ink); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary-soft); color: var(--primary-ink); }
.btn--sm { padding: 10px 16px; font-size: .95rem; }
.btn--lg { padding: 18px 28px; font-size: 1.08rem; }

/* ---------- Doc-style labels ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-ink); margin-bottom: 14px; }
.eyebrow b { font-weight: 500; color: var(--accent); }
.eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--sand-line); }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 44px; max-width: 760px; }
.sec-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.sec-head p.eyebrow { font-size: .78rem; color: var(--primary-ink); margin-bottom: 14px; }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 48px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.sec-head--center .eyebrow::after { display: none; }
.tag { display: inline-block; white-space: nowrap; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-xs); background: var(--mist); color: var(--ink-2); border: 1px solid var(--line); }
.tag--teal { background: var(--primary-tint); color: var(--primary-ink); border-color: #a5d9a5; }
.tag--sand { background: var(--sand); color: #404020; border-color: var(--sand-line); }
.tag--accent { background: var(--accent-tint); color: #402020; border-color: #e7a3a3; }

/* ==========================================================================
   Header — documentation top bar with utility strip
   ========================================================================== */
#site-header { position: sticky; top: 0; z-index: 100; }
.utilbar { background: var(--logo-blue); border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.utilbar__in { display: flex; align-items: center; gap: 14px; min-height: 34px; }
.utilbar__tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-ink); background: var(--white); border: 1px solid var(--line); padding: 2px 8px; border-radius: var(--r-xs); }
.utilbar__in a { color: var(--logo-blue-ink); margin-left: auto; text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
@supports (backdrop-filter: blur(6px)) { .topbar { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); } }
.is-scrolled .topbar { box-shadow: 0 6px 20px -14px rgba(36, 51, 41, .35); }
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 250px; height: auto; aspect-ratio: 5 / 1; object-fit: contain; }
.footer__brand .brand { max-width: 100%; }
.footer__brand .brand img { width: 250px; max-width: 100%; }
.brand__name { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav li a { display: block; padding: 8px 11px; font-size: .97rem; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: var(--r-xs); position: relative; transition: color .2s, background .2s; }
.nav li a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav li a:hover { color: var(--primary-ink); background: var(--primary-soft); }
.nav li a.is-active, .nav li a[aria-current="page"] { color: var(--primary-ink); }
.nav li a.is-active::after, .nav li a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-sm); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; content: ""; }
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero — content column + quick-reference panel
   ========================================================================== */
.hero { padding: 56px 0 72px; background:
  linear-gradient(var(--bg), var(--bg)) padding-box,
  radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 24px 24px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1.4px 1.4px, var(--line) 1.2px, transparent 0) 0 0 / 26px 26px; opacity: .55; mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: start; position: relative; }
.crumb { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb span[aria-hidden] { color: var(--sand-line); }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero__lede { font-size: 1.2rem; color: var(--ink-2); max-width: 56ch; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.toc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); padding: 18px 20px 14px; max-width: 560px; }
.toc__title { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; }
.toc a { display: flex; gap: 10px; padding: 5px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; border-bottom: 1px dashed transparent; }
.toc a span { font-family: var(--f-mono); font-size: .78rem; color: var(--accent); padding-top: 3px; font-weight: 500; }
.toc a:hover { color: var(--primary-ink); }

.qref { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.qref__fig { margin: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 10px 0; }
.qref__fig img { animation: drift 9s ease-in-out infinite; }
.qref__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 6px; }
.qref__head h2 { font-size: .8rem; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.qref dl { margin: 0; padding: 4px 20px 16px; display: grid; grid-template-columns: auto 1fr; }
.qref dt, .qref dd { padding: 9px 0; border-bottom: 1px solid var(--line-soft); margin: 0; font-size: .96rem; }
.qref dt { color: var(--muted); padding-right: 18px; font-weight: 600; }
.qref dd { font-weight: 600; text-align: right; }
.qref dt:last-of-type, .qref dd:last-of-type { border-bottom: 0; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ==========================================================================
   About — definition block + facts + technical notes
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 64px; }
.defn { border-left: 3px solid var(--primary); padding-left: 28px; margin-bottom: 36px; }
.defn__term { font-family: var(--f-head); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; margin: 0; }
.defn__pos { font-family: var(--f-mono); font-size: .85rem; color: var(--accent); margin: 4px 0 14px; }
.defn__body { font-size: 1.28rem; line-height: 1.55; color: var(--ink); margin: 0; max-width: 52ch; }
.about__text { columns: 2; column-gap: 40px; color: var(--ink-2); }
.about__text p { break-inside: avoid; }
.about__figure { margin: 36px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.about__figure img { border-radius: var(--r-lg); }
.about__figure figcaption { font-size: .98rem; color: var(--ink-2); }
.about__figure figcaption strong { display: block; font-family: var(--f-head); color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.facts { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.facts h3 { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts dl { margin: 0; }
.facts div { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.note { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--primary-soft); border: 1px solid var(--primary-tint); font-size: .95rem; color: var(--ink-2); }
.note b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-ink); margin-bottom: 4px; }
.note--sand { background: #ffffea; border-color: var(--line); }
.note--sand b { color: #404020; }

/* ==========================================================================
   Features — reference matrix
   ========================================================================== */
.matrix { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.matrix__group { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.matrix__group:last-child { border-bottom: 0; }
.matrix__label { background: var(--mist); padding: 22px 20px; border-right: 1px solid var(--line); }
.matrix__label h3 { font-size: 1rem; margin: 0 0 4px; }
.matrix__label p { font-size: .9rem; color: var(--muted); margin: 0; }
.matrix__rows { margin: 0; padding: 0; list-style: none; }
.matrix__row { display: grid; grid-template-columns: 64px minmax(160px, 230px) 1fr; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); align-items: baseline; transition: background .2s; }
.matrix__row:last-child { border-bottom: 0; }
.matrix__row:hover { background: var(--primary-soft); }
.matrix__id { font-family: var(--f-mono); font-size: .78rem; color: var(--accent); }
.matrix__name { font-weight: 700; color: var(--ink); }
.matrix__desc { color: var(--ink-2); margin: 0; }
.matrix__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: .95rem; color: var(--muted); }

/* ==========================================================================
   How it works — procedure with progress rail
   ========================================================================== */
.procedure { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; max-width: 860px; }
.procedure::before { content: ""; position: absolute; left: 31px; top: 12px; bottom: 90px; width: 2px; background: linear-gradient(var(--primary), var(--sand-line)); }
.procedure li { position: relative; padding: 0 0 38px 96px; counter-increment: step; }
.procedure li:last-child { padding-bottom: 0; }
.procedure li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px; width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary); display: grid; place-items: center; font-family: var(--f-mono); font-size: 1.05rem; color: var(--primary-ink); box-shadow: 0 0 0 8px var(--mist); }
.procedure h3 { font-size: 1.3rem; margin-bottom: 6px; }
.procedure p { color: var(--ink-2); margin-bottom: 10px; max-width: 64ch; }
.procedure .tip { display: inline-block; font-size: .9rem; color: var(--ink-2); background: var(--white); border: 1px dashed var(--sand-line); border-radius: var(--r-sm); padding: 6px 12px; }
.procedure .tip b { font-family: var(--f-mono); font-weight: 500; color: var(--accent); font-size: .78rem; margin-right: 6px; text-transform: uppercase; }
.howto__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.howto__aside { position: sticky; top: calc(var(--header-h) + 24px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; font-size: .96rem; }
.howto__aside h3 { font-size: 1rem; }
.howto__aside ul { margin: 0; padding: 0; list-style: none; }
.howto__aside li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; }
.howto__aside li:last-child { border-bottom: 0; }
.howto__aside li span:last-child { font-family: var(--f-mono); font-size: .82rem; color: var(--primary-ink); text-align: right; }

/* ==========================================================================
   Installation — setup panel with checklist
   ========================================================================== */
.setup { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.setup__req { background: var(--primary-soft); padding: 34px; border-right: 1px solid var(--line); }
.setup__req h3 { font-size: 1.1rem; }
.setup__req ul { list-style: none; padding: 0; margin: 0 0 20px; }
.setup__req li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--primary-tint); color: var(--ink-2); }
.setup__req li::before { content: ""; position: absolute; left: 0; top: 15px; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--primary); }
.setup__steps { list-style: none; margin: 0; padding: 18px 34px 30px; counter-reset: ins; }
.setup__steps li { counter-increment: ins; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.setup__steps li:last-child { border-bottom: 0; }
.setup__steps li::before { content: counter(ins); width: 32px; height: 32px; border-radius: var(--r-xs); background: var(--sand); border: 1px solid var(--sand-line); display: grid; place-items: center; font-family: var(--f-mono); font-size: .9rem; color: #404020; }
.setup__steps h3 { font-size: 1.05rem; margin: 4px 0 4px; }
.setup__steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* ==========================================================================
   Compatibility — reference table
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.compat { width: 100%; border-collapse: collapse; min-width: 640px; }
.compat caption { text-align: left; padding: 14px 20px; font-family: var(--f-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.compat th, .compat td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compat thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--mist); font-weight: 700; }
.compat tbody th { font-family: var(--f-head); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.compat tbody tr:last-child th, .compat tbody tr:last-child td { border-bottom: 0; }
.compat td:last-child { color: var(--ink-2); }
.compat__note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; font-size: .95rem; color: var(--muted); }

/* ==========================================================================
   Troubleshooting — problem / fix rows
   ========================================================================== */
.issues { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.issue { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.issue h3 { font-size: 1.08rem; margin: 0; display: flex; gap: 12px; }
.issue h3 span { font-family: var(--f-mono); font-weight: 500; font-size: .76rem; color: var(--accent); padding-top: 4px; flex: none; }
.issue p { margin: 0; color: var(--ink-2); }
.issue p b { color: var(--primary-ink); }

/* ==========================================================================
   Release information — version panel
   ========================================================================== */
.release { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.release__ver { padding: 34px 30px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(160deg, #e4f8e4, #eaf4fc); color: var(--ink); border-right: 1px solid var(--line); }
.release__ver small { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.release__ver strong { font-family: var(--f-mono); font-size: 4rem; font-weight: 500; line-height: 1; color: var(--primary-ink); letter-spacing: -.04em; }
.release__ver span { color: var(--ink-2); font-weight: 600; }
.release__body { padding: 30px 34px; }
.release__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0 0 22px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
.release__meta div { padding: 12px 16px; border-right: 1px solid var(--line-soft); }
.release__meta div:last-child { border-right: 0; }
.release__meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.release__meta dd { margin: 2px 0 0; font-weight: 600; }
.release__body ul { margin: 0 0 14px; color: var(--ink-2); }
.release__body li { margin-bottom: 6px; }
.release__body .small { font-size: .92rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   Download — wide band
   ========================================================================== */
.download { padding: 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.download__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 80px 24px; position: relative; }
.download__in::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, var(--primary-tint), transparent 70%); opacity: .8; pointer-events: none; }
.download h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.download__desc { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }
.download__specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.download__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 18px; }
.download__file { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.download__note { font-size: .93rem; color: var(--muted); max-width: 56ch; border-top: 1px dashed var(--line); padding-top: 14px; margin: 0; }
.download__visual { position: relative; z-index: 1; }
.download__visual img { box-shadow: var(--shadow-2); border-radius: var(--r-lg); }

/* ==========================================================================
   Guides preview — doc index
   ========================================================================== */
.gindex { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; }
.gfeature { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.gfeature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.gfeature img { aspect-ratio: 1200 / 630; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.gfeature div { padding: 22px 24px 26px; }
.gfeature h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.gfeature p { margin: 0; color: var(--ink-2); }
.glist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.glist li { border-bottom: 1px solid var(--line); }
.glist a { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 16px 4px; text-decoration: none; color: inherit; align-items: center; transition: background .2s; border-radius: var(--r-sm); }
.glist a:hover { background: var(--white); color: inherit; }
.glist a:hover h3 { color: var(--primary-ink); }
.glist img { border-radius: var(--r-sm); border: 1px solid var(--line); aspect-ratio: 1200 / 630; object-fit: cover; }
.glist h3 { font-size: 1.04rem; margin: 0 0 4px; transition: color .2s; }
.glist p { margin: 0; font-size: .94rem; color: var(--muted); }
.gindex__more { margin-top: 20px; }
.textlink { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.textlink::after { content: "→"; transition: transform .2s var(--ease); }
.textlink:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Safety notice — stacked panel
   ========================================================================== */
.safety { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 26px; background: #fff4f4; border: 1px solid #efcccc; border-left: 6px solid var(--accent); border-radius: var(--r-md); padding: 32px 34px; }
.safety__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-tint); display: grid; place-items: center; }
.safety__icon svg { width: 30px; height: 30px; }
.safety h2 { font-size: 1.6rem; }
.safety ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.safety li { padding-left: 22px; position: relative; color: var(--ink-2); }
.safety li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--accent); }

/* ==========================================================================
   Use cases — bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bento__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; position: relative; }
.bento__item h3 { margin: 12px 0 8px; }
.bento__item p { color: var(--ink-2); margin: 0; }
.bento__item--lg { grid-column: span 4; grid-row: span 2; background: var(--primary-soft); border-color: var(--primary-tint); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; }
.bento__item--lg h3 { font-size: 1.6rem; }
.bento__item--lg ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.bento__item--md { grid-column: span 2; }
.bento__item--wide { grid-column: span 3; }
.bento__item--wide:last-child { border-style: dashed; background: transparent; }
.bento__num { font-family: var(--f-mono); font-size: .76rem; color: var(--accent); }

/* ==========================================================================
   Pros and cons — balanced comparison
   ========================================================================== */
.procon { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.procon__col { padding: 28px 36px 8px 0; }
.procon__col + .procon__col { padding: 28px 0 8px 36px; border-left: 1px solid var(--line); }
.procon h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.procon h3 i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--f-mono); font-size: 1rem; }
.procon__col--pro h3 i { background: var(--primary-tint); color: var(--primary-ink); }
.procon__col--con h3 i { background: var(--accent-tint); color: #402020; }
.procon ul { list-style: none; margin: 0; padding: 0; }
.procon li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.procon li b { color: var(--ink); }

/* ==========================================================================
   FAQ — documentation accordion with category side labels
   ========================================================================== */
.faq__cat { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.faq__cat:first-of-type { border-top: 2px solid var(--ink); }
.faq__label { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.faq__label span { font-family: var(--f-mono); font-size: .78rem; color: var(--accent); display: block; margin-bottom: 6px; }
.faq__label h3 { font-size: 1.3rem; margin-bottom: 6px; }
.faq__label p { font-size: .95rem; color: var(--muted); margin: 0; }
.faq__list { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item:last-child { border-bottom: 0; }
.faq__item h4 { margin: 0; font-size: 1rem; }
.faq__q { width: 100%; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 8px; padding: 17px 20px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--f-body); font-size: 1.04rem; font-weight: 700; color: var(--ink); transition: background .2s, color .2s; }
.faq__q:hover { background: var(--primary-soft); }
.faq__q .faq__n { font-family: var(--f-mono); font-size: .76rem; font-weight: 500; color: var(--muted); }
.faq__q .faq__ic { width: 22px; height: 22px; border: 1.5px solid var(--sand-line); border-radius: var(--r-xs); position: relative; transition: background .2s, border-color .2s; }
.faq__q .faq__ic::before, .faq__q .faq__ic::after { content: ""; position: absolute; left: 5px; right: 5px; top: 9px; height: 1.5px; background: var(--ink-2); transition: transform .25s var(--ease); }
.faq__q .faq__ic::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] { color: var(--primary-ink); background: var(--primary-soft); }
.faq__q[aria-expanded="true"] .faq__ic { background: var(--primary); border-color: var(--primary); }
.faq__q[aria-expanded="true"] .faq__ic::before, .faq__q[aria-expanded="true"] .faq__ic::after { background: var(--white); }
.faq__q[aria-expanded="true"] .faq__ic::after { transform: rotate(0); }
.faq__a { padding: 0 20px 20px 72px; color: var(--ink-2); background: var(--primary-soft); }
.faq__a:not([hidden]) { animation: faqOpen .28s var(--ease); }
.faq__a p:last-child { margin-bottom: 0; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Footer — documentation site map
   ========================================================================== */
#site-footer { display: block; }
.footer { background: var(--mist); border-top: 1px solid var(--line); padding: 64px 0 0; font-size: .97rem; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 36px; padding-bottom: 44px; }
.footer__brand p { margin: 16px 0 12px; max-width: 34ch; }
.footer__email { font-family: var(--f-mono); font-size: .86rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 6px 10px; border-radius: var(--r-xs); display: inline-block; user-select: all; }
.footer h2 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer__bar { border-top: 1px solid var(--line); padding: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .9rem; }
.footer__bar p { margin: 0; }
.footer__bar a { font-weight: 600; }
.footer__disclaim { color: var(--muted); }

/* ---------- Scroll to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); color: var(--primary-ink); box-shadow: var(--shadow-2); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: var(--white); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages — shared
   ========================================================================== */
.page-head { padding: 52px 0 40px; border-bottom: 1px solid var(--line); background: var(--white); }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.page-head p { font-size: 1.15rem; color: var(--ink-2); max-width: 64ch; margin: 0; }
.page-head--plain { background: var(--bg); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin-top: 2em; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .97rem; background: var(--white); border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { background: var(--mist); font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose pre { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: #fff4f4; color: var(--ink-2); }
.callout { margin: 1.6em 0; padding: 16px 18px; border: 1px solid var(--primary-tint); background: var(--primary-soft); border-radius: var(--r-sm); }
.callout b:first-child { font-family: var(--f-mono); font-weight: 500; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-ink); display: block; margin-bottom: 4px; }
.callout--warn { border-color: #efcccc; background: #fff4f4; }
.callout--warn b:first-child { color: #402020; }

/* ---------- Blog index (knowledge base) ---------- */
.kb { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 56px 24px 88px; }
.kb__nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.kb__nav h2 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.kb__nav ol { list-style: none; margin: 0 0 24px; padding: 0; border-left: 2px solid var(--line); }
.kb__nav ol a { display: flex; justify-content: space-between; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.kb__nav ol a:hover { color: var(--primary-ink); border-left-color: var(--primary); }
.kb__nav ol a span { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.kb__group { margin-bottom: 52px; }
.kb__group-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.kb__group-head span { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.kb__group-head h2 { font-size: 1.4rem; margin: 0; }
.kb__group-head p { margin: 0 0 0 auto; color: var(--muted); font-size: .95rem; }
.kb__entry { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.kb__entry img { border-radius: var(--r-sm); border: 1px solid var(--line); aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .3s var(--ease); }
.kb__entry:hover img { transform: scale(1.02); }
.kb__entry h3 { font-size: 1.15rem; margin: 0 0 6px; }
.kb__entry h3 a { color: var(--ink); text-decoration: none; }
.kb__entry h3 a:hover { color: var(--primary-ink); text-decoration: underline; }
.kb__entry p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.kb__meta { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); white-space: nowrap; text-align: right; }
.kb__entry--featured { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin: 18px 0 8px; }
.kb__entry--featured img { border: 0; }
.kb__entry--featured h3 { font-size: 1.5rem; }

/* ---------- Article ---------- */
.article-head { padding: 44px 0 0; background: var(--white); border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(1.95rem, 3.6vw, 2.75rem); max-width: 24ch; margin-bottom: 14px; }
.article-head .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 66ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin: 18px 0 28px; }
.article-hero { margin: 0; }
.article-hero img { border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid var(--line); border-bottom: 0; width: 100%; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 52px 24px 88px; }
.article-body { min-width: 0; }
.article-body > p:first-child { font-size: 1.12rem; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.side-box h2 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.side-box ol, .side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { border-bottom: 1px solid var(--line-soft); }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { display: block; padding: 8px 0; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.side-box li a:hover { color: var(--primary-ink); }
.side-box--toc ol { counter-reset: toc; }
.side-box--toc li a { display: grid; grid-template-columns: 28px 1fr; }
.side-box--toc li a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: .76rem; color: var(--accent); padding-top: 3px; font-weight: 500; }
.side-box--dl { background: var(--primary-soft); border-color: var(--primary-tint); }
.side-box--dl p { font-size: .95rem; color: var(--ink-2); margin-bottom: 14px; }
.side-box--dl .btn { width: 100%; }
.side-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; font-size: .93rem; }
.side-box dt, .side-box dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.side-box dt { color: var(--muted); padding-right: 12px; }
.side-box dd { text-align: right; font-weight: 600; }
.related { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--ink); }
.related h2 { font-size: 1.3rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related a { display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; height: 100%; transition: transform .25s var(--ease), box-shadow .25s; }
.related a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--ink); }
.related img { aspect-ratio: 1200 / 630; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.related span { display: block; padding: 12px 14px; font-weight: 700; font-size: .98rem; line-height: 1.35; }

/* ---------- Supporting pages ---------- */
.about-page { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; padding: 64px 24px 88px; }
.about-page__statement { font-family: var(--f-head); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; margin-bottom: 1.2em; }
.dodont { display: grid; gap: 16px; align-content: start; }
.dodont section { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.dodont h2 { font-size: 1.1rem; }
.dodont ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.dodont li { margin-bottom: 6px; }
.contact-page { padding: 64px 24px 96px; }
.contact-card { max-width: 720px; margin: 0 auto 48px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px 32px; box-shadow: var(--shadow-1); }
.contact-card p { color: var(--ink-2); }
.contact-email { display: inline-block; font-family: var(--f-mono); font-size: clamp(1.05rem, 2.6vw, 1.45rem); color: var(--ink); background: var(--mist); border: 1px dashed var(--sand-line); border-radius: var(--r-sm); padding: 12px 20px; margin: 10px 0 16px; user-select: all; word-break: break-all; }
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 2px solid var(--ink); max-width: 980px; margin: 0 auto; }
.reasons div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.reasons h2 { font-size: 1.05rem; margin-bottom: 6px; }
.reasons p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 56px 24px 88px; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .95rem; }
.legal__toc h2 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.legal__toc ol { margin: 0; padding-left: 1.2em; color: var(--muted); }
.legal__toc li { margin-bottom: 6px; }
.legal__toc a { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.legal__toc a:hover { color: var(--primary-ink); }
.legal__updated { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin-bottom: 24px; }
.clauses { counter-reset: clause; list-style: none; padding: 0; margin: 0; max-width: 76ch; }
.clauses > li { counter-increment: clause; position: relative; padding: 22px 0 10px 64px; border-top: 1px solid var(--line); }
.clauses > li::before { content: counter(clause, decimal-leading-zero); position: absolute; left: 0; top: 24px; font-family: var(--f-mono); font-size: .9rem; color: var(--accent); width: 44px; height: 30px; border: 1px solid var(--line); border-radius: var(--r-xs); display: grid; place-items: center; background: var(--white); }
.clauses h2 { font-size: 1.2rem; margin-bottom: 8px; }
.clauses p { color: var(--ink-2); }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 0 0 40px; }
.disc-grid section { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--r-sm); padding: 22px 22px 8px; }
.disc-grid section:nth-child(2) { border-top-color: var(--sand-line); }
.disc-grid section:nth-child(3) { border-top-color: var(--accent); }
.disc-grid h2 { font-size: 1.1rem; }
.disc-grid p { color: var(--ink-2); font-size: .98rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .nav li a { padding: 8px 8px; font-size: .93rem; }
  .nav li a::after { left: 8px; right: 8px; }
  .brand__tag { display: none; }
}
@media (max-width: 1120px) {
  :root { --header-h: 102px; }
  .nav-toggle { display: block; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 102px); bottom: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 28px; border-top: 1px solid var(--line); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .22s, transform .25s var(--ease), visibility .22s; margin: 0; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { padding: 14px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav li a::after { display: none; }
  .nav li a.is-active, .nav li a[aria-current="page"] { color: var(--accent); }
  .nav__cta { margin-top: 18px; width: 100%; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 18ch; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .about__side .note { margin-top: 0; }
  .howto__layout { grid-template-columns: 1fr; }
  .howto__aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar__sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .kb { grid-template-columns: 1fr; gap: 24px; }
  .kb__nav { position: static; }
  .kb__nav ol { display: flex; flex-wrap: wrap; border-left: 0; gap: 8px; margin-bottom: 0; }
  .kb__nav ol a { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 12px; margin: 0; gap: 10px; background: var(--white); }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal__toc { position: static; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; }
  .faq__cat { grid-template-columns: 1fr; gap: 18px; }
  .faq__label { position: static; }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .sec-head--split { grid-template-columns: 1fr; gap: 10px; }
  .about__text { columns: 1; }
  .about__figure { grid-template-columns: 1fr; }
  .matrix__group { grid-template-columns: 1fr; }
  .matrix__label { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .matrix__row { grid-template-columns: 48px 1fr; gap: 4px 12px; }
  .matrix__desc { grid-column: 2; }
  .setup { grid-template-columns: 1fr; }
  .setup__req { border-right: 0; border-bottom: 1px solid var(--line); }
  .issue { grid-template-columns: 1fr; gap: 8px; }
  .issue p { padding-left: 38px; }
  .release { grid-template-columns: 1fr; }
  .release__ver { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .release__ver strong { font-size: 3rem; }
  .download__in { grid-template-columns: 1fr; gap: 36px; padding: 64px 24px; }
  .gindex { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr; padding: 26px 22px; gap: 14px; }
  .safety ul { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__item--lg { grid-column: 1 / -1; grid-row: auto; }
  .bento__item--md, .bento__item--wide { grid-column: span 1; }
  .procon { grid-template-columns: 1fr; }
  .procon__col, .procon__col + .procon__col { padding: 24px 0 8px; border-left: 0; }
  .procon__col + .procon__col { border-top: 1px solid var(--line); }
  .about-page { grid-template-columns: 1fr; gap: 36px; }
  .kb__entry { grid-template-columns: 140px minmax(0, 1fr); }
  .kb__meta { grid-column: 2; text-align: left; }
  .kb__entry--featured { grid-template-columns: 1fr; }
  .kb__group-head { flex-wrap: wrap; }
  .kb__group-head p { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .utilbar__msg { display: none; }
  .topbar__in { gap: 12px; }
  .topbar .brand { min-width: 0; max-width: calc(100% - 56px); }
  .topbar .brand img { width: 230px; max-width: 100%; }
  .hero { padding: 36px 0 52px; }
  .hero__lede { font-size: 1.08rem; }
  .hero__ctas .btn { width: 100%; }
  .toc ol { columns: 1; }
  .about__side { grid-template-columns: 1fr; }
  .defn { padding-left: 18px; }
  .defn__body { font-size: 1.12rem; }
  .procedure::before { left: 21px; }
  .procedure li { padding-left: 66px; }
  .procedure li::before { width: 44px; height: 44px; font-size: .85rem; box-shadow: 0 0 0 6px var(--mist); }
  .setup__req, .setup__steps { padding-left: 20px; padding-right: 20px; }
  .compat thead { display: none; }
  .compat, .compat tbody, .compat tr, .compat th, .compat td { display: block; min-width: 0; width: 100%; }
  .compat tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .compat tbody tr:last-child { border-bottom: 0; }
  .compat th, .compat td { padding: 4px 0; border: 0; }
  .table-wrap { overflow: visible; }
  .release__body { padding: 24px 20px; }
  .release__meta div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .download__actions .btn { width: 100%; }
  .glist a { grid-template-columns: 88px 1fr; gap: 14px; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--lg { padding: 26px; }
  .faq__q { grid-template-columns: 34px 1fr 22px; padding: 15px 16px; font-size: 1rem; }
  .faq__a { padding: 0 16px 18px 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bar { flex-direction: column; }
  .sidebar__sticky { grid-template-columns: 1fr; }
  .kb { padding: 36px 18px 64px; }
  .kb__entry { grid-template-columns: 1fr; gap: 12px; }
  .kb__meta { grid-column: auto; }
  .article-layout { padding: 36px 18px 64px; }
  .clauses > li { padding-left: 0; padding-top: 60px; }
  .clauses > li::before { top: 20px; }
  .contact-card { padding: 32px 20px; }
  .about-page, .contact-page, .legal { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 380px) {
  .topbar .brand img { width: 205px; }
  .footer__grid { grid-template-columns: 1fr; }
  .utilbar__in a { font-size: .8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .qref__fig img { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  #site-header, .to-top, .nav-toggle { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
}
