:root {
  --brand: #641419;
  --teal: #0f766e;
  --gold: #d99735;
  --ink: #182536;
  --muted: #607086;
  --paper: #ffffff;
  --soft: #f4f8f9;
  --line: #dce6ea;
  --public-header-height: 106px;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--public-header-height, 106px) + 16px);
}
body { margin: 0; color: var(--ink); background: var(--soft); }
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 6vw, 72px);
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-logo {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
}

.site-nav { display: flex; align-items: center; gap: 24px; font-size: 17px; }
.site-nav a { color: #52657a; text-decoration: none; font-weight: 650; }
.nav-cta {
  padding: 16px 24px;
  color: #fff !important;
  background: var(--teal);
  border-radius: 8px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 6vw, 72px) 56px;
  background:
    linear-gradient(90deg, #fff 0 48%, #eaf7f6 48% 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
}

.hero-copy h1,
.content-band h2 {
  margin: 0;
  max-width: 760px;
  color: var(--brand);
  font-family: Georgia, serif;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy h1 { font-size: clamp(54px, 8vw, 106px); }
.content-band h2 { font-size: clamp(38px, 5vw, 72px); }
.hero-subtitle, .lead { color: #4e6380; font-size: clamp(19px, 2vw, 25px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.btn-gold { background: var(--gold); color: #1f1604; }
.btn-white { background: #fff; color: var(--ink); border-color: var(--line); }

.hero-gallery {
  display: grid;
  grid-template-columns: .85fr 1.35fr;
  grid-template-rows: 240px 240px;
  gap: 24px;
  align-items: stretch;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(24,37,54,.18);
}

.hero-img-main { grid-row: 1 / span 2; align-self: center; height: 82%; }

.quick-actions {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 1320px;
  margin: -38px auto 0;
  padding: 0 24px;
}

.quick-actions a {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(24,37,54,.1);
  font-size: 20px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1320px;
  margin: 54px auto 0;
  padding: 0 24px;
}

.trust-strip article {
  padding: 24px;
  border-left: 4px solid var(--gold);
  background: #fff;
}

.trust-strip strong {
  display: block;
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.trust-strip span { color: var(--muted); font-weight: 700; }

.content-band {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 72px);
  background: #fff;
}

.muted-band { background: var(--soft); }

.split-band {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.image-medallion img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50% 50% 8px 50%;
}

.section-heading { max-width: 780px; margin-bottom: 32px; }
.section-heading p, .content-band p { color: var(--muted); font-size: 18px; line-height: 1.7; }

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

.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.premium-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(24,37,54,.07);
}

.premium-card.compact { min-height: 180px; }
.premium-card h3 { margin: 0 0 12px; color: var(--ink); font-size: 24px; }
.premium-card p { margin: 0; }
.card-mark { display: block; width: 42px; height: 4px; margin-bottom: 24px; background: var(--teal); }

.people-grid,
.gallery-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.doctor-card,
.blog-card,
.gallery-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(24,37,54,.07);
}

.doctor-card img,
.blog-card img,
.gallery-grid img {
  width: 100%;
  object-fit: cover;
}

.doctor-card img { aspect-ratio: 4 / 5; }
.blog-card img,
.gallery-grid img { aspect-ratio: 4 / 3; }

.doctor-card div,
.blog-card div,
.gallery-grid figcaption {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.doctor-card h3,
.blog-card h3,
.gallery-grid strong {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
}

.doctor-card strong,
.blog-card span,
.gallery-grid span {
  color: var(--brand);
  font-weight: 900;
}

.doctor-card p,
.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.faq-list summary { cursor: pointer; padding: 20px 22px; color: var(--ink); font-size: 20px; font-weight: 850; }
.faq-list p { margin: 0; padding: 0 22px 22px; }

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 32px;
  color: #fff;
  background: var(--brand);
}

.contact-band h2, .contact-band .eyebrow, .contact-band p { color: #fff; }
.appointment-panel { padding: 28px; border-radius: 8px; background: rgba(255,255,255,.12); }
.appointment-panel h3 { margin-top: 0; font-size: 28px; }
.appointment-panel .btn { width: 100%; margin-top: 12px; }

.empty-state, .admin-shell {
  max-width: 980px;
  margin: 10vh auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-shell h1 { margin-top: 0; font-size: 42px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.admin-nav a { padding: 12px 14px; border-radius: 8px; background: var(--soft); text-decoration: none; font-weight: 800; }
.inline-form { margin-top: 18px; }

.login-form { display: grid; gap: 12px; max-width: 420px; }
.login-form label { display: grid; gap: 6px; font-weight: 800; }
.login-form input { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #f8fbff; color: #0f172a; }
.login-form input:focus { outline: 3px solid rgba(47, 115, 246, .18); border-color: #7aa7ff; }
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f8fbff inset;
  -webkit-text-fill-color: #0f172a;
  caret-color: #0f172a;
  transition: background-color 9999s ease-in-out 0s;
}
.validation { color: #b42318; font-weight: 750; }
.field-validation, .caps-warning { color: #b42318; font-size: 13px; font-weight: 750; }

.site-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 70px);
  background:
    linear-gradient(120deg, #dbeafe 0%, #eef8ff 46%, #f8fbff 100%);
}

.site-login-copy h1 {
  margin: 24px 0 12px;
  color: #0f172a;
  font-size: clamp(40px, 5.05vw, 68px);
  line-height: 1.04;
}

.site-login-copy p {
  max-width: 760px;
  color: #52657a;
  font-size: 19px;
  line-height: 1.45;
}

.site-login-copy .login-tagline {
  max-width: 620px;
  margin: 0 0 14px;
  color: #17345f;
  font-size: clamp(24px, 2.45vw, 31px);
  font-weight: 950;
  line-height: 1.25;
}

.site-login-copy .login-product-copy {
  max-width: 640px;
  margin: 0;
}

.site-login-copy .login-positioning {
  max-width: 620px;
  margin: 12px 0 0;
  color: #405a78;
  font-size: 15px;
  font-weight: 850;
}

.scodeit-brand {
  display: block;
  width: min(220px, 70vw);
  height: auto;
}

.admin-logo.large {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  font-size: 34px;
}

.login-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 34px;
}

.login-proof article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 122px;
  padding: 16px;
  border: 1px solid #cfe0f3;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

.login-proof strong {
  color: #17345f;
  font-size: 15px;
  line-height: 1.25;
}

.login-proof span {
  color: #52657a;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.login-capabilities {
  max-width: 720px;
  margin-top: 30px;
  padding: 14px 16px;
  border: 1px solid rgba(207,224,243,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.44);
}

.login-capabilities strong {
  display: block;
  margin-bottom: 10px;
  color: #17345f;
  font-size: 14px;
  font-weight: 900;
}

.login-capabilities ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-capabilities li {
  padding: 6px 9px;
  border: 1px solid rgba(122,167,255,.26);
  border-radius: 999px;
  color: #405a78;
  background: rgba(248,251,255,.7);
  font-size: 12px;
  font-weight: 850;
}

.site-login-card {
  padding: 30px;
  border: 1px solid #dbe7f3;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 26px 80px rgba(31,54,86,.13);
}

.site-login-card h2 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: 31px;
}

.login-card-copy {
  margin: 0 0 26px;
  color: #52657a;
  font-size: 16px;
  line-height: 1.45;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 68px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  background: #fff;
  color: #2f73f6;
  font-weight: 850;
  cursor: pointer;
}

.password-toggle:focus-visible,
.login-link:focus-visible,
.login-footer a:focus-visible {
  outline: 3px solid rgba(47, 115, 246, .2);
  outline-offset: 2px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.remember-option {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: #52657a;
  font-weight: 800 !important;
}

.remember-option input {
  min-height: 0;
  width: 16px;
  height: 16px;
  padding: 0;
}

.login-link {
  color: #2f73f6;
  font-weight: 850;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.login-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2edf7;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.login-footer span {
  color: #8090a5;
  font-size: 12px;
  font-weight: 650;
}

.login-footer a {
  color: #52657a;
  text-decoration: none;
}

.login-footer a:hover {
  color: #2f73f6;
  text-decoration: underline;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  background: #eef5fb;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid #dbe7f3;
  background: rgba(255,255,255,.94);
  color: #172033;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 8px;
  text-decoration: none;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  color: #172033;
  font-size: 18px;
  line-height: 1.1;
}

.admin-brand small {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2f73f6);
  font-weight: 950;
}

.admin-search {
  margin: 18px 0 20px;
  padding: 13px 14px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  color: #8090a5;
  background: #f8fbff;
  font-weight: 700;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a {
  padding: 14px 16px;
  border-radius: 14px;
  color: #243145;
  text-decoration: none;
  font-weight: 800;
}

.admin-menu a.active,
.admin-menu a:hover {
  color: #172033;
  background: #d9edff;
}

.admin-panel {
  min-width: 0;
  padding: 28px 32px 48px;
}

.admin-panel.narrow {
  max-width: 980px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  margin: -28px -32px 28px;
  padding: 14px 32px;
  border-bottom: 1px solid #dbe7f3;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
}

.topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.menu-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  color: #647086;
  background: rgba(255,255,255,.82);
  font-size: 0;
  box-shadow: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.menu-chip::before {
  content: "";
  width: 14px;
  height: 10px;
  border-top: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  box-shadow: 0 4.1px 0 currentColor;
}

.menu-chip:hover {
  color: var(--admin-primary);
  border-color: rgba(52,120,246,.2);
  background: rgba(232,242,255,.72);
}

.admin-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 34px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff 0%, #fff 62%, #d6e6ff 100%);
  box-shadow: 0 18px 50px rgba(31, 54, 86, .08);
}

.admin-hero-card h1 {
  margin: 6px 0 10px;
  color: #0f172a;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
}

.admin-hero-card p,
.admin-title p {
  max-width: 820px;
  color: #52657a;
  font-size: 18px;
  line-height: 1.55;
}

.admin-kicker {
  margin: 0;
  color: #2f73f6;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.admin-button.primary {
  color: #fff;
  background: #2f6fed;
  box-shadow: 0 14px 28px rgba(47, 111, 237, .22);
}

.admin-button.ghost {
  color: #172033;
  background: #f8fbff;
  border-color: #dbe7f3;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-module-grid a {
  min-height: 190px;
  padding: 22px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  color: #172033;
  background: #fff;
  box-shadow: 0 14px 38px rgba(31, 54, 86, .06);
  text-decoration: none;
}

.admin-module-grid span,
.admin-module-grid strong,
.admin-module-grid small {
  display: block;
}

.admin-module-grid span {
  width: 46px;
  margin-bottom: 28px;
  padding-top: 5px;
  border-top: 4px solid #0f766e;
  color: #64748b;
  font-weight: 950;
}

.admin-module-grid strong {
  margin-bottom: 10px;
  font-size: 22px;
}

.admin-module-grid small {
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}

.admin-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
}

.notice {
  padding: 12px 14px;
  border: 1px solid #b6dfc4;
  border-radius: 8px;
  color: #14532d;
  background: #ecfdf3;
  font-weight: 800;
}

.section-editor-list {
  display: grid;
  gap: 18px;
}

.editor-card,
.settings-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(24,37,54,.06);
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editor-head strong {
  display: block;
  font-size: 22px;
}

.editor-head span {
  color: var(--muted);
  font-weight: 800;
}

.editor-card label,
.settings-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

.editor-card input,
.editor-card textarea,
.settings-form input,
.settings-form textarea,
.admin-table input,
.admin-table select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 400;
}

.settings-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.settings-upload-grid,
.color-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-upload-card {
  align-content: start;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.settings-upload-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 12px;
  border-radius: 14px;
  background: #eef6fb;
}

.settings-upload-card input[type="file"] {
  padding: 10px;
  background: #fff;
}

.color-picker-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.color-picker-row input[type="color"] {
  min-height: 52px;
  padding: 5px;
}

.colour-warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  color: #047857;
  background: #f0fdf4;
  font-weight: 850;
}

.colour-warning.danger {
  border-color: #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}

@media (max-width: 760px) {
  .settings-upload-grid,
  .color-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 18px;
  }

  .site-login-copy h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .site-login-copy p {
    font-size: 18px;
  }

  .site-login-copy .login-tagline {
    font-size: 23px;
  }

  .site-login-copy .login-positioning {
    font-size: 14px;
  }

  .login-capabilities {
    margin-top: 22px;
    padding: 13px;
  }

  .login-capabilities ul {
    gap: 7px;
  }

  .scodeit-brand {
    width: 176px;
  }

  .login-proof {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .login-proof article {
    min-height: auto;
  }

  .site-login-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .site-login-card h2 {
    font-size: 26px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .site-login-shell {
    padding: 22px 14px;
  }

  .site-login-copy h1 {
    font-size: 42px;
  }

  .login-proof article {
    padding: 12px 14px;
  }
}

.editor-card textarea {
  resize: vertical;
}

.code-input {
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.toggle-line {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.toggle-line input {
  width: auto;
  min-height: auto;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}

.module-heading-form h2,
.module-item-form h2,
.module-list h2 {
  margin: 0 0 6px;
  color: #172033;
}

.module-list {
  display: grid;
  gap: 14px;
}

.module-record {
  margin-top: 0;
}

.module-record-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.delete-form {
  margin: -6px 0 16px;
  text-align: right;
}

.admin-button.danger {
  color: #842029;
  border-color: #fecaca;
  background: #fff1f2;
}

.module-empty {
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #64748b;
  background: #fff;
  font-weight: 800;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-nav { display: none; }
  .hero-section, .split-band, .contact-band { grid-template-columns: 1fr; }
  .hero-section { min-height: auto; background: #fff; }
  .hero-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 210px 210px; }
  .hero-img-main { grid-column: 1 / span 2; grid-row: auto; height: 100%; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
  .trust-strip, .card-grid, .card-grid.four, .people-grid, .gallery-grid, .blog-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-panel { padding: 24px; }
  .admin-topbar { margin: -24px -24px 24px; padding: 14px 24px; }
  .admin-hero-card { align-items: flex-start; flex-direction: column; }
  .admin-module-grid { grid-template-columns: 1fr; }
  .module-grid, .module-record-fields { grid-template-columns: 1fr; }
  .site-login-shell { grid-template-columns: 1fr; }
  .login-proof { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { padding: 14px 16px; }
  .brand { font-size: 18px; }
  .brand-logo { width: 46px; height: 46px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-gallery { display: none; }
  .quick-actions a { min-height: 72px; font-size: 17px; }
}

/* Premium generated public website */
.hospital-site {
  --navy: #102033;
  --hospital-muted: #607086;
  --hospital-line: #dbe7e8;
  --hospital-surface: #f3f8f8;
  overflow-x: visible;
  color: var(--navy);
  background: #fff;
}

.hospital-site img {
  display: block;
}

.hospital-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(219,231,232,.9);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}

.hospital-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hospital-nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.hospital-nav a {
  color: #43566d;
  font-weight: 800;
  text-decoration: none;
}

.hospital-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 12px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.hospital-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  min-height: 720px;
  padding: clamp(46px, 7vw, 86px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 18%, rgba(15,118,110,.16), transparent 32%),
    linear-gradient(90deg, #fff 0 49%, #eaf7f6 49% 100%);
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
}

.hero-content h1,
.section-copy h2,
.section-heading h2,
.appointment-copy h2 {
  margin: 0;
  color: var(--brand);
  font-family: Georgia, serif;
  font-weight: 950;
  line-height: 1.04;
}

.hero-content h1 {
  max-width: 720px;
  font-size: clamp(44px, 5.4vw, 78px);
  overflow-wrap: normal;
  word-break: normal;
}

.hero-content p:not(.section-kicker),
.section-heading p,
.section-copy p,
.appointment-copy p {
  color: var(--hospital-muted);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.62;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-soft {
  color: var(--teal);
  background: #e8f6f4;
  border-color: #cce7e3;
}

.hero-mini-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-mini-trust span {
  padding: 9px 12px;
  border: 1px solid var(--hospital-line);
  border-radius: 999px;
  color: #43566d;
  background: rgba(255,255,255,.76);
  font-weight: 800;
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  width: 100%;
  min-height: 480px;
  max-height: 660px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(16,32,51,.2);
}

.hero-appointment-card {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: min(320px, calc(100% - 52px));
  padding: 20px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px;
  color: #fff;
  background: rgba(16,32,51,.76);
  backdrop-filter: blur(12px);
}

.hero-appointment-card strong,
.hero-appointment-card span {
  display: block;
}

.hero-appointment-card span {
  margin-top: 6px;
  color: rgba(255,255,255,.82);
}

.trust-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1240px;
  margin: -46px auto 0;
  padding: 0 22px;
}

.trust-band article {
  padding: 24px;
  border: 1px solid var(--hospital-line);
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16,32,51,.08);
}

.trust-band strong {
  display: block;
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1;
}

.trust-band span {
  color: #52657a;
  font-weight: 850;
}

.hospital-section {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.surface-section {
  background: var(--hospital-surface);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.section-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(16,32,51,.14);
}

.section-image.wide img {
  aspect-ratio: 4 / 3;
}

.section-copy h2,
.section-heading h2,
.appointment-copy h2 {
  font-size: clamp(34px, 4.1vw, 62px);
}

.lead {
  font-weight: 700;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-badges span {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--teal);
  background: #e8f6f4;
  font-weight: 850;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.service-grid,
.doctor-grid,
.testimonial-grid,
.blog-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.why-grid article,
.doctor-card-premium,
.testimonial-grid figure,
.premium-gallery figure,
.blog-grid-premium article,
.contact-card {
  border: 1px solid var(--hospital-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16,32,51,.07);
}

.service-card {
  overflow: hidden;
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover,
.why-grid article:hover,
.doctor-card-premium:hover,
.premium-gallery figure:hover,
.blog-grid-premium article:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, .34);
  box-shadow: 0 24px 64px rgba(16,32,51,.11);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e7f1f1;
}

.service-card div {
  padding: 24px;
}

.service-line {
  display: block;
  width: 46px;
  height: 5px;
  margin-bottom: 22px;
  background: var(--teal);
}

.service-card h3,
.why-grid strong,
.doctor-card-premium h3,
.blog-grid-premium h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
}

.service-card p,
.why-grid p,
.doctor-card-premium p,
.blog-grid-premium p,
.tech-list span {
  margin: 0;
  color: var(--hospital-muted);
  font-size: 17px;
  line-height: 1.65;
}

.service-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.service-card a::after {
  content: " ->";
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.why-grid article {
  padding: 24px;
}

.doctor-card-premium,
.blog-grid-premium article,
.premium-gallery figure {
  overflow: hidden;
}

.doctor-card-premium img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
}

.doctor-card-premium div,
.blog-grid-premium div,
.premium-gallery figcaption {
  padding: 22px;
}

.doctor-card-premium .doctor-designation,
.blog-grid-premium span,
.premium-gallery span,
.testimonial-grid figcaption span {
  color: var(--brand);
  font-weight: 900;
}

.tech-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.tech-list article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--hospital-line);
  border-radius: 16px;
  background: #fff;
}

.equipment-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--section-max);
  margin: 0 auto;
}

.equipment-card {
  overflow: hidden;
  border: 1px solid var(--hospital-line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--premium-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.equipment-card:hover,
.equipment-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(17, 24, 39, .12);
}

.equipment-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9f5f4;
}

.equipment-card > div {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.equipment-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

.equipment-card p {
  margin: 0;
}

.equipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.equipment-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f7fb;
}

.equipment-card details {
  margin-top: 4px;
  color: var(--muted);
}

.equipment-card summary {
  width: fit-content;
  color: var(--teal);
  font-weight: 900;
  cursor: pointer;
}

.equipment-actions,
.equipment-empty {
  max-width: var(--section-max);
  margin: 26px auto 0;
}

.equipment-toggle {
  border: 0;
  cursor: pointer;
}

.equipment-empty {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px dashed var(--hospital-line);
  border-radius: var(--card-radius);
  background: #fff;
}

.equipment-empty img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
}

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

@media (max-width: 640px) {
  .equipment-grid,
  .equipment-empty {
    grid-template-columns: 1fr;
  }
}

.premium-gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 18px;
}

.premium-gallery img,
.blog-grid-premium img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.premium-gallery figure:first-child {
  grid-row: span 2;
}

.premium-gallery figure:first-child img {
  aspect-ratio: 4 / 4.15;
}

.testimonial-grid figure {
  margin: 0;
  padding: 28px;
}

.testimonial-grid blockquote {
  margin: 0;
  color: #243145;
  font-size: 20px;
  line-height: 1.55;
}

.testimonial-grid figcaption {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}

.premium-faq {
  max-width: 980px;
}

.premium-faq details {
  border-radius: 16px;
}

.appointment-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(217,151,53,.24), transparent 30%),
    linear-gradient(135deg, var(--brand), #102033);
}

.appointment-section .section-kicker,
.appointment-copy h2,
.appointment-copy p {
  color: #fff;
}

.contact-card {
  padding: 28px;
  color: var(--navy);
}

.contact-card h3 {
  margin: 0 0 18px;
  font-size: 30px;
}

.contact-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-card dt {
  color: var(--hospital-muted);
  font-weight: 900;
}

.contact-card dd {
  margin: 0 0 6px;
  font-weight: 800;
}

.contact-card dd span {
  display: block;
}

.map-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--teal);
  font-weight: 900;
}

.office-map-embed {
  width: 100%;
  min-height: 240px;
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
  background: #eef8f7;
}

.hospital-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 42px clamp(20px, 5vw, 72px);
  color: #dfe9ee;
  background: #102033;
}

.hospital-footer p {
  max-width: 640px;
  color: #b8c7d3;
}

.hospital-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.hospital-footer a {
  color: #fff;
}

.footer-brand {
  color: #fff;
}

.mobile-sticky-appointment {
  display: none;
}

@media (max-width: 1120px) {
  .hospital-header { grid-template-columns: 1fr auto; }
  .hospital-nav { display: none; }
  .hospital-hero, .split-section, .appointment-section { grid-template-columns: 1fr; }
  .hospital-hero { min-height: auto; background: #fff; }
  .hero-photo { min-height: 380px; }
  .trust-band, .service-grid, .doctor-grid, .testimonial-grid, .blog-grid-premium, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hospital-header { padding: 14px 16px; }
  .hospital-brand { font-size: 18px; }
  .hospital-cta { min-height: 46px; padding: 10px 14px; }
  .hospital-hero {
    display: block;
    padding: 38px 18px 46px;
  }
  .hero-content {
    width: min(100%, calc(100vw - 36px));
    min-width: 0;
  }
  .hero-content h1 {
    width: min(100%, calc(100vw - 36px));
    max-width: 330px;
    font-size: 27px;
    line-height: 1.08;
    overflow-wrap: break-word;
  }
  .hero-content p:not(.section-kicker) {
    width: min(100%, calc(100vw - 36px));
    max-width: 330px;
  }
  .hero-content p:not(.section-kicker),
  .section-heading p,
  .section-copy p,
  .appointment-copy p {
    font-size: 17px;
  }
  .hospital-section { padding: 48px 18px; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, calc(100vw - 36px));
    max-width: 330px;
  }
  .hero-mini-trust {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 36px));
    max-width: 330px;
  }
  .hero-mini-trust span {
    max-width: 100%;
  }
  .hero-photo-wrap {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    margin-top: 34px;
  }
  .hero-photo {
    width: 100%;
    max-width: calc(100vw - 36px);
    min-height: 270px;
    border-radius: 20px;
  }
  .hero-appointment-card {
    position: static;
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    margin-top: 12px;
    color: #fff;
    overflow-wrap: break-word;
  }
  .hero-appointment-card span {
    white-space: normal;
  }
  .trust-band, .service-grid, .doctor-grid, .testimonial-grid, .blog-grid-premium, .why-grid, .premium-gallery { grid-template-columns: 1fr; }
  .premium-gallery figure:first-child { grid-row: auto; }
  .hospital-footer { grid-template-columns: 1fr; }
  .mobile-sticky-appointment {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 14px;
    color: #fff;
    background: var(--teal);
    box-shadow: 0 18px 48px rgba(16,32,51,.22);
    font-weight: 950;
    text-decoration: none;
  }
}

/* Single-page visual website editor */
.visual-editor-shell .admin-panel {
  padding-bottom: 120px;
}

.website-editor-panel[data-preview-size="tablet"] {
  max-width: 980px;
  margin: 0 auto;
}

.website-editor-panel[data-preview-size="mobile"] {
  max-width: 560px;
  margin: 0 auto;
}

.editor-topbar {
  gap: 16px;
}

.preview-mode-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: #f8fbff;
}

.preview-mode-tabs button {
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: #52657a;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.preview-mode-tabs button.active {
  color: #fff;
  background: #2f6fed;
}

.editor-sticky-actions {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -6px 0 22px;
  padding: 14px 18px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(31,54,86,.08);
  backdrop-filter: blur(16px);
}

.editor-sticky-actions strong,
.editor-sticky-actions span {
  display: block;
}

.editor-sticky-actions span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.editor-sticky-actions span.dirty {
  color: #b45309;
}

.editor-sticky-actions > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.editor-intro h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.editor-section-card {
  margin-bottom: 18px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(31,54,86,.06);
  overflow: hidden;
}

.editor-section-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.editor-section-card summary::-webkit-details-marker {
  display: none;
}

.editor-section-card summary strong,
.editor-section-card summary small {
  display: block;
}

.editor-section-card summary strong {
  color: #172033;
  font-size: 22px;
}

.editor-section-card summary small {
  margin-top: 4px;
  color: #64748b;
  font-weight: 700;
}

.editor-visible-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #243145;
  font-weight: 900;
}

.editor-card-body {
  display: grid;
  gap: 16px;
  padding: 0 22px 22px;
}

.visual-field {
  display: grid;
  gap: 7px;
  color: #172033;
  font-weight: 500;
  line-height: 1.35;
}

.visual-field > span,
.form-grid label > span,
.settings-form label > span,
.editor-card label > span,
.tenant-form-grid label > span,
.tenant-filter-bar label > span {
  font-weight: 500;
  line-height: 1.35;
}

.visual-field input,
.visual-field textarea,
.visual-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  color: #172033;
  background: #fbfdff;
  font: inherit;
  font-weight: 400;
}

.visual-field small,
.form-grid small,
.editor-card small,
.settings-form small,
.tenant-form-grid small,
.tenant-filter-bar small,
.form-help {
  color: var(--admin-muted, #64748b);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.visual-field textarea {
  resize: vertical;
}

.rich-input {
  min-height: 132px;
  line-height: 1.55;
}

.image-dropzone {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 2px dashed #bfd3e7;
  border-radius: 16px;
  background: #f8fbff;
  cursor: pointer;
}

.image-dropzone.drag-over {
  border-color: #2f6fed;
  background: #edf5ff;
}

.image-dropzone img {
  width: 180px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #e7eef6;
}

.image-dropzone strong,
.image-dropzone span,
.image-dropzone p {
  display: block;
}

.image-dropzone span,
.image-dropzone p {
  color: #64748b;
  font-weight: 750;
}

.image-dropzone button,
.repeat-head button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  color: #243145;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.visual-repeater {
  display: grid;
  gap: 14px;
}

.visual-repeater > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.visual-repeater > header div,
.visual-repeater > header strong,
.visual-repeater > header span {
  display: block;
}

.visual-repeater > header span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.repeat-search {
  width: min(220px, 100%);
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
}

.visual-repeat-card {
  padding: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 16px;
  background: #fbfdff;
}

.compact-repeat-list {
  display: grid;
  gap: 10px;
}

.compact-repeat-card {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe7f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31,54,86,.05);
}

.compact-repeat-card.is-hidden-item {
  opacity: .72;
  background: #f8fafc;
}

.compact-repeat-card img,
.repeat-thumb-placeholder {
  width: 64px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #eaf3fb;
}

.repeat-thumb-placeholder {
  display: grid;
  place-items: center;
  color: #0f766e;
  font-weight: 950;
}

.repeat-summary {
  min-width: 0;
}

.repeat-summary strong,
.repeat-summary small {
  display: block;
}

.repeat-summary strong {
  color: #172033;
  font-size: 15px;
}

.repeat-summary small {
  max-width: 48ch;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-repeat-card em {
  padding: 6px 9px;
  border-radius: 999px;
  color: #047857;
  background: #e6f7f1;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.compact-repeat-card.is-hidden-item em {
  color: #475569;
  background: #e2e8f0;
}

.repeat-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.repeat-actions button,
.item-editor-drawer button[data-close] {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  color: #243145;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.repeat-actions button[data-remove] {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff5f6;
}

.nested-image-list {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #fbfdff;
}

.nested-image-list > header strong,
.nested-image-list > header span {
  display: block;
}

.nested-image-list > header span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.nested-images {
  display: grid;
  gap: 12px;
}

.nested-image-card {
  display: grid;
  grid-template-columns: auto minmax(130px, 170px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #dbe7f3;
  border-radius: 16px;
  background: #fff;
}

.nested-image-card .friendly-image-control {
  min-height: 120px;
  padding: 8px;
}

.nested-image-card .image-dropzone img {
  width: 100%;
  max-height: 96px;
  object-fit: cover;
}

.nested-image-card input {
  width: 100%;
}

.nested-image-card .repeat-actions {
  grid-column: 2 / -1;
}

.empty-repeat-list {
  margin: 0;
  padding: 14px;
  border: 1px dashed #bfd3e7;
  border-radius: 14px;
  color: #64748b;
  background: #fbfdff;
  font-weight: 800;
}

.item-editor-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, .38);
}

.drawer-panel {
  width: min(560px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #f7fbff;
  box-shadow: -24px 0 60px rgba(15,23,42,.18);
}

.drawer-panel > header,
.drawer-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid #dbe7f3;
  background: #fff;
}

.drawer-panel > footer {
  border-top: 1px solid #dbe7f3;
  border-bottom: 0;
}

.drawer-panel h3 {
  margin: 2px 0 0;
  color: #172033;
  font-size: 24px;
}

.drawer-panel header span {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.drawer-fields {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  overflow: auto;
}

.repeat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.repeat-head div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.repeat-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.repeat-fields .image-dropzone,
.repeat-fields .visual-field:has(textarea) {
  grid-column: 1 / -1;
}

.add-repeat {
  justify-self: start;
}

@media (max-width: 860px) {
  .editor-sticky-actions,
  .editor-section-card summary,
  .image-dropzone {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .repeat-fields {
    grid-template-columns: 1fr;
  }

  .image-dropzone img {
    width: 100%;
  }

  .visual-repeater > header,
  .compact-repeat-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .repeat-actions {
    justify-content: stretch;
  }

  .repeat-actions button {
    flex: 1;
  }
}

/* Generated public-site layout polish */
.hospital-site {
  --section-max: 1480px;
  --card-radius: 18px;
  --premium-shadow: 0 18px 48px rgba(16,32,51,.075);
  --site-section-y: clamp(58px, 7.2vw, 100px);
  --site-card-gap: clamp(18px, 2vw, 24px);
  --site-card-padding: clamp(20px, 2vw, 26px);
  --site-card-shadow: 0 18px 46px rgba(16,32,51,.075);
  --site-card-shadow-hover: 0 26px 70px rgba(16,32,51,.13);
  --site-image-bg: #e8f3f3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hospital-header {
  grid-template-columns: minmax(260px, auto) 1fr auto auto auto;
  gap: clamp(16px, 2vw, 28px);
  min-height: 86px;
}

.hospital-brand {
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 74px;
  height: 48px;
  object-fit: contain;
}

.brand-mark-fallback {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--fallback-secondary, var(--teal)) 28%, white);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.24) 0 13%, transparent 14%),
    linear-gradient(135deg, var(--fallback-primary, var(--brand)), var(--fallback-secondary, var(--teal)));
  box-shadow: 0 10px 26px rgba(17, 37, 55, .12);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .04em;
  line-height: 1;
}

.brand-name {
  color: var(--navy);
  font-weight: 950;
  line-height: 1.05;
}

.header-accreditation {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px 12px;
  border: 1px solid var(--hospital-line);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}

.header-accreditation img {
  width: 58px;
  height: 50px;
  object-fit: contain;
}

.header-accreditation .accreditation-copy {
  display: grid;
  gap: 1px;
  max-width: 140px;
  color: #52657a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.08;
  text-align: left;
}

.header-accreditation .accreditation-copy span {
  display: block;
  white-space: nowrap;
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--hospital-line);
  border-radius: 12px;
  background: #fff;
}

.mobile-nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: var(--navy);
}

.hospital-nav a {
  position: relative;
  padding: 8px 0;
}

.hospital-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.hospital-nav a:hover::after,
.hospital-nav a:focus-visible::after,
.hospital-nav a.active::after {
  transform: scaleX(1);
}

.hospital-nav a.active {
  color: var(--teal);
}

.hospital-hero,
.split-section,
.hospital-section > .section-heading,
.service-grid,
.why-grid,
.doctor-grid,
.tech-section,
.testimonial-grid,
.premium-gallery,
.blog-grid-premium,
.appointment-section > *,
.hospital-footer {
  max-width: var(--section-max);
  margin-left: auto;
  margin-right: auto;
}

.hospital-hero {
  min-height: 660px;
  padding-top: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(48px, 5vw, 70px);
}

.hero-content h1 {
  max-width: 680px;
  font-size: clamp(42px, 5vw, 72px);
}

.hero-photo {
  min-height: 430px;
  max-height: 610px;
  border-radius: 24px;
}

.hospital-section {
  padding-top: clamp(46px, 5.6vw, 76px);
  padding-bottom: clamp(46px, 5.6vw, 76px);
}

.section-heading {
  margin-bottom: 28px;
}

.section-copy h2,
.section-heading h2,
.appointment-copy h2 {
  font-size: clamp(32px, 3.6vw, 56px);
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.why-grid article,
.doctor-card-premium,
.testimonial-grid figure,
.premium-gallery figure,
.blog-grid-premium article,
.contact-card {
  border-radius: var(--card-radius);
  box-shadow: var(--premium-shadow);
}

.service-card img {
  aspect-ratio: 16 / 8;
  max-height: 210px;
}

.service-card div,
.doctor-card-premium div,
.blog-grid-premium div,
.premium-gallery figcaption {
  padding: 20px;
}

.service-card a {
  align-items: center;
  gap: 6px;
}

.service-card a::after {
  content: "";
}

.why-grid article {
  display: grid;
  gap: 10px;
}

.why-icon,
.tech-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--teal);
  background: #e8f6f4;
}

.why-icon::before,
.tech-icon::before {
  font-size: 22px;
  line-height: 1;
}

.why-icon.doctor::before { content: "+"; font-weight: 950; }
.why-icon.diagnostic::before { content: "◉"; }
.why-icon.heart::before { content: "♡"; font-weight: 950; }
.why-icon.plan::before { content: "✓"; font-weight: 950; }
.tech-icon.scope::before { content: "◌"; font-weight: 950; }
.tech-icon.retina::before { content: "◉"; }
.tech-icon.vision::before { content: "⌁"; font-weight: 950; }

.demo-badge,
.doctor-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--teal);
  background: #e8f6f4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.doctor-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  margin: 12px 0;
  color: #52657a;
  font-size: 14px;
}

.doctor-meta dt {
  font-weight: 900;
}

.doctor-meta dd {
  margin: 0;
}

.doctor-expertise {
  color: #52657a;
  font-size: 14px;
}

.doctor-expertise span {
  color: #1b2a41;
  font-weight: 900;
}

.doctor-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.tech-list article {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.tech-list article > span:not(.tech-icon) {
  grid-column: 2;
}

.section-note {
  max-width: 760px;
  padding: 10px 12px;
  border: 1px solid #d8ece9;
  border-radius: 12px;
  color: #52657a !important;
  background: #f6fbfa;
  font-size: 14px !important;
  font-weight: 800;
}

.testimonial-grid blockquote::before {
  content: "“";
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 0;
  vertical-align: -18px;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.premium-gallery figcaption {
  display: grid;
  gap: 5px;
}

.premium-gallery span,
.premium-gallery strong {
  display: block;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(10, 24, 40, .86);
  backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox__dialog {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  justify-items: center;
  outline: none;
}

.gallery-lightbox figure {
  width: min(1040px, 100%);
  margin: 0;
}

.gallery-lightbox img {
  display: block;
  width: 100%;
  max-height: min(74vh, 760px);
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 26px 90px rgba(0,0,0,.36);
}

.gallery-lightbox figcaption {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 16px auto 0;
  color: #fff;
  text-align: center;
}

.gallery-lightbox__category {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-lightbox figcaption strong {
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

.gallery-lightbox__counter {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: -6px;
  right: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 28px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.14);
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
  cursor: pointer;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  transition: background var(--site-ease), transform var(--site-ease), border-color var(--site-ease);
}

.lightbox-prev {
  left: -74px;
}

.lightbox-next {
  right: -74px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.22);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid rgba(255,255,255,.72);
  outline-offset: 3px;
}

.premium-faq summary {
  position: relative;
  padding-right: 54px;
  list-style: none;
}

.premium-faq summary::-webkit-details-marker {
  display: none;
}

.premium-faq summary::after {
  content: "⌄";
  position: absolute;
  right: 20px;
  top: 18px;
  color: var(--teal);
  font-size: 24px;
  transition: transform .18s ease;
}

.premium-faq details[open] summary::after {
  transform: rotate(180deg);
}

.map-preview {
  position: relative;
  min-height: 112px;
  margin-top: 20px;
  padding: 18px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(15,118,110,.12) 1px, transparent 1px),
    linear-gradient(rgba(15,118,110,.12) 1px, transparent 1px),
    #eef8f7;
  background-size: 28px 28px;
}

.map-preview span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 6px solid var(--brand);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-preview strong,
.map-preview small {
  position: relative;
  display: block;
}

.map-preview small {
  color: #52657a;
  font-weight: 800;
}

.footer-brand .brand-mark {
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(217,151,53,.75);
  outline-offset: 4px;
}

@media (max-width: 1320px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1220px) {
  .hospital-header {
    gap: clamp(12px, 1.4vw, 18px);
  }

  .header-accreditation {
    gap: 9px;
    padding-inline: 10px;
  }

  .header-accreditation .accreditation-copy {
    max-width: 92px;
    line-height: 1.05;
  }

  .header-accreditation .accreditation-copy span {
    white-space: normal;
  }
}

@media (max-width: 1120px) {
  .hospital-header {
    grid-template-columns: 1fr auto auto;
  }

  .mobile-nav-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1;
  }

  .hospital-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--hospital-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(16,32,51,.12);
  }

  .hospital-header.nav-open .hospital-nav {
    display: flex;
  }

  .header-accreditation {
    grid-column: 3;
    grid-row: 1;
  }

  .hospital-cta {
    display: none;
  }
}

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

@media (max-width: 680px) {
  .hospital-header {
    grid-template-columns: 1fr auto;
    min-height: 74px;
  }

  .brand-mark {
    width: 58px;
    height: 38px;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-accreditation {
    display: none;
  }

  .hospital-hero {
    padding-top: 30px;
  }

  .hero-content h1 {
    max-width: 360px;
    font-size: 38px;
  }

  .hero-photo {
    min-height: 250px;
  }

  .trust-band {
    margin-top: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card img {
    max-height: 190px;
  }

  .section-copy h2,
  .section-heading h2,
  .appointment-copy h2 {
    font-size: 31px;
    max-width: 100%;
  }

  .gallery-lightbox {
    padding: 18px;
  }
}

/* Final public-site polish: keep generated symbols ASCII-safe and consistent. */
.why-icon::before,
.tech-icon::before {
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.why-icon.doctor::before { content: "DR"; }
.why-icon.diagnostic::before { content: "DX"; }
.why-icon.heart::before { content: "PT"; }
.why-icon.plan::before { content: "OK"; }
.tech-icon.scope::before { content: "SL"; }
.tech-icon.retina::before { content: "RI"; }
.tech-icon.vision::before { content: "VT"; }

.testimonial-grid blockquote::before {
  content: open-quote;
}

.premium-faq summary::after {
  content: "";
  right: 23px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-60%) rotate(45deg);
}

.premium-faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

/* Platform-level public card polish. */
.hospital-section {
  padding-top: var(--site-section-y);
  padding-bottom: var(--site-section-y);
}

.section-heading {
  margin-bottom: clamp(30px, 3.4vw, 44px);
}

.service-grid,
.doctor-grid,
.testimonial-grid,
.blog-grid-premium,
.equipment-grid,
.premium-gallery,
.why-grid {
  gap: var(--site-card-gap);
}

.service-card,
.doctor-card-premium,
.equipment-card,
.testimonial-grid figure,
.premium-gallery figure,
.blog-grid-premium article,
.why-grid article {
  position: relative;
  height: 100%;
  border-radius: var(--card-radius);
  box-shadow: var(--site-card-shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.service-card,
.doctor-card-premium,
.equipment-card,
.premium-gallery figure,
.blog-grid-premium article {
  display: flex;
  flex-direction: column;
}

.service-card img,
.doctor-card-premium img,
.equipment-card > img,
.premium-gallery img,
.blog-grid-premium img,
.section-image img,
.hero-photo {
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.58), rgba(255,255,255,0)),
    var(--site-image-bg);
  background-size: 220% 100%, 100% 100%;
  object-fit: cover;
}

.hospital-site img,
.blog-public-page img,
.article-public-page img {
  color: transparent;
}

.hospital-site img[loading="lazy"],
.blog-public-page img[loading="lazy"],
.article-public-page img[loading="lazy"] {
  animation: public-image-skeleton 1.15s ease-in-out infinite;
}

.hospital-site img[src],
.blog-public-page img[src],
.article-public-page img[src] {
  border: 0;
}

@keyframes public-image-skeleton {
  0% { background-position: 140% 0, 0 0; }
  100% { background-position: -140% 0, 0 0; }
}

.service-card img,
.doctor-card-premium img,
.equipment-card > img,
.premium-gallery img,
.blog-grid-premium img {
  transition: transform .18s ease;
}

.service-card:hover,
.service-card:focus-within,
.why-grid article:hover,
.why-grid article:focus-within,
.doctor-card-premium:hover,
.doctor-card-premium:focus-within,
.equipment-card:hover,
.equipment-card:focus-within,
.testimonial-grid figure:hover,
.testimonial-grid figure:focus-within,
.premium-gallery figure:hover,
.premium-gallery figure:focus-within,
.blog-grid-premium article:hover,
.blog-grid-premium article:focus-within {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, .34);
  box-shadow: var(--site-card-shadow-hover);
}

.service-card:hover img,
.service-card:focus-within img,
.doctor-card-premium:hover img,
.doctor-card-premium:focus-within img,
.equipment-card:hover > img,
.equipment-card:focus-within > img,
.premium-gallery figure:hover img,
.premium-gallery figure:focus-within img,
.blog-grid-premium article:hover img,
.blog-grid-premium article:focus-within img {
  transform: scale(1.025);
}

.service-card div,
.doctor-card-premium div,
.equipment-card > div,
.blog-grid-premium div,
.premium-gallery figcaption {
  padding: var(--site-card-padding);
}

.service-card div,
.doctor-card-premium div,
.equipment-card > div,
.blog-grid-premium div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.service-card img {
  aspect-ratio: 16 / 10;
  min-height: 176px;
}

.service-card h3,
.doctor-card-premium h3,
.equipment-card h3,
.blog-grid-premium h3,
.premium-gallery strong {
  line-height: 1.18;
}

.service-card p,
.doctor-card-premium p,
.equipment-card p,
.blog-grid-premium p {
  line-height: 1.62;
}

.service-card a,
.doctor-action,
.blog-grid-premium .section-link {
  margin-top: auto;
  padding-top: 16px;
}

.doctor-card-premium img {
  aspect-ratio: 4 / 5.2;
  min-height: 330px;
}

.doctor-card-premium h3 {
  margin-bottom: 6px;
  font-size: clamp(23px, 2vw, 29px);
}

.doctor-card-premium .doctor-designation {
  margin-bottom: 8px;
  color: var(--brand);
  line-height: 1.3;
}

.doctor-meta {
  width: 100%;
  gap: 5px 12px;
  margin: 14px 0 12px;
}

.doctor-action {
  display: inline-flex;
}

.equipment-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,0) 36%),
    var(--hospital-surface);
}

.equipment-card {
  border-top: 4px solid rgba(15,118,110,.32);
}

.equipment-card > img {
  aspect-ratio: 16 / 10.5;
  min-height: 210px;
}

.equipment-card h3 {
  font-size: clamp(21px, 1.9vw, 27px);
}

.equipment-card .tech-icon {
  margin-bottom: 2px;
}

.testimonial-grid figure {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px);
}

.testimonial-grid blockquote {
  position: relative;
  flex: 1;
  padding-top: 22px;
  color: #243145;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.62;
}

.testimonial-grid blockquote::before {
  position: absolute;
  left: 0;
  top: -7px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 1;
  opacity: .75;
}

.testimonial-grid figcaption {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(219,231,232,.8);
}

.testimonial-grid figcaption strong {
  color: var(--navy);
  font-size: 16px;
}

.testimonial-grid figcaption span {
  color: var(--brand);
  font-size: 13px;
}

.blog-grid-premium img {
  aspect-ratio: 16 / 10;
  min-height: 210px;
}

.blog-grid-premium h3 {
  font-size: clamp(22px, 1.9vw, 27px);
}

.blog-grid-premium h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-grid-premium h3 a:hover,
.blog-grid-premium h3 a:focus-visible {
  color: var(--teal);
}

.blog-grid-premium small {
  margin-bottom: 12px;
  color: #6a7a8d;
  font-weight: 800;
  line-height: 1.45;
}

.premium-gallery figure {
  min-height: 100%;
}

.premium-gallery img {
  aspect-ratio: 4 / 3.15;
}

.premium-gallery figure:first-child img {
  aspect-ratio: 4 / 4.5;
}

.premium-gallery figcaption {
  min-height: 88px;
}

.gallery-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .doctor-card-premium,
  .equipment-card,
  .testimonial-grid figure,
  .premium-gallery figure,
  .blog-grid-premium article,
  .why-grid article,
  .service-card img,
  .doctor-card-premium img,
  .equipment-card > img,
  .premium-gallery img,
  .blog-grid-premium img,
  .hospital-site img[loading="lazy"],
  .blog-public-page img[loading="lazy"],
  .article-public-page img[loading="lazy"] {
    transition: none;
    animation: none;
  }

  .service-card:hover,
  .service-card:focus-within,
  .why-grid article:hover,
  .why-grid article:focus-within,
  .doctor-card-premium:hover,
  .doctor-card-premium:focus-within,
  .equipment-card:hover,
  .equipment-card:focus-within,
  .testimonial-grid figure:hover,
  .testimonial-grid figure:focus-within,
  .premium-gallery figure:hover,
  .premium-gallery figure:focus-within,
  .blog-grid-premium article:hover,
  .blog-grid-premium article:focus-within,
  .service-card:hover img,
  .service-card:focus-within img,
  .doctor-card-premium:hover img,
  .doctor-card-premium:focus-within img,
  .equipment-card:hover > img,
  .equipment-card:focus-within > img,
  .premium-gallery figure:hover img,
  .premium-gallery figure:focus-within img,
  .blog-grid-premium article:hover img,
  .blog-grid-premium article:focus-within img {
    transform: none;
  }
}

@media (max-width: 900px) {
  .service-card img,
  .equipment-card > img,
  .blog-grid-premium img {
    min-height: 190px;
  }

  .doctor-card-premium img {
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .hospital-site {
    --site-section-y: 54px;
    --site-card-padding: 20px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .service-card img,
  .equipment-card > img,
  .blog-grid-premium img {
    min-height: 184px;
  }

  .doctor-card-premium img {
    min-height: 340px;
  }

  .testimonial-grid figure {
    min-height: 0;
  }
}

/* Shared public website rhythm and footer polish. */
.hospital-site {
  --site-section-y: clamp(40px, 4.8vw, 68px);
  --site-section-y-tight: clamp(34px, 4vw, 56px);
  --site-container-x: clamp(20px, 5vw, 72px);
  --site-heading-gap: clamp(22px, 2.8vw, 34px);
  --site-card-gap: clamp(16px, 1.8vw, 22px);
  --site-card-padding: clamp(18px, 1.8vw, 24px);
  --footer-bg: #102033;
  --footer-bg-deep: #0b1726;
}

.hospital-section {
  padding-top: var(--site-section-y);
  padding-bottom: var(--site-section-y);
}

.hospital-section.surface-section {
  padding-top: var(--site-section-y-tight);
  padding-bottom: var(--site-section-y-tight);
}

.section-heading {
  margin-bottom: var(--site-heading-gap);
}

.section-heading p {
  margin-top: 8px;
}

.hospital-hero {
  min-height: clamp(540px, 61vw, 620px);
  padding-top: clamp(34px, 4.2vw, 58px);
  padding-bottom: clamp(36px, 4.5vw, 60px);
}

.split-section {
  gap: clamp(28px, 4vw, 56px);
}

.service-grid,
.doctor-grid,
.testimonial-grid,
.blog-grid-premium,
.equipment-grid,
.premium-gallery,
.why-grid {
  gap: var(--site-card-gap);
}

.service-card div,
.doctor-card-premium div,
.equipment-card > div,
.blog-grid-premium div,
.premium-gallery figcaption {
  padding: var(--site-card-padding);
}

.appointment-section {
  grid-template-columns: minmax(0, .95fr) minmax(340px, 500px);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 0;
  padding: clamp(46px, 5vw, 72px) var(--site-container-x) clamp(44px, 4.8vw, 68px);
  background:
    radial-gradient(circle at 14% 8%, rgba(217,151,53,.24), transparent 28%),
    linear-gradient(145deg, var(--brand), #321426 58%, var(--footer-bg));
}

.appointment-section > * {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.appointment-copy {
  max-width: 620px;
}

.contact-actions {
  margin-top: clamp(20px, 2.4vw, 30px);
}

.contact-card {
  padding: clamp(24px, 2.5vw, 32px);
}

.contact-card dl {
  gap: 10px;
}

.office-map-embed {
  min-height: 0;
  height: clamp(190px, 17vw, 235px);
}

.map-preview {
  min-height: 128px;
}

.hospital-footer {
  max-width: none;
  margin: 0;
  padding: 0;
  color: #dfe9ee;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 120px),
    linear-gradient(180deg, var(--footer-bg), var(--footer-bg-deep));
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(140px, .7fr) minmax(160px, .8fr) minmax(220px, 1fr);
  gap: clamp(26px, 4vw, 58px);
  max-width: var(--section-max);
  margin: 0 auto;
  padding: clamp(42px, 5vw, 70px) var(--site-container-x) clamp(30px, 3.6vw, 46px);
}

.footer-about,
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-about {
  gap: 18px;
}

.footer-about p {
  max-width: 520px;
  margin: 0;
  color: #bdd0dc;
  line-height: 1.7;
}

.footer-brand .brand-name,
.footer-brand {
  color: #fff;
}

.footer-links,
.footer-contact {
  gap: 11px;
}

.footer-links h2,
.footer-contact h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links a,
.footer-contact a,
.footer-contact address {
  color: #c9d7e2;
  font-size: 15px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.55;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: rgba(255,255,255,.36);
  background: rgba(255,255,255,.14);
}

.footer-bottom {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 18px var(--site-container-x) 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #92a6b5;
  font-size: 13px;
  font-weight: 700;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: #b9c8d4;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .appointment-section {
    grid-template-columns: 1fr;
  }

  .appointment-copy {
    max-width: 760px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr);
  }
}

@media (max-width: 680px) {
  .hospital-site {
    --site-section-y: 42px;
    --site-section-y-tight: 36px;
    --site-card-padding: 18px;
  }

  .hospital-hero {
    padding-top: 30px;
    padding-bottom: 36px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .appointment-section {
    padding: 42px 18px 44px;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .office-map-embed {
    height: 190px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 38px 18px 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 18px 88px;
  }
}

/* Final shared public website refinement. */
.hospital-site {
  --site-gap-sm: clamp(12px, 1.2vw, 16px);
  --site-gap-md: clamp(20px, 2vw, 24px);
  --site-gap-lg: clamp(32px, 3.4vw, 40px);
  --site-section-y: clamp(38px, 4.4vw, 64px);
  --site-section-y-tight: clamp(34px, 3.7vw, 54px);
  --site-card-gap: clamp(16px, 1.8vw, 22px);
  --site-card-padding: clamp(20px, 1.9vw, 25px);
  --site-ease: 180ms ease;
}

.hospital-hero {
  min-height: clamp(500px, 56vw, 575px);
  padding-top: clamp(30px, 3.7vw, 50px);
  padding-bottom: clamp(32px, 3.8vw, 52px);
}

.hero-photo {
  min-height: clamp(340px, 33vw, 390px);
  max-height: 540px;
}

.hero-content h1 {
  line-height: .98;
}

.hero-actions,
.contact-actions {
  gap: var(--site-gap-sm);
}

.hospital-section {
  padding-top: var(--site-section-y);
  padding-bottom: var(--site-section-y);
}

.hospital-section.surface-section {
  padding-top: var(--site-section-y-tight);
  padding-bottom: var(--site-section-y-tight);
}

.section-heading {
  margin-bottom: var(--site-gap-lg);
}

.equipment-heading {
  margin-bottom: calc(var(--site-gap-lg) + 10px);
}

.service-card,
.doctor-card-premium,
.equipment-card,
.testimonial-grid figure,
.premium-gallery figure,
.blog-grid-premium article,
.why-grid article {
  min-width: 0;
}

.service-card img,
.equipment-card > img,
.blog-grid-premium img,
.premium-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service-card img {
  aspect-ratio: 16 / 9.5;
  min-height: 170px;
  max-height: 205px;
}

.service-card div {
  gap: 8px;
}

.service-card h3,
.equipment-card h3,
.blog-grid-premium h3 {
  min-height: 2.36em;
}

.service-card p,
.doctor-card-premium p,
.equipment-card p,
.blog-grid-premium p {
  line-height: 1.58;
}

.service-card a,
.doctor-action,
.blog-grid-premium .section-link,
.secondary-link,
.map-link {
  transition: color var(--site-ease), transform var(--site-ease), text-decoration-color var(--site-ease);
}

.service-card a:hover,
.service-card a:focus-visible,
.doctor-action:hover,
.doctor-action:focus-visible,
.blog-grid-premium .section-link:hover,
.blog-grid-premium .section-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible,
.map-link:hover,
.map-link:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.doctor-card-premium img {
  aspect-ratio: 4 / 4.75;
  min-height: clamp(280px, 28vw, 315px);
}

.doctor-card-premium div {
  gap: 8px;
}

.doctor-card-premium h3 {
  margin-bottom: 2px;
}

.doctor-card-premium .doctor-designation {
  margin-bottom: 4px;
}

.doctor-meta {
  margin: 10px 0;
}

.equipment-grid {
  align-items: stretch;
}

.equipment-card > img {
  aspect-ratio: 16 / 10;
  min-height: 190px;
}

.equipment-card > div {
  gap: 11px;
}

.testimonial-grid figure {
  min-height: 210px;
  padding: clamp(24px, 2.4vw, 34px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
    radial-gradient(circle at 16px 18px, rgba(217,151,53,.18), transparent 130px);
}

.testimonial-grid blockquote {
  padding-top: 26px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.62;
}

.testimonial-grid blockquote::before {
  left: 0;
  top: -2px;
  color: var(--gold);
  font-size: 52px;
  opacity: .55;
}

.testimonial-grid figcaption {
  margin-top: var(--site-gap-md);
}

.testimonial-grid figcaption strong {
  font-size: 16px;
}

.testimonial-grid figcaption span:empty {
  display: none;
}

.premium-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.premium-gallery figure,
.premium-gallery figure:first-child {
  grid-row: auto;
}

.premium-gallery img,
.premium-gallery figure:first-child img {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.premium-gallery figcaption {
  min-height: 82px;
}

.gallery-open {
  overflow: hidden;
}

.premium-faq {
  display: grid;
  gap: 12px;
}

.premium-faq details {
  overflow: hidden;
  border: 1px solid var(--hospital-line);
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(16,32,51,.045);
  transition: border-color var(--site-ease), box-shadow var(--site-ease), background var(--site-ease);
}

.premium-faq details:hover,
.premium-faq details:focus-within,
.premium-faq details[open] {
  border-color: rgba(15,118,110,.28);
  background: #fff;
  box-shadow: 0 18px 44px rgba(16,32,51,.07);
}

.premium-faq summary {
  padding: 18px 58px 18px 22px;
  cursor: pointer;
}

.premium-faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: #52657a;
  line-height: 1.65;
}

.premium-faq summary::after {
  transition: transform var(--site-ease), border-color var(--site-ease);
}

.blog-grid-premium img {
  aspect-ratio: 16 / 9.5;
  min-height: 190px;
}

.blog-grid-premium div {
  gap: 8px;
}

.blog-grid-premium h3 {
  min-height: 2.36em;
}

.blog-grid-premium p {
  line-height: 1.6;
}

.appointment-section {
  grid-template-columns: minmax(0, .9fr) minmax(380px, 540px);
  gap: clamp(38px, 5vw, 72px);
  padding-top: clamp(54px, 5.2vw, 80px);
  padding-bottom: clamp(48px, 4.6vw, 72px);
}

.appointment-copy h2 {
  max-width: 620px;
}

.contact-card {
  display: grid;
  gap: var(--site-gap-md);
}

.contact-card h3 {
  margin-bottom: 0;
}

.contact-card dl {
  gap: 11px 18px;
}

.contact-card dd,
.contact-card dt {
  overflow-wrap: anywhere;
}

.map-link {
  margin-top: 0;
}

.office-map-embed {
  height: clamp(220px, 20vw, 280px);
  margin-top: 0;
}

.location-tablist {
  display: flex;
  gap: 8px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--hospital-line);
  border-radius: 16px;
  background: #f5fbfb;
  scrollbar-width: none;
}

.location-tablist::-webkit-scrollbar {
  display: none;
}

.location-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #52657a;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--site-ease), background-color var(--site-ease), border-color var(--site-ease), box-shadow var(--site-ease);
}

.location-tab:hover,
.location-tab:focus-visible {
  color: var(--teal);
  background: #fff;
}

.location-tab:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .25);
  outline-offset: 2px;
}

.location-tab.active {
  color: var(--teal);
  border-color: rgba(15,118,110,.2);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16,32,51,.08);
}

.location-panels {
  min-width: 0;
}

.location-panel {
  display: grid;
  gap: var(--site-gap-md);
}

.location-panel[hidden] {
  display: none;
}

.location-panel h4 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
}

.office-map-shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #eef8f7;
}

.office-map-shell .office-map-embed {
  display: block;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(238,248,247,.86);
  font-weight: 900;
}

.map-loading[hidden] {
  display: none;
}

.map-unavailable {
  margin: 0;
  padding: 16px;
  border: 1px dashed #bcd4d2;
  border-radius: 14px;
  color: #52657a;
  background: #f6fbfa;
  font-weight: 800;
  line-height: 1.5;
}

.hospital-footer {
  border-top: 1px solid rgba(255,255,255,.11);
}

.footer-main {
  align-items: start;
  column-gap: clamp(44px, 7vw, 112px);
  row-gap: 34px;
  padding-top: clamp(56px, 5.4vw, 86px);
  padding-bottom: clamp(32px, 3.4vw, 48px);
}

.footer-brand {
  align-items: center;
}

.footer-about {
  gap: var(--site-gap-md);
}

.footer-links,
.footer-contact {
  gap: 15px;
}

.footer-links h2,
.footer-contact h2 {
  margin-bottom: 12px;
}

.footer-view-all {
  margin-top: 4px;
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.footer-contact address,
.footer-contact a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.footer-contact-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin-top: 1px;
  border-radius: 7px;
  color: #d9f7f4;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.footer-contact-icon.location::before { content: "\1F4CD"; }
.footer-contact-icon.phone::before { content: "\260E"; }
.footer-contact-icon.whatsapp::before { content: "W"; }
.footer-contact-icon.email::before { content: "\2709"; }
.footer-contact-icon.map::before { content: "\2197"; }
.footer-contact-icon.branches::before { content: "\25A6"; }

.footer-bottom {
  color: #a9bac7;
  line-height: 1.5;
  background: rgba(3, 10, 20, .22);
}

.footer-powered {
  color: #7f95a6;
  font-size: 12px;
  font-weight: 700;
}

.settings-fieldset {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #d6e4f2;
  border-radius: 18px;
  background: #f8fbff;
}

.settings-fieldset > div:first-child p:last-child {
  margin: 4px 0 0;
  color: #52657a;
  font-size: 14px;
  line-height: 1.5;
}

.settings-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.btn,
.hospital-cta,
.mobile-sticky-appointment {
  transition: transform var(--site-ease), box-shadow var(--site-ease), background-color var(--site-ease), color var(--site-ease), border-color var(--site-ease);
}

.btn:hover,
.btn:focus-visible,
.hospital-cta:hover,
.hospital-cta:focus-visible,
.mobile-sticky-appointment:hover,
.mobile-sticky-appointment:focus-visible {
  transform: translateY(-1px);
}

.btn:active,
.hospital-cta:active,
.mobile-sticky-appointment:active {
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hospital-hero {
    min-height: auto;
  }

  .hero-photo {
    min-height: 330px;
  }

  .premium-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }

  .appointment-section {
    grid-template-columns: 1fr;
  }

  .office-map-embed {
    height: clamp(220px, 34vw, 320px);
  }
}

@media (max-width: 680px) {
  .hospital-site {
    --site-section-y: 40px;
    --site-section-y-tight: 36px;
    --site-card-gap: 15px;
    --site-card-padding: 18px;
  }

  .hospital-hero {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero-content h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .hero-photo {
    min-height: 245px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .service-card h3,
  .equipment-card h3,
  .blog-grid-premium h3 {
    min-height: 0;
  }

  .service-card img,
  .equipment-card > img,
  .blog-grid-premium img {
    min-height: 168px;
  }

  .doctor-card-premium img {
    min-height: 285px;
  }

  .premium-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-lightbox img {
    max-height: 68vh;
    border-radius: 14px;
  }

  .gallery-lightbox figcaption {
    margin-top: 12px;
  }

  .lightbox-close {
    top: 0;
    right: 0;
  }

  .lightbox-nav {
    top: auto;
    bottom: 72px;
    width: 44px;
    height: 44px;
    font-size: 30px;
    transform: none;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .premium-gallery figcaption {
    min-height: 0;
  }

  .premium-faq summary {
    padding: 16px 50px 16px 18px;
  }

  .premium-faq details p {
    padding: 0 18px 18px;
  }

  .appointment-section {
    gap: 28px;
    padding-top: 44px;
    padding-bottom: 42px;
  }

  .contact-card {
    padding: 22px;
  }

  .location-tablist {
    margin-right: -4px;
    margin-left: -4px;
  }

  .location-tab {
    min-height: 40px;
    padding: 9px 13px;
  }

  .office-map-embed {
    height: 220px;
  }

  .footer-main {
    gap: 28px;
    padding-top: 48px;
  }

  .settings-two-column {
    grid-template-columns: 1fr;
  }
}

/* Final compact public-section rhythm. */
.hospital-site {
  --public-header-height: 106px;
  --site-section-y: clamp(32px, 3.7vw, 52px);
  --site-section-y-tight: clamp(28px, 3.1vw, 44px);
  --site-gap-lg: clamp(24px, 2.5vw, 32px);
  padding-top: 0;
  overflow-x: visible;
}

.hospital-site [id] {
  scroll-margin-top: calc(var(--public-header-height) + 16px);
}

.hospital-header {
  position: sticky;
  right: 0;
  left: 0;
  top: 0;
  z-index: 120;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(219,231,232,.92);
  box-shadow: 0 12px 30px rgba(16,32,51,.06);
  backdrop-filter: blur(14px);
}

.hospital-section {
  padding-top: var(--site-section-y);
  padding-bottom: var(--site-section-y);
}

.hospital-section.surface-section {
  padding-top: var(--site-section-y-tight);
  padding-bottom: var(--site-section-y-tight);
}

.hospital-section + .hospital-section {
  padding-top: clamp(28px, 3vw, 44px);
}

.section-heading {
  margin-bottom: var(--site-gap-lg);
}

.equipment-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .8fr);
  gap: 8px clamp(36px, 5vw, 76px);
  align-items: center;
  margin-bottom: clamp(20px, 2.1vw, 28px);
}

.equipment-heading .section-kicker {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.equipment-heading h2 {
  grid-column: 1;
  grid-row: 2;
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 3.5vw, 52px);
}

.equipment-heading > p:not(.section-kicker) {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 430px;
  margin: 0;
  align-self: center;
}

@media (max-width: 680px) {
  :root {
    --public-header-height: 82px;
  }

  .hospital-site {
    --public-header-height: 82px;
    --site-section-y: 34px;
    --site-section-y-tight: 30px;
    --site-gap-lg: 22px;
  }

  .hospital-site [id] {
    scroll-margin-top: calc(var(--public-header-height) + 12px);
  }

  .hospital-section + .hospital-section {
    padding-top: 30px;
  }

  .equipment-heading {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 22px;
  }

  .equipment-heading .section-kicker,
  .equipment-heading h2,
  .equipment-heading > p:not(.section-kicker) {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }
}

/* Appointment-to-footer closing area refinement. */
.appointment-section {
  display: block;
  padding: clamp(48px, 5vw, 64px) var(--site-container-x);
}

.appointment-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(56px, 6vw, 82px);
  align-items: center;
  width: min(100%, 1240px);
  max-width: 1240px;
  margin: 0 auto;
}

.appointment-copy {
  max-width: 620px;
}

.appointment-copy h2 {
  font-size: clamp(36px, 4.2vw, 58px);
}

.appointment-copy p {
  max-width: 560px;
}

.appointment-section .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: clamp(22px, 2.4vw, 30px);
}

.appointment-section .contact-actions .btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  line-height: 1;
}

.appointment-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 620px;
  margin-top: 22px;
}

.appointment-trust span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.08);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.appointment-section .contact-card {
  width: 100%;
  padding: clamp(22px, 2.2vw, 28px);
}

.appointment-section .contact-card h3 {
  font-size: clamp(24px, 2.1vw, 30px);
}

.appointment-section .location-panel {
  gap: 14px;
}

.appointment-section .location-panel h4 {
  font-size: clamp(18px, 1.6vw, 22px);
}

.appointment-section .contact-card dl {
  gap: 9px 16px;
}

.appointment-section .office-map-embed {
  height: clamp(180px, 16vw, 215px);
}

.doctor-card-premium img {
  aspect-ratio: 4 / 4.4;
}

.doctor-card-premium h3,
.doctor-card-premium p,
.service-card h3,
.service-card p,
.equipment-card h3,
.equipment-card p,
.blog-grid-premium h3,
.blog-grid-premium p,
.appointment-copy h2,
.appointment-copy p {
  overflow-wrap: break-word;
}

.hospital-footer {
  display: block;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 120px),
    #102033;
}

.footer-main {
  box-sizing: border-box;
  grid-template-columns: minmax(280px, 1.4fr) minmax(140px, max-content) minmax(180px, max-content) minmax(280px, 1fr);
  gap: clamp(48px, 5.6vw, 84px);
  justify-content: start;
  width: min(100%, 1280px);
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding: clamp(60px, 5.4vw, 72px) clamp(40px, 4.4vw, 56px) clamp(42px, 4vw, 48px);
}

.footer-about,
.footer-links,
.footer-contact {
  min-width: 0;
}

.footer-links {
  align-items: flex-start;
  justify-self: start;
  gap: 16px;
  text-align: left;
}

.footer-contact {
  justify-self: start;
}

.footer-links a {
  align-self: flex-start;
  font-weight: 720;
  text-align: left;
  overflow-wrap: break-word;
}

.footer-brand .brand-mark {
  width: clamp(70px, 6vw, 88px);
  height: clamp(46px, 4vw, 58px);
}

.footer-brand .brand-name {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
}

.footer-about p {
  max-width: 360px;
  font-size: 17px;
  line-height: 1.78;
}

.footer-links h2,
.footer-contact h2 {
  width: auto;
  align-self: flex-start;
  font-size: 15px;
  letter-spacing: .09em;
  text-align: left;
}

.footer-links a,
.footer-contact a,
.footer-contact address,
.footer-hours,
.footer-office-name {
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: break-word;
}

.footer-links a,
.footer-contact a,
.footer-bottom a {
  transition: color var(--site-ease), text-decoration-color var(--site-ease), opacity var(--site-ease);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.footer-office-name {
  display: block;
  color: #fff;
  font-weight: 850;
}

.footer-hours {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  color: #c9d7e2;
  font-weight: 680;
}

.footer-contact-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  font-size: 12px;
}

.footer-contact {
  gap: 14px;
}

.footer-contact a,
.footer-contact address {
  font-weight: 680;
}

.footer-contact-icon.hours::before {
  content: "H";
}

.footer-bottom {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  background: #0b1726;
}

.footer-bottom-inner {
  box-sizing: border-box;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 20px clamp(40px, 5vw, 56px);
  color: #a9bac7;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1120px) {
  .appointment-inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 42px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    gap: 42px 56px;
  }
}

@media (max-width: 820px) {
  .appointment-inner {
    grid-template-columns: 1fr;
  }

  .appointment-copy {
    max-width: 720px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding-right: 24px;
    padding-left: 24px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .hospital-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .appointment-section {
    padding: 40px 18px;
  }

  .appointment-inner {
    gap: 24px;
  }

  .appointment-section .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .appointment-section .contact-actions .btn {
    width: 100%;
  }

  .appointment-section .office-map-embed {
    height: 205px;
  }

  .doctor-card-premium img {
    aspect-ratio: 4 / 4.15;
  }

  .footer-main {
    gap: 34px;
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .footer-bottom-inner {
    padding-bottom: 88px;
  }
}

/* Reception-friendly website editor */
.visual-editor-shell {
  background: #eef5fb;
}

.visual-editor-shell .admin-panel {
  padding-bottom: 140px;
}

.editor-intro {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.setup-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 300px;
  padding: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #f8fbff;
}

.setup-checklist strong {
  grid-column: 1 / -1;
}

.setup-checklist span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #24566f;
  background: #e8f6ff;
  font-size: 12px;
  font-weight: 900;
}

.setup-checklist small {
  grid-column: 1 / -1;
  color: var(--admin-muted, #64748b);
  font-weight: 850;
}

.setup-checklist button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  background: #fff;
  color: #243145;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.setup-checklist button.done {
  color: #047857;
  border-color: #b6eee3;
  background: #ecfdf8;
}

.setup-checklist button.todo {
  color: #64748b;
  background: #f8fbff;
}

.setup-progress {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #e2edf7 !important;
}

.setup-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3478f6;
}

.editor-workspace {
  display: grid;
  grid-template-columns: 280px minmax(460px, 1fr) minmax(340px, 420px);
  gap: 18px;
  align-items: start;
}

.section-navigator,
.section-edit-panel,
.live-preview-panel {
  border: 1px solid #dbe7f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31,54,86,.06);
}

.section-navigator,
.live-preview-panel {
  position: sticky;
  top: 152px;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.section-navigator {
  padding: 14px;
}

.section-navigator-head,
.preview-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-navigator-head strong,
.preview-panel-head strong {
  display: block;
  color: #172033;
}

.section-navigator-head span,
.preview-panel-head span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.section-nav-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  align-items: center;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #e1ebf5;
  border-radius: 16px;
  color: #172033;
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
}

.section-card-select {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.section-card-select.has-thumb {
  grid-template-columns: 34px 44px minmax(0, 1fr);
}

.section-card-thumb {
  width: 44px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.section-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #0f766e;
  background: #e8f6f4;
  font-size: 13px;
  font-weight: 950;
}

.section-card-copy {
  min-width: 0;
}

.section-card-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.section-card-meta em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #475569;
  background: #eef2f7;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.section-card-meta em:first-child {
  color: #075e54;
  background: #dff8f2;
}

.section-nav-card.active .section-card-meta em:first-child,
.section-nav-card:hover .section-card-meta em:first-child {
  color: #075e54;
  background: #fff;
}

.section-move-menu {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.section-move-menu button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #dbe7f3;
  border-radius: 9px;
  color: #243145;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.section-nav-card.active,
.section-nav-card:hover {
  border-color: #9fc8ff;
  background: #eaf4ff;
}

.section-nav-card.dragging,
.compact-repeat-card.dragging {
  border-color: #3478f6;
  background: #eef6ff;
  box-shadow: 0 14px 34px rgba(52,120,246,.18);
}

.section-nav-card strong,
.section-nav-card small {
  display: block;
}

.section-nav-card small {
  margin-top: 3px;
  color: #64748b;
  font-weight: 800;
}

.section-nav-card em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: #e8f6f4;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.drag-handle {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: transparent;
  background:
    radial-gradient(circle, #64748b 2px, transparent 3px) 7px 7px / 8px 8px,
    #f1f5f9;
}

.section-edit-panel {
  min-height: 640px;
  overflow: hidden;
}

.focused-editor-card {
  padding: 22px;
}

.focused-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e1ebf5;
}

.focused-editor-head span,
.focused-editor-head p {
  color: #64748b;
  font-weight: 800;
}

.focused-editor-head h2 {
  margin: 5px 0 8px;
  color: #172033;
  font-size: 30px;
}

.editor-switch {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 10px;
  min-width: 230px;
  padding: 12px;
  border: 1px solid #dbe7f3;
  border-radius: 16px;
  background: #f8fbff;
  font-weight: 900;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.friendly-field span {
  color: #172033;
}

.field-help,
.field-error {
  font-size: 12px;
}

.field-help {
  color: #64748b;
}

.field-error {
  min-height: 16px;
  color: #b42318;
  font-weight: 850;
}

.friendly-field.invalid input,
.friendly-field.invalid textarea,
.friendly-field.invalid select {
  border-color: #f04438;
  background: #fff8f7;
}

.validation-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  color: #991b1b;
  background: #fff1f2;
  font-weight: 850;
}

.validation-summary:empty {
  display: none;
}

.friendly-image-control {
  grid-template-columns: 168px minmax(0, 1fr);
}

.friendly-image-control .image-actions,
.friendly-image-control p {
  grid-column: 1 / -1;
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focused-repeater {
  gap: 14px;
  margin-top: 6px;
  padding: 16px;
  border: 1px solid #e1ebf5;
  border-radius: 18px;
  background: #f8fbff;
}

.focused-repeater > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.focused-repeater > header span {
  color: #64748b;
  font-weight: 800;
}

.repeat-card-list {
  display: grid;
  gap: 14px;
}

.visual-repeat-card {
  background: #fff;
}

.repeat-head {
  grid-template-columns: auto 1fr auto;
}

.repeat-head strong {
  align-self: center;
}

.accreditation-panel {
  padding: 16px;
  border: 1px solid #d8ece9;
  border-radius: 18px;
  background: #f6fbfa;
}

.accreditation-panel h3 {
  margin: 0 0 8px;
}

.accreditation-panel p {
  color: #52657a;
}

.confirm-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 850;
}

.editor-section-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e1ebf5;
}

.editor-section-footer span {
  color: #64748b;
  font-weight: 800;
}

.live-preview-panel {
  padding: 14px;
}

.preview-panel-head {
  align-items: flex-start;
}

.preview-mode-tabs {
  flex-wrap: wrap;
}

.preview-frame {
  width: 100%;
  min-height: 620px;
  overflow: auto;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #f6fafb;
}

.preview-frame.preview-loading {
  position: relative;
}

.preview-frame.preview-loading::before {
  content: "Refreshing preview...";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #3478f6;
  background: rgba(255,255,255,.82);
  font-weight: 950;
}

.preview-frame.tablet {
  width: min(100%, 330px);
  margin-inline: auto;
}

.preview-frame.mobile {
  width: min(100%, 240px);
  margin-inline: auto;
}

.mini-site {
  width: 100%;
  min-width: 320px;
  color: #172033;
  background: #fff;
  font-size: 12px;
}

.preview-frame.mobile .mini-site {
  min-width: 220px;
  font-size: 10px;
}

.mini-site header {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #e1ebf5;
  color: #0f766e;
  font-weight: 950;
}

.mini-site section {
  padding: 16px;
}

.mini-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: linear-gradient(90deg, #fff, #eaf7f6);
}

.preview-frame.mobile .mini-hero {
  grid-template-columns: 1fr;
}

.mini-hero h1,
.mini-site h2 {
  margin: 4px 0 8px;
  color: #641419;
  font-family: Georgia, serif;
  line-height: 1.08;
}

.mini-hero img,
.mini-card-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  object-fit: cover;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-frame.mobile .mini-card-grid {
  grid-template-columns: 1fr;
}

.mini-card-grid article {
  overflow: hidden;
  border: 1px solid #e1ebf5;
  border-radius: 12px;
  background: #fff;
}

.mini-card-grid strong,
.mini-card-grid p {
  display: block;
  padding: 8px;
}

.mini-card-grid p {
  margin: 0;
  color: #64748b;
}

.mini-contact {
  color: #fff;
  background: linear-gradient(135deg, #641419, #102033);
}

.mini-contact h2 {
  color: #fff;
}

.mini-contact span,
.mini-contact strong {
  display: block;
}

.publish-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16,32,51,.58);
}

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

.publish-modal section {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(16,32,51,.28);
}

.publish-modal h2 {
  margin-top: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.undo-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: #172033;
  box-shadow: 0 18px 52px rgba(16,32,51,.24);
  font-weight: 850;
}

.undo-toast button {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-weight: 900;
}

@media (max-width: 1380px) {
  .editor-workspace {
    grid-template-columns: 250px minmax(420px, 1fr);
  }

  .live-preview-panel {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }
}

@media (max-width: 980px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .section-navigator {
    position: static;
    max-height: none;
  }

  .section-navigator #sectionNavigator {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .section-nav-card {
    margin: 0;
  }

  .focused-editor-head,
  .editor-intro {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .section-navigator #sectionNavigator,
  .repeat-fields,
  .mini-card-grid,
  .setup-checklist {
    grid-template-columns: 1fr;
  }

  .friendly-image-control,
  .image-dropzone {
    grid-template-columns: 1fr;
  }

  .image-dropzone img {
    width: 100%;
  }

  .editor-sticky-actions {
    top: 0;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.admin-hero.compact {
  margin: 28px 0 24px;
  padding: 32px;
  border: 1px solid #dbe8f6;
  border-radius: 24px;
  background: linear-gradient(115deg, #fff 0%, #f5fbff 58%, #dbeafe 100%);
}

.admin-hero.compact h1 {
  margin: 6px 0 10px;
  color: #172033;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.admin-alert {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 850;
}

.admin-alert:empty {
  display: none;
}

.admin-alert.success {
  color: #075e54;
  border: 1px solid #b6eee3;
  background: #ecfdf8;
}

.admin-alert.danger {
  color: #9f1239;
  border: 1px solid #fecdd3;
  background: #fff1f2;
}

.blog-editor-card,
.admin-card {
  margin-bottom: 24px;
}

.btn-primary {
  color: #fff;
  background: #2f73f6;
}

.btn-danger {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.error-summary {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff1f2;
}

.tenant-create-card {
  padding: 22px;
  border: 1px solid #dbe7f3;
  box-shadow: 0 16px 42px rgba(24,37,54,.06);
}

.tenant-form-grid,
.tenant-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tenant-form-grid label,
.tenant-filter-bar label {
  display: grid;
  gap: 6px;
  color: #172033;
  font-weight: 500;
  line-height: 1.35;
}

.tenant-form-grid input,
.tenant-form-grid select,
.tenant-filter-bar input,
.tenant-filter-bar select,
.tenant-suspend-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  color: #172033;
  background: #fff;
}

.tenant-form-grid .check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
}

.tenant-form-grid .check-row input {
  width: auto;
  min-height: 0;
}

.tenant-form-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.tenant-filter-bar {
  grid-template-columns: minmax(260px, 1fr) 220px auto;
  align-items: end;
  padding: 22px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #fff;
}

.tenant-list {
  display: grid;
  gap: 18px;
}

.tenant-card {
  padding: 22px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(24,37,54,.06);
}

.tenant-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.tenant-card-head h2 {
  margin: 4px 0;
  color: #172033;
  font-size: 28px;
}

.tenant-card-head p {
  margin: 0;
  color: #52657a;
  font-weight: 800;
}

.tenant-status {
  align-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #dff7f1;
  font-weight: 950;
}

.tenant-status.status-suspended,
.tenant-status.status-expired {
  color: #9f1239;
  background: #ffe4e6;
}

.tenant-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.tenant-metrics span {
  padding: 12px;
  border: 1px solid #e3edf7;
  border-radius: 14px;
  background: #f8fbff;
}

.tenant-metrics strong,
.tenant-metrics small {
  display: block;
}

.tenant-metrics small {
  margin-top: 3px;
  color: #64748b;
  font-weight: 800;
}

.tenant-warning {
  padding: 10px 12px;
  border-radius: 12px;
  color: #7c2d12;
  background: #fff7ed;
  font-weight: 850;
}

.tenant-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e3edf7;
}

.tenant-details summary {
  cursor: pointer;
  color: #0f766e;
  font-weight: 950;
}

.tenant-details form {
  margin-top: 14px;
}

.tenant-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tenant-action-row form {
  margin: 0;
}

.dev-onboarding-link {
  width: 100%;
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.tenant-suspend-form {
  display: flex;
  gap: 10px;
}

.tenant-audit {
  color: #64748b;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .tenant-form-grid,
  .tenant-filter-bar,
  .tenant-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .tenant-form-grid,
  .tenant-filter-bar,
  .tenant-metrics {
    grid-template-columns: 1fr;
  }

  .tenant-card-head {
    display: grid;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label,
.comment-form label,
.moderation-form label {
  display: grid;
  gap: 8px;
  color: #172033;
  font-weight: 500;
  line-height: 1.35;
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.comment-form input,
.comment-form textarea,
.moderation-form textarea,
.inline-filter input,
.inline-filter select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d6e3f2;
  border-radius: 12px;
  color: #172033;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.span-2 {
  grid-column: 1 / -1;
}

.large-textarea {
  min-height: 240px;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

.image-upload {
  display: grid;
  grid-template-columns: minmax(220px, .6fr) 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px dashed #b8d5f1;
  border-radius: 16px;
  background: #f7fbff;
}

.image-upload img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
}

.sticky-actions {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe8f6;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 48px rgba(16,32,51,.12);
}

.list-toolbar,
.inline-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-filter {
  justify-content: flex-end;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.admin-stat-grid article {
  padding: 18px;
  border: 1px solid #dbe8f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(16,32,51,.08);
}

.admin-stat-grid span,
.comment-private span {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.admin-stat-grid strong {
  display: block;
  margin-top: 6px;
  color: #172033;
  font-size: 28px;
  line-height: 1;
}

.editor-fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe8f6;
  border-radius: 18px;
  background: #fff;
}

.editor-fieldset legend {
  padding: 0 8px;
  color: #172033;
  font-size: 18px;
  font-weight: 700;
}

.admin-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-list-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dbe8f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(16,32,51,.08);
}

.admin-list-card img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.admin-list-card strong,
.admin-list-card span {
  display: block;
}

.admin-list-card p {
  margin: 8px 0 0;
  color: #64748b;
}

.status-badge,
.menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #075e54;
  background: #dff8f2;
  font-size: 12px;
  font-weight: 950;
}

.status-badge.draft {
  color: #475569;
  background: #e2e8f0;
}

.status-badge.scheduled {
  color: #7c2d12;
  background: #ffedd5;
}

.status-badge.archived,
.status-badge.rejected,
.status-badge.spam {
  color: #991b1b;
  background: #fee2e2;
}

.admin-button.danger {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.comment-card {
  grid-template-columns: minmax(0, 1fr) auto minmax(360px, .8fr);
  align-items: start;
}

.moderation-form {
  display: grid;
  gap: 10px;
}

.moderation-form div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-private {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dbe8f6;
  border-radius: 12px;
  background: #f8fbff;
}

.rating-summary-list {
  display: grid;
  gap: 12px;
}

.rating-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dbe8f6;
  border-radius: 14px;
  background: #fff;
}

.blog-public-page,
.article-public-page {
  --public-header-height: 106px;
  padding-top: 0;
  scroll-padding-top: calc(var(--public-header-height) + 16px);
  color: #172033;
  background: #f4fafb;
}

.blog-public-page [id],
.article-public-page [id] {
  scroll-margin-top: calc(var(--public-header-height) + 16px);
}

.blog-site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
  min-height: 92px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #dbe8f6;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}

.blog-site-header .hospital-brand {
  width: 278px;
  min-width: 278px;
}

.blog-site-header .brand-name {
  max-width: 180px;
  font-size: clamp(22px, 2vw, 27px);
  white-space: normal;
}

.blog-site-header .hospital-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: clamp(12px, 1.15vw, 18px);
  min-width: 0;
  white-space: nowrap;
}

.blog-site-header .hospital-nav a,
.blog-back {
  color: #475569;
  font-weight: 950;
  text-decoration: none;
}

.blog-site-header .hospital-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0;
}

.blog-site-header .hospital-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.blog-site-header .hospital-nav a:hover::after,
.blog-site-header .hospital-nav a:focus-visible::after,
.blog-site-header .hospital-nav a.active::after {
  transform: scaleX(1);
}

.blog-site-header .hospital-nav a.active {
  color: var(--teal);
}

.blog-back {
  display: inline-flex;
  margin-bottom: 14px;
  color: #0f766e;
}

.blog-hero,
.article-shell,
.blog-list-section,
.article-feedback,
.comments-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.blog-hero {
  padding: clamp(44px, 5vw, 68px) 0 clamp(26px, 3vw, 38px);
}

.blog-hero h1,
.article-shell h1 {
  max-width: 860px;
  margin: 10px 0 12px;
  color: #641419;
  font-family: Georgia, serif;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
}

.blog-hero > p:not(.section-kicker) {
  max-width: 720px;
  margin: 0;
  color: #475569;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}

.medical-note {
  margin: 18px 0;
  padding: 13px 16px;
  border-left: 4px solid #d99735;
  border-radius: 12px;
  color: #475569;
  background: #fffaf0;
  line-height: 1.55;
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 22px;
  padding: 18px 0 58px;
}

.blog-list-grid.article-count-1 {
  grid-template-columns: minmax(420px, 520px);
  justify-content: center;
}

.blog-list-grid.article-count-2 {
  grid-template-columns: repeat(2, minmax(280px, 520px));
  justify-content: center;
}

.featured-blog-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 0;
  margin: 24px 0 34px;
  overflow: hidden;
  border: 1px solid #dbe8f6;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16,32,51,.1);
}

.featured-blog-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.featured-blog-card div {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px);
}

.featured-blog-card h2,
.blog-list-heading h2,
.blog-appointment-cta h2,
.related-articles h2 {
  margin: 0;
  color: #641419;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.featured-blog-card h2 a,
.blog-list-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
}

.blog-list-heading span {
  color: #64748b;
  font-weight: 900;
}

.blog-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px auto auto;
  align-items: end;
  gap: 14px;
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid #dbe8f6;
  border-radius: 18px;
  background: #fff;
}

.blog-filter label {
  display: grid;
  gap: 8px;
  color: #172033;
  font-weight: 900;
}

.blog-search-input {
  position: relative;
  display: block;
}

.blog-search-input::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #64748b;
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.blog-search-input::after {
  content: "";
  position: absolute;
  left: 27px;
  top: calc(50% + 7px);
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #64748b;
  transform: rotate(45deg);
  pointer-events: none;
}

.blog-filter input,
.blog-filter select,
.blog-filter .btn,
.blog-clear-filter {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d6e3f2;
  border-radius: 12px;
  font: inherit;
}

.blog-filter input:focus-visible,
.blog-filter select:focus-visible {
  outline: 3px solid rgba(47,112,238,.35);
  outline-offset: 2px;
  border-color: #2f70ee;
}

.blog-clear-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #f7fbff;
  font-weight: 950;
  text-decoration: none;
}

.blog-search-input input {
  width: 100%;
  padding-left: 44px;
}

.blog-list-card,
.article-card,
.comment-panel,
.rating-panel,
.approved-comment {
  overflow: hidden;
  border: 1px solid #dbe8f6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(16,32,51,.08);
}

.blog-list-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-list-card:hover,
.blog-list-card:focus-within {
  border-color: rgba(15,118,110,.28);
  box-shadow: 0 22px 68px rgba(16,32,51,.12);
  transform: translateY(-2px);
}

.blog-list-card.empty-state {
  grid-column: 1 / -1;
}

.blog-list-card img,
.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.62), rgba(255,255,255,0)),
    #e9f3f5;
  background-size: 220% 100%, 100% 100%;
  object-fit: cover;
}

.blog-list-card img {
  transition: transform 220ms ease;
}

.blog-list-card:hover img,
.blog-list-card:focus-within img {
  transform: scale(1.025);
}

.blog-list-card div,
.article-card div {
  display: grid;
  gap: 10px;
  flex: 1;
  padding: 20px;
}

.blog-list-card a {
  color: #0f766e;
  font-weight: 950;
}

.blog-pagination {
  margin: -24px 0 58px;
  text-align: center;
}

.article-category-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(15,118,110,.2);
  border-radius: 999px;
  color: #0f766e;
  background: #eefaf8;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.article-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 6px 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta-item::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  opacity: .8;
}

.meta-author::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 -5px 0 currentColor;
}

.meta-date::before {
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 4px 0 rgba(100,116,139,.35);
}

.meta-time::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) 50% 3px / 2px 5px no-repeat,
              linear-gradient(currentColor, currentColor) 50% 50% / 5px 2px no-repeat;
}

.empty-state.blog-list-card {
  min-height: 220px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-state.blog-list-card div {
  max-width: 560px;
  margin: 0 auto;
}

.empty-state.blog-list-card h2 {
  color: #172033;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(24px, 2.6vw, 34px);
}

.article-shell {
  padding: clamp(44px, 5vw, 68px) 0 28px;
}

.article-summary {
  max-width: 760px;
  color: #475569;
  font-size: 21px;
  line-height: 1.6;
}

.article-tags,
.article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.article-share {
  align-items: center;
}

.article-tags span,
.article-share a,
.article-share button,
.share-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #dbe8f6;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  font-weight: 950;
  text-decoration: none;
}

.share-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #102033;
  font-weight: 950;
}

.article-share button {
  cursor: pointer;
  font: inherit;
}

.share-feedback {
  color: #102033;
  background: #ecfdf8 !important;
  border-color: #bceade !important;
}

.share-feedback:empty {
  display: none;
}

.article-body {
  max-width: 740px;
  padding: 30px 0;
  color: #475569;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.article-body p {
  margin: 0 0 1.1em;
}

.article-body h2,
.article-body h3 {
  margin: 34px 0 12px;
  color: #102033;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.18;
}

.article-body h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.article-body h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.article-body ul,
.article-body ol {
  padding-left: 1.35em;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body blockquote,
.article-callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid #d99735;
  border-radius: 16px;
  background: #fffaf0;
  color: #102033;
  font-weight: 800;
}

.article-body a {
  color: #0f766e;
  font-weight: 900;
  text-underline-offset: 3px;
}

.service-detail-page {
  background: #eef8f8;
  color: #102033;
}

.service-detail-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(44px, 5vw, 68px) 0 34px;
}

.service-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.service-detail-copy h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  color: #641419;
  font-family: Georgia, serif;
  font-size: clamp(46px, 6.4vw, 82px);
  line-height: .98;
}

.service-detail-summary {
  max-width: 680px;
  margin: 0;
  color: #526987;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.58;
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-detail-actions .btn,
.service-detail-panel .btn {
  min-height: 48px;
  text-decoration: none;
}

.service-detail-actions .btn-outline {
  background: #fff;
  border-color: #dbe8f6;
  color: #102033;
}

.service-detail-page .btn-teal {
  background: #0f766e;
  color: #fff;
}

.service-detail-image-wrap {
  overflow: hidden;
  border: 1px solid #d5e5f0;
  border-radius: 28px;
  background: #dfeff0;
  box-shadow: 0 24px 70px rgba(16,32,51,.12);
}

.service-detail-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  margin-top: clamp(34px, 5vw, 56px);
}

.service-detail-main,
.service-detail-panel,
.service-benefits article {
  border: 1px solid #dbe8f6;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 54px rgba(16,32,51,.08);
}

.service-detail-main,
.service-detail-panel {
  padding: clamp(24px, 3vw, 34px);
}

.service-detail-main h2,
.service-detail-panel h2,
.service-benefits h2 {
  margin: 0 0 14px;
  color: #102033;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.12;
}

.service-detail-main p,
.service-detail-panel p {
  margin: 0;
  color: #526987;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.72;
}

.service-detail-panel {
  display: grid;
  gap: 16px;
}

.service-benefits {
  margin-top: clamp(32px, 5vw, 54px);
}

.service-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.service-benefits article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 18px;
}

.service-benefits article span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e4f8f4;
  color: #0f766e;
  font-weight: 950;
}

.service-benefits article p {
  margin: 0;
  color: #475569;
  font-weight: 800;
  line-height: 1.55;
}

.related-services {
  padding-top: 8px;
}

.article-body figure {
  margin: 26px 0;
}

.article-body figure img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.article-body figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #dbe8f6;
  border-radius: 16px;
}

.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.article-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5eef8;
}

.article-feedback,
.comments-section {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0 64px;
}

.rating-panel,
.comment-panel,
.approved-comment {
  padding: 24px;
}

.rating-panel {
  align-self: start;
}

.rating-panel h2,
.comment-panel h2 {
  margin: 0 0 8px;
}

.rating-summary,
.field-help,
.char-counter,
.comment-list-heading p {
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.rating-fieldset {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  border: 0;
}

.star-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.star-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid #dbe8f6;
  border-radius: 14px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
}

.star-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.star-button:hover,
.star-button.is-active {
  border-color: #d99735;
  color: #d99735;
  background: #fffaf0;
}

.star-button:has(input:focus-visible) {
  outline: 3px solid rgba(47,112,238,.45);
  outline-offset: 3px;
}

.rating-help-text {
  min-height: 24px;
  color: #102033;
  font-weight: 950;
}

.rating-submit:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.comment-form {
  display: grid;
  gap: 16px;
}

.comment-form label {
  display: grid;
  gap: 8px;
  color: #102033;
  font-weight: 950;
}

.comment-form input,
.comment-form textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d6e3f2;
  border-radius: 12px;
  color: #102033;
  font: inherit;
}

.comment-form input.input-validation-error,
.comment-form textarea.input-validation-error {
  border-color: #fb7185;
  background: #fff7f8;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input:focus-visible,
.comment-form textarea:focus-visible,
.article-share a:focus-visible,
.article-share button:focus-visible,
.blog-appointment-cta a:focus-visible {
  outline: 3px solid rgba(47,112,238,.45);
  outline-offset: 3px;
}

.required-label,
.optional-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.required-label {
  color: #9f1239;
}

.field-validation {
  color: #9f1239;
  font-size: 13px;
  font-weight: 900;
}

.comment-warning {
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 850;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 12px !important;
}

.checkbox-line input {
  min-width: 24px;
  min-height: 24px;
  margin-top: 2px;
}

.form-message {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf8;
  color: #075e54;
  font-weight: 900;
  line-height: 1.5;
}

.approved-comments {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.approved-comments article {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid #dbe8f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16,32,51,.05);
}

.comment-list-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}

.comment-meta strong {
  color: #102033;
  font-size: 18px;
  line-height: 1.25;
}

.comment-meta time,
.approved-comments small {
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
}

.comment-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: #d99735;
  font-weight: 950;
}

.comment-rating span {
  letter-spacing: .08em;
  line-height: 1;
}

.comment-rating small {
  color: #475569;
}

.comment-text {
  margin: 0;
  color: #243449;
  font-size: 16px;
  line-height: 1.65;
}

.comment-empty {
  padding: 20px;
  border: 1px dashed #c7d7ea;
  border-radius: 18px;
  color: #64748b;
  background: linear-gradient(180deg, #fff, #f8fbff);
  font-weight: 850;
  line-height: 1.55;
}

.clinic-reply {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f4fafb;
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  margin: -32px auto 64px;
}

.article-pager a {
  display: grid;
  gap: 8px;
  min-height: 72px;
  padding: 18px;
  border: 1px solid #dbe8f6;
  border-radius: 18px;
  color: #0f766e;
  background: #fff;
  box-shadow: 0 18px 60px rgba(16,32,51,.08);
  text-decoration: none;
}

.article-pager a .pager-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 15px;
  font-weight: 950;
}

.article-pager a .pager-label span {
  color: #0f766e;
  font-size: 18px;
  line-height: 1;
}

.article-pager a strong {
  color: #0f766e;
  line-height: 1.35;
}

.article-pager a:hover,
.article-pager a:focus-visible {
  border-color: rgba(15,118,110,.32);
  box-shadow: 0 22px 68px rgba(16,32,51,.12);
  outline: none;
  transform: translateY(-1px);
}

.blog-appointment-cta,
.related-articles {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 72px;
}

.blog-appointment-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 3vw, 34px);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(120deg, #641419, #102033);
}

.article-pager + .blog-appointment-cta {
  margin-top: 20px;
}

.blog-appointment-cta > div {
  max-width: 760px;
}

.blog-appointment-cta .section-kicker,
.blog-appointment-cta h2 {
  color: #fff;
}

.blog-appointment-cta p {
  color: rgba(255,255,255,.9);
}

.blog-appointment-cta .btn {
  min-height: 48px;
  color: #102033;
}

.blog-footer {
  display: block;
  width: 100%;
  margin-top: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 120px),
    #102033;
}

.blog-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(170px, max-content) minmax(240px, 1fr);
  gap: clamp(44px, 5vw, 76px);
  align-items: start;
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 5vw, 64px) clamp(24px, 4vw, 40px) clamp(34px, 3.6vw, 44px);
}

.blog-footer .footer-about,
.blog-footer .footer-links,
.blog-footer .footer-contact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.blog-footer .footer-links,
.blog-footer .footer-contact {
  gap: 14px;
}

.blog-footer .footer-links h2,
.blog-footer .footer-contact h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.blog-footer .footer-about p,
.blog-footer .footer-links a,
.blog-footer .footer-contact a {
  color: #c9d7e2;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.65;
}

.blog-footer .footer-about p {
  max-width: 380px;
  margin: 18px 0 0;
}

.blog-footer .footer-links a,
.blog-footer .footer-contact a {
  text-decoration: none;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.blog-footer .footer-links a:hover,
.blog-footer .footer-links a:focus-visible,
.blog-footer .footer-contact a:hover,
.blog-footer .footer-contact a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.blog-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  background: #0b1726;
}

.blog-footer .footer-bottom-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px clamp(24px, 4vw, 40px);
  color: #a9bac7;
  font-size: 13px;
  font-weight: 700;
}

.related-articles {
  padding-top: 24px;
}

@media (max-width: 980px) {
  .form-grid,
  .image-upload,
  .blog-list-grid,
  .blog-filter,
  .featured-blog-card,
  .article-feedback,
  .comments-section,
  .admin-list-card,
  .comment-card,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .blog-site-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
  }

  .blog-site-header .hospital-brand {
    min-width: 0;
    white-space: normal;
  }

  .blog-site-header .hospital-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }

  .blog-public-page,
  .article-public-page {
    --public-header-height: 92px;
  }

  .blog-filter {
    grid-template-columns: 1fr;
  }

  .featured-blog-card div {
    align-content: start;
  }

  .blog-footer .footer-main {
    grid-template-columns: 1fr;
  }

  .blog-footer .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-list-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

/* Neutral Site Manager admin interface */
:root {
  --admin-primary: #3478F6;
  --admin-primary-dark: #1E5BD7;
  --admin-light-blue: #EEF6FF;
  --admin-teal: #0F766E;
  --admin-accent: #168779;
  --admin-gold: #F5B841;
  --admin-page: #F3F8FD;
  --admin-surface: #FFFFFF;
  --admin-ink: #182438;
  --admin-muted: #61718B;
  --admin-border: #DCE7F2;
  --admin-soft: #F7FAFE;
  --admin-shadow: 0 8px 28px rgba(31, 65, 104, .07);
  --admin-focus: 0 0 0 4px rgba(52, 120, 246, .18);
  --admin-z-content: 1;
  --admin-z-sticky: 30;
  --admin-z-header: 70;
  --admin-z-dropdown: 140;
  --admin-z-modal: 220;
  --admin-z-toast: 240;
  --admin-burgundy: var(--admin-primary);
  --admin-burgundy-dark: var(--admin-primary-dark);
  --admin-cream: var(--admin-page);
}

.admin-layout,
body.admin-shell,
.visual-editor-shell {
  min-height: 100vh;
  color: var(--admin-ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(238,246,255,.9)),
    var(--admin-page);
}

body.admin-shell {
  display: grid;
  grid-template-columns: 322px minmax(0, 1fr);
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  transition: grid-template-columns .2s ease;
}

.admin-layout {
  display: grid;
  grid-template-columns: 322px minmax(0, 1fr);
  transition: grid-template-columns .2s ease;
}

body.admin-sidebar-collapsed.admin-shell,
body.admin-sidebar-collapsed .admin-layout {
  grid-template-columns: 0 minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  align-self: start;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100vh;
  max-height: 100vh;
  padding: 24px 17px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--admin-border);
  background: rgba(255,255,255,.88);
  box-shadow: 10px 0 30px rgba(31,65,104,.04);
  backdrop-filter: blur(18px);
  transition: opacity .18s ease, transform .2s ease, padding .2s ease, border-color .18s ease, box-shadow .18s ease;
}

body.admin-sidebar-collapsed .admin-sidebar {
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
  border-right-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-16px);
  box-shadow: none;
}

.admin-sidebar {
  scrollbar-width: none;
}

.admin-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.admin-brand {
  min-height: auto;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.admin-brand:hover {
  background: var(--admin-light-blue);
}

.admin-brand .admin-logo,
.admin-brand > span:first-child:not(:last-child),
.admin-logo {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent));
  box-shadow: 0 12px 24px rgba(52,120,246,.18);
  font-weight: 950;
}

.admin-brand strong {
  color: var(--admin-ink);
  font-size: 16px;
  line-height: 1.1;
}

.admin-brand-copy,
.admin-brand > span:last-child,
.admin-brand > div {
  min-width: 0;
}

.admin-brand small,
.admin-brand em {
  display: block;
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-brand em {
  color: var(--admin-muted);
  letter-spacing: .08em;
  text-transform: none;
}

.admin-brand b {
  display: block;
  margin-top: 3px;
  color: var(--admin-ink);
  max-width: 100%;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.22;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-brand i {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin-top: 2px;
  color: var(--admin-muted);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.2;
}

.admin-site-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #fff;
}

.admin-site-status {
  color: #0f766e !important;
  border-color: rgba(15,118,110,.22) !important;
  background: #ecfdf8 !important;
}

.admin-search {
  display: block;
  margin: 16px 0 19px;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.admin-search input,
input.admin-search {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px 10px 40px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  color: var(--admin-ink);
  background:
    linear-gradient(currentColor, currentColor) 16px 21px / 12px 1.8px no-repeat,
    radial-gradient(circle at 21px 17px, transparent 5px, currentColor 5.5px, currentColor 6.7px, transparent 7.2px) 0 0 / 38px 38px no-repeat,
    #fff;
  font: inherit;
  font-weight: 500;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.admin-menu {
  display: grid;
  gap: 4px;
}

.admin-menu-label {
  margin: 18px 10px 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(214,227,242,.72);
  color: #647086;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: none;
}

.admin-menu-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #3F4654;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-menu a::before,
.module-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: .88;
  background: currentColor;
  mask: var(--admin-icon, linear-gradient(#000 0 0)) center / contain no-repeat;
}

.admin-menu a[data-icon="dashboard"],
.module-icon[data-icon="dashboard"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 13h8V3H3zM13 21h8V11h-8zM13 3v6h8V3zM3 21h8v-6H3z'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="edit"],
.module-icon[data-icon="edit"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="stethoscope"],
.module-icon[data-icon="stethoscope"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 3v5a4 4 0 0 0 8 0V3M6 3H4m10 0h2M10 15a6 6 0 0 0 12 0v-3'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="user"],
.module-icon[data-icon="user"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="image"],
.module-icon[data-icon="image"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="quote"],
.module-icon[data-icon="quote"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 21c3 0 7-2 7-8V5H3v8h4c0 3-1 5-4 5zM14 21c3 0 7-2 7-8V5h-7v8h4c0 3-1 5-4 5z'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="help"],
.module-icon[data-icon="help"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 1 1 5.8 1c-.8 1.4-2.9 1.6-2.9 3.5M12 17h.01'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="file"],
.module-icon[data-icon="file"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="message"],
.module-icon[data-icon="message"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="calendar"],
.module-icon[data-icon="calendar"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="map"],
.module-icon[data-icon="map"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M9 18 3 21V6l6-3 6 3 6-3v15l-6 3-6-3Z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="settings"],
.module-icon[data-icon="settings"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.6-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1A2 2 0 1 1 7.1 4.2l.1.1a1.7 1.7 0 0 0 1.9.3h.1a1.7 1.7 0 0 0 1-1.6V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.6h.1a1.7 1.7 0 0 0 1.9-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.9v.1a1.7 1.7 0 0 0 1.6 1h.1a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.9 1Z'/%3E%3C/svg%3E"); }
.admin-menu a[data-icon="external"],
.module-icon[data-icon="external"] { --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M15 3h6v6M10 14 21 3M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E"); }

.admin-menu a:hover {
  color: var(--admin-primary-dark);
  border-color: rgba(52,120,246,.14);
  background: rgba(232,242,255,.72);
}

.admin-menu a.search-match {
  color: var(--admin-primary-dark);
  border-color: rgba(52,120,246,.18);
}

.admin-menu a.active {
  color: var(--admin-primary-dark);
  border-color: rgba(52,120,246,.16);
  background: rgba(232,242,255,.64);
  box-shadow: 0 8px 18px rgba(52,120,246,.06);
  font-weight: 650;
}

.admin-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 4px;
  border-radius: 999px;
  background: var(--admin-accent);
}

.admin-menu a.active .menu-badge {
  color: var(--admin-primary-dark);
  background: #fff;
}

.admin-sidebar.admin-menu-no-results::after {
  content: attr(data-search-empty-text);
  display: block;
  margin: 14px 10px 0;
  padding: 12px;
  border: 1px dashed var(--admin-border);
  border-radius: 12px;
  color: var(--admin-muted);
  background: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 750;
}

.admin-breadcrumb a[href="/admin"]:first-child {
  display: none;
}

.admin-breadcrumb a[href="/admin"]:first-child + span::before {
  content: none;
}

.admin-breadcrumb a[href="/admin"]:first-child + a {
  color: var(--admin-teal);
}

.admin-menu a:focus-visible,
.admin-button:focus-visible,
.menu-chip:focus-visible,
.profile-menu summary:focus-visible,
.profile-menu-link:focus-visible,
.profile-menu-panel button:focus-visible,
.preview-mode-tabs button:focus-visible,
.image-dropzone:focus-visible,
.visual-field input:focus-visible,
.visual-field textarea:focus-visible,
.visual-field select:focus-visible,
.form-grid input:focus-visible,
.form-grid textarea:focus-visible,
.form-grid select:focus-visible,
.settings-form input:focus-visible,
.settings-form textarea:focus-visible,
.settings-form select:focus-visible,
.admin-search input:focus-visible,
input.admin-search:focus-visible {
  outline: 0;
  box-shadow: var(--admin-focus);
}

.admin-panel,
.admin-main {
  min-width: 0;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 22px 32px 48px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: var(--admin-z-header);
  min-height: 64px;
  margin: -22px -32px 24px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(243,248,253,.9);
  overflow: visible;
  backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-actions {
  gap: 12px;
  justify-content: flex-end;
}

.admin-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
}

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

.admin-breadcrumb span::before {
  content: "/";
  margin-right: 7px;
  color: #B09AA2;
}

.menu-chip,
.admin-icon {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  color: #647086;
  background: rgba(255,255,255,.86);
  cursor: pointer;
}

.admin-icon {
  display: inline-flex;
  min-width: 40px;
  min-height: 38px;
  border-radius: 12px;
  color: var(--admin-primary);
  background: #fff;
}

.admin-topbar > strong,
.topbar-left strong {
  color: var(--admin-ink);
  font-size: 15px;
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(52,120,246,.16);
  border-radius: 999px;
  color: #fff;
  background: var(--admin-primary);
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu > div,
.profile-menu-panel {
  display: grid;
  gap: 10px;
  min-width: 220px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--admin-shadow);
  z-index: var(--admin-z-dropdown);
}

.profile-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
}

.profile-menu-panel {
  position: fixed;
  right: auto;
  top: auto;
}

.profile-menu-panel[hidden] {
  display: none;
}

.profile-menu form,
.profile-menu-panel form {
  margin: 0;
}

.profile-menu strong,
.profile-menu-panel strong {
  color: var(--admin-ink);
  font-size: 14px;
  font-weight: 900;
}

.profile-menu button,
.profile-menu-panel button,
.profile-menu-link {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  color: var(--admin-primary-dark);
  background: var(--admin-light-blue);
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  text-decoration: none;
}

.profile-menu button:hover,
.profile-menu-panel button:hover,
.profile-menu-link:hover {
  border-color: rgba(52,120,246,.24);
  background: #fff;
}

.admin-button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.admin-button:hover {
  transform: translateY(-1px);
}

.admin-button.primary,
.btn-primary {
  color: #fff;
  background: var(--admin-primary);
  box-shadow: 0 14px 28px rgba(52,120,246,.18);
}

.admin-button.ghost {
  color: var(--admin-ink);
  background: #fff;
  border-color: var(--admin-border);
}

.admin-button.soft {
  color: var(--admin-primary-dark);
  background: var(--admin-light-blue);
  border-color: #CFE3FF;
}

.admin-button.danger,
.btn-danger {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.admin-welcome-card,
.admin-hero-card,
.admin-hero.compact,
.admin-card,
.editor-card,
.settings-form,
.editor-fieldset,
.section-navigator,
.section-edit-panel,
.live-preview-panel,
.tenant-card,
.tenant-filter-bar,
.tenant-create-card {
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--admin-shadow);
}

.admin-welcome-card,
.admin-hero-card,
.admin-hero.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.96) 58%, rgba(238,246,255,.96) 100%),
    radial-gradient(circle at 100% 0, rgba(52,120,246,.14), transparent 36%);
}

.admin-welcome-card h1,
.admin-hero-card h1,
.admin-hero.compact h1,
.admin-title h1 {
  margin: 5px 0 9px;
  color: var(--admin-ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.08;
}

.admin-welcome-card p,
.admin-hero-card p,
.admin-hero.compact p,
.admin-title p {
  color: var(--admin-muted);
  font-size: 16px;
}

.admin-kicker {
  color: var(--admin-primary);
  font-size: 12px;
  letter-spacing: .14em;
}

.website-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.website-meta div {
  min-width: min(100%, 152px);
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fff;
}

.website-meta dt,
.website-meta dd {
  margin: 0;
}

.website-meta dt {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 850;
}

.website-meta dd {
  margin-top: 3px;
  color: var(--admin-ink);
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  min-width: 260px;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
}

.admin-section-head h2,
.admin-card h2,
.list-toolbar h2 {
  margin: 0;
  color: var(--admin-ink);
  font-size: 24px;
}

.admin-section-head > span {
  color: var(--admin-muted);
  font-weight: 850;
}

.admin-module-grid,
.premium-dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.admin-module-grid a,
.dashboard-module-card {
  position: relative;
  min-width: 0;
  min-height: 176px;
  padding: 18px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  color: var(--admin-ink);
  background: #fff;
  box-shadow: 0 8px 28px rgba(31,65,104,.07);
  text-decoration: none;
}

.dashboard-module-card {
  display: grid;
  align-content: start;
  gap: 7px;
}

.admin-module-grid a:hover,
.dashboard-module-card:hover {
  border-color: rgba(52,120,246,.24);
  box-shadow: 0 14px 36px rgba(31,65,104,.1);
  transform: translateY(-2px);
}

.dashboard-module-card .module-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--admin-teal);
  background: #EAF7F4;
}

.dashboard-module-card .module-icon::before {
  margin: auto;
}

.dashboard-module-card small,
.dashboard-module-card em,
.dashboard-module-card .module-status {
  color: var(--admin-muted);
  font-style: normal;
  font-weight: 800;
}

.dashboard-module-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
}

.dashboard-module-card b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--admin-primary);
  font-size: 28px;
  line-height: 1;
}

.dashboard-module-card small,
.dashboard-module-card .module-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-module-card em {
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.dashboard-module-card .module-status {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--admin-border);
  font-size: 13px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(320px, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.admin-card {
  padding: 20px;
}

.empty-copy {
  margin: 0;
  color: var(--admin-muted);
  font-weight: 800;
  line-height: 1.6;
}

.attention-list,
.activity-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.attention-list a,
.activity-list li {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}

.attention-list span,
.activity-list span,
.activity-list time {
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 800;
}

.activity-list strong,
.activity-list time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-list span {
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.45;
}

.status-badge {
  color: #075e54;
  background: #E4F7F2;
}

.status-badge.published {
  color: #075e54;
  background: #DFF8F2;
}

.status-badge.draft {
  color: #6A3B09;
  background: #FFF3D0;
}

.notice,
.admin-alert.success {
  border-color: #B6EEE3;
  border-radius: 12px;
  color: #075e54;
  background: #ECFDF8;
}

.client-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #CFE3FF;
  border-radius: 999px;
  color: var(--admin-primary-dark);
  background: var(--admin-light-blue);
  font-size: 13px;
  font-weight: 900;
}

.client-chip::before {
  content: "Currently managing";
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  border: 1px solid var(--admin-border);
  background: #fff;
}

.admin-alert::before {
  content: "i";
  display: grid;
  width: 22px;
  height: 22px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--admin-primary);
  font-size: 13px;
  font-weight: 950;
}

.admin-alert strong {
  display: block;
  color: var(--admin-ink);
}

.admin-alert span,
.admin-alert div {
  color: inherit;
  font-weight: 800;
}

.admin-alert ul {
  margin: 0;
  padding-left: 18px;
}

.admin-alert.success::before {
  content: "✓";
  background: var(--admin-accent);
}

.admin-alert.danger::before {
  content: "!";
  background: #D92D20;
}

.admin-alert.warning {
  color: #92400E;
  border-color: #FEDF89;
  background: #FFFAEB;
}

.admin-alert.warning::before {
  content: "!";
  background: #DC6803;
}

.table-wrap,
.admin-table,
.admin-list-card,
.rating-summary-list div {
  border-color: var(--admin-border);
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.comment-form input,
.comment-form textarea,
.moderation-form textarea,
.inline-filter input,
.inline-filter select,
.visual-field input,
.visual-field textarea,
.visual-field select,
.editor-card input,
.editor-card textarea,
.settings-form input,
.settings-form textarea,
.settings-form select,
.admin-table input,
.admin-table select {
  border-color: var(--admin-border);
  border-radius: 11px;
  background: #fff;
}

.admin-stat-grid article,
.admin-list-card,
.blog-list-card,
.article-card,
.comment-panel,
.rating-panel,
.approved-comment {
  border-color: var(--admin-border);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(53,16,28,.055);
}

.admin-stat-grid strong {
  color: var(--admin-primary);
}

.editor-sticky-actions {
  top: 64px;
  border-color: var(--admin-border);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--admin-shadow);
}

.preview-mode-tabs {
  border-color: var(--admin-border);
  background: #FFFDFB;
}

.preview-mode-tabs button.active {
  background: var(--admin-primary);
}

.section-nav-card {
  border-color: var(--admin-border);
  border-radius: 13px;
  background: #FFFDFB;
}

.section-nav-card.active,
.section-nav-card:hover {
  border-color: rgba(52,120,246,.22);
  background: var(--admin-light-blue);
}

.image-dropzone {
  border-color: #DECFC5;
  border-radius: 16px;
  background: #FFFDFB;
}

.image-dropzone.drag-over {
  border-color: var(--admin-teal);
  background: #ECFDF8;
}

.global-content-notice {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: linear-gradient(135deg, #FFFDFB, #F3FAFF);
}

.global-content-notice span,
.module-summary span,
.module-summary small,
.module-note,
.module-record-card span,
.module-record-card p {
  color: var(--admin-muted);
}

.global-content-notice h3 {
  margin: 4px 0 6px;
  color: var(--admin-primary);
  font-size: 1.1rem;
}

.global-content-notice p {
  margin: 0;
  max-width: 680px;
  color: var(--admin-text);
}

.global-content-notice dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px;
  margin: 0;
}

.global-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.homepage-layout-summary {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
}

.homepage-layout-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.homepage-layout-summary div {
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #FFFDFB;
}

.homepage-layout-summary dt {
  color: var(--admin-muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.homepage-layout-summary dd {
  margin: 4px 0 0;
  color: var(--admin-primary);
  font-weight: 800;
}

.global-content-notice dl div,
.module-summary {
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, .22);
  border-radius: 14px;
  background: rgba(236, 253, 248, .72);
}

.global-content-notice dt {
  font-size: .72rem;
  color: var(--admin-muted);
}

.global-content-notice dd,
.module-summary strong {
  margin: 0;
  color: var(--admin-primary);
  font-weight: 800;
}

.module-hero-card {
  margin-bottom: 22px;
}

.module-summary {
  min-width: 190px;
}

.module-summary strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.module-management-card {
  padding: 22px;
}

.module-note {
  margin: 0 0 18px;
}

.module-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-record-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #FFFDFB;
}

.module-record-card img {
  width: 78px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

.module-record-card strong,
.module-record-card span,
.module-record-card p {
  display: block;
}

.module-record-card p {
  margin: 6px 0 0;
  font-size: .86rem;
  line-height: 1.45;
}

.module-visibility-alert {
  margin: 16px 0 18px;
}

.module-visibility-alert p {
  margin: 0 0 8px;
}

.module-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.module-record-title-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.module-record-title-row .status-badge {
  flex: 0 0 auto;
  text-transform: none;
  letter-spacing: 0;
}

.status-badge.public {
  color: #047857;
  background: #D1FAE5;
}

.status-badge.hidden,
.status-badge.setup-required {
  color: #92400E;
  background: #FEF3C7;
}

.status-badge.sample-content {
  color: #475467;
  background: #EEF2F6;
}

.module-record-card:has(.module-record-title-row .status-badge) .module-record-title-row + span:not(.module-record-order) {
  display: none;
}

.module-record-order {
  margin-top: 3px;
  color: #5D6F85;
  font-weight: 800;
}

.module-record-note {
  padding: 10px 12px;
  border: 1px solid #FEDF89;
  border-radius: 10px;
  color: #92400E;
  background: #FFFAEB;
}

.module-record-note strong {
  display: inline;
  margin-right: 4px;
}

.appointment-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.appointment-detail-grid article {
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #FFFDFB;
}

.appointment-detail-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--admin-muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.appointment-detail-grid strong {
  display: block;
  color: var(--admin-primary);
  overflow-wrap: anywhere;
}

.appointment-hours {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-hours .module-record-card {
  grid-template-columns: 1fr;
  min-height: auto;
}

.focused-edit-layout,
.homepage-display-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 18px;
  align-items: start;
}

.focused-edit-card h1 {
  margin: 0;
  color: var(--admin-primary);
  font-size: 1.8rem;
}

.focused-form-grid {
  display: grid;
  gap: 14px;
}

.focused-form-grid .visual-field,
.focused-form-grid .focused-switch {
  margin: 0;
}

.focused-switch {
  justify-content: flex-start;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #FFFDFB;
}

.sticky-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--admin-border);
}

.focused-preview-card {
  position: sticky;
  top: 84px;
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: #FFFDFB;
  box-shadow: var(--admin-shadow);
}

.treatment-preview-card,
.treatments-section-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #F7FCFF;
}

.treatment-preview-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.treatment-preview-card h2,
.treatments-section-preview h2 {
  margin: 0;
  color: var(--admin-primary);
}

.record-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-button.danger {
  border-color: rgba(162, 44, 72, .22);
  color: var(--admin-primary);
  background: #FFF1F3;
}

.section-preview-frame {
  width: 100%;
  overflow: auto;
  transition: max-width .18s ease;
}

.section-preview-frame.tablet {
  max-width: 760px;
  margin-inline: auto;
}

.section-preview-frame.mobile {
  max-width: 390px;
  margin-inline: auto;
}

.section-preview-frame.mobile .service-grid,
.section-preview-frame.tablet .service-grid {
  grid-template-columns: 1fr;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.office-location-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.office-location-list,
.office-location-editor {
  min-width: 0;
}

.office-location-cards {
  display: grid;
  gap: 12px;
}

.office-location-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #fff;
}

.office-location-card.selected {
  border-color: rgba(15,118,110,.35);
  background: #f1fbfa;
  box-shadow: inset 3px 0 0 var(--admin-accent);
}

.office-location-card strong,
.office-location-card span,
.office-location-card em {
  display: block;
}

.office-location-card strong {
  color: var(--admin-ink);
  font-weight: 950;
}

.office-location-card span,
.office-location-card p {
  color: var(--admin-muted);
}

.office-location-card p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.office-location-card em {
  width: fit-content;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #047857;
  background: #dff8f1;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.office-location-form {
  display: grid;
  gap: 16px;
}

.location-capture-card,
.location-map-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(52,120,246,.32);
  border-radius: 14px;
  background: #f8fbff;
}

.location-capture-card .admin-button {
  justify-content: center;
  width: 100%;
}

.location-capture-card p,
.location-map-card span {
  margin: 0;
  color: var(--admin-muted);
  font-weight: 800;
}

.location-map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 12px;
  background: #eef5fb;
}

.location-map-card iframe[hidden] {
  display: none;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(20, 184, 166, .35);
  border-radius: 999px;
  color: var(--admin-primary);
  background: #ECFDF8;
  font-weight: 800;
  text-decoration: none;
}

.shared-image-uploader {
  display: grid;
  gap: 12px;
}

.image-uploader-head {
  display: grid;
  gap: 4px;
}

.image-uploader-head span,
.image-uploader-message,
.selected-image-preview small,
.current-image-preview small {
  color: var(--admin-muted);
}

.image-drop-control {
  display: grid;
  min-height: 210px;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1.5px dashed rgba(52, 120, 246, .38);
  border-radius: 16px;
  background: #F7FCFF;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.image-drop-control:focus-visible,
.image-drop-control.drag-active {
  outline: 3px solid rgba(52, 120, 246, .18);
  border-color: var(--admin-primary);
  background: #ECFDF8;
}

.image-drop-control .drop-title {
  color: var(--admin-primary);
  font-size: 1.05rem;
  font-weight: 900;
}

.image-drop-control em {
  color: var(--admin-muted);
  font-style: normal;
}

.image-drop-control b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #fff;
}

.current-image-preview,
.selected-image-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #FFFDFB;
}

.selected-image-preview[hidden] {
  display: none;
}

.current-image-preview img,
.selected-image-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
}

.current-image-preview.marked-for-removal {
  opacity: .55;
}

.image-size-warning {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, .24);
  border-radius: 12px;
  background: #FFF7ED;
}

.image-size-warning[hidden] {
  display: none;
}

.image-size-warning strong {
  color: #92400E;
}

.image-size-warning p {
  margin: 0;
  color: #7C2D12;
  line-height: 1.5;
}

.image-size-warning div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-uploader-message.error {
  color: #B42318;
  font-weight: 800;
}

.settings-upload-card {
  border-color: var(--admin-border);
  border-radius: 16px;
  background: #FFFDFB;
}

.colour-warning {
  border-radius: 12px;
}

/* Dashboard card polish: responsive cards without awkward text breaks. */
.dashboard-section .premium-dashboard-grid {
  gap: 15px;
}

.dashboard-section .dashboard-module-card {
  min-height: 158px;
  padding: 16px;
  gap: 6px;
}

.dashboard-section .dashboard-module-card strong {
  font-size: 19px;
  line-height: 1.18;
}

.dashboard-section .dashboard-module-card b {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.05;
}

.dashboard-section .dashboard-module-card .module-status {
  margin-top: 5px;
  padding-top: 8px;
}

@media (max-width: 1180px) {
  .admin-module-grid,
  .premium-dashboard-grid,
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }

  .global-content-notice,
  .appointment-detail-grid,
  .focused-edit-layout,
  .homepage-display-layout,
  .office-location-layout,
  .module-record-grid {
    grid-template-columns: 1fr;
  }

  .focused-preview-card {
    position: static;
  }
}

@media (max-width: 980px) {
  body.admin-nav-open {
    overflow: hidden;
  }

  body.admin-has-sidebar.admin-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, .32);
  }

  body.admin-shell,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: min(86vw, 320px);
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform .18s ease;
    box-shadow: 22px 0 48px rgba(15,23,42,.18);
    overscroll-behavior: contain;
  }

  body.admin-nav-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-panel,
  .admin-main {
    width: 100%;
    padding: 20px;
  }

  .admin-topbar {
    margin: -20px -20px 20px;
    padding: 12px 20px;
  }

  .menu-chip {
    display: inline-flex;
  }

  .admin-welcome-card,
  .admin-hero-card,
  .admin-hero.compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .welcome-actions,
  .topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .admin-panel,
  .admin-main {
    padding: 16px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    margin: -16px -16px 18px;
    padding: 12px 16px;
  }

  .topbar-left,
  .topbar-actions,
  .website-meta,
  .welcome-actions,
  .editor-sticky-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .admin-module-grid,
  .premium-dashboard-grid,
  .admin-stat-grid,
  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }

  .admin-button,
  .topbar-actions .admin-button,
  .welcome-actions .admin-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --public-header-height: 82px;
  }

  .blog-hero,
  .article-shell,
  .blog-list-section,
  .article-feedback,
  .comments-section,
  .blog-appointment-cta,
  .article-pager,
  .related-articles {
    width: min(100% - 28px, 1180px);
  }

  .blog-public-page,
  .article-public-page {
    --public-header-height: 82px;
    scroll-padding-top: calc(var(--public-header-height) + 12px);
  }

  .blog-public-page [id],
  .article-public-page [id] {
    scroll-margin-top: calc(var(--public-header-height) + 12px);
  }

  .blog-hero {
    padding-top: 34px;
  }

  .blog-hero h1,
  .article-shell h1 {
    font-size: clamp(36px, 13vw, 52px);
    line-height: 1.02;
  }

  .sticky-actions,
  .list-toolbar,
  .inline-filter,
  .blog-appointment-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-pager {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }

  .blog-list-grid.article-count-1,
  .blog-list-grid.article-count-2 {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .featured-blog-card img {
    min-height: 220px;
  }

  .article-share a,
  .article-share button,
  .article-share span {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-list-card,
  .blog-list-card img,
  .article-pager a {
    transition: none;
  }

  .blog-list-card:hover,
  .blog-list-card:focus-within,
  .article-pager a:hover,
  .article-pager a:focus-visible {
    transform: none;
  }

  .blog-list-card:hover img,
  .blog-list-card:focus-within img {
    transform: none;
  }
}

@media (max-width: 900px) {
  .service-detail-shell {
    width: min(100% - 28px, 1180px);
  }

  .service-detail-hero,
  .service-detail-content {
    grid-template-columns: 1fr;
  }

  .service-detail-hero {
    gap: 24px;
  }

  .service-detail-image-wrap {
    order: -1;
  }

  .service-benefit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .service-detail-shell {
    padding-top: 34px;
  }

  .service-detail-copy h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .service-detail-actions {
    flex-direction: column;
  }

  .service-detail-actions .btn,
  .service-detail-panel .btn {
    width: 100%;
  }
}

/* Homepage Layout Manager */
.visual-editor-shell .website-editor-panel {
  width: min(100%, 1180px);
}

.homepage-layout-hero {
  align-items: center;
  padding: 28px 32px;
}

.homepage-layout-hero h1 {
  margin-bottom: 8px;
}

.homepage-layout-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
  min-width: min(100%, 560px);
}

.homepage-layout-stats div {
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 28px rgba(31,65,104,.06);
}

.homepage-layout-stats strong {
  display: block;
  color: var(--admin-primary);
  font-size: 18px;
  line-height: 1.1;
}

.homepage-layout-stats span {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 850;
}

.visual-editor-shell .editor-workspace {
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 20px;
}

.visual-editor-shell .section-navigator,
.visual-editor-shell .section-edit-panel {
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(31,54,86,.06);
}

.visual-editor-shell .section-navigator {
  padding: 0;
  position: static;
  max-height: none;
  overflow: visible;
  align-self: start;
}

.visual-editor-shell .section-navigator-head {
  position: static;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid #e1ebf5;
  background: rgba(255,255,255,.96);
}

.section-search {
  display: block;
  margin-top: 12px;
}

.section-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.section-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px 8px 34px;
  border: 1px solid var(--admin-border);
  border-radius: 11px;
  color: var(--admin-ink);
  background:
    linear-gradient(currentColor, currentColor) 14px 19px / 11px 1.6px no-repeat,
    radial-gradient(circle at 19px 15px, transparent 4.5px, currentColor 5px, currentColor 6px, transparent 6.5px) 0 0 / 34px 34px no-repeat,
    #f8fbff;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
}

.section-search input:focus {
  outline: 0;
  border-color: rgba(52,120,246,.58);
  box-shadow: var(--admin-focus);
}

.section-search-empty {
  margin: 10px 16px 0;
  padding: 10px 12px;
  border: 1px dashed var(--admin-border);
  border-radius: 11px;
  color: var(--admin-muted);
  background: #fbfdff;
  font-size: 13px;
  font-weight: 800;
}

.visual-editor-shell .section-navigator #sectionNavigator {
  max-height: none;
  overflow: visible;
  padding: 9px 10px 10px;
  scrollbar-width: none;
}

.visual-editor-shell .section-navigator #sectionNavigator::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.visual-editor-shell .section-nav-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 7px;
  padding: 0;
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.visual-editor-shell .section-nav-card.active {
  border-color: rgba(52,120,246,.36);
  background: var(--admin-light-blue);
  box-shadow: 0 16px 34px rgba(52,120,246,.16);
  transform: translateY(-1px);
}

.visual-editor-shell .section-nav-card.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--admin-accent);
}

.visual-editor-shell .section-nav-card.drop-target {
  border-color: var(--admin-primary);
  box-shadow: inset 0 3px 0 var(--admin-primary), 0 12px 26px rgba(52,120,246,.12);
}

.visual-editor-shell .section-card-select {
  grid-template-columns: 20px 30px minmax(0, 1fr);
  width: 100%;
  min-height: 54px;
  padding: 8px 8px 8px 12px;
  border-radius: 14px;
}

.visual-editor-shell .section-card-select:focus-visible,
.visual-editor-shell .section-move-menu summary:focus-visible,
.visual-editor-shell .section-move-menu a:focus-visible,
.visual-editor-shell .section-move-menu button:focus-visible,
.visual-editor-shell .recovery-actions summary:focus-visible,
.visual-editor-shell .recovery-actions button:focus-visible {
  outline: 0;
  box-shadow: var(--admin-focus);
}

.visual-editor-shell .drag-handle {
  color: #7b8798;
  font-size: 16px;
  line-height: 1;
  cursor: grab;
}

.visual-editor-shell .section-card-icon {
  width: 30px;
  height: 30px;
  color: var(--admin-teal);
  background: #e8f6f4;
}

.visual-editor-shell .section-card-copy strong {
  display: block;
  color: var(--admin-ink);
  font-weight: 900;
  line-height: 1.15;
}

.visual-editor-shell .section-nav-card.active .section-card-copy strong {
  color: var(--admin-primary-dark);
}

.visual-editor-shell .section-card-meta {
  gap: 4px;
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 850;
}

.visual-editor-shell .section-navigator.has-many-sections {
  position: sticky;
  top: 152px;
  max-height: calc(100vh - 180px);
  overflow: hidden;
}

.visual-editor-shell .section-navigator.has-many-sections .section-navigator-head {
  position: sticky;
  top: 0;
}

.visual-editor-shell .section-navigator.has-many-sections #sectionNavigator {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.visual-editor-shell .section-navigator.has-many-sections #sectionNavigator::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.visual-editor-shell .section-card-meta em {
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

.visual-editor-shell .section-card-meta em + em::before {
  content: "·";
  margin-right: 4px;
  color: #9aa7b7;
}

.visual-editor-shell .section-move-menu {
  position: relative;
  align-self: center;
  grid-column: auto;
  padding-right: 8px;
  z-index: 2;
}

.visual-editor-shell .section-nav-card.menu-open,
.visual-editor-shell .section-move-menu[open] {
  z-index: var(--admin-z-dropdown);
}

.visual-editor-shell .section-move-menu summary {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--admin-muted);
  cursor: pointer;
  list-style: none;
}

.visual-editor-shell .section-move-menu summary::-webkit-details-marker {
  display: none;
}

.visual-editor-shell .section-move-menu[open] summary,
.visual-editor-shell .section-move-menu summary:hover {
  color: var(--admin-primary);
  background: #fff;
}

.visual-editor-shell .section-move-menu div {
  position: absolute;
  right: 8px;
  top: 36px;
  z-index: var(--admin-z-dropdown);
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31,54,86,.16);
}

.visual-editor-shell .section-move-menu a,
.visual-editor-shell .section-move-menu button {
  display: block;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: #243145;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.visual-editor-shell .section-move-menu a:hover,
.visual-editor-shell .section-move-menu button:hover {
  color: var(--admin-primary-dark);
  background: var(--admin-light-blue);
}

.visual-editor-shell .section-edit-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.visual-editor-shell .focused-editor-card {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.visual-editor-shell .focused-editor-head {
  align-items: flex-start;
  gap: 18px;
}

.visual-editor-shell .focused-editor-head h2 {
  margin-top: 4px;
  font-size: 30px;
}

.back-to-structure {
  display: none;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--admin-primary);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.visual-editor-shell .editor-switch {
  flex: 0 0 auto;
  border-radius: 16px;
}

.visual-editor-shell .homepage-layout-summary dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visual-editor-shell .homepage-layout-summary div {
  background: #fbfdff;
}

.visual-editor-shell .homepage-layout-summary {
  gap: 0;
}

.layout-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid #e1ebf5;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 850;
}

.layout-info-strip span {
  display: inline-flex;
  align-items: center;
}

.layout-info-strip span + span::before {
  content: "·";
  margin: 0 9px;
  color: #9aa7b7;
}

.visual-editor-shell .editor-section-footer {
  align-items: center;
}

.primary-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recovery-actions {
  position: relative;
}

.recovery-actions summary {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  color: var(--admin-muted);
  background: #fff;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.recovery-actions summary::-webkit-details-marker {
  display: none;
}

.recovery-actions div,
.recovery-actions button {
  font: inherit;
}

.recovery-actions button {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 4;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #ffd3d7;
  border-radius: 12px;
  color: #9f1239;
  background: #fff7f8;
  font-weight: 850;
  box-shadow: 0 18px 42px rgba(31,54,86,.14);
}

.section-focused-preview {
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: #f6fafb;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62);
}

.section-focused-preview .mini-site {
  min-width: 0;
}

.section-focused-preview .focused-mini-site header {
  background: #fff;
}

.mini-section-preview {
  min-height: 260px;
  padding: 24px;
}

.mini-section-preview h2 {
  margin: 0 0 6px;
  color: #641419;
  font-family: Georgia, serif;
}

.mini-gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mini-gallery-strip figure {
  margin: 0;
}

.mini-gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

.mini-gallery-strip figcaption {
  margin-top: 5px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}

.mini-faq-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-faq-list details {
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #fff;
}

.mini-faq-list summary {
  font-weight: 900;
}

@media (max-width: 1180px) {
  .visual-editor-shell .editor-workspace {
    grid-template-columns: 1fr;
  }

  .visual-editor-shell .section-navigator {
    position: static;
    max-height: none;
  }

  .visual-editor-shell .section-navigator #sectionNavigator {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .homepage-layout-stats,
  .visual-editor-shell .homepage-layout-summary dl,
  .mini-gallery-strip {
    grid-template-columns: 1fr;
  }

  .visual-editor-shell .section-edit-panel {
    padding: 16px;
  }

  .back-to-structure {
    display: inline-flex;
  }

  .visual-editor-shell .section-card-select {
    grid-template-columns: 20px 32px minmax(0, 1fr);
  }

  .visual-editor-shell .section-card-edit {
    display: none;
  }

  .layout-info-strip {
    display: grid;
    gap: 6px;
  }

  .layout-info-strip span + span::before {
    content: none;
  }
}
