/* ============================================================
   CreditoBueno.com — design system
   Restrained, editorial, gentle. Serif body. Cream background.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette — drawn from book paper, ink, rust, and old maps */
  --cream-100: #FBF7F2;
  --cream-200: #F4ECDF;
  --cream-300: #E8DDD0;
  --cream-400: #D4C5B0;
  --ink-900: #1A1817;
  --ink-700: #2E2A26;
  --ink-500: #6B5D52;
  --ink-300: #A39588;
  --rust-700: #8C3621;
  --rust-600: #B8482E;
  --rust-500: #C9603E;
  --rust-100: #F5E3DB;
  --olive-700: #5A6342;
  --olive-500: #7C8557;
  --olive-100: #E8EBDC;
  --warning-bg: #FBEEDE;
  --warning-border: #C68A1F;
  --warning-text: #6E4A0E;
  --alarm-bg: #F8E2DD;
  --alarm-border: #A1372A;
  --alarm-text: #5C1F17;
  --calm-bg: #E5ECE7;
  --calm-border: #5A6342;
  --calm-text: #2A3320;
  --link: #8C3621;
  --link-hover: #B8482E;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Source Serif 4', 'Iowan Old Style', 'Georgia', 'Times New Roman', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --step--2: clamp(0.78rem, 0.76rem + 0.10vw, 0.83rem);
  --step--1: clamp(0.89rem, 0.86rem + 0.15vw, 0.97rem);
  --step-0:  clamp(1.05rem, 1.00rem + 0.25vw, 1.18rem);
  --step-1:  clamp(1.22rem, 1.14rem + 0.40vw, 1.42rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 1.78rem);
  --step-3:  clamp(1.70rem, 1.48rem + 1.10vw, 2.25rem);
  --step-4:  clamp(2.00rem, 1.66rem + 1.70vw, 2.80rem);
  --step-5:  clamp(2.40rem, 1.84rem + 2.80vw, 3.60rem);
  --step-6:  clamp(2.85rem, 2.00rem + 4.25vw, 4.80rem);

  /* Layout */
  --measure: 36rem;
  --measure-wide: 60rem;
  --gutter: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1.25rem;
  --space-l: 2rem;
  --space-xl: 3.25rem;
  --space-2xl: 5.25rem;
  --space-3xl: 8.5rem;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
  --shadow-soft: 0 1px 2px rgba(26,24,23,0.04), 0 8px 24px rgba(26,24,23,0.06);
  --shadow-lift: 0 2px 4px rgba(26,24,23,0.06), 0 18px 40px rgba(26,24,23,0.10);
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream-100);
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--rust-600);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--rust-100); color: var(--ink-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink-900);
  margin: 0 0 .6em 0;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}
h1 { font-size: var(--step-5); letter-spacing: -0.022em; line-height: 1.05; }
h2 { font-size: var(--step-3); margin-top: 2.4em; }
h3 { font-size: var(--step-2); margin-top: 1.8em; }
h4 { font-size: var(--step-1); margin-top: 1.4em; }
p, ul, ol, dl, blockquote, figure, table { margin: 0 0 1.1em 0; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
em { font-style: italic; }
hr {
  border: none;
  border-top: 1px solid var(--cream-300);
  margin: var(--space-xl) 0;
}

/* Numerals — tabular for numbers in tables and prices */
.num, table, code, kbd, time, .calc-output { font-variant-numeric: tabular-nums; }

/* ---------- Skip + a11y ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-900); color: var(--cream-100);
  padding: .65rem 1rem; z-index: 999;
  font-family: var(--font-ui); font-size: var(--step--1);
  border-radius: 0 0 var(--radius-m) 0;
}
.skip-link:focus { left: 0; }
.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;
}

/* ---------- Layout primitives ---------- */
.wrap     { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide   { width: 100%; max-width: 86rem; margin: 0 auto; padding: 0 var(--gutter); }
.prose       { max-width: var(--measure); }
.prose-wide  { max-width: var(--measure-wide); }
.section     { padding: var(--space-2xl) 0; }
.section-tight { padding: var(--space-xl) 0; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--cream-300);
  background: var(--cream-100);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  background: rgba(251,247,242,0.92);
}
.site-header .wrap-wide {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gutter);
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: .35rem;
}
.brand .dot { color: var(--rust-600); }
.brand .tag {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: .35rem;
}
.nav-primary {
  display: flex; align-items: center; gap: 1.6rem;
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.nav-primary a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nav-primary a:hover { color: var(--rust-600); }
.nav-primary a[aria-current="page"] {
  color: var(--rust-600);
}
.nav-primary a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.4em;
  height: 2px; background: var(--rust-600);
}
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); font-size: var(--step--1);
  color: var(--ink-700); padding: .4rem .5rem;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; gap: .4rem; align-items: center; }
  .nav-primary {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0;
    background: var(--cream-100);
    border-bottom: 1px solid var(--cream-300);
    padding: var(--space-s) var(--gutter) var(--space-m);
    display: none;
  }
  .nav-primary[data-open="true"] { display: flex; }
  .nav-primary a {
    width: 100%;
    padding: .65rem 0;
    border-bottom: 1px solid var(--cream-300);
  }
  .nav-primary a:last-child { border-bottom: none; }
}

/* ---------- Independence banner ---------- */
.indep-banner {
  background: var(--olive-100);
  border-bottom: 1px solid var(--cream-300);
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: var(--olive-700);
  text-align: center;
  padding: .55rem var(--gutter);
  letter-spacing: 0.01em;
}
.indep-banner strong { color: var(--ink-900); font-weight: 600; }
.indep-banner a { color: var(--olive-700); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background:
    radial-gradient(1100px 480px at 18% -10%, rgba(184,72,46,0.07), transparent 60%),
    radial-gradient(900px 420px at 95% 5%, rgba(124,133,87,0.10), transparent 60%),
    linear-gradient(180deg, var(--cream-100) 0%, var(--cream-200) 100%);
  border-bottom: 1px solid var(--cream-300);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rust-600);
  font-weight: 600;
  margin-bottom: var(--space-m);
}
.hero h1 {
  font-size: var(--step-6);
  max-width: 22ch;
  margin-bottom: var(--space-l);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  color: var(--rust-700);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.hero-lede {
  font-size: var(--step-2);
  max-width: 38ch;
  color: var(--ink-700);
  line-height: 1.45;
  margin-bottom: var(--space-xl);
}

/* Country selector */
.country-check {
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  box-shadow: var(--shadow-soft);
  max-width: 44rem;
}
.country-check .label {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: var(--space-s);
}
.country-check h2 {
  margin: 0 0 var(--space-m);
  font-size: var(--step-2);
  font-style: italic;
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-s);
  margin-top: var(--space-m);
}
.country-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .25rem;
  background: var(--cream-200);
  border: 1px solid var(--cream-300);
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-m);
  color: var(--ink-900);
  text-decoration: none;
  font-family: var(--font-ui);
  transition: all .2s ease;
}
.country-btn:hover {
  background: var(--cream-100);
  border-color: var(--rust-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.country-btn .flag {
  font-size: 1.6rem; line-height: 1;
  margin-bottom: .2rem;
}
.country-btn .name {
  font-weight: 600;
  font-size: var(--step-0);
}
.country-btn .what {
  font-size: var(--step--2);
  color: var(--ink-500);
}

/* ---------- Answer block (AEO) ---------- */
.answer-block {
  background: var(--cream-200);
  border-left: 4px solid var(--rust-600);
  padding: var(--space-m) var(--space-l);
  margin: var(--space-l) 0;
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-700);
}
.answer-block::before {
  content: "Respuesta corta";
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: var(--step--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust-600);
  margin-bottom: var(--space-xs);
}

/* ---------- Callout blocks ---------- */
.callout {
  border: 1px solid;
  border-radius: var(--radius-m);
  padding: var(--space-m) var(--space-l);
  margin: var(--space-l) 0;
  font-size: var(--step-0);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-m);
}
.callout .ico {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  font-weight: 700;
}
.callout h3, .callout h4 {
  margin-top: 0;
  font-size: var(--step-1);
}
.callout p:last-child { margin-bottom: 0; }
.callout--warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}
.callout--warning .ico { color: var(--warning-border); }
.callout--alarm {
  background: var(--alarm-bg);
  border-color: var(--alarm-border);
  color: var(--alarm-text);
}
.callout--alarm .ico { color: var(--alarm-border); }
.callout--calm {
  background: var(--calm-bg);
  border-color: var(--calm-border);
  color: var(--calm-text);
}
.callout--calm .ico { color: var(--calm-border); }
.callout--neutral {
  background: var(--cream-200);
  border-color: var(--cream-300);
  color: var(--ink-700);
}

/* ---------- Data tables ---------- */
.data-table-wrap {
  margin: var(--space-l) 0;
  overflow-x: auto;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-m);
  background: var(--cream-100);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  font-family: var(--font-ui);
}
caption {
  caption-side: top;
  text-align: left;
  padding: var(--space-m) var(--space-l) var(--space-s);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
th, td {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--cream-300);
  text-align: left;
  vertical-align: top;
}
thead th {
  background: var(--cream-200);
  font-weight: 600;
  color: var(--ink-900);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--cream-200); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- FAQ (details/summary) ---------- */
.faq { margin: var(--space-xl) 0; }
.faq h2 { margin-bottom: var(--space-m); }
.faq details {
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-s);
  background: var(--cream-100);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-m) var(--space-l);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--ink-900);
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: var(--space-l); top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-ui);
  font-size: 1.6rem;
  color: var(--rust-600);
  transition: transform .2s ease;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq .faq-body {
  padding: 0 var(--space-l) var(--space-m);
  color: var(--ink-700);
  line-height: 1.6;
}
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Editorial cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-l);
}
.card {
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.card-media {
  aspect-ratio: 16 / 10;
  background: var(--cream-300);
  overflow: hidden;
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--space-l); display: flex; flex-direction: column; flex: 1; }
.card-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust-600);
  margin-bottom: var(--space-xs);
}
.card h3 {
  margin: 0 0 var(--space-s);
  font-size: var(--step-2);
  line-height: 1.2;
}
.card h3 a {
  text-decoration: none;
  color: var(--ink-900);
  background-image: linear-gradient(var(--rust-600), var(--rust-600));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
}
.card:hover h3 a { background-size: 100% 1px; }
.card p { color: var(--ink-500); margin-bottom: var(--space-m); flex: 1; }
.card-meta {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Cluster index ---------- */
.cluster-list { list-style: none; padding: 0; margin: 0; }
.cluster-list > li {
  border-bottom: 1px solid var(--cream-300);
  padding: var(--space-m) 0;
}
.cluster-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: var(--space-m);
  text-decoration: none;
  color: var(--ink-900);
}
.cluster-list a:hover .cl-title { color: var(--rust-600); }
.cluster-list .cl-num {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: var(--ink-300);
  font-variant-numeric: tabular-nums;
}
.cluster-list .cl-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  transition: color .2s ease;
}
.cluster-list .cl-meta {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: var(--ink-500);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--ink-500);
  margin: var(--space-m) 0;
}
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumb li::after { content: " ›"; color: var(--ink-300); margin-left: .3rem; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--rust-600); }
.breadcrumb [aria-current="page"] { color: var(--ink-900); }

/* ---------- Article meta ---------- */
.byline {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--ink-500);
  margin: var(--space-m) 0 var(--space-l);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-s);
}
.byline .sep { color: var(--ink-300); }
.byline a { color: var(--ink-700); text-decoration: none; border-bottom: 1px solid var(--cream-300); }
.byline a:hover { color: var(--rust-600); border-color: var(--rust-600); }
.updated-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--olive-100);
  color: var(--olive-700);
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: var(--step--2);
  font-weight: 600;
}
.updated-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive-500);
}

/* ---------- Source citations ---------- */
.sources {
  margin-top: var(--space-2xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--cream-300);
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.sources h2 {
  font-size: var(--step-1);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
  color: var(--ink-500);
}
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: .65em; color: var(--ink-700); }
.sources cite { font-style: normal; color: var(--ink-900); }

/* ---------- Calculator ---------- */
.calc {
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  margin: var(--space-l) 0;
  box-shadow: var(--shadow-soft);
}
.calc legend {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust-600);
  padding: 0;
  margin-bottom: var(--space-s);
}
.calc-field {
  display: flex; flex-direction: column;
  margin-bottom: var(--space-m);
}
.calc-field label {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: .35rem;
}
.calc-field .hint {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: var(--ink-500);
  margin-top: .25rem;
}
.calc-field input, .calc-field select {
  font-family: var(--font-body);
  font-size: var(--step-1);
  padding: .7rem .85rem;
  border: 1px solid var(--cream-400);
  border-radius: var(--radius-s);
  background: var(--cream-100);
  color: var(--ink-900);
  width: 100%;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-m);
}
.calc-output {
  background: var(--cream-200);
  border-radius: var(--radius-m);
  padding: var(--space-m) var(--space-l);
  margin-top: var(--space-l);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-m);
}
.calc-output .stat .lbl {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  display: block;
  margin-bottom: .2rem;
}
.calc-output .stat .val {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--ink-900);
  font-weight: 500;
  line-height: 1;
}
.calc-output .stat.alarm .val { color: var(--alarm-border); }
.calc-output .stat.calm .val { color: var(--olive-700); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--ink-900);
  color: var(--cream-200);
  padding: var(--space-xl) 0;
}
.trust-strip h2 {
  color: var(--cream-100);
  font-style: italic;
  font-size: var(--step-2);
  margin: 0 0 var(--space-m);
}
.trust-strip p { color: var(--cream-300); max-width: 60ch; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-l);
}
.trust-item h3 {
  color: var(--cream-100);
  font-size: var(--step-1);
  margin: 0 0 var(--space-xs);
}
.trust-item p { color: var(--cream-300); font-size: var(--step--1); margin: 0; }

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.25;
  color: var(--ink-900);
  border-left: 3px solid var(--rust-600);
  padding-left: var(--space-l);
  margin: var(--space-xl) 0;
  max-width: 32ch;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.pullquote .who {
  display: block;
  margin-top: var(--space-s);
  font-style: normal;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--ink-500);
}

/* ---------- Country header ---------- */
.country-header {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: linear-gradient(180deg, var(--cream-200), var(--cream-100));
  border-bottom: 1px solid var(--cream-300);
}
.country-header .flag-mark {
  display: inline-block;
  font-size: 2.4rem;
  margin-bottom: var(--space-s);
}
.country-header h1 { font-size: var(--step-5); margin: 0; }
.country-header .lede {
  font-size: var(--step-1);
  color: var(--ink-700);
  max-width: 38ch;
  margin-top: var(--space-m);
}

/* ---------- Stat tracker ---------- */
.tracker {
  background: var(--ink-900);
  color: var(--cream-100);
  border-radius: var(--radius-l);
  padding: var(--space-xl);
  margin: var(--space-l) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-l);
  align-items: center;
}
.tracker .label {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-400);
  margin-bottom: var(--space-xs);
}
.tracker .value {
  font-family: var(--font-display);
  font-size: var(--step-6);
  line-height: 1;
  color: var(--cream-100);
  font-style: italic;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}
.tracker .value sup { font-size: .45em; vertical-align: super; color: var(--rust-500); }
.tracker .ctx {
  color: var(--cream-300);
  font-size: var(--step--1);
  margin-top: var(--space-s);
  max-width: 32ch;
}
.tracker .source {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: var(--cream-400);
  margin-top: var(--space-m);
}
.tracker .source a { color: var(--rust-500); }

@media (max-width: 640px) {
  .tracker { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--cream-300);
  padding: var(--space-2xl) 0 var(--space-l);
  font-size: var(--step--1);
  margin-top: var(--space-3xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}
.footer-grid h4 {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-200);
  margin: 0 0 var(--space-m);
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-grid a {
  color: var(--cream-300);
  text-decoration: none;
  font-family: var(--font-ui);
}
.footer-grid a:hover { color: var(--rust-500); }
.footer-brand p { color: var(--cream-400); font-family: var(--font-body); font-size: var(--step--1); }
.footer-brand .brand { color: var(--cream-100); }
.footer-brand .brand .tag { color: var(--cream-400); }
.footer-legal {
  border-top: 1px solid #2E2A26;
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: var(--cream-400);
  display: flex; justify-content: space-between; gap: var(--space-m); flex-wrap: wrap;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Editorial photo lockup ---------- */
.lockup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin: var(--space-2xl) 0;
}
.lockup-flip { direction: rtl; }
.lockup-flip > * { direction: ltr; }
.lockup figure {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.lockup figure img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4/5;
}
.lockup figcaption {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: var(--ink-500);
  margin-top: var(--space-s);
  font-style: italic;
}
@media (max-width: 740px) {
  .lockup, .lockup-flip { grid-template-columns: 1fr; direction: ltr; }
  .lockup figure img { aspect-ratio: 4/3; }
}

/* ---------- Country quick-jump bar ---------- */
.country-bar {
  background: var(--cream-200);
  border-bottom: 1px solid var(--cream-300);
  padding: .75rem var(--gutter);
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.country-bar a {
  margin: 0 .6rem;
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
}
.country-bar a:hover { color: var(--rust-600); }
.country-bar .sep { color: var(--ink-300); }

/* ---------- Hero secondary (article pages) ---------- */
.article-hero {
  padding: var(--space-xl) 0 var(--space-l);
  background: var(--cream-100);
  border-bottom: 1px solid var(--cream-300);
}
.article-hero .eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--rust-600);
  margin-bottom: var(--space-s);
}
.article-hero h1 {
  font-size: var(--step-5);
  max-width: 24ch;
  margin-bottom: var(--space-m);
}
.article-hero .standfirst {
  font-family: var(--font-body);
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--ink-700);
  max-width: 38ch;
  font-style: italic;
}

/* ---------- Featured image ---------- */
.lead-image {
  margin: 0 0 var(--space-xl);
}
.lead-image figure { margin: 0; }
.lead-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
}
.lead-image figcaption {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: var(--ink-500);
  margin-top: var(--space-s);
  font-style: italic;
  max-width: 56ch;
}

/* ---------- Reading-list grid (home featured) ---------- */
.featured-three {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-l);
  margin: var(--space-2xl) 0;
}
.featured-three .card:first-child .card-media { aspect-ratio: 4/3; }
@media (max-width: 880px) {
  .featured-three { grid-template-columns: 1fr; }
}

/* ---------- Mission strip ---------- */
.mission {
  background: var(--cream-200);
  border-top: 1px solid var(--cream-300);
  border-bottom: 1px solid var(--cream-300);
  padding: var(--space-2xl) 0;
  text-align: center;
}
.mission h2 {
  font-style: italic;
  font-size: var(--step-3);
  max-width: 22ch;
  margin: 0 auto var(--space-m);
}
.mission p { max-width: 50ch; margin: 0 auto; color: var(--ink-700); }

/* ---------- Topic chips ---------- */
.chips {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin: var(--space-m) 0 var(--space-l);
  list-style: none; padding: 0;
}
.chips li a {
  display: inline-block;
  padding: .4rem .85rem;
  background: var(--cream-200);
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--ink-700);
  text-decoration: none;
}
.chips li a:hover {
  background: var(--rust-100);
  border-color: var(--rust-600);
  color: var(--rust-700);
}

/* ---------- TOC ---------- */
.toc {
  background: var(--cream-200);
  border-radius: var(--radius-m);
  padding: var(--space-m) var(--space-l);
  margin: var(--space-l) 0;
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.toc h3 {
  margin: 0 0 var(--space-s);
  font-family: var(--font-ui);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}
.toc ol { padding-left: 1.4em; margin: 0; }
.toc li { margin-bottom: .35em; }
.toc a { color: var(--ink-700); text-decoration: none; }
.toc a:hover { color: var(--rust-600); }

/* ---------- Disclosure on every page ---------- */
.editorial-disclosure {
  background: var(--olive-100);
  border-top: 1px solid var(--cream-300);
  padding: var(--space-l) 0;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--olive-700);
}
.editorial-disclosure .wrap { display: grid; grid-template-columns: auto 1fr; gap: var(--space-m); align-items: start; }
.editorial-disclosure strong { color: var(--ink-900); font-weight: 600; }
.editorial-disclosure .ico {
  font-family: var(--font-display);
  font-size: var(--step-3); line-height: 1;
  color: var(--olive-700);
}

/* ---------- HowTo steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--space-l) 0; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-m);
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--cream-300);
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--rust-600);
  font-style: italic;
  line-height: 1;
  min-width: 2ch;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.steps li h3 { margin: 0 0 var(--space-xs); font-size: var(--step-1); }
.steps li p:last-child { margin-bottom: 0; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-primary, .country-check, .calc, .editorial-disclosure, .country-bar { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
