:root {
  --ink: #18232c;
  --muted: #5e6c76;
  --faint: #dbe4e8;
  --wash: #f4f8f9;
  --red: #b6293a;
  --green: #16785c;
  --amber: #95620a;
  --white: #ffffff;
  --control-border: #65737c;
  --shadow: 0 18px 40px rgba(27, 49, 59, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
a { color: inherit; }
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.skip-link { position: fixed; z-index: 20; top: 0; left: 1rem; padding: .65rem .9rem; background: var(--ink); color: var(--white); transform: translateY(-130%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--faint); }
.header-inner, main, .site-footer { width: min(1240px, calc(100% - 3rem)); margin: 0 auto; }
.header-inner { height: 74px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 700; letter-spacing: 0; }
.brand-mark { display: block; width: 26px; height: 26px; flex: 0 0 26px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; }.locale-control select { height: 32px; max-width: 170px; border: 1px solid var(--control-border); border-radius: 2px; background: var(--white); color: var(--ink); font-size: .78rem; }
nav a, .site-footer a { color: var(--muted); text-decoration: none; }
nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--red); }
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 1.28rem; }

.intro { display: flex; position: relative; width: 100vw; max-width: none; min-height: 510px; margin-left: calc(50% - 50vw); overflow: hidden; background: #142d25 var(--hero-image, url("assets/hero/house-of-commons-1890.jpg")) var(--hero-position, center 54%) / cover no-repeat; color: var(--white); }
.intro::before { content: ""; position: absolute; inset: 0; background: rgba(7, 31, 24, .72); }
.intro-inner { position: relative; z-index: 1; width: min(1240px, calc(100% - 3rem)); margin: auto; padding: 4.5rem 0 3.5rem; }
.intro-inner > * { max-width: 760px; }
.section-label { margin: 0 0 .7rem; color: var(--red); font-size: .72rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.intro .section-label { color: #ffd5da; }
h1, h2, p { letter-spacing: 0; }
h1 { max-width: 700px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 400; line-height: .98; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 400; line-height: 1.04; }
.lede { max-width: 620px; margin: 1.55rem 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.catalogue-stats { margin: 2rem 0 0; color: var(--muted); font-size: .85rem; }
.intro .lede { color: #edf5f1; }
.intro .catalogue-stats { color: #d8e7e1; }
.hero-credit { display: block; width: max-content; margin-top: 2.25rem; color: #d8e7e1; font-size: .68rem; line-height: 1.4; text-decoration: none; }
.hero-credit:hover { color: var(--white); text-decoration: underline; }

.catalogue-section { padding: 2rem 0 6rem; }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.text-link { color: var(--red); font-size: .9rem; font-weight: 650; text-decoration: none; }
.catalogue-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 1.25rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--faint); }
.catalogue-overview div { padding: .8rem 1rem .85rem 0; }.catalogue-overview div + div { border-left: 1px solid var(--faint); padding-left: 1rem; }
.catalogue-overview dt { color: var(--muted); font-size: .66rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }.catalogue-overview dd { margin: .16rem 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; line-height: 1.1; }
.filters { display: grid; grid-template-columns: minmax(250px, 1.5fr) minmax(0, 1.65fr); gap: .65rem; padding: 1rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--faint); }
.filters label { display: block; }
.filter-disclosure { display: block; }.filter-disclosure summary { display: none; }.filter-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.filters input, .filters select { width: 100%; height: 42px; border: 1px solid var(--control-border); border-radius: 2px; background: var(--white); color: var(--ink); font-size: .88rem; }
.filters input { padding: 0 .8rem 0 2.5rem; }.filters select { padding: 0 .6rem; }
.search-field { position: relative; }.search-field svg { position: absolute; top: 12px; left: .78rem; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.results-count { min-height: 1.5em; margin: 1rem 0 .55rem; color: var(--muted); font-size: .8rem; }
.catalogue-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, .75fr); align-items: start; gap: 2.25rem; }
.table-wrap { overflow: auto; border-bottom: 1px solid var(--faint); }
.channel-table { min-width: 790px; }.channel-list { margin: 0; padding: 0; list-style: none; }.channel-list > li { margin: 0; padding: 0; }
.channel-header, .channel-button { display: grid; grid-template-columns: minmax(185px, 1.8fr) minmax(112px, .95fr) minmax(94px, .75fr) minmax(72px, .6fr) minmax(105px, .8fr) minmax(150px, 1.15fr); align-items: center; }
.channel-header { padding: .65rem; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.sort-button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; cursor: pointer; }.sort-button::after { content: "↕"; margin-left: .32rem; color: var(--control-border); }.sort-button.is-active { color: var(--ink); }.sort-button[data-direction="ascending"]::after { content: "↑"; color: var(--red); }.sort-button[data-direction="descending"]::after { content: "↓"; color: var(--red); }
.channel-button { width: 100%; padding: .85rem .65rem; border: 0; border-top: 1px solid var(--faint); align-items: start; background: transparent; color: inherit; font-size: .82rem; text-align: left; cursor: pointer; }
.channel-button:hover { background: #f7f9fa; }.channel-button[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--red); background: var(--wash); }
.channel-name { display: block; overflow-wrap: anywhere; font-weight: 700; }.jurisdiction-mark, .jurisdiction-flag { display: inline-block; margin-right: .34rem; font-weight: 400; line-height: 1; vertical-align: -.06em; }.jurisdiction-mark { font-size: .96rem; }.jurisdiction-flag { width: 1.333em; height: 1em; border: 1px solid rgba(21, 35, 44, .16); object-fit: cover; }.legislature { display: block; margin-top: .16rem; color: var(--muted); font-size: .72rem; line-height: 1.25; }.row-tag { display: inline-block; padding: .14rem .32rem; border-left: 3px solid currentColor; background: #fff; color: var(--muted); font-size: .61rem; font-weight: 750; letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; }.source-posture-playable { color: var(--green); }.source-posture-link-out { color: var(--amber); }.source-posture-fallback { color: var(--red); }.source-posture-research { color: var(--muted); }.language-list { line-height: 1.35; }
.format { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.status { display: inline-block; width: max-content; padding: .2rem .38rem; border: 1px solid currentColor; border-radius: 2px; font-size: .65rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.status-validated, .status-explicit-reuse-with-conditions, .status-embed-only { color: var(--green); }.status-needs-review, .status-personal-use-pending-review, .status-noncommercial-pending-review { color: var(--amber); }.status-no-third-party-reuse { color: var(--red); }.status-link-only { color: var(--muted); }

.detail-panel { position: sticky; top: 1rem; min-height: 510px; border-top: 2px solid var(--red); background: var(--wash); padding: 1.4rem; }.detail-panel::before { position: absolute; top: 0; left: 0; width: 3px; height: 4.25rem; background: var(--red); content: ""; }
.mobile-sheet-controls { display: none; }
.detail-empty { color: var(--muted); padding-top: 3rem; text-align: center; }
.detail-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 400; line-height: 1.1; }.detail-subtitle { margin: .4rem 0 1rem; color: var(--muted); font-size: .86rem; }
.media-frame { display: grid; place-items: center; position: relative; min-height: 188px; margin: 1.25rem 0; overflow: hidden; background: #17242a; aspect-ratio: 16 / 9; color: var(--white); }
.media-frame::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 24%, rgba(255,255,255,.07) 24.25% 25%), linear-gradient(140deg, #263942, #17242a); }
.media-frame > * { position: relative; }
.media-frame video, .media-frame iframe { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }.media-frame:has(video, iframe)::before { display: none; }
.player-placeholder { width: min(85%, 280px); text-align: center; }.player-placeholder span, .placeholder-play-button { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto .75rem; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: transparent; color: inherit; font: inherit; font-size: .9rem; }.placeholder-play-button { cursor: pointer; }.placeholder-play-button:hover { background: rgba(255,255,255,.12); }.placeholder-play-button:focus-visible { outline: 3px solid rgba(255,255,255,.8); outline-offset: 3px; }.player-placeholder p { margin: 0; font-size: .82rem; line-height: 1.45; }
.youtube-file-notice { width: min(88%, 390px); }.youtube-file-notice a { color: var(--white); font-weight: 700; }.youtube-file-notice code { white-space: nowrap; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.25rem 0; }.play-button, .official-button { min-height: 38px; padding: .55rem .8rem; border: 1px solid var(--red); border-radius: 2px; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; }.play-button { background: var(--red); color: var(--white); }.play-button:hover { background: #982132; }.official-button { background: transparent; color: var(--red); }.official-button:hover { background: rgba(182, 41, 58, .08); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid #cfdade; }.detail-grid dt { margin: 0 0 .25rem; color: var(--muted); font-size: .67rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }.detail-grid dd { margin: 0; font-size: .8rem; line-height: 1.42; }.detail-grid .full { grid-column: 1 / -1; }
.programme-record { display: grid; gap: .32rem; }.programme-line { display: block; }.programme-line a { color: var(--red); font-weight: 700; text-decoration: none; }.programme-line a:hover { text-decoration: underline; }.programme-time { color: var(--muted); white-space: normal; }.programme-record .detail-subtitle { margin: 0; }.programme-fetch-status { margin-top: .2rem !important; font-size: .72rem !important; }
.accessibility-record dd, .validation-record dd { display: grid; gap: .18rem; }.accessibility-record .detail-subtitle { margin: .3rem 0 0; }.validation-record a { width: max-content; color: var(--red); font-weight: 700; }
.fallback-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }.fallback-list li { display: grid; gap: .18rem; padding-bottom: .55rem; border-bottom: 1px solid #dbe4e8; }.fallback-list li:last-child { padding-bottom: 0; border-bottom: 0; }.fallback-list a { color: var(--red); font-weight: 700; }.fallback-list span, .fallback-list small { color: var(--muted); font-size: .72rem; line-height: 1.35; }.fallback-schedule { display: grid; gap: .12rem; padding-left: .5rem; border-left: 2px solid var(--faint); }.fallback-schedule a { color: var(--red); text-decoration: none; }.fallback-schedule a:hover { text-decoration: underline; }.fallback-schedule em { color: var(--muted); font-style: normal; }
.identity-list { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; padding: 0; list-style: none; }.identity-list a { color: var(--red); }.identity-code { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72em; }
.evidence-dates dd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }.evidence-dates dd span { display: grid; gap: .12rem; color: var(--muted); font-size: .7rem; }.evidence-dates dd strong { color: var(--ink); font-size: .62rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.detail-note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid #cfdade; color: var(--muted); font-size: .76rem; line-height: 1.5; }.detail-note a { color: var(--red); }
.research-note-disclosure summary { display: flex; align-items: center; min-height: 38px; color: var(--red); font-weight: 700; cursor: pointer; }.research-note-disclosure div { padding-top: .35rem; }.research-note-disclosure p { margin: .55rem 0 0; }
.epg-list { margin: .2rem 0 0; padding: 0; list-style: none; }.epg-list li { margin: .35rem 0; }.epg-list a { color: var(--red); }
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 5rem 0; border-top: 1px solid var(--faint); }.method h2 { font-size: clamp(1.9rem, 3.2vw, 3.3rem); }.method-copy { max-width: 440px; color: var(--muted); line-height: 1.6; }.method-copy p { margin-top: 0; }.method-copy .text-link { display: inline-block; margin-top: .6rem; }
.open-streams { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 0 0 5rem; }.open-streams h2 { font-size: clamp(1.9rem, 3.2vw, 3.3rem); }.open-streams-copy { max-width: 440px; color: var(--muted); line-height: 1.6; }.open-streams-copy p { margin-top: 0; }.open-streams-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }.open-streams-links .text-link { font-size: .82rem; }
.principles-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--ink); list-style: none; }.principles-index li { padding: .62rem .5rem .62rem 0; border-bottom: 1px solid var(--faint); color: var(--ink); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }.principles-index li:nth-child(even) { padding-left: .75rem; border-left: 1px solid var(--faint); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.25rem; border-top: 1px solid var(--faint); color: var(--muted); font-size: .76rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .catalogue-layout { grid-template-columns: 1fr; }.filters { grid-template-columns: 1fr; }.search-field { grid-column: auto; }
  .detail-panel { display: none; }.detail-panel.is-open { display: block; position: fixed; z-index: 30; inset: auto 0 0; width: 100%; height: var(--mobile-sheet-height, 54dvh); max-height: 90dvh; min-height: 150px; overflow: auto; overscroll-behavior: contain; border-top: 3px solid var(--red); padding: 0 1.5rem 1.5rem; box-shadow: 0 -18px 45px rgba(27, 49, 59, .2); transition: height .18s ease; }.detail-panel::before { display: none; }.detail-panel.is-open:has(.detail-grabber:active) { transition: none; }.detail-panel.is-open > :not(.mobile-sheet-controls) { width: min(100%, 820px); margin-right: auto; margin-left: auto; }
  .mobile-sheet-controls { display: flex; position: sticky; z-index: 2; top: 0; align-items: center; margin: 0 -1.5rem .1rem; padding: .25rem .5rem; background: var(--wash); }.detail-grabber { display: grid; width: 100%; place-items: center; height: 30px; border: 0; background: transparent; cursor: ns-resize; touch-action: none; }.detail-grabber span { display: block; width: 42px; height: 5px; border-radius: 3px; background: #9aabb2; }
}
@media (min-width: 681px) and (max-width: 1100px) {
  .detail-panel.is-open { height: var(--mobile-sheet-height, 68dvh); }
  .detail-panel.is-open > :not(.mobile-sheet-controls) { width: min(100%, 720px); }
  .detail-panel.is-open .media-frame { width: min(100%, 520px); margin-right: auto; margin-left: auto; }
}
@media (max-width: 680px) {
  .header-inner, main, .site-footer { width: min(100% - 2rem, 1240px); }
  .header-inner { height: auto; min-height: 94px; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .75rem; padding-top: .55rem; }.brand { gap: .55rem; font-size: .9rem; }.brand-mark { width: 23px; height: 23px; flex-basis: 23px; } nav { display: grid; grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 0; border-top: 1px solid var(--faint); } nav > a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: .25rem; font-size: .72rem; text-align: center; } nav > a + a { border-left: 1px solid var(--faint); } nav > .github-link { display: none; }.locale-control { grid-column: 2; grid-row: 1; }.locale-control select { max-width: 132px; }
  nav a[aria-current="page"] { text-decoration-thickness: 2px; text-underline-offset: .35rem; }
  .intro { min-height: 320px; background-position: 55% center; }.intro-inner { width: min(100% - 2rem, 1240px); padding: 2rem 0 1.5rem; }.intro .section-label { margin-bottom: .45rem; } h1 { font-size: 2.35rem; line-height: 1; }.lede { margin-top: .8rem; font-size: .92rem; line-height: 1.45; }.catalogue-stats { margin-top: .9rem; }.hero-credit { width: auto; max-width: 100%; margin-top: 1rem; font-size: .62rem; }
  .catalogue-section { padding: 1.1rem 0 4rem; }.catalogue-heading { align-items: start; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }.catalogue-heading h2 { font-size: 2rem; }
  .catalogue-overview { grid-template-columns: 1fr 1fr; margin-bottom: .8rem; }.catalogue-overview div { padding: .65rem .6rem .7rem 0; }.catalogue-overview div + div { padding-left: .7rem; }.catalogue-overview div:nth-child(3) { border-left: 0; }.catalogue-overview div:nth-child(n + 3) { border-top: 1px solid var(--faint); }.catalogue-overview dd { font-size: 1rem; }
  .filters { gap: .55rem; padding: .8rem 0; }.filter-disclosure { border: 1px solid var(--control-border); }.filter-disclosure summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 .75rem; color: var(--ink); cursor: pointer; font-size: .85rem; font-weight: 700; list-style: none; }.filter-disclosure summary::-webkit-details-marker { display: none; }.filter-summary-icon { color: var(--muted); font-size: 1.1rem; transition: transform .16s ease; }.filter-disclosure[open] .filter-summary-icon { transform: rotate(180deg); }.filter-controls { grid-template-columns: 1fr; gap: .55rem; padding: 0 .75rem .75rem; }.filter-controls label { border-top: 1px solid var(--faint); padding-top: .55rem; }
  .results-count { margin: .75rem 0 .35rem; }.catalogue-layout { display: block; }.table-wrap { overflow: visible; }.channel-table { min-width: 0; }.channel-header { display: none; }.channel-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .5rem; min-height: 58px; padding: .55rem 0; align-items: start; }.channel-button > span:first-child { grid-column: 1 / -1; }.channel-button > span:nth-child(2), .channel-button > span:nth-child(3), .channel-button > span:nth-child(6) { display: none; }.channel-button > span:nth-child(4) { grid-column: 1; }.channel-button > span:nth-child(5) { grid-column: 2; }.channel-name { font-size: .84rem; line-height: 1.2; }.legislature { overflow: hidden; margin-top: .12rem; font-size: .68rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }.row-tag { padding: .18rem .3rem; font-size: .62rem; }
  .detail-panel.is-open { padding-right: .85rem; padding-left: .85rem; }.detail-panel.is-open > :not(.mobile-sheet-controls) { width: 100%; }.mobile-sheet-controls { margin-right: -.85rem; margin-left: -.85rem; }.detail-title { max-width: 100%; font-size: 1.3rem; line-height: 1.08; }.detail-subtitle { margin: .28rem 0 .65rem; padding-right: 0; font-size: .75rem; }.media-frame { min-height: 0; margin: .65rem 0; }.player-placeholder span, .placeholder-play-button { width: 38px; height: 38px; margin-bottom: .5rem; }.player-placeholder p { font-size: .74rem; }.detail-actions { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem; margin: .65rem 0; }.play-button, .official-button { min-height: 36px; padding: .48rem .65rem; font-size: .74rem; }.official-button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.detail-grid { grid-template-columns: 1fr 1fr; gap: .65rem; padding-top: .8rem; }.detail-grid dt { font-size: .6rem; }.detail-grid dd { font-size: .75rem; line-height: 1.35; }.detail-grid .full { grid-column: 1 / -1; }.evidence-dates dd { grid-template-columns: 1fr; }.detail-note { margin-top: .9rem; padding-top: .75rem; font-size: .72rem; }.method, .open-streams { grid-template-columns: 1fr; gap: 1.75rem; padding: 3.5rem 0; }.open-streams { padding-top: 0; }.site-footer { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
