/* Homepage editorial hierarchy; shared masthead, sidebar and news markup remain reusable. */
.home-overview { container-type: inline-size; display: grid; gap: 22px; min-width: 0; }
.home-overview .home-intro, .home-overview .featured-news { margin-bottom: 0; }
.home-overview .home-intro > .heading-page { --heading-inset: 22px; --heading-size: clamp(25px, 2.1vw, 30px); padding-block: 17px; }
.home-overview .home-intro > .heading-page h1 { line-height: 1.25; letter-spacing: -.02em; text-wrap: pretty; }
.home-overview .home-intro-body { padding: 15px 22px 17px; }
.home-intro-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.home-intro-meta > span { color: var(--accent-ink); font-weight: 750; }
.home-overview .home-intro-body > p { color: var(--copy); font-size: var(--text-size); font-weight: 450; line-height: 1.85; }
.home-overview .home-intro-links { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.home-overview .home-intro-links ul { align-items: center; gap: 4px 17px; }
.home-overview .home-intro-links a { min-height: 34px; }
.home-overview .home-intro-links .home-news-link { gap: 14px; padding: 9px 13px; border-radius: 4px; color: var(--inverse); background: var(--primary); }
.home-overview .home-intro-links .home-news-link:hover { color: var(--inverse); background: var(--ink); text-decoration: none; }
.home-overview .home-intro-links .home-news-link:focus-visible { outline-offset: 3px; }
.home-section { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.home-overview .section-heading:not(.heading-page) { --heading-inset: 22px; --heading-size: 22px; padding-block: 15px; }
.home-section-intro { padding: 18px 22px 0; margin: 0; color: var(--copy); font-size: var(--text-size); line-height: 1.75; font-weight: 450; }
.home-overview .featured-list .news-row { padding: 18px 22px; }
.home-overview .featured-list .news-row:first-child { padding-block: 18px; background: var(--wash); }
.home-overview .featured-list .news-row:first-child > time { color: var(--accent-ink); font-weight: 750; }
.home-overview .featured-list .news-row h3 { font-size: 18px; }
.home-overview .news-row { transition: background-color .15s ease; }
.home-news-feed { padding: 4px 22px 0; }
.home-news-feed .news-row { padding: 15px 0; }
.home-news-feed .news-row:last-child { padding-bottom: 20px; }
.home-news-day { display: flex; align-items: center; gap: 12px; margin: 20px 0 2px; color: var(--accent-ink); font-size: 11px; font-weight: 750; }
.home-news-day::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.home-section-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--wash); }
.home-section-footer a { min-height: 36px; font-size: 13px; }
.home-empty { margin: 0; padding: 22px; color: var(--muted); font-size: 14px; }
.home-tracker-list { padding: 0 22px; }
.home-tracker-card + .home-tracker-card { border-top: 1px solid var(--line); }
.home-tracker-card > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 22px 0; border-radius: 3px; }
.home-tracker-card h3, .home-guide-card h3, .home-tool-card h3 { margin: 0; color: var(--primary); font-size: 20px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; letter-spacing: -.015em; }
.home-card-type { margin: 0 0 8px; color: var(--accent-ink); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.home-card-description { margin: 10px 0 0; color: var(--copy); font-size: var(--text-size); line-height: 1.75; overflow-wrap: anywhere; font-weight: 450; }
.home-tracker-latest { padding-left: 20px; border-left: 2px solid var(--line); }
.home-update-label { color: var(--muted); font-size: 10px; }
.home-tracker-latest > p { margin: 6px 0; color: var(--primary); font-size: 14px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.home-tracker-latest time { display: block; color: var(--muted); font-size: 11px; }
.home-card-action { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--primary); font-size: 12px; font-weight: 750; }
.home-card-action .icon { width: 15px; height: 15px; }
.home-tracker-card a:hover h3, .home-guide-card a:hover h3, .home-tool-card a:hover h3 { color: var(--accent-ink); }
.home-tracker-card a:focus-visible { outline-offset: -3px; }
.home-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 22px; }
.home-guide-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.home-guide-card > a { display: flex; flex-direction: column; height: 100%; }
.home-guide-image { aspect-ratio: 16/9; overflow: hidden; background: var(--wash); }
.home-guide-image img { display: block; width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; }
.home-guide-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 18px; }
.home-guide-card .home-card-action { margin-top: auto; padding-top: 18px; }
.home-guide-card h3 { font-size: 19px; }
.home-guide-card a:hover, .home-tool-card a:hover { background: var(--wash); }
.home-guide-card a:focus-visible, .home-tool-card a:focus-visible { outline-offset: -3px; }
.home-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 22px; gap: 14px; }
.home-tool-card { min-width: 0; border: 1px solid var(--line); border-radius: 5px; }
.home-tool-card > a { display: flex; flex-direction: column; align-items: start; height: 100%; padding: 18px 16px; border-radius: inherit; }
.home-tool-card h3 { font-size: 19px; }
.home-tool-card .home-card-action { padding-top: 16px; margin-top: auto; }
@container (max-width: 680px) {
  .home-tool-grid { grid-template-columns: minmax(0, 1fr); }
  .home-tool-card > a { padding: 18px; }
}
@container (max-width: 520px) {
  .home-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .home-tracker-card > a { grid-template-columns: minmax(0, 1fr); gap: 15px; }
}
@media (max-width: 560px) {
  .home-overview { gap: 20px; }
  .home-overview .home-intro > .heading-page { --heading-inset: 17px; --heading-size: 26px; padding-block: 16px; }
  .home-overview .home-intro-body { padding: 16px 17px 18px; }
  .home-overview .home-intro-links ul { gap: 6px 18px; }
  .home-overview .home-intro-links li:first-child { flex-basis: auto; margin-bottom: 0; }
  .home-overview .section-heading:not(.heading-page) { --heading-inset: 17px; --heading-size: 20px; padding-block: 14px; }
  .home-overview .featured-list .news-row { padding: 16px 17px; }
  .home-overview .featured-list .news-row:first-child { padding-block: 18px; }
  .home-news-feed { padding-inline: 17px; }
  .home-section-footer { padding: 10px 17px; }
  .home-section-intro { padding: 16px 17px 0; }
  .home-tracker-list { padding-inline: 17px; }
  .home-tracker-card > a { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-block: 19px; }
  .home-guide-grid, .home-tool-grid { grid-template-columns: minmax(0, 1fr); padding: 17px; gap: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-overview .news-row { transition: none; }
}
@media print {
  .home-overview { display: block; }
  .home-section { margin-top: 22px; }
  .home-intro-links, .home-section-footer { display: none; }
}

/* Shared heading row with accessible, local-only news tabs. */
.home-news-tabs > .home-news-panel { margin: 0; border: 0; border-radius: 0; }
.home-news-tablist[hidden], .home-news-panel[hidden] { display: none; }
.home-overview .home-news-tablist.section-heading { justify-content: flex-start; align-items: stretch; gap: 0; padding-block: 0; }
.home-news-tablist:not([hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-news-tablist > h2 { display: flex; }
.home-news-tablist button { width: 100%; position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 62px; padding: 15px 4px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: inherit; letter-spacing: inherit; text-align: center; cursor: pointer; }
.home-news-tablist button[aria-selected="true"] { color: var(--primary); }
.home-news-tablist button[aria-selected="true"]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 3px; background: var(--accent); }
.home-news-tablist button:hover { color: var(--primary); }
.home-news-tablist button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -4px; }
.home-news-panel:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -3px; }
.home-news-tabs.is-tabbed .home-news-panel > .section-heading { display: none; }
@media (max-width: 480px) {
  /* Fit all three labels on narrow phones and allow wrapping with enlarged text. */
  .home-overview .home-news-tablist.section-heading { --heading-inset: 12px; --heading-size: clamp(14px, 4vw, 17px); padding-inline: var(--heading-inset); }
  .home-news-tablist button { min-height: 54px; padding-block: 12px; }
}

@media print {
  .home-news-tabs.is-tabbed .home-news-tablist { display: none; }
  .home-news-tabs.is-tabbed .home-news-panel[hidden] { display: block !important; }
  .home-news-tabs.is-tabbed .home-news-panel > .section-heading { display: flex; }
}
