@charset "UTF-8";
/* Agyphysio Theme v2 — inspired by abc-physio.ch layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00A1DE;
  --primary-dark: #0080b2;
  --secondary: #009FE3;
  --accent: #33b5e8;
  --accent-light: #d6f0fa;
  --text-dark: #0d141a;
  --text-body: #3d4852;
  --text-light: #6b7280;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --border: #e2e6ea;
  --transition: all 0.3s ease;
  --font-primary: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 5%;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  background: var(--bg-white);
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sticky footer pattern: page-main grows to fill available height so
   the team-cta + copyright stay anchored at the bottom even when the
   content area is short. */
.page-main {
  flex: 1 0 auto;
}

.team-cta,
.copyright {
  flex: 0 0 auto;
}

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

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

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  transition: var(--transition);
}

.site-header.scrolled .header-inner {
  padding: 10px 24px;
}

.site-logo img {
  height: 55px;
  width: auto;
  transition: var(--transition);
}

.site-header.scrolled .site-logo img {
  height: 45px;
}

.main-nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: 8px 18px;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  border-radius: 999px;
  transition: var(--transition);
}

.nav-list a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.nav-list li.active > a {
  color: var(--primary);
  font-weight: 500;
}

/* Dropdown */
.nav-list li.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  list-style: none;
  z-index: 100;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 0;
}

.dropdown a:hover {
  background: var(--bg-light);
  border-radius: 0;
}

/* CTA button in nav */
.nav-cta {
  margin-left: 16px;
}

.nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: var(--primary);
  color: var(--bg-white) !important;
  border-radius: 999px;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 400;
  transition: var(--transition);
}

.nav-cta a:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 161, 222, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   SECTION BACKGROUND ALTERNATION
   Auto-alternates body sections. Hero and contact
   keep their own bold backgrounds via :not().
   ============================================ */
section:not(.hero):not(.contact-section):not(.team-cta):nth-of-type(odd) {
  background: var(--bg-white);
}

section:not(.hero):not(.contact-section):not(.team-cta):nth-of-type(even) {
  background: var(--bg-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 87px;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(0, 161, 222, 0.5) 0%, rgba(0, 128, 178, 0.4) 100%);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 60px 24px;
  color: var(--bg-white);
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 999px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  line-height: normal;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 161, 222, 0.35);
}

.btn-white {
  background: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--bg-white);
}

.btn-white:hover {
  background: var(--bg-light);
  border-color: var(--bg-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}

.btn-outline:hover {
  background: var(--bg-white);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-secondary:hover {
  background: var(--text-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 16px;
}

.about-slideshow {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
}

.about-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.about-slideshow img.active {
  opacity: 1;
}

.about-image .image-placeholder {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image .image-placeholder svg {
  width: 120px;
  height: 120px;
  opacity: 0.3;
  fill: white;
}

.about-text h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-body);
}

.about-text .btn {
  margin-top: 16px;
}

/* ============================================
   SERVICES GRID (3-column cards with images)
   ============================================ */
.services-overview {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.services-overview-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 64px;
}

.section-heading h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.overview-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.overview-card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
}

.overview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.overview-card:hover .overview-card-image img {
  transform: scale(1.05);
}

.overview-card-image .card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.4);
}

.overview-card-body {
  padding: 32px 28px;
}

.overview-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.overview-card-body p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.card-link:hover {
  gap: 12px;
  color: var(--secondary);
}

.card-link svg {
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

/* ============================================
   TECHNIQUES SECTION (detailed services)
   ============================================ */
.techniques {
  padding: var(--section-padding);
}

.techniques-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.techniques-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.technique-card {
  padding: 32px 28px;
  background: var(--bg-light);
  border-radius: 16px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.technique-card:hover {
  background: var(--bg-white);
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.technique-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.technique-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.technique-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.technique-card--extra {
  display: none;
}

.techniques-grid.is-expanded .technique-card--extra {
  display: block;
}

.techniques-toggle {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ============================================
   FEATURE HIGHLIGHT
   ============================================ */
.feature-highlight {
  padding: var(--section-padding);
}

.feature-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-inner.reverse {
  direction: rtl;
}

.feature-inner.reverse > * {
  direction: ltr;
}

.feature-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 16px;
}

.feature-slideshow {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 16px;
  overflow: hidden;
}

.feature-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.feature-slideshow img.active {
  opacity: 1;
}

.feature-image .image-placeholder {
  width: 100%;
  height: 440px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.3);
}

.feature-text .feature-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.feature-text h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.feature-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}

/* (.equipment-list removed — its styling is now the default for any
   <ul> inside content sections via the unified .value-list / generic
   ul rules further down.) */
/* ============================================
   TEAM SECTION
   ============================================ */
.team {
  padding: var(--section-padding);
}

.team-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: center;
  transition: var(--transition);
  display: block;
  color: inherit;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-image .initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
}

.team-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
  padding: var(--section-padding);
}

.testimonial-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.testimonial-stars svg {
  width: 24px;
  height: 24px;
  fill: #f5a623;
}

.testimonial-quote {
  font-size: 20px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.contact-section {
  padding: var(--section-padding);
  background: var(--primary);
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
}

.contact-logo {
  height: 64px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.contact-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 420px;
  margin-bottom: 32px;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-info h3 + ul + h3 {
  margin-top: 32px;
}

.contact-access-btn {
  margin-top: 28px;
  display: inline-block;
}

.contact-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-items li {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.contact-items a {
  color: rgba(255, 255, 255, 0.9);
}

.contact-items a:hover {
  color: var(--accent);
}

.contact-form {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.9;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--bg-white);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.copyright {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 20px 24px;
  text-align: center;
}

.copyright a {
  color: var(--bg-white);
  font-weight: 600;
}

.copyright a:hover {
  color: var(--accent-light);
}

.site-footer {
  background: #0d141a;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) brightness(0.9);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}

/* ============================================
   IMAGE GALLERY (6 images strip)
   ============================================ */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-strip .gallery-item {
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.gallery-strip .gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 {
  transition-delay: 0.1s;
}

.fade-up-delay-2 {
  transition-delay: 0.2s;
}

.fade-up-delay-3 {
  transition-delay: 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 5%;
  }
  .hero-content h1 {
    font-size: 44px;
  }
  .about-inner,
  .feature-inner {
    gap: 48px;
  }
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .techniques-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-heading h2,
  .about-text h2,
  .feature-text h2 {
    font-size: 34px;
  }
  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 5%;
  }
  /* Mobile nav */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    padding: 80px 32px 32px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 999;
    overflow: hidden;
  }
  .main-nav.open {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
  }
  .nav-list a {
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
  }
  .nav-list a:hover,
  .nav-list a:focus,
  .nav-list a:active {
    background: transparent;
    color: var(--text-dark);
  }
  .nav-list li.has-dropdown {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }
  .nav-list li.has-dropdown > a {
    grid-column: 1/-1;
    grid-row: 1;
    text-align: center;
    width: auto;
  }
  .dropdown-toggle {
    background: transparent;
    border: 0;
    color: var(--primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 26px;
    grid-column: 2;
    grid-row: 1;
    line-height: 1;
    padding: 8px 16px;
    position: relative;
    z-index: 1;
  }
  .dropdown-toggle span {
    display: inline-block;
  }
  .nav-list li.has-dropdown .dropdown {
    background: var(--bg-white);
    border-radius: 0;
    bottom: 0;
    box-shadow: none;
    flex-direction: column;
    left: 0;
    margin: 0;
    opacity: 1;
    overflow-y: auto;
    padding: 80px 32px 32px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: visible;
    z-index: 2;
  }
  .nav-list li.has-dropdown.is-open .dropdown {
    margin-top: -65px;
    pointer-events: auto;
    transform: translateX(0);
  }
  .dropdown-back-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  .dropdown-back {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.03em;
    padding: 6px 4px;
    text-transform: uppercase;
  }
  .dropdown-back::before {
    content: "‹";
    font-size: 22px;
    line-height: 1;
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
  }
  .nav-cta a {
    width: 100%;
    justify-content: center;
  }
  .hamburger {
    display: flex;
  }
  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }
  .nav-overlay.active {
    display: block;
  }
  /* Hero */
  .hero {
    min-height: 70vh;
    margin-top: 73px;
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    padding: 14px 36px;
    font-size: 15px;
  }
  /* About */
  .about-inner,
  .feature-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-inner.reverse {
    direction: ltr;
  }
  .about-image img,
  .about-image .image-placeholder,
  .feature-image img,
  .feature-image .image-placeholder {
    height: 320px;
  }
  /* Services */
  .overview-grid,
  .techniques-grid {
    grid-template-columns: 1fr;
  }
  .overview-card-image {
    height: 220px;
  }
  /* Team */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-heading h2,
  .about-text h2,
  .feature-text h2 {
    font-size: 28px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .gallery-strip {
    grid-template-columns: 1fr 1fr;
  }
  .transports-grid {
    grid-template-columns: 1fr;
  }
  .map-embed {
    height: 360px;
  }
}
/* ============================================
   TECHNIQUE DETAIL PAGES — tighter rhythm
   ============================================ */
.technique-detail .team-section {
  padding: 48px 5%;
}

.technique-detail .team-cta {
  padding: 56px 5%;
}

@media (min-width: 769px) {
  .technique-detail .team-section + .team-section {
    padding-top: 24px;
  }
  .dropdown-back,
  .dropdown-back-item,
  .dropdown-toggle {
    display: none;
  }
  .nav-list li.has-dropdown {
    position: relative;
  }
  .nav-list li.has-dropdown:hover .dropdown,
  .nav-list li.has-dropdown:focus-within .dropdown {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}
/* ============================================
   TEAM DETAIL PAGES
   ============================================ */
.team-intro {
  padding: var(--section-padding);
}

.team-intro-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.team-intro-photo {
  width: 320px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.team-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.team-intro-text .role {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-intro-text .since {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 15px;
}

.team-intro-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
  color: var(--text-body);
}

.team-contact-inline {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.team-contact-inline a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
}

.team-contact-inline a:hover {
  color: var(--primary-dark);
}

.team-section {
  padding: var(--section-padding);
}

.team-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.team-section-inner h2 {
  color: var(--primary);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 32px;
}

.timeline {
  display: grid;
  gap: 4px;
}

.timeline-item {
  padding: 16px 0 16px 28px;
  border-left: 2px solid var(--accent);
  margin-left: 10px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 22px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-item .period {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-item h3 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-body);
  line-height: 1.7;
}

.specializations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.specialization-card {
  padding: 24px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: block;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.specialization-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.specialization-card h3 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.specialization-card p {
  color: var(--text-body);
  line-height: 1.6;
}

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.team-section-inner p + .specialists-grid {
  margin-top: 32px;
}

.specialist-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-white);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.specialist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.specialist-card .specialist-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.specialist-card .specialist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.specialist-card h3 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.specialist-card p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.5;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.domains-grid h3 {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Unified content list look — applies to any <ul> inside the editable
   content areas (technique/team sections, homepage tools/about, etc.)
   AND to anything still tagged with .value-list for backwards compat. */
.value-list,
.team-section-inner ul,
.feature-text ul,
.about-text ul,
.about-inner--single ul,
blockquote ul {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
}

blockquote + .value-list,
.value-list + blockquote {
  margin-top: 28px;
}

.value-list li,
.team-section-inner ul > li,
.feature-text ul > li,
.about-text ul > li,
.about-inner--single ul > li,
blockquote ul > li {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  padding: 10px 0 10px 32px;
  position: relative;
}

.value-list li + li,
.team-section-inner ul > li + li,
.feature-text ul > li + li,
.about-text ul > li + li,
.about-inner--single ul > li + li,
blockquote ul > li + li {
  border-top: 1px solid var(--border);
}

.value-list li::before,
.team-section-inner ul > li::before,
.feature-text ul > li::before,
.about-text ul > li::before,
.about-inner--single ul > li::before,
blockquote ul > li::before {
  background: var(--accent-light);
  border-radius: 50%;
  color: var(--primary);
  content: "✓";
  font-size: 12px;
  font-weight: 700;
  height: 20px;
  left: 0;
  line-height: 20px;
  position: absolute;
  text-align: center;
  top: 12px;
  width: 20px;
}

/* Ordered list counterpart — numbered counter in the same pill as the
   ✓ used for <ul>. Applies to <ol> in any editable content area. */
.team-section-inner ol,
.feature-text ol,
.about-text ol,
.about-inner--single ol,
blockquote ol {
  counter-reset: content-ol;
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
}

.team-section-inner ol > li,
.feature-text ol > li,
.about-text ol > li,
.about-inner--single ol > li,
blockquote ol > li {
  color: var(--text-body);
  counter-increment: content-ol;
  font-size: 16px;
  line-height: 1.6;
  padding: 10px 0 10px 32px;
  position: relative;
}

.team-section-inner ol > li + li,
.feature-text ol > li + li,
.about-text ol > li + li,
.about-inner--single ol > li + li,
blockquote ol > li + li {
  border-top: 1px solid var(--border);
}

.team-section-inner ol > li::before,
.feature-text ol > li::before,
.about-text ol > li::before,
.about-inner--single ol > li::before,
blockquote ol > li::before {
  background: var(--accent-light);
  border-radius: 50%;
  color: var(--primary);
  content: counter(content-ol);
  font-size: 12px;
  font-weight: 700;
  height: 20px;
  left: 0;
  line-height: 20px;
  position: absolute;
  text-align: center;
  top: 12px;
  width: 20px;
}

.languages-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.language-badge {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg-white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

.language-badge__flag {
  margin-right: 6px;
}

/* Show a faded white-flag emoji when no flag has been picked yet. Pure
   CSS so the empty state never hits the YAML. */
body.cms-edit-mode .language-badge__flag:empty::before {
  content: "🏳️";
  opacity: 0.55;
}

/* Inline language picker — flag is the trigger; popover floats below. */
body.cms-edit-mode .cms-language-picker__trigger {
  cursor: pointer;
}

body.cms-edit-mode .cms-language-picker__trigger:hover {
  outline: 2px dashed rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

.cms-language-picker__popover {
  background: var(--bg-white);
  border: 1px solid #d0d4dc;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 400;
  left: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  width: 240px;
  z-index: 100;
}

.cms-language-picker__search {
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  box-sizing: border-box;
  font: inherit;
  margin-bottom: 8px;
  padding: 6px 8px;
  width: 100%;
}

.cms-language-picker__search:focus {
  border-color: var(--accent);
  outline: none;
}

.cms-language-picker__list {
  list-style: none;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 0;
}

.cms-language-picker__item {
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 8px;
  line-height: 1.4;
  padding: 5px 8px;
  position: static;
}

.cms-language-picker__item:hover {
  background: #f0f7fc;
}

.cms-language-picker__item.is-favorite {
  font-weight: 600;
}

.cms-language-picker__item-flag {
  font-size: 18px;
}

/* The popover lives inside `.team-section-inner`, which styles every
   nested <ul> > <li> with checkmark ::before bullets and inter-item
   borders. Suppress those here so the picker list reads as a plain menu. */
.cms-language-picker__list .cms-language-picker__item::before {
  background: transparent;
  content: none;
}

.cms-language-picker__list .cms-language-picker__item + .cms-language-picker__item {
  border-top: 0;
}

.cms-language-picker__sep {
  border-top: 1px solid #e6ebf2;
  list-style: none;
  margin: 6px 0;
  padding: 0;
}

.cms-language-picker__sep::before {
  content: none !important;
}

/* Standard <blockquote> styling — used for the (legacy) highlight
   section AND for any blockquote produced inline via the TipTap
   bubble menu inside a Bloc texte. */
blockquote {
  margin: 1em 0;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(51, 181, 232, 0.1), rgba(0, 161, 222, 0.1));
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  color: var(--text-body);
}

blockquote h3 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

blockquote p {
  color: var(--text-body);
  line-height: 1.8;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.team-cta {
  background: var(--primary);
  color: var(--bg-white);
  padding: 50px 5%;
  text-align: center;
}

.team-cta h2 {
  color: var(--bg-white);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
}

.team-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .team-intro-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .team-contact-inline {
    justify-content: center;
  }
  .team-intro-photo {
    width: 260px;
    height: 260px;
  }
}
/* ============================================
   ACCÈS PAGE
   ============================================ */
.hero-compact {
  min-height: 0;
  padding: 60px 24px 40px;
}

.hero-compact .hero-content {
  padding: 0;
}

.hero-compact .hero-content h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.hero-compact .hero-content p {
  font-size: 16px;
  margin-bottom: 0;
}

.about-inner--single {
  display: block;
  max-width: 860px;
}

.about-inner--single h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-inner--single p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}

.about-inner--single .map-embed {
  margin-top: 28px;
}

.address-card {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--bg-white);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  line-height: 1.6;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.address-card strong {
  color: var(--primary);
}

.itineraries {
  padding: var(--section-padding);
}

.itineraries-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.itinerary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.itinerary-list li {
  padding: 14px 18px;
  background: var(--bg-white);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.itinerary-list a {
  color: var(--primary);
  font-weight: 600;
}

.itinerary-list a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.transports {
  padding: var(--section-padding);
}

.transports-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.transports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.transport-card {
  padding: 32px 28px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.transport-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.transport-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.transport-card p {
  line-height: 1.7;
  color: var(--text-body);
}

.hours {
  padding: var(--section-padding);
}

.hours-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hours-inner h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.hours-inner p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-body);
}

.map {
  padding: var(--section-padding);
}

.map-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.map-embed {
  width: 100%;
  height: 480px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  display: block;
}

/* ─────────────────────────  ADMIN  ───────────────────────── */
body.admin {
  background: #f4f6fb;
  color: #1c2434;
  font-family: "Inter", system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.admin-header {
  align-items: center;
  background: #2C5F7C;
  color: #fff;
  display: flex;
  gap: 24px;
  padding: 14px 24px;
}

.admin-header .admin-logo {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-nav {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.admin-nav a,
.admin-nav .admin-user {
  color: #d6e9f4;
  font-size: 0.95rem;
  text-decoration: none;
}

.admin-nav a:hover {
  color: #fff;
}

.admin-nav .admin-user {
  opacity: 0.7;
}

.admin-main {
  margin: 0 auto;
  max-width: 980px;
  padding: 24px;
}

body.admin h1 {
  font-size: 1.7rem;
  margin-top: 0;
}

body.admin h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

body.admin .muted {
  color: #6b7588;
  font-weight: normal;
}

.admin-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin: 20px 0;
  padding: 20px 24px;
}

.admin-section.admin-danger-zone {
  border: 1px solid #f5b7b1;
}

.admin-list {
  list-style: none;
  padding: 0;
}

.admin-list li {
  margin: 6px 0;
}

.admin-list li a {
  color: #2C5F7C;
  font-weight: 500;
  text-decoration: none;
}

.admin-list li a:hover {
  text-decoration: underline;
}

.admin-table {
  border-collapse: collapse;
  margin-top: 8px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e7e9ee;
  padding: 10px 12px;
  text-align: left;
}

.admin-table th {
  color: #6b7588;
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-badge {
  background: #d4edda;
  border-radius: 999px;
  color: #155724;
  display: inline-block;
  font-size: 0.78rem;
  padding: 2px 8px;
}

.admin-badge--hidden {
  background: #f5d7d7;
  color: #842029;
}

.admin-add {
  font-size: 0.85rem;
  margin-left: 12px;
  padding: 4px 10px;
  vertical-align: middle;
}

.admin-flash {
  border-radius: 6px;
  font-size: 0.95rem;
  margin: 12px 0;
  padding: 10px 14px;
}

.admin-flash--success {
  background: #d4edda;
  color: #155724;
}

.admin-flash--error {
  background: #f8d7da;
  color: #842029;
}

.admin-login {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  margin: 80px auto;
  max-width: 380px;
  padding: 32px;
}

body.admin .admin-form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin: 20px 0;
  padding: 20px 24px;
}

body.admin fieldset {
  border: 1px solid #e7e9ee;
  border-radius: 6px;
  margin: 16px 0;
  padding: 14px 18px;
}

body.admin legend {
  color: #2C5F7C;
  font-weight: 600;
  padding: 0 8px;
}

body.admin .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0;
}

body.admin .form-group > label {
  color: #1c2434;
  font-size: 0.92rem;
  font-weight: 500;
}

body.admin .form-group small {
  color: #6b7588;
}

body.admin .form-row {
  display: flex;
  gap: 14px;
}

body.admin .form-row .form-group {
  flex: 1 1 0;
}

body.admin .form-checkbox {
  align-items: center;
  display: flex;
  font-weight: normal;
  gap: 8px;
}

body.admin .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

body.admin input[type=text],
body.admin input[type=email],
body.admin input[type=tel],
body.admin input[type=url],
body.admin input[type=number],
body.admin input[type=password],
body.admin select,
body.admin textarea {
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 6px;
  color: #1c2434;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 8px 10px;
  width: 100%;
}

body.admin input::placeholder,
body.admin textarea::placeholder {
  color: #8a93a3;
}

body.admin textarea {
  min-height: 60px;
  resize: vertical;
}

body.admin .btn {
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 6px;
  color: #1c2434;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 8px 16px;
  text-decoration: none;
}

body.admin .btn:hover {
  background: #f4f6fb;
}

body.admin .btn-primary {
  background: #2C5F7C;
  border-color: #2C5F7C;
  color: #fff;
}

body.admin .btn-primary:hover {
  background: #234e66;
}

body.admin .btn-danger {
  background: #fff;
  border-color: #f5b7b1;
  color: #842029;
}

body.admin .btn-danger:hover {
  background: #f8d7da;
}

.admin-sections {
  counter-reset: section;
  list-style: none;
  padding: 0;
}

.admin-section-item {
  align-items: center;
  background: #fafbfd;
  border: 1px solid #e7e9ee;
  border-radius: 6px;
  counter-increment: section;
  display: flex;
  gap: 12px;
  margin: 8px 0;
  padding: 10px 12px;
}

.admin-section-item::before {
  align-items: center;
  background: #2C5F7C;
  border-radius: 50%;
  color: #fff;
  content: counter(section);
  display: flex;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.admin-section-meta {
  flex: 1;
}

.admin-section-actions {
  display: flex;
  gap: 6px;
}

.admin-section-actions .btn {
  font-size: 0.85rem;
  padding: 4px 10px;
}

.admin-add-section {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.admin-add-section label {
  font-weight: 500;
}

.admin-add-section select {
  flex: 1 1 auto;
  max-width: 320px;
  width: auto;
}

.repeating-row {
  background: #fafbfd;
  border: 1px dashed #d0d4dc;
  border-radius: 6px;
  margin: 8px 0;
  padding: 10px 14px;
}

.tiptap-wrapper {
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 6px;
  overflow: hidden;
}

.tiptap-toolbar {
  background: #f4f6fb;
  border-bottom: 1px solid #e7e9ee;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
}

.tiptap-toolbar button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 4px 8px;
}

.tiptap-toolbar button:hover {
  background: #fff;
  border-color: #d0d4dc;
}

.tiptap-surface {
  min-height: 80px;
  padding: 10px 14px;
}

.tiptap-surface .ProseMirror {
  outline: none;
}

.tiptap-surface p:first-child {
  margin-top: 0;
}

.tiptap-surface p:last-child {
  margin-bottom: 0;
}

.image-field-preview {
  margin-top: 10px;
}

.image-field-preview img {
  border: 1px solid #d0d4dc;
  border-radius: 6px;
  cursor: crosshair;
  display: block;
  height: 180px;
  max-width: 320px;
  object-fit: cover;
  width: 100%;
}

.image-field-cropper-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 9999;
}

.image-field-cropper-panel {
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 90vh;
  max-width: 90vw;
  padding: 16px;
}

.image-field-cropper-canvas {
  max-height: 70vh;
  overflow: hidden;
}

.image-field-cropper-canvas img {
  display: block;
  max-width: 100%;
}

.image-field-cropper-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ─────────────────────────  CMS TOOLBAR  ───────────────────────── */
/* Hamburger fixed top-right; opens a vertical drawer from the right edge.
   Page content is unaffected when the drawer is closed. */
.cms-toolbar {
  font-family: "Inter", system-ui, sans-serif;
}

.cms-toolbar__hamburger {
  align-items: center;
  background: rgba(28, 36, 52, 0.92);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 12px;
  top: 12px;
  transition: background 0.15s ease;
  width: 44px;
  z-index: 9000;
}

.cms-toolbar__hamburger:hover {
  background: #1c2434;
}

.cms-toolbar__hamburger span {
  background: #fff;
  border-radius: 2px;
  display: block;
  height: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 18px;
}

.cms-toolbar__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.cms-toolbar__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.cms-toolbar__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.cms-toolbar__edit-fab {
  background: rgba(28, 36, 52, 0.92);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  height: 44px;
  position: fixed;
  right: 64px;
  top: 12px;
  transition: background 0.15s ease;
  width: 44px;
  z-index: 9000;
}

.cms-toolbar__edit-fab:hover {
  background: #1c2434;
}

.cms-toolbar__edit-fab--active {
  background: #4A9BC7;
}

.cms-toolbar__edit-fab--active:hover {
  background: #2C5F7C;
}

.cms-toolbar__save-fab {
  background: #2C5F7C;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  height: 44px;
  padding: 0 16px;
  position: fixed;
  right: 116px;
  top: 12px;
  z-index: 9000;
}

.cms-toolbar__save-fab[hidden] {
  display: none;
}

.cms-toolbar__save-fab:hover {
  background: #4A9BC7;
}

.cms-toolbar__scrim {
  background: rgba(0, 0, 0, 0.35);
  inset: 0;
  position: fixed;
  z-index: 8990;
}

.cms-toolbar__scrim[hidden] {
  display: none;
}

.cms-toolbar__drawer {
  background: #1c2434;
  bottom: 0;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.35);
  color: #f4f6fb;
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  max-width: calc(100vw - 24px);
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  width: 320px;
  z-index: 9000;
}

.cms-toolbar__drawer--open {
  transform: translateX(0);
}

.cms-drawer__header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.cms-drawer__brand {
  font-size: 1rem;
  font-weight: 700;
}

.cms-drawer__page {
  color: #94a3b8;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 2px;
}

.cms-drawer__close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0 4px;
}

.cms-drawer__close:hover {
  color: #fff;
}

.cms-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.cms-drawer__item {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  padding: 12px 18px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.cms-drawer__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cms-drawer__item--active {
  background: rgba(74, 155, 199, 0.18);
  border-left-color: #4A9BC7;
}

.cms-drawer__item--danger {
  color: #fca5a5;
  margin-top: 8px;
}

.cms-drawer__item--danger:hover {
  background: rgba(220, 38, 38, 0.12);
  color: #fecaca;
}

.cms-drawer__item--trash {
  align-items: flex-start;
  color: #cbd5e1;
  font-size: 0.9rem;
  padding: 10px 18px;
}

.cms-drawer__item--trash small {
  color: #94a3b8;
  display: block;
  font-size: 0.75rem;
  margin-top: 2px;
}

.cms-drawer__trash-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cms-drawer__trash {
  padding: 4px 0 8px;
}

.cms-drawer__trash-group + .cms-drawer__trash-group {
  margin-top: 6px;
}

.cms-drawer__trash-heading {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 18px 2px;
  text-transform: uppercase;
}

.cms-drawer__section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

.cms-drawer__section > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 18px;
  user-select: none;
}

.cms-drawer__section > summary::-webkit-details-marker {
  display: none;
}

.cms-drawer__section > summary::after {
  color: #94a3b8;
  content: "▾";
  float: right;
  transition: transform 0.2s ease;
}

.cms-drawer__section[open] > summary::after {
  transform: rotate(180deg);
}

.cms-drawer__section > summary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cms-drawer__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 18px 14px;
}

.cms-drawer__form label {
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 4px;
}

.cms-drawer__form input[type=text],
.cms-drawer__form input[type=number],
.cms-drawer__form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: #f4f6fb;
  font: inherit;
  font-size: 0.9rem;
  padding: 7px 10px;
  width: 100%;
}

.cms-drawer__form input[type=text]:focus,
.cms-drawer__form input[type=number]:focus,
.cms-drawer__form textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #4A9BC7;
  outline: none;
}

.cms-drawer__form textarea {
  min-height: 60px;
  resize: vertical;
}

.cms-drawer__check {
  align-items: center;
  flex-direction: row;
  gap: 8px;
}

.cms-drawer__check input {
  width: auto;
}

.cms-drawer__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.cms-drawer__user {
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 18px;
}

.cms-drawer__logout {
  color: #f5b7b1;
}

.cms-drawer__logout:hover {
  background: rgba(245, 183, 177, 0.1);
}

.cms-flash {
  background: #2C5F7C;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #fff;
  opacity: 0;
  padding: 10px 16px;
  position: fixed;
  right: 14px;
  top: 56px;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9100;
}

.cms-flash--shown {
  opacity: 1;
  transform: translateY(0);
}

/* Edit-mode: keep the page looking exactly like the rendered view.
   Only show a subtle cursor cue + a focus ring when actively editing. */
body.cms-edit-mode [data-edit-path] {
  cursor: text;
}

body.cms-edit-mode [data-edit-mode=image] {
  cursor: pointer;
}

/* Suppress browser default contenteditable outline; keep our subtle focus
   ring only on the element actually being edited (ProseMirror or contented-
   itable input) — and even that we keep minimal. */
body.cms-edit-mode [data-edit-path] .ProseMirror,
body.cms-edit-mode [data-edit-path][contenteditable] {
  outline: none;
}

body.cms-edit-mode [data-edit-path] .ProseMirror:focus,
body.cms-edit-mode [data-edit-path][contenteditable]:focus,
body.cms-edit-mode [data-edit-path][contenteditable] *:focus {
  outline: none;
}

/* Override ProseMirror's default `white-space: pre-wrap; white-space:
   break-spaces;`. We want edit-mode rendering to match published rendering,
   and standard web content collapses runs of whitespace. */
.ProseMirror {
  white-space: normal;
}

/* Empty-state placeholder for editable fields.
   - inline-text: matches when the element is empty, contains only an
     auto-injected <br> (browsers add one when you focus an empty
     contenteditable), or the controller has toggled `.cms-empty`.
   - inline-html (TipTap): the Placeholder extension stamps `data-placeholder`
     on empty blocks and adds the `is-empty` class. */
body.cms-edit-mode [data-controller~=inline-text][data-placeholder]:empty::before,
body.cms-edit-mode [data-controller~=inline-text][data-placeholder].cms-empty::before,
body.cms-edit-mode [data-controller~=inline-text][data-placeholder]:has(> br:only-child)::before {
  color: #aaa;
  content: attr(data-placeholder);
  font-style: italic;
  pointer-events: none;
}

body.cms-edit-mode .ProseMirror :is(p, h3).is-empty[data-placeholder]::before,
body.cms-edit-mode .ProseMirror :is(p, h3)[data-placeholder]:has(> br.ProseMirror-trailingBreak:only-child)::before {
  color: #aaa;
  content: attr(data-placeholder);
  float: left;
  font-style: italic;
  height: 0;
  pointer-events: none;
}

/* Host-level fallback for inline-html: render the placeholder from the
   host's mirrored data-placeholder when the editor effectively contains
   nothing (single empty block or block with only a trailing <br>).
   Uses float:left;height:0 so it overlays without disturbing layout. */
body.cms-edit-mode [data-controller~=inline-html][data-placeholder]:empty::before,
body.cms-edit-mode [data-controller~=inline-html][data-placeholder]:has(> :is(p, h3):only-child:empty)::before,
body.cms-edit-mode [data-controller~=inline-html][data-placeholder]:has(> :is(p, h3):only-child > br:only-child)::before {
  color: #aaa;
  content: attr(data-placeholder);
  float: left;
  font-style: italic;
  height: 0;
  pointer-events: none;
}

/* Per-section "hide placeholders" toggle — suppresses every placeholder
   ::before pseudo-element rendered by the rules above. !important is the
   simplest way to override the various selectors without duplicating their
   shape. */
body.cms-edit-mode section.cms-no-placeholders [data-placeholder]::before {
  content: none !important;
}

.cms-sc-toggle-ph.is-active {
  opacity: 0.5;
}

/* Floating TipTap bubble menu (formatting tooltip near selection). */
.cms-bubble-menu {
  background: #1c2434;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #f4f6fb;
  display: flex;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  gap: 2px;
  left: 0;
  padding: 4px;
  position: absolute;
  top: 0;
  visibility: hidden; /* TipTap toggles inline style.visibility */
  z-index: 9200;
}

.cms-bubble-menu button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  height: 28px;
  line-height: 1;
  min-width: 28px;
  padding: 4px 8px;
}

.cms-bubble-menu button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cms-bubble-menu button.is-active {
  background: #4A9BC7;
}

/* CMS — section controls + list affordances + image popover */
/* Position context for the section controls overlay (without wrapping the
   section in an extra div, which would break the section:nth-of-type
   alternating background). */
body.cms-edit-mode section[data-section-index] {
  position: relative;
}

/* Per-section overlay: vertical stack pinned to the right edge,
   hidden until the section is hovered (or any control inside is
   focused, so it stays open while a popover is in use). */
.cms-section-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.15s ease;
  z-index: 50;
}

body.cms-edit-mode section[data-section-index]:hover > .cms-section-controls,
body.cms-edit-mode section[data-section-index]:focus-within > .cms-section-controls {
  opacity: 1;
  pointer-events: auto;
}

.cms-sc-btn {
  background: rgba(28, 36, 52, 0.85);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  height: 30px;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.cms-sc-btn:hover {
  background: #1c2434;
}

.cms-section-controls__delete:hover {
  background: #842029;
}

.cms-sc-add {
  position: relative;
}

.cms-sc-add__panel {
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  color: #1c2434;
  display: none;
  min-width: 240px;
  padding: 8px;
  position: absolute;
  right: calc(100% + 8px);
  top: 0;
}

.cms-sc-add--open > .cms-sc-add__panel {
  display: block;
}

.cms-sc-add__pos {
  border-bottom: 1px solid #e7e9ee;
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  padding-bottom: 8px;
}

.cms-sc-add__pos-btn {
  background: transparent;
  border: 1px solid #d0d4dc;
  border-radius: 5px;
  color: #1c2434;
  cursor: pointer;
  flex: 1;
  font: inherit;
  font-size: 0.85rem;
  padding: 5px 10px;
}

.cms-sc-add__pos-btn:hover {
  background: #f4f6fb;
}

.cms-sc-add__pos-btn.is-active {
  background: #2C5F7C;
  border-color: #2C5F7C;
  color: #fff;
}

.cms-sc-add__types {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cms-sc-add__types > li > button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #1c2434;
  cursor: pointer;
  font: inherit;
  padding: 7px 10px;
  text-align: left;
  width: 100%;
}

.cms-sc-add__types > li > button:hover {
  background: #f4f6fb;
}

.cms-section-add {
  display: none;
  padding: 8px 0;
  position: relative;
  text-align: center;
}

body.cms-edit-mode .cms-section-add {
  display: block;
}

.cms-section-add__btn {
  background: #fff;
  border: 1px dashed #4A9BC7;
  border-radius: 999px;
  color: #2C5F7C;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 14px;
}

.cms-section-add__btn:hover {
  background: #eaf4fa;
}

.cms-section-add__list {
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: none;
  left: 50%;
  list-style: none;
  margin: 4px 0 0;
  min-width: 240px;
  padding: 4px;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  z-index: 60;
}

.cms-section-add__list--open {
  display: block;
}

.cms-section-add__list button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #1c2434;
  cursor: pointer;
  font: inherit;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.cms-section-add__list button:hover {
  background: #f4f6fb;
}

/* Inline list affordances */
.cms-list-add {
  background: #fff;
  border: 1px dashed #4A9BC7;
  border-radius: 999px;
  color: #2C5F7C;
  cursor: pointer;
  display: none;
  font: inherit;
  font-size: 0.8rem;
  margin: 6px 0;
  padding: 4px 12px;
}

body.cms-edit-mode .cms-list-add {
  display: inline-block;
}

.cms-list-remove {
  background: #842029;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: none;
  font: inherit;
  font-size: 0.85rem;
  height: 22px;
  line-height: 1;
  position: absolute;
  right: -8px;
  top: -8px;
  width: 22px;
  z-index: 30;
}

body.cms-edit-mode .cms-list-item .cms-list-remove {
  display: block;
}

.cms-list-item {
  position: relative;
}

/* Image inline edit */
.cms-image-edit-btn {
  background: rgba(28, 36, 52, 0.85);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  left: 8px;
  padding: 4px 10px;
  position: absolute;
  top: 8px;
  z-index: 40;
}

.cms-image-edit-btn:hover {
  background: #1c2434;
}

.cms-image-popover {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  color: #1c2434;
  max-width: calc(100vw - 32px);
  padding: 16px;
  width: 340px;
  z-index: 9100;
}

.cms-image-popover h4 {
  color: #2C5F7C;
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.cms-popover__hint {
  color: #6b7588;
  font-size: 0.8rem;
  margin: 0 0 10px;
}

.cms-image-popover__preview {
  border: 1px solid #d0d4dc;
  border-radius: 6px;
  height: 180px;
  margin-bottom: 10px;
  overflow: hidden;
  width: 100%;
}

.cms-image-popover__preview img {
  cursor: crosshair;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cms-image-popover__file {
  display: block;
  margin-bottom: 10px;
}

.cms-image-popover__file > span {
  cursor: pointer;
  display: inline-block;
}

.cms-image-popover__actions {
  display: flex;
  justify-content: flex-end;
}

/* Slideshow inline edit */
.cms-slideshow-popover {
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  position: fixed;
  width: 380px;
}

.cms-slideshow-popover__btn {
  background: #fff;
  border: 1px solid #4A9BC7;
  border-radius: 999px;
  color: #2C5F7C;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-size: 0.8rem;
  padding: 4px 12px;
}

.cms-slideshow-popover__btn:hover {
  background: #eaf4fa;
}

.cms-slideshow-popover__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.cms-slideshow-popover__item {
  align-items: center;
  border: 1px solid #d0d4dc;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  padding: 4px;
}

.cms-slideshow-popover__item.is-selected {
  background: #f4faff;
  border-color: #4A9BC7;
}

.cms-slideshow-popover__thumb {
  border-radius: 4px;
  cursor: pointer;
  flex: none;
  height: 44px;
  object-fit: cover;
  width: 64px;
}

.cms-slideshow-popover__alt {
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  flex: 1;
  font: inherit;
  font-size: 0.8rem;
  min-width: 0;
  padding: 4px 6px;
}

.cms-slideshow-popover__tools {
  display: flex;
  flex: none;
  gap: 2px;
}

.cms-slideshow-popover__tools button,
.cms-slideshow-popover__tools label {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  color: #1c2434;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.85rem;
  height: 26px;
  justify-content: center;
  padding: 0;
  width: 26px;
}

.cms-slideshow-popover__tools button:hover,
.cms-slideshow-popover__tools label:hover {
  background: #eaf4fa;
}

.cms-slideshow-popover__tools button:disabled {
  cursor: default;
  opacity: 0.35;
}

.cms-slideshow-popover__tools [data-act=remove] {
  color: #842029;
}

/* Inline order (homepage techniques grid) */
body.cms-edit-mode .technique-card--extra {
  display: block;
}

.cms-order {
  position: relative;
}

.cms-order > [data-slug] {
  cursor: grab;
  position: relative;
  user-select: none;
}

.cms-order > [hidden] {
  display: none !important;
}

.cms-order-active,
.cms-order-active > [data-slug] {
  cursor: grabbing;
}

.cms-order-active > [data-slug],
.cms-order-active > [data-slug]:hover {
  transform: none;
  transition: none;
}

.cms-order-placeholder {
  background: rgba(74, 155, 199, 0.08);
  border: 2px dashed #4A9BC7;
  border-radius: 16px;
}

body > .cms-order-ghost {
  box-shadow: 0 18px 40px rgba(28, 36, 52, 0.22);
  cursor: grabbing;
  margin: 0;
  opacity: 0.95;
  pointer-events: none;
  position: fixed;
  rotate: 2deg;
  scale: 1.03;
  transition: rotate 0.18s ease, scale 0.18s ease, box-shadow 0.18s ease;
  z-index: 9500;
}

body > .cms-order-ghost--settling {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  rotate: 0deg;
  scale: 1;
}

.cms-order-handle {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  bottom: 8px;
  color: #6b7588;
  display: inline-flex;
  font-size: 1rem;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: 8px;
  touch-action: none;
  width: 28px;
  z-index: 40;
}

.cms-empty-card {
  background: #f4faff;
  border: 1px dashed #4A9BC7;
}

/* Placeholder silhouette in unselected specialist cards — drops a faint
   white person icon into the same gradient circle the photo uses. */
.specialist-photo--placeholder {
  align-items: center;
  display: flex;
  justify-content: center;
}

.specialist-photo--placeholder svg {
  fill: rgba(255, 255, 255, 0.85);
  height: 76%;
  width: 76%;
}

/* Inline specialist selector styled to match `.specialist-card h3` —
   clicking the h3-looking text opens the native dropdown. */
.specialist-card .cms-specialist-h3 {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: var(--primary);
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  padding: 0;
  width: 100%;
}

.specialist-card .cms-specialist-h3:hover {
  text-decoration: underline;
}

.specialist-card .cms-specialist-h3:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.specialist-card .cms-specialist-h3--empty {
  color: #94a3b8;
}

/* CMS — page history panel inside the admin drawer */
.cms-drawer__history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 6px 18px 14px;
}

.cms-drawer__hint {
  color: #94a3b8;
  font-size: 0.82rem;
  margin: 0;
}

.cms-history-entry {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.82rem;
  padding: 8px 10px;
}

.cms-history-entry__meta {
  color: #cbd5e1;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.cms-history-entry__meta span {
  color: #94a3b8;
  font-size: 0.75rem;
}

.cms-history-entry__subject {
  color: #94a3b8;
  margin-top: 2px;
  word-break: break-word;
}

.cms-history-entry--current {
  background: rgba(74, 155, 199, 0.12);
  border-color: #4A9BC7;
}

.cms-history-entry__current {
  color: #4A9BC7;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.cms-history-entry__actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.cms-history-entry__rollback,
.cms-history-entry__preview {
  background: transparent;
  border: 1px solid #4A9BC7;
  border-radius: 4px;
  color: #4A9BC7;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-size: 0.78rem;
  padding: 4px 10px;
  text-decoration: none;
}

.cms-history-entry__rollback:hover,
.cms-history-entry__preview:hover {
  background: rgba(74, 155, 199, 0.18);
}

.cms-history-entry__preview {
  border-color: rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
}

.cms-history-entry__preview:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Preview ribbon — pinned to the top of the viewport while an editor
   is viewing /admin/preview/{kind}/{hash}/{slug?}. Pushes the rest of
   the page down so it never overlaps the site header. */
.cms-preview-ribbon {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #fff;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.cms-preview-ribbon__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 10px 20px;
}

.cms-preview-ribbon__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.cms-preview-ribbon__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.cms-preview-ribbon__text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.cms-preview-ribbon__meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.cms-preview-ribbon__meta code {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  padding: 1px 5px;
}

.cms-preview-ribbon__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.cms-preview-ribbon__btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cms-preview-ribbon__btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.cms-preview-ribbon__btn--restore {
  background: #fff;
  color: #b45309;
}

.cms-preview-ribbon__btn--restore:hover {
  background: #fde68a;
}

/* Push everything down so the fixed ribbon doesn't overlap the header.
   --cms-preview-offset is reused to shift fixed UI (header, nav overlay)
   too, since body padding alone doesn't move position:fixed elements. */
body.cms-preview-mode {
  --cms-preview-offset: 56px;
  padding-top: var(--cms-preview-offset);
}

body.cms-preview-mode .site-header {
  top: var(--cms-preview-offset);
}

body.cms-preview-mode .nav-overlay {
  top: var(--cms-preview-offset);
}

/* Hide the in-page editor controls — historical preview is read-only. */
body.cms-preview-mode .cms-toolbar__edit-fab,
body.cms-preview-mode .cms-toolbar__save-fab,
body.cms-preview-mode .cms-toolbar__hamburger {
  display: none;
}

/* Deleted-page ribbon — mirrors the preview ribbon, red destructive palette */
.cms-deleted-ribbon {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #fff;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.cms-deleted-ribbon__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 10px 20px;
}

.cms-deleted-ribbon__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.cms-deleted-ribbon__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.cms-deleted-ribbon__text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.cms-deleted-ribbon__meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.cms-deleted-ribbon__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.cms-deleted-ribbon__btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cms-deleted-ribbon__btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.cms-deleted-ribbon__btn--restore {
  background: #fff;
  color: #991b1b;
}

.cms-deleted-ribbon__btn--restore:hover {
  background: #fecaca;
}

/* Same offset trick as preview mode so the fixed ribbon doesn't overlap content */
body.cms-deleted-mode {
  --cms-preview-offset: 56px;
  padding-top: var(--cms-preview-offset);
}

body.cms-deleted-mode .site-header {
  top: var(--cms-preview-offset);
}

body.cms-deleted-mode .nav-overlay {
  top: var(--cms-preview-offset);
}

/* Contact form — AJAX status, edit overlay, options popover */
.contact-form {
  position: relative;
}

.contact-form__status {
  font-size: 0.9rem;
  margin-top: 12px;
  min-height: 1.2em;
}

.contact-form__status[data-level=error] {
  color: #f8d7da;
}

.contact-form__input--error {
  border-color: #f8d7da !important;
}

.contact-form__field-error {
  color: #f8d7da;
  font-size: 0.78rem;
  margin-top: 4px;
}

.contact-form-success {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.6;
  padding: 40px;
  text-align: center;
}

/* Loading overlay shown over the form while the request is in flight.
   Blurs the underlying fields and centers a spinner + status message. */
.contact-form--busy > *:not(.contact-form__loading) {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.contact-form__loading {
  align-items: center;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.contact-form__loading-inner {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: 500;
  gap: 14px;
  text-align: center;
}

.contact-form__spinner {
  animation: contact-spin 0.9s linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #fff;
  display: block;
  height: 36px;
  width: 36px;
}

@keyframes contact-spin {
  to {
    transform: rotate(360deg);
  }
}
.contact-form-success__text {
  margin: 0 0 24px;
}

.contact-form-success__back {
  margin: 0 auto;
}

/* Edit affordance — visible only in edit mode (the controller adds the
   --editing modifier on the form). */
.contact-form__edit-btn {
  background: rgba(28, 36, 52, 0.85);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 0.9rem;
  height: 32px;
  line-height: 1;
  position: absolute;
  right: -25px;
  top: -25px;
  width: 32px;
  z-index: 5;
}

body.cms-edit-mode .contact-form .contact-form__edit-btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.contact-form__edit-btn:hover {
  background: #1c2434;
}

.contact-form__popover {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  color: #1c2434;
  max-width: calc(100% + 24px);
  padding: 16px;
  position: absolute;
  right: -25px;
  top: 8px;
  width: 320px;
  z-index: 6;
}

.contact-form__popover h4 {
  color: #2C5F7C;
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.contact-form__popover label {
  color: #1c2434;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 4px;
  margin-bottom: 12px;
}

.contact-form__popover input,
.contact-form__popover textarea {
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 5px;
  color: #1c2434;
  font: inherit;
  font-size: 0.9rem;
  padding: 7px 10px;
  width: 100%;
}

.contact-form__popover textarea {
  min-height: 60px;
  resize: vertical;
}

.contact-form__popover-hint {
  color: #6b7588;
  font-size: 0.78rem;
  margin: 0;
}

/* Hidden-page ribbon — drawn on the homepage technique/team cards
   when the underlying page has hidden: true. Only logged-in editors
   see hidden cards in the first place (nav_techniques / nav_team
   exclude them otherwise), so the ribbon is implicitly admin-only. */
.technique-card,
.team-card {
  position: relative;
}

.cms-hidden-ribbon {
  background: #842029;
  border-radius: 4px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  position: absolute;
  right: 8px;
  text-transform: uppercase;
  top: 8px;
  z-index: 2;
}

/*# sourceMappingURL=app.output.css.map */
