.jf-book { max-width: 44rem; margin: 0 auto; }
.jf-book__heading { margin: 0 0 1rem; }
.jf-book__subheading { margin: 1rem 0 0.5rem; font-size: 1.05em; }
.jf-book__muted { opacity: 0.75; font-size: 0.95em; }
.jf-book__error { padding: 0.6rem 0.8rem; border: 1px solid currentColor; border-radius: 0.5rem; color: #b91c1c; }

.jf-book__steps { display: flex; gap: 0.5rem; flex-wrap: wrap; list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: step; font-size: 0.85em; }
.jf-book__step { opacity: 0.55; }
.jf-book__step::before { counter-increment: step; content: counter(step) ". "; }
.jf-book__step--current { opacity: 1; font-weight: 600; }
.jf-book__step--done { opacity: 0.8; text-decoration: line-through; }

.jf-book__choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.jf-book__choice { display: grid; gap: 0.15rem; width: 100%; text-align: left; padding: 0.75rem 1rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.6rem; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.jf-book__choice:hover, .jf-book__choice:focus-visible { border-color: currentColor; }
.jf-book__choice-name { font-weight: 600; }
.jf-book__choice-meta, .jf-book__choice-desc { font-size: 0.9em; opacity: 0.8; }

.jf-book__back { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; margin-bottom: 0.5rem; }
.jf-book__nav { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.5rem 0; }
.jf-book__nav-btn { background: none; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.4rem; padding: 0.3rem 0.6rem; color: inherit; font: inherit; cursor: pointer; }
.jf-book__nav-btn:disabled { opacity: 0.4; cursor: default; }

.jf-book__days { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: 0.4rem; }
.jf-book__day { display: grid; gap: 0.1rem; padding: 0.5rem 0.25rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.5rem; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: center; }
.jf-book__day:disabled { opacity: 0.4; cursor: default; }
.jf-book__day--selected { border-color: currentColor; font-weight: 600; }
.jf-book__day-name { font-size: 0.8em; text-transform: uppercase; }
.jf-book__day-num { font-size: 1.2em; }
.jf-book__day-count { font-size: 0.75em; opacity: 0.75; }

.jf-book__times { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.jf-book__time { padding: 0.5rem 0.9rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.5rem; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.jf-book__time:hover, .jf-book__time:focus-visible { border-color: currentColor; }

.jf-book__options { border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.6rem; padding: 0.6rem 0.9rem; margin: 0.5rem 0; display: grid; gap: 0.35rem; }
.jf-book__option { display: flex; gap: 0.5rem; align-items: flex-start; }

.jf-book__form { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.jf-book__field { display: grid; gap: 0.25rem; }
.jf-book__field input, .jf-book__field select, .jf-book__field textarea { padding: 0.55rem 0.7rem; border: 1px solid rgba(127, 127, 127, 0.45); border-radius: 0.45rem; font: inherit; background: transparent; color: inherit; }
.jf-book__consent { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9em; }
.jf-book__submit { padding: 0.7rem 1.2rem; border: 0; border-radius: 0.5rem; background: currentColor; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.jf-book__submit > * { color: inherit; }
.jf-book__submit { color: var(--jf-accent-contrast, #fff); background: var(--jf-accent, #111); }
.jf-book__submit:disabled { opacity: 0.6; cursor: default; }
.jf-book__summary { margin: 0.5rem 0; }
.jf-book__pay { display: inline-block; text-decoration: none; margin-top: 0.5rem; }

.jf-book__services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.jf-book__service { padding: 0.75rem 1rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.6rem; }
.jf-book__service-link { display: inline-block; margin-top: 0.4rem; font-weight: 600; }

.jf-book__notice { padding: 0.6rem 0.8rem; border: 1px solid currentColor; border-radius: 0.5rem; opacity: 0.9; }
.jf-book__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; align-items: center; }
.jf-book__actions a.jf-book__nav-btn { text-decoration: none; color: inherit; }
.jf-book__nav-btn--danger { color: #b91c1c; border-color: currentColor; }
.jf-book__status { font-weight: 600; }
.jf-book__status--cancelled, .jf-book__status--no_show, .jf-book__status--failed { color: #b91c1c; }
.jf-book__waitlist { margin-top: 0.75rem; padding: 0.75rem 1rem; border: 1px dashed rgba(127, 127, 127, 0.45); border-radius: 0.6rem; }

/* Class timetable (#333) */
.jf-tt { max-width: 56rem; }
.jf-tt__filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-bottom: 1rem; }
.jf-tt__filter { min-width: 9rem; }
.jf-tt__courses { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.jf-tt__course { padding: 0.75rem 1rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.6rem; }
.jf-tt__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.jf-tt__session { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 0.5rem 1rem; align-items: center; padding: 0.75rem 1rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.6rem; }
.jf-tt__session--cancelled { opacity: 0.65; }
.jf-tt__time { font-variant-numeric: tabular-nums; font-weight: 600; }
.jf-tt__info { display: grid; gap: 0.15rem; }
.jf-tt__actions { display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; }
.jf-tt__action { padding: 0.45rem 0.9rem; }
.jf-tt__form { grid-column: 1 / -1; }
@media (max-width: 36rem) {
  .jf-tt__session { grid-template-columns: 1fr; }
  .jf-tt__actions { justify-content: flex-start; }
}

/* Household (#334) */
.jf-hh { margin-top: 1.5rem; }
.jf-hh__consent { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.4rem; font-size: 0.9em; }
.jf-hh__text { white-space: pre-wrap; padding: 0.6rem 0.8rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.5rem; max-height: 14rem; overflow: auto; }

/* Check-in code (#335) */
.jf-ci { margin-bottom: 1.25rem; padding: 0.75rem 1rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.6rem; }
.jf-ci__card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid rgba(127, 127, 127, 0.2); }
/* Scanners need dark on light whatever the theme, so the codes keep their own white background. */
.jf-ci__qr { width: min(12rem, 60vw); height: auto; display: block; }
.jf-ci__barcode { width: min(18rem, 80vw); height: auto; display: block; }
.jf-ci__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.4em; letter-spacing: 0.08em; }

/* This term (#336): one block per child. */
.jf-term { margin-bottom: 1.25rem; padding: 0.75rem 1rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 0.6rem; }
.jf-term__child { padding: 0.5rem 0; border-top: 1px solid rgba(127, 127, 127, 0.2); }
.jf-term__child:first-of-type { border-top: 0; }
.jf-term__list { margin: 0.25rem 0 0; padding-left: 1.1rem; }
