:root {
    color-scheme: dark;
    --brand-blue: #b7cce0;
    --brand-blue-deep: #17232d;
    --brand-blue-soft: #7797b4;
    --brand-teal: #00a58c;
    --brand-teal-dark: #55cbb3;
    --accent: #8cd6cc;
    --accent-surface: #244247;
    --accent-line: #426b70;
    --ink: #e5eeec;
    --muted: #a9babd;
    --surface: #17232d;
    --paper: #22313b;
    --line: #3a4d56;
    --shadow: 0 18px 42px rgb(0 0 0 / 24%);
    --radius: 1.25rem;
}

* { box-sizing: border-box; }

.site-footer .footer-game-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--accent) !important; border: 1px solid var(--accent-line); border-radius: 50%; }
.site-footer .footer-game-link:hover { background: var(--accent-surface); color: var(--ink) !important; }
.footer-game-link svg { width: 20px; height: 20px; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #24333e !important;
    color: var(--ink);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

body, p, td, th, li { color: var(--ink); }

a {
    color: var(--brand-teal-dark) !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover { color: var(--ink) !important; }
a:focus-visible, button:focus-visible { outline: 3px solid #55b9a5; outline-offset: 3px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #111c25;
    border-bottom: 0;
    box-shadow: 0 4px 20px rgb(0 0 0 / 18%);
    backdrop-filter: blur(14px);
}

.site-header::before {
    display: none;
    height: 4px;
    background: var(--brand-teal);
    content: "";
}

.site-header-inner {
    display: flex;
    width: min(1200px, calc(100% - 2.5rem));
    min-height: 106px;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 0 auto;
}

body > main {
    width: 100%;
    margin-inline: auto;
    padding-inline: max(1.25rem, calc((100% - 1200px) / 2));
}

.header-contact-bar { width: min(1200px, calc(100% - 2.5rem)); margin-inline: auto; background: #111c25; border-top: 1px solid var(--line); }
.header-contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.25rem; width: 100%; padding: 0 .65rem; }
.header-contact-inner a { display: inline-flex; align-items: center; gap: .4rem; min-height: 24px; min-width: 0; color: var(--muted) !important; font-size: .78rem; line-height: 1.4; text-decoration: none; }
.header-contact-inner svg { width: 1rem; height: 1rem; flex: 0 0 auto; color: var(--brand-teal-dark); }
.header-contact-inner a:hover { color: var(--ink) !important; text-decoration: underline; }
.header-contact-inner span { overflow-wrap: anywhere; }
#arrival-title { scroll-margin-top: 11rem; }
@media (max-width: 760px) {
    .header-contact-bar { width: min(680px, calc(100% - 1.25rem)); }
    .header-contact-inner { flex-wrap: nowrap; justify-content: space-evenly; gap: 0 .5rem; padding-block: 0; }
    .header-contact-inner a { position: relative; justify-content: center; min-width: 44px; min-height: 44px; }
    .header-contact-inner svg { width: 1.25rem; height: 1.25rem; }
    /* Keep the link labels available to screen readers. */
    .header-contact-inner span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
    .site-header .nav-toggle { margin-left: auto; }
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-blue) !important;
    text-decoration: none;
}

.site-brand:hover { color: var(--brand-blue) !important; }

.site-brand img {
    display: block;
    flex: 0 0 auto;
    width: 148px;
    height: 96px;
    padding: 0.2rem 0.35rem;
    object-fit: contain;
    border: 1px solid #d4ddd7;
    border-radius: 0.7rem;
    background: #eef1ec;
    box-shadow: 0 3px 12px rgb(0 0 0 / 18%);
}

.brand-copy { display: grid; line-height: 1.3; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-copy small { color: var(--muted); font-size: 0.76rem; }

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 1.3vw, 1.25rem);
}

.site-nav a {
    padding: 0.55rem 0.35rem;
    color: var(--brand-blue) !important;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-teal-dark) !important; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--brand-teal); }

.header-phone {
    display: grid;
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgb(0 155 131 / 28%);
    border-radius: 0.85rem;
    background: #087d70;
    color: #fff !important;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 7px 18px rgb(0 111 96 / 20%);
}

.header-phone span { color: rgb(255 255 255 / 83%); font-size: 0.7rem; }
.header-phone strong { font-size: 0.9rem; }
.header-phone:hover { background: #315269; color: #fff !important; }


.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--paper);
    cursor: pointer;
}

.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
    display: block;
    width: 1.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-blue);
}

.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before, .nav-toggle-lines::after { position: absolute; left: 0; content: ""; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

/* The old fixed-width tables hold the original page content. These rules make
   their existing text, images and links fit the new responsive layout. */
body > table:last-of-type { display: none !important; }

body > table:first-of-type {
    display: block;
    width: min(1160px, calc(100% - 2.5rem)) !important;
    height: auto !important;
    margin: 2.5rem auto 4rem !important;
    border: 0 !important;
    border-spacing: 0 !important;
    border-collapse: separate !important;
}

body > table:first-of-type > tbody,
body > table:first-of-type > tbody > tr { display: block; width: 100%; }

body > table:first-of-type > tbody > tr > td:nth-child(1),
body > table:first-of-type > tbody > tr > td:nth-child(2),
body > table:first-of-type > tbody > tr > td:nth-child(4),
body > table:first-of-type > tbody > tr > td:nth-child(5) { display: none !important; }

body > table:first-of-type > tbody > tr > td:nth-child(3) {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 5px solid var(--brand-teal);
    border-radius: var(--radius);
    background: var(--paper) !important;
    box-shadow: var(--shadow);
}

body > table:first-of-type table {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    border-spacing: 0.75rem;
    border-collapse: separate;
    background: transparent !important;
}

body > table:first-of-type td {
    max-width: 100%;
    padding: 0.35rem;
    vertical-align: top;
    background: transparent !important;
}

body > table:first-of-type td[width] { width: auto !important; }
body > table:first-of-type td[colspan] { width: 100% !important; }

h1, h2, h3, h4 {
    color: var(--brand-blue) !important;
    font-family: inherit;
    line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 {
    margin: 2rem 0 0.8rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid #5a625d;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}
h3 {
    margin: 0 0 0.8rem;
    padding: 0.3rem 0.75rem;
    border-left: 4px solid var(--brand-teal);
    background: #293d47;
    font-size: clamp(1.25rem, 2.8vw, 1.65rem);
}
p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.75; }
body > table:first-of-type td p[align="center"] {
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    background: #293d47;
}
hr { height: 2px; margin: 1.5rem 0; border: 0; background: var(--brand-teal); }

img { max-width: 100%; height: auto; border: 0; border-radius: 0.65rem; }
img[src*="linie_"] { display: none !important; }
img[alt=""] { border-radius: 0.4rem; }
body > table:first-of-type td img:not([src*="linie_"]) { box-shadow: 0 8px 24px rgb(16 67 126 / 12%); }

body > table:first-of-type a img { transition: transform 180ms ease, box-shadow 180ms ease; }
body > table:first-of-type a:hover img { transform: translateY(-2px); box-shadow: 0 8px 22px rgb(30 56 82 / 14%); }

.site-footer {
    padding: 2.5rem 1.25rem;
    background: #111c25;
    color: #fff;
}

.site-footer-inner {
    display: grid;
    width: min(1160px, 100%);
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    margin: 0 auto;
}

.site-footer h2 { margin: 0 0 0.55rem; padding: 0; border: 0; color: white !important; font-size: 1rem; }
.site-footer p { margin: 0; color: rgb(255 255 255 / 82%); font-size: 0.9rem; }
.site-footer a { color: #bfeee3 !important; }
.site-footer a:hover { color: #fff !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-content: start; }
.site-footer .footer-links > a[href="impressum.html"],
.site-footer .footer-links > a[href="datenschutz.html"] { font-size: 0.8rem; }

/* Clear service overview with separate, readable treatment areas. */
.services-page { padding-block: clamp(1.1rem, 3vw, 2.4rem); }
.services-intro {
    margin: 0 0 1.4rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--accent-line);
    border-radius: 1.2rem;
    background: var(--accent-surface);
}
.service-kicker { display: block; margin-bottom: 0.35rem; color: var(--brand-teal-dark); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.services-intro h1 { margin: 0 0 0.65rem; }
.services-intro p { max-width: 780px; margin: 0; color: #d5dcd6; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; align-items: stretch; }
.service-panel { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--brand-teal); border-radius: 1rem; background: #22313b; box-shadow: 0 10px 28px rgb(0 0 0 / 16%); }
.service-panel--logo { border-top-color: var(--accent); }
.service-panel-heading { display: flex; align-items: center; gap: 0.9rem; padding: 1.25rem 1.25rem 0.75rem; }
.service-number { display: grid; width: 2.8rem; height: 2.8rem; flex: 0 0 auto; place-items: center; border: 1px solid rgb(85 203 179 / 35%); border-radius: 0.8rem; background: #293d42; color: var(--brand-teal-dark); font-size: 0.8rem; font-weight: 800; }
.service-panel--logo .service-number { border-color: rgb(140 214 204 / 40%); background: #2b4b50; color: var(--accent); }
.service-panel-heading .service-kicker { margin-bottom: 0.2rem; font-size: 0.65rem; letter-spacing: 0.075em; }
.service-panel h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.service-panel-heading .service-subtitle { margin: 0.12rem 0 0; color: var(--muted); font-size: 0.85rem; }
.service-panel-photo { display: block; width: min(84%, 420px); max-height: 240px; height: auto; margin: 1rem auto 1.6rem !important; padding: .65rem; border: 1px solid var(--accent-line); border-radius: 0; background: rgb(255 255 255 / 5%); object-fit: contain; transform: rotate(2deg); box-shadow: 0 12px 28px rgb(0 0 0 / 22%) !important; }
.service-copy { padding: 0 1.25rem 1.2rem; }
.service-copy p { margin: 0 0 0.85rem; color: #d3dddc; font-size: 0.94rem; line-height: 1.68; }
.service-copy p.service-lead { margin-bottom: 0.7rem; color: #e5eeec; font-size: 1.03rem; font-weight: 600; line-height: 1.55; }
.service-copy h3, .service-team h3 { margin: 1rem 0 0.55rem; padding: 0; border: 0; background: transparent; color: var(--brand-blue) !important; font-size: 0.9rem; letter-spacing: 0.01em; }
.service-panel--logo .service-copy h3 { color: var(--accent) !important; }
.service-topics { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.service-topics li { position: relative; padding-left: 1.1rem; color: #d3dddc; font-size: 0.9rem; line-height: 1.5; }
.service-topics li::before { position: absolute; top: 0.62em; left: 0; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--brand-teal); content: ""; }
.service-team { margin-top: auto; padding: 0.15rem 1.25rem 1.15rem; border-top: 1px solid #3a4b4c; background: #202e35; }
.service-team h3 { margin-top: 0.9rem; }
.therapist-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 0.5rem; }
.therapist-link { display: flex; min-width: 0; align-items: center; gap: 0.55rem; padding: 0.4rem; border: 1px solid #405153; border-radius: 0.75rem; background: #293940; color: var(--ink) !important; font-size: 0.8rem; font-weight: 650; line-height: 1.25; text-decoration: none; }
.therapist-link:hover { border-color: var(--brand-teal-dark); background: #30464a; color: var(--ink) !important; }
.therapist-link img { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; margin: 0 !important; border: 2px solid #6a807e; border-radius: 50%; object-fit: cover; box-shadow: none !important; }
.therapist-arrow { margin-left: auto; color: var(--brand-teal-dark); font-size: 1rem; }
.service-panel--logo .therapist-arrow { color: var(--accent); }
.services-contact { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--accent-line); border-radius: 0.9rem; background: #244247; }
.services-contact p { margin: 0; color: #d4ece9; font-size: 0.94rem; }
.services-contact a, .profile-footer-links a, .legal-actions a, .practice-back a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.5rem; padding: 0.55rem 0.85rem; border: 1px solid transparent; border-radius: 0.65rem; background: #087d70; color: #fff !important; font-size: 0.86rem; font-weight: 700; text-decoration: none; }
.services-contact a:hover, .profile-footer-links a:hover, .legal-actions a:hover, .practice-back a:hover { background: #0b8e7f; color: #fff !important; }

/* Team profiles use the same grouped cards and warm accent colors. */
.team-page { padding-block: clamp(1.1rem, 3vw, 2.4rem); }
.team-intro { margin: 0 0 1.65rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--accent-line); border-radius: 1.2rem; background: var(--accent-surface); }
.team-intro h1 { margin: 0 0 0.65rem; }
.team-intro p { max-width: 780px; margin: 0; color: #d5dcd6; }
.team-group { margin-top: 1.55rem; }
.team-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; padding-bottom: 0.65rem; border-bottom: 1px solid #465651; }
.team-group-heading .service-kicker { margin-bottom: 0.1rem; }
.team-group-heading h2 { margin: 0; padding: 0; border: 0; font-size: 1.4rem; }
.team-count { padding: 0.3rem 0.7rem; border: 1px solid #45615d; border-radius: 999px; background: #293d42; color: var(--brand-teal-dark); font-size: 0.77rem; font-weight: 700; white-space: nowrap; }
.team-count--accent { border-color: var(--accent-line); background: #2b4b50; color: var(--accent); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.team-group--ergo .team-grid, .team-group--speech .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--brand-teal); border-radius: 0.95rem; background: #22313b; box-shadow: 0 9px 24px rgb(0 0 0 / 15%); }
.team-group--speech .team-card { border-top-color: var(--accent); }
.team-photo { display: block; overflow: hidden; height: 190px; background: #314650; }
.team-photo img { display: block; width: 100%; height: 100%; margin: 0 !important; border: 0; border-radius: 0; object-fit: cover; object-position: center 35%; box-shadow: none !important; transition: transform 260ms ease; }
.team-photo:hover img { transform: scale(1.035) !important; }
.team-card-content { padding: 0.95rem 1rem 1rem; }
.team-role { display: block; min-height: 1.3rem; color: var(--brand-teal-dark); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.025em; }
.team-group--speech .team-role { color: var(--accent); }
.team-card h3 { margin: 0.2rem 0 0.65rem; padding: 0; border: 0; background: transparent; font-size: 1.08rem; }
.team-card h3 a { color: var(--brand-blue) !important; text-decoration: none; }
.team-card h3 a:hover { color: var(--brand-teal-dark) !important; }
.team-focus-title { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.team-focus { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 3.9rem; margin: 0; padding: 0; list-style: none; }
.team-focus li { align-self: start; padding: 0.24rem 0.5rem; border: 1px solid #405354; border-radius: 999px; background: #293a3e; color: #d7e1de; font-size: 0.72rem; line-height: 1.35; }
.team-group--speech .team-focus li { border-color: #426b70; background: #29474c; color: #d4ece9; }
.team-profile-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.65rem; color: var(--brand-teal-dark) !important; font-size: 0.84rem; font-weight: 750; text-decoration: none; }
.team-group--speech .team-profile-link { color: var(--accent) !important; }
.team-profile-link:hover { text-decoration: underline; }
.team-contact { margin-top: 1.7rem; }

/* Landing page and contact details share the same calm dark palette. */
.home-page, .contact-page { padding-block: clamp(1.1rem, 3vw, 2.4rem); }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); align-items: center; gap: clamp(1.3rem, 3vw, 2.5rem); padding: clamp(1.3rem, 3vw, 2.1rem); border: 1px solid var(--accent-line); border-radius: 1.2rem; background: var(--accent-surface); }
.home-hero h1 { max-width: 650px; margin: 0 0 0.8rem; font-size: clamp(2rem, 4vw, 3.1rem); }
.home-hero-copy > p { max-width: 610px; margin: 0; color: #d5dcd6; font-size: 1.03rem; }
.home-hero-image { padding: .65rem; border: 1px solid var(--accent-line); border-radius: 0; background: rgb(255 255 255 / 5%); box-shadow: 0 12px 28px rgb(0 0 0 / 22%); transform: rotate(2deg); }
.home-hero-image a { display: block; aspect-ratio: 4 / 3; background: #eef1ec; cursor: zoom-in; }
.home-hero-image img { display: block; width: 100%; height: 100%; min-height: 0; max-height: none; margin: 0 !important; border-radius: 0; object-fit: cover; object-position: center; box-shadow: none !important; }
.home-team-rotator { position: relative; }
.home-team-rotator a:not([data-lightbox]) { cursor: pointer; }
.home-team-rotator a:not([href]) { cursor: default; }
.home-team-rotator img { transition: opacity 520ms ease-in-out; }
.home-team-rotator img[src="grafik/logo.png"] { object-fit: contain; padding: 1.5rem; }
.home-team-rotator img[src="grafik/tteamnew.jpg"] { object-fit: contain; background: var(--paper); }
.home-team-rotator.is-changing img { opacity: 0.25; }
.home-team-caption { position: absolute; right: 0.8rem; bottom: 0.8rem; padding: 0.45rem 0.7rem; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; background: rgb(23 35 45 / 88%); color: #fff; font-size: 0.78rem; font-weight: 700; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .home-team-rotator img { transition: none; } }
.home-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.2rem; }
.home-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.68rem 0.95rem; border: 1px solid transparent; border-radius: 0.7rem; font-size: 0.87rem; font-weight: 750; text-decoration: none; }
.home-primary-action { background: #087d70; color: #fff !important; }
.home-primary-action:hover { background: #0b8e7f; color: #fff !important; }
.home-secondary-action { border-color: var(--accent-line) !important; background: #2b4b50; color: var(--accent) !important; }
.home-secondary-action:hover { background: #365d62; color: #e0f0ed !important; }
.home-appointment { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #426b70; }
.appointment-mark { width: 0.5rem; height: 2.2rem; flex: 0 0 auto; border-radius: 1rem; background: var(--accent); }
.home-appointment p { flex: 1 1 150px; margin: 0; color: #d2d8d1; font-size: 0.82rem; line-height: 1.45; }
.home-appointment p strong { color: #e0f0ed; font-size: 0.87rem; }
.home-appointment > a { color: var(--brand-teal-dark) !important; font-size: 0.9rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.home-services { margin-top: 1.8rem; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.home-section-heading h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
.home-section-heading > a { color: var(--brand-teal-dark) !important; font-size: 0.83rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.home-service-card { position: relative; display: flex; min-height: 225px; flex-direction: column; align-items: flex-start; padding: 1.2rem; border: 1px solid #3e5257; border-top: 3px solid var(--brand-teal); border-radius: 0.95rem; background: #22313b; color: var(--ink) !important; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.home-service-card--logo { border-top-color: var(--accent); }
.home-service-card:hover { transform: translateY(-3px); background: #293a42; color: var(--ink) !important; }
.home-card-number { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; margin-bottom: 0.65rem; border-radius: 0.65rem; background: #293d42; color: var(--brand-teal-dark); font-size: 0.76rem; font-weight: 800; }
.home-service-card--logo .home-card-number { background: #2b4b50; color: var(--accent); }
.home-card-label { color: var(--brand-teal-dark); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.075em; text-transform: uppercase; }
.home-service-card--logo .home-card-label { color: var(--accent); }
.home-service-card h3 { margin: 0.3rem 0 0.45rem; padding: 0; border: 0; background: transparent; color: var(--brand-blue) !important; font-size: 1.2rem; }
.home-service-card p { margin: 0 0 0.85rem; color: #c9d5d4; font-size: 0.88rem; line-height: 1.55; }
.home-card-link { display: inline-flex; gap: 0.4rem; align-items: center; margin-top: auto; color: var(--brand-teal-dark); font-size: 0.83rem; font-weight: 750; }
.home-service-card--logo .home-card-link { color: var(--accent); }
.home-bottom-note h2 { margin: 0 0 0.45rem; padding: 0; border: 0; font-size: 1.15rem; }
.home-bottom-note p { max-width: 760px; }

.contact-intro { margin: 0 0 1.3rem; padding: clamp(1.2rem, 3vw, 1.8rem); border: 1px solid var(--accent-line); border-radius: 1.1rem; background: var(--accent-surface); }
.contact-intro h1 { margin: 0 0 0.5rem; }
.contact-intro p { max-width: 690px; margin: 0; color: #d5dcd6; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1rem; align-items: stretch; }
.contact-card, .arrival-card { position: relative; min-width: 0; overflow: hidden; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #22313b; }
.contact-card { display: flex; flex-direction: column; border-top: 3px solid var(--brand-teal); }
.arrival-card { border-top: 3px solid var(--accent); }
.contact-card-icon { position: absolute; top: 1rem; right: 1.2rem; display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 1px solid #46615c; border-radius: 0.7rem; background: #293d42; color: var(--brand-teal-dark); font-size: 1.3rem; font-weight: 500; }
.contact-card h2, .arrival-card h2 { margin: 0 0 0.75rem; padding: 0; border: 0; font-size: 1.3rem; }
.contact-card address { margin: 0 0 0.95rem; color: #e0e7e3; font-size: 0.94rem; font-style: normal; line-height: 1.6; }
.contact-methods { display: grid; gap: 0.45rem; }
.contact-method { display: flex; min-width: 0; align-items: center; gap: 0.65rem; padding: 0.55rem; border: 1px solid #3c4f55; border-radius: 0.7rem; background: #293a42; color: var(--ink) !important; text-decoration: none; }
a.contact-method:hover { border-color: var(--brand-teal-dark); background: #30464a; color: var(--ink) !important; }
.contact-method-symbol { display: grid; width: 2.1rem; height: 2.1rem; flex: 0 0 auto; place-items: center; border-radius: 0.6rem; background: #32494c; color: var(--brand-teal-dark); font-size: 0.85rem; font-weight: 800; }
.contact-method-symbol svg { display: block; width: 1.15rem; height: 1.15rem; }
.contact-method > span:nth-child(2) { display: grid; min-width: 0; gap: 0.04rem; }
.contact-method small { color: var(--muted); font-size: 0.7rem; }
.contact-method strong { overflow-wrap: anywhere; color: #e5eeec; font-size: 0.84rem; font-weight: 650; }
.contact-method-arrow { margin-left: auto; color: var(--brand-teal-dark); }
.contact-membership { margin-top: 0.8rem; padding: 0.65rem 0.75rem; border-left: 3px solid var(--accent); background: #244247; color: #d4ece9; font-size: 0.76rem; line-height: 1.45; }
.contact-membership-logo { display: block; width: 7rem; height: auto; margin: auto auto; border: 1px solid var(--line); border-radius: 0.65rem; }
.arrival-heading .service-kicker { margin-bottom: 0.15rem; color: var(--accent); }
.arrival-map-link { display: block; width: 100%; margin: 0 0 0.15rem; cursor: pointer; }
.arrival-map { display: block; width: 100%; height: auto; max-height: none; margin: 0 0 0.55rem !important; border: 1px solid #52635e; border-radius: 0.7rem; object-fit: contain; background: #edf0e8; box-shadow: none !important; }
.map-attribution { margin: -0.45rem 0 0.65rem; color: var(--muted); font-size: 0.72rem; line-height: 1.4; }
.map-attribution a { color: var(--muted) !important; text-underline-offset: 0.12em; }
.arrival-route { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.7rem; padding: 0.55rem 0.75rem; border: 1px solid #46615c; border-radius: 0.65rem; background: #293d42; color: var(--brand-teal-dark) !important; font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.arrival-route:hover { border-color: var(--brand-teal-dark); background: #30464a; color: var(--ink) !important; }
.arrival-details { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.arrival-details li { position: relative; padding-left: 1rem; color: #d2dcd8; font-size: 0.84rem; }
.arrival-details li::before { position: absolute; left: 0; color: var(--accent); content: "•"; }
.arrival-details li.arrival-bus-note { display: flex; align-items: center; gap: 0.75rem; }
.bus-line-image { display: block; width: 3.8rem; height: auto; flex: 0 0 auto; margin: 0 !important; border: 0; border-radius: 0; box-shadow: none !important; }
.contact-appointment-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 0.65rem; max-width: 100%; }
.contact-appointment p strong { color: #e0f0ed; }

/* Individual therapist biographies. */
.profile-page { padding-block: clamp(1.1rem, 3vw, 2.4rem); }
.profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) 245px; align-items: center; gap: 1.2rem; overflow: hidden; padding: clamp(1.2rem, 3vw, 1.8rem); border: 1px solid #46615c; border-top: 4px solid var(--brand-teal); border-radius: 1.1rem; background: #263a40; }
.profile-hero--speech { border-color: var(--accent-line); border-top-color: var(--accent); background: var(--accent-surface); }
.profile-heading h1 { margin: 0 0 0.4rem; }
.profile-heading .service-kicker { margin-bottom: 0.25rem; }
.profile-hero--speech .service-kicker { color: var(--accent); }
.profile-role { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; color: #d4dfdb; font-size: 0.95rem; font-weight: 650; }
.profile-hero--speech .profile-role { color: #d4ece9; }
.profile-portrait { height: 220px; overflow: hidden; padding: .65rem; border: 1px solid var(--accent-line); border-radius: 0; background: rgb(255 255 255 / 5%); box-shadow: 0 12px 28px rgb(0 0 0 / 22%); transform: rotate(2deg); }
.profile-portrait-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.profile-portrait img { display: block; width: 100%; height: 100%; margin: 0 !important; border-radius: 0; object-fit: cover; object-position: center 35%; box-shadow: none !important; }
.profile-quote { position: relative; display: flex; align-items: flex-start; gap: 0.8rem; margin: 1rem 0; padding: 0.9rem 1.1rem; border: 1px solid var(--accent-line); border-radius: 0.85rem; background: #244247; }
.profile-quote > span { color: var(--accent); font-family: Georgia, serif; font-size: 2.3rem; font-weight: 700; line-height: 1; }
.profile-quote p { margin: 0; padding-top: 0.35rem; color: #e0f0ed; font-size: 0.94rem; font-style: italic; }
.profile-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1rem; align-items: stretch; }
.profile-panel { min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-top: 3px solid var(--brand-teal); border-radius: 0.9rem; background: #22313b; }
.profile-hero--speech ~ .profile-section-grid .profile-panel { border-top-color: var(--accent); }
.profile-panel--accent { border-color: var(--accent-line); background: #233d43; }
.profile-panel--wide { grid-column: 1 / -1; }
.profile-panel-kicker { display: block; margin-bottom: 0.2rem; color: var(--brand-teal-dark); font-size: 0.67rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.profile-hero--speech ~ .profile-section-grid .profile-panel-kicker, .profile-panel--accent .profile-panel-kicker { color: var(--accent); }
.profile-panel h2 { margin: 0 0 0.65rem; padding: 0; border: 0; font-size: 1.15rem; }
.profile-panel h3 { margin: 0 0 0.35rem; padding: 0; border: 0; background: transparent; font-size: 0.95rem; }
.profile-panel p { margin: 0 0 0.4rem; color: #d1dcda; font-size: 0.87rem; line-height: 1.55; }
.profile-panel p.profile-detail-note { margin-top: 0.75rem; padding: 0.6rem 0.7rem; border-left: 2px solid var(--brand-teal); background: #293a3e; color: #d5dfdc; font-size: 0.8rem; }
.profile-timeline { display: grid; gap: 0.75rem; margin: 0; padding: 0 0 0 0.8rem; border-left: 2px solid #435b59; list-style: none; }
.profile-timeline li { position: relative; display: grid; gap: 0.15rem; }
.profile-timeline li::before { position: absolute; top: 0.35rem; left: -1.18rem; width: 0.55rem; height: 0.55rem; border: 2px solid #22313b; border-radius: 50%; background: var(--brand-teal); content: ""; }
.profile-hero--speech ~ .profile-section-grid .profile-timeline li::before { background: var(--accent); }
.profile-timeline strong { color: #e4eae5; font-size: 0.86rem; line-height: 1.4; }
.profile-timeline span { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.profile-tags li { padding: 0.35rem 0.65rem; border: 1px solid #405956; border-radius: 999px; background: #293c40; color: #d8e4df; font-size: 0.8rem; line-height: 1.35; }
.profile-panel--accent .profile-tags li { border-color: #426b70; background: #2b4b50; color: #e0f0ed; }
.profile-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1rem; margin: 0; padding: 0; list-style: none; }
.profile-list li { position: relative; padding-left: 0.95rem; color: #d6dfdb; font-size: 0.84rem; line-height: 1.45; }
.profile-list li::before { position: absolute; left: 0; color: var(--accent); content: "•"; }
.profile-footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.7rem; margin-top: 1.1rem; }

/* Legal pages: readable long-form content in the same visual system. */
.legal-page { padding-block: clamp(1.1rem, 3vw, 2.2rem); }
.legal-page--privacy { width: min(1200px, calc(100% - 2.5rem)); margin: 2.3rem auto 3.5rem; padding: clamp(1.1rem, 3vw, 2.2rem); border: 1px solid var(--line); border-top: 4px solid var(--brand-teal); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.legal-intro { margin-bottom: 1.15rem; padding: clamp(1.15rem, 2.5vw, 1.7rem); border: 1px solid var(--accent-line); border-radius: 1rem; background: var(--accent-surface); }
.legal-intro h1 { margin: 0 0 0.55rem; }
.legal-intro p { max-width: 780px; margin: 0; color: #d5dcd6; }
.legal-intro small { display: block; margin-top: 0.65rem; color: var(--accent); font-size: 0.76rem; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.legal-card { min-width: 0; padding: 1.05rem 1.15rem; border: 1px solid var(--line); border-top: 3px solid var(--brand-teal); border-radius: 0.85rem; background: #22313b; }
.legal-card--main { border-top-color: var(--accent); background: #233d43; }
.legal-card--wide { grid-column: 1 / -1; }
.legal-card-kicker { display: block; margin-bottom: 0.15rem; color: var(--brand-teal-dark); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-card--main .legal-card-kicker { color: var(--accent); }
.legal-card h2 { margin: 0 0 0.55rem; padding: 0; border: 0; font-size: 1.15rem; }
.legal-card h3 { margin: 0.9rem 0 0.4rem; padding: 0; border: 0; background: transparent; font-size: 0.9rem; }
.legal-card p { margin: 0 0 0.55rem; color: #d2dcda; font-size: 0.88rem; line-height: 1.65; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card p.legal-lead { color: #e0f0ed; font-size: 0.95rem; font-weight: 650; }
.legal-card address { margin-top: 0.8rem; color: #d8e0db; font-size: 0.88rem; font-style: normal; line-height: 1.6; }
.legal-name-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.legal-name-list a { padding: 0.3rem 0.55rem; border: 1px solid #426b70; border-radius: 999px; background: #2b4b50; color: #e0f0ed !important; font-size: 0.76rem; text-decoration: none; }
.legal-name-list a:hover { background: #365d62; color: #fff !important; }
.legal-contact-link { color: var(--brand-teal-dark) !important; overflow-wrap: anywhere; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1rem; }
.legal-toc a { padding: 0.35rem 0.62rem; border: 1px solid #3b5354; border-radius: 999px; background: #293a3e; color: #d6e5df !important; font-size: 0.73rem; text-decoration: none; }
.legal-toc a:hover { border-color: var(--brand-teal-dark); background: #30464a; }
.legal-content { overflow: hidden; border: 1px solid var(--line); border-radius: 0.95rem; background: #202e35; }
.legal-section { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.75rem; padding: 1.15rem 1.2rem; border-bottom: 1px solid #3a4b4c; scroll-margin-top: 8rem; }
.legal-section:last-child { border-bottom: 0; }
.legal-section-number { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border: 1px solid #46615c; border-radius: 0.65rem; background: #293d42; color: var(--brand-teal-dark); font-size: 0.74rem; font-weight: 800; }
.legal-section:nth-child(even) .legal-section-number { border-color: var(--accent-line); background: #2b4b50; color: var(--accent); }
.legal-section h2 { margin: 0 0 0.55rem; padding: 0; border: 0; color: var(--brand-blue) !important; font-size: 1.12rem; }
.legal-section p { margin: 0 0 0.65rem; color: #d0dad7; font-size: 0.86rem; line-height: 1.72; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section address { margin: 0.6rem 0; color: #e0e7e3; font-size: 0.86rem; font-style: normal; line-height: 1.65; }
.legal-section a { overflow-wrap: anywhere; }
.legal-section--authority { background: #252f35; }

/* Photo gallery in the logo-derived blue and teal palette. */
.practice-page { padding-block: clamp(1.1rem, 3vw, 2.4rem); }
.practice-intro {
    position: relative;
    overflow: hidden;
    margin: 0 0 1.7rem;
    padding: clamp(1.3rem, 3vw, 2.2rem);
    border: 1px solid var(--accent-line);
    border-radius: 1.35rem;
    background: var(--accent-surface);
}
.practice-intro::after {
    position: absolute;
    right: -2.5rem;
    bottom: -5rem;
    width: 13rem;
    height: 13rem;
    border: 1.5rem solid rgb(0 165 140 / 9%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.practice-eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--brand-teal-dark);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.practice-intro h1 { position: relative; z-index: 1; margin: 0 0 0.8rem; }
.practice-intro p { position: relative; z-index: 1; max-width: 760px; margin-bottom: 0.6rem; }
.practice-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.practice-tags span {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: #2b4b50;
    color: #e0f0ed;
    font-size: 0.82rem;
    font-weight: 650;
}
.practice-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.practice-card {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid #3a4d56;
    border-radius: 1rem;
    background: var(--paper);
    box-shadow: 0 8px 24px rgb(30 56 82 / 8%);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.practice-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgb(30 56 82 / 14%); }
.practice-card > a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #314650; }
.practice-card img { display: block; width: 100%; height: 100%; margin: 0 !important; border-radius: 0; object-fit: cover; box-shadow: none !important; transition: transform 350ms ease; }
.practice-card:hover img { transform: scale(1.045); }
.practice-zoom {
    position: absolute;
    z-index: 1;
    right: 0.75rem;
    bottom: 0.7rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 50%;
    background: #22313b;
    color: var(--brand-teal-dark);
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 3px 12px rgb(0 0 0 / 15%);
}
.practice-card figcaption { display: flex; min-height: 4.4rem; align-items: center; gap: 0.7rem; padding: 0.8rem 0.9rem; background: #22343d; }
.practice-card figcaption div { display: grid; gap: 0.05rem; }
.practice-card figcaption strong { color: var(--brand-blue); font-size: 0.91rem; line-height: 1.3; }
.practice-card figcaption small { color: var(--muted); font-size: 0.78rem; }
.caption-mark { flex: 0 0 auto; width: 0.45rem; height: 2rem; border-radius: 1rem; background: var(--brand-teal); }
.practice-card:nth-child(3n + 2) .caption-mark { background: var(--brand-blue-soft); }
.practice-card:nth-child(3n) .caption-mark { background: var(--accent); }
.practice-back { display: flex; justify-content: center; margin-top: 1.7rem; }
.lightbox-open { overflow: hidden; }
.practice-lightbox { position: fixed; width: min(94vw, 1120px); max-width: none; max-height: 92vh; max-height: 92dvh; margin: auto; padding: 0; overflow: visible; border: 1px solid #60716e; border-radius: 1rem; background: #17232d; color: var(--ink); box-shadow: 0 24px 90px rgb(0 0 0 / 55%); }
.practice-lightbox[open] { animation: lightbox-appear 220ms ease-out both; }
.practice-lightbox::backdrop { background: rgb(6 13 18 / 86%); backdrop-filter: blur(4px); }
.practice-lightbox figure { display: grid; max-height: 92vh; max-height: 92dvh; grid-template-rows: minmax(0, 1fr) auto; margin: 0; }
.lightbox-image { display: block; width: 100%; max-height: calc(92vh - 4.25rem); max-height: calc(92dvh - 4.25rem); margin: 0 !important; border-radius: 1rem 1rem 0 0; background: #101a21; object-fit: contain; box-shadow: none !important; }
.lightbox-caption { padding: 0.8rem 1rem; border-top: 1px solid #3a4d56; border-radius: 0 0 1rem 1rem; background: #22313b; color: #e5eeec; font-size: 0.86rem; text-align: center; }
.lightbox-close { position: absolute; z-index: 2; top: 0.65rem; right: 0.65rem; display: grid; width: 2.8rem; height: 2.8rem; place-items: center; padding: 0 0 0.12rem; border: 1px solid #7797b4; border-radius: 50%; background: #17232d; color: #e5eeec; font-size: 2rem; font-weight: 500; line-height: 1; box-shadow: 0 4px 16px rgb(0 0 0 / 45%); cursor: pointer; }
.lightbox-close:hover { background: #293d47; color: #fff; }
@keyframes lightbox-appear { from { opacity: 0; transform: translateY(1rem) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 560px) {
    .practice-lightbox { width: 96vw; max-height: 94vh; max-height: 94dvh; border-radius: 0.8rem; }
    .practice-lightbox figure { max-height: 94vh; max-height: 94dvh; }
    .lightbox-image { max-height: calc(94vh - 4rem); max-height: calc(94dvh - 4rem); border-radius: 0.8rem 0.8rem 0 0; }
    .lightbox-caption { border-radius: 0 0 0.8rem 0.8rem; }
    .lightbox-close { top: 0.45rem; right: 0.45rem; width: 2.6rem; height: 2.6rem; }
}

.site-footer h2::after {
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 3px;
    background: var(--brand-teal);
    content: "";
}

@media (max-width: 980px) {
    .site-header-inner { flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.45rem 0; }
    .site-brand img { width: 120px; height: 78px; }
    .site-nav { gap: 0.45rem; }
    .site-nav a { font-size: 0.85rem; }
    .header-phone { padding: 0.45rem 0.7rem; }
    .practice-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .service-list { grid-template-columns: 1fr; }
    .team-group--ergo .team-grid, .team-group--speech .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); }
    .contact-layout { grid-template-columns: 1fr; }
    .profile-hero { grid-template-columns: minmax(0, 1fr) 200px; }
    .legal-grid { grid-template-columns: 1fr; }
    .legal-card--wide { grid-column: auto; }
}

@media (max-width: 760px) {
    .site-header { position: sticky; }
    .site-header-inner { position: relative; width: min(calc(100% - 1.25rem), 680px); min-height: 74px; flex-wrap: nowrap; }
    body > main { padding-inline: max(0.625rem, calc((100% - 680px) / 2)); }
    .site-brand { gap: 0.45rem; }
    .site-brand img { width: 92px; height: 60px; }
    .brand-copy strong { font-size: 0.9rem; }
    .brand-copy small { font-size: 0.67rem; }
    .header-phone { margin-left: auto; padding: 0.45rem 0.6rem; }
    .header-phone span { display: none; }
    .header-phone strong { font-size: 0.8rem; }
    .nav-toggle { display: flex; flex: 0 0 auto; }
    .site-nav {
        position: absolute;
        z-index: 1;
        top: calc(100% + 0.45rem);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.65rem;
        border: 1px solid var(--line);
        border-radius: 1rem;
        background: var(--paper);
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 0.65rem 0.75rem; border-radius: 0.55rem; font-size: 0.95rem; }
    .site-nav a:hover, .site-nav a[aria-current="page"] { background: #2d454d; box-shadow: none; }
    body > table:first-of-type { width: min(calc(100% - 1.25rem), 680px) !important; margin: 1.25rem auto 2.5rem !important; }
    body > table:first-of-type > tbody > tr > td:nth-child(3) { border-radius: 1rem; }
    body > table:first-of-type table { border-spacing: 0.45rem; }
    body > table:first-of-type td { padding: 0.25rem; }
    body > table:first-of-type td[width] { width: auto !important; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 560px) {
    .brand-copy { display: none; }
    .site-brand img { width: 105px; height: 68px; }
    .header-phone { padding: 0.42rem 0.55rem; }
    .site-header-inner { min-height: 68px; }
    .practice-page, .team-page, .home-page, .contact-page, .profile-page, .legal-page { padding-block: 0.85rem; }
    .legal-page--privacy { width: min(calc(100% - 1.25rem), 680px); margin: 1.25rem auto 2.5rem; }
    .legal-page--privacy { padding: 0.85rem; }
    .practice-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
    .practice-card figcaption { gap: 0.45rem; padding: 0.65rem; }
    .practice-card > a { aspect-ratio: 5 / 3; }
    .team-grid, .team-group--ergo .team-grid, .team-group--speech .team-grid { grid-template-columns: 1fr; }
    .team-photo { height: 220px; }
    .team-focus { min-height: 0; }
    .home-hero { grid-template-columns: 1fr; }
    .home-hero-image img { min-height: 0; max-height: none; }
    .profile-hero { grid-template-columns: 1fr; }
    .profile-portrait { height: 260px; }
    .profile-section-grid { grid-template-columns: 1fr; }
    .profile-panel--wide { grid-column: auto; }
    .profile-list { grid-template-columns: 1fr; }
    .legal-section { grid-template-columns: 1fr; gap: 0.45rem; padding: 0.95rem; }
    .home-service-grid { grid-template-columns: 1fr; }
    .home-section-heading, .home-bottom-note, .contact-appointment { align-items: flex-start; grid-template-columns: 1fr; flex-direction: column; }
    body > table:first-of-type table,
    body > table:first-of-type tbody,
    body > table:first-of-type tr,
    body > table:first-of-type td { display: block; width: 100% !important; }
    body > table:first-of-type td { padding: 0.4rem 0 !important; }
    body > table:first-of-type td[colspan] { width: 100% !important; }
    body > table:first-of-type img { display: block; margin: 0.35rem auto; }
    body > table:first-of-type td[align="right"],
    body > table:first-of-type td[align="center"] { text-align: center !important; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .site-header-inner { flex-wrap: wrap; padding-block: .6rem; }
    .site-header .site-nav { flex-basis: 100%; }
}
@media (max-width: 760px) {
    .site-header-inner { flex-wrap: wrap; gap: .5rem; padding-block: .5rem; }
    .site-header .nav-toggle { margin-left: auto; }
}

/* Repeat the practice header's subtle teal circle on every page's top box. */
.services-intro,
.team-intro,
.home-hero,
.contact-intro,
.profile-hero,
.legal-intro,
.practice-intro {
    position: relative;
    overflow: hidden;
}

.services-intro::after,
.team-intro::after,
.home-hero::after,
.contact-intro::after,
.profile-hero::after,
.legal-intro::after {
    position: absolute;
    right: -2.5rem;
    bottom: -5rem;
    width: 13rem;
    height: 13rem;
    border: 1.5rem solid rgb(0 165 140 / 9%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.services-intro > *,
.team-intro > *,
.home-hero > *,
.contact-intro > *,
.profile-hero > *,
.legal-intro > *,
.practice-intro > * {
    position: relative;
    z-index: 1;
}

/* Consistent vertical breathing room between cards on every page. */
:root { --card-row-gap: clamp(1.5rem, 3vw, 2.5rem); }
.service-list,
.team-grid,
.practice-gallery,
.home-service-grid,
.contact-layout,
.profile-section-grid,
.legal-grid { row-gap: var(--card-row-gap); }

.services-intro,
.practice-intro,
.contact-intro,
.legal-intro,
.legal-toc { margin-bottom: var(--card-row-gap); }

.services-contact,
.team-group,
.team-contact,
.home-services,
.home-bottom-note,
.contact-appointment,
.profile-section-grid,
.profile-footer-links,
.practice-back { margin-top: var(--card-row-gap); }

.profile-quote { margin-block: var(--card-row-gap); }
.team-group-heading,
.home-section-heading { margin-bottom: 1.25rem; }
.legal-section { padding-block: clamp(1.5rem, 3vw, 2rem); }

/* Separate therapy pages and a keyboard-accessible areas menu. */
.nav-areas { position: relative; }
.nav-areas summary { display: flex; align-items: center; gap: .4rem; padding: .55rem .35rem; color: var(--brand-blue); font-size: .92rem; font-weight: 650; cursor: pointer; list-style: none; }
.nav-areas summary::-webkit-details-marker { display: none; }
.nav-areas summary::after { content: ''; width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-areas[open] summary::after { transform: rotate(225deg); }
.nav-areas summary:hover, .nav-areas.is-current summary { color: var(--brand-teal-dark); }
.nav-areas summary:focus-visible { outline: 3px solid var(--brand-teal-dark); outline-offset: 3px; border-radius: .3rem; }
.nav-areas-links { position: absolute; z-index: 3; top: 100%; left: 0; min-width: 190px; padding: .5rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); box-shadow: var(--shadow); }
.site-nav .nav-areas-links a { display: block; padding: .6rem .75rem; }
.service-overview-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--brand-teal); border-radius: 1rem; background: var(--paper); color: var(--ink) !important; text-decoration: none; scroll-margin-top: 12rem; }
.service-overview-card:last-child { border-top-color: var(--accent); }
.service-overview-card > div { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.service-overview-card h2 { margin: .3rem 0 .8rem; }
.service-overview-card:hover { background: #293a42; color: var(--ink) !important; border-color: var(--brand-teal-dark); }
.service-section-nav { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: var(--card-row-gap); }
.service-section-nav a { padding: .5rem .85rem; border: 1px solid var(--line); border-radius: .65rem; text-decoration: none; }
.service-section-nav a:hover, .service-section-nav a[aria-current="page"] { background: var(--accent-surface); color: var(--ink) !important; border-color: var(--accent-line); }

/* Treatment fields: linked overview cards and readable information pages. */
.treatment-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .8rem; }
.treatment-field-card { display: flex; flex-direction: column; gap: .55rem; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #293940; color: var(--ink) !important; text-decoration: none; }
.treatment-field-card:hover { background: #30464a; border-color: var(--brand-teal-dark); color: var(--ink) !important; }
.treatment-field-card strong { color: var(--brand-blue); font-size: 1rem; }
.treatment-field-card > span { font-size: .9rem; line-height: 1.55; }
.treatment-field-card .treatment-field-more { margin-top: auto; color: var(--brand-teal-dark); font-weight: 700; }
.treatment-breadcrumbs { margin-bottom: 1.1rem; font-size: .85rem; }
.treatment-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem .65rem; margin: 0; padding: 0; list-style: none; }
.treatment-breadcrumbs li + li::before { content: '/'; margin-right: .65rem; color: var(--muted); }
.treatment-breadcrumbs [aria-current] { color: var(--muted); }
.treatment-layout { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(230px, 1fr); gap: 1.5rem; align-items: start; }
.treatment-copy { padding: clamp(1.25rem, 3vw, 2rem); }
.treatment-copy section + section { margin-top: 1.8rem; }
.treatment-copy h2 { margin-bottom: .75rem; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.35; }
.treatment-copy p { max-width: 72ch; }
.treatment-copy a, .treatment-sidebar a { overflow-wrap: anywhere; }
.treatment-sidebar { min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: #202e35; }
.treatment-sidebar h2 { margin: 0 0 .8rem; padding: 0; border: 0; font-size: 1rem; }
.treatment-sidebar ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.treatment-sidebar nav a, .treatment-sidebar nav span { display: block; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: .55rem; font-size: .88rem; line-height: 1.4; text-decoration: none; }
.treatment-sidebar nav [aria-current] { background: var(--accent-surface); border-color: var(--accent-line); color: var(--ink); }
.treatment-parent-link { display: block; margin: 1rem 0 1.5rem; font-size: .88rem; }
.treatment-related a { display: block; padding-block: .35rem; font-size: .88rem; line-height: 1.5; }
.treatment-sources { padding-top: 1.3rem; border-top: 1px solid var(--line); }
.treatment-sources ul { padding-left: 1.2rem; font-size: .85rem; line-height: 1.65; }
.treatment-sources p { font-size: .85rem; color: var(--muted); }
@media (max-width: 850px) { .treatment-layout { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .treatment-field-grid { grid-template-columns: 1fr; } .treatment-page .services-contact { flex-direction: column; align-items: flex-start; } }
.service-detail .service-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.service-detail .service-panel-heading, .service-detail .service-team { grid-column: 1 / -1; }
.service-detail .service-panel-photo { max-height: 340px; align-self: start; object-position: center top; }
.service-detail .service-copy { padding: 1rem 1.5rem 1.5rem; }
.service-detail .service-team { margin-top: 0; }
.team-group-heading h2 a { color: inherit !important; text-decoration: none; }
.team-group-heading h2 a:hover { text-decoration: underline; }
@media (max-width: 980px) { .nav-areas summary { font-size: .85rem; } }
@media (max-width: 760px) {
    .nav-areas summary { padding: .65rem .75rem; font-size: .95rem; }
    .nav-areas-links { position: static; min-width: 0; margin: 0 .5rem .5rem; box-shadow: none; background: var(--surface); }
    .site-nav.is-open { max-height: calc(100dvh - 100px); overflow-y: auto; }
    .service-detail .service-panel { grid-template-columns: 1fr; }
    .service-detail .service-copy { padding: 0 1.25rem 1.25rem; }
}

/* Shared presentation for introductory boxes and closing actions. */
.services-intro, .team-intro, .practice-intro, .contact-intro, .legal-intro {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--accent-line);
    border-radius: 1.2rem;
    background: var(--accent-surface);
}
.services-intro h1, .team-intro h1, .practice-intro h1, .contact-intro h1, .legal-intro h1 { margin: 0 0 .65rem; }
.services-intro p, .team-intro p, .practice-intro p, .contact-intro p, .legal-intro p { max-width: 780px; margin: 0; color: #d5dcd6; }
.services-contact > div:first-child { min-width: 0; }
.services-contact h2 { margin: 0 0 .45rem; padding: 0; border: 0; font-size: 1.15rem; }
.services-contact .contact-appointment-actions { flex-shrink: 1; }
@media (max-width: 800px) {
    .services-contact { flex-direction: column; align-items: flex-start; }
    .services-contact .contact-appointment-actions { width: 100%; flex-direction: column; align-items: flex-start; gap: .65rem; }
    .services-contact a { max-width: 100%; overflow-wrap: anywhere; }
    .profile-footer-links, .legal-actions { flex-direction: column; align-items: flex-start; }
    .profile-footer-links a, .legal-actions a { max-width: 100%; overflow-wrap: anywhere; }
}
/* Shared practice header: navy, open brand mark and compact contact row. */
.site-header { background: #111c25; backdrop-filter: none; }
.site-header .site-header-inner { width: min(1200px, calc(100% - 2.5rem)); min-height: 80px; padding-block: .5rem; flex-wrap: nowrap; gap: 2rem; }
.site-header .site-brand { gap: 1.1rem; flex-shrink: 1; color: var(--ink) !important; }
.site-header .site-brand img { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.site-header .brand-copy { display: grid; gap: .15rem; }
.site-header .brand-copy strong { font-size: clamp(1.1rem, 1.45vw, 1.4rem); font-weight: 650; letter-spacing: -.025em; }
.site-header .brand-copy small { font-size: clamp(.78rem, .9vw, .9rem); font-weight: 400; }
.site-header .site-nav { flex-basis: auto; margin-left: auto; gap: clamp(.65rem, 1.5vw, 1.8rem); }
.site-header .site-nav a, .site-header .nav-areas summary { padding: .65rem .2rem; color: var(--ink) !important; font-size: 1rem; font-weight: 500; }
.site-header .site-nav a:hover, .site-header .nav-areas summary:hover, .site-header .site-nav a[aria-current="page"], .site-header .nav-areas.is-current summary { color: var(--brand-teal-dark) !important; }
.site-header .site-nav > a[aria-current="page"], .site-header .nav-areas.is-current summary { box-shadow: inset 0 -1px var(--brand-teal-dark); }
.site-header .nav-areas-links { min-width: 210px; padding: .6rem; background: #17232d; }
.site-header .nav-areas-links a { padding: .65rem .8rem; border-radius: .4rem; }
.site-header .nav-areas-links a:hover { background: var(--accent-surface); }
.site-header .header-contact-bar { width: min(1200px, calc(100% - 2.5rem)); background: transparent; border-color: rgb(183 204 224 / 18%); }
.site-header .header-contact-inner { gap: .35rem 1.4rem; padding: .3rem 0; flex-wrap: nowrap; justify-content: flex-start; }
.site-header .header-contact-inner a { gap: .6rem; min-height: 36px; font-size: .85rem; }
.site-header .header-contact-inner svg { width: 19px; height: 19px; }
.site-header .header-contact-inner > a + a:not(.header-request) { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.site-header .header-contact-inner .header-request { margin-left: auto; flex-shrink: 0; padding: .35rem 1rem; border-radius: 999px; background: #087d70; color: #fff !important; font-weight: 500; text-decoration: none; }
.site-header .header-request svg { color: #fff; }
.site-header .header-request::after { content: '\2192'; font-size: 1.25rem; line-height: 1; }
.site-header .header-contact-inner .header-request:hover { background: #096b61; }
.site-header a, .site-header summary, .site-header button { transition: color .18s ease, background-color .18s ease; }
.site-header a:focus-visible, .site-header summary:focus-visible, .site-header button:focus-visible { outline: 2px solid var(--brand-teal-dark); outline-offset: 5px; }
.site-header .nav-toggle:hover, .site-header .nav-toggle[aria-expanded="true"] { background: var(--accent-surface); border-color: var(--brand-teal-dark); }
.site-header .nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.site-header .nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.site-header .nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1100px) {
    .site-header .site-header-inner { position: relative; min-height: 80px; gap: 1rem; }
    .site-header .nav-toggle { display: flex; flex: 0 0 auto; margin-left: auto; }
    .site-header .site-nav { position: absolute; z-index: 2; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: .2rem; margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; background: #17232d; box-shadow: var(--shadow); max-height: calc(100dvh - 120px); overflow-y: auto; }
    .site-header .site-nav.is-open { display: flex; }
    .site-header .site-nav a, .site-header .nav-areas summary { padding: .7rem .8rem; font-size: 1rem; border-radius: .35rem; }
    .site-header .site-nav a:hover, .site-header .nav-areas summary:hover { background: var(--accent-surface); }
    .site-header .nav-areas-links { position: static; margin: .25rem .5rem .5rem; min-width: 0; box-shadow: none; background: #111c25; }
    .site-header .header-contact-inner { flex-wrap: wrap; gap: .25rem 1rem; }
    .site-header .header-contact-inner a { font-size: .8rem; }
    .site-header .header-contact-inner > a + a:not(.header-request) { padding-left: 0; border: 0; }
}
@media (max-width: 760px) {
    .site-header .site-header-inner, .site-header .header-contact-bar { width: min(680px, calc(100% - 1.25rem)); }
    .site-header .site-header-inner { min-height: 68px; padding-block: .35rem; }
    .site-header .site-brand { gap: .65rem; }
    .site-header .site-brand img { width: 48px; height: 48px; }
    .site-header .brand-copy strong { font-size: 1rem; }
    .site-header .brand-copy small { font-size: .72rem; }
    .site-header .header-contact-inner { flex-wrap: nowrap; justify-content: flex-start; gap: .25rem; padding-block: .2rem; }
    .site-header .header-contact-inner a { flex-shrink: 0; min-height: 44px; }
    .site-header .header-contact-inner .header-request { padding: .3rem .8rem; gap: .5rem; font-size: .8rem; }
    .site-header .header-request span { position: static; width: auto; height: auto; margin: 0; clip-path: none; overflow: visible; }
}
@media (max-width: 380px) {
    .site-header .site-brand img { width: 46px; height: 46px; }
    .site-header .brand-copy strong { font-size: .9rem; }
    .site-header .brand-copy small { font-size: .67rem; }
    .site-header .header-contact-inner a { min-width: 40px; }
    .site-header .header-request::after { display: none; }
}
