@import url("https://media.360deck.app/fonts/all.css");
/* John V. Wainwright, MD: site styles.
   One stylesheet for every page (html/rules.md, Site styles). Colours, fonts and spacing are the
   variables below; sections, cards and text styles are classes named by role. */

/* ---------- Fonts (self-hosted, latin, SIL Open Font License) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-baskerville-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-baskerville-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variables ---------- */

:root {
  /* Site colours */
  --main-accent-default: #c9a468;   /* gold: buttons, rules, accents */
  --main-accent-dark: #8a6a33;      /* dark gold: numerals, small labels, link hover */
  --main-accent-light: #dcc497;     /* light gold: icons and links on dark sections */
  --neutral-dark: #141414;          /* titles, menus, footer */
  --neutral-medium: #333333;        /* body text */
  --neutral-light: #e3ddd1;         /* lines and borders */
  --neutral-white: #ffffff;

  /* Custom colours (the design's own shades) */
  --button-hover-gold: #b8925a;
  --text-near-black: #1a1a1a;
  --text-charcoal: #2a2a2a;
  --text-small-body: #474747;
  --text-label-grey: #707070;
  --text-off-white: #f3f1ec;
  --text-cream: #f5f1e8;
  --text-hero-paragraph: #e6e6e6;
  --text-on-dark-section: #dfe3ea;
  --label-on-dark-section: #c9cfd9;
  --muted-on-dark-section: #8e98ab;
  --breadcrumb-grey: #bdbdbd;
  --footer-text: #c8c8c8;
  --footer-fineprint: #939393;
  --beige-background: #fcfaf6;
  --stone-background: #f6f4ef;
  --stone-border: #e9e4da;
  --image-placeholder-background: #ece9e3;
  --image-placeholder-background-warm: #e7e3da;
  --input-border: #d9d2c4;
  --dark-satin-background: #0c1019;
  --dark-texture-background: #0b0d12;
  --deep-black-background: #040508;
  --satin-card-background: #1a2030;
  --line-on-dark: rgba(255, 255, 255, .14);
  --line-on-dark-soft: rgba(255, 255, 255, .12);
  --photo-overlay: rgba(16, 16, 16, .72);

  /* Fonts */
  --heading-font: "Libre Baskerville", serif;
  --heading-font-2: "Cormorant Garamond", serif;
  --body-font: "Montserrat", sans-serif;
  --home-card-title-font: "Source Serif 4", serif;
  --home-card-text-font: "Public Sans", system-ui, sans-serif;

  /* Spacing and layout */
  --section-padding-default: clamp(72px, 9vw, 120px);
  --section-padding-spacious: clamp(72px, 9vw, 128px);
  --section-padding-extra-spacious: clamp(80px, 10vw, 136px);
  --section-padding-compact: clamp(64px, 8vw, 104px);
  --section-padding-half: clamp(36px, 4.5vw, 60px);
  --page-side-gutter: clamp(20px, 5vw, 80px);
  --page-side-gutter-narrow: clamp(20px, 4vw, 56px);
  --content-max-width: 1240px;
  --home-content-max-width: 1200px;
  --text-max-width: 720px;
  --gap-between-columns: clamp(48px, 6vw, 104px);
  --gap-between-items: 16px;
  --gap-heading-to-content: clamp(36px, 4.5vw, 60px);
  --radius-card: 6px;
  --radius-button: 2px;
  --shadow-photo-on-dark: 0 30px 60px -24px rgba(0, 0, 0, .7);
  --dark-section-shadow: 0 14px 28px -12px rgba(0, 0, 0, .55), 0 -14px 28px -12px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */

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

body {
  margin: 0;
  background: var(--neutral-white);
  color: var(--text-near-black);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

body.home-page {
  background: #f5f3ee;
  font-family: var(--home-card-text-font);
}

a {
  color: var(--text-charcoal);
  text-decoration: none;
}

a:hover {
  color: var(--main-accent-dark);
}

img {
  max-width: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--neutral-dark);
  color: var(--neutral-white);
  font-family: var(--body-font);
  font-size: 13px;
}

.skip-link:focus {
  top: 12px;
  color: var(--neutral-white);
}

/* ---------- Text styles ---------- */

.page-title-h1 {
  margin: 0;
  font-family: var(--heading-font-2);
  font-weight: 300;
  font-size: clamp(24px, 5vw, 80px);
  line-height: .98;
  letter-spacing: -.015em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--neutral-white);
}

.section-title-h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--neutral-dark);
}

/* Home page titles go down to 22px on phones */
.section-title-h2.is-smaller-on-phones {
  font-size: clamp(22px, 2.6vw, 40px);
}

/* Titles of second-level sections (Education, Symptoms, Benefits, Recovery) */
.subsection-title-h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--neutral-dark);
}

.subsection-title-h2.is-larger {
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.25;
}

.subsection-title-h2.has-roomy-lines {
  line-height: 1.25;
}

/* Section titles on the service page, blog post and related lists */
.section-title-h2.is-service-size {
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.2;
}

.section-title-h2.has-roomier-lines {
  line-height: 1.15;
}

.section-title-h2.balances-lines {
  text-wrap: balance;
}

.widget-title-h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--neutral-dark);
}

.small-title-h4 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 18px;
  color: var(--neutral-dark);
}

.eyebrow-label {
  margin: 0;
  font-family: var(--body-font);
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-charcoal);
}

.eyebrow-label.is-larger {
  font-size: clamp(12px, 1vw, 16px);
}

/* Small gold label (Overview, The Procedure, Questions, Keep Reading) */
.gold-label {
  margin: 0;
  font-family: var(--body-font);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--main-accent-dark);
}

.gold-label.is-small {
  font-size: 11px;
}

/* Wide-spaced label on dark sections (Education and Training, Hospital Affiliations) */
.wide-spaced-label {
  margin: 0;
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--label-on-dark-section);
}

/* Tiny grey label (What to Bring, row labels) */
.tiny-grey-label {
  margin: 0;
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-label-grey);
}

.intro-text {
  margin: 0;
  font-family: var(--body-font);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--text-hero-paragraph);
  max-width: var(--text-max-width);
  text-wrap: pretty;
}

.body-text {
  margin: 0;
  font-family: var(--body-font);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.8;
  color: var(--neutral-medium);
  text-wrap: pretty;
}

/* Home page paragraphs: a little larger, tighter lines */
.body-text.is-home-size {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.6;
}

.body-text.has-tighter-lines {
  line-height: 1.75;
}

.small-body-text {
  margin: 0;
  font-family: var(--body-font);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-small-body);
}

.small-body-text.avoids-short-last-lines {
  text-wrap: pretty;
}

.fineprint-text {
  margin: 0;
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-label-grey);
}

.decorative-text {
  margin: 0;
  font-family: var(--heading-font-2);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.2;
  color: var(--neutral-dark);
  text-wrap: balance;
}

.button-text {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Thin line icons above the Clinical Focus columns (About) */
.focus-icon {
  display: block;
  width: 44px;
  height: 44px;
}

.step-number {
  font-family: var(--heading-font-2);
  font-size: 34px;
  font-weight: 300;
  color: var(--main-accent-dark);
  line-height: 1;
}

/* ---------- Buttons and links ---------- */

.button {
  background: var(--main-accent-default);
  color: var(--neutral-white);
  padding: 12px 30px;
  border-radius: var(--radius-button);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.button:hover {
  background: var(--button-hover-gold);
  color: var(--neutral-white);
}

.button.is-section-size {
  padding: 12px 28px;
}

.button.is-small-size {
  padding: 12px 26px;
}

.outline-button {
  border: 1px solid var(--neutral-dark);
  color: var(--neutral-dark);
  padding: 12px 26px;
  border-radius: var(--radius-button);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.outline-button:hover {
  color: var(--neutral-dark);
}

.outline-button.is-on-dark {
  border-color: rgba(255, 255, 255, .5);
  color: var(--text-cream);
}

.outline-button.is-on-dark:hover {
  color: var(--text-cream);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

/* Small gold-underlined text link (View all services, View All Posts) */
.underlined-link {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--neutral-dark);
  border-bottom: 1px solid var(--main-accent-default);
  padding-bottom: 4px;
}

.underlined-link.is-on-dark,
.underlined-link.is-on-dark:hover {
  color: var(--text-off-white);
}

/* Small gold text link with an arrow (Download PDF) */
.arrow-link {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--main-accent-dark);
  font-weight: 600;
  padding-top: 6px;
}

/* ---------- Header and menus ---------- */

.site-header {
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(28px, 5vw, 80px) 36px clamp(20px, 2vw, 40px);
}

.site-logo,
.site-logo:hover {
  pointer-events: auto;
  color: var(--text-off-white);
  font-family: var(--body-font);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 400;
}

.main-navigation {
  pointer-events: auto;
}

.main-navigation-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}

.main-navigation-links a,
.main-navigation-links a:hover,
.menu-label {
  color: var(--text-off-white);
}

.main-navigation-links .is-current,
.main-navigation-links .is-current:hover {
  color: var(--main-accent-default);
}

.has-sub-menu {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.has-sub-menu > a,
.menu-label {
  display: flex;
  gap: 6px;
  align-items: center;
}

.menu-label {
  cursor: default;
  outline: none;
}

.menu-arrow {
  font-size: 8px;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 230px;
  flex-direction: column;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--neutral-dark);
  border: 1px solid var(--line-on-dark-soft);
  border-top: 1px solid var(--main-accent-default);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
}

.has-sub-menu:hover > .sub-menu,
.has-sub-menu:focus-within > .sub-menu {
  display: flex;
}

.sub-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.sub-menu a:hover,
.sub-menu a:focus {
  color: var(--main-accent-default);
  background: rgba(255, 255, 255, .04);
}

.header-phone,
.header-phone:hover {
  color: var(--text-off-white);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

.gold-glyph {
  color: var(--main-accent-default);
}

/* Menu button: phones only (see Phones, below) */
.menu-toggle-button {
  display: none;
}

/* ---------- Heroes ---------- */

.home-hero,
.inner-pages-hero {
  position: relative;
  background: var(--neutral-dark);
  color: var(--text-off-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-hero {
  min-height: 600px;
  height: 100vh;
}

.inner-pages-hero {
  min-height: clamp(520px, 72vh, 760px);
}

.hero-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(16, 16, 16, .74);
}

.home-hero .hero-overlay {
  background: var(--photo-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--page-side-gutter-narrow) 72px;
  pointer-events: none;
}

.home-hero .hero-content {
  padding-bottom: 130px;
}

.hero-text {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.hero-text.is-wider {
  max-width: 960px;
}

.home-hero .hero-text {
  gap: 24px;
}

.hero-text .button {
  pointer-events: auto;
  margin-top: 6px;
}

.home-hero .hero-text .button {
  margin-top: 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--breadcrumb-grey);
  pointer-events: auto;
}

.breadcrumb a,
.breadcrumb a:hover {
  color: var(--breadcrumb-grey);
}

.breadcrumb-current {
  color: var(--main-accent-default);
}

/* The breadcrumb above the page title is hidden in every hero (inner pages and blog posts) */
.hero-text .breadcrumb,
.blog-post-hero-text .breadcrumb {
  display: none;
}

.hero-subtitle {
  margin: 0;
  font-family: var(--body-font);
  font-size: clamp(11px, .95vw, 14px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-off-white);
  font-weight: 500;
}

.home-hero-eyebrow {
  margin: 0;
  font-family: var(--body-font);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-off-white);
  font-weight: 500;
}

.home-hero-title {
  font-size: clamp(24px, 5vw, 76px);
}

.home-hero-intro {
  margin: 0;
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-hero-paragraph);
  max-width: 820px;
  text-wrap: balance;
}

/* The service page title wraps and is never smaller than 38px */
.page-title-h1.wraps-onto-lines {
  font-size: clamp(38px, 5.4vw, 80px);
  white-space: normal;
  text-wrap: balance;
}

/* ---------- Section types ---------- */

.section {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding-default) var(--page-side-gutter);
}

.section.is-spacious {
  padding-top: var(--section-padding-spacious);
  padding-bottom: var(--section-padding-spacious);
}

.section.is-extra-spacious {
  padding-top: var(--section-padding-extra-spacious);
  padding-bottom: var(--section-padding-extra-spacious);
}

.section.is-compact {
  padding-top: var(--section-padding-compact);
  padding-bottom: var(--section-padding-compact);
}

.section.has-half-bottom {
  padding-bottom: var(--section-padding-half);
}

.section.has-half-top {
  padding-top: var(--section-padding-half);
}

.section.has-narrow-gutter {
  padding-left: var(--page-side-gutter-narrow);
  padding-right: var(--page-side-gutter-narrow);
}

.white-background-section {
  background: var(--neutral-white);
}

.light-background-section {
  background: var(--beige-background);
}

.stone-background-section {
  background: var(--stone-background);
}

/* Dark sections lift off the page with a soft shadow above and below, like the home page's affiliations */
.dark-background-section {
  z-index: 2;
  background: var(--dark-satin-background);
  box-shadow: var(--dark-section-shadow);
}

.dark-background-section.has-triangle-texture {
  background: var(--dark-texture-background);
}

.dark-background-section .section-title-h2,
.dark-background-section .subsection-title-h2 {
  color: var(--text-cream);
}

.dark-background-section .eyebrow-label {
  color: var(--label-on-dark-section);
}

.dark-background-section .body-text {
  color: var(--text-on-dark-section);
}

.dark-background-section .gold-label {
  color: var(--main-accent-default);
}

/* Faint flowing lines over the beige background */
.has-flowing-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("images/flowing-lines-texture.svg") center / cover no-repeat;
  opacity: .2;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 85%);
}

.has-flowing-lines.lines-on-the-left::before {
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 85%);
}

/* Triangle texture over the dark backgrounds (every dark section of the inner pages, 2026-10-15) */
.has-triangle-texture::before,
.dark-background-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("images/triangle-texture-dark.png") repeat;
  background-size: 400px 400px;
  opacity: .1;
}

/* Soft diagonal light bands of the dark satin sections */
.satin-light-bands {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.satin-light-bands span {
  position: absolute;
}

.satin-light-bands span:nth-child(1) {
  left: -20%;
  top: -30%;
  width: 140%;
  height: 60%;
  transform: rotate(-14deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(150, 165, 195, .10) 42%, rgba(210, 220, 240, .16) 50%, rgba(150, 165, 195, .08) 58%, rgba(255, 255, 255, 0) 100%);
  filter: blur(18px);
}

.satin-light-bands span:nth-child(2) {
  left: -30%;
  top: 22%;
  width: 160%;
  height: 46%;
  transform: rotate(9deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(120, 135, 165, .10) 45%, rgba(200, 210, 232, .13) 52%, rgba(255, 255, 255, 0) 100%);
  filter: blur(22px);
}

.satin-light-bands span:nth-child(3) {
  left: -10%;
  top: 62%;
  width: 130%;
  height: 50%;
  transform: rotate(-6deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(140, 155, 185, .09) 48%, rgba(255, 255, 255, 0) 100%);
  filter: blur(26px);
}

.satin-light-bands span:nth-child(4) {
  inset: 0;
  background: radial-gradient(70% 90% at 15% 50%, rgba(12, 16, 25, .55) 0%, rgba(12, 16, 25, 0) 70%);
}

/* ---------- Layout ---------- */

.content-width {
  position: relative;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.home-content-width {
  position: relative;
  max-width: var(--home-content-max-width);
  margin: 0 auto;
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap-heading-to-content);
}

.section-stack.has-wider-gap {
  gap: clamp(40px, 5vw, 64px);
}

.section-stack.has-honors-gap {
  gap: clamp(36px, 4vw, 56px);
}

.section-stack.has-fixed-gap {
  gap: 40px;
}

.section-stack.has-large-fixed-gap {
  gap: 56px;
}

/* Two columns that stack under 380px each */
.two-column-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px var(--gap-between-columns);
  align-items: center;
}

.two-column-split.has-large-row-gap {
  row-gap: 56px;
}

.two-column-split.has-small-row-gap {
  row-gap: 24px;
}

.two-column-split.align-bottom {
  align-items: end;
}

.two-column-split.align-top {
  align-items: start;
}

/* Service page columns stack under 400px each */
.service-two-column-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px clamp(48px, 6vw, 96px);
}

.service-two-column-split.has-small-row-gap {
  row-gap: 48px;
  align-items: center;
}

.service-two-column-split.align-top {
  align-items: start;
}

.text-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.text-stack.has-gap-18 {
  gap: 18px;
}

.text-stack.has-gap-20 {
  gap: 20px;
}

.text-stack.has-gap-24 {
  gap: 24px;
}

.text-stack.has-gap-16 {
  gap: 16px;
}

.text-stack.has-gap-14 {
  gap: 14px;
}

.text-stack.has-gap-8 {
  gap: 8px;
}

.centered-heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.centered-heading.is-full-width {
  max-width: none;
  margin: 0;
}

.centered-heading.has-gap-16 {
  gap: 16px;
}

.heading-with-link {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}

.short-gold-rule {
  width: 40px;
  height: 1px;
  background: var(--main-accent-default);
}

.short-gold-rule.is-wider {
  width: 48px;
}

/* ---------- Photos and placeholders ---------- */

/* Every standalone photo has the same rounded corners (Belinda, 2026-10-15) */
.photo-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-card);
}

.photo-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame > img.is-focused-right {
  object-position: 84% 50%;
}

.photo-frame.is-four-by-three {
  aspect-ratio: 4 / 3;
}

.photo-frame.is-three-by-four {
  aspect-ratio: 3 / 4;
}

.photo-frame.is-four-by-five {
  aspect-ratio: 4 / 5;
}

.photo-frame.is-three-by-two {
  aspect-ratio: 3 / 2;
}

.photo-frame.is-sixteen-by-ten {
  aspect-ratio: 16 / 10;
}

.photo-frame.is-placeholder-colour {
  background: var(--image-placeholder-background);
}

.photo-frame.is-warm-placeholder-colour {
  background: var(--image-placeholder-background-warm);
}

/* A framed portrait or photo on a dark section */
.photo-frame.is-on-dark {
  max-width: 480px;
  justify-self: center;
  background: var(--satin-card-background);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-photo-on-dark);
}

.photo-frame.is-on-dark.is-full-width {
  max-width: none;
}

/* A photo with a thin gold frame around it and a small icon box over its corner (Testimonials) */
.photo-with-icon-box {
  position: relative;
  padding: 14px;
  border: 1px solid var(--main-accent-default);
  border-radius: calc(var(--radius-card) + 6px);
}

.photo-icon-box {
  position: absolute;
  left: -28px;
  bottom: -28px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 320px;
  padding: 20px 22px;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .35);
}

.photo-icon-box-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--main-accent-default);
  color: var(--main-accent-dark);
}

.photo-icon-box-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Where the practice's own photo will go: icon, caption and a dashed outline */
.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  background: rgba(127, 127, 127, .08);
  color: var(--text-near-black);
  font: 13px / 1.3 system-ui, -apple-system, sans-serif;
}

.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1.5px dashed currentColor;
  opacity: .35;
}

.image-placeholder svg {
  opacity: .45;
}

.image-placeholder span {
  max-width: 90%;
  font-weight: 500;
  letter-spacing: .01em;
  opacity: .75;
}


/* ---------- Lists, rows and numbered columns ---------- */

/* Label and value rows (Address, Phone, Hours; education; recovery) */
.label-value-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--neutral-light);
}

.label-value-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-light);
  font-family: var(--body-font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--neutral-medium);
}

.label-value-row a {
  color: var(--neutral-dark);
}

.row-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-label-grey);
  padding-top: 4px;
}

/* Education and Training rows on the dark textured section */
.label-value-rows.is-on-dark {
  border-top-color: var(--line-on-dark);
}

.education-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-on-dark);
}

.education-row .row-label {
  font-family: var(--body-font);
  color: var(--muted-on-dark-section);
}

.education-row-value {
  font-family: var(--heading-font);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.45;
  color: var(--text-cream);
}

/* Lines with a gold mark in front (service bullets, What to Bring) */
.marked-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--neutral-light);
}

.marked-list li {
  font-family: var(--body-font);
  font-size: 15.5px;
  color: var(--neutral-medium);
  padding: 12px 0;
  border-bottom: 1px solid var(--neutral-light);
  display: flex;
  gap: 12px;
}

.marked-list.has-checkmarks li {
  font-size: 16px;
  padding: 16px 0;
  gap: 14px;
  align-items: baseline;
}

.list-mark {
  color: var(--main-accent-default);
}

/* Plain ruled lines (Common Symptoms, You May Be a Candidate If) */
.ruled-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--neutral-light);
}

.ruled-lines li {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral-medium);
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-light);
}

/* Three numbered columns (Clinical Focus) */
.numbered-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0;
  border-top: 1px solid var(--neutral-light);
}

.numbered-column {
  padding: 36px 32px 36px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--neutral-light);
}

/* Numbered steps with a line above each (What to Expect) */
.numbered-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px;
}

.numbered-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--neutral-light);
}

/* Year, title and description rows (Research Honors) */
.year-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--neutral-light);
}

.year-row {
  display: grid;
  grid-template-columns: minmax(90px, 140px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: 30px 0;
  border-bottom: 1px solid var(--neutral-light);
  align-items: baseline;
}

.year-row-year {
  font-family: var(--heading-font-2);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 300;
  color: var(--main-accent-dark);
  line-height: 1;
}

.year-row-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* The same rows with a title in place of the year (Motion-Preserving procedures) */
.year-rows.has-title-column .year-row {
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
}

@media (max-width: 767px) {
  .year-rows.has-title-column .year-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.card-grid.has-wider-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.card-grid.has-widest-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

/* Bordered card with a short gold rule (forms, honor societies, reviews) */
.bordered-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius-card);
  background: var(--neutral-white);
}

.bordered-card.is-beige {
  padding: clamp(32px, 4vw, 48px);
  background: var(--beige-background);
}

.honor-society-title {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
}

.bordered-card .small-body-text.has-roomy-lines {
  line-height: 1.75;
}

/* Patient review card */
.review-card {
  margin: 0;
}

/* Reviews flow into balanced columns, so cards keep their own height (Testimonials) */
.card-grid.has-balanced-review-columns {
  display: block;
  columns: 3 320px;
  column-gap: 24px;
}

.card-grid.has-balanced-review-columns > .review-card {
  break-inside: avoid;
  margin: 0 0 24px;
}

/* Review cards in an even grid, every card the same height (Testimonials) */
.card-grid.has-equal-height-cards {
  grid-auto-rows: 1fr;
}

.review-site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
}

.review-quote-mark {
  font-family: var(--heading-font-2);
  font-size: 56px;
  line-height: .6;
  color: var(--main-accent-default);
}

.review-text {
  margin: 0;
  font-family: var(--heading-font-2);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--neutral-dark);
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--neutral-light);
  font-family: var(--body-font);
  font-size: 13px;
}

.review-author-name {
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--neutral-dark);
}

/* Review date under the source (Home, Testimonials) */
.review-date {
  color: var(--text-label-grey);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Home, Patient Reviews: a tall photo beside three short verified reviews; on phones the reviews swipe sideways */
.home-reviews-photo {
  aspect-ratio: 4 / 5;
}

.home-reviews-photo > img {
  object-position: 50% 30%;
}

.home-review-list {
  display: flex;
  flex-direction: column;
}

.home-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--neutral-light);
}

.home-review:last-child {
  border-bottom: 1px solid var(--neutral-light);
}

.review-stars {
  font-size: 14px;
  line-height: 1;
  letter-spacing: .24em;
  color: var(--main-accent-default);
}

.home-review .review-author {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 899px) and (min-width: 600px) {
  .home-reviews-photo {
    aspect-ratio: 3 / 2;
  }

  .home-reviews-photo > img {
    object-position: 50% 4%;
  }
}

@media (max-width: 599px) {
  .home-review-list {
    flex-direction: row;
    gap: 12px;
    margin-right: calc(-1 * var(--page-side-gutter-narrow));
    padding-right: var(--page-side-gutter-narrow);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-review-list::-webkit-scrollbar {
    display: none;
  }

  .home-review,
  .home-review:last-child {
    flex: 0 0 84%;
    padding: 24px 20px;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-card);
    background: var(--beige-background);
    scroll-snap-align: start;
  }
}

/* Photo cards with text over a dark fade (What We Treat) */
.condition-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap-between-items);
}

.condition-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--satin-card-background);
  color: var(--neutral-white);
}

.condition-card:hover {
  color: var(--neutral-white);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6);
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.condition-card-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 16, 25, .05) 30%, rgba(12, 16, 25, .88) 100%);
}

.condition-card-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.condition-card-title {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-cream);
}

.condition-card-summary {
  display: none;
  margin: 0;
  font-family: var(--body-font);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-hero-paragraph);
}

.condition-card-link {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--main-accent-light);
  font-weight: 600;
}

/* Photo cards with a title and a gold Learn More (Related Services) */
.related-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--gap-between-items);
}

.related-service-card {
  position: relative;
  border-radius: var(--radius-card);
  display: block;
  min-height: 320px;
  overflow: hidden;
  background: #1f1f1f;
  color: var(--text-off-white);
}

.related-service-card:hover {
  color: var(--text-off-white);
}

.related-service-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(16, 16, 16, .92) 0%, rgba(16, 16, 16, .45) 55%, rgba(16, 16, 16, .1) 100%);
}

.related-service-text {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.related-service-title {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--neutral-white);
}

.related-service-link {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--main-accent-default);
}

/* Article cards (blog list and related articles) */
.article-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 40px 28px;
}

.article-card-grid.is-related {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--neutral-dark);
}

.article-card.is-related {
  gap: 18px;
}

.article-card:hover {
  color: var(--neutral-dark);
}

.article-category {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--main-accent-dark);
  font-weight: 600;
}

.article-card-title {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  color: var(--neutral-dark);
}

.article-card-title.is-related {
  font-size: 20px;
}

.article-card-summary {
  margin: 0;
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-small-body);
}

.article-card-link {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neutral-dark);
  font-weight: 600;
}

.article-card-date {
  font-family: var(--body-font);
  font-size: 13px;
  color: var(--text-label-grey);
}

/* ---------- Logo strip (moving) ---------- */

.logo-strip-section {
  background: var(--stone-background);
  border-top: 1px solid var(--stone-border);
  border-bottom: 1px solid var(--stone-border);
  padding: 40px 0;
}

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logo-marquee-scroll 40s linear infinite;
}

.logo-marquee-repeat {
  display: contents;
}

.logo-marquee-track img {
  height: 56px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: brightness(0);
  opacity: .7;
  margin: 0 36px;
  flex-shrink: 0;
}

.logo-marquee-track.is-on-dark img {
  filter: brightness(0) invert(1);
  opacity: .55;
  margin: 0 28px;
}

@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Home: doctor introduction ---------- */

.doctor-intro-section {
  position: relative;
  overflow: hidden;
  background: #eef0f3;
  padding: clamp(56px, 6vw, 96px) 0;
}

.doctor-intro-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: grayscale(1);
  opacity: .35;
}

.doctor-intro-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(242, 243, 245, .72);
}

.doctor-intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 36.3%) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(420px, 33vw, 640px);
}

.doctor-intro-photo {
  position: relative;
  border-radius: 0;
  min-height: 420px;
  background: #e2e4e8;
}

.doctor-intro-text-panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(40px, 5vw, 96px) clamp(24px, 5vw, 100px) clamp(40px, 5vw, 96px) clamp(28px, 8vw, 152px);
}

.doctor-intro-text-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(251, 251, 250, .3);
}

.doctor-intro-text-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("images/triangle-texture-dark.png") repeat;
  background-size: 400px 400px;
  filter: invert(1);
  opacity: .1;
  mix-blend-mode: multiply;
}

.doctor-intro-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 960px;
}

.doctor-intro-text .section-title-h2 {
  white-space: nowrap;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding-top: clamp(24px, 3vw, 52px);
}

.profile-badges img {
  height: clamp(40px, 3.6vw, 60px);
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(42%) sepia(38%) saturate(720%) hue-rotate(358deg) brightness(88%);
}

/* ---------- Home: conditions with cards that turn over ---------- */

.conditions-section {
  position: relative;
  background: var(--dark-texture-background);
  color: var(--text-off-white);
  padding: var(--section-padding-default) var(--page-side-gutter-narrow);
}

.conditions-layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.home-gold-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--main-accent-default);
  font-weight: 600;
}

.home-serif-title {
  margin: 0;
  font-family: var(--home-card-title-font);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  color: var(--text-off-white);
}

.home-heading-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-arrow-link,
.home-arrow-link:hover {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-off-white);
  border-bottom: 1px solid var(--main-accent-default);
  padding-bottom: 2px;
}

/* Home conditions grid: a deeper fade so the text reads on light photos, shorter cards on phones */
.conditions-section .condition-card-shade,
[data-section="what-we-treat"] .condition-card-shade {
  background: linear-gradient(180deg, rgb(from var(--dark-satin-background) r g b / .08) 20%, rgb(from var(--dark-satin-background) r g b / .6) 55%, rgb(from var(--dark-satin-background) r g b / .94) 100%);
}

@media (max-width: 767px) {
  .conditions-section .condition-card {
    aspect-ratio: 4 / 3.4;
  }

  .conditions-section .condition-card-text {
    padding: 22px;
  }
}

/* Conditions grid in four columns (Specialties page): 4 x 3 on desktop, 2 across on tablets, 1 on phones */
.condition-card-grid.has-four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .condition-card-grid.has-four-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .condition-card-grid.has-four-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Conditions page: a light black overlay on every card photo, under the dark fade that carries the text */
.condition-card-grid.has-dimmed-photos .condition-card-shade {
  background:
    linear-gradient(in srgb 180deg, rgb(from var(--dark-satin-background) r g b / .08) 20%, rgb(from var(--dark-satin-background) r g b / .6) 55%, rgb(from var(--dark-satin-background) r g b / .94) 100%),
    linear-gradient(in srgb, rgb(from var(--neutral-dark) r g b / .25), rgb(from var(--neutral-dark) r g b / .25));
}

/* Conditions page: Second Opinions closes the grid as one wide card, the photo on the left, the text on the right */
.condition-card.is-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 5;
}

.condition-card-grid.has-dimmed-photos .condition-card.is-wide .condition-card-shade {
  background:
    linear-gradient(in srgb 90deg, rgb(from var(--dark-satin-background) r g b / .05) 25%, rgb(from var(--dark-satin-background) r g b / .7) 60%, rgb(from var(--dark-satin-background) r g b / .92) 100%),
    linear-gradient(in srgb, rgb(from var(--neutral-dark) r g b / .2), rgb(from var(--neutral-dark) r g b / .2));
}

.condition-card.is-wide .condition-card-text {
  top: 0;
  left: auto;
  width: min(50%, 520px);
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}

.condition-card.is-wide .condition-card-summary {
  display: block;
}

@media (max-width: 767px) {
  .condition-card.is-wide {
    aspect-ratio: 4 / 3.4;
  }

  .condition-card-grid.has-dimmed-photos .condition-card.is-wide .condition-card-shade {
    background:
      linear-gradient(in srgb 180deg, rgb(from var(--dark-satin-background) r g b / .08) 20%, rgb(from var(--dark-satin-background) r g b / .6) 55%, rgb(from var(--dark-satin-background) r g b / .94) 100%),
      linear-gradient(in srgb, rgb(from var(--neutral-dark) r g b / .25), rgb(from var(--neutral-dark) r g b / .25));
  }

  .condition-card.is-wide .condition-card-text {
    top: auto;
    left: 0;
    width: auto;
    padding: 28px;
  }
}

/* Conditions page, What We Treat: the section title stays on one line from tablets up (it may wrap on phones) */
@media (min-width: 768px) {
  [data-section="what-we-treat"] .centered-heading {
    max-width: 960px;
  }

  [data-section="what-we-treat"] .centered-heading .section-title-h2 {
    white-space: nowrap;
  }
}

/* Home conditions grid: a wide side-by-side illustration shows whole, at the top of its card (Second Opinions) */
.conditions-section .card-photo.shows-whole-picture,
[data-section="what-we-treat"] .card-photo.shows-whole-picture {
  object-fit: contain;
  object-position: center top;
}

.flip-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--gap-between-items);
}

.flip-card {
  position: relative;
  display: block;
  min-height: 300px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #1f1f1f;
  color: var(--text-off-white);
}

.flip-card:hover {
  color: var(--text-off-white);
}

.flip-card-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(16, 16, 16, .92) 0%, rgba(16, 16, 16, .55) 50%, rgba(16, 16, 16, .15) 100%);
}

.flip-card-front {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.flip-card-title {
  margin: 0;
  font-family: var(--home-card-title-font);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--neutral-white);
}

.flip-card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-hero-paragraph);
}

/* The back of the card shows while the pointer is on it */
.flip-card-back {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: var(--neutral-dark);
  color: var(--text-off-white);
  pointer-events: none;
}

.flip-card:hover .flip-card-back,
.flip-card:focus-visible .flip-card-back {
  display: flex;
}

.flip-card-back-title {
  margin: 0;
  font-family: var(--home-card-title-font);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
}

.flip-card-back .flip-card-text {
  color: #dcdcdc;
}

.flip-card-pill {
  margin-top: auto;
  align-self: flex-start;
  background: var(--main-accent-default);
  color: var(--neutral-white);
  padding: 12px 30px;
  border-radius: var(--radius-button);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- Home: hospital affiliations ---------- */

.affiliations-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-shadow: var(--dark-section-shadow);
  background: var(--deep-black-background);
  color: var(--text-cream);
  padding: var(--section-padding-extra-spacious) var(--page-side-gutter-narrow) clamp(56px, 7vw, 88px);
}

.affiliations-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background: radial-gradient(60% 70% at 80% 40%, rgba(34, 40, 54, .6) 0%, rgba(4, 5, 8, 0) 70%), radial-gradient(40% 50% at 10% 100%, rgba(201, 164, 104, .06) 0%, rgba(4, 5, 8, 0) 70%);
}

.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 56px 88px;
  align-items: center;
}

.affiliations-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.label-with-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.label-with-line::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--muted-on-dark-section);
}

.statement-title-h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.45;
  letter-spacing: .005em;
  text-wrap: pretty;
  color: var(--text-cream);
}

.statement-title-h2 em {
  color: var(--text-cream);
}

.hospital-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-on-dark);
}

.hospital-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-on-dark);
}

.hospital-name {
  font-family: var(--heading-font);
  font-size: clamp(18px, 1.6vw, 21px);
  letter-spacing: .01em;
  color: var(--text-cream);
}

.hospital-town {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-on-dark-section);
}

.round-photo {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  aspect-ratio: 1 / 1;
}

.round-photo-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #0a101c;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}

.round-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.affiliations-footer {
  position: relative;
  max-width: var(--home-content-max-width);
  margin: clamp(64px, 8vw, 104px) auto 0;
  border-top: 1px solid var(--line-on-dark);
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  align-items: stretch;
}

.conditions-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  border-right: 1px solid var(--line-on-dark);
  text-align: center;
}

.conditions-count-number {
  font-family: var(--heading-font);
  font-size: clamp(44px, 4.4vw, 60px);
  line-height: 1;
  color: #d9bd8a;
}

.conditions-count-label {
  font-family: var(--body-font);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-on-dark-section);
}

/* Without the stat, the logo strip runs the full width */
.affiliations-footer.has-no-stat {
  grid-template-columns: minmax(0, 1fr);
}

.affiliations-footer .logo-marquee {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 28px 0;
}

/* ---------- Home: care philosophy and resources ---------- */

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px 48px;
  align-items: center;
}

.text-stack.is-philosophy {
  gap: 20px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--neutral-dark);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.resources-section {
  position: relative;
  overflow: hidden;
  background: var(--beige-background);
  padding: 0 var(--page-side-gutter-narrow) var(--section-padding-default);
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: #e5e0d6;
  border: 1px solid #e5e0d6;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.resource-card {
  background: var(--neutral-white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-near-black);
}

.resource-card:hover {
  color: var(--text-near-black);
}

.resource-card img {
  height: 72px;
  width: 72px;
  object-fit: contain;
}

.resource-card-title {
  margin: 0;
  font-family: var(--home-card-title-font);
  font-weight: 500;
  font-size: 21px;
}

.resource-card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-small-body);
}

.resource-card-link {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-charcoal);
}

/* ---------- About: quote ---------- */

.quote-layout {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.quote-caption {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-label-grey);
}

.quote-layout .button {
  margin-top: 8px;
}

/* ---------- Services: alternating rows ---------- */

.treatment-row .photo-frame {
  order: 0;
}

.treatment-row.photo-on-the-right .photo-frame {
  order: 2;
}

.treatment-row-text {
  order: 1;
}

.treatment-row-text .button-row {
  padding-top: 12px;
}

.treatment-title-h3 {
  font-size: clamp(22px, 2.2vw, 32px);
}

/* ---------- Services: five expertise cards (Treatments page only) ---------- */

.expertise-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px);
}

.expertise-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.expertise-card:nth-child(-n+2) {
  grid-column: span 3;
}

.expertise-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.expertise-card-text > .text-stack {
  flex: 1;
}

.expertise-card .button-row {
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 1024px) {
  .expertise-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise-card,
  .expertise-card:nth-child(-n+2) {
    grid-column: span 1;
  }

  .expertise-card:nth-child(5) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
  }
}

@media (max-width: 767px) {
  .expertise-card-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
  }

  .expertise-card:nth-child(5) {
    display: flex;
  }
}

/* Treatments page: on phones every row shows its photo first, with more room between rows */
@media (max-width: 767px) {
  .expertise-rows-list {
    gap: 64px;
  }

  .expertise-rows-list .treatment-row.photo-on-the-right .photo-frame {
    order: 0;
  }
}

/* ---------- Home: hero buttons, credentials, expertise, why choose, research ---------- */

.home-hero .hero-text .button-row {
  justify-content: center;
  padding-top: 8px;
  pointer-events: auto;
}

.home-hero .hero-text .button-row .button {
  margin-top: 0;
}

/* Credentials strip under the hero: five honours side by side, thin lines between */
.credentials-strip {
  position: relative;
  background: var(--neutral-white);
  border-bottom: 1px solid var(--neutral-light);
  padding: clamp(28px, 3vw, 44px) var(--page-side-gutter-narrow);
}

.credential-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.credential {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px clamp(12px, 1.6vw, 28px);
  text-align: center;
}

.credential + .credential {
  border-left: 1px solid var(--neutral-light);
}

.credential-source {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--main-accent-dark);
}

.credential-title {
  font-family: var(--heading-font-2);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.2;
  color: var(--neutral-dark);
  text-wrap: balance;
}

/* Tablets: three above two, centred */
@media (max-width: 1024px) {
  .credential-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 24px;
  }

  .credential {
    grid-column: span 2;
  }

  .credential:nth-child(4) {
    grid-column: 2 / span 2;
    border-left: 0;
  }
}

/* Phones: two by two, the last across the width */
@media (max-width: 767px) {
  .credential-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .credential,
  .credential:nth-child(4) {
    grid-column: auto;
    padding: 4px 10px;
  }

  .credential:nth-child(even) {
    border-left: 1px solid var(--neutral-light);
  }

  .credential:nth-child(odd) {
    border-left: 0;
  }

  .credential:last-child {
    grid-column: 1 / -1;
  }
}

/* Areas of Expertise: three photo cards with the text below */
.specialty-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  background: var(--neutral-white);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--text-near-black);
}

.specialty-card:hover {
  color: var(--text-near-black);
  box-shadow: 0 24px 48px -28px rgb(from var(--neutral-dark) r g b / .35);
}

.photo-frame.specialty-card-photo {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: var(--dark-texture-background);
}

.specialty-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 32px;
}

.specialty-card-text .resource-card-link {
  color: var(--main-accent-dark);
}

/* Small tablets: one card per row, the photo beside the text */
@media (max-width: 899px) {
  .specialty-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .specialty-card {
    flex-direction: row;
  }

  .photo-frame.specialty-card-photo {
    flex: none;
    width: 42%;
    aspect-ratio: auto;
    min-height: 220px;
  }
}

/* Phones: the photo above the text again */
@media (max-width: 599px) {
  .specialty-card {
    flex-direction: column;
  }

  .photo-frame.specialty-card-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* Why Patients Choose: the four reasons two by two */
.benefit-grid.has-two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-grid.has-two-columns .benefit-title {
  text-wrap: balance;
}

@media (max-width: 767px) {
  .benefit-grid.has-two-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* ---------- Service page ---------- */

.overview-photo {
  position: relative;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 5;
  max-height: 620px;
  width: 100%;
  background: var(--image-placeholder-background-warm);
  overflow: hidden;
}

.overview-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.procedure-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0;
  border-top: 1px solid var(--line-on-dark-soft);
}

.procedure-step {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--line-on-dark-soft);
  border-left: 1px solid var(--line-on-dark-soft);
}

.procedure-step-number {
  font-family: var(--heading-font-2);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  color: var(--main-accent-default);
}

.procedure-step-title {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 18px;
  color: var(--text-off-white);
}

.procedure-step-text {
  margin: 0;
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
  color: #b8bcc4;
}

/* What to Expect steps: numbers, titles and paragraphs line up across the columns */
.procedure-steps.lines-up-across-steps .procedure-step {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 14px;
  align-content: start;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px 32px;
  padding-top: 8px;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--main-accent-default);
}

.benefit-title {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 17px;
  color: var(--neutral-dark);
}

.benefit-text,
.recovery-text {
  margin: 0;
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-small-body);
}

.beige-text-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--beige-background);
  padding: clamp(28px, 4vw, 48px);
}

.text-stack.align-with-title {
  align-self: start;
}

/* One topic alone is centred on the page */
.single-topic {
  max-width: 760px;
  margin: 0 auto;
}

/* A service page's single topic closes the dark What to Expect section */
.single-topic.is-centered {
  align-items: center;
  text-align: center;
}

.single-topic.is-centered .subsection-title-h2 {
  text-wrap: balance;
}

/* Closing call to action of a service page */
.closing-layout {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.closing-layout .button {
  margin-top: 6px;
}

.urgent-note {
  max-width: 620px;
}

/* An urgent-care note under a page's questions: centred under the list */
.faq-narrow-layout .urgent-note {
  margin: 0 auto;
  text-align: center;
}

.closing-call strong {
  font-weight: 600;
  color: var(--neutral-dark);
}

.recovery-rows {
  display: flex;
  flex-direction: column;
}

.recovery-row {
  display: grid;
  grid-template-columns: minmax(110px, 140px) 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--neutral-light);
}

.recovery-when {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--main-accent-dark);
  font-weight: 600;
  padding-top: 3px;
}

.recovery-text {
  color: var(--neutral-medium);
}

/* Spinal Deformity and Alignment: on desktop the list lines up with the title, below the gold label */
@media (min-width: 1025px) {
  [data-section="spinal-deformity-and-alignment"] .text-stack.align-with-title {
    margin-top: 39px;
  }
}

/* Common Symptoms: when the columns stack, the list sits close under the sentence that introduces it */
[data-section="common-symptoms"] .service-two-column-split,
[data-section="signs-and-symptoms"] .service-two-column-split {
  row-gap: 24px;
}

/* Sciatica page, Symptoms of a Pinched Nerve: when the columns stack, the list sits close under its introducing sentence */
[data-section="symptoms-of-a-pinched-nerve"] .service-two-column-split {
  row-gap: 24px;
}

/* Service pages (the Cervical Myelopathy template): diagnosis and treatment as two numbered cards of equal height, light then dark */
.service-two-column-split.diagnosis-and-treatment-cards {
  align-items: stretch;
  gap: 24px;
}

.diagnosis-and-treatment-cards .diagnosis-card {
  position: relative;
  gap: 20px;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--neutral-light);
  border-top: 2px solid var(--main-accent-default);
  border-radius: var(--radius-card);
  background: var(--beige-background);
}

.diagnosis-and-treatment-cards .diagnosis-card .step-number {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(44px, 4.4vw, 64px);
}

.diagnosis-and-treatment-cards .diagnosis-card .step-number::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--main-accent-default);
}

.diagnosis-and-treatment-cards .diagnosis-card.is-dark-card {
  background: var(--dark-satin-background);
  border-color: var(--line-on-dark);
  border-top-color: var(--main-accent-default);
  box-shadow: var(--shadow-photo-on-dark);
}

.diagnosis-and-treatment-cards .is-dark-card .subsection-title-h2 {
  color: var(--text-cream);
}

.diagnosis-and-treatment-cards .is-dark-card .body-text {
  color: var(--text-on-dark-section);
}

.diagnosis-and-treatment-cards .is-dark-card .gold-label,
.diagnosis-and-treatment-cards .is-dark-card .step-number {
  color: var(--main-accent-default);
}

/* Benefits of this approach, phones: the step's timing sits above its text, so the text uses the full width */
@media (max-width: 767px) {
  [data-section="benefits-of-this-approach"] .recovery-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* Pre & Post-Op page, Recovery at Home, phones: each step's timing sits above its text, so the text uses the full width */
@media (max-width: 767px) {
  [data-section="after-surgery"] .recovery-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* In the Media, phones: each speaking topic sits under its label, so the topic uses the full width */
/* In the Media: a play mark over the featured video thumbnail */
[data-section="featured-media"] .video-play-mark,
[data-section="abc7-feature"] .video-play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  border: 1px solid var(--main-accent-default);
  background: rgb(from var(--neutral-dark) r g b / .6);
  color: var(--neutral-white);
  pointer-events: none;
}

[data-section="featured-media"] .video-play-mark svg,
[data-section="abc7-feature"] .video-play-mark svg {
  display: block;
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

/* In the Media: the ABC7 feature sits on the deep black of the home page's affiliations */
[data-section="abc7-feature"].dark-background-section,
[data-section="featured-media"].dark-background-section {
  background: var(--deep-black-background);
}

/* In the Media: the IssueWire headshot is cropped to show the whole face */
[data-section="featured-media"] .photo-frame > img {
  object-position: center 30%;
}

[data-section="abc7-feature"] .article-category,
[data-section="featured-media"] .article-category {
  color: var(--main-accent-default);
}

/* In the Media: the IssueWire photo sits on the right, but first on phones */
@media (max-width: 767px) {
  [data-section="featured-media"] .treatment-row.photo-on-the-right .photo-frame {
    order: 0;
  }
}

/* Locations page, phones: each detail sits under its label, so the address and hours use the full width */
@media (max-width: 767px) {
  [data-section="our-location"] .education-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 767px) {
  [data-section="research"] .education-row,
  [data-section="in-the-media"] .education-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* Research & Publications page: the Meet the doctor title sits on two lines, sized so the longer line never wraps */
[data-section="meet-the-doctor"] .section-title-h2 {
  font-size: clamp(19px, 2.1vw, 32px);
}

/* Spine Tumor page, Overview: the photo sits in a vertical (portrait) frame, cropped to fill it */
[data-section="understanding-spinal-tumors"] .overview-photo {
  aspect-ratio: 4 / 5;
  max-height: 620px;
}

[data-section="understanding-spinal-tumors"] .overview-photo img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Research & Publications page, Meet the doctor: the photo shows whole, at its own shape, never cropped */
.photo-frame.shows-whole-photo {
  aspect-ratio: auto;
}

.photo-frame.shows-whole-photo > img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
}

/* Research & Publications page, Research focus: a gold line icon in place of each number; icons, titles and paragraphs line up across the columns */
[data-section="research-focus"] .focus-icon {
  color: var(--main-accent-default);
}

/* Research focus on black: the deep black of the home page's affiliations, light text and soft lines */
[data-section="research-focus"].dark-background-section {
  background: var(--deep-black-background);
}

[data-section="research-focus"] .widget-title-h3 {
  color: var(--text-cream);
}

[data-section="research-focus"] .small-body-text {
  color: var(--text-on-dark-section);
}

[data-section="research-focus"] .numbered-columns {
  border-top-color: var(--line-on-dark);
}

[data-section="research-focus"] .numbered-column {
  border-bottom-color: var(--line-on-dark);
}

[data-section="research-focus"] .numbered-column {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 14px;
  align-content: start;
}

@media (min-width: 768px) {
  [data-section="research-focus"] .numbered-column {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* Research & Publications page: topic links, categories and entries, with a subtle blue tied to the gold accent */
.research-publications-section {
  --research-blue: hsl(from var(--main-accent-default) calc(h + 175) 38% 36%);
  --research-blue-pale: hsl(from var(--main-accent-default) calc(h + 175) 45% 96%);
}

.research-publications-section .heading-with-link > .text-stack {
  max-width: var(--text-max-width);
}

.research-topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.research-topic-links a {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--neutral-white);
  background: var(--main-accent-default);
  border: 0;
  border-radius: var(--radius-button);
  padding: 12px 30px;
}

.research-topic-links a:hover,
.research-topic-links a:focus-visible {
  background: var(--button-hover-gold);
  color: var(--neutral-white);
}

.research-category {
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: 24px;
}

.research-category-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.research-publications-section .research-category-heading .gold-label,
.research-publications-section .question-sign {
  color: var(--research-blue);
}

.research-entry-title {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.research-entry-year {
  flex: none;
  min-width: 3.2em;
  font-family: var(--heading-font-2);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--research-blue);
}

.research-entry-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
  padding: 0 0 24px;
}

.research-entry-details strong {
  font-weight: 600;
  color: var(--neutral-dark);
}

.research-publications-section .research-entry-details .arrow-link {
  color: var(--research-blue);
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .research-entry-title {
    flex-direction: column;
    gap: 6px;
  }
}

/* ---------- Questions (accordion) ---------- */

.question-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--neutral-light);
}

.question-list.is-centered {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.question {
  border-bottom: 1px solid var(--neutral-light);
  padding: 22px 0;
}

.question summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-family: var(--heading-font);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.4;
  color: var(--neutral-dark);
}

.question summary::-webkit-details-marker {
  display: none;
}

.question-plus {
  color: var(--main-accent-default);
  font-family: var(--body-font);
  font-size: 22px;
  font-weight: 300;
}

.question-answer {
  padding-top: 14px;
  max-width: 760px;
}

/* Service page: one answer open at a time, with a plus or minus sign */
.question.opens-one-at-a-time {
  padding: 0;
}

.question.opens-one-at-a-time summary {
  padding: 24px 0;
  line-height: normal;
}

.question-sign {
  font-family: var(--heading-font-2);
  font-size: 30px;
  line-height: 1;
  color: var(--main-accent-dark);
}

.question-sign::before {
  content: "+";
}

.question[open] .question-sign::before {
  content: "\2212";
}

.question.opens-one-at-a-time .question-answer-text {
  margin: 0 0 24px;
  font-family: var(--body-font);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--neutral-medium);
  max-width: 760px;
}

.faq-narrow-layout {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Home page FAQ on a dark section: centred heading, questions in two columns with a small gold arrow */
.faq-on-dark-section .section-title-h2 {
  font-family: var(--heading-font-2);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: .04em;
}

.faq-on-dark-section .body-text a,
.faq-on-dark-section .body-text a:hover,
.faq-dark-question-answer a,
.faq-dark-question-answer a:hover {
  color: var(--main-accent-light);
}

.faq-on-dark-section .body-text a {
  white-space: nowrap;
}

.faq-two-column-questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 0 28px;
  align-items: start;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.faq-dark-question {
  border-bottom: 1px solid var(--line-on-dark);
}

.faq-dark-question summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 12px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-cream);
}

.faq-dark-question summary::-webkit-details-marker {
  display: none;
}

.faq-dark-question summary::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-left: 5px solid var(--main-accent-default);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .2s ease;
}

.faq-dark-question[open] summary::before {
  transform: rotate(90deg);
}

.faq-dark-question summary:hover {
  color: var(--main-accent-light);
}

.faq-dark-question-answer {
  margin: 0;
  padding: 0 12px 20px 29px;
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-on-dark-section);
}

@media (prefers-reduced-motion: reduce) {
  .faq-dark-question summary::before {
    transition: none;
  }
}

/* ---------- Office and contact: map ---------- */

.map-frame {
  position: relative;
  width: 100%;
  height: clamp(320px, 36vw, 460px);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--image-placeholder-background-warm);
}

.map-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(.6);
}

.map-frame.is-full-width {
  height: clamp(320px, 40vw, 480px);
  border-radius: 0;
}

.map-section {
  background: var(--neutral-white);
  padding: 0;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--gap-between-items);
}

.centered-button-row {
  display: flex;
  justify-content: center;
}

/* ---------- Contact form ---------- */

.form-card {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3.5vw, 48px);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .25);
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-label-grey);
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--body-font);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--neutral-dark);
  padding: 14px 16px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-button);
  background: var(--neutral-white);
  outline: none;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--main-accent-default);
}

.form-submit-button {
  align-self: flex-start;
  cursor: pointer;
  border: 0;
  background: var(--main-accent-default);
  color: var(--neutral-white);
  padding: 14px 32px;
  border-radius: var(--radius-button);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.form-submit-button:hover {
  background: var(--button-hover-gold);
}

.form-thank-you {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 0;
}

.form-thank-you[hidden],
.appointment-form[hidden] {
  display: none;
}

.form-reset-button {
  cursor: pointer;
  border: 1px solid var(--neutral-dark);
  background: transparent;
  color: var(--neutral-dark);
  padding: 12px 26px;
  border-radius: var(--radius-button);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- Blog post ---------- */

.blog-post-hero {
  position: relative;
  background: var(--dark-satin-background);
  color: var(--text-off-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 180px;
}

.blog-post-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(40px, 6vw, 88px) var(--page-side-gutter-narrow) 0;
}

.blog-post-hero-text {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.blog-post-hero-text .breadcrumb {
  pointer-events: auto;
}

.page-title-h1.is-article-title {
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.02;
  white-space: normal;
  text-wrap: balance;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--body-font);
  font-size: 13px;
  color: var(--footer-text);
}

.article-byline-photo {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #1f1f1f;
}

.article-byline-photo img,
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.article-byline-name {
  color: var(--text-off-white);
}

.article-byline-divider {
  color: #6f747d;
}

.featured-image-section {
  position: relative;
  z-index: 2;
  padding: 0 var(--page-side-gutter-narrow);
  margin-top: -140px;
}

.featured-image-frame {
  position: relative;
  border-radius: var(--radius-card);
  max-width: 1120px;
  margin: 0 auto;
  aspect-ratio: 16 / 8;
  background: var(--image-placeholder-background-warm);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}

.featured-image-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-section {
  padding: clamp(56px, 7vw, 96px) var(--page-side-gutter-narrow) clamp(64px, 8vw, 104px);
}

.article-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 72px minmax(0, 720px);
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}

.share-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 32px;
  align-self: start;
}

.share-label {
  font-family: var(--body-font);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-label-grey);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding-bottom: 8px;
}

.share-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--neutral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-charcoal);
}

.share-link.is-email {
  font-size: 13px;
  font-weight: 400;
}

.article-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.article-lead {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.7;
  color: var(--text-near-black);
  text-wrap: pretty;
}

.article-title-h2 {
  margin: 18px 0 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--neutral-dark);
}

.article-title-h2.has-no-space-above {
  margin-top: 0;
}

.article-title-h3 {
  margin: 10px 0 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--neutral-dark);
}

.article-title-h4 {
  margin: 6px 0 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--neutral-dark);
}

.article-paragraph a,
.article-paragraph a:hover {
  color: var(--neutral-dark);
}

.article-paragraph {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--neutral-medium);
  text-wrap: pretty;
}

.article-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--neutral-medium);
}

.article-quote {
  margin: 24px 0;
  padding: 32px 0;
  border-top: 1px solid var(--main-accent-default);
  border-bottom: 1px solid var(--main-accent-default);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.article-quote-text {
  margin: 0;
  font-family: var(--heading-font-2);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.3;
  color: var(--neutral-dark);
  text-wrap: balance;
}

.article-quote-author {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--main-accent-dark);
  font-weight: 600;
  font-style: normal;
}

.article-figure {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.key-takeaways {
  margin-top: 20px;
  background: var(--beige-background);
  border: 1px solid var(--neutral-light);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.key-takeaways-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--neutral-medium);
}

.article-disclaimer {
  margin: 8px 0 0;
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1.6;
  color: #8a8a8a;
}

.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.article-tag {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-small-body);
  border: 1px solid var(--neutral-light);
  padding: 8px 14px;
}

.author-box {
  margin-top: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--neutral-light);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
}

.author-photo {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--image-placeholder-background-warm);
}

.author-name {
  font-family: var(--heading-font);
  font-size: 19px;
  color: var(--neutral-dark);
}

.author-bio {
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-small-body);
}

/* ---------- Legal page ---------- */

.legal-text {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--body-font);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--neutral-medium);
}

.legal-text h2 {
  margin: 56px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--neutral-light);
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--neutral-dark);
  scroll-margin-top: 24px;
}

.legal-text h2:first-of-type {
  margin-top: 40px;
}

.legal-text h3 {
  margin: 32px 0 10px;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--neutral-dark);
}

.legal-text h4 {
  margin: 24px 0 8px;
  font-family: var(--body-font);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--main-accent-dark);
}

.legal-text p {
  margin: 0 0 14px;
}

.legal-text ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-text li {
  margin-bottom: 6px;
}

.legal-text a {
  color: var(--main-accent-dark);
  border-bottom: 1px solid var(--main-accent-default);
}

.legal-text .legal-intro {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.8;
}

/* ---------- Call to action band ---------- */

.call-to-action-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--neutral-dark);
  color: var(--text-off-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2), 0 -8px 24px rgba(0, 0, 0, .18);
}

.call-to-action-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.call-to-action-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--photo-overlay);
}

.call-to-action-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  padding: var(--section-padding-default) var(--page-side-gutter-narrow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.call-to-action-content a {
  pointer-events: auto;
}

.call-to-action-phone,
.call-to-action-phone:hover {
  font-family: var(--body-font);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--main-accent-default);
  font-weight: 600;
}

.call-to-action-title {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 900px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--neutral-dark);
  color: var(--text-off-white);
  box-shadow: inset 0 14px 28px -12px rgba(0, 0, 0, .25), inset 0 -14px 28px -12px rgba(0, 0, 0, .25);
}

.footer-main {
  padding: clamp(64px, 8vw, 104px) var(--page-side-gutter-narrow) 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer-name {
  margin: 0;
  font-family: var(--body-font);
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-off-white);
}

.footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  font-family: var(--body-font);
  font-size: 15px;
  color: var(--footer-text);
}

.footer-detail,
.footer-detail:hover {
  color: var(--footer-text);
  display: flex;
  gap: 8px;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link,
.social-link:hover {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-off-white);
}

.footer-credits {
  border-top: 1px solid var(--line-on-dark-soft);
  padding: 22px var(--page-side-gutter-narrow);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-family: var(--body-font);
  font-size: 13px;
  color: var(--footer-fineprint);
  text-align: center;
}

.footer-credits a,
.footer-credits a:hover {
  color: var(--footer-fineprint);
}

.footer-credits .o360-link,
.footer-credits .o360-link:hover {
  color: var(--main-accent-default);
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  /* Menu: a round menu button opens the menu over the whole screen */
  .site-logo,
  .menu-toggle-button {
    position: relative;
    z-index: 2;
  }

  .menu-toggle-button {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
  }

  .menu-toggle-button span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--text-off-white);
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle-button:hover,
  .menu-toggle-button[aria-expanded="true"] {
    border-color: var(--main-accent-default);
  }

  .menu-toggle-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-navigation {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow-y: auto;
    padding: 116px var(--page-side-gutter) 40px;
    background: var(--neutral-dark);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 12px;
    letter-spacing: .14em;
    border-top: 1px solid var(--main-accent-default);
  }

  .main-navigation-links > li {
    border-bottom: 1px solid var(--line-on-dark-soft);
  }

  .main-navigation-links > li > a,
  .menu-label {
    display: flex;
    padding: 16px 0;
  }

  .has-sub-menu {
    display: block;
    padding: 0;
  }

  .menu-arrow {
    display: none;
  }

  .sub-menu,
  .has-sub-menu:hover > .sub-menu,
  .has-sub-menu:focus-within > .sub-menu {
    display: flex;
    position: static;
    min-width: 0;
    padding: 0 0 12px 18px;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .sub-menu a {
    padding: 10px 0;
    color: var(--footer-text);
    background: none;
    white-space: normal;
    line-height: 1.5;
  }

  .main-navigation-links .header-phone {
    font-size: 14px;
  }

  body.menu-is-open {
    overflow: hidden;
  }

  /* The photo's icon box sits under the photo, overlapping only its bottom edge */
  .photo-icon-box {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: -36px 12px 0;
    max-width: none;
    padding: 16px 18px;
  }

  /* Footer details on phones: the icon sits next to its text, even when the text wraps */
  .footer-detail,
  .footer-detail:hover {
    display: block;
    text-align: center;
  }

  .footer-detail .gold-glyph {
    margin-right: 8px;
  }

  /* The credits wrap onto lines on phones, so the divider before Legal Notices is hidden */
  .footer-credits > span:nth-child(2) {
    display: none;
  }

  /* The doctor introduction stacks: photo above the text, title may wrap */
  .doctor-intro-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .doctor-intro-text .section-title-h2 {
    white-space: normal;
  }

  /* Blog post byline on phones: the date wraps onto its own line, so the divider is hidden */
  .article-byline-divider {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
  }
}

/* Accessibility options button (Sean, 2026-10-19): a placeholder in the lower-right corner of every
   page, in the main accent colour, with a shadow in case the page behind is the same colour. No action
   yet: it will open Deck's shared accessibility widget (TODO.md, Accessibility popup). */
.o360-a11y {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--main-accent-default);
  color: var(--neutral-dark, #1a1a1a);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.o360-a11y svg { display: block; width: 28px; height: 28px; }
.o360-a11y:focus-visible { outline: 3px solid var(--neutral-dark, #1a1a1a); outline-offset: 3px; }
@media (max-width: 767px) { .o360-a11y { right: 16px; bottom: 16px; } }
@media print { .o360-a11y { display: none; } }

/* Two labelled lists side by side (Herniated Disc: Symptoms, Candidacy): more room between them when they stack */
[data-section="common-symptoms"] .service-two-column-split.has-stacked-lists {
  row-gap: 56px;
}

/* Spinal Stenosis page, Common Symptoms with a gold label: on desktop the right column lines up with the title, below the label */
@media (min-width: 1025px) {
  .symptoms-with-label .text-stack.align-with-title {
    margin-top: 39px;
  }
}

/* Image position (rules/html/rules.md, Site styles): where an image is cropped */
img[class*="img-pos-"] { object-position: var(--img-pos-x, center) var(--img-pos-y, center) !important; }
.img-pos-left { --img-pos-x: left; } .img-pos-right { --img-pos-x: right; }
.img-pos-top { --img-pos-y: top; } .img-pos-bottom { --img-pos-y: bottom; }

/* Insurance page, How Coverage Works: numbers, titles and paragraphs line up across the three steps */
[data-section="how-coverage-works"] .numbered-step {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 14px;
  align-content: start;
}

/* Insurance page, opening section: the title on the left, the text on the right behind a thin line, no photo */
.coverage-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px var(--gap-between-columns);
  align-items: start;
}

.coverage-intro-split .section-title-h2 {
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.05;
}

.coverage-intro-split .coverage-intro-heading {
  gap: 24px;
}

.coverage-intro-split .coverage-intro-text {
  padding-left: clamp(28px, 3.5vw, 56px);
  border-left: 1px solid var(--line-on-dark);
}

.coverage-intro-split .intro-text {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--text-cream);
}

@media (max-width: 767px) {
  .coverage-intro-split {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .coverage-intro-split .section-title-h2 {
    font-size: 24px;
  }

  .coverage-intro-split .coverage-intro-text {
    padding-left: 0;
    padding-top: 32px;
    border-left: 0;
    border-top: 1px solid var(--line-on-dark);
  }
}

/* Insurance page, opening section: the title runs across the top; below it the photo on the left and the text on the right, centred against each other */
.coverage-intro-split .coverage-intro-photo {
  margin-top: 0;
}

.coverage-intro-split .coverage-intro-heading {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .coverage-intro-split {
    align-items: center;
  }
}

/* Insurance page, Working With Your Insurance: on desktop the What to Have Ready list lines up with the title, below the gold label */
@media (min-width: 1025px) {
  [data-section="working-with-your-insurance"] .text-stack.align-with-title {
    margin-top: 39px;
  }
}

/* Insurance page, opening section, tablets and up: the photo on the left; the title and the text stacked on the right, from the top, so no empty space sits above the text */
@media (min-width: 768px) {
  .coverage-intro-split {
    grid-template-rows: auto 1fr;
    align-items: start;
    row-gap: 32px;
  }

  .coverage-intro-split .coverage-intro-photo {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .coverage-intro-split .coverage-intro-heading {
    grid-column: 2;
    grid-row: 1;
    padding-left: clamp(28px, 3.5vw, 56px);
  }

  .coverage-intro-split .coverage-intro-text {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Insurance page, How Coverage Works: each step title stays on one line */
[data-section="how-coverage-works"] .widget-title-h3 {
  font-size: clamp(15px, 1.35vw, 19px);
}

@media (min-width: 768px) {
  [data-section="how-coverage-works"] .widget-title-h3 {
    white-space: nowrap;
  }
}


/* The 404 page (Page not found): its block, in the site's own fonts and colours (Sean, 2026-11-16) */
.o360-not-found{max-width:960px;margin:0 auto;padding:120px 24px;text-align:center}
.o360-not-found h1{margin:0 0 16px}
.o360-not-found p{margin:0 0 12px}
.o360-not-found .section-title-h2{margin:0 0 16px}
.o360-not-found .button-row{justify-content:center;padding-top:20px}
@media (max-width:599px){.o360-not-found .button-row{flex-direction:column;align-items:center}.o360-not-found .outline-button{width:min(100%,280px);text-align:center}}

/* Submenus start closed in the pop-up menu (Sean, 2026-11-18): the ▼ of an item with a submenu moves into a button at the
   right of its row (site.js), which opens and closes the submenu and turns over while it is open. On desktop the ▼
   stays in the link text as before (its span takes no box of its own). */
.o360-menu-arrow { display: contents; }
.o360-submenu-toggle { display: none; }
@media (max-width: 767px) {
  .main-navigation-links > .has-sub-menu { position: relative; }
  .main-navigation-links > .has-sub-menu > a .o360-menu-arrow { display: none; }
  .main-navigation-links > .has-sub-menu:not(.is-submenu-open) > .sub-menu { display: none; }
  .o360-submenu-toggle { position: absolute; top: 0; right: 0; display: grid; place-content: center; width: 52px; height: 47px; padding: 0; border: 0; background: none; font-size: 12px; color: var(--text-off-white); cursor: pointer; }
  .o360-submenu-toggle:hover, .o360-submenu-toggle:focus-visible { color: var(--main-accent-default); }
  .o360-submenu-toggle .o360-menu-arrow { display: block; transition: transform .3s ease; }
  .main-navigation-links .is-submenu-open > .o360-submenu-toggle .o360-menu-arrow { transform: rotate(180deg); }
}

/* About page, Education and Training: the photo and numbered credential cards in one grid, Fellowship as the wide featured card */
.education-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-between-items);
  counter-reset: education-card;
}

.photo-frame.education-card-photo {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  min-height: 380px;
  background: var(--satin-card-background);
  box-shadow: var(--shadow-photo-on-dark);
}

.education-card {
  counter-increment: education-card;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.4vw, 32px);
  background: rgb(from var(--satin-card-background) r g b / .7);
  border: 1px solid var(--line-on-dark);
  border-top: 2px solid var(--main-accent-default);
  border-radius: var(--radius-card);
  transition: border-color .3s ease, transform .3s ease;
}

.education-card:hover {
  border-color: rgb(from var(--main-accent-default) r g b / .5);
  border-top-color: var(--main-accent-default);
  transform: translateY(-3px);
}

.education-card::before {
  content: counter(education-card, decimal-leading-zero);
  font-family: var(--heading-font-2);
  font-weight: 300;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1;
  color: var(--main-accent-default);
}

.education-card .row-label {
  padding-top: 0;
  font-family: var(--body-font);
  font-weight: 600;
  color: var(--main-accent-light);
}

.education-card .education-row-value {
  font-family: var(--heading-font);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.5;
  color: var(--text-cream);
}

.education-card.is-featured {
  grid-column: 3 / span 2;
  justify-content: center;
  background: linear-gradient(in srgb 135deg, rgb(from var(--main-accent-default) r g b / .16), rgb(from var(--satin-card-background) r g b / .7) 70%);
}

.education-card.is-featured .education-row-value {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .education-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-frame.education-card-photo {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .education-card.is-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .education-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-frame.education-card-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .education-card {
    transition: none;
  }

  .education-card:hover {
    transform: none;
  }
}
