/* ==========================================================================
   Style Vault · a Ria's Colony product
   Brand tokens follow the Ria's Colony Visual Identity System: Colony Deep,
   Colony Plum, warm ivory and soft lavender, paired with Style Vault's refined
   Lagoon Teal accent (no blue, no gold, no terracotta/orange).
   Display: DM Sans. Body: Figtree.
   ========================================================================== */

:root {
  --deep: #1a0a1e;
  --plum: #5c0060;
  --plum-hover: #73147a;
  --ink: #1c1c1e;
  --ink-2: #4a4150;
  --muted: #6b5f70;          /* AA on white; the brand grey #8a7d8f is used for decoration only */
  --line: #ebe3ef;
  --line-strong: #d9cde0;
  --white: #ffffff;
  --warm: #faf7fb;
  --lavender: #f0e6f6;
  /* Secondary hues: rose for "official" sources and warnings, light teal on dark grounds */
  --rose: #a3245e;
  --rose-soft: #fbe9f1;
  --teal-glow: #7fe0d2;

  /* Lagoon Teal accent: a cool counterpoint to Colony Purple */
  --accent: #0d7470;
  --accent-hover: #095c59;
  --accent-light: #e3f3f1;
  --accent-subtle: #f3faf9;
  --accent-border: #b6dcd7;
  --accent-text: #08524f;

  /* Backward-compatible aliases mapped to warm accent */
  --blue: var(--accent);
  --blue-hover: var(--accent-hover);
  --blue-light: var(--accent-light);

  --green: #0e6655;
  --green-light: #e5f2ee;
  --danger: #b42318;

  --font-display: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgb(26 10 30 / 0.04), 0 4px 16px -6px rgb(26 10 30 / 0.08);
  --shadow-lift: 0 2px 4px rgb(26 10 30 / 0.04), 0 18px 40px -16px rgb(26 10 30 / 0.22);
  --focus: 0 0 0 3px rgb(13 116 112 / 0.28);

  --wrap: 1180px;
  --gutter: clamp(36px, 6vw, 92px);
  --header-h: 72px;
  --tabbar-h: 58px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); scrollbar-gutter: stable; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--white); color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; color: var(--deep); }
p { margin: 0; }
::selection { background: var(--lavender); color: var(--deep); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
main:focus, main:focus-visible { box-shadow: none; outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1; padding-bottom: 72px; }
.icon { width: 20px; height: 20px; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; line-height: 1; }
.brand-logo-mark { width: 32px; height: 32px; object-fit: contain; flex: none; display: block; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.025em; color: var(--deep); line-height: 1; display: inline-flex; align-items: center; }
.brand-by { display: inline-flex; align-items: center; gap: 6px; height: 18px; padding-left: 10px; border-left: 1.5px solid var(--line-strong); line-height: 1; font-family: var(--font-body); font-size: 0.74rem; font-weight: 500; color: var(--muted); text-transform: lowercase; }
.brand-by-txt { font-family: var(--font-body); font-size: 0.74rem; font-weight: 500; color: var(--muted); text-transform: lowercase; line-height: 1; display: inline-flex; align-items: center; }
.brand-by img { height: 18px; width: auto; display: block; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a:not(.nav-icon) { position: relative; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 0.93rem; color: var(--ink-2); transition: color 0.2s, background 0.2s; }
.main-nav > a:not(.nav-icon):hover { color: var(--plum); }
.main-nav > a[aria-current="page"] { color: var(--plum); font-weight: 600; }
.nav-icon { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.nav-icon:hover, .nav-icon[aria-current="page"] { background: var(--warm); color: var(--plum); }
.count-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.account-slot { display: inline-flex; align-items: center; margin-left: 6px; }
.mobile-actions { display: none; align-items: center; gap: 4px; }

.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: #fff; font: 600 0.76rem var(--font-display); letter-spacing: 0.02em; }
.account-menu { position: relative; display: flex; align-items: center; }
.account-menu > button { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift); padding: 6px; display: none; }
.account-menu.open .menu-pop { display: block; animation: rise 0.18s var(--ease); }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head strong { display: block; font-family: var(--font-display); }
.menu-head span { font-size: 0.82rem; color: var(--muted); word-break: break-all; }
.menu-pop a, .menu-pop button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-size: 0.92rem; color: var(--ink-2); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--warm); color: var(--plum); }
.menu-pop .icon { width: 18px; height: 18px; }

/* ── Buttons, chips, inputs ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; max-width: 100%; padding: 8px 18px; border-radius: 8px; border: 1px solid transparent; font: 600 0.88rem/1.25 var(--font-display); text-align: center; white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; flex: none; }
.btn-accent, .btn-blue { background: var(--accent); color: #fff; }
.btn-accent:hover, .btn-blue:hover { background: var(--accent-hover); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-hover); }
.btn-white { background: #fff; color: var(--deep); }
.btn-white:hover { background: var(--lavender); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--deep); }
.btn-outline:hover { border-color: var(--plum); color: var(--plum); }
.btn-outline-light { background: transparent; border-color: rgb(255 255 255 / 0.55); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.12); }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 7%, transparent); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.82rem; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn.is-on { background: var(--accent-light); color: var(--accent); border-color: transparent; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font: 600 0.93rem var(--font-display); color: var(--accent); }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap-chips { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 500 0.86rem var(--font-body); white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--plum); color: var(--plum); }
.chip[aria-pressed="true"], .chip.active { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip .flag { width: 18px; height: 13px; }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--lavender); color: var(--plum); font: 600 0.72rem var(--font-body); letter-spacing: 0.01em; white-space: nowrap; }
.tag.kind-research { background: var(--accent-light); color: var(--accent); }
.tag.kind-analysis { background: var(--lavender); color: var(--plum); }
.tag.kind-official { background: var(--rose-soft); color: var(--rose); }
.tag.kind-news { background: var(--warm); color: var(--ink-2); border: 1px solid var(--line); }
a.tag { position: relative; z-index: 1; }
a.tag:hover { filter: brightness(0.96); }

.field { display: grid; gap: 6px; }
.field label { font: 600 0.88rem var(--font-display); color: var(--deep); }
.hint { font-size: 0.82rem; color: var(--muted); }
.input, .select { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5f70' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap .reveal { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.form-error { display: none; padding: 11px 14px; border-radius: 12px; font-size: 0.9rem; font-weight: 500; background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); }
.form-error.show { display: block; }

/* ── Typography helpers ───────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.75rem var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  line-height: 1.2;
}
.eyebrow .icon, .eyebrow svg { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: middle; }
.eyebrow.accent, .eyebrow.blue { color: var(--accent); }
.lede { font-size: 0.90rem; color: var(--ink-2); max-width: 600px; line-height: 1.55; }
.muted { color: var(--muted); }
.section { padding-block: clamp(52px, 6vw, 76px); }
.section.spacious { padding-block: clamp(68px, 8vw, 96px); }
.section.tight { padding-block: 44px; }
.section.warm { background: var(--warm); }
.section.white { background: var(--white); }
.section.lavender { background: var(--lavender); }
.section.accent, .section.blue { background: var(--accent-light); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.18rem, 2vw, 1.40rem); margin-top: 5px; letter-spacing: -0.015em; line-height: 1.25; font-weight: 600; }
.section-head p { color: var(--ink-2); margin-top: 5px; max-width: 560px; font-size: 0.85rem; line-height: 1.5; }

/* ── Badges & search field ─────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; max-width: 100%; padding: 5px 12px; line-height: 1.3; border-radius: 999px; background: var(--accent-light); border: 1px solid var(--accent-border); color: var(--accent-text); font: 600 0.70rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.badge.badge-solid { background: var(--plum); border-color: var(--plum); color: #fff; }
.hero-search { margin-top: 22px; position: relative; max-width: 480px; }
.hero-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 16px; height: 16px; }
.hero-search input { width: 100%; height: 42px; padding: 0 104px 0 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); font-size: 0.88rem; box-shadow: 0 6px 24px -10px rgb(26 10 30 / 0.08); transition: border-color 0.2s, box-shadow 0.2s; }
.hero-search input:focus { outline: none; border-color: var(--plum); box-shadow: var(--focus); }
.hero-search button { position: absolute; right: 5px; top: 5px; min-height: 32px; height: 32px; border-radius: 8px; padding-inline: 14px; padding-block: 0; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }

.page-hero { background: linear-gradient(180deg, #faf4fc 0%, #f3faf9 100%); border-bottom: 1px solid rgb(92 0 96 / 0.1); }
.page-hero .wrap { padding-block: 34px 30px; }
.page-hero h1 { font-size: clamp(1.32rem, 2.3vw, 1.62rem); margin-top: 6px; letter-spacing: -0.02em; line-height: 1.22; }
.page-hero .lede { margin-top: 8px; }
.research-hero .wrap { padding-top: clamp(52px, 7vw, 72px); }

/* ── Trust strip ──────────────────────────────────────────────────────────── */
.trust-strip { border-bottom: 1px solid var(--line); }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.trust-item strong { display: block; font: 700 1.05rem var(--font-display); color: var(--deep); }
.trust-item span { font-size: 0.86rem; color: var(--muted); }

/* ── Map explorer ─────────────────────────────────────────────────────────── */
.explorer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.africa-map { width: 100%; height: auto; }
.africa-map path.country { fill: #cdb4dc; stroke: #fff; stroke-width: 1.4; cursor: pointer; transition: fill 0.18s; }
.africa-map path.country[data-region="North"] { fill: #d9c6e4; }
.africa-map path.country[data-region="West"] { fill: #c4a7d5; }
.africa-map path.country[data-region="Central"] { fill: #b896cc; }
.africa-map path.country[data-region="East"] { fill: #cbb0da; }
.africa-map path.country[data-region="Southern"] { fill: #d3bce0; }
.africa-map path.country:hover, .africa-map path.country.on { fill: var(--plum); }
.africa-map path.neutral { fill: #ece6ef; stroke: #fff; stroke-width: 1.2; }
.africa-map circle.island { fill: #b896cc; stroke: #fff; stroke-width: 2; cursor: pointer; transition: fill 0.18s; }
.africa-map circle.island:hover, .africa-map circle.island.on { fill: var(--plum); }
.africa-map :focus-visible { outline: none; fill: var(--accent) !important; }

.preview-card { background: #fff; border: 1px solid var(--line); border-top: 3.5px solid var(--plum); border-radius: 16px; padding: clamp(20px, 3.5vw, 28px); box-shadow: 0 4px 20px -4px rgb(92 0 96 / 0.1); }
.preview-card .pc-head { display: flex; gap: 14px; align-items: center; }
.preview-card .flag-lg { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 4px 12px -4px rgb(0 0 0 / 0.25); flex: none; }
.preview-card h3 { font-size: clamp(1.35rem, 2.5vw, 1.6rem); line-height: 1.22; margin-top: 2px; }
.preview-card .pc-sub { font-size: 0.86rem; color: var(--muted); margin-top: 2px; }
.preview-card > p { color: var(--ink-2); margin-top: 8px; }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.pc-stat { padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #faf4fc 0%, #f0faf8 100%); border: 1px solid rgb(92 0 96 / 0.12); }
.pc-stat strong { display: block; font: 700 1.05rem/1.2 var(--font-display); color: var(--deep); word-break: normal; overflow-wrap: break-word; }
.pc-stat span { font-size: 0.76rem; color: var(--muted); margin-top: 3px; display: block; font-weight: 500; }
.pc-btn { font-size: 0.92rem; height: 46px; border-radius: 12px; justify-content: center; text-align: center; font-weight: 600; }
.reg-card-head { margin-bottom: 12px; }
.reg-card-head h3 { font-size: clamp(1.22rem, 2.2vw, 1.45rem); color: var(--deep); margin-top: 4px; }
.cute-region-grid { display: grid; gap: 8px; margin-bottom: 14px; }
.cute-reg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; background: #ffffff; border: 1.5px solid rgb(92 0 96 / 0.1); color: var(--deep); font: inherit; cursor: pointer; text-align: left; transition: all 0.2s var(--ease); box-shadow: 0 2px 6px rgb(92 0 96 / 0.03); }
.cute-reg-row:hover { background: linear-gradient(135deg, #faf3fc 0%, #f0faf8 100%); border-color: var(--plum); transform: translateX(3px); }
.crr-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crr-icon { font-size: 1.15rem; line-height: 1; flex: none; }
.crr-name { font-size: 0.92rem; font-weight: 600; color: var(--deep); }
.crr-right { display: flex; align-items: center; gap: 8px; flex: none; }
.crr-count { font-size: 0.74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-light); color: var(--accent-text); }
.crr-arrow { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s; }
.cute-reg-row:hover .crr-arrow { color: var(--plum); transform: translateX(2px); }

.cute-country-search-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #faf4fc 0%, #f2faf8 100%); border: 1.5px solid rgb(92 0 96 / 0.18); color: var(--deep); cursor: pointer; text-align: left; transition: all 0.2s; box-shadow: 0 2px 8px rgb(92 0 96 / 0.05); }
.cute-country-search-btn:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgb(13 116 112 / 0.15); transform: translateY(-1px); }
.ccsb-icon { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--plum); flex: none; box-shadow: 0 2px 6px rgb(92 0 96 / 0.08); }
.ccsb-icon .icon { width: 16px; height: 16px; }
.ccsb-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ccsb-text strong { font-size: 0.88rem; color: var(--deep); font-weight: 700; }
.ccsb-text span { font-size: 0.74rem; color: var(--muted); }
.cute-btn-pill { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--plum); color: #fff; letter-spacing: 0.03em; flex: none; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.read-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r); transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.read-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.read-card.kind-analysis { border-top-color: var(--plum); }
.read-card.kind-official { border-top-color: var(--rose); }
.read-card .rc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); }
.read-card .rc-meta strong { color: var(--ink-2); font-weight: 600; }
.read-card h3 { font-size: 0.96rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.read-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.read-card .summary { color: var(--ink-2); font-size: 0.84rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-card .rc-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }

.flags { display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 1; flex-wrap: wrap; }
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.07); flex: none; }
.flag-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 500; }
.flag-link:hover { color: var(--plum); }

.actions { display: flex; gap: 2px; position: relative; z-index: 1; }
.act { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; border: 0; background: none; color: var(--muted); transition: background 0.2s, color 0.2s; }
.act:hover { background: var(--warm); color: var(--plum); }
.act .icon { width: 17px; height: 17px; }
.act.saved { color: var(--accent); }

/* News list rows */
.news-list { display: grid; gap: 6px; }
.news-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-row:first-child { padding-top: 4px; }
.news-row.has-thumb { grid-template-columns: 118px minmax(0, 1fr); align-items: start; }
@media (max-width: 620px) {
  .news-row.has-thumb { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .news-row.has-thumb .news-thumb { width: 100%; height: 164px; }
}
.news-row .nr-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.80rem; color: var(--muted); }
.news-row .nr-meta strong { color: var(--deep); font-weight: 600; }
.news-row h3 { margin-top: 6px; font-size: 0.98rem; font-weight: 600; line-height: 1.38; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.news-row h3 a::after { content: ''; position: absolute; inset: 0; }
.news-row h3 a:hover { color: var(--plum); }
.news-row .summary { margin-top: 6px; color: var(--ink-2); font-size: 0.85rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row .nr-foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-row .nr-foot .actions { margin-left: auto; }
.news-thumb { width: 118px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--warm); align-self: start; flex: none; box-shadow: 0 1px 3px rgb(26 10 30 / 0.08); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* ── Country directory ───────────────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.toolbar .input, .toolbar .select { height: 46px; max-width: 320px; }
.region-block { margin-top: 44px; }
.region-block:first-child { margin-top: 0; }
.region-block h2 { font-size: 1.35rem; display: flex; align-items: baseline; gap: 10px; }
.region-block h2 span { font: 400 0.9rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.follow-star { position: relative; z-index: 1; }
.follow-star.is-on { color: var(--accent); }

/* ── Countries index: a fine, airy list ─────────────────────────────────── */
.cl-hero { background: linear-gradient(180deg, #faf6fc 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.cl-hero .wrap { padding-block: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 40px); }
.cl-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--deep); }
.cl-hero p { margin-top: 10px; max-width: 520px; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }

.cl-body { background: var(--warm); margin-bottom: -72px; }
.cl-page { padding-block: clamp(28px, 4vw, 40px) clamp(88px, 10vw, 128px); }
.cl-toolbar { display: flex; align-items: center; gap: 16px; }
.cl-search { position: relative; flex: 0 1 300px; display: flex; align-items: center; }
.cl-search .icon { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.cl-search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: 400 0.88rem var(--font-body); color: var(--deep); transition: border-color 0.2s, box-shadow 0.2s; }
.cl-search input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgb(92 0 96 / 0.1); }
.cl-chips { flex: 1; min-width: 0; }
.cl-chips .chip { height: 34px; padding: 0 14px; font-size: 0.84rem; }
.cl-select { display: none; position: relative; }
.cl-select-btn { width: 100%; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: 500 0.88rem var(--font-body); color: var(--deep); text-align: left; transition: border-color 0.2s, box-shadow 0.2s; }
.cl-select-btn:focus-visible, .cl-select-btn[aria-expanded="true"] { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgb(92 0 96 / 0.1); }
.cl-select-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-select-count { font-size: 0.78rem; color: var(--muted); }
.cl-select-btn > .icon { width: 16px; height: 16px; color: var(--plum); transition: transform 0.2s var(--ease); }
.cl-select-btn[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.cl-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px -12px rgb(26 10 30 / 0.22), 0 2px 6px rgb(26 10 30 / 0.05); animation: cl-menu-in 0.16s var(--ease); }
.cl-menu[hidden] { display: none; }
.cl-menu-opt { width: 100%; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; border: 0; border-radius: 9px; background: none; font: 400 0.87rem var(--font-body); color: var(--ink-2); text-align: left; }
.cl-menu-opt > span:first-child { flex: 1; }
.cl-menu-count { font-size: 0.76rem; color: var(--muted); }
.cl-menu-opt .icon { width: 15px; height: 15px; color: var(--plum); visibility: hidden; }
.cl-menu-opt:hover, .cl-menu-opt:focus-visible { outline: none; background: var(--warm); color: var(--deep); }
.cl-menu-opt[aria-selected="true"] { background: var(--lavender); color: var(--plum); font-weight: 600; }
.cl-menu-opt[aria-selected="true"] .cl-menu-count { color: var(--plum); opacity: 0.7; }
.cl-menu-opt[aria-selected="true"] .icon { visibility: visible; }
@keyframes cl-menu-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .cl-menu { animation: none; } }

.cl-region { margin-top: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgb(26 10 30 / 0.03); }
[data-list] > .cl-region:first-child { margin-top: clamp(28px, 4vw, 36px); }
.cl-region-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbf8fc 0%, #ffffff 100%); }
.cl-region-head h2 { position: relative; padding-left: 14px; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em; color: var(--deep); }
.cl-region-head h2::before { content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 3px; border-radius: 3px; background: var(--plum); }
.cl-region-head span { font-size: 0.8rem; color: var(--muted); }
.cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; padding: 0 24px; margin-bottom: -1px; }

.cl-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid #f1ebf4; }
.cl-flag { width: 32px; height: 22px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(26 10 30 / 0.08); }
.cl-text { min-width: 0; }
.cl-row h3 { font: 500 0.95rem/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--deep); }
.cl-row h3 a { transition: color 0.18s; }
.cl-row h3 a::after { content: ''; position: absolute; inset: 0; }
.cl-row:hover h3 a { color: var(--plum); }
.cl-sub { margin-top: 2px; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-row .follow-star { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--line-strong); transition: color 0.18s, background 0.18s; }
.cl-row .follow-star .icon { width: 16px; height: 16px; }
.cl-row:hover .follow-star, .cl-row .follow-star:focus-visible { color: var(--muted); }
.cl-row .follow-star:hover { color: var(--plum); background: var(--warm); }
.cl-row .follow-star.is-on { color: var(--accent); }
.cl-empty { padding: 48px 0; color: var(--muted); }

@media (max-width: 1000px) { .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cl-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .cl-search { flex: none; }
  .cl-chips { display: none; }
  .cl-select { display: block; }
}
@media (max-width: 640px) {
  .cl-grid { grid-template-columns: minmax(0, 1fr); }
  .cl-region-head { padding: 14px 18px; }
  .cl-grid { padding: 0 18px; }
  .cl-row { padding: 14px 0; }
  .cl-row .follow-star { color: var(--muted); }
}


/* ── Country file ─────────────────────────────────────────────────────────── */
.cf-hero {
  background: linear-gradient(180deg, #faf6fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.cf-hero .wrap {
  padding-block: clamp(22px, 3.5vw, 36px) clamp(20px, 3vw, 28px);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.80rem;
  color: var(--muted);
}
.crumbs a {
  transition: color 0.16s;
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--plum);
}
.crumbs span[aria-current="page"] {
  color: var(--deep);
  font-weight: 500;
}

.cf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cf-head-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.cf-flag {
  width: clamp(56px, 7vw, 76px);
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(26, 10, 30, 0.08);
  flex: none;
}
.cf-id {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.cf-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.cf-id h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--deep);
  overflow-wrap: anywhere;
}
.cf-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cf-actions .btn {
  height: 38px;
  border-radius: 9px;
  font-weight: 500;
}

/* Keyfacts Breathable Grid */
.cf-keyfacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(16px, 2.5vw, 24px) 0 0;
}
@media (max-width: 720px) {
  .cf-keyfacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cf-keyfacts > div {
  padding: 12px 16px;
  background: #faf7fb;
  border: 1px solid #efe4f3;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  transition: all 0.15s ease;
}
.cf-keyfacts > div:hover {
  background: #f7eff9;
  border-color: #dfcee4;
}
.cf-keyfacts dt {
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.cf-keyfacts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-stat small, .cf-ind-val small { font-size: 0.62em; font-weight: 600; letter-spacing: 0; }
.cf-keyfacts dd small { font-size: 1em; }
.cf-yr { font: 400 0.74rem var(--font-body); color: var(--muted); letter-spacing: 0; }

/* Quick Travel Intelligence Banner on Country Page */
.cf-tools-bar {
  margin-top: 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #faf5fc 0%, #f0faf8 100%);
  border: 1px solid #e7d8ed;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cf-tools-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
}
.cf-tools-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--plum);
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cf-tools-lede {
  color: var(--deep);
  font-weight: 500;
}
.cf-tools-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cf-tool-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dcd0e5;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
  transition: all 0.15s ease;
}
.cf-tool-chip:hover {
  background: var(--plum);
  color: #ffffff;
  border-color: var(--plum);
}

.cf-tools-section {
  padding-block: clamp(32px, 5vw, 60px) clamp(48px, 7vw, 84px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #faf7fc 0%, #ffffff 100%);
}
.cf-tools-section .cf-tools-bar {
  margin-top: 0;
  padding: clamp(14px, 2.5vw, 20px) clamp(16px, 3vw, 24px);
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(92, 0, 96, 0.04);
}

.cf-section { padding-block: clamp(52px, 7vw, 92px); min-height: 45vh; }
.cf-section[hidden] { display: none; }
.cf-section h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; letter-spacing: -0.015em; color: var(--deep); margin-top: 6px; }
.cf-section .sec-intro { color: var(--muted); margin-top: 6px; max-width: 600px; font-size: 0.88rem; line-height: 1.55; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 18px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 40px); }

/* Overview: headline stats + profile */
.cf-overview { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.cf-stat { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 18px 20px; }
.cf-stat:nth-child(even) { border-left: 1px solid var(--line); }
.cf-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
.cf-stat .lbl { font: 500 0.78rem var(--font-display); color: var(--muted); }
.cf-stat strong { font: 700 clamp(1.2rem, 2.4vw, 1.55rem)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--deep); white-space: nowrap; }

.cf-profile { margin: 0; padding: 4px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cf-profile > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.cf-profile > div:first-child { border-top: 0; }
.cf-profile dt { font: 500 0.8rem var(--font-display); color: var(--muted); }
.cf-profile dd { margin: 0; min-width: 0; font-size: 0.9rem; font-weight: 500; color: var(--deep); }
.cf-profile .text-link { font-size: 0.9rem; }
.cf-blocs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cf-blocs li { line-height: 1.4; }
.cf-blocs abbr { margin-left: 4px; white-space: nowrap; font-size: 0.74rem; font-weight: 500; color: var(--muted); text-decoration: none; letter-spacing: 0.02em; }

/* Indicators: compact tiles with sparkline */
.cf-ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cf-ind {
  display: grid;
  grid-template-areas: "head head" "val spark";
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 12px 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cf-ind:hover { border-color: var(--accent-border); box-shadow: var(--shadow); }
.cf-ind-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.cf-ind-head .lbl { font: 600 0.88rem var(--font-display); color: var(--deep); }
.cf-ind-head .unit { font-size: 0.74rem; color: var(--muted); }
.cf-ind-val { grid-area: val; display: grid; gap: 3px; }
.cf-ind-val strong { font: 700 1.3rem/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--deep); white-space: nowrap; }
.cf-ind-spark { grid-area: spark; min-width: 0; }
.cf-trend { display: block; width: 100%; height: 34px; overflow: visible; }
.cf-trend path { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cf-ind.is-empty .cf-ind-val strong { font-size: 1rem; font-weight: 500; color: var(--muted); }

/* News: topic filter + a calmer list (country flag and tags are redundant here) */
.cf-chips { margin-bottom: 8px; }
.cf-chips .chip { height: 32px; padding: 0 13px; font-size: 0.82rem; }
.cf-news .news-row { padding: 22px 0; }
.cf-news .nr-meta { padding-right: 76px; }
.cf-news .nr-meta .flags, .cf-news .nr-meta .dot-sep:has(+ .flags), .cf-news .nr-foot > .tag { display: none; }
.cf-news .nr-foot { position: absolute; top: 14px; right: 0; margin: 0; }
.cf-news .news-row h3 { margin-top: 8px; font-size: 1rem; line-height: 1.45; }

@media (max-width: 900px) {
  .cf-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cf-ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cf-head { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .cf-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
  }
  .cf-actions [data-follow-slot] {
    display: inline-flex;
    flex: none;
  }
  .cf-actions [data-follow-slot] .btn {
    width: auto !important;
    min-width: 0;
    padding: 0 16px;
    height: 36px;
    font-size: 0.84rem;
  }
  .cf-actions .cf-share {
    height: 36px;
    padding: 0 14px;
    font-size: 0.84rem;
  }
  .cf-keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-keyfacts > div { padding: 12px 14px; }
  .cf-keyfacts > div:nth-child(odd) { border-left: 0; }
  .cf-keyfacts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cf-keyfacts dd { font-size: 0.88rem; }
  .cf-stat { padding: 14px 16px; }
  .cf-stat strong { font-size: 1.15rem; }
  .cf-profile { padding: 2px 18px; }
  .cf-profile > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  /* Indicators become one tidy list: label · trend · value */
  .cf-ind-grid { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
  .cf-ind { grid-template-areas: "head spark val"; grid-template-columns: minmax(0, 1fr) 60px auto; align-items: center; gap: 14px; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .cf-ind:first-child { border-top: 0; }
  .cf-ind:hover { box-shadow: none; background: var(--accent-subtle); }
  .cf-ind-head { flex-direction: column; align-items: flex-start; }
  .cf-ind-head .lbl { font-size: 0.86rem; }
  .cf-ind-val { justify-items: end; text-align: right; }
  .cf-ind-val strong { font-size: 1.02rem; }
  .cf-trend { height: 24px; }
  .cf-section { padding-block: 44px 68px; }
  .sec-head { margin-bottom: 26px; }
  .further { gap: 10px; }
  .further a { padding: 14px; }
  .source-row { padding: 12px 14px; }
}

.indicator-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.ind-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; gap: 2px; }
.ind-card .lbl { font: 600 0.92rem var(--font-display); color: var(--deep); }
.ind-card .unit { font-size: 0.8rem; color: var(--muted); }
.ind-card .val { margin-top: 10px; font: 700 1.65rem/1 var(--font-display); color: var(--deep); letter-spacing: -0.02em; }
.ind-card .yr { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.spark { margin-top: 12px; width: 100%; height: 46px; overflow: visible; }
.spark path.line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark path.area { fill: var(--accent-light); }
.spark-range { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); margin-top: 4px; }
.ind-card .src-link { margin-top: 12px; font-size: 0.78rem; color: var(--accent); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.ind-card .src-link .icon { width: 13px; height: 13px; }
.ind-card.empty-ind .val { color: var(--muted); font-size: 1.05rem; font-weight: 500; }
.citation { margin-top: 22px; font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.citation .icon { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.citation a { color: var(--accent); font-weight: 600; }

.further { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 24px; }
.further a { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.further a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.further .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-light); color: var(--accent); flex: none; }
.further strong { display: block; font: 600 0.95rem var(--font-display); color: var(--deep); }
.further span { font-size: 0.8rem; color: var(--muted); }
.further a.rc .ic { background: var(--lavender); color: var(--plum); }

.source-list { display: grid; gap: 10px; }
.source-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.source-row .name { font: 600 0.98rem var(--font-display); color: var(--deep); }
.source-row .sub { font-size: 0.82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.health { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.health.warn { background: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.health.bad { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent); }
.health.idle { background: var(--line-strong); box-shadow: 0 0 0 3px var(--warm); }

/* ── Feature: country file sample on the home page ────────────────────────── */
.sample { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
.sample-copy h2 { font-size: clamp(1.18rem, 2vw, 1.38rem); margin-top: 6px; letter-spacing: -0.015em; line-height: 1.28; }
.sample-copy > p { margin-top: 10px; color: var(--ink-2); font-size: 0.86rem; line-height: 1.55; }
.sample-copy ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; }
.sample-copy li { display: flex; gap: 10px; color: var(--ink-2); font-size: 0.84rem; line-height: 1.45; }
.sample-copy li .icon { color: var(--accent); margin-top: 2px; width: 16px; height: 16px; flex: none; }
.sample-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.sample-card .sc-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sample-card .sc-head img { width: 46px; height: 34px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06); }
.sample-card .sc-head h3 { font-size: 1.08rem; font-weight: 600; }
.sample-card .sc-head span { font-size: 0.78rem; color: var(--muted); }
.sample-card .indicator-grid { grid-template-columns: 1fr 1fr; margin-top: 14px; gap: 10px; }
.sample-card .ind-card { padding: 13px 14px; }
.sample-card .ind-card .val { font-size: 1.12rem; margin-top: 4px; }
.sample-card .spark { height: 28px; margin-top: 6px; }
.sample-card .sc-foot { margin-top: 12px; font-size: 0.75rem; color: var(--muted); }

/* ── Trust pillars ───────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar { padding: 30px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.pillar .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-light); color: var(--accent); margin-bottom: 18px; }
.pillar h3 { font-size: 1.15rem; }
.pillar p { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; }
.pillar a { display: inline-flex; margin-top: 14px; }

/* ── Ria's Colony band ────────────────────────────────────────────────────── */
.colony-band { background: linear-gradient(135deg, #420247 0%, #5c0060 60%, #300234 100%); color: #fff; position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid rgb(255 255 255 / 0.12); border-bottom: 4px solid var(--accent); margin-top: clamp(32px, 5vw, 56px); }
.colony-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgb(127 224 210 / 0.16), transparent 70%); z-index: -1; pointer-events: none; }
.colony-band-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 6vw, 68px); flex-wrap: wrap; }
.colony-band-copy { max-width: 620px; }
.colony-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.22); font: 600 0.72rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-glow); margin-bottom: 16px; }
.colony-kicker .icon { width: 14px; height: 14px; }
.colony-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; margin-top: 6px; }
.colony-band p { color: rgb(255 255 255 / 0.82); margin-top: 10px; font-size: 0.98rem; line-height: 1.6; max-width: 600px; }
.colony-band-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Directory Page ──────────────────────────────────────────────────────── */

/* ── Topics ───────────────────────────────────────────────────────────────── */
.topic-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.topic-card {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--plum);
  border-radius: var(--r);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.topic-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.topic-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.topic-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topic-card-icon {
  font-size: 1.45rem;
  line-height: 1;
  flex: none;
}
.topic-card h3 { font-size: 1.15rem; margin: 0; }
.topic-card h3 a { color: var(--deep); text-decoration: none; }
.topic-card h3 a:hover { color: var(--plum); }
.topic-card .follow-star {
  position: relative;
  z-index: 3;
  flex: none;
}
.topic-card p {
  color: var(--ink-2);
  font-size: 0.90rem;
  line-height: 1.5;
  margin: 0;
}
.topic-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f3eaf5;
  font-size: 0.80rem;
  color: var(--muted);
}
.topic-card-foot .topic-card-arrow {
  color: var(--plum);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}
.topic-card:hover .topic-card-foot .topic-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── Empty states, notes ──────────────────────────────────────────────────── */
.empty { text-align: center; padding: 56px 24px; border-radius: var(--r-lg); background: var(--warm); border: 1px solid var(--line); display: grid; justify-items: center; gap: 12px; }
.empty .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--lavender); color: var(--plum); }
.empty .ic .icon { width: 26px; height: 26px; }
.empty h3 { font-size: 1.35rem; }
.empty p { color: var(--ink-2); max-width: 480px; }
.empty .btn { margin-top: 8px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--accent-light); color: var(--deep); font-size: 0.92rem; }
.note .icon { color: var(--accent); margin-top: 1px; }
.note a { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.note.plum { background: var(--lavender); }
.note.plum .icon { color: var(--plum); }

/* ── Following ───────────────────────────────────────────────────────────── */
.flw-header { background: linear-gradient(180deg, #faf6fc 0%, #ffffff 100%); border-bottom: 1px solid var(--line); padding-top: clamp(76px, 9.5vw, 116px); padding-bottom: clamp(36px, 4.5vw, 52px); }
.flw-header-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.flw-header-copy { max-width: 540px; display: grid; gap: 8px; }
.flw-header-copy h1 { font-size: clamp(1.38rem, 2.2vw, 1.68rem); font-weight: 600; letter-spacing: -0.02em; color: var(--deep); line-height: 1.2; }
.flw-lede { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.flw-header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.flw-stats { display: inline-flex; align-items: center; gap: 14px; padding: 7px 14px; border-radius: 8px; background: #ffffff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgb(26 10 30 / 0.03); }
.flw-stat { display: inline-flex; align-items: baseline; gap: 5px; }
.flw-stat strong { font: 600 0.88rem var(--font-display); color: var(--deep); }
.flw-stat span { font-size: 0.74rem; color: var(--muted); }
.flw-stat-sep { width: 1px; height: 14px; background: var(--line); }
.flw-new-btn { min-height: 40px; height: 40px; padding: 0 18px; border-radius: 8px; font-size: 0.84rem; font-weight: 500; box-shadow: 0 6px 16px -6px rgb(92 0 96 / 0.4); }

/* ── Saved / Reading List ─────────────────────────────────────────────────── */
.saved-header {
  background: linear-gradient(180deg, #faf6fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 68px);
  padding-bottom: clamp(28px, 3.5vw, 40px);
}
.saved-header-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.saved-header-copy { max-width: 520px; display: grid; gap: 6px; }
.saved-header-copy h1 { font-size: clamp(1.42rem, 2.3vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; color: var(--deep); line-height: 1.2; margin: 0; }
.saved-lede { font-size: 0.88rem; color: var(--muted); line-height: 1.55; margin: 0; }
.saved-header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.saved-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 10px; background: #ffffff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgb(26 10 30 / 0.03); overflow: hidden; }
.saved-stat { display: grid; gap: 2px; padding: 10px 18px; text-align: center; }
.saved-stat + .saved-stat { border-left: 1px solid var(--line); }
.saved-stat strong { font: 600 1.1rem/1.2 var(--font-display); color: var(--deep); }
.saved-stat span { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.saved-new-btn { min-height: 44px; height: 44px; padding: 0 18px; border-radius: 10px; font-size: 0.86rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

.saved-body { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 7vw, 96px); overflow-x: clip; }
.saved-container { max-width: 940px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.saved-container > * { min-width: 0; }
.saved-header { overflow-x: clip; }
.saved-header-copy, .saved-header-right { min-width: 0; max-width: 100%; }

.saved-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #f6f1f8; border: 1px solid var(--line); max-width: 460px; }
.saved-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 500 0.86rem var(--font-body); white-space: nowrap; cursor: pointer; transition: background 0.18s, color 0.18s, box-shadow 0.18s; }
.saved-tab:hover { color: var(--plum); }
.saved-tab.active { background: #ffffff; color: var(--plum); box-shadow: 0 1px 2px rgb(26 10 30 / 0.08), 0 2px 8px rgb(26 10 30 / 0.05); }
.saved-tab-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 600; background: rgb(92 0 96 / 0.08); color: var(--ink-2); }
.saved-tab.active .saved-tab-count { background: var(--plum); color: #fff; }

/* Research filter bar */
.rf-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 44px; max-width: 760px; }
.rf-btn { display: flex; align-items: center; gap: 10px; min-width: 0; height: 56px; padding: 0 12px 0 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--deep); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 2px 8px rgb(26 10 30 / 0.03); transition: border-color 0.18s, box-shadow 0.18s; }
.rf-btn:hover { border-color: rgb(92 0 96 / 0.28); box-shadow: 0 4px 14px -4px rgb(92 0 96 / 0.14); }
.rf-btn.is-set { border-color: rgb(92 0 96 / 0.35); background: linear-gradient(180deg, #fff 0%, #fbf6fc 100%); }
.rf-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--lavender); color: var(--plum); }
.rf-ico .icon { width: 16px; height: 16px; }
.rf-ico .flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
.rf-copy { display: grid; gap: 1px; min-width: 0; flex: 1; }
.rf-copy small { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.rf-copy strong { font-size: 0.88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-chev { flex: none; width: 15px; height: 15px; color: var(--muted); }
@media (max-width: 680px) {
  .rf-bar { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 36px; }
  .rf-btn:first-child { grid-column: 1 / -1; }
  .rf-btn { height: 52px; gap: 8px; padding: 0 10px 0 8px; }
  .rf-ico { width: 30px; height: 30px; border-radius: 8px; }
}

/* Branded option picker */
dialog.sheet.op-sheet { width: min(420px, calc(100vw - 28px)); max-height: min(76dvh, 560px); }
.op-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; background: linear-gradient(135deg, var(--plum) 0%, #3d0040 100%); color: #fff; flex: none; }
.op-head-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.18); }
.op-head-icon .icon { width: 17px; height: 17px; }
.op-head-copy { display: grid; gap: 1px; flex: 1; min-width: 0; }
.op-kicker { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); }
.op-head h2 { margin: 0; font-size: 1.02rem; font-weight: 600; color: #fff; line-height: 1.25; }
.op-close { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 0; display: grid; place-items: center; background: rgb(255 255 255 / 0.12); color: #fff; cursor: pointer; }
.op-close:hover { background: rgb(255 255 255 / 0.22); }
.op-close .icon { width: 16px; height: 16px; }
.op-search { display: flex; align-items: center; gap: 8px; margin: 12px 12px 4px; padding: 0 12px; height: 42px; border-radius: 10px; background: #f6f1f8; border: 1px solid var(--line); color: var(--muted); flex: none; }
.op-search:focus-within { border-color: var(--plum); background: #fff; }
.op-search .icon { width: 15px; height: 15px; flex: none; }
.op-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: inherit; font-size: 0.9rem; color: var(--deep); }
.op-list { display: grid; gap: 2px; align-content: start; padding: 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.op-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--deep); font: inherit; text-align: left; cursor: pointer; transition: background 0.14s; }
.op-item[hidden] { display: none; }
.op-item:hover { background: #faf6fc; }
.op-badge { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #f6f1f8; color: var(--plum); }
.op-badge .icon { width: 15px; height: 15px; }
.op-badge .flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
.op-label { flex: 1; min-width: 0; display: grid; font-size: 0.9rem; font-weight: 500; }
.op-label small { font-size: 0.74rem; font-weight: 400; color: var(--muted); }
.op-check { flex: none; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; color: transparent; }
.op-check .icon { width: 13px; height: 13px; }
.op-item.is-selected { background: var(--lavender); color: var(--plum); }
.op-item.is-selected .op-badge { background: var(--plum); color: #fff; }
.op-item.is-selected .op-check { background: var(--plum); color: #fff; }
.op-empty { padding: 20px; text-align: center; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 680px) {
  dialog.sheet.op-sheet { width: 100vw; max-width: 100vw; max-height: 72dvh; }
  .op-list { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* Save-a-link modal */
.sl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 6px; flex: none; }
.sl-head-copy { display: grid; gap: 4px; min-width: 0; }
.sl-head h2 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--deep); }
.sl-head p { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.sl-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sl-body { display: grid; gap: 16px; padding: 14px 22px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.sl-field { display: grid; gap: 6px; }
.sl-field label { font: 500 0.78rem var(--font-body); color: var(--ink-2); letter-spacing: 0.01em; }
.sl-input { height: 46px; border-radius: 10px; padding: 0 14px; font-size: 0.92rem; background: #fbf9fc; border-color: var(--line); }
.sl-input:focus { background: #fff; }
.sl-textarea { height: 84px; padding: 11px 14px; resize: none; line-height: 1.5; }
.sl-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 0.84rem; font-weight: 500; color: var(--plum); padding: 2px 0; }
.sl-more summary::-webkit-details-marker { display: none; }
.sl-more summary .icon { width: 14px; height: 14px; transition: transform 0.18s var(--ease); }
.sl-more[open] summary .icon { transform: rotate(45deg); }
.sl-more-body { display: grid; gap: 16px; margin-top: 14px; }
.sl-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; flex: none; }
.sl-foot .btn { height: 46px; min-height: 46px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; padding: 0 20px; }

@media (max-width: 560px) {
  .sl-head { padding: 14px 18px 4px; }
  .sl-body { padding: 12px 18px 18px; }
  .sl-foot { padding-inline: 18px; }
  .saved-header-inner { gap: 18px; }
  .saved-header-right { width: 100%; display: grid; gap: 10px; }
  .saved-stats { width: 100%; }
  .saved-stat { padding: 10px 6px; }
  .saved-new-btn { width: 100%; }
  .saved-tabs { max-width: none; }
  .saved-tab { font-size: 0.82rem; gap: 5px; padding: 0 6px; }
}

.saved-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #f6f1f8; border: 1px solid var(--line); max-width: 460px; }
.saved-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 500 0.86rem var(--font-body); white-space: nowrap; cursor: pointer; transition: background 0.18s, color 0.18s, box-shadow 0.18s; }
.saved-tab:hover { color: var(--plum); }
.saved-tab.active { background: #ffffff; color: var(--plum); box-shadow: 0 1px 2px rgb(26 10 30 / 0.08), 0 2px 8px rgb(26 10 30 / 0.05); }
.saved-tab-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 600; background: rgb(92 0 96 / 0.08); color: var(--ink-2); }
.saved-tab.active .saved-tab-count { background: var(--plum); color: #fff; }

/* Save-a-link modal */
.sl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 6px; flex: none; }
.sl-head-copy { display: grid; gap: 4px; min-width: 0; }
.sl-head h2 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--deep); }
.sl-head p { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.sl-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sl-body { display: grid; gap: 16px; padding: 14px 22px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.sl-field { display: grid; gap: 6px; }
.sl-field label { font: 500 0.78rem var(--font-body); color: var(--ink-2); letter-spacing: 0.01em; }
.sl-input { height: 46px; border-radius: 10px; padding: 0 14px; font-size: 0.92rem; background: #fbf9fc; border-color: var(--line); }
.sl-input:focus { background: #fff; }
.sl-textarea { height: 84px; padding: 11px 14px; resize: none; line-height: 1.5; }
.sl-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 0.84rem; font-weight: 500; color: var(--plum); padding: 2px 0; }
.sl-more summary::-webkit-details-marker { display: none; }
.sl-more summary .icon { width: 14px; height: 14px; transition: transform 0.18s var(--ease); }
.sl-more[open] summary .icon { transform: rotate(45deg); }
.sl-more-body { display: grid; gap: 16px; margin-top: 14px; }
.sl-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; flex: none; }
.sl-foot .btn { height: 46px; min-height: 46px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; padding: 0 20px; }

@media (max-width: 560px) {
  .sl-head { padding: 14px 18px 4px; }
  .sl-body { padding: 12px 18px 18px; }
  .sl-foot { padding-inline: 18px; }
  .saved-header-inner { gap: 18px; }
  .saved-header-right { width: 100%; display: grid; gap: 10px; }
  .saved-stats { width: 100%; }
  .saved-stat { padding: 10px 6px; }
  .saved-new-btn { width: 100%; }
  .saved-tabs { max-width: none; }
  .saved-tab { font-size: 0.82rem; gap: 5px; padding: 0 6px; }
}

/* ── Ria's Colony Travel & Border Tools ──────────────────────────────────── */
.tools-header {
  background: linear-gradient(180deg, #faf6fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 68px);
  padding-bottom: clamp(24px, 3vw, 36px);
  overflow-x: hidden;
}
.tools-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tools-header-copy {
  max-width: 580px;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.tools-header-copy h1 {
  font-size: clamp(1.42rem, 2.3vw, 1.78rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--deep);
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
}
.tools-lede {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.tools-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}
.tools-stats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgb(26 10 30 / 0.03);
  max-width: 100%;
  flex-wrap: wrap;
}
.tools-stat { display: inline-flex; align-items: baseline; gap: 5px; }
.tools-stat strong { font: 600 0.88rem var(--font-display); color: var(--deep); }
.tools-stat span { font-size: 0.74rem; color: var(--muted); }
.tools-stat-sep { width: 1px; height: 14px; background: var(--line); }

.tools-body {
  padding-block: clamp(28px, 3.5vw, 44px) clamp(64px, 7vw, 96px);
  overflow-x: hidden;
}
.tools-container {
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}
.tools-container > *, .ws-status-bar, .ws-tier-chips { min-width: 0; }

/* Hub Grid */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
}
.tool-hub-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--plum);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(26 10 30 / 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  min-width: 0;
}
.tool-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgb(92 0 96 / 0.12);
  border-color: var(--plum);
}
.thc-img-box {
  position: relative;
  height: 180px;
  background: var(--warm);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.thc-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thc-badge-float {
  position: absolute;
  top: 12px;
  left: 12px;
}
.thc-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.thc-body h2 {
  font-size: 1.15rem;
  margin: 0;
}
.thc-body h2 a {
  color: var(--deep);
  transition: color 0.16s;
}
.thc-body h2 a:hover { color: var(--plum); }
.thc-body p {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.thc-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tool Toolbar & Search Bar */
.tool-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}
.tool-search-input {
  width: 100%;
  max-width: 290px;
  height: 36px;
  min-width: 0;
  font-size: 0.82rem;
  border-radius: 8px;
  padding: 0 12px;
}
.tool-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.tool-sort-label {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}
.tool-sort-select {
  height: 36px;
  padding: 0 28px 0 10px;
  font-size: 0.80rem;
  border-radius: 8px;
  min-width: 0;
}

/* Tool Cards */
.tool-card {
  background: #ffffff;
  border: 1px solid #ede6f2;
  border-radius: 12px;
  padding: clamp(18px, 3.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(26, 10, 30, 0.03);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tool-card:hover {
  border-color: #dcd0e5;
  box-shadow: 0 6px 18px -4px rgba(92, 0, 96, 0.06);
}
.tool-card.is-teal {
  border-left: 3px solid var(--accent);
}
.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}
.tool-card-country-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}
.tool-card-country-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep);
  word-break: break-word;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
}
.tool-pill.is-topic { background: #faf4fc; border: 1px solid #dec8e8; color: var(--plum); }
.tool-pill.is-live { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.tool-pill.is-waived { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.tool-pill.is-warn { background: #fffbeb; border: 1px solid #fef3c7; color: #92400e; }
.tool-pill.is-danger { background: #fff1f2; border: 1px solid #ffe4e6; color: #9f1239; }

/* Filter Chips (Contraband & Categories) */
.tool-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  background: #ffffff;
  border: 1px solid #e2d6e9;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.25;
}
.tool-filter-chip:hover {
  border-color: var(--plum);
  color: var(--plum);
  background: #faf4fc;
}
.tool-filter-chip.active {
  background: var(--plum);
  color: #ffffff;
  border-color: var(--plum);
  box-shadow: 0 2px 6px rgba(92, 0, 96, 0.2);
}

/* Contraband Collapsible Item Filter Drawer */
.cb-filter-drawer {
  background: #ffffff;
  border: 1px solid #ebe2ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(26, 10, 30, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cb-filter-drawer:hover {
  border-color: #d6bfde;
}
.cb-filter-drawer[open] {
  border-color: #cfb3d9;
  box-shadow: 0 3px 12px rgba(26, 10, 30, 0.04);
}
.cb-filter-drawer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #faf7fb;
  transition: background 0.15s ease;
  gap: 12px;
}
.cb-filter-drawer-summary::-webkit-details-marker,
.cb-filter-drawer-summary::marker {
  display: none;
}
.cb-filter-drawer-summary:hover {
  background: #f5edf8;
}
.cb-filter-drawer[open] .cb-filter-drawer-summary {
  background: #f7eff9;
  border-bottom: 1px solid #efe4f3;
}
.cb-filter-sum-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.cb-filter-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex: none;
}
.cb-filter-sum-text {
  min-width: 0;
  flex: 1;
}
.cb-filter-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}
.cb-filter-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--deep);
  white-space: nowrap;
  line-height: 1.3;
}
.cb-filter-badge {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: visible !important;
  flex: none !important;
  font-size: 0.70rem !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  background: #faf4fc !important;
  border: 1px solid #dec8e8 !important;
  color: var(--plum) !important;
  line-height: 1.25 !important;
}
.cb-filter-sub {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.cb-filter-sum-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--plum);
  white-space: nowrap !important;
  flex: none;
}
@media (max-width: 480px) {
  .cb-filter-toggle-label {
    display: none;
  }
}
.cb-filter-chevron {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}
.cb-filter-drawer[open] .cb-filter-chevron {
  transform: rotate(180deg);
}
.cb-filter-drawer-body {
  padding: 13px 16px;
  background: #ffffff;
}
.cb-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Contraband Controls & Status Bar */
.cb-controls-bar {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.cb-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cb-search-wrap {
  position: relative;
  flex: 1;
  min-width: min(100%, 240px);
}
.cb-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.cb-search-input {
  padding-left: 36px !important;
  height: 38px !important;
  border-radius: 9px !important;
  border-color: #dcd1e2 !important;
  font-size: 0.85rem !important;
  width: 100%;
}
.cb-search-input:focus {
  border-color: var(--plum) !important;
  box-shadow: 0 0 0 3px rgba(92, 0, 96, 0.12) !important;
}
.cb-region-wrap {
  width: 210px;
  flex: none;
}
@media (max-width: 600px) {
  .cb-region-wrap {
    width: 100%;
  }
}
.cb-region-select {
  height: 38px !important;
  border-radius: 9px !important;
  font-size: 0.84rem !important;
  padding-left: 12px !important;
}
.cb-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #faf6fb;
  border: 1px solid #efe4f3;
  border-radius: 9px;
  gap: 10px;
}
.cb-status-count {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
}
.cb-status-count span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cb-count-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--plum);
  flex: none;
}
.cb-status-actions {
  flex: none;
}
.cb-toggle-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid #dec8e8;
  background: #ffffff;
  color: var(--plum);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(26, 10, 30, 0.04);
  white-space: nowrap !important;
  flex: none;
}
.cb-toggle-all-btn * {
  white-space: nowrap !important;
}
.cb-toggle-all-btn:hover {
  background: var(--plum);
  color: #ffffff;
  border-color: var(--plum);
}

/* Contraband Collapsible Country Cards */
.cb-country-drawer {
  background: #ffffff;
  border: 1px solid #ebe2ef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(26, 10, 30, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cb-country-drawer:hover {
  border-color: #d6bfde;
}
.cb-country-drawer[open] {
  border-color: #cfb3d9;
  box-shadow: 0 4px 14px rgba(26, 10, 30, 0.05);
}
.cb-country-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #faf7fb;
  transition: background 0.15s ease;
  gap: 12px;
}
.cb-country-summary::-webkit-details-marker {
  display: none;
}
.cb-country-summary:hover {
  background: #f5edf8;
}
.cb-country-drawer[open] .cb-country-summary {
  background: #f7eff9;
  border-bottom: 1px solid #efe4f3;
  padding: 12px 14px;
}
.cb-country-sum-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.cb-country-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ede0f2;
  color: var(--plum);
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cb-country-drawer[open] .cb-country-num {
  background: var(--plum);
  color: #ffffff;
}
.cb-country-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.cb-country-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.cb-country-name {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--deep);
  white-space: nowrap;
}
.cb-country-region {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cb-official-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
  white-space: nowrap;
  flex: none;
}
.cb-country-preview {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cb-country-drawer[open] .cb-country-preview {
  display: none;
}
.cb-country-chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  flex: none;
  transition: transform 0.2s ease;
}
.cb-country-drawer[open] .cb-country-chevron {
  transform: rotate(180deg);
}
.cb-country-content {
  padding: 16px 18px;
  display: grid;
  gap: 14px;
  background: #ffffff;
}
.cb-section-box {
  border-radius: 10px;
  padding: 14px 16px;
}
.cb-section-box.ban {
  background: #fff8f8;
  border: 1px solid #fee2e2;
  border-left: 4px solid #dc2626;
}
.cb-section-box.restrict {
  background: #fffcf4;
  border: 1px solid #fef3c7;
  border-left: 4px solid #d97706;
}
.cb-section-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.cb-section-box.ban .cb-section-title {
  color: #991b1b;
}
.cb-section-box.restrict .cb-section-title {
  color: #92400e;
}
.cb-items-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.cb-items-list li {
  margin-bottom: 5px;
}
.cb-items-list li:last-child {
  margin-bottom: 0;
}
.cb-terms-box {
  background: #faf6fb;
  border: 1px solid #ede3f2;
  border-radius: 10px;
  padding: 12px 16px;
}
.cb-terms-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--plum);
  display: block;
  margin-bottom: 8px;
}
.cb-terms-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cb-term-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid #decde4;
  background: #ffffff;
  color: var(--deep);
  cursor: pointer;
  transition: all 0.15s ease;
}
.cb-term-chip:hover {
  border-color: var(--plum);
  color: var(--plum);
  background: #faf4fc;
}
.cb-term-chip.active {
  background: var(--plum);
  color: #ffffff;
  border-color: var(--plum);
}
.cb-term-drawer {
  margin-top: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e8dbed;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.cb-badge {
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cb-badge.penalty { background: #fdf4ff; color: var(--plum); border: 1px solid #fae8ff; }

/* ETA Select Dropdowns with Purple Highlight */
.eta-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 38px;
  padding: 0 32px 0 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #dcd1e2;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c0060' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  color: var(--deep);
  accent-color: var(--plum);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.eta-select::-ms-expand {
  display: none !important;
}
.eta-select:hover {
  border-color: var(--plum);
}
.eta-select:focus,
.eta-select:focus-visible {
  outline: none !important;
  border-color: var(--plum) !important;
  box-shadow: 0 0 0 3px rgba(92, 0, 96, 0.18) !important;
}
.eta-select option {
  padding: 8px;
  font-size: 0.86rem;
  color: var(--deep);
}
.eta-select option:checked {
  background-color: var(--plum) !important;
  color: #ffffff !important;
}

/* ETA Explorer Layout */
.eta-explorer-card {
  background: #ffffff;
  border: 1px solid #e5daf0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px -6px rgba(26, 10, 30, 0.05);
  display: flex;
  flex-direction: column;
}
.eta-ans-top {
  background: #f7f1f9;
  padding: 12px 20px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--plum);
  border-bottom: 1px solid #efe4f3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.eta-ans-body {
  padding: clamp(18px, 4vw, 26px);
  display: grid;
  gap: 16px;
}
.eta-ans-head {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}
.eta-ans-meaning {
  font-size: 0.90rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.eta-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px 18px;
  padding: 14px 16px;
  background: #faf7fb;
  border-radius: 8px;
  border: 1px solid #efe8f4;
}
.eta-fact-dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
  display: block;
}
.eta-fact-dd {
  font-size: 0.90rem;
  font-weight: 500;
  color: var(--deep);
  margin-top: 2px;
  word-break: break-word;
}
.eta-link {
  font-weight: 500;
  color: var(--plum);
  text-decoration: underline;
  text-decoration-color: rgba(92, 0, 96, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
  word-break: break-all;
}
.eta-link:hover {
  text-decoration-color: var(--plum);
  color: var(--plum);
}
.eta-must-do {
  border-top: 1px solid #efe8f4;
  padding-top: 16px;
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.eta-groups-box {
  margin-top: 6px;
  border-top: 1px solid #f0e9f4;
  padding-top: 16px;
}
.eta-group-details {
  border: 1px solid #efe8f4;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.eta-group-details:hover {
  border-color: #dfd2e8;
}
.eta-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 0.84rem;
  background: #faf8fc;
  transition: background 0.15s ease;
  gap: 8px;
}
.eta-group-summary::-webkit-details-marker {
  display: none;
}
.eta-group-summary:hover {
  background: #f4ecf7;
}
.eta-group-details[open] .eta-group-summary {
  border-bottom: 1px solid #efe8f4;
  background: #f7f1f9;
}
.eta-expand-hint {
  font-size: 0.72rem;
  color: var(--muted);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  flex: none;
}
.eta-group-details[open] .eta-expand-hint {
  transform: rotate(180deg);
}
.eta-group-content {
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.80rem;
  line-height: 1.5;
}
.eta-country-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: #faf7fb;
  border: 1px solid #ebe2f0;
  color: var(--ink-2);
  font-size: 0.76rem;
  line-height: 1.25;
}
.eta-my-pass {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f3e8f6;
  border: 1px solid #dec8e8;
  color: var(--plum);
  font-weight: 600;
  font-size: 0.76rem;
  line-height: 1.25;
}

/* 54-Country Directory Drawer */
.eta-directory-drawer {
  border: 1px solid #e5daf0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  margin-top: 18px;
  box-shadow: 0 2px 8px rgba(26, 10, 30, 0.03);
}
.eta-dir-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #faf7fb;
  transition: background 0.15s ease;
  gap: 12px;
  white-space: nowrap;
}
.eta-dir-summary::-webkit-details-marker {
  display: none;
}
.eta-dir-summary:hover {
  background: #f5edf8;
}
.eta-directory-drawer[open] .eta-dir-summary {
  border-bottom: 1px solid #efe4f3;
}
.eta-dir-icon {
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  flex: none;
}
.eta-directory-drawer[open] .eta-dir-icon {
  transform: rotate(180deg);
}
.eta-dir-content {
  padding: 16px 18px;
}

/* Women's Safety Components */
.ws-meter-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 500;
  gap: 12px;
}
/* Women's Safety Status & Tier Filter Bar */
.ws-status-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px;
  background: #faf6fb;
  border: 1px solid #efe4f3;
  border-radius: 10px;
}
.ws-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.ws-status-row .cb-status-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex: none;
}
.ws-status-row .cb-status-count span {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}
.ws-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--plum);
  background: #ffffff;
  border: 1px solid #dfcce4;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.ws-toggle-btn:hover {
  background: #f7eff9;
  border-color: var(--plum);
}
.ws-toggle-btn .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.ws-tier-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.ws-tier-chips::-webkit-scrollbar {
  display: none;
}
.ws-tier-chips .tool-filter-chip {
  flex: none;
  white-space: nowrap;
  padding: 5px 12px;
  font-size: 0.77rem;
  border-radius: 999px;
}

@media (min-width: 720px) {
  .ws-status-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .ws-status-row {
    width: auto;
    gap: 14px;
  }
}

/* Women's Safety Collapsible Country Drawers */
.ws-country-drawer {
  background: #ffffff;
  border: 1px solid #ebe2ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(26, 10, 30, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ws-country-drawer:hover {
  border-color: #d6bfde;
}
.ws-country-drawer[open] {
  border-color: #cfb3d9;
  box-shadow: 0 4px 14px rgba(92, 0, 96, 0.05);
}
.ws-country-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #faf7fb;
  transition: background 0.15s ease;
  gap: 12px;
}
.ws-country-summary::-webkit-details-marker,
.ws-country-summary::marker {
  display: none;
}
.ws-country-summary:hover {
  background: #f5edf8;
}
.ws-country-drawer[open] .ws-country-summary {
  background: #f7eff9;
  border-bottom: 1px solid #efe4f3;
  padding: 13px 16px;
}
.ws-country-sum-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.ws-country-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--deep);
  line-height: 1.25;
  margin: 0;
}
.ws-country-region {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.ws-country-sum-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.ws-summary-rank {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--plum);
  background: #ffffff;
  border: 1px solid #e5d4ec;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.ws-drawer-chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  flex: none;
  transition: transform 0.2s ease;
}
.ws-country-drawer[open] .ws-drawer-chevron {
  transform: rotate(180deg);
}
.ws-drawer-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
}

@media (max-width: 560px) {
  .ws-country-summary {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
  }
  .ws-country-sum-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .ws-country-sum-right {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .ws-drawer-body {
    padding: 12px 14px 16px;
    gap: 12px;
  }
}

.ws-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.ws-status-badge .ws-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.ws-status-badge.is-safer {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.ws-status-badge.is-care {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.ws-status-badge.is-risk {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

/* 2+1 Spacious Metrics Panel: Eliminates cramped text truncation on mobile */
.ws-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: #faf7fc;
  border: 1px solid #ebddef;
  border-radius: 10px;
  padding: 12px 14px;
}
.ws-metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ws-metric-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
}
.ws-metric-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep);
  line-height: 1.2;
}
.ws-metric-val small {
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted);
}
.ws-metric-val.is-lvl1 { color: #166534; }
.ws-metric-val.is-lvl2 { color: #0369a1; }
.ws-metric-val.is-lvl3 { color: #b45309; }
.ws-metric-val.is-lvl4 { color: #9f1239; }

.ws-metric-sub {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
}
.ws-metric-night {
  grid-column: 1 / -1;
  border-top: 1px solid #ede3f2;
  padding-top: 9px;
  margin-top: 2px;
}
.ws-metric-night-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 720px) {
  .ws-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .ws-metric-adv {
    border-left: 1px solid #ede3f2;
    padding-left: 14px;
  }
  .ws-metric-night {
    grid-column: auto;
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    border-left: 1px solid #ede3f2;
    padding-left: 14px;
  }
}

/* Calm Perception Meter */
.ws-meter-track {
  width: 100%;
  height: 3px;
  background: #ede3f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 3px 0 2px;
}
.ws-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.ws-meter-fill.is-good { background: #0d7470; }
.ws-meter-fill.is-mid { background: #b45309; }
.ws-meter-fill.is-low { background: #9f1239; }

/* Editor's Take / Context Box */
.ws-insight-box {
  background: #fdfbfe;
  border: 1px solid #f0e6f4;
  border-left: 3px solid var(--plum);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ws-insight-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ws-insight-icon {
  font-size: 0.82rem;
  line-height: 1;
}
.ws-insight-body {
  display: grid;
  gap: 4px;
}
.ws-insight-item {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--deep);
  margin: 0;
}

/* Collapsible Travel Advisories & Emergency Services Drawer */
.ws-advice-drawer {
  border: 1px solid #ebe2ef;
  border-radius: 9px;
  background: #ffffff;
  overflow: hidden;
}
.ws-advice-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  cursor: pointer;
  list-style: none;
  background: #faf7fb;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--plum);
  transition: background 0.15s ease;
  user-select: none;
  gap: 10px;
}
.ws-advice-summary::-webkit-details-marker,
.ws-advice-summary::marker {
  display: none;
}
.ws-advice-summary:hover {
  background: #f5edf8;
}
.ws-advice-drawer[open] .ws-advice-summary {
  background: #f7eff9;
  border-bottom: 1px solid #efe4f3;
}
.ws-advice-chevron {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  color: var(--plum);
}
.ws-advice-drawer[open] .ws-advice-chevron {
  transform: rotate(180deg);
}
.ws-advice-body {
  padding: 13px 15px;
  display: grid;
  gap: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.ws-advice-section {
  display: grid;
  gap: 5px;
}
.ws-advice-section-title {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--deep);
}
.ws-advisory-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
@media (max-width: 600px) {
  .ws-advisory-cards {
    grid-template-columns: 1fr;
  }
}
.ws-advisory-card {
  padding: 9px 11px;
  background: #faf8fc;
  border: 1px solid #efe4f3;
  border-radius: 7px;
  font-size: 0.79rem;
}
.ws-advisory-card strong {
  display: block;
  color: var(--deep);
  margin-bottom: 2px;
  font-size: 0.81rem;
}
.ws-advisory-card p {
  margin: 0 0 5px;
  color: var(--ink-2);
  line-height: 1.35;
}
.ws-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
}
.ws-link:hover {
  text-decoration: underline;
}
.ws-emergency-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ws-emergency-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: #fdf2f4;
  border: 1px solid #fcdde2;
  font-size: 0.77rem;
  font-weight: 600;
  color: #9f1239;
}
.ws-tip-block {
  padding: 8px 11px;
  background: #faf8fc;
  border-radius: 6px;
  border-left: 3px solid #dec8e8;
  margin-bottom: 3px;
}
.ws-tip-block strong {
  color: var(--deep);
  font-size: 0.81rem;
}
.ws-tip-block p {
  margin: 3px 0 0;
  font-size: 0.79rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.ws-muted-note {
  font-size: 0.79rem;
  color: var(--muted);
  margin: 0;
}

/* Discreet WPS Explainer */
.ws-explain-drawer {
  margin-top: 1px;
}
.ws-explain-summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--plum);
  user-select: none;
}
.ws-explain-summary::-webkit-details-marker,
.ws-explain-summary::marker {
  display: none;
}
.ws-explain-summary:hover {
  text-decoration: underline;
}
.ws-explain-chevron {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}
.ws-explain-drawer[open] .ws-explain-chevron {
  transform: rotate(180deg);
}
.ws-explain-content {
  margin-top: 5px;
  padding: 9px 12px;
  background: #faf7fb;
  border: 1px solid #ede4f2;
  border-radius: 7px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.ws-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #efe4f3;
  font-size: 0.73rem;
  color: var(--muted);
  flex-wrap: wrap;
}

/* Responsive adjustments for tools on mobile */
@media (max-width: 640px) {
  .tools-header { padding-top: 48px; padding-bottom: 22px; }
  .tools-header-right { width: 100%; }
  .tools-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px;
    text-align: center;
  }
  .tools-stat { flex-direction: column; align-items: center; gap: 2px; }
  .tools-stat-sep { display: none; }
  .tools-hub-grid { grid-template-columns: 1fr; }
  .tool-toolbar { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
  .tool-search-input { max-width: 100% !important; width: 100% !important; height: 36px !important; font-size: 0.82rem !important; }
  .tool-sort-group { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .tool-sort-select { flex: 1; width: 100%; min-width: 0; height: 36px !important; font-size: 0.80rem !important; }
  .tool-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tool-card { padding: 14px 14px; gap: 12px; }
  .eta-ans-body { padding: 16px 14px; gap: 14px; }
  .eta-facts-grid { padding: 10px 12px; gap: 10px; }
  .eta-dir-content { padding: 12px 12px; }
}


.flw-body { padding-block: clamp(44px, 5.5vw, 68px) clamp(72px, 8vw, 112px); }
.flw-container { max-width: 940px; display: grid; gap: clamp(44px, 6vw, 64px); }
.flw-sync-note { margin-bottom: 0; }

/* Cohesive Compact Control Bar on Following */
.flw-panel {
  border-radius: 10px;
  border: 1px solid #e2d6e9;
  border-top: 3px solid var(--plum);
  background: #ffffff;
  box-shadow: 0 6px 20px -8px rgb(26 10 30 / 0.06);
}
.flw-bar {
  display: grid;
  gap: 12px;
  padding: 14px 18px;
}
.flw-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}
.flw-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  height: 36px;
  padding: 0 12px 0 11px;
  border-radius: 7px;
  border: 1px solid #4a004e;
  background: linear-gradient(135deg, #5c0060 0%, #3a023d 100%);
  color: #ffffff;
  font: 600 0.84rem var(--font-display);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(92, 0, 96, 0.32);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), filter 0.16s;
}
.flw-dropdown-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(92, 0, 96, 0.44);
  filter: brightness(1.07);
}
.flw-dd-indicator { display: inline-flex; align-items: center; flex: none; }
.flw-dd-indicator .flag { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.flw-dd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fe0d2;
  box-shadow: 0 0 0 3px rgba(127, 224, 210, 0.25);
}
.flw-dd-name { font-weight: 600; letter-spacing: -0.01em; }
.flw-dd-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #f6eafa;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.flw-dd-chev { display: inline-flex; align-items: center; color: rgba(255, 255, 255, 0.85); margin-left: 1px; }
.flw-dd-chev .icon { width: 13px; height: 13px; }

.flw-scope-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 11px;
  border-top: 1px solid #efe7f3;
}
.flw-scope-lbl { font: 600 0.68rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); flex: none; }
.flw-scope-dd-wrap {
  position: relative;
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
}
.flw-scope-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #dfd3e6;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--deep);
  cursor: pointer;
  max-width: 100%;
  transition: all 0.16s ease;
}
.flw-scope-trigger-btn:hover,
.flw-scope-trigger-btn[aria-expanded="true"] {
  border-color: var(--plum);
  background: #faf5fc;
}
.flw-scope-trigger-icon {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.flw-scope-trigger-icon .flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
}
.flw-scope-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(340px, 55vw);
}
.flw-scope-trigger-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f1e6f4;
  color: var(--plum);
  font-size: 0.72rem;
  font-weight: 600;
  flex: none;
}
.flw-scope-trigger-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  flex: none;
  transition: transform 0.2s ease;
}
.flw-scope-trigger-arrow .icon { width: 13px; height: 13px; }
.flw-scope-trigger-btn[aria-expanded="true"] .flw-scope-trigger-arrow {
  transform: rotate(180deg);
}
.flw-scope-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 90;
  width: max-content;
  min-width: min(320px, 92vw);
  max-width: min(480px, 92vw);
  background: #ffffff;
  border: 1px solid #d9cde0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(26, 10, 30, 0.16);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flw-scope-dropdown-panel[hidden] {
  display: none !important;
}
.flw-scope-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0e6f3;
  font-size: 0.75rem;
  color: var(--muted);
}
.flw-scope-panel-header strong {
  color: var(--deep);
  font-weight: 600;
}
.flw-scope-panel-hint {
  font-size: 0.70rem;
  color: var(--muted);
}
.flw-scope-panel-crit {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.flw-bar .crit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #faf7fb;
  border: 1px solid #dfd3e6;
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--deep);
  white-space: nowrap;
  line-height: 1;
  transition: border-color 0.16s, transform 0.16s;
}
a.crit-pill:hover { border-color: var(--plum); transform: translateY(-1px); }
.crit-pill.is-topic { background: #f5edf8; border-color: #dec8e8; color: var(--plum); }
.crit-pill.is-keyword { background: #eef9f7; border-color: #bce3dc; color: #0b605c; }
.crit-pill .flag { width: 15px; height: 11px; border-radius: 2px; flex: none; }

.flw-summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.flw-action-btn {
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #ffffff;
  border-color: #ddd0e4;
}
.flw-add-btn { color: var(--plum); border-color: #d9c2e3; background: #faf5fc; }
.flw-add-btn:hover { background: #f2e5f7; border-color: var(--plum); color: var(--plum); }
.flw-delete-btn { width: 34px; padding: 0; justify-content: center; }

/* Custom Following Switcher Modal */
.flw-modal-list { display: grid; gap: 8px; }
.flw-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  background: #ffffff;
  border: 1.5px solid #e6dceb;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s var(--ease);
}
.flw-modal-item:hover {
  border-color: #0d7470;
  background: linear-gradient(135deg, #f3fbf9 0%, #faf5fc 100%);
  transform: translateX(2px);
}
.flw-modal-item.is-selected {
  border-color: #0d7470;
  background: linear-gradient(135deg, #eef9f7 0%, #f8f2fa 100%);
  box-shadow: 0 4px 12px -4px rgba(13, 116, 112, 0.15);
}
.fmi-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f3edf7;
  display: grid;
  place-items: center;
  flex: none;
}
.fmi-badge .flag { width: 22px; height: 16px; border-radius: 2px; }
.fmi-dot { width: 9px; height: 9px; border-radius: 50%; background: #0d7470; box-shadow: 0 0 0 3px rgba(13, 116, 112, 0.18); }
.fmi-info { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fmi-title { font-size: 0.9rem; font-weight: 600; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmi-sub { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmi-check { flex: none; color: var(--muted); display: inline-flex; align-items: center; }
.fmi-check .icon { width: 14px; height: 14px; }
.fmi-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0d7470;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
}
.fmi-active-pill .icon { width: 12px; height: 12px; }

/* In-Site Article Reader Modal (Cute, compact, no clutter) */
.ar-head {
  background: #faf7fb;
  border-bottom: 1px solid #efe4f3;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ar-source-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 0;
}
.ar-kind-badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0fdf9;
  border: 1px solid #bbf2e5;
  color: #0d7470;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: none;
}
.ar-source-name {
  color: var(--deep);
  font-weight: 600;
  white-space: nowrap;
}
.ar-date {
  white-space: nowrap;
}
.ar-close-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  flex: none;
  background: transparent;
  color: var(--muted);
  transition: all 0.15s ease;
}
.ar-close-btn:hover {
  background: #f1e6f5;
  color: var(--plum);
}
.ar-body {
  display: grid;
  gap: 12px;
  padding: 16px 20px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d8c2e0 transparent;
}
.ar-body::-webkit-scrollbar {
  width: 5px;
}
.ar-body::-webkit-scrollbar-track {
  background: transparent;
}
.ar-body::-webkit-scrollbar-thumb {
  background: #dec8e8;
  border-radius: 999px;
}
.ar-body::-webkit-scrollbar-thumb:hover {
  background: var(--plum);
}
.ar-hero-img {
  width: 100%;
  max-height: 190px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--warm);
  border: 1px solid #efe4f3;
}
.ar-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ar-title {
  font-size: 1.10rem;
  font-weight: 600;
  line-height: 1.36;
  color: var(--deep);
  letter-spacing: -0.015em;
  margin: 0;
}
.ar-summary {
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--ink-2);
  margin: 0;
}
.ar-related {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #efe4f3;
}
.ar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 18px;
  background: #ffffff;
  border-top: 1px solid #efe4f3;
  flex-wrap: nowrap;
}
.ar-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.ar-btn {
  height: 34px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  border-color: #e2d6e9 !important;
  color: var(--ink-2) !important;
  transition: all 0.15s ease !important;
}
.ar-btn:hover {
  border-color: var(--plum) !important;
  color: var(--plum) !important;
  background: #faf4fc !important;
}
.ar-btn.is-saved {
  background: #f7eff9 !important;
  border-color: var(--plum) !important;
  color: var(--plum) !important;
  font-weight: 600 !important;
}
.ar-read-btn {
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-size: 0.79rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
}
@media (max-width: 440px) {
  .ar-btn span {
    display: none;
  }
  .ar-btn {
    width: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .ar-read-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Country Section Dropdown Switcher Button & Responsive Tabs */
.cf-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.cf-subnav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}
.cf-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #faf4fc;
  border: 1px solid #e5d3ec;
  color: var(--deep);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.cf-section-btn:hover {
  background: #f4e8f8;
  border-color: var(--plum);
  color: var(--plum);
  box-shadow: 0 2px 8px rgba(92, 0, 96, 0.08);
}
.cf-sb-icon {
  font-size: 1.05rem;
  line-height: 1;
}
.cf-sb-label {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cf-sb-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--plum);
}
.cf-sb-count {
  font-size: 0.70rem;
  padding: 1px 7px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dec8e8;
  color: var(--muted);
}
.cf-sb-chev {
  display: flex;
  align-items: center;
  color: var(--plum);
}
.cf-desktop-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.cf-desktop-tabs a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.cf-desktop-tabs a:hover {
  color: var(--plum);
  background: #faf4fc;
}
.cf-desktop-tabs a.on {
  color: var(--plum);
  font-weight: 600;
  background: #f5e9f8;
}
@media (max-width: 820px) {
  .cf-desktop-tabs {
    display: none;
  }
  .cf-section-btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* Modal list rows for Country Sections & Travel Tools */
.sec-modal-list {
  display: grid;
  gap: 6px;
}
.sec-modal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #efe4f3;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.sec-modal-row:hover {
  background: #faf5fc;
  border-color: #d6bfde;
  transform: translateX(2px);
}
.sec-modal-row.is-active {
  background: #f7eff9;
  border-color: var(--plum);
}
.sec-modal-row.is-tool {
  border-left: 3px solid var(--accent);
}
.smr-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex: none;
}
.smr-info {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.smr-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--deep);
}
.smr-desc {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smr-check {
  display: flex;
  align-items: center;
  flex: none;
  color: var(--plum);
}
.cf-flag-modal {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Feed Section & Elevated Stream Cards */
.flw-feed-section { display: grid; gap: 24px; padding-top: 8px; }
.flw-feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.flw-feed-head .eyebrow { margin-bottom: 4px; font-size: 0.66rem; }
.flw-feed-head h3 { font-size: 1.08rem; font-weight: 600; color: var(--deep); letter-spacing: -0.01em; }
.flw-feed-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.flw-feed-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--muted); font-weight: 500; }
.flw-view-switch { display: inline-flex; align-items: center; padding: 3px; border-radius: 7px; background: var(--warm); border: 1px solid var(--line); }
.flw-view-btn { border: 0; background: none; padding: 4px 12px; border-radius: 5px; font: 500 0.75rem var(--font-display); color: var(--muted); cursor: pointer; transition: all 0.16s; }
.flw-view-btn.active { background: #ffffff; color: var(--deep); font-weight: 600; box-shadow: 0 1px 4px rgb(26 10 30 / 0.08); }

.flw-feed-box .news-list { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flw-feed-box.is-list .news-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }

.stream-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 20px 22px; border-radius: 8px; background: #ffffff; border: 1px solid rgb(92 0 96 / 0.10); border-left: 3px solid var(--plum); box-shadow: 0 4px 16px -6px rgb(26 10 30 / 0.05); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s; }
.stream-card.is-research { border-left-color: var(--accent); background: linear-gradient(180deg, #ffffff 0%, #f8fdfc 100%); }
.stream-card.is-custom-link { border-left-color: #0d7470; background: linear-gradient(180deg, #ffffff 0%, #f4fbf9 100%); }
.stream-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgb(26 10 30 / 0.10); border-color: rgb(92 0 96 / 0.20); }

.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sc-source-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sc-country-Chip .flags { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; background: #faf5fc; border: 1px solid rgb(92 0 96 / 0.10); font-size: 0.74rem; font-weight: 500; color: var(--deep); }
.sc-country-Chip .flag-link { display: inline-flex; align-items: center; gap: 5px; }
.sc-publisher { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.sc-time { font-size: 0.74rem; color: var(--muted); white-space: nowrap; margin-left: auto; }

.sc-body { display: block; flex: 1; }
.sc-copy { display: grid; gap: 7px; min-width: 0; }
.sc-title { font-size: 0.96rem; font-weight: 500; line-height: 1.44; color: var(--deep); letter-spacing: -0.01em; }
.sc-title a { color: inherit; transition: color 0.16s; }
.sc-title a:hover { color: var(--plum); }
.sc-summary { font-size: 0.82rem; color: var(--muted); line-height: 1.52; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-thumb { width: 100%; height: 180px; border-radius: 8px; overflow: hidden; background: var(--warm); border: 1px solid var(--line); margin-top: 2px; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgb(92 0 96 / 0.07); margin-top: auto; }
.sc-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sc-tags .tag { font-size: 0.73rem; font-weight: 500; padding: 3px 9px; height: 24px; border-radius: 5px; background: var(--lavender); color: var(--plum); border: 1px solid rgb(92 0 96 / 0.10); }
.sc-read-link { display: inline-flex; align-items: center; gap: 3px; font-size: 0.75rem; font-weight: 500; color: var(--accent-text); opacity: 0.85; transition: opacity 0.16s, transform 0.16s; }
.sc-read-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 2px; }
.sc-read-link .icon { width: 12px; height: 12px; }
.sc-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.sc-actions .act { width: 30px; height: 30px; border-radius: 6px; background: #faf7fb; border: 1px solid rgb(92 0 96 / 0.08); color: var(--ink-2); display: grid; place-items: center; transition: all 0.16s; }
.sc-actions .act:hover { background: var(--lavender); color: var(--plum); border-color: rgb(92 0 96 / 0.18); }
.sc-actions .act.saved { background: var(--plum); color: #fff; border-color: var(--plum); }
.sc-actions .act .icon { width: 14px; height: 14px; }

@media (max-width: 820px) {
  .flw-feed-box .news-list { grid-template-columns: minmax(0, 1fr); }
  .flw-view-switch { display: none; }
}

@media (max-width: 640px) {
  .flw-header { padding-top: 68px; padding-bottom: 32px; }
  .flw-header-inner { align-items: flex-start; gap: 18px; }
  .flw-header-right { width: 100%; justify-content: space-between; }
  .flw-stats { padding: 6px 12px; gap: 10px; }
  .flw-body { padding-block: 36px 72px; }
  .flw-container { gap: 40px; }
  .flw-panel-top { padding: 14px 16px 12px; }
  .follow-summary { padding: 12px 16px; gap: 10px; }
  .flw-scope-lbl { display: none; }
  .crit-pill { font-size: 0.76rem; padding: 3px 10px; min-height: 27px; }
  .stream-card { padding: 16px 18px; gap: 12px; border-radius: 8px; }
  .sc-title { font-size: 0.92rem; }
  .sc-thumb { width: 100%; height: 160px; }
}

.check-list { max-height: 240px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px; display: grid; gap: 2px; background: #fff; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 0.86rem; }
.check-row:hover { background: var(--warm); }
.check-row input { width: 16px; height: 16px; accent-color: var(--plum); }

/* ── Dialog ──────────────────────────────────────────────────────────────── */
dialog.sheet { width: min(500px, calc(100vw - 28px)); max-height: min(84dvh, 700px); padding: 0; border: 0; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px -10px rgb(26 10 30 / 0.42); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: rise 0.22s var(--ease); }
dialog.sheet::backdrop { background: rgb(26 10 30 / 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px 10px; border-bottom: 1px solid var(--line); flex: none; position: relative; z-index: 2; }
.sheet-head h2 { font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.sheet-body { padding: 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; display: grid; gap: 14px; font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--warm); flex: none; }
.sheet-foot .btn { min-height: 40px; height: 40px; padding: 0 18px; border-radius: 8px; font-size: 0.86rem; font-weight: 500; white-space: nowrap; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--warm); color: var(--plum); }

/* ── Cute Branded Modals & Mobile Sheets ─────────────────────────────────── */
.sheet-drag-handle { width: 38px; height: 4px; border-radius: 999px; background: rgb(92 0 96 / 0.18); margin: 8px auto 0; display: block; flex: none; }

/* Country Picker Modal: search, region tabs, a quiet list */
.cpm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 6px; flex: none; }
.cpm-head h2 { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.012em; line-height: 1.3; }
.cpm-sub { margin-top: 3px; font-size: 0.8rem; color: var(--muted); }
.cpm-toolbar { display: grid; gap: 12px; padding: 12px 22px 0; border-bottom: 1px solid var(--line); flex: none; }
.cpm-search-bar { position: relative; display: flex; align-items: center; }
.cpm-search-icon { position: absolute; left: 13px; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.cpm-search-icon .icon { width: 16px; height: 16px; }
.cpm-input { width: 100%; height: 42px; padding: 0 36px 0 38px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-size: 0.9rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.cpm-input::placeholder { color: var(--muted); }
.cpm-input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgb(92 0 96 / 0.1); }
.cpm-input::-webkit-search-cancel-button { display: none; }
.cpm-clear-btn { position: absolute; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.cpm-clear-btn:hover { background: var(--warm); color: var(--deep); }
.cpm-clear-btn .icon { width: 14px; height: 14px; }
.cpm-tabs { display: grid; grid-template-columns: repeat(6, auto); gap: 2px; padding: 3px; margin-bottom: 14px; border-radius: 10px; background: var(--warm); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cpm-tabs::-webkit-scrollbar { display: none; }
.cpm-tab { min-width: 0; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 500 0.8rem var(--font-body); color: var(--muted); white-space: nowrap; transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
.cpm-tab:hover { color: var(--deep); }
.cpm-tab[aria-selected="true"] { background: #fff; color: var(--plum); box-shadow: 0 1px 2px rgb(26 10 30 / 0.08), 0 0 0 1px rgb(92 0 96 / 0.08); }

.cpm-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 10px 14px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.cpm-body::-webkit-scrollbar { width: 8px; }
.cpm-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid #fff; }
.cpm-body::-webkit-scrollbar-track { background: transparent; }
.cpm-region-label { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0 -10px; padding: 14px 22px 8px; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 500 0.7rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cpm-region-label span { padding: 1px 7px; border-radius: 999px; background: var(--warm); letter-spacing: 0; font-size: 0.68rem; color: var(--muted); }
.cpm-card { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background 0.15s; }
.cpm-card + .cpm-card::before { content: ''; position: absolute; top: 0; left: 62px; right: 12px; height: 1px; background: var(--line); transition: opacity 0.15s; }
.cpm-card:hover, .cpm-card:focus-visible { background: var(--warm); }
.cpm-card:hover::before, .cpm-card:hover + .cpm-card::before { opacity: 0; }
.cpm-flag { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgb(26 10 30 / 0.08), 0 2px 6px -2px rgb(26 10 30 / 0.18); }
.cpm-flag .flag { width: 100%; height: 100%; border-radius: 0; box-shadow: none; object-fit: cover; }
.cpm-card-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cpm-card-name { font-size: 0.92rem; font-weight: 500; line-height: 1.3; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }
.cpm-card-sub { min-height: 1em; font-size: 0.76rem; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpm-card-go { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--plum); opacity: 0; transform: translateX(-4px); transition: opacity 0.15s, transform 0.15s; }
.cpm-card-go .icon { width: 15px; height: 15px; }
.cpm-card:hover .cpm-card-go, .cpm-card:focus-visible .cpm-card-go { opacity: 1; transform: none; background: #fff; }
.cpm-card:hover .cpm-card-name { color: var(--plum); }
.cpm-empty { display: grid; gap: 4px; place-items: center; padding: 48px 16px; text-align: center; }
.cpm-empty strong { font-size: 0.95rem; font-weight: 500; color: var(--deep); }
.cpm-empty span { font-size: 0.82rem; color: var(--muted); }

/* Sector Picker Modal */
.sec-modal-head { padding: 14px 20px 10px; border-bottom: 1px solid var(--line); flex: none; position: relative; z-index: 2; }
.sec-modal-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.sec-modal-body { padding: 14px 18px 20px; flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: block; }
.sec-modal-grid { display: grid; gap: 7px; }
.sec-modal-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 12px; background: #ffffff; border: 1.5px solid rgb(92 0 96 / 0.08); cursor: pointer; text-align: left; transition: all 0.16s; }
.sec-modal-card:hover { background: linear-gradient(135deg, #f2faf8 0%, #ffffff 100%); border-color: var(--accent); transform: translateX(2px); box-shadow: 0 3px 10px rgb(13 116 112 / 0.08); }
.sec-modal-card.is-selected { background: linear-gradient(135deg, #eef9f7 0%, #ffffff 100%); border-color: var(--accent); border-width: 2px; }
.smc-icon { font-size: 1.2rem; flex: none; line-height: 1; }
.smc-info { display: grid; gap: 1px; flex: 1; min-width: 0; }
.smc-title { font-size: 0.88rem; font-weight: 700; color: var(--deep); }
.smc-desc { font-size: 0.74rem; color: var(--muted); line-height: 1.35; }
.smc-check { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Cute Sign-Up Prompt Modal */
.spm-head { padding: 16px 20px 10px; border-bottom: 1px solid var(--line); flex: none; position: relative; z-index: 2; }
.spm-badge-wrap { display: flex; align-items: center; gap: 12px; }
.spm-badge { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--plum) 0%, #820e8a 100%); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px -2px rgb(92 0 96 / 0.35); }
.spm-badge .icon { width: 18px; height: 18px; }
.spm-body { padding: 16px 20px 22px; flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: grid; gap: 12px; }
.spm-desc { font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; }
.spm-perks { display: grid; gap: 7px; background: linear-gradient(135deg, #faf3fc 0%, #f0faf8 100%); border: 1.5px solid rgb(92 0 96 / 0.1); border-radius: 12px; padding: 11px 13px; }
.spm-perk { display: flex; align-items: flex-start; gap: 8px; font-size: 0.78rem; color: var(--deep); line-height: 1.35; }
.spm-perk .icon { color: var(--accent); width: 14px; height: 14px; flex: none; margin-top: 2px; }
.spm-actions { display: grid; gap: 8px; margin-top: 2px; }
.spm-btn { height: 38px; border-radius: 10px; font-weight: 600; font-size: 0.86rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.spm-sub-btn { height: 36px; border-radius: 10px; font-weight: 600; font-size: 0.82rem; }
.spm-dismiss { background: none; border: none; font-size: 0.78rem; color: var(--muted); cursor: pointer; text-align: center; margin-top: 2px; padding: 4px; }
.spm-dismiss:hover { color: var(--plum); text-decoration: underline; }

/* Unified Wire Filter Controls (Desktop & Mobile) */
.wire-filters { display: block; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.wire-filter-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wire-filter-col { display: grid; gap: 6px; }
.wire-filter-kicker { font: 700 0.70rem var(--font-display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--plum); display: flex; align-items: center; gap: 5px; }
.wire-filter-col:last-child .wire-filter-kicker { color: var(--accent); }
.wire-filter-kicker .icon { width: 13px; height: 13px; }
.wire-filter-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 46px; border-radius: 12px; padding: 0 14px; background: #ffffff; border: 1.5px solid rgb(92 0 96 / 0.14); color: var(--deep); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-align: left; box-shadow: 0 2px 8px rgb(26 10 30 / 0.04); transition: all 0.18s; }
.wire-filter-btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgb(13 116 112 / 0.12); }
.wfb-flag { font-size: 1.15rem; flex: none; display: flex; align-items: center; }
.wfb-flag .flag-sm { width: 22px; height: 16px; border-radius: 3px; }
.wfb-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfb-chevron { color: var(--muted); flex: none; display: grid; place-items: center; }
.wfb-chevron .icon { width: 14px; height: 14px; }
.pc-hint { margin-top: 10px; text-align: center; font-size: 0.74rem; color: var(--muted); letter-spacing: 0.01em; }

/* ── Auth: photo panel blended into a quiet form ─────────────────────────── */
.auth-wrap { min-height: calc(100dvh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: var(--warm); }

.auth-visual { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; background: var(--deep); color: #fff; }
.auth-visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; z-index: -2; }
/* Plum wash rising from the base, plus a soft vignette */
.auth-visual::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgb(26 10 30 / 0.06) 0%, rgb(26 10 30 / 0.16) 38%, rgb(48 4 54 / 0.76) 72%, rgb(26 10 30 / 0.94) 100%),
  linear-gradient(90deg, transparent 80%, rgb(26 10 30 / 0.24) 100%); }
.auth-visual::after { content: ''; position: absolute; inset: 0; z-index: -1; box-shadow: inset 0 0 120px rgb(26 10 30 / 0.35); pointer-events: none; }
.auth-visual-copy { width: 100%; max-width: 540px; padding: clamp(28px, 4vw, 56px); display: grid; gap: 12px; }
.auth-kicker { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.22); font: 500 0.7rem/1.3 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.auth-kicker .live-dot-sm { background: var(--teal-glow); box-shadow: 0 0 0 2px rgb(127 224 210 / 0.25); }
.auth-visual h2 { max-width: 22ch; margin-top: 6px; color: #fff; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.28; letter-spacing: -0.02em; }
.auth-visual h2 em { font-style: normal; color: var(--teal-glow); }
.auth-visual p { font-size: 0.86rem; line-height: 1.6; color: rgb(255 255 255 / 0.82); max-width: 44ch; }
.auth-visual-stats { list-style: none; margin: 10px 0 0; padding: 14px 0 0; display: flex; gap: clamp(18px, 3vw, 36px); border-top: 1px solid rgb(255 255 255 / 0.16); }
.auth-visual-stats strong { display: block; font: 600 1rem/1.2 var(--font-display); color: #fff; }
.auth-visual-stats span { font-size: 0.72rem; color: rgb(255 255 255 / 0.66); }

.auth-form { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 72px); background: radial-gradient(120% 80% at 100% 0%, var(--lavender) 0%, transparent 55%), var(--warm); }
.auth-form-inner { width: 100%; max-width: 360px; display: grid; gap: 18px; }
.auth-form-head { display: grid; gap: 6px; }
.auth-form-head .eyebrow { font-size: 0.68rem; color: var(--accent-text); }
.auth-form-head h1 { font-size: clamp(1.3rem, 1.9vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.auth-sub { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.auth-import-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-light); border: 1px solid var(--accent-border); font-size: 0.78rem; color: var(--accent-text); line-height: 1.45; }
.auth-import-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.auth-fields { display: grid; gap: 14px; }
.auth-fields .field { display: grid; gap: 6px; }
.auth-fields .field label { font: 500 0.78rem var(--font-display); color: var(--ink-2); }
.field-label-row { display: flex; align-items: center; justify-content: space-between; }
.field-hint { font-size: 0.7rem; color: var(--muted); }
.auth-forgot-link { font-size: 0.76rem; color: var(--plum); text-decoration: none; font-weight: 500; transition: color 0.18s; }
.auth-forgot-link:hover { text-decoration: underline; color: #49053e; }
.auth-success-card { padding: 18px; border-radius: 12px; background: #f0faf9; border: 1px solid #cceae7; color: var(--deep); font-size: 0.88rem; line-height: 1.55; display: grid; gap: 10px; }
.auth-success-card .icon { color: var(--accent); width: 20px; height: 20px; }
.auth-input { width: 100%; height: 44px; padding-inline: 14px; border-radius: 10px; font-size: 0.9rem; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); transition: border-color 0.18s, box-shadow 0.18s; }
.auth-input::placeholder { color: #a99daf; }
.auth-input:hover { border-color: #c7b6d0; }
.auth-input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgb(92 0 96 / 0.1); outline: none; }
.input-wrap .auth-input { padding-right: 44px; }
.input-wrap .auth-reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.auth-reveal:hover { color: var(--plum); background: var(--lavender); }
.auth-reveal .icon { width: 15px; height: 15px; }
.auth-pw-hint { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
.strength { height: 3px; border-radius: 3px; background: rgb(92 0 96 / 0.08); overflow: hidden; margin-top: 2px; }
.strength i { display: block; height: 100%; width: 0; transition: width 0.25s, background-color 0.25s; }
.auth-fields .form-error { font-size: 0.8rem; padding: 9px 12px; border-radius: 10px; }

.auth-submit-btn { min-height: 44px; height: 44px; margin-top: 4px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; gap: 8px; box-shadow: 0 8px 20px -10px rgb(92 0 96 / 0.55); transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.auth-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgb(92 0 96 / 0.6); }
.auth-submit-btn .icon { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.auth-submit-btn:hover .icon { transform: translateX(3px); }

.auth-divider { display: flex; align-items: center; gap: 12px; font-size: 0.74rem; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-switch-btn { min-height: 42px; border-radius: 10px; border-color: var(--line-strong); background: #fff; color: var(--plum); font-size: 0.86rem; font-weight: 500; }
.auth-switch-btn:hover { border-color: var(--plum); background: var(--lavender); }
.auth-fine { font-size: 0.7rem; color: var(--muted); text-align: center; line-height: 1.4; letter-spacing: 0.01em; }

/* ── Account / settings ──────────────────────────────────────────────────── */
.settings { display: grid; gap: 18px; max-width: 760px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.panel h2 { font-size: 1.2rem; margin-bottom: 6px; }
.panel form { display: grid; gap: 14px; margin-top: 12px; }
.panel > p { color: var(--ink-2); }

/* ── Account ──────────────────────────────────────────────────────────────── */
.acc-hero { background: linear-gradient(180deg, #faf6fc 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.acc-hero .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-block: clamp(32px, 5vw, 52px) clamp(28px, 4vw, 40px); }
.acc-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.acc-avatar { flex: none; width: 64px; height: 64px; font-size: 1.35rem; }
.acc-id-text { min-width: 0; }
.acc-id-text h1 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--deep); overflow-wrap: anywhere; }
.acc-id-text p { margin-top: 2px; font-size: 0.88rem; color: var(--ink-2); overflow-wrap: anywhere; }
.acc-id-text .acc-since { font-size: 0.8rem; color: var(--muted); }
.acc-stats { display: flex; }
.acc-stats a { display: grid; justify-items: center; gap: 2px; min-width: 92px; padding: 4px 18px; border-left: 1px solid var(--line); transition: color 0.18s; }
.acc-stats a:first-child { border-left: 0; }
.acc-stats strong { font: 600 1.4rem/1.1 var(--font-display); color: var(--deep); }
.acc-stats span { font-size: 0.78rem; color: var(--muted); }
.acc-stats a:hover strong { color: var(--plum); }

.acc-body { background: var(--warm); margin-bottom: -72px; }
.acc-page { padding-block: clamp(24px, 4vw, 36px) clamp(88px, 10vw, 128px); }
.acc-sections { display: grid; gap: 20px; max-width: 760px; }
.acc-section { padding: 0 28px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(26 10 30 / 0.03); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -28px 22px; padding: 18px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbf8fc 0%, #ffffff 100%); border-radius: 16px 16px 0 0; }
.acc-head h2 { position: relative; padding-left: 14px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--deep); }
.acc-head h2::before { content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 3px; border-radius: 3px; background: var(--plum); }
.acc-head p { margin-top: 2px; padding-left: 14px; font-size: 0.8rem; color: var(--muted); }
.acc-head .text-link { font-size: 0.84rem; }

.acc-group + .acc-group { margin-top: 24px; }
.acc-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.acc-group-header h3 {
  margin: 0;
  font: 600 0.80rem var(--font-display);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.acc-count-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(92, 0, 96, 0.06);
  color: var(--plum);
  letter-spacing: 0.02em;
}
.acc-grid, .acc-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 0, 96, 0.2) transparent;
}
.acc-grid::-webkit-scrollbar, .acc-chips::-webkit-scrollbar {
  width: 5px;
}
.acc-grid::-webkit-scrollbar-thumb, .acc-chips::-webkit-scrollbar-thumb {
  background: rgba(92, 0, 96, 0.2);
  border-radius: 999px;
}
.acc-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--deep);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(26, 10, 30, 0.03);
  transition: all 0.18s var(--ease);
  min-width: 0;
}
.acc-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.acc-chip:hover {
  border-color: var(--plum);
  background: #fbf7fc;
  color: var(--plum);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(92, 0, 96, 0.08);
}
.acc-flag {
  flex: none;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(26, 10, 30, 0.08);
}
.acc-topic-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.acc-empty { font-size: 0.86rem; color: var(--muted); }
.acc-empty a { color: var(--plum); font-weight: 500; }

.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.acc-row + .acc-row { border-top: 1px solid var(--line); }
.acc-label { display: block; font: 500 0.9rem var(--font-display); color: var(--deep); }
.acc-hint { margin-top: 3px; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.acc-select { flex: none; width: 200px; height: 38px; border-radius: 10px; font-size: 0.86rem; }

.acc-form { display: grid; gap: 14px; }
.acc-form .acc-label { margin-bottom: -6px; }
.acc-inline { display: flex; gap: 10px; }
.acc-inline .input { flex: 1; min-width: 0; }
.acc-inline .btn { flex: none; }

.acc-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.acc-more summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font: 500 0.9rem var(--font-display); color: var(--deep); }
.acc-more summary::-webkit-details-marker { display: none; }
.acc-more summary .icon { width: 16px; height: 16px; color: var(--muted); transition: transform 0.2s var(--ease); }
.acc-more[open] summary .icon { transform: rotate(180deg); }
.acc-more[open] summary { margin-bottom: 16px; }
.acc-more > .acc-hint { margin: -6px 0 14px; }
.acc-signout { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 0; display: flex; justify-content: flex-start; }
.acc-danger summary { color: var(--danger); }

@media (max-width: 640px) {
  .acc-hero .wrap { flex-direction: column; align-items: stretch; gap: 24px; }
  .acc-avatar { width: 56px; height: 56px; font-size: 1.15rem; }
  .acc-stats { padding-top: 18px; border-top: 1px solid var(--line); }
  .acc-stats a { flex: 1; min-width: 0; padding: 0 8px; }
  .acc-section { padding: 0 18px 20px; border-radius: 14px; }
  .acc-head { margin: 0 -18px 18px; padding: 16px 18px; border-radius: 14px 14px 0 0; }
  .acc-sections { gap: 16px; }
  .acc-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .acc-row .btn { align-self: flex-start; }
  .acc-select { width: 100%; }
  .acc-signout { flex-direction: row; align-items: center; }
}


/* ── Prose (about) ───────────────────────────────────────────────────────── */
.prose { max-width: 740px; display: grid; gap: 18px; font-size: 1.04rem; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin-top: 22px; }
.prose strong { color: var(--deep); }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ── Loading ─────────────────────────────────────────────────────────────── */
.skeleton { position: relative; overflow: hidden; background: var(--warm); border-radius: var(--r); }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.8), transparent); animation: shimmer 1.3s infinite; }
.sk-row { height: 110px; margin-bottom: 12px; }
.sk-card { height: 230px; }
.load-more { display: flex; justify-content: center; margin-top: 28px; }

/* ── Toasts ──────────────────────────────────────────────────────────────── */
.toast-region { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--deep); color: #fff; font-weight: 500; font-size: 0.92rem; box-shadow: var(--shadow-lift); animation: rise 0.3s var(--ease); }
.toast .icon { width: 18px; height: 18px; color: var(--teal-glow); }
.toast.error .icon { color: #f97066; }
.toast a { color: var(--teal-glow); text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: #0d0411; color: rgb(255 255 255 / 0.64); border-top: 1px solid rgb(255 255 255 / 0.08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-block: 52px 34px; }
.footer-brand img { width: 44px; max-width: 44px; height: auto; opacity: 0.95; margin-bottom: 12px; }
.footer-brand p { margin-top: 10px; font-size: 0.84rem; font-weight: 400; line-height: 1.58; color: rgb(255 255 255 / 0.62); }
.footer-brand strong { color: rgb(255 255 255 / 0.9); font-weight: 500; }
.site-footer h2 { font: 500 0.68rem var(--font-display); letter-spacing: 0.11em; text-transform: uppercase; color: rgb(255 255 255 / 0.45); margin-bottom: 12px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; font-size: 0.83rem; font-weight: 400; }
.site-footer nav a { font-weight: 400; color: rgb(255 255 255 / 0.64); transition: color 0.18s; }
.site-footer nav a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px 24px; border-top: 1px solid rgb(255 255 255 / 0.08); font-size: 0.76rem; font-weight: 400; color: rgb(255 255 255 / 0.44); }

/* ── Guest mode footer & chrome ──────────────────────────────────────────── */
body.is-guest .site-footer nav[aria-label="For you"],
body.is-guest .site-footer nav[aria-label="Explore"] { display: none !important; }
body.is-guest .site-footer nav[aria-label="About"] { display: grid !important; }
body.is-guest .footer-grid { grid-template-columns: 1.6fr 1fr; gap: 32px; padding-block: 44px 28px; }
@media (max-width: 640px) {
  body.is-guest .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  body.is-guest .footer-brand { display: flex; flex-direction: column; align-items: center; max-width: 440px; margin: 0 auto; text-align: center; }
  body.is-guest .footer-legal { justify-content: center; text-align: center; gap: 12px; }
}
body.is-guest .tabbar { display: none !important; }
body.is-guest .main-nav > a { display: none; }
.footer-legal-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-link:hover { color: #ffffff; }

/* ── Auth Back to Home Button ────────────────────────────────────────────── */
.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(92, 0, 96, 0.05);
  border: 1px solid rgba(92, 0, 96, 0.12);
  font: 600 0.80rem var(--font-body);
  color: var(--plum);
  text-decoration: none;
  margin-bottom: 20px;
  align-self: flex-start;
  transition: all 0.18s var(--ease);
}
.auth-back-btn .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.16s var(--ease);
}
.auth-back-btn:hover {
  background: var(--plum);
  color: #ffffff;
  border-color: var(--plum);
}
.auth-back-btn:hover .icon {
  transform: translateX(-2px);
}

@media (max-width: 480px) {
  .acc-grid, .acc-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 240px;
  }
  .acc-chip {
    height: 38px;
    padding: 0 10px;
    font-size: 0.80rem;
    gap: 8px;
  }
}

/* ── Mobile tab bar ──────────────────────────────────────────────────────── */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgb(255 255 255 / 0.86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid rgb(26 10 30 / 0.06); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; font: 500 0.64rem var(--font-display); letter-spacing: 0.01em; color: var(--muted); white-space: nowrap; transition: color 0.18s; }
.tabbar a .icon { width: 20px; height: 20px; }
.tabbar a[aria-current="page"] { color: var(--plum); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 0 0 2px 2px; background: var(--plum); }
.tab-dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .main-nav { gap: 2px; }
  .main-nav > a:not(.nav-icon) { padding: 6px 7px; font-size: 0.86rem; }
  .nav-icon { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .brand-word { font-size: 1.20rem; }
  .brand-by { height: 18px; padding-left: 8px; gap: 5px; }
  .brand-by img { height: 18px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indicator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .main-nav { display: none; }
  .mobile-actions { display: flex; }
  .brand { gap: 8px; }
  .brand-word { font-size: 1.22rem; }
  .brand-by { height: 18px; padding-left: 8px; gap: 5px; }
  .brand-by img { height: 18px; }
  .tabbar { display: grid; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .toast-region { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
  .explorer, .sample { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .trust-strip .wrap { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-form { align-items: flex-start; }
  .auth-visual { min-height: 300px; }
  .auth-visual-img { object-position: 50% 35%; }
  /* Banner dissolves into the ivory form below */
  .auth-visual::before { background: linear-gradient(180deg, rgb(26 10 30 / 0.1) 0%, rgb(48 4 54 / 0.7) 62%, rgb(26 10 30 / 0.92) 100%); }
  .auth-visual-copy { max-width: 600px; padding: 32px var(--gutter) 28px; }
  .auth-form { padding: 36px var(--gutter) 48px; background: var(--warm); }
  .map-picker { display: flex; gap: 10px; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; --gutter: 18px; }
  .header-inner { padding-inline: max(var(--gutter), 20px); }
  .brand { gap: 8px; min-width: 0; }
  .brand-logo-mark { width: 28px; height: 28px; }
  .brand-word { font-size: 1.14rem; white-space: nowrap; }
  .brand-by { height: 16px; padding-left: 8px; gap: 5px; white-space: nowrap; }
  .brand-by-txt { font-size: 0.68rem; }
  .brand-by img { height: 16px; width: auto; }
  .nav-icon { width: 36px; height: 36px; }
  .mobile-actions { gap: 4px; }
  .section { padding-block: 68px; }
  .section.spacious { padding-block: 84px; }
  .section.tight { padding-block: 48px; }
  .hero-search input { height: 44px; padding-right: 20px; font-size: 0.90rem; }
  .hero-search button { display: none; }
  .trust-strip .wrap { grid-template-columns: minmax(0, 1fr); }
  .trust-item, .trust-item:nth-child(3) { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
  .card-grid, .card-grid.two { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .read-card { padding: 22px; }
  .news-thumb { width: 92px; height: 72px; }
  .news-row { gap: 14px; padding: 18px 0; }
  .news-row h3 { font-size: 1.02rem; }
  .news-row .summary { display: none; }
  .indicator-grid, .sample-card .indicator-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .ind-card { padding: 16px; }
  .ind-card .val { font-size: 1.3rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; }
  .toolbar .input, .toolbar .select { max-width: none; }
  .sample-card { padding: 20px; }
  .preview-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 48px 28px; }
  .sheet-foot .btn { flex: 1; }
  dialog.sheet { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .auth-visual { min-height: 220px; }
  .auth-visual-copy { padding: 24px 16px 20px; gap: 8px; }
  .auth-kicker { font-size: 0.64rem; }
  .auth-visual h2 { font-size: 1.15rem; }
  .auth-visual p, .auth-visual-stats { display: none; }
  .auth-form { padding: 28px 16px 40px; }
  .auth-form-head h1 { font-size: 1.25rem; }
  .colony-band .wrap { padding-block: 44px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Research cards mixed into list views (search, following, saved) */
.news-list > .read-card { margin: 12px 0; }

/* ── Signed-in home: cohesive, warm personal dashboard ───────────────────── */
.uh { --uh-space: clamp(52px, 6vw, 76px); background: #ffffff; }
.uh h1, .uh h2, .uh h3 { font-weight: 600; }

.uh-hello {
  position: relative;
  overflow: hidden;
  padding-top: clamp(58px, 7.2vw, 90px);
  padding-bottom: clamp(40px, 5vw, 56px);
  background:
    radial-gradient(600px 280px at 88% 12%, rgba(92, 0, 96, 0.06), transparent 65%),
    radial-gradient(500px 240px at 12% 90%, rgba(13, 116, 112, 0.05), transparent 60%),
    linear-gradient(180deg, #f5edf9 0%, #faf6fc 62%, #ffffff 100%);
  color: var(--deep);
  border-bottom: 1px solid var(--line);
}
.uh-hello-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.uh-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #dfd0e8;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--plum);
  box-shadow: 0 2px 6px rgba(92, 0, 96, 0.05);
}
.uh-date .live-dot-sm {
  background: var(--plum);
  box-shadow: 0 0 0 3px rgba(92, 0, 96, 0.14);
}
.uh-hello h1 { margin-top: 20px; font-size: clamp(1.52rem, 2.5vw, 1.98rem); letter-spacing: -0.022em; line-height: 1.2; color: var(--deep); }
.uh-lede { margin-top: 10px; max-width: 600px; color: var(--ink-2); font-size: 0.93rem; line-height: 1.62; }
.uh-lede a { color: var(--plum); font-weight: 600; border-bottom: 1px solid rgba(92, 0, 96, 0.3); transition: color 0.2s, border-color 0.2s; }
.uh-lede a:hover { color: var(--plum-hover); border-color: var(--plum); }
.uh-quick { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.84rem; }
.uh-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dfd2e8;
  color: var(--deep);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(26, 10, 30, 0.04);
  transition: background 0.18s, transform 0.18s, border-color 0.18s, color 0.18s;
}
.uh-quick-pill:hover { background: #f6eef9; border-color: var(--plum); color: var(--plum); transform: translateY(-1px); }
.uh-quick-pill .icon { width: 15px; height: 15px; color: var(--plum); }

.uh-block { padding-block: var(--uh-space); background: #ffffff; }
.uh-block.warm {
  background: var(--warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.uh-topics-band {
  background: #ffffff;
  border-top: 1px solid var(--line);
}
.uh-block + .uh-block:not(.warm):not(.uh-topics-band) { border-top: 1px solid var(--line); }
.uh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.uh-head h2 { font-size: clamp(1.22rem, 1.9vw, 1.45rem); letter-spacing: -0.015em; line-height: 1.25; color: var(--deep); margin-top: 4px; }
.uh-head p { margin-top: 5px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.uh-head .text-link { font-weight: 600; font-size: 0.88rem; }

.uh-switcher-bar { margin-bottom: 24px; display: flex; align-items: center; }
.uh-tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; padding-bottom: 4px; }
.uh-tabs::-webkit-scrollbar { display: none; }
.uh-tab {
  flex: none;
  padding: 8px 16px;
  border: 1px solid #e3d2ea;
  border-radius: 7px;
  background: #faf7fb;
  font: 600 0.84rem var(--font-body);
  color: var(--plum);
  transition: all 0.18s;
}
.uh-tab:hover { background: #f1e6f6; border-color: var(--plum); }
.uh-tab[aria-selected="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
  box-shadow: 0 4px 12px rgba(92, 0, 96, 0.18);
}

/* Briefing lead story + tinted right-hand story card */
.uh .ed-grid { gap: clamp(28px, 3.8vw, 44px); align-items: stretch; }
.uh .ed-sk-lead { min-height: 360px; border-radius: 12px; }
.uh .ed-lead { min-height: 380px; border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(46, 3, 50, 0.16); }
.uh .ed-lead.no-img { min-height: 300px; }
.uh .ed-lead h3 { font-size: clamp(1.16rem, 1.85vw, 1.38rem); line-height: 1.32; }
.uh .ed-pill { font-weight: 600; letter-spacing: 0.05em; }
.uh .ed-list {
  background: #faf7fb;
  border: 1px solid var(--line);
  border-top: 3px solid var(--plum);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px -12px rgba(92, 0, 96, 0.06);
}
.uh .ed-list-lbl { font-weight: 700; color: var(--plum); letter-spacing: 0.08em; }
.uh .ed-item { grid-template-columns: 32px minmax(0, 1fr); padding: 15px 0; border-bottom-color: var(--line); }
.uh .ed-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f2e7f6;
  color: var(--plum);
  font-weight: 700;
  font-size: 0.78rem;
  margin-top: 2px;
}
.uh .ed-item h3 { font-size: 0.95rem; line-height: 1.45; }
.uh-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 560px;
  padding: 28px;
  background: #fff;
  border: 1px dashed #d5b8df;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Followed countries with cohesive brand accents */
.uh-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.uh-country {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--plum);
  border-radius: 10px;
  box-shadow: 0 4px 14px -8px rgba(26, 10, 30, 0.06);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.25s var(--ease);
}
.uh-country:nth-child(even) { border-top-color: var(--accent); }
.uh-country:hover { transform: translateY(-2px); border-color: #d6c4e0; box-shadow: 0 10px 24px -10px rgba(46, 3, 50, 0.12); }
.uh-country-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.uh-country-top .flag { width: 34px; height: 25px; border-radius: 4px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); }
.uh-country h3 { font-size: 1.02rem; line-height: 1.3; color: var(--deep); }
.uh-country h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.uh-country-region { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.uh-country-stats {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: #faf7fb;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.uh-country-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.uh-country-stats strong { font: 600 0.92rem/1.3 var(--font-display); color: var(--deep); white-space: nowrap; }
.uh-country-stats span { font-size: 0.79rem; color: var(--ink-2); }
.uh-country-stats em { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.uh-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 158px;
  padding: 22px;
  border: 1.5px dashed #cbb4d6;
  border-radius: 10px;
  background: #ffffff;
  color: var(--plum);
  font: 600 0.88rem var(--font-body);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.uh-add:hover { border-color: var(--plum); background: #f8f2fa; transform: translateY(-2px); }
.uh-add .icon { width: 20px; height: 20px; }

/* Wider news and Research: two cohesive cards side by side */
.uh-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 34px); align-items: start; }
.uh-panel {
  padding: clamp(22px, 3vw, 28px);
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px -12px rgba(26, 10, 30, 0.07);
}
.uh-panel-news {
  border-top: 3px solid var(--plum);
}
.uh-panel-vault {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.uh-panel .uh-head { margin-bottom: 20px; }
.uh-reads { display: grid; gap: 12px; }
.uh-read {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 17px;
  background: #faf8fc;
  border: 1px solid #ebe2f0;
  border-left: 3px solid var(--plum);
  border-radius: 8px;
  transition: transform 0.18s var(--ease), border-color 0.18s, background 0.18s, box-shadow 0.2s var(--ease);
}
.uh-read:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: #d4bddf;
  border-left-color: var(--plum);
  box-shadow: 0 6px 18px -10px rgba(46, 3, 50, 0.12);
}
.uh-read.is-research {
  background: #f7fbfa;
  border-color: #dbece9;
  border-left: 3px solid var(--accent);
}
.uh-read.is-research:hover {
  background: #ffffff;
  border-color: #b4dcd6;
  border-left-color: var(--accent);
  box-shadow: 0 6px 18px -10px rgba(13, 116, 112, 0.12);
}
.uh-read-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.uh-read-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.uh-read-badges .flags { display: inline-flex; align-items: center; gap: 4px; }
.uh-read-source {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  background: #f1e6f5;
  color: var(--plum);
  font: 600 0.72rem var(--font-body);
  letter-spacing: 0.01em;
}
.uh-read.is-research .uh-read-source {
  background: var(--accent-light);
  color: var(--accent-text);
}
.uh-read-kind {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(92, 0, 96, 0.08);
  color: var(--plum);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.uh-read-date {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}
.uh-read-main {
  display: block;
}
.uh-read h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.44;
  letter-spacing: -0.01em;
  color: var(--deep);
}
.uh-read h3 a:hover { color: var(--plum); }
.uh-read.is-research h3 a:hover { color: var(--accent); }
.uh-read-thumb {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--warm);
  margin-block: 6px 4px;
}
.uh-read-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uh-read-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid rgba(26, 20, 35, 0.06);
}
.uh-read-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.uh-read-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(92, 0, 96, 0.06);
  border: 1px solid rgba(92, 0, 96, 0.14);
  font: 600 0.80rem var(--font-body);
  color: var(--plum);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s var(--ease);
}
.uh-read-cta:hover {
  background: var(--plum);
  border-color: var(--plum);
  color: #ffffff;
}
.uh-read.is-research .uh-read-cta {
  background: rgba(10, 104, 96, 0.07);
  border-color: rgba(10, 104, 96, 0.18);
  color: var(--accent);
}
.uh-read.is-research .uh-read-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.uh-read-cta .icon { width: 12px; height: 12px; transition: transform 0.16s; }
.uh-read-cta:hover .icon { transform: translateX(2px); }
.uh-read-actions { display: flex; align-items: center; gap: 4px; }

/* ── Behavioral Curation: Based on your reading ───────────────────────────── */
.uh-curated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: 999px;
}
.uh-curated-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: 24px;
}
.uh-curated-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(26 10 30 / 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.uh-curated-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px rgb(92 0 96 / 0.12);
  border-color: var(--plum);
}
.uhc-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--warm);
  position: relative;
}
.uhc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.uh-curated-card:hover .uhc-thumb img {
  transform: scale(1.03);
}
.uhc-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.uhc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.uhc-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 7px;
  border-radius: 999px;
}
.uhc-match-pill .icon { width: 11px; height: 11px; }
.uhc-source {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
}
.uhc-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uhc-title a:hover { color: var(--plum); }
.uhc-summary {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.uhc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.uhc-time {
  font-size: 0.74rem;
  color: var(--muted);
}
.uhc-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--plum);
  transition: transform 0.16s;
}
.uhc-read-btn:hover { color: var(--plum-hover); transform: translateX(2px); }
.uhc-read-btn .icon { width: 12px; height: 12px; }

/* ── Suggestions Section: Places and Topics to Follow ────────────────────── */
.uh-suggest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.uh-suggest-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 6px rgb(26 10 30 / 0.02);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.uh-suggest-card:hover {
  transform: translateY(-2px);
  border-color: var(--plum);
  box-shadow: 0 6px 16px rgb(92 0 96 / 0.06);
}
.usc-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.usc-flag {
  flex: none;
  width: 36px;
  height: 26px;
  display: grid;
  place-items: center;
}
.usc-flag img {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.12);
}
.usc-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.usc-title {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--deep);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usc-sub {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.usc-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.usc-follow-btn {
  width: 100%;
  height: 32px;
  min-height: 32px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 7px;
  justify-content: center;
}
.usc-follow-btn.is-on {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
}

/* ── Topic page: shares the country page's hero, tabs and sections (cf-*) ──── */
.tp-tile { flex: none; display: grid; place-items: center; width: clamp(54px, 7vw, 76px); aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(145deg, var(--lavender), #fbf6fd); color: var(--plum); box-shadow: inset 0 0 0 1px rgb(92 0 96 / 0.1); }
.tp-tile .icon { width: 44%; height: 44%; }
.tp-tile.sm { width: 44px; border-radius: 8px; }
.tp-tile.xs { width: 36px; border-radius: 7px; }

/* Topic Hub Hero & Typography Refinements */
.tp-hero {
  border-bottom: 1px solid #ebddef;
  background: linear-gradient(180deg, #faf6fc 0%, #ffffff 100%);
}
.tp-hero .wrap {
  padding-block: clamp(32px, 4.5vw, 48px) clamp(36px, 5vw, 56px);
}
.tp-hero .crumbs {
  margin-bottom: clamp(18px, 2.5vw, 24px);
}
.tp-hero .cf-head {
  margin-top: 0;
  margin-bottom: clamp(22px, 3vw, 30px);
}
.tp-hero .cf-id h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--deep);
}
.tp-blurb {
  max-width: 680px;
  margin-top: 0;
  margin-bottom: clamp(28px, 4vw, 40px);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.tp-hero .cf-keyfacts {
  margin-top: 0;
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid #ebddef;
}

/* Dedicated Filter Toolbar between Subnav and Feed */
.tp-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(32px, 4.5vw, 48px);
  margin-bottom: clamp(36px, 5.5vw, 56px);
  padding: 14px 22px;
  background: #faf6fc;
  border: 1px solid #ebddef;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(26, 10, 30, 0.02);
}
.tp-filter[hidden] {
  display: none;
}
.tp-filter label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.tp-filter .select {
  width: 250px;
  height: 38px;
  background-color: #ffffff;
  border: 1px solid #dec8e8;
  border-radius: 999px;
  padding-left: 16px;
  font-size: 0.86rem;
  color: var(--deep);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(26, 10, 30, 0.03);
}

/* Topic Section & Header Spacing */
.tp-section {
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(64px, 8vw, 100px);
  min-height: auto;
}
#latest.tp-section {
  padding-top: clamp(28px, 4vw, 44px);
}
.tp-section .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid #ebddef;
}
.tp-section .sec-head h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--deep);
  margin: 0;
}
.tp-section .sec-head .sec-intro {
  margin-top: 6px;
  font-size: 0.90rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Editorial, spacious article rows for Topic Hub */
.tp-feed {
  display: grid;
  gap: clamp(20px, 2.8vw, 26px);
}
.tp-feed .news-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: clamp(22px, 3vw, 28px);
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(26, 10, 30, 0.02);
  transition: all 0.2s ease;
}
.tp-feed .news-row:first-child {
  padding-top: clamp(22px, 3vw, 28px);
}
.tp-feed .news-row:hover {
  border-color: #d6bfde;
  box-shadow: 0 6px 20px rgba(92, 0, 96, 0.06);
  transform: translateY(-1px);
}
.tp-feed .news-row.has-thumb {
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.tp-feed .news-row .nr-meta {
  padding-right: 84px;
  font-size: 0.80rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tp-feed .news-row .nr-meta strong {
  color: var(--deep);
  font-weight: 600;
}
.tp-feed .news-row h3 {
  margin: 8px 0 0;
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.tp-feed .news-row h3 a {
  color: var(--deep);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.tp-feed .news-row h3 a:hover {
  color: var(--plum);
}
.tp-feed .news-row .summary {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.tp-feed .news-row .nr-foot {
  position: absolute;
  top: clamp(18px, 2.2vw, 24px);
  right: clamp(18px, 2.5vw, 24px);
  margin: 0;
}
/* Hide redundant and tacky topic tag pills on topic hub */
.tp-feed .news-row .nr-foot > .tag,
.tp-feed .news-row .nr-foot > .kind-tag {
  display: none !important;
}
.tp-feed .news-row .nr-foot .actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tp-feed .news-row .nr-foot .actions .btn {
  height: 34px;
  width: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #efe3f2;
  background: #faf6fc;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.tp-feed .news-row .nr-foot .actions .btn:hover {
  background: #f5edf8;
  color: var(--plum);
  border-color: #dfcbe6;
  box-shadow: 0 2px 6px rgba(92, 0, 96, 0.08);
}

.tp-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 8px;
  border-top: none;
}
.tp-related-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(26, 10, 30, 0.02);
  transition: all 0.18s ease;
}
.tp-related-text { min-width: 0; }
.tp-related-text strong { display: block; font: 500 0.95rem var(--font-display); color: var(--deep); transition: color 0.18s; }
.tp-related-text span { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-related-row:hover {
  border-color: #d6bfde;
  box-shadow: 0 4px 16px rgba(92, 0, 96, 0.06);
  transform: translateY(-1px);
}
.tp-related-row:hover strong { color: var(--plum); }
.tp-related-count { font-size: 0.76rem; color: var(--muted); }
.tp-related-count::after { content: ' this week'; }

@media (max-width: 640px) {
  .tp-hero .cf-id h1 {
    font-size: 1.35rem;
  }
  .tp-hero .cf-head {
    margin-bottom: 18px;
  }
  .tp-blurb {
    font-size: 0.88rem;
    margin-bottom: 24px;
  }
  .tp-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .tp-filter .select {
    width: 100%;
  }
  .tp-feed {
    gap: 16px;
  }
  .tp-feed .news-row {
    padding: 16px 18px;
  }
  .tp-feed .news-row.has-thumb {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .tp-feed .news-row.has-thumb .news-thumb {
    width: 100%;
    height: 150px;
  }
  .tp-feed .news-row .nr-meta {
    padding-right: 68px;
  }
  .tp-feed .news-row h3 {
    font-size: 0.96rem;
    font-weight: 500;
  }
  .tp-related {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .tp-related-count::after { content: ''; }
}


/* First-run setup */
.uh-setup {
  display: grid;
  gap: 28px;
  max-width: 880px;
  padding: clamp(24px, 3.5vw, 38px);
  background: #faf7fb;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.uh-setup-intro h2 { font-size: 1.35rem; color: var(--deep); margin-top: 4px; }
.uh-setup-intro p { font-size: 0.92rem; color: var(--ink-2); margin-top: 4px; }
.uh-setup-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.uh-setup-label h3 { font: 500 0.74rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.uh-setup-label .text-link { padding: 0; border: 0; background: none; font-weight: 500; font-size: 0.84rem; }
.uh-setup .chips { gap: 8px; }
.uh-setup .chip { height: 36px; padding: 0 14px; gap: 8px; border-color: var(--line); background: #fff; color: var(--ink-2); font-size: 0.85rem; font-weight: 400; }
.uh-setup .chip .flag { width: 18px; height: 13px; border-radius: 2px; }
.uh-setup .chip:hover { border-color: var(--line-strong); color: var(--deep); }
.uh-setup .chip[aria-pressed="true"] { background: var(--lavender); border-color: rgb(92 0 96 / 0.35); color: var(--plum); font-weight: 500; }
.uh-setup .chip[aria-pressed="true"]::after { content: ''; width: 12px; height: 12px; margin-right: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.uh-setup-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }

.uh .colony-band { margin-top: 0; }

@media (max-width: 900px) {
  .uh-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .uh .ed-lead { min-height: 320px; }
  .uh-curated-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uh-suggest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .uh-hello { padding-top: 48px; padding-bottom: 34px; }
  .uh-hello-inner { align-items: flex-start; }
  .uh-countries { grid-template-columns: minmax(0, 1fr); }
  .uh-add { min-height: 96px; }
  .uh-setup { gap: 24px; padding: 22px 18px; }
  .uh-setup-intro h2 { font-size: 1.15rem; }
  .uh-setup-intro p { font-size: 0.86rem; }
  .uh-setup .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .uh-setup .chip { height: auto; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 0.82rem; line-height: 1.25; white-space: normal; justify-content: flex-start; text-align: left; }
  .uh-setup .chip[aria-pressed="true"]::after { margin-left: auto; flex: none; }
  .uh-setup-foot { padding-top: 18px; }
  .uh-setup-foot .hint { font-size: 0.78rem; }
  .uh-setup-foot .btn { width: 100%; }
  .uh-curated-grid { grid-template-columns: minmax(0, 1fr); }
  .uh-suggest-grid { grid-template-columns: minmax(0, 1fr); }
}

/* In-Browser Personalization Bar */
.personalize-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 28px; box-shadow: var(--shadow); }
.personalize-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.personalize-head h3 { font-size: 1.05rem; font-weight: 600; color: var(--deep); display: flex; align-items: center; gap: 8px; }
.personalize-head .hint { font-size: 0.84rem; color: var(--muted); }
.personalize-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.personalize-chip { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--warm); font: 500 0.85rem var(--font-body); color: var(--ink-2); transition: all 0.18s; user-select: none; }
.personalize-chip:hover { border-color: var(--plum); color: var(--plum); }
.personalize-chip.active { background: var(--plum); border-color: var(--plum); color: #fff; }
.personalize-chip .flag { width: 16px; height: 12px; }
.personalize-chip.add-more { border-style: dashed; background: #fff; color: var(--accent-text); border-color: var(--accent-border); }
.personalize-chip.add-more:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.personalize-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); flex-wrap: wrap; }
.personalize-status strong { color: var(--deep); font-weight: 600; }
.personalize-status a { color: var(--accent); font-weight: 600; }
.personalize-status a:hover { text-decoration: underline; }

/* Filter Drawer / Accordion */
.filter-drawer { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.filter-drawer.open { display: block; animation: rise 0.2s var(--ease); }
.filter-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .filter-drawer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.filter-drawer-col h4 { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 10px; }
.filter-drawer-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; padding-right: 4px; }

/* Guest Invitation Banner */
.guest-invite { background: linear-gradient(135deg, var(--warm) 0%, #fff 100%); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-lg); padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--shadow); margin-block: 8px; }
.guest-invite h3 { font-size: 1.45rem; color: var(--deep); font-weight: 600; }
.guest-invite p { color: var(--muted); font-size: 0.96rem; margin-top: 6px; max-width: 600px; line-height: 1.6; }
.guest-invite-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Sector Visual Channels (Cohesive Brand Palette) ─────────────────────── */
.channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
@media (max-width: 960px) { .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .channel-grid { grid-template-columns: minmax(0, 1fr); } }
.channel-card { position: relative; padding: 22px 20px; background: #ffffff; border: 1px solid var(--line); border-top: 3px solid var(--plum); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; transition: all 0.22s var(--ease); box-shadow: 0 4px 14px -6px rgb(26 10 30 / 0.05); }
.channel-card:hover { box-shadow: 0 10px 24px -10px rgb(46 3 50 / 0.14); border-color: #d6c4e0; transform: translateY(-2px); }
.channel-card:nth-child(even) { border-top-color: var(--accent); }
.channel-icon { width: 42px; height: 42px; border-radius: 9px; background: #f5edf8; display: grid; place-items: center; font-size: 1.25rem; }
.channel-card:nth-child(even) .channel-icon { background: #edf8f6; }
.channel-card h3 { font-size: 0.98rem; font-weight: 600; color: var(--deep); }
.channel-card h3 a::after { content: ''; position: absolute; inset: 0; }
.channel-card p { font-size: 0.82rem; color: var(--ink-2); line-height: 1.52; }
.channel-meta { margin-top: auto; padding-top: 10px; font-size: 0.78rem; font-weight: 600; color: var(--plum); display: inline-flex; align-items: center; gap: 5px; }
.channel-card:nth-child(even) .channel-meta { color: var(--accent); }

/* ── Member Access Restrictions & Intelligence Gate ──────────────────────── */
.gate-card { background: linear-gradient(135deg, #fff 0%, #faf3fc 50%, #f0faf8 100%); border: 1px solid var(--accent-border); border-top: 3px solid var(--accent); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lift); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr); gap: 36px; align-items: center; margin-top: 40px; }
@media (max-width: 860px) { .gate-card { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.gate-copy h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); color: var(--deep); font-weight: 600; line-height: 1.25; }
.gate-copy p { color: var(--ink-2); font-size: 0.88rem; line-height: 1.55; margin-top: 8px; }
.gate-perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 0.86rem; color: var(--deep); font-weight: 500; }
.gate-perks li { display: flex; align-items: flex-start; gap: 10px; }
.gate-perks li .icon { margin-top: 2px; }
.gate-perks .icon { color: var(--accent); width: 16px; height: 16px; flex: none; }
.gate-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 14px; }
.gate-box strong { font-size: 1.08rem; color: var(--deep); }
.gate-box span { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.gate-box .btn { white-space: nowrap; font-size: 0.88rem; padding: 10px 14px; height: 42px; min-height: 42px; display: flex; align-items: center; justify-content: center; }

.lock-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 4px 11px; line-height: 1.3; border-radius: 999px; background: var(--accent-light); color: var(--accent-text); font: 600 0.72rem var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.lock-badge .icon { width: 13px; height: 13px; }
.read-card.is-locked { border-top-color: var(--accent); background: linear-gradient(180deg, #fff 0%, var(--warm) 100%); }
.read-card.is-locked h3 a:hover { color: var(--accent); }
.lock-link { font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; font-size: 0.86rem; }
.lock-link:hover { text-decoration: underline; }
.rc-thumb { width: 100%; height: 170px; border-radius: var(--r-sm); overflow: hidden; background: var(--warm); margin-bottom: 14px; }
.rc-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Guest home: photo hero with plum overlay ─────────────────────────────── */
.gh-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: #fff; }
.gh-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; z-index: -2; }
.gh-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgb(26 10 30 / 0.95) 0%, rgb(48 4 54 / 0.86) 40%, rgb(92 0 96 / 0.42) 72%, rgb(26 10 30 / 0.25) 100%); }
.gh-hero-inner { padding-block: clamp(72px, 9vw, 120px) clamp(56px, 7vw, 88px); }
.gh-hero-inner > * { max-width: 640px; }
.gh-hero h1 { margin-top: 0; color: #fff; font-size: clamp(1.85rem, 4.2vw, 2.75rem); line-height: 1.14; letter-spacing: -0.03em; }
.gh-hero h1 em { font-style: normal; color: var(--teal-glow); }
.gh-hero-inner > p { margin-top: 16px; font-size: 0.98rem; line-height: 1.58; color: rgb(255 255 255 / 0.88); }
.gh-hero .hero-search { margin-top: 24px; max-width: 480px; }
.gh-hero .hero-search input { border-color: transparent; border-radius: 12px; box-shadow: 0 14px 36px -14px rgb(0 0 0 / 0.5); }
.gh-hero .hero-search input:focus { border-color: var(--accent); }
.gh-hero .hero-search button { border-radius: 8px; }
/* ── Guest home: Regional Gateways (Dedicated Section) ────────────────────── */
.section-region-bar { background: linear-gradient(180deg, #faf5fc 0%, #f0f8f7 100%); border-bottom: 1.5px solid rgb(92 0 96 / 0.1); padding-block: clamp(34px, 4.5vw, 48px); }
.rg-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px 36px; flex-wrap: wrap; }
.rg-copy { max-width: 500px; }
.rg-copy h2 { font-size: clamp(1.18rem, 2vw, 1.42rem); margin-top: 5px; margin-bottom: 6px; letter-spacing: -0.02em; line-height: 1.25; color: var(--deep); }
.rg-copy p { font-size: 0.86rem; line-height: 1.55; color: var(--ink-2); }
.rg-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: 1; min-width: 280px; }
.rg-trigger { display: none; align-items: center; justify-content: space-between; width: 100%; height: 50px; padding: 0 18px; border-radius: 14px; background: #fff; border: 1.5px solid rgb(92 0 96 / 0.18); box-shadow: 0 4px 16px -4px rgb(92 0 96 / 0.08); color: var(--deep); font: 600 0.92rem var(--font-body); cursor: pointer; transition: all 0.2s var(--ease); }
.rg-trigger:hover { border-color: var(--plum); box-shadow: 0 6px 20px -4px rgb(92 0 96 / 0.14); }
.rg-trigger-label { display: inline-flex; align-items: center; gap: 10px; color: var(--deep); }
.rg-trigger-label .icon { width: 18px; height: 18px; color: var(--accent); }
.rg-trigger-arrow .icon { width: 16px; height: 16px; color: var(--muted); }
.rg-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rg-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; background: #fff; border: 1px solid rgb(92 0 96 / 0.14); color: var(--deep); font: 600 0.84rem var(--font-body); box-shadow: 0 2px 6px rgb(92 0 96 / 0.04); transition: all 0.2s var(--ease); }
.rg-chip:hover { background: var(--lavender); border-color: var(--plum); color: var(--plum); transform: translateY(-1px); }
.rg-chip-count { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--accent-light); color: var(--accent); }
.rg-chip-all { background: linear-gradient(135deg, var(--plum) 0%, #300436 100%); color: #fff; border-color: transparent; }
.rg-chip-all:hover { background: var(--plum); color: #fff; }
.rg-chip-all .icon { width: 14px; height: 14px; }

/* ── Custom Region Dropdown Menu Modal ────────────────────────────────────── */
.region-modal-sheet { display: grid; gap: 14px; padding: clamp(16px, 3.5vw, 24px); }
.region-modal-note { font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; }
.region-modal-grid { display: grid; gap: 10px; }
.region-modal-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 30px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px solid rgb(92 0 96 / 0.1); box-shadow: 0 2px 8px rgb(26 10 30 / 0.04); text-decoration: none; transition: all 0.2s var(--ease); }
.region-modal-card:hover { background: linear-gradient(135deg, #ffffff 0%, #faf3fc 100%); border-color: var(--plum); transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgb(92 0 96 / 0.16); }
.rmc-icon-badge { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #faf4fc 0%, #f0faf8 100%); border: 1px solid rgb(92 0 96 / 0.12); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.region-modal-card:hover .rmc-icon-badge { background: var(--lavender); border-color: var(--plum); }
.rmc-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rmc-title-row { display: block; width: 100%; }
.rmc-title { font-size: 0.98rem; font-weight: 600; color: var(--deep); line-height: 1.25; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmc-sub-row { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; min-width: 0; }
.rmc-count-pill { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-border); flex: none; white-space: nowrap; }
.rmc-dot { color: var(--line-strong); flex: none; font-weight: 700; }
.rmc-sample-text { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rmc-arrow-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--warm); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: all 0.2s; flex: none; }
.rmc-arrow-btn .icon { width: 14px; height: 14px; }
.region-modal-card:hover .rmc-arrow-btn { background: var(--plum); border-color: var(--plum); color: #fff; transform: translateX(2px); }
.region-modal-footer { margin-top: 6px; }
.gh-bar { background: rgb(20 6 24 / 0.55); border-top: 1px solid rgb(255 255 255 / 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.gh-bar-inner { display: flex; align-items: center; justify-content: flex-start; gap: 14px; padding-block: 16px; font-size: 0.88rem; color: rgb(255 255 255 / 0.86); flex-wrap: wrap; }
.gh-bar-text { color: rgb(255 255 255 / 0.9); }
.gh-bar-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 16px; border-radius: 999px; background: var(--accent); color: #ffffff; font-weight: 600; font-size: 0.84rem; text-decoration: none; transition: all 0.2s ease; box-shadow: 0 2px 10px rgb(13 116 112 / 0.3); }
.gh-bar-btn:hover { background: var(--teal-glow); color: var(--deep); transform: translateY(-1px); }
.gh-bar-or { color: rgb(255 255 255 / 0.6); font-size: 0.82rem; }
.gh-bar-link { color: #ffffff; font-weight: 600; text-decoration: underline; text-decoration-color: rgb(127 224 210 / 0.6); text-underline-offset: 3px; transition: color 0.18s; }
.gh-bar-link:hover { color: var(--teal-glow); }

/* ── Guest home: Daily Edition ────────────────────────────────────────────── */
.ed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.ed-mast { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.ed-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--accent-light); color: var(--accent-text); font: 700 0.7rem/1.3 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.ed-date { display: inline-flex; align-items: center; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.ed-head h2 { margin-top: 0; margin-bottom: 8px; font-size: clamp(1.18rem, 2vw, 1.38rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--deep); }
.ed-head p { margin-top: 0; max-width: 620px; color: var(--ink-2); font-size: 0.86rem; line-height: 1.58; }
.ed-wire-btn { flex: none; align-self: flex-end; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: stretch; }
.ed-sk-lead { min-height: 420px; border-radius: var(--r-lg); }

.ed-empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); background: linear-gradient(135deg, #faf3fc 0%, #ffffff 50%, #f0faf8 100%); border: 1px solid rgb(92 0 96 / 0.15); border-left: 4px solid var(--plum); box-shadow: var(--shadow); max-width: 640px; }
.ed-empty-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid rgb(92 0 96 / 0.12); font: 600 0.72rem var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--plum); }
.ed-empty-badge .icon { width: 14px; height: 14px; color: var(--plum); }
.ed-empty-body { display: grid; gap: 4px; width: 100%; }
.ed-empty-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--deep); line-height: 1.32; letter-spacing: -0.01em; }
.ed-empty-body p { font-size: 0.86rem; color: var(--ink-2); line-height: 1.55; max-width: 580px; }
.ed-empty-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; width: 100%; }

.ed-lead { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 440px; border-radius: var(--r-lg); background: linear-gradient(140deg, var(--plum) 0%, var(--deep) 100%); color: #fff; box-shadow: var(--shadow-lift); }
.ed-lead-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease); }
.ed-lead:hover .ed-lead-img { transform: scale(1.03); }
.ed-lead::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(26 10 30 / 0) 15%, rgb(26 10 30 / 0.6) 48%, rgb(26 10 30 / 0.95) 100%); }
.ed-lead.no-img { min-height: 360px; }
.ed-lead.no-img::before { background: radial-gradient(circle at 85% 10%, rgb(127 224 210 / 0.22), transparent 45%); }
.ed-lead-body { width: 100%; padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; }
.ed-lead-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 0.8rem; color: rgb(255 255 255 / 0.82); }
.ed-lead-src-wrap { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ed-lead-src-wrap strong { color: #fff; font-weight: 600; }
.ed-lead-meta .dot-sep { background: rgb(255 255 255 / 0.5); }
.ed-pill { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 0.65rem/1.3 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.ed-lead h3 { color: #fff; font-size: clamp(1.18rem, 2vw, 1.45rem); font-weight: 600; line-height: 1.34; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ed-lead h3 a::after { content: ''; position: absolute; inset: 0; }
.ed-lead .summary { color: rgb(255 255 255 / 0.84); font-size: 0.88rem; line-height: 1.55; max-width: 640px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ed-lead-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 0.16); }
.ed-lead-foot .flag-link { color: #fff; }
.ed-lead-foot .actions { margin-left: auto; }
.ed-lead .act { color: rgb(255 255 255 / 0.85); }
.ed-lead .act:hover { background: rgb(255 255 255 / 0.14); color: #fff; }
.ed-lead .act.saved { color: var(--teal-glow); }

.ed-list { display: flex; flex-direction: column; }
.ed-list-lbl { padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 600 0.72rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ed-item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(26, 20, 35, 0.08); }
.ed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ed-num { font: 600 1.15rem/1.1 var(--font-display); color: var(--accent); letter-spacing: -0.01em; opacity: 0.9; }
.ed-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 0.78rem; color: var(--muted); }
.ed-item-meta strong { color: var(--ink-2); font-weight: 600; }
.ed-item h3 { margin-top: 5px; font-size: 0.95rem; font-weight: 500; line-height: 1.44; letter-spacing: -0.01em; }
.ed-item h3 a::after { content: ''; position: absolute; inset: 0; }
.ed-item h3 a:hover { color: var(--plum); }
.ed-item-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.ed-item-foot .actions { margin-left: auto; }

/* ── Guest home: Market Wire ──────────────────────────────────────────────── */
.wire-section .section-head { margin-bottom: 24px; }
.wire-panel { padding: clamp(20px, 3.5vw, 32px); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-lg); background: linear-gradient(145deg, #ffffff 0%, #faf4fc 45%, #f0faf8 100%); box-shadow: 0 8px 30px -10px rgb(92 0 96 / 0.07); }
.wire-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 16px; margin-top: 4px; }
.wire-status-scope { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.wire-status-scope .ws-prefix { font: 700 0.70rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wire-status-scope .ws-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: #ffffff; border: 1.5px solid rgb(92 0 96 / 0.14); box-shadow: 0 1px 4px rgb(26 10 30 / 0.04); line-height: 1.25; }
.wire-status-scope .ws-pill .live-dot-sm { flex-shrink: 0; }
.wire-status-scope .ws-pill strong { color: var(--deep); font-size: 0.84rem; font-weight: 600; letter-spacing: -0.01em; }
.wire-more-link { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; background: rgb(13 116 112 / 0.08); border: 1.5px solid rgb(13 116 112 / 0.22); color: var(--accent); font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.4, 1); white-space: nowrap; }
.wire-more-link:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; box-shadow: 0 4px 14px rgb(13 116 112 / 0.25); transform: translateY(-1px); }
.wire-more-link .icon { width: 13px; height: 13px; transition: transform 0.2s ease; }
.wire-more-link:hover .icon { transform: translateX(3px); color: #ffffff; }
.wire-empty-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; margin-top: 14px; border-radius: var(--r); background: linear-gradient(135deg, #f2faf8 0%, #ffffff 45%, #faf3fc 100%); border: 1px solid rgb(13 116 112 / 0.2); border-left: 4px solid var(--accent); box-shadow: 0 4px 18px -4px rgb(13 116 112 / 0.1); max-width: 640px; }
.wec-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; margin-bottom: 6px; border-radius: 999px; background: var(--accent-light); color: var(--accent); font: 700 0.68rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.wec-body { display: grid; gap: 4px; }
.wec-body h3 { font-size: 0.98rem; font-weight: 600; color: #2a0830; line-height: 1.3; margin-top: 4px; }
.wec-body p { font-size: 0.82rem; color: var(--ink-2); line-height: 1.48; max-width: 540px; }
.wec-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.live-dot-sm { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgb(13 116 112 / 0.25); animation: live-breathe 2s ease-in-out infinite alternate; display: inline-block; }
.wire-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wire-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r); transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.wire-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.wire-card-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.78rem; color: var(--muted); }
.wire-card-meta strong { min-width: 0; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wire-card h3 { font-size: 0.95rem; line-height: 1.38; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wire-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.wire-card h3 a:hover { color: var(--plum); }
.wire-card-foot .tag { display: block; min-width: 0; line-height: 22px; height: 22px; font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; }
.wire-card-foot time { flex: none; font-size: 0.76rem; }
.wire-card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.wire-card-foot .actions { margin-left: auto; }
.wire-cta { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--r); background: linear-gradient(135deg, #fbf7fc 0%, #f3f9f8 100%); border: 1px solid rgb(92 0 96 / 0.12); }
.wire-cta strong { color: var(--deep); font: 600 0.95rem var(--font-display); }
.wire-cta p { margin-top: 3px; color: var(--ink-2); font-size: 0.84rem; }

@keyframes live-breathe {
  0% { opacity: 0.75; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 0 2px rgb(255 255 255 / 0.4), 0 0 10px rgb(127 224 210 / 0.95); }
}

/* ── Mobile refinements (last in the file so they win) ───────────────────── */
h1, h2, h3 { overflow-wrap: break-word; }
.read-card .rc-foot { flex-wrap: wrap; }

@media (max-width: 1000px) {
  .wire-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ed-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 800px) {
  .wire-filter-desktop { display: none !important; }
  .wire-filter-mobile { display: block !important; margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .section-head { margin-bottom: 22px; gap: 12px; }
  .section-head h2 { font-size: 1.18rem; }
  .section-head p { font-size: 0.84rem; line-height: 1.5; margin-top: 6px; }

  .gh-hero { min-height: clamp(520px, 80vh, 640px); display: flex; flex-direction: column; justify-content: space-between; }
  .gh-hero::before { background: linear-gradient(180deg, rgb(26 10 30 / 0.78) 0%, rgb(48 4 54 / 0.88) 55%, rgb(26 10 30 / 0.96) 100%); }
  .gh-hero-img { object-position: 60% center; }
  .gh-hero-inner { padding-top: clamp(64px, 14vw, 84px); padding-bottom: 32px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .gh-hero h1 { font-size: clamp(1.42rem, 5.4vw, 1.75rem); line-height: 1.22; margin-top: clamp(24px, 6vw, 36px); }
  .gh-hero-inner > p { font-size: 0.9rem; line-height: 1.55; margin-top: 12px; }
  .gh-hero .hero-search { position: relative; margin-top: 20px; max-width: 100%; width: 100%; }
  .gh-hero .hero-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
  .gh-hero .hero-search input { width: 100%; height: 48px; padding: 0 92px 0 44px; border-radius: 999px; font-size: 0.88rem; background: #ffffff; border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25); }
  .gh-hero .hero-search button { position: absolute; right: 5px; top: 5px; bottom: 5px; height: 38px; min-height: 38px; width: auto; border-radius: 999px; margin: 0; padding: 0 18px; font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
  .section-region-bar { padding-block: 36px 40px; }
  .rg-bar { gap: 18px; }
  .rg-copy { max-width: 100%; }
  .rg-copy h2 { font-size: 1.18rem; margin-top: 4px; margin-bottom: 6px; }
  .rg-copy p { font-size: 0.84rem; line-height: 1.5; }
  .rg-actions { width: 100%; min-width: 0; }
  .rg-trigger { display: flex; width: 100%; height: 50px; border-radius: 14px; margin-top: 4px; }
  .rg-chips { display: none; }


  .section.edition { padding-top: 36px; padding-bottom: 40px; }
  .ed-head { padding-bottom: 14px; margin-bottom: 18px; gap: 10px; }
  .ed-mast { margin-bottom: 8px; }
  .ed-head h2 { font-size: 1.12rem; line-height: 1.3; margin-top: 0; margin-bottom: 6px; }
  .ed-head p { font-size: 0.82rem; line-height: 1.5; margin-top: 0; }
  .ed-wire-btn { align-self: flex-start; margin-top: 2px; }
  .ed-empty-state { padding: 20px 18px; gap: 12px; }
  .ed-empty-body h3 { font-size: 1.04rem; }
  .ed-empty-body p { font-size: 0.84rem; line-height: 1.5; }
  .ed-empty-actions { width: 100%; flex-direction: column; gap: 8px; }
  .ed-empty-actions .btn { width: 100%; justify-content: center; }

  /* Lead story card: compact, breathable, sleek proportions on mobile */
  .ed-lead { min-height: 230px; border-radius: 14px; }
  .ed-lead.no-img { min-height: 0; }
  .ed-lead-body { padding: 18px 16px; gap: 10px; }
  .ed-lead-meta { gap: 6px 8px; font-size: 0.74rem; }
  .ed-pill { padding: 2px 8px; font-size: 0.62rem; }
  .ed-lead h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.36; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ed-lead .summary { display: none; }
  .ed-lead-foot { padding-top: 10px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .ed-sk-lead { min-height: 230px; }

  /* Also Today list: clean spacing and typography */
  .ed-grid { gap: 24px; }
  .ed-list-lbl { font-size: 0.68rem; letter-spacing: 0.1em; padding-bottom: 8px; margin-bottom: 2px; }
  .ed-item { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(26, 20, 35, 0.06); }
  .ed-num { font: 600 0.98rem/1.2 var(--font-display); color: var(--accent); letter-spacing: -0.01em; opacity: 0.85; margin-top: 1px; }
  .ed-item-meta { font-size: 0.73rem; gap: 4px 6px; margin-bottom: 2px; }
  .ed-item h3 { font-size: 0.88rem; font-weight: 500; line-height: 1.38; margin-top: 3px; color: var(--deep); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ed-item-foot { margin-top: 6px; gap: 6px 8px; font-size: 0.74rem; }

  .wire-panel { padding: clamp(18px, 4vw, 22px) 16px; border-radius: var(--r); }
  .wire-filter-toolbar { grid-template-columns: 1fr; gap: 10px; }
  .wire-filter-btn { height: 44px; font-size: 0.86rem; border-radius: 11px; }
  .wire-status { padding: 14px 0 12px; margin-top: 4px; gap: 10px; }
  .wire-status-scope .ws-prefix { font-size: 0.66rem; }
  .wire-status-scope .ws-pill { padding: 3px 10px; }
  .wire-status-scope .ws-pill strong { font-size: 0.80rem; }
  .wire-more-link { padding: 5px 12px; font-size: 0.78rem; }


  .wire-empty-card { padding: 20px 18px; gap: 12px; margin-top: 14px; border-radius: var(--r); }
  .wire-empty-card .wec-actions { width: 100%; flex-direction: column; gap: 8px; }
  .wire-empty-card .wec-actions .btn { width: 100%; justify-content: center; }
  .wire-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wire-card { padding: 18px 14px; gap: 12px; }
  .wire-card h3 { font-size: 0.92rem; }
  .wire-cta { padding: 18px 16px; margin-top: 20px; }
  .wire-cta .btn { width: 100%; }

  .channel-grid { gap: 16px; margin-top: 22px; }
  .channel-card { padding: 20px 18px; gap: 10px; }
  .gate-card { padding: 28px 20px; margin-top: 36px; gap: 24px; }
  .gate-box { padding: 22px 16px; gap: 12px; }
  .gate-box .btn { font-size: 0.84rem; padding: 10px 12px; height: 42px; min-height: 42px; white-space: nowrap; }
  .guest-invite { padding: 24px 20px; }

  .colony-band { border-bottom: 4px solid var(--accent); margin-top: clamp(28px, 5vw, 48px); }
  .colony-band-wrap { padding-block: 42px 36px; }
  .colony-kicker { margin-bottom: 14px; }
  .colony-band-copy h2 { font-size: 1.32rem; line-height: 1.28; margin-top: 4px; }
  .colony-band-copy p { font-size: 0.92rem; }
  .colony-band-btns { width: 100%; }
  .colony-band-btns .btn { width: 100%; justify-content: center; }

  .preview-card { padding: 20px 18px; border-radius: 16px; }
  .preview-card .flag-lg { width: 48px; height: 36px; border-radius: 6px; }
  .preview-card h3 { font-size: 1.28rem; }
  .pc-stats { margin: 16px 0; gap: 10px; }
  .pc-stat { padding: 12px 12px; }
  .pc-stat strong { font-size: clamp(0.88rem, 3.2vw, 1rem); }
  .pc-stat span { font-size: 0.72rem; }
  .pc-btn { font-size: 0.88rem; height: 42px; min-height: 42px; }

  .sample-copy .btn, .preview-card .btn { width: 100%; justify-content: center; }

  dialog.sheet { width: 100vw; max-width: 100vw; max-height: 84dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
  dialog.sheet[open] { animation: sheetSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1); }
  .sheet-head { flex: none; padding: 12px 16px 8px; }
  .cpm-head { padding: 14px 16px 4px; }
  .cpm-toolbar { padding: 10px 16px 0; }
  .sec-modal-head { flex: none; padding: 12px 16px 8px; }
  .sec-modal-body { flex: 1 1 auto; min-height: 0; max-height: none; padding: 12px 14px 18px; }
  .spm-head { flex: none; padding: 14px 16px 8px; }
  .spm-body { flex: 1 1 auto; min-height: 0; max-height: none; padding: 14px 16px 20px; }
  .spm-perks { padding: 10px 12px; }
  .pc-hint { font-size: 0.72rem; text-wrap: balance; }
}
@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .brand { gap: 6px; }
  .brand-word { font-size: 1.05rem; }
  .brand-by { height: 14px; padding-left: 6px; gap: 4px; }
  .brand-by-txt { font-size: 0.62rem; }
  .brand-by img { height: 14px; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Branded compact dropdown (replaces native selects on the Women's Safety tool) */
.bsel { position: relative; width: 100%; min-width: 0; }
.bsel-btn { width: 100%; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border: 1px solid #dcd1e2; border-radius: 999px; background: #fff; font: 500 0.84rem var(--font-body); color: var(--deep); text-align: left; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.bsel-btn:hover { border-color: var(--plum); }
.bsel-btn:focus-visible, .bsel-btn[aria-expanded="true"] { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgb(92 0 96 / 0.1); }
.bsel-label { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; white-space: nowrap; }
.bsel-prefix { flex: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.bsel-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bsel-btn > .icon { flex: none; width: 15px; height: 15px; color: var(--plum); transition: transform 0.2s var(--ease); }
.bsel-btn[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.bsel-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px -12px rgb(26 10 30 / 0.22), 0 2px 6px rgb(26 10 30 / 0.05); animation: cl-menu-in 0.16s var(--ease); }
.bsel-menu[hidden] { display: none; }
.bsel-opt { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 12px; border: 0; border-radius: 9px; background: none; font: 400 0.85rem var(--font-body); color: var(--ink-2); text-align: left; cursor: pointer; }
.bsel-opt > span { flex: 1; }
.bsel-opt .icon { flex: none; width: 15px; height: 15px; color: var(--plum); visibility: hidden; }
.bsel-opt:hover, .bsel-opt:focus-visible { outline: none; background: var(--warm); color: var(--deep); }
.bsel-opt[aria-selected="true"] { background: var(--lavender); color: var(--plum); font-weight: 600; }
.bsel-opt[aria-selected="true"] .icon { visibility: visible; }

/* Safety controls: search on its own line, region + sort side by side */
.ws-search-row .tool-sort-label { display: none; }
.ws-search-row .tool-sort-group { width: 200px; flex: none; }
.ws-search-row .cb-region-wrap { width: 220px; }
.ws-search-row .tool-sort-group .bsel-menu { left: auto; right: 0; }
@media (max-width: 720px) {
  .ws-search-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .ws-search-row .cb-search-wrap { grid-column: 1 / -1; }
  .ws-search-row .cb-region-wrap, .ws-search-row .tool-sort-group { width: auto; min-width: 0; }
}

/* Safety controls, decluttered: no tinted status box; chips first, then a quiet count + Expand line */
.ws-search-row .bsel-btn { height: 36px; font-size: 0.83rem; }
.ws-search-row .bsel-prefix { font-size: 0.8rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ws-search-row .bsel-prefix::after { content: ' ·'; }
.cb-controls-bar:has(.ws-search-row) { gap: 14px; }
.cb-controls-bar:has(.ws-search-row) .ws-status-bar { gap: 12px; padding: 0; background: none; border: 0; border-radius: 0; }
.ws-status-bar .ws-tier-chips { order: -1; }
.ws-status-bar .ws-tier-chips .tool-filter-chip { padding: 6px 13px; font-size: 0.8rem; }
.ws-status-bar .ws-status-row .cb-status-count { font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.ws-status-bar .cb-count-dot { display: none; }
.ws-status-bar .ws-toggle-btn { padding: 0; border: 0; background: none; font-size: 0.78rem; font-weight: 600; color: var(--plum); }
.ws-status-bar .ws-toggle-btn:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

/* Topic feed, decluttered: one clean meta line; save/share as quiet icons in the card's bottom-right */
.tp-feed .news-row { gap: 10px; }
.tp-feed .news-row .nr-meta { padding-right: 0; flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; }
.tp-feed .news-row .nr-meta .flags { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tp-feed .news-row .nr-foot { position: static; display: flex; justify-content: flex-end; margin: -4px -8px -10px 0; }
.tp-feed .news-row .nr-foot .actions { gap: 2px; }
.tp-feed .news-row .nr-foot .actions .act { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.tp-feed .news-row .nr-foot .actions .act:hover { background: var(--warm); color: var(--plum); }
.tp-feed .news-row .nr-foot .actions .act .icon { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .tp-feed .news-row .nr-meta { padding-right: 0; font-size: 0.78rem; }
}

/* Related topics has no filter bar above it, so give it its own top spacing */
#related.tp-section { padding-top: clamp(32px, 4.5vw, 48px); }

/* ── About Style Vault Page Redesign ─────────────────────────────────────── */
.ab-page {
  padding-bottom: clamp(60px, 8vw, 100px);
}
.ab-hero {
  background: linear-gradient(180deg, #faf6fc 0%, #ffffff 100%);
  border-bottom: 1px solid #ebddef;
  padding-block: clamp(40px, 6vw, 64px) clamp(36px, 5vw, 54px);
}
.ab-hero-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ab-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--plum);
  background: #f5e9f8;
  border: 1px solid #ebddef;
  padding: 5px 14px;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}
.ab-badge .icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.ab-hero h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--deep);
  max-width: 720px;
  margin: 0;
}
.ab-hero-lede {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 740px;
  margin: 0;
}
.ab-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 3.5vw, 36px);
}
.ab-stat-card {
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(26, 10, 30, 0.02);
}
.ab-stat-card strong {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--plum);
  letter-spacing: -0.02em;
}
.ab-stat-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* About Narrative Section */
.ab-section {
  padding-top: clamp(48px, 6vw, 72px);
}
.ab-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 40px);
}
.ab-card {
  padding: clamp(24px, 3.5vw, 36px);
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(26, 10, 30, 0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ab-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fbf6fd;
  color: var(--plum);
  display: grid;
  place-items: center;
  border: 1px solid #efe4f3;
}
.ab-card-icon .icon {
  width: 22px;
  height: 22px;
}
.ab-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--deep);
  margin: 0;
  letter-spacing: -0.015em;
}
.ab-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* What's in Style Vault - 4 Key Pillars */
.ab-pillars-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 4.5vw, 48px);
}
.ab-pillars-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.ab-pillars-head p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  text-wrap: balance;
}
.ab-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ab-pillar-item {
  padding: 24px 28px;
  background: #faf7fc;
  border: 1px solid #ebddef;
  border-radius: 14px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.ab-pillar-item:hover {
  transform: translateY(-2px);
  border-color: #d6bfde;
  box-shadow: 0 6px 20px rgba(92, 0, 96, 0.05);
}
.ab-pillar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ab-pillar-top strong {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--deep);
}
.ab-pillar-item p {
  font-size: 0.90rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* Editorial Charter & Trust Standards */
.ab-charter-box {
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 2px 10px rgba(26, 10, 30, 0.02);
  margin-top: clamp(48px, 6vw, 68px);
}
.ab-charter-head {
  margin-bottom: 24px;
}
.ab-charter-head h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--deep);
  margin: 0 0 8px;
}
.ab-charter-head p {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0;
}
.ab-charter-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ab-charter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ab-charter-item .chk {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef8f4;
  color: #107e54;
  display: grid;
  place-items: center;
  font-weight: bold;
}
.ab-charter-item strong {
  font-size: 0.98rem;
  color: var(--deep);
}
.ab-charter-item p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* About Quick Links & Policy Grid */
.ab-quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ab-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
  transition: all 0.16s ease;
  box-shadow: 0 1px 3px rgba(26, 10, 30, 0.02);
}
.ab-quick-chip:hover {
  background: #fbf6fd;
  border-color: var(--plum);
  color: var(--plum);
  transform: translateY(-1px);
}
.ab-quick-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--plum);
}

.ab-policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 28px);
}
.ab-policy-card {
  padding: clamp(24px, 3.5vw, 32px);
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(26, 10, 30, 0.02);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.18s ease;
}
.ab-policy-card:hover {
  border-color: #d6bfde;
  box-shadow: 0 6px 20px rgba(92, 0, 96, 0.06);
  transform: translateY(-2px);
}
.ab-policy-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fbf6fd;
  border: 1px solid #ebddef;
  color: var(--plum);
  display: grid;
  place-items: center;
  flex: none;
}
.ab-policy-icon .icon {
  width: 22px;
  height: 22px;
}
.ab-policy-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.ab-policy-body h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--deep);
  margin: 0;
}
.ab-policy-body p {
  font-size: 0.90rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.ab-policy-foot {
  margin-top: 8px;
}
@media (max-width: 760px) {
  .ab-policy-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-policy-card { flex-direction: column; gap: 14px; }
}

/* Ria's Colony Banner */
.ab-colony-card {
  margin-top: clamp(44px, 6vw, 64px);
  padding: clamp(32px, 4.5vw, 48px);
  background: linear-gradient(135deg, #2b002d 0%, #1a0a1e 100%);
  border-radius: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.ab-colony-copy {
  max-width: 620px;
}
.ab-colony-copy h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 10px;
  color: #ffffff;
}
.ab-colony-copy p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.ab-colony-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Privacy Policy Page ─────────────────────────────────────────────────── */
.pv-page {
  padding-bottom: clamp(60px, 8vw, 100px);
}
.pv-hero {
  background: linear-gradient(180deg, #faf6fc 0%, #ffffff 100%);
  border-bottom: 1px solid #ebddef;
  padding-block: clamp(36px, 5vw, 54px) clamp(32px, 4.5vw, 44px);
}
.pv-hero-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum);
  background: #f5e9f8;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
}
.pv-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--deep);
  margin: 0;
}
.pv-hero-meta {
  font-size: 0.86rem;
  color: var(--muted);
}
.pv-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  padding-top: clamp(36px, 5vw, 52px);
}
.pv-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #faf6fc;
  border: 1px solid #ebddef;
  border-radius: 14px;
}
.pv-nav-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
  padding-left: 8px;
}
.pv-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.15s ease;
}
.pv-nav a:hover {
  background: #f0e3f4;
  color: var(--plum);
}
.pv-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 820px;
}
.pv-card {
  padding: clamp(24px, 3.5vw, 36px);
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(26, 10, 30, 0.02);
}
.pv-card h2 {
  font-size: clamp(1.12rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--deep);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pv-card h2 .icon {
  width: 20px;
  height: 20px;
  color: var(--plum);
  flex: none;
}
.pv-sec-num {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum);
  background: #f6edf8;
  border: 1px solid #ebddef;
  padding: 1px 7px;
  border-radius: 6px;
  letter-spacing: 0;
  flex: none;
}
.pv-card p {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.pv-card p:last-child {
  margin-bottom: 0;
}
.pv-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pv-card li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.pv-card strong {
  color: var(--deep);
}
.pv-highlight {
  padding: 16px 20px;
  background: #faf6fc;
  border-left: 3px solid var(--plum);
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}
.pv-highlight p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .ab-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-story-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-pillars-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-charter-list { grid-template-columns: minmax(0, 1fr); }
  .pv-layout { grid-template-columns: minmax(0, 1fr); }
  .pv-nav { display: none; }
}

/* ── Signed-in home, desktop only (mobile layout is untouched) ─────────────── */
@media (min-width: 901px) {
  /* Setup: intro on the left, choices on the right, full width */
  .uh-setup {
    max-width: none;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    grid-template-areas: "intro countries" "intro topics" "intro foot";
    gap: 28px 56px;
    padding: 36px 40px;
    background: #fff;
    border-color: var(--line);
    border-radius: 16px;
  }
  .uh-setup-intro { grid-area: intro; align-self: start; padding-right: 8px; }
  .uh-setup-intro h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.015em; }
  .uh-setup-intro p { margin-top: 10px; line-height: 1.6; color: var(--muted); }
  .uh-setup-group:nth-of-type(2) { grid-area: countries; }
  .uh-setup-group:nth-of-type(3) { grid-area: topics; }
  .uh-setup-foot { grid-area: foot; }
  .uh-setup .chip { height: 34px; padding: 0 13px; font-size: 0.84rem; }

  /* News + research columns: one clean panel each, rows instead of boxed cards */
  .uh-split { gap: 28px; align-items: stretch; }
  .uh-panel, .uh-panel-news, .uh-panel-vault { padding: 26px 28px 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(26 10 30 / 0.03); }
  .uh-panel .uh-head { flex-wrap: nowrap; align-items: flex-start; margin-bottom: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .uh-panel .uh-head h2 { position: relative; padding-left: 14px; font-size: 1.2rem; margin-top: 0; }
  .uh-panel .uh-head h2::before { content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 3px; border-radius: 3px; background: var(--plum); }
  .uh-panel-vault .uh-head h2::before { background: var(--accent); }
  .uh-panel .uh-head p { padding-left: 14px; font-size: 0.85rem; color: var(--muted); }
  .uh-panel .uh-head .text-link { flex: none; margin-top: 4px; font-size: 0.84rem; }

  .uh-reads { gap: 0; }
  .uh-read, .uh-read.is-research {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "top top" "main foot";
    align-items: end;
    gap: 6px 16px;
    padding: 18px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .uh-read:last-child { border-bottom: 0; }
  .uh-read:hover, .uh-read.is-research:hover { background: none; box-shadow: none; transform: none; border-color: var(--line); }
  .uh-read-top { grid-area: top; flex-wrap: nowrap; }
  .uh-read-main { grid-area: main; }
  .uh-read-foot { grid-area: foot; padding: 0; border: 0; }
  .uh-read-tags, .uh-read-cta { display: none; }
  .uh-read-badges { flex-wrap: nowrap; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 0.78rem; color: var(--muted); }
  .uh-read-badges .flags a { font-size: 0.78rem; color: var(--ink-2); }
  .uh-read-source, .uh-read.is-research .uh-read-source { padding: 0; background: none; color: var(--deep); font: 600 0.78rem var(--font-body); }
  .uh-read-kind { padding: 0; background: none; color: var(--accent-text); font-size: 0.66rem; }
  .uh-read-source + .uh-read-kind::before { content: '·'; margin-right: 8px; color: var(--line-strong); }
  .uh-read h3 { font-size: 0.98rem; line-height: 1.45; }
  .uh-read h3 a { transition: color 0.18s; }
  .uh-read:hover h3 a { color: var(--plum); }
  .uh-read.is-research:hover h3 a { color: var(--accent-text); }
  .uh-read-actions .act { width: 30px; height: 30px; color: var(--muted); }
  .uh-read-actions .act:hover { color: var(--plum); background: var(--warm); }
}

/* ── Modern Collapsible Search Filters ────────────────────────────────────── */
.search-filter-panel {
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid #ebddef;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgb(26 10 30 / 0.04);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-filter-panel[open] {
  border-color: #dec8e8;
  box-shadow: 0 4px 16px rgb(92 0 96 / 0.06);
}
.search-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  font: 500 0.88rem var(--font-body);
  color: var(--deep);
  list-style: none;
  transition: background 0.18s;
}
.search-filter-summary::-webkit-details-marker {
  display: none;
}
.search-filter-summary:hover {
  background: #faf6fc;
}
.sfs-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.sfs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  flex: none;
}
.sfs-icon .icon {
  width: 17px;
  height: 17px;
}
.sfs-title {
  font-weight: 600;
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.sfs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 0.70rem;
  font-weight: 700;
  line-height: 1;
}
.sfs-hint {
  font-size: 0.80rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 4px;
}
.sfs-chevron {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  flex: none;
}
.sfs-chevron .icon {
  width: 16px;
  height: 16px;
}
.search-filter-panel[open] .sfs-chevron {
  transform: rotate(180deg);
}
.search-filters-body {
  padding: 16px 18px 18px;
  border-top: 1px solid #ebddef;
  background: #faf6fc;
}
.search-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sf-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.sf-label {
  font: 600 0.70rem var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-filters-grid .select {
  height: 40px;
  padding: 0 32px 0 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid #ebddef;
  background-color: #ffffff;
  background-size: 14px;
}
.search-filters-grid .select:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgb(92 0 96 / 0.1);
}
.search-filters-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #ebddef;
  font-size: 0.78rem;
  color: var(--muted);
}
.search-clear-btn {
  color: var(--plum);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}
.search-clear-btn:hover {
  color: #49053e;
}
@media (max-width: 768px) {
  .search-filters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sfs-hint {
    display: none;
  }
}
@media (max-width: 640px) {
  .brand-logo-mark {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 480px) {
  .search-filter-summary {
    padding: 10px 14px;
  }
  .search-filters-body {
    padding: 12px 14px 14px;
  }
}

/* ── Auth pages, refined: form in a white card beside the photo panel ──────── */
@media (min-width: 901px) { .auth-wrap { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); } }
.auth-form { align-items: center; padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px); }
.auth-form-inner { max-width: 420px; gap: 16px; }
.auth-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font: 500 0.82rem var(--font-body); color: var(--muted); transition: color 0.18s; }
.auth-back .icon { width: 15px; height: 15px; transform: rotate(180deg); transition: transform 0.18s var(--ease); }
.auth-back:hover { color: var(--plum); }
.auth-back:hover .icon { transform: rotate(180deg) translateX(3px); }
.auth-card { display: grid; gap: 18px; padding: clamp(26px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgb(26 10 30 / 0.04), 0 24px 48px -28px rgb(46 3 50 / 0.22); }
.auth-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, var(--lavender), #fbf6fd); color: var(--plum); box-shadow: inset 0 0 0 1px rgb(92 0 96 / 0.1); }
.auth-badge .icon { width: 20px; height: 20px; }
.auth-form-head { gap: 6px; }
.auth-form-head h1 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.auth-sub { font-size: 0.86rem; }
.auth-input { height: 46px; }
.auth-submit-btn { min-height: 46px; height: 46px; }
.auth-divider { margin-top: 6px; }
.auth-switch-btn { min-height: 44px; border-radius: 12px; }
.auth-fine { margin-top: 4px; }
.auth-fine a { font-weight: 400 !important; font-size: inherit; }
.auth-perks { list-style: none; margin: 10px 0 0; padding: 16px 0 0; display: grid; gap: 10px; border-top: 1px solid rgb(255 255 255 / 0.16); }
.auth-perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; line-height: 1.45; color: rgb(255 255 255 / 0.9); }
.auth-perks .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--teal-glow); }

@media (max-width: 900px) {
  .auth-form { align-items: flex-start; }
  .auth-form-inner { margin-inline: auto; }
}
@media (max-width: 640px) {
  .auth-visual { min-height: 190px; }
  .auth-visual-img { object-position: 50% 28%; }
  .auth-visual-copy { padding: 20px 18px 44px; }
  .auth-perks { display: none; }
  .auth-form { padding: 0 16px 40px; background: var(--warm); }
  .auth-form-inner { margin-top: -28px; position: relative; z-index: 1; gap: 14px; }
  .auth-back { order: 3; justify-self: center; }
  .auth-card { padding: 24px 20px; border-radius: 18px; }
  .auth-badge { width: 40px; height: 40px; }
}

/* ── Guest home hero, refined ─────────────────────────────────────────────── */
.gh-hero::before { background:
  linear-gradient(95deg, rgb(26 10 30 / 0.92) 0%, rgb(46 4 52 / 0.78) 38%, rgb(92 0 96 / 0.28) 70%, rgb(26 10 30 / 0.08) 100%),
  linear-gradient(180deg, transparent 60%, rgb(26 10 30 / 0.45) 100%); }
.gh-hero-inner { padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px); }
.gh-hero h1 { max-width: 15ch; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.gh-hero-inner > p { max-width: 52ch; font-size: 1rem; color: rgb(255 255 255 / 0.84); }
.gh-hero .hero-search { margin-top: 28px; max-width: 520px; }
.gh-join { margin-top: 14px; font-size: 0.84rem; color: rgb(255 255 255 / 0.72); }
.gh-join a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgb(127 224 210 / 0.6); text-underline-offset: 3px; transition: color 0.18s; }
.gh-join a:hover { color: var(--teal-glow); }
@media (max-width: 640px) {
  .gh-hero { min-height: clamp(520px, 80vh, 640px); display: flex; flex-direction: column; justify-content: space-between; }
  .gh-hero-inner { padding-top: clamp(64px, 14vw, 84px); padding-bottom: 32px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .gh-hero h1 { margin-top: clamp(24px, 6vw, 36px); font-size: clamp(1.42rem, 5.4vw, 1.75rem); line-height: 1.22; letter-spacing: -0.02em; max-width: 100%; }
  .gh-hero-inner > p { font-size: 0.88rem; line-height: 1.5; margin-top: 12px; color: rgb(255 255 255 / 0.85); }
  .gh-hero-inner > p .gh-more { display: none; }
  .gh-hero .hero-search { margin-top: 18px; }
  .gh-hero .hero-search input { height: 46px; font-size: 0.85rem; padding: 0 88px 0 40px; }
  .gh-hero .hero-search button { height: 36px; padding: 0 16px; font-size: 0.80rem; }

  /* Bottom hero action strip on mobile */
  .gh-bar-inner { padding-block: 14px; gap: 8px 12px; font-size: 0.84rem; justify-content: flex-start; text-align: left; }
  .gh-bar-text { display: none; }
  .gh-bar-btn { padding: 5px 15px; font-size: 0.80rem; }

  /* Top-to-bottom gentle gradient overlay on mobile */
  .gh-hero::before { background: linear-gradient(180deg, rgb(26 10 30 / 0.78) 0%, rgb(46 4 52 / 0.72) 55%, rgb(26 10 30 / 0.90) 100%); }
}

/* Branded dropdown: long lists scroll and get a filter box */
.bsel-list { display: grid; }
.bsel-menu.is-long { width: max(100%, 260px); padding: 0; overflow: hidden; }
.bsel-menu.is-long .bsel-list { max-height: min(300px, 50vh); overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 6px; }
.bsel-search { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bsel-search .icon { flex: none; width: 15px; height: 15px; color: var(--muted); }
.bsel-search input { width: 100%; min-width: 0; border: 0; outline: none; background: none; font: 400 0.86rem var(--font-body); color: var(--deep); }
.bsel-opt[hidden] { display: none; }

/* Where it's used */
.acc-row .bsel { flex: none; width: 220px; }
.acc-row .bsel-menu { left: auto; right: 0; }
.tp-filter .bsel { flex: none; width: 260px; }
.tp-filter .bsel-menu { left: auto; right: 0; }
@media (max-width: 640px) {
  .acc-row .bsel, .tp-filter .bsel { width: 100%; }
  .acc-row .bsel-menu, .tp-filter .bsel-menu { left: 0; right: 0; width: auto; }
}

/* Following page: never wider than the screen, however long the name or however many countries */
.flw-container { grid-template-columns: minmax(0, 1fr); }
.flw-container > *, .flw-panel, .flw-bar, .flw-bar-top, .flw-scope-row, .flw-bar .crit, .flw-feed-section { min-width: 0; }
.flw-dropdown-btn { min-width: 0; max-width: 100%; }
.flw-dd-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flw-bar .crit > * { max-width: 100%; }

/* ── Admin Dashboard ──────────────────────────────────────────────────────── */

/* Key bar */

/* Loading & Empty States */

/* KPI Cards */

/* Tabs Bar */

/* Admin Cards & Layouts */

/* Tables */
.positive-text { color: #0b7842; font-weight: 600; }
.negative-text { color: #c92a2a; font-weight: 600; }
.positive-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf8f1;
  color: #0b7842;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Distribution Chips */
.stat-name { font-weight: 600; color: var(--deep); }
.stat-count {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1e6f4;
  color: var(--plum);
  font-weight: 600;
}

/* ── Explore / Directory ──────────────────────────────────────────────────── */
.xp-hero { background: radial-gradient(90% 120% at 100% 0%, #efe3f6 0%, transparent 55%), radial-gradient(70% 90% at 0% 100%, #e6f4f2 0%, transparent 60%), #fbf8fc; border-bottom: 1px solid var(--line); }
.xp-hero .wrap { padding-block: clamp(44px, 7vw, 84px) clamp(36px, 5vw, 60px); }
.xp-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 0.72rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--plum); }
.xp-kicker .icon { width: 14px; height: 14px; }
.xp-hero h1 { max-width: 16ch; margin-top: 18px; font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--deep); }
.xp-hero h1 em { font-style: normal; color: var(--plum); }
.xp-hero p { max-width: 50ch; margin-top: 14px; font-size: 0.98rem; line-height: 1.6; color: var(--ink-2); }
.xp-search { position: relative; display: flex; align-items: center; max-width: 460px; margin-top: 26px; }
.xp-search .icon { position: absolute; left: 18px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.xp-search input { width: 100%; height: 50px; padding: 0 18px 0 48px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: 400 0.95rem var(--font-body); color: var(--deep); box-shadow: 0 10px 28px -18px rgb(46 3 50 / 0.3); transition: border-color 0.2s, box-shadow 0.2s; }
.xp-search input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px rgb(92 0 96 / 0.1); }

.xp-body { padding-block: clamp(36px, 5vw, 56px) clamp(64px, 8vw, 104px); }
.xp-section + .xp-section, [data-xp-default] > .xp-section + .xp-section { margin-top: clamp(64px, 8vw, 96px); }
.xp-gap { margin-top: 36px; }
.xp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.xp-head h2 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -0.015em; color: var(--deep); }
.xp-head p { margin-top: 3px; font-size: 0.86rem; color: var(--muted); }
.xp-more { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 0.84rem var(--font-display); color: var(--plum); }
.xp-more .icon { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.xp-more:hover .icon { transform: translateX(3px); }

/* Regions: clean cards — colour dot, name + count, arrow in line (never overlaps) */
.xp-regions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.xp-region { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.xp-region-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px var(--tone-soft); }
.xp-region-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.xp-region-text strong { font: 600 0.92rem/1.3 var(--font-display); color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-region-text span { font-size: 0.76rem; color: var(--muted); }
.xp-region-go { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); transition: color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.xp-region-go .icon { width: 14px; height: 14px; }
.xp-region:hover { border-color: var(--tone-line); background: var(--tone-soft); transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgb(46 3 50 / 0.3); }
.xp-region:hover .xp-region-go { color: var(--plum); background: #fff; transform: translateX(2px); }
.xp-tone-1 { --tone: #8e3a93; --tone-soft: #f6ecf8; --tone-line: #e4cfea; }
.xp-tone-2 { --tone: #0d7470; --tone-soft: #e9f5f3; --tone-line: #c6e4df; }
.xp-tone-3 { --tone: #c27a1f; --tone-soft: #fdf3e7; --tone-line: #f0dcbf; }
.xp-tone-4 { --tone: #4b5fb8; --tone-soft: #eef1fb; --tone-line: #d6ddf3; }
.xp-tone-5 { --tone: #b8405a; --tone-soft: #fcecef; --tone-line: #f1d1d8; }

/* Countries: flag tiles */
.xp-countries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.xp-country { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.xp-country:hover { border-color: #dcc8e4; box-shadow: 0 10px 24px -18px rgb(46 3 50 / 0.35); transform: translateY(-1px); }
.xp-flag { flex: none; width: 36px; height: 26px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgb(26 10 30 / 0.08); }
.xp-country-text { display: grid; min-width: 0; }
.xp-country-text strong, .xp-topic-text strong { font: 500 0.92rem/1.3 var(--font-display); color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-country-text span, .xp-topic-text span { font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Topics: icon tiles */
.xp-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xp-topic { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.xp-topic:hover { border-color: #dcc8e4; box-shadow: 0 10px 24px -18px rgb(46 3 50 / 0.35); transform: translateY(-1px); }
.xp-topic-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, var(--lavender), #fbf6fd); color: var(--plum); }
.xp-topic-icon .icon { width: 18px; height: 18px; }
.xp-topic-text { display: grid; min-width: 0; }
.xp-empty { padding: 32px 0; color: var(--muted); }

@media (max-width: 1000px) {
  .xp-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-countries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .xp-hero .wrap { padding-block: 36px 30px; }
  .xp-hero h1 { font-size: 1.85rem; }
  .xp-hero p { font-size: 0.92rem; }
  .xp-search { margin-top: 22px; }
  .xp-search input { height: 46px; }
  .xp-head { margin-bottom: 14px; }
  .xp-regions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .xp-region { padding: 14px; }
  [data-xp-default] > .xp-section + .xp-section { margin-top: 56px; }
  .xp-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .xp-country { gap: 10px; padding: 10px 12px; }
  .xp-flag { width: 30px; height: 22px; }
  .xp-topics { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .xp-topic { padding: 12px 14px; }
}

/* ── 'What you follow' switcher, compact ── */
dialog:has(.flw-modal-list) .sec-modal-head { padding: 10px 16px 8px; }
dialog:has(.flw-modal-list) .sec-modal-head h2 { font-size: 1rem !important; }
dialog:has(.flw-modal-list) .sec-modal-sub { font-size: 0.74rem; }
dialog:has(.flw-modal-list) .cpm-toolbar { padding: 10px 16px; }
dialog:has(.flw-modal-list) .cpm-input { height: 38px; font-size: 0.86rem; border-radius: 999px; }
dialog:has(.flw-modal-list) .sec-modal-body { padding: 8px 10px 12px; }
.flw-modal-list { gap: 2px; }
.flw-modal-list .flw-modal-item { gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; box-shadow: none; transform: none; }
.flw-modal-list .flw-modal-item:hover { background: var(--warm); box-shadow: none; transform: none; }
.flw-modal-list .flw-modal-item.is-selected { background: var(--lavender); box-shadow: none; }
.flw-modal-list .fmi-badge { width: 28px; height: 28px; border-radius: 8px; }
.flw-modal-list .fmi-badge .flag { width: 18px; height: 13px; }
.flw-modal-list .fmi-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgb(13 116 112 / 0.16); }
.flw-modal-list .fmi-title { font-size: 0.86rem; }
.flw-modal-list .is-selected .fmi-title { color: var(--plum); }
.flw-modal-list .fmi-sub { font-size: 0.72rem; }
.flw-modal-list .fmi-active-pill { padding: 0; background: none; border: 0; box-shadow: none; color: var(--plum); font-size: 0; }
.flw-modal-list .fmi-active-pill .icon { width: 16px; height: 16px; }
.flw-modal-list .fmi-check > .icon { width: 13px; height: 13px; opacity: 0.6; }
dialog:has(.flw-modal-list) .sheet-foot { padding: 10px 14px; }
dialog:has(.flw-modal-list) .sheet-foot .btn { min-height: 36px; height: 36px; padding: 0 14px; font-size: 0.82rem; }
/* Explore regions on wide screens: the card itself is the link, so drop the arrow and give the name room */
@media (min-width: 1001px) { .xp-region-go { display: none; } .xp-region { padding: 16px 18px; } }

/* ── Ad Management & Delivery System (Banner, Native, Interstitial) ── */
.sv-ad-banner {
  background: linear-gradient(90deg, #fbf6fd 0%, #f4e9f7 100%);
  border-block: 1px solid var(--line-strong);
  padding: 10px 0;
  margin-block: 20px;
  position: relative;
}
.sv-ad-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sv-ad-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.sv-ad-kicker {
  display: inline-flex;
  align-items: center;
  font: 700 0.68rem var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
}
.sv-ad-banner-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 2px 6px rgb(26 10 30 / 0.1);
}
.sv-ad-banner-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sv-ad-banner-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-ad-banner-desc {
  font-size: 0.80rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-ad-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.sv-ad-cta {
  white-space: nowrap;
}
.sv-ad-dismiss-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.sv-ad-dismiss-btn:hover {
  background: rgba(92, 0, 96, 0.08);
  color: var(--deep);
}
.sv-ad-dismiss-btn .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .sv-ad-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .sv-ad-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
  .sv-ad-banner-title, .sv-ad-banner-desc {
    white-space: normal;
  }
}

/* Native in-feed ad card */
.sv-ad-native-card {
  background: #fbf7fc !important;
  border: 1px dashed var(--line-strong) !important;
  border-radius: 12px;
  padding: 16px !important;
  margin-block: 16px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sv-ad-native-card:hover {
  border-color: var(--plum) !important;
  box-shadow: 0 6px 20px -12px rgb(92 0 96 / 0.25);
}
.sv-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 0.68rem var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
  background: rgba(92, 0, 96, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}
.sv-ad-badge .icon {
  width: 12px;
  height: 12px;
}
.sv-ad-cta-link {
  font: 600 0.82rem var(--font-display);
  color: var(--plum);
  text-decoration: underline;
}
.sv-ad-thumb img {
  border-radius: 8px;
  object-fit: cover;
}

/* Interstitial Modal Takeover */
.sv-ad-interstitial-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 10, 30, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}
.sv-ad-interstitial-overlay.closing {
  opacity: 0;
  transition: opacity 0.2s;
}
.sv-ad-interstitial-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 60px -15px rgb(26 10 30 / 0.4);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  animation: slideUp 0.25s var(--ease);
}
.sv-ad-interstitial-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
  transition: background 0.2s, transform 0.2s;
}
.sv-ad-interstitial-close:hover {
  background: #fff;
  transform: scale(1.05);
}
.sv-ad-interstitial-close .icon {
  width: 14px;
  height: 14px;
}
.sv-ad-interstitial-media {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
  background: #faf6fc;
}
.sv-ad-interstitial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sv-ad-interstitial-body {
  padding: 24px 28px 28px;
}
.sv-ad-interstitial-kicker {
  font: 700 0.72rem var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  display: block;
  margin-bottom: 8px;
}
.sv-ad-interstitial-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.25;
  margin-bottom: 10px;
}
.sv-ad-interstitial-body p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.sv-ad-interstitial-actions {
  display: flex;
  gap: 12px;
}
.sv-ad-interstitial-btn {
  flex: 1;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Admin Dashboard Form & Ads Styles ── */

/* ── Admin: calm dashboard shell ─────────────────────────────────────────── */
.adm { background: var(--warm); min-height: calc(100dvh - var(--header-h)); margin-bottom: -72px; padding-bottom: 72px; }
.adm-top { background: #fff; border-bottom: 1px solid var(--line); }
.adm-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-block: 18px; }
.adm-title { display: grid; gap: 2px; min-width: 0; }
.adm-title h1 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; color: var(--deep); }
.adm-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--muted); }
.adm-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgb(13 116 112 / 0.15); }
.adm-dot.is-off { background: var(--line-strong); box-shadow: none; }
.adm-top-actions { display: flex; align-items: center; gap: 8px; }
.adm-top-actions .btn { gap: 7px; }
.adm-top-actions .btn .icon { width: 15px; height: 15px; }
.adm-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink-2); cursor: pointer; transition: border-color 0.18s, color 0.18s, background 0.18s; }
.adm-icon-btn .icon { width: 16px; height: 16px; }
.adm-icon-btn:hover { border-color: var(--plum); color: var(--plum); }
.adm-icon-btn.is-set { color: var(--accent); }
.adm-icon-btn.is-danger:hover { border-color: var(--danger); color: var(--danger); }

.adm-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 28px 56px; }
.adm-shell:not(:has(.adm-nav)) { grid-template-columns: minmax(0, 1fr); }
.adm-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; }
.adm-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: 500 0.88rem var(--font-display); color: var(--ink-2); text-align: left; cursor: pointer; transition: background 0.18s, color 0.18s; }
.adm-nav-item .icon { flex: none; width: 17px; height: 17px; color: var(--muted); }
.adm-nav-item span { flex: 1; }
.adm-nav-item em { font-style: normal; font-size: 0.74rem; color: var(--muted); }
.adm-nav-item:hover { background: #fff; color: var(--deep); }
.adm-nav-item.is-active { background: #fff; color: var(--plum); box-shadow: 0 1px 2px rgb(26 10 30 / 0.05), inset 0 0 0 1px var(--line); }
.adm-nav-item.is-active .icon { color: var(--plum); }
.adm-main { min-width: 0; display: grid; gap: 20px; align-content: start; }

.adm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.adm-sec-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--deep); }
.adm-sec-head p { margin-top: 3px; font-size: 0.84rem; color: var(--muted); }
.adm-main > .adm-sec-head h2 { font-size: 1.2rem; }
.adm-card .adm-sec-head { margin-bottom: 16px; }
.adm-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lavender); color: var(--plum); font: 600 0.72rem var(--font-body); font-style: normal; }
.adm-count.is-bad { background: #fdecef; color: #9f1239; }

.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm-stat { display: grid; gap: 4px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.adm-stat-lbl { font-size: 0.78rem; color: var(--muted); }
.adm-stat-val { font: 600 1.45rem/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--deep); }
.adm-stat-val small { font-size: 0.6em; font-weight: 500; color: var(--muted); }
.adm-stat-note { font-size: 0.74rem; color: var(--muted); }
.adm-stat-note.is-up { color: var(--green); }
.adm-stat-note.is-warn { color: #92400e; }

.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.adm-card { min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.adm-card.is-flush { padding: 0; overflow: hidden; }
.adm-card-pad { padding: 18px 22px 0; }

.adm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-card:not(.is-flush) .adm-table-wrap { margin-inline: -22px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; color: var(--ink-2); }
.adm-table th { padding: 10px 22px; text-align: left; white-space: nowrap; font: 500 0.72rem var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--warm); border-bottom: 1px solid var(--line); }
.adm-table td { padding: 12px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover td { background: #fcfafd; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table .is-up { color: var(--green); font-weight: 500; }
.adm-table .is-bad { color: #9f1239; font-weight: 500; }
.adm-strong { font-weight: 500; color: var(--deep); }
.adm-muted { color: var(--muted); }
.adm-nowrap { white-space: nowrap; }
.adm-country { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.adm-country .flag { width: 18px; height: 13px; border-radius: 2px; }
.adm-person { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.adm-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lavender); color: var(--plum); font: 600 0.68rem var(--font-display); }

.adm-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 500 0.72rem var(--font-body); white-space: nowrap; }
.adm-badge::first-letter { text-transform: uppercase; }
.adm-badge.is-muted { background: var(--warm); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.adm-badge.is-plum { background: var(--lavender); color: var(--plum); }
.adm-badge.is-ok { background: #e8f5ee; color: #166534; }
.adm-badge.is-bad { background: #fdecef; color: #9f1239; }

.adm-list { display: grid; margin: 0; padding: 0; list-style: none; }
.adm-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.adm-list li:first-child { border-top: 0; padding-top: 0; }
.adm-list-main { display: grid; gap: 3px; min-width: 0; }
.adm-list-main strong { font-weight: 500; font-size: 0.9rem; color: var(--deep); }
.adm-list-main span { font-size: 0.8rem; color: var(--muted); }
.adm-list-side { display: grid; justify-items: end; gap: 4px; min-width: 0; }
.adm-err { max-width: 180px; font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-ok { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #f0faf6; color: #166534; }
.adm-ok .icon { flex: none; width: 18px; height: 18px; }
.adm-ok strong { display: block; font-weight: 500; font-size: 0.9rem; }
.adm-ok span { font-size: 0.8rem; color: var(--ink-2); }
.adm-empty { padding: 8px 0; font-size: 0.86rem; color: var(--muted); }
.adm-card.is-flush .adm-empty { padding: 20px 22px; }

.adm-rank { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.adm-rank li { display: grid; grid-template-columns: 20px minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; }
.adm-rank-n { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-rank-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.88rem; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-rank-name .flag { flex: none; width: 18px; height: 13px; border-radius: 2px; }
.adm-rank-bar { height: 6px; border-radius: 99px; background: var(--warm); overflow: hidden; }
.adm-rank-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--plum), #a24ba6); }
.adm-rank-v { min-width: 28px; text-align: right; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Forms */
.adm-compose { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.adm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.adm-form .is-full { grid-column: 1 / -1; }
.adm-field { display: grid; gap: 6px; min-width: 0; }
.adm-field > label { display: flex; align-items: baseline; gap: 8px; font: 500 0.82rem var(--font-display); color: var(--deep); }
.adm-req, .adm-opt { font: 400 0.72rem var(--font-body); color: var(--muted); }
.adm-req { color: var(--plum); }
.adm-form .input, .adm-form .select { width: 100%; height: 42px; border-radius: 10px; font-size: 0.88rem; }
.adm-form textarea.input { height: auto; min-height: 84px; padding-block: 10px; resize: vertical; line-height: 1.5; }
.adm-hint { font-size: 0.74rem; color: var(--muted); }
.adm-image { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px; }
.adm-image > .input { grid-column: 1 / -1; }
.adm-image-thumb { width: 88px; height: 60px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.adm-file { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--warm); font: 500 0.82rem var(--font-display); color: var(--plum); cursor: pointer; }
.adm-file .icon { width: 15px; height: 15px; }
.adm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-picker { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.adm-picker-filter { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; height: 40px !important; }
.adm-picker-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 188px; overflow-y: auto; padding: 10px; }
.adm-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-pick { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 400 0.8rem var(--font-body); color: var(--ink-2); cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.adm-pick .flag { width: 16px; height: 12px; border-radius: 2px; }
.adm-pick:hover { border-color: var(--line-strong); color: var(--deep); }
.adm-pick.is-on { background: var(--lavender); border-color: rgb(92 0 96 / 0.3); color: var(--plum); font-weight: 500; }
.adm-pick[hidden] { display: none; }
.adm-check { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--ink-2); cursor: pointer; }
.adm-check input { width: 16px; height: 16px; accent-color: var(--plum); }
.adm-form-foot { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--line); }
.adm-form-foot .btn { gap: 8px; }
.adm-form-foot .btn .icon { width: 16px; height: 16px; }

.adm-preview { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 10px; min-width: 0; }
.adm-preview-lbl { font: 500 0.72rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.adm-preview-card { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.adm-preview-img { margin: -18px -18px 4px; height: 150px; overflow: hidden; border-radius: 14px 14px 0 0; }
.adm-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-preview-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.76rem; color: var(--muted); }
.adm-preview-meta .news-source { font-weight: 500; color: var(--deep); }
.adm-preview-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--deep); }
.adm-preview-card .news-summary { font-size: 0.84rem; line-height: 1.55; color: var(--ink-2); }
.adm-pop-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.adm-pop-img { height: 130px; overflow: hidden; }
.adm-pop-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-pop-body { display: grid; gap: 8px; padding: 16px 18px; }
.adm-pop-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--deep); }
.adm-pop-body p { font-size: 0.84rem; color: var(--ink-2); }
.adm-pop-actions { display: flex; gap: 8px; }

/* Ads list */
.adm-ads { margin: 0; padding: 0; list-style: none; }
.adm-ads li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); }
.adm-ad-thumb { display: grid; place-items: center; width: 52px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: var(--warm); color: var(--muted); }
.adm-ad-thumb .icon { width: 16px; height: 16px; }
.adm-ad-main { display: grid; gap: 4px; min-width: 0; }
.adm-ad-main strong { font-weight: 500; font-size: 0.92rem; color: var(--deep); }
.adm-ad-main > span { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-ad-main a { color: var(--plum); }
.adm-ad-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.adm-ad-perf { display: grid; grid-template-columns: repeat(3, auto); grid-auto-flow: column; grid-template-rows: auto auto; column-gap: 16px; text-align: right; }
.adm-ad-perf strong { font: 600 0.9rem var(--font-display); color: var(--deep); font-variant-numeric: tabular-nums; }
.adm-ad-perf span { font-size: 0.7rem; color: var(--muted); }
.adm-ad-actions { display: flex; align-items: center; gap: 8px; }

/* States & key */
.adm-state { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.adm-state.is-error { max-width: 440px; margin: 24px auto; padding: 32px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.adm-state h2 { font-size: 1.1rem; font-weight: 600; color: var(--deep); }
.adm-state-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lavender); color: var(--plum); }
.adm-state-icon .icon { width: 20px; height: 20px; }
.adm-state-actions { display: flex; gap: 8px; margin-top: 6px; }
.adm-key { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.adm-key[hidden] { display: none; }
.adm-key label { font: 500 0.84rem var(--font-display); color: var(--deep); }
.adm-key-row { display: flex; gap: 8px; }
.adm-key-row .input { flex: 1; min-width: 0; height: 38px; }

@media (max-width: 1100px) {
  .adm-compose { grid-template-columns: minmax(0, 1fr); }
  .adm-preview { position: static; }
}
@media (max-width: 960px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 0; }
  .adm-nav { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 4px; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); overflow-x: auto; scrollbar-width: none; background: rgb(250 247 251 / 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav-item { flex: none; width: auto; min-height: 36px; padding: 0 12px; }
  .adm-nav-item span { flex: none; }
  .adm-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .adm-top-inner { padding-block: 14px; }
  .adm-top-actions .btn span { display: none; }
  .adm-top-actions .btn { width: 36px; padding: 0; }
  .adm-stat { padding: 14px; }
  .adm-stat-val { font-size: 1.25rem; }
  .adm-card { padding: 16px; }
  .adm-card:not(.is-flush) .adm-table-wrap { margin-inline: -16px; }
  .adm-table th, .adm-table td { padding-inline: 16px; }
  .adm-card-pad { padding: 16px 16px 0; }
  .adm-form { grid-template-columns: minmax(0, 1fr); }
  .adm-list li { flex-direction: column; align-items: flex-start; }
  .adm-list-side { justify-items: start; }
  .adm-err { max-width: 100%; }
  .adm-ads li { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 14px 16px; }
  .adm-ad-perf, .adm-ad-actions { grid-column: 1 / -1; }
  .adm-ad-perf { justify-content: start; text-align: left; }
  .adm-rank li { grid-template-columns: 18px minmax(0, 1fr) 70px auto; gap: 8px; }
}
/* Admin: full-width stacks, and the ad preview sits above its form */
.adm-stack { display: grid; gap: 20px; }
.adm-compose.is-stacked { grid-template-columns: minmax(0, 1fr); }
.adm-compose.is-stacked .adm-preview { position: static; order: -1; }
.adm-preview { overflow: hidden; }
.adm-preview > * { max-width: 100%; }

/* Rich HTML Post Editor */
.adm-editor-box { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #fff; }
.adm-editor-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 6px 10px; background: var(--warm); border-bottom: 1px solid var(--line); }
.adm-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.adm-toolbar-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--deep); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.adm-toolbar-btn:hover { background: #f5f0f6; border-color: var(--plum); color: var(--plum); }
.adm-toolbar-sep { width: 1px; height: 18px; background: var(--line-strong); margin-inline: 4px; }
.adm-editor-tabs { display: flex; align-items: center; gap: 4px; }
.adm-editor-tab-btn { font-size: 0.76rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.adm-editor-tab-btn.is-active { background: #fff; border-color: var(--line); color: var(--plum); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.adm-rich-editor { min-height: 220px; max-height: 500px; overflow-y: auto; padding: 14px 16px; font-size: 0.95rem; line-height: 1.6; outline: none; }
.adm-rich-editor:focus { background: #faf9fb; }
.adm-raw-html { width: 100%; border: 0; outline: none; padding: 14px 16px; font-family: monospace; font-size: 0.84rem; line-height: 1.5; background: #1a1622; color: #e8e2ee; resize: vertical; box-sizing: border-box; }

/* Scope Selector */
.adm-scope-selector { display: flex; gap: 10px; margin-bottom: 12px; }
.adm-scope-btn { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.adm-scope-btn.is-active { border-color: var(--plum); background: rgb(92 0 96 / 0.04); box-shadow: 0 0 0 1px var(--plum); }
.adm-scope-btn strong { font-size: 0.86rem; color: var(--deep); }
.adm-scope-btn span { font-size: 0.74rem; color: var(--muted); line-height: 1.35; }

/* Region Pills */
.adm-region-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.adm-region-btn { font-size: 0.78rem; font-weight: 500; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--warm); color: var(--ink-2); cursor: pointer; transition: all 0.15s; }
.adm-region-btn:hover { border-color: var(--plum); color: var(--plum); }
.adm-region-btn.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }

/* Page Targeting Checkboxes */
.adm-pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.adm-page-label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--deep); cursor: pointer; padding: 4px 6px; border-radius: 4px; transition: background 0.15s; }
.adm-page-label:hover { background: var(--warm); }
.adm-page-label input { accent-color: var(--plum); }

/* Article Page & Prose Styles */
.sv-article-page { max-width: 820px; margin-inline: auto; }
.sv-article-nav { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.sv-article-nav-sep { color: var(--line-strong); }
.sv-article-nav-crumb { color: var(--ink-2); text-decoration: none; }
.sv-article-nav-crumb:hover { color: var(--plum); }
.sv-article-header { margin-bottom: 28px; }
.sv-article-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sv-article-title { font-size: 2.1rem; font-weight: 700; line-height: 1.25; color: var(--deep); letter-spacing: -0.02em; margin-bottom: 14px; }
.sv-article-lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 20px; font-weight: 400; border-left: 3px solid var(--plum); padding-left: 14px; }
.sv-article-byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.sv-article-author { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-article-author-name { font-weight: 600; color: var(--deep); }
.sv-article-actions { display: flex; align-items: center; gap: 8px; }
.sv-article-hero { margin: 28px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--warm); max-height: 480px; }
.sv-article-hero img { width: 100%; height: auto; max-height: 480px; object-fit: cover; display: block; }

.prose { font-size: 1.05rem; line-height: 1.75; color: var(--deep); }
.prose p { margin-bottom: 1.35em; }
.prose h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.35; margin-top: 1.8em; margin-bottom: 0.6em; color: var(--deep); }
.prose h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin-top: 1.5em; margin-bottom: 0.5em; color: var(--deep); }
.prose blockquote { border-left: 3px solid var(--plum); padding-left: 16px; margin: 1.6em 0; font-style: italic; color: var(--ink-2); background: rgb(92 0 96 / 0.03); padding-block: 8px; border-radius: 0 8px 8px 0; }
.prose ul, .prose ol { margin: 1.2em 0; padding-left: 24px; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--deep); }
.prose img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.6em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.sv-article-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.sv-article-foot-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Admin forms, refined: labels, scope cards, editor, previews ── */
.adm-field > label { display: block; line-height: 1.45; }
.adm-field > label .adm-req, .adm-field > label .adm-opt { margin-left: 6px; }
.adm-note { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 14px; border-radius: 10px; background: var(--accent-subtle); color: var(--accent-text); font-size: 0.84rem; line-height: 1.45; }
.adm-note .icon { flex: none; width: 16px; height: 16px; }

.adm-scope-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.adm-scope-btn { display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.adm-scope-btn:hover { border-color: #cdb6d6; }
.adm-scope-btn.is-active { border-color: var(--plum); background: #fcf8fd; box-shadow: 0 0 0 1px var(--plum); }
.adm-scope-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--warm); color: var(--muted); transition: background 0.15s, color 0.15s; }
.adm-scope-ico .icon { width: 17px; height: 17px; }
.adm-scope-btn.is-active .adm-scope-ico { background: var(--lavender); color: var(--plum); }
.adm-scope-text { display: grid; gap: 2px; min-width: 0; }
.adm-scope-btn strong { font: 600 0.88rem var(--font-display); color: var(--deep); }
.adm-scope-text span { font-size: 0.76rem; line-height: 1.35; color: var(--muted); }

.adm-region-pills { gap: 6px; margin: 0; }
.adm-region-btn { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 400 0.8rem var(--font-body); color: var(--ink-2); }
.adm-region-btn.is-active { background: var(--lavender); border-color: rgb(92 0 96 / 0.3); color: var(--plum); font-weight: 500; }

.adm-editor-box { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff; }
.adm-editor-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 8px 10px; background: #fcfafd; border-bottom: 1px solid var(--line); }
.adm-editor-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.adm-editor-toolbar::-webkit-scrollbar { display: none; }
.adm-toolbar-btn { flex: none; min-width: 30px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: 500 0.8rem var(--font-display); }
.adm-toolbar-btn:hover { background: #fff; color: var(--plum); box-shadow: inset 0 0 0 1px var(--line); }
.adm-toolbar-sep { flex: none; height: 18px; margin-inline: 6px; background: var(--line); }
.adm-editor-tabs { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--warm); box-shadow: inset 0 0 0 1px var(--line); }
.adm-editor-tab-btn { height: 26px; padding: 0 12px; border: 0; border-radius: 7px; font: 500 0.78rem var(--font-display); color: var(--muted); }
.adm-editor-tab-btn.is-active { background: #fff; color: var(--plum); box-shadow: 0 1px 2px rgb(26 10 30 / 0.08); border: 0; }
.adm-rich-editor { min-height: 260px; padding: 18px 20px; font-size: 0.95rem; line-height: 1.7; color: var(--ink); }
.adm-rich-editor:focus { background: #fff; box-shadow: inset 0 0 0 2px rgb(92 0 96 / 0.12); }
.adm-rich-editor, .adm-preview-article { max-width: none; gap: 12px; }
.adm-raw-html { min-height: 260px; padding: 18px 20px; font: 400 0.82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #1c1622; color: #ece6f1; }
.adm-preview-article { min-height: 260px; padding: 20px 22px; background: #fff; font-size: 0.95rem; }
.adm-preview-article h2, .adm-rich-editor h2 { font-size: 1.25rem; margin-top: 8px; }
.adm-preview-article h3, .adm-rich-editor h3 { font-size: 1.05rem; }
.adm-rich-editor blockquote, .adm-preview-article blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--plum); color: var(--ink-2); font-style: italic; }
.adm-rich-editor img, .adm-preview-article img { max-width: 100%; height: auto; border-radius: 10px; }

.adm-pages-grid { margin-top: 10px; padding: 8px; gap: 4px; border-radius: 12px; border-color: var(--line); }
.adm-page-label { padding: 7px 8px; border-radius: 8px; font-size: 0.84rem; }
.adm-custom-paths { display: grid; gap: 6px; margin-top: 12px; }
.adm-custom-paths > label { font: 500 0.8rem var(--font-display); color: var(--deep); }

.sv-ad-preview-wrap { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sv-ad-preview-wrap .sv-ad-kicker { justify-self: start; }
.sv-ad-embed-body { max-width: 100%; overflow: auto; }
.sv-ad-embed-body iframe, .sv-ad-embed-body img { max-width: 100%; }

@media (max-width: 640px) {
  .adm-scope-selector { grid-template-columns: minmax(0, 1fr); }
  .adm-editor-top { flex-direction: column; align-items: stretch; }
  .adm-editor-tabs { align-self: flex-start; }
  .adm-rich-editor, .adm-raw-html, .adm-preview-article { min-height: 200px; padding: 14px 16px; }
}
@media (min-width: 641px) { .adm-editor-toolbar { flex-wrap: wrap; overflow: visible; row-gap: 2px; } }

/* ── Multi-country & Topic Following Manager Modal ── */
dialog[open]:has(.flw-manage-pane),
dialog[open]:has(.flw-bulk-list) {
  width: min(520px, calc(100vw - 24px));
  height: min(88dvh, 720px);
  max-height: min(88dvh, 720px);
  display: flex;
  flex-direction: column;
}

dialog:has(.flw-manage-pane) .sheet-head,
dialog:has(.flw-bulk-list) .sheet-head {
  padding: 14px 18px 8px;
  flex: none;
}

dialog:has(.flw-manage-pane) .sheet-foot,
dialog:has(.flw-bulk-list) .sheet-foot {
  flex: none;
  padding: 10px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.flw-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex: none;
}

.flw-tabs-bar .chip {
  height: 32px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  background: var(--warm);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.15s ease;
}

.flw-tabs-bar .chip[aria-pressed="true"] {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
}

.flw-tab-badge {
  margin-left: 5px;
  font-size: 0.73rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.flw-tabs-bar .chip[aria-pressed="true"] .flw-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.flw-manage-pane {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.flw-manage-pane[hidden] {
  display: none !important;
}

.flw-pane-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--line);
  flex: none;
}

.flw-pane-toolbar .cpm-input {
  height: 38px;
  font-size: 0.86rem;
  border-radius: 999px;
}

.flw-region-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.flw-region-chips::-webkit-scrollbar {
  display: none;
}

.flw-region-chips .chip {
  flex: none;
  height: 28px;
  padding: 0 10px;
  font-size: 0.77rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--deep);
  white-space: nowrap;
}

.flw-region-chips .chip[aria-pressed="true"] {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
}

.flw-pane-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2px;
}

.flw-pane-count {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--plum);
}

.flw-pane-btns {
  display: flex;
  gap: 6px;
}

.flw-pane-btns .btn {
  font-size: 0.74rem;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border-color: var(--line-strong);
  color: var(--deep);
}

.flw-pane-btns .btn:hover {
  background: var(--warm);
  border-color: var(--plum);
  color: var(--plum);
}

.flw-pane-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 14px 14px;
}

.flw-pair-builder {
  padding: 12px 14px;
  background: var(--subtle);
  border-radius: 10px;
  margin: 10px 14px 10px;
  border: 1px solid rgb(26 10 30 / 0.08);
  flex: none;
}

.flw-pair-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 3px;
}

.flw-pair-sub {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.flw-pair-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.flw-pair-select {
  flex: 1;
  min-width: 135px;
  height: 36px;
  font-size: 0.83rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--deep);
  padding: 0 8px;
}

.flw-pair-add-btn {
  height: 36px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 0.82rem;
  border-radius: 8px;
}

.flw-bulk-list { display: flex; flex-direction: column; gap: 3px; }
.flw-bulk-list .check-row { border: 1px solid transparent; }
.flw-bulk-list .check-row:hover { background: var(--warm); }
.flw-bulk-list .check-row.is-checked { background: #fdf8fe; border-color: rgb(92 0 96 / 0.15); }
.flw-bulk-list .check-row.is-checked strong { color: var(--plum); }

@media (max-width: 640px) {
  dialog:has(.flw-manage-pane),
  dialog:has(.flw-bulk-list) {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 90dvh !important;
    max-height: 90dvh !important;
    margin: auto 0 0 !important;
    border-radius: 20px 20px 0 0 !important;
  }
}

/* ── "Manage what you follow" dialog, compact ─────────────────────────────── */
dialog:has(.flw-tabs-bar) .sec-modal-head { padding: 10px 16px 10px; }
dialog:has(.flw-tabs-bar) .sec-modal-head h2 { font-size: 1.05rem !important; }
dialog:has(.flw-tabs-bar) .sec-modal-sub { font-size: 0.76rem; }

/* Tabs: a segmented control that always fits */
.flw-tabs-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 10px 16px 0; padding: 3px; border: 0; border-radius: 12px; background: var(--warm); box-shadow: inset 0 0 0 1px var(--line); overflow: visible; }
.flw-tabs-bar .chip { justify-content: center; gap: 6px; min-width: 0; height: 34px; padding: 0 6px; border: 0; border-radius: 9px; background: none; font: 500 0.82rem var(--font-display); color: var(--ink-2); box-shadow: none; white-space: nowrap; }
.flw-tabs-bar .chip:hover { color: var(--deep); background: rgb(255 255 255 / 0.6); }
.flw-tabs-bar .chip[aria-pressed="true"] { background: #fff; color: var(--plum); box-shadow: 0 1px 3px rgb(26 10 30 / 0.1); }
.flw-tab-badge { min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgb(26 10 30 / 0.06); color: var(--muted); font: 600 0.68rem var(--font-body); display: inline-grid; place-items: center; }
.flw-tabs-bar .chip[aria-pressed="true"] .flw-tab-badge { background: var(--lavender); color: var(--plum); }

/* Search, region filter and bulk actions in one tight strip */
.flw-pane-toolbar { display: grid; gap: 8px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.flw-pane-toolbar .cpm-input { height: 38px; border-radius: 999px; font-size: 0.86rem; }
.flw-region-chips { display: flex; gap: 6px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.flw-region-chips .chip { flex: none; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 400; }
.flw-region-chips .chip[aria-pressed="true"] { background: var(--lavender); border-color: rgb(92 0 96 / 0.3); color: var(--plum); font-weight: 500; }
.flw-pane-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flw-pane-count { font-size: 0.76rem; font-weight: 500; color: var(--muted); }
.mf-bulk { display: flex; align-items: center; gap: 4px; flex: none; }
.mf-link { height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font: 500 0.78rem var(--font-display); color: var(--plum); cursor: pointer; }
.mf-link:hover { background: var(--lavender); }
.mf-link + .mf-link { color: var(--muted); }
.mf-link + .mf-link:hover { color: var(--deep); background: var(--warm); }

/* Rows */
.flw-pane-body { padding: 6px 8px 10px; }
.flw-bulk-list { display: grid; gap: 1px; }
.mf-row { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 9px 10px; border-radius: 10px; cursor: pointer; user-select: none; background: none; border: 0; transition: background 0.15s; }
.mf-row:hover { background: var(--warm); }
.mf-row.is-checked { background: #fbf6fc; }
.mf-row input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--plum); cursor: pointer; }
.mf-flag { flex: none; width: 26px; height: 19px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgb(26 10 30 / 0.08); }
.mf-topic-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lavender); color: var(--plum); }
.mf-topic-ico .icon { width: 15px; height: 15px; }
.mf-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.mf-text strong { font: 500 0.88rem/1.3 var(--font-display); color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-text span { font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Topic in a country */
.flw-pair-builder { display: grid; gap: 4px; margin: 12px 16px 0; padding: 14px; border-radius: 12px; background: var(--warm); border: 1px solid var(--line); }
.flw-pair-title { font: 600 0.88rem var(--font-display); color: var(--deep); }
.flw-pair-sub { margin: 0 0 6px; font-size: 0.78rem; color: var(--muted); }
.flw-pair-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
.flw-pair-select { height: 38px; border-radius: 10px; font-size: 0.84rem; background-color: #fff; }
.flw-pair-add-btn { height: 38px; min-height: 38px; gap: 6px; }
.pair-row.mf-row { cursor: default; border: 1px solid var(--line); background: #fff; margin-bottom: 6px; }
.mf-remove { flex: none; width: 30px; height: 30px; color: var(--muted); }
.mf-remove:hover { color: var(--danger); background: #fdecef; }

dialog:has(.flw-tabs-bar) .cpm-empty { padding: 32px 16px; }
dialog:has(.flw-tabs-bar) .sheet-foot { padding: 10px 16px; }
dialog:has(.flw-tabs-bar) .sheet-foot .btn { min-height: 38px; height: 38px; padding: 0 16px; font-size: 0.84rem; }

@media (max-width: 480px) {
  .flw-tabs-bar .chip { font-size: 0.78rem; gap: 4px; }
  .flw-pair-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flw-pair-add-btn { grid-column: 1 / -1; }
}

/* Safety net: a closed dialog must never render, whatever other rules set its display to. */
dialog:not([open]) { display: none !important; }
