/* ============================================================
   forex-podstawy.pl — production stylesheet
   Wariant H+ · paper scheme · EEAT/YMYL/SEO/engagement
   ============================================================ */

/* -- Design tokens -------------------------------------------- */
:root {
  /* Color — paper scheme */
  --bg:           #FBF8F1;
  --bg-list:      #F4F0E5;
  --bg-article:   #FEFCF6;
  --bg-chip:      #EFE8D6;
  --bg-verified:  #E8F0E3;
  --bg-soft:      #F7F2E5;

  --ink:          #1A1814;
  --ink-soft:     #5C5446;
  --ink-dim:      #8A8273;

  --rule:         #D9CFB7;
  --rule-soft:    #E8DFC4;

  --accent:       #B5533A;
  --accent-soft:  #EFD7C6;

  --green:        #3C7A4F;
  --red:          #A83B2A;
  --amber:        #A6722E;

  /* Type */
  --font-display: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container:    1280px;
  --gutter:       24px;
  --header-h:     64px;

  /* Motion */
  --t-fast:       120ms ease-out;
  --t-med:        220ms ease-out;
}

/* -- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); transition: border-color var(--t-fast); }
a:hover { border-bottom-color: var(--accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}

/* -- Utility -------------------------------------------------- */
.caps {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink-soft);
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 100;
}
.skip-link:focus { top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* -- Reading progress (article only) -------------------------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 50;
  transition: width 80ms linear;
}

/* -- Header --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--bg-article);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.05);
}
.site-header .row {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0;
  color: var(--ink);
}
.brand:hover { border-bottom: 0; }
.brand-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 19px;
  border-radius: 4px;
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-text .domain {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.brand-text .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
}
.site-nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 0;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--ink); border-bottom: 0; }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.lang-toggle {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 7px 11px;
  font-size: 13px;
  color: var(--ink-soft);
  min-width: 240px;
}
.search-trigger:hover { border-color: var(--ink-dim); }

/* -- Hero (homepage) ------------------------------------------ */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, var(--bg-soft), var(--bg) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lede {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-article);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}
.btn:hover { background: #000; border-bottom: 1px solid #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-chip); border-bottom: 1px solid var(--ink); }
.hero-meta {
  border: 1px solid var(--rule);
  background: var(--bg-article);
  padding: 22px;
  border-radius: 4px;
}
.hero-meta dl {
  margin: 0;
  display: grid;
  gap: 14px;
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 2px;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.hero-meta dd small {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
}

/* -- Section heading ------------------------------------------ */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  font-size: 28px;
  font-weight: 600;
}
.section-head .small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* -- Popular questions list ---------------------------------- */
.q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.q-list li {
  border-bottom: 1px solid var(--rule);
}
.q-list li:nth-child(odd) {
  border-inline-end: 1px solid var(--rule);
}
.q-list a {
  display: block;
  padding: 16px 18px 16px 0;
  border-bottom: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.35;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.q-list li:nth-child(odd) a { padding-inline-end: 24px; }
.q-list li:nth-child(even) a { padding-inline-start: 24px; }
.q-list a:hover { color: var(--accent); background: var(--bg-soft); }
.q-list a .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-dim);
  margin-inline-end: 12px;
  letter-spacing: 0.08em;
}
.q-list a:hover .num { color: var(--accent); }

/* -- Categories grid ----------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cat-card {
  background: var(--bg-article);
  padding: 24px;
  border-bottom: 0;
  color: var(--ink);
  display: block;
  transition: background var(--t-fast);
}
.cat-card:hover { background: var(--bg-soft); border-bottom: 0; }
.cat-card .cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.cat-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.cat-card .desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* -- Latest answers ------------------------------------------ */
.latest {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.latest-card {
  display: block;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
  border-bottom: 0;
  color: var(--ink);
}
.latest-card:hover { border-bottom: 0; }
.latest-card:hover h3 { color: var(--accent); }
.latest-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.latest-card h3 {
  font-size: 18px;
  line-height: 1.3;
  transition: color var(--t-fast);
}

/* -- Topical cluster (homepage SEO) -------------------------- */
.cluster {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  padding: 32px;
  border-radius: 4px;
}
.cluster-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.cluster-head h2 { font-size: 24px; }
.cluster-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-article);
  border: 1px solid var(--amber);
  border-inline-start: 4px solid var(--amber);
  border-radius: 3px;
  margin-bottom: 18px;
}
.cluster-pillar .pill-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
}
.cluster-pillar a {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 0;
}
.cluster-pillar a:hover { color: var(--accent); }
.cluster-children {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}
.cluster-children li {
  font-family: var(--font-body);
  font-size: 15px;
}
.cluster-children li::before {
  content: '└─ ';
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 11px;
  margin-inline-end: 4px;
}
.cluster-children a { border-bottom: 0; color: var(--ink); }
.cluster-children a:hover { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* -- Newsletter --------------------------------------------- */
.newsletter {
  background: var(--ink);
  color: var(--bg-article);
  padding: 48px;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}
.newsletter h2 {
  color: var(--bg-article);
  font-size: 30px;
  margin-bottom: 10px;
}
.newsletter p {
  color: color-mix(in srgb, var(--bg-article) 75%, transparent);
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
}
.newsletter form {
  display: flex;
  gap: 8px;
}
.newsletter input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--bg-article) 30%, transparent);
  background: transparent;
  color: var(--bg-article);
  font-family: var(--font-ui);
  font-size: 14px;
  border-radius: 4px;
  outline: none;
}
.newsletter input::placeholder { color: color-mix(in srgb, var(--bg-article) 50%, transparent); }
.newsletter input:focus { border-color: var(--bg-article); }
.newsletter button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}
.newsletter button:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.newsletter small {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--bg-article) 55%, transparent);
}

/* -- Footer ------------------------------------------------- */
.site-footer {
  background: var(--bg-list);
  border-top: 1px solid var(--rule);
  padding: 56px 0 32px;
  font-size: 14px;
}
.footer-disclaimer {
  background: var(--bg-article);
  border: 1px solid var(--amber);
  border-inline-start: 4px solid var(--amber);
  padding: 16px 20px;
  border-radius: 3px;
  margin-bottom: 40px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.footer-disclaimer strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .domain {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-brand .tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--ink);
  border-bottom: 0;
  font-family: var(--font-body);
  font-size: 15px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.footer-bottom a { color: var(--ink-dim); border-bottom: 0; }
.footer-bottom a:hover { color: var(--ink); }

/* ========================================================
   ARTICLE PAGE
   ======================================================== */

.article-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 280px;
  gap: 48px;
  padding: 40px 0 80px;
  align-items: start;
}

/* TOC sidebar */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-family: var(--font-ui);
  font-size: 13px;
}
.toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin-bottom: 4px;
}
.toc a {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 3px;
  border-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.35;
  font-size: 13px;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  flex-shrink: 0;
  padding-top: 2px;
}
.toc a:hover { background: var(--bg-soft); color: var(--ink); }
.toc a.active {
  background: var(--bg-chip);
  color: var(--ink);
  font-weight: 500;
}
.toc a.active::before { color: var(--accent); }

.toc-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 6px;
}
.toc-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: 3px;
  text-align: left;
}
.toc-actions button:hover { background: var(--bg-soft); color: var(--ink); }

/* Article body */
.article {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  max-width: 720px;
  color: var(--ink);
}
.article-header { margin-bottom: 32px; }
.article-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.article-breadcrumb a { color: var(--accent); border-bottom: 0; }
.article-breadcrumb a:hover { border-bottom: 1px solid var(--accent); }
.article h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-soft);
}
.article-meta .dot { color: var(--ink-dim); }
.article-meta .reviewed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-weight: 500;
}
.article-meta .reviewed::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

/* Risk warning — compliance */
.risk-warning {
  background: #FFF7E6;
  border: 1px solid var(--amber);
  border-inline-start: 4px solid var(--amber);
  padding: 12px 16px;
  border-radius: 3px;
  margin: 20px 0 28px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}
.risk-warning strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}

/* TL;DR box */
.tldr {
  background: var(--bg-verified);
  border: 1px solid var(--green);
  padding: 20px 24px;
  border-radius: 4px;
  margin: 28px 0 36px;
  position: relative;
}
.tldr-label {
  position: absolute;
  top: -10px; left: 16px;
  background: var(--green);
  color: #fff;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
}
.tldr p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink);
}

/* Author + reviewer card (under headline) */
.byline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 24px 0 32px;
  background: var(--bg-article);
}
.byline-person { padding: 16px 18px; }
.byline-person + .byline-person { border-inline-start: 1px solid var(--rule); }
.byline-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.byline-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.byline-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-chip);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.byline-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.byline-creds {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: var(--bg-chip);
  padding: 1px 6px;
  border-radius: 2px;
  margin-inline-start: 6px;
  color: var(--ink-soft);
}
.byline-bio {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}
.byline-bio a { font-size: 13px; }

/* Article prose */
.prose h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 56px 0 18px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h2 .step {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.prose h3 {
  font-size: 22px;
  margin: 32px 0 12px;
}
.prose p { margin: 0 0 1.1em 0; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose em { font-style: italic; }
.prose ul, .prose ol {
  margin: 0 0 1.4em 0;
  padding-inline-start: 24px;
}
.prose li { margin-bottom: 8px; }
.prose .dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  font-size: 5.4em;
  line-height: 0.85;
  margin: 0.05em 0.08em -0.05em 0;
  color: var(--accent);
}
.prose .footnote-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  vertical-align: super;
  color: var(--accent);
  border-bottom: 0;
  padding: 0 2px;
  font-weight: 600;
}

/* Pull quote */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 24px 0;
  margin: 36px 0;
  position: relative;
}
.pullquote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.7;
  color: var(--accent);
  position: absolute;
  top: 14px;
  left: -16px;
}

/* Methodology box */
.methodology {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  padding: 24px;
  border-radius: 4px;
  margin: 36px 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}
.methodology h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.methodology ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
}
.methodology li { margin-bottom: 4px; }

/* Worked example block */
.example {
  background: var(--bg-article);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px;
  margin: 32px 0;
}
.example-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.example-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-body);
  font-size: 15px;
}
.example-row:last-child { border-bottom: 0; }
.example-row .num {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}
.example-row.highlight {
  background: var(--bg-chip);
  margin: 4px -10px;
  padding: 8px 10px;
  border-radius: 3px;
}
.example-row.highlight .num { color: var(--accent); }

/* Sources */
.sources {
  margin: 56px 0 36px;
  padding: 24px 0;
  border-top: 2px solid var(--ink);
}
.sources h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 18px;
}
.sources ol {
  list-style: none;
  counter-reset: src;
  margin: 0;
  padding: 0;
}
.sources li {
  counter-increment: src;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.sources li::before {
  content: '[' counter(src) ']';
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 2px;
}
.sources .src-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
}
.sources .src-pub {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: var(--bg-chip);
  padding: 1px 6px;
  border-radius: 2px;
  margin-inline-end: 8px;
  color: var(--ink-soft);
  font-weight: 600;
}
.sources .src-link {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* FAQ */
.faq {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.faq h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--t-fast);
  font-weight: 400;
}
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { color: var(--accent); }
.faq .faq-body {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Inline ask widget */
.ask-inline {
  margin: 48px 0;
  background: var(--bg-soft);
  border: 1px dashed var(--accent);
  border-radius: 4px;
  padding: 24px 28px;
}
.ask-inline-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.ask-inline h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.ask-inline p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.ask-inline form { display: flex; gap: 8px; }
.ask-inline input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  background: var(--bg-article);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
}
.ask-inline input:focus { border-color: var(--accent); }
.ask-inline button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 11px 18px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}
.ask-inline button:hover { background: color-mix(in srgb, var(--accent) 88%, black); }

/* Right rail (article) */
.rail { font-family: var(--font-ui); }
.rail-block {
  background: var(--bg-article);
  border: 1px solid var(--rule);
  padding: 18px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.rail-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.rail-related {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rail-related li {
  border-bottom: 1px solid var(--rule-soft);
  padding: 10px 0;
}
.rail-related li:last-child { border-bottom: 0; }
.rail-related a {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  border-bottom: 0;
  line-height: 1.35;
  display: block;
}
.rail-related a:hover { color: var(--accent); }

.rail-expert {
  background: var(--bg-soft);
}
.rail-expert .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 12px;
}
.rail-expert .quote::before {
  content: '\201C';
  font-size: 32px;
  color: var(--accent);
  line-height: 0;
  vertical-align: -16px;
  margin-inline-end: 4px;
}
.rail-expert .attr {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rail-expert .attr .av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.rail-expert .attr .name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.rail-expert .attr .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Article footer / topical cluster */
.article-cluster {
  margin: 56px 0 0;
  padding: 32px 0 0;
  border-top: 2px solid var(--ink);
}
.article-cluster h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1100px) {
  .article-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .article-shell .rail { display: none; }
  .latest { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .hero { padding: 36px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .hero-meta { padding: 16px; }
  .section { padding: 36px 0; }
  .q-list { grid-template-columns: 1fr; }
  .q-list li:nth-child(odd) { border-inline-end: 0; }
  .q-list li:nth-child(odd) a,
  .q-list li:nth-child(even) a { padding: 14px 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .cluster-children { grid-template-columns: 1fr; padding-inline-start: 12px; }
  .latest { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 32px 24px; gap: 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

  .article-shell { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 56px; }
  .toc { position: static; padding: 16px; background: var(--bg-soft); border-radius: 4px; }
  .toc-actions { display: none; }
  .article { font-size: 17px; }
  .article h1 { font-size: 28px; }
  .byline { grid-template-columns: 1fr; }
  .byline-person + .byline-person { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .pullquote { font-size: 22px; padding: 18px 0; }
  .pullquote::before { left: 0; top: -8px; font-size: 60px; }
  .example-row { grid-template-columns: 1fr; }
  .example-row .num { text-align: left; }

  .site-nav { display: none; }
  .search-trigger { min-width: 0; flex: 1; }
}
@media (max-width: 540px) {
  .site-header .row { gap: 12px; }
  .brand-text .meta { display: none; }
}

/* Print */
@media print {
  .site-header, .toc-actions, .ask-inline, .newsletter, .site-footer, .read-progress, .rail { display: none; }
  .article-shell { grid-template-columns: 1fr; }
  body { background: white; }
  .article { font-size: 12pt; max-width: 100%; }
}

/* Numeric values must stay LTR even in RTL contexts */
.example-row .num,
.stat-card__num,
.footnote-ref,
time {
  direction: ltr;
  unicode-bidi: bidi-override;
}

/* Author photo avatars (rectangular portrait, not round) */
.byline-avatar--photo {
  width: 50px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: var(--bg-chip);
}
.rail-expert .attr .av--photo {
  width: 32px;
  height: 40px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-chip);
  display: block;
}
