/* #W199 §1, D144 (his A, 12 Nov 2026 13:25Z): THE SHARED SHELL, drawn as the apps draw it.
 * Loaded by the homepage (EN + FR) and the 8 document pages, whose header and footer markup scripts/build-site.js
 * writes from site/shell-render.js. The hand-off pages and /reset-password keep public/legal.css's own shell.
 *
 * Contrast, resting text (AA 4.5, measured in D144): white on Deep Ocean 14.20, Ice Blue on Deep Ocean 9.96,
 * #9FBCD4 on Deep Ocean 7.18, Deep Ocean on white 14.20, North Blue on white 8.86, Muted #55636F on white 6.18 and on
 * #ECF7FD 5.67, white on North Blue 8.86, white on #083A66 (hover) 11.62, Deep Ocean on #EDF0F4 (hover) 12.42.
 * Pressed (55 %, only while the finger is down, as both apps, D101 B): the label drops to 2.85 at the lowest, accepted.
 * Graphics (3:1): card border #6B8CAA 3.24 on the tint, 3.53 on white; the link against body text is 1.43, which is
 * why links in text are underlined.
 */
:root {
  --deep-ocean: #022C50;
  --ice-blue: #B3DEF8;
  --north-blue: #0F4C81;
  --north-breeze: #58A1D3;
  --muted: #55636F;
  --muted-on-dark: #9FBCD4;
  --border-strong: #6B8CAA;
  --ring: #CBD5DE;
  --surface-tint: #ECF7FD;
}

html { -webkit-tap-highlight-color: transparent; }

/* The skip link (2.4.1), rendered first by the shared header: visible only on focus, above the band, and it LANDS on
   <main id="main" tabindex="-1">. Anchor targets are focused programmatically, so their ring is suppressed. */
.skip-link {
  position: absolute; display: inline-flex; align-items: center; min-height: 44px; left: 8px; top: -60px; z-index: 60;
  background: #FFFFFF; color: var(--deep-ocean); font-family: "Poppins", sans-serif; font-weight: 700; font-size: 13px;
  padding: 8px 16px; border-radius: 10px; text-decoration: none; transition: top .15s ease-in-out;
}
.skip-link:focus { top: 8px; }
[tabindex="-1"]:focus { outline: none; }

/* ---- the press, as both apps (NorthyPressFade.kt, HousePress.swift): the whole control at 55 % at once, back over
   150 ms, no colour, no scale. Hover lives only inside the fine-pointer query below, so a tap never leaves one. ---- */
a, button, .btn { transition: opacity 150ms linear; }
a:active, button:active, .btn:active { opacity: .55; transition: none; }

/* ---- focus: the live 2 px ring, 2 out; white on the dark band and footer ---- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--north-blue); outline-offset: 2px; }
.band a:focus-visible, .band button:focus-visible, .band-foot a:focus-visible { outline-color: #FFFFFF; }

/* ---- buttons (Buttons.kt): primary, secondary, on dark, compact, text action ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: 48px; padding: 0 24px; border-radius: 14px; border: 0;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--north-blue); color: #FFFFFF; }
.btn-secondary { background: transparent; color: var(--deep-ocean); box-shadow: inset 0 0 0 1.5px var(--deep-ocean); }
.btn-on-dark { background: #FFFFFF; color: var(--deep-ocean); }
.btn-sm { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-text { min-height: 48px; padding: 0 12px; border-radius: 12px; background: transparent; color: var(--north-blue); font-size: 15px; }

/* ---- links in text: underlined at rest (1 px, 3 under), 2 px on hover ---- */
.prose a { color: var(--north-blue); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---- the badge: one size, 188 by 56 on its ink (D144 144d). The PNG files keep Google's margins (they are
   byte-equal to the mail's copies, site/email-assets.json), so each locale's file is placed by its own ink box:
   EN ink 564 x 168 at (41, 41) in 646 x 250; FR ink 646 x 192 at (0, 29). ---- */
.badge-link { display: inline-flex; min-height: 44px; align-items: center; }
.play-badge { display: block; position: relative; overflow: hidden; height: 56px; width: 188px; flex: none; }
.play-badge img { position: absolute; display: block; max-width: none; }
/* The file's margin overhangs the 188 x 56 box by up to 13.7 px (clipped, invisible); the lines next to a badge keep
   16 px from it so the contrast gate never reads them as text over the picture. */
.play-badge-en img { width: 215.333px; height: 83.333px; left: -13.667px; top: -13.667px; }
.play-badge-fr img { width: 188px; height: 72.755px; left: 0; top: -8.440px; }

/* ---- the band (144a, 144b, 144h): Deep Ocean, 76 tall (64 under 600), the 1120 column ---- */
.band { position: sticky; top: 0; z-index: 50; background: var(--deep-ocean); color: #FFFFFF; }
.band-row {
  box-sizing: border-box; max-width: 1120px; margin: 0 auto; padding: 0 24px; min-height: 76px;
  display: flex; align-items: center; gap: 24px;
}
.band-brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-right: auto; text-decoration: none; }
/* The lockup is a raster with transparent margins: drawn by its ink, 103 x 32 (90 x 28 under 600).
   Ink 1103 x 344 at (49, 42) in 1200 x 428. */
.band-lockup, .foot-lockup { display: block; position: relative; overflow: hidden; width: 103px; height: 32px; flex: none; }
.band-lockup img, .foot-lockup img { position: absolute; display: block; max-width: none; width: 111.628px; height: 39.814px; left: -4.558px; top: -3.907px; }
.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav .nav-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #FFFFFF; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.band-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; height: 44px;
  border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .4); color: #FFFFFF;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14px; text-decoration: none;
}
.band-cta { white-space: nowrap; }
/* NorthyOutlineCircle (ProfileComponents.kt:150): a 40 white circle, 1 px #CBD5DE, in a 44 target; glyph 20 Deep Ocean. */
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; cursor: pointer; color: var(--deep-ocean); position: relative;
}
.menu-btn::before {
  content: ""; position: absolute; width: 40px; height: 40px; left: 2px; top: 2px; border-radius: 50%;
  background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--ring);
}
.menu-btn svg { position: relative; }
.menu-btn .glyph-close { display: none; }
.menu-btn[aria-expanded="true"] .glyph-menu { display: none; }
.menu-btn[aria-expanded="true"] .glyph-close { display: block; }

/* The menu: under the band, the screen's height in Deep Ocean (iOS Safari: fixed, 100dvh, the home bar's inset). */
.site-menu {
  position: fixed; left: 0; right: 0; top: 64px; height: calc(100vh - 64px); height: calc(100dvh - 64px);
  overflow-y: auto; box-sizing: border-box; background: var(--deep-ocean);
  padding: 8px 16px max(24px, env(safe-area-inset-bottom));
}
.site-menu[hidden] { display: none; }
.menu-nav { display: flex; flex-direction: column; }
.menu-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #FFFFFF; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 20px; text-decoration: none;
}
.menu-chevron { color: var(--ice-blue); flex: none; }
.menu-download { padding-top: 24px; }
.menu-download .download-line { margin: 0 0 16px; color: var(--muted-on-dark); font-size: 13px; font-weight: 600; }
.menu-note { margin: 16px 0 0; color: var(--muted-on-dark); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.menu-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--north-breeze); flex: none; }

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  .band-row { min-height: 64px; padding: 0 16px; gap: 12px; }
  .band-actions { gap: 8px; }
  .band-lockup { width: 90px; height: 28px; }
  .band-lockup img { width: 97.674px; height: 34.837px; left: -3.988px; top: -3.419px; }
}
@media (min-width: 601px) and (max-width: 860px) {
  .site-menu { top: 76px; height: calc(100vh - 76px); height: calc(100dvh - 76px); }
}
/* Under 360 px Get the app leaves the band; the badge in the menu is the store door there. */
@media (max-width: 359px) {
  .band-cta { display: none; }
}

/* ---- cards (Components.kt): white, corner 16, the app's 2 dp shadow, padding 24 (20 under 600), the #6B8CAA edge ---- */
.card {
  background: #FFFFFF; border: 1px solid var(--border-strong); border-radius: 16px; padding: 24px;
  box-shadow: 0 1px 3px rgba(2, 44, 80, .10), 0 1px 2px rgba(2, 44, 80, .06);
}
.tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ice-blue); color: var(--deep-ocean); flex: none; }
@media (max-width: 600px) { .card { padding: 20px; } }

/* ---- the document body (144f), scoped to the document pages ---- */
body.doc main h1 { font-size: 34px; font-weight: 700; color: var(--deep-ocean); }
body.doc main .updated { font-size: 13px; font-weight: 500; color: var(--muted); }
body.doc main h2 { font-size: 20px; font-weight: 700; color: var(--deep-ocean); }
body.doc main p, body.doc main li { font-size: 16px; line-height: 1.7; color: var(--muted); }
body.doc main ul { list-style: none; padding-left: 20px; }
body.doc main ul > li { position: relative; }
body.doc main ul > li::before {
  content: ""; position: absolute; left: -16px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--north-blue);
}
@media (max-width: 600px) { body.doc main h1 { font-size: 28px; } }

/* The legal table (D144 144f): which pages carry one is D145's. Stacked under 600 px. */
.legal-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ring); border-radius: 12px; overflow: hidden; margin: 16px 0; }
.legal-table th { background: #EDF0F4; color: var(--deep-ocean); font-size: 13px; font-weight: 700; text-align: left; padding: 12px 16px; }
.legal-table td { padding: 12px 16px; border-top: 1px solid var(--ring); font-size: 16px; line-height: 1.7; color: var(--muted); vertical-align: top; }
.legal-table td:first-child { color: var(--deep-ocean); font-weight: 600; }
@media (max-width: 600px) {
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table td + td { border-top: 0; padding-top: 0; }
}

/* ---- the footer (144g): Deep Ocean, 48 top, 32 bottom; links SemiBold 16 Ice Blue in 44 rows; the current page
   #9FBCD4 at 400; small text 13 #9FBCD4 ---- */
.band-foot { background: var(--deep-ocean); color: var(--muted-on-dark); padding: 48px 0 32px; }
.band-foot .container { box-sizing: border-box; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.band-foot .footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band-foot .footer-brand { display: inline-flex; align-items: center; min-height: 44px; }
.band-foot .footer-links { display: flex; flex-wrap: wrap; column-gap: 24px; }
.band-foot .footer-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ice-blue); font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px; text-decoration: none;
}
.band-foot .footer-links a[aria-current="page"] { color: var(--muted-on-dark); font-weight: 400; }
.band-foot .footer-download { margin-top: 24px; }
.band-foot .download-line { margin: 0 0 16px; color: var(--muted-on-dark); font-size: 13px; font-weight: 600; }
.band-foot .legal-note, .band-foot .footer-origin, .band-foot .disclaimer, .band-foot .copyright, .band-foot .trademark {
  font-size: 13px; line-height: 1.6; color: var(--muted-on-dark); margin: 16px 0 0;
}
.band-foot .copyright, .band-foot .trademark { margin-top: 8px; }
.band-foot .made-in { display: block; white-space: nowrap; }  /* its own line, as live (the copy gate pins the rendered line) */
@media (max-width: 600px) {
  .band-foot .container { padding: 0 16px; }
  .band-foot .footer-top { flex-direction: column; }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #083A66; }
  .btn-secondary:hover { background: #EDF0F4; }
  .btn-on-dark:hover { background: #EDF0F4; }
  .btn-text:hover { text-decoration: underline; }
  .prose a:hover { text-decoration-thickness: 2px; }
  .primary-nav .nav-link:hover, .band-foot .footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .lang-switch:hover { border-color: #FFFFFF; }
}
