.demo-studio-intro {
  padding-block: clamp(48px, 7vw, 100px) clamp(30px, 5vw, 62px);
}
.demo-studio-intro h1 {
  max-width: 15ch;
  font-size: clamp(45px, 6.5vw, 86px);
}
.demo-studio-intro p {
  margin: 21px 0 0;
  max-width: 57ch;
  color: var(--muted);
  font-size: 18px;
}
.demo-back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 650;
  text-underline-offset: 4px;
}
.demo-studio-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: clamp(45px, 7vw, 90px);
  border-top: 1px solid var(--line);
}
.demo-studio-cards article {
  display: flex;
  align-items: start;
  flex-direction: column;
  padding: clamp(22px, 4vw, 48px) clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.demo-studio-cards article + article { border-left: 1px solid var(--line); }
.demo-studio-cards h2, .demo-studio-follow-up h2 {
  font-size: clamp(27px, 3.45vw, 46px);
}
.demo-studio-cards p {
  margin: 14px 0 26px;
  max-width: 47ch;
  color: var(--muted);
}
.demo-studio-cards .button { margin-top: auto; }
.demo-studio-interactive { margin-bottom: 35px; }
.demo-studio-follow-up {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.demo-studio-follow-up .button { flex: 0 0 auto; }

@media (max-width: 760px) {
  .demo-studio-cards { grid-template-columns: 1fr; }
  .demo-studio-cards article { padding-inline: 0; }
  .demo-studio-cards article + article { border-left: 0; }
  .demo-studio-follow-up { align-items: start; flex-direction: column; }
}

/* Interactive demo surfaces inherit the Websites studio palette. */
.studio-demo-runtime {
  --demo-paper: #f6f3ed;
  --demo-white: #fcfaf6;
  --demo-ink: #22231f;
  --demo-muted: #5c5b54;
  --demo-line: #d3cdc2;
  --demo-accent: #a63719;
  --demo-accent-hover: #812a14;
  --demo-wash: #f4e3d8;
  --demo-brand: var(--demo-accent);
  --demo-brand-wash: var(--demo-wash);
  color: var(--demo-ink);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.studio-demo-runtime .theme-fieldnote {
  --demo-brand: #476147;
  --demo-brand-wash: #e6ece3;
}
.studio-demo-runtime .theme-copperline {
  --demo-brand: #86502e;
  --demo-brand-wash: #f0e6da;
}
.studio-demo-runtime .theme-static-bloom {
  --demo-brand: #684371;
  --demo-brand-wash: #efe7f0;
}
.studio-demo-runtime .theme-lantern-row {
  --demo-brand: #215b77;
  --demo-brand-wash: #e4edf1;
}

.studio-demo-runtime :is(.booking-demo, .events-demo) {
  background: var(--demo-white);
  border: 1px solid var(--demo-line);
  color: var(--demo-ink);
  box-shadow: none;
}

.studio-demo-runtime :is(.demo-toolbar, .demo-theme-bar, .demo-brand-note) {
  background: var(--demo-paper);
  border-color: var(--demo-line);
  color: var(--demo-muted);
  font-size: .875rem;
  line-height: 1.4;
}
.studio-demo-runtime .demo-toolbar {
  gap: .55rem 1rem;
  padding: .75rem 1rem;
}
.studio-demo-runtime .demo-toolbar > div,
.studio-demo-runtime .demo-theme-bar > span {
  color: var(--demo-ink);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.studio-demo-runtime .demo-toolbar p {
  color: var(--demo-muted);
  font-size: .8125rem;
}
.studio-demo-runtime .demo-brand-note strong { color: var(--demo-ink); }
.studio-demo-runtime .demo-dot {
  background: var(--demo-accent);
  box-shadow: none;
}
.studio-demo-runtime .demo-theme-bar > div {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.studio-demo-runtime .demo-theme-bar button {
  width: auto;
  font-size: .8125rem;
}
.studio-demo-runtime :is(.demo-theme-bar button, .calendar-view-switch button)[aria-pressed="true"] {
  background: var(--demo-wash);
  border-color: var(--demo-accent);
  color: var(--demo-accent-hover);
}

.studio-demo-runtime :is(.booking-admin, .events-manager) {
  background: var(--demo-paper);
  border-color: var(--demo-line);
  color: var(--demo-ink);
}
.studio-demo-runtime :is(.booking-demo, .events-demo) .status-pill {
  color: var(--demo-accent-hover);
  background: var(--demo-wash);
  border-color: var(--demo-line);
  font-size: .6875rem;
}
.studio-demo-runtime :is(.manager-head, .admin-head) > div > span,
.studio-demo-runtime :is(.manager-list h3, .poster-picker legend) {
  color: var(--demo-accent-hover);
  font-size: .75rem;
  letter-spacing: .05em;
}
.studio-demo-runtime :is(.manager-head, .admin-head) h2 {
  font: 750 clamp(1.5rem, 3vw, 2rem)/1.1 Arial, Helvetica, sans-serif;
  color: var(--demo-ink);
}

.studio-demo-runtime .booking-demo[class*="theme-"] .booking-customer,
.studio-demo-runtime .events-demo[class*="theme-"] .club-preview {
  background: var(--demo-white);
  color: var(--demo-ink);
  font-family: inherit;
}
.studio-demo-runtime :is(.booking-demo, .events-demo)[class*="theme-"] :is(.booking-brand, .club-header) {
  border-color: var(--demo-line);
}
.studio-demo-runtime :is(.booking-demo, .events-demo)[class*="theme-"] :is(.booking-brand, .club-brand) .demo-logo,
.studio-demo-runtime .booking-demo[class*="theme-"] .staff-choices i {
  background: var(--demo-brand);
  color: var(--demo-white);
}
.studio-demo-runtime :is(.booking-brand, .club-brand) strong { font-size: .9375rem; }
.studio-demo-runtime .booking-demo[class*="theme-"] .booking-brand span,
.studio-demo-runtime .club-brand small {
  color: var(--demo-muted);
  font-size: .75rem;
}
.studio-demo-runtime .booking-demo[class*="theme-"] .booking-warning {
  background: var(--demo-wash);
  color: var(--demo-accent-hover);
  font-size: .75rem;
  letter-spacing: .025em;
}

.studio-demo-runtime .booking-demo[class*="theme-"] .booking-progress li {
  color: var(--demo-muted);
  font-size: .75rem;
}
.studio-demo-runtime .booking-demo[class*="theme-"] .booking-progress li > span {
  background: var(--demo-white);
  border-color: var(--demo-line);
}
.studio-demo-runtime .booking-demo[class*="theme-"] .booking-progress li:is(.active, .done) {
  color: var(--demo-brand);
}
.studio-demo-runtime .booking-demo[class*="theme-"] .booking-progress li:is(.active, .done) > span {
  background: var(--demo-brand);
  border-color: var(--demo-brand);
  color: var(--demo-white);
}
.studio-demo-runtime .booking-demo[class*="theme-"] :is(.booking-stage-head, .booking-confirmed) h2,
.studio-demo-runtime :is(.event-modal-card, .ticket-notice-card) h2 {
  margin: .65rem 0 .7rem;
  font: 750 clamp(1.55rem, 3.1vw, 2.35rem)/1.12 Arial, Helvetica, sans-serif;
  letter-spacing: -.035em;
  text-wrap: initial;
  color: var(--demo-ink);
}
.studio-demo-runtime .booking-demo[class*="theme-"] :is(.booking-stage-head, .booking-confirmed) > span {
  color: var(--demo-accent-hover);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .05em;
}
.studio-demo-runtime .booking-demo[class*="theme-"] :is(.booking-stage-head, .booking-confirmed) > p,
.studio-demo-runtime :is(.event-modal-card, .ticket-notice-card) p {
  color: var(--demo-muted);
  font-size: .9375rem;
  line-height: 1.5;
}

.studio-demo-runtime .booking-demo[class*="theme-"] :is(.choice-list, .choice-list button) { border-color: var(--demo-line); }
.studio-demo-runtime .booking-demo[class*="theme-"] .choice-list button { color: var(--demo-ink); }
.studio-demo-runtime .booking-demo[class*="theme-"] .choice-list button.selected { background: var(--demo-brand-wash); }
.studio-demo-runtime .booking-demo[class*="theme-"] :is(.choice-list button span, .staff-choices span, .booking-review span, .booking-review small, .demo-customer-details label span, .choose-date-note) {
  color: var(--demo-muted);
  font-size: .8125rem;
}
.studio-demo-runtime .booking-demo[class*="theme-"] :is(.staff-choices button, .date-choices button, .time-choices button, .class-session-list button, .booking-review > div, .demo-customer-details input) {
  background: var(--demo-white);
  border-color: var(--demo-line);
  border-radius: 3px;
  color: var(--demo-ink);
}
.studio-demo-runtime .booking-demo[class*="theme-"] :is(.staff-choices, .date-choices, .time-choices, .class-session-list) button.selected {
  border-color: var(--demo-brand);
  background: var(--demo-brand-wash);
  color: var(--demo-ink);
  box-shadow: inset 0 0 0 1px var(--demo-brand);
}
.studio-demo-runtime .booking-demo[class*="theme-"] .time-choices button { font-size: .875rem; }
.studio-demo-runtime .booking-demo .simulated-payment {
  border-color: var(--demo-line);
  background: var(--demo-paper);
}
.studio-demo-runtime .booking-demo .simulated-payment > span {
  color: var(--demo-accent-hover);
  font-size: .75rem;
}
.studio-demo-runtime .booking-demo .simulated-payment p {
  color: var(--demo-muted);
  font-size: .875rem;
}

.studio-demo-runtime .booking-confirmed { text-align: left; }
.studio-demo-runtime .booking-confirmed .confirm-mark {
  display: inline-grid;
  width: 2.125rem;
  height: 2.125rem;
  margin: 0 .625rem 0 0;
  background: var(--demo-wash);
  color: var(--demo-accent-hover);
  vertical-align: middle;
}
.studio-demo-runtime .booking-confirmed > span { vertical-align: middle; }
.studio-demo-runtime .booking-confirmed > p { max-width: 52ch; }
.studio-demo-runtime .confirmation-ticket {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) max-content;
  align-items: center;
  gap: .85rem;
  margin-top: 1.25rem;
  padding: .9rem;
  background: var(--demo-paper);
  border: 1px solid var(--demo-line);
  border-radius: 4px;
  color: var(--demo-ink);
}
.studio-demo-runtime .confirmation-ticket > div:first-child {
  display: grid;
  justify-items: center;
  gap: .1rem;
  align-self: start;
  padding: .4rem .2rem;
  background: var(--demo-white);
  border: 1px solid var(--demo-line);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.studio-demo-runtime .confirmation-ticket > div:first-child strong { font-size: 1.25rem; }
.studio-demo-runtime .confirmation-ticket > div:first-child :is(span, small) {
  font-size: .75rem;
  color: var(--demo-muted);
}
.studio-demo-runtime .confirmation-ticket > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: .2rem;
  line-height: 1.3;
}
.studio-demo-runtime .confirmation-ticket > div:nth-child(2) strong {
  color: var(--demo-ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.studio-demo-runtime .confirmation-ticket > div:nth-child(2) :is(span, small) {
  font-size: .8125rem;
  color: var(--demo-muted);
}
.studio-demo-runtime .confirmation-ticket > b {
  color: var(--demo-accent-hover);
  font-size: 1rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.studio-demo-runtime .confirmed-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .85rem;
}

.studio-demo-runtime :is(.calendar-private-note, .manager-notice, .class-admin-notice) {
  background: var(--demo-wash);
  border-color: var(--demo-accent);
  color: var(--demo-ink);
  font-size: .8125rem;
}
.studio-demo-runtime .calendar-private-note strong { color: var(--demo-ink); }
.studio-demo-runtime :is(.admin-date, .calendar-row, .class-admin-panel, .manager-list-item, .poster-picker) {
  border-color: var(--demo-line);
}
.studio-demo-runtime :is(.admin-date, .class-admin-form) { color: var(--demo-ink); }
.studio-demo-runtime .admin-date strong { font-size: .875rem; }
.studio-demo-runtime .calendar-row article {
  background: var(--demo-white);
  color: var(--demo-ink);
}
.studio-demo-runtime .calendar-row article.new-booking { background: var(--demo-wash); }
.studio-demo-runtime .calendar-row article.draft-class { background: var(--demo-paper); }
.studio-demo-runtime :is(.calendar-row > span, .calendar-row article b, .calendar-row article small, .calendar-legend, .admin-note) {
  color: var(--demo-muted);
  font-size: .8125rem;
}
.studio-demo-runtime .calendar-row article strong { font-size: .9375rem; }

.studio-demo-runtime .events-demo[class*="theme-"] .club-hero {
  min-height: clamp(12rem, 22vw, 16rem);
  padding-block: 1.65rem;
  background: var(--demo-brand-wash);
  color: var(--demo-ink);
}
.studio-demo-runtime .events-demo[class*="theme-"] .club-hero h2 {
  margin: .65rem 0 .75rem;
  font: 750 clamp(1.8rem, 4vw, 3.25rem)/1.05 Arial, Helvetica, sans-serif;
  letter-spacing: -.04em;
  text-transform: none;
}
.studio-demo-runtime .events-demo[class*="theme-"] .club-hero > span {
  color: var(--demo-brand);
  font-size: .75rem;
}
.studio-demo-runtime .events-demo[class*="theme-"] :is(.club-hero p, .event-copy p, .club-events-head span) {
  color: var(--demo-muted);
  font-size: .875rem;
}
.studio-demo-runtime .events-demo[class*="theme-"] :is(.club-events-head h3, .event-copy h4) {
  color: var(--demo-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 750;
  text-transform: none;
}
.studio-demo-runtime .events-demo[class*="theme-"] .club-event { border-color: var(--demo-line); }
.studio-demo-runtime .events-demo[class*="theme-"] .club-event.featured {
  background: var(--demo-brand-wash);
  border-color: var(--demo-line);
}
.studio-demo-runtime .event-copy > div:not(.event-buttons) {
  color: var(--demo-muted);
  font-size: .6875rem;
}
.studio-demo-runtime .event-copy > strong { font-size: .875rem; }
.studio-demo-runtime :is(.events-manager, .class-admin-form) :is(input, select, textarea) {
  max-width: 100%;
  border-color: var(--demo-line);
  border-radius: 3px;
  background: var(--demo-white);
  color: var(--demo-ink);
  accent-color: var(--demo-accent);
  font-size: 1rem;
}
.studio-demo-runtime :is(.events-manager, .class-admin-form) label > span,
.studio-demo-runtime :is(.events-manager label > small, .poster-picker > p, .listing-edit span, .listing-edit small) {
  color: var(--demo-muted);
  font-size: .8125rem;
}
.studio-demo-runtime .listing-edit strong { color: var(--demo-ink); font-size: .875rem; }
.studio-demo-runtime .listing-actions button { color: var(--demo-accent-hover); font-size: .8125rem; }
.studio-demo-runtime .poster-options button {
  background: var(--demo-white);
  border-color: var(--demo-line);
  color: var(--demo-ink);
}
.studio-demo-runtime .poster-options button.selected {
  border-color: var(--demo-accent);
  box-shadow: inset 0 0 0 1px var(--demo-accent);
}
.studio-demo-runtime .clear-poster { color: var(--demo-accent-hover); font-size: .8125rem; }
.studio-demo-runtime :is(.event-modal-card, .ticket-notice-card) {
  background: var(--demo-white);
  color: var(--demo-ink);
}
.studio-demo-runtime .event-modal-close {
  background: var(--demo-white);
  color: var(--demo-ink);
  border-color: var(--demo-line);
}

.studio-demo-runtime :is(.booking-demo, .events-demo)[class*="theme-"] :is(
  .demo-toolbar button,
  .demo-theme-bar button,
  .calendar-view-switch button,
  .booking-nav > button,
  .confirmed-actions > button,
  .manager-actions > button,
  .event-buttons > button,
  .preview-actions > button,
  .ticket-notice-card > .button
) {
  min-height: 44px;
  padding: .6rem .8rem;
  border: 1px solid var(--demo-line);
  border-radius: 3px;
  background: var(--demo-white);
  color: var(--demo-ink);
  font: 650 .875rem/1.25 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}
.studio-demo-runtime :is(.booking-demo, .events-demo)[class*="theme-"] :is(.demo-theme-bar, .calendar-view-switch) button[aria-pressed="true"] {
  background: var(--demo-wash);
  border-color: var(--demo-accent);
  color: var(--demo-accent-hover);
}
.studio-demo-runtime :is(.booking-demo, .events-demo)[class*="theme-"] :is(.button, .event-buttons > button:last-child) {
  background: var(--demo-accent);
  border-color: var(--demo-accent);
  color: var(--demo-white);
  letter-spacing: 0;
  text-transform: none;
}
.studio-demo-runtime :is(.booking-demo, .events-demo)[class*="theme-"] :is(.button, .event-buttons > button:last-child):hover:enabled {
  background: var(--demo-accent-hover);
  border-color: var(--demo-accent-hover);
  color: var(--demo-white);
}
.studio-demo-runtime .booking-demo[class*="theme-"] .confirmed-actions > button:not(.button) {
  color: var(--demo-ink);
}
.studio-demo-runtime .confirmed-actions > button { width: 100%; }
.studio-demo-runtime :is(.booking-demo, .events-demo) :is(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--demo-accent);
  outline-offset: 2px;
}
.studio-demo-runtime .admin-date button {
  min-width: 44px;
  min-height: 44px;
  color: var(--demo-accent-hover);
}
.studio-demo-runtime :is(.booking-demo, .events-demo) :is(button, select):disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 900px) {
  .studio-demo-runtime :is(.booking-admin, .events-manager) {
    border-top: 1px solid var(--demo-line);
  }
}
@media (max-width: 640px) {
  .studio-demo-runtime .demo-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .studio-demo-runtime .demo-toolbar p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .studio-demo-runtime .demo-theme-bar > div { width: 100%; }
  .studio-demo-runtime .booking-stage { padding-block: 1.65rem 2rem; }
  .studio-demo-runtime .confirmation-ticket {
    grid-template-columns: 3.35rem minmax(0, 1fr);
    align-items: start;
    gap: .5rem .75rem;
    padding: .75rem;
  }
  .studio-demo-runtime .confirmation-ticket > div:first-child { grid-row: span 2; }
  .studio-demo-runtime .confirmation-ticket > b { grid-column: 2; }
  .studio-demo-runtime .confirmed-actions { grid-template-columns: 1fr; }
  .studio-demo-runtime .events-demo[class*="theme-"] .club-hero {
    min-height: 0;
    padding: 1.35rem 1rem;
  }
}
