/* /sewage/scorecard — the water company scorecard (30 Nov 2026). The look is the mock-up's
   (docs/superpowers/specs/assets/2026-11-30-water-company-scorecard/mockup-v6.dc.html): a dark hero, Barlow Condensed
   headings over Barlow, the orange of the Environment Agency's high-spill line, a blue-grey-orange best-to-worst ramp. */
.ssc { --ink: #0f2238; --ground: #eef2f1; --night: #0c1a2c; --night2: #13263d; --line: #2b4366; --mist: #c3cfde; --muted: #9fb0c6;
       --hot: #f5a623; --pen: #9a4416; --rew: #145a96; --grey: #55657a;
       background: var(--ground); color: var(--ink); font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; }
.ssc h1, .ssc h2, .ssc-eyebrow, .ssc-chip, .ssc-key-h, .ssc-rank, .ssc-row-v, .ssc-three b, .ssc-ring span, .ssc-answer-verdict, .ssc-pick-h, .ssc-labels {
  font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif; }
.ssc-wrap { max-width: 1240px; margin: 0 auto; padding: 0 max(16px, 4vw); box-sizing: border-box; }
.ssc a { color: #1d6fb8; } .ssc a:hover { color: var(--ink); }
.ssc-small { font-size: 14px; }
.ssc-eyebrow { font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ssc-eyebrow.dark { color: var(--grey); }
.pen { color: var(--pen); } .rew { color: var(--rew); }
.ssc-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid #3a5478;
           color: #e8eef6 !important; font-weight: 600; text-decoration: none; }
.ssc-btn-hot { background: var(--hot); border-color: var(--hot); color: var(--night) !important; font-weight: 700; }
.ssc-btn-dark { background: var(--ink); border-color: var(--ink); color: #fff !important; }

/* hero */
.ssc-hero { background: var(--night); color: #e8eef6; padding: 36px 0 44px; }
.ssc-hero-in { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.ssc-hero-text { flex: 1 1 320px; max-width: 430px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ssc-hero h1 { margin: 0; font-weight: 800; font-size: clamp(48px, 5.8vw, 82px); line-height: .92; letter-spacing: -.01em; text-wrap: balance; color: #fff; }
.ssc-lede { margin: 0; color: var(--mist); font-size: 17px; max-width: 46ch; }
.ssc-lede strong { color: var(--hot); font-weight: 600; }
.ssc-form { display: flex; flex-direction: column; gap: 8px; }
.ssc-form label { font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ssc-form-row { display: flex; gap: 8px; }
.ssc-form input { flex: 1 1 auto; min-width: 0; min-height: 52px; box-sizing: border-box; padding: 0 16px; border-radius: 6px; border: 1px solid #3a5478;
                  background: #fff; color: var(--ink); font: 600 20px 'Barlow', system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.ssc-form button { flex: none; min-height: 52px; padding: 0 22px; border-radius: 6px; border: 0; background: var(--hot); color: var(--night); font: 700 18px 'Barlow', system-ui, sans-serif; cursor: pointer; }
.ssc-form button:focus-visible, .ssc-chip:focus-visible, .ssc-btn:focus-visible, .ssc-league a:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
.ssc-miss { margin: 0; padding: 14px 16px; border-radius: 6px; background: var(--night2); color: #e8eef6; }
.ssc-answer { background: var(--night2); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ssc-answer-verdict { font-weight: 700; font-size: 30px; line-height: 1.08; color: #fff; }
.ssc-answer-money { font-size: 17px; font-weight: 600; }
.ssc-answer-money.pen { color: #f2a27a; } .ssc-answer-money.rew { color: #8fc1ee; }
.ssc-answer-near { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; color: var(--mist); }
.ssc-answer-near a { color: #fff !important; font-weight: 600; font-size: 18px; }
.ssc-answer-near strong { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; color: #fff; }
.ssc-answer-near strong.hot { color: var(--hot); }
.ssc-answer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ssc-chips-box { display: flex; flex-direction: column; gap: 10px; }
.ssc-chips-box[hidden] { display: none; }
.ssc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ssc-chip { font: 600 14px 'Barlow', system-ui, sans-serif; padding: 6px 12px; min-height: 44px; border-radius: 999px; border: 1px solid #3a5478;
            background: transparent; color: #e8eef6; cursor: pointer; }
.ssc-chip[aria-pressed="true"] { background: var(--hot); border-color: var(--hot); color: var(--night); }
.ssc-key { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--mist); }
.ssc-key-h { font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.ssc-key-dots { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ssc-key-dots span { display: inline-flex; align-items: center; gap: 6px; }
.ssc-key-dots i { display: inline-block; border-radius: 50%; background: #8fb3d9; } .ssc-key-dots i.hot { background: var(--hot); }
.ssc-ramp { height: 10px; border-radius: 2px; background: linear-gradient(90deg, #3fa7d6, #8f9190, #e07a4a); }
.ssc-ramp-words { display: flex; justify-content: space-between; gap: 8px; }
.ssc-map { flex: 2 1 520px; min-width: 0; }
.ssc-map svg { display: block; width: 100%; height: auto; }
.ssc-map-note { margin: 10px 0 0; font-size: 14px; color: var(--mist); max-width: 70ch; }
.ssc-grid line { stroke: #1e3352; stroke-width: 1; }
.ssc-grid text { fill: #5f7899; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; letter-spacing: 1px; }
.ssc-fill { fill-opacity: .45; transition: fill .2s ease; }
.ssc-outline { fill: transparent; stroke: #7d93b2; stroke-width: .9; cursor: pointer; transition: stroke-width .15s ease; }
.ssc-area:hover .ssc-outline, .ssc-area:focus .ssc-outline { stroke: #fff; stroke-width: 2.6; }
.ssc-area.on .ssc-outline { stroke: #fff; stroke-width: 3.2; }
.ssc-labels text { fill: #f2f5fa; font-weight: 700; font-size: 21px; letter-spacing: 2px; paint-order: stroke; stroke: var(--night); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; text-anchor: middle; }
.ssc-labels .ssc-thames { fill: var(--muted); font-weight: 600; font-size: 17px; }

/* where it comes out */
.ssc-where { padding: 48px 0 8px; }
.ssc-where-head { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.ssc-where h2 { margin: 0; font-weight: 800; font-size: 44px; line-height: 1.02; }
.ssc-where-head p { margin: 0; max-width: 52ch; color: #3a4a60; }
.ssc-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ssc-photo { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ssc-photo img { display: block; width: 100%; object-fit: cover; border-radius: 6px; aspect-ratio: 4 / 3; }
.ssc-photo-tall { grid-row: span 2; } .ssc-photo-tall img { aspect-ratio: 3 / 4; }
.ssc-photo-wide { grid-column: span 2; } .ssc-photo-wide img { aspect-ratio: 16 / 9; }
.ssc-photo figcaption { font-size: 14px; color: #3a4a60; display: flex; flex-direction: column; gap: 2px; }
.ssc-photo strong { color: var(--ink); }
.ssc-credit { font-size: 12px; color: var(--grey); }
@media (max-width: 720px) { .ssc-photos { grid-template-columns: minmax(0, 1fr); } .ssc-photo-tall, .ssc-photo-wide { grid-row: auto; grid-column: auto; } }

/* the companies */
.ssc-companies { padding: 44px 0 24px; }
.ssc-companies-in { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ssc-league-box { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ssc-league-box h2 { margin: 0; font-weight: 800; font-size: 40px; line-height: 1.05; }
.ssc-measure-unit { color: var(--grey); }
.ssc-league { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ssc-league a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; padding: 6px 12px; border-radius: 6px;
                border: 1px solid transparent; color: var(--ink) !important; text-decoration: none; }
.ssc-league a.on { background: #fff; border-color: var(--ink); }
.ssc-league a:hover { background: #fff; }
.ssc-rank { font-weight: 700; font-size: 20px; color: var(--grey); font-variant-numeric: tabular-nums; }
.ssc-lname { font-weight: 600; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.ssc-lname i { display: block; height: 10px; border-radius: 3px; }
.ssc-lval { font-weight: 600; font-variant-numeric: tabular-nums; }
.ssc-cards { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ssc-pick { background: #fff; border: 1px solid #d3dcdf; border-radius: 10px; padding: 32px; }
.ssc-pick[hidden] { display: none; }
.ssc-pick-h { font-weight: 800; font-size: 34px; line-height: 1.05; }
.ssc-pick p { margin: 12px 0 0; color: var(--grey); }
.ssc-card { background: #fff; border: 1px solid #d3dcdf; border-radius: 10px; overflow: hidden; scroll-margin-top: 16px; }
.ssc-js .ssc-card { display: none; } .ssc-js .ssc-card.on { display: block; }
.ssc-card-photo { margin: 0; position: relative; }
.ssc-card-photo img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.ssc-card-photo figcaption { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(12, 26, 44, .78); padding: 2px 8px; border-radius: 3px; }
.ssc-card-verdict { padding: 24px 28px 0; }
.ssc-card-verdict h2 { margin: 0 0 6px; font-weight: 800; font-size: 38px; line-height: 1; }
.ssc-v { margin: 0; font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 700; font-size: 26px; line-height: 1.12; }
.ssc-m { margin: 6px 0 0; font-size: 17px; font-weight: 600; }
.ssc-card-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 20px 28px 26px; border-bottom: 1px solid #e4eaec; }
.ssc-ring { width: 112px; height: 112px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ssc-ring > div { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ssc-ring span { font-weight: 800; font-size: 30px; }
.ssc-ring small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-top: 3px; }
.ssc-card-sums { flex: 1 1 220px; min-width: 0; }
.ssc-card-sums p { margin: 0 0 8px; color: #3a4a60; }
.ssc-sums { display: flex; flex-wrap: wrap; gap: 20px; }
.ssc-sums span { display: flex; flex-direction: column; }
.ssc-sums small { font-size: 12px; color: var(--grey); }
.ssc-sums b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ssc-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding: 14px 28px; border-bottom: 1px solid var(--ground); }
.ssc-row-t { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; }
.ssc-row-t small { font-size: 13px; color: var(--grey); }
.ssc-row-v { flex: 0 0 70px; font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.ssc-row-p { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ssc-row-p small { font-size: 13px; color: #3a4a60; }
.ssc-dots { display: flex; gap: 4px; }
.ssc-dots i { width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box; background: #fff; border: 2px solid #c9d2d6; }
.ssc-dots i.me { border-color: var(--ink); }
.ssc-pay { flex: none; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; background: var(--ground); color: var(--grey); }
.ssc-pay.rew { background: #e1eef9; color: var(--rew); } .ssc-pay.pen { background: #f8e6da; color: var(--pen); }
.ssc-card-foot { padding: 18px 28px 22px; }

/* three figures, notes */
.ssc-three { padding: 24px 0 8px; }
.ssc-three-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid #d3dcdf; padding: 0; }
.ssc-three-in > div { padding: 22px 24px 24px 0; }
.ssc-three-in > div + div { border-left: 1px solid #d3dcdf; padding-left: 24px; }
.ssc-three b { display: block; font-weight: 800; font-size: 60px; line-height: 1; }
.ssc-three b small { font-size: 30px; color: var(--grey); font-weight: 600; }
.ssc-three p { margin: 4px 0 0; color: #3a4a60; max-width: 30ch; }
.ssc-notes { padding: 28px 0 56px; }
.ssc-notes-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; font-size: 14px; color: #3a4a60; }
.ssc-notes h2 { margin: 0 0 8px; font-size: 15px; color: var(--ink); font-family: 'Barlow', system-ui, sans-serif; }
.ssc-notes p { margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .ssc-fill, .ssc-outline { transition: none; } }

/* A figure taken from the company's own summary instead of its Stream table (SSC_CORRECTIONS), and the targets-met note. */
.ssc-row-t .ssc-row-src { font-style: italic; }
.ssc-league-note { margin: 10px 0 0; }
