/* PH Hub (/homepage) — standalone page, not part of the app bundle. */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #f7f8fb;
  --bg-2: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --line: #e3e7ef;
  --line-2: #d3d9e5;
  --text: #0e1525;
  --text-2: #4a5468;
  --text-3: #7a8396;
  --accent: #0038a8;          /* PH flag blue */
  --accent-ink: #ffffff;
  --accent-soft: #e6edfb;
  --red: #ce1126;             /* PH flag red */
  --gold: #e5b400;            /* PH sun, darkened for contrast on light */
  --live: #16a34a;
  --shadow-1: 0 1px 2px rgb(14 21 37 / .05), 0 1px 1px rgb(14 21 37 / .03);
  --shadow-2: 0 10px 30px -12px rgb(14 21 37 / .18), 0 2px 6px rgb(14 21 37 / .05);
  --shadow-3: 0 30px 80px -20px rgb(14 21 37 / .35);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --bg-2: #0f1830; --surface: #111a2e; --surface-2: #16213a;
    --line: #1f2a44; --line-2: #2a3756; --text: #e8ecf5; --text-2: #a9b3c8; --text-3: #75809a;
    --accent: #7aa2ff; --accent-ink: #0b1220; --accent-soft: rgb(122 162 255 / .12);
    --red: #ff5a6e; --gold: #fcd116; --live: #34d399;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .3); --shadow-2: 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-3: 0 30px 80px -20px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --bg-2: #0f1830; --surface: #111a2e; --surface-2: #16213a;
  --line: #1f2a44; --line-2: #2a3756; --text: #e8ecf5; --text-2: #a9b3c8; --text-3: #75809a;
  --accent: #7aa2ff; --accent-ink: #0b1220; --accent-soft: rgb(122 162 255 / .12);
  --red: #ff5a6e; --gold: #fcd116; --live: #34d399;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3); --shadow-2: 0 12px 32px -12px rgb(0 0 0 / .6);
  --shadow-3: 0 30px 80px -20px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
kbd {
  font: 500 11px/1 var(--font); padding: 4px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3);
}
code { font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); font-size: 13px; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.flagline { height: 3px; background: linear-gradient(90deg, var(--accent) 0 50%, var(--red) 50% 100%); opacity: .9; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 18px/1 var(--font-display); letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--text-2); transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.is-active { background: var(--accent-soft); color: var(--accent); }
.topbar__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.searchbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-3);
  cursor: pointer; min-width: 210px; transition: border-color .15s, box-shadow .15s;
}
.searchbtn:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.searchbtn__label { flex: 1; text-align: left; font-size: 14px; }
.iconbtn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer;
}
.iconbtn:hover { color: var(--text); border-color: var(--line-2); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(48px, 9vw, 96px) clamp(36px, 6vw, 64px);
  background:
    radial-gradient(800px 380px at 12% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 360px at 92% 0%, color-mix(in srgb, var(--red) 11%, transparent), transparent 70%),
    radial-gradient(500px 300px at 60% 110%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%);
}
.hero::after { /* fine dot grid */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  margin: 0; font: 800 clamp(36px, 6.2vw, 68px)/1.03 var(--font-display); letter-spacing: -.035em;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, color-mix(in srgb, var(--accent) 50%, var(--red)) 55%, var(--red) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { max-width: 620px; margin: 18px 0 30px; font-size: clamp(16px, 1.6vw, 18px); color: var(--text-2); text-wrap: pretty; }
.hero__search {
  display: flex; align-items: center; gap: 12px; width: min(640px, 100%); height: 56px; padding: 0 12px 0 18px;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-3);
  box-shadow: var(--shadow-2); cursor: text; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hero__search:hover { border-color: var(--accent); transform: translateY(-1px); }
.hero__search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.hero__search svg { width: 20px; height: 20px; color: var(--text-2); }
.stats { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 36px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--text-3); }
.stats dd { margin: 0; font: 800 26px/1.15 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ── Section heads ──────────────────────────────────────── */
.section { padding-block: clamp(40px, 6vw, 72px) 8px; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sechead h2 { margin: 0; font: 800 clamp(24px, 3vw, 32px)/1.15 var(--font-display); letter-spacing: -.025em; }
.sechead--sm h2 { font-size: 15px; font-family: var(--font); font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.sechead__aside { display: flex; align-items: center; gap: 12px; }
.eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 70%,100% { box-shadow: 0 0 0 8px transparent; } }

/* ── Buttons, chips, inputs ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--text-2); padding: 0 10px; }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn.is-spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; padding-bottom: 2px;
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip__n { font-size: 11.5px; opacity: .6; font-variant-numeric: tabular-nums; }
.select select {
  height: 34px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8396' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.filter {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; width: min(300px, 100%);
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-3);
}
.filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }

/* ── Quick services ─────────────────────────────────────── */
.quick { padding-top: 8px; }
.quick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.qcard {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.qcard:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-2); }
.qcard b { display: block; font-size: 13.5px; font-weight: 600; }
.qcard > div span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcard > div { min-width: 0; }

/* ── Logo tile (favicon with monogram fallback) ─────────── */
.logo {
  --h: 220;
  position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  overflow: hidden; font: 800 11px/1 var(--font-display); letter-spacing: -.02em; text-align: center;
  color: hsl(var(--h) 55% 38%); background: hsl(var(--h) 70% 94%); border: 1px solid hsl(var(--h) 40% 86%);
}
:root[data-theme="dark"] .logo { color: hsl(var(--h) 80% 78%); background: hsl(var(--h) 35% 18%); border-color: hsl(var(--h) 30% 26%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo { color: hsl(var(--h) 80% 78%); background: hsl(var(--h) 35% 18%); border-color: hsl(var(--h) 30% 26%); }
}

/* ── Directory groups ───────────────────────────────────── */
.group { margin-bottom: 34px; content-visibility: auto; contain-intrinsic-size: auto 400px; }
.group[hidden] { display: none; }
.group__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.group__head h3 { margin: 0; font: 700 17px/1.3 var(--font-display); letter-spacing: -.01em; }
.group__head .muted { font-size: 12.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.card {
  container-type: inline-size;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.card:hover .card__go { opacity: 1; translate: 0 0; color: var(--accent); }
.card__body { flex: 1; min-width: 0; }
.card__title { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.card__name { font-size: 13px; color: var(--text-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__host { font-size: 11.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__go { width: 16px; height: 16px; opacity: 0; translate: -4px 0; transition: all .2s; color: var(--text-3); }
@container (max-width: 230px) { .card__host { display: none; } }
.badge-gov {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px;
  color: var(--live); background: color-mix(in srgb, var(--live) 12%, transparent);
}
.empty { padding: 40px 16px; text-align: center; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: var(--radius); }
mark { background: color-mix(in srgb, var(--gold) 38%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ── News ───────────────────────────────────────────────── */
.news-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-bottom: 20px; }
.news-lead {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px;
  border-radius: 20px; overflow: hidden; color: #fff; isolation: isolate; box-shadow: var(--shadow-2);
  background: linear-gradient(135deg, #0038a8, #0b1220 60%, #ce1126);
}
.news-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale .6s cubic-bezier(.2,.8,.2,1); }
.news-lead:hover img { scale: 1.04; }
.news-lead::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgb(5 10 20 / .55) 55%, rgb(5 10 20 / .92)); }
.news-lead__body { padding: clamp(20px, 3vw, 32px); }
.news-lead h3 { margin: 10px 0 8px; font: 800 clamp(22px, 2.6vw, 32px)/1.15 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.news-lead p { margin: 0; color: rgb(255 255 255 / .82); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-lead .meta { color: rgb(255 255 255 / .75); }
.news-lead .tag, .news-lead .tag[data-cat] { background: rgb(255 255 255 / .18); color: #fff; backdrop-filter: blur(6px); }

.news-side { display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.news-side__title { margin: 0; padding: 16px 18px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.side-item { display: flex; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); transition: background .15s; }
.side-item:first-of-type { border-top: 0; }
.side-item:hover { background: var(--surface-2); }
.side-item:hover h4 { color: var(--accent); }
.side-item__n { font: 800 22px/1 var(--font-display); color: var(--line-2); min-width: 22px; font-variant-numeric: tabular-nums; }
.side-item h4 { margin: 0 0 5px; font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ncard {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ncard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.ncard:hover h4 { color: var(--accent); }
.ncard__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.ncard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .5s cubic-bezier(.2,.8,.2,1); }
.ncard:hover .ncard__media img { scale: 1.05; }
.ncard__ph {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font: 800 20px/1.1 var(--font-display); letter-spacing: -.02em; color: color-mix(in srgb, var(--accent) 70%, var(--text));
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--red) 14%, transparent), transparent 55%), var(--surface-2);
}
.ncard__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.ncard h4 { margin: 8px 0 6px; font-size: 16px; font-weight: 650; line-height: 1.35; letter-spacing: -.005em; transition: color .15s; text-wrap: pretty; }
.ncard p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .meta { margin-top: auto; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.meta b { font-weight: 600; color: var(--text-2); }
.news-lead .meta b { color: #fff; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.tag {
  align-self: flex-start; display: inline-flex; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}
.tag[data-cat="Sports"] { background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; }
.tag[data-cat="Business"] { background: color-mix(in srgb, #b45309 14%, transparent); color: #b45309; }
.tag[data-cat="Entertainment"] { background: color-mix(in srgb, #db2777 14%, transparent); color: #db2777; }
.tag[data-cat="Tech"] { background: color-mix(in srgb, #7c3aed 14%, transparent); color: #7c3aed; }
.tag[data-cat="World"] { background: color-mix(in srgb, #0891b2 14%, transparent); color: #0891b2; }
.tag[data-cat="Economy"] { background: color-mix(in srgb, #2563eb 14%, transparent); color: #2563eb; }
.tag[data-cat="Crypto"] { background: color-mix(in srgb, #ea580c 14%, transparent); color: #ea580c; }
.more { display: flex; justify-content: center; padding: 24px 0 8px; }

/* skeletons */
.skeleton-block, .skeleton-card, .skel {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface) 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s ease-in-out infinite; border-radius: var(--radius);
}
.skeleton-block { min-height: 420px; margin-bottom: 20px; border-radius: 20px; }
.skeleton-card { height: 300px; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ── Footer ─────────────────────────────────────────────── */
.footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--bg-2); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer__inner { padding-block: 28px; font-size: 13.5px; color: var(--text-2); }
.footer__inner p { margin: 0 0 6px; }
.footer a { color: var(--accent); font-weight: 600; }

/* ── Command palette ────────────────────────────────────── */
.palette {
  width: min(640px, calc(100% - 32px)); max-height: min(560px, 80vh); margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-3); overflow: hidden;
}
.palette[open] { animation: pop .18s cubic-bezier(.2,.8,.2,1); }
.palette::backdrop { background: rgb(5 10 20 / .45); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.palette__box { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.palette__input { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.palette__input svg { width: 20px; height: 20px; }
.palette__input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); }
.palette__list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.palette__sec { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.palette__item a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.palette__item[aria-selected="true"] a { background: var(--accent-soft); }
.palette__item[aria-selected="true"] .palette__t { color: var(--accent); }
.palette__item .logo { width: 32px; height: 32px; border-radius: 8px; }
.palette__item .logo svg { width: 16px; height: 16px; }
.palette__t { font-weight: 600; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__s { font-size: 12.5px; color: var(--text-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__item a > div { min-width: 0; flex: 1; }
.palette__empty { padding: 32px 16px; text-align: center; color: var(--text-3); }
.palette__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.palette__foot kbd { margin-right: 3px; }

/* ── View transitions (filter changes) ──────────────────── */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .news-top { grid-template-columns: 1fr; }
  .news-lead { min-height: 340px; }
  .searchbtn { min-width: 0; }
  .searchbtn__label, .searchbtn kbd { display: none; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .topbar__inner { gap: 12px; height: 56px; }
  .hero__search kbd { display: none; }
  .hero__search span { font-size: 14px; }
  .stats { gap: 10px 24px; }
  .stats dd { font-size: 22px; }
  .quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .filter { width: 100%; }
  .sechead { align-items: stretch; }
  .palette { margin-top: 8vh; }
  .card__go { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ═════════ TaraChat centerpiece ═════════
   Brand tokens mirror landing.css (--lp-accent/--lp-grad): copper in light,
   Nord frost in dark. PH flag colours stay on the PH Hub parts. */
:root {
  --brand: #8a501f; --brand-2: #c27a2c; --on-brand: #fff;
  --brand-grad: linear-gradient(100deg, #8a501f 0%, #c27a2c 55%, #b5562f 100%);
  --brand-btn: linear-gradient(135deg, #9a5a24, #8a501f 60%, #74421a);
  --brand-soft: rgb(194 122 44 / .12);
  --band-bg: #17110b; --band-ink: #fbf5ec; --band-ink-2: #d9cbb8;
}
:root[data-theme="dark"] {
  --brand: #88c0d0; --brand-2: #b48ead; --on-brand: #0b1220;
  --brand-grad: linear-gradient(100deg, #8fbcbb 0%, #88c0d0 40%, #b48ead 100%);
  --brand-btn: linear-gradient(135deg, #8fbcbb, #88c0d0 55%, #81a1c1);
  --brand-soft: rgb(136 192 208 / .12);
  --band-bg: #070b12; --band-ink: #eef1f6; --band-ink-2: #b9c2d0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #88c0d0; --brand-2: #b48ead; --on-brand: #0b1220;
    --brand-grad: linear-gradient(100deg, #8fbcbb 0%, #88c0d0 40%, #b48ead 100%);
    --brand-btn: linear-gradient(135deg, #8fbcbb, #88c0d0 55%, #81a1c1);
    --brand-soft: rgb(136 192 208 / .12);
    --band-bg: #070b12; --band-ink: #eef1f6; --band-ink-2: #b9c2d0;
  }
}

/* brand in top bar */
.brand__name { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn--brand { background: var(--brand-btn); color: var(--on-brand); border: 0; box-shadow: 0 8px 24px -10px var(--brand); }
.btn--brand:hover { color: var(--on-brand); filter: brightness(1.07); box-shadow: 0 12px 30px -10px var(--brand); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 17px; height: 17px; }

/* hero = TaraChat spotlight */
.hero {
  padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px);
  background:
    radial-gradient(760px 420px at 8% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%),
    radial-gradient(640px 420px at 95% 10%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    radial-gradient(600px 300px at 50% 105%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); }
.hero .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; }
.hero__lede { margin: 18px 0 26px; }
.hero__lede b { color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
/* TaraChat feature band (#tarachat) */
.band {
  margin-top: clamp(48px, 7vw, 88px); padding-block: clamp(48px, 7vw, 88px); color: var(--band-ink);
  background:
    radial-gradient(700px 400px at 0% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    radial-gradient(700px 400px at 100% 100%, color-mix(in srgb, var(--brand-2) 24%, transparent), transparent 70%),
    var(--band-bg);
  position: relative; overflow: hidden;
}
.band__head { max-width: 640px; margin-bottom: 32px; }
.band__head h2 { margin: 0 0 10px; font: 800 clamp(28px, 4vw, 44px)/1.08 var(--font-display); letter-spacing: -.03em; }
.band__head p { margin: 0; color: var(--band-ink-2); font-size: 16px; }
.eyebrow--light { color: var(--band-ink-2); }
.eyebrow--light img { width: 16px; height: 16px; border-radius: 4px; }
.band__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feats li {
  display: flex; gap: 12px; padding: 16px; border-radius: 16px;
  background: rgb(255 255 255 / .045); border: 1px solid rgb(255 255 255 / .08); transition: background .2s, border-color .2s;
}
.feats li:hover { background: rgb(255 255 255 / .075); border-color: rgb(255 255 255 / .16); }
.feats span { font-size: 22px; line-height: 1.2; }
.feats b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.feats p { margin: 0; font-size: 13px; color: var(--band-ink-2); line-height: 1.45; }
.tour__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tour__tabs button {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .14);
  background: transparent; color: var(--band-ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.tour__tabs button:hover { color: var(--band-ink); border-color: rgb(255 255 255 / .3); }
.tour__tabs button[aria-selected="true"] { background: var(--brand-grad); color: var(--on-brand); border-color: transparent; }
/* Flex (not grid) so the screenshot's max-height: 100% resolves against the
   frame's fixed height — every shot, wide or tall, stays inside the stage. */
.tour__frame {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: clamp(340px, 36vw, 460px); padding: clamp(18px, 2.6vw, 30px); border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(55% 60% at 50% 45%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 72%),
    radial-gradient(40% 40% at 85% 90%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
    rgb(255 255 255 / .03);
  border: 1px solid rgb(255 255 255 / .08);
}
.tour__frame img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 70px -24px rgb(0 0 0 / .85), 0 8px 20px -10px rgb(0 0 0 / .6);
  transition: opacity .28s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.tour__frame img.is-loading { opacity: 0; transform: translateY(8px) scale(.985); }
.band__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn--light { background: var(--band-ink); color: var(--band-bg); border: 0; }
.btn--light:hover { color: var(--band-bg); filter: brightness(.94); }
.btn--outline-light { background: transparent; color: var(--band-ink); border-color: rgb(255 255 255 / .25); }
.btn--outline-light:hover { color: var(--band-ink); border-color: var(--band-ink); }

/* talk-about-it hooks in the news block */
.news-lead__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.discuss {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #fff; background: rgb(255 255 255 / .16); backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / .22); transition: background .15s;
}
.discuss:hover { background: rgb(255 255 255 / .28); }
.discuss svg { width: 14px; height: 14px; }
.news-side__cta {
  display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--line);
  background: var(--brand-soft); font-size: 13px; color: var(--text-2);
}
.news-side__cta img { width: 28px; height: 28px; border-radius: 7px; }
.news-side__cta b { color: var(--brand); }

/* closing CTA */
.closer {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(22px, 4vw, 36px); border-radius: 24px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  background:
    radial-gradient(500px 220px at 0% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%), var(--surface);
  box-shadow: var(--shadow-2);
}
.closer img { border-radius: 14px; box-shadow: var(--shadow-2); }
.closer > div:nth-child(2) { flex: 1; min-width: 240px; }
.closer h2 { margin: 0 0 4px; font: 800 clamp(22px, 2.8vw, 30px)/1.15 var(--font-display); letter-spacing: -.02em; }
.closer p { margin: 0; color: var(--text-2); }
.closer__cta { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 980px) {
  .hero__grid, .band__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .feats { grid-template-columns: 1fr; }
  .topbar__tools .btn--brand { height: 34px; padding: 0 12px; font-size: 13px; }
  .tour__frame { height: clamp(260px, 78vw, 380px); padding: 14px; }
}
.news-lead .stretch { color: inherit; }
.news-lead .stretch::after { content: ""; position: absolute; inset: 0; }
.news-lead .discuss { position: relative; z-index: 1; }
.news-lead:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.news-lead .stretch:focus-visible { outline: none; }
.logo__m { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 2px; overflow: hidden; }
/* Official logo over the monogram. White plate in both themes so dark-ink
   logos stay legible; shown unaltered (contain, never cropped or recoloured). */
.logo__img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; object-fit: contain; background: #fff; opacity: 0; transition: opacity .25s; }
.logo--img .logo__img { opacity: 1; }
.logo--img .logo__m { visibility: hidden; }
.logo.logo--img { border-color: var(--line); background: #fff; }
.logo--small .logo__img { padding: 25%; } /* 16px favicons: don't blow them up blurry */

/* ═════════ Explore Pilipinas (travel) ═════════ */
.sechead__lede { margin: 6px 0 0; color: var(--text-2); font-size: 15px; max-width: 560px; }
.chip--soft[aria-pressed="true"] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.dest {
  --h: 200;
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; scroll-margin-top: 90px;
  background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dest:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: hsl(var(--h) 45% 70% / .6); }
.dest.is-flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px hsl(var(--h) 70% 55% / .55); } 100% { box-shadow: 0 0 0 0 transparent; } }
.dest__head {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px;
  background:
    radial-gradient(260px 120px at 0% 0%, hsl(var(--h) 80% 60% / .28), transparent 70%),
    radial-gradient(260px 140px at 100% 100%, hsl(calc(var(--h) + 40) 80% 60% / .18), transparent 70%),
    hsl(var(--h) 60% 96%);
  border-bottom: 1px solid hsl(var(--h) 40% 88%);
}
.dest__emoji {
  display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; font-size: 28px;
  background: hsl(var(--h) 70% 99% / .85); box-shadow: 0 6px 16px -8px hsl(var(--h) 60% 30% / .5);
}
.dest__title { flex: 1; min-width: 0; }
.dest__title h3 { margin: 0; font: 800 20px/1.15 var(--font-display); letter-spacing: -.02em; color: hsl(var(--h) 55% 18%); }
.dest__title p { margin: 3px 0 0; font-size: 12.5px; color: hsl(var(--h) 25% 38%); }
.dest__best {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; white-space: nowrap; padding: 4px 8px; border-radius: 999px;
  color: hsl(var(--h) 55% 25%); background: hsl(var(--h) 70% 99% / .8); border: 1px solid hsl(var(--h) 40% 85%);
}
.dest__blurb { margin: 0; padding: 14px 18px 4px; font-size: 14px; color: var(--text-2); }
.dest__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 10px 18px 14px; flex: 1; }
.dest__cols h4 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.dest__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dest__cols li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.35; }
.dest__cols li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--h) 60% 50%); }
.dest__cols .eats { display: flex; flex-wrap: wrap; gap: 6px; }
.dest__cols .eats li {
  padding: 4px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  background: hsl(var(--h) 60% 50% / .1); color: var(--text);
}
.dest__cols .eats li::before { display: none; }
.dest__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-2); background: var(--surface-2);
}
.dest__links { margin-left: auto; display: flex; gap: 6px; }
.dest__links a {
  padding: 5px 10px; border-radius: 8px; font-weight: 600; font-size: 12.5px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, color .15s;
}
.dest__links a:hover { border-color: var(--accent); color: var(--accent); }
.travel-cta {
  display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 20px; border-radius: 16px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); color: var(--text-2); font-size: 14.5px;
  transition: transform .15s;
}
.travel-cta:hover { transform: translateY(-1px); }
.travel-cta img { border-radius: 10px; }
.travel-cta b { color: var(--brand); }
.travel-cta span { flex: 1; }
.travel-cta svg { color: var(--brand); }
:root[data-theme="dark"] .dest__head { background: radial-gradient(260px 120px at 0% 0%, hsl(var(--h) 70% 50% / .3), transparent 70%), radial-gradient(260px 140px at 100% 100%, hsl(calc(var(--h) + 40) 70% 50% / .2), transparent 70%), hsl(var(--h) 30% 14%); border-bottom-color: hsl(var(--h) 30% 22%); }
:root[data-theme="dark"] .dest__emoji { background: hsl(var(--h) 30% 22%); }
:root[data-theme="dark"] .dest__title h3 { color: hsl(var(--h) 70% 88%); }
:root[data-theme="dark"] .dest__title p { color: hsl(var(--h) 25% 68%); }
:root[data-theme="dark"] .dest__best { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 30% 20%); border-color: hsl(var(--h) 30% 28%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dest__head { background: radial-gradient(260px 120px at 0% 0%, hsl(var(--h) 70% 50% / .3), transparent 70%), radial-gradient(260px 140px at 100% 100%, hsl(calc(var(--h) + 40) 70% 50% / .2), transparent 70%), hsl(var(--h) 30% 14%); border-bottom-color: hsl(var(--h) 30% 22%); }
  :root:not([data-theme="light"]) .dest__emoji { background: hsl(var(--h) 30% 22%); }
  :root:not([data-theme="light"]) .dest__title h3 { color: hsl(var(--h) 70% 88%); }
  :root:not([data-theme="light"]) .dest__title p { color: hsl(var(--h) 25% 68%); }
  :root:not([data-theme="light"]) .dest__best { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 30% 20%); border-color: hsl(var(--h) 30% 28%); }
}

/* ═════════ Healthcare ═════════ */
.hotlines { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 20px; }
.hotline {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
  transition: transform .15s, box-shadow .15s;
}
.hotline:first-child { background: color-mix(in srgb, var(--red) 9%, var(--surface)); }
.hotline:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.hotline__num { font: 800 22px/1.15 var(--font-display); letter-spacing: -.01em; color: var(--red); font-variant-numeric: tabular-nums; }
.hotline__name { font-weight: 600; font-size: 14px; }
.hotline__desc { font-size: 12.5px; color: var(--text-3); }
.health-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.panel-stack { display: grid; gap: 18px; }
.panel { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel__head h3 { margin: 0; font: 700 16px/1.3 var(--font-display); }
.chips--sm .chip { height: 28px; padding: 0 11px; font-size: 12.5px; }
.hosp-list { max-height: 560px; overflow-y: auto; padding: 6px; }
.hosp-region { margin: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.hosp { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background .15s; }
.hosp:hover { background: var(--surface-2); }
.hosp:hover b { color: var(--accent); }
.hosp__body { flex: 1; min-width: 0; }
.hosp__body b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; transition: color .15s; }
.hosp__body small { display: block; font-size: 12px; color: var(--text-3); }
.kind { flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 7px; border-radius: 6px; }
.kind--public { color: var(--live); background: color-mix(in srgb, var(--live) 12%, transparent); }
.kind--private { color: var(--accent); background: var(--accent-soft); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; padding: 8px; }
.mini { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; transition: background .15s; }
.mini:hover { background: var(--surface-2); }
.mini > span:last-child { min-width: 0; }
.mini b { display: block; font-size: 13.5px; }
.mini small { display: block; font-size: 12px; color: var(--text-3); line-height: 1.3; }
.note { margin: 16px 0 0; font-size: 13px; color: var(--text-3); }
.note a { color: var(--red); }
.logo--emoji { font-size: 17px; background: var(--surface-2); border-color: var(--line); }

@media (max-width: 900px) {
  .health-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dest-grid { grid-template-columns: 1fr; }
  .dest__cols { grid-template-columns: 1fr; }
  .dest__links { margin-left: 0; }
  .hotlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotline__num { font-size: 19px; }
  .mini-grid { grid-template-columns: 1fr; }
}

/* ═════════ TARA brand + portal hero ═════════ */
.tara-mark { width: 30px; height: 30px; stroke: none; border-radius: 9px; box-shadow: 0 6px 16px -8px var(--brand); }
.tara-mark * { stroke: none; }
.tara-mark__bg { fill: var(--brand); }
.tara-mark__sun { fill: var(--on-brand); transform-origin: 16px 16px; transition: rotate .8s cubic-bezier(.2,.8,.2,1); }
.brand:hover .tara-mark__sun { rotate: 45deg; }
.tara-mark--lg { width: 56px; height: 56px; border-radius: 16px; }
.brand__name { font-size: 21px; letter-spacing: .02em; }
.hero .stats { margin-top: 28px; }
.hero .hero__search { margin-top: 4px; }

.today {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.today::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent) 0 33%, var(--gold) 33% 66%, var(--red) 66%); }
.today__label { margin: 2px 4px 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.today__news { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 16px; transition: background .15s; }
.today__news:hover { background: var(--surface-2); }
.today__news:hover b { color: var(--accent); }
.today__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--accent-soft), var(--brand-soft)); }
.today__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.today__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.today__body b { font-size: 15.5px; line-height: 1.3; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.today__body small { font-size: 12.5px; color: var(--text-3); }
.skel-line { display: block; height: 14px; width: 92%; border-radius: 6px; background: var(--surface-2); }
.skel-line--sm { width: 50%; height: 10px; }
.today__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.today__tile {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.today__tile:hover { border-color: var(--line-2); transform: translateY(-1px); }
.today__tile > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.today__tile small { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.today__tile b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today__tile em { font-style: normal; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today__emoji { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; font-size: 21px; background: var(--surface); }
.today__tile--sos { border-left: 4px solid var(--red); }
.today__tile--sos b { color: var(--red); }
.today__chat {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); transition: transform .15s;
}
.today__chat:hover { transform: translateY(-1px); }
.today__chat img { border-radius: 9px; }
.today__chat > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.today__chat b { color: var(--brand); font-size: 14.5px; }
.today__chat small { font-size: 12.5px; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.feature {
  --h: 220;
  display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: hsl(var(--h) 60% 60% / .55); }
.feature span {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px; font-size: 22px;
  background: hsl(var(--h) 80% 60% / .14);
}
.feature b { font: 700 15.5px/1.25 var(--font-display); }
.feature small { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }

.band__dl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-left: 8px; font-size: 13.5px; }
.band__dl a { color: var(--band-ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .25); }
.band__dl a:hover { color: var(--band-ink); }
.band { scroll-margin-top: 66px; }

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .today { max-width: 640px; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today__news { grid-template-columns: 96px 1fr; }
  .today__row { grid-template-columns: 1fr; }
  .band__dl { margin-left: 0; }
}

/* ═════════ Festival cover (top of the page) ═════════ */
.fcover {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(600px, 88vh, 800px); display: flex; flex-direction: column; justify-content: flex-end;
  background: #0b0f16;
}
.fcover__bg { position: absolute; inset: 0; z-index: -2; }
.fcover__layer {
  position: absolute; inset: 0; background-size: cover; background-position: center 35%;
  opacity: 0; transform: scale(1.1); transition: opacity 1.2s ease;
}
.fcover__layer.is-in { opacity: 1; animation: fcover-kenburns 18s ease-out forwards; }
.fcover__layer.is-empty {
  background:
    radial-gradient(60% 70% at 20% 30%, rgb(206 17 38 / .45), transparent 70%),
    radial-gradient(60% 70% at 80% 20%, rgb(0 56 168 / .5), transparent 70%),
    radial-gradient(50% 60% at 60% 90%, rgb(252 209 22 / .35), transparent 70%), #0b0f16;
}
@keyframes fcover-kenburns { from { transform: scale(1.12) translate(1.2%, 1%); } to { transform: scale(1.01) translate(0, 0); } }
.fcover__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(5 8 14 / .9) 0%, rgb(5 8 14 / .6) 42%, rgb(5 8 14 / .1) 78%),
    linear-gradient(0deg, rgb(5 8 14 / .96) 0%, rgb(5 8 14 / .35) 38%, transparent 62%),
    linear-gradient(180deg, rgb(5 8 14 / .55) 0%, transparent 22%);
}
.fcover__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 40px; padding-block: clamp(90px, 14vh, 150px) 22px; }
.fcover__copy { max-width: 760px; }
.fcover__eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fcd116;
}
.fcover__spark { display: inline-block; animation: fcover-spin 6s linear infinite; }
@keyframes fcover-spin { to { rotate: 360deg; } }
.fcover__status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.fcover__status .live-dot { background: #fff; }
.fcover__status--now { background: rgb(206 17 38 / .85); border-color: rgb(255 120 130 / .6); }
.fcover__status--soon { background: rgb(252 209 22 / .92); border-color: #fcd116; color: #1c1404; }
.fcover__status--soon .live-dot { background: #1c1404; animation: none; }
.fcover__status--later .live-dot { animation: none; opacity: .7; }
.fcover__title {
  margin: 0; max-width: 18ch; font: 800 clamp(40px, 6.4vw, 86px)/1 var(--font-display); letter-spacing: -.035em;
  text-wrap: balance; text-shadow: 0 4px 30px rgb(0 0 0 / .35);
}
.fcover__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; font-size: 15.5px; font-weight: 600; color: rgb(255 255 255 / .9); }
.fcover__desc {
  margin: 14px 0 0; max-width: 62ch; font-size: 15.5px; line-height: 1.55; color: rgb(255 255 255 / .78);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fcover__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fcover .btn--light { background: #fff; color: #0b0f16; }
.fcover .btn--light:hover { color: #0b0f16; }
.fcover .btn--outline-light { color: #fff; border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .06); backdrop-filter: blur(6px); }
.fcover .btn--outline-light:hover { color: #fff; border-color: #fff; }

.fcover__side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.fcover__count {
  padding: 14px 16px; border-radius: 18px; text-align: left;
  background: rgb(10 14 22 / .55); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.fcover__count-label { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.fcover__units { display: flex; gap: 8px; }
.fcover__units > span { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; border-radius: 12px; background: rgb(255 255 255 / .08); }
.fcover__units b { font: 800 28px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fcover__units small { margin-top: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.fcover__nav { display: flex; align-items: center; gap: 12px; }
.fcover__arrow {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(8px); transition: background .15s;
}
.fcover__arrow:hover { background: rgb(255 255 255 / .22); }
.fcover__dots { display: flex; gap: 6px; }
.fcover__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgb(255 255 255 / .4); cursor: pointer; transition: width .3s, background .3s; }
.fcover__dots button[aria-selected="true"] { width: 26px; background: #fcd116; }
.fcover__progress { height: 3px; background: rgb(255 255 255 / .1); }
.fcover__progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #0038a8, #fcd116, #ce1126); }
@keyframes fcover-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.fcover__rail-wrap { padding-block: 16px 10px; }
.fcover__rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.fcover__rail-head b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.fcover__rail-head a { color: #fcd116; font-weight: 600; }
/* Admin-only shortcut to /Festivals (added by homepage.js when the session is an admin's). */
.fcover__rail-head .fcover__admin { margin-right: auto; font-size: 12px; color: #fff; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); padding: 2px 10px; border-radius: 99px; }
.fcover__rail-head .fcover__admin:hover { background: rgb(255 255 255 / .2); }
.fcover__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 270px); gap: 10px;
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .25) transparent;
  mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent);
}
.fcard {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-align: left; cursor: pointer; color: #fff;
  scroll-snap-align: start; font: inherit;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .15s, border-color .15s, transform .15s;
}
.fcard:hover { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .28); transform: translateY(-2px); }
.fcard__img { position: relative; flex-shrink: 0; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: rgb(255 255 255 / .08); }
.fcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcard__img--ph { display: grid; place-items: center; font-size: 28px;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 85% 60% / .55), transparent 65%), radial-gradient(circle at 80% 90%, hsl(calc(var(--h) + 60) 85% 55% / .45), transparent 60%), hsl(var(--h) 40% 22%); }
.fcard__body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.fcard__when { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .65); }
.fcard__when--now { color: #ff7a87; }
.fcard__when--soon { color: #fcd116; }
.fcard b { font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard small { font-size: 12px; color: rgb(255 255 255 / .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcover__credit { margin: 0; padding-bottom: 10px; font-size: 11px; color: rgb(255 255 255 / .45); }
.fcover__credit a { color: rgb(255 255 255 / .65); text-decoration: underline; text-underline-offset: 2px; }

.skel-dark { display: block; border-radius: 10px; background: linear-gradient(100deg, rgb(255 255 255 / .06) 30%, rgb(255 255 255 / .14) 50%, rgb(255 255 255 / .06) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.fcover__status.skel-dark { width: 180px; height: 30px; }
.skel-dark--title { width: min(560px, 90%); height: 1.6em; }
.skel-dark--meta { width: 300px; height: 18px; }

/* ═════════ Festival calendar section ═════════ */
.fest-months {
  display: grid; grid-template-columns: repeat(12, minmax(64px, 1fr)); gap: 8px; margin-bottom: 20px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.fest-months::-webkit-scrollbar { display: none; }
.fest-month {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font: inherit; transition: all .15s;
}
.fest-month:hover { border-color: var(--line-2); color: var(--text); }
.fest-month span { font-size: 13px; font-weight: 600; white-space: nowrap; }
.fest-month span i { font-style: normal; font-size: 11px; color: var(--text-3); }
.fest-month b { font: 800 19px/1.1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.fest-month[aria-selected="true"] { background: var(--brand-btn); border-color: transparent; color: var(--on-brand); box-shadow: 0 10px 24px -12px var(--brand); }
.fest-month[aria-selected="true"] b, .fest-month[aria-selected="true"] span i { color: var(--on-brand); }
.fest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.frow {
  display: flex; gap: 14px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  scroll-margin-top: 90px; transition: border-color .15s, box-shadow .15s;
}
.frow:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.frow--major { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 8%, var(--surface)), var(--surface) 60%); }
.frow .fcard__img { width: 96px; height: 96px; border-radius: 12px; }
.frow__body { flex: 1; min-width: 0; }
.frow__top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.frow__badge, .frow__star { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.frow__badge--now { color: #fff; background: var(--red); }
.frow__badge--soon { color: #1c1404; background: #fcd116; }
.frow__badge--later { color: var(--text-2); background: var(--surface-2); }
.frow__star { color: color-mix(in srgb, var(--gold) 70%, var(--text)); background: color-mix(in srgb, var(--gold) 16%, transparent); }
.frow h3 { margin: 0 0 4px; font: 700 16px/1.3 var(--font-display); }
.frow__meta { margin: 0; font-size: 13px; color: var(--text-2); }
.frow__notes { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.frow__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.frow__btn {
  padding: 5px 10px; border-radius: 8px; font: 600 12.5px/1.3 var(--font); cursor: pointer; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s, color .15s;
}
.frow__btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .fcover__inner { grid-template-columns: minmax(0, 1fr); }
  .fcover__side { align-items: flex-start; }
}
@media (max-width: 640px) {
  .fcover { min-height: auto; }
  .fcover__inner { padding-block: 110px 16px; }
  .fcover__shade { background: linear-gradient(0deg, rgb(5 8 14 / .96) 0%, rgb(5 8 14 / .55) 55%, rgb(5 8 14 / .35) 100%); }
  .fcover__units > span { min-width: 0; flex: 1; }
  .fcover__units b { font-size: 22px; }
  .fcover__count { width: 100%; }
  .fcover__cta .btn { flex: 1; justify-content: center; }
  .fcover__rail { grid-auto-columns: minmax(230px, 78%); }
  .fest-list { grid-template-columns: 1fr; }
  .frow .fcard__img { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .fcover__layer.is-in { animation: none; transform: none; }
}

/* top bar fits seven nav links: buttons never wrap, search collapses to its icon */
.btn { white-space: nowrap; }
@media (max-width: 1280px) {
  .searchbtn { min-width: 0; }
  .searchbtn__label, .searchbtn kbd { display: none; }
}
@media (max-width: 640px) {
  .fcover__cta .btn { padding: 0 14px; font-size: 14px; }
}

/* ═════════ Licensing pass (2026-10-04) ═════════ */
/* TARA mark: rising sun over waves (not the flag's 8-ray sun). */
.tara-mark__sun { transition: transform .6s cubic-bezier(.2,.8,.2,1); rotate: none; }
.brand:hover .tara-mark__sun { rotate: none; transform: translateY(-1.5px); }
.tara-mark__wave { fill: none; stroke: var(--on-brand); stroke-width: 1.9; stroke-linecap: round; opacity: .92; }

/* Photo credit captions (CC BY / BY-SA attribution). */
.credit { font-size: 11px; line-height: 1.3; color: rgb(255 255 255 / .85); }
.credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgb(255 255 255 / .45); }
.dest__photo { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.dest__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2,.8,.2,1); }
.dest:hover .dest__photo img { scale: 1.04; }
.dest__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px;
  background: linear-gradient(transparent, rgb(0 0 0 / .62)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dest--photo .dest__head { padding-top: 14px; }
.dest--photo .dest__emoji { width: 44px; height: 44px; font-size: 23px; margin-top: -36px; box-shadow: 0 8px 18px -8px rgb(0 0 0 / .45); border: 2px solid var(--surface); position: relative; }

.fcover__credit { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fcover__credit-item .credit, .fcover__credit-item { color: rgb(255 255 255 / .55); }
.fcover__credit a { color: rgb(255 255 255 / .75); }

/* News without publisher photos: typographic lead + text cards. */
.news-lead { min-height: 360px; background:
  radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
  radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--red) 40%, transparent), transparent 70%), #0d1424; }
.news-lead::before { background: linear-gradient(180deg, transparent 30%, rgb(5 10 20 / .35)); }
.news-lead[data-cat="Business"] { background: radial-gradient(70% 90% at 0% 0%, rgb(180 83 9 / .6), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgb(250 204 21 / .25), transparent 70%), #17110b; }
.news-lead[data-cat="Sports"] { background: radial-gradient(70% 90% at 0% 0%, rgb(22 163 74 / .55), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgb(14 165 233 / .3), transparent 70%), #0b1714; }
.news-lead[data-cat="Entertainment"] { background: radial-gradient(70% 90% at 0% 0%, rgb(219 39 119 / .55), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgb(124 58 237 / .35), transparent 70%), #160b16; }
.news-lead[data-cat="World"] { background: radial-gradient(70% 90% at 0% 0%, rgb(8 145 178 / .55), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgb(37 99 235 / .3), transparent 70%), #08141a; }
.news-lead[data-cat="Tech"] { background: radial-gradient(70% 90% at 0% 0%, rgb(124 58 237 / .55), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgb(14 165 233 / .3), transparent 70%), #100b1c; }
.news-lead[data-cat="Economy"] { background: radial-gradient(70% 90% at 0% 0%, rgb(37 99 235 / .55), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgb(16 185 129 / .28), transparent 70%), #0a1120; }
.news-lead[data-cat="Crypto"] { background: radial-gradient(70% 90% at 0% 0%, rgb(234 88 12 / .55), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgb(250 204 21 / .28), transparent 70%), #1a0f08; }
.news-lead__glyph { position: absolute; top: 22px; right: 26px; font-size: clamp(64px, 9vw, 120px); line-height: 1; opacity: .22; filter: saturate(.8); pointer-events: none; }
.news-lead h3 { font-size: clamp(24px, 3vw, 36px); }
.ncard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ncard__src { font-size: 12px; font-weight: 700; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncard { border-top: 3px solid var(--line-2); }
.ncard:has(.tag[data-cat="Nation"]) { border-top-color: var(--accent); }
.ncard:has(.tag[data-cat="Business"]) { border-top-color: #b45309; }
.ncard:has(.tag[data-cat="Sports"]) { border-top-color: #16a34a; }
.ncard:has(.tag[data-cat="Entertainment"]) { border-top-color: #db2777; }
.ncard:has(.tag[data-cat="World"]) { border-top-color: #0891b2; }
.ncard:has(.tag[data-cat="Tech"]) { border-top-color: #7c3aed; }
.ncard:has(.tag[data-cat="Economy"]) { border-top-color: #2563eb; }
.ncard:has(.tag[data-cat="Crypto"]) { border-top-color: #ea580c; }
.ncard__body { padding-top: 16px; }
.ncard h4 { font-size: 17px; }
.today__img--glyph { display: grid; place-items: center; font-size: 44px; }

/* Health: diagnostics + HMO panels. */
.health-grid--even { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.panel__note { margin: 0; padding: 12px 16px 0; font-size: 13px; color: var(--text-3); }

/* Footer credits & licenses. */
.credits { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.credits summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--text); list-style: none; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: "＋"; float: right; color: var(--text-3); }
.credits[open] summary::after { content: "－"; }
.credits__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px 24px; padding: 4px 16px 16px; }
.credits h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--text); }
.credits p { margin: 0; font-size: 13px; line-height: 1.55; }
.credits a { font-weight: 600; }
.credits section:first-child { grid-column: 1 / -1; }
.credits__list { margin: 10px 0 0; padding-left: 18px; max-height: 260px; overflow-y: auto; columns: 2 320px; column-gap: 28px; font-size: 12.5px; color: var(--text-2); }
.credits__list li { break-inside: avoid; margin-bottom: 4px; }
.credits__list a { font-weight: 500; }

@media (max-width: 900px) {
  .health-grid--even { grid-template-columns: 1fr; }
}

/* News cover images (publisher's own og/feed image, hot-linked). Headline +
   source only — no article excerpt. Glyph look stays as the no-image fallback. */
.news-lead.has-img { background: #0b1220; }
.news-lead.has-img::before { background: linear-gradient(180deg, rgb(5 10 20 / .05) 20%, rgb(5 10 20 / .6) 55%, rgb(5 10 20 / .94)); }
.news-lead.has-img .news-lead__glyph { display: none; }
.news-lead .news-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.today__img .news-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
