:root {
  --cream: #f7f4ef;
  --white: #ffffff;
  --teal: #0d5960;
  --teal-soft: #1f7881;
  --rose: #c79693;
  --rose-soft: #e7cfcd;
  --text: #17353a;
  --muted: #47686e;
  --shadow: 0 8px 24px rgba(11, 52, 56, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Noto Sans Thai', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
}

.container {
  width: min(92vw, 1320px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 239, 0.95);
  border-bottom: 1px solid #ece5db;
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.main-nav a {
  font-weight: 600;
  color: var(--teal);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-switcher a {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #d6cbc1;
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-switcher a.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hero-copy {
  background: var(--rose);
  color: #fff8f8;
  border-radius: var(--radius);
  padding: 2.2rem;
}

.hero-copy h1 {
  margin: 0;
  color: #083f44;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-copy .subtitle {
  font-size: 1.45rem;
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
  color: #113f44;
  font-weight: 700;
}

.btn-primary {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.7rem 1.3rem;
  border-radius: 9px;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--teal-soft);
}

.btn-secondary {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 9px;
  font-weight: 700;
  color: var(--teal);
  background: var(--white);
  border: 2px solid var(--teal-soft);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background: #f3fafb;
  border-color: var(--teal);
}

.site-main {
  flex: 1 0 auto;
}

.hero-media img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.class-week {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, #faf7f2 0%, var(--cream) 100%);
  border-top: 1px solid #ece5db;
  border-bottom: 1px solid #ece5db;
}

.class-week h2 {
  margin: 0 0 0.5rem;
  text-align: center;
  color: var(--teal);
  font-size: clamp(1.7rem, 2.7vw, 2.1rem);
}

.schedule-error {
  text-align: center;
  color: #8b2942;
  font-weight: 600;
  padding: 1rem;
  background: #fdeef1;
  border-radius: var(--radius);
  max-width: 40rem;
  margin: 1rem auto 0;
}

.class-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .class-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .class-week-grid {
    grid-template-columns: 1fr;
  }
}

.class-day-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--rose-soft);
  box-shadow: var(--shadow);
  padding: 0.85rem 0.9rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}

.class-day-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.45rem;
  border-bottom: 2px solid var(--rose-soft);
}

.class-day-name {
  font-weight: 800;
  color: var(--teal);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.class-day-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.class-day-empty {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.class-slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.class-slot-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: #f3fafb;
  border: 1px solid #d4e8ea;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

a.class-slot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: #f3fafb;
  border: 1px solid #d4e8ea;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.class-slot-link:hover {
  background: #e8f4f5;
  border-color: var(--teal-soft);
  transform: translateY(-1px);
}

.class-slot-time {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--teal);
}

.class-slot-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
}

.class-slot-row .class-slot-title {
  flex: 1 1 auto;
  min-width: 0;
}

.class-slot-item--full a.class-slot-row {
  background: #f5f3f0;
  border-color: #e0dbd4;
}

.class-slot-item--full a.class-slot-row:hover {
  background: #efeae4;
  border-color: #d4ccc3;
  transform: translateY(-1px);
}

.class-slot-full-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: #6b5344;
  white-space: nowrap;
}

.class-slot-past {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: #f1efec;
  border: 1px solid #ddd5cb;
  color: #6f6860;
  cursor: default;
}

.class-slot-past--full {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.class-slot-past--full .class-slot-title {
  flex: 1 1 auto;
  min-width: 0;
}

.class-slot-item--past .class-slot-time {
  color: #6f6860;
}

.services,
.contact,
.newsletter {
  padding: 2.3rem 0;
}

.services h2,
.contact h2,
.newsletter h2 {
  margin: 0 0 1rem;
  text-align: center;
  color: var(--teal);
  font-size: clamp(1.7rem, 2.7vw, 2.1rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 2px solid var(--rose-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--teal);
}

.card a {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
}

.contact .container {
  background: #fbfaf8;
  border: 1px solid #eee5db;
  border-radius: var(--radius);
  padding: 1rem;
}

.map-placeholder {
  height: 280px;
  border: 1px dashed #cbb8b8;
  border-radius: 10px;
  display: grid;
  place-content: center;
  color: #7a6666;
  background: #f5eded;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-info h3 {
  margin-bottom: 0.3rem;
  color: var(--teal);
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-width: 260px;
  max-width: 480px;
  width: 60%;
  border: 1px solid #d7cdc3;
  border-radius: 9px;
  padding: 0.75rem 0.9rem;
}

.newsletter-form button {
  border: 0;
  border-radius: 9px;
  padding: 0.75rem 1.15rem;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.class-detail {
  padding: 1.75rem 0 3.75rem;
}

.class-detail--error {
  padding-top: 2.5rem;
}

.class-detail-back {
  margin: 0 0 1.25rem;
}

.class-detail-header {
  margin-bottom: 1.5rem;
}

.class-detail-title {
  margin: 0;
  color: var(--teal);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.class-detail-group {
  margin: 0.12rem 0 0;
  font-weight: 700;
  color: var(--muted);
  font-size: 1rem;
}

.class-detail-slot {
  margin: 0.2rem 0 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.98rem;
}

.class-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.class-detail-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rose-soft);
  box-shadow: var(--shadow);
  background: var(--white);
}

.class-detail-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.class-detail-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 1.75rem;
  align-items: start;
}

.class-detail-panel h2,
.class-detail-sidebar .class-detail-subheading {
  margin-top: 0;
  color: var(--teal);
  font-size: 1.25rem;
}

.class-detail-subheading {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--teal);
}

.class-detail-prose {
  color: var(--text);
  font-size: 0.98rem;
}

.class-detail-muted {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.class-detail-sidebar {
  background: var(--white);
  border: 1px solid var(--rose-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.class-detail-fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.class-detail-fact-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.class-detail-fact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.class-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.class-detail-table th,
.class-detail-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #ece5db;
}

.class-detail-table th {
  color: var(--teal);
  font-weight: 800;
}

.class-detail-actions {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rose-soft);
}

.class-detail-book {
  margin-top: 0;
  text-align: center;
}

.class-detail-full-msg {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
}

.class-detail-lead {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .class-detail-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: var(--rose);
  color: #fff;
  text-align: center;
  padding: 1rem 0 1.2rem;
}

.site-footer p {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.site-footer small {
  display: block;
  margin-top: 0.35rem;
  opacity: 0.95;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 260px;
  }
}

@media (max-width: 840px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.7rem 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.7rem 1rem;
  }

  .brand img {
    width: 74px;
    height: 74px;
  }
}

/* Member auth (marketing site) */
.nav-member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  max-width: min(100%, 22rem);
}

.nav-signed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.25;
}

.nav-signed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a9d7a;
  box-shadow: 0 0 0 3px rgba(42, 157, 122, 0.25);
  flex-shrink: 0;
}

.nav-member-link {
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-login-btn {
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-logout-form {
  margin: 0;
  display: inline;
}

.nav-logout-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-logout-btn:hover {
  color: var(--teal);
}

.site-flash {
  margin: 1rem auto 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.site-flash--success {
  background: #e8f5f0;
  border: 1px solid #b8e0d0;
  color: var(--teal);
}

.site-flash--neutral {
  background: #f0ebe4;
  border: 1px solid #e0d8ce;
  color: var(--text);
}

.site-flash-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-page {
  padding: 2rem 0 3.5rem;
  max-width: 36rem;
}

.auth-page.profile-page {
  max-width: 40rem;
}

.auth-page.profile-page--stacked {
  max-width: 46rem;
}

.profile-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.profile-section:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.profile-section__title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.profile-section__lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.profile-section__foot {
  margin-top: 1.25rem;
}

.profile-bookings-error {
  margin: 0;
}

.profile-bookings-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-booking-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-booking-row {
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.profile-booking-row:last-child {
  border-bottom: none;
}

.profile-booking-row--past {
  opacity: 0.88;
}

.profile-booking-row__link {
  color: inherit;
  text-decoration: none;
  flex: 1 1 12rem;
  min-width: 0;
}

.profile-booking-row__link:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-booking-row__when {
  font-weight: 600;
  white-space: nowrap;
}

.profile-booking-row__title {
  font-weight: 500;
}

.profile-booking-row__room {
  color: var(--muted);
  font-weight: 400;
}

.profile-booking-row__pending {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a5a00;
  flex: 0 0 auto;
}

.auth-header {
  margin-bottom: 1.5rem;
}

.profile-page--stacked .auth-header {
  margin-bottom: 0.75rem;
}

.auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  color: var(--teal);
}

.auth-lead {
  margin: 0;
  color: var(--muted);
}

.auth-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.auth-alert--error {
  background: #fdeff0;
  border: 1px solid #f0c8cd;
  color: #6b1c24;
}

.auth-error-list {
  margin: 0;
  padding-left: 1.2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form--wide {
  max-width: 100%;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }
}

.auth-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.auth-field input,
.auth-field select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d8cfc4;
  font: inherit;
  background: var(--white);
}

.auth-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.auth-field--checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.auth-field--checkbox label {
  margin: 0;
  font-weight: 500;
}

.auth-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.auth-captcha-row input {
  max-width: 12rem;
}

.auth-captcha-img {
  border-radius: 8px;
  border: 1px solid #d8cfc4;
}

.auth-captcha-note {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-terms-box {
  max-height: 12rem;
  overflow: auto;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid #d8cfc4;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-submit {
  margin-top: 0.25rem;
  align-self: flex-start;
}

.auth-footer-links {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.auth-muted {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-field-hint {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.profile-banner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #e8f4f5, #f7f4ef);
  border: 1px solid #c5dde0;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.profile-banner-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal);
}

.profile-banner-email {
  font-size: 0.95rem;
  color: var(--muted);
}

.profile-dl {
  margin: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #ece5db;
}

.profile-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-row dd {
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 560px) {
  .profile-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Relocation landing (app/public/index.html) — Bumpsy Daisy brand guide palette & type */
body.landing-relocation {
  /* Brand palette (Docs/Bumpsy Daisy Brandguide.pdf) */
  --bd-alabaster: #f0f1e8;
  --bd-blue-sapphire: #025e6d;
  --bd-steel-teal: #668782;
  --bd-davys: #59595b;
  --bd-spanish-gray: #939399;
  --bd-ash: #c6c9b2;
  --bd-tuscany: #c99b91;
  --bd-white: #ffffff;
  --bd-headline: 'Arial Rounded MT Bold', 'Arial Rounded MT', 'Nunito', system-ui, sans-serif;
  --bd-subhead: 'Open Sans', system-ui, sans-serif;
  --bd-signature: 'Caveat', cursive;

  font-family: var(--bd-subhead);
  color: var(--bd-davys);
  background: linear-gradient(165deg, var(--bd-alabaster) 0%, #e8ebe0 45%, var(--bd-alabaster) 100%);
}

body.landing-relocation .site-header {
  background: rgba(240, 241, 232, 0.94);
  border-bottom-color: var(--bd-ash);
}

.main-nav--landing {
  gap: 0.65rem 1rem;
}

/* Logo + signature tagline (same type as footer .landing-footer-tagline) */
.landing-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 0 0.95rem;
}

/* Logo inside hero card: centered, full mark without crop (brand guide) */
.landing-hero-logo {
  display: flex;
  justify-content: center;
  margin: 0;
}

.landing-hero-logo-img {
  display: block;
  width: auto;
  max-width: min(280px, 88%);
  max-height: min(200px, 36vw);
  height: auto;
  object-fit: contain;
  object-position: center;
}

.landing {
  flex: 1;
}

.landing-hero {
  padding: 0 0 1.1rem;
}

.landing-hero-inner {
  position: relative;
  background: var(--bd-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(2, 94, 109, 0.07);
  border: 1px solid rgba(201, 155, 145, 0.45);
  padding: clamp(0.35rem, 1.2vw, 0.55rem) clamp(1.15rem, 3.5vw, 1.85rem)
    clamp(0.85rem, 2.5vw, 1.4rem);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.landing-hero-locate {
  margin: 0 0 8px;
  text-align: center;
}

.landing-hero-locate-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--bd-subhead);
  font-weight: 700;
  font-size: 1rem;
  color: var(--bd-blue-sapphire);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.landing-hero-locate-link:hover {
  color: var(--bd-steel-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-hero-locate-icon {
  width: auto;
  height: 36px;
  flex-shrink: 0;
  display: block;
  border-radius: 6px;
}

.landing-hero-locate-text {
  text-transform: none;
}

/* Headlines: Arial Rounded MT (Nunito as web substitute), uppercase, 0 letter-spacing */
.landing-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--bd-headline);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--bd-steel-teal);
}

/* Baked-in headline on JPEG (see scripts/build_landing_hero_image.py) */
.landing-hero-heading-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-hero-visual {
  /* ~60% of prior 28rem cap; img stays width:100% / height:auto */
  width: min(100%, 16.8rem);
  margin: 0 auto 8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(2, 94, 109, 0.12);
}

/* Hero image + Mailchimp: two columns, similar overall card width */
.landing-hero-signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem 1.35rem;
  align-items: start;
  margin-top: 1.05rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(198, 201, 178, 0.9);
  text-align: left;
}

.landing-hero-visual-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  justify-self: stretch;
}

.landing-hero-signup-row .landing-hero-locate {
  margin: 0.65rem 0 0;
  width: 100%;
  text-align: center;
}

.landing-hero-signup-row .landing-hero-visual {
  width: 100%;
  max-width: 100%;
  margin: 0;
  justify-self: stretch;
}

.landing-hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.landing-prose {
  text-align: left;
  font-family: var(--bd-subhead);
  color: var(--bd-davys);
  font-size: 1.05rem;
  line-height: 1.6;
}

.landing-prose p {
  margin: 0 0 0.65rem;
}

.landing-prose p:last-child {
  margin-bottom: 0;
}

/* Opening line: soft panel on the white card (alabaster + Tuscany border) */
body.landing-relocation .landing-prose .landing-prose-lead {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.9rem;
  background: var(--bd-alabaster);
  border: 1px solid rgba(201, 155, 145, 0.45);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(2, 94, 109, 0.05);
  font-family: var(--bd-subhead);
  font-weight: 600;
  font-size: clamp(1.04rem, 2.2vw, 1.1rem);
  line-height: 1.55;
  letter-spacing: 0.012em;
  color: var(--bd-davys);
}

/* In-body jump to #location (same target as .landing-hero-locate-link) */
.landing-prose .landing-map-jump {
  font-family: var(--bd-subhead);
  font-weight: 700;
  color: var(--bd-blue-sapphire);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.landing-prose .landing-map-jump:hover {
  color: var(--bd-steel-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-hero-mailchimp {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  text-align: left;
}

/* Subheads: Open Sans, lowercase, guide web letter-spacing .2em */
.landing-section-title {
  margin: 0 0 0.65rem;
  font-family: var(--bd-subhead);
  text-align: center;
  color: var(--bd-blue-sapphire);
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.2em;
}

.landing-section-title--left {
  text-align: left;
}

.landing-services {
  padding: 2rem 0 2.25rem;
}

/* Relocation homepage: tight gap between hero card and service pills (~15px vs ~3rem+ before) */
body.landing-relocation .landing-hero {
  padding-bottom: 0;
}

body.landing-relocation .landing-services {
  padding-top: 15px;
}

.landing-services-lead {
  text-align: center;
  font-family: var(--bd-subhead);
  color: var(--bd-spanish-gray);
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  font-size: 1.02rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

.landing-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  justify-content: center;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-service-list li {
  background: var(--bd-alabaster);
  border: 1px solid var(--bd-tuscany);
  color: var(--bd-davys);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-family: var(--bd-subhead);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(2, 94, 109, 0.05);
}

.landing-location {
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.65) 35%, rgba(240, 241, 232, 0.9) 100%);
  border-top: 1px solid rgba(198, 201, 178, 0.75);
  border-bottom: 1px solid rgba(198, 201, 178, 0.75);
}

.landing-location-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

.landing-location-copy p {
  margin: 0 0 0.75rem;
  font-family: var(--bd-subhead);
  color: var(--bd-davys);
  line-height: 1.55;
}

.landing-external-link {
  font-family: var(--bd-subhead);
  font-weight: 700;
  color: var(--bd-blue-sapphire);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-external-link:hover {
  color: var(--bd-steel-teal);
}

.landing-map-note {
  font-size: 0.95rem;
}

.landing-map-note a {
  color: var(--bd-blue-sapphire);
  font-weight: 600;
}

.landing-map-note a:hover {
  color: var(--bd-steel-teal);
}

.landing-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2, 94, 109, 0.1);
  border: 1px solid var(--bd-ash);
  background: #dfe2d4;
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

.landing-map-frame {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

body.landing-relocation .site-footer {
  background: var(--bd-blue-sapphire);
  color: var(--bd-white);
}

body.landing-relocation .site-footer small {
  font-family: var(--bd-subhead);
  letter-spacing: 0.01em;
  opacity: 0.92;
}

/* Signature line: Melatti per guide; Caveat as licensed web-friendly substitute */
body.landing-relocation .landing-footer-tagline,
body.landing-relocation .landing-hero-tagline {
  font-family: var(--bd-signature);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

body.landing-relocation .landing-hero-tagline {
  margin: 0;
  text-align: center;
  max-width: none;
  white-space: nowrap;
  color: var(--bd-blue-sapphire);
}

@media (max-width: 420px) {
  body.landing-relocation .landing-hero-tagline {
    font-size: clamp(1.2rem, 3.6vw, 1.65rem);
  }
}

.landing-signup {
  padding: 2.25rem 0 3rem;
}

.landing-signup-lead {
  text-align: center;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.25rem;
  font-size: 1.02rem;
}

.landing-signup-card {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--rose-soft);
  box-shadow: var(--shadow);
}

.mailchimp-snippet-placeholder {
  margin: 0;
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

body.landing-relocation .mailchimp-snippet-placeholder {
  color: var(--bd-spanish-gray);
  font-family: var(--bd-subhead);
}

/* Mailchimp embed: keep layout inside our card */
.landing-signup-card #mc_embed_signup,
.landing-signup-card .mc_embed_signup {
  max-width: min(400px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-mailchimp #mc_embed_shell,
.landing-hero-mailchimp #mc_embed_signup,
.landing-hero-mailchimp .mc_embed_signup {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Mailchimp classic overrides — Bumpsy Daisy brand (see Docs brand guide) */
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup {
  background: transparent;
  clear: none;
  font-family: var(--bd-subhead), 'Open Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--bd-davys);
}

/* classic-061523.css gives h2 margin:15px 0 — drops heading below hero image top */
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup label {
  color: var(--bd-blue-sapphire);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup .indicates-required,
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup .asterisk {
  color: var(--bd-tuscany);
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup .indicates-required {
  text-align: left;
  float: none;
  margin-top: 0.14rem;
  width: 96%;
  box-sizing: border-box;
}

/* Tighter than classic-061523 (padding-bottom:3%, min-height:50px) + ~60% less gap between fields */
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup .mc-field-group {
  margin-bottom: 0.26rem;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  width: 96% !important;
  box-sizing: border-box;
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup .mc-field-group input[type='email'],
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup .mc-field-group input[type='text'] {
  border: 1px solid rgba(201, 155, 145, 0.55);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-family: var(--bd-subhead), sans-serif;
  font-size: 1rem;
  background: var(--bd-white);
  color: var(--bd-davys);
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup .mc-field-group input:focus {
  outline: 2px solid rgba(2, 94, 109, 0.35);
  outline-offset: 1px;
  border-color: var(--bd-blue-sapphire);
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup #mc-embedded-subscribe.button,
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup input.button {
  background: var(--bd-blue-sapphire) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px;
  padding: 0.65rem 1.25rem;
  font-family: var(--bd-headline), 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0.35rem 0 0 !important;
  box-shadow: 0 4px 14px rgba(2, 94, 109, 0.18);
  height: auto;
  line-height: 1.3;
  clear: both !important;
  display: block !important;
}

/* Classic .foot is a 2-col grid; we only have the button — one full-width row, aligned with field groups */
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup .optionalParent .foot {
  display: block !important;
  width: 96% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup #mc-embedded-subscribe.button:hover,
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup input.button:hover {
  background: var(--bd-steel-teal) !important;
  color: #fff !important;
}

/* Beat Mailchimp classic-061523.css (loads after this file): full-width block, no float/negative offset.
   Do NOT add class "foot" to #mce-responses — .foot is grid 3fr 1fr and narrows the error text. */
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup div#mce-responses,
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup div#mce-responses.foot {
  display: block !important;
  grid-template-columns: none !important;
  float: none !important;
  width: 96% !important;
  max-width: 100% !important;
  margin: 0.15rem 0 0.3rem !important;
  padding: 0 !important;
  top: auto !important;
  clear: both !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  align-items: unset !important;
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup div.response,
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup #mce-error-response,
body.landing-relocation .landing-hero-mailchimp #mc_embed_signup #mce-success-response {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  top: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--bd-subhead), sans-serif;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  box-sizing: border-box !important;
  /* do not set display: — Mailchimp toggles display:none / block inline */
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup #mce-success-response {
  color: var(--bd-steel-teal) !important;
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup #mce-error-response {
  color: #8b3a3a !important;
}

body.landing-relocation .landing-hero-mailchimp #mc_embed_signup .mce_inline_error {
  font-family: var(--bd-subhead), sans-serif;
  font-size: 0.85rem;
  color: #8b3a3a !important;
  padding-top: 0.25rem;
}

.landing-signup-card #mc_embed_signup form,
.landing-hero-mailchimp #mc_embed_signup form {
  margin: 0;
}

.landing-signup-card #mc_embed_signup .mc-field-group input[type='email'],
.landing-signup-card #mc_embed_signup .mc-field-group input[type='text'],
.landing-hero-mailchimp #mc_embed_signup .mc-field-group input[type='email'],
.landing-hero-mailchimp #mc_embed_signup .mc-field-group input[type='text'] {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .landing-hero-signup-row {
    grid-template-columns: 1fr;
  }

  .landing-hero-signup-row .landing-hero-visual-stack {
    align-items: center;
  }

  .landing-hero-signup-row .landing-hero-visual {
    max-width: min(100%, 16.8rem);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .landing-location-grid {
    grid-template-columns: 1fr;
  }

  .landing-section-title--left {
    text-align: center;
  }

  .landing-location-copy {
    text-align: center;
  }

  .landing-location-copy .landing-external-link,
  .landing-map-note {
    display: inline-block;
  }
}

/* --- Marketing class checkout --- */
.booking-checkout {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.booking-checkout--error .schedule-error {
  margin-top: 1rem;
}

.booking-back {
  margin: 0 0 1rem;
}

.booking-header {
  margin-bottom: 1.5rem;
}

.booking-title {
  font-size: 1.35rem;
  color: var(--teal);
  margin: 0 0 0.35rem;
}

.booking-class-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.booking-class-group {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.booking-slot {
  margin: 0.75rem 0 0;
  font-weight: 500;
}

.booking-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.booking-panel--success {
  border: 1px solid var(--teal-soft);
}

.booking-subheading {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--teal);
}

.booking-facts {
  margin: 0;
}

.booking-fact {
  display: flex;
  gap: 0.5rem 1rem;
  margin: 0.35rem 0;
}

.booking-fact dt {
  margin: 0;
  min-width: 5.5rem;
  color: var(--muted);
  font-weight: 500;
}

.booking-fact dd {
  margin: 0;
}

.booking-lead,
.booking-muted {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.booking-signed-in {
  margin: 0 0 1rem;
}

.booking-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.booking-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.booking-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.booking-alert--error {
  background: #fdeaea;
  color: #5c2020;
}

.booking-ref {
  font-size: 1.05rem;
  margin: 0.5rem 0 1rem;
}

.booking-ref-label {
  color: var(--muted);
}

.booking-note {
  color: var(--muted);
  margin: 0 0 1rem;
}

.booking-continue-form {
  margin-top: 0.25rem;
}

.booking-qty-row {
  margin: 0.75rem 0;
}

.booking-qty-row label {
  margin-right: 0.5rem;
}

.booking-per-place-hint {
  font-size: 0.92em;
  opacity: 0.85;
}

.booking-pay-summary {
  margin: 0 0 1rem;
}

.booking-stripe-mount {
  min-height: 4rem;
  border: 1px dashed var(--rose-soft);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--cream);
}

.booking-stripe-hint {
  margin-top: 0.75rem;
}

body.stripe-modal-open {
  overflow: hidden;
}

.stripe-embedded-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.stripe-embedded-modal[hidden] {
  display: none;
}

.stripe-embedded-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.stripe-embedded-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  width: calc(100% - 2rem);
  max-height: min(90vh, 44rem);
  margin: 4vh auto;
  background: var(--cream, #fffaf5);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stripe-embedded-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rose-soft, rgba(2, 94, 109, 0.12));
}

.stripe-embedded-modal__title {
  margin: 0;
  font-size: 1.1rem;
}

.stripe-embedded-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted, #5c6b6f);
  padding: 0.15rem 0.35rem;
}

.stripe-embedded-modal__close:hover,
.stripe-embedded-modal__close:focus {
  color: var(--ink, #0f172a);
}

.stripe-embedded-modal__mount {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 1rem 1rem;
  min-height: 12rem;
}

.booking-pay-form .booking-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 1rem;
  cursor: pointer;
}

.booking-dev-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* --- Staff admin (marketing frontend only) --- */
.main-nav__admin {
  font-weight: 600;
  color: var(--rose);
}

.staff-admin-body .site-main {
  flex: 1;
}

/* Staff shell: use `.container` for width (same as site); do not add `.auth-page` — it caps at 36rem */
.staff-admin-outer {
  padding: 1.25rem 0 3rem;
  position: relative;
}

/* Checkbox drawer (no JS): mobile sidebar slides in; scrim closes it */
.staff-drawer-state {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.staff-drawer-burger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.4rem;
  border-radius: 10px;
  border: 1px solid #d8cec4;
  background: var(--white);
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 2.75rem;
}

.staff-drawer-burger__icon {
  display: flex;
}

.staff-drawer-burger__text {
  font-size: 0.62rem;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.staff-drawer-scrim {
  display: none;
}

/* Sidebar first in DOM → left column on desktop. Mobile: flex so fixed nav does not stack under content. */
.staff-admin-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.staff-admin-main {
  min-width: 0;
  display: block;
}

.staff-admin-rail {
  display: none;
}

.staff-admin-inner {
  min-width: 0;
  padding: 0.65rem 0.5rem 1rem;
  border-radius: 16px;
  background: rgba(17, 35, 40, 0.04);
  border: 1px solid rgba(17, 35, 40, 0.06);
}

@media (min-width: 769px) {
  .staff-admin-inner {
    padding: 0.85rem 0.75rem 1.15rem;
  }
}

.staff-admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.65rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid #ece5db;
}

@media (max-width: 768px) {
  .staff-admin-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .staff-admin-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    order: -1;
  }

  .staff-admin-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 2.75rem;
    padding-top: 0.2rem;
  }

  .staff-admin-inner {
    flex: 1;
    min-width: 0;
  }

  .staff-drawer-burger {
    display: flex;
    flex-direction: column;
  }

  .staff-admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(17.5rem, 86vw);
    max-height: 100vh;
    overflow-y: auto;
    z-index: 260;
    margin: 0;
    border-radius: 0 12px 12px 0;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18);
  }

  .staff-drawer-state:checked ~ .staff-admin-layout .staff-admin-sidebar {
    transform: translate3d(0, 0, 0);
  }

  .staff-drawer-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(17, 35, 40, 0.38);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    cursor: pointer;
  }

  .staff-drawer-state:checked ~ .staff-drawer-scrim {
    opacity: 1;
    visibility: visible;
  }
}

.staff-admin-sidebar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.45rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
}

.staff-admin-sidebar__item:hover {
  background: rgba(13, 89, 96, 0.06);
}

.staff-admin-sidebar__item.is-active {
  background: rgba(13, 89, 96, 0.12);
  border-color: rgba(13, 89, 96, 0.25);
  color: var(--teal);
  font-weight: 700;
}

.staff-admin-sidebar__icon {
  display: flex;
  color: var(--teal-soft);
  flex-shrink: 0;
}

.staff-admin-sidebar__item.is-active .staff-admin-sidebar__icon {
  color: var(--teal);
}

.staff-admin-content__header {
  margin-bottom: 1.25rem;
}

.staff-admin-content__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--teal);
}

.staff-admin-content__window {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 70ch;
}

.staff-admin-content__pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ece5db;
}

.staff-pager-link {
  display: inline-block;
}

.staff-admin-lead,
.staff-admin-window {
  color: var(--muted);
  max-width: 65ch;
}

.staff-admin-empty {
  color: var(--muted);
}

.staff-admin-page {
  padding-bottom: 3rem;
}

/* Session card — white “bubble” on tinted inner panel so each class reads clearly */
.staff-session {
  margin: 0 0 1.15rem;
  padding: 1.05rem 1.2rem 1.1rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 28px rgba(11, 52, 56, 0.12),
    0 0 0 1px rgba(11, 52, 56, 0.08);
  border: 1px solid #d5cbc0;
}

.staff-session:last-of-type {
  margin-bottom: 0;
}

.staff-session__head {
  margin-bottom: 0.35rem;
}

.staff-session__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.staff-session__sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.staff-session__metaLine {
  margin: 0.45rem 0 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.45;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #f7f4ef;
  border-radius: 8px;
  border: 1px solid #ece5db;
}

.staff-session__empty {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.staff-session__tablewrap {
  margin-top: 0.35rem;
  border-radius: 8px;
  border: 1px solid #ece5db;
}

@media (min-width: 641px) {
  .staff-session__tablewrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.staff-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.82rem;
}

@media (min-width: 641px) {
  .staff-table {
    min-width: 32rem;
  }
}

.staff-table--compact th,
.staff-table--compact td {
  padding: 0.55rem 0.75rem;
}

.staff-table th,
.staff-table td {
  text-align: left;
  border-bottom: 1px solid #f0ebe4;
  vertical-align: middle;
}

@media (min-width: 641px) {
  .staff-table th,
  .staff-table td {
    white-space: nowrap;
  }
}

.staff-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #faf8f5;
  font-weight: 700;
  text-align: left;
}

@media (min-width: 641px) {
  .staff-td-name {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .staff-td-email {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .staff-td-num,
  .staff-td-flag {
    white-space: nowrap;
  }

  .staff-td-ref {
    max-width: 9rem;
  }
}

.staff-ref {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}

/* Phone layout: stacked “cells” — no horizontal scroll */
@media (max-width: 640px) {
  .staff-session__tablewrap {
    overflow-x: visible;
    border: none;
    padding: 0;
  }

  .staff-table thead {
    display: none;
  }

  .staff-table tbody tr {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid #ece5db;
  }

  .staff-table tbody tr:last-child {
    border-bottom: none;
  }

  .staff-table td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
    gap: 0.25rem 0.65rem;
    align-items: start;
    padding: 0.2rem 0;
    border-bottom: none;
    white-space: normal;
    word-break: break-word;
    max-width: none !important;
  }

  .staff-table td::before {
    content: attr(data-th);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
  }

  .staff-ref {
    white-space: normal;
    word-break: break-all;
  }
}

.staff-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.06rem 0.35rem;
  font-size: 0.65rem;
  border-radius: 4px;
  background: #fff3cd;
  color: #664d03;
  vertical-align: middle;
}

.staff-customer-name-link {
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.staff-customer-name-link:hover {
  color: var(--teal-soft);
}

.staff-inline-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.staff-inline-link:hover {
  color: var(--teal-soft);
}

.staff-customer-back {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.staff-customers-search {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid #e3d9cf;
  box-shadow: 0 2px 10px rgba(11, 52, 56, 0.06);
}

.staff-customers-search__label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--teal);
  margin-bottom: 0.45rem;
}

.staff-customers-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.staff-customers-search__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #d8cec4;
  font-size: 0.95rem;
}

.staff-customers-search__submit {
  flex: 0 0 auto;
}

.staff-customers-summary {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.staff-customers-tablewrap {
  margin-top: 0.35rem;
}

.staff-customers-pager {
  margin-top: 1.25rem;
}

.staff-customer-section {
  margin-bottom: 1.15rem;
}

.staff-customer-section__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
}

.staff-customer-section__empty {
  margin: 0;
}

.staff-customer-dl {
  margin: 0;
}

.staff-customer-dl__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #ece5db;
}

.staff-customer-dl__row:last-child {
  border-bottom: none;
}

@media (min-width: 560px) {
  .staff-customer-dl__row {
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
    align-items: baseline;
  }
}

.staff-customer-dl__term {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.staff-customer-dl__def {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  word-break: break-word;
}

.staff-schedule-weeknav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
}

.staff-schedule-weeknav__label {
  font-weight: 600;
  color: var(--teal);
}

.staff-schedule-weekpick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.staff-schedule-weekpick input[type="date"] {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid #d8cec4;
}

.staff-schedule-meta {
  margin-bottom: 1rem;
}

.staff-schedule-meta__line {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.staff-schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 0.5rem;
}

.staff-schedule-hint {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.45;
}

.staff-schedule-validation__summary {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Week schedule tables: day/time first column — keep readable when horizontal scroll */
.staff-schedule-validation .staff-table td:first-child,
.staff-schedule-validation .staff-table th:first-child,
.staff-schedule-slots .staff-table td:first-child,
.staff-schedule-slots .staff-table th:first-child {
  min-width: 14.5rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .staff-schedule-validation .staff-table td:first-child,
  .staff-schedule-slots .staff-table td:first-child {
    white-space: normal;
  }
}

.staff-schedule-state {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.staff-schedule-state--ok {
  color: #0d6b55;
}

.staff-schedule-state--warning {
  color: #8a5a00;
}

.staff-schedule-state--error {
  color: #a32020;
}

.staff-schedule-state--skipped {
  color: var(--muted);
}

