/* Front page */

/* Top block: lead story | three compact stories | latest news */
.fp-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.15fr); gap: 24px; padding-top: 24px; padding-bottom: 28px; }
.fp-col { list-style: none; margin: 0; padding: 0; min-width: 0; }
.fp-col li { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fp-col li:first-child { padding-top: 0; }
.fp-col li:last-child { border-bottom: 0; }
.fp-col-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.fp-col-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fp-col li:hover .fp-col-img img { transform: scale(1.03); }
.fp-col-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); overflow-wrap: break-word; }
.fp-col-title a:hover { color: var(--red-ink); }

.fp-lead { min-width: 0; }
.lead-story { position: relative; display: flex; flex-direction: column; gap: 10px; }
.lead-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); border-radius: var(--radius-sm); }
.lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lead-story:hover .lead-img img { transform: scale(1.025); }
.lead-flag { position: absolute; left: 0; top: 14px; background: var(--red); color: #fff; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; }
.lead-title { font-family: var(--serif); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1.12; letter-spacing: -0.01em; }
.lead-title a:hover { color: var(--red-ink); }
.lead-dek { font-size: 1.05rem; color: var(--slate-dark); line-height: 1.5; }

/* Latest news panel */
.fp-latest { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px 8px; min-width: 0; }
/* Heading: "Latest news" + red "Live" pill */
.fp-latest-head { display: flex; align-items: center; justify-content: space-between; height: 38px; margin-bottom: 8px; }
.fp-latest-head h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.005em; display: flex; align-items: center; gap: 10px; }
.fp-latest-head a { font-size: 0.8rem; font-weight: 700; color: var(--red-ink); }
.live-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; font-size: 0.78rem; font-weight: 600; line-height: 1; padding: 4px 9px; border-radius: 999px; }
.live-pill { animation: live-glow 1.6s ease-in-out infinite; }
.live-pill .live-dot { width: 6px; height: 6px; background: #fff; animation: live-blink 1.6s ease-in-out infinite; }
@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215,20,26,.55), 0 0 4px rgba(215,20,26,.35); }
  50%      { box-shadow: 0 0 0 5px rgba(215,20,26,0), 0 0 14px rgba(215,20,26,.75); }
}
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-pill, .live-pill .live-dot { animation: none; } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
/* Rows: • time | Section - headline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 9px 0 9px 14px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.timeline a { display: block; font-size: 0.95rem; line-height: 1.38; color: var(--ink-2); }
.timeline time { display: block; margin-top: 3px; font-size: 0.78rem; color: var(--slate); }
.timeline a:hover { color: var(--red-ink); }

/* Tablets: lead on its own row, with top stories and latest news below. */
@media (max-width: 1100px) {
  .fp-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  .fp-lead { grid-column: 1 / -1; }
}
/* Phones: everything in one column. */
@media (max-width: 600px) {
  .fp-top { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .fp-col li:first-child { padding-top: 16px; }
  .fp-latest { display: block; min-height: 0; padding-bottom: 6px; }
}

/* Body: section blocks + sidebar */
.fp-body { padding-top: 12px; }
.fp-section { margin-bottom: 40px; }
.fp-section .section-head h2 a:hover { color: var(--red-ink); }
/* Four equal cards per section: same image size, the full headline, and the
   time pinned to the bottom of each card, so cards in a row end on one line
   however long their headlines are. The section name is already in the
   heading, so cards skip it. */
.fp-section-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fp-section-cards .story.card { height: 100%; }
.fp-section-cards .story-img { aspect-ratio: 16 / 10; }
.fp-section-cards .kicker { display: none; }
.fp-section-cards .story-top:not(:has(.tag-breaking, .fact-badge)) { display: none; }
.fp-section-cards .story-title { font-size: 1rem; line-height: 1.3; overflow-wrap: break-word; }
.fp-section-cards .meta { margin-top: auto; }
@media (max-width: 1100px) { .fp-section-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; } }
@media (max-width: 420px) { .fp-section-cards { gap: 18px 12px; } .fp-section-cards .story-title { font-size: 0.92rem; } }

.fc-promo { background: var(--ink); color: #DDD; padding: 22px; border-radius: var(--radius-md); margin-bottom: 28px; }
.fc-promo-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; margin-bottom: 12px; }
.fc-promo-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.fc-promo p:not(.fc-promo-title):not(.fc-promo-mark) { font-size: 0.9rem; margin-bottom: 16px; }

/* Fact-check band */
.fp-factcheck { background: var(--navy); color: #fff; padding: 34px 0 40px; margin-top: 16px; }
.section-head.dark { border-bottom-color: #fff; }
.section-head.dark a.more { color: #FF8A8E; }
.fp-factcheck .story-title, .fp-factcheck .story-title a { color: #fff; }
.fp-factcheck .story-title a:hover { color: #FF8A8E; }
.fp-factcheck .kicker { color: #FF8A8E; }
.fp-factcheck .meta { color: #AAA; }

/* Extra headlines under the lead story */
.lead-more { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.lead-more .story.row { flex-direction: column; gap: 8px; }
.lead-more .story.row .story-img { width: 100%; flex-basis: auto; aspect-ratio: 16 / 9; }
.lead-more .story-title { font-size: 0.95rem; }
@media (max-width: 560px) {
  .lead-more { grid-template-columns: 1fr; gap: 14px; }
  .lead-more .story.row { flex-direction: row; }
  .lead-more .story.row .story-img { width: 104px; flex-basis: 104px; aspect-ratio: 4 / 3; }
}

/* Phones: a shorter latest column, so the story cards are reached sooner. */
@media (max-width: 860px) {
  .timeline li:nth-child(n+6) { display: none; }
}
