/* Page reset shared by every screen. */
:root { padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* keeps scrolled content from showing behind the phone's status bar */
body::before { content: ""; position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
/* 22 Oct 2026: the main notice, always in exactly two lines; the letters shrink on small screens so each line fits */
html { --fpw: 46; } html[lang^="fr"] { --fpw: 54; } html[lang^="pt"] { --fpw: 44; } html[lang^="es"] { --fpw: 45; }
body :is(#awScreen, .app, main, section, div) .fineprint.two, body .fineprint.two { max-width: none; margin-inline: auto; text-align: center; font-size: min(0.82rem, calc((100vw - 40px) / var(--fpw))); line-height: 1.7; }
body .fineprint.two span { display: block; white-space: nowrap; }

/* 25 Oct 2026 · Phones: the page always fits the screen width (no side-to-side floating) */
html, body { max-width: 100%; overflow-x: clip; }
.lk-dlg, .gm-dlg { box-sizing: border-box; max-width: 100%; }
.app.science .cof-hero { box-sizing: border-box; max-width: 100%; }
.app.science .cof-hero svg { max-width: 100%; height: auto; }

/* 27 Oct 2026 · phones: the page never drifts sideways and never zooms by itself
   - nothing can push the page wider than the screen (clip keeps sticky bars working)
   - fields use 16 px text, so phones do not zoom in when you tap them
   - the text size stays the same when the phone turns */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 819.98px) {
  html, body { overflow-x: clip; max-width: 100%; overscroll-behavior-x: none; }
  @supports not (overflow-x: clip) { body { overflow-x: hidden; } }
  input:not([type=range]):not([type=radio]):not([type=checkbox]):not([type=color]), select, textarea { font-size: max(16px, 1em) !important; }
  img, video, iframe { max-width: 100%; }
  .wv-table, pre { max-width: 100%; overflow-x: auto; }
}

/* 2 Nov 2026 · the new bottom lines are longer: they wrap instead of shrinking */
body .fineprint.two.fp2 { font-size: 0.8rem !important; max-width: 64ch !important; padding-inline: 16px; }
body .fineprint.two.fp2 span { white-space: normal !important; }
body .fineprint.two.fp2 > span { white-space: nowrap !important; }
body .fineprint.two.fp2 { max-width: none !important; }
