/* The homepage's news pieces that its stylesheet (assets/index-*.css) has no rules for: the cards
   as links, "All news" before the arrows beside "Latest from Chariot.", and the launch line above
   the hero headline.
   See tools/home-sections/patch-script.py. */
#root a.news-card{ text-decoration:none; }
#root .news-all{ text-decoration:none; transition:background-color .15s ease; }
/* All news and the arrows the same height, whichever is taller at that width. */
#root [data-section="news"] .news-all, #root [data-section="news"] .carousel-arrow{ align-self:stretch; }
#root .news-all:hover{ background-color:#f4efe7; }
#root .news-all:focus-visible, #root .hero-launch:focus-visible{ outline:2px solid #eb663a; outline-offset:2px; }
#root .hero-launch{ display:block; max-width:520px; text-decoration:none; }
#root .hero-launch span{ text-decoration:underline; text-decoration-color:#eb663a; text-decoration-thickness:1px; text-underline-offset:3px; white-space:nowrap; }
#root .hero-launch:hover span{ color:#d9572e; }
@media (max-width:767.98px){
    #root [data-section="hero"] [data-hero-headline]{ align-items:center; }
    #root .hero-launch{ text-align:center; }
}
/* The picture keeps the desktop cards' proportions at every width. */
#root [data-section="news"] .news-card [class*="h-[165.084px]"]{ height:auto; aspect-ratio:260 / 165; }
/* Every post is in the row, all as tall as the tallest; the arrows and a sideways scroll reach the
   rest. On a desktop whole cards fill the view, three of them, four on wider screens; tablets and
   phones keep the 260px cards. */
#root [data-section="news"] .card-row{ align-items:stretch; }
@media (min-width:1024px){
    #root [data-section="news"] .card-row > .news-card{ width:calc((100% - 40px) / 3); }
}
@media (min-width:1280px){
    #root [data-section="news"] .card-row > .news-card{ width:calc((100% - 60px) / 4); }
}
/* Phones: the stylesheet fixed the cards at 340px, which cut off their bottom padding, and kept
   three lines for every title, which left a gap above the summary. The cards now fit their words
   and the summary follows the title. The heading takes its own line, with All news and the arrows
   under it (the stylesheet keeps the heading and arrows on one line, too narrow with All news). */
@media (max-width:767.98px){
    #root [data-section="news"] div:has(> * > .carousel-arrow){ flex-wrap:wrap !important; align-items:flex-start !important; }
    #root [data-section="news"] .card-row > .news-card{ height:auto !important; }
    #root [data-section="news"] .news-card h3{ min-height:0; }
}
/* Touchscreens: a tapped card stayed raised, and the swiping row cut off its top edge. */
@media (hover:none){
    #root .news-card:hover{ transform:none; box-shadow:none; }
}
