:root {
  --navy: #0b3d52;
  --deep: #051e2a;
  --gold: #dfc28f;
  --gold-ink: #6e4d22;
  --paper: #f5f2ee;
  --white: #fffdf9;
  --ink: #132f3b;
  --muted: #405864;
  --line: #dcd6ca;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
p, ul, ol { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0 0 .35em; font: 600 1.5rem/1.12 var(--serif); overflow-wrap: anywhere; }
h1 { font-size: clamp(2.55rem, 6.4vw, 5.35rem); letter-spacing: -.038em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.025em; }
h3 { font-size: 1.65rem; }
:focus-visible { outline: 3px solid #12668e; outline-offset: 4px; }
.dark :focus-visible, .top :focus-visible { outline-color: var(--gold); }
.wrap { width: min(75rem, 91%); margin-inline: auto; }
.readable { max-width: 51rem; }
.readable > p { max-width: 72ch; }

.skip { position: fixed; top: 1rem; left: 1rem; z-index: 20; padding: .65em 1em; background: var(--white); color: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }
.dark, .top { color: var(--white); background: var(--deep); }
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #dfc28f43; }
.top .wrap { width: min(92rem, 94%); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; white-space: nowrap; font: 600 1.18rem/1.05 var(--serif); }
.brand img { width: 70px; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .8rem; }
.nav-links a, .menu summary { text-decoration: none; font-size: .79rem; }
.nav-links a:hover, .nav-links [aria-current="page"], .results-nav { color: var(--gold); }
.desktop-actions { display: flex; gap: .85rem; align-items: center; flex-shrink: 0; }
.desktop-actions .button { white-space: nowrap; }
.menu { display: none; position: relative; }
.menu summary { cursor: pointer; white-space: nowrap; min-width: 5.1rem; padding: .65rem .8rem; border: 1px solid #dfc28f72; border-radius: .3rem; }
.menu-panel { width: min(21rem, 90vw); position: absolute; right: 0; top: calc(100% + .8rem); align-items: stretch; flex-direction: column; gap: 0; max-height: 78dvh; overflow: auto; background: var(--deep); border: 1px solid #dfc28f72; border-radius: .4rem; box-shadow: 0 1rem 2rem #0004; }
.menu-panel a { padding: .65rem .9rem; border-bottom: 1px solid #dfc28f36; font-size: .92rem; }
a.results-nav { font-weight: 700; }
.nav-links .morph-nav { color: var(--gold); font-weight: 700; white-space: nowrap; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .62em 1em; background: var(--navy); color: white; border: 1px solid var(--navy); border-radius: .32rem; text-decoration: none; cursor: pointer; font: 650 .875rem/1.3 var(--sans); text-align: center; }
.button:hover { background: var(--deep); }
.button.gold { color: var(--deep); background: var(--gold); border-color: var(--gold); }
.button.gold:hover { background: #f0d8a9; }
.button.quiet { background: transparent; border-color: #6a7980; color: inherit; }
.dark .button.quiet { border-color: #dfc28f90; }
.dark .button.quiet:hover { background: #ffffff15; }
.button.quiet:hover { background: #0b3d520c; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin: 0 0 .9rem; color: var(--gold-ink); }
.dark .eyebrow { color: var(--gold); }
.dark .intro { color: #d6e0e5; }
.intro { font-size: clamp(1rem, 1.45vw, 1.18rem); max-width: 62ch; color: var(--muted); }

.hero { overflow: hidden; background: radial-gradient(ellipse at 68% 100%, #184a5c, transparent 58%), var(--deep); }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); gap: clamp(1rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { padding-block: clamp(3.2rem, 7vw, 6.5rem); }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.hero .actions { margin-bottom: 1.3rem; }
.hero-location { color: #d6e0e5; font-size: .89rem; }
.hero-picture { align-self: end; justify-self: center; width: min(100%, 26rem); margin-top: 2rem; border: 1px solid #dfc28f57; border-bottom: 0; border-radius: 48% 48% 0 0 / 31% 31% 0 0; overflow: hidden; box-shadow: 0 0 0 .75rem #dfc28f0e; }
.hero-picture img { width: 100%; }
.page-head { padding-block: clamp(2rem, 5vw, 4.5rem); background: linear-gradient(135deg, var(--deep), var(--navy)); }
.page-head h1 { max-width: 23ch; font-size: clamp(2.6rem, 5.4vw, 4.65rem); }
.breadcrumb { margin-bottom: 1.35rem; font-size: .82rem; color: #d6e0e5; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .55rem; padding: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--gold); margin-right: .55rem; }

.band { padding-block: clamp(2.75rem, 6vw, 5rem); }
.band + .band { border-top: 1px solid var(--line); }
.band-muted { background: #ebe7de; }
.section-lead { margin-bottom: 1.6rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 1.35rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid #a98249; border-radius: .45rem; min-width: 0; }
a.card { display: flex; flex-direction: column; text-decoration: none; }
a.card:hover { border-color: #a98249; box-shadow: 0 .3rem 1.2rem #0b3d5215; }
.card p { color: var(--muted); }
.card-link { display: inline-block; color: var(--navy); font-size: .86rem; font-weight: 700; margin-top: auto; }
.card-link::after { content: " →"; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.split .portrait { width: min(100%, 20rem); border-radius: .4rem; }
.credential { font-weight: 650; font-size: .9rem; }
address { font-style: normal; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; column-gap: 1.05rem; row-gap: .5rem; }
.cluster a { font-weight: 650; }

.prose h2 { margin-top: 2.4rem; }
.prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose li + li { margin-top: .3rem; }
.prose ul { padding-left: 1.3rem; }
.prose li::marker { color: var(--gold-ink); }
.prose h3:first-child, .card h3:first-child { margin-top: 0; }
details.disclosure { border-bottom: 1px solid var(--line); }
details.disclosure summary { cursor: pointer; padding: .9rem 0; font-weight: 650; }
details.disclosure p { margin-bottom: .95rem; }
.guide-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.guide-list a { display: block; padding: .85rem 1rem; border: 1px solid var(--line); background: var(--white); border-radius: .35rem; font-weight: 650; }
.guide-list a:hover { border-color: #a98249; }
.notice, .alert { padding: 1rem 1.2rem; margin: 1.3rem 0; border-left: 4px solid #9d712f; background: #f3e8d7; border-radius: .18rem; }
.alert { border-color: #a52c22; background: #f9e9e3; color: #542b26; }
.notice h2, .alert h2 { margin-top: 0; font-size: 1.8rem; }
.notice h3, .alert h3 { margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--white); }
caption { text-align: left; padding-bottom: .65rem; color: var(--muted); }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border: 1px solid var(--line); }
thead th { background: var(--navy); color: white; }
tbody th { font-weight: 650; }
.content-meta { color: var(--muted); font-size: .89rem; }
.results-card { max-width: 44rem; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .9rem; }
label { display: block; font-weight: 650; margin-bottom: .35rem; }
input, select { width: 100%; min-width: 0; min-height: 44px; color: var(--ink); background: white; border: 1px solid #768b95; border-radius: .3rem; padding: .45rem .65rem; font: inherit; }
form > div, form > fieldset { margin-top: .9rem; }
form fieldset { border: 0; padding: 0; margin-inline: 0; min-inline-size: 0; }
form legend { padding: 0; color: var(--muted); margin-bottom: .55rem; }
.form-status { font-size: .92rem; margin-top: .7rem; }
.form-status:empty { display: none; }
.form-error { color: #902e25; }

.footer { padding-block: 2.4rem 3rem; color: #d6e0e5; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer strong { color: var(--white); }
.footer-links { align-self: start; }
.button.floating {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 8; gap: .45rem; min-height: 46px; background: #0b6345; border-color: #0b6345;
  padding-inline: .88em; border-radius: 2rem; box-shadow: 0 .2rem 1rem #0005;
}
.button.floating:hover { background: #084c38; border-color: #084c38; }
.footer { padding-bottom: 4.9rem; }

.exam-directory { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.directory-card h3 { font-size: clamp(1.4rem, 2.3vw, 1.7rem); margin-bottom: .7rem; }
.directory-card h3 a { text-decoration-thickness: 1px; }
.directory-card ul { list-style: none; padding: 0; margin: 0; }
.directory-card li + li { border-top: 1px solid var(--line); }
.directory-card li a { display: flex; align-items: center; min-height: 42px; padding: .4em 0; font-size: .9rem; line-height: 1.4; font-weight: 620; overflow-wrap: anywhere; }
.directory-card a:hover, .exam-head a:hover { color: #12668e; }
#exames + .grid > div > a.card { height: 100%; }
.exam-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.exam-photo { margin: 0 0 1.3rem; }
.exam-photo img {
  margin: 0 auto; max-height: 30rem; width: 100%; object-fit: contain; background: #10191e;
  border-radius: .45rem .45rem 0 0; border: 1px solid var(--line);
}
.exam-photo figcaption { padding: .65rem .9rem; background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 .45rem .45rem; }
.exam-photo small { display: block; color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.reviews-layout { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.reviews-map { display: block; width: 100%; border: 1px solid var(--line); border-radius: .5rem; }


@media (min-width: 58rem) and (max-width: 79rem) {
  html { scroll-padding-top: 8rem; }
  .top-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding: .55rem 0 .4rem; }
  .desktop-links { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; }
  .desktop-links a { padding: .36rem 0; }
  .desktop-actions { grid-column: 2; }
}
@media (max-width: 57.99rem) {
  .desktop-links, .desktop-actions { display: none; }
  .menu { display: block; }
}
@media (max-width: 68rem) {
  .exam-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand span { white-space: normal; }
}
@media (max-width: 46rem) {
  .split, .footer-inner, .reviews-layout { grid-template-columns: 1fr; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: .9rem; }
  .hero-picture { justify-self: end; width: min(45vw, 13rem); margin-right: 1rem; margin-top: .25rem; }
  .menu-book { display: none; }
  html { scroll-padding-top: 5.4rem; }
}
@media (max-width: 34rem) {
  .grid, .grid.four, .exam-directory { grid-template-columns: 1fr; }
  .hero .actions { gap: .45rem; }
  .hero .actions .button { font-size: .8rem; padding-inline: .72rem; }
  th, td { padding: .5rem .4rem; }
}
@media print {
  :root { --ink: #111; --paper: white; }
  .top, .footer, .floating, .actions, .skip, .breadcrumb, .map, .reviews-map, #search-controls { display: none !important; }
  .dark, .page-head { color: #111; background: white; }
  .dark .intro, .dark .eyebrow { color: #111; }
  .page-head, .band { padding-block: .65rem; }
  h1 { font-size: 29pt !important; }
  h2 { font-size: 19pt; }
  h1, h2, h3 { break-after: avoid; }
  .card, .notice, .alert, tr { break-inside: avoid; }
  thead th { color: #111; background: white; }
}
