/* =========================================================
   SMS Somali TV — public site
   Editorial broadcast style: serif headlines, ruled sections,
   red brand, dark bands for video & sports.
   ========================================================= */
:root {
  --brand: #ed2027;
  --brand-ink: #b3121d;
  --ink: #0f1115;
  --ink-2: #3d424b;
  --muted: #6f7580;
  --rule: #e4e1da;
  --rule-strong: #0f1115;
  --paper: #faf9f6;
  --surface: #ffffff;
  --sunken: #f1efea;
  --band: #0f1115;
  --radius: 6px;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1280px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f0ec; --ink-2: #c9cbd0; --muted: #8e939c; --rule: #2a2c31; --rule-strong: #f1f0ec;
    --paper: #0d0e11; --surface: #15171b; --sunken: #1b1d22; --band: #060708; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f1f0ec; --ink-2: #c9cbd0; --muted: #8e939c; --rule: #2a2c31; --rule-strong: #f1f0ec;
  --paper: #0d0e11; --surface: #15171b; --sunken: #1b1d22; --band: #060708; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.btn:hover { background: var(--brand); color: #fff; }

/* ---------- Utility bar ---------- */
.utility { background: var(--band); color: #b7bbc3; font-size: 12.5px; }
.utility-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 38px; gap: 12px; }
.today { letter-spacing: .2px; }
.edition { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.edition a { padding: 3px 14px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: .3px; color: #c9ccd2; transition: background .15s, color .15s; }
.edition a:hover { color: #fff; }
.edition a.on { background: #fff; color: #0f1115; }
.utility-right { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.soc, .theme-toggle { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #b7bbc3; background: none; border: 0; cursor: pointer; }
.soc:hover, .theme-toggle:hover { color: #fff; background: rgba(255,255,255,.1); }
.soc svg, .theme-toggle svg { width: 15px; height: 15px; }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.masthead-in { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .2s; }
.masthead.compact .masthead-in { height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { background: var(--brand); color: #fff; font: 900 21px/1 var(--sans); letter-spacing: .5px; padding: 9px 10px 8px; border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.brand-text { display: flex; flex-direction: column; font: 800 14px/1.02 var(--sans); text-transform: uppercase; letter-spacing: 1.6px; }
.brand-text b:last-child { color: var(--brand); }
.brand-lg .brand-mark { font-size: 28px; padding: 12px 13px 11px; }
.brand-lg .brand-text { font-size: 18px; }
.mainnav { display: flex; gap: 2px; align-items: center; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { --c: var(--ink); position: relative; padding: 8px 12px; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink-2); border-radius: 4px; }
.mainnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--c); border-radius: 2px; transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.mainnav a:hover { color: var(--ink); }
.mainnav a:hover::after, .mainnav a.active::after { transform: scaleX(1); }
.mainnav a.active { color: var(--ink); }
.masthead-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: none; border: 1px solid var(--rule); color: var(--ink); cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: var(--sunken); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; gap: 4px; align-content: center; }
.nav-toggle span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.live-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .3px; text-transform: uppercase; padding: 10px 16px; border-radius: 999px; transition: background .15s, transform .15s; }
.live-btn:hover { background: var(--brand-ink); transform: translateY(-1px); }
.lb-short { display: none; }
.live-btn i, .live-inline i, .live-dot i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: live 1.6s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.searchbar { display: none; border-top: 1px solid var(--rule); background: var(--surface); }
.search-open .searchbar { display: block; }
.searchbar-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.searchbar svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.searchbar input { flex: 1; border: 0; background: transparent; font: 600 20px var(--sans); color: var(--ink); outline: none; min-width: 0; }
.searchbar button, .search-big button { background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; cursor: pointer; }
.searchbar button:hover, .search-big button:hover { background: var(--brand); color: #fff; }

/* ---------- Breaking ---------- */
.breaking { background: var(--brand); color: #fff; }
.breaking-in { display: flex; align-items: center; gap: 16px; height: 44px; overflow: hidden; }
.breaking-label { flex: none; background: #fff; color: var(--brand); font-weight: 900; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.breaking-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.breaking-move { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 80s linear infinite; font-weight: 600; font-size: 14px; }
.breaking-move a:hover { text-decoration: underline; }
.breaking-move time { font-weight: 800; opacity: .75; margin-right: 10px; font-variant-numeric: tabular-nums; }
.breaking:hover .breaking-move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.main { padding-bottom: 56px; }

/* ---------- Shared type ---------- */
.kicker { --c: var(--brand); display: inline-block; color: var(--c); font-weight: 800; font-size: 11.5px; letter-spacing: 1.1px; text-transform: uppercase; }
.kicker:hover { text-decoration: underline; text-underline-offset: 3px; }
.kicker-lg { font-size: 13px; }
.c-meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-title { display: flex; align-items: center; gap: 8px; font: 800 12px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 3px solid var(--rule-strong); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Cards ---------- */
.card { --c: var(--brand); position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.c-img { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--sunken); aspect-ratio: 16 / 10; }
.c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .c-img img { transform: scale(1.045); }
.c-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.c-title { margin: 0; font: 700 19px/1.25 var(--serif); letter-spacing: -.2px; font-variation-settings: "opsz" 36; }
.c-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.card:hover .c-title a { background-size: 100% 1.5px; }
.c-excerpt { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.play { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.play svg { width: 18px; height: 18px; margin-left: 2px; }

.c-lead .c-img { aspect-ratio: 3 / 2; }
.c-lead .c-title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.8px; font-variation-settings: "opsz" 144; }
.c-lead .c-excerpt { font-size: 17px; }

.c-list { padding: 14px 0; border-bottom: 1px solid var(--rule); gap: 6px; }
.c-list .c-title { font-size: 17px; }

.c-thumb { flex-direction: row-reverse; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); }
.c-thumb .c-img { width: 112px; flex: none; aspect-ratio: 1; }
.c-thumb .c-title { font-size: 16.5px; }

.c-row { flex-direction: row; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.c-row .c-img { width: 300px; flex: none; }
.c-row .c-title { font-size: 22px; }

.c-wide { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; }
.c-wide .c-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; font-variation-settings: "opsz" 120; }
.c-wide .c-excerpt { font-size: 16.5px; }

.c-overlay { gap: 0; border-radius: var(--radius); overflow: hidden; background: #000; isolation: isolate; }
.c-overlay .c-img { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; z-index: -1; }
.c-overlay .c-img img { opacity: .9; }
.c-overlay .c-body { margin-top: auto; padding: 60px 18px 18px; background: linear-gradient(transparent, rgba(0,0,0,.88) 60%); color: #fff; min-height: 240px; justify-content: flex-end; }
.c-overlay .c-title { font-size: 18px; color: #fff; }
.c-overlay .c-meta { color: rgba(255,255,255,.7); }
.c-overlay .play { top: 14px; bottom: auto; left: 14px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px; padding-top: 32px; padding-bottom: 36px; }
.hero > * { min-width: 0; }
.hero-pair { display: flex; flex-direction: column; gap: 28px; padding-left: 32px; border-left: 1px solid var(--rule); }
.hero-pair .c-title { font-size: 20px; }
.hero-top { padding-left: 32px; border-left: 1px solid var(--rule); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); position: relative; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { font: 800 13px/1.5 var(--sans); color: var(--brand); font-variant-numeric: tabular-nums; }
.timeline .kicker { font-size: 10.5px; margin-bottom: 2px; }
.timeline-title { display: block; font: 700 15.5px/1.32 var(--serif); }
.timeline-title:hover { color: var(--brand); }

/* ---------- Trending strip ---------- */
.trending { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; padding-top: 22px; padding-bottom: 22px; border-top: 3px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.trending-label { margin: 0; font: 900 22px/1.05 var(--serif); letter-spacing: -.3px; }
.trending-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.trending-list li { display: flex; gap: 10px; align-items: flex-start; }
.trending-list .num { font: 900 38px/0.9 var(--serif); color: var(--brand); flex: none; min-width: 26px; }
.trending-list a { font: 700 14.5px/1.35 var(--serif); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.trending-list a:hover { color: var(--brand); }

/* ---------- Section blocks ---------- */
.block { padding-top: 48px; }
.sec-head { --c: var(--brand); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-top: 14px; border-top: 3px solid var(--rule-strong); position: relative; }
.sec-head::before { content: ""; position: absolute; top: -3px; left: 0; width: 88px; height: 3px; background: var(--c); }
.sec-head h2 { margin: 0; font: 900 30px/1 var(--serif); letter-spacing: -.6px; font-variation-settings: "opsz" 144; }
.sec-head h2 a:hover { color: var(--c); }
.sec-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink-2); padding-bottom: 4px; }
.sec-more svg { width: 15px; height: 15px; transition: transform .2s; }
.sec-more:hover { color: var(--c); }
.sec-more:hover svg { transform: translateX(3px); }
.feature-row { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-4 .c-title { font-size: 17.5px; }
.ruled > .card { padding-left: 20px; border-left: 1px solid var(--rule); }
.ruled > .card:first-child { padding-left: 0; border-left: 0; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.duo-col > .card:first-of-type .c-title { font-size: 23px; }
.duo-list { margin-top: 18px; }

/* ---------- Dark bands ---------- */
.band { margin-top: 56px; padding: 44px 0 52px; background: var(--band); color: #f1f0ec; }
.band .sec-head { border-top-color: rgba(255,255,255,.9); }
.band .sec-head h2 a:hover { color: var(--c); }
.band .sec-more { color: rgba(255,255,255,.75); }
.band-sports { --c: #16a34a; background: radial-gradient(1200px 400px at 85% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%), #0a120d; }
.sports-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; }
.sports-grid .card:first-child { grid-column: span 2; grid-row: span 2; }
.sports-grid .card:first-child .c-title { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.12; }
.sports-grid .c-overlay .c-body { min-height: 0; height: 100%; }
.band-video .grid-4 .c-overlay { aspect-ratio: 4 / 5; }
.band-video .grid-4 .c-overlay .c-body { min-height: 0; height: 100%; }
.live-inline { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff !important; padding: 7px 14px; border-radius: 999px; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .3px; }

/* ---------- Page hero (category / search) ---------- */
.page-hero { --c: var(--brand); padding: 44px 0 30px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent); }
.eyebrow { font-weight: 800; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c); }
.page-hero h1 { font: 900 clamp(40px, 7vw, 84px)/0.98 var(--serif); letter-spacing: -2px; margin: 10px 0 12px; font-variation-settings: "opsz" 144; }
.page-hero p { color: var(--ink-2); font-size: 17px; max-width: 640px; margin: 0 0 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chips a { --c: var(--ink); padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface); }
.chips a:hover { border-color: var(--c); color: var(--c); }
.chips a.on { background: var(--c); border-color: var(--c); color: #fff; }
.count-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }
.search-big { display: flex; gap: 8px; max-width: 640px; margin-top: 18px; padding: 6px 6px 6px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.search-big input { flex: 1; border: 0; background: transparent; font: 500 17px var(--sans); color: var(--ink); outline: none; min-width: 0; }
.page-hero .count-note { text-align: left; }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.content > .c-wide { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.cat-grid { row-gap: 36px; }
.list { display: flex; flex-direction: column; gap: 22px; }
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 32px; }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ranked li:last-child { border-bottom: 0; }
.ranked .num { font: 900 30px/0.95 var(--serif); color: var(--brand); min-width: 22px; }
.ranked-title { font: 700 15.5px/1.32 var(--serif); display: block; margin-bottom: 4px; }
.ranked-title:hover { color: var(--brand); }
.rail-cats { display: flex; flex-direction: column; }
.rail-cats a { --c: var(--brand); display: flex; justify-content: space-between; align-items: center; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--rule); font-weight: 700; font-size: 14.5px; position: relative; }
.rail-cats a::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 18px; margin-top: -9px; border-radius: 2px; background: var(--c); }
.rail-cats a:hover { color: var(--c); }
.rail-cats b { font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 10px; color: #fff; background: radial-gradient(circle at 100% 0%, #ff5a63, var(--brand) 45%, #7d0c13); }
.live-card strong { font: 900 24px/1.1 var(--serif); }
.live-card span:last-child { font-weight: 700; font-size: 14px; opacity: .9; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); z-index: 80; }
.story-head { max-width: 900px; padding-top: 44px; padding-bottom: 8px; text-align: center; }
.story-title { font: 800 clamp(32px, 5vw, 58px)/1.06 var(--serif); letter-spacing: -1.2px; margin: 14px 0 18px; font-variation-settings: "opsz" 144; text-wrap: balance; }
.standfirst { font: 500 clamp(18px, 2vw, 21px)/1.5 var(--serif); color: var(--ink-2); margin: 0 auto 22px; max-width: 720px; text-wrap: pretty; }
.byline { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 8px; text-align: left; flex-wrap: wrap; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--c, var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.byline-text { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.byline-text strong { color: var(--ink); font-size: 14.5px; }
.share-inline { display: none; gap: 8px; }
.sh { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .15s; padding: 0; }
.sh svg { width: 17px; height: 17px; }
.sh-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.sh-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.sh-x:hover, .sh-copy:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.story-media { max-width: 1100px; margin: 28px auto 0; }
.story-media img { width: 100%; border-radius: 8px; max-height: 720px; object-fit: cover; }
.story-media figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--c); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-body { display: grid; grid-template-columns: 64px minmax(0, 700px) 300px; gap: 40px; justify-content: center; padding-top: 40px; }
.share-rail { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.share-rail > span { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.story-aside { align-self: start; position: sticky; top: 100px; }
.prose { font: 400 19px/1.78 var(--serif); font-variation-settings: "opsz" 14; color: var(--ink); overflow-wrap: anywhere; }
.prose > p:first-of-type::first-letter { float: left; font: 900 76px/0.82 var(--serif); margin: 6px 12px 0 0; color: var(--c); }
.prose p { margin: 0 0 1.25em; }
.prose h2, .prose h3 { font-weight: 800; line-height: 1.25; margin: 1.6em 0 .6em; letter-spacing: -.3px; }
.prose h2 { font-size: 28px; } .prose h3 { font-size: 23px; }
.prose a { color: var(--c); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img, .prose iframe { max-width: 100%; height: auto; border-radius: 6px; margin: 1.4em 0; }
.prose iframe { aspect-ratio: 16 / 9; width: 100%; border: 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--c); font-size: 24px; line-height: 1.45; font-weight: 600; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font: 13px var(--sans); color: var(--muted); }
.related { padding-top: 64px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--rule); font-weight: 700; font-size: 14px; background: var(--surface); }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .gap { border: 0; background: none; }

.empty { text-align: center; color: var(--ink-2); padding: 56px 16px; font-size: 17px; }
.notfound { text-align: center; padding: 80px 20px; }
.notfound .big { font: 900 140px/1 var(--serif); color: var(--brand); letter-spacing: -6px; }
.notfound h1 { font: 800 36px/1.15 var(--serif); margin: 10px 0; }
.notfound p { color: var(--ink-2); }
.notfound .search-big { margin: 24px auto; }

/* ---------- Footer ---------- */
.footer { background: var(--band); color: #a7abb3; padding-top: 56px; margin-top: 24px; font-size: 14px; }
.footer-top { display: flex; align-items: center; gap: 28px; padding-bottom: 36px; border-bottom: 1px solid #22252b; flex-wrap: wrap; }
.footer-top .brand { color: #fff; }
.footer-top p { flex: 1; min-width: 220px; margin: 0; font: 600 18px/1.4 var(--serif); color: #d3d5da; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 36px 0; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; margin: 0 0 14px; }
.footer-cols a { display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-soc { display: flex; gap: 10px; }
.footer-soc a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1b1e23; padding: 0; }
.footer-soc a:hover { background: var(--brand); }
.footer-soc svg { width: 17px; height: 17px; }
.copyright { border-top: 1px solid #22252b; padding: 20px 0 28px; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hero-top { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .timeline li:nth-last-child(-n+3) { border-bottom: 0; }
  .story-body { grid-template-columns: 56px minmax(0, 700px); }
  .story-aside { display: none; }
  .trending-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trending-list li:nth-child(n+4) { display: none; }
}
@media (max-width: 1024px) {
  .masthead { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .mainnav { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85vw); flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); padding: 80px 12px 24px; transform: translateX(-100%); transition: transform .25s; z-index: 70; box-shadow: none; overflow-y: auto; }
  .nav-open .mainnav { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .mainnav a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .mainnav a::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; transform: scaleY(0); }
  .mainnav a:hover::after, .mainnav a.active::after { transform: scaleY(1); }
  .nav-toggle { display: grid; position: relative; z-index: 75; }
  .masthead-in { gap: 14px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruled > .card:nth-child(3) { padding-left: 0; border-left: 0; }
  .sports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .duo { grid-template-columns: 1fr; gap: 0; }
  .duo-col + .duo-col { padding-top: 48px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .utility-in { grid-template-columns: auto 1fr; }
  .today { display: none; }
  .edition { justify-self: start; }
  .masthead-in { height: 64px; }
  .live-btn { padding: 9px 12px; font-size: 12px; }
  .brand-mark { font-size: 18px; padding: 8px 8px 7px; }
  .brand-text { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .hero-pair { padding-left: 0; border-left: 0; flex-direction: row; gap: 16px; }
  .hero-pair .card { flex: 1; }
  .hero-pair .c-title { font-size: 16px; }
  .timeline { display: block; }
  .timeline li:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .trending { grid-template-columns: 1fr; gap: 14px; }
  .trending-list { grid-template-columns: 1fr; gap: 14px; }
  .trending-list li:nth-child(n+4) { display: flex; }
  .sec-head h2 { font-size: 25px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { gap: 22px 16px; }
  .grid-4 .c-title { font-size: 15.5px; }
  .ruled > .card { padding-left: 0; border-left: 0; }
  .c-wide { grid-template-columns: 1fr; gap: 14px; }
  .c-row { gap: 14px; }
  .c-row .c-img { width: 120px; aspect-ratio: 1; }
  .c-row .c-title { font-size: 17px; }
  .c-row .c-excerpt { display: none; }
  .sports-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .sports-grid .card:first-child { grid-column: span 2; grid-row: span 1; }
  .c-overlay .c-title { font-size: 15.5px; }
  .c-overlay .c-body { padding: 40px 14px 14px; }
  .band { padding: 32px 0 40px; margin-top: 44px; }
  .story-head { text-align: left; padding-top: 28px; }
  .byline { justify-content: flex-start; }
  .share-inline { display: flex; width: 100%; }
  .story-body { grid-template-columns: 1fr; padding-top: 28px; }
  .share-rail { display: none; }
  .story-media { padding: 0; }
  .story-media img { border-radius: 0; }
  .story-media figcaption { margin-left: 16px; margin-right: 16px; }
  .prose { font-size: 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .page-hero { padding-top: 32px; }
}
@media (max-width: 420px) {
  .hero-pair { flex-direction: column; }
  .masthead .lb-long { display: none; }
  .masthead .lb-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.main:has(> .band:last-child) { padding-bottom: 0; }
.main > .band:last-child { margin-bottom: 0; }
.footer { margin-top: 0; }
.main:not(:has(> .band:last-child)) + .footer { margin-top: 24px; }

/* ---------- Ads ---------- */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto; width: 100%; }
.ad-label { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ad ins { width: 100%; }
.ad-top-wrap { padding-top: 18px; }
.ad-top { min-height: 110px; }               /* reserve space so the page doesn't jump when the ad loads */
.ad-home { min-height: 120px; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ad-sidebar { min-height: 280px; }
.prose .ad-article { margin: 1.6em 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.ad-placeholder > div { width: 100%; flex: 1; min-height: inherit; display: grid; place-items: center; border: 2px dashed var(--rule); border-radius: 6px; color: var(--muted); font: 600 13px var(--sans); background: repeating-linear-gradient(45deg, transparent 0 10px, var(--sunken) 10px 20px); }
.ad-top.ad-placeholder > div { min-height: 90px; }
.ad-home.ad-placeholder > div { min-height: 100px; }
.ad-sidebar.ad-placeholder > div { min-height: 250px; }
.ad-article.ad-placeholder > div { min-height: 120px; }

/* ---------- Brand logo ---------- */
.brand .logo { height: 50px; width: auto; transition: height .2s; }
.masthead.compact .brand .logo { height: 40px; }
.logo-white { display: none; }
:root[data-theme="dark"] .masthead .logo-color { display: none; }
:root[data-theme="dark"] .masthead .logo-white { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .masthead .logo-color { display: none; }
  :root:not([data-theme="light"]) .masthead .logo-white { display: block; }
}
.logo-footer { height: 64px; width: auto; }
@media (max-width: 760px) { .brand .logo { height: 40px; } }

.prose video, .prose audio { width: 100%; border-radius: 6px; margin: 1.4em 0; }

/* ---------- Pages & contact form ---------- */
.footer-cols { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.page-body { max-width: 800px; padding-bottom: 24px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -1px; line-height: 1.05; }
.page-prose > p:first-of-type::first-letter { float: none; font: inherit; margin: 0; color: inherit; }
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.contact-form input, .contact-form textarea { font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 11px 13px; }
.contact-form .btn { align-self: flex-start; border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.form-note { padding: 14px 16px; border-left: 4px solid var(--brand); background: var(--sunken); }
.form-note.ok { border-color: #16a34a; }
