﻿/* GBNRG - a conventional UK news layout: white page, navy navigation, bold sans headlines, one grid-green accent.
   Modelled on how UK consumer news sites lay out articles (byline, lead picture, key points, sub-headings,
   sidebar of latest stories) without copying any one site. */
:root {
  --bg: #ffffff;
  --surface: #f1f4f8;
  --ink: #0e1726;
  --ink-2: #3c4657;
  --line: #dde3ea;
  --navy: #0b2341;
  --navy-2: #12345e;
  --accent: #00875a;
  --accent-hover: #006b47;
  --accent-soft: #e6f5ee;
  --live: #3ddc97;
  --on-navy: #f5f7fa;
  --radius: 6px;
  --wrap: 1200px;
  --pad: 24px;
  --head: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
@media (max-width: 760px) { :root { --pad: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 19px; line-height: 1.6; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; }
p, ul, ol, figure { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; }
.photo { width: 100%; height: 100%; object-fit: cover; }

/* ---------- masthead ---------- */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { text-decoration: none; display: flex; flex-direction: column; }
.brand b { font-family: var(--head); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1; color: var(--navy); }
.brand b span { color: var(--accent); }
.brand small { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: var(--on-navy); border-radius: 999px;
  padding: 8px 14px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.live-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); }
.live-chip b { color: var(--live); font-weight: 700; }
.navband { background: var(--navy); }
.navband nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.navband a { color: var(--on-navy); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 17px; padding: 13px 14px;
  white-space: nowrap; border-bottom: 3px solid transparent; }
.navband a:hover { background: var(--navy-2); }
.navband a[aria-current="page"] { border-bottom-color: var(--live); }

/* ---------- page grid: main + sidebar ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 28px; padding-bottom: 64px; }
@media (max-width: 980px) { .page { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- story cards ---------- */
.kicker { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--accent); text-decoration: none; }
.kicker:hover { text-decoration: underline; }
.meta { font-size: 15px; color: var(--ink-2); }
.meta .check { color: var(--accent); font-weight: 600; }
.lead { display: block; text-decoration: none; }
.lead .pic { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.lead .pic img { transition: transform 600ms ease; }
.lead:hover .pic img { transform: scale(1.03); }
.lead .txt { padding-top: 18px; }
.lead h1, .lead h2.big { font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; margin: 6px 0 10px; }
.lead:hover h1, .lead:hover h2.big { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead .standfirst { font-size: 22px; line-height: 1.5; color: var(--ink-2); margin-bottom: 10px; }
.section-title { font-size: 22px; font-weight: 800; margin: 44px 0 18px; padding-bottom: 10px; border-bottom: 3px solid var(--navy); }
.cards { list-style: none; padding: 0; display: grid; gap: 26px; }
.card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; text-decoration: none; }
.card .pic { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.card h3 { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 2px 0 6px; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card p.sf { font-size: 17px; color: var(--ink-2); line-height: 1.45; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .card { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .card h3 { font-size: 19px; }
  .card p.sf { display: none; }
}

/* ---------- sidebar widgets ---------- */
.side { display: grid; gap: 28px; align-content: start; }
.widget { border-radius: var(--radius); padding: 20px; background: var(--surface); }
.widget h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.widget.grid-now { background: var(--navy); color: var(--on-navy); }
.widget.grid-now h2 { color: #fff; }
.grid-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 12px; }
.grid-figs div { background: var(--navy-2); border-radius: var(--radius); padding: 10px; }
.grid-figs b { display: block; font-family: var(--head); font-size: 28px; font-weight: 800; color: var(--live); line-height: 1.1; }
.grid-figs span { font-size: 15px; line-height: 1.3; display: block; }
.widget.grid-now p { font-size: 15px; }
.widget.grid-now a { color: var(--live); }
.cap-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.cap-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.cap-table td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.cap-big { font-family: var(--head); font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1; }
.widget .small { font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.mini { list-style: none; padding: 0; display: grid; gap: 14px; }
.mini a { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; text-decoration: none; align-items: start; }
.mini .pic { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.mini b { font-family: var(--head); font-size: 17px; font-weight: 700; line-height: 1.3; display: block; }
.mini a:hover b { text-decoration: underline; }
.mini span { font-size: 15px; color: var(--ink-2); }
.topic-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.topic-links a { display: inline-block; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 15px; text-decoration: none; font-weight: 600; }
.topic-links a:hover { background: var(--accent-soft); }

/* ---------- article ---------- */
.crumbs { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.article h1 { font-size: clamp(26px, 3.6vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin: 6px 0 14px; max-width: 24em; }
.article .standfirst { font-size: 22px; line-height: 1.5; color: var(--ink-2); max-width: 38em; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 18px 0 22px; font-size: 15px; color: var(--ink-2); }
.byline .who { font-weight: 700; color: var(--ink); }
.byline .check { color: var(--accent); font-weight: 700; }
.byline a.btn-src { margin-left: auto; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700;
  font-size: 15px; padding: 9px 16px; border-radius: var(--radius); }
.btn:hover { background: var(--accent-hover); }
.figure .pic { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.figure figcaption { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.figure figcaption a { color: var(--ink-2); }
.keypoints { background: var(--surface); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.keypoints h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.keypoints ul { padding-left: 20px; }
.keypoints li + li { margin-top: 6px; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 28px 0; }
.numbers div { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; }
.numbers b { display: block; font-family: var(--head); font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.numbers span { font-size: 15px; color: var(--ink-2); }
.body { max-width: 720px; }
.body p { font-size: 19px; line-height: 1.7; }
.body p + p { margin-top: 18px; }
.body h2 { font-size: 28px; font-weight: 800; line-height: 1.25; margin: 34px 0 12px; }
.body .figure { margin: 30px 0; }
.means { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 26px; margin: 34px 0; }
.means h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: var(--accent-hover); }
.means ul { padding-left: 20px; }
.means li { font-size: 19px; }
.means li + li { margin-top: 8px; }
.disagree { background: #fff7e6; border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; font-size: 17px; }
.sources { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; margin: 34px 0; }
.sources h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.sources > p { font-size: 17px; color: var(--ink-2); margin-bottom: 12px; }
.sources ol { padding-left: 20px; }
.sources li { font-size: 17px; }
.sources li + li { margin-top: 10px; }
.sources li b { font-family: var(--head); }
.sources li span { color: var(--ink-2); font-size: 15px; }
.note { font-size: 15px; color: var(--ink-2); margin-top: 18px; }
.readnext { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.readnext a { text-decoration: none; display: block; }
.readnext .pic { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); margin-bottom: 10px; }
.readnext b { font-family: var(--head); font-size: 19px; font-weight: 700; line-height: 1.3; display: block; }
.readnext a:hover b { text-decoration: underline; }
@media (max-width: 760px) {
  .readnext { grid-template-columns: 1fr; }
  .byline a.btn-src { margin-left: 0; }
  .article .standfirst { font-size: 19px; }
  .body p { font-size: 19px; }
}

/* ---------- list pages ---------- */
.list-head h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; margin-bottom: 8px; }
.list-head p { font-size: 19px; color: var(--ink-2); max-width: 40em; }
.month-title { font-size: 22px; font-weight: 800; margin: 36px 0 16px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 32px 0 10px; }
.prose p + p { margin-top: 14px; }
.credits-list { padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.credits-list li + li { margin-top: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--on-navy); padding: 44px 0 30px; margin-top: 20px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer .brand b { color: #fff; }
.footer .brand small { color: #c9d3e0; }
.footer h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; font-size: 17px; }
.footer li + li { margin-top: 6px; }
.footer a { color: var(--on-navy); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .legal span { max-width: 70ch; }
.footer .legal { border-top: 1px solid var(--navy-2); margin-top: 32px; padding-top: 18px; font-size: 15px; color: #c9d3e0; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- motion: gentle fade-up, off for reduced motion ---------- */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .lead .pic img { transition: none; }
}
@media (max-width: 760px) {
  .brand b { font-size: 28px; }
  .brand small { display: none; }
  .live-chip { font-size: 15px; padding: 7px 12px; }
}

.ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }

/* Octopus referral banner (colours from the Octopus logo) */
.promo { margin: 30px 0; }
.promo[hidden] { display: none; }
.promo a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 28px;
  background: #150147; color: #fff; border-radius: var(--radius); padding: 16px 26px 22px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease; }
.promo a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 1, 71, .25); }
.promo a:focus-visible { outline: 3px solid #f050f8; outline-offset: 3px; }
.promo-tag { grid-column: 1 / -1; font-size: 13px; color: #b9addf; }
.promo img { width: 210px; height: auto; display: block; }
.promo-txt b { display: block; font-family: var(--head); font-size: 22px; line-height: 1.2; color: #fff; }
.promo-txt span { display: block; font-size: 15px; line-height: 1.45; color: #ddd6f6; margin-top: 4px; }
.promo-btn { background: #f050f8; color: #150147; font-family: var(--head); font-weight: 800; font-size: 17px;
  padding: 12px 22px; border-radius: 999px; white-space: nowrap; transition: background .2s ease; }
.promo a:hover .promo-btn { background: #ff80ff; }
.side .promo { margin: 0; }
.side .promo a { grid-template-columns: 1fr; padding: 16px 20px 22px; gap: 12px; }
.side .promo img { width: 190px; }
.side .promo-txt b { font-size: 19px; }
.side .promo-btn { justify-self: start; }
@media (max-width: 760px) {
  .promo a { grid-template-columns: 1fr; gap: 12px; padding: 16px 20px 20px; }
  .promo img { width: 180px; }
  .promo-btn { justify-self: start; }
}
