@font-face {
  font-family: "Source Serif 4";
  src: url("assets/assets/fonts/SourceSerif4-Bold.ttf") format("truetype"),
    url("../assets/fonts/SourceSerif4-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: var(--portal-paper);
  --white: var(--portal-surface);
  --ink: var(--portal-ink);
  --muted: var(--portal-muted);
  --line: var(--portal-line);
  --brand: var(--portal-red);
  --accent: var(--portal-accent);
  --tint: var(--portal-tint);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 1rem/1.5 var(--sans); }
html.reader { background: #fbfbfa; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { html.reader { background: #101318; } }
h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - clamp(2rem, 8vw, 8rem), 78rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 5; padding: .75rem; background: var(--white); }
.masthead {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--white);
  background: color-mix(in srgb, var(--white) 91%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: var(--portal-shadow);
}
#main { scroll-margin-top: 13rem; }
.edition { background: var(--portal-band); color: #F4F1FF; font-size: .875rem; }
.edition-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.45rem; }
.edition-row span { font-weight: 700; }
.edition-row time { color: #E0D8FA; }
.masthead-row { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.wordmark { display: inline-flex; align-items: center; gap: .58rem; font: 700 clamp(1.32rem, 3.3vw, 2rem)/1 var(--serif); white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.brand-red { color: var(--brand); }
.postmark { display: grid; place-items: center; width: 1.85em; height: 1.85em; font-size: .7em; border-radius: 50%; background: #d63a2a; color: white; outline: 1px solid white; outline-offset: -4px; }
.masthead-actions { display: flex; align-items: center; gap: .7rem; }
.button, .search-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--white); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.button-primary { background: var(--portal-action); color: #fff; border-color: transparent; }
.button:hover, .search-button:hover { text-decoration: none; filter: brightness(.92); }
.search-icon { display: inline-block; width: .85rem; height: .85rem; margin-right: .12rem; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: .42rem; height: 2px; position: absolute; top: .58rem; left: .53rem; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.topics { border-block: 1px solid var(--line); }
.topic-list { display: flex; gap: .35rem; padding-block: .35rem; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.topic-list a { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; border: 1px solid transparent; border-radius: 999px; padding-inline: .75rem; scroll-snap-align: start; color: var(--muted); font-size: .875rem; font-weight: 650; }
.topic-list a:focus-visible { outline-offset: -3px; }
.topic-list a[aria-current], .topic-list a:hover {
  border-color: var(--portal-tint-line);
  color: var(--accent);
  background: var(--tint);
  text-decoration: none;
}
.page-heading { position: relative; isolation: isolate; display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: clamp(1.7rem, 4.4vw, 3.1rem) 0 1.65rem; border-bottom: 1px solid var(--line); }
.page-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 69%),
    radial-gradient(ellipse at 86% 24%, color-mix(in srgb, var(--portal-teal) 15%, transparent), transparent 62%);
}
h1 { font: 700 clamp(2.65rem, 6vw, 5.25rem)/1.02 var(--serif); letter-spacing: -.045em; }
.page-heading p { margin-top: .65rem; color: var(--muted); }
.feed-updated, .story-meta, .credit { font-size: .8125rem; }
.feed-updated {
  color: var(--muted);
  background: var(--tint);
  border: 1px solid var(--portal-tint-line);
  border-radius: 999px;
  padding: .3rem .62rem;
}
.news-layout { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.1rem); margin-top: 1.3rem; }
.section-bar { min-height: 2.75rem; margin-bottom: .63rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-bar h2, .topic-section h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font: 700 1.52rem/1.15 var(--serif);
}
.section-bar h2::before, .topic-section h2::before {
  content: "";
  flex: none;
  width: .65rem;
  height: .65rem;
  border-radius: .2rem;
  background: var(--portal-gradient);
}
.lead-controls { display: flex; align-items: center; gap: .51rem; }
.lead-controls span { min-width: 2.5rem; text-align: center; font-size: .875rem; color: var(--muted); }
.lead-controls button, .close-button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0 0 .13em; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 1.55rem; line-height: 1; }
.lead-controls button:hover, .close-button:hover { background: var(--tint); }
.lead-card { position: relative; isolation: isolate; min-height: clamp(26rem, 40vw, 32rem); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: .9rem; color: white; background: #25154A; animation: appear .24s ease-out both; }
.story-art { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 80% 20%, var(--art-light, #6930C3), transparent 62%), linear-gradient(145deg, var(--art-dark, #25154A), #170F2E); }
.story-art::before, .story-art::after { content: ""; position: absolute; width: 48%; aspect-ratio: 1; border: 1px solid #ffffff4d; border-radius: 50%; right: 1%; top: -16%; transform: rotate(-20deg) scaleY(.72); box-shadow: 0 0 0 1.4rem #ffffff12, 0 0 0 3.1rem #ffffff16, 0 0 0 5.5rem #ffffff14; pointer-events: none; }
.story-art::after { right: 20%; top: 36%; width: 21%; opacity: .55; }
.story-art img { position: absolute; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease, transform .38s ease; }
.story-art img.is-ready { opacity: 1; }
.lead-card .story-art { position: absolute; z-index: -2; inset: 0; }
.lead-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 4%, #0A071622 28%, #0A0716e6 66%, #0A0716 100%); pointer-events: none; }
.lead-card:hover img, .story-tile:hover img { transform: scale(1.035); }
.lead-copy { padding: clamp(1.16rem, 3vw, 2rem); }
.lead-copy h3 { max-width: 29ch; margin: .7rem 0; font: 700 clamp(1.85rem, 4.2vw, 3.25rem)/1.06 var(--serif); letter-spacing: -.025em; }
.lead-copy p { color: #e1eaf5; max-width: 62ch; margin-bottom: .75rem; }
.lead-copy .story-meta { color: #dae3ee; }
.credit { text-align: right; color: #d4deeb; padding: 0 clamp(1.16rem, 3vw, 2rem) .6rem; }
.kicker { display: inline-block; font-size: .875rem; font-weight: 750; color: var(--accent); }
.lead-copy .kicker { color: white; background: var(--portal-action); border-radius: 999px; padding: .2rem .55rem; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; color: var(--muted); }
.story-meta > :not(:first-child)::before { content: "·"; margin-right: .5rem; }
.latest-list, .trending ul { list-style: none; padding: 0; }
.latest-list { border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; background: var(--white); }
.latest-list li + li { border-top: 1px solid var(--line); }
.latest-list a { display: block; padding: .85rem 1rem; }
.latest-list a:focus-visible, .trending a:focus-visible { outline-offset: -4px; }
.latest-list a:hover { background: var(--tint); }
.latest-list h3 { font: 700 1.12rem/1.22 var(--serif); margin: .18rem 0 .42rem; }
.latest-list .kicker { font-size: .8125rem; }
.trending { display: grid; grid-template-columns: auto 1fr; align-items: stretch; margin-top: 1.65rem; background: var(--tint); border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; }
.trending h2 { display: flex; align-items: center; color: var(--accent); padding: .75rem 1.05rem; font: 700 1.12rem var(--serif); }
.trending ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.trending li { display: flex; border-left: 1px solid var(--line); }
.trending a { width: 100%; align-content: center; padding: .72rem .95rem; font-size: .875rem; font-weight: 650; line-height: 1.32; }
.sections { display: grid; gap: 1.85rem; margin-top: 1.85rem; }
.topic-section { border-top: 1px solid var(--line); padding-top: 1rem; }
.topic-section header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .85rem; }
.topic-section header a { color: var(--accent); font-weight: 700; font-size: .875rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.story-tile { min-width: 0; background: var(--white); box-shadow: var(--portal-shadow); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.story-tile a { display: block; height: 100%; }
.story-tile a:focus-visible { outline-offset: -4px; }
.story-tile .story-art { aspect-ratio: 16 / 8; }
.tile-image { position: relative; }
.story-tile .credit { position: absolute; z-index: 2; bottom: 0; right: 0; padding: .1rem .38rem; color: #fff; background: #170F2Ee8; }
.tile-copy { padding: .85rem; }
.tile-copy h3 { font: 700 1.24rem/1.22 var(--serif); margin: .35rem 0 .55rem; }
.feed-status:not(:empty) { margin-top: 1.25rem; padding: 1rem; background: var(--tint); border-radius: .6rem; }
.feed-status .button { margin-top: .6rem; }
/* Live TV: a sideways row of channels; each plays in YouTube's player in a dialog. */
.live-tv { margin-top: 1.85rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.live-tv .section-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.live-controls { display: flex; gap: .5rem; }
.live-controls button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0 0 .13em; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 1.55rem; line-height: 1; }
.live-controls button:hover { background: var(--tint); }
.live-note { margin: .35rem 0 .9rem; color: var(--muted); font-size: .875rem; }
.live-rail { list-style: none; padding: .25rem .25rem 1rem; margin-inline: -.25rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, calc((100% - 3rem) / 4)); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.live-rail li { scroll-snap-align: start; min-width: 0; }
.live-tile { display: block; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; box-shadow: var(--portal-shadow); }
.live-tile:hover { text-decoration: none; }
.live-tile:focus-visible { outline-offset: -4px; }
.live-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #170F2E; }
.live-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.live-tile:hover .live-thumb img { transform: scale(1.04); }
.live-badge { position: absolute; left: .6rem; top: .6rem; padding: .1rem .55rem; border-radius: .35rem; background: #D92D20; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.live-badge::before { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-right: .35rem; border-radius: 50%; background: #fff; vertical-align: .08em; animation: live-blink 1.4s infinite; }
.live-play { position: absolute; inset: 0; margin: auto; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgb(18 14 36 / 70%); }
.live-play::after { content: ""; position: absolute; left: 1.28rem; top: .95rem; border-style: solid; border-width: .65rem 0 .65rem 1.05rem; border-color: transparent transparent transparent #fff; }
.live-name { display: block; padding: .7rem .85rem 0; font-weight: 700; }
.live-title { display: block; margin: .2rem .85rem .85rem; max-height: calc(2 * 1.35em); overflow: hidden; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.live-player { position: fixed; z-index: 7; width: 26rem; display: flex; flex-direction: column; overflow: hidden;
  background: #120E24; color: #F4F1FF; border: 1px solid rgb(255 255 255 / 12%); border-radius: .85rem;
  box-shadow: 0 18px 48px rgb(18 14 36 / 45%); }
.live-player-bar { display: flex; align-items: center; gap: .5rem; padding: .4rem .45rem .4rem .7rem; cursor: grab; touch-action: none; user-select: none;
  background: var(--portal-band); }
.live-player.moving .live-player-bar { cursor: grabbing; }
.live-player .live-badge { position: static; flex: none; }
.live-player-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9rem; }
.live-player-bar button { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; padding: 0 0 .1em; border: 0; border-radius: .5rem;
  background: rgb(255 255 255 / 10%); color: #fff; font-size: 1.15rem; line-height: 1; }
.live-player-bar button:hover { background: rgb(255 255 255 / 22%); }
.live-player :focus-visible { outline-color: #C4B5FD; outline-offset: 2px; }
.live-frame { aspect-ratio: 16 / 9; background: #000; }
.live-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-player.moving iframe { pointer-events: none; }
.live-resize { position: absolute; left: 0; top: 0; width: 1.1rem; height: 1.1rem; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, rgb(255 255 255 / 70%) 0 2px, transparent 2px 5px, rgb(255 255 255 / 70%) 5px 7px, transparent 7px); }
.has-live-player .to-top { display: none; }
@keyframes live-blink { 50% { opacity: .25; } }
@media (max-width: 40rem) { .live-controls { display: none; } .live-rail { grid-auto-columns: 78%; } }
@media (prefers-reduced-motion: reduce) { .live-badge::before { animation: none; } .live-thumb img { transition: none; } }

/* Footer: the deep-violet band (as on Newslu). */
.site-footer { position: relative; overflow: hidden; isolation: isolate; margin-top: 3.4rem; padding-block: 2.75rem 2rem;
  background: var(--portal-band); color: #F4F1FF; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 260px at 90% 0%, rgb(124 58 237 / .25), transparent 70%); }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.footer-cols p { margin-bottom: .4rem; }
.footer-brandline { font-size: 1.15rem; }
.site-footer h2 { margin-bottom: .6rem; font: 600 .8rem/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; opacity: .6; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li a { display: inline-block; padding: .375rem 0; opacity: .85; transition: opacity .15s, transform .2s ease; }
.site-footer li a:hover { opacity: 1; text-decoration: none; transform: translateX(3px); }
.site-footer :focus-visible { outline-color: #C4B5FD; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 9.4rem; min-height: 3rem; padding: .375rem 1.125rem;
  border: 1px solid #A6A6A6; border-radius: .75rem; background: #000; color: #fff; font-weight: 600; font-size: 1.1rem; line-height: 1.2;
  transition: transform .18s ease, background-color .18s; }
.store small { font-weight: 400; font-size: .7rem; }
.store:hover { background: #1A1A1A; text-decoration: none; transform: translateY(-2px); }
.store-soon { cursor: default; opacity: .75; }
.store-soon:hover { background: #000; transform: none; }
.to-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 6;
  width: 3.25rem; height: 3.25rem; border: 0; border-radius: 1rem; background: var(--portal-action); color: #fff; font-size: 1.4rem;
  box-shadow: 0 10px 24px rgb(105 48 195 / 35%); opacity: 0; transform: translateY(1rem) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top.on:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .site-footer li a, .store, .to-top { transition: none; } }
dialog { width: min(40rem, 100% - 2rem); max-height: 85vh; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 4vw, 1.7rem); }
dialog::backdrop { background: #170F2Eb8; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.dialog-heading h2 { font: 700 1.8rem/1.1 var(--serif); }
#search-form { display: flex; gap: .55rem; }
#search-input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); color: inherit; padding: .55rem .7rem; }
#search-status:not(:empty), #search-results:not(:empty) { margin-top: .85rem; }
@keyframes appear { from { opacity: .65; } to { opacity: 1; } }
@media (max-width: 54rem) {
  .news-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 44rem) {
  .news-layout, .trending { grid-template-columns: minmax(0, 1fr); }
  .trending ul { grid-template-columns: 1fr; }
  .trending li { border-left: 0; border-top: 1px solid var(--line); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-card { min-height: 23rem; }
}
@media (max-width: 27rem) {
  .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .masthead-row { flex-wrap: wrap; gap: .45rem; padding-block: .7rem; }
  .masthead-actions { gap: .35rem; }
  .masthead-actions .button, .search-button { padding-inline: .55rem; }
  .search-button { min-width: 2.75rem; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
