/* help-center.css: the Family Help Center page around the guides (help.html, js/help-center.js):
   the hero with "Your district", the "Next up" banner, the district panel and the dates timeline.
   Class prefix hc-. Colors come from the tokens in css/pages.css plus the few below, light and dark. */

.help-page {
  --hc-bg: #F5F7FA; --hc-line: #EEF1F5; --hc-text-2: #3D4B5C; --hc-field: #C9D4DF; --hc-navy: #14324F;
  --hc-btn-bg: #14324F; --hc-btn-fg: #fff;
  /* category tints: background / text */
  --c-enroll-bg: #E8F0FB; --c-enroll: #1F5FAD;
  --c-test-bg: #F1EAFB; --c-test: #6B3FA0;
  --c-cal-bg: #E3F4F3; --c-cal: #0F6464;
  --c-money-bg: #E6F4EC; --c-money: #17784A;
  background: var(--hc-bg);
}
[data-theme="dark"] .help-page {
  --hc-bg: var(--bg); --hc-line: #1E3042; --hc-text-2: #B8C5D3; --hc-field: #36506A; --hc-navy: #1C3D60;
  --hc-btn-bg: #6CB0F0; --hc-btn-fg: #0B1520;
  --c-enroll-bg: rgba(108,160,240,.18); --c-enroll: #9EC5F8;
  --c-test-bg: rgba(170,130,230,.20); --c-test: #CDB3F5;
  --c-cal-bg: rgba(60,190,180,.18); --c-cal: #7FDCD2;
  --c-money-bg: rgba(46,160,96,.20); --c-money: #7FDBA3;
}
.help-page .wrap { max-width: 1160px; padding-left: 24px; padding-right: 24px; }
.help-page .gd-main :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.help-page .gd-main .hc-count :focus-visible, .help-page .gd-main .hc-next :focus-visible { outline-color: var(--accent); }
.hc-h2 { margin: 0 0 16px; font-size: 1.625rem; font-weight: 800; color: var(--ink); }
.hc-h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; color: var(--hc-text-2); }
.hc-note { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.hc-note a { font-weight: 600; }

/* ------------------------------------------------------------ buttons */
.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px;
  border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .9375rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.hc-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hc-btn-navy { background: var(--hc-btn-bg); color: var(--hc-btn-fg); }
.hc-btn-navy:hover { filter: brightness(1.12); }
.hc-btn-line { background: var(--surface); color: var(--ink); border-color: currentColor; }
.hc-btn-line:hover { background: var(--hover); }
.hc-btn-white { background: #fff; color: #14324F; }
.hc-btn-ghostw { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hc-btn-ghostw:hover { background: rgba(255,255,255,.1); }
.hc-btn[disabled] { opacity: .55; cursor: default; filter: none; }
.hc-linkbtn { background: none; border: 0; padding: 0; min-height: 24px; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------------------ hero + "Your district" */
.hc-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hc-hero-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
.hc-district { flex: 1 1 380px; min-width: 0; background: var(--hc-bg); border: 1px solid var(--border); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px; }
.hc-district-h { margin: 0; font-size: 1.125rem; font-weight: 800; color: var(--ink); }
#hc-dist-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hc-loading { margin: 0; }
.hc-dist-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 2px solid var(--hc-navy); border-radius: 14px; padding: 10px 12px 10px 14px; }
[data-theme="dark"] .hc-dist-card { border-color: var(--accent); }
.hc-dist-icon { width: 40px; height: 40px; border-radius: 10px; background: #FFF1D6; color: #14324F; display: grid; place-items: center; flex: none; }
[data-theme="dark"] .hc-dist-icon { background: rgba(242,179,61,.15); color: var(--gold); }
.hc-dist-icon svg, .hc-dist-jump svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-dist-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hc-dist-name { display: block; font-weight: 700; color: var(--ink); }
.hc-dist-sub { display: block; font-size: .8125rem; color: var(--muted); }
.hc-change { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; min-height: 44px; min-width: 44px; padding: 0 8px; border-radius: 8px; cursor: pointer; }
.hc-change:hover { text-decoration: underline; }
.hc-dist-pick[hidden] { display: none; }
.hc-lbl { display: block; font-size: .875rem; font-weight: 600; color: var(--hc-text-2); }
.hc-row-ctl { display: flex; gap: 8px; margin-top: 6px; min-width: 0; }
.hc-district .hc-select, .hc-district .hc-input { flex: 1; min-width: 0; width: auto; min-height: 46px; padding: 0 14px; border: 1px solid var(--hc-field);
  border-radius: 12px; background: var(--surface); color: var(--text); font-size: .9375rem; }
.hc-addr-msg { margin: 0; font-size: .875rem; color: var(--muted); }
.hc-addr-msg:empty { margin-top: -12px; }
.hc-addr-msg.is-err { color: var(--bad); }
.hc-addr-msg.is-ok { color: var(--good); font-weight: 600; }
.hc-remember { margin: 0; font-size: .8125rem; color: var(--muted); }

/* ------------------------------------------------------------ "Next up" */
.hc-next { margin-top: 28px; background: #FFF6E5; border: 1px solid #F3D9A4; border-radius: 20px; padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hc-next[hidden] { display: none; }
.gd-guide-open .hc-next { display: none; }
.hc-next-date { width: 72px; height: 76px; border-radius: 14px; background: #fff; border: 1px solid #F3D9A4; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hc-next-date .hc-tile-m { font-size: .75rem; font-weight: 800; color: #9A5B00; letter-spacing: .06em; }
.hc-next-date .hc-tile-d { font-size: 1.875rem; font-weight: 800; color: #14324F; line-height: 1; }
.hc-next-days { display: none; }
.hc-next-body { flex: 1 1 380px; min-width: 0; }
.hc-next-kicker { margin: 0; font-size: .8125rem; font-weight: 800; color: #7A4F00; text-transform: uppercase; letter-spacing: .06em; }
.hc-next-title { margin: 2px 0 0; font-size: 1.3125rem; font-weight: 800; color: #14324F; line-height: 1.3; }
.hc-next-meta { margin: 2px 0 0; font-size: .875rem; color: #5A4A2A; }
.hc-tent { font-size: .875rem; font-weight: 600; }
.hc-next-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-next .hc-btn-line { color: #14324F; background: #fff; border-color: #14324F; }
.hc-next .hc-btn-navy { background: #14324F; color: #fff; }
[data-theme="dark"] .hc-next { background: var(--warn-bg); border-color: var(--warn-border); }
[data-theme="dark"] .hc-next-date { background: var(--surface); border-color: var(--warn-border); }
[data-theme="dark"] .hc-next-date .hc-tile-m, [data-theme="dark"] .hc-next-kicker { color: var(--warn-text); }
[data-theme="dark"] .hc-next-date .hc-tile-d, [data-theme="dark"] .hc-next-title { color: var(--ink); }
[data-theme="dark"] .hc-next-meta { color: var(--text); }
[data-theme="dark"] .hc-next .hc-btn-line { background: var(--surface); color: var(--ink); border-color: var(--ink); }
[data-theme="dark"] .hc-next .hc-btn-navy { background: var(--hc-btn-bg); color: var(--hc-btn-fg); }

/* ------------------------------------------------------------ district panel */
.hc-panel { margin-top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; min-width: 0; }
.hc-panel .gd-slot-fallback .hc-h2 { font-size: 1.375rem; }
.hc-panel-empty p { margin: 0 0 12px; color: var(--muted); }
.hc-panel-empty .hc-h2 { font-size: 1.375rem; margin-bottom: 8px; }
.hc-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hc-panel-head .hc-h2 { margin: 0; font-size: 1.5rem; overflow-wrap: anywhere; min-width: 0; }
.hc-ext { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .9375rem; }
.hc-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.hc-contacts, .hc-soon { min-width: 0; }
.hc-contacts .hc-note { margin-top: 10px; }
.hc-clist, .hc-slist { list-style: none; margin: 0; padding: 0; }
.hc-crow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hc-line); min-height: 60px; }
.hc-crow-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hc-crow-k { display: block; font-weight: 700; color: var(--text); }
.hc-crow-note { display: block; font-size: .8125rem; color: var(--muted); }
.hc-open { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.hc-open-alt { font-weight: 600; }
.hc-open, .hc-ext, .hc-more { text-decoration: none; }
.hc-open:hover, .hc-ext:hover, .hc-more:hover { text-decoration: underline; }
.hc-srow { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--hc-line); }
.hc-srow-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hc-srow-title { display: block; font-weight: 700; color: var(--text); }
.hc-srow-meta { display: block; font-size: .8125rem; color: var(--muted); }
.hc-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-weight: 700; }
.hc-soon .hc-note { margin: 8px 0 0; }

/* date tiles: month over day, tinted by category */
.hc-tile { --c-bg: var(--c-enroll-bg); --c-ink: var(--c-enroll); width: 58px; height: 58px; border-radius: 14px; background: var(--c-bg); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hc-tile-m { font-size: .6875rem; font-weight: 800; color: var(--c-ink); letter-spacing: .02em; line-height: 1.2; }
.hc-tile-d { font-size: 1.375rem; font-weight: 800; color: var(--ink); line-height: 1; }
.hc-tile .hc-tile-sm { font-size: .875rem; }
.hc-tile-plain { width: 52px; height: 52px; border-radius: 12px; background: var(--hc-bg); border: 1px solid var(--border); --c-ink: var(--muted); }
.hc-tile-plain .hc-tile-d { font-size: 1.25rem; }
.hc-tile-enroll, .hc-cat-enroll { --c-bg: var(--c-enroll-bg); --c-ink: var(--c-enroll); }
.hc-tile-test, .hc-cat-test { --c-bg: var(--c-test-bg); --c-ink: var(--c-test); }
.hc-tile-cal, .hc-cat-cal { --c-bg: var(--c-cal-bg); --c-ink: var(--c-cal); }
.hc-tile-money, .hc-cat-money { --c-bg: var(--c-money-bg); --c-ink: var(--c-money); }

/* ------------------------------------------------------------ Important dates */
.hc-dates { margin-top: 48px; }
.hc-dates-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hc-dates-head > div:first-child { min-width: 0; }
.hc-dates-title { margin: 0; font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.hc-dates-lead { margin: 6px 0 0; color: var(--hc-text-2); font-size: 1.0625rem; }
.hc-dist-jump { display: flex; align-items: center; gap: 10px; max-width: 100%; background: var(--surface); border: 1px solid var(--hc-field); border-radius: 12px;
  padding: 0 16px; min-height: 48px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.hc-dist-jump span:first-of-type { min-width: 0; overflow-wrap: anywhere; }
.hc-dist-jump-c { color: var(--accent); white-space: nowrap; }
.hc-dist-jump:hover { background: var(--hover); }
#dt-slot { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 16px; min-width: 0; }

.hc-count { background: var(--hc-navy); color: #fff; border-radius: 22px; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.hc-count-days { width: 84px; height: 92px; border-radius: 16px; background: var(--gold); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hc-count-days .hc-tile-d { font-size: 2.75rem; color: #14324F; }
.hc-count-days .hc-tile-m { font-size: .8125rem; color: #14324F; }
.hc-count-body { flex: 1 1 420px; min-width: 0; }
.hc-count-kicker { margin: 0; font-size: .8125rem; font-weight: 800; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.hc-count-title { margin: 4px 0 0; font-size: 1.625rem; font-weight: 800; line-height: 1.25; }
.hc-count-detail { margin: 6px 0 0; font-size: .9375rem; color: #C9D8E8; }
.hc-count-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-count .hc-btn { min-height: 48px; padding: 0 18px; }
.help-page .gd-main .hc-count :focus-visible { outline-color: var(--gold); }

.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hc-chip { font: inherit; font-weight: 700; font-size: .9375rem; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hc-field); white-space: nowrap; }
.hc-chip:hover { border-color: var(--accent); }
.hc-chip[aria-pressed="true"] { background: var(--hc-btn-bg); color: var(--hc-btn-fg); border-color: var(--hc-btn-bg); }

.hc-tl { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.hc-tl-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hc-tl-note { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info-text); font-size: .9rem; }
.hc-tl-note a { color: inherit; font-weight: 700; }
.hc-month[hidden] { display: none; }
.hc-month-h { margin: 0 0 10px; font-size: .9375rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hc-month-open .hc-month-h { color: var(--good); }
.hc-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.hc-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--hc-line); }
.hc-row.is-first { border-top: 0; }
.hc-row[hidden] { display: none; }
.hc-row-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hc-row-title { display: block; font-weight: 700; font-size: 1rem; color: var(--text); }
.hc-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.hc-row-meta a { display: inline-flex; align-items: center; min-height: 24px; }
.hc-cat { background: var(--c-bg); color: var(--c-ink); font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.hc-ics { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--hc-field); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; }
.hc-ics:hover { background: var(--hover); border-color: var(--accent); }
.hc-ics svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-empty { margin: 0; background: var(--surface); border: 1px dashed var(--hc-field); border-radius: 18px; padding: 24px; color: var(--muted); }
.hc-empty[hidden] { display: none; }

.hc-tl-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hc-addall { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.hc-addall .hc-h3 { margin: 0; font-size: 1.125rem; color: var(--ink); }
.hc-addall p { margin: 0; font-size: .875rem; color: var(--muted); }
.hc-addall .hc-btn { min-height: 48px; white-space: normal; text-align: center; }
.hc-tips-h { margin: 4px 0 0; font-size: .9375rem; font-weight: 800; color: var(--hc-text-2); text-transform: uppercase; letter-spacing: .08em; }
.hc-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.hc-tip { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: flex; gap: 12px; }
.hc-tip-icon { width: 36px; height: 36px; border-radius: 10px; background: #FFF1D6; color: #7A4F00; display: grid; place-items: center; flex: none; }
[data-theme="dark"] .hc-tip-icon { background: rgba(242,179,61,.15); color: var(--gold); }
.hc-tip-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-tip-text { min-width: 0; overflow-wrap: anywhere; }
.hc-tip-title { display: block; font-weight: 700; color: var(--ink); }
.hc-tip-body { display: block; margin-top: 2px; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.hc-tip a { display: inline-flex; align-items: center; min-height: 24px; font-size: .8125rem; font-weight: 600; }

/* ------------------------------------------------------------ tablets */
@media (max-width: 760px) {
  .hc-panel-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ------------------------------------------------------------ phones (Phone mockup) */
@media (max-width: 600px) {
  .help-page .wrap { padding-left: 16px; padding-right: 16px; }
  .hc-hero-in { gap: 14px; padding-top: 24px; padding-bottom: 20px; }
  .hc-district { flex-basis: 100%; background: none; border: 0; padding: 0; gap: 8px; }
  .hc-district-h { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .hc-dist-card { background: var(--hc-bg); min-height: 56px; padding: 8px 8px 8px 12px; }
  .hc-dist-icon, .hc-dist-sub { display: none; }
  .hc-district.is-set:not(.is-picking) .hc-addr, .hc-district.is-set:not(.is-picking) .hc-remember,
  .hc-district.is-set:not(.is-picking) .hc-addr-msg:empty { display: none; }

  .hc-next { margin-top: 16px; background: var(--hc-navy); border: 0; border-radius: 18px; padding: 16px; gap: 6px 14px;
    display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; }
  .hc-next-date { display: none; }
  .hc-next-days { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 64px; border-radius: 12px;
    background: var(--gold); grid-row: 1 / span 2; }
  .hc-next-days .hc-tile-d { font-size: 1.75rem; font-weight: 800; color: #14324F; line-height: 1; }
  .hc-next-days .hc-tile-m { font-size: .6875rem; font-weight: 800; color: #14324F; }
  .hc-next-kicker, [data-theme="dark"] .hc-next-kicker { font-size: .75rem; color: var(--gold); }
  .hc-next-title, [data-theme="dark"] .hc-next-title { font-size: 1.0625rem; color: #fff; }
  .hc-next-meta { display: none; }
  .hc-next .hc-btn svg { display: none; }
  .hc-next-actions { grid-column: 2; gap: 4px 8px; }
  .hc-next .hc-btn, [data-theme="dark"] .hc-next .hc-btn { min-height: 44px; padding: 0 10px; font-size: .875rem; background: transparent; color: #fff;
    border-color: rgba(255,255,255,.55); }
  .help-page .gd-main .hc-next :focus-visible { outline-color: var(--gold); }

  .hc-panel { margin-top: 22px; padding: 14px; border-radius: 16px; }
  .hc-panel-head .hc-h2 { font-size: 1.0625rem; }
  .hc-soon { display: none; }
  .hc-crow { min-height: 48px; }

  .hc-dates { margin-top: 28px; }
  .hc-dates-head { margin-bottom: 12px; gap: 10px; }
  .hc-dates-title { font-size: 1.25rem; letter-spacing: 0; }
  .hc-dates-lead { font-size: .9375rem; }
  .hc-dist-jump { min-height: 44px; padding: 0 12px; font-size: .875rem; }
  #dt-slot { gap: 14px; }
  .hc-count { display: none; }
  .hc-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .hc-chip { flex: none; padding: 0 14px; font-size: .875rem; }
  .hc-tl-main { gap: 16px; }
  .hc-list { border-radius: 16px; }
  .hc-row { gap: 12px; padding: 12px 14px; }
  .hc-tile { width: 48px; height: 50px; border-radius: 12px; }
  .hc-tile-m { font-size: .625rem; }
  .hc-tile-d { font-size: 1.1875rem; }
  .hc-tile .hc-tile-sm { font-size: .75rem; }
  .hc-row-title { font-size: .9375rem; }
  .hc-tl-side { flex-basis: 100%; }
}

@media print {
  .hc-next, .hc-district, .hc-chips, .hc-ics, .hc-addall, .hc-dist-jump { display: none !important; }
  .help-page { background: #fff; }
}
