/* Owlie Energy: the public site (and the portal, which builds on it). Plain CSS, light and dark.
   One design system: the tokens below are the only colours; the charts, the portal, the emails (web Letters) and the
   PDFs (report, invoices) use the same ones. Teal is the brand, a deep teal ink the hero, lime the one bright accent. */
:root {
  /* Surfaces and text */
  --bg: #f6f9f8; --surface: #ffffff; --surface-2: #eef4f3; --text: #0c1f22; --muted: #4e6569; --line: #e1e9e8; --line-strong: #c9d7d6;
  /* Brand: teal, its strong shade, the hero's ink, and the lime accent */
  --brand: #0f766e; --brand-strong: #0b5a54; --on-brand: #ffffff; --ink: #062b2d; --on-ink: #e8f5f2; --on-ink-muted: #a2c7c2; --lime: #a3e635; --on-lime: #0a2a12;
  /* Meaning: good, warning, bad (and their text shades on a pill, WCAG AA 4.5:1 at small sizes); chart shades; focus.
     Every text/background pair is at least 4.5:1 in both modes (checked 2026-11-13: dark mode's lowest is 6.4:1). */
  --hl: #15803d; --warn: #b45309; --bad: #b42318; --ok-text: #166534; --warn-text: #92400e; --accent: #5eb59e; --missing: #b6c5c6; --partial: #9fd3cd; --focus: #f59e0b;
  --tint: #e6f3f1; --tint-2: #f1f8f6;
  /* Shape */
  --radius: 14px; --radius-sm: 10px; --wrap: 1120px;
  --shadow-sm: 0 1px 2px rgba(12, 31, 34, .06), 0 1px 1px rgba(12, 31, 34, .03);
  --shadow: 0 1px 2px rgba(12, 31, 34, .05), 0 10px 30px -12px rgba(12, 31, 34, .16);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081416; --surface: #0e1e21; --surface-2: #12272a; --text: #e5efee; --muted: #93abaa; --line: #1d3336; --line-strong: #2b4649;
    --brand: #2dd4bf; --brand-strong: #7ee8d8; --on-brand: #052624; --ink: #041416; --on-ink: #e8f5f2; --on-ink-muted: #8fb5b0;
    --hl: #a3e635; --warn: #fbbf24; --bad: #f87171; --ok-text: #a3e635; --warn-text: #fbbf24; --accent: #7cc7b0; --missing: #46605f; --partial: #2f7f78; --focus: #fbbf24;
    --tint: #10292b; --tint-2: #0c2022;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--text); font-weight: 750; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; margin: 2.4em 0 .6em; letter-spacing: -.02em; }
h3 { font-size: 1.12rem; line-height: 1.35; margin: 1.6em 0 .45em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }
.small { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.muted { color: var(--muted); }
.prose { max-width: 760px; }
.prose li { margin: .35em 0; }
.page-head { padding-top: 56px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 44em; }
.eyebrow { display: inline-block; color: var(--brand); background: var(--tint); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .74rem;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hl { color: var(--hl); }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.actions .button { margin: 0; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: var(--on-brand); border: 1.5px solid var(--brand);
  text-decoration: none; font-weight: 650; font-size: 1rem; line-height: 1.2; margin: 0 8px 8px 0; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.button:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.button.ghost { background: transparent; color: var(--brand); box-shadow: none; }
.button.ghost:hover { background: var(--tint); color: var(--brand-strong); }
button.button { font-family: inherit; }

/* Header: sticky and translucent; on a phone the links fold into a menu (a checkbox and its label: no script) */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.08rem; letter-spacing: -.01em; }
.brand img { width: 26px; height: auto; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; }
.top nav a:hover { color: var(--text); background: var(--surface-2); }
.top nav a.active { color: var(--brand); background: var(--tint); }
.top nav a.nav-portal { margin-left: 8px; color: var(--brand); border: 1.5px solid var(--brand); padding: 7px 16px; }
.top nav a.nav-portal:hover { background: var(--brand); color: var(--on-brand); }
/* Menu groups: a heading that opens its links on hover or focus (keyboard: tab to it, then through its links); no script */
.nav-group { position: relative; }
.nav-head { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 550; font-size: .95rem; cursor: default; user-select: none; }
.nav-head::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.nav-head.active { color: var(--brand); background: var(--tint); }
.nav-group:hover .nav-head, .nav-group:focus-within .nav-head { color: var(--text); background: var(--surface-2); }
.nav-head:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 260px; padding: 8px; margin-top: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: grid; gap: 2px; }
/* The gap between heading and panel stays hoverable */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.top nav .nav-menu a { display: block; border-radius: 10px; padding: 9px 12px; color: var(--text); }
.top nav .nav-menu a small { display: block; color: var(--muted); font-weight: 450; font-size: .82rem; margin-top: 1px; }
.top nav .nav-menu a.active { color: var(--brand); }
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-button { display: none; }
@media (max-width: 900px) {
  .top-row { flex-wrap: wrap; min-height: 60px; }
  .menu-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: .92rem;
    color: var(--text); cursor: pointer; user-select: none; }
  .menu-button::before { content: ""; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; box-sizing: border-box;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
  .top nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 14px; }
  .menu-toggle:checked ~ nav { display: flex; }
  .menu-toggle:focus-visible + .menu-button { outline: 3px solid var(--focus); outline-offset: 2px; }
  .top nav a { padding: 11px 12px; font-size: 1rem; }
  .top nav a.nav-portal { margin: 6px 0 0; text-align: center; }
  /* On a phone the groups are sections: a quiet heading over its links, always open */
  .nav-head { display: block; padding: 14px 12px 4px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; background: none !important; }
  .nav-head::after { display: none; }
  .nav-menu, .nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: grid; position: static; min-width: 0; padding: 0; margin: 0; border: 0; box-shadow: none; background: none; }
  .nav-menu::before { display: none; }
  .top nav .nav-menu a small { display: none; }
}

/* Hero: the deep ink band, lime accent */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; background: var(--ink); color: var(--on-ink); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 10%, rgba(45, 212, 191, .22), transparent 60%), radial-gradient(40% 60% at 10% 100%, rgba(163, 230, 53, .12), transparent 60%); }
.hero .wrap { position: relative; }
.hero h1 { color: #ffffff; max-width: 15em; }
.hero .hl { color: var(--lime); }
.hero .lede { color: var(--on-ink-muted); }
.hero .eyebrow { color: var(--lime); background: rgba(163, 230, 53, .1); border: 1px solid rgba(163, 230, 53, .25); }
.hero .button { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.hero .button:hover { background: #bef264; border-color: #bef264; color: var(--on-lime); }
.hero .button.ghost { background: transparent; color: var(--on-ink); border-color: rgba(232, 245, 242, .35); box-shadow: none; }
.hero .button.ghost:hover { background: rgba(232, 245, 242, .08); border-color: var(--on-ink); }
.hero a:not(.button) { color: var(--lime); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: center; }
.proof { margin: 0; display: grid; gap: 12px; }
.proof div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 14px 18px; backdrop-filter: blur(6px); }
.proof dt { color: var(--on-ink-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.proof dd { margin: 2px 0 0; font-size: 1.55rem; font-weight: 750; color: #ffffff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 44px; }
  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof dd { font-size: 1.2rem; }
}

/* Cards and tiles: a clean surface, a hairline and a soft shadow (no side bars) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); }
.tile .big { font-size: 2.3rem; line-height: 1.1; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.tile .what { font-weight: 650; margin-top: 6px; }
.tile .note { color: var(--muted); font-size: .88rem; margin: 2px 0 0; padding: 0; background: none; border: 0; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px 22px; color: var(--text); text-decoration: none;
  box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover, .card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.card .more { color: var(--brand); font-weight: 650; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; margin-top: 40px; }
.why .grid3, .audiences .grid3 { margin-top: 0; }
.why .grid3 > div { padding-top: 4px; border-top: 2px solid var(--brand); }
.build { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.build > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px 16px; box-shadow: var(--shadow-sm); }
.build h3 { margin-top: 1em; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); }
.callout { margin: 28px 0; }
.callout:hover { transform: none; }
/* A note: a soft tinted panel (not a ruled-off quote) */
.note { margin: 12px 0 18px; padding: 12px 16px; background: var(--tint); border-radius: var(--radius-sm); font-size: .95rem; color: var(--text); }
.notice { border-radius: var(--radius-sm); padding: 14px 18px; margin: 16px 0; }
.notice.error { background: color-mix(in srgb, var(--bad) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line)); }
.notice p, .notice ul { margin: .2em 0; }

/* Sections on the homepage */
.leaders, .how, .why, .audiences { scroll-margin-top: 84px; }
.leaders { padding-top: 8px; }
.leaders h2 { margin-top: 1.2em; }
.leaders .small-lede { font-size: 1rem; max-width: 52em; }
.coverage-line { margin-top: 16px; }
.table-scroll + .small, .tiles + .small, .chart-box + .small { margin-top: 14px; }
.how ol { padding-left: 1.2em; } .how li { margin: .55em 0; }
.how ol li::marker { color: var(--brand); font-weight: 700; }
dl dt { font-weight: 700; margin-top: 1em; } dl dd { margin: .2em 0 0; color: var(--text); }

/* Charts (server-drawn SVG) */
.chart-box { margin: 24px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; box-shadow: var(--shadow-sm); }
.chart-box figcaption { color: var(--muted); font-size: .86rem; margin-top: 10px; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .axis { fill: var(--muted); font-size: 11px; }
svg.chart .bar { fill: var(--brand); }
svg.chart .bar-partial { fill: var(--partial); }
svg.chart .bar-missing { fill: none; stroke: var(--missing); stroke-dasharray: 3 3; }
svg.chart .marker { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
svg.chart .marker-label { fill: var(--muted); font-size: 11px; }
/* Which networks a day or period covers, when fewer than now */
td .cover { color: var(--muted); font-size: .82rem; margin-left: 4px; }

/* Tables: a card that scrolls sideways on a phone; quiet headers, hover rows, figures in tabular digits */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-scroll > table { background: transparent; }
/* A table of sentences (an example report): cells wrap, read top-aligned */
table.wrap-cells td { white-space: normal; vertical-align: top; min-width: 11em; }
/* Network watch: live findings, one card each */
.watch-seen { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.watch-seen li { border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; background: var(--surface, transparent); }
.watch-seen .eyebrow { margin: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--surface); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--tint-2); }
th { color: var(--muted); font-weight: 650; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; white-space: normal; vertical-align: bottom; line-height: 1.25; background: var(--surface-2); }
tr.missing td { color: var(--muted); font-style: italic; }
.tag { font-size: .72rem; font-weight: 650; background: var(--tint); color: var(--brand-strong); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tag.new { background: var(--brand); color: var(--on-brand); }
table.leaderboard td.num, table.leaderboard th:nth-child(3), table.leaderboard th:nth-child(n+5) { text-align: right; }
table.leaderboard td.rank { color: var(--muted); width: 2.5em; font-weight: 600; }
table.leaderboard td.network { font-weight: 650; }
table.leaderboard td.strong { font-weight: 750; color: var(--hl); }
table.leaderboard td.spark-cell, table.networks td.spark-cell { width: 84px; }
svg.spark { display: block; }
svg.spark .bar { fill: var(--brand); }
svg.spark .bar-partial { fill: var(--partial); }
svg.spark .bar-missing { fill: none; stroke: var(--missing); stroke-dasharray: 2 2; }
table.networks td.num { text-align: right; }
table.networks td.network { font-weight: 650; }
table.networks td.muted { color: var(--muted); }
/* A network's open-data status, as a pill */
.status { display: inline-block; font-size: .78rem; font-weight: 650; white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status.live { color: var(--ok-text); background: color-mix(in srgb, var(--hl) 12%, var(--surface)); }
.status.needs-access { color: var(--warn-text); background: color-mix(in srgb, var(--warn) 11%, var(--surface)); }
.status.published { color: var(--brand-strong); background: var(--tint); }
.status.not-found { color: var(--muted); }

/* Country tabs above the leaderboard (Markets): a segmented control */
.market-tabs { display: inline-flex; gap: 4px; margin: 28px 0 6px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.market-tabs a { padding: 7px 18px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 650; font-size: .95rem; }
.market-tabs a:hover { color: var(--text); }
.market-tabs a.active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.market-tabs a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Principles and steps */
.steps li, .checks li { margin: .6em 0; }
ol.principles { list-style: none; padding: 0; counter-reset: p; }
ol.principles li { counter-increment: p; position: relative; padding-left: 3.4em; margin: 1.8em 0; }
ol.principles li::before { content: counter(p); position: absolute; left: 0; top: .05em; width: 2.2em; height: 2.2em; border-radius: 12px; background: var(--brand); color: var(--on-brand);
  font-weight: 750; display: grid; place-items: center; }
ol.principles h2 { font-size: 1.2rem; margin: 0 0 .3em; }

/* Forms (contact) */
form.contact { max-width: 580px; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 650; font-size: .95rem; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 13px; width: 100%;
  transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.field textarea { resize: vertical; min-height: 9em; }
form.contact .button { cursor: pointer; font: inherit; font-weight: 650; }
form.vote .button { cursor: pointer; font: inherit; font-weight: 650; }
.field.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer: the brand, three groups of links, how to reach us, and the company's legal line */
.foot { margin-top: 96px; padding: 56px 0 32px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot-row { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot p { margin: .35em 0; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--text); font-size: 1.02rem; margin-bottom: 8px; }
.foot h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text); margin: 4px 0 12px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--brand); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }
@media (max-width: 860px) { .foot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-row > :first-child { grid-column: 1 / -1; } }

/* Accessibility: a visible focus ring and a skip link for keyboard users */
a:focus-visible, .button:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus-visible { width: auto; height: auto; clip-path: none; left: 8px; top: 8px; z-index: 30; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
