/* ==========================================================================
   Components – one block per Figma component (Figma name in brackets).
   BEM naming. Platform variants (Plattform=Mobil/Desktop) are handled by the
   type tokens switching at 1024px, not by separate classes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Button [Knapp] – Stil: Svart | Vit | Blå | Vit kontur
   Size: default = Normal (44) on mobile, Stor (54) on desktop.
         --small = Liten (32) on all platforms.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--space-16);
  border-radius: var(--radius-pill);
  font-family: var(--font-text); font-weight: 600;
  font-size: var(--btn-normal-size); line-height: 1.2; letter-spacing: 0.01em;
  white-space: nowrap; text-align: center;
  transition: filter .15s ease, background-color .15s ease;
}
@media (min-width: 1024px) {
  .btn { min-height: 54px; padding: var(--space-16) var(--space-24); font-size: var(--btn-large-size); }
}
.btn--small,
.btn--small.btn { min-height: 32px; padding: var(--space-8) var(--space-16); font-size: var(--btn-small-size); }
@media (min-width: 1024px) { .btn--large-desktop { min-height: 54px; padding: var(--space-16) var(--space-24); font-size: var(--btn-large-size); } }

.btn--black { background: var(--color-graphite); color: var(--color-white); }
.btn--white { background: var(--color-white); color: var(--color-graphite); }
.btn--blue { background: var(--color-medfit-blue); color: var(--color-white); }
.btn--outline { background: var(--color-white); color: var(--color-graphite); box-shadow: inset 0 0 0 1.5px var(--color-graphite); }
.btn:hover { filter: brightness(0.92); }
.btn--white:hover, .btn--outline:hover { filter: none; background: var(--color-tone); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-8); }

/* --------------------------------------------------------------------------
   Tag [Tagg] – Stil: Kontur | Kontur ljus | Erbjudande
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: var(--space-4); border-radius: var(--radius-2);
  font-size: var(--label-size); line-height: var(--label-lh); letter-spacing: var(--label-ls); font-weight: 500;
  white-space: nowrap;
}
.tag--outline { border: 1px solid var(--color-graphite); color: var(--color-graphite); }
.tag--outline-light { border: 1px solid var(--color-white); color: var(--color-white); }
.tag--offer { background: var(--color-yellow); color: var(--color-graphite); }

/* --------------------------------------------------------------------------
   Region mark [Uppdragsmärke] – Yta: Ljus (dark mark) | Mörk (white mark)
   Placeholder artwork; replace with Region Stockholm's official SVG.
   -------------------------------------------------------------------------- */
.region-mark { display: inline-block; flex: none; color: var(--color-graphite); }
.region-mark svg { width: 100%; height: auto; }
.region-mark--light { color: var(--color-white); }
.region-mark--s { width: 78px; }
.region-mark--m { width: 98px; }
.region-mark--l { width: 118px; }
.region-mark--xl { width: 157px; }
.region-mark--xs { width: 71px; }

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.icon { flex: none; display: inline-block; }
.icon-check { width: 20px; height: 20px; }

/* Arrow button [Pilknapp] */
.arrow-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 50px; height: 34px; padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-graphite);
}
.arrow-btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Choice chip [Val] – Typ=Bock (toggle/filter), Läge=Vald/Ej vald
   -------------------------------------------------------------------------- */
.choice {
  display: inline-flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-8); border: 1px solid var(--color-graphite); border-radius: var(--radius-8);
  font-size: var(--meta-size); line-height: var(--meta-lh); font-weight: 500; color: var(--color-graphite);
  background: transparent; white-space: nowrap;
}
.choice .icon-check { display: none; width: 12px; height: 12px; }
.choice[aria-pressed="true"] { background: var(--color-graphite); color: var(--color-white); }
.choice[aria-pressed="true"] .icon-check { display: inline-block; }
.choice:hover:not([aria-pressed="true"]) { background: var(--color-tone); }
.choice-group { display: flex; flex-wrap: wrap; gap: var(--space-8); }
@media (min-width: 1024px) { .choice-group--guide { gap: var(--space-12); } }
.choice-group--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.choice-group--scroll::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .choice-group--scroll { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* --------------------------------------------------------------------------
   Check list [Listpunkt] – Avdelare=Ja/Nej
   -------------------------------------------------------------------------- */
.check-list { display: flex; flex-direction: column; }
.check-item {
  display: flex; align-items: center; gap: var(--space-12); padding: var(--space-12) 0;
  font-size: var(--body-size); line-height: var(--body-lh); color: var(--color-graphite);
}
.check-list--muted .check-item { color: var(--color-muted); }
.check-list--divided .check-item { border-bottom: 1px solid var(--color-line); }
/* Two columns on desktop (Mall 8 "Här hittar du") */
@media (min-width: 1024px) {
  .check-list--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-24); }
}

/* --------------------------------------------------------------------------
   FAQ item [Fråga] – Läge=Öppen/Stängd (native details/summary)
   -------------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; }
.faq { border-bottom: 1px solid var(--color-line); }
.faq:first-child[open] { border-top: 1px solid var(--color-line); }
.faq__q {
  display: flex; align-items: center; gap: var(--space-12); padding: var(--space-16) 0; cursor: pointer;
  list-style: none; font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; color: var(--color-graphite);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q > span { flex: 1; }
.faq__icon { width: 20px; height: 20px; flex: none; }
.faq__icon .v { transition: opacity .15s ease; }
.faq[open] .faq__icon .v { opacity: 0; }
.faq__a { padding-bottom: var(--space-16); margin-top: calc(-1 * var(--space-8)); color: var(--color-muted); font-size: var(--body-size); line-height: var(--body-lh); }
.faq[open] .faq__q { padding-bottom: var(--space-16); }
.faq[open] .faq__a { margin-top: calc(-1 * var(--space-8)); }

/* --------------------------------------------------------------------------
   Link row [Länkrad] – Yta=Ljus/Mörk
   -------------------------------------------------------------------------- */
.link-list { display: flex; flex-direction: column; }
.link-row {
  display: flex; align-items: center; gap: var(--space-12); padding: var(--space-16) 0;
  border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line);
}
.link-row__text { flex: 1; display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.link-row__title { font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; color: var(--color-graphite); }
.link-row__sub { font-size: var(--body-size); line-height: var(--body-lh); color: var(--color-muted); }
.link-row__icon { width: 16px; height: 16px; flex: none; color: var(--color-muted); transition: transform .15s ease; }
.link-row:hover .link-row__icon { transform: translateX(2px); }
.link-row--dark { padding: var(--space-12) 0; border-top: 0; border-bottom: 1px solid var(--color-deep); }
.link-row--dark .link-row__title { font-size: var(--ingress-size); line-height: var(--ingress-lh); letter-spacing: var(--ingress-ls); font-weight: 500; color: var(--color-white); }
.link-row--dark .link-row__icon { color: var(--color-white); }

/* --------------------------------------------------------------------------
   Symptom card [Besvärskort]
   -------------------------------------------------------------------------- */
.symptom-grid {
  display: flex; gap: var(--space-12); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
}
.symptom-grid::-webkit-scrollbar { display: none; }
.symptom-card {
  flex: 0 0 220px; scroll-snap-align: start; min-height: 87px;
  display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-16);
  background: var(--color-sand); border-radius: var(--radius-16);
}
.symptom-card__title { font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; color: var(--color-graphite); }
.symptom-card__text { font-size: var(--small-size); line-height: var(--small-lh); color: var(--color-muted); }
@media (min-width: 1024px) {
  .symptom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); overflow: visible; margin: 0; padding: 0; }
  .symptom-card { min-height: 137px; padding: var(--space-24); gap: var(--space-16); justify-content: center; }
}

/* --------------------------------------------------------------------------
   Entry card [Ingång] – Typ=Stor | Bild
   -------------------------------------------------------------------------- */
.entry {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--radius-16); color: var(--color-white); background: var(--color-sand);
}
.entry__media, .entry__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.entry::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.entry--large { justify-content: flex-end; gap: var(--space-16); padding: var(--space-16); }
@media (min-width: 1024px) { .entry--large { padding: var(--space-32); } }
/* Toning (Figma "Toning", mobile version) – warm #39331A, same on all widths. */
.entry--large::after { background: linear-gradient(180deg, rgba(57,51,26,0) 60%, rgba(57,51,26,.72) 89.9%); }
.entry--large .btn { align-self: stretch; }
@media (min-width: 1024px) { .entry--large .btn { align-self: flex-start; } }
.entry--large .entry__text { font-size: var(--body-size); line-height: var(--body-lh); }
@media (min-width: 1024px) { .entry--large .entry__text { font-size: var(--ingress-size); line-height: var(--ingress-lh); letter-spacing: var(--ingress-ls); font-weight: 500; } }
.entry--image { justify-content: space-between; gap: var(--space-8); padding: var(--space-8) var(--space-16); }
@media (min-width: 1024px) { .entry--image { padding: var(--space-24); } }
.entry--image::after { background: linear-gradient(180deg, rgba(57,51,26,.5) 0%, rgba(57,51,26,.1) 30%, rgba(57,51,26,0) 55%, rgba(57,51,26,.72) 100%); }
.entry__title { font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; }
.entry__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.entry__foot .arrow-btn { margin-left: auto; }
.entry:hover .arrow-btn { background: var(--color-tone); }
.entry-grid {
  display: grid; gap: var(--space-8);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "large large" "far wt" "far care";
}
.entry-grid .entry--large { grid-area: large; aspect-ratio: 358 / 378; }
.entry-grid .entry--far { grid-area: far; }
.entry-grid .entry--wt { grid-area: wt; aspect-ratio: 1; }
.entry-grid .entry--care { grid-area: care; aspect-ratio: 1; }
@media (min-width: 1024px) {
  .entry-grid {
    gap: var(--space-16); height: 623px;
    grid-template-columns: minmax(0, 576fr) minmax(0, 288fr) minmax(0, 288fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "large far wt" "large far care";
  }
  .entry-grid .entry--large, .entry-grid .entry--wt, .entry-grid .entry--care { aspect-ratio: auto; }
}

/* --------------------------------------------------------------------------
   Step [Steg] – Avdelare=Nej/Ja (white on dark)
   -------------------------------------------------------------------------- */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: var(--space-16); padding: var(--space-16) 0; color: var(--color-white); }
.step + .step { border-top: 1px solid var(--color-white); }
.step__num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--meta-size); line-height: var(--meta-lh); font-weight: 500;
}
.step__text { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.step__title { font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; }
.step__desc { font-size: var(--body-size); line-height: var(--body-lh); }
@media (min-width: 1024px) { .step__desc { font-size: var(--small-size); line-height: var(--small-lh); } }

/* --------------------------------------------------------------------------
   Back link [Tillbaka-länk]
   -------------------------------------------------------------------------- */
.back-link { display: inline-flex; align-items: center; gap: var(--space-4); align-self: flex-start; color: var(--color-medfit-blue); font-size: var(--small-size); line-height: var(--small-lh); }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover span { text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   Fact list [Faktarad] and hours table [Öppettidsrad]
   -------------------------------------------------------------------------- */
.fact-list { display: flex; flex-direction: column; }
.fact-list li { padding: var(--space-8) 0; border-bottom: 1px solid var(--color-line); color: var(--color-muted); font-size: var(--body-size); line-height: var(--body-lh); }
.hours { border-top: 1px solid var(--color-line); }
.hours__row { display: flex; justify-content: space-between; gap: var(--space-16); padding: var(--space-16) 0; border-bottom: 1px solid var(--color-line); font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; color: var(--color-graphite); }
.hours__row dd { margin: 0; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Service card [Tjänstekort]
   -------------------------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); row-gap: var(--space-16); }
.service-card { display: flex; flex-direction: column; gap: var(--space-8); }
.service-card__media { aspect-ratio: 170 / 150; border-radius: var(--radius-16); overflow: hidden; background: var(--color-tone); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.service-card:hover .service-card__media img { transform: scale(1.02); }
.service-card__body { display: contents; }
.service-card__title { font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; color: var(--color-graphite); }
.service-card__text { font-size: var(--small-size); line-height: var(--small-lh); color: var(--color-muted); }
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); }
  .service-card { gap: var(--space-16); }
  .service-card__media { aspect-ratio: 384 / 260; }
  .service-card__body { display: flex; flex-direction: column; gap: var(--space-8); }
}

/* --------------------------------------------------------------------------
   Prompt box [Behöver du hjälp / Uppmaning]
   -------------------------------------------------------------------------- */
.prompt {
  display: flex; flex-direction: column; gap: var(--space-24); padding: var(--space-16);
  background: var(--color-sand); border-radius: var(--radius-16);
}
.prompt__text { display: flex; flex-direction: column; gap: var(--space-8); }
.prompt__title { color: var(--color-medfit-blue); }
.prompt__body { color: var(--color-muted); }
.prompt__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
@media (min-width: 1024px) {
  .prompt { padding: var(--space-24); max-width: 776px; margin-left: auto; }
  .prompt__text { align-items: center; text-align: center; gap: var(--space-16); }
  .prompt__body { max-width: 600px; }
  .prompt__actions { justify-content: center; gap: var(--space-16); }
}

/* --------------------------------------------------------------------------
   Center choice [Centerval] – Läge=Vald/Ej vald (radio cards)
   -------------------------------------------------------------------------- */
.center-choice-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); border: 0; margin: 0; padding: 0; min-width: 0; }
.center-choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-8); padding: var(--space-8); cursor: pointer;
  background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-16); color: var(--color-graphite); }
.center-choice input { position: absolute; opacity: 0; pointer-events: none; }
.center-choice__media { width: 100%; aspect-ratio: 96 / 80; border-radius: var(--radius-8); overflow: hidden; background: var(--color-tone); }
.center-choice__media img { width: 100%; height: 100%; object-fit: cover; }
.center-choice--farsta .center-choice__media img { object-position: 91% 50%; }
.center-choice__label { font-size: var(--meta-size); line-height: var(--meta-lh); font-weight: 500; }
.center-choice:has(input:checked) { background: var(--color-medfit-blue); border-color: var(--color-graphite); color: var(--color-white); }
.center-choice:has(input:focus-visible) { outline: 2px solid var(--color-medfit-blue); outline-offset: 3px; }
@media (min-width: 1024px) {
  .center-choice-group { gap: var(--space-24); }
  .center-choice { gap: var(--space-24); padding: var(--space-16); }
  .center-choice__media { aspect-ratio: 209 / 220; border-radius: var(--radius-16); }
  .center-choice__label { font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; }
}

/* --------------------------------------------------------------------------
   Class row [Passrad]
   -------------------------------------------------------------------------- */
.class-list { border-top: 1px solid var(--color-line); }
.class-row { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-16) 0; border-bottom: 1px solid var(--color-line); }
.class-row[hidden] { display: none; }
.class-row__head { display: flex; align-items: center; gap: var(--space-8); }
.class-row__name { flex: 1; min-width: 0; font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; color: var(--color-graphite); }
.class-row__meta { font-size: var(--meta-size); line-height: var(--meta-lh); font-weight: 500; color: var(--color-muted); white-space: nowrap; }
.class-row__desc { font-size: var(--body-size); line-height: var(--body-lh); color: var(--color-muted); }

/* --------------------------------------------------------------------------
   Membership card [Medlemskapskort]
   -------------------------------------------------------------------------- */
.membership-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
@media (min-width: 1024px) { .membership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24); } }
.membership-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-24); padding: var(--space-24) var(--space-16);
  background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-16);
}
/* Price buttons line up at the bottom of each row of cards. */
.membership-card > .btn { margin-top: auto; }
.membership-card__body { align-self: stretch; display: flex; flex-direction: column; gap: var(--space-16); }
.membership-card__head { display: flex; flex-direction: column; gap: var(--space-4); }
.membership-card__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.membership-card__title { font-size: var(--h3-size); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); font-weight: 600; color: var(--color-graphite); }
.membership-card__sub { font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; color: var(--color-graphite); }

/* --------------------------------------------------------------------------
   Center card [Centerkort]
   -------------------------------------------------------------------------- */
.center-card { display: flex; flex-direction: column; gap: var(--space-8); }
.center-card__media { height: 220px; border-radius: var(--radius-16); overflow: hidden; background: var(--color-tone); margin-bottom: 6px; }
.center-card__media img { width: 100%; height: 100%; object-fit: cover; }
.center-card__name { font-size: var(--h3-size); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); font-weight: 600; color: var(--color-graphite); }
.center-card__info { color: var(--color-muted); font-size: var(--small-size); line-height: var(--small-lh); white-space: pre-line; }
.center-card__hours strong { font-weight: 600; }
@media (min-width: 1024px) { .center-card__hours strong { font-weight: 400; } }
.center-card__spacer { flex: 1 1 8px; min-height: 8px; }
@media (min-width: 1024px) { .center-card__hours strong { font-weight: 600; }
@media (min-width: 1024px) { .center-card__hours strong { font-weight: 400; } }
.center-card__spacer { flex-basis: 1px; min-height: 1px; } }
.center-card__phone { align-self: flex-start; color: var(--color-medfit-blue); }
.center-cards { display: grid; gap: var(--space-32); }
.center-cards--scroll { display: flex; gap: var(--space-16); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.center-cards--scroll::-webkit-scrollbar { display: none; }
.center-cards--scroll .center-card { flex: 0 0 260px; scroll-snap-align: start; }
@media (min-width: 1024px) {
  .center-cards, .center-cards--scroll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); overflow: visible; margin: 0; padding: 0; }
}

/* --------------------------------------------------------------------------
   Site header – desktop [Header – desktop] and mobile [Header – mobil]
   -------------------------------------------------------------------------- */
.site-header { position: relative; z-index: 20; background: var(--color-canvas); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: var(--space-16); }
.site-header__logo { display: block; color: var(--color-medfit-blue); }
.site-header__logo svg { width: 103px; height: 22px; }
.site-header__actions { display: flex; align-items: center; gap: var(--space-4); }
.site-header__actions .btn { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-pill); color: var(--color-graphite); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--color-tone); }
@media (min-width: 1024px) {
  .site-header__bar { height: 76px; padding: var(--space-16) var(--gutter); max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; }
  .site-header__logo svg { width: 206px; height: 44px; }
  .site-header__actions { gap: var(--space-12); }
  .site-header__actions .btn { display: inline-flex; }
}

/* Action bar [Åtgärdsrad – mobil] */
.action-bar { display: flex; gap: var(--space-16); padding: var(--space-8) var(--space-16); background: var(--color-sand); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.action-bar .btn { flex: 1 1 0; }
@media (min-width: 1024px) { .action-bar { display: none; } }

/* Main menu [Mobil – Meny öppen] – same menu on all widths.
   The header (and the action bar on mobile) stay as they are; the menu drops
   down below them, over the page. main.js sets --menu-top to the bottom edge
   of the header/action bar. */
.site-header__icon-open { display: contents; }
.site-header__icon-close { display: none; }
.site-header__menu-btn[aria-expanded="true"] .site-header__icon-open { display: none; }
.site-header__menu-btn[aria-expanded="true"] .site-header__icon-close { display: contents; }
.site-menu {
  position: fixed; left: 0; right: 0; top: var(--menu-top, 64px); z-index: 50;
  height: calc(100vh - var(--menu-top, 64px)); height: calc(100dvh - var(--menu-top, 64px));
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-16) var(--space-16) var(--space-48); background: var(--color-medfit-blue);
  clip-path: inset(0 0 100% 0); transition: clip-path .32s cubic-bezier(.2, .7, .2, 1);
}
.site-menu[hidden] { display: none; }
.site-menu.is-open { clip-path: inset(0 0 0 0); }
.site-menu__groups { display: flex; flex-direction: column; }
.site-menu__group + .site-menu__group { margin-top: var(--space-32); }
/* Links without a landing page (Medfit) follow directly after the previous group on mobile. */
.site-menu__group + .site-menu__group--links { margin-top: 0; }
/* Menu rows: headings (landing pages and the Medfit links) in H4, indented sub-pages in body text. */
.site-menu .link-row--dark .link-row__title { font-size: var(--body-size); line-height: var(--body-lh); letter-spacing: 0; font-weight: 400; }
.site-menu .site-menu__landing .link-row__title { font-size: var(--h4-size); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; }
.site-menu__sub { padding-left: var(--space-16); }
body.menu-open { overflow: hidden; }
/* Desktop: the page behind the open menu is dimmed (Core/Deep, 50 %). Click closes. */
.site-menu-backdrop { display: none; }
@media (min-width: 1024px) {
  .site-menu-backdrop { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--menu-top, 76px); z-index: 49;
    background: rgba(0, 50, 76, .5); opacity: 0; transition: opacity .32s ease; }
  .site-menu-backdrop[hidden] { display: none; }
  .site-menu-backdrop.is-open { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .site-menu, .site-menu-backdrop { transition: none; } }
/* Desktop: the menu drops down over the page and is as tall as its content. */
@media (min-width: 1024px) {
  .site-menu { height: auto; max-height: calc(100vh - var(--menu-top, 76px)); max-height: calc(100dvh - var(--menu-top, 76px));
    padding: var(--space-48) max(var(--gutter), calc((100% - var(--content-max)) / 2)) var(--space-96); }
  .site-menu__groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-32); align-items: start; }
  .site-menu__group + .site-menu__group { margin-top: 0; }
}

/* Footer [Footer – mobil / Footer – desktop] */
.site-footer { background: var(--color-deep); color: var(--color-white); }
.site-footer__inner { display: flex; flex-direction: column; gap: var(--space-24); padding-top: var(--space-48); padding-bottom: var(--space-32); }
.site-footer__sender { display: flex; flex-direction: column; gap: var(--space-12); }
.site-footer__logo { color: var(--color-white); }
.site-footer__logo svg { width: 103px; height: 22px; }
.site-footer__tel { color: var(--color-tone); font-size: var(--body-size); line-height: var(--body-lh); }
.site-footer__links { display: flex; flex-direction: column; gap: var(--space-12); align-items: flex-start; font-size: var(--body-size); line-height: var(--body-lh); }
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__region { display: flex; flex-direction: column; gap: var(--space-8); color: var(--color-tone); font-size: var(--small-size); line-height: var(--small-lh); }
.site-footer__copy { color: var(--color-tone); font-size: var(--small-size); line-height: var(--small-lh); }
.site-footer__rule { display: none; }
@media (min-width: 1024px) {
  .site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-48); padding-top: var(--space-64); padding-bottom: var(--space-48); }
  .site-footer__top { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 776px); gap: var(--space-96); }
  .site-footer__logo svg { width: 206px; height: 44px; }
  .site-footer__rule { display: block; grid-column: 1 / -1; height: 1px; background: var(--color-white); }
  .site-footer__copy { align-self: start; order: 3; }
  .site-footer__region { order: 4; }
}
@media (max-width: 1023.98px) { .site-footer__top { display: contents; } }
