/* SparkLab — shared utility classes
 * Loaded site-wide after styles.css. Purpose: replace the small, repeated inline
 * style="…" snippets that were scattered across pages (font sizes, centering,
 * spacing, fine-print notes) with named classes, so markup carries no inline CSS.
 * Add new shared utilities here; put page-unique rules in /assets/css/page-<key>.css. */

/* Text scale */
.text-sm   { font-size: .9rem; }
.text-xs   { font-size: .82rem; }
.text-2xs  { font-size: .8rem; }

/* Alignment & spacing */
.u-center  { text-align: center; }
.u-justify-center { justify-content: center; }
.u-tt-none { text-transform: none; }
.u-m0      { margin: 0; }
.u-mt-0    { margin-top: 0; }
.u-mt-3xs  { margin-top: .4rem; }
.u-mt-2xs  { margin-top: .5rem; }
.u-mt-xs   { margin-top: .6rem; }
.u-mt-sm   { margin-top: .9rem; }
.u-mt-1    { margin-top: 1rem; }
.u-mt-2    { margin-top: 1.1rem; }
.u-mt-lg   { margin-top: 1.2rem; }
.u-mt-25   { margin-top: 1.25rem; }
.u-mt-3    { margin-top: 1.4rem; }
.u-mb-2xs  { margin-bottom: .4rem; }
.u-mb-half { margin-bottom: .5rem; }
.u-mb-1    { margin-bottom: 1rem; }

/* Font weight (were inline font-weight:… on links and labels) */
.u-fw-medium   { font-weight: 500; }
.u-fw-semibold { font-weight: 600; }
.u-fw-bold     { font-weight: 700; }

/* Teal label accent (was inline color:var(--teal-dark) on panel labels) */
.label-teal { color: var(--teal-dark); }

/* Common backgrounds & grid gaps (were repeated inline) */
.bg-white     { background: #fff; }
.grid-gap-1   { gap: 1rem; }
.grid-gap-lg  { gap: 1.1rem; }

/* Vertical button stack inside a .meta-row (was inline flex-direction:column …) */
.meta-stack   { flex-direction: column; align-items: stretch; gap: .5rem; }

/* Flex row with items pushed apart (repeated across admin list rows & headers) */
.row-between  { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Visibility (initial-state hide that JS toggles, instead of inline style="display:none") */
.is-hidden    { display: none !important; }

/* Fine-print note under a section (was inline font-size/center/margin combos) */
.note-fine  { font-size: .82rem; text-align: center; margin-top: 1rem; }
.note-finer { font-size: .8rem;  text-align: center; margin-top: 1rem; }

/* ── Monthly tuition table (Admissions + Afternoon Academy) ──
   Two block groups (Half Day / Full Day) × 2, 3 or 5 fixed weekdays.
   Lives here rather than in page-admissions.css because two pages render it
   and only a page's own page-<key>.css is auto-loaded.
   Desktop = one table with a rowspan label column; phone = stacked cards. */

.tuition-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 620px;
  font-size: .95rem; }
.tuition-table thead th { font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: .92rem; background: var(--green-dark, #6d8b62); padding: .85rem .8rem; text-align: center;
  border: 0; }
.tuition-table thead th:first-child { background: transparent; }
.tuition-table thead th:nth-child(2) { border-radius: 14px 0 0 14px; }
.tuition-table thead th:last-child { border-radius: 0 14px 14px 0; }

.tuition-table tbody td,
.tuition-table tbody th { padding: .9rem .8rem; text-align: center; vertical-align: middle;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tuition-table tbody td:first-of-type { border-left: 1px solid var(--line); border-radius: 14px 0 0 14px; }
.tuition-table tbody td:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }

/* The rowspan label cell on the left of each block group */
.tuition-table tbody th.tt-block { width: 118px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--green-soft, #e7eee3); }
.tuition-table tbody th.tt-block-full { background: var(--coral-soft, #f6e6e0); }
.tt-block-icon { display: block; font-size: 1.6rem; line-height: 1.1; }
.tt-block-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; color: var(--ink); margin-top: .2rem; }

.tuition-table .tt-sched { font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: 1rem; }
.tuition-table .tt-price { font-family: var(--font-display); font-weight: 700; color: var(--ink);
  font-size: 1.22rem; }
.tuition-table .tt-hours { color: var(--muted); font-weight: 600; }
.tuition-table .tt-hourly { font-family: var(--font-display); font-weight: 700; color: var(--ink);
  white-space: nowrap; }

/* Best-value rows (5 days) get the warm highlight */
.tuition-table tr.tt-best td { background: var(--sun-soft, #fbe7ae); border-color: #efd48f; }
.tuition-table .tt-value { white-space: nowrap; }
/* With only schedule, price and the best-value note left, a full-width table
   leaves the right half empty: keep it compact and centred instead. */
.tuition-table { max-width: 820px; margin-left: auto; margin-right: auto; }
.tuition-table .tt-sched { width: 26%; }
.tuition-table .tt-price { width: 22%; }
.tuition-table .tt-hourly-note { font-family: var(--font-display); font-weight: 700; color: var(--ink);
  margin-left: .35rem; }
.tt-flag { display: inline-block; margin-left: .45rem; padding: .2rem .55rem; border-radius: 999px;
  background: var(--accent-dark, #c2593c); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle; }

/* ── Phone: stacked cards replace the table ── */
.tuition-cards { display: none; }
@media (max-width: 720px) {
  #tuition .table-wrap, .tuition-table { display: none; }
  .tuition-cards { display: grid; gap: .9rem; }
  .tuition-block { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
  .tuition-block-head { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem;
    background: var(--green-soft, #e7eee3); }
  .tuition-block.tt-block-full .tuition-block-head { background: var(--coral-soft, #f6e6e0); }
  .tuition-block-head .tt-block-icon { font-size: 1.5rem; }
  .tuition-block-head strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); display: block; }
  .tuition-block-head small { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); }
  .tuition-block ul { list-style: none; margin: 0; padding: .3rem .6rem; }
  .tuition-block li { display: flex; justify-content: space-between; align-items: center; gap: .6rem;
    padding: .6rem .5rem; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--text); }
  .tuition-block li:last-child { border-bottom: 0; }
  .tuition-block li b { font-family: var(--font-display); font-weight: 700; color: var(--ink);
    font-size: 1.12rem; white-space: nowrap; }
  .tuition-block li b small { display: block; font-size: .64rem; font-weight: 700; color: var(--muted);
    letter-spacing: .04em; text-transform: uppercase; text-align: right; }
  .tuition-block li em { display: block; font-style: normal; font-size: .73rem; font-weight: 700;
    color: var(--muted); margin-top: .12rem; }
  .tuition-block li.tt-best { background: var(--sun-soft, #fbe7ae); border-radius: 12px; }
  .tuition-block-note { margin: 0; padding: .2rem 1rem 1rem; font-size: .84rem; color: var(--muted); line-height: 1.5; }
}

/* Screen-reader-only helper for the empty table corner */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Roadmap steps: done / current markers (About page) ── */
.step.is-done .step-num { background: var(--green-dark, #6d8b62); color: #fff; }
.step.is-now  .step-num { background: var(--accent-dark, #c2593c); color: #fff;
  box-shadow: 0 0 0 4px rgba(194, 89, 60, .15); }

/* Hours line inside the two "what's included" cards under the tuition table */
.tuition-hours-line { margin: .1rem 0 .6rem; font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--accent-dark, #c2593c); letter-spacing: .01em; }

/* Arrival & pickup changeover note (Admissions) */
.changeover-note { border-left: 4px solid var(--green-dark, #6d8b62); }
.changeover-note p { margin: 0; font-size: .98rem; line-height: 1.6; }
.changeover-note strong { color: var(--accent-dark, #c2593c); }
