:root {
  --navy: #12344a;
  --navy-2: #0b2637;
  --teal: #117f78;
  --teal-light: #dff4f0;
  --gold: #d99a2b;
  --ink: #1c2a33;
  --muted: #5d6b74;
  --line: #cfdae0;
  --paper: #ffffff;
  --wash: #f3f7f8;
  --danger: #a83a3a;
  --success: #256f4a;
  --shadow: 0 12px 32px rgba(18, 52, 74, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--wash); line-height: 1.55; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; }

.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: .75rem 1rem; color: white; background: var(--navy-2); }
.skip-link:focus { top: 1rem; }

.site-header { background: var(--navy); color: white; border-bottom: 5px solid var(--teal); }
.header-inner { max-width: 1180px; margin: auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: .75rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; border: 2px solid #6ed6c8; display: grid; place-items: center; font-size: .77rem; color: #6ed6c8; }
.brand small { display: block; color: #cce6e5; font-weight: 600; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav a { color: white; text-decoration: none; padding: .6rem .75rem; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: #6ed6c8; }
.main-nav .nav-action { background: white; color: var(--navy); border: 0; padding-inline: 1rem; font-weight: 800; }

.page { max-width: 1180px; margin: auto; padding: 2.25rem 1.25rem 4rem; }
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.5rem; align-items: stretch; }
.hero-main { background: var(--paper); border-left: 8px solid var(--teal); padding: clamp(1.5rem, 4vw, 3.4rem); box-shadow: var(--shadow); }
.eyebrow { color: var(--teal); font-size: .82rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy-2); line-height: 1.15; }
h1 { margin: .5rem 0 1rem; font-size: clamp(2.1rem, 6vw, 4.4rem); letter-spacing: -.055em; max-width: 13ch; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.035em; }
h3 { font-size: 1.1rem; }
.lede { font-size: 1.12rem; max-width: 62ch; color: #3c4b54; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none; padding: .72rem 1.05rem; border: 2px solid var(--navy); background: var(--navy); color: white; font-weight: 800; cursor: pointer; }
.button:hover { background: var(--navy-2); }
.button.secondary { color: var(--navy); background: white; }
.button.teal { background: var(--teal); border-color: var(--teal); }
.button.small { min-height: 38px; padding: .48rem .75rem; font-size: .92rem; }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.clinic-summary { background: var(--navy-2); color: white; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.clinic-summary h2 { color: white; margin-top: 0; }
.summary-row { padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.summary-row strong { display: block; color: #80ded2; }
.clinic-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 1.25rem; align-items: stretch; background: white; border-left: 8px solid var(--teal); padding: clamp(1.4rem, 4vw, 3rem); box-shadow: var(--shadow); }
.clinic-intro h1 { margin-bottom: .75rem; }
.clinic-distinction { padding: 1.4rem; color: white; background: var(--navy-2); align-self: stretch; }
.clinic-distinction strong { color: #80ded2; font-size: 1.18rem; }
.clinic-distinction a { color: #80ded2; font-weight: 800; }
/* Recovery cross-clinic callout: maintain contrast if another theme overrides the panel background. */
.recovery-intro .clinic-distinction { background: #0b2637; color: #ffffff; }
.recovery-intro .clinic-distinction p { color: #ffffff; }
.recovery-intro .clinic-distinction strong,
.recovery-intro .clinic-distinction a { color: #80ded2; }
.recovery-intro .clinic-distinction a:focus-visible { outline: 3px solid #d99a2b; outline-offset: 3px; }
.stretch-intro { border-left-color: var(--gold); }
.stretch-intro .eyebrow { color: #9a6412; }
.modality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.modality-grid details { height: 100%; }
.modality-grid summary { min-height: 64px; display: flex; align-items: center; }
.media-note { margin-top: 1rem; }

.section { margin-top: 3.2rem; }
.section-heading { max-width: 700px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: 1.25rem; }
.card p:last-child { margin-bottom: 0; }
.clinic-card { display: flex; flex-direction: column; }
.clinic-card .button { margin-top: auto; align-self: flex-start; }
.meta { color: var(--muted); font-size: .92rem; }
.tag { display: inline-block; padding: .2rem .55rem; background: var(--teal-light); color: #075952; font-weight: 800; font-size: .78rem; }
.notice { padding: 1rem 1.1rem; border-left: 5px solid var(--gold); background: #fff8e8; }
.notice strong { color: #734e0f; }
.staff-callout { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem; color: white; background: var(--navy); }
.staff-callout h2 { margin: .25rem 0; color: white; }
.staff-callout p { margin-bottom: 0; }
.staff-callout .eyebrow { color: #80ded2; }
.staff-callout .button { flex: 0 0 auto; }

.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: white; padding: 1.25rem; }
.step::before { counter-increment: steps; content: counter(steps); display: grid; place-items: center; width: 2rem; height: 2rem; color: white; background: var(--teal); font-weight: 850; margin-bottom: .75rem; }

.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.form-panel, .side-panel, .portal-panel { background: white; border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); }
.side-panel { position: sticky; top: 1rem; }
.form-section { border: 0; padding: 0; margin: 0 0 2rem; }
.form-section legend { width: 100%; padding: 0 0 .65rem; margin-bottom: 1rem; border-bottom: 2px solid var(--navy); color: var(--navy); font-size: 1.25rem; font-weight: 850; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.section-compact { margin-top: 1rem; }
.field label, .field-label { font-weight: 750; color: var(--navy-2); }
.required { color: var(--danger); }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #9babb4; background: white; padding: .65rem .7rem; border-radius: 0; }
textarea { min-height: 90px; resize: vertical; }
.help { color: var(--muted); font-size: .86rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; }
.choice { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem; border: 1px solid var(--line); background: #fbfdfd; }
.choice input { width: 1.15rem; min-height: auto; height: 1.15rem; margin-top: .2rem; }
.session-list { display: grid; gap: .65rem; }
.session-option { position: relative; }
.session-option input { position: absolute; opacity: 0; }
.session-option label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 2px solid var(--line); cursor: pointer; }
.session-option input:checked + label { border-color: var(--teal); background: var(--teal-light); }
.session-option input:focus-visible + label { outline: 3px solid var(--gold); }
.availability { color: var(--success); font-size: .82rem; font-weight: 800; }
.availability.low { color: #9b6016; }
.availability.wait { color: var(--danger); }
.summary-list { padding: 0; list-style: none; }
.summary-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.success-box { display: none; padding: 1.5rem; background: #e6f4eb; border-left: 6px solid var(--success); }
.success-box.is-visible { display: block; }
.narrow-page { max-width: 820px; }
.appointment-card h2 { margin: .4rem 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 1.25rem 0; background: var(--line); border: 1px solid var(--line); }
.detail-grid div { padding: 1rem; background: white; }
.detail-grid dt { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.detail-grid dd { margin: .25rem 0 0; font-weight: 700; }
.inline-panel { margin-top: 1.2rem; padding: 1.1rem; background: var(--wash); border: 1px solid var(--line); }
.success-message, .share-status { color: var(--success); font-weight: 800; }
.subscribe-choice { margin-top: 1rem; max-width: 700px; }
.choice.selected { border-color: var(--teal); background: var(--teal-light); }
.offer-clock { display: inline-grid; padding: 1rem 1.2rem; color: white; background: var(--navy-2); }
.offer-clock span { color: #cce6e5; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.offer-clock strong { font-size: 2rem; }
.acknowledge-choice { margin-top: 1rem; border-color: var(--gold); }
.feedback-list { display: grid; gap: .8rem; }
.feedback-item { border-left: 5px solid var(--teal); padding: 1rem; background: var(--wash); }
.feedback-item blockquote { margin: .4rem 0 0; font-size: 1.05rem; }
.digest-preview { margin: 0 0 1.2rem; }

.faq-list { display: grid; gap: .75rem; max-width: 850px; }
details { background: white; border: 1px solid var(--line); }
summary { padding: 1rem 1.1rem; cursor: pointer; font-weight: 800; color: var(--navy); }
details p, details ul { margin: 0; padding: 0 1.1rem 1.1rem; }

.portal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.2rem; }
.role-switcher { background: var(--navy-2); color: white; padding: 1rem; align-self: start; }
.role-switcher h2 { color: white; font-size: 1rem; }
.role-switcher button { width: 100%; padding: .65rem; margin: .25rem 0; text-align: left; border: 1px solid rgba(255,255,255,.25); background: transparent; color: white; cursor: pointer; }
.role-switcher button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); font-weight: 800; }
.role-view[hidden] { display: none; }
.portal-topline { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.status { display: inline-block; padding: .22rem .55rem; font-size: .78rem; font-weight: 800; background: #e8eef1; }
.status.arrived { color: var(--success); background: #e4f3e9; }
.status.due { color: #825108; background: #fff1d6; }
.email-alert { margin-top: 0; margin-bottom: 1rem; }
.email-problem-row { background: #fffaf0; box-shadow: inset 5px 0 0 var(--gold); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--navy); background: #eef4f6; font-size: .86rem; }
.check-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.2rem; }
.metric { border-left: 5px solid var(--teal); background: white; padding: 1rem; }
.metric strong { display: block; font-size: 1.8rem; color: var(--navy); }
.bar-list { display: grid; gap: .8rem; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 45px; gap: .7rem; align-items: center; }
.bar-track { height: .75rem; background: #dfe8eb; }
.bar-fill { height: 100%; background: var(--teal); }
.footer { background: var(--navy-2); color: #d8e6eb; }
.footer-inner { max-width: 1180px; margin: auto; padding: 2rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; }
.footer a { color: #80ded2; }

@media (max-width: 850px) {
  .header-inner { align-items: flex-start; }
  .main-nav { flex-wrap: wrap; justify-content: flex-end; }
  .hero, .clinic-intro, .form-shell, .portal-layout { grid-template-columns: 1fr; }
  .card-grid, .modality-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .side-panel { position: static; }
  .role-switcher { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
  .role-switcher h2 { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .header-inner, .footer-inner { display: block; }
  .main-nav { margin-top: .9rem; justify-content: flex-start; }
  .main-nav a { padding-inline: .45rem; }
  .field-grid, .choice-grid, .steps, .detail-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 36px; }
  h1 { font-size: 2.45rem; }
  .staff-callout { display: block; }
  .staff-callout .button { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Approved public clinic design system */
:root {
  --navy: #3f3446;
  --teal: #af654d;
  --teal-dark: #914d3c;
  --ink: #28232c;
  --muted: #6e6870;
  --line: #ddd5c9;
  --soft: #f7f2e9;
  --paper: #fffdf9;
  --sage: #61705c;
  --sage-soft: #e8eee5;
  --clay-soft: #f6e5de;
  --gold: #c59b52;
  --shadow: 0 18px 45px rgba(45,35,48,.12);
}

body.public-site { background: var(--soft); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
.public-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.public-header .header-inner { max-width: 1240px; }
.public-header .brand { color: var(--navy); }
.public-header .brand strong { display: block; font-size: 1.02rem; }
.public-header .brand small { color: var(--muted); }
.public-header .brand-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: white; }
.public-header .main-nav a { color: var(--muted); border-radius: 9px; font-weight: 700; }
.public-header .main-nav a:hover,
.public-header .main-nav a:focus-visible,
.public-header .main-nav a[aria-current="page"] { background: var(--soft); color: var(--navy); }

.public-hero { background: linear-gradient(125deg, var(--navy) 0%, #584353 62%, #766354 100%); color: white; padding: clamp(48px,8vw,92px) clamp(22px,7vw,100px); display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: clamp(30px,6vw,80px); align-items: center; }
.public-hero h1 { margin: 0 0 22px; max-width: 760px; color: white; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.45rem,5.4vw,5rem); font-weight: 500; line-height: 1.02; }
.public-hero .hero-copy > p:not(.eyebrow) { max-width: 650px; color: #efe9ee; font-size: 1.15rem; }
.public-hero .arrival-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 18px; padding: 26px; backdrop-filter: blur(8px); }
.public-hero .arrival-card h2 { margin: 2px 0 10px; color: white; font-family: Georgia, serif; font-size: 1.8rem; }
.public-hero .location-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.public-hero .location-links a { color: white; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; padding: 7px 9px; font-size: .77rem; font-weight: 800; text-decoration: none; }
.public-hero .location-links a:hover,
.public-hero .location-links a:focus-visible { background: white; color: var(--navy); }
.eyebrow.light { color: #ebd4a7; }
.card-kicker { margin: 0; color: var(--gold); font-size: .73rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.booking-shell { max-width: 1180px; margin: 0 auto; padding: 52px 24px 72px; }
.booking-shell .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.booking-shell .section-heading h2,
.visit-section h2 { margin: 0; color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.9rem,4vw,2.6rem); font-weight: 600; }
.booking-shell .section-heading .muted { max-width: 430px; text-align: right; }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.service-card { min-height: 310px; padding: 22px; background: var(--paper); border: 2px solid transparent; border-radius: 15px; box-shadow: 0 5px 18px rgba(45,35,48,.05); display: flex; flex-direction: column; gap: 10px; }
.service-card h3 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.45rem; }
.service-card p { margin: 0; }
.service-card .button { margin-top: auto; }
.service-tag { align-self: flex-start; border-radius: 100px; padding: 5px 9px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.service-tag.recovery { background: var(--clay-soft); color: #82422f; }
.service-tag.stretch { background: var(--sage-soft); color: #3e513a; }
.service-tag.group { background: #efe6ce; color: #694d1d; }
.service-meta { color: var(--navy); }
.date-list { border-left: 3px solid var(--gold); padding-left: 9px; color: var(--navy); font-size: .82rem; font-weight: 800; }
.registration-status { margin-top: auto !important; padding: 10px; background: var(--soft); border-radius: 9px; color: var(--muted); font-size: .82rem; }
.visit-section { max-width: 1180px; margin: 0 auto 64px; padding: 32px; background: var(--paper); border-radius: 18px; box-shadow: 0 5px 18px rgba(45,35,48,.06); }
.visit-section > div:first-child { max-width: 760px; }
.visit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.visit-grid article { padding: 18px; background: var(--sage-soft); border-radius: 12px; }
.visit-grid h3 { margin: 0 0 8px; color: #354632; }
.visit-grid p { margin: 0; }

body.public-site .page { max-width: 1180px; }
body.public-site .clinic-intro { background: var(--paper); border: 0; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
body.public-site .clinic-intro h1,
body.public-site .section-heading h2,
body.public-site .form-section legend,
body.public-site .side-panel h2 { color: var(--navy); font-family: Georgia, 'Times New Roman', serif; }
body.public-site .recovery-intro { border-top: 8px solid var(--teal); }
body.public-site .stretch-intro { border-top: 8px solid var(--sage); }
body.public-site .clinic-distinction { background: var(--sage-soft); color: var(--ink); border: 0; border-radius: 12px; }
/* Keep both clinic callouts readable after the public theme overrides their background. */
body.public-site .clinic-distinction p,
body.public-site .clinic-distinction strong { color: var(--ink); }
body.public-site .clinic-distinction a { color: var(--navy); }
body.public-site .clinic-distinction a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
body.public-site .form-panel,
body.public-site .side-panel { background: var(--paper); border: 0; border-radius: 18px; box-shadow: var(--shadow); }
body.public-site input,
body.public-site select,
body.public-site textarea { border-color: #bdb4ab; border-radius: 9px; background: white; }
body.public-site .session-option { margin-bottom: 10px; }
body.public-site .session-option label { min-height: 88px; background: white; border: 1px solid var(--line); border-radius: 12px; }
body.public-site .session-option input:checked + label { border-color: var(--navy); background: #f1edf2; box-shadow: 0 0 0 2px var(--navy); }
body.public-site .availability { color: #3e513a; }
body.public-site .notice { border: 0; border-left: 5px solid var(--gold); background: #f4ead2; border-radius: 10px; }
body.public-site .button { border-radius: 10px; font-weight: 800; }
body.public-site .button.primary,
body.public-site .button.teal { background: var(--teal); color: white; }
body.public-site .button.primary:hover,
body.public-site .button.teal:hover { background: var(--teal-dark); }
body.public-site .button.secondary { background: var(--paper); border-color: var(--navy); color: var(--navy); }
.public-footer { background: var(--navy); }
.portal-signin-card { max-width: 720px; margin: 64px auto; padding: clamp(28px,5vw,48px); background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); }
.portal-signin-card h1 { margin: 0 0 18px; color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem,5vw,3.25rem); line-height: 1.08; }
.portal-signin-card .button { margin-top: 12px; }
.activation-card { max-width: 780px; }
.activation-card h2 { color: var(--navy); font-family: Georgia, 'Times New Roman', serif; }
.signed-in-line { display: flex; flex-wrap: wrap; gap: .45rem; align-items: baseline; padding: .75rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.text-button { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--teal-dark); text-decoration: underline; cursor: pointer; }
.course-confirmation { margin-top: 1rem; }
.course-confirmation .choice { margin-top: .5rem; }
.activation-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 1.25rem 0; background: var(--line); border: 1px solid var(--line); }
.activation-summary div { padding: 1rem; background: var(--paper); }
.activation-summary dt { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.activation-summary dd { margin: .25rem 0 0; font-weight: 700; }
.account-review-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.account-review-card h3 { margin: .55rem 0 .15rem; font-family: Georgia, 'Times New Roman', serif; color: var(--navy); font-size: 1.5rem; }
.account-review-card .form-section { margin-top: 1.25rem; margin-bottom: 1rem; }
.account-review-card .form-section legend { font-size: 1rem; }
.account-review-card .choice + .choice { margin-top: .45rem; }

@media (max-width: 850px) {
  .account-review-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .activation-summary { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .public-hero { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 650px) {
  .public-hero { padding: 45px 20px 64px; }
  .public-hero h1 { font-size: 2.55rem; }
  .booking-shell .section-heading { align-items: flex-start; flex-direction: column; }
  .booking-shell .section-heading .muted { text-align: left; }
  .service-grid,
  .visit-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .visit-section { margin-inline: 15px; padding: 24px 20px; }
}


/* Private appointment-management page: approved client-site palette.
   Scoped here so instructor and student portal styles remain unchanged. */
.manage-appointment-page .public-header .main-nav .nav-action {
  background: var(--soft);
  color: var(--navy);
  border-radius: 9px;
}
.manage-appointment-page .narrow-page { max-width: 900px; }
.manage-appointment-page .narrow-page > h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  max-width: none;
  margin-bottom: 1.4rem;
}
.manage-appointment-page .appointment-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.manage-appointment-page .appointment-card h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
}
.manage-appointment-page .detail-grid {
  background: var(--line);
  border-color: var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.manage-appointment-page .detail-grid > div { background: var(--paper); }
.manage-appointment-page .tag {
  background: var(--clay-soft);
  color: #82422f;
  border-radius: 5px;
}
.manage-appointment-page .status {
  background: var(--sage-soft);
  color: #344b33;
  border-radius: 5px;
}
.manage-appointment-page .notice {
  background: #f4ead2;
  border-left: 5px solid var(--gold);
  border-radius: 9px;
}
.manage-appointment-page .inline-panel {
  background: var(--soft);
  border-color: var(--line);
  border-radius: 9px;
}
.manage-appointment-page .button {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  border-radius: 9px;
}
.manage-appointment-page .button.secondary {
  background: var(--paper);
  border-color: var(--navy);
  color: var(--navy);
}
.manage-appointment-page .button:focus-visible,
.manage-appointment-page .main-nav a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.manage-appointment-page .footer a { color: #f6e5de; }
@media (max-width: 560px) {
  .manage-appointment-page .narrow-page > h1 { font-size: 2.3rem; }
  .manage-appointment-page .portal-topline { align-items: flex-start; flex-wrap: wrap; }
  .manage-appointment-page .actions { flex-wrap: wrap; }
}

/* Preserve the semantic hidden attribute even on flex/grid/button elements.
   CSS component display rules must never expose unauthorized navigation. */
[hidden] { display: none !important; }

/* Save status appears alongside the student note form, never solely at the
   top of a long page. Visible and announced to screen-reader users. */
[data-documentation-status] { min-height: 1.6em; margin: .8rem 0; font-weight: 700; }
[data-documentation-status][data-state="success"] { color: #26603e; }
[data-documentation-status][data-state="error"] { color: #a02626; }
[data-session-form] .choice:has(input:disabled) {
  opacity: .6;
  cursor: not-allowed;
}


/* Practitioner profiles stay inside the existing appointment selection flow. */
.practitioner-profile { margin-block: 1rem; padding: 1rem; border: 1px solid currentColor; border-radius: .5rem; overflow: auto; }
.practitioner-profile img { width: min(100%, 180px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: .4rem; float: left; margin: 0 1rem .75rem 0; }
.practitioner-profile h3 { margin-top: 0; }
@media (max-width: 420px) { .practitioner-profile img { float: none; display: block; margin: 0 0 1rem; } }

.practitioner-photo-placeholder { display: grid; place-items: center; width: min(100%, 180px); aspect-ratio: 4 / 5; margin: 0 1rem .75rem 0; padding: 1rem; background: #f1edf2; color: #374151; border: 1px solid #bdb4ab; border-radius: .4rem; text-align: center; float: left; }
@media (max-width: 420px) { .practitioner-photo-placeholder { float: none; margin: 0 0 1rem; } }
