/* NetMagen blog — Daylight port. /blog-assets/blog.css?v=<filemtime>
   Mobile-first, LOGICAL PROPERTIES ONLY (Hebrew is RTL). Verify with:
     node scripts/guards/no-physical-css.mjs blog-app/public/assets
   (a) tokens, (b) fonts, (c) primitives are COPIED from src/styles/*, never
   reinvented; then (d) chrome ports, (e) blog components, (f) print.
   (a) is SYNCED FROM src/styles/tokens.css — that file is the source of
   truth (no shared runtime); keep it byte-identical, change both at once. */
:root {
  /* ── Daylight surfaces — bright, cool, engineered. Never pure #FFF page. ── */
  --paper:      #F6F8F9;  /* page canvas */
  --card:       #FFFFFF;  /* cards, panels */
  --tint:       #EAF1F6;  /* alternating section fill */
  --tint-brand: #E7F0FA;  /* chips, badges, icon wells */
  --line:       #D8E1E8;  /* hairlines, borders */

  /* ── Ink ── */
  --ink:        #101F33;  /* 15.4:1 on --paper */
  --ink-2:      #4E6377;  /*  5.5:1 on --paper/--card/--tint — body-safe */

  /* ── Brand — engineering blue. One accent, used with intent. ── */
  --brand:        #0B5CAB;  /* 6.3:1 on --paper as text; white on it 6.7:1 */
  --brand-strong: #084785;  /* hover / pressed */
  --accent:       #0E7C72;  /* software & zero-trust highlights; 5.1:1 with white */

  /* ── Dark anchor — footer and final CTA band only. ── */
  --navy:       #101F33;
  --navy-2:     #1A2C46;  /* raised panel on navy */
  --on-navy:    #FFFFFF;
  --on-navy-2:  #A8B8C8;  /* secondary text on navy, 8.1:1 */
  --line-navy:  #2A3D58;  /* hairlines on navy — non-text */

  /* ── Status — desaturated, rare ── */
  --ok:         #1D7A4C;
  --alert:      #C43D3D;

  /* ── Motion — one easing family. ── */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:   180ms;
  --dur:        420ms;
  --dur-slow:   900ms;

  /* ── Type ── */
  --font-sans:  'IBM Plex Sans', 'IBM Plex Sans Hebrew', system-ui, sans-serif;
  /* IBM Plex Mono has NO Hebrew coverage. Mono is reserved for
     locale-independent technical microlabels (digits, "24/7", indices);
     the Hebrew face in the stack catches any stray Hebrew glyph. */
  --font-mono:  'IBM Plex Mono', 'IBM Plex Sans Hebrew', ui-monospace, monospace;

  --step--1:    clamp(0.83rem, 0.80rem + 0.15vw, 0.94rem);
  --step-0:     clamp(1.06rem, 1.02rem + 0.20vw, 1.19rem);
  --step-1:     clamp(1.30rem, 1.22rem + 0.40vw, 1.60rem);
  --step-2:     clamp(1.60rem, 1.45rem + 0.75vw, 2.15rem);
  --step-3:     clamp(1.95rem, 1.70rem + 1.25vw, 2.85rem);
  --step-4:     clamp(2.35rem, 1.95rem + 2.00vw, 3.80rem);
  --step-5:     clamp(2.80rem, 2.20rem + 3.00vw, 5.10rem);

  --tracking-display: -0.03em;
  --tracking-mono:     0.08em;

  /* ── Space ── */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    1rem;
  --space-4:    1.5rem;
  --space-5:    2.5rem;
  --space-6:    4rem;
  --space-7:    6.5rem;
  --space-8:    9rem;

  --measure:    62ch;
  --container:  72rem;

  --radius:     14px;  /* cards, panels */
  --radius-s:   8px;   /* chips, inputs */
  --radius-pill: 999px;

  --shadow-lift: 0 12px 32px -12px rgb(16 31 51 / 0.18);
}

/* Hebrew has no uppercase and a different vertical rhythm. */
:root[lang='he'] {
  --step-0: clamp(1.10rem, 1.06rem + 0.20vw, 1.24rem);
  --line-body: 1.7;
}

/* Blog-only — the site has no reading rail, so NOT part of the synced set. */
:root { --hdr-h: 4.6rem; --rail: 15rem; --tr: var(--dur-fast) var(--ease); }

/* (b) fonts — copied from global.css. /fonts/ is the site's own, same origin. */
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('/fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2') format('woff2');
  unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('/fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2') format('woff2');
  unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* (c) primitives — copied from src/styles/global.css */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* global.css sets this then unsets it under reduced-motion; same result. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--step-0);
  line-height: var(--line-body, 1.65);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-block-size: 100dvh;
}
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: var(--tracking-display); text-wrap: balance; }
p { max-inline-size: var(--measure); text-wrap: pretty; }
img, svg, video { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; }
button { font: inherit; }

.container { inline-size: min(100% - 2 * var(--space-4), var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-7); }
.section--tint { background: var(--tint); }

/* THE MICROLABEL VOICE — one rule for every technical label on the page:
   eyebrows, breadcrumbs, dates, counts, section titles, chips. */
.mono, .eyebrow, .chip, .breadcrumbs a, .breadcrumbs li::before, .card-cat, .meta, .pagination-count,
.toc-title, .tags-label, .pn-dir, .ftr-sla, .ftr-col-title, .takeaways h2,
.tldr-label, .prose blockquote cite {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--step--1);
  letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--ink-2);
}
.eyebrow, .pn-dir, .takeaways h2, .tldr-label { color: var(--brand); }
.chip, .card-cat { color: var(--brand-strong); }
.ftr-sla, .ftr-col-title { color: var(--on-navy-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding-block: 0.8rem; padding-inline: 1.6rem;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 600; font-size: var(--step-0); text-decoration: none; cursor: pointer;
  transition: background var(--tr), border-color var(--tr), color var(--tr), transform var(--tr);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #FFFFFF; }
.btn--primary:hover { background: var(--brand-strong); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #FFFFFF; color: var(--navy); }
.btn--light:hover { background: var(--tint-brand); }
.btn--outline-light { border-color: var(--line-navy); color: var(--on-navy); background: transparent; }
.btn--outline-light:hover { border-color: var(--on-navy); }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding-block: 0.35rem; padding-inline: 0.8rem;
  border-radius: var(--radius-pill); background: var(--tint-brand);
}

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

.skip-link {
  position: absolute; inset-block-start: -100%; inset-inline-start: var(--space-3); z-index: 100;
  padding-block: var(--space-2); padding-inline: var(--space-3);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-s);
}
.skip-link:focus { inset-block-start: var(--space-3); }

/* Scroll reveal. The hidden state exists ONLY when scripting is available, so
   no-JS visitors see everything at once; reduced-motion kills it too. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; translate: 0 18px;
    transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);
  }
  .reveal.in { opacity: 1; translate: 0 0; }
}

/* Load sequence — completes with or without JS; reduced-motion kills it. */
.rise { animation: rise var(--dur-slow) var(--ease) both; }
.d1 { animation-delay: 90ms; } .d2 { animation-delay: 180ms; }
.d3 { animation-delay: 270ms; } .d4 { animation-delay: 360ms; }
@keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  /* Delays zeroed too: a stagger delay with a ~0ms duration still pops in. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* (d) chrome ports */

/* Isolines — signature motif: decorative, stroke-only, behind content. Budget
   is the header band + the CTA band per page. Do not scatter it. */
.isolines { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }

/* Header.astro — 1:1 port incl. the mobile menu sheet (parity 2026-08-09). */
.hdr {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
}
.hdr-inner { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-3); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--brand); display: inline-flex; }
.wordmark { font-weight: 600; letter-spacing: -0.03em; font-size: var(--step-1); }

/* Panel wrapper is a no-op everywhere except mobile+JS. */
.hdr-panel { display: contents; }

.nav { display: flex; gap: var(--space-4); margin-inline-start: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; transition: color var(--tr); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--brand); }
.end { display: flex; align-items: center; gap: var(--space-3); }
.hdr-cta { padding-block: 0.55rem; padding-inline: 1.15rem; white-space: nowrap; }

.menu-btn, .hdr-scrim, .hdr-cta-mini { display: none; }

/* Mobile WITHOUT scripting (and browsers too old for the `scripting` media
   query): the old wrap layout — every link visible, no disclosure.
   NO `order`, DELIBERATELY — it changes paint order but never tab order
   (WCAG 2.4.3). */
@media (max-width: 48rem) {
  .hdr-inner { flex-wrap: wrap; row-gap: var(--space-2); }
  .brand { flex: 0 0 auto; }
  .nav {
    flex: 1 0 100%; justify-content: flex-start; gap: var(--space-4);
    margin-inline-start: 0; padding-block-start: var(--space-2);
    border-block-start: 1px solid var(--line);
  }
  .end { flex: 1 0 100%; justify-content: space-between; padding-block-end: var(--space-1); }
}

/* Mobile WITH scripting: compact bar + slide-down sheet. */
@media (max-width: 48rem) and (scripting: enabled) {
  .hdr-inner { flex-wrap: nowrap; row-gap: 0; gap: var(--space-3); }

  .hdr-cta-mini {
    display: inline-flex; margin-inline-start: auto;
    padding-block: 0.45rem; padding-inline: 0.95rem;
    font-size: var(--step--1); line-height: 1.2; /* he line-height would grow the bar */
    white-space: nowrap;
  }

  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    inline-size: 44px; block-size: 44px; flex: none;
    margin-block: -0.35rem; /* 44px tap target without growing the ~60px bar */
    border: 0; background: transparent; color: var(--ink); cursor: pointer;
    border-radius: var(--radius-s);
  }
  .menu-glyph { position: relative; inline-size: 20px; block-size: 14px; display: block; }
  .menu-glyph i {
    position: absolute; inset-inline: 0; block-size: 2px; border-radius: 2px;
    background: currentColor;
    transition: translate var(--tr), rotate var(--tr);
  }
  .menu-glyph i:first-child { inset-block-start: 2px; }
  .menu-glyph i:last-child { inset-block-end: 2px; }
  .menu-open .menu-glyph i:first-child { translate: 0 4px; rotate: 45deg; }
  .menu-open .menu-glyph i:last-child { translate: 0 -4px; rotate: -45deg; }

  .hdr-panel {
    display: block; position: absolute;
    inset-block-start: 100%; inset-inline: 0;
    background: var(--paper); border-block-end: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding-block: var(--space-3) var(--space-4);
    max-block-size: calc(100dvh - 100% - var(--space-3));
    overflow: auto;
    visibility: hidden; opacity: 0; translate: 0 -10px;
    transition: opacity var(--tr), translate var(--tr), visibility 0s linear var(--dur-fast);
  }
  .menu-open .hdr-panel {
    visibility: visible; opacity: 1; translate: 0 0;
    transition: opacity var(--tr), translate var(--tr);
  }

  .nav {
    /* Definite 1fr track, NOT auto: percentage-width links inside an
       auto-sized track resolve cyclically (Hebrew labels wrapped mid-word). */
    display: grid; grid-template-columns: 1fr; gap: 0; margin-inline-start: 0;
  }
  .nav a {
    display: block; padding-block: var(--space-3); padding-inline: var(--space-4);
    font-size: var(--step-1); font-weight: 600; color: var(--ink);
    border-block-end: 1px solid var(--line);
  }
  .nav a:last-child { border-block-end: 0; }
  /* Staggered rise, only while opening; the global reduced-motion block
     already nukes it. */
  .menu-open .nav a { animation: menu-rise var(--dur) var(--ease) backwards; }
  .menu-open .nav a:nth-child(1) { animation-delay: 30ms; }
  .menu-open .nav a:nth-child(2) { animation-delay: 70ms; }
  .menu-open .nav a:nth-child(3) { animation-delay: 110ms; }
  .menu-open .nav a:nth-child(4) { animation-delay: 150ms; }

  .end {
    inline-size: min(100% - 2 * var(--space-4), var(--container));
    margin-inline: auto; padding-block-start: var(--space-4);
    display: grid; gap: var(--space-3); justify-items: stretch;
  }
  .end .locales { justify-content: center; }
  .hdr-cta { inline-size: 100%; padding-block: 0.8rem; }

  .hdr-scrim {
    display: block; position: fixed; inset: 0;
    z-index: -1; /* under .hdr's own children, over the page */
    background: color-mix(in srgb, var(--ink) 32%, transparent);
    opacity: 0; pointer-events: none;
    transition: opacity var(--tr);
  }
  .menu-open .hdr-scrim { opacity: 1; pointer-events: auto; }
}

/* The Hebrew quote label cannot fit beside brand + burger under 23rem. */
@media (max-width: 23rem) {
  .hdr-cta-mini { display: none; }
  .menu-btn { margin-inline-start: auto; }
}

@keyframes menu-rise {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

html.menu-locked { overflow: hidden; }

/* LocaleSwitcher.astro — labels stay in the TARGET language's own script. */
.locales { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card); }
.locale {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.04em;
  color: var(--ink-2); text-decoration: none;
  padding-block: 0.2rem; padding-inline: 0.55rem; border-radius: var(--radius-pill);
  transition: color var(--tr), background var(--tr);
}
.locale:hover { color: var(--ink); background: var(--tint); }
.locale[aria-current='true'] { color: #FFFFFF; background: var(--brand); }

/* CtaBand.astro */
.band { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding-block: var(--space-7); }
.band-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.band-copy { display: grid; gap: var(--space-3); }
.band-copy h2 { font-size: var(--step-3); }
.band-copy p { color: var(--on-navy-2); font-size: var(--step-1); }
.band-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Footer.astro */
.ftr { background: var(--navy); color: var(--on-navy); padding-block: var(--space-6) var(--space-5); }
.ftr-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-5); }
.ftr-col { display: grid; gap: var(--space-2); align-content: start; justify-items: start; }
.ftr-brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.03em; }
.ftr-tagline, .ftr-addr { color: var(--on-navy-2); }
.ftr-col-title { margin-block-end: var(--space-1); }
.ftr-col a { color: var(--on-navy); text-decoration: none; transition: color var(--tr); }
.ftr-col a:hover { color: var(--on-navy-2); text-decoration: underline; text-underline-offset: 4px; }
.ftr-legal {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  margin-block-start: var(--space-6); padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--line-navy); color: var(--on-navy-2); font-size: var(--step--1);
}
@media (max-width: 64rem) { .ftr-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .ftr-cols { grid-template-columns: 1fr; } }

/* (e) blog components */

/* Page-opening band: eyebrow → H1 → lede over a quiet isoline field. Same
   shape on index, category, tag, 404 and the article. */
.band-head {
  position: relative; overflow: hidden;
  background: var(--tint); border-block-end: 1px solid var(--line);
  padding-block: var(--space-6) var(--space-5);
}
.band-head .isolines { opacity: 0.75; }
.band-head-inner, .article-head-inner, .notfound { position: relative; display: grid; justify-items: start; }
.band-head-inner, .notfound { gap: var(--space-3); }
.band-head h1, .notfound h1, .article-head-inner h1 { font-size: var(--step-4); }
.lede { color: var(--ink-2); font-size: var(--step-1); }

/* Breadcrumbs — a path, so it reads as one line of mono microlabels. */
.breadcrumbs { margin-block-end: var(--space-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: baseline; gap: var(--space-2); }
.breadcrumbs li + li::before { content: '/'; color: var(--line); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
/* The current crumb is a title: prose. */
.breadcrumbs [aria-current='page'] { color: var(--ink); font-size: var(--step--1); max-inline-size: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Category chip rail */
.rail { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; }
.rail-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding-block: 0.4rem; padding-inline: 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--card); color: var(--ink-2);
  font-size: var(--step--1); font-weight: 500; text-decoration: none;
  transition: border-color var(--tr), color var(--tr), background var(--tr);
}
.rail-chip:hover { border-color: var(--brand); color: var(--brand); }
.rail-chip[aria-current='page'] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.rail-n { font-family: var(--font-mono); font-size: 0.78em; letter-spacing: var(--tracking-mono); color: var(--brand); }
.rail-chip[aria-current='page'] .rail-n { color: var(--tint-brand); }

/* Card idiom — border → hover-lift, as the site's .env-card. */
.card, .featured, .pn {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.card, .featured { display: grid; align-content: start; }
.card { grid-template-rows: auto 1fr; }
.card:hover, .pn:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.featured:hover { border-color: var(--brand); box-shadow: var(--shadow-lift); }
.card:focus-within, .featured:focus-within { border-color: var(--brand); }
.card-media { display: block; background: var(--tint); }
.card-media img { aspect-ratio: 16 / 10; object-fit: cover; inline-size: 100%; }
/* No-image variant: a tinted panel with the brand mark, so an art-less card
   still reads as a card rather than as a bug. */
.card-blank {
  display: grid; place-items: center; aspect-ratio: 16 / 10;
  background: var(--tint); border-block-end: 1px solid var(--line);
  color: var(--brand); opacity: 0.4;
}
.card-body { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); }
.card-cat { position: relative; z-index: 1; justify-self: start; text-decoration: none; }
.card-cat:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.card-title { font-size: var(--step-1); }
.card-title a, .featured-title a { text-decoration: none; }
/* The whole card is the target: the title link stretches over it, leaving
   the category link independently clickable. */
.card-title a::after, .featured-title a::after { content: ''; position: absolute; inset: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-tldr { color: var(--ink-2); font-size: var(--step--1); max-inline-size: none; }
.meta, .article-meta, .pagination-count, .empty { max-inline-size: none; }
.meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); margin-block-start: var(--space-1); }
.meta-sep { color: var(--line); }

/* Featured — the latest article, at a width the grid cards do not get. */
.featured .card-media img, .featured .card-blank { aspect-ratio: 4 / 3; block-size: 100%; }
.featured .card-blank { border-block-end: none; }
.featured-body { display: grid; gap: var(--space-3); align-content: center; padding: var(--space-5); }
.featured-title { font-size: var(--step-2); }
.featured .card-tldr { font-size: var(--step-0); }
.read-more { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2); color: var(--brand); font-weight: 600; text-decoration: none; }
.featured:hover .read-more .arrow { translate: 4px 0; }
[dir='rtl'] .featured:hover .read-more .arrow { translate: -4px 0; }

.card-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.listing { display: grid; gap: var(--space-5); }

/* Pagination */
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-block-start: var(--space-5);
  padding-block-start: var(--space-4); border-block-start: 1px solid var(--line);
}
.pagination-links { display: flex; gap: var(--space-2); }
.page-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding-block: 0.5rem; padding-inline: var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--card); color: var(--ink);
  font-weight: 600; font-size: var(--step--1); text-decoration: none;
  transition: border-color var(--tr), color var(--tr);
}
.page-link:hover { border-color: var(--brand); color: var(--brand); }

/* The arrow glyph is direction-bearing content, so it mirrors under RTL. */
.arrow { display: inline-block; transition: translate var(--tr); }
[dir='rtl'] .arrow { rotate: 180deg; }

/* Article */
.article-head-inner { gap: var(--space-4); }
.article-head-inner h1 { max-inline-size: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
/* --tint-brand on the --tint band is a 4-value difference: the chip loses its
   pill entirely. On the band it borrows the card surface instead. */
.band-head .chip { background: var(--card); }
.article-meta .chip { text-decoration: none; }
.article-meta .chip:hover { background: var(--brand); color: #FFFFFF; }

/* TL;DR — brand hairline on the start edge. The article's promise, so it
   sits above the hero. */
.tldr {
  display: grid; gap: var(--space-2); inline-size: 100%; max-inline-size: var(--measure);
  padding-block: var(--space-4); padding-inline: var(--space-4);
  background: var(--card); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--brand);
  border-start-end-radius: var(--radius); border-end-end-radius: var(--radius);
}
.tldr p, .faq-answer p { max-inline-size: none; }

.article-hero { inline-size: 100%; }
.article-hero img { inline-size: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.article-hero figcaption, .prose figcaption { margin-block-start: var(--space-2); color: var(--ink-2); font-size: var(--step--1); }

.article-body { padding-block: var(--space-6); }
/* minmax(0,…) so a wide table scrolls inside .prose-table instead of
   stretching the grid track, and the page, with it. */
.article-grid { display: grid; gap: var(--space-5); align-items: start; grid-template-columns: minmax(0, 1fr); }
.article-col { min-inline-size: 0; }

/* Mobile TOC: a disclosure, closed by default, zero JS. */
.toc-mobile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding-inline: var(--space-4); }
.toc-mobile > summary, .faq summary {
  cursor: pointer; font-weight: 600; padding-block: var(--space-3);
  list-style: none; position: relative; padding-inline-end: var(--space-5);
}
.toc-mobile > summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
/* Disclosure chevron: two borders rotated into an arrowhead. */
.toc-mobile > summary::after, .faq summary::after {
  content: ''; position: absolute;
  inset-inline-end: 0.2rem; inset-block-start: calc(var(--space-3) + 0.4em);
  inline-size: 0.5rem; block-size: 0.5rem;
  border-inline-end: 2px solid var(--brand); border-block-end: 2px solid var(--brand);
  rotate: 45deg; transition: rotate var(--tr);
}
.toc-mobile[open] > summary::after, .faq[open] summary::after { rotate: 225deg; }
.toc-mobile .toc-list { padding-block-end: var(--space-3); }

.toc-rail { display: none; }
.toc-title { margin-block-end: var(--space-3); }
.toc-list { display: grid; gap: 1px; padding: 0; list-style: none; }
.toc-list a {
  display: block; padding-block: 0.35rem; padding-inline-start: var(--space-3);
  border-inline-start: 2px solid var(--line);
  color: var(--ink-2); font-size: var(--step--1); line-height: 1.35; text-decoration: none;
  transition: color var(--tr), border-color var(--tr);
}
.toc-list a:hover { color: var(--brand); border-inline-start-color: var(--brand); }
/* Scroll-spy state: the rail hairline IS the reading position — the site's
   accent-edge idiom, reused. */
.toc-list a[aria-current='true'] { color: var(--brand); font-weight: 600; border-inline-start-color: var(--brand); }
.toc-3 a { padding-inline-start: var(--space-4); }

/* Prose */
.prose { max-inline-size: var(--measure); }
.prose > * + * { margin-block-start: var(--space-3); }
/* Anchor jumps must clear the sticky header. */
.prose h2, .prose h3 { scroll-margin-block-start: calc(var(--hdr-h) + var(--space-3)); }
.prose h2 {
  font-size: var(--step-2); margin-block-start: var(--space-6);
  padding-block-start: var(--space-3); border-block-start: 1px solid var(--line);
}
.prose h3 { font-size: var(--step-1); margin-block-start: var(--space-5); }
.prose a {
  color: var(--brand); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  transition: text-decoration-color var(--tr);
}
.prose a:hover { text-decoration-color: var(--brand); }
.prose ul, .prose ol { display: grid; gap: var(--space-2); padding-inline-start: var(--space-4); }
.prose li::marker { color: var(--brand); }
.prose code {
  font-family: var(--font-mono); font-size: 0.88em;
  padding-block: 0.1em; padding-inline: 0.35em; border-radius: 5px;
  background: var(--tint-brand); color: var(--brand-strong);
}

/* Tables can outgrow the measure, so each gets its own scroll context and
   the page body never scrolls sideways. */
.prose-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.prose table { inline-size: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose thead { background: var(--tint); }
.prose th, .prose td { padding-block: var(--space-2); padding-inline: var(--space-3); text-align: start; vertical-align: top; white-space: nowrap; }
.prose th { font-weight: 600; color: var(--ink); }
.prose tbody tr + tr td { border-block-start: 1px solid var(--line); }

.prose .tip {
  padding-block: var(--space-3); padding-inline: var(--space-4);
  background: color-mix(in srgb, var(--accent) 7%, var(--card));
  border-inline-start: 3px solid var(--accent);
  border-start-end-radius: var(--radius-s); border-end-end-radius: var(--radius-s);
}
.prose blockquote {
  display: grid; gap: var(--space-2);
  padding-inline-start: var(--space-4); border-inline-start: 3px solid var(--line);
  font-size: var(--step-1); line-height: 1.4;
}
.prose blockquote cite { font-style: normal; }
.prose figure { display: grid; gap: var(--space-2); }
.prose figure img { inline-size: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

/* Key takeaways — the article compressed to its checkable claims. Static
   ticks, drawn with the quote wizard's tick path. */
.takeaways {
  display: grid; gap: var(--space-3); margin-block-start: var(--space-6); padding: var(--space-5);
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius); max-inline-size: var(--measure);
}
.takeaways ul { display: grid; gap: var(--space-3); padding: 0; list-style: none; }
.takeaways li { display: flex; align-items: start; gap: var(--space-3); }
.tick {
  flex: none; inline-size: 1.35rem; block-size: 1.35rem; padding: 0.28rem;
  border-radius: 6px; background: var(--brand); color: #FFFFFF; translate: 0 0.15em;
}

/* FAQ — native disclosure, zero JS. */
.faq-section { display: grid; gap: var(--space-3); margin-block-start: var(--space-6); max-inline-size: var(--measure); }
.faq-section > h2, .related > h2 { font-size: var(--step-2); }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding-inline: var(--space-4); }
.faq-answer { color: var(--ink-2); padding-block-end: var(--space-3); }

.tags-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-block-start: var(--space-6); }
.tags-label { margin-inline-end: var(--space-1); }
.tags-row ul { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; }

.related { display: grid; gap: var(--space-4); }
.prev-next ul { display: grid; gap: var(--space-3); padding: 0; list-style: none; grid-template-columns: 1fr; }
.pn { display: grid; gap: var(--space-1); padding: var(--space-4); }
.pn-dir { display: inline-flex; align-items: center; gap: var(--space-2); }
.pn-next { justify-items: end; text-align: end; }
.pn-next .pn-dir { flex-direction: row-reverse; }
.pn-title { font-weight: 600; }
.pn:hover .arrow { translate: -4px 0; }
.pn-next:hover .arrow { translate: 4px 0; }
[dir='rtl'] .pn:hover .arrow { translate: 4px 0; }
[dir='rtl'] .pn-next:hover .arrow { translate: -4px 0; }

.empty { padding: var(--space-5); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.intro { color: var(--ink-2); max-inline-size: var(--measure); }
.intro a { color: var(--brand); }

@media (min-width: 60rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .featured { grid-template-columns: 1.05fr 1fr; }
  .featured .card-media { block-size: 100%; }
  .prev-next ul { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--space-6); }
  .toc-mobile { display: none; }
  .toc-rail {
    display: block; position: sticky;
    inset-block-start: calc(var(--hdr-h) + var(--space-3));
    max-block-size: calc(100dvh - var(--hdr-h) - var(--space-5));
    overflow-y: auto; padding-inline-end: var(--space-2);
  }
}
@media (max-width: 40rem) {
  .featured-body { padding: var(--space-4); }
  .article-head-inner h1 { max-inline-size: none; }
}

/* (f) print */
@media print {
  .hdr, .ftr, .band, .toc-rail, .toc-mobile, .locales, .pagination,
  .prev-next, .related, .rail, .skip-link, .isolines,
  .faq summary::after { display: none !important; }
  html, body { background: #FFFFFF; color: #000000; }
  body { font-size: 11pt; line-height: 1.45; }
  /* Paper never scrolls; transition:none stops it animating. */
  .reveal { opacity: 1 !important; translate: none !important; transition: none; }
  .band-head { background: transparent; border-block-end: 1px solid #000000; padding-block: 0 1rem; }
  .article-body, .section { padding-block: 1rem; }
  .prose, .tldr, .takeaways, .faq-section { max-inline-size: none; }
  .prose a { color: #000000; text-decoration: underline; }
  .prose a::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #333333; }
  .tldr, .takeaways, .faq, .prose-table { background: transparent; border-color: #000000; }
  .faq-answer { display: block !important; }
  .card, .featured { break-inside: avoid; }
  .prose h2, .prose h3 { break-after: avoid; }
}
