/* NeoYoga preview-only monthly planning, booking simulation, and media-preserving card treatment. */

/* Keep the original service image centered, unscaled beyond the existing frame fit, and undistorted. */
#service-track .service-card { border-radius: 6px; }
#service-track .service-card .service-photo {
  width: 100%;
  height: 70%;
  isolation: isolate;
  background: var(--panel);
}
#service-track .service-card .service-photo::before { display: none; content: none; }
#service-track .service-card .service-photo::after {
  z-index: 1;
  background: linear-gradient(transparent 66%, rgba(0, 0, 0, .24));
}
:root[data-theme="light"] #service-track .service-card .service-photo::after { background: none; }
#service-track .service-card .service-photo img {
  position: relative;
  z-index: 0;
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}
#service-track .service-card .service-arrow { z-index: 2; }

/* A transparent viewing window frames one large card and its receding neighbors. */
.service-carousel-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 760px);
  height: 405px;
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
}
.service-carousel-frame > .rail-controls {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.service-carousel-frame .rail-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--fg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  pointer-events: auto;
}
.service-carousel-frame .service-pagination {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 11px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.service-carousel-frame .service-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 !important;
  background: var(--muted);
  opacity: .55;
  transition: width .2s ease, opacity .2s ease, background-color .2s ease;
}
.service-carousel-frame .service-pagination .swiper-pagination-bullet-active {
  width: 18px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 1;
}
@media (max-width: 800px) {
  .service-carousel-frame { height: auto; aspect-ratio: 1.3 / 1; margin-top: 18px; }
  #service-track.swiper { width: min(calc(100% - 48px), 440px); }
  .service-carousel-frame > .rail-controls { right: 8px; left: 8px; }
  .service-carousel-frame .rail-arrow { width: 34px; height: 34px; }
}
@media (max-width: 520px) {
  .service-carousel-frame {
    width: min(calc(100vw - 32px), 760px);
    max-width: calc(100vw - 32px);
    aspect-ratio: 1.3 / 1;
    margin-left: 0;
    margin-right: 0;
  }
  #service-track .service-card .service-photo { height: 74%; }
}

/* Pricing now shares the reviews' Coverflow carousel rather than expanding a selected card. */
#pricing .price-track.swiper {
  position: relative;
  display: block;
  overflow: visible;
  margin-top: 14px;
  padding: 28px 4px 24px;
  touch-action: pan-y;
}
#pricing .price-track.swiper .swiper-wrapper { align-items: center; }
#pricing .price-track.swiper .price-card.swiper-slide {
  position: relative;
  display: flex;
  flex: 0 0 clamp(270px, 31vw, 350px);
  box-sizing: border-box;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 258px;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 2px 6px var(--price-card-shadow, rgba(0, 0, 0, .14));
  opacity: .78;
  scroll-snap-align: none;
  transition: border-color .25s ease, opacity .25s ease, box-shadow .25s ease;
}
#pricing .price-track.swiper .price-card.swiper-slide-active {
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 4px 14px var(--price-card-shadow, rgba(0, 0, 0, .14));
}
#pricing .price-track.swiper .price-card h4 {
  display: block;
  width: auto;
  min-height: 0;
  margin: 16px 0 12px;
  padding: 0;
  background: transparent;
  color: var(--fg);
}
#pricing .price-track.swiper .price-card .price-top > span {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--price-title-fill, #d1b389);
  color: var(--price-title-ink, #19201a);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
}
#pricing .price-track.swiper .price-card:hover,
#pricing .price-track.swiper .price-card:focus-within {
  border-color: var(--accent);
}

/* Weekly/monthly controls and a compact, touch-friendly month calendar. */
.planning-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0 4px;
}
.planning-view-switch { flex: none; }
.planning-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 0 2px;
  color: var(--accent);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.planning-demo-link span { font-size: 16px; text-decoration: none; }
#planning .schedule-week-nav { margin-top: 12px; }
#planning .schedule-list .class-row {
  padding-left: 12px;
  padding-right: 12px;
}
#planning .schedule-list .class-time { padding-right: 3px; }
#planning .schedule-list.planning-month-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  border: 0;
  touch-action: pan-y;
}
.planning-month-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.planning-month-head-row { align-items: center; }
.planning-month-weekday {
  min-width: 0;
  padding: 7px 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.planning-month-empty { min-height: 0; }
.planning-month-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 69px;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
}
.planning-month-day.is-outside-window { opacity: .38; }
.planning-month-number {
  align-self: flex-start;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}
.planning-month-session {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 2px;
  padding: 4px 5px;
  border: 1px solid var(--booking-line);
  border-radius: 4px;
  color: var(--fg);
  background: var(--booking-wash);
  text-align: left;
  cursor: pointer;
}
.planning-month-session:not(:disabled):hover,
.planning-month-session:focus-visible { border-color: var(--accent); }
.planning-month-session:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.planning-month-session.is-unavailable,
.planning-month-session:disabled { opacity: .42; cursor: not-allowed; }
.planning-month-session-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--booking-accent);
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planning-month-session-time { color: var(--fg); font-size: 8px; line-height: 1.1; }
:root[data-theme="light"] .planning-month-number { color: #58665e; }

/* Local-only booking demo. Inputs and states are never sent to the Worker. */
.booking-demo-banner {
  position: relative;
  z-index: 20;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(209, 179, 137, .35);
  color: #f3e5ca;
  background: #20201cd9;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .035em;
  text-align: center;
}
:root[data-theme="light"] .booking-demo-banner { color: #433223; background: #f5ead9f2; }
.booking-student-fields { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--booking-line); border-radius: 9px; background: var(--booking-wash); }
.booking-student-fields[hidden] { display: none !important; }
.booking-student-fields label { display: grid; gap: 6px; color: var(--fg); font-size: 12px; }
.booking-student-fields input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--booking-line);
  border-radius: 6px;
  color: var(--fg);
  background: var(--booking-panel);
  font: inherit;
}
.booking-student-fields input:focus-visible { outline: 2px solid var(--booking-accent); outline-offset: 2px; }
.booking-student-fields p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
#booking-choice-screen[hidden] { display: none !important; }
#booking-choice-screen { display: grid; gap: 12px; padding-top: 8px; }
#booking-choice-screen h3 { margin: 0 0 2px; color: var(--booking-accent); font-size: 22px; line-height: 1.25; }
#booking-choice-screen h3:focus { outline: none; }
.booking-demo-summary { margin: 0; color: var(--fg); font-size: 12px; line-height: 1.55; }
.booking-demo-summary strong { color: var(--booking-accent); }
.booking-choice-card {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid var(--booking-line);
  border-radius: 9px;
  background: var(--booking-wash);
}
.booking-choice-card h4 { margin: 0; color: var(--fg); font-size: 16px; }
.booking-choice-card p,
.booking-demo-explainer,
.booking-demo-reminder,
.booking-demo-outcome,
.booking-demo-reminder-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.booking-juice-contact { display: grid; gap: 11px; padding: 14px; border: 1px solid var(--booking-line); border-radius: 9px; background: var(--booking-wash); }
.booking-juice-field { display: grid; gap: 6px; color: var(--fg); font-size: 12px; }
.booking-juice-field input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--booking-line); border-radius: 6px; color: var(--fg); background: var(--booking-panel); font: inherit; }
.booking-juice-field input:focus-visible { outline: 2px solid var(--booking-accent); outline-offset: 2px; }
.booking-juice-number { margin: 0 !important; color: var(--booking-accent) !important; font-size: 20px !important; font-weight: 750; letter-spacing: .04em; }
.booking-demo-reminder { padding: 12px; border-left: 2px solid var(--booking-accent); background: var(--booking-wash); }
.booking-demo-reminder-status { padding-top: 8px; border-top: 1px solid var(--booking-line); }
.booking-demo-action,
.booking-demo-secondary {
  justify-self: start;
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid var(--booking-line);
  border-radius: 6px;
  color: var(--fg);
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}
.booking-demo-action.primary { border-color: var(--booking-accent); color: var(--booking-selected-ink); background: var(--booking-accent); }
.booking-demo-secondary:hover,
.booking-demo-action:hover { border-color: var(--booking-accent); }
.booking-demo-secondary:focus-visible,
.booking-demo-action:focus-visible { outline: 2px solid var(--booking-accent); outline-offset: 2px; }

@media (max-width: 800px) {
  #pricing .price-track.swiper .price-card.swiper-slide { flex-basis: min(82vw, 310px); min-height: 250px; }
}
@media (max-width: 520px) {
  .planning-toolbar { align-items: flex-start; }
  .planning-view-switch { max-width: 100%; }
  .planning-demo-link { font-size: 10px; }
  #planning .schedule-list.planning-month-grid { gap: 3px; margin-top: 11px; }
  .planning-month-row { gap: 3px; }
  .planning-month-weekday { padding: 5px 1px; font-size: 8px; }
  .planning-month-day { min-height: 59px; gap: 3px; padding: 4px 3px; border-radius: 5px; }
  .planning-month-number { font-size: 9px; }
  .planning-month-session { gap: 1px; padding: 3px 2px; }
  .planning-month-session-name { font-size: 7px; }
  .planning-month-session-time { font-size: 7px; }
  .booking-demo-banner { padding: 7px 12px; font-size: 9px; }
  #booking-choice-screen h3 { font-size: 20px; }
  .booking-choice-card { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #pricing .price-track.swiper .price-card.swiper-slide,
  .planning-demo-action,
  .booking-demo-secondary { transition: none !important; }
}


/* Services carousel: match the Free Effects Lab's wide, rounded Coverflow stage. */
.service-carousel-frame {
  width: min(100%, 760px);
  height: 405px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(14, 22, 22, .10); /* v0.2: near-transparent stage, the sky shows through (owner 2026-12-03) */
  isolation: isolate;
}
#service-track .service-card.swiper-slide {
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}
.service-carousel-frame .rail-arrow {
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(13, 20, 20, .55);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.service-carousel-frame .rail-arrow:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(13, 20, 20, .78);
  color: #fff;
}
.service-carousel-frame .service-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, .62);
  opacity: 1;
}
.service-carousel-frame .service-pagination .swiper-pagination-bullet-active {
  background: #e6cda5;
}
@media (max-width: 800px) {
  .service-carousel-frame {
    aspect-ratio: 1.58 / 1;
    border-radius: 12px;
  }
  #service-track.swiper { width: min(82%, 440px); }
}
@media (max-width: 520px) {
  .service-carousel-frame {
    aspect-ratio: 1.3 / 1;
    border-radius: 12px;
  }
  #service-track.swiper { width: min(82%, 440px); }
}

@media (max-width: 800px) {
  .service-carousel-frame { height: auto; }
}
@media (max-width: 520px) {
  .service-carousel-frame {
    width: min(calc(100vw - 32px), 760px);
    max-width: calc(100vw - 32px);
    height: auto;
  }
}


/* Services Coverflow: let each photo fill its card and keep its caption over the image. */
#service-track .service-card.swiper-slide {
  position: relative;
  display: block;
  overflow: hidden;
  background: transparent;
  backdrop-filter: none;
  isolation: isolate;
}
#service-track .service-card .service-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}
#service-track .service-card .service-photo::before { display: none; content: none; }
#service-track .service-card .service-photo::after {
  z-index: 1;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, .12) 63%, rgba(0, 0, 0, .76) 100%);
}
#service-track .service-card .service-photo img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}
#service-track .service-card .service-copy {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 16px 16px 24px;
  color: #fff;
  text-align: left;
  pointer-events: none;
}
#service-track .service-card .service-copy strong {
  display: block;
  max-width: calc(100% - 30px);
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2.4vw, 25px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .72);
}
#service-track .service-card .service-copy small {
  display: block;
  color: rgba(255, 255, 255, .93);
  font-size: clamp(10px, .92vw, 12px);
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}
#service-track .service-card .service-arrow {
  top: 14px;
  right: 14px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
@media (max-width: 800px) {
  #service-track .service-card .service-copy { inset: 0; padding: 12px 12px 20px; }
  #service-track .service-card .service-copy strong { font-size: clamp(16px, 4.2vw, 20px); }
  #service-track .service-card .service-copy small { font-size: clamp(9px, 2.5vw, 10px); }
  #service-track .service-card .service-arrow { top: 11px; right: 11px; }
}

/* NeoYoga Services title refinement: 2026-11-07 */
#service-track .service-card .service-copy { padding-bottom: 6px; }
#service-track .service-card .service-copy strong {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}
:root[data-theme="light"] #service-track .service-card .service-copy strong {
  color: #000;
  text-shadow: 0 1px 5px rgba(255, 255, 255, .9), 0 0 2px rgba(255, 255, 255, .75);
}
:root[data-theme="light"] #service-track .service-card .service-copy small {
  color: #000;
  text-shadow: 0 1px 5px rgba(255, 255, 255, .92), 0 0 2px rgba(255, 255, 255, .75);
}
:root[data-theme="light"] #service-track .service-card .service-photo::after {
  background: linear-gradient(to bottom, transparent 45%, rgba(255, 255, 255, .18) 63%, rgba(255, 255, 255, .42) 100%);
}
#detail-dialog #dialog-content > h2,
#detail-dialog #dialog-content .style-entry h3 {
  font-weight: 700;
}
@media (max-width: 800px) {
  #service-track .service-card .service-copy { padding-bottom: 4px; }
  #service-track .service-card .service-copy strong { font-size: clamp(20px, 5vw, 26px); }
}


/* Course thumbnails: rounded squares keep the class title readable on narrow screens. */
#planning .schedule-list:not(.planning-month-grid) .class-row {
  grid-template-columns: 68px 68px minmax(0, 1fr) 100px;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}
#planning .schedule-list:not(.planning-month-grid) .class-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}
@media (max-width: 520px) {
  #planning .schedule-list:not(.planning-month-grid) .class-row {
    grid-template-columns: 47px 50px minmax(0, 1fr) 72px;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  #planning .schedule-list:not(.planning-month-grid) .class-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }
  #planning .planning-month-session-name { font-size: 8.5px; }
  #planning .planning-month-session-time { font-size: 7.5px; }
}

:root[data-theme="light"] .service-carousel-frame { background: rgba(255, 255, 255, .14); border-color: rgba(60, 50, 40, .14); }
/* v0.2.1 — pricing: the rail is exactly one card wide and left-aligned, so the centred Coverflow card starts on the
   title's left edge while the next cards overlap and tilt to its right (owner 2026-12-03). Cards before the active
   one would spill into the left gutter: they fade out until navigated back to. */
#pricing .price-track.swiper { width: clamp(270px, 31vw, 350px); margin-left: 0; padding-left: 0; padding-right: 0; }
#pricing .price-track.swiper .price-card.swiper-slide:has(~ .swiper-slide-active) { opacity: 0; pointer-events: none; }
@media (max-width: 800px) { #pricing .price-track.swiper { width: min(82vw, 310px); } }

/* v0.2.3 — footer privacy link styled like the footer buttons (Google OAuth branding requires a privacy URL). */
footer .footer-privacy { font-size: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
footer .footer-privacy:hover { color: var(--accent); }
@media (max-width: 520px) { footer .footer-privacy { font-size: 9px; } }
