@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

/* pairs: text colour, a bar, then background colour; a trailing at-large marks bold 24px+ (3:1), others need 4.5:1. Dark theme is the default.
   ink|bg, ink|surface, muted|bg, muted|surface, amber|bg, amber|surface, green|bg, green|surface,
   red|bg, red|surface, blue|bg, blue|surface, bg|amber, bg|green, bg|red, bg|blue,
   navy|#ffffff */
:root {
  --bg: #0b132b;       /* navy */
  --surface: #17213f;
  --ink: #f4f6fb;
  --muted: #b4bdd6;
  --amber: #ffb703;
  --green: #2ec4b6;
  --red: #ff6b75;      /* brand red #E63946 lightened to pass on navy; the brand red stays a fill colour */
  --blue: #6aa5ff;     /* brand blue #3A86FF lightened to pass on navy */
  --navy: #0b132b;     /* names the kit reads */
  --mango: #ffb703;
  --teal: #2ec4b6;
  --tap: 44px;
  --gap: clamp(1rem, 3vw, 2rem);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-width: 320px;
  font: 400 1rem/1.5 var(--font);
  color: var(--ink); background: var(--bg);
  word-spacing: .08em; font-kerning: normal;
}
a { color: var(--amber); }
.wrap { max-width: 40rem; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2rem); }
header.wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--amber); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); min-width: var(--tap); padding: 0 1.25rem;
  border: 0; border-radius: 999px; font: 800 1rem var(--font);
  background: var(--amber); color: var(--bg); text-decoration: none; cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--muted); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.hero h1 { font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); line-height: 1.2; margin: 1rem 0 .5rem; }
.muted { color: var(--muted); }
.panel { background: var(--surface); border-radius: 1rem; padding: 1rem; margin: 1rem 0; }
.disclaimer { font-size: .875rem; color: var(--muted); }
.hotlines { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-weight: 600; }
footer.wrap { font-size: .875rem; border-top: 2px solid var(--amber); margin-top: 2rem; overflow-wrap: anywhere; }
footer a { display: inline-block; min-height: var(--tap); line-height: var(--tap); }
/* the kit draws white cards: keep their text navy on the dark page */
.hire, .share-sheet { color: var(--navy); }
.banner { background: var(--surface); border-left: 6px solid var(--amber); border-radius: .5rem; padding: .75rem 1rem; }

/* status UI */
.picker { display: grid; gap: .75rem; margin-top: 1rem; min-height: 156px; align-content: start; } /* reserves the two fields so filling them in does not shift the page */
#status { min-height: 28rem; } /* room for the cards so the data arriving does not push the footer */
#list { min-height: 20rem; }
.field { display: grid; gap: .25rem; font-weight: 600; }
select { min-height: var(--tap); width: 100%; font: 600 1rem var(--font); color: var(--ink); background: var(--surface); border: 2px solid var(--muted); border-radius: .75rem; padding: 0 .75rem; }
.card h2, .day h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.card .day { padding: .75rem 0; border-top: 1px solid var(--muted); }
.card .day h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 1rem; border-radius: 999px; font-weight: 800; border: 2px solid currentColor; max-width: 100%; }
.badge .icon { font-size: 1.25rem; line-height: 1; }
.badge-ok { color: var(--green); }
.badge-soon { color: var(--amber); }
.badge-out { color: var(--red); }
.badge-dry { color: var(--blue); }
.badge-none { color: var(--muted); }
.entries { list-style: none; margin: .5rem 0 0; padding: 0; }
.entry { padding: .5rem 0; overflow-wrap: anywhere; }
.entry .window { font-weight: 800; }
.entry p { margin: .25rem 0; }
.partial { font-weight: 600; }
.meta { font-size: .875rem; }
.notice { border-left: 6px solid var(--amber); padding-left: .75rem; font-weight: 600; }
.cancelled { color: var(--red); }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.strip .cell { background: var(--surface); border-radius: .5rem; padding: .5rem .25rem; text-align: center; font-size: .75rem; overflow-wrap: anywhere; }
.strip .cell.has { border: 2px solid var(--amber); }
.strip .d, .strip .n { display: block; }

/* grid banner, agent label */
.grid-alert { border-radius: .5rem; padding: .75rem 1rem; margin: .75rem 0; background: var(--surface); border-left: 8px solid var(--amber); overflow-wrap: anywhere; }
.grid-alert.grid-red { border-left-color: var(--red); }
.grid-alert p { margin: .25rem 0; }
.grid-red .grid-head { color: var(--red); }
.grid-yellow .grid-head { color: var(--amber); }
.agent { font-size: .875rem; font-style: italic; }
.hotlines a { display: inline-block; min-height: var(--tap); line-height: var(--tap); }

/* share */
.share-wrap { margin: .5rem 0; }
.share-wrap .share-open { min-height: var(--tap); }
.share-home { margin: 1rem 0; }

/* content pages + calculator */
.content h2 { font-size: 1.25rem; margin: 1.5rem 0 .25rem; }
.content p, .content li { overflow-wrap: anywhere; }
.content ul { padding-left: 1.25rem; }
.content li { margin: .25rem 0; }
input.num { min-height: var(--tap); width: 100%; font: 600 1rem var(--font); color: var(--ink); background: var(--surface); border: 2px solid var(--muted); border-radius: .75rem; padding: 0 .75rem; }
.result { font-size: 2rem; font-weight: 800; margin: .25rem 0; overflow-wrap: anywhere; }
.result.error { font-size: 1rem; color: var(--red); }
