/* =====================================================================
   LITTLELAUNCH — design system

   The palette is SAMPLED FROM THE LLCP LOGO, not invented: the navy of
   the outline (#101f2d), the sea the boat launches into (#216093), the
   pale sky behind it (#c4d3e2), the warm wood of the hull (#8c6842).
   The mark is drawn with bold, confident strokes and generous rounded
   forms — so this app is drawn the same way: weight instead of shadow,
   2px rules, nothing fussy.

   Nunito Sans is the church's own typeface, self-hosted and versioned.

   Three surfaces, deliberately typed as three different products:
     .surface-family  quiet, large, one idea per screen
     .surface-staff   dense, tabular, for someone doing this all day
     .surface-kiosk   bigger than either — read at arm's length, outside,
                      in February, by someone holding a toddler
   ===================================================================== */

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/vendor/fonts/nunito-sans/current/nunito-sans-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/vendor/fonts/nunito-sans/current/nunito-sans-latin-var-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  /* --- sampled from the mark --- */
  --ink:        #101f2d;   /* the outline. all body text. */
  --ink-soft:   #40536a;   /* secondary text */
  --ink-faint:  #7d8ea3;   /* labels, timestamps */
  --sea:        #216093;   /* the water — the primary action colour */
  --sea-deep:   #17456a;
  --sea-wash:   #eaf1f8;   /* tinted panel */
  --sky:        #c4d3e2;   /* rules, fills, the quiet background shape */
  --sky-soft:   #dde7f0;
  --wood:       #8c6842;   /* the hull — custody, care, the warm accent */
  --wood-deep:  #59421f;
  --wood-wash:  #f5efe6;
  --paper:      #f4f2ee;   /* the ground */
  --white:      #ffffff;

  /* --- semantic. tuned to sit beside navy, never bright. --- */
  --go:         #2f6b4f;
  --go-wash:    #e7f1ea;
  --warn:       #a8712a;
  --warn-wash:  #faf0e0;
  --stop:       #9d2f2b;
  --stop-wash:  #fbeceb;

  --radius:     10px;
  --radius-lg:  16px;
  --rule:       2px solid var(--sky);
  --rule-thin:  1px solid var(--sky);

  --font: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }
a  { color: var(--sea); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--sea-deep); }

/* The rim type of the logo is letterspaced caps. That is the label voice. */
.eyebrow, .label {
  font-size: .7rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-faint);
}

.mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.tight { margin-bottom: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------------------------------------------------------------
   Not-an-official-site banner. It carries their logo and their
   language because it was built FOR them; a page that looks like
   theirs and is not has to say which it is before anybody has to ask.
   --------------------------------------------------------------- */
.demo-banner {
  background: var(--wood-deep); color: #f6efe4;
  font-size: .8rem; padding: .5rem 1rem; text-align: center;
  border-bottom: 3px solid var(--wood);
}
.demo-banner strong { color: var(--white); }

/* ---------------------------------------------------------------
   Shell
   --------------------------------------------------------------- */
.topbar {
  background: var(--ink); color: var(--white);
  border-bottom: 4px solid var(--sea);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: .6rem 1.25rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.brandmark { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brandmark img { width: 40px; height: 40px; display: block; }
.brandmark .bn { font-weight: 900; letter-spacing: -.02em; font-size: 1.02rem; line-height: 1.05; }
.brandmark .bs { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }

.topnav { display: flex; gap: .25rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.topnav a {
  color: var(--sky); text-decoration: none; padding: .4rem .7rem;
  border-radius: var(--radius); font-weight: 700; font-size: .9rem;
}
.topnav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.topnav a[aria-current="page"] { background: var(--sea); color: var(--white); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

.page-head { margin-bottom: 1.5rem; }
.page-head h1 { margin-bottom: .2rem; }
.page-head .sub { color: var(--ink-soft); font-size: 1.02rem; }

footer.site {
  border-top: var(--rule); margin-top: 3rem; padding: 1.5rem 1.25rem 3rem;
  color: var(--ink-faint); font-size: .82rem;
}
footer.site .inner { max-width: 1180px; margin: 0 auto; }

/* ---------------------------------------------------------------
   Cards and panels
   --------------------------------------------------------------- */
.card {
  background: var(--white); border: var(--rule); border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.card.tinted { background: var(--sea-wash); border-color: var(--sky); }
.card.warm   { background: var(--wood-wash); border-color: #e3d5c0; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.note {
  border-left: 6px solid var(--sky); background: var(--white);
  padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem;
}
.note.go   { border-left-color: var(--go);   background: var(--go-wash); }
.note.warn { border-left-color: var(--warn); background: var(--warn-wash); }
.note.stop { border-left-color: var(--stop); background: var(--stop-wash); }
.note.wood { border-left-color: var(--wood); background: var(--wood-wash); }

/* ---------------------------------------------------------------
   Spine rows — the house list style. A rounded row with a coloured
   left bar carrying the state. Not a box-shadow; the bar IS the signal.
   --------------------------------------------------------------- */
.spine { list-style: none; margin: 0; padding: 0; }
.spine > li {
  background: var(--white); border: var(--rule-thin); border-left: 6px solid var(--sky);
  border-radius: var(--radius); margin-bottom: .55rem; padding: .8rem 1rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.spine > li.is-go   { border-left-color: var(--go); }
.spine > li.is-warn { border-left-color: var(--warn); }
.spine > li.is-stop { border-left-color: var(--stop); }
.spine > li.is-sea  { border-left-color: var(--sea); }
.spine > li.is-wood { border-left-color: var(--wood); }
.spine .primary { font-weight: 800; }
.spine .meta { color: var(--ink-faint); font-size: .84rem; }

/* ---------------------------------------------------------------
   Pills
   --------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--sky-soft); color: var(--sea-deep); border: 1px solid var(--sky);
  white-space: nowrap;
}
.pill.go   { background: var(--go-wash);   color: var(--go);   border-color: #bcd8c7; }
.pill.warn { background: var(--warn-wash); color: var(--warn); border-color: #e8d3ae; }
.pill.stop { background: var(--stop-wash); color: var(--stop); border-color: #eec5c3; }
.pill.wood { background: var(--wood-wash); color: var(--wood-deep); border-color: #e3d5c0; }
.pill.quiet{ background: transparent; color: var(--ink-faint); border-color: var(--sky); }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 800; line-height: 1.2;
  padding: .62rem 1.15rem; border-radius: var(--radius);
  border: 2px solid var(--sea); background: var(--sea); color: var(--white);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: var(--white); }
.btn:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--sea); }
.btn.ghost:hover { background: var(--sea-wash); color: var(--sea-deep); }
.btn.quiet { background: var(--white); color: var(--ink); border-color: var(--sky); }
.btn.quiet:hover { background: var(--sky-soft); color: var(--ink); }
.btn.danger { background: var(--stop); border-color: var(--stop); }
.btn.danger:hover { background: #7f2522; border-color: #7f2522; }
.btn.big { font-size: 1.1rem; padding: .85rem 1.6rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------
   Forms
   --------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field > label, .field-label {
  display: block; font-weight: 800; font-size: .88rem; margin-bottom: .3rem;
}
.field .hint { font-size: .82rem; color: var(--ink-faint); margin-top: .25rem; }
.field .err  { font-size: .84rem; color: var(--stop); font-weight: 700; margin-top: .25rem; }

/* Select by EXCLUSION, not by listing types.
   `<input required>` with no type attribute is a text input to the browser
   but does NOT match `input[type=text]`, so an author who forgets the
   attribute gets an unstyled, collapsed field sitting under its own label.
   That is a bug that hides until somebody screenshots the page — so the
   rule is written so it cannot happen again. */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]):not([type=hidden]):not([type=range]):not([type=color]),
select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .6rem .7rem; border: 2px solid var(--sky); border-radius: var(--radius);
  background: var(--white);
}

/* File inputs are still ours, just not box-shaped like a text field. */
input[type=file] {
  width: 100%; font: inherit; color: var(--ink);
  padding: .55rem .6rem; border: 2px dashed var(--sky); border-radius: var(--radius);
  background: var(--white);
}
input[type=file]::file-selector-button {
  font: inherit; font-weight: 800; cursor: pointer; margin-right: .7rem;
  padding: .4rem .8rem; border-radius: 8px;
  border: 2px solid var(--sea); background: var(--sea); color: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-wash);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--stop); background: #fffafa;
}
textarea { min-height: 6rem; resize: vertical; }
fieldset { border: var(--rule); border-radius: var(--radius); padding: 1rem; margin: 0 0 1.1rem; }
legend { font-weight: 800; padding: 0 .4rem; }

.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* A tappable choice — used for consent, plans, sections, and the
   photo-tagging roster. The whole block is the target, not a 16px box. */
.choice {
  display: flex; gap: .75rem; align-items: flex-start;
  border: 2px solid var(--sky); border-radius: var(--radius);
  padding: .85rem 1rem; background: var(--white); cursor: pointer;
  margin-bottom: .6rem;
}
.choice:hover { border-color: var(--sea); background: var(--sea-wash); }
.choice input { margin-top: .25rem; width: 20px; height: 20px; accent-color: var(--sea); flex: none; }
.choice:has(input:checked) { border-color: var(--sea); background: var(--sea-wash); }
/* The wrapper around the two spans, so the title and its explanation
   stack instead of running together as one sentence. */
.choice > span { display: block; min-width: 0; }
/* BLOCK, not inline. As inline spans these read as
   "Not yet Still worth telling us. It is a requirement by..." — one
   run-on line where a title and a description were intended. */
.choice .ct { display: block; font-weight: 800; }
.choice .cd { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: .15rem; }

/* ---------------------------------------------------------------
   Tables — the staff surface
   --------------------------------------------------------------- */
table.grid { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); }
table.grid th {
  text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); padding: .5rem .7rem; border-bottom: var(--rule);
  white-space: nowrap;
}
table.grid td { padding: .6rem .7rem; border-bottom: var(--rule-thin); vertical-align: top; }
table.grid tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: var(--rule); border-radius: var(--radius); }

/* ---------------------------------------------------------------
   Progress — the registration packet
   --------------------------------------------------------------- */
.steps { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1.5rem; flex-wrap: wrap; }
.steps li {
  flex: 1 1 90px; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-faint);
  border-top: 5px solid var(--sky); padding-top: .4rem;
}
.steps li.done    { border-top-color: var(--go);  color: var(--go); }
.steps li.current { border-top-color: var(--sea); color: var(--sea); }

/* ---------------------------------------------------------------
   Roster — the name-to-face grid. Used by the teacher for tagging and
   by the emergency roll call. Same component; it is never stale.
   --------------------------------------------------------------- */
.roster { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.roster .kid {
  border: 2px solid var(--sky); border-radius: var(--radius); background: var(--white);
  padding: .7rem; text-align: center; cursor: pointer; position: relative;
}
.roster .kid:has(input:checked) { border-color: var(--sea); background: var(--sea-wash); }
.roster .kid.no-consent { border-color: #e8d3ae; background: var(--warn-wash); cursor: not-allowed; }
.roster .kid input { position: absolute; top: .5rem; left: .5rem; width: 22px; height: 22px; accent-color: var(--sea); }
.roster .face {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto .45rem;
  background: var(--sky); color: var(--sea-deep);
  display: grid; place-items: center; font-weight: 900; font-size: 1.5rem;
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--sky); overflow: hidden;
}
.roster .face img { width: 100%; height: 100%; object-fit: cover; }
.roster .kn { font-weight: 800; font-size: .92rem; line-height: 1.2; }
.roster .kx { font-size: .74rem; color: var(--ink-faint); }

/* ---------------------------------------------------------------
   Kiosk — bigger than everything. Read at arm's length, outdoors,
   by somebody holding a toddler in one arm.
   --------------------------------------------------------------- */
.surface-kiosk { background: var(--ink); color: var(--white); min-height: 100vh; }
.surface-kiosk .kwrap { max-width: 620px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.surface-kiosk h1 { font-size: 2.4rem; }
.surface-kiosk .kcard {
  background: var(--white); color: var(--ink);
  border-radius: 22px; padding: 1.75rem;
}
.surface-kiosk .klabel { color: var(--sky); font-size: .85rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.keypad button {
  font: inherit; font-size: 1.9rem; font-weight: 800; padding: 1.1rem 0;
  border: 2px solid var(--sky); border-radius: 14px; background: var(--white); color: var(--ink);
  cursor: pointer;
}
.keypad button:active { background: var(--sea-wash); }
.keypad button.wide { grid-column: span 1; font-size: 1.1rem; }
.pinbox {
  font-family: var(--mono); font-size: 2.6rem; letter-spacing: .5em;
  text-align: center; padding: .9rem 0; border: 3px solid var(--sky);
  border-radius: 14px; background: var(--white); color: var(--ink); min-height: 4.6rem;
}
.kchoice {
  display: block; width: 100%; text-align: left; font: inherit;
  background: var(--white); color: var(--ink); border: 3px solid var(--sky);
  border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: .75rem; cursor: pointer;
}
.kchoice:hover { border-color: var(--sea); background: var(--sea-wash); }
.kchoice .n { font-size: 1.35rem; font-weight: 800; }
.kchoice .r { color: var(--ink-soft); }

/* ---------------------------------------------------------------
   Flash
   --------------------------------------------------------------- */
.flashes { margin-bottom: 1.25rem; }
.flash {
  border: 2px solid var(--sky); border-left-width: 6px; background: var(--white);
  border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: .5rem; font-weight: 600;
}
.flash.ok   { border-color: #bcd8c7; border-left-color: var(--go);   background: var(--go-wash); }
.flash.warn { border-color: #e8d3ae; border-left-color: var(--warn); background: var(--warn-wash); }
.flash.err  { border-color: #eec5c3; border-left-color: var(--stop); background: var(--stop-wash); }

/* ---------------------------------------------------------------
   Print — the emergency roll call goes on paper, because the reason
   you need it is that the power or the wifi is gone.
   --------------------------------------------------------------- */
@media print {
  .topbar, .demo-banner, footer.site, .no-print { display: none !important; }
  body { background: var(--white); font-size: 11pt; }
  .card, .spine > li { border: 1px solid #999; }
  .roster { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------------
   The "Works with MeCentral" mark.

   badge.js renders into a shadow root, so these styles only ever
   affect the MOUNT and the fallback words. If the script never
   arrives the mount degrades to a readable sentence — which is the
   whole reason the fallback lives inside the element.
   --------------------------------------------------------------- */
.mecb { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; vertical-align: middle; }
.mecb__fallback { font-size: .875rem; color: var(--ink-soft); letter-spacing: .01em; }
.mecb__fallback strong { font-weight: 800; color: var(--ink); }
.mecb--sm .mecb__fallback { font-size: .75rem; }
.mecb--lg .mecb__fallback { font-size: 1.02rem; }

/* On the navy topbar / footer the fallback words need the light ink. */
.topbar .mecb__fallback, .surface-kiosk .mecb__fallback { color: var(--sky); }
.topbar .mecb__fallback strong, .surface-kiosk .mecb__fallback strong { color: var(--white); }

/* The badge plus the sentence that makes it mean something. */
.mec-note {
  border: 2px solid var(--sky); border-radius: var(--radius-lg);
  background: var(--white); padding: 1rem 1.15rem;
}
.mec-note__mark { margin-bottom: .5rem; }
.mec-note__line { margin: 0; font-size: .92rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 1rem .9rem 3rem; }
  h1 { font-size: 1.6rem; }
  .topbar-inner { flex-wrap: wrap; gap: .6rem; }
  .topnav { width: 100%; margin-left: 0; }
}
