/* /showcase/stats/: the scoreboard. A dark band carries every headline
   figure, so a business sees them all at once; white panels below carry the
   detail. Same tokens and type as the showcase (its source is showcase.css
   under tools). Owner's choice of mockup B, 22 September 2026. */

@font-face {
  font-family: Inter;
  src: url(/showcase/fonts/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --blue: #356582;
  --blue-light: #3f7596;
  --ink: #29353b;
  --muted: #627480;
  --line: #dde5ea;
  --slate: #1f3442;
  --on-slate: #fff;
  --on-slate-soft: #dfe9ef;
  --on-slate-muted: #a9bfcc;
  --on-slate-line: rgba(255, 255, 255, .16);
  --gutter: 16px;
  color: var(--ink);
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  overflow-x: hidden;
}
a {
  color: var(--blue);
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 3px solid #769aac;
  outline-offset: 3px;
}
p {
  line-height: 1.6;
}
dl,
dd {
  margin: 0;
}

/* A 1240px column, without wrappers: the side padding grows instead. */
.stats-band,
.stats-panels,
.stats-press,
.stats-closing,
.showcase-footer {
  padding-inline: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter)));
}

/* ---- Press ---- */
.stats-press {
  display: grid;
  gap: 24px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-press-visual {
  width: 100%;
}
.stats-press-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #bdcbd5;
  border-radius: 2px;
  background: #fff;
}
.stats-press-copy {
  align-self: center;
  max-width: 650px;
}
.stats-press .eyebrow {
  margin: 0 0 8px;
  color: #35576b;
}
.stats-press h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.stats-press-meta {
  margin: 10px 0 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
}
.stats-press-copy > p:not(.eyebrow):not(.stats-press-meta) {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.stats-press-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.stats-press-link:hover {
  background: var(--blue-light);
}

/* ---- The band ---- */
.stats-band {
  background: var(--slate);
  color: var(--on-slate);
  padding-block: 12px 26px;
}
.stats-band a:focus-visible {
  outline-color: #fff;
}
.stats-back {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 650;
  color: #c9dbe6;
  text-decoration: none;
}
.stats-back:hover {
  color: #fff;
}
.eyebrow {
  margin: 12px 0 8px;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 750;
  color: #9fc0d3;
}
.stats-band h1 {
  margin: 0 0 22px;
  max-width: 620px;
  font-size: 28px;
  letter-spacing: -.04em;
  line-height: 1.12;
  font-weight: 650;
}

.stats-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--on-slate-line);
}
.stats-board > div {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid var(--on-slate-line);
}
.stats-board > .is-lead {
  grid-column: 1 / -1;
}
/* Two across under the lead: the right-hand one of each pair gets the rule. */
.stats-board > div:not(.is-lead) + div:not(.is-lead):nth-child(odd) {
  padding-left: 16px;
  border-left: 1px solid var(--on-slate-line);
}
/* An odd one out under the lead takes the whole row. */
.stats-board > div:not(.is-lead):last-child:nth-child(even) {
  grid-column: 1 / -1;
}
.stats-board dt {
  order: 1;
  margin-top: 6px;
  font-size: 13px;
  color: var(--on-slate-soft);
}
.stats-board .stats-value {
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-board .is-lead .stats-value {
  font-size: 52px;
  letter-spacing: -.05em;
}
/* Every figure starts at the top of its cell, so they share a line whatever
   sits under them. They used to be pushed to the foot of the cell, so a
   figure with an extra "As of" line rode higher than its neighbours. Cells
   stay full height, so the dividing rules stay even. */
.stats-board > div {
  justify-content: flex-start;
}
.stats-board .stats-detail,
.stats-board .stats-asof {
  order: 2;
  margin-top: 3px;
  font-size: 12px;
  color: var(--on-slate-muted);
}
.stats-updated {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--on-slate-muted);
}

/* ---- Panels ---- */
.stats-panels {
  display: grid;
  gap: 32px;
  padding-block: 28px 12px;
}
.stats-panel h2 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -.03em;
}
.stats-intro-line {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.stats-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.stats-detail,
.stats-asof {
  font-size: 12px;
  color: var(--muted);
}
.stats-asof {
  font-style: italic;
}

/* Fair traffic: equal tiles, never ranked. */
.stats-tiles {
  display: grid;
  gap: 10px;
}
.stats-tiles > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.stats-tiles .stats-value {
  order: -1;
  font-size: 34px;
  font-weight: 620;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.stats-tiles dt {
  font-size: 14px;
  font-weight: 550;
}

/* Growth: earlier and now as two solid bars on one scale. */
.growth + .growth {
  margin-top: 22px;
}
.growth-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 12px 0 14px;
  font-size: 14px;
  font-weight: 550;
}
.growth-change {
  font-size: 13px;
  font-weight: 650;
  color: #35576b;
  background: #e6eef3;
  border: 1px solid #cfdbe3;
  border-radius: 6px;
  padding: 1px 8px;
}
.growth-row {
  display: grid;
  grid-template-columns: 48px 1fr 52px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.growth-when {
  font-size: 12px;
  color: var(--muted);
}
.growth-track {
  display: block;
  height: 28px;
}
.growth-bar {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
}
.growth-bar.is-earlier {
  background: #9fb7c7;
}
.growth-bar.is-now {
  background: var(--blue);
}
.growth-num {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.03em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Where our visitors are: one bar per city, on one scale. */
.stats-shares {
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats-shares li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  padding: 8px 0;
}
.share-place {
  font-size: 14px;
}
.share-num {
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.share-track {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  border-radius: 4px;
  background: #eef2f5;
}
.share-bar {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
}
.stats-shares .stats-detail,
.stats-shares .stats-asof {
  grid-column: 1 / -1;
}

/* Top searches: numbered by the list itself, reading down. */
.stats-searches-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: search;
}
.stats-searches-list li {
  counter-increment: search;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: baseline;
  column-gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.stats-searches-list li::before {
  content: counter(search);
  font-size: 12px;
  font-weight: 650;
  color: var(--blue);
}
.stats-search-term {
  font-size: 15px;
  font-weight: 550;
}
.stats-search-value {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stats-search-detail {
  grid-column: 2 / -1;
  font-size: 12px;
  color: var(--muted);
}

/* ---- Close ---- */
.stats-closing {
  padding-block: 28px 32px;
}
.stats-closing > * {
  max-width: 640px;
}
.stats-closing::before {
  content: "";
  display: block;
  max-width: none;
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}
.stats-closing h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.035em;
}
.stats-closing p {
  font-size: 14px;
  color: var(--muted);
}
.stats-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.primary-link {
  background: var(--blue);
  color: #fff;
}
.primary-link:hover {
  background: var(--blue-light);
}
.secondary-link {
  border: 1px solid #bdcbd5;
  background: #fff;
  color: var(--ink);
}
.secondary-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.showcase-footer {
  display: grid;
  gap: 6px;
  padding-block: 20px 28px;
  font-size: 12px;
  color: var(--muted);
}
.showcase-footer b {
  color: #344e5d;
}

/* ---- Desktop ---- */
@media (min-width: 900px) {
  :root {
    --gutter: 40px;
  }
  .stats-band {
    padding-block: 14px 34px;
  }
  .stats-band h1 {
    font-size: 40px;
  }
  /* One row: the lead wide, then every other figure. */
  .stats-board {
    grid-template-columns: 1.6fr;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
  .stats-board > .is-lead,
  .stats-board > div:not(.is-lead):last-child:nth-child(even) {
    grid-column: auto;
  }
  .stats-board > div,
  .stats-board > div:not(.is-lead) + div:not(.is-lead):nth-child(odd) {
    padding: 18px 20px;
    border-bottom: 0;
    border-left: 1px solid var(--on-slate-line);
  }
  .stats-board > div:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .stats-board .is-lead .stats-value {
    font-size: 60px;
  }
  .stats-board .stats-value {
    font-size: 32px;
  }
  /* Beside the lead, drop the smaller figures so their baseline meets its. */
  .stats-board > div:not(.is-lead) .stats-value {
    padding-top: 25px;
  }

  .stats-panels {
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    padding-block: 36px 12px;
  }
  .stats-press {
    grid-template-columns: minmax(240px, 280px) minmax(0, 650px);
    align-items: center;
    gap: 56px;
    padding-block: 44px;
  }
  .stats-press-visual {
    max-width: 280px;
  }
  .stats-press h2 {
    font-size: 32px;
  }
  /* Two panels a row; an odd one out takes the full width. */
  .stats-panel {
    grid-column: span 6;
  }
  .stats-panel:last-child:nth-child(odd) {
    grid-column: span 12;
  }
  .stats-tiles {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  /* A full-width list of places reads down two columns, not across 1160px. */
  .stats-panel--shares:last-child:nth-child(odd) .stats-shares {
    columns: 2;
    column-gap: 56px;
  }
  .stats-shares li {
    break-inside: avoid;
  }
  .stats-actions {
    flex-direction: row;
  }
  .showcase-footer {
    display: flex;
    justify-content: space-between;
  }
}
