/*
 * Bravo Gastro -- the site-wide look (header, navigation, footer, type, buttons).
 *
 * The same vibe as the original: Dr. Bravo's navy, white, the soft grey panels and the
 * leaf-shaped buttons (rounded on two opposite corners). Page-by-page styles still live in each
 * template for now; this file only sets what every page shares.
 */

:root {
    --bravo-navy: #01447b;
    --bravo-navy-deep: #012b4f;
    --bravo-sky: #eaf2fa;
    --bravo-grey: #f5f4f4;
    --bravo-line: #e1e1e1;
    --bravo-ink: #1d2733;
    --bravo-muted: #5a6776;
    --bravo-leaf: 16px 0 16px 0;
    --bravo-shadow: 0 6px 24px rgba(1, 43, 79, 0.08);

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--bravo-ink);
    --bs-link-color-rgb: 1, 68, 123;
    --bs-link-hover-color-rgb: 1, 43, 79;
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--bravo-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.featurette-heading {
    font-family: "Plus Jakarta Sans", var(--bs-body-font-family);
    color: var(--bravo-navy-deep);
    letter-spacing: -0.01em;
}

a { text-underline-offset: 3px; }

:focus-visible {
    outline: 3px solid #5b9bd5;
    outline-offset: 2px;
}

/* Keyboard users land on the page content first. */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    padding: .5rem 1rem;
    background: var(--bravo-navy);
    color: #fff;
    border-radius: var(--bravo-leaf);
    transition: top .15s;
}
.skip-link:focus { top: .75rem; color: #fff; }

/* ---- Buttons: the leaf shape from the original site ---- */

.btn-leaf,
.btn-primary,
.button3 {
    --bs-btn-bg: var(--bravo-navy);
    --bs-btn-border-color: var(--bravo-navy);
    --bs-btn-hover-bg: var(--bravo-navy-deep);
    --bs-btn-hover-border-color: var(--bravo-navy-deep);
    --bs-btn-active-bg: var(--bravo-navy-deep);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    border-radius: var(--bravo-leaf);
    font-weight: 600;
    padding: .6rem 1.25rem;
}
.btn-leaf { background: var(--bravo-navy); color: #fff; border: 1px solid var(--bravo-navy); }
.btn-leaf:hover, .btn-leaf:focus { background: var(--bravo-navy-deep); color: #fff; }

.btn-leaf-outline {
    border: 1.5px solid var(--bravo-navy);
    color: var(--bravo-navy);
    border-radius: var(--bravo-leaf);
    font-weight: 600;
    padding: .55rem 1.2rem;
}
.btn-leaf-outline:hover { background: var(--bravo-navy); color: #fff; }

/* ---- Top bar ---- */

.topbar {
    background: var(--bravo-navy-deep);
    color: #dbe7f3;
    font-size: .875rem;
}
.topbar .container { min-height: 40px; }
.topbar a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.topbar a:hover { color: #bcd6ee; }
.topbar svg { width: 15px; height: 15px; flex: none; }
.topbar-social { display: inline-flex; gap: .75rem; padding-left: .75rem; border-left: 1px solid rgba(255, 255, 255, .25); }

/* ---- Header and navigation ---- */

.site-header {
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(8px);
    box-shadow: 0 1px 0 var(--bravo-line), 0 4px 18px rgba(1, 43, 79, .05);
}
.site-header .navbar { padding: .6rem 0; }
.site-header .navbar-brand img { height: 54px; width: auto; }

.site-header .nav-link {
    color: var(--bravo-ink);
    font-weight: 500;
    font-size: .93rem;
    padding: .5rem .55rem !important;
    border-radius: var(--bravo-leaf);
    white-space: nowrap;
}
.header-cta { white-space: nowrap; padding-left: 1rem; padding-right: 1rem; }
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: var(--bravo-navy); background: var(--bravo-sky); }
.site-header .nav-link.active,
.site-header .nav-link[aria-current="page"] { color: var(--bravo-navy); font-weight: 600; }
.site-header .nav-link.active::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 2px;
    background: var(--bravo-navy);
    border-radius: 2px;
}

.site-header .dropdown-menu {
    border: 1px solid var(--bravo-line);
    border-radius: 12px;
    box-shadow: var(--bravo-shadow);
    padding: .5rem;
    min-width: 17rem;
}
.site-header .dropdown-item {
    border-radius: var(--bravo-leaf);
    padding: .5rem .85rem;
    font-size: .95rem;
}
.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus { background: var(--bravo-sky); color: var(--bravo-navy); }
.site-header .dropdown-item.active,
.site-header .dropdown-item:active { background: var(--bravo-navy); color: #fff; }

.navbar-toggler {
    border: 1.5px solid var(--bravo-navy);
    border-radius: var(--bravo-leaf);
    color: var(--bravo-navy);
    font-weight: 600;
    font-size: .9rem;
    padding: .45rem .8rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler svg { width: 20px; height: 20px; }

@media (max-width: 1199.98px) {
    .site-header .navbar-brand img { height: 46px; }
    .site-header .navbar-collapse { padding: .75rem 0 .5rem; }
    .site-header .nav-link.active::after { display: none; }
    .site-header .dropdown-menu { box-shadow: none; border: 0; padding: 0 0 0 .75rem; }
    .header-cta { width: 100%; margin-top: .5rem; }
}

/* ---- Page content ---- */

#content { min-height: 50vh; }
#content img { max-width: 100%; height: auto; }
#content video { max-width: 100%; border-radius: 12px; }

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

.site-footer {
    background: var(--bravo-navy-deep);
    color: #c9d7e6;
    font-size: .95rem;
    margin-top: 0;
}
.site-footer .footer-main { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.site-footer h2 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}
.site-footer .footer-name { font-size: 1.35rem; text-transform: none; letter-spacing: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #bcd6ee; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-hours { width: 100%; max-width: 20rem; }
.footer-hours td { padding: .15rem 0; }
.footer-hours td:last-child { text-align: right; color: #fff; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.25rem 0;
    font-size: .85rem;
}
.footer-social { display: inline-flex; gap: .9rem; }
.footer-social svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Shared section parts (used by the home page and the pages that follow) ---- */

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--bravo-navy);
    margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }

/* ---- Home ---- */

.home-hero {
    padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0;
    background: linear-gradient(180deg, var(--bravo-sky) 0%, #fff 100%);
}
.home-hero-title { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); font-weight: 700; margin-bottom: 1rem; }
.home-hero .lead { color: var(--bravo-muted); font-size: 1.15rem; max-width: 36rem; }
.home-hero-note { margin-top: 1.25rem; color: var(--bravo-muted); font-size: .95rem; }
.home-hero-media { position: relative; }
.home-hero-media > img:first-child {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 28px 0 28px 0;
    box-shadow: var(--bravo-shadow);
}
/* The pictures staff can change in RelayReef ({% relayreef_image %}, Website (classic) > Blocks) keep their spot's
   shape whatever picture is put there (David, 2026-09-30): the shape of the picture there today, so it looks exactly
   as it did, with a different one filling it (a photo, cover) or fitting inside it (a badge or a drawing, contain)
   rather than stretching the page. */
.home-hero-badge {
    position: absolute;
    left: -14px;
    bottom: -18px;
    width: 96px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--bravo-shadow);
    border: 4px solid #fff;
}

.home-intro { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.home-video { width: 100%; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--bravo-shadow); }

.home-procedures { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; background: var(--bravo-grey); }
.proc-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 20px 0 20px 0;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.proc-card:hover, .proc-card:focus-within { transform: translateY(-3px); box-shadow: var(--bravo-shadow); }
.proc-card-img {
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid var(--bravo-line);
}
.proc-card-img { overflow: hidden; }
.proc-card-img img { width: 100%; height: 100%; object-fit: contain; }
.proc-card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.proc-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.proc-card h3 a { color: inherit; text-decoration: none; }
.proc-card p { color: var(--bravo-muted); font-size: .95rem; flex: 1; }
.proc-card-more { color: var(--bravo-navy); font-weight: 600; font-size: .95rem; }

.home-team { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.team-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 20px 0 20px 0;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.team-card:hover, .team-card:focus-within { transform: translateY(-3px); box-shadow: var(--bravo-shadow); }
.team-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }
.team-card-featured img { aspect-ratio: 3 / 4; }
.team-card-body { padding: .9rem 1rem 1.1rem; }
.team-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .15rem; }
.team-card-featured h3 { font-size: 1.35rem; }
.team-card h3 a { color: inherit; text-decoration: none; }
.team-card p { color: var(--bravo-muted); font-size: .9rem; margin: 0; }

.home-cta { padding: 0 0 clamp(3rem, 2rem + 3vw, 5rem); }
.home-cta-inner {
    background: var(--bravo-navy);
    color: #dbe7f3;
    border-radius: 28px 0 28px 0;
    padding: clamp(1.75rem, 1rem + 3vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.home-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); margin-bottom: .35rem; }
.home-cta p { margin: 0; max-width: 32rem; }
.home-cta-call { border-radius: var(--bravo-leaf); font-weight: 600; color: var(--bravo-navy); }
.home-cta-link { border-radius: var(--bravo-leaf); font-weight: 600; }
.home-cta + .site-footer, main > .home-cta:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
    .home-hero-badge { left: 10px; bottom: 10px; width: 76px; }
}

/* ---- Inner pages: header band, body text, sidebar (shared by every page after the home page) ---- */

.page-hero {
    background: linear-gradient(180deg, var(--bravo-sky) 0%, #fff 100%);
    padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 700; margin-bottom: .75rem; }
.page-hero .lead { color: var(--bravo-muted); max-width: 48rem; font-size: 1.15rem; }

.page-body { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); }

.prose { font-size: 1.05rem; line-height: 1.75; }
.prose p { margin-bottom: 1.15rem; }
.prose h2 { font-size: 1.6rem; font-weight: 700; margin: 2.25rem 0 .9rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 .6rem; }
.prose ul, .prose ol { margin-bottom: 1.15rem; padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose a { font-weight: 500; }
.prose img { border-radius: 16px 0 16px 0; }

.page-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; margin: .5rem 0 1.75rem; box-shadow: var(--bravo-shadow); }

/* The quote as this page writes it, and as a RelayReef Text section's quote piece draws it (.rr-text__quote). */
.pull-quote, .prose .rr-text__quote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--bravo-sky);
    border-left: 4px solid var(--bravo-navy);
    border-radius: 0 16px 0 16px;
    font-size: 1.05rem;
}
.pull-quote p:last-child, .prose .rr-text__quote p:last-child { margin-bottom: 0; }

.side-card {
    position: sticky;
    top: 110px;
    background: var(--bravo-grey);
    border: 1px solid var(--bravo-line);
    border-radius: 20px 0 20px 0;
    padding: 1.5rem;
}
.side-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .6rem; }
.side-card h2 + .side-hours, .side-card address { margin-bottom: 1.25rem; }
.side-card address { font-style: normal; line-height: 1.7; }
.side-hours { width: 100%; font-size: .95rem; }
.side-hours td { padding: .15rem 0; }
.side-hours td:last-child { text-align: right; font-weight: 500; }
.side-link { text-align: center; font-weight: 600; text-decoration: none; padding: .35rem 0; }
.side-badge { display: block; text-align: center; margin-top: 1.25rem; }
.side-badge img { width: 90px; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
@media (max-width: 991.98px) { .side-card { position: static; } }

/* ---- Credentials: highlight and logo tiles ---- */

.quality { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; background: var(--bravo-grey); }
.quality-highlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-left: 4px solid var(--bravo-navy);
    border-radius: 0 20px 0 20px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}
.quality-highlight-logo img { width: 200px; height: auto; }
.quality-highlight p { flex: 1 1 20rem; margin: 0; font-size: 1.1rem; font-weight: 500; }
.quality-heading { font-size: 1.15rem; font-weight: 700; margin: 0 0 1rem; }
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.logo-grid:last-child { margin-bottom: 0; }
.logo-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 16px 0 16px 0;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.logo-tile:hover, .logo-tile:focus { box-shadow: var(--bravo-shadow); transform: translateY(-2px); }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-tile-text span { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--bravo-navy-deep); }
.logo-tile-text small { color: var(--bravo-muted); }

/* ---- Procedure pages ---- */

.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .eyebrow a:hover { text-decoration: underline; }
.procedure-hero .lead p { margin-bottom: .5rem; }
.procedure-hero-img {
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 28px 0 28px 0;
    box-shadow: var(--bravo-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* The spot keeps the shape it has today whatever picture staff choose: each page gives the shape of the picture there
   today as --picture-shape in the <img>'s style, and another picture is drawn inside it (contain), never stretched.
   The whole picture shows, and never taller than the window leaves room for (David, 2026-11-01). */
#content .procedure-hero-img img { width: 100%; height: auto; max-height: min(75vh, 560px); object-fit: contain; aspect-ratio: var(--picture-shape, auto); }

.qa-title { font-size: 1.6rem; font-weight: 700; margin: .5rem 0 1.25rem; }
/* The questions as the procedure pages write them, and as a RelayReef Text section draws them: its question
   pieces (.rr-text__qa) are these cards, one grid inside the section as the page's own cards are inside the list. */
.qa-list, .qa-list .rr-text { display: grid; gap: 1rem; }
.qa, .rr-text__qa {
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-left: 4px solid var(--bravo-navy);
    border-radius: 0 16px 0 16px;
    padding: 1.25rem 1.5rem;
}
.qa h3, .rr-text__qa h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .6rem; }
.qa > :last-child, .rr-text__qa > :last-child { margin-bottom: 0; }

.credentials-note {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--bravo-sky);
    border-radius: 20px 0 20px 0;
}
.credentials-note img {
    width: 110px;
    height: 140px;
    object-fit: cover;
    object-position: top;
    border-radius: 14px 0 14px 0;
    flex: none;
}
.credentials-note h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.credentials-note p { font-size: .98rem; line-height: 1.65; }
.credentials-note p:last-child { margin-bottom: 0; }
/* The note's heading and paragraph come from RelayReef (the credentials-note Text section); the phone line after
   them is this page's, so the paragraph keeps the space a paragraph has before the next one. */
.credentials-note .rr-text > p:last-child { margin-bottom: 1rem; }
@media (max-width: 575.98px) {
    .credentials-note { flex-direction: column; }
}

.side-stack { position: sticky; top: 110px; display: grid; gap: 1.25rem; }
.side-stack .side-card { position: static; }
.side-nav {
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 20px 0 20px 0;
    padding: 1.25rem;
}
.side-nav h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .6rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a {
    display: block;
    padding: .45rem .75rem;
    border-radius: var(--bravo-leaf);
    color: var(--bravo-ink);
    text-decoration: none;
}
.side-nav a:hover { background: var(--bravo-sky); color: var(--bravo-navy); }
.side-nav a[aria-current="page"] { background: var(--bravo-navy); color: #fff; font-weight: 600; }
@media (max-width: 991.98px) { .side-stack { position: static; } }

/* ---- Procedures overview ---- */

.page-hero-banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2270 / 910;
    object-fit: cover;
    margin-top: 1.75rem;
    border-radius: 28px 0 28px 0;
    box-shadow: var(--bravo-shadow);
}
.proc-list { display: grid; gap: 1.25rem; margin-top: 1rem; }
.proc-row {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.25rem;
    align-items: start;
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 20px 0 20px 0;
    padding: 1.25rem;
    transition: box-shadow .2s, transform .2s;
}
.proc-row:hover, .proc-row:focus-within { box-shadow: var(--bravo-shadow); transform: translateY(-2px); }
.proc-row-img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.proc-row-img img { width: 100%; height: 100%; object-fit: contain; }
.proc-row h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.proc-row h2 a { color: inherit; text-decoration: none; }
.proc-row p, .proc-row li { color: var(--bravo-muted); }
.proc-row ul { padding-left: 1.2rem; }
@media (max-width: 575.98px) {
    .proc-row { grid-template-columns: 1fr; }
    .proc-row-img { aspect-ratio: 4 / 3; }
}

/* ---- Condition pages ---- */

.side-stack-long { position: static; }
.side-toc a { font-size: .95rem; }
/* A menu with no headings to list (an article without large headings) is not shown. */
.side-toc:not(:has(li)) { display: none; }
.condition-article h2 {
    scroll-margin-top: 120px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bravo-line);
}
.condition-article > h2:first-child, .condition-article > p:first-child + h2,
.condition-article .rr-text > h2:first-child, .condition-article .rr-text > p:first-child + h2 { border-top: 0; padding-top: 0; }
.condition-article h3 { color: var(--bravo-navy); }
.condition-article h4 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
/* The article's figure, and a RelayReef Text section's picture piece drawn as it (.rr-text__figure). */
.article-figure, .prose .rr-text__figure { margin: 1.5rem auto; text-align: center; max-width: 420px; }
.article-figure img, .prose .rr-text__figure img { width: 100%; height: auto; }
.article-figure figcaption, .prose .rr-text__figure figcaption { font-size: .85rem; color: var(--bravo-muted); margin-top: .5rem; }

/* ---- Areas of Expertise overview ---- */

.condition-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.condition-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 76px;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 16px 0 16px 0;
    color: var(--bravo-navy-deep);
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s, background .2s;
}
.condition-tile::after { content: "\2192"; color: var(--bravo-navy); flex: none; }
.condition-tile:hover, .condition-tile:focus { background: var(--bravo-sky); box-shadow: var(--bravo-shadow); transform: translateY(-2px); color: var(--bravo-navy); }
/* The site's ticked lists, and a RelayReef Text section's checklist piece drawn as one (.rr-text__checks). */
.check-list, .rr-text__checks ul { list-style: none; padding-left: 0 !important; }
.check-list li, .rr-text__checks li { position: relative; padding-left: 1.75rem; }
.check-list li::before, .rr-text__checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--bravo-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.485 3.929a1 1 0 0 1 0 1.414l-6.364 6.364a1 1 0 0 1-1.414 0L2.515 8.515a1 1 0 1 1 1.414-1.414l2.485 2.485 5.657-5.657a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---- Team profiles ---- */

.profile-hero { padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.profile-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 28px 0 28px 0;
    box-shadow: var(--bravo-shadow);
    background: #fff;
}
.profile-hero h1 { margin-bottom: .25rem; }
.profile-role { font-size: 1.15rem; font-weight: 600; color: var(--bravo-navy); margin-bottom: 1.25rem; }
.home-team { scroll-margin-top: 110px; }

.team-strip { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; background: var(--bravo-grey); }
.team-strip .section-title { text-align: center; margin-bottom: 2rem; }
.team-strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 200px)); justify-content: center; gap: 1rem; }

/* ---- Hospital affiliations ---- */

.affiliation-list { display: grid; gap: 1rem; }
.affiliation-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 20px 0 20px 0;
    color: var(--bravo-ink);
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.affiliation-card:hover, .affiliation-card:focus { box-shadow: var(--bravo-shadow); transform: translateY(-2px); color: var(--bravo-ink); }
.affiliation-card strong { display: block; font-size: 1.1rem; color: var(--bravo-navy-deep); }
.affiliation-card small { color: var(--bravo-muted); }
.affiliation-icon, .contact-icon, .form-icon {
    flex: none;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bravo-sky);
    color: var(--bravo-navy);
    border-radius: 14px 0 14px 0;
}
.affiliation-icon svg, .contact-icon svg, .form-icon svg { width: 22px; height: 22px; }

/* ---- Insurance ---- */

.plan-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.plan-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .15rem;
    height: 100%;
    min-height: 74px;
    padding: .9rem 1.1rem;
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 16px 0 16px 0;
    color: var(--bravo-navy-deep);
    text-decoration: none;
    transition: box-shadow .2s, background .2s;
}
a.plan-tile:hover, a.plan-tile:focus { background: var(--bravo-sky); box-shadow: var(--bravo-shadow); color: var(--bravo-navy); }
.plan-tile small { color: var(--bravo-muted); font-size: .88rem; }
.plan-note {
    display: inline-block;
    align-self: flex-start;
    font-size: .78rem;
    font-weight: 600;
    color: #7a4b00;
    background: #fff4dc;
    border-radius: 999px;
    padding: .1rem .55rem;
}
.plan-footnote { margin-top: 1.25rem; color: var(--bravo-muted); font-size: .95rem; }

/* ---- Patient forms ---- */

.visit-checklist {
    background: var(--bravo-sky);
    border-radius: 20px 0 20px 0;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
}
.visit-checklist h2, .forms-group h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.visit-checklist li + li { margin-top: .5rem; }
/* Its closing line, from RelayReef, sits as the page's own did (p.mb-0). */
.visit-checklist .rr-text > p:last-child { margin-bottom: 0; }
.forms-group { margin-bottom: 2rem; }
.form-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 16px 0 16px 0;
}
.form-row .form-icon { width: 40px; height: 40px; }
.form-name { flex: 1 1 14rem; font-weight: 600; color: var(--bravo-navy-deep); }
.form-row .btn { padding: .35rem .9rem; }
.utd-search {
    border: 1px solid var(--bravo-line);
    border-left: 4px solid var(--bravo-navy);
    border-radius: 0 16px 0 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.utd-search label strong { display: block; color: var(--bravo-navy-deep); font-size: 1.1rem; }
.utd-search label small { color: var(--bravo-muted); }
.utd-search-row { display: flex; gap: .5rem; margin-top: .75rem; }
.utd-search-row .form-control { border-radius: 12px 0 12px 0; }

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

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.contact-card {
    background: #fff;
    border: 1px solid var(--bravo-line);
    border-radius: 20px 0 20px 0;
    padding: 1.5rem;
}
.contact-card h2 { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 .6rem; }
.contact-card address { font-style: normal; line-height: 1.7; margin-bottom: .5rem; }
.contact-card .side-link { display: inline-block; padding: 0; }
.contact-team-photo { width: 100%; height: auto; aspect-ratio: 2600 / 1733; object-fit: cover; border-radius: 28px 0 28px 0; box-shadow: var(--bravo-shadow); }
.contact-subhead { font-size: 1.4rem; font-weight: 700; margin: 1.5rem 0 1rem; }
.contact-map { aspect-ratio: 4 / 3; border-radius: 20px 0 20px 0; overflow: hidden; border: 1px solid var(--bravo-line); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.contact-building { width: 100%; height: auto; aspect-ratio: 1600 / 1067; object-fit: cover; border-radius: 20px 0 20px 0; margin-top: 1rem; }

/* ---- Sections from RelayReef --------------------------------------------------------------
   The team (and later other sections) is edited by the practice's staff in RelayReef and drawn
   into the page by {% relayreef %}. Its CSS is written against RelayReef's theme variables; set
   here, they give it this site's navy, type and leaf corners, as for anything else on the page. */
.rr-site.rr-section-embed {
    --rr-color-primary: var(--bravo-navy);
    --rr-color-accent: var(--bravo-navy);
    --rr-color-ink: var(--bravo-ink);
    --rr-color-surface: #ffffff;
    --rr-color-neutral: var(--bravo-grey);
    --rr-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --rr-font-heading: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --rr-heading-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --rr-radius: 16px;
}
.rr-section-embed .rr-card { border-radius: 16px 0 16px 0; border-color: var(--bravo-line); }
.rr-section-embed .rr-person.rr-card { transition: transform .2s ease, box-shadow .2s ease; }
.rr-section-embed .rr-person.rr-card:hover { transform: translateY(-3px); box-shadow: var(--bravo-shadow); }
.rr-section-embed .rr-person--feature .rr-person__photo img { border-radius: 16px 0 16px 0; }
/* Page videos from RelayReef ({% relayreef "home-video" %} and the rest) sit where the page's own
   <video> did and look as it did: 16:9 on black and shadowed (corners from #content video above),
   spaced on the inner pages, flush in the home page's intro. */
.rr-section-embed .rr-video--fit video { aspect-ratio: 16 / 9; background: #000; box-shadow: var(--bravo-shadow); }
.rr-section-embed .rr-video--fit { margin: .5rem 0 1.75rem; }
.home-intro .rr-section-embed .rr-video--fit { margin: 0; }

/* Sections from RelayReef take this site's heading style: centred, the small line above the title
   as the eyebrow, the title as a section title. The home page's procedures keep their grey band. */
.rr-section-embed .rr-section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.rr-section-embed .rr-section-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.rr-section-embed .rr-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--bravo-navy); margin-bottom: .5rem; }
.rr-section-embed[data-rr-section="home-procedures"] .rr-section { background: var(--bravo-grey); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.rr-section-embed .rr-service.rr-card { border-radius: 16px 0 16px 0; border-color: var(--bravo-line); transition: transform .2s ease, box-shadow .2s ease; }
.rr-section-embed .rr-service.rr-card:hover { transform: translateY(-3px); box-shadow: var(--bravo-shadow); }
.rr-section-embed .rr-service__media img { object-fit: contain; }
/* A section placed in a page's column (the procedures list, the conditions) sits flush with the words
   around it: no band of its own, no container of its own. */
.page-body .rr-section-embed .rr-section { padding: 0; background: transparent; }
.page-body .rr-section-embed .rr-container { max-width: none; }
.page-body .rr-section-embed { margin-bottom: 1.75rem; }

/* The insurance list from RelayReef, in this site's plan tiles: leaf corners, the sky hover, the amber
   note for a plan that needs a referral or pre-authorization. */
.rr-section-embed .rr-plan__inner { min-height: 74px; justify-content: center; border-color: var(--bravo-line); border-radius: 16px 0 16px 0; color: var(--bravo-navy-deep); transition: box-shadow .2s, background .2s; }
.rr-section-embed a.rr-plan__inner:hover, .rr-section-embed a.rr-plan__inner:focus { background: var(--bravo-sky); box-shadow: var(--bravo-shadow); }
.rr-section-embed .rr-plan__types { color: var(--bravo-muted); font-size: .88rem; }
.rr-section-embed .rr-plan__needs { color: #7a4b00; background: #fff4dc; font-size: .78rem; padding: .1rem .55rem; }
.rr-section-embed .rr-plans__footnote { color: var(--bravo-muted); }

/* The patient forms from RelayReef, as this page's own rows: the group's heading on the left, each form
   in a leaf-cornered row, View outlined and Download filled in the leaf buttons. */
.forms-group .rr-section-embed .rr-section-head { text-align: left; max-width: none; margin: 0 0 1rem; }
.forms-group .rr-section-embed .rr-section-head h2 { font-size: 1.3rem; font-weight: 700; margin: 0; }
.rr-section-embed .rr-doc { border-color: var(--bravo-line); border-radius: 16px 0 16px 0; padding: .85rem 1rem; }
.rr-section-embed .rr-doc__icon { color: var(--bravo-navy); }
.rr-section-embed .rr-doc__title { font-size: 1rem; font-weight: 600; color: var(--bravo-navy-deep); }
.rr-section-embed .rr-doc__links a { border-radius: var(--bravo-leaf); padding: .35rem .9rem; font-weight: 600; }
.rr-section-embed .rr-doc__links a.rr-doc__view { background: transparent; color: var(--bravo-navy); border: 1.5px solid var(--bravo-navy); }
.rr-section-embed .rr-doc__links a.rr-doc__view:hover { background: var(--bravo-navy); color: #fff; }
.rr-section-embed .rr-doc__links a.rr-doc__download { background: var(--bravo-navy); color: #fff; border: 1px solid var(--bravo-navy); }
.rr-section-embed .rr-doc__links a.rr-doc__download:hover { background: var(--bravo-navy-deep); }
.forms-group .rr-section-embed { margin-bottom: 0; }

/* The hospital affiliations from RelayReef, as this page's own cards: one to a line, leaf corners, the
   building in its sky, leaf-cornered box. */
/* (Only that section: the About page's credentials are Affiliations & Credentials sections too, in their own look.) */
.rr-section-embed[data-rr-section="affiliations"] .rr-creds__list { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.rr-section-embed[data-rr-section="affiliations"] .rr-cred__inner { padding: 1.25rem 1.5rem; border-color: var(--bravo-line); border-radius: 20px 0 20px 0; color: var(--bravo-ink); transition: box-shadow .2s, transform .2s; }
.rr-section-embed[data-rr-section="affiliations"] a.rr-cred__inner:hover, .rr-section-embed[data-rr-section="affiliations"] a.rr-cred__inner:focus { box-shadow: var(--bravo-shadow); transform: translateY(-2px); border-color: var(--bravo-line); }
.rr-section-embed[data-rr-section="affiliations"] .rr-cred__icon { width: 48px; height: 48px; padding: 13px; box-sizing: border-box; border-radius: 14px 0 14px 0; background: var(--bravo-sky); color: var(--bravo-navy); }
.rr-section-embed[data-rr-section="affiliations"] .rr-cred__name { color: var(--bravo-navy-deep); }
.rr-section-embed[data-rr-section="affiliations"] .rr-cred__detail { color: var(--bravo-muted); }

/* The About page's credentials from RelayReef (David, 2026-09-30), as the band's own parts: its heading, the GIQuIC
   note and three groups of logos, five sections in the grey band (.quality) with no band or white of their own. A
   section's own CSS comes after this file, so each rule here names .quality to come first. The heading as
   .section-head; the note in .quality-highlight's box; each group's heading on the left as .quality-heading, its
   logos in .logo-tile's tiles, and a credential with no logo (UpToDate) as the words-only tile. */
.quality .rr-site.rr-section-embed { background: transparent; line-height: 1.5; margin-bottom: 2.5rem; }
.quality .rr-site.rr-section-embed:last-child { margin-bottom: 0; }
.quality .rr-section-embed .rr-section { padding: 0; background: transparent; }
.quality .rr-section-embed .rr-container { max-width: none; }
.quality .rr-section-embed p { max-width: none; }
.quality [data-rr-section="about-credentials-head"] .rr-message__inner { display: block; max-width: 42rem; margin: 0 auto; }
.quality [data-rr-section="about-credentials-head"] .rr-message__heading { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 1rem; text-wrap: wrap; }
.quality [data-rr-section="about-credentials-highlight"] .rr-message__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; background: #fff; border: 1px solid var(--bravo-line); border-left: 4px solid var(--bravo-navy); border-radius: 0 20px 0 20px; padding: 1.5rem 1.75rem; }
.quality [data-rr-section="about-credentials-highlight"] .rr-message__media img { width: 200px; height: auto; border-radius: 0; }
.quality [data-rr-section="about-credentials-highlight"] .rr-message__words { flex: 1 1 20rem; }
.quality [data-rr-section="about-credentials-highlight"] .rr-message__text p { margin: 0; font-size: 1.1rem; font-weight: 500; }
.quality [data-rr-section="about-credentials-highlight"] .rr-message__text a { color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1)); }
.quality .rr-section-embed .rr-creds .rr-section-head { text-align: left; max-width: none; margin: 0 0 1rem; }
.quality .rr-section-embed .rr-creds .rr-section-head h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0; text-wrap: wrap; }
.quality .rr-section-embed .rr-creds--logos .rr-creds__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.quality .rr-section-embed .rr-creds--logos .rr-cred__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; height: 120px; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--bravo-line); border-radius: 16px 0 16px 0; transition: box-shadow .2s, transform .2s; }
.quality .rr-section-embed .rr-creds--logos a.rr-cred__inner:hover, .quality .rr-section-embed .rr-creds--logos a.rr-cred__inner:focus { box-shadow: var(--bravo-shadow); transform: translateY(-2px); }
.quality .rr-section-embed .rr-creds--logos .rr-cred__logo { flex: 0 1 auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.quality .rr-section-embed .rr-creds--logos .rr-cred__text { gap: 0; align-items: center; }
.quality .rr-section-embed .rr-creds--logos .rr-cred__name { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--bravo-navy-deep); }
.quality .rr-section-embed .rr-creds--logos .rr-cred__detail { font-size: .875rem; color: var(--bravo-muted); }

/* ---- Fit at every size (David, 2026-11-01): phones, tablets and desktops ---- */

/* A long word or address breaks rather than running off the screen. */
.page-hero h1, .prose a { overflow-wrap: anywhere; }

.home-hero-title { text-wrap: balance; }
/* The three contact cards in a small laptop's width: the address's a little wider, so "Building 3" stays on its line. */
@media (min-width: 992px) and (max-width: 1199.98px) { .contact-cards { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); } }

/* Bootstrap takes the outline off buttons and the menu; a keyboard user sees where they are, as on every other link. */
.btn:focus-visible, .navbar-toggler:focus-visible, .site-header .nav-link:focus-visible, .site-header .dropdown-item:focus-visible {
    outline: 3px solid #5b9bd5;
    outline-offset: 2px;
}

/* Hours in a card or column too narrow for a day and its times side by side: the day above its times, not each broken in two. */
.side-card, .contact-card { container-type: inline-size; }
@container (max-width: 18.5rem) {
    .side-hours td { display: block; padding: 0; }
    .side-hours td:last-child { text-align: left; margin-bottom: .35rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .footer-hours td { display: block; padding: 0; }
    .footer-hours td:last-child { text-align: left; margin-bottom: .35rem; }
}

/* A wide gutter runs past the page in the first widths of its breakpoint, under a window's scrollbar: the narrower one there. */
@media (min-width: 992px) and (max-width: 1023.98px) { .row.g-lg-5 { --bs-gutter-x: 1.5rem; } }

/* The open menu scrolls by itself when it is taller than the window, rather than the page behind it. */
@media (max-width: 1199.98px) {
    .site-header .navbar-collapse { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain; }
}

/* A procedure or condition picture beside its words from a large phone held sideways up, not filling the screen. */
@media (min-width: 640px) and (max-width: 991.98px) {
    .procedure-hero .row > .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
    .procedure-hero .row > .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
}

/* A condition page's "On this page" comes before its article when the columns stack, the rest of the column after it.
   The column steps aside (display: contents) so the list can be ordered first in the row. */
@media (max-width: 991.98px) {
    .page-body .row > .col-lg-4:has(> .side-stack-long), .page-body .side-stack-long { display: contents; }
    .page-body .side-stack-long > * { flex: 1 1 100%; min-width: 0; margin: var(--bs-gutter-y) calc(var(--bs-gutter-x) * .5) 0; }
    .page-body .side-stack-long > .side-toc { order: -1; }
}

/* The sidebar stays where it is on a window too short to show all of it: pinned, its Call to Schedule could not be reached. */
@media (max-height: 1079.98px) { .side-stack { position: static; } }

/* The team: beside the rows from 901 up, Dr. Bravo as tall as the two of them; above them below that, at a size that
   fits the screen; a last row short of people centred. A section's own CSS comes after this file, so each names its section. */
[data-rr-section="team"] .rr-team__staff { display: flex; flex-wrap: wrap; justify-content: center; }
[data-rr-section="team"] .rr-team__staff > li { flex: 0 0 calc((100% - var(--rr-gap)) / 2); }
@media (max-width: 900px) {
    [data-rr-section="team"] .rr-team__leads { width: 100%; max-width: 360px; margin-inline: auto; }
}
@media (min-width: 701px) {
    [data-rr-section="team"] .rr-team__staff > li { flex-basis: calc((100% - 2 * var(--rr-gap)) / 3); }
}
@media (min-width: 901px) {
    [data-rr-section="team"] .rr-team__portraits { grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); align-items: center; }
}

/* The driving directions are filmed upright: a video that shape, not a strip in the middle of a wide black box. */
.rr-section-embed[data-rr-section="directions-video"] .rr-video--fit video { display: block; width: min(100%, 352px, calc(85vh * 264 / 480)); height: auto; aspect-ratio: 264 / 480; margin-inline: auto; }
