/* Topic pages: /topics (all topics) and /topics/<topic>. Light and dark themes use the site variables. */

/* Hero */
.tp-hero .tp-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 16px;
  background: rgba(63,211,191,.14); color: #3FD3BF; font-size: 1.5rem; }
.tp-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.tp-hero-stats li { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); font-size: .82rem; }
.tp-hero-stats strong { color: #fff; font-size: 1rem; font-weight: 600; }
.tp-hero-stats a { color: inherit; text-decoration: none; }
.tp-hero-stats a:hover strong { color: #3FD3BF; }
.tp-search { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-top: 22px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.7); }
.tp-search input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: .95rem; }
.tp-search input::placeholder { color: rgba(255,255,255,.55); }

/* Section headings */
.tp-sec { margin: 0 0 44px; }
.tp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tp-sec-head h2 { margin: 0; font-size: 1.3rem; font-weight: 500; color: var(--navy); }
.tp-sec-head p { margin: 4px 0 0; color: var(--text-muted); font-size: .88rem; }
.tp-sec-head p a { color: var(--teal); text-decoration: underline; }   /* a link inside a sentence shows by more than its colour */
.tp-sec-head .card-link { white-space: nowrap; }

/* Category mix bar */
.tp-mix { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: var(--line); margin: 6px 0 10px; }
.tp-mix span { display: block; height: 100%; }
.tp-mix-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--text-muted); }
.tp-mix-key i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.tp-c0 { background: #0D9B8A; } .tp-c1 { background: #1A5FA8; } .tp-c2 { background: #7C5CC4; } .tp-c3 { background: #E0A800; } .tp-c4 { background: #D9534F; }

/* Card grids */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tp-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.tp-card:hover, a.tp-card:focus-visible { border-color: var(--teal); box-shadow: 0 12px 28px rgba(11,31,58,.08); transform: translateY(-2px); color: var(--text); }
.tp-card h3 { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
.tp-card p { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--text-muted); }
.tp-card .tp-go { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--teal); }
.tp-tag { align-self: flex-start; padding: 3px 9px; border-radius: 6px; font-size: .72rem; font-weight: 600; color: #fff; }
.tp-spark { display: block; width: 100%; height: 46px; margin: 2px 0; }
.tp-spark-line { fill: none; stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tp-spark-fill { fill: rgba(13,155,138,.1); stroke: none; }
.tp-story { padding: 0; overflow: hidden; }
.tp-story img, .tp-story .tp-noimg { display: block; width: 100%; height: 140px; object-fit: cover; }
.tp-story .tp-noimg { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.tp-story > div { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }

/* Companies */
.tp-cos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tp-co { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--text); text-decoration: none; font-size: .86rem; }
.tp-co:hover, .tp-co:focus-visible { border-color: var(--teal); color: var(--text); }
.tp-co img, .tp-co .tp-co-ic { flex: none; width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.tp-co .tp-co-ic { display: grid; place-items: center; color: var(--gray-400); font-size: .8rem; }
.tp-co b { display: block; font-weight: 600; line-height: 1.25; }
.tp-co small { color: var(--text-muted); font-size: .74rem; }

/* Chips: markets by category, related topics */
.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tp-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--navy); font-size: .82rem; text-decoration: none; }
.tp-chips a:hover, .tp-chips a:focus-visible { border-color: var(--teal); color: var(--teal); }
.tp-chips i { color: var(--teal); }
.tp-cat-name { margin: 0 0 8px; font-size: .78rem; font-weight: 600; color: var(--text-muted); }

/* CTA band */
.tp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: rgba(255,255,255,.8); }
.tp-cta h2 { margin: 0 0 4px; color: #fff; font-size: 1.2rem; font-weight: 500; }
.tp-cta p { margin: 0; font-size: .9rem; }
.tp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* All-topics page */
.tp-feature { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 44px; }
.tp-feature .tp-card { background: linear-gradient(160deg, #fff 60%, rgba(13,155,138,.07)); }
.tp-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(13,155,138,.1); color: var(--teal); font-size: 1.05rem; }
.tp-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; font-size: .78rem; color: var(--text-muted); }
.tp-counts b { color: var(--navy); font-weight: 600; }
.tp-group { margin: 0 0 34px; }
.tp-group h2 { margin: 0 0 14px; font-size: 1.1rem; font-weight: 500; color: var(--navy); }
.tp-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tp-mini a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  color: var(--text); text-decoration: none; }
.tp-mini a:hover, .tp-mini a:focus-visible { border-color: var(--teal); color: var(--text); }
.tp-mini strong { display: block; font-size: .92rem; font-weight: 600; color: var(--navy); }
.tp-mini [hidden], .tp-group[hidden] { display: none; }
.tp-empty { color: var(--text-muted); }

/* Dark theme */
html[data-theme="dark"] .tp-card, html[data-theme="dark"] .tp-co, html[data-theme="dark"] .tp-chips a, html[data-theme="dark"] .tp-mini a { background: #0F1A2B; }
html[data-theme="dark"] .tp-feature .tp-card { background: linear-gradient(160deg, #0F1A2B 60%, rgba(13,155,138,.14)); }
html[data-theme="dark"] .tp-card h3, html[data-theme="dark"] .tp-sec-head h2, html[data-theme="dark"] .tp-group h2,
html[data-theme="dark"] .tp-mini strong, html[data-theme="dark"] .tp-chips a, html[data-theme="dark"] .tp-counts b { color: var(--text); }

@media (max-width: 700px) { .tp-sec-head { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .tp-card { transition: none; transform: none !important; } }

/* The search sits on the dark hero in both themes: no box of its own (the dark theme gives inputs a dark fill) */
.tp-search input, html[data-theme="dark"] .tp-search input { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0; -webkit-appearance: none; appearance: none; }
.tp-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.tp-search:focus-within { border-color: #3FD3BF; box-shadow: 0 0 0 3px rgba(63,211,191,.18); }
/* The bottom band stays dark in both themes (keep-dark keeps --navy dark) */
.tp-cta { background: linear-gradient(135deg, #0B1F3A, #13305A); }
.tp-cta h2 { color: #fff; } .tp-cta p { color: rgba(255,255,255,.78); }
.tp-cta .btn-teal { background: var(--btn-teal, #2A8A80); border-color: var(--btn-teal, #2A8A80); color: #fff; }
.tp-cta .btn-teal:hover { background: var(--btn-teal-hover, #237A71); border-color: var(--btn-teal-hover, #237A71); }

/* ── Market statistics list and Top markets (pages/market-stats.php, pages/top-markets.php) ── */
.ms-lock { display: flex; gap: 10px; align-items: center; margin: 0 0 32px; padding: 12px 16px; border-radius: 12px; background: rgba(13,155,138,.08); color: var(--text-muted); font-size: .88rem; }
.ms-lock i { color: var(--teal); }
.ms-caticon { width: 34px; height: 34px; font-size: .9rem; color: #fff; vertical-align: -9px; margin-right: 6px; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ms-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ms-card:hover, .ms-card:focus-visible { border-color: var(--teal); box-shadow: 0 8px 20px rgba(11,31,58,.07); color: var(--text); }
.ms-card strong { font-size: .93rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
.ms-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .76rem; color: var(--text-muted); }
.ms-meta i { color: var(--teal); margin-right: 2px; }
.ms-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ms-tags span { padding: 2px 8px; border-radius: 999px; background: rgba(13,155,138,.1); color: var(--teal); font-size: .7rem; font-weight: 600; }
.ms-card[hidden] { display: none; }
.top-cats { display: grid; gap: 18px; margin-bottom: 36px; }
.top-cat { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.top-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.top-cat-head h2 { margin: 0; font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.top-cat-head p { margin: 2px 0 0; font-size: .82rem; color: var(--text-muted); }
.top-cat-head .card-link { margin-left: auto; white-space: nowrap; }
.top-places { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.top-places a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--off-white, #F7F9FC); color: var(--navy); font-size: .82rem; text-decoration: none; }
.top-places a:hover, .top-places a:focus-visible { border-color: var(--teal); color: var(--teal); }
.top-places b { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .72rem; font-weight: 600; text-align: center; color: var(--text-muted); }
html[data-theme="dark"] .ms-card, html[data-theme="dark"] .top-cat { background: #0F1A2B; }
html[data-theme="dark"] .top-places a { background: #0B1424; color: var(--text); }
html[data-theme="dark"] .top-places b { background: #0F1A2B; }
html[data-theme="dark"] .ms-card strong, html[data-theme="dark"] .top-cat-head h2 { color: var(--text); }
@media (max-width: 700px) { .top-cat-head { flex-wrap: wrap; } .top-cat-head .card-link { margin-left: 0; } }
/* Category icon squares: solid category colour with a white icon (beats .tp-icon's pale fill) */
.tp-icon.ms-caticon.tp-c0 { background: #0D9B8A; } .tp-icon.ms-caticon.tp-c1 { background: #1A5FA8; } .tp-icon.ms-caticon.tp-c2 { background: #7C5CC4; }
.tp-icon.ms-caticon.tp-c3 { background: #E0A800; } .tp-icon.ms-caticon.tp-c4 { background: #D9534F; }
.tp-icon.ms-caticon { color: #fff; flex: none; }

/* ── Free data tools by topic, benchmarks and the Sources page ─────────────── */
.td-table, .src-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.td-table th, .td-table td, .src-table th, .src-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.td-table thead th, .src-table thead th { background: var(--off-white); color: var(--text-muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.td-table tbody th, .src-table tbody th { font-weight: 600; }
.td-table tbody tr:last-child th, .td-table tbody tr:last-child td, .src-table tbody tr:last-child th, .src-table tbody tr:last-child td { border-bottom: 0; }
.td-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-table a, .src-table a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.td-table a:hover, .td-table a:focus-visible, .src-table a:hover, .src-table a:focus-visible { color: var(--teal); text-decoration-color: currentColor; }
.td-table tr.td-me th, .td-table tr.td-me td { background: var(--gray-100); }
.src-table small { display: block; margin-top: 2px; font-weight: 400; color: var(--text-muted); font-size: .76rem; }
.src-where { display: inline-block; margin: 0 8px 4px 0; }
.src-rules { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.td-form { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.td-form label { font-weight: 600; font-size: .88rem; }
.td-form select { min-width: 220px; padding: 8px 10px; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); color: var(--text); font: inherit; }
.td-list { max-width: 900px; }
.td-warn { margin: 8px 0 0; }
.td-note { background: var(--white); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 16px 18px; }
.td-note h2 { margin: 0 0 8px; font-size: 1.15rem; }
.td-note p { margin: 0 0 10px; line-height: 1.6; }
.td-note .td-by { font-size: .8rem; color: var(--text-muted); margin: 8px 0 0; }
.td-cite-box { background: var(--off-white); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .86rem; }
.td-cite-box textarea { width: 100%; min-height: 70px; margin-top: 6px; font: .8rem/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 8px; border: 1px solid var(--gray-200); border-radius: 6px; background: var(--white); color: var(--text); }
.bm-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--teal); vertical-align: middle; margin-right: 6px; }
@media (max-width: 640px) {
  .td-table th, .td-table td, .src-table th, .src-table td { padding: 8px 9px; }
  .td-form select { min-width: 0; width: 100%; }
}

/* Public data modules on a topic page (td_modules_html in includes/topic-data.php) */
.td-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.td-mod { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 18px; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 12px; }
.td-mod h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.td-mod h3 i { color: var(--teal); }
.td-mod h3 a { color: var(--text); text-decoration: none; }
.td-mod h3 a:hover, .td-mod h3 a:focus-visible { color: var(--teal); }
.td-mod-stat { margin: 0; font-weight: 600; font-size: .9rem; line-height: 1.4; }
.td-mod-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .85rem; line-height: 1.4; }
.td-mod-list a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.td-mod-list a:hover, .td-mod-list a:focus-visible { color: var(--teal); text-decoration-color: currentColor; }
.td-mod-list small { display: block; color: var(--text-muted); font-size: .75rem; }
.td-mod-cite .cite { margin-top: 0; }
.td-mod-more { margin-top: auto; font-size: .84rem; font-weight: 600; color: var(--teal); }
.td-mod-more:focus-visible, .td-mod h3 a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 640px) { .td-mods { grid-template-columns: 1fr; } }

/* ── Public data views (includes/pdv.php): bars, dated records, big numbers, tool tabs, find box ───────────── */
.pdv-card { background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 16px; }

/* Ranked bars */
.pdv-bars { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pdv-bars li { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(80px, 1fr) minmax(70px, auto) 30px; align-items: center; gap: 6px 14px;
  padding: 11px 16px; border-bottom: 1px solid var(--line); }
.pdv-bars li:last-child { border-bottom: 0; }
.pdv-bars li[hidden] { display: none; }
.pdv-bars li:hover { background: var(--off-white); }
.pdv-bar-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
.pdv-bar-name a { color: var(--navy); text-decoration: none; }
.pdv-bar-name a:hover, .pdv-bar-name a:focus-visible { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.pdv-bar-name small { flex-basis: 100%; font-size: .76rem; font-weight: 400; color: var(--text-muted); }
.pdv-rank { display: inline-grid; place-items: center; flex: none; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: var(--gray-100); color: var(--text-muted); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pdv-bars li:nth-child(-n+3) .pdv-rank { background: rgba(13,155,138,.14); color: var(--teal); }
.pdv-bar-name .flag { flex: none; border-radius: 2px; }
.pdv-bar-track { display: block; height: 10px; border-radius: 999px; background: var(--gray-100); overflow: hidden; }
.pdv-bar-track span { display: block; height: 100%; min-width: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.pdv-bar-val { text-align: right; font-size: .9rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pdv-bar-ext { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--text-muted); font-size: .74rem; }
a.pdv-bar-ext:hover, a.pdv-bar-ext:focus-visible { background: rgba(13,155,138,.12); color: var(--teal); }
/* Tick boxes on a ranked list (pdv_bars $pick), and the bar under it that sends the ticked rows on (a form around
   both). The bar stays at the bottom of the screen while the list scrolls by. */
.pdv-pick-box { flex: none; width: 18px; height: 18px; margin: 0 2px 0 0; accent-color: var(--teal); cursor: pointer; }
.pdv-pick-box:disabled { cursor: default; opacity: .45; }
.pdv-pick-box:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pdv-bars-pick li:has(.pdv-pick-box:checked) { background: color-mix(in srgb, var(--teal) 8%, var(--white)); }
.pdv-pick-bar { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 16px; margin-top: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(11,31,58,.12); }
.pdv-pick-bar p { margin: 0; font-size: .92rem; color: var(--text); }
.pdv-pick-bar [data-pick-count] { font-weight: 600; }
.pdv-pick-bar .btn:disabled { opacity: .55; cursor: default; }
html[data-theme="dark"] .pdv-pick-bar { box-shadow: 0 10px 28px rgba(0,0,0,.45); }

/* Dated records */
.pdv-rows { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pdv-rows li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pdv-rows li:last-child { border-bottom: 0; }
.pdv-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 12px;
  background: rgba(13,155,138,.09); color: var(--teal); font-size: .7rem; font-weight: 600; line-height: 1.1; text-transform: uppercase; }
.pdv-date b { font-size: 1.15rem; font-weight: 700; }
.pdv-date small { font-size: .66rem; font-weight: 500; color: var(--text-muted); }
.pdv-date-none { font-size: 1rem; }
.pdv-row-body { min-width: 0; }
.pdv-row-body h3 { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--navy); overflow-wrap: anywhere; }
.pdv-row-body h3 a { color: var(--navy); text-decoration: none; }
.pdv-row-body h3 a:hover, .pdv-row-body h3 a:focus-visible { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.pdv-row-body p { margin: 4px 0 0; font-size: .85rem; line-height: 1.5; color: var(--text-muted); }
.pdv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pdv-tags span { padding: 2px 9px; border-radius: 999px; background: var(--gray-100); color: var(--text-muted); font-size: .72rem; font-weight: 600; }

/* Big numbers */
.pdv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.pdv-stats a, .pdv-stats div { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%;
  padding: 16px 18px; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.pdv-stats a:hover, .pdv-stats a:focus-visible { border-color: var(--teal); box-shadow: 0 10px 24px rgba(11,31,58,.07); }
.pdv-stats i { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(13,155,138,.12); color: var(--teal); font-size: .95rem; }
.pdv-stats strong { font-size: 1.45rem; font-weight: 700; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pdv-stats span { font-size: .84rem; line-height: 1.35; color: var(--text-muted); }

/* Tool tabs on a topic's data pages */
.pdv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 2px; }
@media (max-width: 640px) { .pdv-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } }
.pdv-tabs a { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--navy); font-size: .87rem; font-weight: 600; text-decoration: none; }
.pdv-tabs a i { color: var(--teal); font-size: .82rem; }
.pdv-tabs a:hover, .pdv-tabs a:focus-visible { border-color: var(--teal); color: var(--teal); }
.pdv-tabs a.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.pdv-tabs a.on i { color: #fff; }

/* Find box on light pages */
.pdv-find { display: flex; align-items: center; gap: 10px; max-width: 440px; margin: 0 0 18px; padding: 10px 16px; border: 1px solid var(--gray-200); border-radius: 999px;
  background: var(--white); color: var(--text-muted); }
.pdv-find input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; padding: 0; color: var(--text); font: inherit; font-size: .95rem; }
.pdv-find:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,155,138,.15); }
.pdv-empty { margin: 8px 0 0; color: var(--text-muted); }
[data-group][hidden], [data-name][hidden], .pdv-empty[hidden], [data-pdv-hide-on-find][hidden] { display: none !important; }
/* Companies page: the find box and its button in the hero */
.co-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 580px; margin-top: 22px; }
.co-search .tp-search { flex: 1 1 280px; max-width: none; margin-top: 0; }
.co-search .btn { padding: 11px 22px; border-radius: 999px; background: var(--btn-teal, #2A8A80); border: 1px solid var(--btn-teal, #2A8A80); color: #fff; font-weight: 600; }
.co-search .btn:hover, .co-search .btn:focus-visible { background: var(--btn-teal-hover, #237A71); border-color: var(--btn-teal-hover, #237A71); color: #fff; }

/* A tool's topics, and benchmark measures, as cards */
.pdv-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pdv-topic { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 14px 16px; background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pdv-topic:hover, .pdv-topic:focus-visible { border-color: var(--teal); box-shadow: 0 12px 28px rgba(11,31,58,.08); transform: translateY(-2px); color: var(--text); }
.pdv-topic .tp-icon { grid-row: 1 / 3; }
.pdv-topic strong { font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.pdv-topic small { font-size: .8rem; color: var(--text-muted); }
.pdv-topic .pdv-bar-track { grid-column: 1 / -1; height: 6px; margin-top: 10px; }
.pdv-measure { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--white); color: var(--text); border: 1px solid var(--line);
  border-radius: 16px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pdv-measure:hover, .pdv-measure:focus-within { border-color: var(--teal); box-shadow: 0 12px 28px rgba(11,31,58,.08); transform: translateY(-2px); color: var(--text); }
.pdv-measure h3 { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.pdv-measure h3 a { color: var(--navy); text-decoration: none; }
.pdv-measure h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.pdv-measure h3 a:focus-visible { outline: none; }
.pdv-measure:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.pdv-measure .cite { position: relative; z-index: 1; margin: 0; }
.pdv-measures { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pdv-measure .pdv-world { font-size: .84rem; color: var(--text-muted); }
.pdv-measure .pdv-world b { color: var(--teal); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pdv-badge { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: rgba(26,95,168,.1); color: var(--blue); font-size: .72rem; font-weight: 700; }
.pdv-go { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--teal); }

/* Region filter on a benchmark */
.pdv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pdv-filters button { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.pdv-filters button:hover, .pdv-filters button:focus-visible { border-color: var(--teal); color: var(--teal); }
.pdv-filters button[aria-pressed="true"] { background: var(--btn-teal); border-color: var(--btn-teal); color: #fff; }

/* Sources as cards */
.src-groups { display: grid; gap: 28px; }
.src-group h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; color: var(--navy); }
.src-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.src-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 100px; }
.src-card:target { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,155,138,.15); }
.src-card h4 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.src-card h4 a { color: var(--navy); text-decoration: none; }
.src-card h4 a:hover, .src-card h4 a:focus-visible { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.src-card h4 small { display: block; margin-top: 2px; font-size: .78rem; font-weight: 400; color: var(--text-muted); }
.src-card p { margin: 0; font-size: .87rem; line-height: 1.55; color: var(--text); }
.src-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.src-meta a, .src-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; text-decoration: none; }
.src-licence { background: rgba(13,155,138,.1); color: var(--teal); }
.src-fresh { background: var(--gray-100); color: var(--text-muted); }
.src-on { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--text-muted); }
.src-on a { display: inline-block; margin: 4px 10px 0 0; color: var(--teal); font-weight: 600; text-decoration: none; }
.src-on a:hover, .src-on a:focus-visible { text-decoration: underline; }
.src-rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.src-rule-grid li { display: flex; gap: 12px; padding: 14px 16px; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.src-rule-grid i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(13,155,138,.12); color: var(--teal); font-size: .85rem; }

/* Topic page data modules: a clearer head and number */
.td-mod { border-radius: 16px; padding: 18px 20px; }
.td-mod h3 { font-size: 1rem; }
.td-mod h3 i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(13,155,138,.12); font-size: .85rem; }
.td-mod-stat { padding: 10px 12px; border-radius: 10px; background: var(--off-white); color: var(--navy); font-size: .92rem; }

/* Company page: Where they show up and their markets side by side, then their reports */
.co-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin: 26px 0 44px; }
.co-panel { display: flex; flex-direction: column; min-width: 0; padding: 20px 22px; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 18px; }
.co-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-panel h2 { margin: 0; font-size: 1.2rem; font-weight: 500; color: var(--navy); }
.co-count { padding: 2px 10px; border-radius: 999px; background: rgba(13,155,138,.12); color: var(--teal); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-panel-sub { margin: 4px 0 14px; font-size: .86rem; color: var(--text-muted); }
.co-panel h3 { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.co-panel h3 i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.co-panel h3 span { margin-left: auto; font-variant-numeric: tabular-nums; }
.co-panel .tp-mix { height: 14px; }
.co-panel .geo-chips { margin-top: 4px; }
.co-mk-scroll { flex: 1; max-height: 440px; margin-right: -8px; padding-right: 8px; overflow-y: auto; scrollbar-width: thin; }
.co-mk-scroll .tp-chips { margin-bottom: 4px; }
.co-mk-scroll .tp-chips a { background: var(--off-white); font-size: .8rem; }
.co-mk-scroll .tp-chips a:hover, .co-mk-scroll .tp-chips a:focus-visible { background: var(--white); }
.co-mk-scroll .co-mk-group:first-child h3 { margin-top: 0; }
.co-panel .pdv-find { max-width: none; margin-bottom: 12px; padding: 8px 14px; }
.co-reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.co-rep { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .15s, box-shadow .15s; }
.co-rep:hover, .co-rep:focus-within { border-color: var(--teal); box-shadow: 0 12px 28px rgba(11,31,58,.08); }
.co-rep h3 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.co-rep h3 a { color: var(--navy); text-decoration: none; }
.co-rep h3 a::after { content: ''; position: absolute; inset: 0; }
.co-rep { position: relative; }
.co-rep h3 a:focus-visible { outline: none; }
.co-rep:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.co-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: .76rem; color: var(--text-muted); }
.co-flags .flag { border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.co-flags .flag-globe { color: var(--teal); font-size: .9rem; }
.co-flags b { margin-left: 2px; font-weight: 600; }
.co-rep-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-muted); }
.co-rep-foot .tp-go { color: var(--teal); font-weight: 600; }
.co-rep-foot a.co-rep-places { position: relative; z-index: 1; color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.co-rep-foot a.co-rep-places:hover, .co-rep-foot a.co-rep-places:focus-visible { color: var(--teal); }

@media (max-width: 900px) { .co-two { grid-template-columns: 1fr; } .co-mk-scroll { max-height: 360px; } }
@media (max-width: 640px) {
  .pdv-bars li { grid-template-columns: minmax(0, 1fr) auto 30px; padding: 11px 12px; }
  .pdv-bar-name { grid-column: 1 / -1; }
  .pdv-rows li { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .pdv-date { width: 48px; height: 52px; }
  .pdv-stats { grid-template-columns: 1fr 1fr; }
  .pdv-stats a, .pdv-stats div { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .pdv-stats i { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pdv-topic, .pdv-measure, .co-rep { transition: none; transform: none !important; } }

/* ── Public data panel (country, company and topic pages) ──
   Everything from public sources (WHO, World Bank, ClinicalTrials.gov, FDA, …) sits in one tinted panel with a
   "Public data" tag, so it never reads as Acuitas research. Our own reports, markets and companies stay outside it. */
.pub-zone { margin: 44px 0; padding: 26px 28px 8px; border-radius: 22px; border: 1px solid rgba(13,155,138,.30);
  background: linear-gradient(180deg, rgba(13,155,138,.07), rgba(13,155,138,.02) 240px); }
.pub-zone > .tp-sec:last-child, .pub-zone > .cite:last-child { margin-bottom: 18px; }
.pub-zone .tp-sec { margin-bottom: 28px; }
.zone-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 13px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; letter-spacing: .01em; }
.zone-tag.zone-pub { background: rgba(13,155,138,.12); color: #0A7A6B; border: 1px solid rgba(13,155,138,.38); }
.zone-tag i { font-size: .8rem; }
.pub-zone-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin: 0 0 26px; }
.pub-zone-cols.one { grid-template-columns: 1fr; }
.pub-zone-cols > * { margin: 0; }
.pub-zone-h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 500; color: var(--navy); }
html[data-theme="dark"] .pub-zone { border-color: rgba(63,211,191,.25); background: linear-gradient(180deg, rgba(63,211,191,.06), rgba(63,211,191,.015) 240px); }
html[data-theme="dark"] .zone-tag.zone-pub { color: #3FD3BF; background: rgba(63,211,191,.10); border-color: rgba(63,211,191,.35); }
html[data-theme="dark"] .pub-zone-h3 { color: var(--text); }
@media (max-width: 900px) { .pub-zone { padding: 20px 16px 4px; } .pub-zone-cols { grid-template-columns: 1fr; } }

/* ── Free public health data landing page (pages/public-health-data.php): every free data page in one place ── */
.pdh .tp-sec { scroll-margin-top: 90px; }
.pdh-h3 { margin: 28px 0 12px; font-size: 1rem; font-weight: 600; color: var(--navy); }
.pdh .tp-cat-name { margin: 0 0 8px; font-size: .9rem; color: var(--text-muted); }
.pdh .tp-chips a { font-size: .88rem; }
.pdh .tp-chips .flag { width: 18px; height: 13.5px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.pdh .tp-chips .flag-globe { color: var(--teal); }
.pdh .tp-counts { font-size: .86rem; }
.pdh-row { margin: 0 0 8px; }
/* Dashboard measures: one card per group, in balanced columns */
.pdh-groups { columns: 3 280px; column-gap: 16px; }
.pdh-group { break-inside: avoid; margin: 0 0 16px; padding: 16px 18px; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 16px; }
.pdh-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1rem; font-weight: 600; color: var(--navy); }
.pdh-group h3 .tp-icon { width: 32px; height: 32px; border-radius: 10px; font-size: .85rem; }
.pdh-group h3 small { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: rgba(13,155,138,.12); color: var(--teal); font-size: .8rem; font-weight: 700; }
.pdh-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pdh-links li { font-size: .9rem; line-height: 1.4; }
.pdh-links a { display: inline-block; padding: 3px 0; color: var(--text); text-decoration: none; }
.pdh-links a:hover, .pdh-links a:focus-visible { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.pdh-us { padding: 1px 6px; border-radius: 6px; background: rgba(26,95,168,.1); color: var(--blue); font-size: .76rem; font-weight: 700; }
/* Company and report pages side by side; the company card has a search box */
.pdh-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pdh-find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.pdh-find .pdv-find { flex: 1 1 220px; max-width: none; margin: 0; }
.pdh-find .btn { padding: 10px 20px; border-radius: 999px; background: var(--btn-teal, #2A8A80); border: 1px solid var(--btn-teal, #2A8A80); color: #fff; font-weight: 600; }
.pdh-find .btn:hover, .pdh-find .btn:focus-visible { background: var(--btn-teal-hover, #237A71); border-color: var(--btn-teal-hover, #237A71); color: #fff; }
/* Grids: the six tools in threes; short rows (3 world figures, 3 rules, 3 stories) fill the width */
.pdh-grid3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.pdh-fit { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pdh-rules { margin-bottom: 22px; }
.pdh .tp-cta { margin-top: 8px; }
html[data-theme="dark"] .pdh-h3, html[data-theme="dark"] .pdh-group h3 { color: var(--text); }
@media (max-width: 640px) { .pdh-groups { columns: 1; } }

/* ── Home page: free data band (includes/free-data-band.php), right after the dashboard band ── */
.band-pd { background: var(--off-white); }
.band-pd .tp-counts { font-size: .86rem; }
.pdb-more { margin: 16px 0 0; padding: 0; list-style: none; }
.pdb-more li { display: flex; }
.pdb-more .pdv-topic { flex: 1; align-content: center; }
.pdb-more .pdv-topic small { font-size: .86rem; }
/* Phones: the six tools as small cards, two a row (name and topic count; the tool page says the rest) */
@media (max-width: 640px) {
  .band-pd .pdh-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .band-pd .pdh-grid3 .tp-card { padding: 14px; gap: 6px; }
  .band-pd .pdh-grid3 .tp-card h3 { font-size: .92rem; }
  .band-pd .pdh-grid3 .tp-card p, .band-pd .pdh-grid3 .tp-go, .band-pd .pdh-grid3 .tp-counts li + li { display: none; }
}
/* "On this page": a bar under the hero that follows you down the page and marks the section you are reading (js/section-nav.js; the health profiles and /public-health-data use it).
   --hp-nav-top is the site menu's height, set by that script. */
.hp-nav { position: sticky; top: var(--hp-nav-top, 69px); z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 6px 14px -12px rgba(0, 0, 0, .35); }
.hp-nav .container { display: flex; align-items: center; gap: 14px; }
.hp-nav-label { flex: none; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.hp-nav ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.hp-nav ul::-webkit-scrollbar { display: none; }
.hp-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid transparent; border-radius: 999px; white-space: nowrap; font-size: .86rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.hp-nav a i { color: var(--teal); font-size: .8rem; }
.hp-nav a:hover { color: var(--teal); border-color: var(--line); }
.hp-nav a[aria-current="location"] { color: var(--text); background: color-mix(in srgb, var(--teal) 12%, transparent); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.hp-nav a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* When the links do not fit: the hidden ends fade out and a round button scrolls the bar (.has-more, .at-start and .at-end are set by the script) */
.hp-nav-more { display: none; flex: none; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--teal); cursor: pointer; }
.hp-nav-more i { transition: transform .2s ease; }
.hp-nav.has-more .hp-nav-more { display: grid; }
.hp-nav.has-more.at-end .hp-nav-more i { transform: rotate(180deg); }
.hp-nav-more:hover, .hp-nav-more:focus-visible { border-color: var(--teal); }
.hp-nav.has-more ul { --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
.hp-nav.has-more:not(.at-start) ul { --fl: 40px; }
.hp-nav.has-more:not(.at-end) ul { --fr: 48px; }
/* A section opened from the bar stops below the menu and the bar, not under them */
.tp-sec[id] { scroll-margin-top: calc(var(--hp-nav-top, 69px) + var(--hp-nav-h, 52px) + 12px); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 720px) {
  .hp-nav-label { display: none; }
  .hp-nav ul { padding: 6px 0; }
}

/* /public-health-data, Health profiles: jump box, region links, a small line on each country chip, "Back to top" (js/country-jump.js, js/section-nav.js) */
.pdh-jump { position: relative; margin-bottom: 8px; }
.pdh-regions { margin-bottom: 6px; }
.pdh-regions small { color: var(--text-muted); font-size: .82rem; }
.tp-cat-name small { margin-left: 6px; font-size: .9rem; font-weight: 500; }
.pdh-note { margin: 0 0 14px; font-size: .9rem; color: var(--text-muted); }
.pdh-spark { width: 44px; height: 16px; flex: none; }
.pdh-spark-line { fill: none; stroke: var(--teal); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.pdh-spark-fill { fill: rgba(13,155,138,.12); stroke: none; }
.cj-pop { position: absolute; z-index: 30; top: 52px; left: 0; width: min(440px, 100%); padding: 6px; border-radius: 14px; background: var(--white); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(11,31,58,.20); }
.cj-pop[hidden] { display: none; }
.cj-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.cj-item:hover, .cj-item.on { background: var(--gray-100); color: var(--text); }
.cj-none { margin: 0; padding: 8px 10px; color: var(--text-muted); }
.hp-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white);
  color: var(--teal); box-shadow: 0 6px 18px rgba(11,31,58,.18); cursor: pointer; }
.hp-top[hidden] { display: none; }
.hp-top:hover, .hp-top:focus-visible { border-color: var(--teal); }
