/* The Monrovia Times — mechanics only: Big Story slideshow + scrolling
   Developing ticker. The design stylesheet (style.css) is the sample's,
   byte-for-byte; this file adds no new design language, only the moving
   parts, using the design's own tokens and fonts. */

/* ---------- Big Story slideshow ---------- */
.bigstory-slides { display: grid; }
.bigstory-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.bigstory-slide.is-active {
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity .6s ease;
}
.bigstory-slide .slide-link { display: block; color: inherit; text-decoration: none; }
.bigstory-slide .slide-link:hover h1, .bigstory-slide .slide-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.bigstory-slide h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.04; font-weight: 800; letter-spacing: -.01em;
  margin: 0 0 12px;
}
.bigstory-controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.bs-btn {
  font-family: "Libre Franklin", sans-serif;
  width: 38px; height: 38px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-dark); cursor: pointer;
}
.bs-btn:hover { border-color: var(--accent); color: var(--accent); }
.bs-btn svg { width: 16px; height: 16px; }
.bs-dots { display: inline-flex; align-items: center; gap: 8px; }
.bs-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  background: transparent; border: 1px solid var(--ink-3); cursor: pointer;
}
.bs-dot.is-active { background: var(--accent); border-color: var(--accent); }
.bs-count {
  font-family: "Libre Franklin", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; color: var(--ink-3);
}

/* ---------- Developing ticker: seamless scrolling loop ---------- */
.ticker-track {
  display: flex; white-space: nowrap; will-change: transform;
  animation: mt-ticker-scroll 40s linear infinite;
}
.ticker-seq { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes mt-ticker-scroll { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  /* mechanics only: the sample's static-ticker rule hides items 2+ on
     small screens; a scrolling ticker needs them all in the track. */
  .ticker .items { white-space: nowrap; }
  .ticker .items .ticker-seq span:nth-child(n+2) { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .bigstory-slide { transition: none; }
}

/* ---------- Masthead colour (Orion, Nov 15): paper name + tagline in navy blue ---------- */
.masthead .brand, footer .brand-sm { color: #001840; }
.masthead .tagline { color: #001840; font-weight: 700; }

/* ---------- Ticker bar (Orion, Nov 15): navy blue instead of black ---------- */
.ticker { background: #001840; }


/* ---------- Nav (Orion, Nov 15): section links in navy blue ---------- */
.nav .nav-links button { color: #001840; }
.nav .nav-links button.active { color: #001840; }
.nav .nav-links button:hover { color: #001840; background: var(--paper-2); }
.nav .nav-links button.home-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }

/* ---------- Support Our Journalism (Orion, Nov 15): link under the tagline,
   above the nav divider line. Destination to be filled in when Orion
   supplies the details — href is "#" until then. ---------- */
.support-line { position: absolute; right: 20px; bottom: 12px; margin: 0; }
@media (max-width: 760px) {
  .support-line { position: static; text-align: center; margin-top: 10px; }
}
.support-link { font-family: "Libre Franklin", sans-serif; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: #001840; }
.support-link .heart { color: var(--accent); }
.support-link:hover { text-decoration: underline; }

/* ---------- Footer (Orion, Nov 15): all links in navy blue ---------- */
footer nav a, footer .fine a { color: #001840; }
footer nav a:hover, footer .fine a:hover { color: #001840; text-decoration: underline; }

/* ---------- Front-page top, FPA-style (Orion, Nov 15): lead photo with the
   headline on it, numbered strip beneath, Latest News rail beside it.
   Masthead stays exactly as the sample has it. ---------- */
.fpa-stage { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--ink); }
.fpa-stage img { display: block; width: 100%; aspect-ratio: 16 / 9.2; object-fit: cover; transition: opacity .35s ease; }
.fpa-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 20px 22px; transition: opacity .35s ease; }
.fpa-lead.is-fading .fpa-stage img, .fpa-lead.is-fading .fpa-overlay { opacity: .15; }
.fpa-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 15, .88) 0%, rgba(5, 8, 15, .45) 42%, rgba(5, 8, 15, 0) 68%); }
.fpa-chip { display: inline-block; background: var(--accent); color: #fff; font-family: "Libre Franklin", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; margin-bottom: 10px; }
.fpa-headline { display: block; font-family: "Newsreader", serif; font-weight: 700; font-size: clamp(25px, 3.3vw, 39px); line-height: 1.12; color: #fff; }
.fpa-dek { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .92); max-width: 62ch; }
.fpa-byline { display: block; margin-top: 10px; font-family: "Libre Franklin", sans-serif; font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .75); }
.fpa-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin-top: 6px; border-bottom: 1px solid #e4e1d8; }
.fpa-num { display: flex; gap: 8px; align-items: flex-start; text-align: left; background: none; border: 0; border-top: 3px solid #d8d4c8; padding: 10px 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.fpa-num .n { font-family: "Libre Franklin", sans-serif; font-weight: 800; font-size: 13px; color: var(--ink-3); }
.fpa-num .t { font-family: "Newsreader", serif; font-weight: 600; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fpa-num.is-active { border-top-color: var(--accent); }
.fpa-num.is-active .n { color: var(--accent); }
.fpa-num:hover { background: var(--paper-2); }
.fpa-rail .fpa-rail-head { font-family: "Libre Franklin", sans-serif; font-size: 19px; font-weight: 800; border-left: 4px solid var(--accent); padding-left: 10px; margin: 0 0 6px; color: var(--ink); }
.fpa-rail .fpa-latest-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e7e4da; cursor: pointer; align-items: flex-start; }
.fpa-rail .fpa-latest-item img { width: 96px; height: 70px; object-fit: cover; border-radius: 4px; flex: none; }
.fpa-rail .fpa-latest-item h4 { font-family: "Newsreader", serif; font-size: 15.5px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.fpa-rail .fpa-latest-item time { font-family: "Libre Franklin", sans-serif; font-size: 12px; color: var(--ink-3); }
.fpa-rail .fpa-latest-item:hover h4 { color: var(--accent); }

/* ---------- Featured Video (Orion, Nov 15): his weekly pick, before In Focus ---------- */
.featured-video { margin-top: 36px; }
.featured-video .video-embed { max-width: 900px; margin: 0 auto; }
.fv-caption { text-align: center; font-family: "Libre Franklin", sans-serif; font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ---------- Top Stories picture boxes (Orion, Nov 15) ---------- */
.topstories .top-item { display: flex; gap: 14px; align-items: flex-start; }
.topstories .top-item img.top-thumb { width: 110px; height: 80px; object-fit: cover; border-radius: 4px; flex: none; }
.topstories .top-item h3 { margin-top: 2px; }
.fpa-rail .analysis { margin-top: 18px; }
@media (max-width: 760px) {
  .fpa-strip { display: flex; overflow-x: auto; }
  .fpa-num { min-width: 150px; }
  .fpa-overlay { padding: 14px 16px; }
  .fpa-dek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* The Latest thumbnails + In Focus placeholder (Orion, Nov 15, 2026) */
.latest-list li { grid-template-columns: 74px 72px 1fr; }
.latest-list .latest-thumb {
  width: 72px; height: 72px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--rule); display: block;
}
.focus-empty {
  font-family: "Newsreader", Georgia, serif; font-style: italic;
  font-size: 17px; color: var(--ink-2); margin: 6px 0 2px;
}
@media (max-width: 640px) {
  .latest-list li { grid-template-columns: 58px 56px 1fr; gap: 10px; }
  .latest-list .latest-thumb { width: 56px; height: 56px; }
}

/* In-story figures + YouTube embed (marathon story, Nov 15, 2026) */
.reader .body figure { margin: 24px 0; }
.reader .body figure img { width: 100%; height: auto; display: block; border-radius: 6px; }
.reader .body figcaption {
  font-family: "Libre Franklin", sans-serif; font-size: 12.5px;
  color: var(--ink-3); margin-top: 7px;
}
.video-embed { position: relative; padding-top: 56.25%; margin: 24px 0; }
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 6px;
}
