/* The Sector Debrief audience: paper, ink, and one accent per platform. */

:root {
  --paper: #FAF6EA;
  --card: #FFFDF7;
  --cream: #EFE8D6;
  --cream-deep: #E5DCC3;

  --ink: #1A1614;
  --ink-soft: #2C2622;
  --ink-mute: #524A42;
  --ink-faint: #62594F;

  --line: #E1DACB;
  --line-2: #CEC4B1;
  --chart-grid: #E8E1D3;
  --track: #EDE7D9;
  --hover: #F3EEDF;

  --cobalt: #2C5BAA;
  --crimson: #B83A2A;
  --forest: #2A4530;
  --accent: var(--cobalt);

  --display: 'Fraunces', Georgia, serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 8px;
  --gap: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.45 var(--text);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums tabular-nums;
}

[hidden] {
  display: none !important;
}

.vh {
  position: absolute !important;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  display: block;
}

.wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header and platform navigation */

.top {
  padding: 28px 0 0;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  color: var(--ink);
  font: 500 30px/1.1 var(--display);
  font-variation-settings: 'opsz' 48;
  letter-spacing: -0.025em;
}

.brand p {
  margin: 6px 0 0;
  color: var(--ink-mute);
  font: 400 13.5px/1.4 var(--text);
}

.tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid var(--line-2);
}

.tab {
  --accent: var(--cobalt);
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 14px 18px 15px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
  background: transparent;
  color: var(--ink-mute);
  font: 500 14px/1.2 var(--text);
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
}

.tab[data-view="video"] {
  --accent: var(--cobalt);
}

.tab[data-view="audio"] {
  --accent: var(--crimson);
}

.tab[data-view="website"] {
  --accent: var(--forest);
}

.tab svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.tab[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Panels and summary numbers */

.panel {
  display: none;
  padding: 28px 0 64px;
}

.panel.active {
  display: block;
}

.panel[data-view="video"] {
  --accent: var(--cobalt);
}

.panel[data-view="audio"] {
  --accent: var(--crimson);
}

.panel[data-view="website"] {
  --accent: var(--forest);
}

.summary {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.kpi {
  min-width: 220px;
  max-width: 100%;
  padding: 18px 24px 18px 20px;
  border: 1px solid var(--line);
  border-top-width: 2px;
  border-radius: var(--r);
  background: var(--card);
}

.summary > .kpi:first-child {
  border-top-color: var(--accent);
}

.kpi .l {
  margin: 0 0 10px;
  color: var(--ink-mute);
  font: 500 11.5px/1.4 var(--text);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kpi .v {
  margin: 0;
  color: var(--ink);
  font: 500 46px/1.04 var(--display);
  font-variation-settings: 'opsz' 72;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.035em;
}

.kpi .s {
  margin: 10px 0 0;
  color: var(--ink-faint);
  font: 400 13px/1.4 var(--text);
}

/* Card layout */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.card {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.c12 { grid-column: span 12; }
.c8  { grid-column: span 8; }
.c7  { grid-column: span 7; }
.c6  { grid-column: span 6; }
.c5  { grid-column: span 5; }
.c4  { grid-column: span 4; }
.c3  { grid-column: span 3; }

.col {
  display: grid;
  align-content: start;
  gap: var(--gap);
  min-width: 0;
}

.card h2 {
  margin: 0;
  color: var(--ink);
  font: 600 16px/1.35 var(--text);
  letter-spacing: -0.015em;
}

.card .p {
  margin: 5px 0 18px;
  color: var(--ink-mute);
  font: 400 13px/1.45 var(--text);
}

.card .p b,
.foot b {
  color: var(--ink-soft);
  font-weight: 500;
}

.foot {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font: 400 13px/1.45 var(--text);
}

/* Lists: consistent baselines, stable values, and quiet tracks */

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 44%) 52px;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  padding: 2px 0;
  border-radius: 3px;
  transition: background-color 120ms ease;
}

.list .n {
  min-width: 0;
  color: var(--ink-soft);
  font: 400 14px/1.35 var(--text);
  overflow-wrap: break-word;
}

.list .t {
  position: relative;
  height: 5px;
  border-radius: 2px;
  background: var(--track);
}

.list .f {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w);
  border-radius: 2px;
  background: var(--accent);
}

.list .f.nz {
  min-width: 3px;
}

.list .v {
  color: var(--ink);
  font: 500 13.5px/1.2 var(--text);
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.list .muted .n,
.list .muted .v {
  color: var(--ink-faint);
}

.list .muted .f {
  background: var(--cream-deep);
}

.list.small li {
  min-height: 28px;
}

.list.tight li {
  grid-template-columns: minmax(0, 1fr) minmax(54px, 29%) 50px;
  gap: 10px;
}

.list.cols {
  columns: 2;
  column-gap: 24px;
}

.list.cols li {
  grid-template-columns: minmax(0, 1fr) minmax(52px, 29%) 52px;
  gap: 10px;
  break-inside: avoid;
}

.list li.sep {
  height: 12px;
  min-height: 0;
  padding: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

/* SVG charts */

.chart {
  display: block;
  width: 100%;
}

/* These SVG classes also occur on HTML layout elements. */
.chart .grid,
.chart .col {
  display: inline;
}

.chart text {
  fill: var(--ink-faint);
  font-family: var(--text);
  font-size: 13px;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
}

.chart .grid {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.chart .base {
  stroke: var(--line-2);
  stroke-width: 1;
}

.chart .area {
  fill: var(--accent);
  fill-opacity: 0.1;
}

.chart .area.b {
  fill: var(--ink-mute);
  fill-opacity: 0.08;
}

.chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart .line.b {
  stroke: var(--ink-mute);
  stroke-width: 1.5;
}

.chart .col {
  fill: var(--accent);
}

.chart .col.part {
  fill: var(--accent);
  fill-opacity: 0.4;
}

.chart .val {
  fill: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.chart .note {
  fill: var(--ink-faint);
  font-size: 11px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
  color: var(--ink-mute);
  font: 400 13.5px/1.4 var(--text);
}

.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}

.legend b {
  color: var(--ink);
  font-weight: 500;
}

/* Expandable source tables */

details.tbl {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

details.tbl summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  border-radius: 2px;
  color: var(--ink-mute);
  font: 500 12.5px/1.4 var(--text);
  list-style: none;
  cursor: pointer;
}

details.tbl summary::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--ink-faint);
  transition: transform 140ms ease;
}

details.tbl[open] summary::before {
  transform: rotate(90deg);
}

details.tbl summary::-webkit-details-marker {
  display: none;
}

details.tbl summary:focus-visible,
details.tbl .scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

details.tbl .scroll {
  max-height: 320px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

details.tbl table {
  width: 100%;
  border-collapse: collapse;
  font: 400 12.5px/1.4 var(--text);
}

details.tbl th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-2);
  background: var(--cream);
  color: var(--ink-mute);
  font-weight: 500;
  text-align: left;
}

details.tbl td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

details.tbl tbody tr:last-child td {
  border-bottom: 0;
}

details.tbl td:not(:first-child),
details.tbl th:not(:first-child) {
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}

details.tbl caption {
  display: none;
}

/* Footer */

.foot-line {
  padding: 16px 0 40px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-mute);
  font: 400 12.5px/1.5 var(--text);
}

/* Pointer feedback does not move content or change bar lengths. */

@media (hover: hover) and (pointer: fine) {
  .tab:hover {
    background: var(--hover);
    color: var(--ink);
  }

  .list li:not(.sep):hover,
  details.tbl tbody tr:hover {
    background: var(--hover);
  }

  details.tbl summary:hover {
    color: var(--ink);
  }
}

/* Preserve the approved laptop layout while easing narrow columns. */

@media (min-width: 1181px) and (max-width: 1360px) {
  .card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .list li {
    gap: 10px;
  }

  .list.cols {
    column-gap: 20px;
  }

  .list.cols li {
    grid-template-columns: minmax(0, 1fr) minmax(48px, 28%) 48px;
    gap: 8px;
  }

  .list.tight li {
    grid-template-columns: minmax(0, 1fr) minmax(48px, 27%) 48px;
    gap: 8px;
  }
}

@media (max-width: 1180px) {
  .c5,
  .c4,
  .c3 {
    grid-column: span 6;
  }

  .c8,
  .c7 {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  .top {
    padding-top: 24px;
  }

  .top .wrap {
    align-items: flex-start;
    gap: 20px;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    padding-right: 12px;
    padding-left: 12px;
  }

  .panel {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .summary {
    margin-bottom: 20px;
  }

  .kpi {
    flex: 1 1 220px;
  }

  .c6,
  .c5,
  .c4,
  .c3 {
    grid-column: span 12;
  }

  .card {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .list.cols {
    columns: 1;
  }

  .list.cols li {
    grid-template-columns: minmax(0, 1fr) minmax(60px, 30%) 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab,
  .list li,
  details.tbl summary::before {
    transition: none;
  }
}

@media print {
  .tabs {
    display: none;
  }

  .panel {
    display: block !important;
    break-before: page;
  }

  .panel:first-of-type {
    break-before: auto;
  }

  .card,
  .kpi {
    break-inside: avoid;
  }
}

/* Refinement pass: the site's serif for card titles, a hairline between country columns, the last point marked on daily charts. */
.card h2 {
  font: 500 20px/1.25 var(--display);
  font-variation-settings: 'opsz' 40;
  letter-spacing: -0.01em;
}
.card .p { margin-top: 6px; }
.list.cols { column-rule: 1px solid var(--line); column-gap: 34px; }
.list.cols li { padding-right: 2px; }
.chart .end-dot { fill: var(--card); stroke: var(--accent); stroke-width: 2; }
.chart .end-val { fill: var(--ink); font-size: 13px; font-weight: 600; }
.summary > .kpi { transition: border-color .2s; }
.summary > .kpi:hover { border-color: var(--line-2); }

/* cards without a description line keep the same breathing room under the title */
.card h2 + div { margin-top: 16px; }


/* From the logo: plum for headlines, ochre for the lines under them, a painterly wash behind the page. */
:root { --plum: #5B3A63; --plum-deep: #43284A; --ochre: #8F6320; }
body { position: relative; }
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg .stroke { position: absolute; opacity: .13; filter: blur(.4px); }
.bg .s1 { width: 560px; top: -70px; right: -120px; transform: rotate(-8deg); }
.bg .s2 { width: 520px; top: 120px; right: 40px; transform: rotate(6deg); }
.bg .s3 { width: 440px; bottom: 80px; left: -140px; transform: rotate(-12deg); }
.bg .s4 { width: 380px; bottom: -30px; left: 160px; transform: rotate(4deg); }
.top, main { position: relative; z-index: 1; }
.card, .kpi { background: rgba(255, 253, 247, .92); }
.brand h1 { color: var(--plum-deep); position: relative; display: inline-block; }
.brand h1 .swash { position: absolute; left: 2px; right: 0; bottom: -9px; width: 100%; height: 12px; }
.brand p { color: var(--ink-mute); }
.card h2 { color: var(--plum); }
.card .p { color: var(--ochre); }
.card .p b { color: var(--plum); }
.kpi .l { color: var(--ochre); }
.kpi .v { color: var(--plum-deep); }
.tab[aria-selected="true"] { color: var(--plum-deep); }


/* thin titles and subtitles */
.brand h1 { font-weight: 400; }
.card h2 { font-weight: 300; font-size: 21px; letter-spacing: 0; }
.card .p { font-weight: 300; }
.kpi .l { font-weight: 400; }
.kpi .v { font-weight: 400; }
.brand p { font-weight: 300; }


/* count column beside the share */
.list.nums li { grid-template-columns: minmax(0,1fr) minmax(80px,34%) 84px 60px; }
.list.nums.cols li { grid-template-columns: minmax(0,1fr) minmax(36px,20%) 70px 52px; gap: 10px; }
.list.nums.tight li { grid-template-columns: minmax(0,1fr) minmax(50px,24%) 70px 56px; }
.list .c { font: 500 14px/1 var(--text); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list.nums .v { color: var(--ink-mute); font-weight: 400; }
.list .muted .c { color: var(--ink-faint); }


/* three-column country lists across the full width; names never break inside a word */
.list.cols { columns: 3; column-gap: 40px; column-rule: 1px solid var(--line); }
.list.cols li, .list.nums.cols li { grid-template-columns: minmax(0,1fr) minmax(60px,26%) 72px 56px; gap: 12px; }
.list .n { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 1180px) { .list.cols { columns: 2; } }


/* thick headlines and subheadlines */
.c9 { grid-column: span 9; }
@media (max-width: 1180px) { .c9 { grid-column: span 12; } }
.brand h1 { font-weight: 600; letter-spacing: -0.015em; }
.brand p { font-weight: 500; color: var(--ink-mute); }
.card h2 { font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--plum-deep); }
.card .p { font-weight: 500; color: var(--ochre); }
.kpi .l { font-weight: 600; letter-spacing: .1em; }
.kpi .v { font-weight: 600; letter-spacing: -0.025em; }
.tab { font-weight: 600; }
.list .n { font-weight: 400; }
.list .c { font-weight: 600; }
.foot { font-weight: 400; }
.legend b { font-weight: 600; }

.col { grid-template-rows: auto 1fr; }
.col .card { display: flex; flex-direction: column; }
.col .card > div:last-of-type { flex: 1; }


/* perfection pass */
/* the demographic and device lists spread to the height of their row, so every row finishes on one line */
#v-age-card, #a-age-card, #w-dev-card { display: flex; flex-direction: column; }
#v-age, #a-age, #w-dev { flex: 1; display: flex; flex-direction: column; }
#v-age .list, #a-age .list, #w-dev .list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
/* country rows: three tracks for three elements; fills are ranked against the leading country, so no full-scale track */
.list.cols:not(.nums) li { grid-template-columns: minmax(0, 1fr) minmax(90px, 34%) 56px; gap: 12px; }
.list.cols .t { background: transparent; }
.list .f.nz { min-width: 2px; }
/* one type size across the list columns; counts sit level with the labels */
.list .n, .list .c, .list .v { font-size: 14px; line-height: 20px; }
.list .c { font-weight: 500; }
/* shared insets and rhythm */
.card, .kpi { padding: 20px 24px; background: var(--card); }
.kpi { min-width: 264px; }
.summary { gap: 16px; margin-bottom: 24px; }
.summary > .kpi { transition: none; }
.summary > .kpi:hover { border-color: var(--line); }
.summary > .kpi:first-child:hover { border-top-color: var(--accent); }
.kpi .l { font-size: 12px; line-height: 16px; letter-spacing: .07em; margin-bottom: 8px; }
.card .p { margin: 8px 0 16px; }
.foot { margin-top: 16px; padding-top: 16px; }
.brand p { margin-top: 10px; }
/* charts */
.chart .col.part { fill-opacity: .55; }
.chart .note { font-size: 12px; }
.chart .end-dot { stroke-width: 1.5; }
#a-daily .end-dot { stroke: var(--ink-mute); }
.legend i { width: 16px; height: 2px; border-radius: 0; vertical-align: 3px; }
/* background strokes anchored to the page, never showing through a card */
.bg { position: absolute; }
/* tabs: equal widths, a settled selected state, a contained focus ring */
.tabs { display: grid; grid-template-columns: repeat(3, 124px); gap: 0; }
.tab[aria-selected="true"] { background: var(--hover); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
@media (max-width: 760px) {
  .list.cols { columns: 1; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* All: the three platforms side by side */
.panel[data-view="all"] { --accent: var(--plum); }
.tabs { grid-template-columns: repeat(4, 124px); }
.tab[data-view="all"] { --accent: var(--plum); }
#all .kpi { border-top-color: var(--accent); }
.kpi.pv, .pv { --accent: var(--cobalt); }
.kpi.pa, .pa { --accent: var(--crimson); }
.kpi.pw, .pw { --accent: var(--forest); }
.list .f.pv { background: var(--cobalt); }
.list .f.pa { background: var(--crimson); }
.list .f.pw { background: var(--forest); }
.heads .pv { color: var(--cobalt); }
.heads .pa { color: var(--crimson); }
.heads .pw { color: var(--forest); }
.list li.heads { min-height: 0; padding: 0 0 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font: 600 11px/1.4 var(--text); letter-spacing: .07em; text-transform: uppercase; align-items: end; }
.list li.heads span { text-align: right; }
.list li.heads span:first-child { text-align: left; }
/* reach donut */
#t-share-card { display: flex; flex-direction: column; }
#t-share { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; gap: 8px; }
.donut { width: 100%; max-width: 220px; height: auto; display: block; }
.donut-v { font: 600 34px var(--display); fill: var(--plum-deep); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; }
.list.leg { width: 100%; }
.list.leg li { grid-template-columns: 12px minmax(0, 1fr) 84px 60px; gap: 10px; min-height: 34px; }
.list.leg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.list.leg .c { font-weight: 500; }
/* gender: two bars per row */
#t-gender-card { display: flex; flex-direction: column; }
#t-gender { flex: 1; display: flex; flex-direction: column; }
.list.two { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.list.two li { grid-template-columns: minmax(0, 1fr) minmax(160px, 52%) 72px 72px; gap: 16px; min-height: 44px; }
.list.two .tt { display: grid; gap: 5px; }
.list.two .tt .t { height: 6px; }
.list.two .t.none { background: transparent; }
.list.two .v.pv { color: var(--cobalt); }
.list.two .v.pa { color: var(--crimson); }
/* age: two lists side by side */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.duo > div + div { border-left: 1px solid var(--line); padding-left: 48px; margin-left: -24px; }
.duo .hd { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--accent); font: 600 11px/1.4 var(--text); letter-spacing: .07em; text-transform: uppercase; }
.duo .list .f { background: var(--accent); }
/* countries: three shares per row in two column groups */
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.twin > ul + ul { border-left: 1px solid var(--line); padding-left: 40px; margin-left: -20px; }
.list.tri li { grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); gap: 14px; min-height: 28px; }
.list.tri .cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.list.tri .cell .t { flex: 1; background: transparent; }
.list.tri .cell .v { width: 50px; flex: none; font-size: 13px; }
@media (max-width: 1180px) {
  .twin, .duo { grid-template-columns: 1fr; }
  .twin > ul + ul, .duo > div + div { border-left: 0; padding-left: 0; margin-left: 0; }
}
@media (max-width: 760px) { .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.list.tri .f.nz { min-width: 1px; }
/* the two column groups share one inner width, so equal shares draw equal bars */
.twin { gap: 0; }
.twin > ul:first-child { padding-right: 20px; }
.twin > ul + ul { padding-left: 20px; margin-left: 0; }
.duo { gap: 0; }
.duo > div:first-child { padding-right: 24px; }
.duo > div + div { padding-left: 24px; margin-left: 0; }


/* final polish: a warm wash behind the paper, and quiet entrance motion */
body {
  background:
    radial-gradient(1100px 620px at 100% -10%, rgba(232, 184, 44, .13), transparent 62%),
    radial-gradient(900px 560px at -10% 100%, rgba(90, 95, 168, .09), transparent 60%),
    radial-gradient(700px 420px at 55% 105%, rgba(200, 154, 60, .07), transparent 60%),
    var(--paper);
}
.bg .stroke { opacity: .14; }
.card, .kpi { box-shadow: 0 1px 0 rgba(26, 22, 20, .03), 0 12px 32px -22px rgba(67, 40, 74, .22); }
.tab { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }

@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: none; } }
@keyframes col-in { from { transform: scaleY(0); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel.active { animation: panel-in .38s cubic-bezier(.2, .7, .2, 1) both; }
.summary .kpi { animation: rise-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.summary .kpi:nth-child(2) { animation-delay: 60ms; }
.summary .kpi:nth-child(3) { animation-delay: 120ms; }
.list .f { transform-origin: left center; animation: bar-in .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 14ms); }
.chart .col { transform-box: fill-box; transform-origin: center bottom; animation: col-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.chart path, .chart .end-dot, .chart .end-val, .chart .val { animation: fade-in .6s ease both; animation-delay: .25s; }
.donut circle, .donut-v { animation: fade-in .7s ease both; }
/* a panel re-rendered after a resize keeps its content still */
.panel.settled, .panel.settled * { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .panel.active, .summary .kpi, .list .f, .chart .col, .chart path, .chart .end-dot, .chart .end-val, .chart .val, .donut circle, .donut-v { animation: none; }
}
@media print { .panel, .summary .kpi, .list .f, .chart .col, .chart path, .chart text, .donut circle, .donut-v { animation: none; } }
.list.two { justify-content: center; gap: 16px; }
.list.two li.heads { margin-bottom: 0; }


/* the world map above the country list */
.map { display: block; width: 100%; height: auto; max-height: 560px; margin: 4px auto 6px; overflow: visible; }
.map .land { fill: #E9E1CF; stroke: var(--card); stroke-width: .7; stroke-linejoin: round; }
.map .pin circle.pv { fill: var(--cobalt); fill-opacity: .78; stroke: var(--card); stroke-width: 1; }
.map .pin circle.pa { fill: var(--crimson); fill-opacity: .18; stroke: var(--crimson); stroke-width: 1.8; }
.map .pin circle.core { fill: var(--card); }
.map .pin { animation: fade-in .6s ease both; animation-delay: .3s; }
.maplegend { display: flex; justify-content: center; gap: 28px; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink-mute); font: 500 13px/1.4 var(--text); }
.maplegend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.maplegend .dot { background: var(--cobalt); opacity: .85; }
.maplegend .ring { border: 2px solid var(--crimson); background: rgba(184, 58, 42, .18); box-sizing: border-box; }
.list.tri li { grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); }
@media (prefers-reduced-motion: reduce) { .map .pin { animation: none; } }
@media print { .panel, .panel *, .summary .kpi { animation: none !important; } }


/* All: numeric country rows, total bars on age, pins that talk to the list */
.heads .pt { color: var(--plum); }
.list.tri.num li { grid-template-columns: minmax(0, 1fr) 92px 68px 68px; gap: 12px; min-height: 28px; }
.list.tri.num .c { text-align: right; font-weight: 500; color: var(--ink); }
.list.tri.num .v { text-align: right; color: var(--ink); font-weight: 400; }
.list.tri.tot li { grid-template-columns: minmax(0, 1fr) minmax(220px, 46%) 76px 76px; gap: 16px; min-height: 38px; }
.list.tri.tot .tc { display: flex; align-items: center; gap: 14px; min-width: 0; }
.list.tri.tot .tc .t { flex: 1; background: var(--track); }
.list.tri.tot .tc .f { background: var(--plum); }
.list.tri.tot .tc .c { width: 92px; text-align: right; font-weight: 500; color: var(--ink); white-space: nowrap; }
.list.tri.tot .v { text-align: right; color: var(--ink); font-weight: 400; }
.list.tri li.hit { background: var(--hover); box-shadow: inset 3px 0 0 var(--plum); transition: background-color .3s ease, box-shadow .3s ease; }
.map .sea { stroke: rgba(26, 22, 20, .10); stroke-width: .8; }
.map .grat { fill: none; stroke: #1A1614; stroke-opacity: .075; stroke-width: .6; }
.map .land { fill: #E6DDC8; stroke: rgba(255, 253, 247, .9); }
.map .pin { cursor: pointer; outline: none; }
.map .pin circle { transition: fill-opacity .18s ease, stroke-width .18s ease; }
.map .pin.on circle.pv, .map .pin:hover circle.pv { fill-opacity: 1; }
.map .pin.on circle.pa, .map .pin:hover circle.pa { stroke-width: 3; fill-opacity: .38; }
.map .pin:focus-visible circle.pv, .map .pin:focus-visible circle.pa { stroke: var(--ink); stroke-width: 2; }
.map .pin.on circle.core, .map .pin:hover circle.core { fill: var(--ink); }


/* style check: a ground with the logo's colours in it, and land that stands off the paper */
body {
  background:
    radial-gradient(1200px 680px at 100% -12%, rgba(232, 184, 44, .22), transparent 60%),
    radial-gradient(900px 620px at 92% 38%, rgba(176, 64, 90, .10), transparent 62%),
    radial-gradient(1000px 640px at -12% 104%, rgba(90, 95, 168, .16), transparent 60%),
    radial-gradient(760px 480px at 50% 108%, rgba(200, 154, 60, .12), transparent 60%),
    radial-gradient(700px 460px at -6% 6%, rgba(91, 58, 99, .09), transparent 60%),
    linear-gradient(180deg, #FBF6EA 0%, #F7F1E3 100%);
}
.bg .stroke { opacity: .22; filter: blur(.6px); }
.card, .kpi { background: rgba(255, 253, 247, .96); border-color: rgba(225, 218, 203, .9); box-shadow: 0 1px 0 rgba(26, 22, 20, .04), 0 18px 40px -26px rgba(67, 40, 74, .30); }
.map .land { fill: url(#landg); stroke: rgba(255, 253, 247, .85); stroke-width: .8; }
.map .sea { stroke: rgba(90, 95, 168, .22); stroke-width: 1; }
.map .grat { stroke: #5A5FA8; stroke-opacity: .16; }
.map .pin circle.pv { fill: var(--cobalt); fill-opacity: .92; stroke: #FFFDF7; stroke-width: 1.4; }
.map .pin circle.pa { fill: #FFFDF7; fill-opacity: .55; stroke: var(--crimson); stroke-width: 2; }
.map .pin circle.core { fill: #FFFDF7; }
.maplegend .ring { background: rgba(255, 253, 247, .6); }
.map .pin circle.halo { fill: none; stroke: #FFFDF7; stroke-width: 4.2; }
.map .pin circle.pv { stroke-width: 1.8; }

/* after the design check */
.bg .stroke { opacity: .18; }
#t-geo { --cobalt: #20467F; --crimson: #982D25; }
.map .pin circle.pa { fill: none; }
.maplegend .dot { background: #20467F; opacity: 1; }
.maplegend .ring { border-color: #982D25; background: transparent; }
.list.tri.tot li { grid-template-columns: minmax(160px, 1fr) minmax(220px, 2fr) 76px 76px; }
.list.two { justify-content: flex-start; gap: 26px; padding-top: 6px; }


/* the one total: a plum card with the three platform colours along its top edge */
.summary > .kpi.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 300px; padding: 22px 28px; border: 0; border-top: 0; border-radius: var(--r); background: linear-gradient(135deg, #3E2445 0%, #5B3A63 58%, #6B4474 100%); color: #FAF6EA; box-shadow: 0 1px 0 rgba(26, 22, 20, .06), 0 22px 44px -24px rgba(67, 40, 74, .55); overflow: hidden; }
.summary > .kpi.hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--cobalt) 0 34%, var(--crimson) 34% 67%, var(--forest) 67% 100%); }
.summary > .kpi.hero::after { content: ''; position: absolute; right: -40px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(232, 184, 44, .28), rgba(232, 184, 44, 0) 70%); pointer-events: none; }
.summary > .kpi.hero .l { color: #E8B82C; }
.summary > .kpi.hero .v { color: #FFFDF7; font-size: 52px; letter-spacing: -0.03em; }
.summary > .kpi.hero:hover, .summary > .kpi.hero:first-child:hover { border-color: transparent; }
.summary > .kpi.hero { min-width: 250px; }
.summary > .kpi.hero + .kpi.hero { background: linear-gradient(135deg, #4A2B52 0%, #5B3A63 55%, #74507C 100%); }
.summary > .kpi.hero + .kpi.hero::after { background: radial-gradient(circle at 35% 35%, rgba(200, 154, 60, .26), rgba(200, 154, 60, 0) 70%); }


/* painted ground: soft colour fields from the logo, strokes down the whole page, a tint that follows the tab */
body { background: linear-gradient(180deg, #FBF6EA 0%, #F8F2E4 50%, #F6EFDF 100%); }
.bg .stroke { opacity: .2; filter: blur(.8px); }
.bg .s1 { width: 600px; top: -80px; right: -140px; }
.bg .s2 { width: 540px; top: 130px; right: 30px; }
.bg .s5 { position: absolute; width: 620px; top: 44%; left: -220px; transform: rotate(9deg); }
.bg .s6 { position: absolute; width: 520px; top: 66%; right: -160px; transform: rotate(-7deg); }
.bg .wash { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.bg .w1 { width: 900px; height: 620px; top: -220px; right: -180px; background: radial-gradient(circle at 50% 50%, rgba(232, 184, 44, .34), rgba(232, 184, 44, 0) 70%); }
.bg .w2 { width: 760px; height: 560px; top: 22%; left: -260px; background: radial-gradient(circle at 50% 50%, rgba(90, 95, 168, .26), rgba(90, 95, 168, 0) 70%); }
.bg .w3 { width: 820px; height: 600px; top: 58%; right: -240px; background: radial-gradient(circle at 50% 50%, rgba(176, 64, 90, .18), rgba(176, 64, 90, 0) 70%); }
.bg .w4 { width: 900px; height: 520px; bottom: -240px; left: 10%; background: radial-gradient(circle at 50% 50%, rgba(200, 154, 60, .26), rgba(200, 154, 60, 0) 70%); }
.bg .tint { position: absolute; inset: 0; background: radial-gradient(1100px 700px at 8% 12%, var(--tint, rgba(91, 58, 99, .10)), transparent 62%); transition: opacity .5s ease; }
body[data-view=all] { --tint: rgba(91, 58, 99, .11); }
body[data-view=video] { --tint: rgba(44, 91, 170, .10); }
body[data-view=audio] { --tint: rgba(184, 58, 42, .09); }
body[data-view=website] { --tint: rgba(42, 69, 48, .10); }
@media print { .bg { display: none; } }

/* inside a host page: no scrollbars of its own, the host sizes the frame to the content */
html.embedded, html.embedded body { overflow: hidden; }

/* larger platform marks in the tab bar */
.tab svg { width: 25px; height: 25px; }
.tab { gap: 10px; }
.tabs { grid-template-columns: repeat(4, 134px); }


/* ═══════ PHONE (640px and below): one column, larger type, tabs that stay in reach, a map you swipe ═══════ */
.chart .yy { font-size: 10px; fill: var(--ink-faint); }
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top { padding: 16px 0 0; }
  .top .wrap { flex-direction: column; align-items: stretch; gap: 14px; }
  .brand { gap: 12px; }
  .brand img { width: 36px; height: 36px; }
  .brand h1 { font-size: 28px; }
  .brand h1 .swash { bottom: -7px; height: 9px; }
  .brand p { font-size: 12.5px; margin-top: 8px; line-height: 1.4; }
  /* the header dissolves into the page flow so the tab bar can stick for the whole scroll */
  .top, .top .wrap { display: contents; }
  .brand { display: flex; padding: 16px 16px 0; }
  .tabs { position: sticky; top: 0; z-index: 20; grid-template-columns: repeat(4, minmax(0, 1fr)); width: auto; margin: 14px 0 0; padding: 6px 8px 0; background: var(--paper); border-bottom: 1px solid var(--line-2); }
  .tab { flex-direction: column; justify-content: center; gap: 5px; min-height: 60px; padding: 8px 2px 10px; font-size: 13px; letter-spacing: 0; }
  .tab svg { width: 22px; height: 22px; }
  .panel { padding: 16px 0 40px; }
  .summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
  .summary > .kpi { min-width: 0; padding: 14px 14px 12px; }
  .summary > .kpi.hero { grid-column: 1 / -1; padding: 18px 20px 16px; }
  .summary > .kpi.hero .v { font-size: 46px; }
  .kpi .l { font-size: 11px; line-height: 1.35; letter-spacing: .06em; margin-bottom: 6px; }
  .kpi .v { font-size: 32px; }
  .kpi .s { font-size: 12.5px; margin-top: 6px; }
  .grid { gap: 12px; }
  .grid > .card, .grid > .col, .c3, .c4, .c5, .c6, .c7, .c8, .c9, .c12 { grid-column: span 12; }
  .col { display: contents; }
  .col .card { grid-column: 1 / -1; }
  .card { padding: 16px; }
  .card h2 { font-size: 21px; }
  .card .p { font-size: 13px; margin: 6px 0 12px; }
  .list li { min-height: 44px; }
  .list.small li { min-height: 40px; }
  .list .n, .list .c, .list .v { font-size: 15px; line-height: 20px; }
  .list.tri .n { overflow-wrap: anywhere; hyphens: auto; }
  .list.cols { columns: 1; column-rule: 0; }
  .list.nums.cols li { grid-template-columns: minmax(0, 1fr) minmax(48px, 22%) 72px 56px; gap: 10px; }
  .list.cols:not(.nums) li { grid-template-columns: minmax(0, 1fr) minmax(70px, 30%) 60px; }
  #t-share { flex-direction: column; }
  .donut { max-width: 180px; }
  .list.leg li { min-height: 40px; grid-template-columns: 12px minmax(0, 1fr) 84px 60px; }
  .list.two { gap: 8px; padding-top: 0; }
  .list.two li.heads { grid-template-columns: auto auto; grid-template-areas: none; justify-content: end; gap: 16px; padding-bottom: 4px; }
  .list.two li.heads span:nth-child(1), .list.two li.heads span:nth-child(2) { display: none; }
  .list.two li:not(.heads) { grid-template-columns: minmax(0, 1fr) 64px; grid-template-areas: "n n" "tt vv" "tt va"; row-gap: 4px; column-gap: 12px; min-height: 0; padding: 6px 0 10px; }
  .list.two li:not(.heads) .n { grid-area: n; }
  .list.two li:not(.heads) .tt { grid-area: tt; gap: 12px; align-self: center; }
  .list.two li:not(.heads) .v.pv { grid-area: vv; }
  .list.two li:not(.heads) .v.pa { grid-area: va; }
  .list.tri.tot li, .list.tri.num li { grid-template-columns: minmax(0, 1fr) 76px 58px 58px; gap: 8px; min-height: 46px; }
  #v-month, #w-month { overflow-x: auto; overflow-y: hidden; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  #v-month::-webkit-scrollbar, #w-month::-webkit-scrollbar { display: none; }
  #v-month svg, #w-month svg { display: block; }
  .list.tri.tot li { grid-template-columns: minmax(0, 1fr) 68px 52px 52px; gap: 6px; }
  .list.tri.tot .tc .t { display: none; }
  .list.tri.tot .tc .c { width: auto; }
  .list.tri li.heads { position: sticky; top: 66px; z-index: 3; background: var(--card); min-height: 0; padding: 8px 0 6px; margin-top: 0; }
  .mapwrap { overflow-x: auto; overflow-y: hidden; margin: 0 -16px 10px; padding: 0 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .mapwrap::-webkit-scrollbar { display: none; }
  .map { width: 160vw; max-width: none; max-height: none; margin: 0; }
  .maplegend { margin: 0 0 12px; padding-bottom: 12px; font-size: 13px; }
  .twin { grid-template-columns: 1fr; gap: 0; }
  .twin > ul:first-child { padding-right: 0; }
  .twin > ul + ul { border-left: 0; padding-left: 0; margin-left: 0; }
  .twin > ul + ul li.heads { display: none; }
  .chart .val { font-size: 11px; }
  .chart text { font-size: 11px; }
  .legend { font-size: 13px; gap: 6px 16px; }
  .foot { font-size: 12.5px; }
  body { background: linear-gradient(180deg, #FBF6EA 0%, #F7F1E3 100%); }
  .bg .stroke, .bg .wash, .bg .tint { display: none; }
  .bg .s1 { display: block; width: 380px; top: -60px; right: -140px; opacity: .16; }
  .bg .w1 { display: block; width: 520px; height: 420px; top: -180px; right: -160px; }
  .list .f { animation-duration: .4s; animation-delay: calc(var(--i, 0) * 6ms); }
  .panel.active { animation-duration: .25s; }
  .summary .kpi { animation-duration: .3s; }
}
@media (max-width: 360px) {
  .list.tri.tot li, .list.tri.num li { grid-template-columns: minmax(0, 1fr) 72px 54px 54px; gap: 6px; }
  .list .n, .list .c, .list .v { font-size: 14px; }
  .summary > .kpi.hero .v { font-size: 40px; }
  .kpi .v { font-size: 28px; }
}


/* ═══════ PHONE LISTS: ranked, two-line rows, the tail folded ═══════ */
.rk, .more { display: none; }
@media (max-width: 640px) {
  .trunc .tail { display: none !important; }
  .trunc.open .tail { display: grid !important; }
  .more { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin: 6px 0 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--plum-deep); font: 600 14px/1 var(--text); cursor: pointer; }
  .more .cnt { font-variant-numeric: tabular-nums; }
  .more svg { width: 18px; height: 18px; transition: transform .2s ease; }
  .trunc.open + .more svg { transform: rotate(180deg); }
  .trunc.open + .more .cnt { display: none; }
  .more:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
  .rk { display: block; font: 600 12px/1 var(--text); color: var(--ink-faint); font-variant-numeric: tabular-nums; text-align: right; padding-top: 3px; }
  /* ranked geography rows: rank | name | numbers, with the bar as a hairline under the row */
  .list.ranked li:not(.sep) { grid-template-columns: 24px minmax(0, 1fr) auto auto; grid-template-areas: "rk n c v" "rk t t t"; gap: 2px 10px; align-items: baseline; min-height: 0; padding: 10px 0 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .list.ranked li:not(.sep) .rk { grid-area: rk; align-self: start; }
  .list.ranked li:not(.sep) .n { grid-area: n; font-size: 16px; line-height: 22px; color: var(--ink); }
  .list.ranked li:not(.sep) .c { grid-area: c; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
  .list.ranked li:not(.sep) .v { grid-area: v; font-size: 14px; line-height: 22px; color: var(--ink-mute); font-weight: 400; min-width: 52px; }
  .list.ranked:not(.nums) li:not(.sep) { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "rk n v" "rk t t"; }
  .list.ranked:not(.nums) li:not(.sep) .v { font-size: 16px; font-weight: 600; color: var(--ink); }
  .list.ranked li:not(.sep) .t { grid-area: t; height: 3px; margin-top: 6px; background: var(--track); border-radius: 2px; }
  .list.ranked li:not(.sep) .t.none { background: transparent; }
  .list.ranked li.muted .rk { visibility: hidden; }
  .list.ranked li.muted .n, .list.ranked li.muted .c, .list.ranked li.muted .v { color: var(--ink-faint); }
  .list.ranked li.sep { display: none; }
  .list.ranked li:last-child { border-bottom: 0; }
  /* the All countries: rank | name | total, then the two shares with their platform dots */
  .list.tri.num li:not(.heads) { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "rk n n c" "rk pv pa pa"; gap: 2px 10px; align-items: baseline; padding: 10px 0 12px; min-height: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .list.tri.num li:not(.heads) .rk { grid-area: rk; align-self: start; }
  .list.tri.num li:not(.heads) .n { grid-area: n; font-size: 16px; line-height: 22px; color: var(--ink); }
  .list.tri.num li:not(.heads) .c { grid-area: c; font-size: 16px; line-height: 22px; font-weight: 600; text-align: right; }
  .list.tri.num li:not(.heads) .v { font-size: 13.5px; line-height: 18px; color: var(--ink-mute); text-align: left; }
  .list.tri.num li:not(.heads) .v.pv { grid-area: pv; }
  .list.tri.num li:not(.heads) .v.pa { grid-area: pa; }
  .list.tri.num li:not(.heads) .v:not(:empty)::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
  .list.tri.num li:not(.heads) .v.pv:not(:empty)::before { background: var(--cobalt); }
  .list.tri.num li:not(.heads) .v.pa:not(:empty)::before { background: var(--crimson); }
  .list.tri.num li.heads { grid-template-columns: auto auto; justify-content: end; gap: 16px; position: static; padding: 0 0 8px; }
  .list.tri.num li.heads span:nth-child(1), .list.tri.num li.heads span:nth-child(2) { display: none; }
  .list.tri.num li.heads span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
  .list.tri.num li.heads .pv::before { background: var(--cobalt); }
  .list.tri.num li.heads .pa::before { background: var(--crimson); }
  .list.tri.num li.hit { background: var(--hover); box-shadow: inset 3px 0 0 var(--plum); border-radius: 4px; }
  .twin > ul + ul { margin-top: 0; }
  .twin > ul:first-child li:last-child { border-bottom: 1px solid var(--line); }
  /* the platform tabs live in a bottom bar, in reach of the thumb */
  .tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 30; margin: 0; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -8px 24px -18px rgba(26, 22, 20, .35); }
  .tab { min-height: 56px; padding: 6px 2px 6px; }
  .brand { padding: 16px 16px 4px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .list.tri li.heads { top: 0; }
  .tab[aria-selected="true"] { background: transparent; border-bottom-color: transparent; position: relative; }
  .tab[aria-selected="true"]::after { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
}

/* phone: age rows share the country row anatomy; column heads do not stick */
@media (max-width: 640px) {
  .list.tri li.heads { position: static; }
  .list.tri.tot li:not(.heads) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n c" "pv pa"; gap: 2px 12px; align-items: baseline; padding: 10px 0 12px; min-height: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .list.tri.tot li:not(.heads) .n { grid-area: n; font-size: 16px; line-height: 22px; color: var(--ink); }
  .list.tri.tot li:not(.heads) .tc { grid-area: c; display: block; }
  .list.tri.tot li:not(.heads) .tc .c { display: block; width: auto; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); text-align: right; }
  .list.tri.tot li:not(.heads) .v { font-size: 13.5px; line-height: 18px; color: var(--ink-mute); text-align: left; }
  .list.tri.tot li:not(.heads) .v.pv { grid-area: pv; }
  .list.tri.tot li:not(.heads) .v.pa { grid-area: pa; }
  .list.tri.tot li:not(.heads) .v::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
  .list.tri.tot li:not(.heads) .v.pv::before { background: var(--cobalt); }
  .list.tri.tot li:not(.heads) .v.pa::before { background: var(--crimson); }
  .list.tri.tot li:last-child { border-bottom: 0; }
  .list.tri.tot li.heads { grid-template-columns: auto auto; justify-content: end; gap: 16px; padding: 0 0 8px; }
  .list.tri.tot li.heads span:nth-child(1), .list.tri.tot li.heads span:nth-child(2) { display: none; }
  .list.tri.tot li.heads span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
  .list.tri.tot li.heads .pv::before { background: var(--cobalt); }
  .list.tri.tot li.heads .pa::before { background: var(--crimson); }
}

/* phone: every plain list takes the two-line row, so labels never break into single words */
@media (max-width: 640px) {
  .list:not(.leg):not(.two):not(.tri):not(.ranked) li:not(.sep) { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "n c v" "t t t"; gap: 2px 10px; align-items: baseline; min-height: 0; padding: 10px 0 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .list:not(.leg):not(.two):not(.tri):not(.ranked):not(.nums) li:not(.sep) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n v" "t t"; }
  .list:not(.leg):not(.two):not(.tri):not(.ranked) li:not(.sep) .n { grid-area: n; font-size: 16px; line-height: 22px; color: var(--ink); }
  .list:not(.leg):not(.two):not(.tri):not(.ranked) li:not(.sep) .c { grid-area: c; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
  .list:not(.leg):not(.two):not(.tri):not(.ranked) li:not(.sep) .v { grid-area: v; font-size: 14px; line-height: 22px; color: var(--ink-mute); font-weight: 400; min-width: 52px; text-align: right; }
  .list:not(.leg):not(.two):not(.tri):not(.ranked):not(.nums) li:not(.sep) .v { font-size: 16px; font-weight: 600; color: var(--ink); }
  .list:not(.leg):not(.two):not(.tri):not(.ranked) li:not(.sep) .t { grid-area: t; height: 3px; margin-top: 6px; background: var(--track); border-radius: 2px; }
  .list:not(.leg):not(.two):not(.tri):not(.ranked) li:not(.sep) .t.none { background: transparent; }
  .list:not(.leg):not(.two):not(.tri):not(.ranked) li.muted .n, .list:not(.leg):not(.two):not(.tri):not(.ranked) li.muted .c, .list:not(.leg):not(.two):not(.tri):not(.ranked) li.muted .v { color: var(--ink-faint); }
  .list:not(.leg):not(.two):not(.tri):not(.ranked) li.sep { height: 0; min-height: 0; margin: 6px 0 0; padding: 0; border-top: 0; }
  .list:not(.leg):not(.two):not(.tri):not(.ranked) li:last-child { border-bottom: 0; }
}

/* a column chart wider than its card scrolls sideways at any width */
.wide { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.wide::-webkit-scrollbar { display: none; }
