/* Crew Vouch tokens: the "Sun Deck" theme (approved 27 Nov 2026). White pages, sand for highlighted
 * sections, teak for the main action, navy-ink for text and the Vouch button, sun as a warm highlight.
 * Every colour and font in the app comes from here. Light only for now: there is no automatic dark
 * theme (a manual dark option can come later as a [data-mode="dark"] block).
 * Font: Nunito Sans, self-hosted variable woff2 (wght axis only), SIL OFL 1.1 (fonts/OFL-nunito-sans.txt). */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-wght-normal.e010923d59d4.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-ext-wght-normal.9359f35055cf.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 3vw + 0.75rem, 3.25rem); --text-display: clamp(2.5rem, 4vw + 1rem, 4.25rem);
  --text-section: clamp(1.875rem, 2vw + 1rem, 3rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.5rem); --text-lead: clamp(1.0625rem, 0.35vw + 0.95rem, 1.25rem);
  --text-app-h1: clamp(2rem, 1.5vw + 1.5rem, 2.5rem); --text-app-h2: 1.25rem; --text-app-h3: 1.0625rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --measure-app: 40rem; --measure-doc: 42rem; --sidebar: 15rem;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --avatar-s: 64px; --avatar-m: 128px; --tap: 44px; --control: 48px; --tabbar: 64px;

  /* Sun Deck palette. Contrast (WCAG 2.x): ink on white 14.5, ink on sand 12.9, muted on white 6.0,
   * muted on sand 5.3, sand-muted on sand 6.9, teak text on white 5.1 and on sand 4.5, white on teak
   * 5.1, white on teak-hover 6.9, ink on sun 9.2. Teak text sits only on white, field or sand; links on the green, amber
   * and red tints are ink (teak there is 4.4 to 4.5, so app.css turns them ink). */
  --color-paper: #ffffff;                       /* the page */
  --color-paper-2: #ffffff;                     /* cards on the page */
  --color-paper-3: #f7f1e8;                     /* pressed, hover and selected fills */
  --color-sand: #f7f1e8;                        /* highlighted sections and soft cards */
  --color-sand-muted: #5a5245;                  /* secondary text on sand */
  --color-field: #fbf8f3;                       /* input fill */
  --color-ink: #1e2a3a; --color-ink-2: #3d4756; --color-muted: #5a6472;
  --color-rule: #eee5d6; --color-rule-2: #eadfcd; --color-rule-3: #cdbfa8; /* hairlines; rule-3 for dots, marks and dashed edges */
  --color-input-edge: #9e8a6e;                  /* form control edges: 3.3:1 on white, 3.1:1 on the field fill */
  --color-teak: #b4502b; --color-teak-hover: #96401f; --color-on-teak: #ffffff;
  --color-sun: #f2c879; --color-sun-bg: #fbefd6; --color-on-sun: #1e2a3a;
  --color-accent: var(--color-teak); --color-accent-ink: var(--color-on-teak); --color-focus: var(--color-teak);
  --color-link: var(--color-teak); --color-link-hover: var(--color-ink);
  --color-guide: rgb(180 80 43 / 0.5);
  --color-ok: #1f6b45; --color-ok-bg: #e3f1e8;
  --color-warn: #7a4e0e; --color-warn-bg: #fbefd6;
  --color-danger: #a8182f; --color-danger-bg: #fcebec; --color-danger-ink: #ffffff; --color-danger-hover: #8a1226;
  --color-error: var(--color-danger); --color-success: var(--color-ok);

  --font-display: "Nunito Sans", ui-sans-serif, system-ui, sans-serif; --font-body: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius-card: 24px; --radius-pill: 999px; --radius-input: 16px; --rule-hair: 1px;
  --shadow-card: none; --shadow-lift: 0 2px 6px rgb(30 42 58 / 0.06), 0 16px 40px rgb(30 42 58 / 0.12);
  --tracking-display: -0.015em; --display-weight: 800;

  /* signed-in app frame (crew_base.html, console_base.html): white surfaces with a warm hairline,
   * sand for the one highlighted block per screen, monogram tints and answer chips. */
  --color-surface: #ffffff; --color-surface-line: #eee5d6; --color-surface-sunk: #f7f1e8;
  --color-seg-on: #ffffff; --color-hover: #f7f1e8;
  --color-chip-yes-bg: #e3f1e8; --color-chip-yes: #1f6b45;
  --color-chip-mostly-bg: #fbefd6; --color-chip-mostly: #7a4e0e;
  --color-chip-cant-bg: #f1ece3; --color-chip-cant: #3d4756;
  --color-info-bg: #f7f1e8; --color-info: #1e2a3a;
  --color-tint-1: #e8eef5; --color-tint-2: #fbefd6; --color-tint-3: #e3f1e8; --color-tint-4: #f8e6de; --color-tint-5: #e3eff3; --color-tint-ink: #1e2a3a;
  --shadow-app: none;
  --shadow-app-lift: 0 2px 4px rgb(30 42 58 / 0.05), 0 10px 24px rgb(30 42 58 / 0.08);
  --shadow-fab: 0 4px 12px rgb(30 42 58 / 0.2); --shadow-seg: 0 1px 2px rgb(30 42 58 / 0.12);
  --radius-app: 24px; --radius-app-s: 16px; --radius-control: 16px; --radius-nav: 12px;
  --text-app-title: clamp(1.75rem, 1vw + 1.4rem, 2rem); --text-app-section: 1.125rem; --text-app-num: clamp(1.75rem, 0.5vw + 1.6rem, 2rem);
  --weight-strong: 700; --weight-heavy: 800; --tracking-app: -0.01em;
  --app-content: 1200px; --app-bar: 60px;
}
