/* EM/SFC Colombia. Dark only. Colors sampled from the Instagram logo. No motion anywhere. */
:root {
  --navy: #033983;
  --navy-deep: #02275c;
  --sky: #9bc5ff;
  --sky-soft: #0f1a33;
  --ink: #e8eefc;
  --muted: #a9b8d8;
  --bg: #0a1224;
  --card: #111c38;
  --line: #253660;
  --ok: #8fe0b4;
  --ok-bg: #143325;
  --link: #9bc5ff;
  --radius: 14px;
  --base: 1.125rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--base)/1.65 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
/* Montserrat for every title, menu, button and label; Open Sans only for running text */
h1, h2, h3, h4, .brand-text strong, .kicker, .nav-list a, .nav-list summary, .btn, .chip, .more, .badge, .filters label, .admin-bar, .inline-bar, .add-section, .site-footer h2 { font-family: 'Montserrat', 'Open Sans', system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2, .h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.prose-wrap > * { max-width: 46rem; }
.section { padding-top: 3rem; padding-bottom: 3rem; }
.section > .wrap > :last-child { margin-bottom: 0; }
.section-tint { background: var(--sky-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy a:not(.btn) { color: #fff; }
.section-intro { max-width: 46rem; font-size: 1.05em; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* admin bar */
.admin-bar { background: #f2a900; color: #1a1a1a; font-size: .9rem; display: flex; gap: 1rem; align-items: center; justify-content: center; padding: .35rem 1rem; flex-wrap: wrap; }
.admin-bar a, .admin-bar button { color: #1a1a1a; font-weight: 700; }
.admin-bar form { margin: 0; }
.admin-bar button { background: none; border: 0; cursor: pointer; text-decoration: underline; font: inherit; font-weight: 700; padding: 0; }
.edit-pin { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; font-size: .75rem; vertical-align: middle;
  background: #f2a900; color: #1a1a1a !important; border-radius: 50%; text-decoration: none; font-weight: 400; letter-spacing: 0; }

/* header: the logo and name show on every page except the home page, whose first screen already has them */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 60px; }
.header-right { display: flex; align-items: center; gap: .3rem; margin-left: auto; flex: none; }
.header-social { display: flex; gap: .3rem; }
.icon-btn, .menu-toggle summary { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: var(--sky); text-decoration: none; }
.icon-btn .icon { width: 24px; height: 24px; margin: 0; }
.icon-btn:hover, .menu-toggle summary:hover { background: var(--sky-soft); }
.logo-mark { width: 52px; height: 52px; flex: none; border-radius: 50%; display: block; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .85rem; color: var(--muted); }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-list a:not(.btn), .nav-list summary { display: block; padding: .5rem .6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .93rem; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.nav-list a:not(.btn):hover, .nav-list summary:hover { background: var(--sky-soft); }
.nav-list a[aria-current="page"], .nav-list summary.active { color: var(--sky); box-shadow: inset 0 -3px 0 var(--sky); border-radius: 8px 8px 0 0; }
.nav-list summary { list-style: none; }
.nav-list summary::-webkit-details-marker { display: none; }
.nav-list summary::after { content: ' ▾'; font-size: .8em; }
.has-sub { position: relative; }
.has-sub ul { list-style: none; margin: 0; padding: .4rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-width: 14rem; }
.has-sub ul a:not(.btn) { white-space: normal; }
.menu-toggle { display: none; }
/* Links in a row whenever they fit. /js in the page adds .is-collapsed when they do not. */
.site-header:not(.is-collapsed) .header-row { min-height: 72px; }
.site-header:not(.is-collapsed) .header-right { gap: .8rem; }
.site-header:not(.is-collapsed) .header-social { order: 2; }
.site-header:not(.is-collapsed) .brand { flex: none; }
.site-header:not(.is-collapsed) .has-sub details ul { position: absolute; top: calc(100% + .4rem); right: 0; z-index: 5; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
/* Links folded behind the hamburger */
.is-collapsed .menu-toggle { display: block; }
.is-collapsed .menu-toggle summary { list-style: none; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.is-collapsed .menu-toggle summary::-webkit-details-marker { display: none; }
.is-collapsed .menu-toggle summary::before { content: '☰'; }
.is-collapsed .menu-toggle[open] summary::before { content: '✕'; }
.is-collapsed .nav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 10; flex-direction: column; align-items: stretch; gap: 0;
  background: var(--card); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; }
.is-collapsed .menu-toggle[open] + .nav-list { display: flex; }
.is-collapsed .nav-list a:not(.btn), .is-collapsed .nav-list summary { padding: .8rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line); }
.is-collapsed .nav-list a[aria-current="page"], .is-collapsed .nav-list summary.active { box-shadow: inset 3px 0 0 var(--sky); border-radius: 0; padding-left: .8rem; }
.is-collapsed .has-sub ul { border: 0; padding: 0 0 0 1rem; }
@media (max-width: 640px) {
  .site-header .logo-mark { width: 40px; height: 40px; }
  .site-header .brand { gap: .55rem; }
  .site-header .brand-text strong { font-size: 1.02rem; }
  .site-header .brand-text small { display: none; }
}

/* buttons */
.btn { display: inline-block; background: var(--sky); color: var(--navy-deep); text-decoration: none; font-weight: 700; padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid var(--sky); line-height: 1.2; text-align: center; }
.btn:hover { background: #c5dcff; border-color: #c5dcff; }
.btn-small { padding: .5rem 1rem; font-size: .92rem; }
.btn-ghost, .btn-outline-light { background: transparent; color: var(--sky); border-color: var(--sky); }
.btn-ghost:hover, .btn-outline-light:hover { background: rgba(155, 197, 255, .12); border-color: var(--sky); }
.btn-light { background: var(--sky); border-color: var(--sky); color: var(--navy-deep); }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; vertical-align: -.2em; margin-right: .45em; flex: none; }
.lic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; margin-right: .4em; flex: none; }
.lic-h { color: var(--sky); margin-right: .5em; }
.lic-head { color: var(--sky); margin-right: .45em; width: 1em; height: 1em; vertical-align: -.12em; }
.icon-badge { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--navy); color: var(--sky); margin-bottom: .9rem; }
.icon-badge .lic { width: 1.5rem; height: 1.5rem; margin: 0; }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.more { font-weight: 700; }

/* hero: who we are on the left, the illness in a card on the right, COVID band below */
.hero { background: var(--navy); color: #fff; }
.hero-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; } }
.hero-id { display: flex; flex-direction: column; gap: 1.2rem; }
@media (min-width: 560px) { .hero-id { flex-direction: row; align-items: flex-start; gap: 1.5rem; } }
.hero-logo { width: 84px; height: 84px; border-radius: 50%; flex: none; border: 3px solid rgba(155, 197, 255, .5); }
@media (min-width: 960px) { .hero-logo { width: 112px; height: 112px; } }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: 0; hyphens: manual; }
@media (min-width: 560px) { .hero-id { align-items: center; } }
.hero-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(155, 197, 255, .35); border-radius: var(--radius); padding: 1.5rem; }
.hero-text { font-size: 1.08em; color: #e3ecff; }
.hero-text strong { color: #fff; }
.hero-card > :last-child { margin-bottom: 0; }
.hero-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; border-top: 1px solid rgba(155, 197, 255, .35); padding-top: 1rem; }
.hero-stat strong { font-family: 'Montserrat', 'Open Sans', system-ui, sans-serif; font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--sky); }
.hero-stat span { color: #e3ecff; }
.covid-band { background: var(--sky); color: var(--navy-deep); padding: 1.8rem 0; }
.covid-band h2 { font-size: 1.35rem; margin-bottom: .2em; }
.covid-band .lic-h { color: var(--navy); }
.covid-band p { margin: 0; }
.btn-dark { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-dark:hover { background: var(--navy); border-color: var(--navy); }
h1 { overflow-wrap: break-word; hyphens: auto; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: .85rem; color: var(--sky); margin-bottom: .8rem; }

/* page head */
.page-head { background: var(--navy); color: #fff; padding: 2.6rem 0 2.2rem; }
.page-head h1 { margin: 0; }
.page-head .kicker { margin-bottom: .5rem; }
.lead-dark { font-size: 1.15em; color: var(--muted); }
/* editing on the page (administrators only) */
.inline-editing { outline: 1px solid rgba(255, 255, 255, .9); outline-offset: 6px; border-radius: 4px; background: rgba(255, 255, 255, .07); cursor: text; }
.inline-bar { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; background: #0b1530; border: 1px solid rgba(255, 255, 255, .9); border-radius: 8px; padding: .35rem; z-index: 40; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); font-size: .85rem; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: 0; text-transform: none; }
.inline-bar button { font: inherit; background: transparent; color: #fff; border: 1px solid #3a4c7a; border-radius: 6px; padding: .4rem .6rem; cursor: pointer; }
.inline-bar button:hover { background: #1a2748; }
.inline-bar .inline-save { background: var(--sky); border-color: var(--sky); color: var(--navy-deep); }
.inline-bar .inline-save:hover { background: #fff; }
.inline-gap { flex: 1; }
.inline-msg { color: #ffe08a; }
.inline-msg:empty { display: none; }
.inline-bar-float { position: absolute; max-width: calc(100vw - 16px); }
.inline-bar-top { position: sticky; top: .5rem; margin: 0 -6px 14px; }
/* admin menus on the page and the box where forms open */
.admin-bar { position: relative; }
.admin-menu summary { cursor: pointer; font-weight: 700; list-style: none; text-decoration: underline; }
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu ul { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 60; width: min(21rem, calc(100vw - 16px)); list-style: none; margin: 0; padding: .4rem; background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); text-align: left; }
.admin-menu ul a { display: block; padding: .6rem .7rem; text-decoration: none; border-radius: 6px; }
.admin-menu ul a:hover { background: #eee; }
.admin-dialog { width: min(820px, 100vw); max-width: 100vw; height: 92vh; max-height: 100vh; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.admin-dialog[open] { display: flex; flex-direction: column; }
.admin-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.admin-dialog-head { display: flex; justify-content: flex-end; background: #f2a900; padding: .3rem .5rem; }
.admin-dialog-close { font: inherit; font-family: 'Montserrat', 'Open Sans', system-ui, sans-serif; font-weight: 700; color: #1a1a1a; background: none; border: 0; padding: .3rem .5rem; cursor: pointer; }
.admin-dialog iframe { flex: 1; width: 100%; border: 0; }
@media (max-width: 640px) { .admin-dialog { width: 100vw; height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0; } }
.add-section { display: block; max-width: 46rem; margin: 1.5rem 0; padding: .8rem 1rem; border: 1px dashed rgba(255, 255, 255, .7); border-radius: var(--radius); color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.extra-section + .extra-section { padding-top: 0; }
.notice { background: #3a2f0a; color: #ffe08a; padding: .7rem 1rem; border-radius: 10px; }

/* prose */
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); }
.cover { border-radius: var(--radius); margin-bottom: 1.5rem; width: 100%; }

/* grids and cards */
.grid-2, .grid-3 { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 1.2rem 1.3rem; }
.card-body > :last-child { margin-bottom: 0; }
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; }
.meta { color: var(--muted); font-size: .9em; }
.pillar { background: var(--card); border-radius: var(--radius); padding: 1.4rem; border-top: 5px solid var(--sky); }
.pillar > :last-child { margin-bottom: 0; }
.split { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.split > div { max-width: 40rem; }
.split p:last-child { margin-bottom: 0; }

.chip-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: var(--sky-soft); border: 1px solid var(--line); color: var(--link); text-decoration: none; font-weight: 700; font-size: .95rem; }
.chip:hover { border-color: var(--sky); }

.callout { margin: 2.5rem 0; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sky-soft); }
.callout h2 { font-size: 1.2rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-strong { border: 2px solid var(--sky); }
.callout ul { margin: 0; padding-left: 1.2em; }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--sky-soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }

/* people */
.person .avatar, .person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; background: var(--navy); color: var(--sky); font-size: 3rem; font-weight: 800; }
.about-block { margin-bottom: 2.5rem; scroll-margin-top: 1rem; }
.about-block:last-child { margin-bottom: 0; }

/* doctors */
.filters { display: grid; gap: .8rem; grid-template-columns: 1fr; background: var(--sky-soft); padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
@media (min-width: 700px) { .filters { grid-template-columns: 2fr 1fr 1fr; } }
.filters label { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; gap: .25rem; }
.filters label.check { flex-direction: row; align-items: center; gap: .5rem; font-size: 1rem; }
.filters input[type="search"], .filters select { font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; }
.filters input[type="checkbox"] { width: 1.3rem; height: 1.3rem; }
.doc-list, .res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc-head { display: flex; gap: .6rem; align-items: flex-start; justify-content: space-between; }
.doc-head h2 { margin-bottom: .3rem; }
.doc-spec { font-weight: 600; margin-bottom: .2rem; }
.doc-cond { font-size: .95em; }
.doc-where { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.badge .lic { width: 1em; height: 1em; margin-right: .3em; vertical-align: -.15em; }
.doc-contact { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; overflow-wrap: anywhere; }
.doc[hidden] { display: none; }

/* resources */
.toc { margin: 1rem 0 1.5rem; }
.res-group { padding-top: 1.5rem; scroll-margin-top: 1rem; }
.res-list h3 { margin-bottom: .3rem; }

/* footer */
.site-footer { background: var(--navy-deep); color: #dbe6ff; padding: 3rem 0 2rem; margin-top: 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; overflow-wrap: anywhere; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: var(--sky); display: block; }
.admin-link { margin-top: 1rem; font-size: .85rem; }
.admin-link summary { color: #b9cdf5; cursor: pointer; }
.access-form { display: flex; gap: .4rem; margin-top: .6rem; max-width: 20rem; }
.access-form input { flex: 1; min-width: 0; font: inherit; padding: .5rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.access-form button { font: inherit; font-weight: 700; padding: .5rem .9rem; border-radius: 8px; border: 0; background: var(--sky); color: var(--navy-deep); cursor: pointer; }
.access-msg { color: #ffe08a; margin: .5rem 0 0; }

/* pencil on the home logo */
.hero-logo-wrap { position: relative; display: inline-block; flex: none; }
.hero-logo-wrap .edit-pin { position: absolute; right: -8px; bottom: -8px; }
