/* core.css: the app's colours, type, reset and small utilities. LIGHT ONLY, like the Android app (it has no dark theme and no
   Material You colour: Theme.kt builds one lightColorScheme). Numbers come from parity/specs/design.md; 1 dp = 1 px.
   Feature CSS files (css/<feature>.css) use these variables. The old names (--bg, --surface, --ink, --line, --brand ...) still work. */

/* Roboto, self-hosted (SIL OFL, web/fonts/OFL.txt): the phone shows Roboto too. Variable font: every weight 100-900 from one file. */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-latin-wght-normal.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: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-latin-ext-wght-normal.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;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/roboto-mono-latin-wght-normal.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;
}

:root {
  color-scheme: light;

  /* Material 3 colour scheme (Color.kt / Theme.kt) */
  --primary: #002045;
  --on-primary: #ffffff;
  --primary-container: #1a365d;
  --on-primary-container: #d6e3ff;
  --secondary: #0a6c44;
  --on-secondary: #ffffff;
  --secondary-container: #9ff5c1;
  --on-secondary-container: #002111;
  --tertiary: #8c1d18;
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #410002;
  --background: #f7fafc;
  --on-background: #181c1e;
  --m-surface: #f7fafc;
  --on-surface: #181c1e;
  --surface-variant: #e0e3e5;
  --on-surface-variant: #43474e;
  --outline: #74777f;
  --outline-variant: #c4c6cf;
  --sc-lowest: #ffffff;
  --sc-low: #f1f4f6;
  --sc: #ebeef0;
  --sc-high: #e5e9eb;
  --sc-highest: #e0e3e5;

  /* Brand extras (Color.kt `Brand`) */
  --live: #1fa971;
  --amber: #f59e0b; /* fills, bars and icons only: as text it is 2:1 on the page */
  --amber-text: #8a4b00; /* amber for words: 6.2:1 on the sheet, 6.5:1 on the page, 6.8:1 on white */
  --alert-bg: #fde7e7;
  --hairline: #e2e8f0;
  --card: #ffffff;
  --navy-deep: #001a38;
  --gold: #ffc400;

  /* The names the web screens already use */
  --bg: var(--background);
  --surface: #ffffff; /* a card's fill (the app's ChCard is white) */
  --surface-2: var(--sc-low);
  --surface-3: var(--sc-high);
  --ink: var(--on-background);
  --ink-2: var(--on-surface-variant);
  --line: var(--hairline);
  --line-strong: var(--outline-variant);
  --brand: var(--primary);
  --brand-2: var(--primary-container);
  --on-brand: #ffffff;
  --accent: var(--secondary-container); /* the green pill; the launcher yellow is only in the icon */
  --on-accent: var(--on-secondary-container);
  --link: var(--primary);
  --focus: #1a62d6;
  --good: #0a6c44;
  --good-bg: #e1f6ea;
  --warn: #8a5300;
  --warn-bg: #fff3d6;
  --bad: var(--error);
  --bad-bg: var(--alert-bg);
  --info: #2d476f;
  --info-bg: #d6e3ff;
  --shadow: none; /* the app is flat: cards have a hairline and no shadow */
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 3px 1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 2px 6px 2px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3);

  /* Shape and size */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --gutter: 16px;
  --col-w: 480px; /* the phone-width column on a wide screen */
  --status-h: 24px; /* the strip where the phone's status bar is; it carries the sandbox label */
  --topbar-h: 64px;
  --tabbar-h: 80px;
  --font: Roboto, 'Roboto Flex', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Roboto Mono', 'Cascadia Mono', Consolas, monospace;
  /* Room for the notch, the status bar and the home bar (installed iPhone/iPad app draws edge to edge). */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--background);
  -webkit-tap-highlight-color: transparent;
}

/* Default text is Material bodyLarge: 16 / 24, weight 400. Text that sets a size but no line height keeps the 24 px line, as on the phone. */
body {
  margin: 0;
  background: var(--background);
  color: var(--on-background);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}
h1 {
  font-size: 26px;
  line-height: 34px;
  font-weight: 600;
}
h2 {
  font-size: 20px;
  line-height: 26px;
}
h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
h4 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
img,
svg,
video {
  max-width: 100%;
}
img {
  height: auto;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  -webkit-appearance: none;
  appearance: none;
}
a {
  color: var(--primary);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
:target {
  scroll-margin-top: calc(var(--status-h) + var(--topbar-h) + 12px);
}
[hidden] {
  display: none !important;
}

/* The Material type scale (Type.kt). Use these class names for the same looks; most screens set their own size, as the app does. */
.t-display-l { font-size: 48px; line-height: 54px; font-weight: 700; letter-spacing: -1px; }
.t-headline-l { font-size: 30px; line-height: 38px; font-weight: 600; }
.t-headline-m { font-size: 26px; line-height: 34px; font-weight: 600; }
.t-headline-s { font-size: 24px; line-height: 32px; font-weight: 400; }
.t-title-l { font-size: 20px; line-height: 26px; font-weight: 700; }
.t-title-m { font-size: 16px; line-height: 24px; font-weight: 600; }
.t-title-s { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.1px; }
.t-body-l { font-size: 16px; line-height: 24px; font-weight: 400; }
.t-body-m { font-size: 14px; line-height: 20px; font-weight: 400; }
.t-body-s { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.4px; }
.t-label-l { font-size: 14px; line-height: 20px; font-weight: 600; }
.t-label-m { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.5px; }
.t-label-s { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.5px; }
.mono { font-family: var(--font-mono); }

/* Utilities */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-min, 260px), 100%), 1fr));
  gap: 12px;
}
.muted {
  color: var(--on-surface-variant);
}
.align-right {
  text-align: right;
}
.align-center {
  text-align: center;
}
/* A child that should touch the screen edges inside the 16 px gutter (maps, photos). */
.bleed {
  margin-inline: calc(var(--gutter) * -1);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 400;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: calc(8px + var(--safe-top));
}

.boot-note {
  padding: 24px var(--gutter);
  color: var(--on-surface-variant);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
