/* The LocalGEO web app (12 Nov 2026): the client report's design across every page. The palette, the type scale, the
   eyebrow, title and summary sentence, the numbered sections, the figure tiles, the bordered tables with the client's
   own row marked and the plain-words severity tags all come from the report's stylesheet (market\report.py CSS), so a
   page and its printout look alike. Dark mode is drawn from the same colours. */
:root {
  --ink: #172033; --mute: #5d6b82; --faint: #8a96aa; --line: #e1e6ee; --bg: #fff; --panel: #f5f7fa; --card: #fff;
  --brand: #2b8bd8; --brand-ink: #0f4f86; --brand-soft: #eaf3fc; --on-brand: #fff;
  --good: #2f9e5b; --good-ink: #1f7a44; --good-soft: #e3f4ea;
  --mid: #e0a526; --mid-ink: #8a5d00; --mid-soft: #fdf2d6;
  --weak: #e5885a; --bad: #c8463d; --bad-ink: #a3312a; --bad-soft: #fbe5e3;
  --none: #eef1f5; --none20: #9aa3b0; --low: #8a94a6;
  --pop: #172033; --pop-ink: #f1f5fa; --pop-link: #9ccaf2;
  --radius: 10px; --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
:root[data-theme="dark"] {
  --ink: #eef2f8; --mute: #a9b5c8; --faint: #7f8ca2; --line: #2a3650; --bg: #111a2b; --panel: #172033; --card: #141e31;
  --brand: #4a9fe3; --brand-ink: #9ccaf2; --brand-soft: #16314d; --on-brand: #0b1626;
  --good-ink: #74d29c; --good-soft: #12301f; --mid-ink: #f0c766; --mid-soft: #33290f; --bad-ink: #f29a92; --bad-soft: #3a1c1a;
  --none: #1d2940; --pop: #eef2f8; --pop-ink: #172033; --pop-link: #0f4f86;
}
* { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1 { font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; line-height: 1.3; margin: 0; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 14.5px; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.small { font-size: 12.5px; }
.grow { flex: 1; min-width: 0; }

/* the frame: a light side menu, a slim top line, one white page */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100%; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 14px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 2px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); padding: 2px 8px 16px; }
.logo b { color: var(--brand); font-weight: 800; }
.logo .pin { width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--brand); background: radial-gradient(circle at 60% 40%, var(--bad) 0 3px, var(--card) 4px); margin-left: 1px; }
.switch { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); padding: 9px 12px; margin-bottom: 10px; font-weight: 600; }
.switch small { display: block; color: var(--mute); font-size: 11.5px; font-weight: 400; }
a.switch:hover { border-color: var(--brand); text-decoration: none; }
.nav h4 { margin: 16px 10px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.nav a { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 8px; color: var(--ink); font-size: 13.5px; }
.nav a:hover { background: var(--brand-soft); text-decoration: none; }
.nav a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; box-shadow: inset 3px 0 var(--brand); }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 32px; background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; font-size: 12.5px; }
.top .crumbs { color: var(--mute); }
.top .crumbs b { color: var(--ink); font-weight: 600; }
.top .crumbs a { color: var(--mute); }
.top form { margin: 0; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.badge.real { background: var(--good-soft); color: var(--good-ink); }
.badge.sample { background: var(--mid-soft); color: var(--mid-ink); }
/* an organization's banner (_banner.html): the demo tenant says its data is sample data, on every page and on paper */
.org-banner { background: #fff1c7; color: #4d3700; border-bottom: 2px solid #d9a400; padding: 9px 32px; font-size: 13.5px; line-height: 1.45; }
.org-banner b { text-transform: uppercase; letter-spacing: .05em; margin-right: 8px; }
:root[data-theme="dark"] .org-banner { background: #3b2e05; color: #ffe08a; border-bottom-color: #b38600; }
.who { color: var(--mute); }
.who b { color: var(--ink); }
.page { padding: 28px 32px 56px; max-width: 1200px; }
footer.foot { color: var(--mute); font-size: 11.5px; margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line); }

/* the head of every page: an eyebrow line, a big title and one sentence that says what the page shows */
.head { margin: 0 0 22px; }
.eyebrow { color: var(--brand-ink); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.titlerow { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; flex-wrap: wrap; }
.titlerow .actions { margin-left: auto; display: flex; gap: 8px; }
.lead { font-size: 16px; line-height: 1.55; margin: 10px 0 0; max-width: 860px; }
.meta { color: var(--mute); font-size: 13px; margin: 6px 0 0; max-width: 860px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 7px 13px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--brand); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
:root[data-theme="dark"] .btn.primary:hover { background: var(--brand-ink); color: #0b1626; }
.btn.small { padding: 2px 9px; font-size: 12px; border-radius: 7px; margin-left: 6px; }

/* sections: a bordered box with a numbered heading, as the report numbers its sections */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .g7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.gap { margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card > header > .muted { font-size: 12px; }
.card > header > h2 { flex: 0 1 auto; }
h2 .no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; flex: none; }
.intro { color: var(--mute); margin: 0 0 12px; max-width: 880px; font-size: 13px; }
.empty { color: var(--mute); padding: 14px 0; font-style: italic; }

/* figure tiles: the number first, as "N of M", coloured by what it says (red bad, amber middling, green good) */
.stat { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; background: var(--card); min-width: 0; }
.stat .value { order: -1; font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.stat .value small { font-size: 14px; color: var(--mute); font-weight: 600; letter-spacing: 0; }
.stat .label { color: var(--mute); font-size: 12px; line-height: 1.35; display: flex; align-items: flex-start; gap: 6px; }
.stat .delta { font-size: 12px; color: var(--mute); font-weight: 600; }
.stat.ok .value { color: var(--good); } .stat.alert .value { color: var(--bad); } .stat.mid .value { color: var(--mid-ink); }
.stat.hero { border-color: var(--brand); box-shadow: inset 0 3px var(--brand); }
.stat a { font-weight: 600; }
.up { color: var(--good-ink); } .down { color: var(--bad-ink); } .flat { color: var(--mute); }
.range { display: block; color: var(--faint); font-size: 10.5px; font-weight: 400; white-space: nowrap; }

/* tables: a bordered box with a grey header band; the client's own row tinted, with a blue bar and "(you)" */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
th { background: var(--panel); font-size: 11.5px; color: var(--mute); font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
th:first-child { border-top-left-radius: var(--radius); } th:last-child { border-top-right-radius: var(--radius); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
tbody tr:last-child td, tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
td.r, th.r { text-align: right; }
tr.client td { background: var(--brand-soft); font-weight: 600; }
tr.client td:first-child { box-shadow: inset 3px 0 var(--brand); }
tr.on td { background: var(--brand-soft); }
tr.on td:first-child { box-shadow: inset 3px 0 var(--brand); }
td a.rowlink { color: inherit; font-weight: 600; }
td .row { min-width: 150px; }
.card > table, .card > form > table { margin-top: 2px; }

/* pills (the report's), rank bands and meters */
.pill { display: inline-block; min-width: 28px; padding: 1px 8px; border-radius: 999px; text-align: center; font-weight: 700; font-size: 12px; white-space: nowrap; }
.pill.ok { background: var(--good-soft); color: var(--good-ink); } .pill.warn { background: var(--mid-soft); color: var(--mid-ink); }
.pill.bad { background: var(--bad-soft); color: var(--bad-ink); } .pill.gray { background: var(--none); color: var(--mute); font-weight: 600; }
.pill.new { background: var(--brand-soft); color: var(--brand-ink); }
.pill.top3 { background: var(--good); color: #fff; } .pill.top10 { background: var(--mid); color: #fff; } .pill.top20 { background: var(--weak); color: #fff; }
.pill.out { background: var(--none20); color: #fff; } .pill.none { background: var(--none); color: var(--faint); border: 1px dashed var(--line); font-weight: 600; }
.moved { font-size: 11.5px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.moved.up { color: var(--good-ink); } .moved.down { color: var(--bad-ink); }
.meter { height: 8px; border-radius: 6px; background: var(--none); overflow: hidden; min-width: 70px; flex: 1; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--brand); }
.meter i.g { background: var(--good); } .meter i.a { background: var(--mid); } .meter i.r { background: var(--bad); } .meter i.dark { background: var(--none20); }
.row { display: flex; align-items: center; gap: 10px; }
.spark-area { fill: var(--brand); opacity: .14; } .spark-line { fill: none; stroke: var(--brand); stroke-width: 2.2; }
.bars { display: grid; gap: 10px; }
.bars .b { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 48px; gap: 10px; align-items: center; }
.bars .b > span { font-size: 12.5px; line-height: 1.3; }
.bars .b b { text-align: right; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--mute); display: flex; align-items: center; gap: 6px; } .kv dd { margin: 0; font-weight: 600; text-align: right; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip.on { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand); }

/* severity in plain words (shared\impact.py), the grade kept small beside it */
.impact { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.35; max-width: 15em; }
.impact.i-wrong_fact { background: var(--bad); color: #fff; }
.impact.i-losing_customers { background: var(--weak); color: #fff; }
.impact.i-less_chosen { background: var(--mid-soft); color: var(--mid-ink); }
.impact.i-proof_gap { background: var(--brand-soft); color: var(--brand-ink); }
.impact.i-housekeeping { background: var(--none); color: var(--mute); }
.impact.i-unknown { background: var(--none); color: var(--ink); border: 1px dashed var(--none20); }
.fix .impact, .stat .impact, .chip .impact { max-width: none; }
.grade { color: var(--faint); font-size: 10.5px; font-weight: 600; margin-left: 4px; white-space: nowrap; }

/* notes */
.note { background: var(--mid-soft); color: var(--mid-ink); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin: 0 0 16px; }
.note.info { background: var(--brand-soft); color: var(--brand-ink); }
.note ul { margin: 6px 0 0; padding-left: 20px; }
.notes { font-size: 11.5px; color: var(--mute); margin: 10px 2px 0; }
.notes p { margin: 3px 0; }

/* the street map of Search rankings */
.rankmap { height: 540px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #f2efe8; }
.rk { position: relative; width: 30px; height: 30px; cursor: pointer; }
.rk b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(23, 32, 51, .4); box-sizing: border-box; }
.rk b.small { font-size: 10.5px; }
.rk span { position: absolute; top: 31px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: #172033; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.rk b.top3, .dot.top3 { background: var(--good); } .rk b.top10, .dot.top10 { background: var(--mid); } .rk b.top20, .dot.top20 { background: var(--weak); }
.rk b.out, .dot.out { background: var(--none20); } .rk b.none, .dot.none { background: #c9d0da; }
.rk-star { font-size: 28px; line-height: 1; color: #2b8bd8; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; cursor: pointer; }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--mute); margin-top: 10px; align-items: center; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot.trade { background: #4a5568; width: 9px; height: 9px; } .dot.count { background: #2b8bd8; opacity: .7; width: 14px; height: 14px; vertical-align: -3px; }
.star { color: #2b8bd8; }
.maplibregl-popup-content { font: 13px/1.45 var(--font); color: #172033; border-radius: var(--radius); padding: 10px 12px; }
.pop h3 { margin: 0 0 6px; font-size: 14px; } .pop p { margin: 2px 0; max-width: 260px; }
.pop .row { display: flex; justify-content: space-between; gap: 14px; }

/* Run a check: one tick box a choice, with what it does underneath */
.pick { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick:last-of-type { border-bottom: 0; }
.pick input { margin-top: 4px; }
.pick small { display: block; color: var(--mute); font-size: 12.5px; font-weight: 400; }
.pick.off { opacity: .62; cursor: default; }
.formfoot { margin: 14px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* forms: labels above their fields; fields of every kind look alike (the Connections page's address and key fields
   were left unstyled when only text and email fields were) */
form.inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0; }
form.inline select { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); max-width: 14em; }
form.inline .btn.small { margin-left: 0; }
.stack label { display: block; font-weight: 600; font-size: 12.5px; margin: 12px 0 4px; }
.stack label:first-of-type { margin-top: 0; }
.stack .fgrid label, .stack .fgrid label:first-of-type { margin-top: 12px; }
.stack label .muted { font-weight: 400; }
.stack label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.stack input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .stack select, .stack textarea {
  width: 100%; font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.stack input:focus, .stack select:focus, .stack textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); outline-offset: 0; }
.stack textarea { font: 13px/1.5 var(--mono); resize: vertical; white-space: pre; overflow-x: auto; }
.stack input[readonly], .stack textarea[readonly] { background: var(--panel); color: var(--mute); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.stack .group { border-top: 1px solid var(--line); padding: 4px 0 14px; }
.stack .group:first-of-type { border-top: 0; padding-top: 0; }
details.provider { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin: 0 0 10px; }
details.provider > summary { cursor: pointer; font-weight: 600; }
details.provider[open] > summary { margin-bottom: 8px; }

/* small pieces */
.detail h3 { margin-top: 16px; display: flex; align-items: center; gap: 6px; }
.detail p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.keyref { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.signin { max-width: 560px; margin: 8vh auto; padding: 0 20px; }
.signin .logo { font-size: 30px; padding: 0 0 18px; }
.signin .pin { width: 28px; height: 28px; border-width: 5px; }
.person { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; margin-top: 8px; }
.person:hover { border-color: var(--brand); }
.person small { display: block; color: var(--mute); }

/* a finished report: one document on a page of its own, printed as it is shown (the report's own layout) */
body.docpage { background: var(--panel); }
.docbar { display: flex; align-items: center; gap: 12px; max-width: 1000px; margin: 18px auto 0; padding: 0 20px; }
.doc { max-width: 1000px; margin: 14px auto 40px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px 40px 44px; }
.doc .conf { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11.5px; color: var(--mute); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.doc .conf b { color: var(--ink); letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.doc .conf .logo { font-size: 18px; padding: 0; }
.doc .conf .logo .pin { width: 18px; height: 18px; border-width: 3px; }
.doc .cover { padding: 24px 0 6px; }
.doc .cover h1 { margin: 6px 0; }
.doc .by { color: var(--mute); font-size: 12.5px; }
.doc section { margin-top: 32px; break-inside: avoid; }
.doc section > h2 { font-size: 19px; margin: 0 0 6px; }
.doc .big { font-size: 54px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; background: var(--card); }
.kpi > b { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 6px; }
.kpi > b small { font-size: 14px; color: var(--mute); font-weight: 600; }
.kpi > span:not(.help) { color: var(--mute); font-size: 12px; line-height: 1.35; }
.kpi.alert > b { color: var(--bad); } .kpi.ok > b { color: var(--good); } .kpi.mid > b { color: var(--mid-ink); }
ol.fix, ul.fix { list-style: none; padding: 0; margin: 0; }
.fix li { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 10px; break-inside: avoid; }
.fix li .t { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fix li .t b { font-weight: 700; }
.fix li .a { margin-top: 6px; font-size: 13px; color: var(--mute); }
.doc .docfoot { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--mute); font-size: 12px; }

@media (max-width: 1100px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g21, .g12, .g3 { grid-template-columns: 1fr; } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .g2, .g4, .g5, .fgrid { grid-template-columns: 1fr; } .g7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page { padding: 18px 16px 40px; } .top { padding: 10px 16px; } h1 { font-size: 24px; } }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .doc { padding: 22px 18px; } }
@page { size: letter; margin: 14mm 12mm; }
@media print {
  html, body, body.docpage { background: #fff; height: auto; }
  .docbar, .side, .top { display: none; }
  .doc { border: 0; margin: 0; padding: 0; max-width: none; border-radius: 0; }
  .doc section { break-inside: auto; } .doc h2, .doc h3 { break-after: avoid; } tr, .kpi, .fix li { break-inside: avoid; }
}

/* help marks: a small (i) beside a heading, an option or a number. The text shows on hover and on keyboard focus
   without any script (the box is the mark's own child); the script only keeps one open on a click and closes it with
   Escape. The text is also the mark's description for screen readers (aria-describedby). */
.help { position: relative; display: inline-flex; vertical-align: middle; flex: none; font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.help-mark { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--faint); background: var(--card); color: var(--brand-ink); font: italic 700 11px/1 Georgia, "Times New Roman", serif; padding: 0; cursor: help; display: inline-grid; place-items: center; }
.help-mark:hover, .help.open .help-mark { border-color: var(--brand); background: var(--brand-soft); }
.help .help-pop { display: none; position: absolute; z-index: 40; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; width: 300px; max-width: 80vw; padding: 11px 13px; border-radius: var(--radius); background: var(--pop); color: var(--pop-ink); font: 400 12.5px/1.5 var(--font); text-align: left; white-space: normal; box-shadow: 0 10px 30px rgba(23, 32, 51, .28); cursor: auto; }
.help-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.help-pop b { display: block; margin-bottom: 3px; font-size: 13px; }
.help-pop a { color: var(--pop-link); font-weight: 600; display: block; margin-top: 6px; }
.help-pop .where { display: block; margin-top: 6px; opacity: .8; }
.help:hover .help-pop, .help:focus-within .help-pop, .help.open .help-pop { display: block; }
.help.shut .help-pop { display: none; }
.help.left .help-pop { left: auto; right: -8px; transform: none; }
.help.right .help-pop { left: -8px; transform: none; }
th .help { vertical-align: -3px; }
.kpi .help { margin-left: 4px; }

/* what to do next: one line at the end of every result page */
.nextline { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; }
.nextline > b { white-space: nowrap; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 6px; }

/* the first steps of a new client */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: st; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; background: var(--brand-soft); color: var(--brand-ink); }
.steps li.done { background: var(--panel); }
.steps li.done::before { content: "\2713"; background: var(--good); color: #fff; }
.steps li b { font-size: 13.5px; }
.steps li span { color: var(--mute); font-size: 12.5px; }

/* How to use LocalGEO: an agency user's first week */
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.week > li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.week > li > h3 { display: flex; align-items: center; gap: 8px; }
.week > li p { margin: 6px 0 0; }
.week .day { color: var(--brand-ink); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

/* a label with its (i) beside it, and a tick box with its (i) at the end of its row */
.lab { display: flex; align-items: center; gap: 6px; margin: 12px 0 4px; }
.stack .lab label, .lab label { display: inline; margin: 0; }
.stack > .lab:first-of-type, .stack .group > .lab:first-child, .stack .fgrid > div:first-child > .lab:first-child { margin-top: 12px; }
.stack > .lab:first-of-type { margin-top: 0; }
.pickrow { display: flex; gap: 8px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.pickrow:last-of-type { border-bottom: 0; }
.pickrow .pick { border-bottom: 0; flex: 1; min-width: 0; }
.pickrow > .help { margin-top: 11px; }
.checkrow { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.stack .checkrow label.check { margin: 0; }
.titlerow .help-mark { width: 20px; height: 20px; font-size: 12px; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
@media print { .help { display: none; } }
