/* Page-specific styles for "home". Shared chrome and components: ../site.css */
:root { --blue-dark: #075bb3; --share-gradient: linear-gradient(180deg,#2d60af 0%,#4f96e1 100%); --write-gradient: linear-gradient(180deg,#549de5 0%,#85bff2 100%); --muted: #9299a4; --sidebar-width: 220px; }
.topbar-left, .topbar-actions, .main-nav, .trending, .section-heading { display: flex; align-items: center; }
.main-brand-copy { display: grid; align-content: center; }
.main-brand-name { line-height: .8; }
.main-brand-tagline { margin-top: 4px; color: #4d535c; font-family: Inter,Arial,sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0; line-height: 1; }
main { padding: 0 46px 70px; }
.flash-section { margin: 34px -46px 30px; padding: 0 30px 24px; background: #f8fafc; border-bottom: 1px solid #f0f2f5; }
.section-heading { justify-content: space-between; margin-bottom: 32px; }
.section-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.45px; }
.section-heading h2::before { width: 5px; height: 32px; border-radius: 3px; background: var(--blue); content: ""; }
.section-heading.simple h2::before { display: none; }
.section-link { color: #656d78; font-size: 14px; }
.section-link:hover { color: var(--blue); }
.flash-title { color: #e92737; }
.flash-title::before { display: none !important; }
.flash-section .section-heading { margin-bottom: 20px; }
.flash-title { font-size: 24px !important; }
.flash-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.flash-card { min-width: 0; }
.flash-image { position: relative; overflow: hidden; aspect-ratio: .565; border-radius: 14px; background: #dce3ea; }
.flash-image img, .story-image img, .lead-image img, .mini-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.flash-card:hover img, .story-card:hover .story-image img { transform: scale(1.04); }
.play-button { position: absolute; top: 50%; left: 50%; display: grid; width: 54px; height: 54px; transform: translate(-50%,-50%); place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #25303d; font-size: 20px; cursor: pointer; box-shadow: 0 2px 10px #0002; }
.duration { position: absolute; right: 11px; bottom: 11px; padding: 4px 7px; border-radius: 3px; background: #171a1ecc; color: #fff; font-size: 12px; }
.flash-card h3 { display: -webkit-box; overflow: hidden; margin: 11px 1px 0; font-size: 14px; font-weight: 650; line-height: 1.45; line-clamp: 2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lead-layout { display: grid; grid-template-columns: minmax(0,2.15fr) minmax(300px,1fr); gap: 50px; margin-bottom: 64px; }
.lead-story { min-width: 0; }
.lead-image { display: block; overflow: hidden; aspect-ratio: 1.58; border-radius: 14px; background: #dce3ea; }
.lead-copy { padding-top: 18px; }
.category { display: inline-block; margin-bottom: 8px; color: var(--blue); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.lead-copy h1 { max-width: 650px; margin: 0 0 7px; font-size: clamp(26px,2.7vw,34px); font-weight: 750; letter-spacing: -.7px; line-height: 1.22; }
.lead-copy p { max-width: 700px; margin: 0 0 14px; color: #707782; font-size: 16px; line-height: 1.55; }
.meta { display: flex; align-items: center; gap: 6px; color: #9299a2; font-size: 12px; }
.mini-story { display: grid; grid-template-columns: 126px 1fr; gap: 16px; min-width: 0; }
.mini-image { display: block; overflow: hidden; aspect-ratio: 1.34; border-radius: 10px; background: #e6ebf0; }
.mini-story h3 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.35; }
.mini-story .category { margin-bottom: 5px; font-size: 12px; }
.mini-story .meta { margin-top: 8px; font-size: 12px; }
.news-section { margin: 0 -16px 38px; }
.news-section .cards-grid { margin-inline: 12px; }
.cards-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 48px; }
.story-card { min-width: 0; }
.story-image { display: block; overflow: hidden; aspect-ratio: 2; border-radius: 10px; background: #e4e8ed; }
.story-card h3 { margin: 1px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.story-card p { margin: 0 0 10px; color: #7c838d; font-size: 14px; line-height: 1.5; }
.story-card .category { margin: 16px 0 8px; font-size: 12px; }
.recommend-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.recommend-card { overflow: hidden; border: 1px solid #e8ebef; border-radius: 14px; background: #fff; }
.recommend-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.6; background: #e4e8ed; }
.recommend-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.recommend-card:hover .recommend-image img { transform: scale(1.04); }
.recommend-image .category-pill { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 14px; background: var(--blue); color: white; font-size: 12px; font-weight: 600; }
.recommend-copy { padding: 16px; }
.recommend-copy h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.recommend-copy p { margin: 0 0 14px; color: #7c838d; font-size: 14px; line-height: 1.5; }
.recommend-meta { display: flex; justify-content: space-between; color: #9299a2; font-size: 12px; }
.brief-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.brief { display: grid; grid-template-columns: 94px 1fr; gap: 15px; align-items: center; padding: 12px; border: 1px solid #e7edf4; border-radius: 8px; background: #f7fbff; }
.brief .mini-image { aspect-ratio: 1.35; }
.brief .category { margin: 0 0 4px; font-size: 12px; }
.brief h3 { margin: 0; font-size: 14px; line-height: 1.4; }
.brief .meta { margin-top: 6px; font-size: 12px; }
.split-section { display: grid; grid-template-columns: 2.1fr 1fr; gap: 32px; margin: 0 -16px 46px; }
.split-section>section>.cards-grid { margin-inline: 12px; }
.split-section .cards-grid { gap: 48px; }
.split-section .story-image { aspect-ratio: 1.8; }
.split-section .story-card h3 { font-size: 20px; }
.list-stories { display: grid; gap: 42px; }
.list-stories .mini-story { grid-template-columns: 86px 1fr; gap: 10px; }
.list-stories .mini-story h3 { font-size: 13px; }
.tech-section { margin-bottom: 42px; }
.tech-section .story-image { aspect-ratio: 1.75; }
.empty-note { color: var(--muted); font-size: 10px; }
.modal { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; padding: 20px; background: #07101fcc; }
.modal.open { display: grid; }
.modal-card { width: min(440px,100%); padding: 26px; border-radius: 13px; background: #fff; text-align: center; }
.modal-card h2 { margin: 0 0 9px; font-size: 20px; }
.modal-card p { margin: 0 0 18px; color: #737b85; line-height: 1.6; }
.modal-card button { padding: 9px 17px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; cursor: pointer; }
@media (max-width: 1050px) {
  .cards-grid { gap: 13px; }
  .mini-story { grid-template-columns: 75px 1fr; gap: 9px; }
  main { padding-inline: 19px; }
  .flash-section { margin-inline: -19px; padding-inline: 19px; }
}

@media (min-width: 761px) and (max-width: 1450px) {
  .main-brand-tagline { margin-top: 3px; font-size: 8px; }
}

@media (min-width: 761px) and (max-width: 1150px) {
  .main-brand-tagline { display: none; }
  .lead-layout { grid-template-columns: minmax(0,1.8fr) minmax(280px,1fr); gap: 28px; }
  .mini-story { grid-template-columns: 100px 1fr; gap: 12px; }
  .mini-story h3, .story-card h3, .split-section .story-card h3 { font-size: 17px; }
  .cards-grid, .split-section .cards-grid { gap: 24px; }
  .split-section { grid-template-columns: 1.7fr 1fr; gap: 24px; }
  .news-section { margin-inline: -8px; }
  .news-section .cards-grid { margin-inline: 8px; }
  .split-section { margin-inline: -8px; }
  .split-section>section>.cards-grid { margin-inline: 8px; }
}

@media (max-width: 760px) {
  main { padding: 17px 14px 45px; }
  .flash-section { margin: 8px -14px 24px; padding: 17px 14px 15px; }
  .news-section { margin-inline: 0; }
  .news-section .cards-grid, .split-section>section>.cards-grid { margin-inline: 0; }
  .section-heading { margin-bottom: 18px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading h2::before { width: 4px; height: 25px; }
  .flash-section .section-heading { margin-bottom: 16px; }
  .flash-title { font-size: 20px !important; }
  .flash-grid { grid-template-columns: repeat(6,112px); overflow-x: auto; padding-bottom: 4px; }
  .flash-image { aspect-ratio: .77; border-radius: 10px; }
  .play-button { width: 40px; height: 40px; font-size: 15px; }
  .flash-card h3 { margin-top: 8px; font-size: 12px; }
  .lead-layout { grid-template-columns: 1fr; gap: 20px; margin-bottom: 35px; }
  .lead-image { aspect-ratio: 1.4; border-radius: 10px; }
  .lead-copy { padding-top: 13px; }
  .lead-copy h1 { font-size: 24px; }
  .lead-copy p { font-size: 13px; }
  .mini-story { grid-template-columns: 75px 1fr; gap: 9px; }
  .mini-story h3 { font-size: 13px; }
  .mini-story .category, .mini-story .meta { font-size: 9px; }
  .cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
  .story-image, .split-section .story-image { aspect-ratio: 1.48; border-radius: 8px; }
  .story-card h3 { font-size: 12px; }
  .story-card p { font-size: 12px; }
  .story-card .category { margin: 8px 0 5px; font-size: 9px; }
  .recommend-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recommend-grid { gap: 12px; }
  .recommend-image { aspect-ratio: 1.5; }
  .recommend-copy { padding: 10px; }
  .recommend-copy h3 { font-size: 13px; }
  .recommend-copy p { font-size: 11px; }
  .recommend-meta { font-size: 9px; }
  .brief { grid-template-columns: 70px 1fr; gap: 10px; padding: 8px; }
  .brief .category { font-size: 9px; }
  .brief h3 { font-size: 10px; }
  .brief .meta { font-size: 9px; }
  .brief-row { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 28px; margin: 0 0 35px; }
  .split-section .cards-grid { gap: 14px 11px; }
  .split-section .story-image { aspect-ratio: 1.4; }
  .split-section .list-stories { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tech-section { margin-bottom: 32px; }
}

@media (max-width: 420px) {
  .section-heading h2 { font-size: 15px; }
  .split-section .list-stories { grid-template-columns: 1fr; }
}

/* Keep the lead headline above the fold on laptop screens (1280×800, 1366×768):
   on desktop the headline and summary come first, the photo below them. */
@media (min-width: 1151px) {
  .lead-layout .lead-story { display: flex; flex-direction: column; }
  .lead-layout .lead-copy { order: -1; padding: 0 0 18px; }
  .lead-image { aspect-ratio: 2; }
}
