/* SNV Book: SparkNorth Ventures brand (brandbook 2026), as approved in the design template. */

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/Figtree-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --brand: #f9100b; /* SparkNorth red: large shapes and the logo only */
  --red: #c80d09; /* buttons, links, selected states: readable with white text */
  --red-dark: #9e0a07;
  --red-ink: #a30a07; /* red text on light grounds */
  --red-soft: #ffe6e5;
  --red-line: #f3b4b2;
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #4a4a4a;
  --faint: #767676;
  --line: #e6e1dc;
  --field: #cfc8c1;
  --paper: #ffffff;
  --paper-2: #faf8f6;
  --blue-soft: #f4f9ff;
  --blue-line: #dcebfa;
  --green-soft: #e3f3ea;
  --green-ink: #1e5e3e;
  --radius: 16px;
  font-family: 'Figtree', Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); font-size: 16px; line-height: 1.5; }
body.staff { background: var(--paper-2); }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: logo top left, slogan top right (brandbook "Layout and Placement"). */
.site-head { max-width: 1120px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-head img { height: 26px; width: auto; display: block; }
.slogan { font-size: 15px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 8px 24px 64px; }
.foot-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* The two-panel card of the guest pages. */
.card { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.side { flex: 1 1 300px; min-width: 0; padding: 36px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.grid-bg { background-color: var(--blue-soft); background-image: linear-gradient(var(--blue-line) 1px, transparent 1px), linear-gradient(90deg, var(--blue-line) 1px, transparent 1px); background-size: 28px 28px; }
.main { flex: 999 1 560px; min-width: 0; padding: 36px 32px; }
.title { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.facts li { display: flex; gap: 10px; align-items: center; }
.desc { margin: 0; color: #3a3a3a; white-space: pre-line; }
.people { font-size: 15px; color: var(--muted); }
.avatars { display: flex; align-items: center; gap: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 3px solid var(--blue-soft); flex: none; }
.avatar + .avatar { margin-left: -22px; }
.avatar.c0 { background: var(--brand); color: #fff; }
.avatar.c1 { background: #fc97ed; color: var(--ink); }
.avatar.c2 { background: #7bc1ff; color: var(--ink); }
.avatar.c3 { background: #eeea7d; color: var(--ink); }

/* Date picker and slots. */
.picker { display: flex; flex-wrap: wrap; gap: 32px; }
.cal { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 17px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.round:disabled { opacity: 0.35; cursor: default; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.wd { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: #5b5b5b; padding: 4px 0; }
.day { height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--faint); border-radius: 50%; }
button.day { border: none; cursor: pointer; font-weight: 700; background: var(--red-soft); color: var(--red-ink); }
button.day[aria-pressed='true'] { background: var(--red); color: #fff; }
.slots { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.slot-row { display: flex; gap: 8px; }
.slot { flex: 1 1 0; height: 48px; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--paper); color: var(--red-ink); border: 1px solid var(--red-line); }
.slot[aria-pressed='true'] { background: #4a4a4a; color: #fff; border-color: #4a4a4a; }
.empty { color: var(--muted); }

/* Forms and buttons. */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea, select.input, input.input { height: 46px; border: 1px solid var(--field); border-radius: 10px; padding: 0 14px; font-size: 16px; font-weight: 400; background: var(--paper); }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > * { flex: 1 1 220px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.btn { min-height: 50px; padding: 0 26px; border-radius: 25px; border: none; background: var(--red); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: var(--paper); color: var(--red); border: 1px solid var(--red); }
.btn.ghost:hover { background: var(--red-soft); color: var(--red-dark); }
.btn.plain { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.btn.small { min-height: 44px; padding: 0 16px; border-radius: 22px; font-size: 15px; }
.linkish { background: none; border: none; padding: 0; color: var(--red); font-weight: 600; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.when { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--blue-line); }
.when b { font-size: 18px; }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.error { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red-ink); font-weight: 600; }

/* Confirmation panel: a slightly deeper red than the brand red, so the white text stays readable. */
.done-side { flex: 1 1 340px; min-width: 0; padding: 48px 40px; background: #e00e0a; color: #fff; display: flex; flex-direction: column; gap: 18px; }
.done-side h1 { font-size: 44px; font-weight: 800; }
.check { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
dl.facts-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
dl.facts-grid dt { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: #5b5b5b; text-transform: uppercase; }
dl.facts-grid dd { margin: 0; font-size: 17px; }
.private-link { padding: 18px 20px; border-radius: 12px; background: var(--blue-soft); border: 1px solid var(--blue-line); display: flex; flex-direction: column; gap: 8px; }
.private-link a { word-break: break-all; font-weight: 600; }

/* Staff pages. */
.staff-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.staff-head .in { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.brandmark { display: flex; align-items: center; gap: 14px; }
.brandmark img { height: 22px; display: block; }
.brandmark span { font-weight: 700; padding-left: 14px; border-left: 1px solid var(--field); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs button { min-height: 44px; padding: 0 14px; border-radius: 22px; border: none; background: none; color: var(--ink-2); font-weight: 600; font-size: 15px; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--red-soft); color: var(--red-ink); font-weight: 700; }
.who { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.staff-main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.panel { flex: 1 1 380px; min-width: 0; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; }
.panel.wide { flex: 999 1 560px; }
.panel h1, .panel h2 { font-size: 24px; font-weight: 800; }
.panel h3 { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 18px; background: var(--blue-soft); border: 1px solid var(--blue-line); display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.chip input { width: 18px; height: 18px; margin: 0; }
.choice { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--field); display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--red); }
.list-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 16px 0; border-top: 1px solid #efebe7; }
.list-row .grow { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.list-row .meta { font-size: 14px; color: var(--muted); }
.state { min-height: 28px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; }
.state.active { background: var(--green-soft); color: var(--green-ink); }
.state.used { background: var(--blue-soft); color: #1d4f80; }
.state.revoked, .state.expired, .state.cancelled { background: #f1efed; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hours { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 16px; align-items: center; }
.hours .win { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hours input[type='time'] { height: 44px; border: 1px solid var(--field); border-radius: 10px; padding: 0 10px; }
.qrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid #efebe7; }
.qrow > .input:first-child { flex: 1 1 260px; min-width: 0; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.type-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; background: var(--paper); min-height: 190px; }
.type-card h2 { font-size: 19px; }
.type-card .meta { font-size: 14px; color: var(--muted); }
.type-card .bar { width: 40px; height: 4px; border-radius: 2px; background: var(--brand); margin-bottom: 6px; }
.type-card.fresh { border: 2px solid var(--red); }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 32px 16px 16px; }
.empty-state h2 { font-size: 22px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; }
.signin { max-width: 520px; margin: 8vh auto; padding: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 20px; }
.signin img { height: 26px; align-self: flex-start; }

@media (max-width: 720px) {
  .side { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 20px; }
  .main { padding: 24px 20px; }
  .title { font-size: 26px; }
  .done-side { padding: 32px 24px; }
  .done-side h1 { font-size: 34px; }
  dl.facts-grid { grid-template-columns: minmax(0, 1fr); }
  .hours { grid-template-columns: minmax(0, 1fr); }
}

/* Week view of the busy times (Calendars > Check). */
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-head .note { margin-top: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.week-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.week-arrow { min-width: 44px; font-size: 22px; line-height: 1; }
.week-title { min-width: 170px; text-align: center; font-variant-numeric: tabular-nums; }
.week-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.week { display: grid; grid-template-columns: 52px repeat(7, minmax(96px, 1fr)); min-width: 720px; }
.week-head { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.week-head strong { font-size: 18px; color: var(--ink); }
.week-day.today .week-head strong { color: var(--red); }
.week-hours { position: relative; }
.week-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.week-hours span:first-child { transform: none; }
.week-col { position: relative; border-left: 1px solid var(--line); }
.week-col.today { background: var(--paper-2); }
.week-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.week-busy { position: absolute; overflow: hidden; padding: 3px 6px; border-left: 3px solid var(--cal); border-radius: 6px; background: var(--cal-soft); color: var(--cal-ink); font-size: 12px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
/* One colour per connected calendar, in the order they are listed. */
.cal-0 { --cal: var(--red); --cal-soft: var(--red-soft); --cal-ink: var(--red-ink); }
.cal-1 { --cal: #1d5fb8; --cal-soft: #e4eefb; --cal-ink: #174a8f; }
.cal-2 { --cal: #2f7d55; --cal-soft: var(--green-soft); --cal-ink: var(--green-ink); }
.cal-3 { --cal: #8a5a00; --cal-soft: #fbf0d9; --cal-ink: #6b4600; }
.week-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.week-key { display: inline-flex; align-items: center; gap: 8px; }
.week-key::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border-left: 3px solid var(--cal); background: var(--cal-soft); }
.week-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--red); }
.week-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
