/* The mobile data benchmark report. Loaded after theme.css, only by
   /mobile-benchmark — the report's charts and tables live nowhere else.

   Series colours are fixed per vendor and never reassigned by rank: Forager
   blue, Prospeo amber, ContactOut green. The three were checked against the
   report surface (#10151e) for the OKLCH lightness band, a chroma floor, CVD
   separation and contrast; every bar also carries a printed value, so identity
   is never colour alone. */
:root {
  --v-forager: #688fef;
  --v-prospeo: #cb8100;
  --v-contactout: #19ae6f;
  /* The multi-region report names nine vendors, too many for distinct series
     colours, so only Forager keeps its blue and every other vendor is this
     neutral grey. Each bar still carries its label and printed value. */
  --v-other: #5d6b86;
  --track: #ffffff0f;
}

/* ---------- masthead ---------- */
.report-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 12, 19, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.report-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}
.report-bar .logo {
  font-size: 19px;
}
.report-bar .logo svg {
  width: 23px;
  height: 26px;
}
.report-bar .mono {
  color: var(--quiet);
}
.report-head {
  border-bottom: 1px solid var(--line);
}
.report-head-inner {
  padding: 72px 0 56px;
  max-width: 860px;
}
.report-head h1 {
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0;
}
.report-standfirst {
  font-size: 15px;
  line-height: 1.85;
  margin-top: 24px;
  max-width: 680px;
}
.report-prepared {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--quiet);
  margin: 22px 0 0;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.report-meta > div {
  padding-right: 34px;
  margin-right: 34px;
  border-right: 1px solid var(--line);
}
.report-meta > div:last-child {
  border: 0;
  margin-right: 0;
  padding-right: 0;
}
.report-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--quiet);
}
.report-meta dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* ---------- section headings ---------- */
.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(28px, 2.6vw, 38px);
}
.section-head p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 18px;
}

/* ---------- summary ---------- */
.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 48px;
}
.summary-list li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.summary-list strong {
  color: var(--text);
  font-weight: 550;
}

/* ---------- charts ---------- */
.chart {
  margin: 44px 0 0;
  padding: 32px 34px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.chart-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.chart-note {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--quiet);
  margin-top: 6px;
}
.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.bars.compact {
  gap: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: 112px 1fr 58px;
  align-items: center;
  gap: 16px;
}
.bar-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--quiet);
}
.swatch.v-forager {
  background: var(--v-forager);
}
.swatch.v-prospeo {
  background: var(--v-prospeo);
}
.swatch.v-contactout {
  background: var(--v-contactout);
}
.bar-track {
  position: relative;
  display: block;
  height: 14px;
  background: var(--track);
  border-radius: 0 4px 4px 0;
}
.bars.compact .bar-track {
  height: 11px;
}
.bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: 0 4px 4px 0;
  background: var(--quiet);
  transform-origin: left center;
}
.bar.v-forager {
  background: var(--v-forager);
}
.bar.v-prospeo {
  background: var(--v-prospeo);
}
.bar.v-contactout {
  background: var(--v-contactout);
}
.swatch.v-other,
.bar.v-other {
  background: var(--v-other);
}
/* Longer series labels ("Forager highest_quality") need a wider label column,
   and four groups of up to nine bars need the full container width. */
.group-chart.two-up.wide-labels {
  max-width: none;
  gap: 34px 64px;
}
.wide-labels .group .bar-row {
  grid-template-columns: 158px 1fr 44px;
}
.bar-value {
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
  color: var(--text);
}
.motion-ready .chart .bar {
  transform: scaleX(0);
}
.motion-ready .reveal.is-visible .bar,
.motion-ready .chart.is-visible .bar {
  transform: scaleX(1);
  transition: transform 760ms var(--ease) var(--bar-delay, 0ms);
}
.group-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.group-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}
.group .bar-row {
  grid-template-columns: 78px 1fr 50px;
  gap: 10px;
}
.group .bar-label {
  font-size: 11px;
}

/* ---------- finding ---------- */
.finding {
  margin-top: 34px;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 26px;
  max-width: 820px;
}
.finding p {
  font-size: 15px;
  line-height: 1.8;
}
.finding strong {
  color: var(--text);
}

/* ---------- what we checked ---------- */
.checks {
  background: #0b0f16;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.check-card {
  background: var(--bg);
  padding: 34px 32px 36px;
}
.check-card .mono {
  color: var(--quiet);
}
.check-card h3 {
  font-size: 22px;
  margin: 16px 0 12px;
}
.check-card p {
  font-size: 13px;
  line-height: 1.8;
}
.check-card p + p {
  margin-top: 12px;
}
.check-card em {
  color: var(--text);
  font-style: normal;
}

/* ---------- tables ---------- */
.table-scroll {
  /* A grid/flex child will not shrink below its content without this, and the
     table is deliberately wider than a phone — the scroll has to live in the
     wrapper, not in the page. */
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 760px;
}
.data-table caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 20px 24px 0;
}
.data-table th,
.data-table td {
  text-align: right;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table thead th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--quiet);
  text-transform: uppercase;
  padding-top: 20px;
}
.data-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}
.data-table tbody th .swatch {
  display: inline-block;
  margin-right: 9px;
  vertical-align: middle;
}
.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
  padding-left: 24px;
}
.data-table td {
  font-family: var(--mono);
  color: var(--muted);
}
.data-table td small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--quiet);
  margin-top: 2px;
}
.data-table td.lead {
  color: var(--text);
  font-weight: 500;
}
.data-table .row-lead td.lead {
  color: var(--v-forager);
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.cohort-tables {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

/* ---------- method ---------- */
.method-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.method-copy p {
  font-size: 14px;
  line-height: 1.85;
  margin-top: 24px;
}
.method-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.method-steps li {
  background: var(--surface);
  padding: 24px 28px;
}
.method-steps .mono {
  color: var(--accent);
  letter-spacing: 0.1em;
}
.method-steps p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 8px;
}
.method-steps strong {
  color: var(--text);
  font-weight: 500;
}
.caveats {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.caveats h3 {
  font-size: 24px;
  margin-bottom: 26px;
}
.caveats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 48px;
}
.caveats li {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.caveats strong {
  color: var(--text);
  font-weight: 550;
}
.caveats em {
  font-family: var(--mono);
  font-style: normal;
}
.report-raw {
  margin: 40px 0 0;
  font-size: 13px;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .group-chart {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .group .bar-row {
    grid-template-columns: 112px 1fr 58px;
    gap: 16px;
  }
  .method-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .check-grid,
  .caveats ul {
    grid-template-columns: 1fr;
  }
  .caveats ul {
    gap: 22px;
  }
}
@media (max-width: 700px) {
  .report-head h1,
  .section-head h2,
  .caveats h3 {
    /* The display face sets long words (manufacturing) wider than a narrow
       viewport at the clamp floor. */
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .report-standfirst {
    font-size: 14px;
  }
  .report-meta > div {
    padding-right: 20px;
    margin-right: 20px;
    margin-bottom: 14px;
  }
  .chart {
    padding: 24px 18px 26px;
  }
  .bar-row,
  .group .bar-row {
    grid-template-columns: 96px 1fr 50px;
    gap: 10px;
  }
  .bar-label {
    font-size: 11px;
  }
  .finding {
    padding-left: 18px;
  }
  .check-card {
    padding: 28px 22px 30px;
  }
  .caveats {
    margin-top: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .chart .bar,
  .motion-paused .chart .bar {
    transform: none;
    transition: none;
  }
}

/* ---------- two-measure chart ---------- */
.group-chart.two-up {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

/* ---------- footer ---------- */
.report-footer {
  background: #070a0f;
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.report-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.report-footer .logo {
  font-size: 18px;
}
.report-footer .logo svg {
  width: 21px;
  height: 24px;
  color: var(--accent);
}
.report-footer p {
  font-size: 11px;
  margin: 0;
}
.report-footer .mono {
  color: var(--quiet);
}
/* The report's only links. `theme.css` strips underline and colour from every
   anchor, so without this they are indistinguishable from the prose around
   them. */
.report-footer .footer-links a,
.report-raw a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.report-footer .footer-links a:hover,
.report-raw a:hover {
  color: var(--text);
}
/* Pages whose content is shorter than the viewport, so the footer sits at the
   foot of the window rather than stranded part-way down it. Opt-in by class so
   the report itself, which is always taller than the viewport, is untouched. */
body.short-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.short-page main {
  flex: 1 0 auto;
}

@media (max-width: 900px) {
  .summary-list,
  .group-chart.two-up {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .report-bar-inner {
    height: 56px;
  }
  .report-bar .mono {
    font-size: 9px;
    text-align: right;
  }
  .report-head-inner {
    padding: 48px 0 40px;
  }
  .report-footer .container {
    gap: 12px;
  }
}

/* ---------- multi-region report ---------- */
.report-head-inner .report-standfirst + .report-standfirst {
  margin-top: 14px;
}
/* On its own line under the vendor name, so it does not widen the column. */
.vendor-note {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--quiet);
  margin: 3px 0 0 18px;
}
.section-head em,
.check-card h3 em,
.region-note em,
.caveats li em {
  font-style: italic;
  font-family: var(--sans);
}
.region-block {
  margin-top: 44px;
  scroll-margin-top: 88px;
}
.region-block:first-of-type {
  margin-top: 0;
}
.region-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 860px;
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.region-note strong {
  color: var(--text);
  font-weight: 550;
}
/* Links inside report prose, styled like the footer links for the same reason:
   theme.css strips anchors of underline and colour. */
.report-standfirst a,
.section-head a,
.method-copy a,
.caveats a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.report-standfirst a:hover,
.section-head a:hover,
.method-copy a:hover,
.caveats a:hover {
  color: var(--text);
}
@media (max-width: 700px) {
  .wide-labels .group .bar-row {
    grid-template-columns: 124px 1fr 40px;
  }
  .wide-labels .bar-label {
    white-space: normal;
    line-height: 1.3;
  }
}
/* A real heading per region, so each table is a findable section rather than
   a caption alone. */
.region-title {
  font-size: 22px;
  margin: 0 0 16px;
}
