/* Growth Score static report · Leadio design system v1.0 tokens, owner density.
   One deliberate light look (no dark theme): white page, a single reading column, sections separated by space and hairlines.
   Boxes only where an object must stand apart (the number one move, the answer reader). Status = a dot and a word. */
:root {
  color-scheme: light;
  --blue-700: #3568c3; --blue-500: #528ff5; --blue-300: #95b7f7; --blue-100: #dce8fd; --blue-50: #ecf3fe;
  --green-700: #247a49; --green-500: #33ae68; --green-300: #91d6af; --green-100: #ddf3e7; --green-50: #f2faf5;
  --gold-700: #84650e; --gold-500: #bf9315; --gold-300: #ddc57b; --gold-100: #f2e9cc; --gold-50: #fbf8ee;
  --error-700: #b63b46; --error-500: #e6535d; --error-300: #f29aa1; --error-100: #f9dadd; --error-50: #fff1f2;
  --insight-700: #6d4c91; --insight-500: #8d67b5;
  --n900: #121826; --n800: #1e293b; --n600: #475569; --n500: #64748b; --n400: #94a3b8; --n300: #cbd5e1; --n200: #d9e0ea; --n100: #eef2f7; --n50: #f7f9fc;

  --bg: #ffffff; --soft: var(--n50); --line: #e6ebf1; --line-2: var(--n300);
  --fg: var(--n800); --fg-strong: var(--n900); --muted: var(--n600); --subtle: var(--n500);
  --link: var(--blue-700); --primary: var(--blue-700); --focus: var(--blue-500); --value: var(--gold-700);
  --ok: var(--green-500); --ok-ink: var(--green-700);
  --warn: var(--gold-500); --warn-ink: var(--gold-700);
  --bad: var(--error-500); --bad-ink: var(--error-700);
  --info: var(--blue-500); --info-ink: var(--blue-700);
  --none: var(--n400); --none-ink: var(--n600);
  --ai-ink: var(--insight-700); --ai-dot: var(--insight-500);
  --heat-1: #5cc48a; --heat-2: #e7d496; --heat-3: #f9dadd; --heat-4: #f29aa1; --heat-0: var(--n100); --heat-ink: var(--n900); --heat-0-ink: var(--n500);
  --series: var(--blue-500); --series-2: var(--n400); --grid: var(--n100);
  --map-land: #f3f6fa; --map-water: #e4edfb; --map-road: #ffffff; --map-ring: var(--blue-300);

  --font-ui: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-sm: 8px; --r-md: 12px;
}
.business-cards { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
/* Listings v2: one reading column; the same directory rows become phone cards. */
.listings-v2 { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
/* Report v3 A4: measured v2 counts and per-field comparisons. */
.listings-summary .lg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.listings-summary .lg-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.lg-counts .tile { padding: 16px 14px; }
.lg-counts .tval { font-size: 28px; }
.listing-match .fbars { display: flex; flex-direction: column; gap: 14px; }
.listing-match .fbar { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.fbar .num { font-weight: 600; color: var(--fg-strong); white-space: nowrap; }
.fbar .bar { height: 8px; }
@media (max-width: 720px) { .listings-summary .lg { grid-template-columns: 1fr; } }
/* FU2: three count tiles are cramped on phones; stack them as rows (label left, count right, note below). */
@media (max-width: 520px) {
  .listings-summary .lg-counts { grid-template-columns: 1fr; gap: 8px; }
  .lg-counts .tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 12px 14px; }
  .lg-counts .tile > .tval { grid-column: 2; grid-row: 1; font-size: 24px; }
  .lg-counts .tile > .cap:first-child { grid-column: 1; grid-row: 1; }
  .lg-counts .tile > .cap:not(:first-child) { grid-column: 1 / -1; }
}
.listings-table { width: 100%; table-layout: fixed; }
.listings-table th:nth-child(1) { width: 24%; }
.listings-table th:nth-child(2) { width: 14%; }
.listings-table th:nth-child(3) { width: 45%; }
.listings-table th:nth-child(4) { width: 17%; }
.listings-table th, .listings-table td, .listing-fields, .listing-staff { overflow-wrap: anywhere; min-width: 0; white-space: normal; }
.listings-table .listing-group th { width: auto; padding-top: 28px; color: var(--fg-strong); font-size: 15px; text-transform: none; letter-spacing: 0; }
.listing-name > * { display: block; }
.listing-covered { color: var(--ok-ink); font-size: 18px; }
.listing-phone-coverage { display: none; }
.listing-fields { margin-top: 10px; font-size: 13px; }
.listing-fields summary { cursor: pointer; color: var(--link); }
.listing-fields dl { margin: 12px 0 0; }
.listing-field { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.listing-field dt { color: var(--muted); }
.listing-field dd { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.listing-field .st { white-space: normal; }
.listing-staff { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
@media (max-width: 480px) {
  .listings-table, .listings-table tbody { display: block; }
  .listings-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .listings-table .listing-group { display: block; }
  .listings-table .listing-group th { display: block; padding: 20px 0 12px; border: 0; }
  .listings-table .listing-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .listings-table .listing-row td { padding: 0; border: 0; width: auto; }
  .listing-details, .listing-coverage { grid-column: 1 / -1; }
  .listing-status .st { white-space: normal; align-items: baseline; }
  .listing-status { max-width: 120px; }
  .listing-coverage:empty, .listing-details:empty { display: none; }
  .listing-phone-coverage { display: inline; margin-left: 6px; }
  .listings-summary .stackbar { width: 100%; }
}
.matrix > .matrix-answer { flex-direction: column; align-items: flex-start; gap: 8px; }
.business-cards li, .business-card { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.mention-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; border-bottom: 1px solid var(--line); padding-block: 16px; }
.mention-row > p { grid-column: 1 / -1; }
.maps-sources, .bing-fixes { margin: 0; padding-left: 24px; }
@media (min-width: 701px) { .matrix.matrix-engines { grid-template-columns: minmax(220px, 1.7fr) repeat(var(--engines, 5), minmax(104px, 1fr)); } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font-ui); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--fg-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--fg-strong); margin: 0; text-wrap: balance; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 600; }
p { margin: 0; max-width: 64ch; }
.num, td { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.cap { font-size: 13px; line-height: 1.45; color: var(--subtle); }
.muted { color: var(--muted); }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }

/* Shell */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.topbar-in, .tabs, .wrap { max-width: 980px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.topbar-in { padding-block: 12px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg-strong); min-width: 0; }
.brand b { font-size: 16px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { height: 24px; width: auto; flex: none; display: block; }
.brand-div { width: 1px; height: 34px; background: var(--line-2); flex: none; }
.brand .brand-kicker { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700); }
.brand span { font-size: 13px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1 1 auto; }
.tabs { position: relative; }
.tabs-list { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 6px; overflow-x: auto; scrollbar-width: none; }
.tabs-list::-webkit-scrollbar { display: none; }
.tab-sep { color: var(--line-2); font-size: 13px; font-weight: 400; line-height: 1; padding-bottom: 2px; flex: none; user-select: none; }
@media (min-width: 1001px) { .tabs-list .tab { font-size: 13.5px; } }
.tabs-toggle { display: none; }
@media (max-width: 1000px) {
  .tabs-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 0; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--fg-strong); cursor: pointer; }
  .tabs-burger { width: 18px; height: 12px; background: linear-gradient(var(--fg-strong), var(--fg-strong)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--fg-strong), var(--fg-strong)) 0 50% / 100% 2px no-repeat, linear-gradient(var(--fg-strong), var(--fg-strong)) 0 100% / 100% 2px no-repeat; }
  .tabs-list { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .tabs.open .tabs-list { display: flex; }
  .tab-sep { display: none; }
  .tabs-list .tab { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tabs-list .tab[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue-700); font-weight: 600; }
}
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 8px 0 10px; border-bottom: 2px solid transparent; color: var(--subtle); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tab:hover { color: var(--fg-strong); }
.tab[aria-current="page"] { color: var(--fg-strong); border-bottom-color: var(--fg-strong); }
.tab .tdot { width: 7px; height: 7px; border-radius: 99px; flex: none; }
.tab .tpts { font-size: 12px; font-weight: 500; color: var(--subtle); font-variant-numeric: tabular-nums; }
.tab[aria-current="page"] .tpts { color: var(--muted); }
.tdot.ok { background: var(--ok); } .tdot.warn { background: var(--warn); } .tdot.bad { background: var(--bad); } .tdot.info { background: var(--info); }
.wrap { padding-block: 40px 120px; display: flex; flex-direction: column; gap: 56px; }
.view { display: flex; flex-direction: column; gap: 56px; }
.section { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.section + .section { padding-top: 0; }
.rule { border-top: 1px solid var(--line); padding-top: 40px; }
.intro { display: flex; flex-direction: column; gap: 12px; }
.measurement { max-width: 68ch; }
.report-action { border-left: 3px solid var(--blue-500); background: var(--blue-50); padding: 12px 16px; border-radius: 0 8px 8px 0; max-width: 68ch; }
.report-share [hidden], .referral-reruns [hidden] { display: none; }
.report-end { display: flex; flex-direction: column; gap: 16px; }
.report-share { border-top: 1px solid var(--line); }
.report-share > summary { width: fit-content; padding-block: 12px; color: var(--link); font-size: 14px; font-weight: 650; cursor: pointer; }
.report-share[open] > .stack { gap: 12px; }
.report-action-check { margin: 8px 0; }
.report-action .share-status { margin-left: 8px; }
.report-referral button { align-self: flex-start; }
.share-status:empty { display: none; }
.share-fallback { width: 100%; margin-top: 6px; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.report-action strong { display: block; margin-bottom: 3px; color: var(--fg-strong); }
.search-snapshot td { overflow-wrap: anywhere; }
.search-snapshot td:nth-child(2) .bar { width: min(100%, 144px); margin-top: 6px; }
@media screen and (max-width: 760px) {
  .search-snapshot td:nth-child(2):has(.bar) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .search-snapshot td:nth-child(2):has(.bar)::before { max-width: none; }
  .search-snapshot td:nth-child(2) .bar { grid-column: 1 / -1; width: 100%; margin-top: 0; }
}
.summary-result { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; min-width: 0; }
.overview-findings { display: grid; gap: 10px; }
.overview-findings strong { display: block; color: var(--fg-strong); }
.key-line { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.35; font-weight: 700; letter-spacing: -.015em; color: var(--fg-strong); max-width: 44ch; overflow-wrap: anywhere; }
.key-line-subsection { font-size: 18px; font-weight: 650; margin-top: 12px; }
.key-line-subsection + .tiles { margin-top: 0; }
.summary-result .ai-by { max-width: 100%; align-items: baseline; }
.summary-result .ai-by::before { flex: none; }
.result-bars { display: flex; flex-direction: column; gap: 14px; width: min(100%, 520px); margin-top: 6px; }
.result-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; width: 100%; color: var(--fg-strong); font-size: 14px; line-height: 1.4; }
.result-bar-label { overflow-wrap: anywhere; }
.result-bar > .num { font-weight: 600; white-space: nowrap; }
.result-track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--n100); overflow: hidden; }
.result-track i { display: block; height: 100%; border-radius: inherit; background: var(--fg-strong); }
.result-bar.rival .result-track i { background: var(--n400); }
.grid { display: grid; gap: 40px 48px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* The few boxes */
.box { background: var(--soft); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.box.blue { background: var(--blue-50); }
.note { font-size: 14px; color: var(--muted); background: var(--soft); border-radius: var(--r-sm); padding: 10px 14px; }
.note.sample { background: var(--gold-50); color: var(--gold-700); }

/* Status: a dot and a word */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; flex: none; }
.st.ok { color: var(--ok-ink); } .st.warn { color: var(--warn-ink); } .st.bad { color: var(--bad-ink); } .st.info { color: var(--info-ink); } .st.none { color: var(--none-ink); }
.st.ok::before { background: var(--ok); } .st.warn::before { background: var(--warn); } .st.bad::before { background: var(--bad); } .st.info::before { background: var(--info); } .st.none::before { background: var(--none); }
/* A status pinned to the bottom of a card (Growth System strip): every card's label lines up, long labels wrap. */
.st.pin { margin-top: auto; padding-top: 10px; white-space: nowrap; font-size: 12px; line-height: 1.35; gap: 6px; letter-spacing: -.005em; }
.st.pin::before { width: 7px; height: 7px; }
@media (max-width: 520px) { .st.pin { white-space: normal; align-items: flex-start; } .st.pin::before { margin-top: 4px; } }
.ai-by { font-size: 13px; color: var(--ai-ink); display: inline-flex; gap: 7px; align-items: center; }
.ai-by::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--ai-dot); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); font: 500 15px/1 var(--font-ui); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { color: #fff; background: #2d5aab; }
.btn-secondary { background: #fff; color: var(--fg); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--subtle); color: var(--fg-strong); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--fg); font: 500 14px var(--font-ui); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg-strong); color: #fff; border-color: var(--fg-strong); }
.tag { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 13px; background: var(--soft); color: var(--muted); }

/* Numbers */
.score { font-size: 88px; line-height: .9; font-weight: 600; letter-spacing: -.04em; color: var(--fg-strong); }
.num-lg { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; color: var(--fg-strong); }
.of { font-size: 15px; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.value { color: var(--value); }
.bar { height: 6px; border-radius: 99px; background: var(--n100); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--series); }

/* Summary tiles: the few numbers each tab leads with. Soft fill, no border. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-top: -24px; }
.tile { background: var(--soft); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tval { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; color: var(--fg-strong); display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.tval .tdot { width: 9px; height: 9px; border-radius: 99px; flex: none; }
.tiles.glance { margin-top: 0; }
a.tile { text-decoration: none; color: inherit; transition: background-color .15s ease-out; }
a.tile:hover, a.tile:focus-visible { background: var(--blue-50); }
a.tile .go { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--link); }
.why { font-size: 15px; line-height: 1.55; color: var(--fg); background: var(--blue-50); border-radius: 10px; padding: 14px 18px; max-width: 72ch; display: flex; flex-direction: column; gap: 10px; }
.why p { margin: 0; }
.why-stat { display: flex; align-items: center; gap: 14px; padding-top: 10px; border-top: 1px solid #d5e3fb; }
.why-n { font-size: 30px; font-weight: 700; color: var(--blue-700); letter-spacing: -.02em; line-height: 1; flex: none; }
.why-t { font-size: 15px; color: var(--fg-strong); }
.why-src { display: block; font-size: 12px; color: var(--subtle); margin-top: 2px; }
.why b { color: var(--blue-700); font-weight: 600; }
.impact { font-size: 12px; font-weight: 500; color: var(--subtle); letter-spacing: .01em; }
/* Growth System strip: seven columns on wide screens, one swipeable row on phones so the score shows sooner. */
.sysstrip { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sysstrip > li:first-child { margin-right: 12px; }
@media (max-width: 760px) { .sysstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sysstrip > li:first-child { grid-column: 1 / -1; margin-right: 0; margin-bottom: 12px; } }
/* Stacked status bar (listings). */
.stackbar { display: flex; gap: 3px; height: 14px; border-radius: 99px; overflow: hidden; }
/* Speed with good / needs work / slow zones and a marker. */
.speedbar { position: relative; height: 10px; border-radius: 99px; }
.speedbar span { position: absolute; top: -4px; width: 4px; height: 18px; border-radius: 2px; background: var(--fg-strong); }
/* AI matrix: answers that name the business get a light green fill. */
.cellbtn.named { background: var(--green-50); }
.cellbtn.named[aria-pressed="true"] { background: var(--blue-50); }

/* Overview groups: published statuses, in impact order within each group. */
.pgroups { display: flex; flex-direction: column; gap: 32px; }
.pgroup { display: flex; flex-direction: column; gap: 12px; }
.pgroup > .st { font-size: 15px; font-weight: 600; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.pcard { min-width: 0; background: var(--soft); border-radius: var(--r-md); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; text-decoration: none; color: inherit; transition: background-color .15s ease-out; }
.pcard:hover, .pcard:focus-visible { background: var(--blue-50); }
.pcard .pc-name { font-size: 15px; font-weight: 600; color: var(--fg-strong); overflow-wrap: anywhere; }
.pcard .pc-pts { font-size: 15px; font-weight: 600; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.pcard .pc-pts span { color: var(--subtle); font-weight: 500; }
.pcard .bar, .pcard > .st { grid-column: 1 / -1; }
.pcard .pc-find { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.bar.ok > i { background: var(--ok); } .bar.warn > i { background: var(--warn); } .bar.bad > i { background: var(--bad); } .bar.info > i { background: var(--info); }
.unscored { font-size: 14px; color: var(--muted); }

/* Unmeasured parts retained for staff. */
.parts { display: flex; flex-direction: column; }
.part { display: grid; grid-template-columns: minmax(150px, 1.1fr) 64px minmax(80px, 1fr) minmax(0, 2.2fr) auto; gap: 8px 20px; align-items: center; padding: 16px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; cursor: pointer; transition: background-color .15s ease-out; }
.part:first-child { border-top: 1px solid var(--line); }
.part:hover, .part:focus-visible { background: var(--blue-50); }
.part:hover .pname, .part:focus-visible .pname { color: var(--link); }
.part .go { font-size: 13px; font-weight: 500; color: var(--link); white-space: nowrap; }
.part:hover .go { text-decoration: underline; text-underline-offset: 3px; }
.pname { font-weight: 600; color: var(--fg-strong); }
.ppts { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; color: var(--fg-strong); }
.ppts span { color: var(--subtle); font-weight: 400; }
.pfind { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .part { grid-template-columns: 1fr auto; } .part .bar { grid-column: 1 / -1; } .part .pfind { grid-column: 1 / -1; } .part .go { grid-column: 1 / -1; } }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; font-size: 13px; font-weight: 500; color: var(--subtle); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.you td { font-weight: 600; color: var(--fg-strong); }
td.r, th.r { text-align: right; }

/* Simple lists */
.list { display: flex; flex-direction: column; }
.li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.li:first-child { border-top: 1px solid var(--line); }
.li .x { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.tool-ids { font: 400 13px/1.4 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.tool-ids code { font: inherit; }
.tool-hosts { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.tool-hosts > span { display: block; }
.tool-row > .stack, .tool-built > .stack { min-width: 0; overflow-wrap: anywhere; }
.tool-built { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.tool-row > .st { white-space: normal; align-items: baseline; }
.tool-row > .st::before { align-self: center; }
.tool-findings { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 12px; }
.tool-group { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tool-quiet { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--subtle); font-size: 13px; line-height: 1.45; padding-block: 8px; min-width: 0; }
.tool-chips { display: contents; }
.tool-chip { max-width: 100%; padding: 3px 8px; background: var(--soft); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.tool-unchecked { padding-block: 8px; }
@media (max-width: 700px) {
  .tool-row, .tool-built { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* Maps */
.heat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 168px; }
.heat .c { aspect-ratio: 1; border-radius: 7px; display: flex; align-items: center; justify-content: center; font: 600 14px var(--font-mono); color: var(--heat-ink); }
.h1 { background: var(--heat-1); } .h2 { background: var(--heat-2); } .h3 { background: var(--heat-3); } .h4 { background: var(--heat-4); } .h0 { background: var(--heat-0); color: var(--heat-0-ink) !important; }
.hn { background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--n300); color: var(--subtle) !important; font-size: 11px !important; }
.legend i.hn { box-shadow: inset 0 0 0 1.5px var(--n300); }
.heat .c.me { box-shadow: inset 0 0 0 2px var(--fg-strong); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* AI */
.matrix { display: grid; grid-template-columns: minmax(220px, 1.7fr) repeat(4, minmax(104px, 1fr)); min-width: 680px; }
.matrix > div { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.matrix .mh { font-size: 13px; color: var(--subtle); font-weight: 500; }
.cellbtn { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.cellbtn:hover { background: var(--soft); }
.cellbtn[aria-pressed="true"] { background: var(--blue-50); border-color: var(--blue-100); }
.answer { background: var(--soft); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.answer blockquote { margin: 0; font-size: 17px; line-height: 1.65; color: var(--fg); max-width: 66ch; overflow-wrap: anywhere; }
.answer mark { background: transparent; color: var(--fg-strong); font-weight: 600; }
.answer mark.you { background: var(--green-100); padding: 0 3px; border-radius: 3px; }

/* Plan */
.plan-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.plan-item:first-child { border-top: 1px solid var(--line); }
.plan-item input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green-700); }
.plan-item .title { font-size: 17px; font-weight: 600; color: var(--fg-strong); }
.plan-item.done .title { color: var(--subtle); text-decoration: line-through; }
details > summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--link); width: fit-content; list-style-position: inside; }
details ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
details.how { border-top: 1px solid var(--line); padding-top: 18px; }
details.how > summary { color: var(--muted); }
details.how .qa { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
details.how .qa p { font-size: 15px; color: var(--muted); }
.src { font-size: 13px; color: var(--subtle); }

/* CTA */
.cta { border-top: 1px solid var(--line); padding-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.cta p { color: var(--muted); }

/* Outline screenshots */
.shot { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; margin: 0; }
.shot-bar { height: 24px; background: var(--soft); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.shot-bar i { width: 7px; height: 7px; border-radius: 99px; background: var(--n300); }
.shot-bar span { font: 11px var(--font-mono); color: var(--subtle); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

footer.foot { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--subtle); }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .score { font-size: 72px; }
  .wrap, .view { gap: 44px; }
  .topbar .hide-sm { display: none; }
  .brand span { max-width: 52vw; }
  #app .btn { max-width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .topbar, .no-print { display: none !important; } }

/* Wide tables on phones: a soft shadow at the edge shows there is more to swipe to. */
@media (max-width: 760px) {
  .tbl-wrap {
    background:
      linear-gradient(to right, var(--bg, #fff) 30%, rgba(255,255,255,0)) left center / 32px 100% no-repeat local,
      linear-gradient(to left, var(--bg, #fff) 30%, rgba(255,255,255,0)) right center / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(15,23,42,.16), rgba(15,23,42,0)) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(15,23,42,.16), rgba(15,23,42,0)) right center / 12px 100% no-repeat scroll;
  }
}

/* Phone: table rows stack into cards (labels come from the header, set by stackTables in report.js). */
.listing-bing-details { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .tbl-wrap:has(table.stack-sm) { background: none; overflow: visible; }
  table.stack-sm thead { display: none; }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.stack-sm td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 0; border: 0; text-align: right; }
  table.stack-sm td::before { content: attr(data-label); font-size: 13px; color: var(--subtle); text-align: left; flex: 0 0 auto; max-width: 45%; }
  table.stack-sm td:first-child { display: block; text-align: left; font-weight: 600; color: var(--fg-strong); padding-bottom: 6px; }
  table.stack-sm td:first-child::before { content: none; }
  table.stack-sm td.cap { font-size: 14px; }
}

/* Phone: the AI answers grid becomes one card per question, assistants in a 2 x 2 block. */
@media (max-width: 760px) {
  .tbl-wrap:has(.matrix) { background: none; overflow: visible; }
  .matrix { grid-template-columns: 1fr 1fr; min-width: 0; column-gap: 10px; }
  .matrix .mh { display: none; }
  .matrix > div.mq { grid-column: 1 / -1; border-bottom: 0; padding: 18px 0 4px; font-weight: 600; color: var(--fg-strong); }
  .matrix > div[data-en] { flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 0 10px; border-bottom: 0; }
  .matrix > div[data-en]::before { content: attr(data-en); font-size: 12px; color: var(--subtle); }
}

/* 7 x 7 grid: smaller cells and figures */
.heat.dense { max-width: 260px; gap: 3px; }
.heat.dense .c { border-radius: 4px; font-size: 10px; }

@media (max-width: 520px) { .brand-logo { height: 18px; } .brand-div { height: 28px; } .brand b { font-size: 14px; } .brand > .stack > span:not(.brand-kicker) { display: none; } }

@media (max-width: 520px) {
  .topbar .btn-sm { display: none; }
  .topbar .sample-header-cta { display: inline-flex; padding-inline: 10px; }
  .brand .brand-kicker { font-size: 11px; }
}

/* Score cards: the rival comparison reads at a glance */
.tile .tvs { font-size: 16px; font-weight: 600; color: var(--fg); }
/* Reviews race (Google profile tab) */
.race { gap: 14px; }
.race-lead { font-size: 20px; line-height: 1.35; color: var(--fg-strong); max-width: 60ch; }
.race-lead b { color: var(--bad-ink); }
.race-rows { display: flex; flex-direction: column; gap: 10px; }
.race-row { display: grid; grid-template-columns: minmax(0, 220px) 1fr 56px; gap: 14px; align-items: center; }
.race-name { font-size: 15px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-track { height: 22px; background: var(--n100); border-radius: 6px; overflow: hidden; }
.race-track i { display: block; height: 100%; background: var(--n400); border-radius: 6px; }
.race-row.you .race-name { font-weight: 700; color: var(--fg-strong); }
.race-row.you .race-track i { background: var(--bad); }
.race-num { font-size: 16px; font-weight: 600; text-align: right; color: var(--fg-strong); }
@media (max-width: 520px) { .race-row { grid-template-columns: minmax(0, 110px) 1fr 44px; gap: 10px; } .race-lead { font-size: 18px; } }
.race-row.you.ahead .race-track i { background: var(--ok); }

/* Growth System Review: booking calls to action */
.fit-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 24px 40px; align-items: start; }
.fit-cta { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.fit-cta b { font-size: 16px; color: var(--fg-strong); }
.fit-cta span { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.fit-cta .btn { align-self: flex-start; }
.review-band { margin-top: 8px; background: linear-gradient(135deg, var(--blue-700), #2a55a3); color: #fff; border-radius: 18px; padding: 30px 32px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.review-band h2 { color: #fff; }
.review-band p { color: var(--blue-50); max-width: 56ch; }
.review-band .eyebrow { color: #f2e9cc; }
.review-band .btn-primary { background: #ffffff; color: var(--blue-700); border-color: #ffffff; }
.review-band .btn-primary:hover { background: var(--blue-50); }
.btn-lg { font-size: 16px; padding: 14px 22px; }
.btn-secondary { background: transparent; color: var(--blue-700); border: 1px solid var(--blue-300); }
.btn-secondary:hover { background: var(--blue-50); }
@media (max-width: 760px) { .fit-head { grid-template-columns: 1fr; } }

/* AI visibility tab */
.aiboard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--soft); border-radius: 18px; padding: 24px 28px; }
.airing { position: relative; width: 190px; height: 190px; }
.airing svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.airing > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.airing b { font-size: 46px; font-weight: 700; color: var(--fg-strong); line-height: 1; letter-spacing: -.02em; }
.airing b span { font-size: 18px; font-weight: 600; color: var(--subtle); }
.airing > div > span { font-size: 13px; color: var(--muted); margin-top: 6px; }
.aicards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.aicard { background: #fff; border-radius: 14px; padding: 14px 16px; border-top: 5px solid var(--eng); display: flex; flex-direction: column; gap: 6px; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.ainame { font-size: 14px; font-weight: 700; color: var(--fg-strong); }
.aival { font-size: 26px; font-weight: 700; color: var(--fg-strong); line-height: 1.1; }
.aidots { display: flex; gap: 6px; }
.aidot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.aidot.yes { background: var(--green-500); } .aidot.no { background: var(--error-300); } .aidot.nc { background: #fff; box-shadow: inset 0 0 0 1.5px var(--n300); }
.cellbtn { border-radius: 10px; }
.cellbtn.named { background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.cellbtn:not(.named) { background: var(--error-50); }
.rankbars, .srcbars { display: flex; flex-direction: column; gap: 10px; }
.rb { display: grid; grid-template-columns: 34px minmax(0, 180px) 1fr 32px; gap: 10px; align-items: center; font-size: 15px; }
.rbpos { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700); font: 700 13px var(--font-mono); display: inline-flex; align-items: center; justify-content: center; }
.rb:nth-child(1) .rbpos { background: var(--gold-500); color: #fff; }
.rbname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.rbtrack, .sbtrack { height: 14px; background: var(--n100); border-radius: 99px; overflow: hidden; }
.rbtrack i { display: block; height: 100%; background: var(--gold-300); border-radius: 99px; }
.rb:nth-child(1) .rbtrack i { background: var(--gold-500); }
.rb.you .rbpos { background: var(--blue-700); color: #fff; font: 700 10px var(--font-ui); }
.rb.you .rbname { font-weight: 700; color: var(--fg-strong); }
.rb.you .rbtrack i { background: var(--blue-500); }
.rbnum, .sbnum { text-align: right; font-weight: 700; color: var(--fg-strong); }
.sb { display: grid; grid-template-columns: minmax(0, 170px) 1fr 28px minmax(0, 150px); gap: 10px; align-items: center; font-size: 14px; }
.sbname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.sbtrack i { display: block; height: 100%; border-radius: 99px; background: var(--n400); }
.sb.ok .sbtrack i { background: var(--green-500); } .sb.bad .sbtrack i { background: var(--error-500); } .sb.warn .sbtrack i { background: var(--gold-500); }
.readypanel { border-radius: 16px; padding: 18px 20px; border-top: 5px solid; display: flex; flex-direction: column; gap: 8px; }
.readypanel.green { background: var(--green-50); border-color: var(--green-500); }
.readypanel.blue { background: var(--blue-50); border-color: var(--blue-500); }
.readypanel.gold { background: var(--gold-50); border-color: var(--gold-500); }
.readypanel .li { border-color: rgba(15, 23, 42, .08); }
@media (max-width: 760px) {
  .aiboard { grid-template-columns: 1fr; justify-items: center; padding: 20px 16px; }
  .aicards { width: 100%; grid-template-columns: 1fr 1fr; }
  .rb { grid-template-columns: 30px minmax(0, 1fr) 70px 28px; }
  .sb { grid-template-columns: minmax(0, 1fr) 60px 24px; } .sb .sbst { grid-column: 1 / -1; }
}
.tval.long { font-size: 19px; overflow-wrap: anywhere; }

/* Social tab */
.accts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.acct { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--net); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.acct-h { display: flex; justify-content: space-between; align-items: center; }
.acct-h b { font-size: 16px; color: var(--fg-strong); }
.acct-handle { font-size: 17px; font-weight: 600; color: var(--link); overflow-wrap: anywhere; }
.acct-stats { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.acct-stats b { color: var(--fg-strong); }
.acct-kinds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.acct-kinds span:not(.cap) { font-size: 12px; font-weight: 600; background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; color: var(--fg); }
.grade { font: 700 15px var(--font-mono); width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.grade.gA, .grade.gB { background: var(--green-100); color: var(--green-700); } .grade.gC { background: var(--gold-100); color: var(--gold-700); } .grade.gD, .grade.gF { background: var(--error-100); color: var(--error-700); }
.missing { margin: 6px 0 0 18px; padding: 0; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.posts.top { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.post { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: box-shadow .15s ease-out; }
.post:hover, .post:focus-visible { box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }
.pimg { position: relative; aspect-ratio: 4 / 5; background: color-mix(in srgb, var(--net) 14%, #fff); display: block; overflow: hidden; }
.post.big .pimg { aspect-ratio: 1 / 1; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptext { position: absolute; inset: 0; padding: 14px; font-size: 13px; line-height: 1.4; color: var(--fg); display: flex; align-items: center; }
.pnet { position: absolute; left: 8px; top: 8px; background: var(--net); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.pmeta { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.pmeta b { font-size: 13px; color: var(--fg-strong); }
@media (max-width: 520px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .posts.top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acct-meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center}

/* Bing listing, shared by every report. */
.bing-card { background: var(--blue-50); border-radius: var(--r-md); padding: 16px 20px; }
.bing-card .li { border-color: var(--line); }
.bing-card .li > span { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
#bing-section { scroll-margin-top: 100px; }

/* Tracking groups share the Leadio palette and remain readable on phones. */
.tg { border-radius: 16px; padding: 18px 20px; border-top: 5px solid; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow-wrap: anywhere; --tg-ink: var(--n600); --tg-fill: var(--n300); --tg-pill: var(--n100); }
.tg.blue { background: var(--blue-50); border-color: var(--blue-500); --tg-ink: var(--blue-700); --tg-fill: var(--blue-500); --tg-pill: var(--blue-100); }
.tg.gold { background: var(--gold-50); border-color: var(--gold-500); --tg-ink: var(--gold-700); --tg-fill: var(--gold-500); --tg-pill: var(--gold-100); }
.tg.green { background: var(--green-50); border-color: var(--green-500); --tg-ink: var(--green-700); --tg-fill: var(--green-500); --tg-pill: var(--green-100); }
.tg.plain { background: var(--n50); border-color: var(--n300); }
.tg.quiet { background: #fff; border: 1px solid var(--line); }
.tg-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tg-icon { width: 20px; height: 20px; flex: none; color: var(--tg-ink); }
.tg-count { display: flex; flex-direction: column; gap: 6px; }
.tg-track { height: 6px; background: var(--n100); border-radius: 99px; overflow: hidden; }
.tg-track i { display: block; height: 100%; background: var(--tg-fill); border-radius: inherit; }
.tool-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-pill.on { background: var(--tg-pill); color: var(--tg-ink); border-radius: 99px; padding: 4px 10px; font: 500 13px var(--font-ui); max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .tg-head { flex-wrap: wrap; }
  .tg { width: 100%; }
}
@media (max-width: 400px) {
  .topbar-in, .tabs, .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* PDF cover and print layout. The customer views above remain the shared renderer. */
.print-cover { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; color: var(--fg); }
.print-cover > .brand-logo { margin-bottom: 32px; }
.print-cover h1 { margin: 0; }
.print-cover h2 { margin-top: 24px; }
.print-score { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; }
.print-sample { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 14px; color: var(--muted); }
.print-contents { columns: 2; column-gap: 48px; padding-left: 22px; margin: 0; }
.print-contents li { padding: 3px 0; break-inside: avoid; }
@page { size: Letter; }
@media print {
  html, body { background: #fff; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .topbar, .tabs, nav, .no-print, button, [data-kw], .cellbtn, video, iframe, audio { display: none !important; }
  .btn { display: inline; color: var(--link); text-decoration: underline; background: none; border: 0; padding: 0; box-shadow: none; }
  body::before, .topbar, [style*="position:sticky"], [style*="position: sticky"], [style*="position:fixed"], [style*="position: fixed"] { position: static !important; }
  .tbl-wrap { overflow: visible; }
  .wrap { max-width: none; padding: 0; }
  .print-cover { break-after: page; }
  .print-tab { break-before: page; display: flex; flex-direction: column; gap: 56px; }
  h1, h2, h3 { break-after: avoid; }
  .box, figure, .tile, .li, tr, .race-row, .post, .heat, svg, .tg { break-inside: avoid; }
}

/* Report v3 A3: icons name the action; status remains a dot and a word. */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; min-width: 0; }
.ck { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; align-items: start; min-width: 0; overflow-wrap: anywhere; }
.ck-icon { width: 32px; height: 24px; color: var(--muted); display: grid; place-items: start center; padding-top: 1px; grid-row: span 3; }
.ck-icon svg { width: 20px; height: 20px; }
.ck h3 { font-size: 15px; }
.ck .st { font-size: 13px; white-space: normal; }
.ck p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.readiness-actions { grid-column: 1 / -1; }
/* Report v3 A6: only measured, nonempty buckets contribute counts. */
.fixcount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fixcount .st { font-size: 13px; }
.fixsep { color: var(--subtle); }
.fixbucket { min-width: 0; }
.fixbucket > summary { cursor: pointer; color: var(--fg-strong); font-size: 15px; font-weight: 600; }
.fixbucket > .list { margin-top: 10px; }

/* Report v3 A5/A7: saved review counts and a single booking contact. */
.rep { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.rep .tiles { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reputation-chart { gap: 14px; }
.stars { display: flex; flex-direction: column; gap: 10px; }
.srow { display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 14px; }
.strack { position: relative; height: 10px; border-radius: 99px; background: var(--n100); }
.strack > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--series); }
.strack > b { position: absolute; top: -3px; width: 2px; height: 16px; transform: translateX(-1px); background: var(--n600); border-radius: 1px; }
.srow .num { text-align: right; font-weight: 600; color: var(--fg-strong); }
.legend i.tick { width: 2px; height: 12px; background: var(--n600); border-radius: 1px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; margin-top: 18px; }
.contact .stack { gap: 2px; }
.contact b { color: var(--fg-strong); font-size: 16px; }
.contact p { font-size: 14px; color: var(--muted); }
.contact-details { display: inline-flex; flex-wrap: wrap; gap: 0 20px; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; }
@media (max-width: 720px) { .rep { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr; } .contact .btn { width: 100%; white-space: normal; text-align: center; } }

.overview-lead > .contact, .overview-lead > .overview-cards { grid-column: 1 / -1; margin-top: 0; }
.overview-cards { display: flex; flex-direction: column; gap: 14px; }
.overview-cards > .contact { margin-top: 0; }
.downloads { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; background: var(--soft); }
.downloads .stack { gap: 2px; }
.downloads b { color: var(--fg-strong); font-size: 16px; }
.downloads p { font-size: 14px; color: var(--muted); }
.downloads-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.downloads-actions .btn svg { flex: none; }
@media (max-width: 720px) { .downloads { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .downloads-actions { width: 100%; } .downloads-actions .btn { flex: 1 1 150px; } }
@media (min-width: 888px) { .overview-lead > .report-index { grid-column: 2; grid-row: 1; } }
/* Report index: the vertical menu on the right of the hero (Jay, 2026-11-14) */
.report-index { display: flex; flex-direction: column; gap: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.ri-list { display: flex; flex-direction: column; }
.ri-list { margin: 0 -10px; }
.ri-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; grid-template-rows: auto auto; column-gap: 10px; row-gap: 5px; padding: 9px 10px; border-top: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--fg); cursor: pointer; transition: background-color .15s ease-out; }
.ri-row:first-child { border-top: 0; }
.ri-row::after { content: "\203A"; grid-column: 3; grid-row: 1; align-self: center; font-size: 20px; line-height: 1; color: var(--blue-700); opacity: .55; transition: transform .12s ease, opacity .12s ease; }
.ri-row:hover, .ri-row:focus-visible { background: var(--blue-50); border-top-color: transparent; }
.ri-row:hover + .ri-row { border-top-color: transparent; }
.ri-row:hover::after, .ri-row:focus-visible::after { opacity: 1; transform: translateX(2px); }
.ri-row:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .ri-row, .ri-row::after { transition: none; } }
.ri-name { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--fg-strong); }
.ri-name .tdot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.ri-name .ri-none { background: var(--line-2); }
.ri-pts { font-size: 14px; font-weight: 600; color: var(--fg-strong); text-align: right; }
.ri-pts span { font-weight: 400; color: var(--subtle); }
.ri-quiet { font-size: 12px; font-weight: 400; color: var(--subtle); }
.ri-bar { grid-column: 1 / 3; height: 5px; }
.glance-gaps { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.glance-gaps h3 { font-size: 17px; color: var(--fg-strong); margin: 0; }

/* Customer journey (Jay, 2026-11-14) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.jstage { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); border-top: 3px solid var(--n200); }
.jstage.jfull { background: var(--blue-50); border-top: 3px solid var(--blue-700); }
.jstage.jpart { background: var(--blue-50); border-top: 3px dashed var(--blue-300); }
.jstage > b { font-size: 17px; color: var(--fg-strong); }
.jnum { font-size: 12px; color: var(--subtle); }
.jline { font-size: 14px; color: var(--muted); }
.jseen { font-size: 14px; margin: 0; }
.jblock { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.jblock p { margin: 0; font-size: 14px; color: var(--fg); }
.jblock ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.jblock li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.jblock li b { color: var(--fg-strong); font-weight: 600; text-align: right; }
.jq { color: var(--blue-700) !important; font-style: italic; }
.journey-cta { margin-top: 8px; }

/* Unscored referring sites on the Google search tab. */
.links { min-width:0; }
.links-bars { display:grid; gap:14px; }
.links-bars > div > span:first-child, .links-top .li { overflow-wrap:anywhere; }
.links-earn { margin:0; padding-left:22px; display:grid; gap:10px; }
.links .staff-skipped p, .links > p a { overflow-wrap:anywhere; }
