/* family-checkers.css: the Family checkers page (family-checkers.html, js/family-checkers.js). Class prefix fc-.
   Same visual language as the Help Center (css/help-center.css) and Compare districts: navy #14324F, gold
   #F2B33D, rounded white cards on a soft grey page. Colors come from the tokens in css/pages.css (light and
   dark) plus the few below. Phone first: one column, no horizontal scroll at 360px; from 820px the form and
   the result sit side by side. Touch targets are at least 44px tall. */

.fc-page {
  --fc-bg: #F5F7FA; --fc-navy: #14324F; --fc-tab-ink: #fff;
  --fc-good-line: #17784A; --fc-ok-line: #B07A12; --fc-no-line: #8593A3;
  --fc-you-bg: #FFF1D6;
  background: var(--fc-bg);
}
[data-theme="dark"] .fc-page {
  --fc-bg: var(--bg); --fc-navy: #6CB0F0; --fc-tab-ink: #0B1520;
  --fc-good-line: #5FD08F; --fc-ok-line: #F2B33D; --fc-no-line: #7F92A6;
  --fc-you-bg: rgba(242,179,61,.16);
}
.fc-page .wrap { max-width: 1120px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .fc-page .wrap { padding-left: 24px; padding-right: 24px; } }
.fc-page main :focus-visible { outline: 3px solid var(--focus-ring, var(--accent)); outline-offset: 2px; }
.fc-page main a { color: var(--accent); }
.fc-page main a:not(.fc-btnlink) { overflow-wrap: anywhere; }

/* ------------------------------------------------------------ hero */
.fc-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.fc-hero .wrap { padding-top: 28px; padding-bottom: 22px; }
.fc-hero h1 { margin: 4px 0 8px; font-size: 1.75rem; line-height: 1.2; font-weight: 800; color: var(--ink); }
@media (min-width: 720px) { .fc-hero h1 { font-size: 2.1rem; } .fc-hero .wrap { padding-top: 40px; padding-bottom: 30px; } }
.fc-lead { margin: 0 0 10px; max-width: 760px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.fc-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 0; max-width: 760px; font-size: .9rem; color: var(--text); }
.fc-privacy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--good); stroke-width: 2; stroke-linecap: round; }

/* ------------------------------------------------------------ tabs */
.fc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 18px 0 16px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.fc-tabs:focus { outline: none; }
.fc-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding: 6px 4px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .84rem; line-height: 1.2;
  text-align: center; cursor: pointer; }
.fc-tab svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-tab:hover { background: var(--hover); }
.fc-tab[aria-selected="true"] { background: var(--fc-navy); color: var(--fc-tab-ink); box-shadow: inset 0 -3px 0 var(--gold); }
@media (min-width: 560px) { .fc-tab { flex-direction: row; gap: 8px; font-size: .95rem; } }

/* ------------------------------------------------------------ panel */
.fc-panel { margin-bottom: 22px; }
.fc-panel:focus { outline: none; }
.fc-panel:focus-visible { outline: 3px solid var(--focus-ring, var(--accent)); outline-offset: 4px; border-radius: 12px; }
.fc-h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.fc-h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.fc-sub { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.fc-grid { display: grid; gap: 14px; align-items: start; }
@media (min-width: 820px) { .fc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fc-out { position: sticky; top: 12px; } }
.fc-form { padding: 18px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fc-field, .fc-fieldset { min-width: 0; }
.fc-fieldset { margin: 0; padding: 0; border: 0; }
.fc-label { display: block; margin: 0 0 6px; padding: 0; font-size: .95rem; font-weight: 800; color: var(--ink); }
.fc-mini { display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.fc-help { margin: -2px 0 8px; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.fc-optional { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; vertical-align: 2px; }
.fc-form input[type=text], .fc-form input[type=search], .fc-form select {
  width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
[data-theme="dark"] .fc-form select, [data-theme="dark"] .fc-form input { color-scheme: dark; }
.fc-money { position: relative; }
.fc-money > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.fc-form .fc-money input { padding-left: 26px; }
.fc-checks { display: flex; flex-direction: column; gap: 2px; }
.fc-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; font-size: .92rem; color: var(--text); cursor: pointer; line-height: 1.4; }
.fc-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--navy); }
[data-theme="dark"] .fc-check input, [data-theme="dark"] .fc-grade input { accent-color: var(--accent); }
.fc-incomes { display: flex; flex-direction: column; gap: 10px; }
.fc-inc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.fc-inc-f { min-width: 0; }
.fc-add { margin-top: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.fc-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fc-add[hidden] { display: none; }
.fc-x { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.fc-x:hover { background: var(--hover); color: var(--ink); }
.fc-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fc-details { margin-top: 10px; font-size: .86rem; color: var(--text); }
.fc-details summary, .fc-src summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--accent); cursor: pointer; }
.fc-details p { margin: 4px 0 0; line-height: 1.5; color: var(--muted); }

/* school combobox */
.fc-combo { position: relative; }
.fc-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.fc-list[hidden] { display: none; }
.fc-opt { display: flex; flex-direction: column; gap: 1px; min-height: 44px; justify-content: center; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  font-size: .92rem; color: var(--text); }
.fc-opt.is-active, .fc-opt:hover { background: var(--hover); box-shadow: inset 3px 0 0 var(--accent); }
.fc-opt-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.fc-opt-sub { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.fc-opt-none { padding: 10px; color: var(--muted); }
.fc-chosen { margin-top: 8px; }
.fc-chosen[hidden] { display: none; }
.fc-chip { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 6px 6px 12px; border: 2px solid var(--fc-navy); border-radius: 12px; background: var(--surface); }
.fc-chip-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc-chip-name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.fc-chip-sub { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }

/* grade picker */
.fc-grades { display: flex; flex-direction: column; gap: 8px; }
.fc-grade { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); font-size: .92rem; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1.35; }
.fc-grade:hover { background: var(--hover); }
.fc-grade:has(input:checked) { border: 2px solid var(--fc-navy); background: var(--surface); }
.fc-grade input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--navy); }

/* ------------------------------------------------------------ results */
.fc-out { min-width: 0; }
.fc-result { min-height: 80px; }
.fc-placeholder { margin: 0; padding: 18px; border: 2px dashed var(--border); border-radius: 16px; color: var(--muted); font-size: .95rem; background: var(--surface); }
.fc-verdict, .fc-vax { margin: 0 0 10px; padding: 16px 18px; border: 1px solid var(--border); border-left: 6px solid var(--fc-no-line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.fc-verdict.fc-good { border-left-color: var(--fc-good-line); }
.fc-verdict.fc-ok { border-left-color: var(--fc-ok-line); }
.fc-vax { border-left-color: var(--gold); }
.fc-verdict-h { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.fc-verdict p:not(.fc-verdict-h), .fc-vax p:not(.fc-verdict-h) { margin: 6px 0 0; font-size: .92rem; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.fc-small, .fc-verdict .fc-small { font-size: .84rem !important; color: var(--muted) !important; line-height: 1.45; }
.fc-note-line { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info-text); font-size: .9rem; }
.fc-err { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 2px solid var(--bad); color: var(--bad); font-weight: 600; }
.fc-estimate { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-size: .88rem; font-weight: 600; }
.fc-estimate svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* vaccine lists */
.fc-vlist { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.fc-vlist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.fc-vlist li:first-child { border-top: 0; }
.fc-vname { font-weight: 700; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.fc-vdose { color: var(--text); text-align: right; margin-left: auto; overflow-wrap: anywhere; }
.fc-vlist li.is-none .fc-vdose { color: var(--muted); font-style: italic; }
.fc-age { margin-top: 10px; padding-top: 6px; border-top: 2px solid var(--border); }
.fc-age:first-of-type { border-top: 0; margin-top: 4px; }
.fc-age-h { margin: 6px 0 0 !important; font-weight: 800; color: var(--ink) !important; }

/* college chart */
.fc-table-card { padding: 16px; margin: 14px 0 0; overflow-x: auto; }
.fc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.fc-table th, .fc-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.fc-table th { font-size: .78rem; color: var(--muted); font-weight: 700; }
.fc-table td:first-child { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.fc-table tr.is-you td { background: var(--fc-you-bg); }
.fc-you { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--gold); color: #14324F; font-size: .72rem; font-weight: 800; white-space: nowrap; }

/* ------------------------------------------------------------ info cards, links, sources */
.fc-info { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 820px) { .fc-info { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.fc-card { padding: 18px; min-width: 0; }
.fc-card p { margin: 0 0 10px; font-size: .92rem; line-height: 1.55; color: var(--text); }
.fc-card p:last-child { margin-bottom: 0; }
.fc-ul { margin: 0 0 10px; padding-left: 20px; font-size: .92rem; line-height: 1.5; }
.fc-ul li { margin-bottom: 6px; }
.fc-btnlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid currentColor; font-weight: 700; text-decoration: none; }
.fc-btnlink:hover { background: var(--hover); }
.fc-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.fc-links li { min-height: 32px; display: flex; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.fc-links a, .fc-src a, .fc-card .fc-small a { display: inline-block; min-height: 24px; line-height: 24px; font-weight: 600; }
.fc-links-row { margin-top: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.fc-sources { margin-top: 10px; }
.fc-src ul { margin: 4px 0 0; padding-left: 20px; font-size: .84rem; line-height: 1.5; }
.fc-src li { margin-bottom: 6px; }

.fc-about { margin: 8px 0 26px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.fc-about ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
@media (min-width: 820px) { .fc-about ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fc-about li { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.fc-about b { color: var(--ink); }
.fc-about span { color: var(--muted); line-height: 1.45; }

@media print {
  .fc-tabs, .fc-add, .fc-x, .fc-hero .fc-privacy svg { display: none !important; }
  .fc-panel[hidden] { display: none !important; }
}
