/* Public presentation only. The admin workspace retains its separate styling. */
body:not(.admin-body) {
  --public-width: 1200px;
  --public-focus: #b83256;
}

html[data-theme="dark"] body:not(.admin-body) { --public-focus: #ffbed0; }

body:not(.admin-body) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--public-focus);
  outline-offset: 4px;
}

body:not(.admin-body) .site-header .container { width: min(100% - 48px, var(--public-width)); gap: 20px; }
body:not(.admin-body) .site-header nav { gap: 5px; }
body:not(.admin-body) .site-header nav.public-primary-navigation > a,
.public-explore > summary { font-size: 0.9rem; min-height: 44px; padding: 13px 14px; }
body:not(.admin-body) .site-header nav.public-primary-navigation > a.nav-cta { padding-inline: 20px; border-radius: 8px; }

.public-explore { position: relative; }
.public-explore > summary {
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-weight: 700;
  gap: 9px;
  line-height: 1.15;
  list-style: none;
}
.public-explore > summary::-webkit-details-marker { display: none; }
.public-explore > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.public-explore[open] > summary,
.public-explore.has-current > summary { background: var(--surface-soft); color: var(--ink); }
.public-explore[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.public-explore-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 3px;
  min-width: 260px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
}
body:not(.admin-body) .site-header .public-explore-panel a { border-radius: 7px; display: block; font-size: 0.9rem; line-height: 1.4; min-height: 44px; padding: 12px; white-space: normal; }
.public-explore-panel a small { color: var(--muted); display: block; font-size: 0.75rem; font-weight: 450; margin-top: 4px; }

.public-breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 5px 10px;
  line-height: 1.5;
  margin: 24px auto 0;
  width: min(100% - 48px, var(--max-width));
}
.public-breadcrumbs a { align-items: center; display: inline-flex; min-height: 36px; text-decoration: none; }
.public-breadcrumbs a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.public-breadcrumbs [aria-current] { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.public-breadcrumbs + :is(section, article, div) { margin-top: 28px; }

body:not(.admin-body) .hero.hero-brand {
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  margin: 32px auto 0;
  min-height: 0;
  overflow: hidden;
  width: min(100% - 48px, var(--public-width));
}
body:not(.admin-body) .hero-brand .hero-inner { margin: 0; padding: clamp(28px, 3.5vw, 54px); width: 100%; }
body:not(.admin-body) .hero-brand .hero-inner h1 { font-size: clamp(2.35rem, 4.2vw, 3.6rem); letter-spacing: -0.045em; line-height: 1.08; max-width: 20ch; }
body:not(.admin-body) .hero-brand .hero-inner > p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.75; max-width: 46ch; }
body:not(.admin-body) .hero-brand .hero-artwork { aspect-ratio: auto; min-height: 380px; max-height: none; order: initial; }
body:not(.admin-body) .hero-brand .hero-artwork img { height: 100%; object-fit: cover; width: 100%; }
body:not(.admin-body) .hero-proof { gap: 22px; margin-top: 28px; padding-top: 20px; width: 100%; }
body:not(.admin-body) .hero-actions { gap: 12px; margin-top: 24px; }
body:not(.admin-body) .trust-strip { border: 1px solid var(--line); border-radius: 12px; margin-top: 20px; overflow: hidden; }

body:not(.admin-body) :is(.about-hero, .services-hero, .events-hero, .gallery-hero, .videos-hero, .blog-hero, .articles-hero, .history-hero, .detail-hero-copy, .contact-page, .newsletter-intro, .review-page, .trust-page-hero) h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.7rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body:not(.admin-body) .section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.2; text-wrap: balance; }
body:not(.admin-body) .section-heading > p:not(.eyebrow) { line-height: 1.75; max-width: 68ch; }
body:not(.admin-body) .page-text-multiline { line-height: 1.85; }
body:not(.admin-body) :is(.service-feature, .service-card, .review-card, .video-card, .gallery-card, .blog-card, .blog-featured, .detail-panel, .fitness-package-card, .calendar-month, .calendar-empty, .event-card, .start-matcher-form, .start-matcher-result) {
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(32, 24, 28, 0.035);
}
body:not(.admin-body) :is(.detail-hero, .about-hero) img { border-radius: 16px; }
body:not(.admin-body) .service-feature-media { overflow: hidden; }
body:not(.admin-body) .service-feature-media img { object-fit: cover; }
body:not(.admin-body) :is(.service-feature-body, .detail-hero-copy, .blog-card, .contact-page > *, .review-page > *, .newsletter-layout > *) { min-width: 0; }
body:not(.admin-body) :is(.mini-list, .checked-list) { line-height: 1.75; }
body:not(.admin-body) .availability-badge { line-height: 1.5; padding: 5px 10px; }
body:not(.admin-body) .btn { border-radius: 8px; min-height: 46px; padding: 12px 20px; }
body:not(.admin-body) :is(.home-cta, .service-next-step, .newsletter-promo) { border-radius: 16px; }
body:not(.admin-body) :is(.fitness-browse-controls, .video-library-controls, .gallery-filters) { border-radius: 12px; }
body:not(.admin-body) :is(.contact-form, .gallery-comment-form) { border-radius: 16px; }
body:not(.admin-body) :is(.contact-form, .gallery-comment-form) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
}
body:not(.admin-body) .contact-form :is(input, textarea, select)[aria-invalid="true"] { border-color: var(--accent); }
.public-required-mark { color: var(--muted); font-size: 0.7rem; font-weight: 500; margin-left: 7px; }
.public-form-errors { background: var(--surface-soft); border: 1px solid var(--accent); border-radius: 10px; color: var(--ink); margin-bottom: 18px; padding: 18px; }
.public-form-errors strong { display: block; }
.public-form-errors ul { margin: 10px 0 0; padding-left: 20px; }
.public-form-errors button { background: transparent; border: 0; color: var(--accent-dark); cursor: pointer; font: inherit; padding: 6px 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
body:not(.admin-body) .form-reassurance { font-size: 0.84rem; line-height: 1.7; }
body:not(.admin-body) .site-footer { border-top: 1px solid var(--line); margin-top: 64px; }
body:not(.admin-body) .footer-bottom { align-items: start; gap: 24px; padding-block: 32px; }
body:not(.admin-body) .footer-links { display: grid; gap: 4px 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:not(.admin-body) .footer-links a { align-items: center; display: flex; font-size: 0.85rem; min-height: 40px; padding-block: 6px; text-decoration: none; }
body:not(.admin-body) .footer-links a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
body:not(.admin-body) :is(.blog-article, .article-body, .history-prose, .trust-page-sections) p { line-height: 1.85; }
body:not(.admin-body) [id] { scroll-margin-top: 100px; }

@media (max-width: 1120px) {
  body:not(.admin-body) .site-header .container { gap: 12px; }
  body:not(.admin-body) .site-header nav { align-items: stretch; gap: 4px; max-height: calc(100dvh - 100px); overflow-y: auto; }
  .public-explore > summary { width: 100%; }
  .public-explore-panel { box-shadow: none; margin-top: 6px; min-width: 0; position: static; }
  body:not(.admin-body) .site-header nav.public-primary-navigation > a { padding: 13px 14px; }
  body:not(.admin-body) .site-header nav.public-primary-navigation > a.nav-cta { margin: 4px 0 0; }
}

@media (max-width: 780px) {
  body:not(.admin-body) .hero.hero-brand { grid-template-columns: minmax(0, 1fr); width: calc(100% - 32px); border-radius: 16px; margin-top: 20px; }
  body:not(.admin-body) .hero-brand .hero-inner { order: 0; padding: 30px 24px; }
  body:not(.admin-body) .hero-brand .hero-inner h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); max-width: 22ch; }
  body:not(.admin-body) .hero-brand .hero-artwork { aspect-ratio: 16 / 9; min-height: 0; order: 1; }
  body:not(.admin-body) .hero-proof { gap: 14px; }
  body:not(.admin-body) .hero-proof dd { font-size: 0.76rem; }
  body:not(.admin-body) .hero-actions .btn { width: auto; flex: 1 1 auto; }
  body:not(.admin-body) .site-header .container,
  .public-breadcrumbs { width: calc(100% - 32px); }
  .public-breadcrumbs { margin-top: 16px; font-size: 0.75rem; }
  body:not(.admin-body) :is(.contact-form, .gallery-comment-form) :is(input, select, textarea) { font-size: 16px; }
  body:not(.admin-body) .footer-links { gap: 4px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  body:not(.admin-body) .site-footer { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-body) *, body:not(.admin-body) *::before, body:not(.admin-body) *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  body:not(.admin-body) .reveal-on-scroll { opacity: 1; transform: none; }
}
