/* Match the approved About tagline without downloading another font. */
:root {
  --indy-font: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-sans: var(--indy-font);
  --font-serif: var(--indy-font);
}

body,
h1, h2, h3, h4, h5, h6,
p, a, li, label, summary,
button, input, select, textarea,
th, td, .display, .cap,
.font-sans, .font-serif {
  font-family: var(--indy-font) !important;
}

/* Preserve existing sizes, weights, and spacing for compact navigation/forms. */
body {
  -webkit-font-smoothing: antialiased;
}

/* Center titles and eyebrow labels; leave paragraphs and lists readable. */
html:has(link[rel="canonical"][href="https://indyspineandbalance.com/symptoms"])
  main section:first-of-type h1 + p {
  text-align: center;
  margin-inline: auto;
}

:is(main, footer, .ref-page) :is(h1, h2, h3, h4, h5, h6) {
  text-align: center;
  margin-inline: auto;
}

main p[class~="uppercase"]:has(+ :is(h1, h2, h3)),
main p[class~="uppercase"]:has(+ a > :is(h1, h2, h3)) {
  text-align: center;
}

main div[class~="inline-flex"]:has(+ h1) {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

/* Constrained title blocks should sit in the middle, not at the left edge. */
main :is(div, section)[class*="max-w-"]:has(> :is(h1, h2, h3)) {
  margin-inline: auto;
}

/* Section introductions with a side action now stack above that action. */
main div[class~="flex"]:has(> div > h2) {
  flex-direction: column;
  align-items: center;
}

/* Keep the wider serif labels on one line in the desktop header. */
@media (min-width: 1024px) {
  header:not(.sh) > .container { gap: 12px; }
  header:not(.sh) nav :is(a, button) { white-space: nowrap; padding-inline: 7px; }
  header:not(.sh) a[href^="tel:"] { white-space: nowrap; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  header:not(.sh) > .container > a:first-child img { max-width: 220px; }
  header:not(.sh) nav :is(a, button) { padding-inline: 5px; font-size: 13px; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  header:not(.sh) > .container > a:first-child img { max-width: 300px; }
  header:not(.sh) > .container { gap: 8px; }
}
