/* Shared by the sample and outreach reports (report.html) and the baseline report (full.html). */
:root {
  color-scheme: light;
  /* --client is the trade's logo colour and --comp one warm grey for every trade (brand.js sets both on <html>; these
     are the fallback). The grey is 4.2:1 or better on each paper and clear of every client colour, colour-blind too. */
  --paper: #f6f1e8; --card: #fbf8f2; --ink: #231f1a; --muted: #6f665b; --faint: #a39888; --rule: #ddd3c4;
  --client: #c2570c; --client-soft: #f1dbc9; --comp: #78716c; --good: #3f7a4f; --bad: #a83a2c; --bad-soft: #f3dcd6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --sans: Inter, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.controls { position: fixed; top: 14px; right: 14px; z-index: 10; display: flex; gap: 8px; align-items: center;
  background: rgba(35,31,26,.88); color: #f6f1e8; border-radius: 99px; padding: 6px 8px 6px 14px; font-size: 12.5px; }
.controls label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.controls input { accent-color: var(--client); }
.controls button, .controls a { font: inherit; border: none; border-radius: 99px; padding: 4px 11px; background: #f6f1e8; color: var(--ink); cursor: pointer; text-decoration: none; }
@media (max-width: 640px) { .controls { top: auto; bottom: 12px; right: 12px; } }

.kicker { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--client); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.masthead { padding: 88px 0 48px; border-bottom: 1px solid var(--rule); }
.masthead h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; margin: 18px 0 20px; max-width: 900px; }
.masthead h1 em { font-style: italic; font-weight: 400; color: var(--client); }
.deck { font: 400 clamp(19px, 2.2vw, 23px)/1.45 var(--serif); color: var(--muted); max-width: 720px; margin: 0; }
/* The example says which of the two jobs it is showing, so nobody assumes it only does competitors. */
.who-for { font: 400 15px/1.55 var(--sans); color: var(--muted); max-width: 620px; margin: 18px 0 0;
  padding-left: 14px; border-left: 2px solid var(--rule); }
.byline { margin-top: 28px; font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.byline b { color: var(--ink); font-weight: 600; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.strip div { padding: 26px 18px 24px 0; }
.strip div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.strip b { display: block; font: 600 38px/1 var(--serif); margin-bottom: 6px; font-variant-numeric: lining-nums; }
.strip span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr 1fr; } .strip div:nth-child(3) { border-left: none; padding-left: 0; } .strip div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

section.block { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 90px 1fr; gap: 0 24px; margin-bottom: 30px; }
.sec-head .no { font: 400 15px/1 var(--serif); color: var(--faint); padding-top: 10px; font-variant-numeric: lining-nums; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; max-width: 760px; }
.sec-head p { grid-column: 2; color: var(--muted); max-width: 680px; margin: 12px 0 0; font-size: 17px; }
.body { margin-left: 114px; }
@media (max-width: 720px) { .sec-head { grid-template-columns: 1fr; } .sec-head .no { padding: 0 0 8px; } .sec-head p { grid-column: 1; } .body { margin-left: 0; } section.block { padding: 48px 0; } }

.stars-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.star-card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 20px; }
.star-card.client { border-color: var(--client); box-shadow: inset 4px 0 0 var(--client); }
.star-card .who { font-size: 13px; color: var(--muted); }
.star-card .val { font: 600 44px/1.1 var(--serif); font-variant-numeric: lining-nums; }
.star-card .val small { font-size: 22px; color: #d59a1c; margin-left: 4px; }
.verdict { margin: 26px 0 0; font: 400 21px/1.45 var(--serif); max-width: 700px; }
.verdict b { color: var(--bad); font-weight: 600; }

.dotplot { width: 100%; }
.dp-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--rule); }
.dp-row:last-of-type { border-bottom: 1px solid var(--rule); }
.dp-label { font: 600 17px/1.2 var(--serif); }
.dp-label small { display: block; font: 400 12.5px/1.4 var(--sans); color: var(--muted); margin-top: 3px; }
.dp-track { position: relative; height: 44px; }
.dp-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule); }
.dp-range { position: absolute; top: calc(50% - 1.5px); height: 3px; background: var(--client-soft); border-radius: 2px; }
.dp-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.dp-dot.comp { width: 12px; height: 12px; background: var(--card); border: 2px solid var(--comp); }
.dp-dot.client { width: 18px; height: 18px; background: var(--client); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--client); z-index: 2; }
.dp-tag { position: absolute; transform: translateX(-50%); font-size: 11.5px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.dp-tag.up { bottom: calc(50% + 12px); } .dp-tag.down { top: calc(50% + 12px); }
.dp-tag.down2 { top: calc(50% + 32px); } .dp-track.tall { height: 76px; }
.dp-tag.edge-r { transform: translateX(-100%); } .dp-tag.edge-l { transform: none; }
.dp-tag.client { color: var(--client); font-weight: 600; font-size: 13px; }
.dp-axis { display: grid; grid-template-columns: 170px 1fr; gap: 18px; font-size: 11.5px; color: var(--faint); }
.dp-axis div { position: relative; height: 18px; }
.dp-axis span { position: absolute; transform: translateX(-50%); }
@media (max-width: 640px) { .dp-row, .dp-axis { grid-template-columns: 1fr; gap: 4px; } .dp-axis > :first-child { display: none; } }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.legend i { display: inline-block; vertical-align: -1px; margin-right: 6px; border-radius: 50%; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 700px; }

.finding { display: grid; grid-template-columns: 250px 1fr; gap: 40px; }
@media (max-width: 820px) { .finding { grid-template-columns: 1fr; gap: 24px; } }
.big { font: 600 clamp(56px, 7vw, 84px)/.95 var(--serif); color: var(--client); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.big.bad { color: var(--bad); } .big.good { color: var(--good); }
.big-cap { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 240px; }
.compare-line { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.compare-line b { font: 600 22px/1.2 var(--serif); color: var(--ink); display: block; font-variant-numeric: lining-nums; }
blockquote { margin: 0 0 18px; padding: 0 0 0 20px; border-left: 3px solid var(--client); font: 400 21px/1.45 var(--serif); }
blockquote.neg { border-color: var(--bad); } blockquote.comp { border-color: var(--comp); }
blockquote cite { display: block; font: 400 12.5px/1.4 var(--sans); color: var(--muted); font-style: normal; margin-top: 6px; }
.quote-head { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.quote-head + .quote-head, blockquote + .quote-head { margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 13px; background: var(--bad-soft); color: var(--bad); border-radius: 99px; padding: 3px 11px; }
.chip.locked { background: transparent; border: 1px dashed var(--faint); color: var(--muted); }

.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 14px; }
.bar-row .n { font-size: 14px; } .bar-row .n small { display: block; color: var(--muted); font-size: 12px; }
.bar-row .t { height: 14px; background: #ece4d6; border-radius: 2px; overflow: hidden; }
.bar-row .t span { display: block; height: 100%; background: var(--comp); }
.bar-row.client .t span { background: var(--client); }
.bar-row .v { font: 600 22px/1 var(--serif); text-align: right; font-variant-numeric: lining-nums; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 110px 1fr 56px; } }

.locked-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; position: relative; }
.lock-card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 20px; position: relative; overflow: hidden; min-height: 150px; }
.lock-card h3 { font-size: 20px; line-height: 1.2; margin-bottom: 6px; padding-right: 22px; }
.lock-card p { margin: 0; color: var(--muted); font-size: 14px; position: relative; z-index: 1; }
.lock-card .ghost { position: absolute; left: 20px; right: 20px; bottom: 16px; height: 40px; filter: blur(3px); opacity: .5;
  background: repeating-linear-gradient(90deg, var(--client-soft) 0 18%, transparent 18% 22%, #e5dccd 22% 44%, transparent 44% 48%); border-radius: 3px; }
.addon { margin-top: 18px; border: 1px solid var(--rule); border-radius: 4px; padding: 20px 22px; background: var(--card); }
.addon h3 { font-size: 19px; margin: 0 0 10px; }
.addon ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.addon li + li { margin-top: 4px; }
.lock-card .pad { font-size: 15px; position: absolute; top: 16px; right: 16px; opacity: .5; }

.cta { padding: 80px 0 90px; text-align: center; border-bottom: 1px solid var(--rule); }
.cta h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; max-width: 760px; margin: 14px auto 16px; }
.cta p { color: var(--muted); max-width: 580px; margin: 0 auto 28px; font-size: 17px; }
.cta p.cta-note { font-size: 14.5px; margin: 20px auto 0; }
.button { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; padding: 15px 28px; border-radius: 3px; }
.button:hover { background: var(--client); }

.method { padding: 48px 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; font-size: 14px; color: var(--muted); }
.method h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.method p { margin: 0 0 10px; }
@media (max-width: 720px) { .method { grid-template-columns: 1fr; gap: 20px; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media print {
  .controls { display: none; } body { background: #fff; } .reveal { opacity: 1; transform: none; }
  /* A whole section kept together pushed a long one to the next page and left the page before it blank. A section
     flows across pages; what shouldn't split is a heading from what follows it, a row, a chart, a quote. */
  section.block { padding: 28px 0; } .masthead { padding-top: 0; } .pdf-link { display: none; }
  .sec-head, h2, h3 { break-after: avoid; }
  .prio, tr, .mchart, .dp, .quote-head, blockquote, .why, .lock-card, .locked-grid, .addon { break-inside: avoid; }
  .for-banner + .wrap .masthead { padding-top: 22px; }      /* "Prepared for" clear of the kicker below it */
  .scroll-x { overflow: visible; }
  @page { size: A4; }
}
.loading { padding: 120px 0; text-align: center; color: var(--muted); font-family: var(--serif); font-size: 20px; }

/* ---------- baseline report additions ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }   /* the legal page's contents */
.toc a { color: var(--muted); text-decoration: none; } .toc a:hover { color: var(--client); }
.prio { display: grid; grid-template-columns: 56px 1fr 220px; gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); align-items: start; }
.prio:last-child { border-bottom: 1px solid var(--rule); }
.prio .rank { font: 600 34px/1 var(--serif); color: var(--faint); font-variant-numeric: lining-nums; }
.prio h3 { font-size: 22px; line-height: 1.2; margin-bottom: 4px; }
.prio .sub { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.prio blockquote { font-size: 17px; margin-bottom: 10px; }
.prio .fewer { font: 600 40px/1 var(--serif); color: var(--client); font-variant-numeric: lining-nums; }
.prio .fewer-cap { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .prio { grid-template-columns: 40px 1fr; } .prio > :last-child { grid-column: 2; } }
.tag { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); border-radius: 99px; padding: 4px 9px; margin-right: 6px; }
.tag.inferred { color: var(--client); border-color: var(--client-soft); background: var(--client-soft); }
.qtable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.qtable th { text-align: left; font: 600 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--ink); }
.qtable td { padding: 11px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.qtable tr.dimhead td { font: 600 19px/1.2 var(--serif); padding-top: 26px; border-bottom: 1px solid var(--ink); }
.qtable tr.q { cursor: pointer; } .qtable tr.q:hover td { background: var(--card); }
.qtable tr.q td:first-child::before { content: "▸"; color: var(--faint); margin-right: 8px; font-size: 11px; }
.qtable tr.q.open td:first-child::before { content: "▾"; }
.qtable .s { font: 600 18px/1 var(--serif); } .qtable .s.low { color: var(--faint); font-weight: 400; }
.qtable .m { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.qtable .you .s { color: var(--client); }
.qtable tr.quotes td { background: var(--card); padding: 18px 16px 8px; }
.qtable tr.quotes .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.qtable tr.quotes blockquote { font-size: 16px; }
.scroll-x { overflow-x: auto; }
.list-card { padding: 26px 0; border-top: 1px solid var(--rule); }
.list-card:last-child { border-bottom: 1px solid var(--rule); }
.list-card h3 { font-size: 24px; line-height: 1.2; margin: 8px 0 6px; }
.list-card .why { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col blockquote { font-size: 17px; }
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 40px; }
.mchart h3 { font-size: 19px; margin-bottom: 2px; } .mchart .cap { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.mchart svg { width: 100%; height: auto; overflow: visible; display: block; }
.mchart .ax { font: 11px var(--sans); fill: var(--faint); }
.mchart .lb { font: 600 11.5px var(--sans); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; position: sticky; top: 0; background: var(--paper); padding: 12px 0; z-index: 3; border-bottom: 1px solid var(--rule); }
.filters input, .filters select { font: 15px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 3px; padding: 9px 12px; }
.filters input { flex: 1 1 220px; }
.qcount { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.qitem { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.qitem .t { font: 400 17px/1.5 var(--serif); }
.qitem .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.s-pos { color: var(--good); } .s-neg { color: var(--bad); } .s-neu { color: #a07a1c; }
mark { background: var(--client-soft); color: inherit; padding: 0 1px; }
.more { margin-top: 18px; font: 600 14px var(--sans); background: none; border: 1px solid var(--ink); color: var(--ink); padding: 10px 18px; border-radius: 3px; cursor: pointer; }
.more:hover { background: var(--ink); color: var(--paper); }

/* report banners */
.for-banner { background: var(--ink); color: var(--paper); font-size: 14px; }
.for-banner .in { max-width: 1040px; margin: 0 auto; padding: 10px 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.for-banner a { color: var(--paper); margin-left: auto; font-weight: 600; }

/* Thin categories shown as locked rows rather than a footnote: the shape of what's missing sells better than
   a sentence saying it's missing. The dots are decorative and deliberately not real scores. */
.dp-row.locked-row { opacity: .75; }
/* On the example nothing is locked: a category under the bar shows its count and no score. */
.dp-thin { font-size: 13.5px; color: var(--muted); font-style: italic; align-self: center; }
.dp-row.locked-row .dp-label small { color: var(--faint); font-style: italic; }
.dp-track.blurred { filter: blur(4px); pointer-events: none; user-select: none; }
.dp-row.locked-row .pad { margin-left: 10px; font-size: 13px; }

/* What the plan adds, on the example report: the plan.js list, as a quiet grid rather than locked cards. */
.includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.includes > div { border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; background: var(--card, #fbf8f2); }
.includes h3 { font: 600 16px/1.3 var(--sans); margin: 0 0 6px; }
.includes p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.includes-more { margin: 16px 0 0; font-size: 14.5px; }
.includes-more a { color: var(--client); font-weight: 600; text-decoration: none; }

/* Monthly report (monthly.html): the month's numbers, and a compact category table. */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.kpis div { padding: 18px 16px 16px 0; } .kpis div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.kpis b { display: block; font: 600 34px/1 var(--serif); margin-bottom: 6px; } .kpis b small { font: 400 15px var(--sans); color: var(--muted); }
.kpis span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr; } .kpis div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }
.mtbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.mtbl th { text-align: left; font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px 0; border-bottom: 1px solid var(--ink); }
.mtbl td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.mtbl td small { color: var(--muted); font-size: 11.5px; margin-left: 5px; }
.mtbl td.up { color: var(--good, #3f7a4f); font-weight: 600; } .mtbl td.down { color: var(--bad, #a8432a); font-weight: 600; }
/* A phone: a table of five or six columns scrolls sideways rather than running off the page. */
@media (max-width: 600px) { .mtbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .mtbl th, .mtbl td { white-space: nowrap; } }

/* Baseline report: the long view two to a row, and the competitor gaps as one table. */
.multiples.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
@media (max-width: 760px) { .multiples.two { grid-template-columns: 1fr; } }
.gaps { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 28px; }
.gaps th { text-align: left; font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px 0; border-bottom: 1px solid var(--ink); }
.gaps td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; vertical-align: top; }
.gaps td small { color: var(--muted); font-size: 11.5px; margin-left: 5px; }
.gaps tr.early td { color: var(--muted); }
.gap-detail { border-top: 1px solid var(--rule); padding: 20px 0 6px; }
.gap-detail h3 { font-size: 19px; margin: 0 0 10px; }
.kpis.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .kpis.four { grid-template-columns: 1fr 1fr; } }
.qmove { border-top: 1px solid var(--rule); padding: 16px 0 4px; }
.qmove .qm-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 8px; font-size: 15.5px; }
.qmove .up, .mtbl .up { color: var(--good, #3f7a4f); font-weight: 600; } .qmove .down, .mtbl .down { color: var(--bad, #a8432a); font-weight: 600; }
.mtbl td small { display: block; margin-left: 0; } .mtbl td blockquote { margin: 8px 0 0; font-size: 14px; }
