/* Western World News — publisher design v2.
   BBC/CNN-level look: dark navy masthead, red breaking bar with ticker,
   serif display headlines, photo-led cards, Most Read sidebar, Watch strip.
   Mobile-first; no webfonts (system serif/sans stacks only). */

:root {
  --red: #bb1919;
  --red-bright: #e02424;
  --red-dark: #8f1212;
  --ink: #1a1a1a;
  --muted: #5f5f5f;
  --line: #e3e3e3;
  --light: #f6f6f6;
  --navy: #0e2244;
  --navy-dark: #081426;
  --navy-mid: #16294d;
  --gold: #c8a96a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
figcaption { font-size: 0.8rem; color: var(--muted); padding: 0.4rem 0.1rem 0; line-height: 1.4; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; left: -9999px; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-dark); color: #cdd6e4; font-size: 0.82rem; }
.topbar .wrap { display: flex; align-items: center; gap: 1rem; padding-top: 0.35rem; padding-bottom: 0.35rem; flex-wrap: wrap; }
.topbar .dateline { color: #cdd6e4; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .live-dot { width: 0.5rem; height: 0.5rem; }
.topbar .spacer { flex: 1; }
.search-box { position: relative; }
.search-box input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 3px;
  padding: 0.32rem 0.6rem;
  font-size: 0.85rem;
  width: 210px;
  outline: none;
}
.search-box input::placeholder { color: #9fb0c8; }
.search-box input:focus { border-color: #fff; background: rgba(255,255,255,0.18); }
.search-results {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  z-index: 200;
  overflow: hidden;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--light); text-decoration: none; }
.search-results a small { display: block; color: var(--red); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.search-results .none { padding: 0.7rem 0.8rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Breaking bar + ticker ---------- */
.breaking-bar { background: var(--red); color: #fff; font-size: 0.95rem; overflow: hidden; }
.breaking-bar .wrap { display: flex; align-items: center; gap: 0.7rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.breaking-label {
  background: #fff; color: var(--red); font-weight: 800;
  letter-spacing: 0.08em; font-size: 0.75rem;
  padding: 0.15rem 0.5rem; border-radius: 2px; white-space: nowrap; flex-shrink: 0;
}
.breaking-main { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; max-width: 46%; }
.breaking-main:hover { text-decoration: underline; }
.ticker { overflow: hidden; flex: 1; min-width: 0; border-left: 1px solid rgba(255,255,255,0.4); padding-left: 0.7rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; gap: 2.2rem; white-space: nowrap; animation: ticker-scroll 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { color: rgba(255,255,255,0.92); font-size: 0.88rem; }
.ticker-track a:hover { color: #fff; }
.ticker-track a::before { content: "\25CF  "; color: #ffd2d2; font-size: 0.6rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 860px) { .breaking-main { display: none; } }

/* ---------- Masthead (dark navy) ---------- */
.masthead { background: var(--navy); color: #fff; padding: 1.15rem 0 1.05rem; }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.3rem 1rem; }
.wordmark { font-family: var(--serif); font-size: 2.1rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; color: #fff; }
.wordmark .news { color: #ff5a5a; }
.wordmark:hover { text-decoration: none; }
.tagline { color: #b9c6da; font-size: 0.9rem; font-style: italic; font-family: var(--serif); }
.masthead .dateline { color: #b9c6da; font-size: 0.85rem; }
@media (min-width: 860px) { .wordmark { font-size: 2.6rem; } }

/* ---------- Nav + hamburger ---------- */
nav.main-nav { background: var(--navy-mid); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
nav.main-nav .wrap { display: flex; align-items: center; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; font-size: 1.5rem;
  padding: 0.5rem 0.6rem 0.5rem 0; cursor: pointer; line-height: 1;
}
nav.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
nav.main-nav a { display: block; color: #fff; padding: 0.68rem 0.8rem; font-size: 0.92rem; font-weight: 600; }
nav.main-nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
nav.main-nav a.active { background: var(--red); }
nav.main-nav a.live-link { color: #ff6b6b; }
nav.main-nav a.live-link.active { color: #fff; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav ul { display: none; flex-direction: column; width: 100%; padding-bottom: 0.4rem; }
  nav.main-nav.open ul { display: flex; }
  nav.main-nav a { padding: 0.6rem 0.2rem; border-top: 1px solid rgba(255,255,255,0.12); }
}

/* ---------- Layout ---------- */
main { padding: 1.3rem 0 2rem; }
.section-head {
  font-family: var(--serif); font-size: 1.55rem; line-height: 1.2;
  border-bottom: 3px solid var(--ink); padding-bottom: 0.35rem; margin: 0 0 1rem;
}
.section-head .tag { color: var(--red); }
.section-head a { color: var(--ink); }
.section-head a:hover { color: var(--red); }
.rule-red { border: 0; border-top: 3px solid var(--red); margin: 0 0 1rem; width: 64px; }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.2rem; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 2fr 1fr; } }
.hero figure { margin-bottom: 0.7rem; }
.hero figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.hero h1, .hero h2 { font-family: var(--serif); line-height: 1.12; margin: 0.55rem 0; }
.hero h1 { font-size: 2rem; }
.hero h1 a:hover { color: var(--red); }
@media (min-width: 900px) { .hero h1 { font-size: 2.55rem; } }
.hero p.dek { font-size: 1.1rem; color: #333; margin: 0.4rem 0 0.8rem; line-height: 1.5; }
.kicker { color: var(--red); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.byline { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0; }
.byline time { font-weight: 600; color: var(--ink); }
.byline a { color: var(--red); font-weight: 700; }

/* ---------- Just In ---------- */
.just-in { border: 1px solid var(--line); background: var(--light); align-self: start; }
.just-in h2 {
  margin: 0; padding: 0.6rem 0.9rem; background: var(--ink); color: #fff;
  font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.just-in ul { list-style: none; margin: 0; padding: 0.4rem 0.9rem 0.9rem; }
.just-in li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.45; }
.just-in li:last-child { border-bottom: 0; }
.just-in time { color: var(--red); font-weight: 700; font-size: 0.82rem; margin-right: 0.4rem; }

/* ---------- Most Read ---------- */
.most-read { border-top: 3px solid var(--ink); margin: 0 0 2rem; }
.most-read h2 { font-family: var(--serif); font-size: 1.35rem; margin: 0.7rem 0 0.4rem; }
.most-read ol { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read li {
  counter-increment: mr; display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.most-read li:last-child { border-bottom: 0; }
.most-read li::before {
  content: counter(mr); font-family: var(--serif); font-weight: 800;
  font-size: 2rem; line-height: 1; color: var(--red); min-width: 1.6rem;
}
.most-read a { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
.most-read a:hover { color: var(--red); }
.most-read small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; font-family: var(--sans); font-weight: 400; }

/* ---------- Cards & grids ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .card-grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .card-grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { border-top: 3px solid var(--ink); padding-top: 0; }
.card figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.card figure { margin-bottom: 0.55rem; }
.card h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; margin: 0.4rem 0 0.35rem; }
.card h3 a:hover { color: var(--red); }
.card p { margin: 0; color: #333; font-size: 0.95rem; }
.card .art { margin-bottom: 0.6rem; }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.story-list li:first-child { padding-top: 0; }
.story-list h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0.3rem 0 0.3rem; line-height: 1.25; }
.story-list h3 a:hover { color: var(--red); }
.story-list p { margin: 0; color: #333; }
.story-list .thumb { float: left; width: 170px; margin: 0.25rem 1rem 0.5rem 0; }
.story-list .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.story-list li::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) { .story-list .thumb { float: none; width: 100%; margin: 0 0 0.5rem; } }

/* ---------- Graphic placeholder (stories without a photo) ---------- */
.art {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0%, #274b7a 60%, #3d6aa8 100%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem; text-align: center; padding: 1rem;
}
.art .monogram { font-family: var(--serif); font-size: 2.2rem; font-weight: 800; letter-spacing: 0.06em; border: 2px solid rgba(255,255,255,0.85); padding: 0.2rem 0.9rem; }
.art .art-label { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.art.small .monogram { font-size: 1.4rem; }

/* ---------- Watch strip ---------- */
.watch-strip { background: var(--navy-dark); color: #fff; margin: 2.2rem 0; padding: 1.4rem 0 1.6rem; }
.watch-strip h2 { font-family: var(--serif); color: #fff; border-bottom: 3px solid var(--red); padding-bottom: 0.4rem; margin: 0 0 1rem; font-size: 1.5rem; }
.watch-strip h2 .tag { color: #ff5a5a; }
.watch-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 700px) { .watch-grid { grid-template-columns: repeat(3, 1fr); } }
.watch-card a { color: #fff; display: block; }
.watch-card a:hover { text-decoration: none; }
.watch-card a:hover h3 { text-decoration: underline; }
.watch-thumb { position: relative; }
.watch-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.watch-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(187,25,25,0.92);
  color: #fff; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; padding-left: 3px;
}
.watch-thumb .dur {
  position: absolute; right: 0.5rem; bottom: 0.5rem; background: rgba(0,0,0,0.8);
  color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 2px;
}
.watch-card h3 { font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; margin: 0.55rem 0 0; color: #fff; }

/* ---------- Analysis / Opinion ---------- */
.analysis { margin: 0 0 2.2rem; }
.analysis .cols { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 700px) { .analysis .cols { grid-template-columns: repeat(3, 1fr); } }
.analysis article { background: var(--light); border-top: 3px solid var(--gold); padding: 1rem 1.1rem; }
.analysis .kicker { color: #8a6d2b; }
.analysis h3 { font-family: var(--serif); font-size: 1.18rem; line-height: 1.3; margin: 0.4rem 0 0.4rem; }
.analysis h3 a:hover { color: var(--red); }
.analysis p { margin: 0; font-size: 0.94rem; color: #333; }

/* ---------- Live blog ---------- */
.live-dot { display: inline-block; width: 0.6rem; height: 0.6rem; background: var(--red); border-radius: 50%; margin-right: 0.4rem; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-update { border-left: 3px solid var(--red); padding: 0.2rem 0 0.2rem 1rem; margin: 0 0 1.4rem; }
.live-update time { font-weight: 700; color: var(--red); font-size: 0.9rem; }
.live-update h3 { font-family: var(--serif); margin: 0.2rem 0 0.3rem; font-size: 1.15rem; }
.live-update p { margin: 0; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--navy); color: #fff; padding: 1.5rem; margin: 2rem 0; border-radius: 4px; }
.newsletter h2 { font-family: var(--serif); margin: 0 0 0.3rem; font-size: 1.4rem; }
.newsletter p { margin: 0 0 0.9rem; opacity: 0.9; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsletter input[type="email"] { flex: 1 1 220px; padding: 0.65rem 0.8rem; border: 0; border-radius: 3px; font-size: 1rem; }
.newsletter button, .btn { background: var(--red); color: #fff; border: 0; padding: 0.65rem 1.2rem; font-size: 1rem; font-weight: 700; border-radius: 3px; cursor: pointer; display: inline-block; }
.newsletter button:hover, .btn:hover { background: var(--red-dark); text-decoration: none; }
.newsletter .note { font-size: 0.8rem; opacity: 0.75; margin: 0.6rem 0 0; }
.newsletter .success { display: none; font-weight: 700; margin-top: 0.6rem; }

/* ---------- Article page ---------- */
.article-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 960px) { .article-layout { grid-template-columns: 1fr 300px; } .article-layout .most-read { margin-top: 0.4rem; } }
.article-head h1 { font-family: var(--serif); font-size: 2rem; line-height: 1.15; margin: 0.5rem 0; }
@media (min-width: 860px) { .article-head h1 { font-size: 2.45rem; } }
.article-head .dek { font-size: 1.15rem; color: #333; line-height: 1.5; }
.article-hero { margin: 1rem 0 1.4rem; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.article-body p { font-size: 1.06rem; line-height: 1.7; margin: 0 0 1.1rem; }
.article-body p:first-of-type::first-letter { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 700; float: left; margin: 0.1rem 0.4rem 0 0; }
.source-box { border: 1px solid var(--line); border-left: 4px solid var(--red); background: var(--light); padding: 0.8rem 1rem; margin: 1.6rem 0; font-size: 0.95rem; }
.source-box strong { display: block; margin-bottom: 0.2rem; }
.source-box a { color: var(--red); font-weight: 700; }
.related { margin-top: 2rem; border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.related h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 0.6rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: #d7dbe3; margin-top: 2.5rem; }
footer.site-footer .wrap { padding-top: 1.8rem; padding-bottom: 1.4rem; }
footer.site-footer a { color: #fff; }
footer.site-footer .cols { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 700px) { footer.site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
footer.site-footer h3 { color: #fff; font-family: var(--serif); margin: 0 0 0.5rem; font-size: 1.1rem; }
footer.site-footer h3 .news { color: #ff5a5a; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin: 0.32rem 0; font-size: 0.94rem; }
footer.site-footer p { font-size: 0.94rem; }
footer.site-footer .mini-form { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
footer.site-footer .mini-form input[type="email"] { flex: 1; min-width: 0; padding: 0.5rem 0.6rem; border: 0; border-radius: 3px; font-size: 0.9rem; }
footer.site-footer .mini-form button { background: var(--red); color: #fff; border: 0; padding: 0.5rem 0.8rem; border-radius: 3px; font-weight: 700; cursor: pointer; }
footer.site-footer .fineprint { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 1.5rem; padding-top: 0.9rem; font-size: 0.82rem; opacity: 0.8; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: space-between; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 0.5rem 1rem; z-index: 300; }
.skip-link:focus { left: 0; }
