/* RadReady: navy and white, light only. Shared by the public sheet, manage page, roster and organizer app. */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --ink: #0F1B33; --muted: #3B4A63;
  --navy: #14305E; --navy-deep: #0E2347; --navy-hover: #1D4280; --on-navy: #FFFFFF; --on-navy-soft: #D6E0F0;
  --band: #F1F5FB; --group: #DFE7F3; --line: #C8D3E4; --field: #7A8AA6; --link: #1A4A9A;
  --good: #11603A; --good-bg: #E3F4EA; --warn: #7A4A00; --warn-bg: #FFF1D6; --bad: #A0182B; --bad-bg: #FDE7EA;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --table-header-bg: #14305E; --table-header-text: #FFFFFF; --table-header-hover: #1D4280;
  --table-row-even: #F1F5FB; --table-row-hover: #E4ECF8; --table-row-selected: #FFF1D6; --table-cell-text: #0F1B33;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header band ---------- */
.hero { background: var(--navy); color: var(--on-navy); }
.hero-in { max-width: 780px; margin: 0 auto; padding: 28px var(--gutter) 24px; display: grid; gap: 6px; }
.hero.wide .hero-in { max-width: 1240px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-soft); }
.hero h1 { font-weight: 800; font-size: clamp(30px, 6.5vw, 48px); color: var(--on-navy); text-wrap: balance; }
.hero .meta { color: var(--on-navy-soft); margin: 0; }
.hero a { color: var(--on-navy); }
.wrap { max-width: 780px; margin: 0 auto; padding: 22px var(--gutter) 64px; display: grid; gap: 18px; }
.wrap > * { min-width: 0; }
.intro { white-space: pre-line; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; border: 2px solid var(--navy);
  background: var(--navy); color: var(--on-navy); font-weight: 700; font-size: 15px; padding: 9px 16px; cursor: pointer;
  text-decoration: none; line-height: 1.2; min-height: 42px; }
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn:focus-visible, .link-btn:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.slot-pick:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.btn-secondary, .btn.secondary { background: var(--surface); color: var(--navy); }
.btn-secondary:hover, .btn.secondary:hover { background: var(--band); color: var(--navy); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.btn-sm { min-height: 34px; padding: 5px 12px; font-size: 14px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: default; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--link); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
label.field { display: grid; gap: 5px; font-weight: 700; color: var(--navy); font-size: 15px; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=password],
input[type=url], input[type=search], select, textarea {
  width: 100%; font-size: 16px; padding: 9px 12px; border: 2px solid var(--field); border-radius: 10px; background: var(--surface);
  color: var(--ink); min-height: 44px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; }
label.field input, label.field select, label.field textarea { font-weight: 400; }
::placeholder { color: #5A6780; opacity: 1; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--group);
  color: var(--navy); white-space: nowrap; }
.pill.open { background: var(--good-bg); color: var(--good); }
.pill.draft { background: var(--warn-bg); color: var(--warn); }
.pill.closed, .pill.archived { background: var(--group); color: var(--muted); }
.pill.full { background: var(--group); color: var(--muted); }
.notice { border-radius: 10px; padding: 12px 14px; background: var(--band); border: 1px solid var(--line); }
.notice.good { background: var(--good-bg); border-color: #A9D8BC; color: var(--good); }
.notice.bad { background: var(--bad-bg); border-color: #F1B3BC; color: var(--bad); }
.notice.warn { background: var(--warn-bg); border-color: #EBC57A; color: var(--warn); }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy-deep); color: var(--on-navy);
  padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(14,35,71,.3); }
.toast.bad { background: var(--bad); }

/* ---------- collapsible sections ---------- */
.toolbar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: -8px; }
details.sec { border-top: 2px solid var(--navy); scroll-margin-top: 12px; }
details.sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary h2 { font-weight: 700; font-size: 23px; }
.chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--group); position: relative; }
.chev::before { content: ""; position: absolute; left: 10px; top: 8px; width: 8px; height: 8px; border-right: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy); transform: rotate(45deg); }
details[open] > summary .chev::before { top: 12px; transform: rotate(-135deg); }
summary:hover .chev { background: var(--line); }
.sec-body { padding-bottom: 12px; display: grid; gap: 10px; }
.sec-body > p { margin: 0; color: var(--muted); white-space: pre-line; }

/* ---------- public sheet: slot rows ---------- */
.slots { display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.slot.picked { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--band); }
.slot-when { font-weight: 700; color: var(--navy); }
.slot-label { font-weight: 600; }
.slot-note { color: var(--muted); font-size: 14px; }
.slot-names { grid-column: 1 / -1; color: var(--ink); font-size: 15px; }
.slot-names b { color: var(--muted); font-weight: 600; }
.slot-left { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.slot-act { display: grid; justify-items: end; gap: 4px; }
.slot-pick { min-width: 104px; }
.slot.picked .slot-pick { background: var(--navy); color: var(--on-navy); }
.pickbar { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border-top: 2px solid var(--navy);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 18px rgba(14,35,71,.12); }
.pickbar-in { max-width: 780px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.form-panel { display: grid; gap: 14px; }
.choice { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; background: var(--band); }
.choice h3 { font-size: 17px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- roster tables (the hh2026 layout) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-variant-numeric: tabular-nums; }
.stat b { font: 800 26px/1.1 var(--display); display: block; color: var(--navy); }
.stat span { color: var(--muted); font-size: 14px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); }
.jump a:hover, .jump a:focus-visible { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.search { display: grid; gap: 6px; }
.search label { font-weight: 700; color: var(--navy); }
.search input { font-size: 17px; }
/* clip (not auto) keeps rounded corners without making a scroll box, so the sticky header follows the page */
.roster .data-table-wrap { overflow: clip; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.roster table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.roster thead th { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; background: var(--navy); color: var(--on-navy);
  text-align: left; font-size: 16px; padding: 12px 16px; font-weight: 700; box-shadow: 0 2px 0 var(--navy-deep); }
.roster td { padding: 10px 16px; vertical-align: top; color: var(--ink); }
.roster tbody tr:nth-child(even) td { background: var(--band); }
.roster .grp-head th { background: var(--group); color: var(--ink); text-align: left; padding: 10px 16px; font-size: 16px; font-weight: 700;
  border-top: 1px solid var(--line); }
.roster tbody:first-of-type .grp-head th { border-top: 0; }
.head-count { font-weight: 600; font-size: 14px; color: var(--muted); margin-left: 10px; white-space: nowrap; }
.job-note { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.roster .time { white-space: nowrap; width: 1%; font-weight: 600; }
.roster .num { text-align: center; white-space: nowrap; width: 1%; }
.roster .note { color: var(--muted); }
.roster .who { font-weight: 700; }
.m-time { display: none; }
.check-col { display: none; }
@media (max-width: 520px) {
  .roster td, .roster thead th, .roster .grp-head th { padding-left: 10px; padding-right: 10px; }
  .head-count { display: block; margin: 2px 0 0; }
  #people th:nth-child(3), #people td.time { display: none; }
  #people .m-time { display: block; font-weight: 700; }
  .slot { grid-template-columns: 1fr; }
  .slot-act { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; }
}
@media print {
  .hero { background: none; color: #000; }
  .hero h1, .hero .meta, .eyebrow { color: #000; }
  .no-print, .toolbar, .search, .jump { display: none !important; }
  details.sec > summary .chev { display: none; }
  .roster thead th { position: static; background: #fff; color: #000; box-shadow: none; border-bottom: 2px solid #000; }
  .check-col { display: table-cell; width: 34px; }
  td.check-col::before { content: "\2610"; font-size: 18px; }
  .roster tr { break-inside: avoid; }
}
footer.foot { color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- organizer app ---------- */
.topbar { background: var(--navy); color: var(--on-navy); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 10px var(--gutter); display: flex; gap: 12px; align-items: center;
  justify-content: space-between; flex-wrap: wrap; }
.brand { font: 800 22px/1 var(--display); color: var(--on-navy); text-decoration: none; }
.topbar select { width: auto; min-height: 38px; padding: 4px 10px; font-size: 15px; border-color: var(--navy-hover); }
.top-link, .topbar .link-btn { color: var(--on-navy); font-weight: 600; font-size: 15px; }
.app-wrap { max-width: 1240px; margin: 0 auto; padding: 22px var(--gutter) 72px; display: grid; gap: 18px; }
.app-wrap > * { min-width: 0; }
.app-wrap h1 { font-size: clamp(26px, 4.5vw, 36px); font-weight: 800; }
.app-wrap h2 { font-size: 21px; }
.app-wrap h3 { font-size: 18px; }
.page-head { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.eyebrow-dark { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.signin { max-width: 440px; width: 100%; margin: 24px auto; display: grid; gap: 14px; }
.signin p { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent;
  margin-bottom: -2px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.sec-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; background: var(--surface); }
.sec-card .pill { vertical-align: middle; margin-left: 6px; }
.pre { white-space: pre-line; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 700; color: var(--navy); margin-bottom: 6px; padding: 0; }
.starts { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.start { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--field); border-radius: 12px; padding: 12px; cursor: pointer; }
.start:has(input:checked) { border-color: var(--navy); background: var(--band); }
.start input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.start span { display: grid; gap: 2px; }
.start small { color: var(--muted); font-size: 14px; }
.kind-row { display: grid; grid-template-columns: 1fr minmax(180px, 240px); gap: 10px; align-items: center; padding: 6px 0;
  border-bottom: 1px solid var(--line); }
.kind-row span { font-weight: 600; }
.flag { background: var(--warn-bg); border-radius: 4px; padding: 0 4px; }
.flag-tag { color: var(--warn); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-row input { flex: 1 1 280px; font-size: 15px; }
.search-row { max-width: 420px; }
.sub { display: block; font-size: 14px; color: var(--muted); }
.app .data-table-wrap { max-height: 68vh; background: var(--surface); border-color: var(--line); }
.app .data-table td { color: var(--table-cell-text); }
.app .data-table td a { font-weight: 700; }
.app .table-actions { min-height: 46px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.app .selected-count { color: var(--muted); font-size: 15px; margin-right: 4px; }
dialog.modal { border: 0; border-radius: 14px; padding: 0; width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  box-shadow: 0 18px 60px rgba(14,35,71,.35); color: var(--ink); }
dialog.modal::backdrop { background: rgba(14,35,71,.5); }
dialog.modal form { padding: 20px; display: grid; gap: 14px; }
dialog.modal h2 { font-size: 22px; }
dialog.modal p { margin: 0; }
@media (max-width: 520px) {
  .kind-row { grid-template-columns: 1fr; }
  .page-head > .row { width: 100%; }
}
