:root {
  color-scheme: light;
  --navy: #102d42;
  --ink: #213748;
  --muted: #49616f;
  --teal: #076860;
  --teal-dark: #084a47;
  --wash: #f1f7f7;
  --line: #cfdddd;
  --white: #fff;
  --shell: 73rem;
  --prose: 70ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid #b34b00; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.45rem); margin: 0 0 .65em; font-weight: 710; }
h2 { font-size: clamp(1.55rem, 3vw, 2.55rem); margin: 1.5em 0 .65em; }
h3, h2:where(.legal-section-heading) { font-size: clamp(1.18rem, 2vw, 1.5rem); margin: 1.35em 0 .45em; }
p, ul, ol, dl, figure, blockquote { margin: 0 0 1.05rem; }
p, li, dd, figcaption { overflow-wrap: anywhere; }
ul, ol { padding-inline-start: 1.5em; }
li + li { margin-block-start: .3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
figure img, .media img, .video-poster { border-radius: .85rem; }
figure img { margin-inline: auto; }
figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-block-start: .5rem; }
blockquote { border-inline-start: 3px solid var(--teal); padding-inline-start: 1.1rem; }
table { inline-size: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--line); padding: .65rem; text-align: start; }
th { background: var(--wash); }
.skip-link {
  position: fixed; inset: .75rem auto auto .75rem; z-index: 10; padding: .65rem 1rem;
  background: var(--white); border: 1px solid var(--teal); transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.header-inner, .footer-inner, .section-inner, .pagination {
  width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto;
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 2vw, 2.5rem);
  align-items: center; min-block-size: 5.6rem;
}
.brand { display: block; grid-column: 1; grid-row: 1; min-inline-size: 0; }
.brand img { width: clamp(7.5rem, 14vw, 11rem); }
.site-header .button { grid-column: 3; grid-row: 1; }
#site-nav { grid-column: 2; grid-row: 1; justify-self: center; }
.site-menu, .site-menu ul, .social-links { display: flex; margin: 0; padding: 0; list-style: none; }
.site-menu { align-items: center; flex-wrap: wrap; gap: clamp(.25rem, 1vw, .8rem); }
.site-menu li, .social-links li { margin: 0; }
.site-menu a, .menu-toggle { text-decoration: none; font-size: .91rem; font-weight: 630; color: var(--navy); }
.site-menu a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .35rem; }
.site-menu a:hover, .site-menu [aria-current="page"] { color: var(--teal); text-decoration: underline; }
.has-submenu { display: flex; align-items: center; position: relative; }
.submenu summary {
  list-style: none; display: grid; place-items: center; width: 1.75rem; height: 2.75rem;
  padding: 0; cursor: pointer;
}
.submenu summary::-webkit-details-marker { display: none; }
.submenu summary::after, .page-turn::after {
  content: ""; width: .48rem; height: .48rem; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.submenu[open] summary::after { transform: rotate(225deg); }
.site-menu ul {
  display: block; position: absolute; top: 100%; inset-inline-start: 0;
  min-width: 15rem; max-height: min(65vh, 34rem); overflow: auto;
  background: var(--white); border: 1px solid var(--line);
  border-radius: .6rem; padding: .4rem; box-shadow: 0 .8rem 1.8rem #102d421e;
}
.site-menu ul a { display: flex; padding: .4rem .7rem; }
.button, button[type="submit"], .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .62rem 1.05rem; border: 1px solid transparent; border-radius: .5rem;
  background: var(--teal); color: var(--white); text-decoration: none;
  font: inherit; font-weight: 650; line-height: 1.3; text-align: center;
}
.button:hover, button[type="submit"]:hover { background: var(--teal-dark); color: var(--white); }
button:not(:disabled) { cursor: pointer; }
button:disabled { background: var(--wash); border-color: var(--line); color: var(--muted); }
.site-header .button { font-size: .83rem; }
.menu-toggle { display: none; color: var(--navy); background: var(--wash); border-color: var(--line); }

main > section { padding-block: clamp(2rem, 4.3vw, 4.3rem); }
main > section:nth-of-type(even):not(.hero) { background: var(--wash); }
.section-inner > :first-child, .prose-body > :first-child, .item-card > :first-child { margin-top: 0; }
.section-inner > :last-child, .item-card > :last-child { margin-bottom: 0; }
.standard .section-inner > :is(p, ul, ol, blockquote, details, .accordion),
.home .section-inner > :is(p, ul, ol, blockquote) { max-width: var(--prose); }
.section-inner > .media { margin-block: 1.2rem; max-width: 42rem; }
.section-inner:empty { display: none; }
main > section:not(:has(.section-inner > *)):not(:has(.section-inner:not(:empty))) { display: none; }
.hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 27ch; margin-bottom: 0; }
.hero h1 + :is(h2, p, ul) { margin-top: 1.25rem; }
.home-hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgb(16 45 66 / 82%);
}
.home-hero .section-inner { min-height: clamp(28rem, 50vw, 38rem); display: grid; align-content: center; }
.home-hero :is(h1, h2, p) { position: relative; z-index: 1; }
.home-hero :is(h1, h2) { color: inherit; }
.home-hero h1 { max-width: 22ch; }
.home-hero h1 br { display: block; }
.home-hero h2 { font-size: clamp(1.1rem, 2.45vw, 1.65rem); margin: 1.45rem 0 .55rem; max-width: 46ch; }
.home-hero p { color: #e2efef; }
.hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none;
}
.profile .section-inner { display: flow-root; }
.profile .media {
  float: left; width: min(31%, 23rem); margin: 0 clamp(1.3rem, 4vw, 3.8rem) 1rem 0;
}
.profile .media img { width: 100%; }
.profile h2 { margin-top: 0; }
.affiliations .section-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }
.affiliations h2, .testimonials h2 { order: -1; }
.affiliations h2 { flex-basis: 100%; text-align: center; margin: 0; }
.affiliations .section-inner > .media { width: min(7rem, 23%); margin: 0; }
.affiliations img { width: 100%; height: 3.8rem; object-fit: contain; border-radius: 0; }
.conditions-intro { padding-bottom: 0; }
.conditions-list { padding-top: 1.4rem; }
.item-grid, .card-grid, .recent-inner > section {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: 1.25rem;
}
.item-card, .card { background: var(--white); border: 1px solid var(--line); border-radius: .85rem; }
.item-card { padding: 1.1rem; }
.item-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.testimonials .section-inner { display: flex; flex-direction: column; }
.testimonials h2 { margin-top: 0; }
.directory-entry .section-inner { display: flow-root; }
.directory-entry .media {
  float: right; width: min(36%, 24rem); margin: 0 0 1rem clamp(1.4rem, 4vw, 3rem);
}
.directory-entry h2 { margin-top: 0; }

.blog main > section:first-child { padding-block: 2rem; background: var(--navy); }
.blog main > section:first-child h2 { color: var(--white); margin: 0; }
.blog .section-inner > nav, .article-page .section-inner > nav { margin-bottom: 1.2rem; }
.blog h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.card { overflow: clip; }
.card-cover {
  inline-size: 100%; block-size: auto; aspect-ratio: 16 / 10;
  object-fit: cover; background: var(--wash);
}
.card-body { padding: 1.15rem; }
.card h2, .card-title { font-size: 1.21rem; line-height: 1.32; margin: 0 0 .6rem; }
.card h2 a, .card-title a { color: var(--navy); text-decoration: none; }
.card h2 a:hover, .card-title a:hover { text-decoration: underline; }
.card-title { padding: .85rem 1rem; }
.byline { display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.avatar { display: inline-block; width: 2rem; height: 2rem; object-fit: cover; border-radius: 50%; vertical-align: middle; margin-inline-end: .5rem; }
.pagination { display: flex; justify-content: center; padding-block: 1rem 3rem; }
.page-turn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: .5rem; }
.page-turn.next::after { transform: rotate(-45deg); }
.page-turn.previous::after { transform: rotate(135deg); }
.article-page main > section { padding-top: 2.25rem; }
.post > header, .prose-body, .post > footer { max-width: var(--prose); margin-inline: auto; }
.post h1 { font-size: clamp(2.1rem, 4.4vw, 3.55rem); }
.post > header { margin-bottom: 2rem; }
.post > header p { margin: .65rem 0 0; font-size: .9rem; color: var(--muted); }
.post-cover {
  inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: .9rem; margin-top: 1.4rem;
}
.prose-body h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.prose-body figure { margin-block: 1.6rem; }
.recent-posts { margin-block-start: 3rem; padding-block-start: 1.5rem; border-top: 1px solid var(--line); }
.recent-inner > header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.recent-inner > header h2 { margin: 0 0 .8rem; }

details:not(.submenu) { margin-block: .65rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--white); }
details:not(.submenu) summary { padding: .78rem 1rem; cursor: pointer; font-weight: 680; color: var(--navy); }
details:not(.submenu) summary::marker { color: var(--teal); }
details:not(.submenu) > :not(summary) { margin-inline: 1rem; }
details:not(.submenu)[open] { padding-bottom: .15rem; }
.accordion { margin-block: 1.2rem; }

form {
  width: min(100%, 41rem); display: grid; gap: .6rem; margin-top: 1.5rem;
  padding: clamp(1.15rem, 3vw, 2.1rem); background: var(--white); border: 1px solid var(--line); border-radius: .9rem;
}
form :is(h2, h3, p) { margin: 0; }
form fieldset { min-inline-size: 0; }
form input:not([type="checkbox"]), form button { min-block-size: 2.75rem; }
label { font-weight: 620; }
label:has(input[type="checkbox"]) { font-weight: 450; margin-block: .45rem; }
input:not([type="checkbox"]), textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #80979e; padding: .6rem .7rem; border-radius: .4rem;
}
textarea { min-height: 8rem; resize: vertical; }
input[type="checkbox"] { accent-color: var(--teal); margin-inline-end: .65rem; }
form button { justify-self: start; }
.send-whatsapp { margin-block-start: .5rem; vertical-align: baseline; }
.send-whatsapp:disabled { background: var(--wash); border-color: var(--line); color: var(--muted); }
.site-footer { background: var(--navy); color: #e4f0f1; padding-block: 2.1rem; padding-inline-end: 2.1rem; }
.site-footer section { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; align-items: center; }
.site-footer section > p { margin: 0; }
.site-footer section > p:nth-last-child(-n+2) { flex-basis: 100%; font-size: .9rem; }
.site-footer a { color: var(--white); }
.social-links { gap: .55rem; align-items: center; flex-basis: 100%; }
.social-links a { display: grid; min-width: 2.75rem; min-height: 2.75rem; place-items: center; }
.social-icon { width: 2rem; height: 2rem; }
.floating-whatsapp {
  position: fixed; z-index: 3; inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  display: grid; place-items: center; width: 3.35rem; height: 3.35rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 .35rem 1.1rem #102d4233;
}
.floating-whatsapp svg { display: block; width: 2.45rem; height: 2.45rem; }
.contact-section .section-inner {
  --contact-edge: max(var(--gutter), (100% - var(--shell)) / 2);
  inline-size: min(var(--shell), 100% - var(--contact-edge) - max(var(--contact-edge), 4.65rem + env(safe-area-inset-right)));
  margin-inline-start: var(--contact-edge);
}

@media (max-width: 60rem) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: .65rem; min-height: 4.65rem; }
  .menu-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }
  .menu-toggle[aria-expanded="false"] + :where(#site-nav) { display: none; }
  .site-header .button { grid-column: 2; }
  #site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; padding-block: 0 1rem; }
  :where(body:not(.design):has(.cookie-consent:not([hidden]))) #site-nav {
    max-block-size: calc(100dvh - 4.65rem - var(--cookie-banner-height, 0px));
    overflow: auto;
    padding-block-end: calc(1rem + var(--cookie-banner-height, 0px));
  }
  .site-menu { display: block; }
  .has-submenu { display: grid; grid-template-columns: auto 1fr; justify-items: start; }
  .submenu ul { position: static; min-width: 0; max-height: 50vh; box-shadow: none; }
}
@media (scripting: none) {
  .menu-toggle { display: none; }
  .menu-toggle[aria-expanded="false"] + :where(#site-nav) { display: block; }
}
@media (max-width: 37rem) {
  .profile .media, .directory-entry .media { float: none; width: min(100%, 22rem); margin: 0 0 1rem; }
  .home-hero .section-inner { min-height: 26rem; }
  .site-header .button { padding-inline: .5rem; font-size: .76rem; }
  .menu-toggle { padding-inline: .55rem; font-size: .85rem; }
  .brand img { width: clamp(4.9rem, 28vw, 7.5rem); }
}
.card-excerpt { margin-bottom: .95rem; }
.card-body > a:has(h2) { color: var(--navy); display: block; text-decoration: none; }
.card-body > a:has(h2):hover { text-decoration: underline; }
.card > a:has(img) { display: block; }
.card a:focus-visible { outline-offset: -3px; }
.site-footer :focus-visible, .home-hero :focus-visible { outline-color: #ffd0a8; }
.prose-body .author-heading { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.card-body > .byline { margin-top: .85rem; }

.site-footer .cookie-settings:any-link {
  color: var(--cookie-settings-color, var(--porcelain, var(--white)));
  text-decoration: underline;
}
.cookie-settings {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  min-inline-size: 44px;
}
.cookie-consent:not([hidden]) {
  position: fixed;
  z-index: 9;
  inset: auto 0 0;
  max-block-size: 50dvh;
  overflow-y: auto;
  padding: .55rem max(1rem, env(safe-area-inset-right))
    calc(.55rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-block-start: 1px solid var(--brass, #c9a46a);
  background: var(--navy-900, #0b2545);
  color: var(--porcelain, #faf8f4);
}
.cookie-consent-inner {
  display: flex;
  width: min(100%, 75rem);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
}
.cookie-consent p { margin: 0; font-size: .95rem; }
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
}
.cookie-consent-actions :is(button, a) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-block-size: 44px;
  min-inline-size: 44px;
  font: inherit;
}
.cookie-consent-actions button {
  min-inline-size: 5.5rem;
  padding: .25rem .65rem;
  border: 1px solid var(--brass, #c9a46a);
  border-radius: .35rem;
  background: var(--brass, #c9a46a);
  color: var(--navy-950, #06172d);
  font-weight: 700;
  cursor: pointer;
}
.cookie-consent-actions button:hover { background: #dfc495; }
.cookie-consent .cookie-consent-actions a:any-link {
  padding-inline: .25rem;
  color: var(--porcelain, #faf8f4);
  white-space: nowrap;
  text-decoration: underline;
}
.cookie-consent .cookie-consent-actions :focus-visible, .site-footer .cookie-settings:focus-visible {
  outline: 2px solid #ffd69c;
  outline-offset: 2px;
}
.cookie-consent:not([hidden]):focus-visible { outline: 2px solid #ffd69c; outline-offset: -4px; }
body:has(.cookie-consent:not([hidden])) {
  padding-block-end: var(--cookie-banner-height, 0px);
}
body:has(.cookie-consent:not([hidden])) .floating-whatsapp {
  transform: translateY(calc(-1 * var(--cookie-banner-height, 0px)));
}
@media (prefers-reduced-motion: no-preference) {
  .floating-whatsapp { transition: transform .2s ease; }
}
html:has(.cookie-consent:not([hidden])) {
  scroll-padding-block-end: calc(var(--cookie-banner-height, 0px) + 1rem);
}
@media (max-width: 48rem) {
  .cookie-consent-inner { flex-direction: column; align-items: flex-start; }
}
