/* All Uniform Wear brand portal. Blue and white first; RDLB magenta only as a small section marker. */
:root {
  --blue: #15528b;
  --blue-ink: #0f3e6a;
  --sky: #00ace8;
  --sky-text: #00739c;          /* sky darkened for text contrast on white */
  --ink: #0b0b0a;
  --ink-2: #1d1d1b;
  --gray-1: #5c594f;            /* secondary text, 7:1 on white */
  --gray-2: #8c8a80;
  --gray-3: #9e9c8f;
  --line: #d9d6d1;
  --paper: #f1f0ec;
  --paper-2: #fbfaf7;
  --white: #ffffff;
  --mag: #e6007e;
  --warn: #c8641e;              /* complaint bars; validated against --blue */
  --blue-wash: #eaf1f8;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --side-w: 248px;
  --gut: 40px;
  --display: "Poppins", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink-2); font: 400 16px/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: var(--radius-s); z-index: 99; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--white); padding: 28px 20px; display: flex; flex-direction: column; gap: 6px; z-index: 40; }
.brand img { width: 132px; height: auto; margin: 0 0 4px -10px; }
.brand-sub { font-size: 13px; color: var(--gray-1); margin: 0 0 22px 4px; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a { display: block; padding: 10px 12px 10px 14px; border-radius: var(--radius-s); text-decoration: none; color: var(--ink-2); font-weight: 500; position: relative; }
.nav a:hover { background: var(--paper-2); color: var(--blue); }
.nav a[aria-current="page"] { background: var(--blue-wash); color: var(--blue); font-weight: 600; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--blue); }
.sidebar-foot { margin-top: auto; font-size: 13px; color: var(--gray-1); padding: 16px 4px 0; border-top: 1px solid var(--line); }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 var(--gut); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.topbar-mark { width: 38px; height: 38px; display: none; }
.topbar-title { font-family: var(--display); font-weight: 500; color: var(--ink); }
.topbar-meta { margin-left: auto; font-size: 13px; color: var(--gray-1); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); width: 40px; height: 40px; padding: 9px; cursor: pointer; }
.menu-btn svg, .btn-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
main { flex: 1; outline: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 40px var(--gut) 72px; }
.footer { border-top: 1px solid var(--line); padding: 20px var(--gut); font-size: 13px; color: var(--gray-1); }

/* ---------- type ---------- */
.h-view { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.view-sub { color: var(--gray-1); margin-top: 8px; max-width: 64ch; }
.h-sec { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin-bottom: 8px; }
.h-sec::before { content: ""; display: block; width: 28px; height: 3px; background: var(--mag); border-radius: 2px; margin-bottom: 14px; }
.h-sub { font-size: 18px; line-height: 1.3; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--gray-1); }
.small { font-size: 14px; }
.note { font-size: 14px; color: var(--gray-1); }
.view-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); color: #fff; }
.btn-quiet { border-color: transparent; color: var(--blue); }
.btn-icon { width: 44px; padding: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--gray-1); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--blue); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 12px 16px; font-weight: 600; color: var(--gray-1); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.slide-ref { display: inline-flex; font-size: 13px; color: var(--gray-1); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.slide-ref:hover { color: var(--blue); border-color: var(--blue); }
.panel > .badge, .txt > .badge { justify-self: start; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--paper); color: var(--gray-1); white-space: nowrap; }
.badge-blue { background: var(--blue-wash); color: var(--blue); }
.badge-rec { background: var(--blue); color: #fff; }
.badge-warn { background: #fbefe6; color: #8a3f0c; }
.badge-line { background: none; border: 1px solid var(--line); }

/* ---------- overview ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-in { max-width: 1180px; margin: 0 auto; padding: 56px var(--gut) 48px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; align-items: center; }
.welcome { font-size: 15px; color: var(--gray-1); margin-bottom: 22px; font-weight: 500; }
.big-idea { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.025em; color: var(--ink); max-width: 15ch; }
.big-idea .l2 { display: block; color: var(--blue); }
.stitch { height: 0; border-top: 2px dashed var(--sky); width: min(380px, 70%); margin: 28px 0 22px; }
.hero-line { font-size: 19px; color: var(--ink-2); max-width: 52ch; }
.hero-mark { width: 220px; height: 220px; }
.hero-src { margin-top: 18px; }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; }
.door { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-l); text-decoration: none; color: var(--ink-2); overflow: hidden; background: var(--white); }
.door:hover { border-color: var(--blue); color: var(--ink-2); }
.door:hover h2 { color: var(--blue); }
.door-img { aspect-ratio: 16 / 9; height: auto; background: var(--paper); object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.door-body { padding: 18px 18px 20px; display: grid; gap: 6px; }
.door h2 { font-size: 19px; }
.door p { font-size: 15px; color: var(--gray-1); }
.door .door-n { font-size: 13px; color: var(--blue); font-weight: 600; }
.stats-strip { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 22px 20px 22px 0; display: grid; gap: 4px; align-content: start; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-v { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat-l { font-size: 14px; color: var(--gray-1); }
.strip-note { font-size: 13px; color: var(--gray-1); margin-top: 10px; }
.contents { margin-top: 56px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
.contents ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.contents li a { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.contents li a strong { font-family: var(--display); font-weight: 500; color: var(--ink); }
.contents li a span { font-size: 15px; color: var(--gray-1); }
.contents li a:hover strong { color: var(--blue); }

/* ---------- workshop viewer ---------- */
.sec-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 14px; scrollbar-width: thin; }
.sec-tab { flex: none; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.sec-tab .cnt { color: var(--gray-2); margin-left: 4px; font-variant-numeric: tabular-nums; }
.sec-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sec-tab[aria-selected="true"] .cnt { color: #cfe0f0; }
.stage { position: relative; aspect-ratio: 16 / 9; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; outline: none; }
.stage:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.slide { position: absolute; inset: 0; }
.slide img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.slide.editorial { display: grid; align-content: center; padding: 6% 8%; background: var(--white); overflow: auto; }
.slide.editorial .k { font-size: clamp(13px, 1.2vw, 16px); color: var(--blue); font-weight: 600; margin-bottom: 1.2em; }
.slide.editorial h2 { font-size: clamp(22px, 3.4vw, 46px); line-height: 1.1; max-width: 20ch; }
.slide.editorial p { margin-top: 1em; max-width: 60ch; font-size: clamp(14px, 1.3vw, 18px); color: var(--ink-2); }
.slide.editorial ul { margin: 1em 0 0; padding-left: 1.1em; font-size: clamp(13px, 1.2vw, 17px); max-width: 64ch; }
.slide.editorial li { margin: .35em 0; }
.slide.enter { animation: fadeIn .22s ease-out; }
@keyframes fadeIn { from { opacity: .35; } to { opacity: 1; } }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.counter { font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; font-weight: 600; }
.progress { flex: 1 1 120px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.caption { margin-top: 18px; display: grid; gap: 8px; max-width: 76ch; }
.caption .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--gray-1); }
.caption h2 { font-size: 22px; line-height: 1.25; }
.caption ul { margin: 0; padding-left: 1.1em; }
.figma-view iframe { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); }
.figma-view .note { margin-top: 10px; }
.present-only { display: none; }
body.present .sidebar, body.present .topbar, body.present .footer, body.present .view-head, body.present .caption { display: none; }
body.present .shell { display: block; }
body.present .wrap { max-width: none; padding: 16px; }
body.present .stage { max-height: calc(100vh - 140px); margin: 0 auto; aspect-ratio: 16 / 9; width: min(100%, calc((100vh - 140px) * 16 / 9)); }
body.present .present-only { display: inline-flex; }
body.present .sec-tabs { max-width: min(100%, calc((100vh - 140px) * 16 / 9)); margin-left: auto; margin-right: auto; }
body.present .controls { max-width: min(100%, calc((100vh - 140px) * 16 / 9)); margin-left: auto; margin-right: auto; }

/* ---------- long-form strategy ---------- */
.subnav { position: sticky; top: 60px; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.subnav ol { list-style: none; margin: 0 auto; padding: 0 var(--gut); max-width: 1180px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 12px 12px; white-space: nowrap; font-size: 14px; text-decoration: none; color: var(--gray-1); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--blue); }
.subnav a.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.block { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.block:last-child { border-bottom: 0; }
.block-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.block-head .lede { margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; background: var(--white); display: grid; gap: 10px; align-content: start; min-width: 0; }
.panel-soft { background: var(--paper-2); }
.panel h3 { font-size: 18px; line-height: 1.3; }
.panel .foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
blockquote { margin: 0; }
.quote { border-left: 3px solid var(--sky); padding: 4px 0 4px 18px; }
.quote p { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.35; color: var(--ink); }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--gray-1); }
.split { display: flex; gap: 2px; border-radius: var(--radius-s); overflow: hidden; height: 44px; margin-top: 6px; }
.split span { display: flex; align-items: center; padding: 0 12px; color: #fff; font-weight: 600; font-size: 14px; background: var(--blue); }
.split span + span { background: var(--gray-1); }
.q-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.q-n { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; color: var(--blue); }
.q-card h3 { font-size: 22px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; display: grid; gap: 6px; align-content: start; }
.tile .v { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.05; color: var(--blue); font-variant-numeric: tabular-nums; }
.tile .l { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.tile .n { font-size: 13px; color: var(--gray-1); }
.two-col-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.two-col-list ul { margin: 6px 0 0; padding-left: 1.1em; }
.forces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.comp { display: grid; gap: 10px; }
.comp dl { margin: 0; display: grid; gap: 8px; }
.comp dt { font-size: 13px; font-weight: 600; color: var(--blue); }
.comp dd { margin: 0; font-size: 15px; }
.comp .lane { font-size: 13px; color: var(--gray-1); }
.comp.us { border-color: var(--blue); background: var(--blue-wash); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
svg.map { width: 100%; height: auto; font-family: var(--body); }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; font-size: 15px; }
.legend-list .k { width: 22px; height: 22px; border-radius: 50%; background: var(--gray-1); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.legend-list .k.us { background: var(--blue); }
.bench { width: 100%; border-collapse: collapse; font-size: 15px; }
.bench th, .bench td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bench th { font-size: 13px; color: var(--gray-1); font-weight: 600; }
.bench tr.us td { font-weight: 600; color: var(--blue); }
.flywheel-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
svg.fly { width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.pillar { border-top: 3px solid var(--blue); }
.pillar .tag { color: var(--blue); font-weight: 600; font-size: 14px; }
.tov { width: 100%; border-collapse: collapse; }
.tov th, .tov td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.tov th { font-size: 13px; color: var(--gray-1); font-weight: 600; }
.tov td:first-child { font-weight: 600; color: var(--ink); width: 26%; }
.tov .yes { color: var(--blue-ink); }
.tov .no { color: var(--gray-1); text-decoration: line-through; text-decoration-color: var(--gray-3); }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.logo-card { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.logo-card .art { background: var(--white); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.logo-card .art img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.logo-card .txt { padding: 16px; display: grid; gap: 8px; align-content: start; }
.logo-card.rec { border: 2px solid var(--blue); }
.logo-card details summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 500; }
.logo-card details p { margin-top: 8px; font-size: 14px; color: var(--gray-1); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li strong { font-family: var(--display); font-weight: 500; color: var(--ink); }

/* ---------- website ---------- */
.browser { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--white); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-size: 13px; color: var(--gray-1); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser iframe { display: block; width: 100%; height: 72vh; min-height: 520px; border: 0; }
.caveat { border-left: 3px solid var(--warn); background: #fdf6f0; padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; display: grid; gap: 6px; margin: 24px 0 0; }
.caveat strong { color: #7a360a; font-family: var(--display); font-weight: 500; }
.dir-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: var(--radius-s); border: 1px solid var(--line); }
.dir-card .n { font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 600; font-size: 14px; }

/* ---------- intelligence ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; display: grid; gap: 4px; align-content: start; }
.kpi .v { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 14px; color: var(--gray-1); }
.kpi .d { font-size: 13px; color: var(--gray-1); }
.kpi.blue .v { color: var(--blue); }
.callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.callout { padding: 16px 18px; border-radius: var(--radius-m); background: var(--paper-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.callout strong { font-family: var(--display); font-weight: 500; color: var(--ink); font-size: 17px; line-height: 1.3; }
.callout span { font-size: 14px; color: var(--gray-1); }
.callout.good { border-left: 3px solid var(--blue); }
.callout.bad { border-left: 3px solid var(--warn); }
.chart-panel { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; min-width: 0; }
.chart-panel h3 { font-size: 18px; }
.chart-panel .sub { font-size: 14px; color: var(--gray-1); margin: 4px 0 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
svg.chart { width: 100%; height: auto; overflow: visible; font-family: var(--body); }
svg.chart text { font-size: 13px; fill: var(--ink-2); }
svg.chart .lbl { fill: var(--ink-2); }
svg.chart .val { fill: var(--gray-1); font-variant-numeric: tabular-nums; }
svg.chart .axis { fill: var(--gray-1); font-size: 12px; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .hit { fill: transparent; }
svg.chart g.row:hover .hit, svg.chart g.pt:hover .hit { fill: rgba(21,82,139,.05); }
.table-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { position: sticky; top: 0; background: var(--paper-2); font-size: 13px; color: var(--gray-1); font-weight: 600; white-space: nowrap; }
table.data th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }
.district-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dcard { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; display: grid; gap: 10px; align-content: start; }
.dcard .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dcard .avg { font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--blue); font-variant-numeric: tabular-nums; }
.dcard .avg.low { color: #8a3f0c; }
.dcard dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.dcard dt { color: var(--gray-1); }
.dcard dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-ink); }
.chip.neg { background: #fbefe6; color: #7a360a; }
.dotmap-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px); gap: 20px; align-items: start; }
svg.dotmap { width: 100%; height: auto; background: var(--paper-2); border-radius: var(--radius-m); border: 1px solid var(--line); }
.filters { display: grid; grid-template-columns: 2fr repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--gray-1); font-weight: 500; min-width: 0; }
.field input, .field select { font: inherit; font-size: 15px; color: var(--ink-2); padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); min-width: 0; width: 100%; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--sky); outline-offset: 0; }
.rev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rev { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; display: grid; gap: 8px; }
.rev .top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--gray-1); }
.rev .stars { color: var(--blue); font-weight: 600; letter-spacing: 1px; }
.rev .stars.low { color: #8a3f0c; }
.rev p { font-size: 15px; max-width: 80ch; }
.rev .empty-text { color: var(--gray-1); font-style: italic; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 16px; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 0; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.ranked li::before { content: counter(r); font-family: var(--display); font-weight: 600; color: #8a3f0c; font-size: 20px; }
.ranked .q { font-size: 14px; color: var(--gray-1); margin-top: 4px; }
.focus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.focus-list li { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; display: grid; gap: 6px; }
.empty { color: var(--gray-1); padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius-m); background: var(--paper-2); }
.loading { color: var(--gray-1); }
.kv { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--gray-1); }
.kv dd { margin: 0; text-align: right; }
.qlist { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 15px; }
.src-list { margin: 0; padding-left: 1.1em; font-size: 14px; display: grid; gap: 4px; overflow-wrap: anywhere; }

/* ---------- campaign ---------- */
.concepts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.concept .tag { color: var(--blue); font-weight: 600; font-size: 14px; }
.posts { display: grid; gap: 28px; }
.post > * { min-width: 0; }
.post { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-l); }
.phones { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.phone { flex: none; width: min(240px, 66vw); scroll-snap-align: start; border: 6px solid var(--ink-2); border-radius: 22px; overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 5; display: grid; align-content: center; }
.phone img { width: 100%; height: 100%; object-fit: cover; background: var(--white); }
.phone.wide { width: min(300px, 78vw); aspect-ratio: 16 / 10; border-width: 6px; border-radius: 14px; }
.post .cap { white-space: pre-wrap; font-size: 15px; max-width: 64ch; }
.post .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post .tags span { font-size: 13px; color: var(--blue); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.gallery figcaption { padding: 12px 14px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.series dl { margin: 0; display: grid; gap: 2px; font-size: 14px; }
.series dt { color: var(--gray-1); font-size: 13px; margin-top: 6px; }
.series dd { margin: 0; }
.months { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.month { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; display: grid; gap: 6px; align-content: start; min-height: 170px; }
.month .m { font-family: var(--display); font-weight: 600; color: var(--blue); }
.month .mo { font-weight: 600; font-size: 15px; color: var(--ink); }
.month p { font-size: 14px; color: var(--gray-1); }
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channels span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.connect { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.conn { border: 1px dashed var(--gray-3); border-radius: var(--radius-m); padding: 18px; display: grid; gap: 8px; align-content: start; background: var(--paper-2); }
.conn .state { font-size: 13px; font-weight: 600; color: var(--gray-1); }
.conn .state::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gray-2); margin-right: 6px; }

/* ---------- next ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.path h3 { font-size: 21px; }
.path h4 { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--blue); margin-top: 8px; }
.path ul, .path ol { margin: 0; padding-left: 1.2em; font-size: 15px; display: grid; gap: 4px; }
.continue { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.continue .panel { border-color: var(--blue); }
.contact { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- tooltip / toast ---------- */
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink-2); color: #fff; font-size: 13px; padding: 8px 10px; border-radius: var(--radius-s); max-width: 260px; line-height: 1.4; }
.tip strong { display: block; font-weight: 600; }
.toast { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .cards4, .concepts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos, .connect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters .field:first-child { grid-column: 1 / -1; }
  .months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --gut: 24px; }
  .shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(11,11,10,.28); }
  .scrim { position: fixed; inset: 0; z-index: 35; }
  .menu-btn { display: block; }
  .topbar-mark { display: block; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .grid3, .paths, .continue, .series, .callouts { grid-template-columns: 1fr; }
  .map-wrap, .flywheel-wrap, .contents, .dotmap-wrap { grid-template-columns: 1fr; }
  .kpis, .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-strip .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .post { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .wrap { padding-top: 28px; }
  .topbar-meta { display: none; }
  .cards4, .concepts, .grid2, .grid4, .forces, .logos, .connect, .two-col-list { grid-template-columns: 1fr; }
  .contents ol { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .months { grid-template-columns: 1fr; }
  .q-card { grid-template-columns: 1fr; gap: 8px; }
  .hero-in { padding-top: 36px; }
  .browser iframe { height: 70vh; min-height: 420px; }
  .post { padding: 16px; }
  .tov td:first-child { width: auto; }
  .tov thead { display: none; }
  .tov tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tov td { border: 0; padding: 4px 0; }
  .kpi .v { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .topbar, .subnav, .controls, .actions { display: none !important; }
  .shell { display: block; }
}

/* ---------- v2: VOC hero, league, map ---------- */
.tell { margin-bottom: 8px; }
.tell-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.tell-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tell-card { border-top: 3px solid var(--blue); padding: 18px 4px 4px 0; display: grid; gap: 8px; align-content: start; }
.tell-card h3 { font-size: 18px; line-height: 1.3; }
.tell-n { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; color: var(--blue); font-variant-numeric: tabular-nums; }
.tell-card p:last-child { color: var(--gray-1); font-size: 15px; }
.why { margin-bottom: 32px; }
.ranked.good li::before { color: var(--blue); }
.spark { display: block; }
.store-rank { list-style: none; margin: 0; padding: 0; display: grid; }
.store-rank li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.sr-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sr-top a { text-decoration: none; color: var(--ink); }
.sr-top a:hover { color: var(--blue); }
.sr-avg { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--blue); font-variant-numeric: tabular-nums; }
.sr-avg.low { color: #8a3f0c; }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.wall li { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px; display: grid; gap: 2px; }
.wall .wn { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); }
.wall .wc { font-size: 14px; color: var(--blue); font-weight: 600; }
.wall .ws { font-size: 13px; color: var(--gray-1); }
.ov-map { margin-top: 56px; }
.mapbox { display: grid; gap: 12px; }
.map-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.map-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.map-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.mapbox.compact .map-body { grid-template-columns: 1fr; }
.map-canvas { height: 560px; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--paper-2); position: relative; z-index: 0; }
.mapbox.compact .map-canvas { height: 380px; }
.map-loading { padding: 20px; color: var(--gray-1); }
.map-offline { padding: 20px; overflow: auto; height: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font: inherit; }
.store-panel { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; display: grid; gap: 10px; max-height: 560px; overflow-y: auto; background: var(--white); }
.sp-head h3 { font-size: 22px; }
.sp-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-stats div { background: var(--paper-2); border-radius: var(--radius-s); padding: 10px; }
.sp-stats dt { font-size: 12px; color: var(--gray-1); }
.sp-stats dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sp-h { font-family: var(--display); font-size: 16px; margin-top: 8px; }
.promo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.promo a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px; }
.promo a:hover { border-color: var(--blue); }
.promo img, .promo-ph { width: 56px; height: 70px; object-fit: cover; border-radius: 4px; background: var(--blue-wash); }
.promo strong { display: block; font-size: 14px; line-height: 1.3; }
.promo .note { display: block; font-size: 13px; }
.sp-focus { background: var(--blue-wash); border-radius: var(--radius-s); padding: 12px; display: grid; gap: 6px; font-size: 14px; }
.sp-focus .badge { justify-self: start; }
.sp-revs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-revs li { border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; }
.sp-revs .stars { color: var(--blue); }
.sp-revs .stars.low { color: #8a3f0c; }
.map-legend { margin: 0; }
.leaflet-container { font-family: var(--body); }
.leaflet-container :focus-visible { outline: 3px solid var(--sky); }
@media (max-width: 1180px) { .map-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .map-quick { grid-column: 1 / -1; } .tell-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .map-body { grid-template-columns: 1fr; } .store-panel { max-height: none; } .tell-grid { grid-template-columns: 1fr; } .map-canvas { height: 440px; } }
@media (max-width: 640px) { .map-filters { grid-template-columns: 1fr 1fr; } .tell-grid.four { grid-template-columns: 1fr; } .map-canvas { height: 380px; } .mapbox.compact .map-canvas { height: 300px; } }
.tile-note { position: absolute; left: 12px; bottom: 30px; z-index: 500; margin: 0; max-width: 300px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; font-size: 13px; color: var(--gray-1); }
.logo-card { min-width: 0; }
.logo-card .art { min-width: 0; overflow: hidden; }
.logo-card .art img { width: auto; height: 100%; max-height: 180px; }
.logo-card .txt { min-width: 0; }
.brand img { width: 108px; margin: 0 0 4px -4px; }
.mapbox { scroll-margin-top: 76px; }
