/* WSKF Australia - booking.css
   "Find your first class": the Concept A request workspace (approved
   3 December 2026). The page shows a compact launcher; the five steps open in
   a modal workspace (a native dialog). Wide workspaces have a progress rail
   that also carries the answers so far; narrow ones show progress bars and a
   folding summary. Back and Continue sit in a fixed bar that is never over
   the questions. One launcher and one workspace everywhere: the homepage, the
   Enrol page and every inner page.

   The workspace lays itself out by its own width (container queries): wide
   at 55rem of workspace width and above. Sizes are in rem so 200% text
   scales them, and very large text falls back to the narrow layout.

   This is a preview: nothing is sent. */

.enq__card.bk,.bk-dialog{
  --bk-ink:#000; --bk-red:#E4191E; --bk-red-text:#C8161A; --bk-paper:#F4F3F1; --bk-paper-2:#EAE8E5;
  --bk-line:#D4D2CF; --bk-rule:#E1DFDC; --bk-muted:#4A4A4A; --bk-quiet:#6B6A69; --bk-edge:#8E8D8C;
  --bk-on-ink:#B5B4B3; --bk-err-bg:#FDF1F1;
  --bk-r:12px;
}
.enq__card.bk{
  container:bk / inline-size;
  background:var(--white,#fff); color:var(--bk-ink);
  border:0; border-radius:8px; overflow:hidden; overflow:clip;
  box-shadow:0 1px 2px rgba(0,0,0,.05),0 24px 48px -32px rgba(0,0,0,.45);
  font-family:var(--display);
}
.bk [hidden]{ display:none !important; }
.bk fieldset{ border:0; margin:0; padding:0; min-width:0; }
.bk legend{ padding:0; }
.bk p{ margin:0; max-width:none; }
.bk h2,.bk h3,.bk h4{ margin:0; }
.bk .bk-title{ font-family:var(--display); font-weight:700; font-size:1.25rem; line-height:1.1; letter-spacing:.01em; text-transform:uppercase; color:#fff; }
.bk-sub,.bk-tel{ font-size:.9375rem; line-height:1.5; color:var(--bk-on-ink); }
.bk-tel a{ color:#fff; font-weight:500; text-underline-offset:3px; }
.v2-enquire .bk-tel{ display:none; }               /* inner pages show the phone just above the card */

/* ================================================================ launcher */
.bk-launch{ display:grid; grid-template-columns:minmax(0,1fr); }
.bk-launch__intro{ background:var(--bk-ink); color:#fff; padding:1.5rem 1.25rem 1.375rem; display:flex; flex-direction:column; gap:.625rem; }
.bk-launch__opts{ display:grid; gap:.625rem; padding:1.25rem; align-content:center; }
.bk-launch__q{ font:600 1rem/1.4 var(--display) !important; color:var(--bk-ink); margin-bottom:.125rem !important; }
.bk-launch__opt{ display:grid; grid-template-columns:2.75rem minmax(0,1fr) 1.375rem; grid-template-rows:auto auto; gap:.125rem .875rem; align-items:center;
  width:100%; min-height:4.5rem; padding:.875rem 1rem; text-align:left; cursor:pointer;
  background:#fff; color:var(--bk-ink); border:1.5px solid var(--bk-line); border-radius:var(--bk-r);
  font-family:var(--display); transition:border-color .2s var(--ease,ease),box-shadow .2s var(--ease,ease); }
.bk-launch__opt:hover{ border-color:var(--bk-ink); box-shadow:0 10px 24px -18px rgba(0,0,0,.5); }
.bk-launch__opt:focus-visible{ outline:3px solid var(--bk-red); outline-offset:2px; }
.bk-launch__ava{ grid-row:1 / span 2; width:2.75rem; height:2.75rem; border-radius:50%; background:var(--bk-paper); display:grid; place-items:center; }
.bk-launch__ava svg{ width:1.5rem; height:1.5rem; }
.bk-launch__ava svg.bk-launch__child{ width:1.25rem; height:1.25rem; }
.bk-launch__t{ font:600 1.0625rem/1.25 var(--display); }
.bk-launch__d{ grid-column:2; font:400 .875rem/1.35 var(--display); color:var(--bk-muted); }
.bk-launch__go{ grid-column:3; grid-row:1 / span 2; width:1.375rem !important; height:1.375rem !important; fill:var(--bk-red-text); }
.bk-launch__resume{ display:flex; flex-wrap:wrap; align-items:center; gap:0 .75rem; padding-top:.375rem; font:400 .875rem/1.5 var(--display); color:var(--bk-muted); }
@container bk (min-width:48rem){
  .bk-launch{ grid-template-columns:minmax(0,1fr) minmax(0,28rem); }
  .bk-launch__intro{ padding:2.5rem 3rem; justify-content:center; }
  .bk-launch .bk-title{ font-size:1.75rem; }
  .bk-launch__opts{ padding:2rem 2.5rem; }
}
@media (prefers-reduced-motion:reduce){ .bk-launch__opt{ transition:none; } }

/* The Assistant steps aside for the launcher (enquiry.js sets the classes):
   no greeting while the launcher is on screen, and the round button hides
   where it would cover a launcher choice or the resume link. */
html.bk-launch-in-view .wa-hint,html.bk-launch-in-view #wa-bubble-hint{ display:none !important; }
html.bk-wa-yield #wa-launch{ visibility:hidden; opacity:0; pointer-events:none; }

/* ---------------------------------------------------------------- without JavaScript */
.bk-nojs{ display:none; }
html:not(.js) .bk-nojs{ display:block; padding:1.25rem; font:400 1rem/1.6 var(--display); }
html:not(.js) .bk-nojs p + p{ margin-top:.5rem; }
html:not(.js) .bk-nojs a{ color:var(--bk-red-text); font-weight:600; }
html:not(.js) .bk-launch .bk-tel{ display:none; }          /* the fallback gives the number once */

/* ================================================================ workspace */
html.bk-open{ overflow:hidden; }
html.bk-open #wa-launch,html.bk-open .wa-hint,html.bk-open #wa-panel,html.bk-open #wa-bubble-hint{ display:none !important; }

.bk-dialog{
  container:bk / inline-size;
  box-sizing:border-box; padding:0; border:0; margin:auto;
  width:min(72rem, calc(100vw - 4rem)); max-width:none;
  height:min(52rem, calc(100dvh - 4rem)); max-height:none;
  background:#fff; color:var(--bk-ink); border-radius:18px; overflow:hidden;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.12);
  font-family:var(--display); font-size:1rem; line-height:1.5;
}
.bk-dialog::backdrop{ background:rgba(12,12,12,.6); }
.bk-dialog:not([open]){ display:none; }
.bk-dialog *,.bk-dialog *::before,.bk-dialog *::after{ box-sizing:border-box; }
.bk-dialog button,.bk-dialog input,.bk-dialog textarea{ font-family:var(--display); }
.bk-ws{ display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto minmax(0,1fr) auto; height:100%; min-height:0; }

/* top bar: what this is, which step, how to leave */
.bk-ws__top{ display:flex; align-items:center; gap:.75rem; padding:.625rem .5rem .5rem 1.25rem; background:var(--bk-ink); color:#fff; }
.bk-ws__titles{ min-width:0; flex:1; display:flex; flex-direction:column; gap:.125rem; }
.bk .bk-ws__title{ font:700 1rem/1.2 var(--display); text-transform:uppercase; letter-spacing:.02em; color:#fff; }
.bk-ws__step{ font:500 .875rem/1.3 var(--display); color:var(--bk-on-ink); }
.bk-ws__pill{ display:none; align-items:center; gap:.5rem; min-height:1.75rem; padding:.25rem .75rem; border-radius:999px; background:var(--bk-paper); font:500 .8125rem/1.3 var(--display); color:var(--bk-ink); white-space:nowrap; }
.bk-ws__pill span{ width:7px; height:7px; border-radius:50%; background:var(--bk-red); flex:none; }
.bk-ws__close{ flex:none; width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:10px; background:none; color:#fff; cursor:pointer; }
.bk-ws__close:hover{ background:#262626; }
.bk-ws__close:focus-visible{ outline:3px solid var(--bk-red); outline-offset:-3px; }
.bk-ws__close .i{ width:22px; height:22px; fill:currentColor; }

/* rail: progress bars on narrow workspaces; the full rail on wide ones */
.bk-rail{ background:var(--bk-ink); color:#fff; padding:.25rem 1.25rem .75rem; }
.bk-progress{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; }
.bk-progress li{ position:relative; min-width:0; }
.bk-progress__bar{ display:block; height:4px; border-radius:2px; background:#3A3A3A; }
.bk-progress li.is-done .bk-progress__bar,.bk-progress li.is-current .bk-progress__bar{ background:var(--bk-red); }
.bk-progress__item{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; background:none; border:0; padding:0; color:#fff; font-family:var(--display); text-align:left; }
.bk-progress__ans,.bk-progress__chg,.bk-rail__foot{ display:none; }
/* a finished step's button shows its name while it has keyboard focus */
.bk-progress button.bk-progress__item:focus-visible{ position:static !important; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal;
  display:flex; gap:.375rem; margin-top:.5rem; padding:.25rem .375rem; outline:3px solid var(--bk-red); outline-offset:1px; border-radius:4px; font:600 .875rem/1.3 var(--display); }
.bk-progress__mark{ font-family:var(--font-shotokan,var(--display)); }

/* the scrolling area: only this part scrolls, so neither bar covers it */
.bk-ws__body{ overflow:auto; min-height:0; overscroll-behavior:contain; scroll-padding:1.5rem 0; -webkit-overflow-scrolling:touch; }
.bk-preview{ background:var(--bk-paper); border-bottom:1px solid var(--bk-rule); padding:.625rem 1.25rem; font:400 .8125rem/1.5 var(--display); color:var(--bk-ink); }
.bk-preview b{ color:var(--bk-red-text); font-weight:700; }

/* narrow summary: one line that folds open */
.bk-sum{ background:#fff; border-bottom:1px solid var(--bk-rule); }
.bk-sum__toggle{ width:100%; display:flex; justify-content:space-between; align-items:center; gap:.75rem; min-height:48px; padding:.5rem 1.25rem; background:none; border:0; text-align:left; cursor:pointer; font:600 .875rem/1.4 var(--display); color:var(--bk-ink); }
.bk-sum__toggle:focus-visible{ outline:3px solid var(--bk-red); outline-offset:-3px; }
.bk-sum__brief{ font-weight:400; color:var(--bk-muted); }
.bk-sum__show{ flex:none; display:inline-flex; align-items:center; gap:.375rem; }
.bk-sum__show .i{ width:16px; height:16px; transition:transform .2s var(--ease,ease); }
.bk-sum__toggle[aria-expanded="true"] .bk-sum__show .i{ transform:rotate(180deg); }
.bk-sum__body{ padding:0 1.25rem 1rem; }
.bk-sum:not(.is-open) .bk-sum__body{ display:none; }
.bk-sum__list{ margin:0; }
.bk-sum__row{ padding:.625rem 0; border-top:1px solid var(--bk-rule); }
.bk-sum__list dt{ font:600 .8125rem/1.4 var(--display); color:var(--bk-muted); }
.bk-sum__list dd{ display:flex; justify-content:space-between; align-items:center; gap:.75rem; margin:.125rem 0 0; font:500 .9375rem/1.5 var(--display); color:var(--bk-ink); }
.bk-sum__list dd.is-empty{ color:var(--bk-quiet); font-weight:400; }
.bk-sum__edit{ flex:none; min-height:44px; padding:0 .25rem; background:none; border:0; font:600 .875rem var(--display); color:var(--bk-red-text); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.bk-sum__note{ display:flex; gap:.625rem; padding-top:.75rem; border-top:1px solid var(--bk-rule); font-size:.875rem; line-height:1.5; color:var(--bk-muted); }
.bk-sum__note::before{ content:""; flex:none; width:3px; border-radius:2px; background:var(--bk-red); }

.bk-main{ padding:1.5rem 1.25rem 2rem; min-width:0; container:bkm / inline-size; }

/* the fixed bar: Back and Continue, always in reach */
.bk-ws__foot{ background:#fff; border-top:1px solid var(--bk-rule); padding:.75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom,0px)); box-shadow:0 -8px 20px -14px rgba(0,0,0,.2); }
.bk-ws__foot[hidden]{ display:none !important; }
.bk-nav{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .75rem; }
.bk-nav .btn{ min-height:52px; border-radius:var(--bk-r); }
.bk-next{ flex:1 1 9rem; }
.bk-back{ flex:none; padding-inline:.75rem; border:1.5px solid var(--bk-line) !important; background:#fff !important; }
.bk-back:hover{ border-color:var(--bk-ink) !important; }
.bk-nav__note{ flex:1 1 100%; order:-1; font:400 .875rem/1.5 var(--display); color:var(--bk-muted); }
.bk-nav__note:empty{ display:none; }
.bk-next .i,.bk-back .i{ width:18px; height:18px; }
.bk-next[aria-disabled="true"]{ opacity:.85; cursor:progress; }
.bk-spin{ width:18px; height:18px; border:2.5px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation:bk-spin .8s linear infinite; }
@keyframes bk-spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce){ .bk-spin{ animation:none; } .bk-sum__show .i{ transition:none; } }

/* ---------------------------------------------------------------- wide workspace */
@container bk (min-width:55rem){
  .bk-ws{ grid-template-columns:18.5rem minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto; }
  .bk-rail{ grid-column:1; grid-row:1 / -1; display:flex; flex-direction:column; padding:2rem 1.25rem 1.5rem; overflow:auto; }
  .bk-ws__top,.bk-ws__body,.bk-ws__foot{ grid-column:2; }
  .bk-ws__top{ background:#fff; color:var(--bk-ink); padding:1rem 1rem .5rem 3rem; gap:1rem; }
  .bk .bk-ws__title{ color:var(--bk-muted); font-size:.8125rem; letter-spacing:.06em; }
  .bk-ws__step{ color:var(--bk-ink); font:600 1rem/1.3 var(--display); }
  .bk-ws__pill{ display:inline-flex; }
  .bk-ws__close{ color:var(--bk-ink); }
  .bk-ws__close:hover{ background:var(--bk-paper); }
  .bk-preview,.bk-sum{ display:none; }
  .bk-main{ padding:1.5rem 3rem 3rem; }
  .bk-ws__foot{ padding:1rem 3rem; box-shadow:none; }
  .bk-nav{ flex-wrap:nowrap; gap:1.25rem; }
  .bk-nav__note{ flex:1 1 auto; order:0; text-align:right; }
  .bk-next{ flex:none; min-width:13rem; margin-left:auto; }
  .bk-kick{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }   /* the top bar names the step */
  .bk-back{ padding-inline:1.25rem; }

  /* the rail: each step, its answer in a few words, and Change */
  .bk-progress{ display:flex; flex-direction:column; gap:.25rem; }
  .bk-progress__bar{ display:none; }
  .bk-progress li{ padding:.625rem .75rem .75rem; border-radius:10px; }
  .bk-progress li.is-current{ background:rgba(255,255,255,.09); }
  .bk-progress__item,.bk-progress button.bk-progress__item:focus-visible{ position:static !important; width:100%; height:auto; overflow:visible; clip-path:none; white-space:normal;
    display:grid; grid-template-columns:2rem minmax(0,1fr) auto; align-items:baseline; gap:0 .5rem; margin:0; padding:0; font:600 .9375rem/1.35 var(--display); color:var(--bk-on-ink); }
  button.bk-progress__item{ cursor:pointer; }
  .bk-progress button.bk-progress__item:focus-visible{ outline:3px solid var(--bk-red); outline-offset:6px; }
  .bk-progress__mark{ font-size:1.375rem; line-height:1; color:#8C8B8B; }
  .bk-progress li.is-current .bk-progress__mark{ color:var(--bk-red); }
  .bk-progress li.is-current .bk-progress__item,.bk-progress li.is-done .bk-progress__item{ color:#fff; }
  .bk-progress li.is-done .bk-progress__mark{ color:#fff; }
  .bk-progress__chg{ display:inline; font:500 .8125rem/1.3 var(--display); color:#A2A1A1; }
  button.bk-progress__item:hover .bk-progress__chg{ color:#fff; text-decoration:underline; text-underline-offset:3px; }
  .bk-progress__ans{ display:block; margin:.25rem 0 0 2.5rem; font:400 .8125rem/1.45 var(--display); color:var(--bk-on-ink); overflow-wrap:anywhere; }
  .bk-rail__foot{ display:flex; flex-direction:column; gap:.5rem; margin-top:auto; padding:1.25rem .75rem 0; border-top:1px solid rgba(255,255,255,.14); font:400 .8125rem/1.5 var(--display); color:var(--bk-on-ink); }
  .bk-rail__tel a{ display:inline-flex; align-items:center; min-height:44px; color:#fff; font-weight:600; text-underline-offset:3px; }
  .bk-rail__tel a:focus-visible{ outline:3px solid var(--bk-red); outline-offset:2px; }
}

/* phones: the workspace fills the screen and follows the visible area, so
   the on-screen keyboard never hides the bar or the field being typed in */
@media (max-width:44.99rem){
  .bk-dialog{
    inset:var(--bk-vvt,0px) 0 auto 0; margin:0;
    width:100%; height:var(--bk-vvh,100dvh); max-height:100dvh;
    border-radius:0; box-shadow:none;
  }
}
/* where the browser has no native modal dialog, enquiry.js marks the page inert */
.bk-dialog[open]:not(:modal){ position:fixed; inset:0; z-index:1000; box-shadow:0 0 0 100vmax rgba(12,12,12,.6); }
@media (max-width:44.99rem){ .bk-dialog[open]:not(:modal){ inset:var(--bk-vvt,0px) 0 auto 0; box-shadow:none; } }

/* small phones: Back shows as an arrow so Back and Continue share one row */
@container bk (max-width:22rem){
  .bk-next{ flex:1 1 0; min-width:0; padding-inline:.75rem; }
  .bk-back{ min-width:52px; justify-content:center; padding-inline:.25rem; }
  .bk-back__t{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}

/* short screens (keyboard up, or large text): enquiry.js adds .bk-tight so
   the bars stay compact. The step line stays, so the step is always named;
   the dialog keeps its name for screen readers. */
.bk-dialog.bk-tight .bk-ws__top{ padding-block:.375rem; }
.bk-dialog.bk-tight .bk-ws__title{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.bk-dialog.bk-tight .bk-ws__step{ color:#fff; font-weight:600; }
.bk-dialog.bk-tight .bk-rail{ padding-bottom:.5rem; }
.bk-dialog.bk-tight .bk-ws__foot{ padding:.5rem .75rem calc(.5rem + env(safe-area-inset-bottom,0px)); }
.bk-dialog.bk-tight .bk-nav__note{ display:none; }
.bk-dialog.bk-tight .bk-nav{ flex-wrap:nowrap; }
.bk-dialog.bk-tight .bk-next{ flex:1 1 0; min-width:0; padding-inline:.75rem; }
.bk-dialog.bk-tight .bk-back{ min-width:52px; justify-content:center; padding-inline:.25rem; }
.bk-dialog.bk-tight .bk-back__t{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }   /* the arrow alone; "Back" stays its name */
.bk-dialog.bk-tight .bk-back .i{ width:24px; height:24px; margin:0; }
@container bk (min-width:55rem){ .bk-dialog.bk-tight .bk-ws__step{ color:var(--bk-ink); } }

/* ================================================================ questions */
.bk-qhead{ display:flex; flex-direction:column; gap:.5rem; width:100%; }
.bk-kick{ font:600 .875rem/1.3 var(--display); color:var(--bk-red-text); }
.bk .bk-q{ font:600 1.5rem/1.2 var(--display); letter-spacing:-.015em; text-transform:none; color:var(--bk-ink); scroll-margin-top:1.5rem; }
.bk .bk-q:focus{ outline:none; }
.bk .bk-q:focus-visible{ outline:3px solid var(--bk-red); outline-offset:4px; }
.bk-lead{ font:400 1rem/1.6 var(--display); color:var(--bk-muted); max-width:40rem; }
.bk-lead:empty{ display:none; }
.bk-sechead{ display:flex; flex-direction:column; gap:.25rem; width:100%; }
.bk .bk-sec{ font:600 1.0625rem/1.3 var(--display); color:var(--bk-ink); text-transform:none; letter-spacing:0; }
.bk-note{ font:400 .9375rem/1.55 var(--display); color:var(--bk-muted); }
.bk-small{ font:400 .875rem/1.5 var(--display); color:var(--bk-muted); }
.bk-small a,.bk-lead a,.bk-note a,.bk-callout a{ color:var(--bk-red-text); text-underline-offset:3px; }

.bk-step > .bk-group:first-child > legend,.bk-step > .bk-qhead{ margin-bottom:1.25rem; }
.bk-group > legend.bk-sechead{ margin-bottom:.75rem; }
.bk .bk-step:not(.bk-done) > * + *{ margin-top:1.75rem; }
.bk .bk-when-times > * + *{ margin-top:1.5rem; }
.bk .bk-step > .bk-group:first-child > legend + *{ margin-top:0; }
@container bk (min-width:55rem){
  .bk .bk-q{ font-size:1.875rem; }
  .bk-lead{ font-size:1.0625rem; }
  .bk-step{ max-width:46rem; }
  .bk .bk-step:not(.bk-done) > * + *{ margin-top:2.25rem; }
}

/* ---------------------------------------------------------------- choices */
.bk-opts{ display:grid; gap:.625rem; grid-template-columns:minmax(0,1fr); }
.bk-opt{ position:relative; display:grid; grid-template-columns:24px minmax(0,1fr); column-gap:.875rem; align-items:center; padding:.875rem 1rem; background:#fff; border:1.5px solid var(--bk-line); border-radius:var(--bk-r); cursor:pointer; transition:border-color .15s; }
.bk-opt:hover{ border-color:var(--bk-edge); }
.bk-opt input{ position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.bk-opt.is-on{ border-color:var(--bk-ink); box-shadow:inset 0 0 0 1px var(--bk-ink); }
.bk-opt.is-focus{ outline:3px solid var(--bk-red); outline-offset:2px; }
.bk-opt--dashed{ border-style:dashed; }
.bk-ind{ position:relative; width:22px; height:22px; border:2px solid var(--bk-edge); border-radius:50%; background:#fff; }
.bk-opt--sq .bk-ind{ border-radius:5px; }
.bk-opt.is-on .bk-ind{ border-color:var(--bk-ink); background:var(--bk-ink); }
.bk-opt.is-on .bk-ind::after{ content:""; position:absolute; left:5px; top:4px; width:9px; height:5px; border:solid #fff; border-width:0 0 2.4px 2.4px; transform:rotate(-45deg); }
.bk-opt__text{ display:block; min-width:0; }
.bk-opt__t{ display:block; font:600 1rem/1.35 var(--display); color:var(--bk-ink); }
.bk-opt__d{ display:block; margin-top:.125rem; font:400 .875rem/1.45 var(--display); color:var(--bk-muted); }
.bk .bk-opt__t--quiet{ font-weight:500; font-size:.9375rem; }

/* step 1: who the request is for */
.bk-opt--mode{ grid-template-columns:2.5rem minmax(0,1fr) 22px; min-height:4.25rem; padding:.75rem 1rem; }
.bk-mode__ava{ width:2.5rem; height:2.5rem; border-radius:50%; background:var(--bk-paper); display:grid; place-items:center; }
.bk-mode__ava svg{ width:1.375rem; height:1.375rem; }
.bk-mode__ava svg.bk-mode__child{ width:1.125rem; height:1.125rem; }
.bk-opt--mode.is-on .bk-mode__ava{ background:var(--bk-ink); color:#fff; }
@container bkm (min-width:40rem){
  .bk-opts--modes{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .bk-opt--mode{ grid-template-columns:2.5rem minmax(0,1fr); grid-template-rows:auto auto; align-items:start; row-gap:.625rem; padding:1rem; }
  .bk-opt--mode .bk-opt__text{ grid-column:1 / -1; }
  .bk-opt--mode .bk-ind{ grid-column:2; grid-row:1; justify-self:end; }
}

/* compact rows: clubs, venues, sessions, any time, consent */
.bk-rows{ display:grid; gap:.5rem; }
.bk-opt--row{ min-height:3.5rem; padding:.75rem 1rem; }
.bk-vrow{ position:relative; }
.bk-vrow .bk-opt{ padding-right:5.75rem; }
.bk-vrow__map{ position:absolute; z-index:1; top:50%; right:.375rem; transform:translateY(-50%); display:inline-flex; align-items:center; gap:.25rem; min-height:44px; padding:0 .75rem;
  border-left:1px solid var(--bk-rule); font:600 .875rem/1 var(--display); color:var(--bk-ink); text-decoration:none; }
.bk-vrow__map .i{ width:16px; height:16px; fill:currentColor; }
.bk-vrow__map:hover span:not(.visually-hidden){ text-decoration:underline; text-underline-offset:3px; }
.bk-vrow__map:focus-visible{ outline:3px solid var(--bk-red); outline-offset:0; border-radius:8px; }

/* ---------------------------------------------------------------- chips */
.bk-chips{ display:grid; gap:.5rem; grid-template-columns:repeat(2,minmax(0,1fr)); }
.bk-chips--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.bk-chips--days{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.bk .bk-chips--tod{ grid-template-columns:repeat(auto-fit,minmax(7.25rem,1fr)); }
/* Age and state choices take as many columns as their words need, so large
   text and narrow phones get fewer, wider choices without a breakpoint. */
.bk .bk-chips--ages{ grid-template-columns:repeat(auto-fit,minmax(min(100%,6.5rem),1fr)); }
.bk .bk-chips--states{ grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr)); }
.bk-chip{ position:relative; display:flex; min-width:0; cursor:pointer; }
.bk-chip input{ position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.bk-chip > span{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:48px; padding:.375rem .625rem; background:#fff; border:1.5px solid var(--bk-line); border-radius:10px; font:500 1rem/1.25 var(--display); color:var(--bk-ink); text-align:center; transition:border-color .15s,background-color .15s; }
.bk-chip:hover > span{ border-color:var(--bk-edge); }
.bk-chip input:checked + span{ background:var(--bk-ink); border-color:var(--bk-ink); color:#fff; font-weight:600; }
.bk-chip input:checked + span small{ color:#D8D7D6; }
.bk-chip input:focus-visible + span{ outline:3px solid var(--bk-red); outline-offset:2px; }
.bk-chip input:disabled + span{ opacity:.45; cursor:not-allowed; }
.bk-chip > span b{ font-weight:600; white-space:nowrap; }
.bk-chip > span small{ font:500 .75rem/1.2 var(--display); color:var(--bk-muted); }
.bk-chips--states .bk-chip > span{ font-size:.9375rem; min-height:44px; }
.bk-short{ display:none; }
@container bkm (min-width:30rem){ .bk-chips--days{ grid-template-columns:repeat(7,minmax(0,1fr)); } }
.bk .bk-chips--exp{ grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5rem),1fr)); max-width:26rem; }
.bk-chips--2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.bk-chips--2{ max-width:16rem; }
/* very narrow workspace (a phone with very large text): one choice per row,
   and the room goes to words rather than margins and pictures */
@container bk (max-width:16rem){
  .bk-main{ padding-inline:.75rem; }
  .bk-person,.bk-person.is-collapsed{ padding-left:.75rem !important; }
  .bk-ava{ display:none; }
  .bk-chips,.bk-chips--states,.bk-chips--ages,.bk-chips--exp,.bk-chips--days{ grid-template-columns:minmax(0,1fr); }
  .bk-chip > span{ overflow-wrap:anywhere; }
}
@container bk (max-width:32.5rem){
  .bk-chips--3 .bk-long{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .bk-chips--3 .bk-short{ display:inline; }
}

/* ---------------------------------------------------------------- step 1: people, one at a time */
.bk-people .bk-sechead{ margin-bottom:.875rem; }
#bk-people{ display:flex; flex-direction:column; gap:.5rem; }
.bk-person{ position:relative; border:1.5px solid var(--bk-line) !important; border-radius:14px; padding:.75rem .75rem .75rem 4rem !important; background:#fff; }
.bk-ava{ position:absolute; left:.75rem; top:.75rem; width:2.5rem; height:2.5rem; border-radius:50%; background:var(--bk-paper); display:grid; place-items:center; }
.bk-ava svg{ width:1.375rem; height:1.375rem; }
.bk-ava svg.bk-ava__child{ width:1.125rem; height:1.125rem; }
.bk-person__legend{ float:left; width:100%; padding-right:5rem !important; font:600 1rem/1.35 var(--display); color:var(--bk-ink); min-height:1.375rem; }
.bk-person__sum{ clear:both; font:400 .875rem/1.45 var(--display); color:var(--bk-muted); }
.bk-person__tools{ position:absolute; top:.25rem; right:.5rem; display:flex; gap:.25rem; }
.bk-person__btn{ flex:none; min-height:44px; min-width:44px; padding:0 .5rem; background:none; border:0; border-radius:8px; font:600 .875rem var(--display); color:var(--bk-ink); text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.bk-person__btn:focus-visible,.bk-person__done:focus-visible,.bk-add:focus-visible,.bk-reveal:focus-visible,.bk-linkbtn:focus-visible{ outline:3px solid var(--bk-red); outline-offset:2px; }
.bk-person__btn--remove{ color:var(--bk-muted); }
.bk-person.is-collapsed{ min-height:4rem; }
.bk-person.is-collapsed:not(.is-done) .bk-person__sum{ color:var(--bk-ink); }
.bk-person.is-collapsed .bk-person__rows{ display:none; }
.bk-person.has-remove.is-collapsed .bk-person__legend{ padding-right:9.5rem !important; }
.bk-person.is-open{ background:var(--bk-paper); border-color:var(--bk-paper) !important; padding:1rem !important; }
.bk-person.is-open .bk-ava{ display:none; }
.bk-person.is-open .bk-person__legend{ padding-top:.625rem !important; font-size:1.0625rem; }
.bk-person.is-open .bk-person__sum{ display:none; }
.bk-person__rows{ clear:both; display:flex; flex-direction:column; gap:1.125rem; padding-top:1rem; }
.bk-person__row{ display:flex; flex-direction:column; gap:.5rem; }
.bk-person__row > .bk-rowlabel{ font:600 .9375rem/1.3 var(--display); color:var(--bk-ink); }
.bk-person__q{ padding:.875rem 1rem; background:#fff; border-radius:10px; }
.bk .bk-rowlabel--q{ font-weight:600; color:var(--bk-ink); }
.bk-person__qnote{ margin-top:.625rem !important; }
.bk-person__acts{ display:flex; gap:.75rem; align-items:center; }
.bk-person__done{ min-height:44px; padding:0 1.25rem; border:0; border-radius:10px; background:var(--bk-ink); color:#fff; font:600 .9375rem var(--display); cursor:pointer; }
.bk-person.has-error{ border-color:var(--bk-red-text) !important; box-shadow:inset 0 0 0 1px var(--bk-red-text); }
.bk-person.is-collapsed.has-error .bk-person__sum{ color:var(--bk-red-text); font-weight:600; }
.bk-people__foot{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.75rem 1.25rem; margin-top:.75rem; }
.bk-add{ display:inline-flex; align-items:center; gap:.625rem; min-height:48px; padding:0 1.125rem; background:#fff; border:1.5px dashed var(--bk-edge); border-radius:var(--bk-r); font:600 .9375rem var(--display); color:var(--bk-ink); cursor:pointer; }
.bk-add .i{ width:16px; height:16px; }
.bk-add:hover{ border-color:var(--bk-ink); }
.bk-person.is-open .bk-chip > span{ background:#fff; }
.bk-person.is-open .bk-chip input:checked + span{ background:var(--bk-ink); }
/* narrow workspace: the person's buttons sit under the summary when room is short */
@container bk (max-width:22rem){
  .bk-person .bk-person__tools{ position:static; justify-content:flex-start; margin:.25rem 0 -.5rem -.5rem; }
  .bk-person .bk-person__legend,.bk-person.has-remove.is-collapsed .bk-person__legend{ padding-right:0 !important; }
  .bk-person.is-open .bk-person__tools{ margin:0 0 .25rem -.5rem; }
}

/* ---------------------------------------------------------------- step 3: when */
.bk-when-sessions.is-many{ display:grid; gap:1.75rem; }
@container bkm (min-width:42rem){ .bk-when-sessions.is-many{ grid-template-columns:repeat(var(--bk-n,2),minmax(0,1fr)); gap:1rem; } }
.bk-sessgroup legend{ margin-bottom:.625rem; }
.bk-sessgroup .bk-opts{ gap:.5rem; }
.bk-opt--session{ grid-template-columns:22px minmax(0,1fr); padding:.75rem .875rem; }
.bk-sess{ display:flex; flex-direction:column; gap:.125rem; }
.bk-sess__when{ display:flex; align-items:baseline; flex-wrap:wrap; gap:.125rem .5rem; }
.bk-sess__day{ font:700 .8125rem var(--display); color:var(--bk-red-text); }
.bk-sess__time{ font:700 1.125rem/1.2 var(--font-shotokan,var(--display)); color:var(--bk-ink); }
.bk-sess__what{ display:flex; flex-direction:column; }
.bk-sess__name{ font:600 .9375rem/1.4 var(--display); color:var(--bk-ink); }
.bk-sess__ages{ font:400 .8125rem/1.4 var(--display); color:var(--bk-muted); }
.bk-sess__ages:empty{ display:none; }
.bk-nomatch{ padding:.875rem 1rem; background:var(--bk-paper); border-radius:10px; font:500 .9375rem/1.5 var(--display); }
.bk-sessothers{ margin-top:1rem !important; grid-column:1 / -1; }
.bk-when-sel{ font:500 .9375rem/1.5 var(--display); color:var(--bk-ink); }
.bk-when-sel:empty{ display:none; }
.bk-opt--any .bk-opt__d{ margin-top:0; }

/* ---------------------------------------------------------------- step 4: details */
.bk-fields{ display:grid; grid-template-columns:minmax(0,1fr); gap:1.375rem; }
@container bkm (min-width:36rem){
  .bk-fields{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bk-field--wide{ grid-column:1 / -1; }
}
.bk-field{ display:flex; flex-direction:column; gap:.5rem; min-width:0; }
.bk-label{ font:600 1rem/1.3 var(--display); color:var(--bk-ink); }
.bk-label i,.bk-reveal i{ font-style:normal; font-weight:400; color:var(--bk-muted); }
fieldset.bk-field > legend.bk-label{ margin-bottom:.5rem; }
.bk-hint{ font:400 .875rem/1.5 var(--display); color:var(--bk-muted); }
.bk-input{ width:100%; height:52px; padding:0 1rem; border:1.5px solid var(--bk-edge); border-radius:10px; background:#fff; font:500 1.0625rem var(--display); color:var(--bk-ink); }
textarea.bk-input{ height:auto; min-height:6rem; padding:.75rem 1rem; line-height:1.5; resize:vertical; }
.bk-input:focus{ outline:3px solid var(--bk-red); outline-offset:1px; border-color:var(--bk-ink); }
.is-err > .bk-input,.bk-input[aria-invalid="true"]{ border:2px solid var(--bk-red-text); }
.bk-reveal{ align-self:flex-start; display:inline-flex; align-items:center; gap:.5rem; min-height:44px; padding:0; background:none; border:0; font:600 .9375rem/1.3 var(--display); color:var(--bk-ink); text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.bk-reveal .i{ width:16px; height:16px; flex:none; }
.bk-opt--consent{ align-items:start; background:var(--bk-paper); border-color:var(--bk-paper); }
.bk-opt--consent.is-on{ background:#fff; }
#bk-f-consent.is-err .bk-opt{ border:2px solid var(--bk-red-text); box-shadow:none; background:var(--bk-err-bg); }

/* ---------------------------------------------------------------- errors and callouts */
.bk-error{ display:flex; gap:.5rem; align-items:flex-start; font:600 .9375rem/1.45 var(--display); color:var(--bk-red-text); }
.bk-error .i{ flex:none; width:18px; height:18px; margin-top:2px; }
.bk-errors{ margin-bottom:1.5rem; padding:1rem 1.125rem; border-left:4px solid var(--bk-red-text); border-radius:10px; background:var(--bk-err-bg); }
.bk-errors:focus{ outline:3px solid var(--bk-ink); outline-offset:3px; }
.bk-errors__title{ display:flex; gap:.5rem; font:600 1rem/1.35 var(--display); color:var(--bk-ink); }
.bk-errors__title .i{ flex:none; width:18px; height:18px; margin-top:2px; color:var(--bk-red-text); fill:var(--bk-red-text); }
.bk-errors ul{ margin:.5rem 0 0; padding-left:2.75rem; display:flex; flex-direction:column; gap:.25rem; }
@container bk (max-width:30rem){ .bk-errors ul{ padding-left:1.25rem; } .bk-errors{ padding:.875rem .875rem .875rem 1rem; } }
.bk-errors a{ font:500 .9375rem/1.45 var(--display); color:var(--bk-red-text); text-underline-offset:3px; }

.bk-callout{ display:block; padding:.875rem 1rem; background:var(--bk-paper); border-radius:10px; font:400 .9375rem/1.55 var(--display); color:var(--bk-ink); }
.bk-callout--mark{ display:flex; flex-direction:column; gap:.25rem; border-left:4px solid var(--bk-red); }
.bk-callout__t{ font:600 1rem/1.45 var(--display); color:var(--bk-ink); }
.bk-callout p + p{ color:var(--bk-muted); }
.bk-failed{ padding:.875rem 1rem; border-left:4px solid var(--bk-red-text); border-radius:10px; background:var(--bk-err-bg); display:flex; flex-direction:column; gap:.25rem; font:400 .9375rem/1.55 var(--display); }
.bk-failed a{ color:var(--bk-red-text); }
.bk-linkbtn{ display:inline-block; min-height:44px; padding:0; background:none; border:0; font:500 .875rem var(--display); color:var(--bk-muted); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.bk-launch .bk-linkbtn{ font:600 .9375rem/1.3 var(--display); color:var(--bk-red-text); }

/* ---------------------------------------------------------------- step 5: review, and done */
.bk-review{ border:1.5px solid var(--bk-rule); border-radius:14px; overflow:hidden; }
.bk-rv{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.125rem .75rem; padding:.875rem 1rem; border-top:1px solid var(--bk-rule); }
.bk-rv:first-child{ border-top:0; }
.bk-rv__head{ display:contents; }
.bk-rv__t{ grid-column:1; font:600 .875rem/1.5 var(--display); color:var(--bk-muted); }
.bk-rv__edit{ grid-column:2; grid-row:1 / span 2; align-self:start; min-height:44px; padding:0 .25rem; margin:-.625rem -.25rem 0 0; background:none; border:0; font:600 .9375rem var(--display); color:var(--bk-red-text); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.bk-rv__edit:focus-visible{ outline:3px solid var(--bk-red); outline-offset:0; }
.bk-rv__v{ grid-column:1; }
.bk-rv__v p{ font:500 .9375rem/1.55 var(--display); color:var(--bk-ink); }
@container bkm (min-width:36rem){
  .bk-rv{ grid-template-columns:10rem minmax(0,1fr) auto; gap:1rem; padding:1rem 1.25rem; }
  .bk-rv__t{ grid-row:1; }
  .bk-rv__v{ grid-column:2; grid-row:1; }
  .bk-rv__edit{ grid-column:3; grid-row:1; min-height:0; margin:0; }
}
.bk-review--done .bk-rv__edit{ display:none; }
.bk-done > * + *{ margin-top:1.25rem; }
.bk-done__mark{ display:grid; place-items:center; width:52px; height:52px; border-radius:50%; background:var(--bk-red); color:#fff; }
.bk-done__mark .i{ width:26px; height:26px; fill:currentColor; }
.bk .bk-q--done{ font-size:1.75rem; font-weight:700; }
@container bk (min-width:55rem){ .bk .bk-q--done{ font-size:2.25rem; } .bk-done{ max-width:46rem; } }
.bk-done__acts{ display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.5rem; margin-top:1.75rem !important; }

/* Forced colours: keep selection and the workspace edge visible without colour. */
@media (forced-colors:active){
  .bk-dialog{ border:2px solid CanvasText; }
  .bk-launch__opt{ border-color:CanvasText; }
  .bk-opt.is-on{ outline:3px solid CanvasText; }
  .bk-chip input:checked + span{ outline:3px solid CanvasText; }
  .bk-progress__bar{ border:1px solid CanvasText; }
}
