/* Pottery studio: class booking flow (example 02). A calm studio look in light and dark: paper,
   ink, one green for actions and selection. Flat surfaces, 1px lines. The palette lives on <html>
   (theme.js sets data-theme before the page draws), so the page background matches the color the
   portfolio card opens in: #eef1ec in light, #131815 in dark. */

:root,
html[data-theme="light"] {
  --bg: #eef1ec;
  --paper: #f7f9f5;
  --field: #f7f9f5;
  --field-focus: #ffffff;
  --ink: #1b2420;
  --ink-soft: #3b4741;
  --muted: #5b665f;
  --off: #8f9a93;
  --line: #c9d1c7;
  --line-soft: #dbe1d8;
  --green: #2f5d46;
  --green-dark: #244a37;
  --on-green: #ffffff;
  --green-tint: #e0e9df;
  --art-fill: #dbe5dc;
  --art-fill-on: #bcd0c0;
  --clay: #9c4f29;
  --error: #a3352a;
  --on-error: #ffffff;
  --error-tint: #f6ebe7;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #131815;
  --paper: #1a201c;
  --field: #171c19;
  --field-focus: #0f1311;
  --ink: #e4e9e5;
  --ink-soft: #bcc5bf;
  --muted: #929c95;
  --off: #6b766f;
  --line: #36403a;
  --line-soft: #262e29;
  --green: #8cc4a2;
  --green-dark: #a6d4b8;
  --on-green: #0f1612;
  --green-tint: #1e3027;
  --art-fill: #26332b;
  --art-fill-on: #2f4a3a;
  --clay: #e39a72;
  --error: #f0928a;
  --on-error: #1a0f0d;
  --error-tint: #2a1a18;
  color-scheme: dark;
}

html {
  background: var(--bg);
}

.bk {
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 32px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--ex-bar));
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
}

:where(.bk) *,
:where(.bk) *::before,
:where(.bk) *::after {
  box-sizing: border-box;
}

:where(.bk) button,
:where(.bk) input,
:where(.bk) textarea {
  font: inherit;
  color: inherit;
}

:where(.bk) svg {
  display: block;
}

.bk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.bk-wrap {
  width: min(1120px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* One focus style for the whole studio page: a 2px ink line, never a glow */
.bk :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.bk h2:focus,
.bk-errsum:focus {
  outline: none;
}

/* ---------- Header ---------- */
.bk-head {
  border-bottom: 1px solid var(--line-soft);
}

.bk-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.bk-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bk-mark {
  width: 32px;
  height: 32px;
}

.bk-brand-text {
  display: grid;
  line-height: 1;
}

.bk-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.bk-brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.bk-nav {
  display: flex;
  gap: 32px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.bk-nav-item {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.bk-nav-item:hover {
  border-color: var(--line);
  color: var(--ink);
}

.bk-nav-item.is-current {
  border-color: var(--ink);
  color: var(--ink);
}

/* the drawn parts of the page follow the palette */
.bk-mark-bg {
  fill: var(--green);
}

.bk-mark-line {
  stroke: var(--on-green);
}

.bk-shelf {
  color: var(--ink);
}

.bk-shelf .f {
  fill: var(--art-fill);
}

.bk-shelf .g {
  fill: var(--green);
  stroke: var(--green);
}

/* ---------- Header panels (visit, gift cards) ---------- */
.bk-panel {
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  animation: bk-panel-in 0.45s var(--ease-out);
}

@keyframes bk-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.bk-panel-in {
  padding: 24px 0 28px;
}

.bk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.bk .bk-panel h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bk-panel-close {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.bk-panel-close:hover {
  color: var(--ink);
}

.bk-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 40px;
  margin: 0;
  font-size: 0.9375rem;
}

.bk-panel-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bk-panel-grid dd {
  margin: 0;
  color: var(--ink-soft);
}

.bk-panel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}

.bk-panel-row p {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- Intro ---------- */
.bk-main {
  flex: 1;
  padding-bottom: 96px;
}

.bk-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  padding: 56px 0 44px;
}

.bk-eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bk h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.bk-intro-lede {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.bk-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.bk-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bk-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--green);
}

.bk-shelf {
  width: 300px;
  height: auto;
}

/* ---------- Layout of the flow ---------- */
.bk-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 328px;
  grid-template-areas:
    "col side"
    "actions side";
  column-gap: 56px;
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.bk-col {
  grid-area: col;
  min-width: 0;
  container-type: inline-size;
}

.bk-dock {
  display: contents;
}

.bk-summary {
  grid-area: side;
  position: sticky;
  top: calc(var(--ex-bar) + 24px);
}

.bk-actions {
  grid-area: actions;
}

/* ---------- Step indicator ---------- */
.bk-steps {
  display: flex;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.bk-steps li {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
}

.bk-steps li:last-child {
  flex: 0 0 auto;
}

/* the line between two steps; filled once the step before it is done */
.bk-steps li:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: 16px;
  height: 1px;
  margin: 0 14px;
  background: var(--line);
  transition: background-color 0.4s var(--ease);
}

.bk-steps li.is-done:not(:last-child)::after {
  background: var(--green);
}

.bk-si {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.bk-si[aria-disabled="true"] {
  cursor: default;
}

.bk-si-n {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.bk-si-n::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 6px;
  margin-top: -2px;
  border: solid currentColor;
  border-width: 0 0 1.75px 1.75px;
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.35s var(--ease-out);
}

.bk-si[aria-current="step"] {
  color: var(--ink);
  font-weight: 600;
}

.bk-si[aria-current="step"] .bk-si-n {
  border-color: var(--green);
  background: var(--green);
  color: var(--on-green);
}

.is-done > .bk-si {
  color: var(--ink-soft);
}

.is-done > .bk-si:not([aria-current]) .bk-si-n {
  border-color: var(--green);
  color: var(--green);
}

.is-done > .bk-si:not([aria-current]) .bk-si-n span {
  opacity: 0;
}

.is-done > .bk-si:not([aria-current]) .bk-si-n::after {
  opacity: 1;
  transform: rotate(-45deg);
}

.bk-si:not([aria-disabled="true"]):not([aria-current]):hover {
  color: var(--ink);
}

.bk-si:not([aria-disabled="true"]):not([aria-current]):hover .bk-si-n {
  background: var(--green-tint);
}

/* ---------- Steps ---------- */
.bk-step-head {
  margin-bottom: 28px;
}

.bk-step-count {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bk h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.bk-lede {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

/* Moving between steps: the new one slides in a little from the side it comes from */
.bk-step.is-enter-fwd {
  animation: bk-enter-fwd 0.5s var(--ease-out) both;
}

.bk-step.is-enter-back {
  animation: bk-enter-back 0.5s var(--ease-out) both;
}

@keyframes bk-enter-fwd {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

@keyframes bk-enter-back {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

/* ---------- Step 1: classes ---------- */
.bk-classes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

@container (min-width: 600px) {
  .bk-classes {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.bk-class {
  position: relative;
  display: flex;
  cursor: pointer;
}

/* the real radio stays in the page (focus, arrow keys, screen readers) but out of sight */
.bk-class-input,
.bk-chip input,
.bk-slot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.bk-class-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.4s var(--ease-out);
}

.bk-class:hover .bk-class-card {
  border-color: var(--ink-soft);
}

.bk-class-input:checked + .bk-class-card {
  border-color: var(--green);
  background: var(--green-tint);
  outline: 1px solid var(--green);
  outline-offset: -2px;
}

.bk-class-input:focus-visible + .bk-class-card {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.bk-class-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bk-art {
  width: 56px;
  height: 56px;
  color: var(--ink);
}

.bk-art .f {
  fill: var(--art-fill);
  transition: fill 0.3s var(--ease);
}

.bk-class-input:checked + .bk-class-card .bk-art .f {
  fill: var(--art-fill-on);
}

.bk-tick {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--on-green);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.bk-tick svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s var(--ease), transform 0.35s var(--ease-out);
}

.bk-class-input:checked + .bk-class-card .bk-tick {
  border-color: var(--green);
  background: var(--green);
}

.bk-class-input:checked + .bk-class-card .bk-tick svg {
  opacity: 1;
  transform: none;
}

.bk-class-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bk-class-desc {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.bk-class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.bk-class-meta span {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.bk-class-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 16px;
}

.bk-class-meta + .bk-class-foot {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.bk-price {
  color: var(--muted);
  font-size: 0.875rem;
}

.bk-price strong {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.bk-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.bk-next b {
  font-weight: 600;
}

.bk-next .is-few {
  color: var(--clay);
}

/* availability markers: a short bar for open, a shorter clay bar for few spots */
.bk-mk {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 3px;
  border-radius: 1px;
  background: var(--green);
}

.bk-mk.is-few {
  width: 5px;
  background: var(--clay);
}

/* ---------- Errors ---------- */
.bk-err {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}

.bk-err::before {
  content: "!";
  display: grid;
  flex: none;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: var(--radius);
  background: var(--error);
  color: var(--on-error);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.bk-err-block {
  margin: -12px 0 20px;
}

/* ---------- Step 2: calendar and times ---------- */
.bk-when {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@container (min-width: 640px) {
  .bk-when {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 32px;
  }
}

.bk-cal {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.bk-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bk-month {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bk-cal-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.bk-cal-nav svg {
  width: 16px;
  height: 16px;
}

.bk-cal-nav:hover:not([aria-disabled="true"]) {
  border-color: var(--ink-soft);
}

.bk-cal-nav[aria-disabled="true"] {
  color: var(--line);
  cursor: default;
}

.bk-grid {
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
  margin: 0 -3px;
  width: calc(100% + 6px);
}

.bk-grid th {
  padding: 6px 0 8px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bk-grid td {
  padding: 0;
}

.bk-day {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 46px;
  padding: 0 0 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.bk-day .bk-mk {
  position: absolute;
  left: 50%;
  bottom: 9px;
  translate: -50% 0;
}

.bk-day:focus-visible {
  outline-offset: 1px;
}

[aria-selected="false"] > .bk-day.is-open:hover,
[aria-selected="false"] > .bk-day.is-few:hover {
  border-color: var(--ink-soft);
  background: var(--bg);
}

.bk-day.is-today .bk-day-n {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.bk-day[aria-disabled="true"] {
  color: var(--off);
  cursor: default;
}

.bk-day.is-full .bk-day-n {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

[aria-selected="true"] > .bk-day {
  border-color: var(--green);
  background: var(--green);
  color: var(--on-green);
}

[aria-selected="true"] > .bk-day .bk-mk {
  background: var(--on-green);
}

.bk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 0;
  padding: 12px 2px 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  color: var(--muted);
  font-size: 0.8125rem;
}

.bk-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bk-mk-full {
  color: var(--off);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: line-through;
}

.bk-times {
  min-width: 0;
  scroll-margin-bottom: 180px;
}

.bk-times-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 220px;
  height: 100%;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.bk-times-empty svg {
  width: 28px;
  height: 28px;
  color: var(--line);
}

.bk-times-empty p {
  max-width: 17rem;
  margin: 0;
}

.bk-times-msg {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.9375rem;
}

.bk-times-msg p {
  margin: 0;
}

.bk-times-msg p + p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.bk-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.bk-link:hover {
  color: var(--green-dark);
}

.bk-slots {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.bk-slots legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bk-slots-sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.875rem;
}

.bk-slot-list {
  display: grid;
  gap: 8px;
}

.bk-slot {
  position: relative;
  display: flex;
  cursor: pointer;
}

.bk-slot-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  flex: 1;
  min-height: 60px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.bk-slot:hover .bk-slot-body {
  border-color: var(--ink-soft);
}

.bk-slot-time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bk-slot-end {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.8125rem;
}

.bk-slot-left {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: right;
}

.bk-slot-left.is-few {
  color: var(--clay);
}

.bk-slot input:checked + .bk-slot-body {
  border-color: var(--green);
  background: var(--green-tint);
  outline: 1px solid var(--green);
  outline-offset: -2px;
}

.bk-slot input:focus-visible + .bk-slot-body {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.bk-slot.is-off {
  cursor: default;
}

.bk-slot.is-off .bk-slot-body {
  border-style: dashed;
  background: none;
  color: var(--muted);
}

.bk-slot.is-off:hover .bk-slot-body {
  border-color: var(--line);
}

.bk-slot.is-off .bk-slot-time {
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.bk-slot.is-off .bk-slot-left {
  color: var(--muted);
}

/* ---------- Step 3: details ---------- */
.bk-errsum {
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--error);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--error-tint);
}

.bk-errsum:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.bk-errsum h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.bk-errsum ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bk-errsum a {
  display: inline-block;
  padding: 3px 0;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bk-errsum a:hover {
  color: var(--ink);
}

.bk-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 20px;
}

@container (min-width: 560px) {
  .bk-form {
    grid-template-columns: 1fr 1fr;
  }

  .bk-span {
    grid-column: 1 / -1;
  }
}

.bk-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bk-field > label,
.bk-field > legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* a fieldset's legend sits outside the flex flow, so its hint needs its own spacing */
.bk-choice > legend {
  float: left;
  width: 100%;
}

.bk-choice > legend + * {
  clear: both;
}

.bk-opt {
  color: var(--muted);
  font-weight: 400;
}

.bk-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.bk-field > label + input,
.bk-field > label + textarea {
  margin-top: 4px;
}

.bk-field input[type="text"],
.bk-field input[type="email"],
.bk-field input[type="tel"],
.bk-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.bk-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.bk-field input:hover,
.bk-field textarea:hover {
  border-color: var(--ink-soft);
}

.bk-field input:focus-visible,
.bk-field textarea:focus-visible {
  border-color: var(--ink);
  background: var(--field-focus);
  outline: 1px solid var(--ink);
  outline-offset: 0;
}

.bk-field.is-invalid input,
.bk-field.is-invalid textarea {
  border-color: var(--error);
}

.bk-field.is-invalid input:focus-visible {
  outline-color: var(--error);
}

.bk-suggest {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.bk-suggest strong {
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}

.bk-suggest button {
  min-height: 32px;
  margin-left: 4px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bk-chip {
  position: relative;
  display: flex;
  cursor: pointer;
}

.bk-chip span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

/* the radio dot, square like everything else */
.bk-chip span::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  background: var(--paper);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.bk-chip:hover span {
  border-color: var(--ink-soft);
}

.bk-chip input:checked + span {
  border-color: var(--green);
  background: var(--green-tint);
}

.bk-chip input:checked + span::before {
  border-color: var(--green);
  background: var(--green);
  outline: 2px solid var(--green-tint);
  outline-offset: -4px;
}

.bk-chip input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.bk-field.is-invalid .bk-chip span {
  border-color: var(--error);
}

.bk-note-tip {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--green);
  background: var(--green-tint);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.bk-seats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.bk-stepper {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.bk-step-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.bk-step-btn svg {
  width: 16px;
  height: 16px;
}

.bk-step-btn:hover:not([aria-disabled="true"]) {
  background: var(--green-tint);
}

.bk-step-btn[aria-disabled="true"] {
  color: var(--off);
  cursor: default;
}

.bk-stepper input {
  width: 56px;
  height: 48px;
  padding: 0;
  border: solid var(--line);
  border-width: 0 1px;
  border-radius: 0;
  background: none;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.bk-stepper input::-webkit-outer-spin-button,
.bk-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bk-stepper input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.bk-seat-cost {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.bk-seat-cost strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Step 4: review ---------- */
.bk-review {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.bk-rv {
  padding: 18px 20px;
}

.bk-rv + .bk-rv {
  border-top: 1px solid var(--line-soft);
}

.bk-rv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -12px 0 -2px;
}

.bk-rv-head h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bk-edit {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0 0 8px;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.bk-edit:hover {
  color: var(--green-dark);
}

.bk-rv-main {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bk-rv-sub {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.bk-rv-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 20px;
  margin: 2px 0 0;
  font-size: 0.9375rem;
}

.bk-rv-list dt {
  color: var(--muted);
}

.bk-rv-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.bk-bill {
  margin-top: 16px;
  padding: 6px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bk-bill dl {
  margin: 0;
}

.bk-bill dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 0.9375rem;
}

.bk-bill dl > div + div {
  border-top: 1px solid var(--line-soft);
}

.bk-bill dt {
  color: var(--ink-soft);
}

.bk-bill dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bk-bill .bk-bill-total {
  padding: 14px 0 12px;
  border-top-color: var(--line) !important;
}

.bk-bill-total dt {
  color: var(--ink);
  font-weight: 600;
}

.bk-bill-total dd {
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.bk-policy {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.bk-policy svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--green);
}

/* ---------- Done ---------- */
.bk-done-mark svg {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
}

.bk-done.is-enter-fwd .bk-done-mark {
  animation: bk-pop 0.7s var(--ease-out) 0.1s both;
}

@keyframes bk-pop {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-8deg);
  }
}

.bk-done h2 {
  font-size: 2rem;
}

.bk-ticket {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.bk-ticket-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 18px 20px;
  border-bottom: 1px dashed var(--line);
}

.bk-ticket-ref span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.bk-ticket-ref strong {
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.bk-ticket-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  font-size: 0.9375rem;
}

.bk-ticket-list > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
}

.bk-ticket-list dt {
  color: var(--muted);
}

.bk-ticket-list dd {
  margin: 0;
}

.bk-done-tip {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.bk-done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Buttons ---------- */
.bk-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.bk-btn svg {
  width: 16px;
  height: 16px;
}

.bk-btn-primary {
  background: var(--green);
  color: var(--on-green);
}

.bk-btn-primary:hover {
  background: var(--green-dark);
}

.bk-btn-primary .bk-next-arrow {
  transition: transform 0.35s var(--ease-out);
}

.bk-btn-primary:hover .bk-next-arrow {
  transform: translateX(3px);
}

.bk-btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.bk-btn-ghost:hover {
  border-color: var(--ink-soft);
}

.bk-btn[aria-disabled="true"] {
  cursor: default;
}

.bk-btn-ghost[aria-disabled="true"] {
  color: var(--muted);
}

/* "Confirming": three small squares take turns */
.bk-dots {
  display: none;
  gap: 4px;
}

.bk-dots i {
  width: 4px;
  height: 4px;
  background: currentColor;
  animation: bk-dot 0.9s var(--ease) infinite;
}

.bk-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.bk-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bk-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.bk-btn.is-busy .bk-dots {
  display: inline-flex;
}

.bk-btn.is-busy .bk-next-arrow {
  display: none;
}

.bk-btn-primary.is-busy {
  background: var(--green-dark);
}

/* ---------- Actions ---------- */
.bk-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.bk-actions-hint {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: right;
}

.bk-flow.is-done .bk-actions {
  display: none;
}

/* ---------- Summary ---------- */
.bk .is-unstuck {
  position: static;
}

.bk-summary:focus {
  outline: none;
}

.bk-sum-toggle {
  display: none;
}

.bk-sum-body {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.bk-sum-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bk h2.bk-sum-title {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--on-green);
  font-size: 0.75rem;
  font-weight: 600;
}

.bk-sum-class {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.bk-sum-art {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg);
}

.bk-sum-art svg {
  width: 38px;
  height: 38px;
  color: var(--ink);
}

.bk-sum-art:empty::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px dashed var(--line);
}

.bk-sum-name,
.bk-sum-meta {
  display: block;
}

.bk-sum-name {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.bk-sum-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.bk-sum-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
}

.bk-sum-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.bk-sum-list dt {
  color: var(--muted);
}

.bk-sum-list dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bk-sum-list dd.is-empty,
.bk-sum-name.is-empty {
  color: var(--muted);
  font-weight: 400;
}

.bk-sum-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
}

.bk-sum-total span {
  font-weight: 600;
}

.bk-sum-total strong {
  font-size: 1.625rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.bk-sum-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.bk-sum-gift {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--green);
  background: var(--green-tint);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* a value that just changed settles in */
.bk-flash {
  animation: bk-flash 0.5s var(--ease-out);
}

@keyframes bk-flash {
  from {
    opacity: 0.2;
    transform: translateY(4px);
  }
}

/* ---------- Footer ---------- */
.bk-foot {
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.8125rem;
}

.bk-foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 28px 0;
}

.bk-foot-brand {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1060px) {
  .bk-shelf {
    width: 230px;
  }

  .bk-flow {
    grid-template-columns: minmax(0, 1fr) 296px;
    column-gap: 40px;
  }
}

/* Below this the summary and the actions become one bar at the bottom of the screen */
@media (max-width: 900px) {
  .bk-shelf {
    display: none;
  }

  .bk-intro {
    grid-template-columns: 1fr;
  }

  .bk-flow {
    display: block;
  }

  .bk-dock {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: block;
    margin: 40px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg);
  }

  .bk-flow.is-done .bk-dock {
    display: none;
  }

  .bk-summary {
    position: static;
  }

  .bk-sum-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 10px 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
  }

  .bk-sum-brief {
    display: grid;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
  }

  .bk-sum-brief-name {
    overflow: hidden;
    font-size: 0.9375rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bk-sum-brief-when {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8125rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bk-sum-mini-total {
    font-size: 1.0625rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }

  .bk-sum-chev {
    flex: none;
    width: 16px;
    height: 16px;
    transition: transform 0.35s var(--ease-out);
  }

  .bk-summary.is-open .bk-sum-chev {
    transform: rotate(180deg);
  }

  .bk-sum-body {
    display: none;
    max-height: 46vh;
    overflow-y: auto;
    margin-bottom: 4px;
    padding: 16px 16px 14px;
    overscroll-behavior: contain;
  }

  .bk-summary.is-open .bk-sum-body {
    display: block;
    animation: bk-open 0.35s var(--ease-out);
  }

  @keyframes bk-open {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }

  .bk-actions {
    margin: 0;
    padding: 0;
    border: 0;
    gap: 10px;
  }

  .bk-actions-hint {
    display: none;
  }

  .bk-actions .bk-btn-primary {
    flex: 1;
  }

  .bk-actions .bk-btn-ghost {
    padding: 0 16px;
  }
}

/* On a phone the studio links move to their own row under the name */
@media (max-width: 720px) {
  .bk-head-in {
    flex-wrap: wrap;
    gap: 0 24px;
    height: auto;
    padding: 14px 0 0;
  }

  .bk-nav {
    width: 100%;
    gap: 22px;
    margin-top: 6px;
  }

  .bk-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .bk {
    --gutter: 16px;
  }


  .bk-intro {
    padding: 36px 0 32px;
  }

  .bk-intro-lede {
    font-size: 1rem;
  }

  .bk-facts {
    display: grid;
    gap: 6px;
    margin-top: 20px;
  }

  .bk-flow {
    padding-top: 24px;
  }

  .bk-steps {
    margin-bottom: 30px;
  }

  .bk-steps li:not(:last-child)::after {
    margin: 0 8px;
  }

  /* only the current step keeps its name on a phone */
  .bk-si:not([aria-current]) .bk-si-l {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .bk-si {
    min-width: 44px;
    justify-content: center;
  }

  .bk-si[aria-current] {
    justify-content: flex-start;
  }

  .bk h2 {
    font-size: 1.5rem;
  }

  .bk-class-card {
    padding: 16px 16px 14px;
  }

  .bk-class-top {
    margin-bottom: 10px;
  }

  .bk-art {
    width: 40px;
    height: 40px;
  }

  .bk-cal {
    padding: 14px 12px 12px;
  }

  .bk-grid {
    border-spacing: 2px;
    margin: 0 -2px;
    width: calc(100% + 4px);
  }

  .bk-day {
    height: 44px;
  }

  .bk-times-empty {
    min-height: 120px;
  }

  .bk-rv,
  .bk-ticket-ref,
  .bk-ticket-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bk-bill {
    padding: 4px 16px;
  }

  .bk-done-actions .bk-btn {
    flex: 1 1 100%;
  }
}
