/* =========================================================
   DirectSellingProducts.com — design system
   Editorial, colourful, practitioner-led. No framework.
   ========================================================= */

:root {
  /* palette */
  --ink: #1f1633;
  --ink-soft: #4a4060;
  --muted: #6e6585;
  --paper: #fff8f1;
  --paper-2: #fdeee4;
  --card: #ffffff;
  --line: #eadfd6;

  --berry: #d6336c;
  --coral: #ff6b5b;
  --saffron: #f5a524;
  --teal: #0e9f9a;
  --plum: #6d3bd1;
  --leaf: #2f9e63;
  --blush: #ffd6dc;
  --mint: #d4f5ea;
  --butter: #fff0c2;
  --lilac: #e9defe;

  --grad-hot: linear-gradient(120deg, var(--berry), var(--coral) 45%, var(--saffron));
  --grad-cool: linear-gradient(120deg, var(--plum), var(--teal));

  /* type */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 22, 51, .06), 0 10px 30px -12px rgba(31, 22, 51, .18);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--berry); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 60, "opsz" 96;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- moving background ---------- */
.bg-stage { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob.b1 { width: 46vmax; height: 46vmax; background: radial-gradient(circle, #ffb3c4, transparent 65%); top: -16vmax; left: -10vmax; }
.blob.b2 { width: 40vmax; height: 40vmax; background: radial-gradient(circle, #ffd88a, transparent 65%); top: 30vh; right: -14vmax; animation-duration: 32s; animation-delay: -8s; }
.blob.b3 { width: 38vmax; height: 38vmax; background: radial-gradient(circle, #bfe9df, transparent 65%); bottom: -18vmax; left: 20vw; animation-duration: 38s; animation-delay: -14s; }
.blob.b4 { width: 30vmax; height: 30vmax; background: radial-gradient(circle, #dccbff, transparent 65%); top: 10vh; left: 40vw; animation-duration: 44s; animation-delay: -20s; opacity: .4; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(6vw, 4vh) scale(1.12) rotate(20deg); }
  100% { transform: translate(-4vw, 8vh) scale(.95) rotate(-12deg); }
}
/* shimmer grain — like pressed powder */
.bg-stage::after {
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(31,22,51,.12) 1px, transparent 1px);
  background-size: 4px 4px;
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- top strip & header ---------- */
.strip {
  background: var(--ink); color: #f6eefe; font-size: .84rem; text-align: center; padding: 7px var(--gutter);
}
.strip a { color: var(--butter); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 241, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(234, 223, 214, .8);
}
.nav { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-hot); color: #fff; font: 700 1rem var(--f-display); transform: rotate(-6deg);
  box-shadow: 0 6px 16px -6px rgba(214, 51, 108, .6);
}
.brand-text { font: 600 1.08rem/1.1 var(--f-display); }
.brand-text small { display: block; font: 500 .7rem var(--f-body); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--blush); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: #fff; font: 600 1rem var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(31,22,51,.55); }
.btn.hot { background: var(--grad-hot); border-color: transparent; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 70px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--plum); background: var(--lilac); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--berry); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214,51,108,.5); } 50% { box-shadow: 0 0 0 7px rgba(214,51,108,0); } }
.hero h1 em, .hl {
  font-style: italic; font-weight: 500;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.trust-row li { display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 18px; height: 18px; color: var(--leaf); }

.hero-art { position: relative; aspect-ratio: 1 / 1.02; }
.hero-art svg.shelf { width: 100%; height: 100%; overflow: visible; }
.float-a { animation: bob 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.float-b { animation: bob 7.5s ease-in-out infinite -2s; transform-origin: center; transform-box: fill-box; }
.float-c { animation: bob 8.5s ease-in-out infinite -4s; transform-origin: center; transform-box: fill-box; }
.spin-slow { animation: spin 40s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.note-tag {
  position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: .82rem; line-height: 1.35; max-width: 210px; border: 1px solid var(--line);
}
.note-tag b { display: block; font-family: var(--f-display); font-size: 1rem; }
.note-tag.n1 { top: 6%; left: -4%; transform: rotate(-3deg); }
.note-tag.n2 { bottom: 8%; right: -2%; transform: rotate(2.5deg); }

/* ---------- swatch ribbon (makeup palette marquee) ---------- */
.ribbon { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.55); padding: 14px 0; }
.ribbon-track { display: flex; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 10px; font: 500 1rem var(--f-display); white-space: nowrap; color: var(--ink-soft); }
.ribbon i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; box-shadow: inset -3px -3px 6px rgba(0,0,0,.15), inset 3px 3px 6px rgba(255,255,255,.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head p { max-width: 56ch; color: var(--ink-soft); margin: 0; }
.kicker { font: 600 .78rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--berry); margin-bottom: 10px; display: block; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  --tint: var(--blush); --accent: var(--berry);
  position: relative; background: var(--card); border-radius: var(--radius); padding: 26px 22px 22px; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s, box-shadow .25s;
}
.pillar::before { content: ""; position: absolute; inset: auto -40% -55% auto; width: 220px; height: 220px; border-radius: 50%; background: var(--tint); transition: transform .5s; z-index: 0; }
.pillar > * { position: relative; z-index: 1; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.pillar:hover::before { transform: scale(1.35); }
.pillar .num { font: 500 .8rem var(--f-body); color: var(--accent); letter-spacing: .1em; }
.pillar .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.pillar .ico svg { width: 24px; height: 24px; }
.pillar h3 { margin: 4px 0 0; }
.pillar p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.pillar ul { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; color: var(--ink-soft); }
.pillar .more { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--accent); font-size: .92rem; }
.pillar.p2 { --tint: var(--butter); --accent: #b86e00; }
.pillar.p3 { --tint: var(--mint); --accent: var(--teal); }
.pillar.p4 { --tint: var(--lilac); --accent: var(--plum); }

/* definition / snippet card */
.answer-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow); position: relative;
}
.answer-card::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 5px; border-radius: 0 6px 6px 0; background: var(--grad-hot); }
.answer-card .q { font: 600 .82rem var(--f-body); color: var(--plum); letter-spacing: .1em; text-transform: uppercase; }
.answer-card .a { font-size: 1.12rem; color: var(--ink); margin: 8px 0 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }

/* checker tool */
.tool {
  background: var(--ink); color: #f5eefc; border-radius: 28px; padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden;
}
.tool::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,91,.55), transparent 70%); }
.tool > * { position: relative; z-index: 1; }
.tool h2 { color: #fff; }
.tool .lede { color: #d9cdee; }
.checks { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.checks label {
  display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 13px 14px; border-radius: 14px; cursor: pointer; transition: background .2s;
}
.checks label:hover { background: rgba(255,255,255,.12); }
.checks input { accent-color: var(--coral); width: 20px; height: 20px; flex: none; margin-top: 2px; }
.meter { height: 12px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; margin: 16px 0 10px; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--leaf), var(--saffron), var(--berry)); transition: width .4s; }
.verdict { font: 500 1.15rem var(--f-display); min-height: 3em; }
.tool .btn.ghost { color: #fff; border-color: #fff; }
.tool .btn.ghost:hover { background: #fff; color: var(--ink); }

/* articles */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s; text-decoration: none; color: var(--ink);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.card .thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.card .thumb svg { width: 100%; height: 100%; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .tag { font: 600 .74rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--berry); }
.card h3 { font-size: 1.2rem; margin: 0; }
.card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.card .meta { margin-top: auto; padding-top: 10px; font-size: .82rem; color: var(--muted); }

/* countries */
.geo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.geo {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.75); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s;
}
.geo:hover { border-color: var(--berry); transform: translateY(-2px); color: var(--ink); }
.geo .flag { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 .9rem var(--f-display); color: #fff; flex: none; }
.geo b { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.geo small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; }
.geo.soon { opacity: .75; }

/* author */
.author-box {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 30px);
}
.avatar {
  width: 96px; height: 96px; border-radius: 28px; background: var(--grad-cool); display: grid; place-items: center; color: #fff;
  font: 600 2rem var(--f-display); transform: rotate(-4deg); box-shadow: var(--shadow);
}
.author-box h3 { margin-bottom: 4px; }
.author-box .role { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.creds li { font-size: .8rem; padding: 5px 10px; background: var(--paper-2); border-radius: 999px; color: var(--ink-soft); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font: 600 1.08rem var(--f-display); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 400 1.6rem var(--f-body); color: var(--berry); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); }

/* newsletter / cta band */
.cta-band {
  background: var(--grad-hot); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background: radial-gradient(circle at 15% 120%, #fff 0, transparent 35%), radial-gradient(circle at 95% -10%, #fff 0, transparent 30%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-3%, 4%) scale(1.08); } }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff3ea; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="email"], input[type="text"], select, textarea {
  font: inherit; font-size: 1rem; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.cta-band input[type="email"] { flex: 1 1 220px; width: auto; border: 0; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); }
.fine { font-size: .8rem; opacity: .9; margin-top: 10px; }
.form-msg { font-weight: 600; margin-top: 10px; min-height: 1.4em; }

/* ---------- article layout ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding-top: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line); color: #c4b6a8; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--berry); }

.article-hero { padding: 28px 0 34px; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 22ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .9rem; color: var(--muted); margin-top: 16px; }
.byline .mini { width: 34px; height: 34px; border-radius: 11px; background: var(--grad-cool); color: #fff; display: grid; place-items: center; font: 600 .9rem var(--f-display); }
.byline b { color: var(--ink); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--mint); color: #0c6d58; font-size: .78rem; font-weight: 600; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 60px); padding-bottom: 60px; }
.prose { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 48px); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ol.steps { list-style: none; counter-reset: s; padding: 0; }
.prose ol.steps > li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: var(--paper); border-radius: 14px; margin-bottom: 10px; }
.prose ol.steps > li::before {
  content: counter(s); position: absolute; left: 14px; top: 13px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-hot); color: #fff; font: 700 1rem var(--f-display);
}
.tldr { background: var(--butter); border-radius: 18px; padding: 20px 22px; margin-bottom: 28px; }
.tldr h2 { font-size: 1.15rem !important; margin: 0 0 8px !important; font-family: var(--f-body); letter-spacing: .02em; }
.tldr ul { margin: 0; }
.snippet { border-left: 4px solid var(--berry); background: var(--paper); padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 1.05rem; }
.field-note {
  position: relative; background: var(--lilac); border-radius: 18px; padding: 18px 20px 18px 64px; margin: 24px 0; font-size: .98rem;
}
.field-note::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 9px; background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 1 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center/18px no-repeat;
}
.field-note b { display: block; color: var(--plum); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 14px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 520px; background: #fff; }
caption { text-align: left; padding: 12px 14px; font-weight: 600; color: var(--ink-soft); caption-side: top; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
.ok { color: var(--leaf); font-weight: 600; }
.bad { color: var(--berry); font-weight: 600; }
.sources { font-size: .88rem; color: var(--ink-soft); }
.sources li { margin-bottom: .3em; }

.aside { position: sticky; top: 92px; align-self: start; display: grid; gap: 16px; }
.toc, .aside-card { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.toc h2, .aside-card h2 { font: 600 .8rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 18px; font-size: .92rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--berry); }
.aside-card.dark { background: var(--ink); color: #f1e8fb; border: 0; }
.aside-card.dark h2 { color: #c9b9e6; }
.aside-card.dark p { font-size: .93rem; }

/* geo city blocks */
.cities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.city { background: var(--paper); border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.city h3 { margin: 0 0 6px; font-size: 1.15rem; }
.city p { font-size: .93rem; margin: 0; color: var(--ink-soft); }
.city .where { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; display: block; }

/* contact form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.steps-h { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; counter-reset: h; }
.steps-h li { background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 18px; padding: 20px; counter-increment: h; }
.steps-h li::before { content: "0" counter(h); font: 600 1.6rem var(--f-display); display: block; background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d8cdea; padding: 64px 0 28px; margin-top: 40px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.site-footer h2 { font: 600 .78rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d8cdea; text-decoration: none; }
.site-footer a:hover { color: var(--butter); }
.site-footer .brand-text { color: #fff; }
.site-footer .brand-text small { color: #a597c2; }
.disclose { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #a597c2; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.disclose p { max-width: 80ch; margin: 0; }

/* sticky mobile CTA */
.m-cta { display: none; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 12px var(--gutter) 22px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(31,22,51,.3);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav .btn.sm { display: none; }
  .hero-grid, .split, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .cities, .grid-2, .steps-h { grid-template-columns: 1fr; }
  .m-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; gap: 8px;
    background: rgba(31,22,51,.94); padding: 8px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(31,22,51,.6);
    transform: translateY(140%); transition: transform .35s;
  }
  .m-cta.show { transform: none; }
  .m-cta .btn { flex: 1; min-height: 44px; padding: 8px 12px; font-size: .92rem; }
  .m-cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
  body { padding-bottom: 76px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pillars, .geo-grid, .foot-grid { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; text-align: left; }
  .note-tag { font-size: .74rem; max-width: 160px; padding: 8px 10px; }
  .note-tag.n1 { left: 0; }
  .note-tag.n2 { right: 0; }
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .bg-stage, #particles, .site-header, .m-cta, .aside, .site-footer, .strip { display: none !important; }
  body { background: #fff; }
}

/* =========================================================
   V2 COMPONENTS
   - Tab menu (offset skewed plate + numbered disc)
   - Step boxes (coloured frame + STEP badge + icon corner)
   - Ribbon-banner footer (pointed lozenge + notched centre panel)
   - Horizontal & vertical colour bars
   - Covers (text-to-image) and charts
   ========================================================= */

/* ---------- colour bars ---------- */
.hbar {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg,
    var(--berry) 0 24%, transparent 24% 25.3%,
    #b8673f 25.3% 49.3%, transparent 49.3% 50.6%,
    var(--teal) 50.6% 74.6%, transparent 74.6% 75.9%,
    var(--plum) 75.9% 100%);
}
.hbar.thin { height: 3px; opacity: .8; }
.vbars { display: inline-flex; align-items: flex-end; gap: 4px; height: 34px; }
.vbars i { width: 5px; border-radius: 3px; display: block; animation: eq 2.8s ease-in-out infinite; }
.vbars i:nth-child(1) { background: var(--berry); height: 55%; }
.vbars i:nth-child(2) { background: #b8673f; height: 100%; animation-delay: -.7s; }
.vbars i:nth-child(3) { background: var(--teal); height: 75%; animation-delay: -1.4s; }
.vbars i:nth-child(4) { background: var(--plum); height: 40%; animation-delay: -2.1s; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.6); } }
.vbars i { transform-origin: bottom; }

/* ---------- header v2 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 241, .9); border-bottom: 0; }
.head-top { display: flex; align-items: center; gap: 18px; height: 68px; transition: height .3s, opacity .3s; overflow: hidden; }
.head-top .brand { margin-right: 0; }
.head-top .head-note { margin: 0 auto 0 4px; font-size: .82rem; color: var(--muted); line-height: 1.35; max-width: 34ch; }
.head-top .head-note b { color: var(--ink); font-weight: 600; }
.site-header.compact .head-top { height: 0; opacity: 0; }
.tabnav { padding: 12px 0 14px; }
.tabs { isolation: isolate; list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: space-between; gap: 14px; }
.tab {
  --c: var(--berry);
  position: relative; top: 0; display: flex; align-items: center; gap: 10px;
  margin: 6px 8px 0 16px; padding: 7px 16px 7px 0; background: #fff; border-radius: 12px;
  text-decoration: none; color: var(--ink); box-shadow: 0 8px 16px -10px rgba(31, 22, 51, .45);
  transition: top .25s;
}
.tab::before {
  content: ""; position: absolute; inset: -6px -8px 6px 22px; z-index: -1; border-radius: 12px;
  background: var(--c); transform: skewX(-16deg); transition: transform .25s;
}
.tab .n {
  flex: none; width: 36px; height: 36px; margin-left: -16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font: 700 .8rem var(--f-body); letter-spacing: .02em;
  box-shadow: 0 0 0 3px #fff, 0 6px 12px -6px rgba(31, 22, 51, .5);
}
.tab .t { font-weight: 600; font-size: .94rem; line-height: 1.15; }
.tab .t small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.tab:hover { top: -2px; color: var(--ink); }
.tab:hover::before { transform: skewX(-16deg) translate(3px, -2px); }
.tab[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--c), 0 8px 16px -10px rgba(31, 22, 51, .45); }
.nav-toggle { margin-left: auto; }

/* ---------- step boxes (applied to pillars, cities, steps-h, step grids) ---------- */
.pillars { isolation: isolate; gap: 34px 30px; padding: 10px 6px 0 10px; }
.pillar {
  overflow: visible; top: 0; transition: top .25s, box-shadow .25s; border: 0; border-radius: 22px; padding: 24px 22px 84px;
  box-shadow: 0 14px 30px -18px rgba(31, 22, 51, .45);
}
.pillar::before {
  inset: -9px 18px 18px -9px; width: auto; height: auto; border-radius: 26px; background: var(--accent);
  z-index: -1; transform: none;
}
.pillar:nth-child(even)::before { inset: -9px -9px 18px 18px; }
.pillar:hover { transform: none; top: -4px; }
.pillar:hover::before { transform: translate(-3px, -3px); }
.pillar > * { position: static; }
.pillar .num {
  display: inline-flex; flex-direction: column; align-self: flex-start; align-items: center; line-height: 1;
  background: var(--accent); color: #fff; border-radius: 7px; padding: 5px 9px; font: 600 .62rem var(--f-body); letter-spacing: .12em;
}
.pillar .num b { font: 700 1.05rem var(--f-display); letter-spacing: 0; margin-top: 2px; }
.pillar .ico {
  position: absolute; right: 0; bottom: 0; width: 66px; height: 66px; border-radius: 22px 0 22px 0;
  background: var(--accent); color: #fff;
}
.pillar .ico svg { width: 28px; height: 28px; }
.pillar .more { position: absolute; left: 22px; bottom: 22px; }
.pillar.p2 { --accent: #b8673f; }
.pillar.p3 { --accent: #1f3a4a; }
.pillar.p4 { --accent: #7d6a8a; }

.cities { isolation: isolate; gap: 34px 30px; padding: 10px 4px 0 10px; }
.city {
  --c: var(--berry);
  position: relative; background: #fff; border: 0; border-radius: 20px; padding: 20px 20px 70px;
  box-shadow: 0 14px 30px -18px rgba(31, 22, 51, .45);
}
.city::before { content: ""; position: absolute; inset: -8px 16px 16px -8px; border-radius: 24px; background: var(--c); z-index: -1; }
.city:nth-child(even)::before { inset: -8px -8px 16px 16px; }
.city::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 56px; height: 56px; border-radius: 20px 0 20px 0;
  background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center/24px no-repeat;
}
.city:nth-child(4n+2) { --c: #b8673f; }
.city:nth-child(4n+3) { --c: #1f3a4a; }
.city:nth-child(4n+4) { --c: var(--teal); }
.city .where { display: inline-block; background: var(--c); color: #fff; padding: 4px 9px; border-radius: 7px; font-size: .7rem; }

.steps-h { isolation: isolate; gap: 30px; padding: 10px 6px 0 10px; }
.steps-h li {
  --c: var(--berry); position: relative; background: #fff; border: 0; border-radius: 20px;
  box-shadow: 0 14px 30px -18px rgba(31, 22, 51, .45);
}
.steps-h li:nth-child(2) { --c: #b8673f; }
.steps-h li:nth-child(3) { --c: var(--teal); }
.steps-h li::after { content: ""; position: absolute; inset: -8px 16px 16px -8px; border-radius: 24px; background: var(--c); z-index: -1; }
.steps-h li::before {
  content: "STEP\A 0" counter(h); white-space: pre; display: inline-block; text-align: center; line-height: 1.05;
  background: var(--c); color: #fff; -webkit-background-clip: border-box; background-clip: border-box;
  border-radius: 7px; padding: 5px 9px; margin-bottom: 10px; font: 700 .62rem/1.2 var(--f-body); letter-spacing: .12em;
}

/* 9-step overview grid in articles */
.prose ol.steps.grid3 { isolation: isolate; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; padding: 10px 4px 0 10px; }
.prose ol.steps.grid3 > li {
  --c: var(--berry); position: relative; margin: 0; background: #fff; border-radius: 16px;
  padding: 54px 14px 16px; font-weight: 600; font-size: .95rem; line-height: 1.35; box-shadow: 0 12px 24px -16px rgba(31, 22, 51, .45);
}
.prose ol.steps.grid3 > li::before { background: var(--c); left: 14px; top: 12px; width: auto; height: auto; padding: 4px 8px; border-radius: 7px; font-size: .9rem; content: "0" counter(s); }
.prose ol.steps.grid3 > li::after { content: ""; position: absolute; inset: -6px 14px 14px -6px; border-radius: 19px; background: var(--c); z-index: -1; }
.prose ol.steps.grid3 > li:nth-child(3n+2) { --c: #b8673f; }
.prose ol.steps.grid3 > li:nth-child(3n+3) { --c: var(--teal); }
.prose ol.steps.grid3 a { color: var(--ink); text-decoration: none; }
.prose ol.steps.grid3 a:hover { color: var(--c); }

/* ---------- covers (text-to-image) ---------- */
.cover { margin: 0 0 28px; }
.cover img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 20px 40px -24px rgba(31, 22, 51, .55); }
.cover figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- charts ---------- */
.chart { margin: 24px 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 12px; }
.chart h4 { font: 600 1rem var(--f-body); margin: 0 0 2px; letter-spacing: 0; }
.chart .sub { font-size: .84rem; color: var(--muted); margin: 0 0 12px; }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--f-body); }
.chart .lbl { fill: var(--ink); font-size: 13px; }
.chart .lbl-m { fill: var(--muted); font-size: 12px; }
.chart .val { fill: var(--ink); font-size: 13px; font-weight: 600; }
.chart .grid { stroke: #ece4dc; stroke-width: 1; }
.chart .mark { transition: opacity .2s; }
.chart svg:hover .mark { opacity: .45; }
.chart svg .mark:hover { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--ink-soft); margin: 0 0 10px; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-scroll svg { min-width: 560px; }

/* ---------- footer v2: ribbon banners ---------- */
.site-footer {
  background: linear-gradient(180deg, #f1eef4, #e2dde8); color: var(--ink-soft); padding: 70px 0 26px; margin-top: 60px;
  border-top: 1px solid #ddd6e4;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--berry); }
.site-footer .brand-text { color: var(--ink); }
.site-footer .brand-text small { color: var(--muted); }
.fb-big { filter: drop-shadow(0 18px 22px rgba(31, 22, 51, .2)); margin: 0 0 46px; }
.fb-shape {
  position: relative; background: linear-gradient(180deg, #ffffff, #eeebf2); padding: 18px 88px;
  clip-path: polygon(0 50%, 64px 0, calc(100% - 64px) 0, 100% 50%, calc(100% - 64px) 100%, 64px 100%);
}
.fb-shape::before, .fb-shape::after { content: ""; position: absolute; top: 30%; bottom: 30%; width: 2px; background: #cdc6d6; border-radius: 2px; }
.fb-shape::before { left: 66px; }
.fb-shape::after { right: 66px; }
.fb-panel {
  --notch: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  background: linear-gradient(180deg, #fbcf74, #e9a22a); color: #3b2600; padding: 24px calc(var(--notch) + 26px);
  border-radius: 14px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.fb-panel.teal { background: linear-gradient(180deg, #5cc9c4, #0b7f7b); color: #fff; }
.fb-panel h2 { font: 600 clamp(1.25rem, 2.4vw, 1.7rem)/1.2 var(--f-display); margin: 0; color: inherit; letter-spacing: -.01em; text-transform: none; }
.fb-panel p { margin: 4px 0 0; font-size: .92rem; opacity: .9; }
.fb-panel .btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.foot-grid { gap: 30px; }
.foot-grid > div + div { position: relative; padding-left: 26px; }
.foot-grid > div + div::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--berry), #b8673f 35%, var(--teal) 68%, var(--plum));
}
.fh {
  --c: var(--berry);
  display: inline-block; margin: 0 0 16px; padding: 5px 16px; background: #fff; filter: drop-shadow(0 4px 6px rgba(31, 22, 51, .15));
  clip-path: polygon(0 50%, 13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%);
}
.fh span {
  display: block; padding: 6px 20px; background: var(--c); color: #fff; font: 700 .72rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; border-radius: 4px;
  -webkit-mask: radial-gradient(circle 8px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
}
.site-footer h2.fh { font-size: inherit; letter-spacing: 0; text-transform: none; }
.site-footer .hbar { margin: 40px 0 0; }
.disclose { border-top: 0; margin-top: 18px; padding-top: 0; color: var(--muted); }

/* ---------- responsive v2 ---------- */
@media (max-width: 1180px) { .tab .t small { display: none; } .tabs { gap: 6px; } }
@media (max-width: 1024px) {
  .head-top .head-note { display: none; }
  .head-top .vbars { margin-right: auto; }
  .prose ol.steps.grid3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid > div:nth-child(2)::before, .foot-grid > div:nth-child(5)::before { display: none; }
  .foot-grid > div:nth-child(2), .foot-grid > div:nth-child(5) { padding-left: 0; }
}
@media (max-width: 860px) {
  .site-header.compact .head-top { height: 68px; opacity: 1; }
  .tabnav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 18px var(--gutter) 22px 34px;
    box-shadow: 0 24px 30px -20px rgba(31, 22, 51, .35); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .tabnav::before {
    content: ""; position: absolute; left: var(--gutter); top: 18px; bottom: 22px; width: 5px; border-radius: 5px;
    background: linear-gradient(180deg, var(--berry), #b8673f 35%, var(--teal) 68%, var(--plum));
  }
  .tabnav.open { visibility: visible; opacity: 1; transform: none; }
  .tabs { flex-direction: column; gap: 14px; width: 100%; }
  .tab { margin-left: 30px; padding: 10px 16px 10px 0; }
  .tab .t small { display: block; }
  .head-top .btn.sm { display: none; }
  .fb-shape { padding: 14px 30px; clip-path: polygon(0 50%, 22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%); }
  .fb-shape::before { left: 24px; } .fb-shape::after { right: 24px; }
  .fb-panel { --notch: 16px; padding: 22px 30px; }
  .prose ol.steps.grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .foot-grid > div + div { padding-left: 0; padding-top: 6px; }
  .foot-grid > div + div::before { display: none; }
  .fb-panel .btn { width: 100%; }
}

/* ---------- V3: hubs, glossary, tab stack, unbuilt cards ---------- */
.pillar.soon { cursor: default; }
.pillar.soon:hover { top: 0; }
.pillar.soon .more { color: var(--muted); font-weight: 500; }
.hub-grid { grid-template-columns: repeat(3, 1fr); }
.hub-grid .pillar { padding-bottom: 92px; }
.hub-grid .pillar h3 { font-size: 1.2rem; }
.city.soon .more { color: var(--muted); font-weight: 500; }
a.city { text-decoration: none; color: var(--ink); transition: transform .25s; }
a.city:hover { transform: translateY(-3px); color: var(--ink); }
.countries-grid { grid-template-columns: repeat(3, 1fr); }
.tabstack { display: grid; gap: 22px; padding: 4px 6px 0 10px; }
.tabstack .tab { margin-right: 14px; cursor: default; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; position: sticky; top: 76px; background: rgba(255,255,255,.95); padding: 8px 0; z-index: 5; }
.az a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--paper-2); text-decoration: none; font-weight: 700; color: var(--ink); }
.az a:hover { background: var(--berry); color: #fff; }
.g-letter { font-size: 2.2rem !important; color: var(--berry); border-bottom: 3px solid var(--blush); padding-bottom: 4px; scroll-margin-top: 130px !important; }
.glossary { margin: 0; }
.glossary .term { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.glossary dt { font: 600 1.15rem var(--f-display); color: var(--ink); }
.glossary dd { margin: 4px 0 0; color: var(--ink-soft); }
@media (max-width: 1024px) { .hub-grid, .countries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-grid, .countries-grid { grid-template-columns: 1fr; } .az { top: 70px; } }

/* ---------- stacked tables on phones (table.flags) ---------- */
@media (max-width: 640px) {
  .table-wrap:has(.flags) { border: 0; overflow: visible; background: none; }
  table.flags { min-width: 0; background: none; }
  .flags caption { display: block; width: 100%; padding: 0 0 10px; }
  .flags thead { display: none; }
  .flags, .flags tbody, .flags tr, .flags td { display: block; }
  .flags tr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 6px 8px; margin-bottom: 12px; box-shadow: 0 10px 22px -18px rgba(31,22,51,.5); }
  .flags td { border: 0; padding: 6px 12px; }
  .flags td::before { content: attr(data-label); display: block; font: 600 .68rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .flags td[data-label="#"] { display: inline-block; background: var(--grad-hot); color: #fff; border-radius: 8px; padding: 3px 10px; margin: 2px 12px 0; font: 700 .95rem var(--f-display); }
  .flags td[data-label="#"]::before { display: inline; content: "FLAG "; color: #fff; opacity: .85; margin-right: 4px; font-size: .62rem; }
}

/* charts that scale to fit instead of scrolling; text enlarged so it stays legible on phones */
@media (max-width: 640px) {
  .chart.fit svg text { font-size: 21px; }
  .chart.fit svg .lbl-m { font-size: 19px; }
}

/* ---------- 27-point checklist (/checklist/) ---------- */
.ck { max-width: 880px; margin: 0 auto 28px; isolation: isolate; }
.ck-meta { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 4px; margin-bottom: 18px; }
.ck-progress { position: sticky; top: 72px; z-index: 6; background: rgba(255, 248, 241, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-bottom: 26px; }
.ck-progress .meter { background: #eadfd6; margin: 0 0 8px; height: 10px; }
.ck-count { margin: 0; font-size: .95rem; }
.ck-progress .verdict { font: 500 .98rem/1.4 var(--f-body); min-height: 0; margin: 2px 0 0; color: var(--ink-soft); }
.ck-group { --c: #d6336c; position: relative; background: #fff; border-radius: 22px; padding: 22px 22px 8px; margin: 0 0 34px; box-shadow: 0 14px 30px -18px rgba(31, 22, 51, .45); }
.ck-group::before { content: ""; position: absolute; inset: -8px 14px 14px -8px; border-radius: 26px; background: var(--c); z-index: -1; }
.ck-group:nth-of-type(even)::before { inset: -8px -8px 14px 14px; }
.ck-group h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; margin: 0 0 8px; }
.ck-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--c); color: #fff; font: 700 1.1rem var(--f-display); flex: none; }
.ck-group h2 small { margin-left: auto; font: 500 .8rem var(--f-body); color: var(--muted); }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-item { border-top: 1px solid var(--line); padding: 13px 0; }
.ck-item label { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.ck-item input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--c); flex: none; }
.ck-no { font: 700 .78rem var(--f-body); color: #fff; background: var(--c); border-radius: 8px; padding: 3px 8px; margin-top: 3px; min-width: 30px; text-align: center; }
.ck-txt b { display: block; font-weight: 600; line-height: 1.4; transition: color .2s; }
.ck-how { display: block; font-size: .88rem; color: var(--muted); margin-top: 3px; }
.ck-item input:checked ~ .ck-txt b { color: var(--muted); }
.ck-item input:checked ~ .ck-no { background: var(--leaf); }
.ck-note { display: none; }
.ck-foot { background: var(--butter); border-radius: 16px; padding: 16px 20px; font-size: .95rem; }
.ck-foot p { margin: 0 0 6px; }
.ck-source { display: none; font-size: .8rem; color: var(--muted); }
.ck-hero-note { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) {
  .ck-meta { grid-template-columns: 1fr; padding-bottom: 14px; }
  .ck-item label { grid-template-columns: auto 1fr; }
  .ck-no { grid-column: 2; grid-row: 1; justify-self: start; }
  .ck-txt { grid-column: 2; grid-row: 2; }
  .ck-item input { grid-column: 1; grid-row: 1 / span 2; }
  .ck-group { padding: 18px 16px 6px; }
}
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; padding: 0 !important; }
  main > section, .crumbs, .eyebrow, .article-hero .hero-cta, .ck-progress, .ck-how a, .tabnav, .head-top .btn { display: none !important; }
  .article-hero { padding: 0 0 6pt; }
  .article-hero h1 { font-size: 20pt; margin: 0 0 4pt; }
  .article-hero .lede { font-size: 9.5pt; margin: 0; }
  .ck { max-width: none; margin: 0; }
  .ck-meta { border: 1px solid #999; border-radius: 6px; padding: 8pt; margin-bottom: 8pt; gap: 8pt; }
  .ck-meta input { border: 0; border-bottom: 1px solid #000; border-radius: 0; min-height: 22pt; padding: 2pt 0; background: none; }
  .ck-group { box-shadow: none; border: 1px solid #999; border-radius: 6px; margin: 0 0 8pt; padding: 8pt 10pt 2pt; break-inside: auto; }
  .ck-group::before { display: none; }
  .ck-group h2 { font-size: 13pt; margin: 0 0 2pt; }
  .ck-badge { width: 22pt; height: 22pt; font-size: 11pt; background: #000; }
  .ck-no { background: #000 !important; color: #fff; }
  .ck-item { break-inside: avoid; padding: 5pt 0; border-top: 1px solid #bbb; }
  .ck-item input { width: 13pt; height: 13pt; }
  .ck-how { font-size: 8.5pt; color: #444; }
  .ck-note { display: block; height: 15pt; border-bottom: 1px dotted #777; margin: 2pt 0 0 52pt; }
  .ck-foot { background: none; border: 1px solid #999; border-radius: 6px; font-size: 8.5pt; padding: 6pt 8pt; break-inside: avoid; }
  .ck-source { display: block; }
}
@media (max-width: 700px) {
  .ck-progress { padding: 8px 14px; top: 68px; border-radius: 14px; }
  .ck-progress .meter { margin-bottom: 4px; height: 8px; }
  .ck-progress .verdict { display: none; }
  .ck-count { font-size: .88rem; }
}

.chart .ch4 { font: 600 1rem var(--f-body); margin: 0 0 2px; letter-spacing: 0; }

/* ---------- site search ---------- */
.search-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; min-height: 40px; padding: 6px 14px; font: 600 .9rem var(--f-body); cursor: pointer; box-shadow: 0 8px 16px -12px rgba(31, 22, 51, .55); transition: transform .2s, border-color .2s; }
.search-btn:hover { transform: translateY(-1px); border-color: var(--berry); }
.search-btn svg { width: 18px; height: 18px; flex: none; }
.search-btn kbd { font: 600 .72rem var(--f-body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--paper); }
.head-search { display: none; width: 44px; height: 44px; padding: 0; justify-content: center; }
.tab-search { display: flex; align-items: center; list-style: none; margin-top: 6px; }
@media (max-width: 860px) { .head-search { display: inline-flex; } .tab-search { display: none; } }
body.search-open { overflow: hidden; }
.search-overlay { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: min(11vh, 100px) 16px 16px; background: rgba(31, 22, 51, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-overlay[hidden] { display: none; }
.search-panel { width: min(680px, 100%); max-height: 82vh; overflow: auto; background: var(--paper); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(31, 22, 51, .65); padding: 14px 14px 12px; }
.search-form { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 6px 8px 6px 14px; }
.search-form:focus-within { border-color: var(--berry); box-shadow: 0 0 0 4px rgba(214, 51, 108, .18); }
.search-form > svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1.1rem var(--f-body); color: var(--ink); min-height: 44px; padding: 0; border-radius: 0; -webkit-appearance: none; appearance: none; }
.search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-form input:focus-visible { outline: none; }
.search-close { border: 1px solid var(--line); background: var(--paper); color: var(--muted); border-radius: 8px; font: 600 .75rem var(--f-body); padding: 4px 9px; cursor: pointer; }
.search-hint { margin: 10px 4px 4px; font-size: .88rem; color: var(--muted); min-height: 1.3em; }
#search-results, .sp-list { list-style: none; margin: 4px 0 0; padding: 0; }
#search-results a, .sp-list a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
#search-results li[aria-selected="true"] a, #search-results a:hover, .sp-list a:hover { background: var(--blush); }
.sr-sec { font: 700 .66rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--berry); }
.sr-title { font: 600 1.02rem/1.3 var(--f-body); }
.sr-desc { font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.sr-url { font-size: .78rem; color: var(--muted); }
.search-panel mark, .sp-list mark { background: var(--butter); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-all { display: block; margin: 6px 4px 2px; font-weight: 600; font-size: .92rem; }
.search-popular { margin: 10px 4px 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); }
.search-popular a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; text-decoration: none; color: var(--ink-soft); }
.search-popular a:hover { border-color: var(--berry); color: var(--berry); }
.search-popular[hidden], .search-all[hidden] { display: none; }
.sp-form { max-width: 720px; margin: 0 0 8px; }
.sp-list { max-width: 720px; }
.sp-list li { border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .search-overlay { padding: 8px; } .search-panel { max-height: 94vh; border-radius: 18px; } }
@media print { .search-overlay, .search-btn { display: none !important; } }
