/* One calendar leaf, using the clinic's existing shell and theme. */
body.landing-page-active .shell {
  height: 100dvh;
  min-height: 0;
}
body.landing-page-active main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
}
body.landing-page-active #pane-service.on {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}
body.landing-page-active #service-welcome,
body.landing-page-active #clinic-banner-band,
body.landing-page-active #clinic-video-band {
  display: none;
}
body.landing-page-active #service-list {
  width: 100%;
  margin: 0;
}
body.landing-page-active .simband {
  flex: none;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 24px;
}
body.landing-page-active .legalfoot {
  flex-shrink: 0;
}
.lp-sheet {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 4px solid var(--accent);
  padding-top: 24px;
}
.lp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  grid-column: 1 / -1;
  margin-bottom: 12px;
}
.lp-welcome {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.lp-welcome .title,
.lp-welcome .eyebrow {
  margin: 0;
}
.lp-welcome .title {
  font-size: 32px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.lp-copy {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lp-media {
  flex: none;
  width: 100%;
  min-width: 0;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-card);
  background: var(--surface);
}
.lp-book {
  font-size: 16px;
  width: 100%;
  min-height: 48px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lp-section {
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--ground);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.lp-section:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}
.lp-summary .lp-section {
  width: 100%;
  text-decoration: none;
}
.lp-section-summary,
.lp-explore,
.lp-media-open {
  display: none;
}
.lp-compact > .lp-summary,
.lp-compact .lp-media {
  display: none;
}
.lp-compact > .lp-explore,
.lp-compact .lp-media-open {
  display: block;
}
.lp-explore,
.lp-fallback {
  grid-column: 1 / -1;
}
.lp-dialog::-webkit-scrollbar,
.lp-dialog-body::-webkit-scrollbar {
  width: 8px;
}
.lp-dialog::-webkit-scrollbar-track,
.lp-dialog-body::-webkit-scrollbar-track {
  background: var(--surface);
}
.lp-dialog::-webkit-scrollbar-thumb,
.lp-dialog-body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
body:has(.lp-dialog[open]) {
  overflow: hidden;
}
.lp-dialog {
  inset: 0;
  padding: 0;
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--ground);
  color: var(--ink);
}
.lp-dialog[open] {
  display: flex;
  flex-direction: column;
}
.lp-dialog::backdrop {
  background: var(--modal-backdrop);
  -webkit-backdrop-filter: blur(var(--modal-backdrop-blur));
  backdrop-filter: blur(var(--modal-backdrop-blur));
}
.lp-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.lp-dialog-head h2 {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.lp-dialog-head .cta {
  width: auto;
  flex-shrink: 0;
  min-height: 44px;
}
.lp-dialog-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  gap: 24px;
}
.lp-detail {
  display: grid;
  gap: 12px;
}
.lp-detail h3 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.lp-dialog .prac-group-h,
.lp-dialog .prac-grid {
  margin: 0;
}
/* The groups keep the sheet's own 24px rhythm. */
.lp-dialog .prac-groups,
.lp-dialog .prac-group {
  display: grid;
  gap: 24px;
}
.lp-dialog .lp-media {
  width: 100%;
  height: auto;
  max-height: 60dvh;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .lp-sheet {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  /* Fewer than three sections share the row instead of leaving an empty
     third of the page. */
  .lp-sheet:not(:has(> .lp-summary ~ .lp-summary ~ .lp-summary)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-sheet:not(:has(> .lp-summary ~ .lp-summary)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-hero {
    flex-direction: row;
    gap: 32px;
    margin-bottom: 0;
  }
  .lp-media {
    flex: 0 1 38%;
    width: 38%;
    height: 250px;
  }
  .lp-book {
    max-width: 600px;
  }
  .lp-section {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .lp-section:hover {
    background: transparent;
  }
  .lp-summary .lp-section {
    margin-top: auto;
    width: auto;
    text-decoration: underline;
  }
  .lp-section-summary {
    display: grid;
    gap: 12px;
  }
  .lp-section-summary h2 {
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .lp-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .lp-dialog .lp-section-summary {
    display: none;
  }
  .lp-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-compact > .lp-summary[data-section="trust"],
  .lp-compact > .lp-summary[data-section="info"] {
    display: flex;
  }
  .lp-compact .lp-media {
    display: block;
  }
  .lp-compact .lp-media-open {
    display: none;
  }
  .lp-explore {
    text-decoration: underline;
  }
}
@media (max-width: 600px) {
  body.landing-page-active main {
    padding: 24px;
  }
  body.landing-page-active #pane-service.on {
    align-items: flex-start;
  }
  .lp-welcome .title {
    font-size: 26px;
  }
  .lp-dialog-head,
  .lp-dialog-body {
    padding: 20px;
  }
  .lp-dialog-head {
    gap: 20px;
  }
  .lp-dialog {
    max-height: calc(100dvh - 32px);
  }
}
/* Short editor previews keep their invitation in document order inside
   the shell, while the page itself stays within the viewport. */
@media (max-height: 640px) {
  body.landing-page-active .shell {
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.landing-page-active main {
    flex: none;
    display: block;
  }
  body.landing-page-active #pane-service.on {
    display: block;
  }
  .lp-dialog[open] {
    display: block;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .lp-dialog-body {
    overflow: visible;
  }
}
