/* Homepage reading order: news, video, explanation, opinion, reference, subscription. */
.ff-editorial-home .hero { padding-bottom: 24px; }
.ff-editorial-home .feed { padding-top: 24px; }
.ff-editorial-home .ffv-editorial .home-shorts { max-width: 1328px; padding-inline: 24px; }
.ff-editorial-home .ed-explains { padding-top: 0; padding-bottom: 40px; }
.ff-editorial-home #opinions { margin-top: 0; }
.ff-editorial-home .ed-data { margin-top: 36px; padding-top: 28px; padding-bottom: 32px; }
.ff-editorial-home .ed-metrics { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ff-editorial-home .ed-watch { padding-bottom: 24px; }
.ff-editorial-home .ff-directory-home { margin-top: 20px; margin-bottom: 0; }
.ff-editorial-home .cta { padding-top: 36px; padding-bottom: 36px; }
.ff-editorial-home .ed-opinion-more { margin-top: 20px; text-align: right; }
.ff-editorial-home .ed-opinion-more a { display: inline-flex; align-items: center; min-height: 44px; color: #f0d597; font-size: 14px; }
.ff-editorial-home :is(.ed-section-heading > a, .ed-explains-inner > div > a, .ff-discovery-heading > a) { display: inline-flex; align-items: center; min-height: 44px; }
.ff-editorial-home .ticker-track { padding-block: 7px; }
.ff-editorial-home .ticker:hover .ticker-track,
.ff-editorial-home .ticker:focus-within .ticker-track { animation-play-state: paused; }

@media (max-width: 700px) {
  .ff-editorial-home main .wrap { width: 100%; box-sizing: border-box; padding-inline: 20px; }
  .ff-editorial-home .ffv-editorial .home-shorts { padding-inline: 20px; }
  .ff-editorial-home .hero { padding-top: 20px; padding-bottom: 20px; }
  .ff-editorial-home .hero > .section-label { margin-bottom: 18px; }
  .ff-editorial-home .lead-card .lead-headline { font-size: 28px; line-height: 1.18; margin-block: 10px 12px; }
  .ff-editorial-home .lead-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
  .ff-editorial-home .hero-grid { gap: 20px; }
  .ff-editorial-home .hero-side { padding-top: 16px; }
  .ff-editorial-home .side-card { padding: 14px 0 14px 34px; }
  .ff-editorial-home .side-card:before { top: 16px; font-size: 16px; }
  .ff-editorial-home .side-card h3 { font-size: 17px; line-height: 1.35; margin: 0; }
  .ff-editorial-home .side-card p { display: none; }
  .ff-editorial-home .feed { padding-top: 20px; padding-bottom: 28px; }
  .ff-editorial-home .feed-head { display: block; margin-bottom: 18px; }
  .ff-editorial-home .feed-head .filters { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 8px; margin-top: 16px; scrollbar-width: thin; }
  .ff-editorial-home .feed-head .pill { flex: 0 0 auto; white-space: nowrap; }
  .ff-editorial-home #articleGrid { grid-template-columns: 1fr; gap: 0; }
  /* Only the unfiltered homepage is shortened; category/search results remain complete. */
  .ff-editorial-home.ff-home-news #articleGrid > .article-card:nth-child(n+5) { display: none; }
  .ff-editorial-home #articleGrid > .article-card { border-bottom: 1px solid var(--line); padding-block: 16px; }
  .ff-editorial-home #articleGrid > .article-card:first-child { padding-top: 0; }
  .ff-editorial-home #articleGrid .article-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 14px; }
  .ff-editorial-home #articleGrid .article-card .art.has-image { height: 88px; min-height: 0; aspect-ratio: 1; border-radius: 4px; }
  .ff-editorial-home #articleGrid .article-card .art img { height: 88px; aspect-ratio: 1; object-fit: cover; }
  .ff-editorial-home #articleGrid .article-card.no-photo { grid-template-columns: 1fr; gap: 8px; }
  .ff-editorial-home #articleGrid .article-card.no-photo .art { height: auto; min-height: 0; padding: 0; background: none; color: var(--ink); }
  .ff-editorial-home #articleGrid .article-card.no-photo .art-title { font: 700 17px/1.35 Arial, sans-serif; }
  .ff-editorial-home #articleGrid .body { padding: 0; min-width: 0; }
  .ff-editorial-home #articleGrid h3 { font-size: 17px; line-height: 1.35; margin-block: 7px; overflow-wrap: anywhere; }
  .ff-editorial-home #articleGrid .meta { margin-top: 8px; font-size: 11px; }
  .ff-editorial-home #articleGrid .meta > b { display: none; }
  /* The shared equal-height card sheet is loaded later; phone rows need natural heights. */
  body.ff-editorial-home #feed #articleGrid .article-card > .art { aspect-ratio: 1; }
  body.ff-editorial-home #feed #articleGrid .article-card > .body { grid-template-rows: auto auto auto; gap: 6px !important; }
  body.ff-editorial-home #feed #articleGrid .article-card > .body > h3 { display: block !important; -webkit-line-clamp: unset !important; font-size: 17px !important; }
  body.ff-editorial-home #feed #articleGrid .article-card > .body > .meta { grid-row: 3; }
  body.ff-editorial-home #feed #articleGrid .article-card.no-photo > .art { aspect-ratio: auto; }
  body.ff-editorial-home #feed #articleGrid .article-card.no-photo .art-title { display: block; -webkit-line-clamp: unset; color: var(--ink); max-width: none; padding: 0; text-align: left; }
  .ff-editorial-home .more-row { margin-top: 20px; }
  .ff-editorial-home .more-row .btn { width: 100%; justify-content: center; text-align: center; }
  .ff-editorial-home .ed-explains { padding-bottom: 28px; }
  .ff-editorial-home .ed-explains-inner { padding: 22px 18px; gap: 18px; }
  .ff-editorial-home .ed-explains-inner h2 { font-size: 28px; margin-block: 9px 12px; }
  .ff-editorial-home .ed-explains-inner > div > p { max-width: none; margin-bottom: 8px; }
  .ff-editorial-home .ed-explain-row { gap: 10px; padding-block: 16px; }
  .ff-editorial-home .ed-explain-row:nth-child(n+3) { display: none; }
  .ff-editorial-home .ed-explain-row:nth-child(2) { border-bottom: 0; padding-bottom: 0; }
  .ff-editorial-home .ed-explain-row p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ff-editorial-home #opinions { padding-block: 26px; }
  .ff-editorial-home #opinions h2 { font-size: 27px; line-height: 1.15; }
  .ff-editorial-home .opinion-grid { grid-template-columns: 1fr; gap: 14px; }
  .ff-editorial-home .opinion-card:nth-child(n+3) { display: none; }
  .ff-editorial-home .opinion-card h3 { display: block; font-size: 21px; line-height: 1.25; }
  .ff-editorial-home .opinion-card > p { display: none; }
  .ff-editorial-home .opinion-thumb { height: 120px; }
  .ff-editorial-home .ed-opinion-more { margin-top: 10px; }
  .ff-editorial-home .ed-data { margin-top: 28px; padding-block: 22px; }
  .ff-editorial-home .ed-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ff-editorial-home .ed-metric { min-width: 0; padding: 12px; }
  .ff-editorial-home .ed-metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ff-editorial-home .ed-metric > strong { font-size: 25px; overflow-wrap: anywhere; }
  .ff-editorial-home .ed-metric > div { flex-wrap: wrap; }
  .ff-editorial-home .ed-watch { padding-top: 26px; padding-bottom: 16px; }
  .ff-editorial-home .ed-watch-grid { gap: 12px; }
  .ff-editorial-home .ed-watch-card { padding: 20px; }
  .ff-editorial-home .ed-watch-card h3 { font-size: 22px; margin-block: 12px; }
  .ff-editorial-home .ed-watch-card p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ff-editorial-home .ff-directory-home { margin-top: 16px; gap: 24px; }
  .ff-editorial-home .ff-discovery-list > .ff-discovery-card:nth-child(n+3) { display: none; }
  .ff-editorial-home .cta { padding-block: 28px; }
  .ff-editorial-home .cta-box { padding: 22px 18px; gap: 18px; min-width: 0; }
  .ff-editorial-home .cta-box h2 { font-size: 25px; line-height: 1.2; }
  .ff-editorial-home .cta-form { min-width: 0; }
  .ff-editorial-home .cta-form .input { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ff-editorial-home .ticker-track { animation: none; }
  .ff-editorial-home .ticker { overflow-x: auto; }
}
