/* SiberDefter v5 - design tokens. One place for colour, type, spacing and radii; components read these only.
   Names and values follow the v5 references (index_v5.html / article_v5.html). The legacy v4 names at the bottom are
   aliases so the section and guide templates take the new palette and fonts without being rewritten. */
:root {
  /* colour */
  --ink: #34343d;
  --muted: #525260;
  --brand: #181636;
  --brand-hover: #26225a;
  --label: #302e56;
  --white: #ffffff;
  --surface: #f2f2f2;
  --border: #dce2f1;
  --border-strong: #7d849e;       /* form fields and controls: >= 3:1 on white (WCAG 1.4.11); the reference's #dce2f1 is ~1.3:1 */
  --accent: #2563eb;
  --accent-hover: #1d4fd0;
  --accent-tint: #e8effd;
  --indicator: #5b8cff;
  --header-link: #c9c9d9;
  --header-divider: #2a2a4a;
  --header-line: #3a3870;
  --header-hover: #222048;
  --footer-text: #a0a0b4;
  --footer-divider: #2a2a3a;
  --warn: #9a3d12;
  --warn-deep: #7a2f0c;
  --warn-tint: #faf0ea;
  --focus: #2563eb;

  /* type */
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xl: 38px;   --lh-xl: 42px;      /* large headings; 28/34 on phones */
  --fs-l: 17px;    --lh-l: 27px;       /* publication titles */
  --fs-m: 15px;    --lh-m: 24px;
  --fs-body-m: 13px; --lh-body-m: 21px;
  --fs-meta: 12px; --lh-meta: 18px;
  --fs-article: 17px; --lh-article: 28px;
  --ls-kicker: 0.91px;

  /* spacing (8px step) and shape */
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 40px;
  --radius: 8px;
  --radius-img: 4px;
  --gutter: 16px;
  --container: 1088px;
  --sidebar: 390px;
  --feed-gap: 48px;
  --tap: 44px;

  /* layout width: 1088 for the front page, article and 404; section and guide pages keep the wider v4 measure */
  --wrap: var(--container);
  --pad: var(--gutter);

  /* legacy v4 names (aliases) */
  --paper: var(--white); --sheet: var(--white); --band: var(--surface); --ad-fill: var(--surface); --code-inline: var(--surface);
  --rule: var(--border); --rule-strong: var(--border-strong);
  --graphite: var(--brand); --ink-2: var(--ink); --ink-3: var(--muted);
  --blue: var(--accent); --blue-deep: var(--accent-hover); --blue-tint: var(--accent-tint);
  --rust: var(--warn); --rust-deep: var(--warn-deep); --rust-tint: var(--warn-tint);
  --code-fg: #ecebf4; --code-label: #b9b9cf; --code-border: #34305f; --code-btn: #6a6a8c;
  --copied: #9db4f5; --copy-fail: #f0b89a;
  --f-head: var(--font); --f-body: var(--font); --f-mono: var(--font-mono);
}
body.is-wide { --wrap: 1320px; --pad: clamp(16px, 4vw, 56px); }
@media (max-width: 600px) { :root { --fs-xl: 28px; --lh-xl: 34px; } }

/* SiberDefter v5 - components. Tokens live in tokens.css (concatenated in front of this file at build time).
   No shadows, no gradients radii 4 / 8px.
   Hard breakpoints: 1100 (front page and article columns), 600 (phones), 1080 (section rail), 960 (guide sidebar),
   1300 / 600 (IT Notes 4 / 2 columns). Schematics and ad slots respond to their container. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--white); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; min-height: 100vh; }
body.is-wide main { font-size: 17px; line-height: 1.55; }
body.is-guide main { font-size: 19px; line-height: 1.6; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
body.is-wide main a:not([class]), .body-m a, .note__body a { color: var(--accent); }
a:hover { text-decoration: underline; }
input::placeholder { color: var(--muted); opacity: 1; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
summary { cursor: pointer; }
section:focus, article:focus { outline: none; }
h1, h2, h3 { font-family: var(--font); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; padding: 10px 16px; background: var(--white); border: 1px solid var(--accent); font-size: 14px; }
.skip:focus { left: 8px; }
.mono { font-family: var(--font-mono); }
.blue { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */
.h-xl { margin: 0; font-weight: 700; font-size: var(--fs-xl); line-height: var(--lh-xl); color: var(--ink); }
.h-l { margin: 0; font-weight: 700; font-size: var(--fs-l); line-height: var(--lh-l); color: var(--ink); }
.title-m { margin: 0; font-weight: 500; font-size: var(--fs-m); line-height: var(--lh-m); color: var(--ink); }
.body-m { margin: 0; font-size: var(--fs-body-m); line-height: var(--lh-body-m); color: var(--muted); }
.body-l { margin: 0 0 var(--space-3); font-size: var(--fs-article); line-height: var(--lh-article); color: var(--ink); }
.meta { margin: 0; font-family: var(--font-mono); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--muted); }
.meta--lg { font-size: 13px; }
.kicker, .kick { display: block; margin: 0; font-weight: 600; font-size: 13px; line-height: 21px; letter-spacing: var(--ls-kicker); text-transform: uppercase; color: var(--label); }
.kick--lg { font-size: 13px; }
.chip { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11.5px; padding: 2px 7px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--accent); }
.chip--dark { border-color: var(--brand); }
.tab { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; padding: 5px 12px 4px; border-radius: 5px 5px 0 0; }
.tab--outline { border: 1px solid var(--brand); border-bottom: 0; background: var(--white); }
.tab--rust { background: var(--warn); color: var(--white); }
.tab--blue { background: var(--accent); color: var(--white); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.crumb a { display: flex; align-items: center; min-height: var(--tap); color: var(--muted); }
.crumb [aria-current] { color: var(--ink); }
.mod__h { margin: 0; font-weight: 700; font-size: var(--fs-xl); line-height: var(--lh-xl); }

/* ---------- buttons and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius); font: 700 13px/21px var(--font); white-space: nowrap; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn--primary, .btn--dark { background: var(--brand); color: var(--white); }
.btn--primary:hover, .btn--dark:hover { background: var(--brand-hover); color: var(--white); }
.btn--secondary, .btn--line { background: var(--white); color: var(--ink); border-color: var(--border-strong); }
.btn--secondary:hover, .btn--line:hover { background: var(--surface); color: var(--ink); }
.btn--ghost, .btn--clear { align-self: flex-start; background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover, .btn--clear:hover { background: var(--surface); color: var(--ink); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--header-line); }
.btn--outline:hover { background: var(--header-hover); color: var(--white); }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field label { font-size: 13px; line-height: 21px; color: var(--ink); }
.field-row { display: flex; gap: var(--space-1); align-items: stretch; }
.field input { flex: 1; min-width: 0; height: 50px; padding: 0 var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--radius); font: 400 15px var(--font); color: var(--ink); background: var(--white); }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.field button { height: 50px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius); background: var(--brand); color: var(--white); font: 700 14px/20px var(--font); white-space: nowrap; cursor: pointer; }
.field button:hover { background: var(--brand-hover); }
.field__msg { margin: 0; min-height: 21px; font-size: 13px; line-height: 21px; color: var(--muted); }
.field__msg.is-err { color: var(--warn-deep); }

/* ---------- advertising ---------- */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ad__box { max-width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; background: var(--ad-fill); border: 1px dashed var(--border-strong); border-radius: 4px; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--muted); }
.ad__box::before { content: attr(data-label); }
.ad-band { }
.ad--lb { max-width: var(--wrap); margin: 0 auto; padding: var(--space-4) var(--pad) 0; container-type: inline-size; }
.is-home .ad--lb { padding-top: 48px; }
.ad--lb .ad__box { width: 320px; height: 100px; }
.ad--lb .ad__box::before { content: "320 × 100 · placeholder"; }
@container (min-width: 728px) { .ad--lb .ad__box { width: 728px; height: 90px; } .ad--lb .ad__box::before { content: "728 × 90 · placeholder"; } }
@container (min-width: 970px) { .ad--lb .ad__box { width: 970px; height: 90px; } .ad--lb .ad__box::before { content: "970 × 90 · placeholder"; } }
.ad--mpu, .ad--half { flex: 1 1 300px; max-width: 300px; margin: 0 auto; }
.ad--mpu .ad__box, .ad--half .ad__box { width: 300px; height: 250px; }
.ad--mpu .ad__box::before, .ad--half .ad__box::before { content: "300 × 250 · placeholder"; }
.is-sticky { position: sticky; top: 16px; }
@media (min-width: 1080px) { .ad--half .ad__box { height: 600px; } .ad--half .ad__box::before { content: "300 × 600 · placeholder"; } }
.ad--sky { display: none; flex: 1 1 180px; min-width: 0; max-width: 240px; padding-top: 64px; align-items: flex-start; }
.ad--sky .ad__box { width: 160px; height: 600px; }
.ad--sky .ad__box::before { content: "160 × 600 · placeholder"; }
@media (min-width: 960px) { .ad--sky { display: flex; } }
.ad--inline-top, .ad--inline-bottom { padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ad--inline-top .ad__box, .ad--inline-bottom .ad__box { width: 300px; height: 250px; }
.ad--inline-top .ad__box::before, .ad--inline-bottom .ad__box::before { content: "300 × 250 · placeholder"; }
@media (min-width: 960px) { .ad--inline-top { display: none; } }
.ad--inline-bottom { max-width: 820px; container-type: inline-size; }
@container (min-width: 760px) { .ad--inline-bottom .ad__box { width: 728px; height: 90px; } .ad--inline-bottom .ad__box::before { content: "728 × 90 · placeholder"; } }

/* ---------- schematics (HTML/CSS; stack vertically under ~560px of container width) ---------- */
.fg-c { container-type: inline-size; margin-top: 8px; }
.fg { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, 2.6vw, 28px); background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; }
.fg figcaption { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-3); }
.fg__n { flex: 0 0 auto; white-space: nowrap; font-family: var(--f-mono); font-size: 12.5px; color: var(--graphite); }
.fg__flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 0; }
.fg__col { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fg__cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.fg__cap.is-rust, .fg__sub.is-rust { color: var(--rust); }
.fg__tab { display: inline-block; font-family: var(--f-mono); font-size: 11.5px; padding: 4px 9px 3px; border: 1px solid var(--graphite); border-bottom: 0; border-radius: 4px 4px 0 0; background: var(--paper); overflow-wrap: anywhere; }
.fg__tab--dash { border-style: dashed; background: transparent; }
.fg__tab--rust { border-color: var(--rust); color: var(--rust); background: transparent; }
.fg__tab--blue { border-color: var(--blue); color: var(--blue); background: transparent; }
.fg__box { border: 1px solid var(--graphite); border-radius: 0 4px 4px 4px; background: var(--paper); font-family: var(--f-mono); font-size: 12px; line-height: 1.4; }
.fg__box > div { padding: 8px 10px; overflow-wrap: anywhere; }
.fg__box--zone > div:first-child { border-bottom: 1px solid var(--rule); }
.fg__box--dash { border-style: dashed; background: transparent; }
.fg__box--rust { border-color: var(--rust); background: var(--rust-tint); color: var(--rust-deep); }
.fg__gone { display: flex; justify-content: space-between; gap: 6px; color: var(--ink-3); }
.fg__gone span:first-child { text-decoration: line-through; }
.fg__sub { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.fg__arrow span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.fg__arrow--h { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.fg__arrow--v { display: none; flex: 1 1 100%; align-items: center; gap: 10px; padding-left: 24px; }
.fg__line { display: block; position: relative; width: 38px; height: 1px; margin-right: 6px; background: var(--graphite); }
.fg__line::after { content: ""; position: absolute; left: 100%; top: -4px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--graphite); }
.fg__vline { display: block; position: relative; width: 1px; height: 20px; margin-bottom: 6px; background: var(--graphite); }
.fg__vline::after { content: ""; position: absolute; top: 100%; left: -4px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--graphite); }
.fg__arrow.is-rust span { color: var(--rust); }
.fg__arrow.is-rust .fg__line, .fg__arrow.is-rust .fg__vline { background: var(--rust); }
.fg__arrow.is-rust .fg__line::after { border-left-color: var(--rust); }
.fg__arrow.is-rust .fg__vline::after { border-top-color: var(--rust); }
@container (max-width: 559.98px) { .fg__arrow--h { display: none; } .fg__arrow--v { display: flex; } }
/* guide topology */
.fg--topo { gap: 12px; padding: 18px; }
.fg--topo figcaption { padding-top: 10px; line-height: 1.45; }
.fg__flow--topo { gap: 12px 0; font-family: var(--f-mono); font-size: 12px; line-height: 1.4; }
.fg__tcol { flex: 1 1 170px; min-width: 0; }
.fg--topo .fg__box { font-size: 12px; background: var(--paper); }
.fg--topo .fg__box > div { padding: 7px 10px; }
.fg--topo .fg__box > div:not(:last-child) { border-bottom: 1px solid var(--rule); }
.fg--topo .fg__box--blue { border-color: var(--blue); background: transparent; }
.fg--topo .fg__box--blue .is-tint { background: var(--blue-tint); color: var(--blue-deep); }
.fg--topo .fg__arrow--h { flex: 0 0 120px; padding: 0 6px; gap: 4px; align-items: stretch; }
.fg--topo .fg__arrow--h span { align-self: center; text-align: center; }
.fg--topo .fg__arrow--h .fg__line { width: calc(100% - 6px); }
.fg--topo .fg__arrow--v span { font-size: 11px; }
/* section lead: IPv4 + NAT vs IPv6 lanes */
.fg--lanes { gap: 12px; padding: clamp(16px, 2.4vw, 24px); }
.fg--lanes figcaption { padding-top: 10px; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl__row { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.35; }
.fl__box { flex: 1 1 0; min-width: 0; padding: 7px 8px; border: 1px solid var(--graphite); border-radius: 0 3px 3px 3px; overflow-wrap: anywhere; }
.fl__box--dash { border-style: dashed; }
.fl__box--router { flex: 1.2 1 0; background: var(--paper); }
.fl__box--host { flex: 1.3 1 0; background: var(--paper); }
.fl__box--host.is-rust { border-color: var(--rust); background: var(--rust-tint); color: var(--rust-deep); }
.fl__arr { flex: 0 0 auto; color: var(--ink-3); }
.fl__arr.is-ink { color: var(--graphite); }
.fl__arr.is-rust { color: var(--rust); }
.fl__note { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.fl__note.is-rust { color: var(--rust-deep); }
/* home guide card mini tunnel */
.mini { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; line-height: 1.35; }
.mini__box { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border: 1px solid var(--graphite); border-radius: 0 3px 3px 3px; background: var(--paper); }
.mini__box--blue { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-deep); }
.mini__dim { color: var(--ink-3); }
.mini__mid { flex: 1.1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mini__mid .mini__dim { text-align: center; }
.mini__line { width: 100%; height: 1px; background: var(--graphite); }
.mini__ok { color: var(--blue); }

/* ---------- code, files, output (shared by notes and the guide) ---------- */
.code { background: var(--graphite); color: var(--code-fg); overflow: hidden; border-radius: 5px; }
.code--lg, .code--md { border-radius: 6px; }
.code__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 2px 12px; border-bottom: 1px solid var(--code-border); }
.code--lg .code__head, .code--md .code__head { gap: 12px; padding: 4px 6px 4px 16px; }
.code__label { font-family: var(--f-mono); font-size: 11.5px; color: var(--code-label); }
.code--lg .code__label, .code--md .code__label { font-size: 12px; }
.copy { min-height: 40px; min-width: 72px; padding: 0 10px; border: 1px solid var(--code-btn); border-radius: 3px; background: transparent; color: var(--code-fg); font-family: var(--f-mono); font-size: 12px; cursor: pointer; }
.code--lg .copy, .code--md .copy { min-width: 76px; padding: 0 12px; font-size: 12.5px; }
.copy:hover { border-color: var(--code-fg); }
.copy.is-ok { color: var(--copied); }
.copy.is-fail { color: var(--copy-fail); }
.copy:focus-visible, .code__pre:focus-visible { outline-color: var(--copied); }
.code__pre { margin: 0; padding: 11px 12px; overflow-x: auto; font-family: var(--f-mono); font-size: 13px; line-height: 1.55; white-space: pre; }
.code--lg .code__pre { padding: 14px 16px; font-size: 14px; line-height: 1.65; }
.code--md .code__pre { padding: 12px 16px; font-size: 14px; line-height: 1.6; }
.code__pre code { font: inherit; }
.file__tab { display: inline-block; max-width: 100%; font-family: var(--f-mono); font-size: 12px; padding: 6px 12px 5px; border-radius: 5px 5px 0 0; background: var(--graphite); color: var(--code-fg); overflow-wrap: anywhere; }
.code--file { border-radius: 0 6px 6px 6px; }
.out__tab { display: inline-block; font-family: var(--f-mono); font-size: 12px; padding: 5px 12px 4px; border: 1px dashed var(--graphite); border-bottom: 0; border-radius: 5px 5px 0 0; background: var(--sheet); }
.out__box { border: 1px dashed var(--graphite); border-radius: 0 6px 6px 6px; background: var(--sheet); }
.out__pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--f-mono); font-size: 13px; line-height: 1.6; white-space: pre; color: var(--graphite); }
.out__cap { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.callout__box { border: 1px solid var(--graphite); border-radius: 0 6px 6px 6px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.callout__box strong { font-weight: 600; font-size: 17.5px; line-height: 1.4; }
.callout__box p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 29em; }
.callout--warn .callout__box { border-color: var(--rust); background: var(--rust-tint); }
.check__box { border: 1px solid var(--blue); border-radius: 0 6px 6px 6px; padding: 14px 18px; font-size: 17.5px; line-height: 1.5; }
.how { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.how__head { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.how ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.how li { display: flex; gap: 12px; font-size: 17.5px; line-height: 1.5; }
.how__n { flex: 0 0 18px; font-family: var(--f-mono); font-size: 13px; color: var(--blue); padding-top: 3px; }
.how code, .dl code { font-family: var(--f-mono); font-size: 14.5px; padding: 1px 5px; background: var(--code-inline); border-radius: 3px; overflow-wrap: anywhere; }
.dl code { font-size: 14px; padding: 0; background: none; }
.dl .mono { font-size: 14px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shot__box { aspect-ratio: 16 / 8; max-height: 280px; width: 100%; border: 1px dashed var(--border-strong); border-radius: 6px; background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 20px; }
.shot__box span { font-family: var(--f-mono); font-size: 13px; line-height: 1.5; color: var(--ink-2); text-align: center; max-width: 36ch; background: var(--paper); padding: 8px 12px; border-radius: 3px; }
.shot figcaption { font-size: 15px; line-height: 1.45; color: var(--ink-3); }

/* ---------- IT Notes ---------- */
.note__code { color: var(--blue); }
.note__title { margin: 0; font-weight: 600; font-size: 18.5px; line-height: 1.25; text-wrap: pretty; }
.note__body { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.note--card { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 2px solid var(--graphite); min-width: 0; scroll-margin-top: 12px; }
.note__top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.note--row { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 18px 0; scroll-margin-top: 16px; }
.note--row .note__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.note--row .note__title { font-size: 19px; }
.note__meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.note--row .note__cmd { flex: 1.2 1 300px; min-width: 0; align-self: flex-start; }

.mod__in { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--pad); display: flex; flex-direction: column; gap: 24px; }
.mod--band { border-top: 1px solid var(--rule); background: var(--band); }
.mod--rule { border-top: 1px solid var(--rule); }
.mod--top { border-top: 1px solid var(--graphite); }
.mod { scroll-margin-top: 12px; }
.mod__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; border-bottom: 2px solid var(--graphite); padding-bottom: 10px; }
.mod__sub { font-size: 16px; color: var(--ink-3); }

.guides { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start; }
.gcard, .scard { display: flex; flex-direction: column; color: var(--graphite); }
.gcard { flex: 1.2 1 460px; min-width: 0; }
.gcard:hover, .scard:hover { text-decoration: none; color: var(--graphite); }
.gcard__tab, .scard__tab { align-self: flex-start; display: flex; gap: 8px; font-family: var(--f-mono); font-size: 12px; padding: 6px 12px 5px; border: 1px solid var(--graphite); border-bottom: 0; border-radius: 5px 5px 0 0; }
.gcard__box { display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--graphite); border-radius: 0 6px 6px 6px; background: var(--sheet); }
.gcard:hover .gcard__box, .scard:hover .scard__box { background: var(--white); }
.gcard__title { font-family: var(--f-head); font-weight: 700; font-size: 24px; line-height: 30px; }
.gcard__dek { font-size: 17px; color: var(--ink-2); text-wrap: pretty; }
.gcard__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 12px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); }
.gcard__meta .ink { color: var(--graphite); }
.gcard__open, .scard__open { font-weight: 600; font-size: 16px; color: var(--blue); }
.guides__rows { flex: 1 1 360px; min-width: 0; border-top: 1px solid var(--graphite); }
.grow { border-bottom: 1px solid var(--rule); scroll-margin-top: 12px; }
.grow__in { width: 100%; display: flex; gap: 14px; align-items: baseline; padding: 14px 0; color: var(--graphite); }
a.grow__in:hover { background: var(--band); text-decoration: none; color: var(--graphite); }
.grow__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.grow__title { font-family: var(--f-head); font-size: var(--fs-l); line-height: var(--lh-l); font-weight: 700; }

/* IT Notes grid: 1 column < 600, 2 columns 600-1299, 4 columns >= 1300 (never 3 + 1) */
.notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 24px; }
@media (min-width: 600px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .notes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.notes__cell { min-width: 0; }

/* ---------- section page ---------- */
.sec-intro { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--pad) 0; }
.mast { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; padding: clamp(12px, 2.5vw, 28px) 0 20px; border-bottom: 2px solid var(--graphite); }
.mast__h { margin: 0; font-weight: 700; font-size: var(--fs-xl); line-height: var(--lh-xl); }
.mast__d { margin: 0; flex: 0 1 520px; color: var(--ink-2); text-wrap: pretty; font-size: var(--fs-article); line-height: var(--lh-article); }
.pkg { max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 3.5vw, 40px) var(--pad) clamp(36px, 4vw, 52px); display: flex; flex-wrap: wrap; gap: 36px 48px; align-items: flex-start; }
.lead { flex: 1.7 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lead__title { margin: 0; font-weight: 700; text-wrap: balance; font-size: var(--fs-xl); line-height: var(--lh-xl); }
.lead__dek { margin: 0; color: var(--ink-2); max-width: 36em; text-wrap: pretty; font-size: var(--fs-article); line-height: var(--lh-article); }
.lead .fg-c { margin-top: 4px; }
.pkg__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; border-top: 2px solid var(--graphite); }
.stz { display: flex; flex-direction: column; gap: 8px; padding: 16px 0 20px; border-bottom: 1px solid var(--rule); color: var(--graphite); }
a.stz:hover { background: var(--band); text-decoration: none; color: var(--graphite); }
.stz__title { font-family: var(--f-head); text-wrap: balance; font-size: var(--fs-l); line-height: var(--lh-l); font-weight: 700; }
.stz__dek { font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.scard { margin-top: 24px; }
.scard__box { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--graphite); border-radius: 0 6px 6px 6px; background: var(--sheet); }
.scard__title { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 28px; }
.scard__meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); }

.strm { max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 4.5vw, 56px) var(--pad) clamp(56px, 7vw, 88px); display: flex; flex-direction: column; gap: 40px 48px; }
@media (min-width: 1080px) { .strm { flex-direction: row; align-items: flex-start; } .strm__main { flex: 1 1 0; } .strm .ad--half { flex: 0 0 300px; } }
.strm__main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.strm__tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 3px; background: transparent; color: var(--graphite); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.fchip__n { font-family: var(--f-mono); font-size: 12px; opacity: 0.85; }
.sq { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; background: var(--sheet); border: 1px solid var(--graphite); border-radius: 4px; }
.sq .slash { font-size: 14px; }
.sq input { flex: 1; align-self: stretch; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; color: var(--graphite); }
.sq__clear { min-height: 44px; padding: 0 10px; }
.strm__count { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 44px; }
.count { font-family: var(--f-mono); font-size: 13px; color: var(--graphite); }
.linkbtn { min-height: 44px; border: 0; background: none; padding: 0 4px; font: inherit; font-size: 15px; color: var(--blue); cursor: pointer; text-decoration: underline; }
.stream { border-top: 1px solid var(--graphite); }
.srow { border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.sa { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; color: var(--graphite); }
a.sa:hover, a.sg:hover { background: var(--band); text-decoration: none; color: var(--graphite); }
.sa__title { font-family: var(--f-head); text-wrap: balance; font-size: var(--fs-l); line-height: var(--lh-l); font-weight: 700; }
.sg { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; color: var(--graphite); }
.sg__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sg__title { font-family: var(--f-head); font-size: var(--fs-l); line-height: var(--lh-l); font-weight: 700; }
.sg__read { flex: 0 0 auto; font-weight: 600; font-size: 15px; color: var(--blue); }
.empty { display: flex; flex-direction: column; gap: 12px; padding: 36px 0 40px; border-bottom: 1px solid var(--rule); max-width: 600px; }
.empty__t { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 28px; }
.empty__d { font-size: 16px; color: var(--ink-3); text-wrap: pretty; }
.empty__a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- guide page ---------- */
.gtitle { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--pad) 32px; }
.gtitle .crumb { padding-bottom: clamp(16px, 3vw, 36px); }
.gtitle__row { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.gtitle__main { flex: 1.4 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.gtitle__h { margin: 0; font-weight: 700; text-wrap: balance; font-size: var(--fs-xl); line-height: var(--lh-xl); }
.gtitle__dek { margin: 0; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.gtitle .tab--outline { padding: 6px 12px 5px; background: transparent; }
.outcome { margin: 0; padding: 16px 20px; list-style: none; border: 1px solid var(--graphite); border-radius: 0 6px 6px 6px; background: var(--sheet); display: flex; flex-direction: column; gap: 8px; font-size: 17.5px; line-height: 1.45; }
.outcome li { display: flex; gap: 12px; }
.outcome .arrow { font-family: var(--f-mono); font-size: 12.5px; color: var(--blue); padding-top: 3px; }
.dl { flex: 1 1 320px; min-width: 0; margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--graphite); font-size: 16px; line-height: 1.45; }
.dl__row { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.dl dt { flex: 0 0 110px; color: var(--ink-3); }
.dl dd { flex: 1 1 180px; margin: 0; }
.dl__row--status { align-items: baseline; gap: 6px 16px; }
.dl__row--status dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.badge { font-family: var(--f-mono); font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 3px; }
.badge--rust { background: var(--rust); color: var(--white); }
.dl__row--client { align-items: center; gap: 8px 16px; }
.dl__row--client dd { flex: 0 0 auto; }
.seg { display: flex; border: 1px solid var(--graphite); border-radius: 4px; overflow: hidden; }
.seg__b { min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--graphite); font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; }
.seg__b[aria-pressed="true"] { background: var(--graphite); color: var(--paper); }
.seg__b:focus-visible { outline-offset: -2px; }

.gbody { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) clamp(56px, 7vw, 96px); display: flex; align-items: flex-start; gap: 56px; }
.gart { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.toc--side { display: none; }
@media (min-width: 960px) { .toc--side { display: flex; flex-direction: column; flex: 0 0 240px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } .toc-m { display: none; } }
.toc__head { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--graphite); }
.toc--side a { display: flex; gap: 10px; min-height: 44px; align-items: center; padding: 4px 0 4px 10px; margin-left: -12px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.3; color: var(--graphite); }
.toc--side a:hover, .toc-m a:hover { color: var(--blue); text-decoration: none; }
.toc a[aria-current="true"], .toc-m__panel a[aria-current="true"] { color: var(--blue); font-weight: 600; }
.toc--side a[aria-current="true"] { border-left-color: var(--blue); }
.toc__n { flex: 0 0 18px; font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--blue); }
.toc-m { border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--rule); }
.toc-m__btn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--graphite); cursor: pointer; text-align: left; }
.toc-m__lbl { display: flex; flex-direction: column; line-height: 1.3; }
.toc-m__lbl b { font-weight: 600; }
.toc-m__lbl > span { font-size: 14px; color: var(--ink-3); }
.toc-m__ico { font-family: var(--f-mono); font-size: 14px; color: var(--blue); }
.toc-m__panel { display: flex; flex-direction: column; padding-bottom: 10px; }
.toc-m__panel a { display: flex; gap: 10px; min-height: 44px; align-items: center; font-size: 16px; line-height: 1.3; color: var(--graphite); }

.gsec { display: flex; flex-wrap: wrap; gap: 20px 40px; padding-top: 28px; border-top: 1px solid var(--graphite); scroll-margin-top: 16px; }
.gsec__col { flex: 999 1 420px; min-width: 0; max-width: 620px; display: flex; flex-direction: column; gap: 20px; }
.gsec--before { padding-top: 0; border-top: 0; gap: 24px 40px; }
.gsec--before .gsec__col { gap: 16px; }
.vstep, .vb { display: contents; }
.step__label { font-family: var(--f-mono); font-size: 12.5px; color: var(--blue); }
.gh2 { margin: -8px 0 0; font-weight: 700; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.08; text-wrap: balance; }
.gh2--sm { margin: 0; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.6; text-wrap: auto; }
.gh3 { margin: 8px 0 0; font-weight: 600; font-size: 20px; }
.gp { margin: 0; max-width: 29em; text-wrap: pretty; }
.gp--small { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 32em; } /* prototype: 36em (~78 characters); 32em keeps every guide paragraph near 70 */
.gp--lead { font-size: 17.5px; color: var(--ink-2); }
.gp--panel { font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.mn-sup { font-family: var(--f-mono); font-size: 12px; color: var(--blue); margin-left: 2px; }
.mn { flex: 1 1 180px; min-width: 0; max-width: 240px; padding-top: 64px; display: none; }
.mn__in { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mn__n { font-family: var(--f-mono); font-size: 12.5px; color: var(--blue); font-weight: 500; }
.mn-inline { display: flex; flex-direction: column; }
@media (min-width: 960px) { .mn { display: block; } .mn-inline { display: none; } }
@media (max-width: 959.98px) { .mn-sup { display: none; } }
.mn-btn { align-self: flex-start; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 3px; background: transparent; font: inherit; font-size: 15px; color: var(--graphite); cursor: pointer; }
.mn-btn__n { font-family: var(--f-mono); font-size: 12.5px; color: var(--blue); }
.mn-text { margin: 10px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.needs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.needs li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 17.5px; line-height: 1.5; }
.need__n { font-family: var(--f-mono); font-size: 12.5px; color: var(--blue); padding-top: 3px; }
.tbl-c { display: flex; flex-direction: column; gap: 8px; }
.tbl { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--sheet); }
.tbl table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; line-height: 1.4; }
.tbl thead th { padding: 10px 14px; border-bottom: 1px solid var(--graphite); font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-align: left; }
.tbl tbody th, .tbl tbody td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .mono { font-size: 13.5px; }
.tbl__hint { display: none; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 759.98px) { .tbl__hint { display: block; } }

.gsec--list, .gsec--acc, .gsec--rel { flex-direction: column; flex-wrap: nowrap; gap: 16px; }
.gsec--list { max-width: 620px; }
.gsec--acc { max-width: 820px; }
.gsec--rel { max-width: 820px; padding-top: 0; border-top: 0; gap: 12px; }
.cl__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.cl__count { font-family: var(--f-mono); font-size: 13px; color: var(--graphite); }
.cl { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.cl li { border-bottom: 1px solid var(--rule); }
.cl label { display: flex; align-items: flex-start; gap: 14px; min-height: 52px; padding: 13px 0; cursor: pointer; font-size: 17.5px; line-height: 1.45; }
.cl input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.cl input:checked + span { color: var(--ink-3); }
.acc { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule); }
.acc__item h3 { margin: 0; }
.acc__btn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border: 0; background: transparent; font-family: var(--f-body); font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--graphite); text-align: left; cursor: pointer; }
.acc__btn:hover { color: var(--blue); }
.acc__ico { font-family: var(--f-mono); font-size: 15px; color: var(--blue); }
.acc__panel { display: flex; flex-direction: column; gap: 12px; padding: 0 0 18px; }
.acc__panel .code { max-width: 620px; }
.rel { border-top: 1px solid var(--rule); }
.rel__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--graphite); }
a.rel__row:hover { background: var(--band); text-decoration: none; color: var(--graphite); }
.rel__fmt { flex: 0 0 96px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }
.rel__txt { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rel__title { font-family: var(--f-head); font-weight: 600; font-size: 18.5px; line-height: 1.3; }
.rel__dek { font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.back { align-self: flex-start; display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }


/* ---------- tiles (image or neutral placeholder) ---------- */
.tile { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-img); background: var(--surface); }
.tile--3x2 { aspect-ratio: 3 / 2; }
.tile--16x9 { aspect-ratio: 16 / 9; }
.tile--hero { aspect-ratio: 607 / 324; }
.tile--empty { display: flex; align-items: flex-end; padding: var(--space-2); }
.tile--empty span { font-family: var(--font-mono); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--muted); }

/* ---------- header ---------- */
.hdr { background: var(--brand); color: var(--white); padding-top: var(--space-3); }
.hdr__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.logo { display: flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--white); }
.logo:hover { color: var(--white); text-decoration: none; }
.logo__mark { position: relative; width: 20px; height: 16px; display: block; margin-top: 3px; }
.logo__mark i { position: absolute; left: 0; top: -4px; width: 9px; height: 5px; background: var(--indicator); border-radius: 2px 2px 0 0; }
.logo__mark b { position: absolute; inset: 0; background: var(--indicator); border-radius: 0 2px 2px 2px; }
.logo__word { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.btn-search { flex: 0 0 auto; }
.menu { display: flex; gap: var(--space-1); align-items: center; overflow-x: auto; height: 46px; margin-top: var(--space-2); border-bottom: 1px solid var(--header-divider); scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { position: relative; flex: 0 0 auto; white-space: nowrap; height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 4px 4px 0 0; font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: 0.3px; color: var(--header-link); }
.menu a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--white); }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--indicator); border-radius: 4px 4px 0 0; }
.hdr a:focus-visible, .hdr button:focus-visible, .ftr a:focus-visible, .ftr summary:focus-visible { outline-color: var(--copied); }
@media (max-width: 600px) { .menu { gap: 4px; } }

/* ---------- search panel (under the header, not a modal) ---------- */
.spanel { border-bottom: 1px solid var(--border); background: var(--surface); }
.spanel .wrap { padding-top: 20px; padding-bottom: 24px; }
.spanel__col { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.spanel__label { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.spanel__field { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 16px; background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.spanel__field input { flex: 1; align-self: stretch; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 18px; color: var(--ink); }
.spanel__field:focus-within, .sq:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.spanel__clear, .sq__clear { min-height: var(--tap); padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: transparent; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); cursor: pointer; }
.spanel__clear:hover, .sq__clear:hover { border-color: var(--border-strong); color: var(--ink); }
.spanel__count { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.spanel__results { border-top: 1px solid var(--border-strong); }
.sres { border-bottom: 1px solid var(--border); }
.sres a { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; color: var(--ink); }
.sres a:hover { background: var(--white); text-decoration: none; }
.sres__t { font-weight: 700; font-size: 17px; line-height: 1.35; }
.spanel__none { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; color: var(--ink); }

/* ---------- hero slider ---------- */
.hero-slider { margin-top: 48px; }
.slide { display: grid; grid-template-columns: minmax(0, 427fr) minmax(0, 607fr); gap: 54px; align-items: center; }
.slide__text { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; min-width: 0; }
.slide__text .h-xl { overflow-wrap: break-word; text-wrap: balance; }
.slide__img { min-width: 0; }
.hero-slider:not(.is-js) .slide + .slide { margin-top: 48px; }
.hero-slider.is-js .slides { display: grid; }
.hero-slider.is-js .slide { grid-area: 1 / 1; visibility: hidden; }
.hero-slider.is-js .slide.is-active { visibility: visible; }
.slider-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.dots { display: flex; gap: 0; }
.dot { width: 28px; height: var(--tap); padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dot span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); opacity: 0.55; }
.dot[aria-current="true"] span { background: var(--brand); opacity: 1; }
.slider-btns { display: flex; gap: var(--space-1); }
.btn--secondary.is-sm { min-height: 36px; }

/* ---------- feed + sidebar ---------- */
.feed-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: var(--feed-gap); margin-top: 56px; align-items: start; }
.section-title { margin-bottom: var(--space-3); }
.card-list { display: flex; flex-direction: column; }
.card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.card:first-child { padding-top: 0; }
.card:last-child { border-bottom: 0; padding-bottom: 0; }
.card__img { display: block; width: 240px; }
.card__text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.card__text .h-l { overflow-wrap: break-word; text-wrap: pretty; }
.card__text .h-l a:hover { text-decoration: underline; }
.card__dek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-1); margin-top: var(--space-4); }
.pagination a, .pagination span { min-width: var(--tap); height: var(--tap); padding: 0 var(--space-1); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--ink); background: var(--white); white-space: nowrap; }
.pagination a:hover:not([aria-current="page"]) { background: var(--surface); text-decoration: none; }
.pagination a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.pagination .is-off { color: var(--muted); background: var(--surface); border-color: var(--border); }
.pagination .gap { border: 0; background: transparent; min-width: var(--space-3); }

.sidebar { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.picks { display: flex; flex-direction: column; gap: var(--space-3); }
.pick { display: flex; flex-direction: column; gap: 6px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.pick:last-child { border-bottom: 0; padding-bottom: 0; }
.pick a:hover { text-decoration: underline; }
.sidebar .ad { align-items: flex-start; flex: none; max-width: 100%; margin: 0; }
.sub-widget { display: flex; flex-direction: column; gap: 12px; }

/* ---------- home modules kept from v4 (Guides, IT Notes) ---------- */
.is-home .mod { margin-top: 72px; }
.is-home .mod--band { padding: 0; margin-top: 72px; }
.is-home main:has(> .mod--band:last-child) + .ftr { margin-top: 0; }
.mod__in { display: flex; flex-direction: column; gap: var(--space-3); padding-top: 0; padding-bottom: 0; }
.mod--band .mod__in { padding-top: 56px; padding-bottom: 64px; }
.mod--band { border-top: 0; background: var(--surface); }
.mod__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: var(--space-1); border-bottom: 1px solid var(--border); }
.mod__sub { font-size: 14px; color: var(--muted); }

/* ---------- article ---------- */
.crumbs { margin-top: var(--space-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); }
.crumbs a:hover { text-decoration: underline; }
.article-head { margin-top: var(--space-2); display: flex; flex-direction: column; gap: var(--space-2); }
.article-head .h-xl { max-width: 820px; overflow-wrap: break-word; text-wrap: balance; }
.article-hero { margin-top: var(--space-4); }
.article-row { display: grid; grid-template-columns: minmax(0, 600px) 340px; justify-content: space-between; gap: var(--feed-gap); margin-top: var(--space-5); align-items: start; }
.article-body { max-width: 600px; min-width: 0; overflow-wrap: break-word; }
.article-body > p { margin: 0 0 var(--space-3); font-size: var(--fs-article); line-height: var(--lh-article); }
.article-body > .article-dek { font-size: 19px; line-height: 30px; color: var(--muted); }
.article-body h2 { margin: var(--space-5) 0 var(--space-1); font-weight: 700; font-size: 22px; line-height: 30px; }
.article-body h3 { margin: var(--space-4) 0 var(--space-1); font-weight: 700; font-size: var(--fs-l); line-height: var(--lh-l); }
.article-body ul, .article-body ol { margin: 0 0 var(--space-3); padding-left: 22px; font-size: var(--fs-article); line-height: var(--lh-article); }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent); text-decoration: underline; }
.author { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; font-family: var(--font-mono); font-size: 13px; }
.related { margin-top: 72px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.related-card { display: flex; flex-direction: column; gap: var(--space-1); padding-bottom: var(--space-3); min-width: 0; }
.related-card__img { display: block; margin-bottom: var(--space-1); }
.related-card .title-m { overflow-wrap: break-word; }
.related-card a:hover { text-decoration: underline; }
.nf { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--pad); display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.nf__a { display: flex; flex-wrap: wrap; gap: var(--space-1); }

/* ---------- footer ---------- */
.ftr { background: var(--brand); color: var(--footer-text); padding: 56px 0 40px; margin-top: 72px; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; align-items: start; padding-bottom: var(--space-4); border-bottom: 1px solid var(--footer-divider); }
.ftr__cols { display: flex; gap: 80px; flex-wrap: wrap; }
.ftr h3 { margin: 0 0 var(--space-1); font-weight: 500; font-size: 15px; line-height: 24px; color: var(--white); }
.ftr nav a { display: block; font-weight: 500; font-size: 13px; line-height: 26px; color: var(--footer-text); }
.ftr nav a:hover { color: var(--white); }
.ftr__about { max-width: 360px; }
.ftr details { border-top: 1px solid var(--footer-divider); font-size: 13px; line-height: 21px; }
.ftr details:last-child { border-bottom: 1px solid var(--footer-divider); }
.ftr summary { min-height: var(--tap); padding: 11px 0; font-weight: 500; color: var(--footer-text); }
.ftr summary:hover { color: var(--white); }
.ftr details p { margin: 0 0 14px; color: var(--footer-text); }
.ftr__sub h2 { margin: 0; font-weight: 700; font-size: 22px; line-height: 30px; color: var(--white); }
.ftr__sub p { margin: var(--space-1) 0 var(--space-3); font-size: 14px; line-height: 22px; color: var(--footer-text); }
.ftr .field label { color: var(--white); }
.ftr .field input { border-color: transparent; }
.ftr .field button { background: var(--accent); }
.ftr .field button:hover { background: var(--accent-hover); }
.ftr .field__msg { color: var(--footer-text); }
.ftr .field__msg.is-err { color: var(--copy-fail); }
.ftr__bottom { margin: var(--space-4) 0 0; font-size: 13px; line-height: 24px; }
.ftr__bottom a { color: var(--footer-text); text-decoration: underline; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
  .slide { grid-template-columns: 1fr; gap: var(--space-3); align-content: center; }
  .slide__text { max-width: 560px; }
  .feed-row, .article-row { grid-template-columns: 1fr; }
  .article-body { max-width: 600px; }
  .sidebar { max-width: 390px; }
  .article-row > .sidebar { max-width: 340px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 600px) {
  .hero-slider, .is-home .ad--lb { margin-top: 0; }
  .hero-slider { margin-top: var(--space-4); }
  .is-home .ad--lb { padding-top: var(--space-4); }
  .card { grid-template-columns: 1fr; gap: 12px; }
  .card__img { width: 100%; }
  .feed-row { margin-top: var(--space-5); }
  .article-hero { margin-top: var(--space-3); }
  .sidebar, .article-row > .sidebar { max-width: none; }
  .field, .field-row { width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .ftr__cols { gap: var(--space-5); }
  .slider-controls { flex-wrap: wrap; }
}

/* Prebid (trkrtb.com) containers: ids bannerHeader / bannerSideBar / bannerResize are set by the provider script. */
#bannerHeader, #bannerResize { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 100%; overflow: hidden; }
#bannerSideBar { width: 100%; max-width: 300px; overflow: hidden; }
.adslot--header { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 100%; padding: 8px var(--pad); }
.adslot--header #bannerHeader { min-height: 50px; }
.adslot__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* Live (Prebid) sidebar slot: the placeholder box becomes a minimum, the creative (300x250 / 300x600) sets the height. */
.ad.ad--live .ad__box { display: block; height: auto; min-height: 250px; padding: 0; }
.ad.ad--live .ad__box::before { content: none; }
@container (min-width: 760px) { .ad--inline-bottom.ad--live .ad__box { width: 300px; height: auto; min-height: 250px; } }
@media (min-width: 1080px) { .ad.ad--half.ad--live .ad__box { min-height: 600px; } }
