/* Typography and text fit only. Preserve the approved glass/nature artwork,
   component spacing, borders, colours and media cropping. */
:root {
  --lev-font-ui: Arial, Helvetica, sans-serif;
  --lev-font-editorial: var(--lev-font-ui);
}

body {
  font-family: var(--lev-font-ui);
  font-size: 16px;
  color: #000;
}

button,
input,
select,
textarea,
nav,
.brand,
.brand-name,
.brand-tagline,
.button,
.text-button,
.collection-copy,
.card,
.plans,
.learning-resource,
.learning-nav {
  font-family: var(--lev-font-ui);
}

/* The approved section-title role is sans serif. Moving a section to its own
   page must not switch it to a different typeface. */
.site-inner-page h1.section-title,
.site-inner-page .page-intro h1,
.site-inner-page .contact-details h2,
.site-inner-page .subscription-ai-note h2,
.contact-page .research-signup h2 {
  font-family: var(--lev-font-ui);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.6px;
}

/* Editorial headings share the site font; sizes remain with their components. */
#home h1.hero-tagline,
.wim-guide h1,
.news-card h3,
.news-page-lead,
.science-page-lead,
.watch-lead,
.watch-copy h2,
.watch-copy h3,
.perspective-grid h3,
.science-source-grid h3,
.reference-site h3,
.reference-panel h3,
.journey h3,
.journey h4,
.journey-metrics strong,
.reflection p {
  font-family: var(--lev-font-editorial);
}

/* Body copy remains comfortably readable; smaller text is reserved for
   metadata, status and supporting labels. */
.starting-actions p,
.action-check span,
.dashboard-bottom p,
.data-controls p,
.science-shelf p,
.plans article li,
.collection-copy > span:not(.collection-icon):not(.card-kind):not(.collection-action) {
  font-size: 16px;
  line-height: 1.6;
}

.eyebrow,
.section-heading .eyebrow,
.hero .eyebrow,
.life-copy .eyebrow,
.journey .eyebrow,
.journey .step-label,
.journey-metrics > div > span,
.week-list span,
.week-list small,
.reflection strong,
.roadmap-source,
.site-header .saved-link,
.library-local-tools .saved-link,
.research-signup .signup-kicker {
  font-size: 14px;
}

.journey .week-detail .journey-actions .button,
.journey .science-shelf .button {
  font-size: 16px;
}

/* These legacy metadata rules already use !important in the base styles. */
.collection-copy .card-kind,
.plans .annual-price,
.plans .plan-status {
  font-size: 14px !important;
}

/* Let flex/grid text shrink and wrap without hiding content or clipping
   long words. Keep the original grids and breakpoints intact. */
main :where(h1, h2, h3, h4, p, li, dt, dd, label, summary) {
  overflow-wrap: break-word;
}

.section-heading > *,
.section-title-text,
.page-intro,
.contact-page-grid > *,
.collection-copy > *,
.card-top > span,
.card-body,
.news-card-content,
.watch-copy,
.answer span,
.action-check span,
.research-consent span,
.week-detail {
  min-width: 0;
}

.button,
.text-button,
.saved-link,
.filters button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

main a[href^="mailto:"],
.learning-resource a,
.learning-study a,
.roadmap-source,
.contact-details address a {
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
}

input,
select,
textarea {
  max-width: 100%;
}

/* At narrow widths the full slogan may wrap at spaces. Do not shrink it,
   truncate it, or force a complete phrase beyond the Menu button. */
.site-header-grouped .header-brand .brand-tagline,
.site-footer-compact .site-footer-brand .brand-tagline {
  max-width: 100%;
  overflow-wrap: break-word;
}

.site-header-grouped .header-brand .brand-tagline > span,
.site-footer-compact .site-footer-brand .brand-tagline > span {
  white-space: normal;
}
