
/* ===== Tokens ===== */
:root {
  --red: #C51F32; --navy: #173B75; --yellow: #F3C52D; --deep: #0E2347;
  --ink: #17202D; --muted: #566174; --rule: #DDE1E7; --paper: #F4F6F9; --white: #fff;
  --c-news: #C51F32; --c-politics: #2D5CA8; --c-sports: #1E7A4C; --c-entertainment: #7A2E8E; --c-lifestyle: #B85A0A; --c-video: #F3C52D;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gap: 16px; --maxw: 1240px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.55 var(--body); color: var(--ink); background: var(--white); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.site-header :focus-visible, .video-centre :focus-visible, .site-footer :focus-visible, .breaking :focus-visible, .layout-dark :focus-visible { outline-color: var(--yellow); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 100; }
[hidden] { display: none !important; }

.btn { display: inline-block; background: var(--red); color: #fff; padding: 12px 22px; min-height: 44px; font: 700 1.1rem var(--head); letter-spacing: .02em; text-decoration: none; border: 0; border-radius: 2px; cursor: pointer; }
.btn:hover { background: #a81a2a; }
.btn-yellow { background: var(--yellow); color: var(--deep); }
.btn-yellow:hover { background: #ffd84d; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); color: #fff; }
.topbar { display: none; background: #0A1A38; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.mainbar { border-bottom: 3px solid var(--red); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { font: 700 2.1rem/1 var(--head); text-decoration: none; color: #fff; letter-spacing: .01em; white-space: nowrap; }
.logo span { background: var(--red); color: #fff; padding: 0 7px 1px; margin-left: 3px; border-radius: 2px; }
.tagline { display: none; font: 600 1.05rem var(--head); color: var(--yellow); letter-spacing: .08em; border-left: 1px solid rgba(255,255,255,.3); padding-left: 16px; }
.bar-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: #fff; border: 0; cursor: pointer; border-radius: 2px; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.social { display: flex; gap: 2px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 50%; }
.social a:hover { background: rgba(255,255,255,.14); color: var(--yellow); }
.search-panel { background: var(--navy); padding: 12px 0; }
.search-panel form { display: flex; max-width: 640px; }
.search-panel input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; border: 0; border-radius: 2px 0 0 2px; }
.search-panel button { padding: 0 20px; font: 700 1.05rem var(--head); background: var(--yellow); color: var(--deep); border: 0; border-radius: 0 2px 2px 0; cursor: pointer; }

/* Navigation: slide-down panel on mobile, horizontal bar on desktop */
.site-nav { display: none; background: var(--navy); }
.site-nav.is-open { display: block; max-height: calc(100vh - 64px); overflow-y: auto; }
.site-nav .wrap { display: grid; padding-bottom: 12px; }
.site-nav a { padding: 13px 0; font: 600 1.25rem var(--head); letter-spacing: .03em; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-nav a[aria-current="page"] { color: var(--yellow); }
.nav-social { padding-top: 12px; }

/* ===== Breaking news ===== */
.breaking { background: var(--red); color: #fff; }
.breaking-inner { display: flex; align-items: stretch; padding-top: 0; padding-bottom: 0; }
.breaking-label { flex: none; display: flex; align-items: center; background: var(--yellow); color: var(--deep); font: 700 1.05rem var(--head); letter-spacing: .06em; padding: 0 14px; margin-left: calc(var(--gap) * -1); text-transform: uppercase; }
.ticker { flex: 1; overflow: hidden; padding: 11px 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker:focus .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; }
.ticker li { flex: none; padding: 0 28px; font-weight: 600; font-size: 1rem; white-space: nowrap; position: relative; }
.ticker li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--yellow); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; }
  .ticker ul[aria-hidden] { display: none; }
}

/* ===== Layout blocks ===== */
.page { padding-top: 24px; padding-bottom: 56px; }
.top-ad { padding-top: 16px; }
.section-block { padding-top: 24px; padding-bottom: 8px; }
.in-content-ad { padding-top: 24px; padding-bottom: 32px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.sec-head { font-size: 1.9rem; padding-bottom: 8px; border-bottom: 4px solid var(--red); margin-bottom: -1px; display: inline-block; }
section > .sec-head { margin-bottom: 18px; }
.more-link { font: 600 1.1rem var(--head); letter-spacing: .03em; text-decoration: none; color: var(--navy); white-space: nowrap; padding: 6px 0; }
.more-link:hover { text-decoration: underline; }

/* ===== Cards ===== */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; font-size: .875rem; }
.label { font-weight: 700; color: var(--red); }
time { color: var(--muted); }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-media { display: block; overflow: hidden; background: var(--deep); aspect-ratio: 3 / 2; }
.card-lead .card-media { aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.5rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover, .card h3 a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 1rem; }
.card-lead h3 { font-size: 2.1rem; }
.card-lead p { font-size: 1.1rem; }
.cat-politics .label { color: var(--c-politics); } .cat-sports .label { color: var(--c-sports); }
.cat-entertainment .label { color: var(--c-entertainment); } .cat-lifestyle .label { color: var(--c-lifestyle); }
.read-more { display: inline-block; margin-top: 10px; padding: 6px 0; font: 700 1.1rem var(--head); letter-spacing: .03em; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--yellow); }
.read-more:hover { color: var(--red); }

.card-compact { flex-direction: row; gap: 14px; align-items: flex-start; }
.card-compact .card-media { flex: none; width: 112px; aspect-ratio: 4 / 3; }
.card-compact h3 { font-size: 1.2rem; }
.card-text { padding: 14px 0; border-top: 1px solid var(--rule); }
.card-text h3 { font-size: 1.3rem; }

/* ===== Featured ===== */
.featured { display: grid; gap: 24px; }
.featured-side { display: grid; gap: 18px; align-content: start; }
.featured-side .card { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.featured-side .card:last-child { border-bottom: 0; }

/* ===== Latest + sidebar ===== */
.grid { display: grid; gap: 28px var(--gap); }
.sidebar { margin-top: 32px; }

/* ===== Ads ===== */
.ad { width: 100%; }
.ad-label { font-size: .75rem; color: var(--muted); text-align: center; margin-bottom: 4px; }
.ad-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: repeating-linear-gradient(135deg, #EEF1F5, #EEF1F5 12px, #E6EAF0 12px, #E6EAF0 24px); border: 1px dashed #B5BDCB; color: #6B7587; font-weight: 600; text-align: center; padding: 8px; }
.ad-box small { font-weight: 400; font-size: .8rem; }
.ad-top .ad-box, .ad-footer .ad-box { min-height: 100px; }
.ad-in-content .ad-box { min-height: 280px; max-width: 336px; margin: 0 auto; }
.ad-sidebar .ad-box { min-height: 250px; max-width: 300px; margin: 0 auto; }
.footer-ad { padding-top: 40px; padding-bottom: 32px; }

/* ===== Video centre ===== */
.video-centre { background: var(--deep); color: #fff; padding: 40px 0; margin-top: 8px; }
.video-centre .sec-row { border-color: rgba(255,255,255,.2); }
.video-centre .sec-head { border-color: var(--yellow); }
.video-grid { display: grid; gap: 24px; }
.video-list { display: grid; gap: 18px; align-content: start; }
.vcard { display: flex; flex-direction: column; gap: 12px; }
.vcard-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0A1A38; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; padding-left: 3px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.vcard-large .play { width: 68px; height: 68px; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); padding-left: 5px; }
.vcard-media:hover .play, .vcard-media:focus-visible .play { background: #e02a40; }
.duration { position: absolute; right: 10px; bottom: 10px; background: rgba(10,26,56,.9); color: #fff; font-size: .8rem; font-weight: 600; padding: 2px 7px; border-radius: 2px; }
.vcard .label { color: var(--yellow); }
.vcard time { color: #B8C4DB; }
.vcard h3 { font-size: 1.3rem; }
.vcard-large h3 { font-size: 1.9rem; }
.vcard h3 a { text-decoration: none; }
.vcard h3 a:hover { text-decoration: underline; }
.video-list .vcard { flex-direction: row; gap: 14px; align-items: flex-start; }
.video-list .vcard-media { flex: none; width: 150px; }
.video-list .play { width: 34px; height: 34px; left: 8px; bottom: 8px; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.video-list .duration { display: none; }
.video-list h3 { font-size: 1.15rem; }
.video-cta { margin-top: 28px; }

/* ===== Category sections ===== */
.catsec { padding: 40px 0; border-top: 1px solid var(--rule); --accent: var(--red); }
.cat-politics.catsec { --accent: var(--c-politics); } .cat-sports.catsec { --accent: var(--c-sports); }
.cat-entertainment.catsec { --accent: var(--c-entertainment); } .cat-lifestyle.catsec { --accent: var(--c-lifestyle); }
.catsec .sec-head { border-color: var(--accent); }
.catsec .more-link { color: var(--accent); }
.catsec-grid { display: grid; gap: 24px; }
.catsec .card-medium .card-media { aspect-ratio: 16 / 9; }
.catsec-list { display: grid; gap: 16px; align-content: start; }
.layout-split, .layout-split-flip { background: var(--paper); }
.layout-split .card-text { border-top: 3px solid var(--accent); }
.layout-split-flip .card-text { border-top: 3px solid var(--accent); }
.layout-grid .catsec-list { gap: 18px; }
.layout-dark { background: #2A1233; color: #fff; border-top: 0; }
.layout-dark .sec-row { border-color: rgba(255,255,255,.2); }
.layout-dark .sec-head { border-color: var(--yellow); }
.layout-dark .more-link, .layout-dark .label { color: var(--yellow); }
.layout-dark time, .layout-dark .card p { color: #D9C6E0; }

/* ===== Placeholder / error pages ===== */
.placeholder { max-width: 680px; margin: 40px auto 0; padding: 36px 0 0; border-top: 4px solid var(--red); }
.placeholder .label { margin-bottom: 8px; }
.placeholder h1 { font-size: 3rem; margin-bottom: 14px; }
.lede { font-size: 1.3rem; color: var(--ink); margin-bottom: 14px; }
.placeholder p { margin-bottom: 14px; color: var(--muted); }
.placeholder .lede { color: var(--ink); }

/* ===== Footer ===== */
.site-footer { background: var(--deep); color: #fff; padding-top: 40px; border-top: 4px solid var(--red); }
.foot-grid { display: grid; gap: 28px; }
.foot-brand p { margin: 12px 0 14px; color: #C9D3E6; max-width: 38ch; }
.site-footer nav { display: grid; gap: 2px; align-content: start; }
.site-footer h2 { font-size: 1.3rem; color: var(--yellow); margin-bottom: 6px; }
.site-footer nav a { padding: 6px 0; color: #D6DEEE; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.legal { padding-top: 24px; padding-bottom: 28px; font-size: .875rem; color: #A9B6CE; }

/* ===== Tablet ===== */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .featured-side { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .featured-side .card { flex-direction: column; border-bottom: 0; padding-bottom: 0; }
  .featured-side .card-media { width: 100%; aspect-ratio: 3 / 2; }
  .catsec-grid { grid-template-columns: 1fr 1fr; }
  .layout-grid .catsec-list { grid-template-columns: 1fr; }
  .video-list { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .video-list .vcard { flex-direction: column; }
  .video-list .vcard-media { width: 100%; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .ad-top .ad-box, .ad-footer .ad-box { min-height: 90px; }
  .ad-in-content .ad-box { min-height: 90px; max-width: 728px; }
}

/* ===== Desktop ===== */
@media (min-width: 1024px) {
  :root { --gap: 24px; }
  body { font-size: 18px; }
  .topbar { display: block; }
  .tagline { display: block; }
  .menu-btn { display: none; }
  .bar { min-height: 76px; }
  .logo { font-size: 2.5rem; }
  .site-nav, .site-nav.is-open { display: block; max-height: none; overflow: visible; border-top: 1px solid rgba(255,255,255,.12); }
  .site-nav .wrap { display: flex; align-items: center; padding-bottom: 0; }
  .site-nav a { padding: 12px 14px; border-bottom: 3px solid transparent; font-size: 1.15rem; }
  .site-nav a:first-child { padding-left: 0; }
  .site-nav a:hover { border-bottom-color: var(--yellow); }
  .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--yellow); }
  .nav-social { display: none; }
  .breaking-label { margin-left: 0; padding: 0 18px; font-size: 1.15rem; }
  .featured { grid-template-columns: 2fr 1fr; gap: 32px; }
  .featured-side { grid-template-columns: 1fr; gap: 20px; }
  .featured-side .card { flex-direction: row; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
  .featured-side .card:last-child { border-bottom: 0; padding-bottom: 0; }
  .featured-side .card-media { width: 140px; aspect-ratio: 4 / 3; }
  .card-lead h3 { font-size: 2.6rem; }
  .with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
  .with-sidebar .grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { margin-top: 0; position: sticky; top: 140px; }
  .video-grid { grid-template-columns: 2fr 1fr; gap: 32px; }
  .video-list { grid-template-columns: 1fr; gap: 18px; }
  .video-list .vcard { flex-direction: row; }
  .video-list .vcard-media { width: 160px; }
  .vcard-large h3 { font-size: 2.3rem; }
  .catsec-grid { grid-template-columns: 5fr 4fr; gap: 40px; }
  .layout-split-flip .catsec-grid { grid-template-columns: 4fr 5fr; }
  .layout-split-flip .catsec-grid > .card { order: 2; }
  .layout-grid .catsec-grid { grid-template-columns: 1fr 1fr; }
  .layout-grid .catsec-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1200px) { .with-sidebar .grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Stage 2: inner pages (articles, sections, videos, profiles, search, policies) ===== */
html { scroll-padding-top: 160px; }
@media (max-width: 1023px) { html { scroll-padding-top: 76px; } }

/* Breadcrumbs */
.crumbs { margin: 4px 0 18px; font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #8B94A5; }
.crumbs a { color: var(--navy); text-decoration: none; padding: 8px 0; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }

/* Page header band */
.page-head { padding: 6px 0 22px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); --accent: var(--red); }
.page-head.cat-politics { --accent: var(--c-politics); } .page-head.cat-sports { --accent: var(--c-sports); }
.page-head.cat-entertainment { --accent: var(--c-entertainment); } .page-head.cat-lifestyle { --accent: var(--c-lifestyle); }
.page-head.cat-video { --accent: var(--yellow); }
.page-head h1 { font-size: 2.6rem; padding-left: 14px; border-left: 8px solid var(--accent); }
.page-head .lede { margin: 12px 0 0; font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.page-head .label { margin-bottom: 6px; }
.empty { color: var(--muted); padding: 20px 0; }
.empty-box { background: var(--paper); padding: 28px 24px; border-left: 4px solid var(--yellow); }
.empty-box h2 { font-size: 1.6rem; margin-bottom: 8px; }
.empty-box .chips { margin-top: 14px; }

/* Notes */
.sample-note { margin: 14px 0; padding: 10px 14px; background: #FFF7DB; border-left: 4px solid var(--yellow); font-size: .95rem; color: #4A3B00; }
.updated { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.note { color: var(--muted); margin-top: 24px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; text-decoration: none; font: 600 1.05rem var(--head); letter-spacing: .03em; color: var(--ink); }
.chips a:hover { border-color: var(--navy); }
.chips a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Article */
.article-layout { display: grid; gap: 40px; }
.article { min-width: 0; }
.article-head h1 { font-size: 2.4rem; margin-bottom: 14px; }
.article-head .dek { font-size: 1.3rem; line-height: 1.4; color: #3A4556; margin-bottom: 18px; }
.article-head .meta { margin-bottom: 10px; font-size: 1rem; }
.article-head .meta .label { text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.byline { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline p { font-size: .95rem; line-height: 1.4; }
.byline a { font-weight: 700; text-decoration: none; color: var(--navy); }
.byline a:hover { text-decoration: underline; }
.when { color: var(--muted); font-size: .9rem; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.1rem var(--head); letter-spacing: .04em; text-decoration: none; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 2.2rem; }
.article-figure { margin: 22px calc(var(--gap) * -1); }
.article-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--deep); }
.article-figure figcaption { padding: 8px var(--gap) 0; font-size: .85rem; color: var(--muted); }
.article-figure figcaption span { margin-left: 6px; }

/* Share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.share-label { font: 700 1.05rem var(--head); letter-spacing: .04em; margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 2px; background: #fff; color: var(--ink); font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--navy); color: var(--navy); }

/* Prose */
.prose { max-width: 70ch; }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose p { font-size: 1.1rem; line-height: 1.7; }
.prose h2 { font-size: 1.8rem; margin: 1.6em 0 .6em; padding-top: .4em; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose li { margin-bottom: .45em; font-size: 1.08rem; line-height: 1.6; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--red); }
.prose blockquote p { font: 600 1.6rem/1.3 var(--head); margin: 0 0 6px; color: var(--deep); }
.prose blockquote footer { font-size: .9rem; color: var(--muted); }
.prose a { color: var(--navy); }
.prose-ad { margin: 1.6em 0; }
.article .tags { margin: 20px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .95rem; }
.tags a, .tags span { padding: 4px 0; }
.tags a { padding: 6px 12px; background: var(--paper); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; }
.tags a:hover { background: #E4EAF3; }
.author-box { display: flex; gap: 16px; margin: 28px 0 12px; padding: 20px; background: var(--paper); border-top: 4px solid var(--navy); }
.author-box h2 { font-size: 1.5rem; } .author-box a { text-decoration: none; color: var(--navy); }
.author-box p { font-size: .98rem; margin-top: 6px; } .author-box .role { color: var(--muted); margin-top: 2px; }
.corrections-note { font-size: .9rem; color: var(--muted); }
.article-side { display: grid; gap: 28px; align-content: start; }
.side-head { font-size: 1.4rem; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 3px solid var(--red); }

/* Lists and grids */
.grid-3 { grid-template-columns: 1fr; }
.results { display: grid; gap: 4px; max-width: 880px; }
.results .card-compact { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.results .card-compact .card-media { width: 160px; }
.results .card-compact h3 { font-size: 1.4rem; }
.results .card-compact p { display: block; }
.video-strip { display: grid; gap: 22px; }
.video-strip .vcard .label { color: var(--navy); } .video-strip .vcard time { color: var(--muted); }
.video-strip .vcard h3 a { color: var(--ink); }
.video-grid-3 .vcard .label, .videos-page .grid .vcard .label { color: var(--navy); }
.videos-page .grid .vcard time { color: var(--muted); } .videos-page .grid .vcard h3 a { color: var(--ink); }
.on-dark { color: #C9D3E6; }
.catsec-list .card-text { padding: 14px 0; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 8px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--rule); font: 600 1.05rem var(--head); text-decoration: none; color: var(--ink); background: #fff; }
.pagination a:hover { border-color: var(--navy); }
.pagination a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .is-disabled { color: #9AA3B2; background: var(--paper); }

/* Video page */
.video-layout { display: grid; gap: 32px; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--deep); overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.player-placeholder .play { position: absolute; left: 50%; top: 45%; width: 76px; height: 76px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; padding-left: 5px; box-shadow: 0 0 0 4px rgba(255,255,255,.9); }
.player-placeholder p { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: rgba(10,26,56,.88); color: #fff; font-size: .95rem; }
.video-head { margin-top: 18px; }
.video-head h1 { font-size: 2.1rem; margin-bottom: 8px; }
.video-head .meta span:last-child { color: var(--muted); font-weight: 600; }
.video-side { display: grid; gap: 20px; align-content: start; }
.video-side .vcard { flex-direction: row; gap: 12px; align-items: flex-start; }
.video-side .vcard-media { flex: none; width: 140px; }
.video-side .play { width: 30px; height: 30px; left: 6px; bottom: 6px; box-shadow: 0 0 0 2px #fff; }
.video-side .duration { display: none; }
.video-side .vcard .label { color: var(--navy); } .video-side .vcard time { color: var(--muted); } .video-side .vcard h3 a { color: var(--ink); }
.video-side .vcard h3 { font-size: 1.1rem; }
.videos-page .video-centre { margin: 12px 0 36px; }

/* Profile */
.profile-head { display: flex; flex-direction: column; gap: 20px; padding: 8px 0 26px; border-bottom: 1px solid var(--rule); }
.profile-head h1 { font-size: 2.8rem; }
.role { color: var(--muted); font-weight: 600; }
.profile-head .lede { margin: 12px 0 18px; font-size: 1.15rem; max-width: 62ch; }
.facts { display: grid; gap: 10px; }
.facts div { display: flex; gap: 12px; flex-wrap: wrap; } .facts dt { font-weight: 700; min-width: 11em; } .facts dd { margin: 0; }
.facts a { color: var(--navy); word-break: break-word; }

/* Documents, about, contact */
.doc-layout { display: grid; gap: 32px; }
.doc-nav { display: grid; gap: 2px; align-content: start; }
.doc-nav a { padding: 11px 12px; text-decoration: none; border-left: 3px solid transparent; color: var(--ink); }
.doc-nav a:hover { background: var(--paper); }
.doc-nav a[aria-current="page"] { border-left-color: var(--red); font-weight: 700; background: var(--paper); }
.people { display: grid; gap: 18px; margin: 20px 0 28px; max-width: 70ch; }
.people li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.people h3 { font-size: 1.4rem; } .people a { text-decoration: none; color: var(--navy); } .people p { font-size: .98rem; }
.contact-grid { display: grid; gap: 16px; margin-top: 18px; }
.contact-card { padding: 22px; border: 1px solid var(--rule); border-top: 4px solid var(--navy); background: #fff; }
.contact-card h2 { font-size: 1.5rem; margin-bottom: 8px; } .contact-card p { margin-bottom: 8px; color: var(--muted); }
.contact-card a { color: var(--navy); font-weight: 600; word-break: break-word; }

/* Footer sample line */
.sample-foot { color: #F3C52D; }

@media (min-width: 640px) {
  .article-figure { margin-left: 0; margin-right: 0; } .article-figure figcaption { padding-left: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .video-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-head { flex-direction: row; gap: 28px; }
}
@media (min-width: 1024px) {
  .page-head h1 { font-size: 3.4rem; }
  .article-head h1 { font-size: 3.2rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .article-side { position: sticky; top: 160px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .video-strip { grid-template-columns: repeat(3, 1fr); }
  .video-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .video-head h1 { font-size: 2.6rem; }
  .doc-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .search-form { max-width: 640px; }
}
.search-form { display: flex; margin-top: 18px; max-width: 640px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; border: 2px solid var(--navy); border-right: 0; border-radius: 2px 0 0 2px; }
.search-form .btn { border-radius: 0 2px 2px 0; }

/* Fixes found in visual review */
ol { margin: 0; padding: 0; list-style: none; }
.byline a.avatar { color: #fff; }
.byline a.avatar:hover { text-decoration: none; }
.tags { margin: 20px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .95rem; }
