/* Mobile-first layout overrides */
.wrap { width: calc(100% - 24px); }
.utility .wrap { height: 30px; font-size: .68rem; }
.utility .wrap span:last-child { display: none; }
.masthead { height: 70px; }
.brand { gap: 8px; font-size: .8rem; }
.brand .mark { width: 36px; }
.brand b { display: none; }
#refresh { width: 42px; height: 42px; padding: 0; justify-content: center; font-size: 0; }
#refresh span { width: 9px; }
.main-nav .wrap { width: 100%; height: 50px; padding: 0 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.main-nav .wrap::-webkit-scrollbar { display: none; }
.main-nav button, .main-nav a { min-height: 38px; padding-inline: 16px; scroll-snap-align: start; }
.ticker .wrap { height: 42px; gap: 10px; }
.ticker strong { flex: none; }
.ticker time { display: none; }
.page-head { padding: 34px 0 24px; display: block; }
.page-head p { margin-bottom: 8px; }
.page-head h1 { font-size: clamp(3.5rem, 20vw, 5rem); }
.page-head div { display: none; }
.portal { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 42px; }
.top-story, .story-visual { border-radius: 18px; }
.story-visual { min-height: 500px; }
.story-visual.has-image { aspect-ratio: 4 / 5; min-height: 0; }
.story-overlay { padding: 24px; }
.story-overlay h2 { font-size: clamp(2.1rem, 11vw, 3.3rem); line-height: .98; }
.story-overlay p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: .96rem; }
.story-meta { flex-wrap: wrap; }
.sidebar { padding: 18px; border-radius: 16px; }
.focus-item { padding-block: 16px; }
.latest { padding: 0 0 54px; }
.section-head { align-items: start; margin-bottom: 18px; }
.section-head p { display: none; }
.section-head h2 { font-size: 1.75rem; }
.news-grid { grid-template-columns: 1fr; gap: 16px; }
.card { border-radius: 16px; }
.card h3 { font-size: 1.25rem; }
.card-image { aspect-ratio: 16 / 10; }
footer .wrap { min-height: 180px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
footer p { order: 2; }
footer .wrap > a:last-child { order: 3; }

@media (min-width: 640px) {
  .wrap { width: min(100% - 40px, 1240px); }
  .utility .wrap span:last-child { display: inline; }
  .masthead { height: 82px; }
  .brand { font-size: .95rem; }
  .brand b { display: inline; }
  #refresh { width: auto; height: auto; padding: 11px 16px; font-size: .78rem; }
  .page-head { padding-top: 48px; }
  .page-head h1 { font-size: clamp(4.6rem, 13vw, 6.3rem); }
  .story-visual { min-height: 530px; }
  .story-visual.has-image { aspect-ratio: 16 / 10; }
  .story-overlay { padding: 36px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .wrap { min-height: 150px; display: grid; grid-template-columns: 1fr auto; }
}

@media (min-width: 960px) {
  .wrap { width: min(100% - 48px, 1240px); }
  .main-nav .wrap { width: min(100% - 48px, 1240px); padding: 0; }
  .ticker time { display: inline; }
  .page-head { padding: 62px 0 32px; display: grid; }
  .page-head div { display: flex; }
  .portal { grid-template-columns: minmax(0, 2.1fr) minmax(280px, .8fr); gap: 28px; padding-bottom: 60px; }
  .story-visual { min-height: 570px; }
  .story-visual.has-image { aspect-ratio: 16 / 9; }
  .story-overlay { padding: 44px; }
  .story-overlay p { display: block; overflow: visible; }
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

/* Platform layout final responsive layer */
.portal { align-items: start; }
.page-head .page-title { display: block; padding: 0; background: transparent; box-shadow: none; }
@media (min-width: 960px) {
  .wrap { width: min(100% - 48px, 1380px); }
  .main-nav .wrap { width: min(100% - 48px, 1380px); }
  .page-head { min-height: 168px; padding: 42px 0 28px; display: flex; }
  .portal { grid-template-columns: minmax(0, 1.9fr) minmax(330px, .78fr); }
  .story-visual { min-height: 500px; }
  .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 561px) and (max-width: 1100px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .page-head { min-height: 118px; padding: 28px 0 20px; } .page-head h1 { font-size: 2.55rem; } .news-grid { grid-template-columns: 1fr; } }
