/* ==========================================================================
   Homoeo-Bio-Engineering — core stylesheet
   Palette: navy #102A43 · scientific blue #1769AA · teal #16A6A1 · white
            soft background #F4F8FB · body text #344054 · borders #DCE5EC
   Edit colours in the :root block below to re-theme the whole site.
   ========================================================================== */

:root {
  --navy: #102A43;
  --blue: #1769AA;
  --blue-ink: #125A90;       /* blue for small text on white (AA contrast) */
  --teal: #16A6A1;
  --teal-ink: #0B7A76;       /* teal for small text on white (AA contrast) */
  --white: #FFFFFF;
  --bg: #F4F8FB;
  --text: #344054;
  --muted: #5B6B7B;
  --border: #DCE5EC;
  --warn-bg: #FFF7E6;
  --warn-border: #E8B04B;
  --warn-ink: #6B4500;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 42, 67, .06), 0 6px 18px rgba(16, 42, 67, .06);
  --shadow-hover: 0 2px 4px rgba(16, 42, 67, .08), 0 14px 30px rgba(16, 42, 67, .12);
  --font-body: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Source Sans 3", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
img { font-style: italic; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; max-width: 72ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; max-width: 72ch; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--bg); padding: .1em .35em; border-radius: 4px; word-break: break-word; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--text); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: .75rem;
}
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: var(--bg); }
.section--navy { background: var(--navy); color: #E6EEF5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.stack > * + * { margin-top: 1rem; }
.flow > * + * { margin-top: .9rem; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  max-width: 100%; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(23, 105, 170, .25); }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--blue-ink); padding-inline: .6rem; }
.btn-ghost:hover { background: var(--bg); color: var(--navy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-small { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }

/* ----- Header & navigation ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 42px; height: 42px; flex: 0 0 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.brand-sub { font-size: .8rem; color: var(--muted); }
.brand:hover { color: var(--navy); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 48px; height: 48px; border: 1px solid var(--border); background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; max-width: none; }
.nav-list > li { position: relative; margin: 0; }
.nav-link, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 42px; padding: .4rem .7rem; border-radius: 8px;
  color: var(--navy); font: 500 .94rem/1.2 var(--font-body); text-decoration: none;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .dropdown-toggle:hover, .dropdown-toggle[aria-expanded="true"] { background: var(--bg); color: var(--blue-ink); }
.nav-link[aria-current="page"] { color: var(--blue-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translate(-2px, -2px); }
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 250px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-hover);
  display: none;
}
.dropdown.is-open, .has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { display: block; }
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--navy); text-decoration: none; font-size: .95rem; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--bg); color: var(--blue-ink); }

/* ----- Breadcrumbs ----- */
.breadcrumb { padding-block: 18px 0; font-size: .9rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; max-width: none; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: #98A6B3; }
.breadcrumb a { color: var(--blue-ink); }

/* ----- Page hero (inner pages) ----- */
.page-hero { padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 56px); background: linear-gradient(180deg, var(--bg), #fff); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); max-width: 22ch; }
.page-hero p { color: var(--muted); font-size: 1.08rem; }
.page-hero .eyebrow { margin-top: 12px; }

/* ----- Home hero ----- */
.hero {
  position: relative; color: #E8F0F7; isolation: isolate;
  background: var(--navy) url("../images/hero/hero-background.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(16,42,67,.97) 0%, rgba(16,42,67,.9) 45%, rgba(16,42,67,.72) 100%);
}
.hero-grid { padding-block: clamp(56px, 8vw, 104px); display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.5rem); max-width: 18ch; }
.hero .eyebrow { color: #7fe0dc; }
.hero .lead { color: #D6E2EE; max-width: 60ch; }
.hero .name-line { font-family: var(--font-head); font-size: 1.15rem; color: #fff; font-weight: 600; margin-bottom: .4rem; }
.hero .name-line span { color: #AFC7DB; font-weight: 400; }
.hero .btn-row { margin-top: 28px; }
.hero .intro-note { margin-top: 22px; font-size: .95rem; color: #BCD0E2; max-width: 62ch; border-left: 3px solid var(--teal); padding-left: 14px; }

.portrait-card { background: #fff; color: var(--text); border-radius: 18px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.28); margin: 0; }
.portrait-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 12px; background: var(--navy); }
.portrait-card figcaption { padding: 14px 6px 4px; font-size: .92rem; color: var(--muted); }
.portrait-card figcaption strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.12rem; }

/* ----- Cards ----- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; min-width: 0;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #C8D7E3; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--blue-ink); text-decoration: underline; }
.card > .icon { width: 48px; height: 48px; margin-bottom: 16px; }
.card p { color: var(--text); }
.card .card-foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; }
.card--accent { border-top: 4px solid var(--teal); }
.theme-card .icon-wrap { width: 56px; height: 56px; border-radius: 14px; background: #E8F3FA; display: grid; place-items: center; margin-bottom: 16px; }
.theme-card .icon-wrap img { width: 32px; height: 32px; }

.tag { display: inline-flex; align-items: center; min-height: 26px; padding: .15rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #E8F3FA; color: var(--blue-ink); letter-spacing: .01em; }
.tag--teal { background: #E3F6F5; color: var(--teal-ink); }
.tag--navy { background: var(--navy); color: #fff; }
.tag--muted { background: #EEF2F6; color: #3D4B5A; }
.tag--warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-border); }

.notice { border-left: 4px solid var(--blue); background: #EEF6FC; padding: 18px 20px; border-radius: 10px; color: var(--text); }
.notice--warn { border-color: var(--warn-border); background: var(--warn-bg); color: var(--warn-ink); }
.notice--success { border-color: var(--teal); background: #ECF9F8; }
.notice h3, .notice h4 { margin-bottom: .35em; color: var(--navy); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

.callout { background: var(--navy); color: #E6EEF5; border-radius: 16px; padding: clamp(24px, 4vw, 44px); }
.callout h2, .callout h3 { color: #fff; }
.callout p { color: #D2E0EC; }
.callout .btn-row { margin-top: 18px; }

/* ----- Featured publication card ----- */
.pub-card .pub-meta { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.pub-card .pub-authors { font-size: .95rem; color: var(--text); margin-bottom: .4rem; overflow-wrap: anywhere; }
.pub-card .pub-journal { font-style: italic; color: var(--navy); }
.pub-card h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
.pub-card .pub-summary { font-size: .97rem; }
.pub-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.verify-note { font-size: .85rem; color: var(--muted); }
.details-panel { margin-top: 14px; padding: 16px 18px; background: var(--bg); border-radius: 10px; border: 1px solid var(--border); }
.details-panel[hidden] { display: none; }
.details-panel dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; }
.details-panel dt { font-weight: 600; color: var(--navy); }
.details-panel dd { margin: 0; overflow-wrap: anywhere; }

/* ----- Diagrams / figures ----- */
.figure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(12px, 2vw, 22px); box-shadow: var(--shadow); }
.figure img { width: 100%; height: auto; border-radius: 8px; }
.figure figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); line-height: 1.6; }
.figure figcaption strong { color: var(--navy); }
.figure--wide { max-width: 100%; }
.figure--tint { background: var(--bg); }
.figure-pair { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.illus { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ----- Timeline ----- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), var(--blue)); border-radius: 2px; }
.timeline li { position: relative; margin: 0 0 26px; padding: 0 0 0 4px; max-width: none; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-sizing: border-box; }
.timeline li.is-current::before { background: var(--teal); border-color: var(--teal); }
.timeline .year { font-family: var(--font-head); font-weight: 700; color: var(--blue-ink); font-size: 1.05rem; }
.timeline .role { font-weight: 600; color: var(--navy); }
.timeline .where { color: var(--muted); font-size: .95rem; }
.timeline .status { display: inline-block; margin-top: 4px; font-size: .8rem; }

/* ----- Tables (stack on small screens via responsive.css) ----- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg); color: var(--navy); font-family: var(--font-head); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
caption { caption-side: top; text-align: left; font-weight: 600; color: var(--navy); padding-bottom: 8px; }

/* ----- Forms, filters and controls ----- */
.filter-bar { display: grid; gap: 14px; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); align-items: end; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field .hint { font-size: .86rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .85rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--navy);
  background: #fff; border: 1.5px solid #B9C7D3; border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 160px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7A8896; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 166, 161, .25); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.error-text { color: #B42318; font-size: .9rem; font-weight: 500; min-height: 0; }
.error-text:empty { display: none; }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; margin-top: 3px; accent-color: var(--blue); }
.checkbox-row label { font-weight: 400; color: var(--text); }
.search-count { font-size: .95rem; color: var(--muted); margin: 0 0 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { min-height: 36px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid #B9C7D3; background: #fff; color: var(--navy); cursor: pointer; font: 500 .9rem/1.2 var(--font-body); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.empty-state { text-align: center; padding: clamp(32px, 6vw, 56px) 20px; background: #fff; border: 1.5px dashed #B9C7D3; border-radius: var(--radius); }
.empty-state .icon { width: 56px; height: 56px; margin: 0 auto 14px; }
.empty-state h3 { margin-bottom: .4em; }
.empty-state p { margin-inline: auto; color: var(--muted); }

.status-banner { display: none; padding: 16px 18px; border-radius: 10px; font-weight: 500; margin: 0 0 18px; }
.status-banner.is-visible { display: block; }
.status-banner--error { background: #FEF3F2; color: #7A271A; border: 1px solid #F3B4AC; }
.status-banner--info { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-border); }
.status-banner--success { background: #ECF9F8; color: #0B4F4C; border: 1px solid #8DD9D5; }

.resource-card .res-type { align-self: flex-start; }
.resource-card .res-meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.resource-card .res-meta span + span::before { content: "·"; margin-right: 14px; color: #98A6B3; }

.glossary-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; max-width: none; }
.glossary-letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; }
.glossary-letters a:hover { background: var(--bg); }
.glossary-letters a[aria-disabled="true"] { color: #A6B3BF; pointer-events: none; background: var(--bg); }
.glossary-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; scroll-margin-top: calc(var(--header-h) + 16px); box-shadow: var(--shadow); }
.glossary-item dt { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 0 0 .3em; }
.glossary-item dd { margin: 0; max-width: 72ch; }
.glossary-item dd p { margin-bottom: .6em; }
.glossary-item .related { font-size: .9rem; color: var(--muted); margin-top: .5em; }
.glossary-item .refs { font-size: .88rem; color: var(--muted); margin-top: .6em; }
.glossary-item .refs li { margin-bottom: .2em; }
.glossary-item .refs ol { padding-left: 1.2em; margin: 0; }

.checklist { list-style: none; padding: 0; max-width: none; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: #E3F6F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230B7A76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.qa h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); }
.qa .short-answer { font-weight: 500; color: var(--navy); border-left: 3px solid var(--teal); padding-left: 14px; margin-bottom: 1em; }

.key-facts { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.key-facts div { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.key-facts dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.key-facts dd { margin: 4px 0 0; color: var(--navy); font-weight: 600; }

.footer-note { font-size: .9rem; color: var(--muted); }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #C9D8E6; padding-top: clamp(48px, 6vw, 72px); font-size: .95rem; }
.site-footer a { color: #E4EEF7; text-decoration: none; }
.site-footer a:hover { color: #7FE0DC; text-decoration: underline; }
.footer-grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
.site-footer h2 { font-family: var(--font-head); font-size: 1rem; color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.site-footer li { margin-bottom: .55em; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.2rem; }
.footer-disclaimer { margin-top: 14px; font-size: .9rem; color: #A9BED1; max-width: 46ch; }
.footer-bottom { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; font-size: .9rem; color: #A9BED1; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-bottom p { margin: 0; max-width: none; }

/* ----- Contact form ----- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.honeypot { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ----- Reveal animation (only when JS is running and motion is allowed) ----- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* Ensure the hidden attribute always hides (JS toggles it on banners and panels). */
[hidden] { display: none !important; }

/* ---- Form messages, legal pages and glossary list (added for completeness) ---- */
.field-error { margin: 6px 0 0; font-size: .92rem; color: #B42318; font-weight: 600; }
.field-error:empty { display: none; }
.field [aria-invalid="true"], .field--check [aria-invalid="true"] { outline: 2px solid #B42318; outline-offset: 1px; }
.req { color: #B42318; font-weight: 700; margin-left: 2px; }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; }
.field--check label { font-weight: 500; }
.contact-form { display: grid; gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.legal .prose, .prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose p, .prose li { color: #243B53; }
.glossary-list { display: block; max-width: 900px; }
.glossary-letter { margin: 36px 0 12px; font-size: 1.6rem; color: var(--navy, #102A43); border-bottom: 1px solid #D9E2EC; padding-bottom: 6px; }
