/* Shared navigation, reading, and directory components. */
:root { --focus-ring: #203e5f; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.site-header, .mobile-nav, .site-footer { --focus-ring: #ffdf67; }
.site-header { min-height: 72px; }
.menu-button { min-height: 44px; }
.mobile-nav a { min-height: 44px; display: flex; align-items: center; }
.breadcrumbs { font-size: .82rem; line-height: 1.45; padding: 0 18px; }
.breadcrumbs ol { width: 100%; max-width: var(--max); padding-block: 12px; }
.breadcrumbs li:not(:last-child) { flex: 0 0 auto; white-space: nowrap; }
.breadcrumbs li:last-child { flex: 1 1 auto; overflow: hidden; }
.breadcrumbs li + li::before { flex: 0 0 auto; }
.breadcrumbs span[aria-current="page"] { max-width: none; }
.breadcrumbs ol { flex-wrap: nowrap; }
.breadcrumbs li:last-child { min-width: 0; }
.breadcrumbs [aria-current] { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-page-grid > *, .today-side-stack > *, .today-weather-panel > * { min-width: 0; max-width: 100%; }
.today-page-grid .holiday-list, .today-page-grid .weather-ideas-grid,
.today-page-grid .weather-mood-grid { max-width: 100%; }
.today-hero { padding-block: 40px; }
.today-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.today-weather-panel .weather-ideas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
.today-weather-panel .weather-idea-card { min-width: 0; width: auto; }
.weather-updated { display: block; }

body[data-article] { background: #fffdf8; }
.article-shell { width: min(100% - 40px, 800px); padding: 40px 0 64px; }
.article-header h1 { font-size: clamp(2rem, 4.3vw, 3.3rem); line-height: 1.08; margin: 8px 0 18px; }
.article-header > p:not(.eyebrow) { font-size: 1.08rem; line-height: 1.55; max-width: 70ch; }
.article-header { padding-bottom: 22px; margin-bottom: 24px; }
.article-trust-row { margin-top: 18px; gap: 12px 18px; font-size: .82rem; }
.article-save-button { min-height: 44px; }
.article-body { display: block; max-width: 68ch; margin-inline: auto; font-family: var(--sans); font-size: 1.08rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 1.6em 0 .65em; scroll-margin-top: 96px; }
.article-body h2:first-child { margin-top: 0; }
.article-toc { margin: 0 0 28px; border-block: 1px solid var(--border); padding: 14px 0; }
.article-toc summary { cursor: pointer; color: var(--blue); font-weight: 800; padding: 4px; }
.article-toc ol { margin: 12px 0 4px; padding-left: 24px; columns: 2; column-gap: 26px; }
.article-toc li { padding: 6px 0; break-inside: avoid; }
.article-toc a { text-underline-offset: 3px; }
.article-section { margin-top: 38px; }
.article-section > h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.article-hero-media { margin: 24px 0; }
.article-hero-media img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.article-related-rail .article-card { min-height: 0; }

.listing-page { background: #fffdf8; }
.listing-intro, .listing-content, .listing-topics, .country-index {
  width: min(1180px, calc(100% - 40px)); margin-inline: auto;
}
.listing-intro { padding-block: 38px 22px; }
.listing-intro h1 { margin: 6px 0 14px; font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.05; }
.listing-intro > p { max-width: 66ch; color: var(--muted); }
.listing-controls { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: end; margin-bottom: 18px; }
.listing-controls.product-controls { grid-template-columns: 2fr 1fr 1fr 1fr auto; padding: 0; border: 0; background: transparent; position: static; }
.listing-controls label { display: grid; gap: 6px; color: var(--blue); font-size: .85rem; font-weight: 800; min-width: 0; }
.listing-controls input, .listing-controls select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #8a99a8; border-radius: 6px; background: white; color: var(--ink); padding: 10px 12px; font: inherit; font-weight: 400; }
.listing-results { color: var(--muted); margin: 0 0 20px; font-size: .9rem; }
.listing-grid, .country-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.listing-grid .article-card { width: auto; padding: 24px; min-height: 0; margin: 0; border: 1px solid var(--border); box-shadow: none; background: white; }
.listing-grid .article-card h2 { font-size: 1.5rem; line-height: 1.2; margin: 12px 0; }
.listing-grid .article-card p { font-size: .95rem; line-height: 1.55; }
.listing-grid .article-card small { margin-top: 12px; }
.listing-grid .product-card { min-height: 0; padding: 24px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 30px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 5px; text-decoration: none; background: white; }
.pagination [aria-current] { color: white; background: var(--blue); border-color: var(--blue); }
.listing-more { display: block; margin: 24px auto; min-height: 44px; }
.listing-topics { padding-block: 32px 48px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); background: white; border-radius: 6px; color: var(--blue); text-decoration: none; }
.country-index { padding-bottom: 48px; }
.country-index-card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.country-index-card h2 { margin: 0 0 12px; font-size: 1.7rem; }
.country-index-card p { margin-bottom: 0; color: var(--muted); }
.country-anchor-nav { overflow-x: auto; flex-wrap: nowrap; }
.country-anchor-nav a { white-space: nowrap; min-height: 44px; }
.trust-hero, .legal-hero { padding-block: 44px; }
.trust-hero h1, .legal-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }

@media (max-width: 980px) {
  .today-page-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-controls.product-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-controls.product-controls label:first-child { grid-column: 1 / -1; }
  .listing-grid, .country-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 84px; }
  .site-header { height: 72px; min-height: 72px; flex-wrap: nowrap; padding: 12px 18px; }
  .site-header .top-nav { display: none; }
  .site-header .menu-button { display: inline-flex; align-items: center; }
  .mobile-nav { position: fixed; top: 72px; left: 0; right: 0; z-index: 90; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 14px 18px; box-shadow: 0 10px 20px #102f5022; }
  .breadcrumbs { padding-inline: 18px; }
  .article-shell { width: calc(100% - 36px); padding-top: 26px; }
  .article-header h1 { font-size: 2rem; }
  .article-header > p:not(.eyebrow) { font-size: 1rem; }
  .article-trust-row { gap: 10px 14px; }
  .article-body { font-size: 1rem; line-height: 1.7; }
  .article-toc ol { columns: 1; }
  .listing-intro { padding-block: 28px 16px; }
  .listing-intro h1 { font-size: 2.2rem; }
  .listing-controls, .listing-controls.product-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .listing-grid, .country-index-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-grid .article-card h2 { font-size: 1.4rem; }
  .today-weather-panel .weather-ideas-grid { grid-template-columns: minmax(0, 1fr); }
  .today-page-grid { width: calc(100% - 36px); padding-top: 20px; }
  .today-page-grid .panel { padding: 20px; }
  .today-hero-grid { width: calc(100% - 36px); }
  .today-hero { padding-block: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.listing-grid .product-card h2 { font-size: 1.5rem; margin: 12px 0; }

/* Footer links must wrap before their combined width exceeds a tablet viewport. */
.site-footer > * { min-width: 0; max-width: 100%; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; max-width: 100%; min-width: 0; gap: 12px 18px; }
