/* Compact header: visible horizontal wordmark plus account/language controls. */
.site-header {
  gap: 16px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.site-header > .brand {
  flex: 0 1 190px;
  width: 190px;
  min-width: 0;
  overflow: visible;
  display: flex;
  align-items: center;
}
.site-header .brand-logo {
  display: block;
  width: 190px !important;
  height: 40px !important;
  max-width: 100%;
  flex: 0 1 190px !important;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}
.header-tools {
  flex: 0 0 auto;
  gap: 6px;
  white-space: nowrap;
}
.mode-pill { padding: 6px 10px; }
.pill, .account-button { padding: 7px 12px; }
@media (max-width: 760px) {
  .site-header {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 8px;
    min-width: 0;
  }
  .site-header > .brand {
    flex: 0 1 128px;
    width: 128px;
    min-width: 108px;
    height: 34px;
  }
  .site-header .brand-logo {
    width: 128px !important;
    height: 34px !important;
    max-width: 100%;
    flex: 0 1 128px !important;
    object-fit: contain;
    object-position: left center;
  }
  .site-header > .main-nav { display: none !important; }
  .site-header > .header-tools {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 4px;
  }
  .header-tools .mode-switch {
    flex: 0 1 auto;
    min-width: 0;
    padding: 2px;
    gap: 1px;
  }
  .header-tools .mode-pill {
    flex: 0 1 auto;
    min-width: 0;
    padding: 5px 6px;
    font-size: .68rem;
    white-space: nowrap;
  }
  .header-tools .pill, .header-tools .account-button {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 34px;
    padding: 5px 7px;
    font-size: .74rem;
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .site-header { gap: 4px; padding-left: 6px; padding-right: 6px; }
  .site-header > .brand { flex-basis: 105px; width: 105px; min-width: 96px; }
  .site-header .brand-logo { width: 105px !important; flex-basis: 105px !important; }
  .site-header > .header-tools { gap: 3px; }
  .header-tools .mode-pill { padding-inline: 4px; font-size: .63rem; }
  .header-tools .pill, .header-tools .account-button { padding-inline: 5px; font-size: .69rem; }
}

/* Mobile-first reading: reduce the oversized intro so today's stories appear sooner. */
@media (max-width: 700px) {
  .basic-mode .hero {
    padding: 22px 0 18px !important;
    max-width: 100%;
  }
  .basic-mode .hero > .eyebrow {
    margin-bottom: 8px !important;
    font-size: .68rem;
    letter-spacing: .12em;
  }
  .basic-mode .hero h1 {
    font-size: clamp(2.65rem, 10.2vw, 4rem) !important;
    line-height: .98 !important;
    letter-spacing: -.055em;
  }
  .basic-mode .hero-copy {
    margin: 12px 0 0 !important;
    font-size: clamp(1.05rem, 4.8vw, 1.3rem) !important;
    line-height: 1.32 !important;
  }
  .basic-mode .news-section { padding-top: 12px; }
  .basic-mode .section-heading { margin-bottom: 8px; gap: 8px; }
  .basic-mode .section-heading .eyebrow { margin-bottom: 7px !important; }
  .basic-mode .section-heading h2 { font-size: clamp(1.8rem, 7vw, 2.35rem) !important; line-height: 1.02; }
  .basic-mode .date-wrap { font-size: .8rem; }
  .date-search-controls { gap: 6px 8px !important; margin-bottom: 10px !important; }
  .date-search-controls label { font-size: .78rem; }
  .date-search-controls input, .date-search-controls select { height: 36px !important; font-size: .82rem; }
  .date-search-controls button { height: 36px !important; min-height: 36px !important; font-size: .84rem; }
  .news-pager { margin-bottom: 8px !important; }
  /* Lead with the first headline; keep its image directly underneath the title. */
  #newsGrid .news-card:first-child { display: flex; }
  #newsGrid .news-card:first-child .card-top { order: 0; }
  #newsGrid .news-card:first-child h3 { order: 1; margin-top: 10px !important; }
  #newsGrid .news-card:first-child .news-image-wrap { order: 2; margin: 12px 0 14px !important; }
  #newsGrid .news-card:first-child p { order: 3; }
  #newsGrid .news-card:first-child .card-meta { order: 4; }
  /* The clock button opens the activity drawer; keep it from covering content on phones. */
  .history-launcher { width: 42px !important; height: 42px !important; right: 8px !important; bottom: 8px !important; opacity: .72; }
}
@media (max-width: 380px) {
  .basic-mode .hero { padding-top: 18px !important; padding-bottom: 14px !important; }
  .basic-mode .hero h1 { font-size: clamp(2.45rem, 10vw, 3.2rem) !important; }
  .basic-mode .hero-copy { font-size: 1.02rem !important; }
}


/* Focused mobile polish for the premium callout and footer only. */
@media (max-width: 700px) {
  #premium-anchor.premium-strip {
    margin: 20px 0 18px !important;
    padding: 24px 18px 22px !important;
    border-radius: 0 0 18px 18px;
    border-top: 1px solid rgba(155, 65, 43, .16);
    border-bottom: 1px solid rgba(155, 65, 43, .16);
    background: linear-gradient(145deg, #f3e6d5 0%, #f8f2e8 58%, #e9eee9 100%);
  }
  #premium-anchor.premium-strip:after {
    width: 180px;
    height: 180px;
    inset: auto -55px -95px auto;
    opacity: .45;
    pointer-events: none;
  }
  #premium-anchor .eyebrow {
    margin-bottom: 8px !important;
    font-size: .68rem;
    letter-spacing: .13em;
  }
  #premium-anchor h2 {
    font-size: clamp(1.8rem, 7.2vw, 2.45rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -.04em;
    margin-bottom: 9px !important;
  }
  #premium-anchor .muted {
    font-size: .95rem;
    line-height: 1.4;
    margin: 0 0 15px !important;
  }
  #premium-anchor .primary {
    min-height: 46px;
    border-radius: 12px;
    font-size: .96rem;
    padding: 11px 14px;
    box-shadow: 0 5px 14px rgba(120, 48, 31, .10);
  }
  #premium-anchor .hero-actions.premium-offer-actions {
    display: grid;
    gap: 10px !important;
    margin-top: 10px !important;
  }
  #premium-anchor #heroCta {
    margin: 0 !important;
  }
  #premium-anchor .bonus {
    display: block;
    max-width: 100%;
    font-size: .86rem;
    line-height: 1.35;
    text-align: center;
    padding: 0 4px;
  }
  footer {
    padding: 22px 18px max(18px, env(safe-area-inset-bottom)) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px !important;
    align-items: start;
    font-size: .9rem;
    line-height: 1.45;
    background: #faf8f2;
  }
  footer .footer-brand {
    grid-column: 1 / -1;
    padding: 0 0 15px;
    border-bottom: 1px solid rgba(125, 115, 100, .2);
  }
  footer .footer-brand strong {
    display: block;
    color: #29251f;
    font-size: 1.06rem;
    margin-bottom: 6px;
    letter-spacing: -.02em;
  }
  footer .footer-brand p {
    margin: 0;
    max-width: 48ch;
    font-size: .9rem;
    line-height: 1.5;
  }
  footer .footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
  }
  footer .footer-column b {
    color: #8d4a37;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  footer .footer-column a,
  footer .footer-column span,
  footer .footer-link {
    font-size: .9rem;
    line-height: 1.4;
  }
  footer .footer-link {
    padding: 0;
    text-align: left;
  }
  footer .footer-copy {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(125, 115, 100, .2);
    padding-top: 14px;
    margin-top: 0;
    font-size: .78rem;
    line-height: 1.45;
    color: #777168;
  }
}
@media (max-width: 380px) {
  #premium-anchor.premium-strip { padding: 20px 14px 18px !important; }
  footer { padding-left: 14px !important; padding-right: 14px !important; gap: 17px 10px !important; }
}


/* Match Premium mode's mobile spacing to the compact Basic experience.
   Keep the existing Premium colors and font families unchanged. */
@media (max-width: 700px) {
  .premium-mode {
    padding-top: 14px !important;
    padding-bottom: 8px !important;
  }
  .premium-mode .premium-hero {
    gap: 12px !important;
    padding: 20px 18px !important;
    margin: 0 0 12px !important;
    border-radius: 16px;
  }
  .premium-mode .premium-hero .eyebrow {
    margin-bottom: 7px !important;
    font-size: .68rem;
    letter-spacing: .12em;
  }
  .premium-mode .premium-hero h2 {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
    line-height: 1.02 !important;
    margin: 0 0 10px !important;
  }
  .premium-mode .premium-hero .muted {
    font-size: .92rem;
    line-height: 1.4;
    margin: 0 !important;
  }
  .premium-mode .premium-hero .secondary {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 11px;
    font-size: .9rem;
    align-self: stretch;
    width: 100%;
    margin-top: 2px;
  }
  .premium-mode .premium-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
    margin: 0 0 12px !important;
  }
  .premium-mode .premium-toolbar span {
    padding: 7px 10px !important;
    font-size: .78rem;
    line-height: 1.25;
    border-radius: 999px;
  }
  .premium-mode .premium-grid {
    gap: 10px !important;
    margin-bottom: 18px !important;
  }
  .premium-mode .premium-card {
    min-height: 0 !important;
    padding: 18px !important;
    border-radius: 14px;
  }
  .premium-mode .premium-card img {
    max-height: 190px;
    object-fit: cover;
  }
  .premium-mode .premium-card h3 {
    font-size: clamp(1.45rem, 6.2vw, 1.9rem) !important;
    line-height: 1.08 !important;
    margin: 10px 0 8px !important;
  }
  .premium-mode .premium-card p {
    font-size: .94rem;
    line-height: 1.42 !important;
    margin-bottom: 0;
  }
    margin: 18px 0 10px !important;
    padding: 18px !important;
    border-radius: 16px;
  }
    gap: 10px !important;
    margin-bottom: 12px !important;
    align-items: flex-start;
    flex-direction: column;
  }
    margin-bottom: 7px !important;
  }
    font-size: clamp(1.45rem, 6vw, 1.9rem) !important;
    line-height: 1.08 !important;
    margin: 0 0 8px !important;
  }
    font-size: .9rem;
    line-height: 1.42;
    margin: 0 !important;
  }
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 10px;
    align-self: stretch;
  }
    margin: 10px 0 !important;
    padding: 12px !important;
    min-height: 64px;
  }
    min-height: 88px;
    padding: 12px !important;
  }
    gap: 8px !important;
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .premium-mode .premium-hero,
  .premium-mode .premium-card,
  .premium-mode .premium-toolbar span { padding: 6px 8px !important; }
}


/* Shared layout polish: align Support with the other header controls in both modes. */
.main-nav .text-button {
  transform: none !important;
  top: auto !important;
  align-self: center;
  line-height: 1.2;
  margin: 0;
  vertical-align: middle;
}

/* Give desktop Basic mode a calmer editorial scale without changing its typeface or palette. */
@media (min-width: 701px) {
  .basic-mode .hero {
    padding-top: clamp(48px, 5.2vw, 72px) !important;
    padding-bottom: 42px !important;
    max-width: 1180px;
  }
  .basic-mode .hero h1 {
    font-size: clamp(3.5rem, 6.5vw, 6.2rem) !important;
    line-height: .96 !important;
    letter-spacing: -.06em;
    max-width: 1180px;
  }
  .basic-mode .hero-copy {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }
}
