/* ShatNews — cable-news style sheet (original CSS, Fox-inspired look) */

:root {
  --navy: #003366;
  --navy-dark: #00224d;
  --red: #c20017;
  --red-bright: #e00000;
  --black: #111111;
  --ink: #1e1e1e;
  --gray: #555555;
  --light-gray: #e6e6e6;
  --lighter-gray: #f5f5f5;
  --white: #ffffff;
  --link-blue: #0058a3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.4;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }

/* ---------- Eyebrow bar ---------- */
.eyebrow {
  background: var(--black);
  color: #bbb;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eyebrow-inner {
  max-width: 1160px; margin: 0 auto; padding: 6px 16px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.eyebrow a { margin-right: 14px; }
.eyebrow a:hover { color: #fff; }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
}
.masthead-inner {
  max-width: 1160px; margin: 0 auto; padding: 18px 16px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: baseline; gap: 2px; line-height: 1; }
.logo .logo-shat {
  font-size: 52px; font-weight: 900; letter-spacing: -2px;
  color: var(--navy); font-style: italic;
}
.logo .logo-news {
  font-size: 52px; font-weight: 900; letter-spacing: -2px;
  color: var(--red); font-style: italic;
}
.logo .logo-channel {
  font-size: 11px; font-weight: 700; color: var(--gray);
  letter-spacing: 0.25em; text-transform: uppercase; margin-left: 10px;
}
.masthead-right { text-align: right; font-size: 12px; color: var(--gray); }
.masthead-right .live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-bright); margin-right: 6px;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Main nav ---------- */
.mainnav { background: var(--navy); }
.mainnav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  display: flex; flex-wrap: wrap;
}
.mainnav a {
  color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 12px 14px; display: block;
}
.mainnav a:hover { background: var(--navy-dark); text-decoration: none; }
.mainnav a.active { background: var(--red); }

/* ---------- Breaking bar ---------- */
.breaking {
  background: var(--red-bright); color: #fff;
  display: flex; align-items: stretch; overflow: hidden;
}
.breaking-label {
  background: var(--black); font-weight: 900; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 10px 16px; display: flex; align-items: center; white-space: nowrap;
}
.breaking-ticker { overflow: hidden; flex: 1; display: flex; align-items: center; }
.breaking-ticker span {
  display: inline-block; white-space: nowrap; padding-left: 100%;
  font-weight: 700; font-size: 14px;
  animation: ticker 72s linear infinite;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ---------- Layout ---------- */
.page { max-width: 1160px; margin: 0 auto; padding: 20px 16px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* ---------- Story cards ---------- */
.kicker {
  color: var(--red); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.hero { margin-bottom: 28px; }
.hero h1 {
  font-size: 40px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.08;
  margin: 8px 0 8px;
}
.hero h1 a:hover { color: var(--navy); text-decoration: none; }
.hero .dek { font-size: 17px; color: var(--gray); margin-bottom: 10px; }
.byline { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.04em; }

.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  border-top: 1px solid var(--light-gray); padding-top: 20px;
}
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; } }
.story-grid h3 { font-size: 19px; font-weight: 800; line-height: 1.15; margin: 8px 0 6px; }
.story-grid h3 a:hover { color: var(--navy); text-decoration: none; }
.story-grid p { font-size: 13px; color: var(--gray); }

.section-head {
  font-size: 16px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--navy);
  border-bottom: 3px solid var(--red); padding-bottom: 6px; margin: 32px 0 16px;
}

/* ---------- Story tiers ----------
   Stories start as full cards up top, shrink to compact cards as they age,
   then to a plain headline list, then off the homepage entirely. Nothing is
   deleted — everything stays searchable in archive.html. */

/* Tier 2: compact — image and headline, blurb suppressed */
.story-grid.compact { grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .story-grid.compact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .story-grid.compact { grid-template-columns: 1fr; } }
.story-grid.compact h3 { font-size: 15px; line-height: 1.2; margin: 7px 0 0; }
.story-grid.compact .media img, .story-grid.compact .media video { aspect-ratio: 16 / 9; }
.story-grid.compact p { display: none; }

/* Tier 3: headline list — text only, densest treatment before the archive */
.headline-list {
  columns: 2; column-gap: 32px; margin: 0; padding: 14px 0 0;
  border-top: 1px solid var(--light-gray);
}
@media (max-width: 600px) { .headline-list { columns: 1; } }
.headline-list li {
  break-inside: avoid; list-style: none; padding: 9px 0;
  border-bottom: 1px solid var(--lighter-gray);
}
.headline-list .kicker { font-size: 10px; margin-bottom: 2px; }
.headline-list a { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--black); }
.headline-list a:hover { color: var(--red); text-decoration: none; }

/* ---------- Media placeholders ---------- */
.media { position: relative; background: var(--lighter-gray); overflow: hidden; }
.media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.hero .media img, .hero .media video { aspect-ratio: 16 / 9; }
.story-grid .media img, .story-grid .media video { aspect-ratio: 16 / 10; }
.article .media img { aspect-ratio: 3 / 2; }
.media .placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; background: repeating-linear-gradient(
    45deg, #e9edf2, #e9edf2 12px, #f4f6f9 12px, #f4f6f9 24px);
  color: var(--navy); font-weight: 700; font-size: 13px; text-align: center;
  border: 1px dashed #b9c4d0; gap: 4px; padding: 10px;
}
.media .placeholder .cat-icon { font-size: 40px; }
.media .placeholder small { color: #7a8794; font-weight: 400; font-size: 11px; }
.media-credit { font-size: 11px; color: #999; padding: 4px 0; }

.badge-video {
  position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.8);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 8px;
}
.badge-video::before { content: "▶ "; color: var(--red-bright); }

/* ---------- Sidebar ---------- */
.rail > section { margin-bottom: 26px; }
.rail-head {
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 12px;
}
.rail-head.red { background: var(--red); }
.rail-body { border: 1px solid var(--light-gray); border-top: none; padding: 12px; }

.ticker-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.ticker-table td { padding: 6px 4px; border-bottom: 1px solid var(--lighter-gray); }
.ticker-table td:last-child { text-align: right; font-weight: 700; }
.up { color: #0a7a2f; } .down { color: var(--red-bright); }

.trending { list-style: none; counter-reset: trend; }
.trending li {
  counter-increment: trend; display: flex; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--lighter-gray);
  font-size: 14px; font-weight: 700; line-height: 1.25;
}
.trending li::before {
  content: counter(trend); font-size: 26px; font-weight: 900; color: var(--red);
  font-style: italic; min-width: 22px;
}
.trending li:last-child { border-bottom: none; }
.trending a:hover { color: var(--navy); text-decoration: none; }

.watch-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--lighter-gray); }
.watch-item:last-child { border-bottom: none; }
.watch-thumb {
  min-width: 90px; width: 90px; aspect-ratio: 16/10;
  background: var(--navy); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 20px; position: relative;
}
.watch-item h4 { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.watch-item .meta { font-size: 11px; color: #999; margin-top: 3px; }

.opinion-item { padding: 10px 0; border-bottom: 1px solid var(--lighter-gray); }
.opinion-item:last-child { border-bottom: none; }
.opinion-item .op-author {
  font-size: 11px; font-weight: 800; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.opinion-item h4 { font-size: 14px; font-weight: 700; font-style: italic; line-height: 1.25; margin-top: 2px; }

.weather-now { display: flex; align-items: center; gap: 14px; }
.weather-temp { font-size: 42px; font-weight: 900; color: var(--navy); }
.weather-cond { font-size: 13px; color: var(--gray); }
.weather-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--lighter-gray); }
.weather-row:last-child { border-bottom: none; }

.poll-option { margin: 8px 0; }
.poll-bar-track { background: var(--lighter-gray); height: 20px; position: relative; }
.poll-bar {
  background: var(--navy); height: 100%; color: #fff; font-size: 11px;
  font-weight: 800; display: flex; align-items: center; padding: 0 8px; white-space: nowrap;
}
.poll-bar.red { background: var(--red); }
.poll-label { font-size: 12.5px; font-weight: 700; margin-bottom: 3px; }
.poll-note { font-size: 11px; color: #999; margin-top: 8px; }

/* ---------- Article pages ---------- */
.article { max-width: 760px; }
.article h1 { font-size: 36px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.1; margin: 6px 0 10px; }
.article .dek { font-size: 18px; color: var(--gray); margin-bottom: 12px; }
.article-meta {
  border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray);
  padding: 8px 0; margin: 14px 0 18px; font-size: 12px; color: #888;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.article-body p { font-size: 17px; line-height: 1.65; margin-bottom: 18px; }
.article-body p:first-of-type::first-letter {
  font-size: 52px; font-weight: 900; float: left; line-height: 0.85;
  padding-right: 8px; color: var(--navy);
}
.article-body .pull-quote {
  border-left: 5px solid var(--red); padding: 6px 0 6px 18px; margin: 22px 0;
  font-size: 21px; font-weight: 800; font-style: italic; color: var(--navy); line-height: 1.35;
}
.article-body .pull-quote cite { display: block; font-size: 12px; color: #999; font-style: normal; font-weight: 400; margin-top: 6px; text-transform: uppercase; }
.related { margin-top: 30px; }

.tag-row { margin-top: 24px; }
.tag {
  display: inline-block; background: var(--lighter-gray); border: 1px solid var(--light-gray);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 10px; margin: 0 6px 6px 0; color: var(--gray);
}

/* ---------- Sports rail ---------- */
.standings { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.standings th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #999; padding: 4px; border-bottom: 2px solid var(--navy);
}
.standings td { padding: 6px 4px; border-bottom: 1px solid var(--lighter-gray); font-weight: 700; }
.standings td:not(:first-child) { text-align: center; }
.sport-event { font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--lighter-gray); }
.sport-event:last-child { border-bottom: none; }
.sport-event b { color: var(--navy); }
.sport-event .ev-meta { font-size: 11px; color: #999; }

/* ---------- Ads ---------- */
.ad {
  border: 1px solid var(--light-gray); margin-bottom: 26px; text-align: center;
  padding: 16px 14px; position: relative; background: var(--white);
}
.ad .ad-tag {
  position: absolute; top: 6px; right: 8px; font-size: 9px; color: #bbb;
  text-transform: uppercase; letter-spacing: 0.15em;
}
.ad .ad-brand { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.05; }
.ad .ad-brand em { font-style: normal; color: var(--red); }
.ad .ad-slogan { font-size: 13px; font-style: italic; color: var(--gray); margin: 8px 0; }
.ad .ad-cta {
  display: inline-block; background: var(--red); color: #fff; font-size: 11px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 14px; margin-top: 6px;
}
.ad .ad-cta:hover { background: var(--red-bright); text-decoration: none; }
.ad .ad-fineprint { font-size: 9.5px; color: #bbb; margin-top: 10px; line-height: 1.4; }
.ad.ad-litter { background: var(--navy); border-color: var(--navy); }
.ad.ad-litter .ad-brand, .ad.ad-litter .ad-slogan { color: #fff; }
.ad.ad-litter .ad-brand em { color: #ffd200; }
.ad.ad-litter .ad-cta { background: #ffd200; color: var(--navy-dark); }
.ad img { margin: 8px auto; max-height: 150px; width: auto; }

/* ---------- Footer ---------- */
footer { background: var(--navy-dark); color: #9fb3c8; margin-top: 48px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 30px 16px; }
.footer-logo { font-size: 28px; font-weight: 900; font-style: italic; letter-spacing: -1px; color: #fff; margin-bottom: 14px; }
.footer-logo em { color: var(--red-bright); font-style: italic; }
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; font-size: 12.5px; }
.footer-cols h5 { color: #fff; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; margin-bottom: 8px; }
.footer-cols li { list-style: none; padding: 3px 0; }
.footer-cols a:hover { color: #fff; }
.footer-legal { border-top: 1px solid #1c3a5e; margin-top: 24px; padding-top: 14px; font-size: 11px; }
