/* Phone first. Large text and tap targets. */
:root {
  --text: #1d2330;
  --muted: #545e70;
  --bg: #ffffff;
  --surface: #f3f6f9;
  --accent: #1b5e8c;
  --accent-text: #ffffff;
  --error: #a4262c;
  --ok: #1e6b3a;
  --border: #c5cdd8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; }
main { max-width: 36rem; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.35rem; }
.stack { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
label { font-weight: 600; }
input[type="email"], input[type="text"], input[type="search"] {
  font: inherit;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 6px;
  width: 100%;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--error); }
.with-prefix { display: flex; align-items: center; gap: 0.5rem; max-width: 14rem; }
.with-prefix > span { font-weight: 600; }
/* Two short boxes side by side: the bike form's height in feet and inches. */
.measure-pair { display: flex; gap: 1rem; }
.measure-pair label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 400; width: 6.5rem; }
button, a.button {
  font: inherit;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  cursor: pointer;
}
button.link { background: none; color: var(--accent); padding: 0; min-height: 0; text-decoration: underline; font-weight: 400; }
a { color: var(--accent); }
.error { color: var(--error); margin: 0; }
.hint { color: var(--muted); }
.status { padding: 12px; border-radius: 6px; background: var(--surface); }
.status-current { border-left: 6px solid var(--ok); }
.status-lapsed, .status-never { border-left: 6px solid var(--error); }
.status-pending { border-left: 6px solid var(--accent); }
/* Joined in the portal, not paid (or not written to Cyanic yet): a warning, not an error. */
.status-waiting { border-left: 6px solid #a15c00; background: #fdf3e1; }
/* Staff household page: closing the account, last and set apart. */
.danger-zone { margin-top: 2.5rem; padding-top: 0.5rem; border-top: 3px solid var(--error); }
.danger-zone h2 { color: var(--error); }
.summary { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.summary td { padding: 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
label.choice.tip { background: var(--surface); border-radius: 8px; padding: 12px; }
.totals { font-size: 1.1rem; }
.members { padding-left: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; margin: 0 0 1rem; border: 0; padding: 0; }
fieldset.group { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 0 0 1.25rem; }
legend { font-weight: 700; padding: 0 4px; }
fieldset.field legend { font-weight: 600; padding: 0; margin-bottom: 0.25rem; }
.optional { font-weight: 400; color: var(--muted); }
input[type="tel"], input[type="date"], select {
  font: inherit;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 6px;
  width: 100%;
  background: var(--bg);
}
/* One-line boxes and drop-downs the same height in every browser: Safari
   (and Firefox, less) otherwise draw search boxes and drop-downs their own
   way, ignoring the padding, so a search box and a drop-down side by side
   don't line up. The drop-down's arrow is drawn here instead. */
input[type="email"], input[type="text"], input[type="search"], input[type="tel"], select { min-height: 52px; line-height: 24px; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; color: inherit;
  background-image: url("select-arrow.svg"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 9px;
}
/* A drop-down still on its "nothing chosen yet" entry ("Month", "Choose an
   email": an option marked data-placeholder) is shaded grey with grey
   italic text; border and arrow stay, so it still looks usable. Once
   something is chosen, white and normal text. The open list stays normal.
   Not for empty entries that are real choices, such as "All". */
select:has(option[data-placeholder]:checked) { color: var(--muted); background-color: #e6eaf0; font-style: italic; }
select option { color: var(--text); background-color: var(--bg); font-style: normal; }
label.choice { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; padding: 8px 0; }
label.choice input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; }
.choice-text { display: flex; flex-direction: column; }
.choice-text .hint { font-size: 0.9rem; }
.error-summary { border: 3px solid var(--error); border-radius: 6px; padding: 8px 16px; margin: 0 0 1rem; }
.error-summary h2 { margin: 0.25rem 0; font-size: 1.1rem; }
/* A field reached from the error box (or any #link) stops short of the top,
   so its question, hint and error stay in sight above it. A choice's id is
   on its fieldset, whose question is at its top. */
main input, main select, main textarea { scroll-margin-top: 10rem; }
main fieldset { scroll-margin-top: 1.5rem; }
.notice { background: #e6f2ea; border-left: 6px solid var(--ok); padding: 12px; border-radius: 6px; }
.cards { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline; justify-content: space-between; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.card .hint { flex-basis: 100%; order: 3; margin: 0; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0 0 1rem; }
.details dt { font-weight: 600; }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .details { grid-template-columns: 1fr; } .details dd { margin-bottom: 0.5rem; } }
.details dd ul { margin: 0; padding-left: 1.2rem; }
/* A section folded behind its own heading (household page: offline payment). */
.fold > summary { cursor: pointer; margin: 1.5rem 0 0.5rem; }
.fold > summary h2, .fold > summary h3 { display: inline; margin: 0; }
.offline-payment form { max-width: 32rem; }
/* On a phone, a narrow table's rows become short blocks: the first cell on its own line, the rest labelled after it. */
@media (max-width: 37.5rem) {
  .stack-narrow thead { display: none; }
  .stack-narrow, .stack-narrow tbody, .stack-narrow tr { display: block; }
  .stack-narrow tr { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .data.stack-narrow td { display: inline-block; padding: 0; border: 0; margin-right: 1rem; text-align: left; }
  .data.stack-narrow td:first-child { display: block; font-weight: 600; margin: 0 0 2px; }
  .stack-narrow td:empty { display: none; }
  .stack-narrow td[data-label]::before { content: attr(data-label) " "; color: var(--muted); }
}
.consent { font-size: 0.95rem; color: var(--muted); padding-left: 1.2rem; }
a.button.secondary, button.secondary { background: var(--surface); color: var(--accent); border: 2px solid var(--accent); }
button.danger { background: var(--error); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
textarea { font: inherit; padding: 12px; border: 2px solid var(--border); border-radius: 6px; width: 100%; }
label.choice input[type="checkbox"] { width: 24px; height: 24px; margin: 2px 0 0; flex: none; }
.basket-line { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.basket-line form { margin: 0; }
.notice.warn { background: #fdf3e1; border-left-color: #a15c00; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; }
.actions.centred { justify-content: center; }
p.centred { text-align: center; }
.gmfcs-chart { display: block; width: 100%; height: auto; margin: 0.5rem 0 1rem; }
.area-map { margin: 0.5rem 0 1rem; }
.area-map img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 4px; }
.area-map figcaption { margin-top: 0.25rem; }
.nowrap { white-space: nowrap; }
.staff-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
main.wide { max-width: 80rem; }
.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data th, .data td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data td.num, .data th.num { text-align: right; white-space: nowrap; }
.data th a.sort { color: inherit; text-decoration: none; }
.data th a.sort:hover, .data th a.sort:focus-visible { text-decoration: underline; }
/* Staff log: long details wrap anywhere rather than squeezing When and What. */
.data.log td:last-child { overflow-wrap: anywhere; }
/* Settings, Photo: on every family page the photo is the background behind
   the whole page down to the footer, with the header and card where they are
   without a photo. As on calgarycp.org, it scrolls with the page, the
   header's teal fades into it, it's cropped to fit keeping its centre, and
   it's dimmed a little. Phones with the family menu keep their solid band, so
   its words stay readable. */
.fills-screen:has(> .hero-bg) { position: relative; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.22); }
.hero-bg ~ * { position: relative; z-index: 1; }
.hero-bg ~ header :is(.header-link, button.link) { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.hero-bg ~ main.brand-card { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
/* The whole photo, uncropped, for the preview in Settings, Photo. */
.hero-photo { margin: 0; line-height: 0; }
.hero-photo img { display: block; width: 100%; height: auto; }
.photo-preview { max-width: 40rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 0 0 1rem; }
.has-tip { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
/* Settings, Staff: a name box and a small Save in each row. */
.staff-list td { vertical-align: middle; }
.staff-list .inline-action { flex-wrap: nowrap; gap: 8px; }
.staff-list input[type="text"] { max-width: 14rem; padding: 6px 10px; }
.branded .staff-list button.secondary { min-height: 0; padding: 8px 16px; font-size: 0.8rem; }
.table-wrap { overflow-x: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: flex-end; margin: 0 0 1rem; }
.filters .field { margin: 0; }
.header-link { margin-left: auto; margin-right: 1rem; }
.prices { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.checklist { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.75rem; counter-reset: step; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; }
/* Step numbers, not empty rings: an outlined circle looks like a radio button to tap. */
.checklist .check { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.checklist .check::before { counter-increment: step; content: counter(step); }
.progress { color: var(--muted); font-weight: 600; margin: 0; }
.snippet { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); padding: 12px; border-radius: 6px; font-size: 0.9rem; }

/* CP Kids' look from calgarycp.org, for every page:
   the logo on the site's teal, Georgia text, rounded uppercase buttons, and the
   site's royal blue footer. Buttons and links use a deeper teal: white on the
   site's own teal is too faint to read. */
body.branded {
  --accent: #007f74;
  --text: #222222;
  --muted: #555555;
  background: #f4f4f5;
  font-family: Georgia, "Times New Roman", serif;
  min-height: 100vh;
  accent-color: #007f74;
  display: flex;
  flex-direction: column;
}
/* The header, as on calgarycp.org's pages without a photo (/75th, an
   event's page; measured 2026-10-13): the site's teal fading to nothing over
   a 103px band, 4% of the window in from each side, the logo 139 by 100 at
   the top left, and the words and Donate centred on the logo, Donate as the
   site's 126 by 55 teal pill at the right edge. On phones (the site's 767px)
   the band is 95px, 6% in, with the logo 69 by 50. */
.branded header.brand-band {
  background: linear-gradient(#02ac9e, transparent);
  border-bottom: 0;
  align-items: center;
  align-content: flex-start;
  gap: 8px 26px;
  padding: 1px 4vw 2px;
}
.branded header.brand-band .brand-home { margin-right: auto; }
.areas { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 1rem 0 auto; }
.areas .header-link { margin: 0; }
.branded header.brand-band .areas { margin: 0; gap: 4px 26px; }
.branded header.brand-band .sign-out { display: flex; }
/* The family menu (Home, Household, Payments) in the band, like calgarycp.org's. */
.family-nav { display: flex; gap: 4px 26px; }
.family-nav .header-link { margin: 0; }
/* Staff and Cyanic on a family page: a line between the family's menu and the areas. */
.branded header.brand-band .family-nav + .areas { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, 0.6); }
.branded header.brand-band .header-link, .branded header.brand-band button.link, .branded header.brand-band .donate {
  color: #ffffff;
  font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  min-height: 0;
  white-space: nowrap;
}
.branded header.brand-band .header-link:hover, .branded header.brand-band button.link:hover { border-bottom-color: rgba(255, 255, 255, 0.6); }
.branded header.brand-band .header-link[aria-current="page"] { border-bottom-color: #ffffff; }
.branded header.brand-band .donate {
  color: #ffffff;
  background: #02ac9e;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 23px;
  border: 0;
  border-radius: 300px;
  padding: 16px 28.8px;
}
.branded header.brand-band .donate:hover { text-decoration: underline; }
/* Admin and Cyanic: Donate's room, kept empty (see page() in html.js). */
.branded header.brand-band .donate-room { visibility: hidden; }
.branded header.brand-band a:focus-visible, .branded header.brand-band button:focus-visible { outline-color: #ffffff; }
.branded header.brand-band .brand-logo { width: 139px; }
@media (max-width: 767px) {
  .branded header.brand-band { padding: 23px 6vw 22px; }
  .branded header.brand-band .brand-logo { width: 69px; }
  .branded header.brand-band .donate { font-size: 14px; padding: 10px 20px; line-height: 20px; }
}
/* Phones: smaller words, so the areas, Sign out and Donate stay on one line. */
@media (max-width: 480px) {
  .branded header.brand-band { gap: 10px; }
  .branded header.brand-band:has(.areas) .brand-logo { width: 56px; }
  .branded header.brand-band .areas { flex-wrap: nowrap; gap: 10px; }
  .branded header.brand-band .header-link, .branded header.brand-band button.link { font-size: 0.72rem; letter-spacing: 0.02em; }
  .branded header.brand-band .donate { font-size: 0.72rem; letter-spacing: 0.03em; padding: 9px 14px; line-height: 1.2; }
  /* Cyanic's three areas on a family page: tighter still. */
  .branded header.brand-band:has(.areas .header-link:nth-child(3)):has(.donate) { gap: 8px; }
  .branded header.brand-band:has(.areas .header-link:nth-child(3)):has(.donate) .areas { gap: 8px; }
  .branded header.brand-band:has(.areas .header-link:nth-child(3)):has(.donate) :is(.header-link, button.link, .donate) { font-size: 0.64rem; letter-spacing: 0; }
  .branded header.brand-band:has(.areas .header-link:nth-child(3)):has(.donate) .donate { padding: 8px 10px; }
}
/* Too narrow for one line (phones, or staff and Cyanic with their areas too):
   the family menu takes its own row along the bottom of the band, and the band
   is solid so its white words stay readable there. */
@media (max-width: 720px) {
  .branded header.brand-band:has(.family-nav) { flex-wrap: wrap; background: #02ac9e; padding-bottom: 0; }
  .branded header.brand-band .family-nav { order: 1; flex-basis: 100%; gap: 24px; padding: 12px 0 13px; border-top: 1px solid rgba(255, 255, 255, 0.4); }
  .branded header.brand-band .family-nav .header-link { font-size: 0.85rem; letter-spacing: 0.03em; }
  .branded header.brand-band:has(.family-nav) .donate { box-shadow: inset 0 0 0 2px #ffffff; }
}
@media (max-width: 1100px) {
  .branded header.brand-band:has(.family-nav + .areas) { flex-wrap: wrap; background: #02ac9e; padding-bottom: 0; }
  .branded header.brand-band .family-nav:has(+ .areas) { order: 1; flex-basis: 100%; gap: 24px; padding: 12px 0 13px; border-top: 1px solid rgba(255, 255, 255, 0.4); }
  .branded header.brand-band .family-nav + .areas { padding-left: 0; border-left: 0; }
  .branded header.brand-band:has(.family-nav + .areas) .donate { box-shadow: inset 0 0 0 2px #ffffff; }
}
.brand-logo { display: block; width: 130px; height: auto; }
main.brand-card {
  background: #ffffff;
  width: calc(100% - 32px);
  max-width: 36rem;
  margin: 24px auto;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.branded h1 { font-weight: 400; font-size: 1.9rem; }
.branded button, .branded a.button {
  font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 300px;
  padding: 14px 28px;
}
.branded main button.link { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: inherit; padding: 0; border-radius: 0; }
.branded input[type="email"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* Staff and Cyanic's pages: Cyanic's footer, as on cyanicare.com. A 26px blue
   bar fixed to the bottom of the window, Cyanic's white logo on the right.
   The page keeps that much room at the bottom so the bar never covers it. */
.cyanic-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  height: 26px; background: #29abe2; border-top: 1px solid #165e7c;
  display: flex; justify-content: flex-end; align-items: flex-start; padding: 1px 4px 0 0;
}
.cyanic-footer img { display: block; width: 295px; max-width: calc(100% - 8px); height: auto; }
body.branded:has(> .cyanic-footer) { padding-bottom: 26px; }
/* Cyanic's heat map button and panel sit just above the bar. */
body:has(> .cyanic-footer) .heatmap-toggle, body:has(> .cyanic-footer) .heatmap-panel { bottom: 42px; }
/* Staff pages: the menu as a white bar under the band, and a wide card for tables. */
.branded .staff-nav { background: #ffffff; border-bottom: 1px solid #e0e0e0; padding: 10px 16px; font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 600; }
.branded .staff-nav a { text-decoration: none; }
.branded .staff-nav a:hover { text-decoration: underline; }
main.brand-card.wide { max-width: 80rem; }
.branded .data th { font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
/* Staff menu: four sections, and the current section's tabs below them. */
.branded .staff-nav { flex-wrap: nowrap; gap: 0; padding: 0 8px; overflow-x: auto; }
.branded .staff-nav a { padding: 14px 12px 11px; border-bottom: 3px solid transparent; white-space: nowrap; }
.branded .staff-nav a[aria-current="page"] { color: var(--text); border-bottom-color: #02ac9e; }
.staff-tabs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 80rem; width: calc(100% - 32px); margin: 20px auto -8px; }
.staff-tabs a {
  display: inline-block; padding: 6px 14px; border-radius: 300px; border: 2px solid var(--accent); color: var(--accent); background: #ffffff;
  text-decoration: none; font: 700 0.8rem/1.4 "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.05em; text-transform: uppercase;
}
.staff-tabs a[aria-current="page"] { background: var(--accent); color: #ffffff; }
.count { display: inline-block; min-width: 1.4em; padding: 1px 6px; margin-left: 2px; border-radius: 999px; background: #a4262c; color: #ffffff; font-size: 0.75rem; line-height: 1.4; text-align: center; letter-spacing: 0; vertical-align: 2px; }
.card.attention { border-left: 6px solid #a4262c; }
/* Cyanic's heat maps. */
.heatmap { margin: 0 0 1.5rem; max-width: 640px; }
.heatmap svg { display: block; width: 100%; height: auto; border-radius: 6px; }
/* The page itself in a frame on the positions page, at the screen size's width. */
.heatmap-frame-wrap { overflow-x: auto; margin: 0 0 0.75rem; }
.heatmap-frame { display: block; height: 600px; border: 1px solid #c5cdd8; border-radius: 6px; background: #ffffff; }
.heatmap-frame-phone { width: 390px; }
.heatmap-frame-tablet { width: 800px; }
.heatmap-frame-desktop { width: 1280px; }
.heatmap-frame-note { font-weight: 600; }
.heatmap-plain { margin: 0 0 1.5rem; }
.heatmap-absent { color: #6b7280; font-size: 0.85em; }
.heatmap-in-frame body.branded, .heatmap-in-frame .fills-screen { min-height: 800px; }
/* Cyanic's heat map over the page (static/heatmap.js, CYANIC_EMAILS only). */
.heatmap-layer { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1000; }
.heatmap-toggle, .heatmap-panel { position: fixed; right: 16px; bottom: 16px; z-index: 1001; font: 600 0.9rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.heatmap-toggle { min-height: 0; padding: 10px 18px; border-radius: 300px; background: #1d2330; color: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); text-transform: none; letter-spacing: 0; }
.branded .heatmap-toggle { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.9rem; text-transform: none; letter-spacing: 0; padding: 10px 18px; background: #1d2330; }
.heatmap-panel { width: min(320px, calc(100vw - 32px)); background: #1d2330; color: #ffffff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); font-weight: 400; }
.heatmap-panel p, .heatmap-panel ol { margin: 6px 0; }
.heatmap-panel ol { padding-left: 1.2rem; font-size: 0.85rem; overflow-wrap: anywhere; }
.heatmap-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.heatmap-panel button, .branded .heatmap-panel button { min-height: 0; padding: 4px 10px; border-radius: 300px; background: #3a4357; color: #ffffff; font: 600 0.8rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-transform: none; letter-spacing: 0; }
.heatmap-panel button.current { background: #02ac9e; color: #0f1720; }
.heatmap-periods { display: flex; flex-wrap: wrap; gap: 6px; }
.heatmap-hint { font-size: 0.8rem; color: #c5cdd8; }
/* Household's tabs: the staff tabs' look, lined up with the family card
   (narrower than staff's). The staff menu's first word starts where the card
   does (each link has 12px of padding). */
.family-tabs { max-width: 36rem; }
.branded .staff-nav { padding-inline: max(8px, calc((100% - 80rem) / 2 - 12px)); }
/* Where a family is in paying: Choose, Pay, Done. */
.paying-steps { list-style: none; display: flex; padding: 0; margin: 0 0 1.5rem; counter-reset: step; }
.paying-steps li { flex: 1; text-align: center; font: 600 0.85rem/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--muted); position: relative; }
.paying-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; background: #e0e4ea; color: #444444; font-weight: 700; position: relative; z-index: 1; }
.paying-steps li:not(:first-child)::after { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: #e0e4ea; }
.paying-steps li.done::before { content: "✓"; background: #007f74; color: #ffffff; }
.paying-steps li.done:not(:first-child)::after, .paying-steps li.now:not(:first-child)::after { background: #007f74; }
.paying-steps li.now { color: var(--text); }
.paying-steps li.now::before { background: #007f74; color: #ffffff; box-shadow: 0 0 0 4px #bfe7e3; }
/* Home: what to do next, at a glance, shortcuts. */
.next-step { border-radius: 10px; padding: 18px 20px; margin: 0 0 1.5rem; border: 2px solid #007f74; background: #eef8f7; }
.next-step h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.next-step p { margin: 0 0 0.9rem; }
.next-step .also { margin: 0.75rem 0 0; font-size: 0.95rem; }
.next-step.all-set { border-color: #1e6b3a; background: #e6f2ea; }
.next-step.all-set h2::before { content: "✓ "; color: #1e6b3a; }
.next-step.all-set p { margin: 0; }
.glance { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.glance li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; }
.glance li > span:first-child { font-weight: 600; }
.tag { display: inline-block; font: 700 0.75rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: #e6f2ea; color: #1e6b3a; }
.tag.due { background: #fdf3e1; color: #7a4100; }
.tag.waiting { background: #e8eef6; color: #1d3a5f; }
.tag.none { background: #ececec; color: #444444; }
/* Staff: a table with no rows says so instead of showing bare headings. */
.empty { color: var(--muted); font-style: italic; }
/* A button with what it acts on beside it, in normal case (an email address). */
.inline-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.inline-action span { overflow-wrap: anywhere; }
.shortcuts { list-style: none; padding: 0; margin: 0; }
.shortcuts a { display: block; padding: 10px 0; border-bottom: 1px solid #e0e0e0; font-weight: 600; text-decoration: none; }
.shortcuts a::after { content: " →"; }
.shortcuts a:hover, .shortcuts a:focus-visible { text-decoration: underline; }
/* Household: actions inside each card, and a heading with its action. */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card .card-action { margin-left: auto; }
.card a.button.card-action { min-height: 0; padding: 8px 16px; font-size: 0.8rem; }
/* Staff payments: how it was paid, under the status, smaller. */
.data.payments .hint { font-size: 0.85rem; }
/* Staff home: the last seven days as number tiles. */
.tiles { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 12px; }
.tiles li { border: 1px solid var(--border); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tile-number { font: 700 1.6rem/1.2 "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text); }
.tile-label { color: var(--muted); font-size: 0.9rem; }
/* Renewal reminders: each day a month, a day and the email it sends. */
.reminder-day { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 0 0 1rem; }
.reminder-day.has-error { border-color: var(--error); }
.reminder-day legend { font-weight: 600; padding: 0 4px; }
.reminder-fields { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.reminder-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.reminder-fields label:nth-child(1) { flex: 0 1 11rem; }
.reminder-fields label:nth-child(2) { flex: 0 1 6rem; }
.reminder-fields .reminder-kind { flex: 1 1 18rem; }
.reminder-next { margin: 0.5rem 0; }
button.secondary.small { min-height: 0; padding: 6px 12px; font-size: 0.85rem; }
.email-sample { white-space: pre-wrap; font: inherit; font-size: 0.9rem; background: var(--surface); border-radius: 6px; padding: 12px; }
.reminder-samples { margin: 0 0 1.5rem; }
/* Fields that matter for one answer only (whenChosen in forms.js). */
@supports selector(:has(*)) {
  .when-chosen:not(.open) { display: none; }
  .field:has(input.reveals:checked) + .when-chosen { display: block; }
}
/* "I am a single parent household" ticked: no second parent, nothing to skip (singleParentBox). */
@supports selector(:has(*)) {
  form:has(#singleParent:checked) .unless-single-parent,
  form:has(#singleParent:checked) button[value="skip"] { display: none; }
}
/* The card's main task, full size, under what the card says. */
.card .card-cta { order: 4; margin-top: 0.5rem; }
/* Payments: past payments, each opening to its receipt. */
.receipt { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 0 0 0.75rem; }
.receipt summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; list-style: none; }
.receipt summary::-webkit-details-marker { display: none; }
.receipt summary .what { flex-basis: 100%; color: var(--muted); font-size: 0.95rem; }
.receipt summary .open-hint { flex-basis: 100%; color: var(--accent); font-size: 0.9rem; text-decoration: underline; }
.receipt[open] summary .open-hint { display: none; }
.waiting-box { border-left: 6px solid #a15c00; background: #fdf3e1; border-radius: 6px; padding: 12px 14px; margin: 0 0 1.5rem; }
.waiting-box p { margin: 0 0 0.6rem; }
/* The family pages' footer: calgarycp.org's own, on its royal blue, with
   Georgia text, uppercase underlined links, the search box and social icons. */
.site-footer { margin-top: auto; background: #101fa8; color: #ffffff; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.5; }
.site-footer-inner { max-width: 74rem; margin: 0 auto; padding: 40px 24px 32px; }
.site-footer a { color: #ffffff; }
.site-footer a:focus-visible, .site-footer input:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.site-footer .land { margin: 0 0 32px; }
.site-footer-columns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px 48px; }
.site-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer-links a, .site-footer h2 a {
  font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px;
}
.site-footer h2 { margin: 0 0 16px; font-size: 1rem; line-height: 1.5; }
.site-footer-columns p { margin: 0; }
.site-search { position: relative; max-width: 36rem; margin: 64px auto 32px; }
.site-search input[type="search"] {
  min-height: 0; width: 100%; padding: 10px 12px 10px 44px; font: inherit; color: #ffffff; background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 0;
}
.site-search input::placeholder { color: rgba(255, 255, 255, 0.8); }
.site-search-icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: #ffffff; pointer-events: none; }
.site-social { list-style: none; display: flex; justify-content: center; gap: 4px; padding: 0; margin: 0 0 24px; }
.site-social a { display: block; width: 44px; height: 44px; }
.site-social svg { width: 44px; height: 44px; fill: #ffffff; }
.site-footer-legal { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 8px 24px; text-align: center; }
.site-footer-legal p { margin: 0; }
@media (max-width: 720px) {
  .site-footer-inner { padding: 32px 24px; }
  .site-footer-columns { grid-template-columns: 1fr; gap: 32px; }
  .site-search { margin: 40px 0 28px; }
  .site-footer-legal { flex-direction: column-reverse; align-items: center; }
}
/* Family-facing pages: the page fills at least the screen, so calgarycp.org's
   tall footer starts below the fold. The card keeps its own height and the
   grey fills the rest, so short pages don't end in an empty white box. */
.fills-screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.heatmap-panel .heatmap-link { color: #8ee3da; }
/* The sample family's label (Cyanic's people with no household). */
.sample-banner { max-width: 80rem; width: calc(100% - 32px); margin: 16px auto 0; padding: 10px 14px; border-radius: 8px; background: #fdf3e1; border-left: 6px solid #a15c00; color: #3d2a00; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.95rem; }
.heatmap-buttons { display: flex; gap: 6px; }
/* The button styles above set a display, which would show it while hidden. */
.heatmap-toggle[hidden] { display: none !important; }
/* Cyanic's usage page: one small line chart per audience, and health. */
.trends { display: grid; gap: 1.25rem; margin: 0 0 1rem; }
.trend { margin: 0; }
.trend figcaption { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 0.25rem; }
.trend svg { display: block; width: 100%; height: 6rem; }
.trend-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.trend-axis { stroke: var(--border); vector-effect: non-scaling-stroke; pointer-events: none; }
.trend-marker { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.trend-hit { fill: transparent; }
.trend-hit:hover { fill: var(--surface); }
.trend-days { display: flex; justify-content: space-between; font-size: 0.85rem; }
.needs-look { color: var(--error); }
/* Activity: a problem's row, tinted with a red edge so it stands out in the log. */
.data tr.problem td { background: #fbeeee; }
.data tr.problem td:first-child { box-shadow: inset 4px 0 0 var(--error); }
/* Usage, Money: rows with nothing this period step back; the total stands out. */
.data tr.nothing td { color: var(--muted); }
.data tfoot th, .data tfoot td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--border); }
.money-headline { font-size: 1.15rem; }
/* Usage, Staff: each staff menu section heads its pages, with their total. */
.data tr.group th, .data tr.group td { background: var(--surface); font-weight: 600; }
/* Usage, Activity: one-click filters with counts, and a heading for each day. */
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 0.6rem; }
.filter-chips a { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--bg); }
.filter-chips a:hover, .filter-chips a:focus-visible { border-color: var(--accent); }
.filter-chips a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
/* Plain numbers: the red .count badge means something needs doing. */
.filter-chips .chip-count { margin-left: 4px; color: var(--muted); font-size: 0.9em; }
.filter-chips a[aria-current="true"] .chip-count { color: inherit; opacity: 0.8; }
/* On Cyanic's pages, the chosen filter in the tabs' sky blue, softer than a tab. */
.cyanic-look .filter-chips a:hover, .cyanic-look .filter-chips a:focus-visible { border-color: #29abe2; }
.cyanic-look .filter-chips a[aria-current="true"] { background: #e3f4fc; border-color: #29abe2; color: #165e7c; font-weight: 600; }
.data tr.day th { background: var(--surface); font-weight: 600; }
/* The Overview's first line: what needs a look, or all good. */
.needs-summary { border-left: 6px solid var(--error); padding: 4px 12px; margin: 0 0 1rem; }
.needs-summary p { margin: 0.25rem 0; }
.needs-summary ul { margin: 0.25rem 0 0.5rem; padding-left: 1.2rem; }
.all-good { border-left: 6px solid var(--ok); padding: 8px 12px; margin: 0 0 1rem; }
.needs-summary li { margin: 0.2rem 0; }
.audience-table { max-width: 40rem; }
.audience-table th, .audience-table td { vertical-align: middle; }
.audience-table tbody th { font-weight: 600; }
.seen-form { display: inline; margin-left: 0.5rem; }
.seen-button, .branded .seen-button { min-height: 0; padding: 2px 10px; font-size: 0.8rem; letter-spacing: 0; text-transform: none; }

/* calgarycp.org's menu for visitors not signed in (src/web/site-menu.js),
   measured from their site. Desktop: white capitals across the band; a folder
   opens a teal panel of white capitals, its right edge under the folder's,
   with no gap, shadow or rounding. Then their cart button and Donate. Under
   1024px: the cart and a two-line menu button; the menu fills the screen in
   white with large centred capitals, a folder sliding to its own list with
   Back, and Donate at the bottom. */
.site-menu-list { display: flex; align-items: center; gap: 4px 1.8vw; list-style: none; margin: 0; padding: 0; }
.site-menu .header-link, .site-menu-phone .header-link { margin: 0; }
.site-menu summary, .site-menu-phone summary { cursor: pointer; list-style: none; }
.site-menu summary::-webkit-details-marker, .site-menu-phone summary::-webkit-details-marker { display: none; }
/* Links and folders on one line: each item a flex box, its link or folder
   title a block, so plain links don't sit lower than the folder titles. */
.site-menu-list > li { display: flex; align-items: center; }
.site-menu-list > li > a.header-link, .site-menu-list summary.header-link { display: block; }
.site-menu-back { display: none; }
.site-menu-folder { position: relative; }
.site-menu-folder details > ul {
  position: absolute; top: 100%; right: -16px; z-index: 20; min-width: 200px; margin: 0; padding: 8px 16px; list-style: none;
  background: #02ac9e;
}
.site-menu-folder details > ul a {
  display: block; padding: 1.6px 0; color: #ffffff; text-decoration: none; white-space: nowrap;
  font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 16px; line-height: 20.8px; text-transform: uppercase;
}
.site-menu-folder details > ul a:hover { text-decoration: underline; }
.branded header.brand-band .site-menu-folder details > ul a:focus-visible { outline-color: #ffffff; }
/* Their cart button: a teal pill with a white cart (the portal can't see what
   is in their cart, so no count). */
.branded header.brand-band .site-cart {
  display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 46px; border-radius: 300px;
  background: #02ac9e; color: #ffffff; margin-right: 1.8vw;
}
.branded header.brand-band .site-cart:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
/* On wide screens their header leaves a little more room before the cart. */
.site-menu { margin-right: clamp(0px, calc(6vw - 86px), 100px); }
.site-menu-phone { display: none; }
@media (max-width: 1023px) {
  .site-menu { display: none; }
  .branded header.brand-band:has(.site-menu) > .donate { display: none; }
  .branded header.brand-band .site-cart { width: 54px; height: 40px; margin-right: 18px; }
  .site-menu-phone { display: block; }
  .site-menu-phone > summary { position: relative; z-index: 31; display: block; width: 36px; height: 36px; }
  .site-menu-phone .burger, .site-menu-phone .burger::before {
    position: absolute; left: 0; width: 36px; height: 1.5px; background: #ffffff; content: "";
  }
  .site-menu-phone .burger { top: 13px; }
  .site-menu-phone .burger::before { top: 9px; }
  /* Open: the two lines turn into a dark X over the white menu. */
  .site-menu-phone[open] .burger { top: 17px; transform: rotate(45deg); background: #1a1a1a; }
  .site-menu-phone[open] .burger::before { top: 0; transform: rotate(-90deg); background: #1a1a1a; }
  .site-menu-panel {
    position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; overflow-y: auto;
    padding: 110px 24px 32px; background: #ffffff; text-align: center;
  }
  .site-menu-panel > nav { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; }
  .site-menu-panel .site-menu-list { flex-direction: column; gap: 4px; }
  .site-menu-panel .site-menu-list > li { display: block; width: 100%; }
  .branded header.brand-band .site-menu-panel .header-link, .site-menu-panel .site-menu-folder details > ul a {
    display: block; padding: 6px 0; color: #1a1a1a; text-shadow: none; white-space: normal;
    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: min(32px, 7vw); line-height: 1.1; text-transform: uppercase;
  }
  .site-menu-panel .site-menu-folder summary .site-menu-label::after { content: " ›"; font-weight: 400; color: #555555; }
  .site-menu-panel .site-menu-folder details > ul { position: static; min-width: 0; padding: 0; background: none; }
  /* A folder open: only its list, with Back in place of its name. */
  .site-menu-panel nav:has(details[open]) .site-menu-list > li:not(:has(details[open])) { display: none; }
  .site-menu-panel details[open] > summary .site-menu-label { display: none; }
  .site-menu-panel details[open] > summary .site-menu-back { display: inline; color: #888888; }
  .site-menu-panel details[open] > summary .site-menu-back::before { content: "‹ "; font-weight: 400; }
  .branded header.brand-band .site-menu-panel .donate { display: inline-block; margin-top: 24px; padding: 18px 64px; font-size: 18px; letter-spacing: 0.04em; }
  .branded header.brand-band .site-menu-panel a:focus-visible, .branded header.brand-band .site-menu-panel summary:focus-visible { outline-color: var(--accent); }
}
/* Above the card and the photo, so an open folder isn't hidden behind them. */
.branded header.brand-band:has(.site-menu) { position: relative; z-index: 5; }

/* Cyanic's own pages (/cyanic: Usage, Team, Stripe, Program pages) in
   cyanicare.com's look, measured on staging 2026-11-04: Open Sans, #333 text
   on #f9f9f9, its #29abe2 bar with white bold words over a dark shadow, and
   white buttons with a grey border, as its Navigate and Settings. Links take
   cyanicare's orange (#f35800), a shade deeper so small words stay readable.
   Family and Admin pages keep CP Kids' look. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/open-sans-latin.woff2") format("woff2");
}
body.branded.cyanic-look {
  --accent: #c94700;
  --text: #333333;
  --muted: #5c5c5c;
  --border: #dddddd;
  background: #f9f9f9;
  color: var(--text);
  accent-color: #29abe2;
  font-family: "Open Sans", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
}
/* The band: Admin's (its logo, height, padding, gap and words come from the
   brand-band rules above), its teal fade in cyanicare's blue, so Family,
   Admin, Cyanic and Sign out sit exactly where they do on Admin and family
   pages. Each word's white button is drawn behind it, so it takes no room of
   its own. */
.cyanic-look header.brand-band.cyanic-bar { background: linear-gradient(#29abe2, transparent); }
.cyanic-look header.cyanic-bar .header-link,
.cyanic-look header.cyanic-bar button.link {
  position: relative; z-index: 0; color: #000000; border-bottom-color: transparent; text-shadow: none;
}
.cyanic-look header.cyanic-bar .header-link::before,
.cyanic-look header.cyanic-bar button.link::before {
  content: ""; position: absolute; inset: -8px -9px -6px; z-index: -1;
  background: #ffffff; border: 1px solid #8c8c8c; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.cyanic-look header.cyanic-bar .header-link:hover,
.cyanic-look header.cyanic-bar button.link:hover { border-bottom-color: transparent; }
.cyanic-look header.cyanic-bar .header-link:hover::before,
.cyanic-look header.cyanic-bar button.link:hover::before { background: #ededed; }
/* Where you are: cyanicare's active button, its blue with white words. */
.cyanic-look header.cyanic-bar .header-link[aria-current="page"] { color: #ffffff; border-bottom-color: transparent; text-shadow: 0 1px 0 #444444; }
.cyanic-look header.cyanic-bar .header-link[aria-current="page"]::before { background: #1f9ad0; border-color: #165e7c; }
.cyanic-look header.cyanic-bar a:focus-visible,
.cyanic-look header.cyanic-bar button:focus-visible { outline: 3px solid #ffffff; outline-offset: 7px; }
@media (max-width: 480px) {
  .cyanic-look header.cyanic-bar .header-link::before,
  .cyanic-look header.cyanic-bar button.link::before { inset: -7px -3px -5px; }
}
/* The tabs: cyanicare's white buttons, the current one in its blue. */
.cyanic-look .staff-tabs a {
  display: inline-block; min-height: 0; padding: 8px 14px;
  background: #ffffff; color: #000000; border: 1px solid #8c8c8c; border-radius: 4px;
  font: 700 14px/1.3 "Open Sans", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0; text-transform: none; text-decoration: none; text-shadow: 0 1px 0 #eeeeee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); white-space: nowrap;
}
.cyanic-look .staff-tabs a:hover { background: #ededed; }
.cyanic-look .staff-tabs a[aria-current="page"] { background: #29abe2; border-color: #165e7c; color: #ffffff; text-shadow: 0 1px 0 #444444; }
.cyanic-look .staff-tabs { gap: 6px; }
/* The page: a white panel with a light grey edge, as cyanicare's cards. */
.cyanic-look main.brand-card { border: 1px solid #dddddd; border-radius: 9.6px; box-shadow: none; }
.cyanic-look h1 { font-weight: 600; font-size: 1.5rem; color: #333333; }
.cyanic-look h2 { font-weight: 600; color: #333333; }
.cyanic-look .data th { font: 600 0.9rem/1.3 "Open Sans", system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: #333333; }
.cyanic-look .data thead th { background: #e9e9e9; }
.cyanic-look .data th a.sort { color: inherit; }
/* Buttons in the page: cyanicare's plain grey buttons. */
.cyanic-look main button:not(.link):not(.danger):not(.seen-button),
.cyanic-look main a.button {
  font: 700 0.9rem/1.3 "Open Sans", system-ui, sans-serif;
  letter-spacing: 0; text-transform: none;
  min-height: 0; padding: 10px 18px;
  background: #f6f6f6; color: #333333; border: 1px solid #c4c4c4; border-radius: 4px;
}
.cyanic-look main button:not(.link):not(.danger):not(.seen-button):hover,
.cyanic-look main a.button:hover { background: #ededed; }
.cyanic-look main button.danger { font: 700 0.9rem/1.3 "Open Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; min-height: 0; padding: 10px 18px; border-radius: 4px; }
.cyanic-look :is(input, select, textarea) { font-family: inherit; }
.cyanic-look input:focus-visible, .cyanic-look select:focus-visible, .cyanic-look main button:focus-visible, .cyanic-look main a:focus-visible { outline-color: #29abe2; }

/* Households: search, tabs and the tabs' lists (householdsPage). */
.hh-find { margin: 0 0 1rem; }
.hh-find label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.hh-find-row { display: flex; gap: 8px; }
.hh-find input[type="search"] { flex: 1; min-width: 0; font-size: 1.1rem; }
.hh-tabs { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; margin: 0 0 1rem; }
.hh-tabs a { padding: 10px 14px 8px; border-bottom: 3px solid transparent; white-space: nowrap; font: 600 0.95rem "Helvetica Neue", Helvetica, Arial, sans-serif; text-decoration: none; }
.hh-tabs a[aria-current] { color: var(--text); border-bottom-color: #02ac9e; }
.hh-tabs .n { display: inline-block; min-width: 1.4em; text-align: center; margin-left: 0.25rem; padding: 0 6px; border-radius: 999px; background: #ececec; color: #444444; font-size: 0.8rem; }
.hh-tabs .n.alert { background: #fdf3e1; color: #7a4100; }
.hh-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin: 0 0 0.75rem; }
.hh-bar > a[data-csv] { margin-left: auto; }
.hh-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hh-chips a { padding: 4px 12px; border: 1px solid #02ac9e; border-radius: 999px; font: 600 0.85rem "Helvetica Neue", Helvetica, Arial, sans-serif; text-decoration: none; }
.hh-chips a[aria-current] { background: #02ac9e; color: #ffffff; }
.hh-year { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.hh-year label { font-weight: 600; }
.hh-year select { width: auto; min-height: 0; padding: 6px 32px 6px 10px; }
.hh-ticked { position: sticky; bottom: 0; background: var(--surface); border-top: 2px solid #02ac9e; padding: 10px 0; margin-top: 0.5rem; }
/* The button and form styles set a display, which would show these while hidden. */
.hh-ticked[hidden], .hh-find button[hidden], .hh-year button[hidden] { display: none !important; }
.branded .hh-ticked button, .branded .hh-find button, .branded .hh-year button, .branded section[data-panel] td button { min-height: 0; padding: 8px 16px; font-size: 0.8rem; }
.hh-ticked button.warn { border-color: var(--error); color: var(--error); }
.hh-help summary { cursor: pointer; color: var(--accent); text-decoration: underline; }
.hh-help p { margin: 0.5rem 0 0; }
section[data-panel] > .hint { margin-top: 0; }
@media (max-width: 37.5rem) {
  .hh-bar > a[data-csv] { margin-left: 0; }
  .data.stack-narrow td:has(> input[type="checkbox"]) { float: left; margin: 2px 10px 0 0; }
}

/* Help, Using the portal (src/web/pages/help.js): one reading column, a
   family half in teal and a staff half in blue, as in the guide CP Kids saw.
   The journey is drawn with boxes and arrows in CSS (no scripts on staff pages). */
.help { --help-teal: #007f74; --help-teal-soft: #e1f2f0; --help-blue: #2a4b9b; --help-blue-soft: #e6ebf6; --help-amber: #8a5a00; --help-amber-soft: #fbf1dc; max-width: 55rem; }
.help p, .help li { max-width: 68ch; }
.help-lede { font-size: 1.15rem; color: var(--muted); }
.help h2 { margin-top: 2.5rem; }
.help-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px; margin: 1rem 0; }
.help-terms div { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.help-terms dt { font-weight: 700; }
.help-terms dd { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.help-flow { list-style: none; padding: 16px; margin: 1rem 0; border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; align-items: center; }
.help-flow > li { max-width: none; width: 100%; display: flex; flex-direction: column; align-items: center; }
/* The arrow into each step: a line and a point. */
.help-flow > li + li::before { content: ""; display: block; width: 0; height: 18px; border-left: 2px solid var(--muted); }
.help-flow > li + li > :first-child { position: relative; margin-top: 6px; }
.help-flow > li + li > :first-child::after { content: ""; position: absolute; top: -7px; left: calc(50% - 6px); border: 6px solid transparent; border-top-color: var(--muted); border-bottom: 0; }
.help-box { display: block; max-width: 24rem; padding: 10px 14px; border: 2px solid var(--help-teal); border-radius: 8px; background: var(--help-teal-soft); text-align: center; }
.help-question { border-style: dashed; background: var(--bg); font-weight: 700; }
.help-end { background: var(--help-teal); color: #ffffff; }
.help-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 40rem; margin-top: 10px; }
.help-branches > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.help-branch-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.help-case { border: 1px solid var(--border); border-left: 5px solid var(--help-teal); border-radius: 10px; padding: 0 22px; margin: 0.5rem 0; scroll-margin-top: 4rem; }
/* Folded to its title; the whole title row opens it, with a turning arrow. */
.help-case > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 0; font-weight: 700; font-size: 1.05rem; }
.help-case > summary::-webkit-details-marker { display: none; }
.help-case > summary::before { content: ""; flex: none; width: 0; height: 0; border: 6px solid transparent; border-left: 8px solid var(--help-teal); border-right: 0; transition: transform 0.15s; }
.help-staff .help-case > summary::before { border-left-color: var(--help-blue); }
.help-case[open] > summary::before { transform: rotate(90deg); }
.help-case > summary:hover { color: var(--accent); }
.help-case[open] { padding-bottom: 18px; }
.help-hint { color: var(--muted); margin-top: -0.25rem; }
/* A staff page's link to its part of Help: top right, beside the heading. */
.how-this-works { float: right; margin: 0 0 0.5rem 1rem; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .help-case > summary::before { transition: none; } }
.help-staff .help-case { border-left-color: var(--help-blue); }
.help-who { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.help-case ol { margin: 0; padding-left: 22px; }
.help-case li { margin: 6px 0; }
.help-note, .help-good { border-radius: 8px; padding: 10px 14px; margin: 12px 0 0; }
.help-note { background: var(--help-amber-soft); }
.help-note b { color: var(--help-amber); }
.help-good { background: var(--help-teal-soft); }
.help-staff .help-good { background: var(--help-blue-soft); }
.help-prices { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 10px; }
.help-prices li { border: 1px solid var(--border); border-radius: 8px; padding: 12px; min-width: 0; margin: 0; }
.help-prices b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.help-prices span { color: var(--muted); font-size: 0.92rem; }
.help-days { margin: 6px 0 0; padding-left: 20px; }
.help-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin: 12px 0; }
.help-table table { border-collapse: collapse; width: 100%; }
.help-table th, .help-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.help-table tr:last-child td { border-bottom: 0; }
.help-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
@media (max-width: 37.5rem) {
  .help-branches { grid-template-columns: 1fr; }
  .help-case { padding-inline: 16px; }
}
/* Five staff sections (with Help) fit a phone without scrolling the menu. */
@media (max-width: 30rem) {
  .branded .staff-nav { padding-inline: 4px; }
  .branded .staff-nav a { padding-inline: 7px; }
}

/* An email as the family will read it, on the page staff confirm it on. */
.email-preview { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 0 0 1.25rem; background: var(--surface); }
.email-preview pre { font: inherit; white-space: pre-wrap; margin: 0; }

/* Help, What families see: a row of family pages per way of joining, each
   a shrunk frame (static/family-screens.js sizes it once loaded). */
.help.family-screens { max-width: none; }
.screen-sizes { display: flex; gap: 8px; margin: 1rem 0; }
.screen-sizes a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.screen-sizes a[aria-current="page"] { background: var(--help-teal); border-color: var(--help-teal); color: #fff; }
.screen-group h2 { margin-top: 2rem; }
.screen-row { list-style: none; padding: 0 0 12px; margin: 0; display: flex; gap: 16px; overflow-x: auto; align-items: flex-start; }
.screen-row li { flex: 0 0 15rem; margin: 0; }
.screen-row.screen-phone li { flex-basis: 12rem; }
.screen-thumb { display: block; position: relative; text-decoration: none; color: inherit; }
.screen-frame { display: block; position: relative; overflow: hidden; height: 12rem; border: 1px solid var(--border); border-radius: 6px; background: #f3f3f3; }
.screen-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.screen-thumb:hover .screen-frame, .screen-thumb:focus-visible .screen-frame { border-color: var(--help-teal); box-shadow: 0 0 0 2px var(--help-teal); }
.screen-label { display: block; margin-top: 6px; font-size: 0.92rem; }
.screen-thumb:hover .screen-label { text-decoration: underline; }
/* Until the script sizes them: 15rem of 1280 pixels, 12rem of 390, a screen high. */
.screen-computer .screen-frame iframe { transform: scale(0.1875); }
.screen-phone .screen-frame iframe { transform: scale(0.4923); }
.screen-computer .screen-frame { height: 10.5rem; }
.screen-phone .screen-frame { height: 26rem; }

/* Help's example family pages, opened full size (examplePage in
   src/web/pages/family-screens.js): a strip saying which page it is, and an
   arrow at each edge, shown on hover or keyboard focus (always on touch
   screens), to the page before and after. The page itself is inert. */
.example-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fdf3e1; border-bottom: 3px solid #a15c00; color: #3d2a00; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.95rem; }
.example-bar p { margin: 0; }
.example-bar a { color: #3d2a00; font-weight: 600; }
.example-arrow { position: fixed; top: 0; bottom: 0; z-index: 50; width: 12vw; min-width: 56px; max-width: 160px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.example-prev { left: 0; }
.example-next { right: 0; }
.example-arrow span { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 63, 58, 0.85); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.15s; }
.example-arrow svg { width: 28px; height: 28px; fill: none; stroke: #ffffff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.example-arrow:hover span, .example-arrow:focus-visible span { opacity: 1; }
.example-arrow:focus-visible { outline: none; }
.example-arrow:focus-visible span { outline: 3px solid #ffbf47; outline-offset: 2px; }
@media (hover: none) { .example-arrow span { opacity: 0.85; } .example-arrow { width: 64px; min-width: 0; } }
