/* ═══════════════════════════════════════════════════════════════════════════
   Leadralia blog. Server-rendered pages (app/templates/blog) styled with the
   same Kompas tokens as the SPA (frontend/src/styles/tokens.css): warm paper
   canvas, forest-green accent, Gabarito display, Inter body, Noto Sans Arabic
   for the one RTL locale. Logical properties throughout so `dir="rtl"` just
   works. Light only, with the brand green as the ONE accent colour (owner
   decision 2026-09-21); red and amber survive only as state colours.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Gabarito'; font-style: normal; font-weight: 400; font-display: swap; src: url(/blog-assets/fonts/gabarito-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: 'Gabarito'; font-style: normal; font-weight: 700; font-display: swap; src: url(/blog-assets/fonts/gabarito-latin-700-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: 'Gabarito'; font-style: normal; font-weight: 800; font-display: swap; src: url(/blog-assets/fonts/gabarito-latin-800-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: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/blog-assets/fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/blog-assets/fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/blog-assets/fonts/inter-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/blog-assets/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/blog-assets/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/blog-assets/fonts/inter-latin-700-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: 'Noto Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/blog-assets/fonts/noto-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/blog-assets/fonts/noto-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ── Tokens (light) ─────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #F4F2EC;
  --bg-2: #EDEAE1;
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --surface-3: #F6F4EE;
  --border: #E4E7E0;
  --border-strong: #D3D8CD;
  --text-1: #12241C;
  --text-2: #3B4F46;
  --text-3: #6C7E75;
  --text-4: #93A29A;
  --text-inv: #F4F2EC;
  --brand: #0E7A57;
  --brand-600: #0B6A4B;
  --brand-ink: #0A5A40;
  --brand-soft: #D7EEE4;
  --brand-050: #EDF7F2;
  --amber: #8A5709;
  --amber-soft: #F8ECD4;
  --red: #B23B31;
  --red-soft: #FBEDEB;
  --shadow-sm: 0 1px 2px rgba(16, 36, 28, .05), 0 1px 3px rgba(16, 36, 28, .05);
  --shadow-md: 0 8px 24px -10px rgba(16, 36, 28, .18), 0 2px 6px -2px rgba(16, 36, 28, .08);
  --shadow-lg: 0 30px 70px -24px rgba(16, 36, 28, .32), 0 6px 16px -8px rgba(16, 36, 28, .14);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --font-sans: 'Inter', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Gabarito', 'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .36, 1);
  --wrap: 1180px;
  --narrow: 760px;
}


/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}
html[dir="rtl"] body { font-family: 'Noto Sans Arabic', var(--font-sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { letter-spacing: 0; font-family: 'Noto Sans Arabic', var(--font-display); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: var(--narrow); }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--brand); color: #fff; border-radius: var(--radius-xs); font-weight: 700; }
.skip:focus { top: 12px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-1); transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); white-space: nowrap; }
.btn:hover { border-color: var(--text-4); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgba(14, 122, 87, .40); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 16px; border-radius: 12px; }
.btn-ghost { background: transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); transition: background .15s var(--ease), color .15s var(--ease); }
.icon-btn:hover { background: var(--surface-3); color: var(--text-1); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.head-row { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; font-weight: 400; color: var(--text-1); }
.wordmark b { font-weight: 800; }
.head-nav { display: none; align-items: center; gap: 4px; margin-inline-start: 20px; }
.head-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .15s var(--ease); }
.head-nav a:hover { color: var(--text-1); }
.head-nav a[aria-current="page"] { color: var(--brand); }
.head-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.head-login { display: none; padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.head-login:hover { color: var(--text-1); }
.head-cta { margin-inline-start: 4px; }
@media (min-width: 640px) { .head-login { display: inline-flex; } }
@media (min-width: 900px) { .head-nav { display: flex; } }


/* Language menu: a native <details>, so it works without JavaScript. */
.menu { position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer; user-select: none; transition: background .15s var(--ease), color .15s var(--ease); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--surface-3); color: var(--text-1); }
.menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 60; }
.menu li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-1); }
.menu li a:hover { background: var(--surface-3); }
.menu li a[aria-current="true"] { color: var(--brand); font-weight: 700; background: var(--brand-050); }

/* ── Hero (index) ───────────────────────────────────────────────────────── */
.hero { padding-block: 56px 28px; border-bottom: 1px solid var(--border); }
.hero-title { font-size: clamp(40px, 7vw, 72px); font-weight: 800; }
.hero-sub { max-width: 560px; margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
@media (min-width: 768px) { .hero { padding-block: 80px 40px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 22px 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease); }
.chip:hover { border-color: var(--text-4); color: var(--text-1); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.listing { padding-block: 24px 40px; }
.section-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
html[dir="rtl"] .section-label { letter-spacing: 0; font-family: inherit; font-size: 13px; font-weight: 700; }
.featured-row { margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px; }
.card-cover { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--brand-050); border-bottom: 1px solid var(--border); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-cover img { transform: scale(1.03); }
.card { overflow: hidden; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.card-title { font-size: 21px; font-weight: 700; line-height: 1.25; }
.card-desc { color: var(--text-2); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-read { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--brand); }
.card-read .arrow { transition: transform .2s var(--ease); }
html[dir="rtl"] .card-read .arrow { transform: scaleX(-1); }
.card:hover .card-read .arrow { transform: translateX(3px); }
html[dir="rtl"] .card:hover .card-read .arrow { transform: scaleX(-1) translateX(3px); }

.card-featured .card-link { padding: 0; }
.card-featured .card-body { padding: 28px; }
@media (min-width: 900px) {
  .card-featured .card-link { flex-direction: row-reverse; }
  .card-featured .card-cover { flex: 0 0 48%; aspect-ratio: auto; border-bottom: 0; border-inline-start: 1px solid var(--border); }
  .card-featured .card-body { padding: 40px; justify-content: center; }
}
.card-featured .card-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; max-width: 22ch; }
.card-featured .card-desc { font-size: 17px; -webkit-line-clamp: 4; max-width: 70ch; }

.cat { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; background: var(--surface-3); color: var(--text-2); }
.cat-product { background: var(--brand-soft); color: var(--brand-ink); }
.cat-comparisons, .cat-guides, .cat-compliance, .cat-pricing { background: var(--brand-soft); color: var(--brand-ink); }
.cat-news { background: var(--surface-3); color: var(--text-2); }

.empty { padding: 60px 20px; text-align: center; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ── Article ────────────────────────────────────────────────────────────── */
.post-head { padding-block: 40px 28px; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .post-head { padding-block: 64px 36px; } }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text-1); }
.post-title { font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; max-width: 22ch; }
.post-lead { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 62ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.post-author { color: var(--text-1); font-weight: 600; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 36px 24px; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: minmax(0, var(--narrow)) 280px; column-gap: 64px; justify-content: space-between; padding-block: 48px 32px; } }

.side { display: flex; flex-direction: column; gap: 28px; order: -1; }
@media (min-width: 1000px) { .side { order: 0; position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; } }
.side-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
html[dir="rtl"] .side-label { letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--border); }
.toc li a { display: block; padding: 6px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; font-size: 14px; color: var(--text-2); line-height: 1.4; transition: color .15s var(--ease), border-color .15s var(--ease); }
.toc li a:hover { color: var(--text-1); }
.toc li a[aria-current] { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.side-langs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.side-langs a { display: inline-flex; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; color: var(--text-2); }
.side-langs a:hover { color: var(--text-1); border-color: var(--text-4); }
.copy-btn { align-self: flex-start; }
.copy-btn.is-done { color: var(--brand); border-color: var(--brand); }
@media (max-width: 999px) { .toc { display: none; } .side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; } }

/* ── Article cover ──────────────────────────────────────────────────────── */
.post-cover { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--brand-050); max-width: var(--narrow); }
.post-cover img { width: 100%; height: auto; display: block; }
@media (min-width: 1000px) { .post-cover { margin-top: 40px; } }

/* ── Figures inside articles ────────────────────────────────────────────── */
.prose .fig { margin: 2em 0 0; }
.prose .fig img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.prose .fig figcaption { margin-top: 10px; font-size: 14px; color: var(--text-3); text-align: center; }

/* ── Comparison marks (✓ ✗ ~ at the start of a cell) ────────────────────── */
.mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; vertical-align: middle; margin-inline-end: 8px; }
.mark-yes { background: var(--brand-soft); color: var(--brand); }
.mark-no { background: var(--surface-3); color: var(--text-3); }
.mark-partly { background: var(--brand-050); color: var(--text-2); }
.mark-text { vertical-align: middle; }
.prose td.cell-yes, .prose td.cell-no, .prose td.cell-partly { white-space: normal; }
.prose td.col-brand, .prose th.col-brand { background: var(--brand-050); }
.prose th.col-brand { color: var(--brand-ink); border-bottom-color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.prose tbody tr:hover td.col-brand { background: var(--brand-soft); }

/* ── Callouts: a blockquote whose first line is bold ────────────────────── */
.prose blockquote:has(> p:first-child > strong:first-child) { border-inline-start: 0; padding: 18px 22px; background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--radius-sm); color: var(--text-1); font-size: 16px; }
.prose blockquote:has(> p:first-child > strong:first-child) strong:first-child { color: var(--brand-ink); }

/* ── Prose (the rendered Markdown) ──────────────────────────────────────── */
.prose { font-size: 17px; line-height: 1.75; color: var(--text-1); min-width: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-top: 2.2em; padding-top: .2em; }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.8em; }
.prose h4 { font-size: 17px; font-weight: 700; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose p { margin-top: 1.25em; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-top: .45em; }
.prose li::marker { color: var(--text-3); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-inline-start: 3px solid var(--brand); color: var(--text-2); font-size: 18px; }
html[dir="rtl"] .prose blockquote { padding: 4px 20px 4px 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.5em; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.prose pre { overflow-x: auto; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--border); }

.table-wrap { overflow-x: auto; margin-top: 1.5em; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--surface-2); font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--text-1); border-bottom: 1px solid var(--border-strong); position: sticky; top: 0; }
html[dir="rtl"] .prose thead th { font-family: inherit; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody td:first-child { font-weight: 600; color: var(--text-1); min-width: 150px; }
.prose tbody tr:hover td { background: var(--surface-2); }

/* ── Call to action ─────────────────────────────────────────────────────── */
.cta { display: flex; flex-direction: column; gap: 22px; margin-block: 40px; padding: 32px; border-radius: var(--radius-lg); background: var(--brand-050); color: var(--text-1); border: 1px solid var(--brand-soft); box-shadow: var(--shadow-md); }
.cta h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; max-width: 26ch; }
.cta p { margin-top: 10px; font-size: 16px; opacity: .8; max-width: 60ch; }
@media (min-width: 900px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 48px; margin-block: 56px; } .cta .btn { flex-shrink: 0; } }

.related { padding-block: 8px 56px; }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.nf { padding-block: 80px 96px; }
.nf .code { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 4px 10px; margin-bottom: 18px; }
.nf-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--border); padding-block: 36px 40px; margin-top: 24px; background: var(--bg-2); }
.foot-row { display: grid; gap: 20px; }
.foot-note { margin-top: 12px; font-size: 13px; color: var(--text-3); max-width: 40ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.foot-links a:hover { color: var(--text-1); }
.foot-rss { display: inline-flex; align-items: center; gap: 6px; }
.foot-copy { font-size: 13px; color: var(--text-4); }
@media (min-width: 768px) { .foot-row { grid-template-columns: 1fr auto; align-items: start; } .foot-copy { grid-column: 1 / -1; } }
