/* Storefront pages served through the app proxy (Your family, Manage booking, session pages).
   Controls, colour blocks and type come from schedule.css; this file lays out the pages. */
.tc-page,
.tc-body {
  --ink: var(--tc-ink);
  --accent: var(--tc-juniper);
  --card: var(--tc-parchment-2);
  --page: var(--tc-parchment);
  --radius: 24px;
  color: var(--ink);
  font-family: var(--tc-font-body);
}
.tc-page { max-width: 1120px; margin: 0 auto; padding: var(--tc-space-7) 20px var(--tc-space-8); box-sizing: border-box; }
.tc-page *, .tc-page *::before, .tc-page *::after { box-sizing: border-box; }
.tc-page__head { margin-bottom: var(--tc-space-6); }
.tc-page__title { font-size: clamp(44px, 9vw, 76px); }
.tc-page__grid { display: grid; grid-template-columns: 1fr; gap: var(--tc-space-4); }
@media (min-width: 900px) { .tc-page__grid { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.tc-stack { display: grid; gap: var(--tc-space-4); }

/* Panels: soft blocks, no outlines. Rows inside are separated by hairlines. */
.tc-panel { background: var(--card); border-radius: 28px; padding: 28px; }
.tc-center { text-align: center; max-width: 600px; margin: 0 auto; }
.tc-center .tc-btn { margin-top: var(--tc-space-4); }
.tc-narrow { max-width: 640px; margin: 0 auto; }
.tc-section__title { font: 780 28px/1 var(--tc-font-display); letter-spacing: -0.035em; margin: 0 0 var(--tc-space-3); }
.tc-lead { font-size: 20px; line-height: var(--tc-leading-body); color: var(--body); margin: var(--tc-space-3) 0 0; }
.tc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px var(--tc-space-4); padding: 16px 0; flex-wrap: wrap; }
.tc-row--rule { border-top: 1px solid var(--rule); }
.tc-row__actions { display: flex; align-items: center; gap: var(--tc-space-3, 12px); flex-wrap: wrap; }
.tc-row__actions form { margin: 0; }
.tc-section__title + .tc-row--rule { border-top: 0; padding-top: 4px; }
.tc-row > div:first-child { min-width: 0; flex: 1 1 220px; }
.tc-strong { font: 720 20px/1.2 var(--tc-font-display); letter-spacing: -0.02em; margin: 0; }
.tc-muted { color: var(--muted); font-size: 16px; line-height: 1.45; margin: 4px 0 0; }
.tc-small { font-size: 14px; }
.tc-page .tc-mono { margin: 6px 0 0; font-size: 13px; }
.tc-code { font-family: var(--tc-font-mono); font-size: 0.92em; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 8px; background: color-mix(in srgb, currentColor 12%, transparent); white-space: nowrap; }
.tc-flash { background: color-mix(in srgb, var(--tc-moss) 32%, transparent); color: var(--tc-juniper-deep); border-radius: 16px; padding: 14px 18px; margin: 0 0 var(--tc-space-4); font: 650 16px/1.35 var(--tc-font-display); }
.tc-flash--warn { background: color-mix(in srgb, var(--tc-clay) 16%, transparent); color: var(--warn); }

/* The family's status block (membership and credits). */
.tc-hero { padding: 32px; display: grid; gap: 14px; }
.tc-hero__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.tc-hero__label { margin: 0 0 8px; font: 500 13px/1 var(--tc-font-mono); letter-spacing: var(--tc-tracking-kicker); text-transform: uppercase; opacity: 0.85; }
.tc-hero__title { margin: 0; font: 780 clamp(32px, 5vw, 44px)/0.98 var(--tc-font-display); letter-spacing: -0.04em; }
.tc-hero__text { margin: 0; font-size: 17px; line-height: 1.45; opacity: 0.92; max-width: 52ch; }
.tc-hero__stat { margin: 0; font: 650 17px/1.2 var(--tc-font-display); }
.tc-hero__stat b { font-weight: 780; font-size: 30px; letter-spacing: -0.04em; margin-right: 4px; }
.tc-colour .tc-link { color: inherit; }
.tc-colour .tc-muted { color: inherit; opacity: 0.85; }
.tc-colour .tc-details > summary { color: inherit; opacity: 0.85; }
.tc-offer { display: grid; gap: 12px; justify-items: start; padding: 28px; }
.tc-offer .tc-hero__title { font-size: 30px; }

/* Disclosures: the summary is a plain button. */
.tc-details { flex: 0 0 auto; }
.tc-details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font: 650 16px/1.2 var(--tc-font-display);
  letter-spacing: -0.01em;
  color: var(--accent-ink);
  -webkit-tap-highlight-color: transparent;
}
.tc-details > summary::-webkit-details-marker { display: none; }
.tc-details > summary:hover { opacity: 0.75; }
.tc-details > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.tc-details[open] { flex-basis: 100%; }
.tc-details[open] > summary { color: var(--muted); }
.tc-add { border-top: 1px solid var(--rule); margin-top: 4px; padding-top: 4px; }
.tc-form { display: grid; gap: 14px; padding: 4px 0 8px; }
.tc-form .tc-btn { justify-self: start; }
.tc-grid2b { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .tc-grid2b { grid-template-columns: 1fr; } }
/* A child: first name across, then birth month and year side by side. */
.tc-grid3 { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 14px; }
@media (max-width: 520px) { .tc-grid3 { grid-template-columns: 1fr 1fr; } .tc-grid3 > :first-child { grid-column: 1 / -1; } }
.tc-actions { display: flex; align-items: center; gap: var(--tc-space-4); flex-wrap: wrap; }

.tc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; margin: var(--tc-space-5) 0; }
.tc-dl dt { font: 650 15px/1.4 var(--tc-font-display); color: var(--muted); }
.tc-dl dd { margin: 0; font-size: 18px; line-height: 1.4; }
@media (max-width: 520px) { .tc-dl { grid-template-columns: 1fr; gap: 2px; } .tc-dl dd { margin-bottom: 12px; } }

@media (max-width: 749px) {
  .tc-panel { padding: 22px 20px; border-radius: 24px; }
  .tc-hero { padding: 26px 22px; }
  .tc-hero__top .tc-btn { width: 100%; }
}
.tc-panel.tc-colour { background: var(--c-bg); }

/* Finish setting up (/apps/studio/welcome/<token>): three or four steps, one open at a time. */
.tc-steps { list-style: none; margin: var(--tc-space-6) 0 0; padding: 0; display: grid; gap: var(--tc-space-3); }
.tc-step { background: var(--card); border-radius: 24px; padding: 20px; }
.tc-step__head { margin: 0; font: inherit; }
.tc-step__head, .tc-step__link { display: flex; align-items: center; gap: var(--tc-space-3); min-height: 44px; color: inherit; text-decoration: none; }
.tc-step__link:hover .tc-step__title { text-decoration: underline; text-underline-offset: 3px; }
.tc-step__link:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 4px; border-radius: 12px; }
.tc-step__num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font: 500 14px/1 var(--tc-font-mono); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tc-step--done .tc-step__num { background: var(--accent); color: var(--tc-on-brand); }
.tc-step--done .tc-step__num::after { content: ""; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.tc-step__text { display: grid; gap: 2px; }
.tc-step__title { font: 720 22px/1.15 var(--tc-font-display); letter-spacing: -0.02em; }
.tc-step__state { font-size: 15px; color: var(--muted); }
.tc-step__body { margin-top: var(--tc-space-5); display: grid; gap: var(--tc-space-3); }
.tc-step__body > p { margin: 0; }
.tc-step__body .tc-form { padding: 0; }
.tc-status { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; }
.tc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tc-welcome-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tc-welcome-sessions a { display: flex; align-items: center; justify-content: space-between; gap: var(--tc-space-3); min-height: 56px; padding: 12px 16px; border-radius: 16px; background: var(--page); color: inherit; text-decoration: none; transition: opacity 150ms ease; }
.tc-welcome-sessions a > span:first-child { display: grid; gap: 2px; }
.tc-welcome-sessions a .tc-muted { margin: 0; }
.tc-welcome-sessions a:hover { opacity: 0.8; }
.tc-welcome-sessions a:active { transform: translateY(1px); }
.tc-ready { display: grid; justify-items: center; text-align: center; gap: var(--tc-space-3); margin-top: var(--tc-space-7); }
.tc-ready .tc-section__title { margin: 0; }
@media (min-width: 750px) { .tc-step { padding: 28px; } }
@media (prefers-reduced-motion: reduce) { .tc-welcome-sessions a { transition: none; } .tc-welcome-sessions a:active { transform: none; } }

/* Formatted waiver and policy text (rich-text.ts, inside .tc-rich): section headings, subheadings, lists, bold and
   links. Sizes follow the text around them, so the same rules fit the waiver box and a policy's page. Set in full, so a
   theme's own heading and list styles don't reach in. */
.tc-page .tc-rich > :first-child { margin-top: 0; }
.tc-page .tc-rich > :last-child { margin-bottom: 0; }
.tc-page .tc-rich p { margin: 0 0 0.75em; }
.tc-page .tc-rich__h2 { font: 720 1.25em/1.2 var(--tc-font-display); letter-spacing: -0.02em; color: var(--ink); margin: 1.5em 0 0.5em; text-transform: none; }
.tc-page .tc-rich__h3 { font: 700 1.08em/1.25 var(--tc-font-display); letter-spacing: -0.01em; color: var(--ink); margin: 1.2em 0 0.4em; text-transform: none; }
.tc-page .tc-rich__list { margin: 0 0 0.75em; padding: 0 0 0 1.4em; }
.tc-page ul.tc-rich__list { list-style: disc outside; }
.tc-page ol.tc-rich__list { list-style: decimal outside; }
.tc-page .tc-rich__list li { margin: 0 0 0.35em; padding-left: 0.2em; }
.tc-page .tc-rich__list li::marker { color: var(--accent); }
.tc-page .tc-rich strong { font-weight: 600; color: var(--ink); }
/* The widget's schedule.css also styles .tc-rich, more specifically; these keep this page's spacing wherever both load. */
.tc-page .tc-rich > .tc-rich__h2:not(:first-child) { margin-top: 1.5em; }
.tc-page .tc-rich > .tc-rich__h3:not(:first-child) { margin-top: 1.2em; }
.tc-page .tc-rich > .tc-rich__list:not(:first-child),
.tc-page .tc-rich > :is(.tc-rich__h2, .tc-rich__h3) + * { margin-top: 0; }
.tc-page .tc-rich a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tc-page .tc-rich a:hover { text-decoration-thickness: 2px; }

/* The terms and policies page (/apps/studio/policies/<key>): the list of policies beside the one open, a column on the
   left on a computer and a row of chips above the text on a phone (it scrolls sideways, the open one in view); then the policy, a smaller title and the text at
   reading size. Each entry is a link to its own address, so links from anywhere open the right one. */
.tc-policies { display: grid; gap: var(--tc-space-5); }
.tc-policies > * { min-width: 0; }
.tc-policynav .tc-kicker { margin: 0 0 var(--tc-space-3); }
.tc-policynav__list { list-style: none; margin: 0 -20px; padding: 0 20px 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tc-policynav__list::-webkit-scrollbar { display: none; }
.tc-policynav__list > li { flex: none; }
.tc-policynav__link { display: block; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 16px; line-height: 1.3; text-decoration: none; }
.tc-policynav__link:hover { background: var(--fill-hover); }
.tc-policynav__link[aria-current="page"] { background: var(--accent); color: var(--tc-parchment); font-weight: 600; }
.tc-policynav__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 900px) {
  .tc-policies { grid-template-columns: 240px minmax(0, 1fr); gap: var(--tc-space-6); align-items: start; }
  .tc-policynav { position: sticky; top: calc(var(--tc-sticky-offset, 0px) + 24px); }
  .tc-policynav__list { flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; }
  .tc-policynav__link { padding: 10px 14px; border-radius: 12px; background: none; }
  .tc-policynav__link[aria-current="page"] { background: var(--card); color: var(--ink); }
  .tc-policy { max-width: 760px; }
}
.tc-policy .tc-page__title { font-size: clamp(36px, 7vw, 56px); }
.tc-policy__updated { margin-top: var(--tc-space-3); }
.tc-policy__text { margin-top: var(--tc-space-5); font-size: 18px; line-height: 1.6; color: var(--body); }
.tc-page .tc-policy__text .tc-rich__h2 { font-size: 1.4em; }

/* A gift code typed in (/apps/studio/gift): one field and its button, under the page's words. */
.tc-giftcode { max-width: 360px; margin: var(--tc-space-5) auto 0; text-align: left; }
.tc-giftcode .tc-btn { justify-self: stretch; margin-top: 0; }

/* The printable gift card (/apps/studio/gift-card/<token>): a card on screen, and on paper only the card prints, on
   white with a hairline, whatever the theme around it (other pages print as they are). */
.tc-giftcard-page { display: grid; justify-items: center; gap: var(--tc-space-4); }
.tc-giftcard { width: 100%; max-width: 560px; background: var(--card); border-radius: 28px; padding: 36px 32px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.tc-giftcard .tc-clover { width: 56px; height: auto; }
.tc-giftcard .tc-kicker { margin: 4px 0 0; }
.tc-giftcard__for { margin: 0; font: 650 18px/1.3 var(--tc-font-display); letter-spacing: -0.01em; }
.tc-giftcard__what { margin: 0; font: 780 clamp(30px, 6vw, 44px)/1.02 var(--tc-font-display); letter-spacing: -0.04em; }
.tc-giftcard__message { margin: 4px 0 0; max-width: 40ch; font-size: 20px; font-style: italic; line-height: 1.45; color: var(--body); }
.tc-giftcard__from { margin: 0; font-size: 17px; color: var(--muted); }
.tc-giftcard__claim { width: 100%; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; text-align: left; }
.tc-giftcard__qr svg { display: block; width: 132px; height: 132px; }
.tc-giftcard__label { margin: 0; font: 500 12px/1 var(--tc-font-mono); letter-spacing: var(--tc-tracking-kicker); text-transform: uppercase; color: var(--muted); }
.tc-giftcard__code { margin: 8px 0 10px; font: 500 24px/1.1 var(--tc-font-mono); letter-spacing: 0.06em; white-space: nowrap; }
.tc-giftcard__how { margin: 0; font-size: 15px; line-height: 1.45; color: var(--body); }
.tc-giftcard__studio { margin: 8px 0 0; font: 500 12px/1 var(--tc-font-mono); letter-spacing: var(--tc-tracking-kicker); text-transform: uppercase; color: var(--muted); }
.tc-giftcard__actions { margin: 0; }
.tc-giftcard__note { margin: 0; text-align: center; }
@media (max-width: 520px) {
  .tc-giftcard { padding: 28px 20px; }
  .tc-giftcard__claim { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media print {
  body:has(.tc-giftcard) * { visibility: hidden !important; }
  .tc-giftcard, .tc-giftcard * { visibility: visible !important; }
  .tc-giftcard { position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; background: #fff; border: 1px solid var(--tc-ink); color: var(--tc-ink); break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* The booking sheet's who's-coming chips on the session page (booking.js; the schedule block has these in series.css). */
.tc-who__tick { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-left: -5px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule); color: transparent; }
.tc-who__chip[aria-pressed="true"] .tc-who__tick { background: var(--accent); box-shadow: none; color: var(--tc-on-brand); }
.tc-who__chip--add { color: var(--muted); font-weight: 500; }
.tc-bk__fits { margin: 8px 0 0; font: 400 15px/1.4 var(--tc-font-body); color: var(--muted); }
.tc-bk__head:focus { outline: none; }
.tc-t { display: block; text-box: trim-both cap alphabetic; }
