/* codewtx.com — CODE (Center for Obesity, Diabetes, and Endocrinology)
   Mobile-first, no framework, no web fonts (system stacks, zero third-party requests).
   Brand colours are the tokens below. */
:root {
  --ink: #0f2a36;          /* headings */
  --text: #2a3a44;         /* body */
  --muted: #536370;        /* secondary text (5.9:1 on --bg) */
  --brand: #0b6b6b;        /* buttons, links (6.1:1 on white) */
  --brand-deep: #085252;   /* hover */
  --brand-tint: #e4f1ef;
  --bg: #faf8f4;
  --surface: #ffffff;
  --line: #ddd8cd;
  --line-strong: #8a8f93;  /* input borders (3.3:1 on white) */
  --focus: #0b6b6b;
  --danger: #a3251b;
  --ok: #0b6b3a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 54, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, dl { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* bilingual: English is the default; html[data-lang="es"] swaps */
[data-l="es"] { display: none !important; }
html[data-lang="es"] [data-l="es"] { display: revert !important; }
html[data-lang="es"] [data-l="en"] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center.actions { justify-content: center; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; font: 700 1rem/1.2 var(--sans); text-decoration: none;
  cursor: pointer; text-align: center;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-outline { background: var(--surface); color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; }
.linkish {
  background: none; border: 0; padding: .5rem 0; min-height: 44px; color: var(--brand);
  font: 600 .98rem/1.4 var(--sans); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; text-align: left;
}
.linkish:hover { color: var(--brand-deep); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
/* the header may be wider than .wrap so the full brand subtitle and the desktop nav fit side by side */
.site-header .header-row { max-width: 1320px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 8px 0; flex: 1 1 auto; min-width: 0; }
.brand-mark {
  display: grid; place-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--brand); color: #fff; font: 800 .82rem/1 var(--sans); letter-spacing: .08em; text-align: center;
}
.brand-mark span { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font: 800 1.15rem/1.1 var(--sans); letter-spacing: .12em; color: var(--ink); }
.brand-sub { font-size: .76rem; color: var(--muted); max-width: 165px; }
.nav-toggle {
  display: none; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: .4rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 700 .95rem var(--sans); cursor: pointer;
  white-space: nowrap;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }
.site-nav { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 8px 0 16px; }
.nav-links { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: .7rem .25rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-links a:hover { color: var(--brand); }
/* never shrink, wrap or clip the language switch and the call to action */
.lang-toggle { display: inline-flex; flex: none; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; align-self: flex-start; }
.nav-cta { white-space: nowrap; flex: none; align-self: flex-start; }
.lang-toggle button {
  flex: none; min-width: 48px; min-height: 44px; border: 0; background: var(--surface); color: var(--ink);
  font: 800 .85rem var(--sans); letter-spacing: .1em; cursor: pointer; white-space: nowrap;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.no-js .lang-toggle { display: none; }
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.open { display: flex; }
@media (min-width: 600px) and (max-width: 1179px) { .brand-sub { max-width: 300px; } }

/* Desktop nav only from 1180px; below that the Menu button. Measured in headless Chrome with DejaVu Sans
   (wider than Segoe UI / SF): the nav is ~790px in EN and in ES, the brand 274px with a 2-line subtitle,
   so one line needs ~1110px plus a 15-17px classic scrollbar. 1180 leaves ~55px spare (~145px once the
   subtitle wraps to 3 lines). The nav never shrinks; the brand gives way. */
@media (min-width: 1180px) {
  .header-row { flex-wrap: nowrap; }
  .brand { flex: 0 1 auto; }
  .brand-sub { max-width: 220px; min-width: 130px; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: flex; flex: none; flex-direction: row; align-items: center; width: auto; padding: 0; gap: 12px; }
  .nav-links { flex-direction: row; flex: none; gap: 2px; }
  .nav-links a { border: 0; padding: .5rem .55rem; border-radius: 8px; font-size: 1rem; }
  .lang-toggle, .nav-cta { align-self: center; }
}

/* sections */
.section { padding: 56px 0; }
.section.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.kicker { font: 700 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.lead { font-size: 1.2rem; color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.note-block { background: var(--brand-tint); border-radius: var(--radius-sm); padding: .85rem 1rem; color: var(--ink); }
@media (min-width: 760px) {
  .section { padding: 84px 0; }
  .card { padding: 30px; }
}

/* hero */
.hero { padding: 40px 0 48px; background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.h1-code { display: block; font-family: var(--sans); font-weight: 800; letter-spacing: .14em; color: var(--brand); font-size: .55em; margin-bottom: .25em; }
.hero-addr { display: flex; align-items: flex-start; gap: 8px; margin-top: 1.25rem; color: var(--muted); }
.hero-addr .ico { flex: none; margin-top: 3px; }
.ico, .cond-ico, .done-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-photo { margin: 0 auto; max-width: 360px; width: 100%; }
.hero-photo img, .profile-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line); }
.hero-photo figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.hero-photo figcaption strong { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.hero-photo figcaption span { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; }
}

/* facts strip */
.facts { background: var(--ink); color: #fff; }
.facts-list { list-style: none; display: grid; gap: 10px; padding-top: 18px; padding-bottom: 18px; margin: 0 auto; font-weight: 600; font-size: .98rem; }
.facts-list li { padding-left: 22px; position: relative; }
.facts-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: #7fd1c7; }
@media (min-width: 760px) { .facts-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts-list { grid-template-columns: repeat(4, 1fr); } }

/* doctor */
.doc-grid { display: grid; gap: 32px; }
.role { color: var(--muted); font-weight: 600; }
.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: var(--brand-tint); color: var(--ink); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .92rem; }
.bio p { max-width: 68ch; }
.training h3 { margin-bottom: 1rem; }
.info { display: grid; gap: 14px; margin: 0; }
.info dt { font: 700 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info dd { margin: 2px 0 0; color: var(--ink); }
@media (min-width: 900px) { .doc-grid { grid-template-columns: 1.4fr .9fr; align-items: start; gap: 48px; } }

/* conditions */
.cond-grid { list-style: none; padding: 0; display: grid; gap: 14px; margin-bottom: 24px; }
.cond { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.cond-ico { flex: none; color: var(--brand); width: 32px; height: 32px; }
@media (min-width: 640px) { .cond-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cond-grid { grid-template-columns: repeat(4, 1fr); } .cond { flex-direction: column; align-items: flex-start; } }

/* booking */
.book-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .book-grid { grid-template-columns: .75fr 1.25fr; gap: 48px; align-items: start; } .book-intro { position: sticky; top: 100px; } }
.book-card { padding: 18px; }
@media (min-width: 760px) { .book-card { padding: 30px; } }
.bk-steps { list-style: none; padding: 0; display: flex; gap: 18px; margin: 0 0 20px; font-weight: 700; color: var(--muted); font-size: .95rem; }
.bk-steps li { display: flex; align-items: center; gap: 8px; }
.bk-steps .n { display: inline-grid; place-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); font-size: .85rem; }
.bk-steps li[aria-current="step"] { color: var(--ink); }
.bk-steps li[aria-current="step"] .n { background: var(--brand); border-color: var(--brand); color: #fff; }

.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; padding: 0; }
.req { color: var(--danger); }
.hint { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-err { color: var(--danger); font-size: .92rem; font-weight: 600; margin: 6px 0 0; }
.field-err:empty { display: none; }
.form-error { color: var(--danger); font-weight: 700; margin: 0 0 14px; }
.form-error:empty { display: none; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: .6rem 1.1rem; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700;
}
.choice > span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; background: var(--surface); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-tint); }
.choice input:checked + span::before { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 45%, var(--surface) 50%); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.field > .check-label, .check-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); font-size: .95rem; cursor: pointer; }
.check-label input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }

.next-avail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--brand-tint); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; color: var(--ink); }
.wk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wk-range { font-weight: 700; color: var(--ink); }
.wk-nav { display: flex; gap: 8px; }
.wk-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.wk-nav button:disabled { opacity: .4; cursor: not-allowed; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.day {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 76px; padding: 10px 4px 8px;
  border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit;
}
.day .dw { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day .dn { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.day .cnt { font-size: .74rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; }
.day[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.day[aria-pressed="true"] .dw, .day[aria-pressed="true"] .cnt { color: #fff; }
.day:disabled { background: var(--bg); border-style: dashed; border-color: var(--line); cursor: not-allowed; }
.day:disabled .dn { color: var(--muted); }
.soon { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
#bk-times { margin-top: 18px; }
.slot-group + .slot-group { margin-top: 14px; }
.slot-lbl { font-weight: 700; color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot {
  min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 700 .98rem var(--sans); cursor: pointer;
}
.slot:hover, .day:not(:disabled):hover { border-color: var(--brand); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.bk-status { color: var(--muted); font-size: .95rem; margin: 10px 0 0; min-height: 1.5em; }
.bk-status.loading::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bk-status.loading::before { animation: none; } }
.recap { display: grid; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; }
.recap div { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.recap dt { font-weight: 700; color: var(--muted); font-size: .92rem; }
.recap dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.bk-foot { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.bk-foot .btn { flex: 1 1 140px; }
.fine { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bk-done, .ct-done { text-align: center; padding: 10px 0; }
.bk-done h3, .ct-done h3 { font-size: 1.5rem; }
.done-ico { color: var(--ok); margin: 0 auto 10px; width: 48px; height: 48px; }
.done-detail { font-weight: 700; color: var(--ink); }
.bk-fail { margin-top: 14px; border: 2px solid var(--danger); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); background: #fdf1f0; }

/* new patients */
.steps-list { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps-list li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px 72px; position: relative; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-content: center; font-weight: 800;
}
.steps-list p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .steps-list { grid-template-columns: repeat(3, 1fr); } }

/* visit + contact */
.visit-grid, .contact-grid, .two-col { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
  .two-col { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
}

/* faq */
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink); min-height: 48px; }
.faq details p { padding: 0 18px 16px; margin: 0; }

/* profile */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: .92rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a[aria-current="page"] { color: var(--muted); text-decoration: none; }
.profile { padding-top: 28px; }
.profile-grid { display: grid; gap: 28px; }
.profile-photo { margin: 0; max-width: 320px; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 320px 1fr; gap: 48px; align-items: start; } }
.ticks { padding-left: 1.2em; }
.ticks li { margin-bottom: .35em; }

/* legal pages */
.legal { padding-bottom: 64px; }
.legal h1 { margin-top: 18px; }
.legal h2 { margin-top: 1.8em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.2em; font-size: 1.1rem; font-family: var(--sans); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0 24px; }
.toc-h { font-size: 1rem; font-family: var(--sans); margin-bottom: .4rem; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; }

/* footer */
.site-footer { background: var(--ink); color: #e3eaee; padding: 48px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.footer-name { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.footer-name .brand-name { color: #fff; display: block; font-family: var(--sans); }
.footer-h { font: 700 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #b9c7cf; margin-bottom: .8rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-nav a { display: inline-block; padding: .3rem 0; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .9rem; color: #b9c7cf; }
.footer-base p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

@media print {
  .site-header, .site-footer, #book, #contact, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* grid and flex children may shrink below their content's min width (prevents sideways scroll on small phones) */
.hero-grid > *, .doc-grid > *, .book-grid > *, .visit-grid > *, .contact-grid > *, .two-col > *, .profile-grid > *, .footer-grid > *, .field-row > * { min-width: 0; }
section[id], h2[id] { scroll-margin-top: 84px; }
form > .hint { margin: -6px 0 16px; }

/* legal pages: full EN/ES blocks, insurance list, language-assistance taglines */
.legal h4 { margin-top: 1.1em; font-size: 1rem; font-family: var(--sans); }
.legal .example { color: var(--muted); }
.contact-box { margin: 18px 0 8px; }
.contact-box .contact-h { margin-top: 0; font-size: 1.1rem; font-family: var(--sans); }
.plans { columns: 2 180px; column-gap: 24px; padding-left: 1.2em; margin: .5rem 0 1rem; }
.plans li { break-inside: avoid; margin-bottom: .2em; }
.taglines p { margin: 0; padding: .7rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.taglines .tl-lang { display: block; font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.taglines a { white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }
.legal .kicker { margin-top: 18px; }
.legal .kicker + h1 { margin-top: 4px; }
.legal dl.info { margin-bottom: 1rem; }
.legal .toc-h { margin-top: 0; font-size: 1rem; }
.legal .es-review { margin: 18px 0 0; }
