/* "Nature" homepage theme.
   Airy woodland practice homepage: a transparent navbar over a light forest
   hero carrying the page title on a frosted plate, running text in the serif
   face (Lora) under firm sans headings, standing day cards for the opening
   hours in a brighter leaf green, and a light footer under a thin accent rule.
   Mobile-first; all accent surfaces run through --c-accent so the per-practice
   override (tenant_theme_css) applies, and the leaf tone is mixed from it.
   Webfonts are self-hosted but optional — the stacks fall back to
   Georgia / system. */

/* Self-hosted fonts (optional — see README.txt; falls back gracefully). */
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-accent: #4d8657;
  --c-text: #404040;
  --c-text-strong: #2f3a31;
  --c-muted: #777777;
  --c-band: #f3f7ef;
  --c-border: #e1e8dc;
  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  /* Derived accent tones — color-mix so they track an overridden --c-accent. */
  --c-accent-dark: color-mix(in srgb, var(--c-accent) 78%, black);
  --c-accent-soft: color-mix(in srgb, var(--c-accent) 10%, white);
  /* Second, brighter green — the leaf tone that marks the opening-hours cards.
     Mixed from the accent so a practice's own colour carries it along. */
  --c-accent-leaf: color-mix(in srgb, var(--c-accent) 35%, #c8d400);
  --shadow-card: 0 2px 14px rgba(47, 58, 49, 0.18);
}

/* ---------- base ---------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;  /* anchor jumps clear the sticky navbar */
}

/* Running text is the serif face and headings are the sans one — the woodland
   look reads warm in prose and firm in its headings, not the other way round. */
body {
  margin: 0;
  overflow-x: clip;  /* quote-banner 50vw breakout — clip stray scrollbar px */
  background: #fff;
  color: var(--c-text);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  color: var(--c-text-strong);
  font-weight: 700;
}

/* Controls and small print stay in the sans face — they are UI, not prose. */
button,
input,
select,
textarea,
.navbar,
.footer__hours,
.footer__nav {
  font-family: var(--font-sans);
}

a {
  color: var(--c-accent);
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- navbar ---------- */

/* Transparent header overlaying the forest hero (logo + name read on the light
   woodland); theme.js adds .is-scrolled past the hero → it turns solid white so
   the nav stays legible over the white content below. */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* The forest is at its brightest in the middle, and on a phone `cover` crops
   the hero to exactly that — the sun flare lands under the brand and the nav,
   where a text-shadow halo alone stops carrying. A pale veil fades out below
   the bar, so the woodland still shows through under the title's plate. */
.navbar:not(.is-scrolled)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7rem;
  background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.navbar.is-scrolled {
  background: #fff;
  border-bottom-color: var(--c-border);
  box-shadow: 0 1px 8px rgba(47, 58, 49, 0.08);
}

.navbar__inner {
  position: relative; /* over the veil above — both are inside .navbar */
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.5rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.navbar__logo {
  height: 3.5rem;
  width: auto;
}

.navbar__name {
  color: var(--c-accent);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
}

/* Unscrolled, the bar is transparent over the light woodland hero, where green
   on pale foliage barely reads. A soft white halo carries brand and links until
   the scrolled state paints the bar white. */
.navbar:not(.is-scrolled) .navbar__name,
.navbar:not(.is-scrolled) .navbar__link {
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95);
}

.navbar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.6rem;
}

.navbar__link {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--c-text-strong);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.navbar__link:hover {
  color: var(--c-accent);
}

.navbar__link.is-active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: clamp(18rem, 44vw, 31rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  /* Pale woodland gradient fallback when no photo whatsoever is available —
     light, so the dark title stays readable on it as it does over a photo. */
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--c-accent) 10%, white),
    color-mix(in srgb, var(--c-accent) 26%, white)
  );
  background-size: cover;
  background-position: center;
}

/* Bundled default photo (generated by scripts/demo_images). A practice
   overrides it by uploading its own hero background (inline background-image on
   the header) or by adding a hero block (an <img> on top, .hero--block). The
   title sits on its own frosted plate, so no extra scrim is needed. */
.hero:not(.hero--block) {
  background-image: url("hero.jpg");
}

.hero__title {
  position: relative;
  z-index: 2;
  margin: 0;
  /* Soft frosted plate carrying the practice name over the light woodland. */
  background: rgba(255, 255, 255, 0.72);
  color: var(--c-accent-dark);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  padding: 0.5em 1em;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(47, 58, 49, 0.12);
}

/* Hero block images (one static, or a carousel) fill the header behind the
   veil + title. cms-hero is the asset-free block structure; this is its UI. */
.cms-hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.cms-hero__track {
  position: absolute;
  inset: 0;
  height: 100%;
}

.cms-hero__slide {
  margin: 0;
}

.cms-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cms-hero[data-transition="fade"] .cms-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cms-hero[data-transition="fade"] .cms-hero__slide.is-active,
.cms-hero[data-transition="fade"]:not(.is-ready) .cms-hero__slide:first-child {
  opacity: 1;
}

.cms-hero[data-transition="slide"] .cms-hero__track {
  display: flex;
  transition: transform 0.6s ease;
}

.cms-hero[data-transition="slide"] .cms-hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .cms-hero__slide,
  .cms-hero__track {
    transition: none;
  }
}

/* ---------- content sections ---------- */

.content {
  max-width: 70rem;
  margin-inline: auto;
  padding: 0 1.25rem;
}

/* render_homepage_blocks wraps each block in a .cms-block div — put the section
   rhythm on the wrapper (a bare `.content > section` never matches). */
.content > .cms-block,
.content > .cms-block--full {
  margin-block: 3rem;
}

/* Shared section-title look: firm sans, near-black, centred. Green is kept for
   what a visitor can act on — links, buttons, the day cards — so the page reads
   calm and the accents mean something. */
.cms-team__title,
.cms-opening-hours__title,
.cms-gallery__title,
.cms-services__title,
.cms-patient-info__title,
.cms-contact__title,
.cms-prescription-link__title,
.cms-appointments-link__title,
.cms-map__title,
.cms-text h1,
.cms-text h2,
.cms-text h3 {
  margin: 0 0 1.5rem;
  color: var(--c-text-strong);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  text-align: center;
}

/* ---------- rich text (conjunto's own text block) ---------- */

/* Prose block: a comfortable measure, centred on the home page the way a short
   welcome note wants to be read — a long legal page (one text block on its own
   URL) keeps its ranged-left setting. */
.cms-text {
  max-width: 46rem;
  margin-inline: auto;
}

.cms-text p {
  margin: 0 0 1rem;
}

.cms-text > :last-child {
  margin-bottom: 0;
}

.content--home .cms-text {
  text-align: center;
}

/* On a block's own page the hero plate already carries that block's title —
   printing it again right below is a stutter, so the section title steps aside
   there (the home page, where every section needs its own heading, keeps it). */
.content:not(.content--home) > .cms-block > section > [class$="__title"] {
  display: none;
}

/* Shared filled pill button (CTAs, downloads). */
.cms-prescription-link__cta,
.cms-appointments-link__cta,
.cms-patient-info__download {
  display: inline-block;
  padding: 0.55em 1.8em;
  border: 2px solid var(--c-accent);
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cms-prescription-link__cta:hover,
.cms-appointments-link__cta:hover,
.cms-patient-info__download:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
}

/* ---------- opening hours (day cards) ---------- */

/* Standing cards, centred as a row rather than stretched across the band: a
   leaf-green rule across the top, the times small above and the day letters
   large at the foot — the shape a passer-by reads in one glance. */
.cms-opening-hours__days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 6.5rem));
  justify-content: center;
  gap: 1.25rem;
}

.cms-opening-hours__day {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 8.5rem;
  border: 0;
  border-top: 5px solid var(--c-accent-leaf);
  padding: 1.1rem 0.6rem 0.9rem;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow-card);
}

/* The day today is filled in the practice's own green, letters and times white. */
.cms-opening-hours__day.is-today {
  background: var(--c-accent);
  color: #fff;
}

.cms-opening-hours__day.is-today .cms-opening-hours__day-abbr,
.cms-opening-hours__day.is-today .cms-opening-hours__times,
.cms-opening-hours__day.is-today .cms-opening-hours__note {
  color: #fff;
}

/* Show the big day abbreviation (MO/DI/…), hide the long name — the card style. */
.cms-opening-hours__day-name {
  display: none;
}

.cms-opening-hours__day-abbr {
  display: block;
  color: var(--c-accent-leaf);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

/* Times on top (small), the big day abbreviation below — the source's card. */
.cms-opening-hours__times {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-text-strong);
}

.cms-opening-hours__note {
  display: block;
  color: var(--c-muted);
  font-size: 0.8em;
}

.cms-opening-hours__empty {
  color: var(--c-muted);
  text-align: center;
}

/* ---------- team ---------- */

/* Vertical list — each member a row (round photo left, text right), matching
   the source's team layout. */
.cms-team__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* The block emits photo, name, role and bio as siblings — a flex row would lay
   them out as four columns (which is what this used to do, invisible until a
   member had a role *and* a bio). A two-column grid keeps the portrait on the
   left with the text stacked beside it. */
.cms-team__member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
}

.cms-team__member:has(.cms-team__photo) {
  column-gap: 2rem;
}

.cms-team__name,
.cms-team__role,
.cms-team__bio {
  grid-column: 2;
}

@media (min-width: 34em) {
  .cms-team__photo {
    width: 7.5rem;
    height: 7.5rem;
  }
}

.cms-team__photo {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  /* Smaller on a phone so the qualifications keep a readable measure beside it. */
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  padding: 2px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(47, 58, 49, 0.2);
}

.cms-team__name {
  margin: 0;
  color: var(--c-text-strong);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
}

.cms-team__role {
  margin: 0.3rem 0 0;
  color: var(--c-text-strong);
  font-weight: 700;
  font-size: 0.95rem;
}

.cms-team__bio {
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

.cms-team__bio p {
  margin: 0.35rem 0;
}

/* ---------- services ---------- */

.cms-services__group + .cms-services__group {
  margin-top: 2rem;
}

.cms-services__category {
  margin: 0 0 0.75rem;
  color: var(--c-text-strong);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}

.cms-services__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
  display: grid;
  gap: 0.5rem;
}

.cms-services__item {
  position: relative;
  padding-left: 1.4rem;
}

.cms-services__item::before {
  content: "🌿";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9em;
}

.cms-services__name {
  margin: 0;
  font-weight: 600;
  color: var(--c-text-strong);
}

.cms-services__badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05em 0.6em;
  border-radius: 999px;
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

.cms-services__description {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.cms-services__description p {
  margin: 0.2rem 0 0.4rem;
}

/* ---------- patient info ---------- */

/* Columns share the page's reading measure instead of the full band. */
.cms-patient-info__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 54rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem;
}

/* Airy, text-first info columns (no heavy card) — matches the source's plain,
   centred welcome / reachability sections. */
.cms-patient-info__item {
  padding: 0 1rem;
  text-align: center;
}

.cms-patient-info__name {
  margin: 0 0 0.5rem;
  color: var(--c-text-strong);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
}

.cms-patient-info__body {
  font-size: 0.95rem;
}

.cms-patient-info__body p {
  margin: 0.35rem 0;
}

.cms-patient-info__download {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

/* ---------- prescription / appointments CTA + embedded form ---------- */

.cms-prescription-link,
.cms-appointments-link {
  max-width: 38rem;
  margin-inline: auto;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  background: var(--c-band);
  text-align: center;
}

.cms-prescription-link__intro,
.cms-appointments-link__intro {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.cms-prescription-link__intro p,
.cms-appointments-link__intro p {
  margin: 0.3rem 0;
}

.cms-prescription-link__form {
  text-align: left;
}

.cms-prescription-link__field {
  margin-bottom: 1rem;
}

.cms-prescription-link__field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-strong);
}

.cms-prescription-link__field input,
.cms-prescription-link__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6em 0.8em;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  color: var(--c-text-strong);
}

.cms-prescription-link__field input:focus,
.cms-prescription-link__field textarea:focus {
  border-color: var(--c-accent);
  outline: none;
}

.cms-prescription-link__field--consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cms-prescription-link__field--consent label {
  order: 1;
  margin: 0;
  font-weight: 400;
}

.cms-prescription-link__field--consent input {
  width: auto;
  margin-top: 0.2rem;
}

.cms-prescription-link__hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--c-muted);
}

.cms-prescription-link__submit {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55em 1.9em;
  border: 2px solid var(--c-accent);
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cms-prescription-link__submit:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
}

.cms-prescription-link__submit:disabled {
  background: var(--c-border);
  border-color: var(--c-border);
  color: var(--c-muted);
  cursor: not-allowed;
}

.cms-prescription-link__error,
.cms-prescription-link__field .errorlist,
.cms-contact__field .errorlist {
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
  color: #b3261e;
  font-size: 0.88rem;
}

.cms-prescription-link__sent {
  color: var(--c-accent-dark);
  font-weight: 600;
}

.cms-prescription-link__unavailable {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--c-muted);
}

/* ---------- gallery ---------- */

/* Arched portraits — tall photos rounded into an arch, an organic shape that
   carries the theme's soft, natural feel. Serif captions centred underneath,
   on the pale green band tone. */
.cms-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1.75rem 1.25rem;
}

.cms-gallery__item { margin: 0; }

.cms-gallery__link {
  display: block;
  overflow: hidden;
  background: var(--c-band);
  border-radius: 999px 999px 12px 12px;
  transition: transform .35s ease;
}

.cms-gallery__link:hover,
.cms-gallery__link:focus-visible { transform: translateY(-4px); }

.cms-gallery__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .5s ease;
}

.cms-gallery__link:hover .cms-gallery__image,
.cms-gallery__link:focus-visible .cms-gallery__image { transform: scale(1.05); }

.cms-gallery__caption {
  margin-top: 0.6rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  color: var(--c-muted);
}

/* ---------- contact ---------- */

.cms-contact__group {
  margin-bottom: 1.5rem;
  text-align: center;
}

.cms-contact__group-title {
  margin: 0 0 0.4rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 700;
}

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

.cms-contact__item {
  padding: 0.15rem 0;
}

.cms-contact__primary {
  color: var(--c-accent);
}

.cms-contact__privacy,
.cms-contact__hint {
  font-size: 0.85rem;
  color: var(--c-muted);
  text-align: center;
}

.cms-contact__form {
  max-width: 36rem;
  margin-inline: auto;
}

.cms-contact__field {
  margin-bottom: 1rem;
}

.cms-contact__field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-strong);
}

.cms-contact__field input,
.cms-contact__field textarea,
.cms-contact__field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6em 0.8em;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font: inherit;
  color: var(--c-text-strong);
}

.cms-contact__field input:focus,
.cms-contact__field textarea:focus,
.cms-contact__field select:focus {
  border-color: var(--c-accent);
}

.cms-contact__submit {
  display: inline-block;
  padding: 0.55em 1.9em;
  border: 2px solid var(--c-accent);
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cms-contact__submit:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
}

.cms-contact__sent {
  color: var(--c-accent-dark);
  font-weight: 600;
  text-align: center;
}

.cms-contact__empty {
  color: var(--c-muted);
  text-align: center;
}

/* ---------- quote banner ---------- */

.cms-quote-banner {
  margin-inline: calc(50% - 50vw);  /* full-width breakout */
  padding: 3.5rem 1.5rem;
  background: var(--c-accent-soft);
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: center;
}

.cms-quote-banner--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 58, 49, 0.45);
}

.cms-quote-banner__inner {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
}

.cms-quote-banner__quote {
  margin: 0;
  color: var(--c-accent-dark);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.5;
}

.cms-quote-banner--photo .cms-quote-banner__quote {
  color: #fff;
}

.cms-quote-banner__attribution {
  margin: 0.6rem 0 0;
  color: var(--c-muted);
  font-size: 0.95rem;
}

.cms-quote-banner--photo .cms-quote-banner__attribution {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- footer ---------- */

/* ---------- footer ----------

   Three questions, three columns: who and where, when, and where to next. They
   only read as three if they share one edge — the earlier version centred two
   of them and stretched the hours into a table, so nothing lined up. Everything
   is ranged left on a common baseline now, the practice name is the one loud
   voice and the two section labels step back into small spaced caps. */

.footer {
  background: #fff;
  border-top: 2px solid var(--c-accent-leaf);
  margin-top: 4rem;
  padding: 2.5rem 1.25rem 0;
  font-size: 0.9rem;
}

.footer__inner {
  max-width: 62rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem 3rem;
}

/* The practice's name — the sender, not a section label. */
.footer__col--contact .footer__heading {
  margin: 0 0 0.6rem;
  color: var(--c-text-strong);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
}

/* "Opening hours" / "Navigation" — quiet rubrics above their content. */
.footer__col:not(.footer__col--contact) .footer__heading {
  margin: 0 0 0.7rem;
  color: var(--c-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer__contact {
  font-style: normal;
  line-height: 1.55;
}

.footer__line {
  margin: 0;
}

/* The phone number gets a little air from the address above it. */
.footer__line + .footer__line {
  margin-top: 0.35rem;
}

.footer__contact a {
  color: var(--c-text);
  text-decoration: none;
}

.footer__contact a:hover {
  color: var(--c-accent);
}

/* Day and time as a tight pair, not stretched across the column; tabular
   figures keep the times in one true column. */
.footer__hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__hours-row {
  display: flex;
  gap: 0.9rem;
  padding: 0.1rem 0;
}

/* One column for the day names: a grid per row would measure its own columns,
   so every time started at a different x. The longest weekday sets the width. */
.footer__day {
  min-width: 6.5rem;
  color: var(--c-text-strong);
  font-weight: 600;
}

.footer__slots {
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}

.footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.9;
}

.footer__nav a {
  color: var(--c-text);
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--c-accent);
}

.footer__login {
  color: var(--c-accent);
  text-decoration: none;
}

.footer__login:hover {
  text-decoration: underline;
}

.footer__bottom {
  max-width: 62rem;
  margin: 2rem auto 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--c-border);
  font-size: 0.85rem;
  color: var(--c-muted);
}
/* Location map block (cms-map) — baseline styling for the shared OSM location
   block (added with the map engine block). Token-safe: only uses --c-accent. */
.cms-map__title {
  margin: 0 0 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--c-accent);
}
.cms-map__link {
  display: block;
  max-width: 26rem;
  margin-inline: auto;
  text-decoration: none;
  color: inherit;
}
/* Softly rounded inset picture rather than a framed panel. */
.cms-map__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.5rem;
  border: 1px solid var(--c-border);
  outline: 3px solid transparent;
  outline-offset: -3px;
  transition: outline-color 0.15s ease;
}
.cms-map__link:hover .cms-map__image,
.cms-map__link:focus-visible .cms-map__image {
  outline-color: var(--c-accent);
}
.cms-map__caption {
  display: block;
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.92rem;
  opacity: 0.75;
}
/* The practice's own directions — what the address cannot say. Told rather than
   listed: this theme's serif face on its soft green ground, in the arched form
   it gives photos and notices, on the map's axis and width. */
.cms-map__directions {
  max-width: 34rem;
  margin: 1.4rem auto 0;
  padding: 1.2rem 1.5rem;
  background: var(--c-band);
  border: 1px solid var(--c-border);
  border-radius: 1.5rem;
  color: var(--c-text);
}
.cms-map__directions p {
  margin: 0 0 0.6rem;
}
.cms-map__directions p:last-child {
  margin-bottom: 0;
}

/* ---------- announcements ---------- */

/* Dated practice notices in the arched form this theme uses for its photos —
   a soft panel with a rounded top, the serif face for the headline and the
   period set in italic underneath. The tone stays a thin line at the foot of
   the panel: growth, not alarm. */
.cms-announcements__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 46rem;
  display: grid;
  gap: 1.25rem;
}

/* The tone tints the whole panel — a notice should read as one at a glance,
   not through a hairline at its foot. The arch stays the theme's own shape. */
.cms-announcements__item {
  --a-tone: var(--c-muted);
  padding: 1.5rem 1.6rem 1.3rem;
  background: color-mix(in srgb, var(--a-tone) 8%, white);
  border: 1px solid color-mix(in srgb, var(--a-tone) 28%, white);
  border-bottom: 3px solid var(--a-tone);
  border-radius: 2.5rem 2.5rem 10px 10px;
  text-align: center;
}

.cms-announcements__item--info { --a-tone: var(--c-accent); }
.cms-announcements__item--important { --a-tone: #a4700d; }
.cms-announcements__item--alert { --a-tone: #a8392c; }
.cms-announcements__item--good { --a-tone: var(--c-accent-dark); }

.cms-announcements__headline {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text-strong);
}

.cms-announcements__period {
  margin: 0.3rem 0 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--a-tone);
}

.cms-announcements__body {
  color: var(--c-text);
  max-width: 58ch;
  margin-inline: auto;
}
.cms-announcements__body p { margin: 0 0 0.6rem; }
.cms-announcements__body p:last-child { margin-bottom: 0; }
