@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url(/static/fonts/bricolage-grotesque-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url(/static/fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/static/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(/static/fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(/static/fonts/manrope-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(/static/fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(/static/fonts/manrope-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Chrome: the sidebar, the phone bar and sheet, and sign-in are dark. Every text color here clears WCAG AA on --chrome. */
  --chrome: #0A0D14;
  --chrome-2: #111624;
  --chrome-3: #1A2030;
  --chrome-line: rgba(255, 255, 255, 0.09);
  --chrome-text: #C5CBD8;
  --chrome-muted: #8A93A6;
  --accent: #35AFA1;
  /* Content: warm paper, white surfaces, near-black type. --brand is the teal dark enough for text and links on white. */
  --ink: #111624;
  --ink-2: #3B4256;
  --ink-hover: #232B45;
  --slate: #666E80;
  --rule: #E4E0D8;
  --rule-2: #EDEAE4;
  --rule-3: #CFC9BE;
  --control: #D6D1C7;
  --page: #FAF8F5;
  --card: #ffffff;
  --tint: #F7F5F1;
  --brand: #17776C;
  --brand-soft: #E8F3F1;
  --teal: #17776C;
  --spark: #f08038;
  --good: #1A7A50;
  --bad: #c0392b;
  --self: #1d93c9;
  --material: #d4880a;
  --social: #e0623f;
  --spiritual: #14a37a;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(17, 22, 36, 0.04);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23666E80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chevron-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5l5-5 5 5' fill='none' stroke='%23666E80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chevron-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A93A6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chevron-dark-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5l5-5 5 5' fill='none' stroke='%238A93A6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.25; }
h1 { font-size: 26px; letter-spacing: -0.01em; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 var(--space-3); }
small, .muted { color: var(--slate); }
code { font-size: 13px; background: var(--rule-2); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }

/* Shell. The sidebar column is painted by the shell so it stays dark below a short sidebar. */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--chrome) 240px, var(--page) 240px); }
.side {
  background: var(--chrome); color: var(--chrome-text);
  padding: var(--space-5) 0 var(--space-4);
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
}
/* The page list scrolls on a short screen; the logo, the program, and Sign out never leave view. A fade says there is more. */
.side nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--chrome-3) transparent; }
.side nav.fade-end { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); }
.side nav.fade-start { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px); mask-image: linear-gradient(to bottom, transparent, #000 36px); }
.side nav.fade-start.fade-end { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 48px), transparent); }
.side .logo { display: block; padding: 0 var(--space-5) var(--space-4); }
.side .logo img { height: 40px; width: auto; display: block; }
.side .product { padding: 0 var(--space-5); margin: calc(-1 * var(--space-2)) 0 var(--space-4); font-size: 12px; color: var(--chrome-muted); font-weight: 600; letter-spacing: 0.02em; }
/* The sixteen-item admin list, with the program switcher above it, fits a 900px screen without scrolling. */
.nav-group { padding: 5px 0; }
.nav-group > span { display: block; padding: 0 var(--space-5) 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chrome-muted); }
.nav-group a {
  display: block; padding: 4px var(--space-5) 4px calc(var(--space-5) - 3px);
  border-left: 3px solid transparent; color: var(--chrome-text); font-weight: 500; font-size: 14px;
}
.nav-group a:hover { background: var(--chrome-2); color: #fff; text-decoration: none; }
.nav-group a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 0; }
.nav-group a.on { border-left-color: var(--accent); background: rgba(53, 175, 161, 0.1); color: #fff; font-weight: 700; }
.who { flex: none; margin-top: auto; padding: var(--space-3) var(--space-5) 0; border-top: 1px solid var(--chrome-line); font-size: 13px; color: var(--chrome-muted); }
.who .email { display: block; color: var(--chrome-text); font-weight: 600; overflow-wrap: anywhere; }
.who .role { display: block; font-size: 12px; margin-top: 1px; }
.who form { margin: var(--space-1) 0 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.linkish:focus-visible { outline-offset: 3px; }
.who .linkish { color: var(--accent); }
.who .linkish:focus-visible { outline-color: var(--accent); }

/* The program switcher: client over program as the control, the menu beneath it grouped by client. */
.switcher { position: relative; margin: 0 10px var(--space-4); }
.switcher summary {
  list-style: none; cursor: pointer; display: block; padding: 9px calc(var(--space-3) + 0.7rem + 8px) 9px var(--space-3);
  border: 1px solid var(--chrome-line); border-radius: 8px; background-color: var(--chrome-2);
  background-image: var(--chevron-dark); background-repeat: no-repeat; background-position: right var(--space-3) center; background-size: 0.7rem;
}
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary:hover { border-color: rgba(255, 255, 255, 0.2); }
.switcher summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.switcher[open] summary { border-radius: 8px 8px 0 0; background-image: var(--chevron-dark-up); border-bottom-color: transparent; }
.sw-client { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chrome-muted); line-height: 1.3; }
.sw-program { display: block; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; margin-top: 2px; overflow-wrap: anywhere; }
.sw-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 6; padding: 4px 0 6px;
  background: var(--chrome-2); border: 1px solid rgba(255, 255, 255, 0.16); border-top-color: var(--chrome-line); border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}
.sw-g { display: block; padding: 8px var(--space-3) 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chrome-muted); }
.sw-menu a { display: block; padding: 7px var(--space-3); color: var(--chrome-text); font-size: 13.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.sw-menu a:hover { background: var(--chrome-3); color: #fff; text-decoration: none; }
.sw-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
/* The program in view carries a check at the inset the chevron uses, so the two marks share a column. */
.sw-menu a.on {
  color: #fff; font-weight: 700; padding-right: calc(var(--space-3) * 2 + 0.7rem);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.5l3 3 6-7' fill='none' stroke='%2335AFA1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--space-3) center; background-size: 0.75rem;
}
.sw-add { margin-top: 4px; border-top: 1px solid var(--chrome-line); padding-top: 10px; }
.sw-menu a.sw-add { color: var(--accent); font-weight: 600; }
.sw-menu a.sw-add:hover { color: #fff; }

.main { padding: var(--space-6) var(--space-6) var(--space-7); max-width: 1480px; width: 100%; }
.section-head h2, .section-head h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.compare-col table td:first-child { min-width: 0; }
.topbar { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-5); flex-wrap: wrap; }
.page-head p { margin: var(--space-2) 0 0; color: var(--slate); max-width: 760px; text-wrap: pretty; }

/* Copy. A self-contained statement gets its own line; a line break carries meaning, never the accident of a column's width. */
.line { display: block; }
.nowrap { white-space: nowrap; }
.footnote { font-size: 12px; margin-top: var(--space-4); color: var(--slate); }
p.footnote { margin-bottom: 0; }
.lean, .footnote, .story .lede { text-wrap: pretty; }
/* A short block balances its lines, so it never ends on a word or two; a long paragraph falls back to normal wrapping. */
.line, .page-head p, .section-head p, .empty p, .status-line, .story-empty, .notice, .field small, .cov li, .fa-top p, .segment-head .sub, .loop-head .sub,
.pick .basis, .rec-text, .meta, .note, .pair-why, .decision p, .disclosure summary .s, .lineage, .st-lead, .st-line, .loop-table .stage, .loop-table .next-cell,
.login p, .defs dd, .tile .n, .domain > p, .energy p, p.muted, p.small { text-wrap: balance; }
/* A hint is a block under its control, so it wraps as a short paragraph of its own. */
.field small { display: block; margin-top: 4px; }
.notice .line + .line, .empty .line + .line, .footnote .line + .line { margin-top: 2px; }
/* Terms and their meanings, one per row. */
.defs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px var(--space-4); margin: 0; font-size: 13px; line-height: 1.5; }
.defs dt { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.defs dd { margin: 0; color: var(--slate); text-wrap: pretty; }
.footnote .defs { font-size: 12px; }
.defs-notice h3 { margin-bottom: var(--space-2); }
.defs-notice .notes { margin: var(--space-3) 0 0; font-size: 13px; color: var(--ink-2); }
/* A research finding reads one statement per line; its source sits beneath, muted. */
.fa-top .src, .cov .src { display: block; color: var(--slate); font-size: 12px; margin-top: 2px; }
.cov li b { display: block; }
.cov .finding { display: block; }
.seg-total { margin-top: var(--space-3); font-size: 13px; }
.page-head .btn { flex: none; }
/* A sync that has missed its hour reads in amber, in the head and on Data Health. */
.overdue { color: #b45309; font-weight: 600; }
a.overdue:hover { color: #b45309; }
.error-page .page-head { margin-bottom: var(--space-4); }

/* Cards and sections */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); }
.section { margin-top: var(--space-6); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--slate); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.grid-2.split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.grid-2.top { align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }

/* Metric tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles.six .tile { padding-left: 14px; padding-right: 14px; }
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-4) var(--space-4) var(--space-3); box-shadow: var(--shadow); }
.tile .label { font-size: 13px; color: var(--slate); font-weight: 600; white-space: nowrap; }
.tile .value { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 26px; line-height: 1.2; margin: 6px 0 4px; }
.tile .n { font-size: 12px; color: var(--slate); }
.tile.key { border-top: 3px solid var(--accent); }

/* Executive overview */
.scope-bar { position: relative; min-height: 38px; margin-bottom: var(--space-5); }
.scope { display: inline-flex; border: 1px solid var(--control); border-radius: 8px; background: #fff; overflow: hidden; }
.scope a, .scope span { display: block; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); border-right: 1px solid var(--control); line-height: 20px; }
.scope > :last-child { border-right: 0; }
.scope a:hover { background: var(--rule-2); text-decoration: none; }
.scope .on { background: var(--ink); color: #fff; }
.filters-disc { display: block; }
.filters-disc summary {
  position: absolute; top: 0; right: 0; height: 38px; display: flex; align-items: center;
  list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 0 calc(var(--space-4) * 2 + 0.7rem) 0 var(--space-4); border: 1px solid var(--control); border-radius: 8px; background: #fff;
  background-repeat: no-repeat; background-position: right var(--space-4) center; background-size: 0.7rem;
  background-image: var(--chevron);
}
.filters-disc summary::-webkit-details-marker { display: none; }
.filters-disc summary:hover { background-color: var(--rule-2); }
.filters-disc[open] summary { background-image: var(--chevron-up); }
.filters-body { margin-top: var(--space-4); padding: var(--space-4) var(--space-5) var(--space-1); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.filters-body .filters { margin-bottom: var(--space-3); }
.status-line { font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0 0 var(--space-5); max-width: 920px; }

.tiles.hero .tile { display: flex; flex-direction: column; padding: var(--space-4) var(--space-5) var(--space-4); }
.tiles.hero .tile .value { font-size: 34px; margin: 8px 0 4px; }
.tiles.hero .tile .n { font-size: 13px; }
.tile .cmp { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--rule-2); font-size: 12.5px; line-height: 1.5; color: var(--slate); }
.tile .cmp.good { color: var(--good); }
.tile .cmp.bad { color: var(--bad); }
.tile .cmp .row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--space-2); }
.tile .cmp .dir { display: inline-block; width: 10px; height: 10px; margin-right: var(--space-2); vertical-align: -1px; }
.tile .cmp .dir svg { width: 10px; height: 10px; display: block; }
.tile .cmp .k { white-space: nowrap; }
/* The direction and the value carry the tone; the label stays quiet so a worse comparison does not read as an error. */
.tile .cmp.good .k, .tile .cmp.bad .k { color: var(--slate); }
.tile .cmp .dir { color: inherit; }
/* The value sits on the right; when a row is too narrow it drops to its own line, still right-aligned. */
.tile .cmp b { font-weight: 600; white-space: nowrap; margin-left: auto; }

.funnel-card .section-head { margin-bottom: var(--space-4); }
/* Four steps and three connectors on seven equal tracks; labels share a baseline because every cell starts at the top. */
.funnel-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) auto; align-items: start; gap: var(--space-3); }
.funnel-strip .label { font-size: 12px; font-weight: 600; color: var(--slate); line-height: 1.3; white-space: nowrap; }
.funnel-strip .step, .funnel-strip .rate { text-align: center; min-width: 0; }
.funnel-strip .step .value { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 26px; line-height: 1.2; margin-top: 2px; }
.funnel-strip .rate { display: flex; flex-direction: column; align-items: center; }
.funnel-strip .rate .arrow { width: 48px; height: 10px; color: var(--rule-3); margin: 6px 0 2px; }
.funnel-strip .rate b { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.funnel-strip .end { align-self: stretch; justify-content: center; border-left: 1px solid var(--rule); padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); white-space: nowrap; }
.funnel-strip .end > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.funnel-strip .end b { font-weight: 700; font-size: 15px; }

.pick .kicker { color: var(--ink); font-size: 12px; }
.pick .basis { font-size: 13px; color: var(--slate); margin-bottom: var(--space-4); }
.pick-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.pick-body img, .pick-body .noimg { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--rule-2); display: block; }
.pick-body .noimg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--slate); }
.pick-text { min-width: 0; }
.pick-text .name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.pick-text .adname { margin-top: 4px; }
/* The third stat carries the longest label, so it gets the widest track. */
.pick-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--rule-2); }
.pick-stats b { display: block; font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 18px; line-height: 1.2; color: var(--ink); }
.pick-stats span { display: block; font-size: 12px; color: var(--slate); margin-top: 2px; white-space: nowrap; }

.details-stack { display: flex; flex-direction: column; gap: var(--space-3); }
/* Chart disclosures share a row so an open chart keeps the scale it was drawn at. */
.details-stack .grid-2 { gap: var(--space-3); align-items: start; }
.disclosure { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.disclosure summary {
  position: relative; list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: var(--space-4) calc(var(--space-5) * 2 + 0.7rem) var(--space-4) var(--space-5);
  background-repeat: no-repeat; background-position: right var(--space-5) center; background-size: 0.7rem;
  background-image: var(--chevron);
  border-radius: var(--radius);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover { background-color: var(--tint); }
.disclosure summary .t { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--ink); }
.disclosure summary .s { font-size: 13px; color: var(--slate); }
.disclosure[open] summary { border-bottom: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0; background-image: var(--chevron-up); }
.disclosure-body { padding: var(--space-5); }
.disclosure.flush .disclosure-body { padding: 0; }
.disclosure.flush .table-wrap { border: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: none; }

/* Tables */
/* Positioned so a screen-reader-only label inside a wide table (the mapping page's role selects) stays inside the scroll box instead of widening the page. */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
/* While a table can still scroll toward an edge, that edge fades, so the hidden columns announce themselves. */
.table-wrap.fade-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0, 0, 0, 0.08)); mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0, 0, 0, 0.08)); }
.table-wrap.fade-start { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.08), #000 56px); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.08), #000 56px); }
.table-wrap.fade-start.fade-end { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.08), #000 56px, #000 calc(100% - 56px), rgba(0, 0, 0, 0.08)); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.08), #000 56px, #000 calc(100% - 56px), rgba(0, 0, 0, 0.08)); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
th { font-size: 12px; font-weight: 700; color: var(--slate); background: var(--tint); position: sticky; top: 0; line-height: 1.3; text-wrap: balance; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
th:first-child, td:first-child { min-width: 190px; }
td .sub { display: block; font-size: 12px; color: var(--slate); }
/* A column heading's count sits under its name, in the heading's own weight. */
th .sub { display: block; font-size: 11px; font-weight: 600; color: var(--slate); margin-top: 2px; }
/* Panel comparison tables: one column per sample or group, so headings wrap instead of forcing a scroll. */
table.compare th.num { white-space: normal; min-width: 128px; vertical-align: top; }
table.compare th:first-child, table.compare td:first-child { min-width: 150px; }
tr.total td { font-weight: 700; background: var(--tint); border-top: 1px solid var(--rule); }
tr.group td { background: var(--brand-soft); font-weight: 700; font-size: 13px; }
.pair { display: inline-flex; flex-direction: column; align-items: flex-end; white-space: nowrap; line-height: 1.3; }
.pair b { font-weight: 600; }
.pair i { font-style: normal; color: var(--slate); font-size: 12px; }
table.stack .pair { align-items: flex-start; }
.id { white-space: nowrap; }

/* Status markers: text, not dots */
.status { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.status.active { color: var(--good); }
.status.paused, .status.archived, .status.muted { color: var(--slate); }
.status.issues { color: var(--bad); }
.status.proposed { color: var(--brand); }
.status.accepted { color: var(--good); }
.status.rejected { color: var(--bad); }
.status.done { color: var(--ink); }
.flag-mi { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--teal); padding: 1px 6px; border-radius: 4px; letter-spacing: 0.03em; }
/* Synthetic data carries this wherever its numbers show: a label, never a result. */
.flag-syn { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--ink-2); padding: 1px 6px; border-radius: 4px; letter-spacing: 0.03em; white-space: nowrap; vertical-align: 1px; }
h1 .flag-syn, h2 .flag-syn { font-family: "Manrope", sans-serif; vertical-align: middle; margin-left: 4px; }
.page-head p .flag-syn { vertical-align: middle; }
.proposal p.meta.prior { margin: 0 0 var(--space-2); }
.synthetic-flag { margin-bottom: var(--space-4); }
.synthetic-flag label { display: inline-flex; align-items: center; gap: 8px; }
/* A synthetic dataset, executive first: the recommendations, then one stacked bar per demographic, then the detail disclosures. */
.recs-card .section-head { margin-bottom: var(--space-3); }
.recs { margin: 0; padding: 0; list-style: none; }
.recs li { padding: 10px 0; border-top: 1px solid var(--rule-2); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; max-width: 920px; }
.recs li:first-child { border-top: 0; padding-top: 0; }
.recs li b { color: var(--ink); }
.recs-verdict { margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--rule); font-size: 14px; font-weight: 600; color: var(--ink); max-width: 920px; }
.recs-verdict .line + .line { font-weight: 500; color: var(--slate); }
.share-bars { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 6px var(--space-4); align-items: center; }
.share-row { display: contents; }
.share-row .l { font-size: 14px; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; padding-top: 14px; }
.share-row .stack { display: flex; height: 22px; border-radius: 4px; overflow: hidden; background: var(--rule-2); margin-top: 14px; }
/* Labels wear ink, not white: ink clears 5:1 on every one of the four fills, white does not on the amber. */
.share-row .seg { display: flex; align-items: center; justify-content: center; flex: 0 0 var(--w); min-width: 0; background: var(--c); color: var(--ink); font-size: 11.5px; font-weight: 600; font-style: normal; letter-spacing: 0.01em; }
/* A 2px surface gap between fills, so neighbors never touch. */
.share-row .seg + .seg { border-left: 2px solid var(--card); }
.share-row .seg span { overflow: hidden; white-space: nowrap; }
.share-row .verdict { font-size: 13.5px; color: var(--ink-2); padding-top: 14px; }
.share-row .verdict b { color: var(--ink); }
.share-row .note { grid-column: 2 / -1; font-size: 12px; color: var(--slate); margin: -2px 0 2px; }
.share-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px var(--space-5); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule-2); font-size: 12.5px; color: var(--ink-2); }
.share-legend span { display: inline-flex; align-items: center; gap: 7px; }
.share-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; }
.share-legend small { color: var(--slate); font-size: 12px; }
.detail-stack .disclosure + .disclosure { margin-top: var(--space-3); }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-3); }
.detail-head p { margin: 0; font-size: 13px; max-width: 640px; }
/* The menu never runs past the card: a long option label shortens rather than widening the page. */
.detail-head .actions { min-width: 0; max-width: 100%; }
.detail-head .actions select { max-width: 100%; min-width: 0; text-overflow: ellipsis; height: 32px; font-size: 13px; padding-left: 10px; padding-right: calc(10px * 2 + 0.7rem); background-position: right 10px center; }
.dist { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px var(--space-4); align-items: center; font-size: 13.5px; }
.dist .l { min-width: 0; overflow-wrap: anywhere; }
.dist .bar { height: 12px; background: var(--rule-2); border-radius: 3px; overflow: hidden; }
.dist .bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; }
.dist .v { text-align: right; white-space: nowrap; color: var(--ink-2); }
.method { margin: 0 0 var(--space-4); font-size: 14px; color: var(--ink-2); max-width: 920px; }
.cells { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); margin-top: 4px; font-size: 12.5px; }
.cells span { min-width: 0; }
.codebook { margin-top: var(--space-4); }
.codebook table { font-size: 12.5px; }
.export-actions { align-self: flex-start; }
.energy-list { margin: 0; font-size: 14px; color: var(--ink-2); }
.energy-list .line + .line { font-size: 12.5px; color: var(--slate); }
.signal .prior-ref { margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--rule-2); font-size: 13px; color: var(--slate); }
.signal .prior-ref .flag-syn { margin-right: 4px; vertical-align: 1px; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: var(--space-1); }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--control); border-radius: 8px; padding: 8px var(--space-3); background: #fff;
}
/* One height for every control that can share a row. */
input[type=text], input[type=email], input[type=date], input[type=number], input[type=url], input[type=search], select { height: 40px; padding-top: 0; padding-bottom: 0; }
textarea { min-height: 88px; resize: vertical; display: block; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
/* Keyboard focus is visible on everything that takes it; mouse clicks on links and buttons do not draw a ring. */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .scope a:focus-visible, .gbtn:focus-visible { border-radius: 8px; }
/* The date picker's glyph is drawn here and inset by the text padding, like the select chevron. */
input[type=date] { padding-right: calc(var(--space-3) * 2 + 16px); }
input[type=date]::-webkit-datetime-edit { padding: 0; }
input[type=date]::-webkit-calendar-picker-indicator {
  position: absolute; right: var(--space-3); top: 50%; transform: translateY(-50%); width: 16px; height: 16px; margin: 0; padding: 0; opacity: 1; cursor: pointer; color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1.5' y='2.5' width='13' height='12' rx='2' fill='none' stroke='%23666E80' stroke-width='1.5'/%3E%3Cpath d='M1.5 6.5h13M5 1v3M11 1v3' fill='none' stroke='%23666E80' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
input[type=date] { position: relative; }
select {
  appearance: none; -webkit-appearance: none;
  padding-inline-end: calc(var(--space-3) * 2 + 0.7rem);
  background-repeat: no-repeat; background-position: right var(--space-3) center; background-size: 0.7rem;
  background-image: var(--chevron);
}
.field { margin-bottom: var(--space-4); }
/* A file field: the browser's button restyled as the small secondary button, the file name in the app's type. */
input[type=file] { display: block; width: 100%; font: inherit; font-size: 13px; color: var(--slate); }
input[type=file]::file-selector-button {
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1; height: 32px; padding: 0 12px; margin: 0 10px 0 0;
  border-radius: 8px; border: 1px solid var(--control); background: #fff; color: var(--ink); cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--rule-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-5); }
.form-grid .wide { grid-column: 1 / -1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap;
  padding: 0 var(--space-4); border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; vertical-align: middle;
}
.btn:hover { text-decoration: none; background: var(--ink-hover); border-color: var(--ink-hover); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--control); }
.btn.secondary:hover { background: var(--rule-2); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
/* Controls that sit in a row with small buttons share their height. */
.proposal .actions select, .proposal .actions input, .v-decide input, .section-head .actions select, .role-form select { height: 32px; font-size: 13px; padding-left: 10px; padding-right: 10px; }
.proposal .actions select, .section-head .actions select, .role-form select { padding-inline-end: calc(10px * 2 + 0.7rem); background-position: right 10px center; }
/* A select in a section head (Panel by Group) never runs past the column, however long its option text. */
.section-head .actions { min-width: 0; max-width: 100%; }
.section-head .actions select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.role-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.role-form select { width: auto; }
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.filters { display: flex; gap: var(--space-3); align-items: flex-end; flex-wrap: wrap; margin-bottom: var(--space-4); }
.filters .field { margin: 0; min-width: 150px; }
.filter-actions { display: flex; gap: var(--space-2); align-items: center; }
.notice { border: 1px solid var(--rule); border-left: 3px solid var(--brand); background: #fff; padding: var(--space-3) var(--space-4); border-radius: 8px; font-size: 14px; }
.notice.warn { border-left-color: var(--spark); }
.notice.bad { border-left-color: var(--bad); }
.notice.ok { border-left-color: var(--good); }
.notice.flash { margin-bottom: var(--space-4); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice li { margin: 2px 0; }
form .notice.bad { margin-bottom: var(--space-4); }
/* Validation: the message sits under the field it concerns and the control is outlined. */
.field .error { display: block; color: var(--bad); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { outline-color: rgba(192, 57, 43, 0.25); }
.empty { padding: var(--space-6); text-align: center; color: var(--slate); background: var(--card); border: 1px dashed var(--control); border-radius: var(--radius); }
.empty h3 { color: var(--ink); margin-bottom: var(--space-2); }

/* A typed dollar amount: the sign is drawn by the field, so people type only the number. */
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: var(--space-3); top: 0; bottom: 0; display: flex; align-items: center; font-size: 14px; color: var(--slate); pointer-events: none; }
.money input { padding-left: 24px; }
label .hint { font-weight: 400; color: var(--slate); margin-left: 6px; }
textarea.short { min-height: 64px; }

/* Charts: each is drawn twice; the phone frame is squarer so bars keep their height on a narrow screen. */
.chart { width: 100%; height: auto; display: block; }
.chart.phone { display: none; }
.chart text { font-family: "Manrope", sans-serif; font-size: 11px; fill: var(--slate); }
.chart text.empty-msg { font-size: 15px; }
.chart .mark path { fill: var(--ink-2); }
.chart .mark-rule { stroke: var(--rule-3); stroke-width: 1; stroke-dasharray: 2 3; }
.legend { display: flex; gap: var(--space-2) var(--space-4); font-size: 12px; color: var(--slate); flex-wrap: wrap; margin-top: var(--space-2); }
.legend span { white-space: nowrap; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--c); }
.legend span.mark::before { width: 7px; height: 7px; margin: 0 9px 0 2px; transform: rotate(45deg); background: var(--ink-2); }

/* Journey */
.stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5) 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.stages li { position: relative; padding: 26px 8px 0; font-size: 12px; line-height: 1.35; color: var(--slate); text-align: center; min-width: 0; overflow-wrap: anywhere; }
.stages li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--rule); }
.stages li:first-child::before { left: 50%; }
.stages li:last-child::before { right: 50%; }
.stages li::after { content: ""; position: absolute; top: 4px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--rule-3); }
.stages li.done::before, .stages li.in_progress::before { background: var(--accent); }
.stages li.done::after { background: var(--accent); border-color: var(--accent); }
.stages li.in_progress::after { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(53, 175, 161, 0.22); }
.stages li.done, .stages li.in_progress { color: var(--ink); font-weight: 600; }
.stages li .name { display: block; }
.stages li .when { display: block; font-weight: 400; color: var(--slate); font-size: 11px; margin-top: 2px; }

.segment { margin-top: var(--space-6); }
/* A demographic opens with its name under a brand rule; the headline reads beside it. */
.segment-head { display: flex; align-items: baseline; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap; padding-top: var(--space-3); border-top: 3px solid var(--accent); }
.segment-head h2, .segment-head h3 { font-size: 18px; }
.segment-head .sub { margin: 0; color: var(--slate); font-size: 14px; }
.card > .segment-head { border-top: 0; padding-top: 0; margin-bottom: var(--space-3); }
.fa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.fa { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.fa-top { padding: var(--space-4); background: var(--brand-soft); border-bottom: 1px solid var(--rule); }
.fa-top h3 { margin-bottom: 6px; }
.fa-top p { font-size: 12.5px; margin: 0; color: var(--ink-2); }
.fa-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }
.ad { border-top: 1px solid var(--rule-2); padding-top: var(--space-3); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); }
.ad img, .ad .noimg { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--rule-2); display: block; }
.ad-detail { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.ad-hero img, .ad-hero .noimg { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; background: var(--rule-2); }
.ad-hero .noimg { display: flex; align-items: center; justify-content: center; color: var(--slate); font-size: 12px; }
.ad .noimg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--slate); text-align: center; }
.ad .name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.adname { font-size: 12px; color: var(--slate); overflow-wrap: anywhere; }
.ad .adname { margin-top: 2px; }
.page-head .adname { display: block; margin-top: 4px; }
.ad .copy { font-size: 13px; margin: 4px 0; }
.ad .mini { font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ad .mini b { font-weight: 700; }
.lineage { font-size: 12px; color: var(--slate); margin-top: 4px; }
.ad-detail p .sub, .card > p .sub { display: block; font-size: 12px; color: var(--slate); }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li { margin: 2px 0; }

/* Program brief as a document; the same list the case study prints. */
.brief-card .brief { grid-template-columns: 220px minmax(0, 1fr); }
.brief-card .brief dd { max-width: 800px; }
.brief ul { margin: 0; padding-left: 20px; }
.brief li { margin: 2px 0; }
.stage-notes { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px var(--space-4); margin: var(--space-4) 0 0; font-size: 13.5px; }
.stage-notes dt { font-weight: 700; color: var(--ink-2); }
.stage-notes dd { margin: 0; color: var(--ink-2); }

/* Decision outcomes: a quiet second line in the log, a dated line on a card. */
table.decisions th:first-child, table.decisions td:first-child { min-width: 150px; }
td .sub.pending, .decision .pending { color: var(--slate); }
.decision .pending { font-size: 13px; margin-top: 4px; }
.decision .when.outcome { margin-top: 8px; }
.decision .when.outcome + p { color: var(--ink-2); font-size: 14px; }

/* Motivation */
.domains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.domain { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--c); border-radius: var(--radius); padding: var(--space-4); display: flex; flex-direction: column; }
.domain-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
/* The domain's color as a plain dot; the name carries the meaning, no two-letter code. */
.domain-head .dot, .lead-domain .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.domain-head .dot { margin-right: 8px; }
.domain-head h3 { display: flex; align-items: center; }
.index { text-align: right; }
.index .v { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 22px; line-height: 1; }
.index small { display: block; font-size: 11px; }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; gap: var(--space-2); align-items: center; font-size: 13px; margin: 5px 0; }
.bar { height: 8px; background: var(--rule-2); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--c); }
.bar-row .v { text-align: right; font-size: 12px; color: var(--ink-2); }
.lean { font-size: 12.5px; margin-top: var(--space-3); padding: var(--space-3); background: var(--tint); border-radius: 6px; }
.share { margin-top: auto; padding-top: var(--space-3); font-size: 12px; color: var(--slate); }
.share .pct { display: block; font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); }
.share .bar { display: block; height: 4px; margin: 6px 0 5px; }
.energies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.energy { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-4); border-left: 4px solid var(--c); }
.energy h3 { margin: 2px 0 10px; }
.energy .ma { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-size: 22px; font-weight: 600; }

/* Lineage compare */
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
.compare-col { border: 1px solid var(--rule); border-radius: 8px; padding: var(--space-3); background: #fff; }
.compare-col.after { border-style: dashed; }

/* Case study: one sheet that reads like a report and prints as one. */
.story { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-7) 56px; max-width: 1120px; }
.story table { font-size: 13px; }
.story th { font-size: 11.5px; }
.story th, .story td { padding: 8px 8px; }
.story th:first-child, .story td:first-child { min-width: 150px; }
.story-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.story-head h1 { font-size: 30px; margin: 6px 0 8px; }
.story-sub { color: var(--slate); margin: 0; font-size: 15px; }
.story .band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-5) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.story .band .label { font-size: 13px; font-weight: 600; color: var(--slate); white-space: nowrap; }
.story .band .value { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 26px; line-height: 1.2; margin-top: 4px; }
.story-sec { margin-top: var(--space-7); }
.story-sec > h2 { font-size: 22px; padding-bottom: var(--space-3); border-bottom: 2px solid var(--ink); margin-bottom: var(--space-5); }
.story .lede { color: var(--ink-2); max-width: 760px; margin-bottom: var(--space-5); }
.story-empty { color: var(--slate); margin: 0; }
.story ul { margin: 0; padding-left: 20px; }
.story li { margin: 2px 0; }
.brief { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-4) var(--space-5); margin: 0; }
.brief dt { font-weight: 700; font-size: 14px; color: var(--ink-2); padding-top: 1px; }
.brief dd { margin: 0; max-width: 700px; }
.brief dd p { margin: 0; }
.wave { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--rule); }
.wave:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.wave h3 { font-size: 18px; }
.wave-meta { color: var(--slate); font-size: 14px; margin: 4px 0 0; }
.wave h4.kicker { margin: var(--space-5) 0 var(--space-3); }
.coverage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); font-size: 13.5px; line-height: 1.5; }
.cov > b { display: block; font-size: 14px; margin-bottom: 2px; }
.cov p { margin: 0; color: var(--ink-2); }
.cov li { margin: 3px 0; color: var(--ink-2); }
.cov li b { color: var(--ink); }
.cov .src { color: var(--slate); }
/* Three across: the chapters hold three or six creatives, so no row ends in empty slots, and each stat label keeps one line. */
.creatives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.crow + .crow { margin-top: var(--space-4); }
.creative { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.creative a { display: block; }
.creative img, .creative .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--rule-2); }
.creative .noimg { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--slate); border-bottom: 1px solid var(--rule); }
.creative .cap { padding: 10px 12px 0; font-size: 13px; line-height: 1.4; }
.creative .cap b, .creative .cap span { display: block; }
.creative .cap span { color: var(--ink-2); }
.creative .cap span.muted { color: var(--slate); font-size: 12px; margin-top: 2px; }
.creative .cstats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-2); padding: 10px 12px 12px; margin-top: auto; }
.creative .cstats b { display: block; font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--ink); }
.creative .cstats span { display: block; font-size: 11px; line-height: 1.3; color: var(--slate); margin-top: 2px; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); }
.metric { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 10px 10px; display: flex; flex-direction: column; min-width: 0; }
.metric .label { font-size: 12px; font-weight: 600; color: var(--slate); line-height: 1.3; white-space: nowrap; }
.metric .value { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 22px; line-height: 1.2; margin-top: auto; padding-top: 6px; }
.metric .n { font-size: 12px; color: var(--slate); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.decision { padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--tint); border-radius: 0 8px 8px 0; margin-top: var(--space-3); }
.decision:first-of-type { margin-top: 0; }
.decision .when { font-size: 12px; color: var(--slate); margin-bottom: 4px; }
.decision p { margin: 0; }
.decision p + p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.hbars { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 10px var(--space-4); align-items: center; font-size: 13.5px; }
.hbars .l { min-width: 0; overflow-wrap: anywhere; }
.hbars .bar { height: 14px; background: var(--rule-2); border-radius: 3px; overflow: hidden; }
.hbars .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.hbars .v { text-align: right; font-weight: 700; white-space: nowrap; }
.hbars .v.none { color: var(--slate); font-weight: 400; font-size: 12.5px; }
.bars-title { margin: var(--space-5) 0 var(--space-3); }
/* Original beside MI-informed. Not .pair: that is the count-and-rate span in funnel tables. */
.mi-pair { margin-top: var(--space-5); }
.mi-pair:first-of-type { margin-top: 0; }
.pair-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.arm table { width: 100%; }
.arm { border: 1px solid var(--rule); border-radius: 8px; padding: var(--space-4); }
.arm.after { border-style: dashed; }
.arm-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-3); margin: var(--space-2) 0 var(--space-3); align-items: start; }
.arm-body img, .arm-body .noimg { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; background: var(--rule-2); display: block; }
.arm-body .noimg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--slate); }
.arm .name { font-weight: 600; }
.arm .copy { font-size: 13px; margin: 6px 0 0; }
.small { font-size: 12px; }
.pair-why { margin: var(--space-3) 0 0; color: var(--ink-2); font-size: 14px; }
.from-draft-line { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 0; }
.from-draft-line .anchor { white-space: nowrap; }
.recs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.rec { border: 1px solid var(--rule); border-radius: 8px; padding: var(--space-4); }
.rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-2); }
.rec p { margin: 0 0 6px; }

/* A proposal reads like one panel of the deck: kicker, title, the proposal, then the direction it sets out, in two columns. */
.proposal.anchored { border-left: 4px solid var(--c); }
.proposal h3 { margin-top: 2px; }
.proposal .rec-text { margin: 0 0 var(--space-4); max-width: 760px; }
.spec { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px var(--space-5); margin: 0 0 var(--space-4); font-size: 14px; line-height: 1.5; }
.spec dt { font-weight: 700; font-size: 13px; color: var(--ink-2); padding-top: 1px; }
.spec dd { margin: 0; max-width: 760px; }
.spec .headline { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.4; quotes: "\201C" "\201D"; }
.evidence { margin: 0; }
.evidence > summary {
  list-style: none; cursor: pointer; display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate);
  padding: 2px calc(0.7rem + 8px) 2px 0; background-repeat: no-repeat; background-position: right center; background-size: 0.7rem;
  background-image: var(--chevron);
}
.evidence > summary::-webkit-details-marker { display: none; }
.evidence > summary:hover { color: var(--ink); }
.evidence[open] > summary { background-image: var(--chevron-up); }
.evidence ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.evidence li { margin: 2px 0; }
.proposal .actions { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--rule-2); }
.proposal .meta { font-size: 12px; color: var(--slate); margin: 8px 0 0; }
/* The saved status and its note read as text; the controls to change them sit beneath. */
.proposal .meta.decided { font-size: 13px; color: var(--ink-2); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--rule-2); }
.proposal .meta.decided .note { display: block; margin-top: 4px; color: var(--ink); }
.proposal .meta.decided + .actions { margin-top: var(--space-3); padding-top: 0; border-top: 0; }
/* Labels for controls whose purpose is clear from context; still read aloud. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rec.proposal .meta { margin-top: var(--space-3); }

/* The optional half of the manual form, folded until it is wanted. */
.more { margin: 0 0 var(--space-4); }
.more > summary {
  list-style: none; cursor: pointer; display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand);
  padding-right: calc(0.7rem + 8px); background-repeat: no-repeat; background-position: right center; background-size: 0.7rem;
  background-image: var(--chevron);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { text-decoration: underline; }
.more[open] > summary { margin-bottom: var(--space-4); background-image: var(--chevron-up); }
/* Three short columns: where the data comes from, what each measure means, how people are counted. */
.story-foot { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: var(--space-5) var(--space-6); font-size: 12.5px; line-height: 1.55; color: var(--slate); }
.story-foot p { margin: 0; }
.story-foot .defs { font-size: 12.5px; }
.story-foot .notes .line + .line { margin-top: 3px; }

/* Matched Creative: the loop per demographic, five stages on one rail. The lead line says the state; the marker repeats it. */
.loop + .loop { margin-top: var(--space-4); }
.loop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.loop-head h2 { font-size: 18px; }
.loop-head h2 a { color: var(--ink); }
.loop-head .sub { margin: 2px 0 0; font-size: 13px; color: var(--slate); }
.next { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; min-width: 0; }
.next .k { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.next .t { font-weight: 600; color: var(--ink-2); }
/* The next step can be a sentence; its button wraps rather than running past the card. */
.next .btn { white-space: normal; text-align: left; height: auto; min-height: 32px; padding: 6px 12px; line-height: 1.3; }
.loop-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.st { position: relative; padding: 24px var(--space-4) 0 0; min-width: 0; }
.st::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--rule); }
.st:last-child::before { display: none; }
.st.done::before { background: var(--accent); }
.st .mark { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--rule-3); }
.st.done .mark { background: var(--accent); border-color: var(--accent); }
.st.progress .mark { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(53, 175, 161, 0.22); }
.st-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.st-lead { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-top: 3px; overflow-wrap: anywhere; }
.st-lead a { color: inherit; }
.st.none .st-lead { color: var(--slate); font-weight: 500; }
.st-line { font-size: 12.5px; color: var(--slate); line-height: 1.4; margin-top: 2px; }

/* The demographic page: the signal, then the brief, each the full width (a half-width brief ran twice the signal's height and left the column beside it empty), then the draft form and one block per prompt. */
.signal-brief { grid-template-columns: minmax(0, 1fr); align-items: start; }
/* On a wide screen the leading domain and the strongest energies share a row; the brief's fields run in two columns. */
.signal-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-4) var(--space-6); align-items: start; }
.signal-energies .kicker { margin-bottom: var(--space-1); }
.brief-card .spec { grid-template-columns: 160px minmax(0, 1fr) 160px minmax(0, 1fr); column-gap: var(--space-5); }
.brief-card .spec dd { max-width: none; }
.lead-domain { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: 14px; }
.lead-domain .dot { margin-top: 4px; }
.lead-domain .lean { margin-top: var(--space-2); }
.energy-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px 160px; gap: var(--space-3); align-items: center; font-size: 13px; margin: 6px 0; }
.energy-row .n b { display: block; font-weight: 600; line-height: 1.25; }
.energy-row .n small { display: block; font-size: 11px; color: var(--slate); }
.energy-row .v { text-align: right; font-size: 12.5px; color: var(--ink-2); }
.energy-row .l { font-size: 12.5px; color: var(--slate); }
.brief-card.proposal .meta { margin-top: var(--space-3); }
.draft .section-head { margin-bottom: var(--space-4); }
.draft .section-head p { max-width: 640px; }
.draft-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.draft-grid .btn { margin-top: var(--space-1); }
fieldset.checks { border: 0; padding: 0; margin: 0 0 var(--space-4); min-width: 0; }
fieldset.checks legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: var(--space-2); padding: 0; }
.checks label { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 500; font-size: 14px; color: var(--ink); margin: 0 0 10px; }
.checks label input { margin: 0; position: relative; top: 3px; }
.checks label .t { min-width: 0; line-height: 1.4; }
.checks label .hint { display: block; margin: 0; font-size: 12.5px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:disabled:hover { background: var(--ink); border-color: var(--ink); }
/* A button whose form is on its way to the server: it reads what it is doing and takes no second click. */
.btn.busy { pointer-events: none; opacity: 0.7; cursor: progress; }
.empty.inset { border: 0; background: none; padding: var(--space-4) 0 var(--space-2); }
.prompt-block .section-head h2 { font-size: 18px; }
.prompt-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.original { padding: var(--space-4); }
.o-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-3); align-items: start; }
.o-body img, .o-body .noimg { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--rule-2); display: block; }
.o-body .noimg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--slate); }
.o-body .name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.o-body .copy { font-size: 13px; margin: 4px 0; color: var(--ink-2); }
.o-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-2); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--rule-2); }
.o-stats b { display: block; font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--ink); }
.o-stats span { display: block; font-size: 11px; line-height: 1.3; color: var(--slate); margin-top: 2px; white-space: nowrap; }
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-4); align-items: start; }
.variants-empty { padding: var(--space-5); }
.variant { padding: var(--space-4) var(--space-5); }
.variant.anchored { border-left: 4px solid var(--c); }
.variant.rejected.anchored { border-left-color: var(--rule-3); }
.v-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
.copy-spec { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px var(--space-4); margin: 0; font-size: 14px; line-height: 1.5; }
.copy-spec dt { font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding-top: 2px; }
.copy-spec dt .chars { display: block; font-weight: 500; font-size: 11.5px; color: var(--slate); margin-top: 1px; font-variant-numeric: tabular-nums; }
.copy-spec dt .chars.over { color: var(--bad); font-weight: 700; }
.copy-spec dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copy-spec .headline { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.4; quotes: "\201C" "\201D"; }
.variant.rejected .copy-spec dd { color: var(--ink-2); }
.variant .over-note { margin: var(--space-3) 0 0; color: var(--bad); }
.variant .evidence { margin-top: var(--space-3); }
.variant .meta { font-size: 12px; color: var(--slate); margin: var(--space-3) 0 0; }
.variant .meta.decided { font-size: 13px; color: var(--ink-2); padding-top: var(--space-3); border-top: 1px solid var(--rule-2); }
.variant .meta.decided .note { display: block; margin-top: 4px; color: var(--ink); }
.v-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule-2); }
.v-decide { display: flex; gap: var(--space-2); align-items: center; flex: 1 1 280px; min-width: 0; }
.v-decide input { flex: 1 1 140px; min-width: 0; }
.v-edit .field { margin-bottom: var(--space-3); }
.btn.copied { border-color: var(--good); color: var(--good); }
.status.draft { color: var(--brand); }
.status.approved { color: var(--good); }
.status.launched { color: var(--ink); }

/* Overview: where each demographic stands, one line each. */
.loop-summary .section-head { margin-bottom: var(--space-3); }
.loop-table { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr); gap: 0 var(--space-5); font-size: 13.5px; }
.loop-table > div { padding: 9px 0; border-bottom: 1px solid var(--rule-2); min-width: 0; line-height: 1.4; }
.loop-table > .h { padding: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); border-bottom: 1px solid var(--rule); }
.loop-table > div:nth-last-child(-n + 3) { border-bottom: 0; }
.loop-table .stage { color: var(--ink-2); }
.loop-table .stage b { color: var(--ink); font-weight: 600; }

/* Sign-in and the other pages seen without a session: dark, centered, one action. */
body:has(> .login) { background: var(--chrome); }
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--space-6) var(--space-5); background: var(--chrome); color: #fff; }
.login-card { width: 100%; max-width: 400px; text-align: center; }
.login-logo { height: 52px; width: auto; margin: 0 auto var(--space-6); display: block; }
.login h1 { color: #fff; font-size: 21px; font-weight: 600; letter-spacing: 0.005em; margin: 0 0 var(--space-5); }
.login p { color: var(--chrome-text); font-size: 15px; margin: calc(-1 * var(--space-2)) 0 var(--space-5); }
.login p .line + .line { margin-top: 4px; }
.about-card { width: 100%; max-width: 560px; text-align: left; }
.about-card .login-logo { margin-left: 0; }
.about-card h1 { font-size: 24px; margin-bottom: var(--space-3); }
.about .about-lede { margin: 0 0 var(--space-6); color: #fff; font-size: 16px; }
.about section { padding: var(--space-4) 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.about h2 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 var(--space-2); }
.about section p, .about li { color: var(--chrome-text); font-size: 15px; margin: 0; text-wrap: pretty; }
.about .about-lede, .about .line { text-wrap: pretty; }
.about section .line { color: var(--chrome-text); font-size: 15px; }
.about ul { margin: 0; padding-left: 18px; }
.about li + li { margin-top: 4px; }
.about .gbtn { margin-top: var(--space-5); }
.about .login-links { justify-content: flex-start; }
.login-links { display: flex; justify-content: center; gap: var(--space-5); margin-top: var(--space-6); }
.login-links a { color: var(--chrome-text); font-size: 13px; text-decoration: none; }
.login-links a:hover, .login-links a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Google's sign-in control on a dark surface: white, the G at the start, one weight. */
.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 240px; height: 44px; padding: 0 20px;
  border: 1px solid #fff; border-radius: 8px; background: #fff; color: #1F1F1F; font-weight: 600; font-size: 14px; line-height: 1;
}
.gbtn:hover { background: #EEF0F3; border-color: #EEF0F3; text-decoration: none; }
.gbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gbtn svg { flex: none; }

/* How It Works on the Overview: six steps on one rail, each with its live figure; folds to a line. */
.how { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: var(--space-5); }
.how > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-5); border-radius: var(--radius); }
.how > summary::-webkit-details-marker { display: none; }
.how > summary:hover { background: var(--tint); }
.how > summary .t { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); }
/* The figures run over every wave, unlike the scoped page beneath; the summary says so while the steps are open. */
.how > summary .s { flex: 1 1 auto; font-size: 13px; color: var(--slate); }
.how:not([open]) > summary .s { display: none; }
.how > summary .toggle {
  font-size: 13px; font-weight: 600; color: var(--brand); flex: none;
  padding-right: calc(0.7rem + 8px); background: var(--chevron) no-repeat right center / 0.7rem;
}
.how[open] > summary { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--rule-2); }
.how[open] > summary .toggle { background-image: var(--chevron-up); }
.how > summary .opened, .how[open] > summary .closed { display: none; }
.how[open] > summary .opened { display: inline; }
.how-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-6); margin: 0; padding: var(--space-4) var(--space-5) var(--space-5); list-style: none; }
.how-rail li { position: relative; min-width: 0; }
/* A thin arrow between steps, at the inset the step text uses, so the six read as one sequence. */
.how-rail li + li::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-6) + 6px); top: 7px; width: 20px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h17M13 1l4 4-4 4' fill='none' stroke='%23CFC9BE' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.how-rail a { display: block; font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--ink); }
.how-rail a:hover { color: var(--brand); text-decoration: none; }
.how-text { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
/* A figure may run to a second line ("19% lower cost per completed exercise"); it never runs under the next step. */
.how-n { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--slate); text-wrap: balance; }

/* Between 1181 and 1400 the main column is too narrow for seven funnel tracks, six metrics, or six tiles in one row. */
@media screen and (max-width: 1400px) {
  /* The funnel in two rows: four steps, then the three rates centered under the gaps between them, then the end-to-end figures. */
  .funnel-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-2); }
  .funnel-strip .step { grid-row: 1; }
  .funnel-strip .step:nth-child(1) { grid-column: 1 / 3; }
  .funnel-strip .step:nth-child(3) { grid-column: 3 / 5; }
  .funnel-strip .step:nth-child(5) { grid-column: 5 / 7; }
  .funnel-strip .step:nth-child(7) { grid-column: 7 / 9; }
  .funnel-strip .rate { grid-row: 2; }
  .funnel-strip .rate:nth-child(2) { grid-column: 2 / 4; }
  .funnel-strip .rate:nth-child(4) { grid-column: 4 / 6; }
  .funnel-strip .rate:nth-child(6) { grid-column: 6 / 8; }
  .funnel-strip .rate .arrow { margin: 2px 0 0; }
  .funnel-strip .end { grid-row: 3; grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: var(--space-6); border-left: 0; margin-top: var(--space-3); padding: var(--space-3) 0 0; border-top: 1px solid var(--rule); }
  .funnel-strip .end > div { gap: var(--space-3); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
  .metric { padding: 12px 14px 10px; }
  .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Under 1300 the six steps are too narrow side by side; they run down the page as name, text, figure. */
@media screen and (max-width: 1300px) {
  .how-rail { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 var(--space-5) var(--space-2); }
  .how-rail li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 0 var(--space-5); align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule-2); }
  .how-n { white-space: nowrap; }
  .how-rail li:last-child { border-bottom: 0; }
  .how-rail li + li::before { display: none; }
  .how-rail a { font-size: 15px; }
  .how-text, .how-n { margin-top: 0; }
}

@media screen and (max-width: 1180px) {
  /* A table beside a form has no room at this width; the form follows the table. */
  .grid-2.split { grid-template-columns: minmax(0, 1fr); }
  /* Tiles two by two so every label keeps one line. */
  .tiles, .tiles.hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Filters as a four-column grid; the buttons share the row after the last field. */
  .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); align-items: end; }
  .filters .field { min-width: 0; }
  .filter-actions { grid-column: span 2; }
  /* Text-heavy tables become cards: the first cell is the title, the rest flow as labeled fields, the wide ones on their own line. */
  table.stack thead { display: none; }
  table.stack, table.stack tbody { display: block; width: 100%; }
  table.stack tr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px var(--space-5); padding: 12px 16px 14px; border-bottom: 1px solid var(--rule); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; flex: 1 1 150px; max-width: 100%; border: 0; padding: 0; text-align: left; }
  table.stack td:first-child, table.stack td.wide { flex: 1 1 100%; }
  table.stack td:first-child { font-size: 14px; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; color: var(--slate); margin-bottom: 1px; }
  /* A label that carries a product mark on the desktop heading keeps it here, on the tile, before the words. */
  table.stack td.tdm[data-label]::before { padding-left: 20px; background: var(--m) 0 50% / 15px 15px no-repeat; }
  table.stack td.num { text-align: left; white-space: normal; }
  table.stack td:empty { display: none; }
  /* The row's buttons sit together at the right end of the card. */
  table.stack td:has(> .btn), table.stack td:has(> form > .btn) { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 0 0 auto; margin-left: auto; align-self: flex-end; }
  table.stack td:has(> form > .btn) form { display: flex; gap: 6px; align-items: center; margin: 0; }
  table.stack td .btn[style] { margin: 0 !important; }
  table.stack tr.total { background: var(--tint); }
  table.stack tr.total td { border-top: 0; }
  .table-wrap table.funnel th:first-child, .table-wrap table.funnel td:first-child { min-width: 150px; }
  /* The ad's image sits above its text; a half-width card is too narrow for both side by side. */
  .ad-detail { grid-template-columns: minmax(0, 1fr); }
  .ad-hero { max-width: 240px; }
  .creative .cstats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .creative .cstats > div:last-child { grid-column: 1 / -1; }
  .story .band { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .story .band > div { grid-column: span 2; }
  .story .band > div:nth-child(n + 4) { grid-column: span 3; }
  .story { padding: var(--space-6) var(--space-6); }
  .creatives { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4, .domains, .energies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-grid { grid-template-columns: minmax(0, 1fr); }
  .signal-body { grid-template-columns: minmax(0, 1fr); }
  .signal-energies .kicker { margin-top: var(--space-4); }
  .brief-card .spec { grid-template-columns: 180px minmax(0, 1fr); }
  /* Narrower tracks: the longest stage word still fits on its own line. */
  .stages li { padding: 26px 3px 0; font-size: 11.5px; }
  /* The loop strip's five tracks are narrow here; each caption is written to fit one line at this size. */
  .st { padding-right: var(--space-2); }
  .st-lead { font-size: 13px; }
  .st-line { font-size: 12px; }
  /* The case study footer: sources and definitions side by side, the counting notes beneath, each term above its meaning. */
  .story-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-foot > div:last-child { grid-column: 1 / -1; }
  .story-foot .defs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-foot .defs dt { margin-top: 6px; white-space: normal; }
  .story-foot .defs dt:first-child { margin-top: 0; }
  .prompt-grid { grid-template-columns: 280px minmax(0, 1fr); }
  .variants { grid-template-columns: minmax(0, 1fr); }
  .energy-row { grid-template-columns: 110px minmax(0, 1fr) 44px 140px; }
}
@media screen and (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: var(--page); }
  .side { display: none; }
  /* The phone header is a disclosure: the bar is its summary, the full-width sheet under it holds everything the sidebar holds. */
  .topbar { display: block; position: sticky; top: 0; z-index: 5; background: var(--chrome); border-bottom: 1px solid var(--chrome-line); }
  .topbar > summary { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 var(--space-4); list-style: none; cursor: pointer; }
  .topbar > summary::-webkit-details-marker { display: none; }
  .topbar .brand img { height: 30px; display: block; }
  .topbar > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 4px; }
  .topbar .menu-btn { font-weight: 700; font-size: 14px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 8px; color: #fff; }
  .topbar .menu-btn .opened, .topbar[open] .menu-btn .closed { display: none; }
  .topbar[open] .menu-btn .opened { display: inline; }
  .topbar[open] .menu-btn { background: #fff; color: var(--ink); border-color: #fff; }
  .topbar .sheet { position: fixed; left: 0; right: 0; top: 55px; bottom: 0; background: var(--chrome); color: var(--chrome-text); overflow-y: auto; padding: var(--space-4) 0 var(--space-6); z-index: 4; }
  body:has(.topbar[open]) { overflow: hidden; }
  .sheet .switcher { margin: 0 var(--space-4) var(--space-3); }
  .sheet .switcher summary { padding-top: 11px; padding-bottom: 11px; }
  .sheet .sw-program { font-size: 15px; }
  .sheet .sw-menu a { padding: 9px var(--space-3); font-size: 14px; }
  /* Groups flow into two columns so the whole menu fits a phone screen without scrolling. */
  .sheet nav { column-count: 2; column-gap: var(--space-2); padding: 0 var(--space-2); }
  .sheet .nav-group { padding: var(--space-1) 0 var(--space-2); break-inside: avoid; }
  .sheet .nav-group > span { padding: var(--space-2) var(--space-3) var(--space-1); }
  .sheet .nav-group a { padding: 7px var(--space-3) 7px calc(var(--space-3) - 3px); font-size: 14px; }
  .sheet .who { margin: var(--space-2) var(--space-4) 0; padding: var(--space-3) 0 0; }
  /* The six steps run down the page: name, text, figure. */
  .how > summary { padding: var(--space-3) var(--space-4); }
  .how-rail { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 var(--space-4) var(--space-2); }
  .how-rail li { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--rule-2); }
  .how-n { white-space: normal; }
  .how-rail li:last-child { border-bottom: 0; }
  .how-rail li + li::before { display: none; }
  .how-rail a { font-size: 15px; }
  .how-text { margin-top: 4px; }
  .how-n { margin-top: 4px; }
  .main { padding: var(--space-5) var(--space-4) var(--space-6); }
  h1 { font-size: 22px; }
  .grid-2, .grid-2.split, .grid-3, .grid-4, .form-grid, .compare-row { grid-template-columns: minmax(0, 1fr); }
  .domains, .energies { grid-template-columns: minmax(0, 1fr); }
  .tiles, .tiles.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .chart.desk { display: none; }
  .chart.phone { display: block; }
  .chart text { font-size: 12px; }
  .chart text.empty-msg { font-size: 14px; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .field { min-width: 0; }
  .filter-actions { grid-column: 1 / -1; }
  .filter-actions .btn { flex: 1 1 0; }
  th:first-child, td:first-child { min-width: 150px; }
  /* Nine columns cannot fit a phone: each row is a card, the label on top, the eight figures in two columns. */
  table.funnel thead { display: none; }
  table.funnel, table.funnel tbody { display: block; width: 100%; }
  table.funnel tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px var(--space-4); padding: 12px 16px 14px; border-bottom: 1px solid var(--rule); }
  table.funnel tr:last-child { border-bottom: 0; }
  table.funnel td { display: block; border: 0; padding: 0; min-width: 0; text-align: left; white-space: normal; }
  table.funnel td:first-child { grid-column: 1 / -1; font-size: 14px; padding-bottom: 2px; }
  table.funnel td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; color: var(--slate); margin-bottom: 1px; }
  table.funnel .pair { align-items: flex-start; }
  table.funnel tr.total { background: var(--tint); }
  table.funnel tr.total td { border-top: 0; }
  .tile .value { font-size: 22px; }
  .tiles.hero .tile { padding: var(--space-3); }
  .tiles.hero .tile .value { font-size: 26px; }
  .tiles.hero .tile .n, .tile .cmp { font-size: 12px; }
  .scope-bar { min-height: 0; }
  .scope { display: flex; }
  .scope a, .scope span { flex: 1 1 auto; text-align: center; padding: 8px 8px; font-size: 13px; white-space: nowrap; }
  .filters-disc summary { position: static; margin-top: var(--space-3); height: 38px; width: 100%; }
  .status-line { font-size: 15px; }
  .funnel-strip { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .funnel-strip .step:nth-child(n), .funnel-strip .rate:nth-child(n), .funnel-strip .end:nth-child(n) { grid-column: auto; grid-row: auto; }
  .funnel-strip .step { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
  .funnel-strip .step .value { font-size: 22px; margin: 0; }
  .funnel-strip .rate { flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--space-2); min-width: 0; margin-left: var(--space-3); padding: 4px 0 4px var(--space-3); border-left: 2px solid var(--rule); text-align: left; }
  .funnel-strip .rate .arrow { display: none; }
  .funnel-strip .end { flex-direction: column; gap: var(--space-2); border-left: 0; padding: var(--space-3) 0 0; margin-top: var(--space-2); border-top: 1px solid var(--rule); }
  /* The third stat carries the longest label, so it gets the widest track. */
  /* The progression runs down the page: node on the left, name beside it, one rule through every node. */
  .stages { display: block; }
  .stages li { padding: 0 0 14px 28px; text-align: left; line-height: 1.4; }
  .stages li::before { top: 8px; bottom: -6px; left: 5px; right: auto; width: 2px; height: auto; }
  .stages li:first-child::before { left: 5px; }
  .stages li:last-child::before { display: none; }
  .stages li::after { top: 2px; left: 0; }
  .stages li .when { display: inline; margin-left: 6px; }
  .ad-detail { grid-template-columns: minmax(0, 1fr); }
  .ad-hero { max-width: 240px; }
  table.stack tr { padding: 12px 14px 14px; }
  .table-wrap table:not(.stack):not(.funnel) td:first-child, .table-wrap table:not(.stack):not(.funnel) th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--rule-2); }
  .table-wrap table:not(.stack):not(.funnel) th:first-child { background: var(--tint); z-index: 2; }
  /* The sheet runs edge to edge on a phone so copy keeps the page gutter, not the gutter plus a card inset. */
  .story { margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-4)) 0; border: 0; border-radius: 0; padding: var(--space-5) var(--space-4) var(--space-6); max-width: none; }
  .story-head h1 { font-size: 24px; }
  .story-head .btn { width: 100%; text-align: center; }
  .story .band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .story .band > div, .story .band > div:nth-child(n + 4) { grid-column: auto; }
  .story .band > div:nth-child(5) { grid-column: 1 / -1; }
  .story .band .value { font-size: 22px; }
  .story .band .label { font-size: 12px; }
  .story-sec { margin-top: var(--space-6); }
  .story-sec > h2 { font-size: 19px; }
  .brief, .brief-card .brief { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .brief dt { padding: 0; margin-bottom: -10px; }
  .coverage { grid-template-columns: minmax(0, 1fr); }
  .creatives { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .crow + .crow { margin-top: var(--space-3); }
  .creative .cstats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .creative .cstats > div:last-child { grid-column: 1 / -1; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .metric { padding: 10px 12px 8px; }
  .metric .value { font-size: 20px; }
  .hbars { grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--space-3); font-size: 13px; }
  .hbars .l { grid-column: 1 / -1; margin-top: 8px; }
  .hbars .v { font-size: 12.5px; }
  /* Each demographic stacks: name, bar, verdict, note. */
  .share-bars { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .share-row .l { padding-top: 14px; }
  .share-row .stack { margin-top: 0; }
  .share-row .verdict { padding-top: 0; font-size: 13px; }
  .share-row .note { grid-column: 1 / -1; margin: 0; }
  .share-row:first-child .l { padding-top: 0; }
  .dist { grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--space-3); }
  .dist .l { grid-column: 1 / -1; margin-top: 6px; }
  .pair-row { grid-template-columns: minmax(0, 1fr); }
  .story-foot { grid-template-columns: minmax(0, 1fr); }
  /* The two columns stack; each label sits above its text like a stacked table's. */
  .spec, .brief-card .spec { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .spec dt { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); padding: 0; margin-top: 10px; }
  .spec dt:first-child { margin-top: 0; }
  /* Definitions stack on a phone: the term above its meaning. */
  .defs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .defs dt { margin-top: 6px; white-space: normal; }
  .defs dt:first-child { margin-top: 0; }
  /* The loop runs down the page on a phone: the rail turns vertical, each stage a row. */
  .loop-head { margin-bottom: var(--space-4); }
  .loop-head .next { width: 100%; justify-content: space-between; }
  .loop-stages { grid-template-columns: minmax(0, 1fr); }
  .st { padding: 0 0 var(--space-4) 28px; }
  .st:last-child { padding-bottom: 0; }
  .st::before { top: 8px; bottom: -6px; left: 6px; right: auto; width: 2px; height: auto; }
  .st .mark { top: 1px; }
  .draft-grid { grid-template-columns: minmax(0, 1fr); }
  .prompt-grid { grid-template-columns: minmax(0, 1fr); }
  .energy-row { grid-template-columns: 100px minmax(0, 1fr) 40px; row-gap: 0; margin: 10px 0; }
  .energy-row .l { grid-column: 2 / -1; font-size: 12px; line-height: 1.3; }
  .copy-spec { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .copy-spec dt { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); padding: 0; margin-top: 10px; }
  .copy-spec dt:first-child { margin-top: 0; }
  .copy-spec dt .chars { margin: 0; }
  .v-decide { flex-wrap: wrap; }
  .v-decide input { flex: 1 1 100%; }
  .loop-table { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .loop-table > .h { display: none; }
  .loop-table > div { padding: 3px 0; border-bottom: 0; }
  .loop-table > .who-row { padding-top: 10px; font-weight: 600; }
  .loop-table > .next-cell { padding-bottom: 10px; border-bottom: 1px solid var(--rule-2); }
  .loop-table > div:nth-last-child(-n + 3) { border-bottom: 0; }
}

/* Print: the sheet is the page. Chrome goes away; nothing breaks inside a card, a chapter head, or a table. */
@media print {
  @page { size: Letter; margin: 0.55in 0.6in 0.6in; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff; }
  body { font-size: 11.5px; }
  .topbar, .side, .no-print, .notice.flash { display: none !important; }
  .shell { display: block; background: none; min-height: 0; }
  .main { padding: 0; max-width: none; width: auto; }
  .story { border: 0; border-radius: 0; padding: 0; max-width: none; }
  .story-head h1 { font-size: 26px; }
  .story-sub { font-size: 12px; }
  .story .band { margin-top: 18px; padding: 14px 0; gap: 12px; }
  .story .band .label { font-size: 11px; }
  .story .band .value { font-size: 22px; }
  .story-sec { margin-top: 18px; }
  .story-sec > h2 { font-size: 18px; margin-bottom: 10px; padding-bottom: 8px; }
  /* Chapters flow one after another; what never splits is a card, a figure, a table, a chapter head with its coverage, or a brief entry. */
  .story-head, .band, .stages, .brief dd, .story .lede, .wave-head, .creative, .wave-results, .decision, .table-wrap, .hbars, .mi-pair, .rec, .story-foot { break-inside: avoid; }
  /* A heading, a lede, a kicker, or a short chapter head never sits at the foot of a page apart from what follows it. A chapter head that
     carries the research in full is too tall to keep with its creative row: forbidding a break after it leaves no legal break at all, and a
     browser with no legal break ignores every avoid rule in the chain and splits a card wherever the page ends. */
  .story-sec > h2, .story .lede, .wave-head:not(.long), .wave h3, .wave h4.kicker, .bars-title, .brief dt { break-after: avoid; }
  /* The waves open a fresh page: the brief and progression make the opening page, the chapters run on from there. */
  .story-sec.waves { break-before: page; }
  .wave { margin-top: 22px; padding-top: 22px; }
  .wave:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
  .stages { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 14px; }
  .story .lede { font-size: 11.5px; margin-bottom: 10px; }
  .brief { grid-template-columns: 150px minmax(0, 1fr); gap: 10px 20px; }
  .brief dt { font-size: 11.5px; }
  .stages li { font-size: 10px; padding-top: 22px; }
  .stages li .when { font-size: 9px; }
  .wave h3 { font-size: 15px; }
  .wave-meta { font-size: 11px; }
  .wave h4.kicker { margin: 16px 0 8px; font-size: 10px; }
  .coverage { font-size: 11px; gap: 10px 24px; }
  .cov > b { font-size: 11.5px; }
  /* Six creatives to a row on paper, so a chapter's creative is one or two rows; each card's three figures read as label and value lines. */
  .creatives { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .crow { break-inside: avoid; page-break-inside: avoid; }
  .crow + .crow { margin-top: 8px; }
  .creative { border-radius: 6px; }
  .creative .cap { font-size: 9.5px; padding: 6px 7px 0; line-height: 1.35; }
  .creative .cap span.muted { font-size: 9px; }
  .creative .cstats { padding: 5px 7px 7px; gap: 4px 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .creative .cstats > div:last-child { grid-column: 1 / -1; }
  .creative .cstats b { font-size: 10.5px; }
  .creative .cstats span { font-size: 8.5px; margin-top: 1px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .metric { padding: 7px 10px 6px; border-radius: 6px; }
  .metric .label { font-size: 10px; }
  .metric .value { font-size: 15px; padding-top: 3px; }
  .metric .n { font-size: 9.5px; }
  .decision { padding: 6px 10px; font-size: 11px; margin-top: 6px; }
  .decision .when { font-size: 10px; }
  .decision p + p, .decision .when.outcome + p { font-size: 11px; }
  .table-wrap { overflow: visible; border-radius: 6px; -webkit-mask-image: none !important; mask-image: none !important; }
  .story table { font-size: 9px; }
  .story th, .story td { padding: 5px 4px; }
  .story th { position: static; font-size: 8.5px; white-space: normal; }
  .story th:first-child, .story td:first-child { min-width: 90px; }
  .story table.funnel { table-layout: fixed; }
  .story table.funnel th:first-child, .story table.funnel td:first-child { width: 15%; }
  .story table.funnel .pair { white-space: normal; }
  .story td .sub { font-size: 9px; }
  .story .pair { flex-direction: row; align-items: baseline; gap: 4px; }
  .story .pair i { font-size: 8.5px; }
  .story .pair i::before { content: "·"; margin-right: 4px; }
  .hbars { grid-template-columns: 170px minmax(0, 1fr) auto; font-size: 11px; gap: 5px 12px; }
  .hbars .bar { height: 11px; }
  .hbars .v.none { font-size: 10.5px; }
  .bars-title { margin: 16px 0 8px; }
  .arm-body img, .arm-body .noimg { width: 80px; height: 80px; }
  .arm-body { grid-template-columns: 80px minmax(0, 1fr); gap: 10px; margin: 6px 0 8px; }
  .arm { padding: 10px 12px; }
  .arm .copy { font-size: 10px; margin-top: 4px; }
  .arm table { font-size: 10px !important; }
  .arm table td { padding: 3px 4px; }
  .arm .pair i { font-size: 8.5px; }
  .pair-row { gap: 12px; }
  .pair-why { font-size: 10.5px; margin-top: 6px; }
  .from-draft-line { font-size: 10px; }
  .proposal.anchored { border-left-width: 3px; }
  .rec { padding: 10px 12px; }
  .recs { gap: 10px; }
  .rec-head { margin-bottom: 4px; }
  .proposal .rec-text { font-size: 11px; margin-bottom: 8px; }
  .spec { grid-template-columns: 130px minmax(0, 1fr); gap: 4px 16px; font-size: 10.5px; margin-bottom: 8px; }
  .spec dt { font-size: 10.5px; }
  .spec .headline { font-size: 12.5px; }
  /* A closed disclosure would print as a stranded label; an open one prints its list. */
  .story .evidence:not([open]) { display: none; }
  .evidence > summary { background-image: none; padding-right: 0; font-size: 9.5px; }
  .evidence ul { font-size: 10.5px; }
  .story-foot { margin-top: 20px; padding-top: 10px; font-size: 9px; line-height: 1.45; gap: 12px 16px; }
  .story-foot .defs { font-size: 9px; gap: 1px 10px; }
  .story-foot .notes .line + .line { margin-top: 1px; }
  .cov .src { font-size: 9.5px; }
  /* A creative card never splits: as a block (not a flex column) Chrome keeps its image, caption, and figures on one page. */
  .creative { display: block; }
  .creative a, .creative .cap { break-after: avoid; }
  .creative .cstats { break-inside: avoid; margin-top: 0; }
  a { color: inherit; text-decoration: none; }
}

/* How It Works: a step's follow-on link runs on from its text, in body type, not the step heading's. */
.how-rail .how-more { display: inline; }
.how-rail .how-more a { display: inline; font-family: inherit; font-size: inherit; font-weight: 600; color: var(--brand); line-height: inherit; }
.how-rail .how-more a:hover { text-decoration: underline; }
/* On the rail, every step's figure sits on one baseline however long the text above it runs. */
@media screen and (min-width: 1301px) {
  .how-rail li { display: flex; flex-direction: column; }
  .how-rail .how-n { margin-top: auto; padding-top: 8px; }
}

/* Ad Platforms: the intelligence layer as three zones, signal in on the left, platforms out on the right. */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); padding: 0; }
.flow-zone { position: relative; padding: var(--space-5); min-width: 0; }
.flow-zone + .flow-zone { border-left: 1px solid var(--rule-2); }
/* The same thin arrow How It Works uses, set on the rule between zones. */
.flow-zone + .flow-zone::before {
  content: ""; position: absolute; left: -11px; top: 50%; width: 21px; height: 21px; margin-top: -10px; border-radius: 50%;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M2 5h15M13 1l4 4-4 4' fill='none' stroke='%23A39C90' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 13px 7px;
  border: 1px solid var(--rule-2);
}
.flow .kicker { margin-bottom: var(--space-3); }
.flow-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.flow-list li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 5px 0; border-bottom: 1px solid var(--rule-2); }
.flow-list li:last-child { border-bottom: 0; }
.flow-list span { color: var(--ink); min-width: 0; }
.flow-list b { font-size: 12.5px; font-weight: 700; color: var(--good); white-space: nowrap; }
.flow-list b.off { color: var(--slate); font-weight: 600; }
.flow-names { margin: var(--space-2) 0 0; font-size: 12.5px; line-height: 1.5; color: var(--slate); text-wrap: pretty; }
.flow-link { display: inline-block; margin-top: var(--space-3); font-size: 13px; font-weight: 600; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.flow-steps li { position: relative; min-width: 0; }
.flow-steps li + li::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-5) + 4px); top: 6px; width: 16px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h17M13 1l4 4-4 4' fill='none' stroke='%23CFC9BE' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.flow-steps b { display: block; font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 16px; line-height: 1.25; }
.flow-steps span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
.flow-note { margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--rule-2); font-size: 13px; color: var(--slate); text-wrap: balance; }

/* Platform and product marks. An ad platform's official mark is a mask filled with the text color, so it reads as quietly as a word; the name beside it carries the meaning. */
.pm { display: inline-block; width: var(--pm, 18px); height: var(--pm, 18px); flex: none; vertical-align: middle; background-color: currentColor;
  -webkit-mask-image: var(--m); mask-image: var(--m); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* Without a mark to mask, or without mask support, nothing shows rather than a filled square. */
.pm:not([style*="--m"]) { display: none; }
@supports not ((mask-image: url("x.svg")) or (-webkit-mask-image: url("x.svg"))) { .pm { display: none; } }
/* Our own products sit on their tiles, in color, beside the column they name; the tile centers on the first line of the label. */
.th-brand { display: inline-flex; align-items: flex-start; gap: 7px; white-space: nowrap; }
.brand-tile { width: 18px; height: 18px; display: block; flex: none; margin-top: -1px; }
/* The platforms a client can connect, as a quiet strip under its name: connected in ink, requested in slate, the rest faint. One line, always; the column grows to hold it. */
.pm-strip { display: flex; flex-wrap: nowrap; gap: 5px; margin-top: 7px; }
.pm-strip .pm { --pm: 14px; color: var(--rule-3); }
.pm-strip .pm.asked { color: var(--slate); }
.pm-strip .pm.on { color: var(--ink); }

/* Platform cards: one treatment for every platform. Mark, name and status on top, one line, details folded at the foot. */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.pf { display: flex; flex-direction: column; padding: var(--space-4) var(--space-5); min-width: 0; }
.pf-head { display: flex; align-items: center; gap: 10px; }
.pf-head .pm { --pm: 24px; color: var(--slate); }
.pf-head .pm.on { color: var(--ink); }
.pf-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-name { font-size: 17px; letter-spacing: -0.005em; }
.pf-head .status { font-size: 12px; }
.pf-line { margin: var(--space-2) 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
/* Closed cards in a row share a height, so their dividers sit level at the bottom whatever their descriptions run to. */
.pf-foot { margin-top: auto; padding-top: var(--space-4); }
/* While a request form is open, the cards beside it stretch to the form; every divider then follows its description instead of the row's bottom. */
.pf-grid:has(.pf-req[open]) .pf-foot { margin-top: 0; }
/* A requested platform has no request line, so its foot keeps that line's height as empty space and its divider stays level with its neighbors'. Only where a form exists on some card: a viewer sees none. */
.pf-grid:has(.pf-req) .pf:not(.pf-wide):not(:has(.pf-req)) .pf-foot::after { content: ""; display: block; height: 1lh; }
.pf-foot:not(:empty) { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.pf-foot > .more { margin: 0; width: 100%; }
.pf-foot > .more:first-child { padding-top: var(--space-3); border-top: 1px solid var(--rule-2); }
.pf-foot > .more > summary { font-size: 13px; }
.pf-foot > .more[open] > summary { margin-bottom: var(--space-3); }
.pf-foot .defs { font-size: 12.5px; margin-bottom: var(--space-2); }
.pf-req form { margin: 0 0 var(--space-2); }
.pf-req .field { margin-bottom: var(--space-3); }
.pf-req textarea.short { min-height: 56px; }
.pf-req .pf-access { margin: 0 0 var(--space-3); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.pf-req .field small.muted { font-size: 12px; line-height: 1.4; text-wrap: pretty; }
.pf-req input::placeholder { color: var(--slate); opacity: 0.7; }
/* Meta, the one platform with a connector, spans the row: name and line on the left, what it does today on the right. */
.pf-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-3) var(--space-6); align-items: start; padding: var(--space-5); }
.pf-wide .pf-name { font-size: 20px; }
.pf-wide .pf-head { gap: 12px; }
.pf-wide .pf-head .pm { --pm: 28px; }
.pf-wide .pf-line { font-size: 14px; max-width: 460px; }
.pf-wide .pf-foot { grid-column: 1 / -1; margin-top: 0; padding-top: 0; }
/* The wide card's request form holds the measure of the three-column forms; an ID input never runs edge to edge. */
.pf-wide .pf-req form, .pf-wide .pf-req .pf-access { max-width: 560px; }
.pf-facts { padding-left: var(--space-6); border-left: 1px solid var(--rule-2); }
.pf-facts .defs { font-size: 13px; gap: 6px var(--space-5); }
.pf-facts .defs dd { color: var(--ink-2); }

/* Measured Profiles at the top of Audience Motivation: the count and its growth beside the sources it comes from. */
.measured { margin-bottom: var(--space-5); scroll-margin-top: 72px; }
.measured-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-6); align-items: start; }
.measured-total .v { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 34px; line-height: 1.1; }
.measured-total > .muted { font-size: 13px; margin: 2px 0 var(--space-3); }
.measured-total .axis-note { margin: 2px 0 0; font-size: 12px; color: var(--slate); }
.measured-sources { box-shadow: none; }
.measured-sources th:first-child, .measured-sources td:first-child { min-width: 0; }
.measured-sources .status { white-space: nowrap; }
.measured .footnote { margin: var(--space-4) 0 0; }

@media screen and (max-width: 1180px) {
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flow-zone:nth-child(2) { grid-column: 1 / -1; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--rule-2); }
  .flow-zone:nth-child(2)::before { display: none; }
  .flow-zone:nth-child(3) { border-left: 1px solid var(--rule-2); }
  /* Nine cards stay three by three down to a small laptop; two columns would strand the last one. */
  .pf-grid { gap: var(--space-3); }
  .pf { padding: var(--space-4); }
  .pf-name { font-size: 16px; }
  .pf-line { font-size: 13px; }
  .measured-body { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}
@media screen and (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-zone, .flow-zone:nth-child(2) { grid-column: auto; grid-row: auto; padding: var(--space-4); }
  .flow-zone + .flow-zone, .flow-zone:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule-2); }
  .flow-zone:nth-child(2) { border-bottom: 0; }
  .flow-zone + .flow-zone::before { display: none; }
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
  .flow-steps li:nth-child(3)::before { display: none; }
  .pf-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  /* One column: no row to level against, so a requested card keeps no empty line. */
  .pf-grid:has(.pf-req) .pf:not(.pf-wide):not(:has(.pf-req)) .pf-foot::after { content: none; }
  .pf-wide { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
  .pf-facts { padding-left: 0; border-left: 0; padding-top: var(--space-3); border-top: 1px solid var(--rule-2); }
  .pf-facts .defs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pf-facts .defs dt { margin-top: 8px; }
  .pf-facts .defs dt:first-child { margin-top: 0; }
  .measured-total .v { font-size: 30px; }
}

/* Meta changes. The controls card on an ad's page: one row per object (ad, ad set, campaign), its state, and the changes it takes.
   The list owns the columns and each row is a subgrid, so the state and action columns share one edge down the card
   however many buttons a row carries. */
.controls .ctl-list { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) max-content; column-gap: var(--space-4); }
.ctl { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule-2); }
.ctl:first-child { border-top: 0; padding-top: 0; }
.ctl:last-child { padding-bottom: 0; }
.ctl-what b { display: block; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ctl-state { font-size: 13px; color: var(--ink-2); }
.ctl-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
/* The card's one action reads apart from the status tokens before it: underlined, in the link color. */
.ad .lineage a.change { font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; white-space: nowrap; }
/* The confirm page: what will change, for whom, in one card; the budget field and the confirm box under it. */
.confirm { max-width: 720px; }
.confirm .confirm-defs { margin: 0 0 var(--space-5); font-size: 14px; gap: 6px var(--space-5); }
.confirm .confirm-defs dd .sub { display: block; font-size: 12px; color: var(--slate); margin-top: 1px; }
.confirm .cannot { margin: 0 0 var(--space-4); color: var(--ink-2); font-size: 14px; }
.confirm .cannot .line + .line { margin-top: 2px; }
.confirm .field.check label { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.confirm .field.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.confirm .notice { margin-bottom: var(--space-4); }
.confirm .notice .line + .line { margin-top: 2px; }
.other-changes { margin: var(--space-3) 0 0; }
@media screen and (max-width: 860px) {
  .controls .ctl-list { grid-template-columns: minmax(0, 1fr); }
  .ctl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ctl-actions { justify-content: flex-start; }
  .confirm .confirm-defs { gap: 0; }
  .confirm .actions .btn { flex: 1 1 0; }
}
/* The client form's shared-account helper sits above the ID it fills; the Pages list folds under the field. */
#meta-pick { margin-bottom: 6px; }
.pages-list { margin: 8px 0 0; }
.pages-list > summary { font-size: 12.5px; }
.pages-list ul { font-size: 13px; margin-top: 4px; }
.pages-list li .id { font-size: 12px; margin-left: 4px; }

/* Sample-data banner: above everything on every page of a program showing sample data, on screen and in print. Never a one-shot notice. */
.sample-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin: 0 0 var(--space-5); padding: 10px var(--space-4); border: 1px solid var(--spark); border-left: 4px solid var(--spark); background: #FFF6EE; border-radius: 8px; }
.sample-banner .t { font-size: 14px; font-weight: 700; color: var(--ink); }
.sample-banner a { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Program plan. The hard constraint reads first, in ink; the phases run on one rail with owner, dates, and status. */
.constraint { margin: 0 0 var(--space-5); padding: 12px var(--space-4); background: var(--ink); color: #fff; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.constraint b { color: #fff; font-weight: 700; }
.constraint .muted { color: var(--chrome-text); }
.plan-card .section-head { margin-bottom: var(--space-4); }
.phases { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--space-4); margin: 0; padding: 0; list-style: none; }
.phase { position: relative; padding: 24px var(--space-2) 0 0; min-width: 0; }
.phase::before { content: ""; position: absolute; top: 6px; left: 0; right: calc(-1 * var(--space-4)); height: 2px; background: var(--rule); }
.phase:last-child::before { right: 0; }
.phase.done::before, .phase.in_progress::before { background: var(--accent); }
.phase .mark { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--rule-3); }
.phase.done .mark { background: var(--accent); border-color: var(--accent); }
.phase.in_progress .mark { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(53, 175, 161, 0.22); }
.ph-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); line-height: 1.3; }
.phase.in_progress .status-word { color: var(--brand); }
.phase.done .status-word { color: var(--good); }
.phase.overdue .status-word, .phase.late_start .status-word { color: #b45309; }
.ph-name { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink); margin-top: 4px; overflow-wrap: anywhere; }
.ph-meta { font-size: 12.5px; color: var(--slate); margin-top: 4px; line-height: 1.4; }
.ph-note { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; text-wrap: pretty; }
.phase-table td.wide { max-width: 420px; }
.phase-table ul.plain { padding-left: 16px; }
.phase-edit td { vertical-align: middle; }
.phase-edit input[type=text] { min-width: 180px; }
.phase-edit select { min-width: 120px; }

/* Survey results and the test readout: the finding first, in one card, then the figures. */
.topline .kicker { margin-bottom: 4px; }
.topline h2 { font-size: 20px; margin-bottom: var(--space-2); text-wrap: balance; }
.topline p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 860px; }
.topline p .line + .line { margin-top: 3px; }
.survey-dist { font-size: 13.5px; }
.survey-dist .l { line-height: 1.35; }
.sample-card .line { font-size: 13.5px; color: var(--ink-2); }
.arms { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.arm-card { border-left: 4px solid var(--rule-3); }
.arm-card.motivation { border-left-color: var(--accent); }
.arm-card .message { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.4; margin: 4px 0 var(--space-4); color: var(--ink); text-wrap: pretty; }
.metrics.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metrics.five .metric .label { white-space: normal; text-wrap: balance; }
.metric .value.text { font-family: "Manrope", sans-serif; font-weight: 600; font-size: 15px; line-height: 1.35; }
.readout-table th:first-child, .readout-table td:first-child { min-width: 170px; }
.cells-edit th:first-child, .cells-edit td:first-child { min-width: 170px; }
.cells-edit input[type=text] { min-width: 96px; }
.cells-edit td { vertical-align: middle; }

@media screen and (max-width: 1400px) {
  .metrics.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-5); }
  /* Two rows of the rail: the line does not run off the end of a row into the next. */
  .phase:nth-child(4)::before { right: 0; }
}
@media screen and (max-width: 1180px) {
  /* The phases run down the page: node on the left, one rule through every node. */
  .phases { display: block; }
  .phase { padding: 0 0 var(--space-4) 28px; }
  .phase:last-child { padding-bottom: 0; }
  .phase::before, .phase:nth-child(4)::before { top: 8px; bottom: -6px; left: 6px; right: auto; width: 2px; height: auto; }
  .phase:last-child::before { display: none; }
  .phase .mark { top: 1px; }
  .ph-head { justify-content: flex-start; gap: 2px var(--space-3); }
}
@media screen and (max-width: 860px) {
  .sample-banner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .constraint { font-size: 14px; }
  .constraint .muted { display: block; }
  .metrics.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics.five .metric:last-child { grid-column: 1 / -1; }
  .topline h2 { font-size: 18px; }
}
@media print {
  /* The banner prints with the page; filters, settings, and the action buttons do not. */
  .sample-banner { display: flex; border: 2px solid #000; border-left-width: 6px; background: #fff; padding: 8px 12px; margin-bottom: 14px; }
  .sample-banner a, .sample-card, .filters, .page-head .actions { display: none !important; }
  .constraint { border: 2px solid #000; }
  .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .phase:nth-child(4)::before { right: 0; }
  .arms { grid-template-columns: minmax(0, 1fr); }
  .metrics.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .metrics.five .metric:last-child { grid-column: auto; }
  /* What never splits: a figure, a card that is one reading, an answer group, a phase. A long card may break between groups. */
  .topline, .arm-card, .table-wrap, .phase, .metric, .signal-cost, .share-row, .dist, .constraint { break-inside: avoid; }
  /* A heading never ends a page apart from what it names. */
  .section-head, .topline .kicker, .share-row .l, .page-head { break-after: avoid; }
  /* A card's heading and its first group stay together; a heading never ends a page on its own. */
  .card > .section-head { break-inside: avoid; }
  .share-bars.stacked .share-row:first-child, .card > .section-head + .dist, .card > .section-head + .metrics { break-before: avoid; }
  .card > .section-head + .share-bars.stacked > .share-row:first-child { break-before: avoid; }
  /* The cross-tab card opens a fresh page. The break sits on a spacer after the left column, not on the card, so no
     zero-height fragment of the card (its top border) is painted at the foot of the page before. */
  .stack-col::after { content: ""; display: block; height: 0; break-after: page; }
  /* No shadows on paper: a card that opens the next page would otherwise leave its shadow as a hairline at the foot of this one. */
  .card, .topline, .table-wrap, .tile, .disclosure, .how { box-shadow: none; }
  .section.keep { break-inside: avoid; }
  /* The two result cards run one after the other on paper; each answer group is a block that stays whole. */
  .grid-2.top { display: block; }
  .grid-2.top > .card + .card { margin-top: 14px; }
  .share-bars.stacked { display: block; }
  .share-bars.stacked .share-row { display: block; padding-top: 10px; }
  .share-bars.stacked .share-row:first-child { padding-top: 0; }
  .share-bars.stacked .share-row .l { padding-top: 0; }
  .share-bars.stacked .share-legend { margin-top: 12px; }
  .disclosure:not([open]) { display: none; }
}

/* Share bars in a half-width card: each group runs down the card (name, bar, verdict, note), so the bar keeps its full width. */
.share-bars.stacked { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.share-bars.stacked .share-row .l { padding-top: 16px; }
.share-bars.stacked .share-row:first-child .l { padding-top: 0; }
.share-bars.stacked .share-row .stack { margin-top: 0; }
.share-bars.stacked .share-row .verdict { padding-top: 2px; font-size: 13px; }
.share-bars.stacked .share-row .note { grid-column: 1 / -1; margin: 0; }

/* Signal capture cost: four cells across; two by two on a phone. */
.metrics.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics.four .metric .label { white-space: normal; text-wrap: balance; }
.signal-cost .footnote { margin-top: var(--space-3); }
@media screen and (max-width: 860px) { .metrics.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Survey Results: the answers and the signal cost stack in the left column beside the taller cross-tab, so the column never sits empty. */
.stack-col { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.stack-col .metrics.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack-col .signal-cost .section-head p { max-width: none; }
@media print {
  .stack-col { display: block; }
  .stack-col > .card + .card { margin-top: 14px; }
}

/* Signal cost and readout tiles: a caption wraps rather than cutting off, at every width. */
.metrics.four .metric .n, .metrics.five .metric .n { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: pretty; line-height: 1.35; }
/* The tiles share three rows (label, value, caption) across the row of tiles, so a wrapped label or caption in one tile never moves the value in its neighbor. */
.metrics.four .metric, .metrics.five .metric { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
.metrics.four .metric .value, .metrics.five .metric .value { margin-top: 0; padding-top: 6px; align-self: end; }
.metrics.four .metric .n, .metrics.five .metric .n { align-self: start; margin-top: 2px; }
