/* Both logos are fetched and inlined by x-h-icon after load, so their boxes
   must be reserved up front — otherwise the empty <svg> renders over-tall and
   the page jumps when the artwork arrives (0.2 CLS on every route).
   The header logo keeps an explicit height because the inlined file carries
   height="89", which would override aspect-ratio; the footer logo is sized by
   its width (h-auto), so the viewBox ratio is enough there. */
.meona-logo {
  max-width: 15.625rem;
  width: 100%;
  height: 5.5625rem;
}

.footer-logo {
  aspect-ratio: 250 / 89;
}

[data-slot="button"][data-variant="outline"] {
  background-color: transparent;
}

.font-serif {
  --tracking-normal: 0;
  --text-base: 1rem;
}

.bg-footer {
  color: var(--background);
  background-color: var(--foreground);
}

.bg-footer [data-slot="list"] {
  --border: var(--background);
}

.bg-footer [data-slot="button"][data-variant="outline"] {
  --foreground: var(--background);
  --secondary-foreground: var(--background);
}

.bg-footer a:not([data-slot="button"]) {
  color: oklch(0.7151 0.0438 295.97);
}

.bg-light-purple {
  background-color: var(--muted-foreground);
  color: var(--background);
}

.footer-grid-l1 {
  display: grid;
  grid-template-columns: auto 1fr;
}

.footer-logo {
  max-width: 18rem;
}

.footer-grid-l2 {
  display: grid;
  grid-template-columns: auto auto auto;
}

/* The header switches to its mobile layout at 1240px (see the breakpoint
   listener in index.html) — the logo must shrink at the same threshold, and the
   desktop/mobile chrome swaps over on the same line.

   The swap is CSS rather than x-show on purpose: x-show only takes effect once
   Alpine boots, so the header rendered *both* variants stacked (240px instead
   of 89px) through first paint and then collapsed — worth ~0.5 CLS on every
   route. 77.5625rem = 1241px, so the two queries meet without overlapping at
   exactly 1240, matching getBreakpointListener's `(width <= 1240px)`.
   !important because Harmonia sets display: inline-flex on [data-slot="button"]
   when it upgrades these elements. */
@media (max-width: 77.5rem) {
  .meona-logo {
    max-width: 8.5rem;
  }

  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 77.5625rem) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 64rem) {
  .footer-grid-l1 {
    grid-template-columns: auto;
  }

  .footer-grid-l2 {
    grid-template-columns: auto auto;
  }
}

.kabineti-margin-top {
  margin-top: -17.5rem;
}

/* At tablet widths the doctors photo is only ~300px tall — a shallow pull-up
   keeps most of it visible, mirroring the old site's tablet overlap. */
@media (min-width: 40rem) and (max-width: 64rem) {
  .kabineti-margin-top {
    margin-top: -6.5rem;
  }
}

@media (max-width: 40rem) {
  .footer-grid-l2 {
    grid-template-columns: auto;
  }

  .kabineti-margin-top {
    margin-top: 0;
  }
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  padding-bottom: 0.5rem;
}

.article-body h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  padding-bottom: 0.5rem;
}

.article-body p {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
  line-height: 1.2;
  text-align: justify;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
}

.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.article-body li {
  font-size: var(--text-lg);
  color: var(--muted-foreground);
}
