/* Cabinet Dentaire Odonthème, v2.
   The palette is taken from the practice itself: pale sage walls, oak claustras
   (the vertical slats in every photo), the yellow waiting-room chair, and the
   original site's periwinkle deepened for legibility.
   Type: Lexend, drawn from reading-legibility research; plain zeros for addresses. */

@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f4f6f3;
  --surface: #e2eae5;
  --ink: #17201c;
  --muted: #55615b;
  --line: rgb(23 32 28 / 0.13);
  --oak: #b4864f;
  --action: #3550c8;
  --action-hover: #2a41ad;
  --on-action: #ffffff;
  --urgent: #f4e8c3;
  --photo-filter: none;

  --font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --f-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --f-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --f-heading: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
  --f-page: clamp(2.125rem, 1.6rem + 1.9vw, 3.25rem);
  --f-display: clamp(2.375rem, 1.5rem + 3vw, 4rem);

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1200px;
  --r-photo: 12px;
  --r-panel: 22px;
  --space: clamp(56px, 7vw, 112px);
  --masthead: 76px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121715;
    --surface: #1c2420;
    --ink: #e8eeea;
    --muted: #a3b0a9;
    --line: rgb(232 238 234 / 0.14);
    --oak: #c99d68;
    --action: #a9b8f5;
    --action-hover: #c4cff9;
    --on-action: #0f1a3d;
    --urgent: #2a2615;
    --photo-filter: brightness(0.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--masthead) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--f-body);
  font-weight: 340;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; padding-bottom: var(--space); }

img { display: block; max-width: 100%; height: auto; filter: var(--photo-filter); }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 420; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 0.9em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--action-hover); }

:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 0.7em 1.2em; border-radius: 999px;
  background: var(--action); color: var(--on-action);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ typography */

.display {
  font-size: var(--f-display);
  font-weight: 250;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.display--page { font-size: var(--f-page); line-height: 1.05; letter-spacing: -0.025em; }
.heading { font-size: var(--f-heading); font-weight: 300; letter-spacing: -0.015em; }
.lead { font-size: var(--f-lead); font-weight: 300; line-height: 1.45; letter-spacing: -0.005em; }
.prose { max-width: 62ch; }
.prose--lead { font-size: var(--f-lead); font-weight: 300; line-height: 1.5; max-width: 34ch; }

.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--oak);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.text-link:hover { color: var(--action); text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- pills */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 480;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.pill--solid { background: var(--action); color: var(--on-action); }
.pill--solid:hover { background: var(--action-hover); color: var(--on-action); }
.pill--line { border-color: var(--ink); color: var(--ink); }
.pill--line:hover { background: var(--ink); color: var(--bg); }
.pill--lg { min-height: 52px; font-size: 1rem; padding-inline: 1.6em; }

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

/* -------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.masthead.is-scrolled { border-bottom-color: var(--line); }
.masthead__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  min-height: var(--masthead);
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__ring { width: 32px; height: 32px; flex: none; }
.brand__ring circle { fill: none; stroke: currentColor; stroke-width: 19; }
.brand__text { display: grid; line-height: 1.05; }
.brand__kind { color: var(--muted); font-size: 0.875rem; letter-spacing: 0.01em; }
.brand__name { font-size: 1.25rem; font-weight: 520; letter-spacing: -0.01em; }

.menu { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.menu__links { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.menu__links a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 450;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
  transition: text-decoration-color 0.2s;
}
.menu__links a:hover { text-decoration-color: var(--line); }
.menu__links a[aria-current="page"] { text-decoration-color: var(--oak); }
.menu__actions { display: flex; align-items: center; gap: 20px; }
.menu__phone { color: var(--ink); font-size: 1rem; font-weight: 450; line-height: inherit; text-decoration: none; white-space: nowrap; }
.menu__phone:hover { color: var(--action); }

.menu-button {
  display: none;
  min-height: 44px;
  padding: 0 1.1em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 480;
  cursor: pointer;
}

@media (max-width: 1079.98px) {
  :root { --masthead: 68px; }
  .menu-button { display: block; }
  .menu {
    position: fixed;
    inset: var(--masthead) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(28px, 6vh, 64px) var(--gutter) max(32px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
  html.menu-open { overflow: hidden; }
  .menu-open .masthead { border-bottom-color: var(--line); }
  .menu__links { flex-direction: column; gap: 4px; }
  .menu__links a { display: inline-block; font-size: clamp(2rem, 1.5rem + 3vw, 2.75rem); font-weight: 300; letter-spacing: -0.02em; }
  .menu__actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .menu__actions .pill { min-height: 56px; }
  .menu__phone { align-self: center; font-size: 1.125rem; }

  html:not(.js) .masthead__inner { flex-wrap: wrap; }
  html:not(.js) .menu { position: static; opacity: 1; visibility: visible; width: 100%; padding: 0 0 12px; }
  html:not(.js) .menu-button { display: none; }
}

/* ------------------------------------------------------------------ home */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(16px, 3vw, 48px);
}
.hero__text { display: grid; gap: clamp(24px, 2.6vw, 36px); }
.hero__text .lead { max-width: 30ch; color: var(--muted); }
.hero__media { position: relative; isolation: isolate; }
.claustra {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--r-photo);
}
.claustra img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .claustra { animation: hero-fade 0.9s ease-out 0.1s both; }
  .claustra img { animation: hero-zoom 1.6s cubic-bezier(0.2, 0.6, 0.2, 1) 0.1s both; }
  @keyframes hero-fade { from { opacity: 0; } }
  @keyframes hero-zoom { from { transform: scale(1.06); } }
}

.keyfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 64px);
  margin: var(--space) 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.keyfacts dt { color: var(--muted); font-size: var(--f-small); font-weight: 400; margin-bottom: 6px; }
.keyfacts dd { margin: 0; font-size: var(--f-lead); font-weight: 300; line-height: 1.35; }
.keyfacts a { color: var(--ink); text-decoration-color: var(--oak); text-decoration-thickness: 2px; }
.keyfacts a:hover { color: var(--action); }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  margin-top: var(--space);
}
.split__media { grid-column: 1 / 7; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-photo); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text { grid-column: 7 / -1; font-size: var(--f-lead); font-weight: 300; line-height: 1.5; }
.split__links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 1.6em; font-size: var(--f-body); }

/* ------------------------------------------------------------ le cabinet */

.intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  padding-top: clamp(24px, 4vw, 64px);
}
.intro__text { grid-column: 1 / 6; display: grid; gap: clamp(28px, 3vw, 44px); }
.intro__media { grid-column: 7 / -1; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-photo); }
.intro__media img { width: 100%; height: 100%; object-fit: cover; }

.rooms {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: clamp(32px, 4vw, 64px);
  margin-top: var(--space);
}
.rooms__tall { grid-column: 1 / 6; grid-row: 1 / 3; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-photo); }
.rooms__text { grid-column: 7 / -1; align-self: center; }
.rooms__small { grid-column: 10 / -1; align-self: end; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-photo); }
.rooms img, .mosaic img { width: 100%; height: 100%; object-fit: cover; }

.mosaic {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(10px, 1.2vw, 18px);
  height: clamp(240px, 28vw, 420px);
  margin-top: var(--space);
}
.mosaic figure { overflow: hidden; border-radius: var(--r-photo); }

/* ------------------------------------------------------------- l'équipe */

.team-head { display: grid; gap: clamp(28px, 3vw, 44px); padding-top: clamp(24px, 4vw, 64px); }
.team-head__photo { aspect-ratio: 2.6; overflow: hidden; border-radius: var(--r-photo); }
.team-head__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

.heading + .doctors { margin-top: clamp(28px, 3vw, 44px); }
[aria-labelledby="praticiens"] { margin-top: clamp(28px, 3.5vw, 52px); }
.doctors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 3vw, 48px) clamp(16px, 2vw, 28px); }
.doctor { display: flex; flex-direction: column; gap: 18px; }
.doctor__open {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.doctor__photo { display: block; aspect-ratio: 4 / 5; margin-bottom: 14px; overflow: hidden; border-radius: var(--r-photo); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__name { font-size: 1.125rem; font-weight: 500; line-height: 1.3; }
.doctor__role { color: var(--muted); font-size: var(--f-small); }
.doctor__more {
  justify-self: start;
  margin-top: 8px;
  font-size: var(--f-small);
  font-weight: 480;
  text-decoration: underline;
  text-decoration-color: var(--oak);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.doctor__open:hover .doctor__more { color: var(--action); text-decoration-color: currentColor; }
.doctor > .pill { margin-top: auto; font-size: 0.9375rem; padding-inline: 1em; }

.assistants {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  margin-top: var(--space);
}
.assistants__intro { grid-column: 1 / 8; display: grid; gap: 20px; align-content: start; }
.assistants__intro p { color: var(--muted); }
.assistants__grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(16px, 2vw, 28px); }
.assistants__grid figure { aspect-ratio: 1; margin-bottom: 14px; overflow: hidden; border-radius: var(--r-photo); }
.assistants__grid img { width: 100%; height: 100%; object-fit: cover; }
.assistants__grid h3 { font-size: 1.125rem; }
.assistants__grid p { color: var(--muted); font-size: var(--f-small); line-height: 1.45; }

/* Practitioner profile: a dialog over the page, so nothing on the page moves. */
.sheet {
  width: min(860px, calc(100% - 2 * var(--gutter)));
  max-width: none;
  max-height: min(88vh, 740px);
  padding: 0;
  border: 0;
  border-radius: var(--r-panel);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 100px -40px rgb(0 0 0 / 0.55);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}
.sheet[open] { opacity: 1; transform: none; }
@starting-style { .sheet[open] { opacity: 0; transform: translateY(20px); } }
.sheet::backdrop {
  background: rgb(10 14 12 / 0);
  transition: background-color 0.3s, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}
.sheet[open]::backdrop { background: rgb(10 14 12 / 0.55); }
@starting-style { .sheet[open]::backdrop { background: rgb(10 14 12 / 0); } }
html:has(.sheet[open]) { overflow: hidden; }

.sheet__inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); max-height: inherit; }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 52px); overflow-y: auto; }
.sheet__name { padding-right: 48px; font-size: var(--f-heading); font-weight: 300; letter-spacing: -0.015em; }
.sheet__role { margin: 0.35em 0 0; color: var(--muted); }
.sheet .pill { align-self: flex-start; margin-top: 28px; }
.sheet__close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  cursor: pointer;
}
.sheet__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.credentials {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--f-small);
  font-weight: 360;
  line-height: 1.5;
}
.credentials li { position: relative; padding-left: 18px; }
.credentials li + li { margin-top: 0.6em; }
.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 3px;
  height: 0.85em;
  border-radius: 2px;
  background: var(--oak);
}

html:not(.js) .sheet { position: static; display: block; width: auto; opacity: 1; transform: none; box-shadow: none; }
html:not(.js) .sheet__photo, html:not(.js) .sheet__close, html:not(.js) .doctor__more { display: none; }
html:not(.js) .sheet__inner { display: block; }

/* -------------------------------------------------------- nous contacter */

.where { display: grid; gap: clamp(28px, 3vw, 44px); padding-top: clamp(24px, 4vw, 64px); }
.where__photo { aspect-ratio: 3.6; overflow: hidden; border-radius: var(--r-photo); }
.where__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 49% 35%; }
.where__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(8px, 2vw, 24px);
}
.access { grid-column: 1 / 6; display: grid; gap: 0; margin: 0; }
.access > div { padding: 20px 0; border-top: 1px solid var(--line); }
.access > div:first-child { padding-top: 0; border-top: 0; }
.access dt { margin-bottom: 6px; color: var(--muted); font-size: var(--f-small); }
.access dd { margin: 0; }
.access__note { margin-top: 6px !important; color: var(--muted); }
.where__map { grid-column: 7 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
.where__map iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--r-photo);
  background: var(--surface);
  filter: var(--photo-filter);
}

.desks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: var(--space);
}
.desk { padding: clamp(28px, 4vw, 56px); border-radius: var(--r-panel); }
.desk .heading { margin-bottom: 0.7em; }
.desk--book { background: var(--surface); }
.desk--book .pill { margin: 0.4em 0 0.8em; }
.desk__phone { font-size: var(--f-heading); font-weight: 300; letter-spacing: -0.01em; }
.desk__phone a { color: var(--ink); text-decoration: none; }
.desk__phone a:hover { color: var(--action); }
.desk__hours { color: var(--muted); }
.desk--urgent { background: var(--urgent); }

/* ------------------------------------------------------------ treatments */

.treatment {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 64px);
}
.treatment__media { grid-column: 1 / 7; overflow: hidden; border-radius: var(--r-photo); }
.treatment__media img { width: 100%; height: 100%; object-fit: cover; }
.treatment__media--portrait { aspect-ratio: 2 / 3; width: min(100%, 400px); justify-self: end; }
.treatment__media--landscape { aspect-ratio: 1; }
.treatment__text { grid-column: 8 / -1; display: grid; gap: clamp(24px, 3vw, 40px); }

.lost { display: grid; gap: 28px; justify-items: start; padding-top: clamp(48px, 10vw, 160px); }

/* -------------------------------------------------------------- colophon */

.colophon { background: var(--surface); }
.colophon__inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 36px clamp(24px, 3vw, 48px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) 0;
}
.colophon__brand { display: flex; align-items: center; gap: 14px; align-self: start; }
.colophon__name { margin: 0; font-size: 1.125rem; font-weight: 520; line-height: 1.25; max-width: 17ch; }
.colophon h2 { margin-bottom: 10px; color: var(--muted); font-size: var(--f-small); font-weight: 450; }
.colophon a { color: var(--ink); text-decoration-color: var(--line); }
.colophon a:hover { color: var(--action); text-decoration-color: currentColor; }
.hours { display: grid; gap: 4px; margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 300px; }
.hours dd { margin: 0; }
.hours dt, .hours dd { white-space: nowrap; }
.colophon__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: clamp(40px, 5vw, 72px) auto 0;
  padding: 22px var(--gutter) 28px;
  color: var(--muted);
  font-size: var(--f-small);
}
.colophon__legal p { margin: 0; }
.colophon__legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.colophon__legal a { color: var(--muted); }
.colophon__legal a[aria-current="page"] { color: var(--ink); }

/* ---------------------------------------------------------- legal pages */

.legal { display: grid; gap: clamp(36px, 4vw, 56px); max-width: calc(820px + 2 * var(--gutter)); padding-top: clamp(24px, 4vw, 64px); }
.legal section { display: grid; gap: 14px; }
.legal .heading { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.legal section p { max-width: 68ch; margin: 0; }
.legal__list { display: grid; gap: 14px; max-width: 68ch; }
.legal__list li { padding-left: 18px; position: relative; }
.legal__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 3px; height: 0.9em; border-radius: 2px; background: var(--oak); }
.legal__list strong { font-weight: 500; }
.legal__facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.legal__facts div { display: grid; grid-template-columns: minmax(0, 15em) 1fr; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal__facts dt { color: var(--muted); }
.legal__facts dd { margin: 0; }
@media (max-width: 639.98px) { .legal__facts div { grid-template-columns: 1fr; } }

/* Placeholders and the "to fill in" box: remove once the real values are in. */
.todo-mark {
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: #ffe58a;
  color: #3a2f00;
}
.todo {
  padding: clamp(20px, 3vw, 32px);
  border: 2px dashed #d6a400;
  border-radius: var(--r-panel);
  background: color-mix(in srgb, #ffe58a 28%, var(--bg));
}
.todo h2 { margin-bottom: 0.6em; font-size: 1.125rem; font-weight: 520; }
.todo p { margin-bottom: 0.8em; }
.todo ul { display: grid; gap: 0.45em; padding-left: 1.2em; list-style: disc; font-size: var(--f-small); }

/* Google Maps only loads after a click (no third-party cookies before that). */
.map-consent {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  justify-self: stretch;
  box-sizing: border-box;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border-radius: var(--r-photo);
  background: var(--surface);
  text-align: center;
}
.map-consent p { max-width: 32ch; margin: 0; color: var(--muted); font-size: var(--f-small); }
html:not(.js) .map-consent button { display: none; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1099.98px) {
  .doctors, .assistants__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colophon__brand { grid-column: 1 / -1; }
}

@media (max-width: 899.98px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .claustra { aspect-ratio: 3 / 2; }
  .keyfacts { grid-template-columns: 1fr; gap: 20px; }

  .split, .intro, .rooms, .assistants, .where__grid, .treatment { grid-template-columns: 1fr; }
  .split > *, .intro > *, .rooms > *, .assistants > *, .where__grid > *, .treatment > * { grid-column: 1 / -1 !important; }
  .rooms { grid-template-rows: none; }
  .rooms__tall { grid-row: auto; aspect-ratio: 4 / 3; }
  .rooms__small { justify-self: end; width: 55%; }
  .intro__media { aspect-ratio: 4 / 3; }
  .treatment__media--portrait { justify-self: start; width: min(100%, 440px); }
  .treatment__media--landscape { aspect-ratio: 4 / 3; }

  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .mosaic figure:nth-child(2) { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 3 / 2; }
  .mosaic figure:not(:nth-child(2)) { aspect-ratio: 3 / 4; }

  .where__photo { aspect-ratio: 16 / 9; }
  .desks { grid-template-columns: 1fr; }
}

@media (max-width: 639.98px) {
  .actions { flex-direction: column; }
  .actions .pill { width: 100%; }

  .doctors { grid-template-columns: 1fr; gap: 32px; }
  .doctor__open { grid-template-columns: 40% 1fr; column-gap: 18px; align-items: start; grid-template-rows: auto auto 1fr; }
  .doctor__photo { grid-row: 1 / span 3; margin-bottom: 0; }
  .doctor__more { align-self: end; }
  .doctor > .pill { width: 100%; }

  .sheet { width: 100%; max-height: 90vh; margin: auto 0 0; border-radius: var(--r-panel) var(--r-panel) 0 0; transform: translateY(100%); }
  .sheet[open] { transform: none; }
  @starting-style { .sheet[open] { transform: translateY(100%); } }
  .sheet__inner { grid-template-columns: 1fr; }
  .sheet__photo { display: none; }
  .sheet__body { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .sheet .pill { align-self: stretch; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
