:root {
  --navy: #1a3c6c;
  --navy-deep: #12294a;
  --navy-2: #24508c;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #dfe4ea;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --heading: #1a3c6c;
  --orange: #f7941d;
  --blue: #0a9fdc;
  --accent-ink: #b35c00;
  /* Triage levels */
  --t1: #e5484d;
  --t1-soft: #fdecec;
  --t1-ink: #c22b31;
  --t2: #f7941d;
  --t2-soft: #fff1e0;
  --t2-ink: #b35c00;
  --t3: #12a594;
  --t3-soft: #e3f6f3;
  --t3-ink: #0b7d70;
  --icon-bg: #e8eef6;
  --icon-fg: #24508c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13,36,64,.06), 0 8px 24px rgba(13,36,64,.06);
  --wrap: 1160px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6ebf2; --muted: #9aa7b8; --line: #2a3a50; --bg: #0b1522; --surface: #111e2f; --heading: #e9eef5;
    --accent-ink: #ffb35c; --icon-bg: #1a2c44; --icon-fg: #9cc0ea;
    --t1-soft: #3a1d22; --t1-ink: #ff8f92; --t2-soft: #3a2a14; --t2-ink: #ffb35c; --t3-soft: #10342f; --t3-ink: #5fe0cf;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --ink: #e6ebf2; --muted: #9aa7b8; --line: #2a3a50; --bg: #0b1522; --surface: #111e2f; --heading: #e9eef5;
  --accent-ink: #ffb35c; --icon-bg: #1a2c44; --icon-fg: #9cc0ea;
  --t1-soft: #3a1d22; --t1-ink: #ff8f92; --t2-soft: #3a2a14; --t2-ink: #ffb35c; --t3-soft: #10342f; --t3-ink: #5fe0cf;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--heading); }
p { margin: 0; }
.section { padding: 88px 0; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head h2 { margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* Hospital wayfinding sign used as section label */
.sign {
  display: inline-flex; align-items: stretch; border-radius: 8px; overflow: hidden;
  font-size: .85rem; font-weight: 600; background: var(--navy); color: #fff;
  box-shadow: 0 2px 6px rgba(13,36,64,.15);
}
.sign b {
  font-family: var(--mono); background: var(--orange); color: var(--navy-deep);
  padding: 4px 10px; display: grid; place-items: center;
}
.sign span { padding: 4px 12px; letter-spacing: .02em; }
.on-dark .sign { background: #fff; color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy-deep); box-shadow: 0 6px 18px rgba(247,148,29,.3); }
.btn-primary:hover { background: #ffa53a; }
.btn-er { background: var(--t1); color: #fff; box-shadow: 0 6px 18px rgba(229,72,77,.3); }
.btn-er:hover { background: #d63c41; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--heading); color: var(--heading); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.t1 { background: var(--t1); } .dot.t2 { background: var(--t2); } .dot.t3 { background: var(--t3); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  color: #1a3c6c; border-bottom: 1px solid #e3e8ee;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.logo img { height: 56px; width: auto; }
.logo small { display: block; font-weight: 500; font-size: .7rem; opacity: .7; letter-spacing: .04em; }
.nav-links { display: flex; gap: 22px; font-size: .93rem; }
.nav-links a { opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav-links .menu-cta { display: none; opacity: 1; }
.nav-cta { padding: 9px 18px; font-size: .92rem; }
.menu-btn { display: none; background: none; border: 0; color: #1a3c6c; padding: 8px; cursor: pointer; }

/* Hero */
.hero {
  background: radial-gradient(1100px 480px at 85% -10%, #2a5a96 0%, transparent 60%), var(--navy-deep);
  color: #fff; padding: 72px 0 96px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: #ffb35c; white-space: nowrap; }
.hero-lead { font-size: 1.1rem; opacity: .85; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.triage-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.triage-legend a {
  display: inline-flex; align-items: center; gap: 8px; font-size: .88rem;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
}
.triage-legend a:hover { background: rgba(255,255,255,.14); }
.license-row { margin-top: 18px; font-size: .82rem; opacity: .7; }

.monitor {
  background: #0a1c33; border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.monitor-top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; opacity: .75; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t1); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ecg { margin: 14px 0 18px; height: 90px; width: 100%; }
.ecg path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ecg .trace { stroke: #ff6b6f; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3.2s ease-out forwards; }
.ecg .grow { stroke: var(--blue); stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.8s 2.4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vital { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; }
.vital-label { font-size: .82rem; opacity: .7; display: flex; justify-content: space-between; align-items: center; }
.vital-val { font-size: 1.5rem; font-weight: 700; margin-top: 2px; }
.vital-val small { font-size: .8rem; font-weight: 500; opacity: .6; }
.bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; }
.monitor-note { font-size: .78rem; opacity: .6; margin-top: 14px; }

/* Triage */
.triage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.lane-head { padding: 20px 22px 16px; border-top: 6px solid; }
.lane.t1 .lane-head { border-color: var(--t1); background: var(--t1-soft); }
.lane.t2 .lane-head { border-color: var(--t2); background: var(--t2-soft); }
.lane.t3 .lane-head { border-color: var(--t3); background: var(--t3-soft); }
.lane-level { font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .06em; }
.lane.t1 .lane-level { color: var(--t1-ink); } .lane.t2 .lane-level { color: var(--t2-ink); } .lane.t3 .lane-level { color: var(--t3-ink); }
.lane-head h3 { font-size: 1.25rem; color: var(--heading); margin-top: 4px; }
.lane-room { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.lane-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .86rem; margin-top: 12px; }
.lane-meta dt { color: var(--muted); }
.lane-meta dd { margin: 0; font-weight: 600; color: var(--heading); }
.symptoms { padding: 10px 22px 20px; display: grid; gap: 2px; }
.sym { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; cursor: pointer; font-size: .96rem; border-bottom: 1px dashed var(--line); }
.sym:last-child { border-bottom: 0; }
.sym input { width: 19px; height: 19px; margin: 3px 0 0; flex-shrink: 0; }
.lane.t1 .sym input { accent-color: var(--t1); }
.lane.t2 .sym input { accent-color: var(--t2); }
.lane.t3 .sym input { accent-color: var(--t3); }

.triage-result {
  margin-top: 22px; border-radius: var(--radius); padding: 24px 26px; color: #fff;
  background: var(--navy); display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center;
  border-left: 8px solid rgba(255,255,255,.25); transition: border-color .3s ease;
}
.triage-result.lv1 { border-left-color: var(--t1); }
.triage-result.lv2 { border-left-color: var(--t2); }
.triage-result.lv3 { border-left-color: var(--t3); }
.tr-tag { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; opacity: .75; }
.tr-title { font-size: 1.35rem; font-weight: 700; margin-top: 2px; }
.tr-next { margin-top: 6px; color: rgba(255,255,255,.85); }
.tr-depts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tr-depts span { font-size: .82rem; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }

/* WealthxHealth 24hrs. definition */
.define { background: var(--surface); border-bottom: 1px solid var(--line); }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: clamp(1.7rem, 4.4vw, 2.8rem); font-weight: 700; color: var(--heading); margin-top: 16px; line-height: 1.2; }
.formula .x { color: var(--orange); }
.formula .eq { color: var(--muted); font-weight: 500; }
.formula .res { font-size: .62em; }
.formula .hrs { font-family: var(--mono); font-size: .5em; background: var(--t1); color: #fff; padding: 4px 14px; border-radius: 99px; }
.formula-note { color: var(--muted); margin-top: 14px; max-width: 760px; font-size: 1.03rem; }
.formula-note b { color: var(--heading); }
.define-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.def { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--bg); }
.def.w { border-top: 5px solid var(--orange); }
.def.h { border-top: 5px solid var(--t3); }
.def.t { border-top: 5px solid var(--t1); }
.def .k { font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.def h3 { font-size: 1.35rem; color: var(--heading); margin: 4px 0 8px; }
.def h3 span { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.def p { color: var(--muted); font-size: .95rem; }

/* Journey: colored floor line like a hospital corridor */
.journey { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.route { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.route::before {
  content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--t1) 0 25%, var(--orange) 25% 50%, var(--blue) 50% 75%, var(--t3) 75% 100%);
  opacity: .9;
}
.stop { text-align: center; padding: 0 14px; position: relative; }
.stop-num {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--surface); border: 4px solid; font-family: var(--mono); font-weight: 600; font-size: 1.15rem;
  color: var(--heading); position: relative; z-index: 1;
}
.stop:nth-child(1) .stop-num { border-color: var(--t1); }
.stop:nth-child(2) .stop-num { border-color: var(--orange); }
.stop:nth-child(3) .stop-num { border-color: var(--blue); }
.stop:nth-child(4) .stop-num { border-color: var(--t3); }
.stop h3 { font-size: 1.2rem; color: var(--heading); }
.stop h3 small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.stop p { color: var(--muted); margin-top: 10px; font-size: .95rem; }

/* Doctor team */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative;
}
.room-plate {
  position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: .78rem; font-weight: 600;
  background: var(--navy); color: #fff; padding: 3px 9px; border-radius: 6px;
}
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--icon-bg); color: var(--icon-fg); margin-bottom: 16px;
}
.doc-head { display: flex; gap: 14px; align-items: center; padding-right: 64px; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--icon-bg); color: var(--icon-fg); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--icon-bg);
}
.avatar.o { background: var(--t2-soft); color: var(--t2-ink); box-shadow: 0 0 0 2px var(--t2-soft); }
.avatar.g { background: var(--t3-soft); color: var(--t3-ink); box-shadow: 0 0 0 2px var(--t3-soft); }
.doc h3 { font-size: 1.14rem; color: var(--heading); }
.doc .spec { font-size: .86rem; color: var(--muted); }
.doc .care { margin: 14px 0 16px; font-size: .94rem; }
.tip {
  margin-top: auto; background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: .9rem;
}
.tip b { display: block; font-size: .76rem; letter-spacing: .04em; color: var(--accent-ink); margin-bottom: 2px; }
.doc .goto { margin-top: 12px; font-size: .86rem; font-weight: 600; color: var(--accent-ink); }
.badge-lic { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--t3-ink); background: var(--t3-soft); padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }

/* Pharmacy: medicine labels */
.pharmacy { background: var(--navy-deep); color: #fff; }
.pharmacy h2 { color: #fff; }
.pharmacy .section-head p { color: rgba(255,255,255,.72); }
.rx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rx-label {
  background: #fffdf8; color: #1b2533; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.3); display: flex; flex-direction: column;
}
.rx-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: #fff; }
.rx-label:nth-child(1) .rx-top { background: var(--navy); }
.rx-label:nth-child(2) .rx-top { background: #0b7fb3; }
.rx-label:nth-child(3) .rx-top { background: #b86a0c; }
.rx-symbol { font-family: Georgia, serif; font-size: 2.1rem; line-height: 1; font-weight: 700; }
.rx-name { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.rx-name small { display: block; font-size: .8rem; font-weight: 500; opacity: .8; }
.rx-body { padding: 18px 20px 8px; display: grid; gap: 12px; font-size: .92rem; }
.rx-row dt { font-size: .76rem; font-weight: 600; color: #6b7685; letter-spacing: .04em; }
.rx-row dd { margin: 2px 0 0; }
.rx-levels { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.rx-levels span { display: inline-flex; align-items: center; gap: 5px; }
.rx-warn { background: #fdecec; color: #a32025; border-radius: 8px; padding: 10px 12px; font-size: .86rem; }
.rx-warn b { display: block; font-size: .76rem; letter-spacing: .04em; }
.rx-foot {
  margin-top: auto; border-top: 2px dashed #d6dbe2; padding: 12px 20px; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .74rem; color: #6b7685;
}
.rx-foot a { color: #b35c00; font-family: "IBM Plex Sans Thai", sans-serif; font-weight: 600; font-size: .85rem; }
.pharmacy-note { margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: rgba(10,159,220,.12); border: 1px solid rgba(10,159,220,.4); font-size: .96rem; color: rgba(255,255,255,.9); }
.pharmacy-note b { color: #7fd3f7; }

/* Treatment plans */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 5px solid; position: relative; }
.plan.t1 { border-top-color: var(--t1); } .plan.t2 { border-top-color: var(--t2); }
.plan.ck { border-top-color: var(--blue); } .plan.t3 { border-top-color: var(--t3); }
.plan.ck::after {
  content: "เริ่มต้นที่นี่"; position: absolute; top: -14px; right: 18px; background: var(--blue); color: #fff;
  font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 99px;
}
.plan .code { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.plan h3 { font-size: 1.15rem; color: var(--heading); margin: 4px 0 8px; }
.plan p { color: var(--muted); font-size: .93rem; }
.plan .dur { margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--heading); display: flex; gap: 8px; align-items: center; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.trust-item { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.trust-item h3 { font-size: 1.02rem; color: var(--heading); margin: 12px 0 6px; }
.trust-item p { font-size: .92rem; color: var(--muted); }
.trust-item .icon { margin-bottom: 0; background: var(--t3-soft); color: var(--t3-ink); }

/* Articles */
.knowledge { background: var(--surface); border-top: 1px solid var(--line); }
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.article .thumb { height: 120px; position: relative; background: linear-gradient(135deg, #24508c, #12294a); }
.article:nth-child(2) .thumb { background: linear-gradient(135deg, #f7941d, #b86a0c); }
.article:nth-child(3) .thumb { background: linear-gradient(135deg, #0a9fdc, #0b6b9a); }
.article .thumb span { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: .8rem; font-weight: 600; background: rgba(0,0,0,.25); padding: 3px 10px; border-radius: 99px; }
.article-body { padding: 20px; }
.article h3 { font-size: 1.05rem; color: var(--heading); }
.article p { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: none; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,.78); margin-top: 14px; font-size: 1.05rem; }
.channels { display: grid; gap: 12px; margin-top: 28px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.channel .ch { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.channel small { display: block; opacity: .65; font-size: .82rem; }
.channel.urgent { border-color: rgba(229,72,77,.6); background: rgba(229,72,77,.12); }
form.lead-form { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 14px; }
.lead-form h3 { color: var(--heading); font-size: 1.2rem; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.level-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.level-pick label { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: .86rem; cursor: pointer; }
.level-pick input { accent-color: var(--navy); margin: 0; }
.consent { display: flex; gap: 10px; font-size: .84rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--navy); }
.form-msg { font-size: .9rem; color: var(--t3-ink); font-weight: 600; display: none; }

/* Floating ER button */
.er-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  background: var(--t1); color: #fff; font-weight: 600; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(229,72,77,.4);
}
.er-float::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: ping 1.6s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Footer */
footer { background: #081626; color: rgba(255,255,255,.7); padding: 56px 0 28px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; }
.foot-logo img { height: 72px; width: auto; }
footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a:hover { color: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .8rem; color: rgba(255,255,255,.5); display: grid; gap: 8px; }

/* Responsive */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; padding: 16px 20px 24px; gap: 14px; border-top: 1px solid #e3e8ee;
    box-shadow: 0 12px 24px rgba(13,36,64,.12);
  }
  .nav-links.open .menu-cta { display: inline-flex; margin-top: 6px; }
}
@media (max-width: 1020px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .triage-grid, .rx-grid, .define-grid { grid-template-columns: 1fr; }
  .doc-grid, .plan-grid, .trust-grid, .route { grid-template-columns: repeat(2, 1fr); }
  .route { gap: 36px 0; }
  .route::before { display: none; }
  .articles { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .nav-cta { display: none; }
  .logo img { height: 48px; }
  .hero { padding: 48px 0 64px; }
  .doc-grid, .plan-grid, .trust-grid, .route, .foot-grid, .row-2 { grid-template-columns: 1fr; }
  .level-pick { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .triage-result { grid-template-columns: 1fr; }
  .triage-result .btn { width: 100%; }
  .er-float { right: 12px; bottom: 12px; padding: 10px 14px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ecg .trace, .ecg .grow { animation: none; stroke-dashoffset: 0; }
  .live::before, .er-float::before { animation: none; }
}

/* Center switcher: 3 centers of the ER hospital */
.centers { background: var(--navy-deep); color: rgba(255,255,255,.75); font-size: .84rem; }
.centers-row { display: flex; align-items: stretch; gap: 4px; height: 38px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.centers-row::-webkit-scrollbar { display: none; }
.centers-label { font-family: var(--mono); font-weight: 600; color: #fff; margin-right: auto; padding-right: 16px; display: flex; align-items: center; }
.centers a { padding: 0 12px; display: flex; align-items: center; gap: 7px; border-bottom: 3px solid transparent; }
.centers a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.centers a:hover { color: #fff; }
.c-biz::before { background: var(--orange); }
.c-health::before { background: var(--t3); }
.c-prop::before { background: var(--blue); }
.centers a.c-biz[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }
.centers a.c-health[aria-current="page"] { color: #fff; border-bottom-color: var(--t3); }
.centers a.c-prop[aria-current="page"] { color: #fff; border-bottom-color: var(--blue); }

/* Hospital map: building cards */
.bld-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bld { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.bld-top { padding: 22px; color: #fff; }
.bld.biz .bld-top { background: linear-gradient(135deg, #1a3c6c, #12294a); }
.bld.health .bld-top { background: linear-gradient(135deg, #12a594, #0b6b60); }
.bld.prop .bld-top { background: linear-gradient(135deg, #0a9fdc, #0b6b9a); }
.bld-code { font-family: var(--mono); font-size: .78rem; opacity: .85; letter-spacing: .06em; }
.bld-top h3 { font-size: 1.3rem; margin-top: 4px; }
.bld-top p { opacity: .88; font-size: .93rem; margin-top: 6px; }
.bld-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bld-for { font-size: .85rem; color: var(--muted); }
.bld-body ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .93rem; }
.bld-body li::before { content: "•"; color: var(--orange); margin-right: 8px; }
.bld .goto { margin-top: auto; font-weight: 600; color: var(--accent-ink); }
.bld-route { margin-top: 22px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line); font-size: .95rem; color: var(--muted); }
.bld-route b { color: var(--heading); }

/* Self-check tools and calculators */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tool.wide { grid-column: 1 / -1; }
.tool h3 { color: var(--heading); font-size: 1.2rem; }
.tool .hint { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.tool-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.tool-out { margin-top: 18px; background: var(--navy); color: #fff; border-radius: 12px; padding: 18px 20px; }
.tool-out .label { font-size: .85rem; opacity: .75; }
.tool-out .big { font-size: 1.7rem; font-weight: 700; color: #ffb35c; line-height: 1.3; }
.tool-out .row { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.tool-out .row:last-of-type { border-bottom: 0; }
.tool-out .note { font-size: .8rem; opacity: .7; margin-top: 10px; }
.xray { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.checks-title { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-top: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 6px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .94rem; cursor: pointer; }
.checks input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--t3); flex-shrink: 0; }
.gaps { display: grid; gap: 8px; margin-top: 12px; }
.gap { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; background: rgba(255,255,255,.06); border-radius: 8px; padding: 10px 12px; }
.gap .dot { margin-top: 7px; }
.gap b { color: #fff; }

/* Property listings */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filters select { font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.listing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.listing .ph { height: 150px; position: relative; display: grid; place-items: center; color: var(--muted); font-size: .85rem; background: repeating-linear-gradient(135deg, var(--icon-bg) 0 14px, var(--bg) 14px 28px); }
.listing .sample { position: absolute; top: 12px; left: 12px; background: var(--t2); color: var(--navy-deep); font-size: .74rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.listing-body { padding: 16px 18px; }
.listing .price { font-size: 1.2rem; font-weight: 700; color: var(--heading); }
.listing .meta { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.listing .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.listing .tags span { font-size: .76rem; background: var(--bg); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; }
.list-empty { margin-top: 18px; padding: 16px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .95rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1020px) {
  .bld-grid, .tool-grid, .xray { grid-template-columns: 1fr; }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .centers-label { display: none; }
  .centers { font-size: .76rem; }
  .centers-row { gap: 0; padding: 0 6px; }
  .centers a { padding: 0 7px; gap: 5px; }
  .tool-fields, .checks, .list-grid { grid-template-columns: 1fr; }
}

/* Life Safety 101: protection pyramid + first-aid kit */
.life101 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.pyramid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.layer {
  border-radius: 8px; padding: 9px 12px; text-align: center; background: var(--surface);
  border: 1.5px dashed var(--line); color: var(--muted); font-size: .8rem;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.layer b { display: block; font-size: .98rem; color: var(--heading); }
.layer[data-layer="6"] { width: 50%; } .layer[data-layer="5"] { width: 60%; } .layer[data-layer="4"] { width: 70%; }
.layer[data-layer="3"] { width: 80%; } .layer[data-layer="2"] { width: 90%; } .layer[data-layer="1"] { width: 100%; }
.layer.part { border-style: solid; border-color: var(--t3); background: var(--t3-soft); }
.layer.full { border-style: solid; color: rgba(255,255,255,.88); }
.layer.full b { color: #fff; }
.layer.full[data-layer="1"] { background: #0b7d70; border-color: #0b7d70; }
.layer.full[data-layer="2"] { background: #12a594; border-color: #12a594; }
.layer.full[data-layer="3"] { background: #0a9fdc; border-color: #0a9fdc; }
.layer.full[data-layer="4"] { background: #24508c; border-color: #24508c; }
.layer.full[data-layer="5"] { background: #f7941d; border-color: #f7941d; color: rgba(18,41,74,.85); }
.layer.full[data-layer="5"] b { color: #12294a; }
.layer.full[data-layer="6"] { background: #b86a0c; border-color: #b86a0c; }
.min-line { width: 100%; display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: .78rem; font-weight: 600; color: var(--t1-ink); font-family: var(--mono); white-space: nowrap; }
.min-line::before, .min-line::after { content: ""; flex: 1; border-top: 2px dashed var(--t1); }
.pyramid-cap { margin-top: 12px; font-size: .88rem; color: var(--muted); text-align: center; }
.kit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.kit h3 { color: var(--heading); font-size: 1.2rem; }
.kit .hint { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.kit-list { margin-top: 10px; }
.kit-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; cursor: pointer; }
.kit-item:last-child { border-bottom: 0; }
.kit-item input { accent-color: var(--t3); width: 19px; height: 19px; margin: 3px 0 0; flex-shrink: 0; }
.kit-item .lv { font-family: var(--mono); font-size: .72rem; font-weight: 600; color: var(--muted); margin-left: auto; padding-left: 8px; white-space: nowrap; }
.kit-item .lv.min { color: var(--t1-ink); }
.kit .tool-out .bar { height: 8px; margin: 10px 0 4px; }
.kit .tool-out .bar span { transition: width .4s ease; }

/* Life stages */
.stages-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.stage-tab { font: inherit; font-size: .92rem; padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.stage-tab small { font-family: var(--mono); font-size: .74rem; opacity: .7; margin-left: 4px; }
.stage-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.stage { display: none; }
.stage.active { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.stage-age { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.stage h3 { font-size: 1.45rem; color: var(--heading); margin-top: 2px; }
.stage .focus { margin-top: 8px; color: var(--muted); }
.stage .tip { margin-top: 16px; }
.stage .goto { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; color: var(--accent-ink); }
.stage ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; align-content: start; }
.stage li { counter-increment: s; display: flex; gap: 12px; font-size: .96rem; align-items: flex-start; }
.stage li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--t3-soft); color: var(--t3-ink); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.life-events { margin-top: 20px; padding: 16px 20px; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--surface); font-size: .95rem; color: var(--muted); }
.life-events b { color: var(--heading); }

/* Myths vs facts */
.myth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.myth { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.myth-num { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.myth h3 { font-size: 1.12rem; color: var(--heading); }
.verdict { border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.verdict b { display: block; font-size: .74rem; letter-spacing: .04em; }
.verdict.no { background: var(--t1-soft); }
.verdict.no b { color: var(--t1-ink); }
.verdict.yes { background: var(--t3-soft); margin-top: auto; }
.verdict.yes b { color: var(--t3-ink); }

@media (max-width: 1020px) {
  .life101, .stage.active { grid-template-columns: 1fr; }
  .myth-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .myth-grid { grid-template-columns: 1fr; }
  .layer[data-layer="6"] { width: 62%; } .layer[data-layer="5"] { width: 70%; } .layer[data-layer="4"] { width: 78%; }
  .layer[data-layer="3"] { width: 86%; } .layer[data-layer="2"] { width: 93%; }
  .stage.active { padding: 20px; }
}

/* Hospital network */
.sub-h { font-size: 1.15rem; color: var(--heading); margin: 8px 0 14px; }
.lookup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.lookup { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; transition: border-color .2s ease; }
.lookup:hover { border-color: var(--blue); }
.lookup .hot { font-family: var(--mono); font-weight: 600; font-size: 1.02rem; color: var(--t1-ink); background: var(--t1-soft); border-radius: 8px; padding: 6px 8px; min-width: 64px; text-align: center; flex-shrink: 0; }
.lookup .hot.none { background: var(--icon-bg); color: var(--icon-fg); font-family: inherit; font-size: .85rem; }
.lookup h4 { margin: 0; font-size: .98rem; color: var(--heading); }
.lookup p { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.lookup .ext { font-size: .8rem; font-weight: 600; color: var(--accent-ink); margin-top: 6px; display: inline-block; }
.hosp-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.hosp-tools input, .hosp-tools select { font: inherit; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.hosp-tools input { flex: 1 1 260px; }
.hosp-count { font-size: .88rem; color: var(--muted); margin: 12px 0; }
.hosp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hosp { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.hosp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; }
.hosp-type { font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.hosp-type.private { background: var(--t2-soft); color: var(--t2-ink); }
.hosp-type.public { background: var(--t3-soft); color: var(--t3-ink); }
.hosp-type.uni { background: var(--icon-bg); color: var(--icon-fg); }
.hosp-prov { color: var(--muted); }
.hosp h4 { margin: 4px 0 0; font-size: 1rem; color: var(--heading); line-height: 1.35; }
.hosp-en { font-size: .8rem; color: var(--muted); }
.hosp-rooms { font-size: .85rem; color: var(--muted); padding: 8px 10px; background: var(--bg); border-radius: 8px; margin-top: 4px; }
.hosp-rooms summary { cursor: pointer; color: var(--heading); font-weight: 600; }
.hosp-rooms table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: .84rem; }
.hosp-rooms th, .hosp-rooms td { padding: 4px 0; border-bottom: 1px dashed var(--line); text-align: left; }
.hosp-links { display: flex; gap: 14px; margin-top: auto; padding-top: 6px; font-size: .86rem; font-weight: 600; }
.hosp-links a { color: var(--accent-ink); }
.hosp-links .off { color: var(--muted); font-weight: 500; }
.hosp-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 24px; border: 1.5px dashed var(--line); border-radius: 12px; }
.hosp-disclaimer { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.partner { margin-top: 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; background: var(--navy-deep); color: #fff; border-radius: 18px; padding: 32px; }
.partner > div > h3 { font-size: 1.5rem; }
.partner > div > p { color: rgba(255,255,255,.8); margin-top: 10px; }
.partner ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; color: rgba(255,255,255,.9); }
.partner li::before { content: "+"; color: var(--orange); font-weight: 700; margin-right: 8px; }
.share-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .88rem; }
.share-opts label { display: flex; gap: 8px; align-items: center; font-weight: 400; }

@media (max-width: 1020px) {
  .lookup-grid, .hosp-grid { grid-template-columns: repeat(2, 1fr); }
  .partner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lookup-grid, .hosp-grid, .share-opts { grid-template-columns: 1fr; }
  .partner { padding: 22px; }
}

.hosp-more { text-align: center; margin-top: 18px; }
.hosp-more .btn[hidden] { display: none; }

/* Knowledge hub link in the center switcher */
.c-know::before { background: #fff; }
.centers a.c-know[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

/* Sub-navigation inside a center (sticks under the header) */
.subnav { position: sticky; top: 76px; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav-row { display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.subnav-row::-webkit-scrollbar { display: none; }
.subnav a { padding: 12px 14px; font-size: .92rem; color: var(--muted); border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--heading); }
.subnav a[aria-current="page"] { color: var(--heading); font-weight: 600; border-bottom-color: var(--t3); }
html:has(.subnav) { scroll-padding-top: 130px; }

/* Compact hero for sub-pages */
.hero.mini { padding: 40px 0 48px; }
.hero.mini h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 12px; }
.hero.mini .hero-actions { margin-top: 22px; }
.crumbs { font-size: .86rem; color: rgba(255,255,255,.72); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* Room tiles: entry points to sub-pages */
.room-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.room-tile {
  display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.room-tile:hover { transform: translateY(-2px); border-color: var(--t3); }
.room-body { display: grid; gap: 3px; flex: 1; }
.room-body b { font-size: 1.12rem; color: var(--heading); }
.room-body > span { color: var(--muted); font-size: .93rem; }
.room-body small { font-family: var(--mono); font-size: .76rem; color: var(--t3-ink); font-weight: 600; }
.room-go { font-size: 1.4rem; color: var(--accent-ink); }
.room-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Article cards fed by articles.json */
.article .thumb.cat-business, .featured .thumb.cat-business { background: linear-gradient(135deg, #24508c, #12294a); }
.article .thumb.cat-health, .featured .thumb.cat-health { background: linear-gradient(135deg, #12a594, #0b6b60); }
.article .thumb.cat-property, .featured .thumb.cat-property { background: linear-gradient(135deg, #0a9fdc, #0b6b9a); }
.article .thumb.cat-news, .featured .thumb.cat-news { background: linear-gradient(135deg, #f7941d, #b86a0c); }
.article .thumb .new { left: auto; right: 14px; top: 14px; bottom: auto; background: var(--t1); }
.a-meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-top: 10px; }
.articles-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* Knowledge hub */
.hub-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.chip { font: inherit; font-size: .9rem; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hub-tools input { font: inherit; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); flex: 1 1 220px; margin-left: auto; max-width: 340px; }
.featured { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 22px; }
.featured .thumb { min-height: 240px; position: relative; padding: 26px; display: flex; align-items: flex-end; color: #fff; }
.featured .thumb b { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; }
.featured-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.featured-body p { color: var(--muted); }
.featured-body .btn { align-self: flex-start; margin-top: auto; }
.label-pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--icon-bg); color: var(--icon-fg); }
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.source { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: .93rem; }
.source b { color: var(--heading); display: block; }
.source small { color: var(--muted); }
.source .ext { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }

/* Article page */
.article-page { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.article-head { padding: 44px 0 28px; }
.article-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); color: var(--heading); margin: 12px 0; }
.article-head .lead { font-size: 1.12rem; color: var(--muted); }
.article-head .a-meta { font-size: .82rem; margin-top: 14px; }
.prose { font-size: 1.06rem; line-height: 1.85; }
.prose h2 { font-size: 1.35rem; color: var(--heading); margin: 30px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; display: grid; gap: 6px; }
.prose .box { margin: 20px 0; padding: 16px 18px; border-radius: 12px; background: var(--t3-soft); border-left: 4px solid var(--t3); font-size: 1rem; }
.article-cta { margin: 32px 0; padding: 22px 24px; border-radius: var(--radius); background: var(--navy); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.article-cta p { color: rgba(255,255,255,.85); }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .9rem; color: var(--muted); padding-bottom: 8px; }
.share button, .share a { font: inherit; font-size: .88rem; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.article-note { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }

@media (max-width: 1020px) {
  .featured { grid-template-columns: 1fr; }
  .sources { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .room-tiles, .sources { grid-template-columns: 1fr; }
  .subnav a { padding: 11px 10px; font-size: .86rem; }
  .hub-tools input { margin-left: 0; max-width: none; }
  .article-page { padding: 0 16px; }
}

/* LAB: links to the in-depth check-up tools */
.room-tiles.three { grid-template-columns: repeat(3, 1fr); }
.room-tiles.three .room-tile { align-items: flex-start; }
@media (max-width: 1020px) { .room-tiles.three { grid-template-columns: 1fr; } }

/* FAQ (rendered by tools/build_site.py from assets/seo.json) */
.faq-list { display: grid; gap: 10px; max-width: 880px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-ink); font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .ans { padding: 0 20px 18px; color: var(--muted); }
.faq-item .ans a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Province hospital pages */
.prov-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.prov-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; min-width: 150px; }
.prov-stats b { display: block; font-size: 1.8rem; color: var(--heading); line-height: 1.2; }
.prov-stats span { font-size: .88rem; color: var(--muted); }
.prov-h2 { font-size: 1.35rem; color: var(--heading); margin: 30px 0 14px; }
.prov-h2 small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.hosp h3.hosp-name { margin: 4px 0 0; font-size: 1rem; color: var(--heading); line-height: 1.35; }
.lookup .lk { display: block; font-size: .98rem; color: var(--heading); }
.prov-near { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.prov-near a { color: var(--accent-ink); }
.prov-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prov-region { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.prov-region h4 { margin: 0 0 10px; color: var(--heading); font-size: 1rem; }
.prov-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; }
.prov-links a { color: var(--accent-ink); }
.prov-links small { color: var(--muted); font-size: .78rem; }
@media (max-width: 1020px) { .prov-index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .prov-index { grid-template-columns: 1fr; } .prov-stats div { min-width: calc(50% - 6px); } }

/* Insurance guide (insurance-guide.html, built from assets/insurance.json) */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.principle { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--t3); border-radius: 12px; padding: 18px; }
.principle b { display: block; color: var(--heading); font-size: 1.02rem; }
.principle p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-nav a { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-size: .92rem; color: var(--heading); }
.guide-nav a:hover { border-color: var(--t3); }
.guide-nav small { color: var(--muted); font-family: var(--mono); margin-left: 2px; }
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.persona b { color: var(--heading); font-size: 1.08rem; }
.persona > span { color: var(--muted); font-size: .92rem; }
.persona-links { display: grid; gap: 6px; margin-top: 8px; font-size: .92rem; }
.persona-links a { color: var(--accent-ink); font-weight: 600; }
.persona-links a::before { content: "→ "; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.risk-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .94rem; }
.risk-table th { text-align: left; font-size: .8rem; letter-spacing: .04em; color: var(--muted); background: var(--bg); padding: 12px 16px; }
.risk-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.risk-table td:first-child { font-weight: 600; color: var(--heading); }
.risk-table td:nth-child(2) a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.risk-table td:last-child { color: var(--muted); }
.ins-group { scroll-margin-top: 120px; }
.ins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ins-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); scroll-margin-top: 130px; display: flex; flex-direction: column; }
.ins-card:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,148,29,.25); }
.ins-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ins-head h3 { color: var(--heading); font-size: 1.18rem; }
.ins-head .en { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.ins-card .what { margin-top: 8px; }
.ins-card dl { display: grid; gap: 10px; margin: 14px 0 14px; }
.ins-card dt { font-size: .76rem; font-weight: 600; letter-spacing: .04em; color: var(--t3-ink); }
.ins-card dd { margin: 2px 0 0; font-size: .94rem; }
.ins-card dd ul { margin: 2px 0 0; padding-left: 1.2em; display: grid; gap: 3px; }
.ins-card dd a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }
.ins-card .watch { margin-top: auto; background: var(--t2-soft); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.ins-card .watch b { display: block; font-size: .74rem; letter-spacing: .04em; color: var(--t2-ink); }
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.glossary div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.glossary dt { font-weight: 600; color: var(--heading); }
.glossary dd { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 1020px) {
  .principles, .persona-grid { grid-template-columns: 1fr 1fr; }
  .ins-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .principles, .persona-grid, .glossary { grid-template-columns: 1fr; }
}

/* Insurer documents (insurance-docs.html and insurance/*.html, built from assets/insurance-docs.json) */
.doc-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.doc-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 16px; min-width: 120px; }
.doc-stats b { display: block; font-family: var(--mono); font-size: 1.5rem; color: #fff; line-height: 1.2; }
.doc-stats span { font-size: .85rem; color: rgba(255,255,255,.8); }
.doc-prep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prep-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--t3); border-radius: 12px; padding: 18px 20px; }
.prep-card.watch { border-top-color: var(--t2); }
.prep-card b { display: block; color: var(--heading); font-size: 1.05rem; margin-bottom: 8px; }
.prep-card ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .94rem; }
.section-head p a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc-tools { align-items: center; }
.doc-count { color: var(--muted); font-size: .9rem; }
.doc-jump { margin-bottom: 4px; }
.doc-group { margin-top: 26px; scroll-margin-top: 120px; }
.co-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.co-head h4 { color: var(--heading); font-size: 1.05rem; margin: 0; }
.co-head span { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.co-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.co-card li { display: grid; gap: 3px; font-size: .92rem; line-height: 1.45; }
.co-card li a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.co-card li a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.co-card li small { color: var(--muted); font-size: .78rem; }
.k { justify-self: start; font-size: .7rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--icon-bg); color: var(--icon-fg); }
.k-form, .k-both { background: var(--t3-soft); color: var(--t3-ink); }
.k-rate { background: var(--t2-soft); color: var(--t2-ink); }
.co-card details summary { cursor: pointer; color: var(--accent-ink); font-size: .88rem; font-weight: 600; }
.co-card details ul { margin-top: 10px; }
.co-folder { font-size: .85rem; color: var(--accent-ink); font-weight: 600; padding-top: 8px; border-top: 1px dashed var(--line); }
.doc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: st; }
.doc-steps li { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.doc-steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--mono); color: var(--accent-ink); font-weight: 700; }
.doc-steps b { color: var(--heading); }
.doc-steps span { color: var(--muted); font-size: .9rem; }
.doc-matrix { min-width: 980px; }
.doc-matrix th:not(:first-child), .doc-matrix td:not(:first-child) { text-align: center; }
.doc-matrix th a { color: var(--heading); text-decoration: underline; text-underline-offset: 3px; }
.doc-matrix td a { color: var(--accent-ink); font-weight: 600; font-family: var(--mono); }
.doc-matrix td:last-child { color: inherit; }
.doc-matrix td.nil { color: var(--line); }
.doc-matrix td:first-child { white-space: nowrap; }
.doc-matrix td:nth-child(2) a { text-decoration: none; }
.ins-card .doc-link { margin-top: 12px; font-size: .92rem; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1020px) {
  .co-grid, .doc-prep { grid-template-columns: 1fr 1fr; }
  .doc-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .co-grid, .doc-prep, .doc-steps { grid-template-columns: 1fr; }
  .doc-stats div { min-width: calc(33% - 7px); padding: 8px 12px; }
}
.co-official { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.co-official > a { font-size: .88rem; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.co-official small { color: var(--muted); font-size: .75rem; }
.co-card .op-list { display: flex; flex-wrap: wrap; gap: 6px; }
.co-card .op { display: inline; font-size: .8rem; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.co-card .op a { text-decoration: none; color: var(--ink); }
.doc-contacts td:nth-child(2) a, .doc-contacts td:nth-child(4) a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc-contacts td:last-child { color: var(--muted); white-space: nowrap; }
.doc-contacts td:nth-child(3) { font-family: var(--mono); white-space: nowrap; }

/* Critical illness (critical-illness.html, built from assets/critical-illness.json) */
.cite { font-size: .78rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.ci-nav a { font-size: .86rem; }
.ci-facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ci-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .9rem; line-height: 1.5; }
.ci-facts li b { font-family: var(--mono); font-size: 1.12rem; color: var(--heading); }
.ci-facts li span { color: var(--muted); }
.ci-ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ci-rank { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.ci-rank h4 { margin: 0 0 10px; color: var(--heading); font-size: 1rem; }
.ci-rank ol { margin: 0; padding-left: 1.3em; display: grid; gap: 7px; }
.ci-rank li { font-size: .93rem; }
.ci-rank li b { float: right; font-family: var(--mono); color: var(--accent-ink); }
.ci-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: cp; }
.ci-path li { counter-increment: cp; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.ci-path li::before { content: counter(cp); font-family: var(--mono); font-weight: 700; color: var(--blue); }
.ci-path b { color: var(--heading); }
.ci-path span { color: var(--muted); font-size: .9rem; }
.ci-tech { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .92rem; }
.ci-tech a { padding: 4px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--heading); font-size: .86rem; }
.ci-costs { min-width: 860px; }
.ci-costs td small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; font-weight: 400; }
.ci-costs td.num { font-family: var(--mono); font-weight: 600; color: var(--heading); white-space: nowrap; }
.risk-table.ci-costs td:last-child, .risk-table.ci-cov td:last-child { color: inherit; white-space: nowrap; }
.ci-costs td.asof, .ci-cov td.asof { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.risk-table.ci-costs td:nth-child(2) a { text-decoration: none; }
.pt { display: inline-block !important; margin-top: 4px; padding: 0 8px; border-radius: 99px; font-size: .7rem !important; font-weight: 600 !important; background: var(--icon-bg); color: var(--icon-fg) !important; }
.pt-private { background: var(--t2-soft); color: var(--t2-ink) !important; }
.pt-reference { background: var(--t3-soft); color: var(--t3-ink) !important; }
.ci-cov { min-width: 820px; }
.ci-cov td:first-child { white-space: nowrap; }
.ci-scen { margin-top: 16px; background: var(--navy); color: #fff; border-radius: 12px; padding: 16px 20px; }
.ci-scen ul { margin: 8px 0 10px; padding-left: 1.2em; display: grid; gap: 4px; font-size: .93rem; }
.ci-scen b { color: #ffb35c; }
.ci-scen > b { color: #fff; }
.ci-scen a { color: #ffb35c; font-weight: 600; text-decoration: underline; }
.ci-ins { margin-top: 14px; background: var(--t3-soft); border-radius: 12px; padding: 12px 16px; font-size: .94rem; }
.ci-ins b { display: block; font-size: .78rem; letter-spacing: .04em; color: var(--t3-ink); }
.ci-filter { flex-wrap: wrap; gap: 8px; }
.ci-parts { margin: 10px 0 0; padding-left: 1.2em; font-size: .85rem; opacity: .85; display: grid; gap: 3px; }
.ci-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ci-case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.ci-case .tag { justify-self: start; font-size: .7rem; font-weight: 600; padding: 1px 9px; border-radius: 99px; background: var(--t2-soft); color: var(--t2-ink); }
.ci-case h4 { margin: 0; color: var(--heading); }
.ci-case p { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.ci-case .row { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ci-case .row b { font-family: var(--mono); white-space: nowrap; }
.ci-case .row.gap { border-bottom: 0; font-weight: 600; color: var(--t1-ink); }
.ci-plan { grid-template-columns: repeat(3, 1fr); }
.ci-sources { font-size: .82rem; columns: 2; column-gap: 28px; padding-left: 1.4em; color: var(--muted); }
.ci-sources li { break-inside: avoid; margin-bottom: 4px; }
.ci-sources a { color: var(--muted); text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 1020px) {
  .ci-ranks, .ci-cases { grid-template-columns: 1fr; }
  .ci-path, .ci-plan { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ci-facts, .ci-path, .ci-plan { grid-template-columns: 1fr; }
  .ci-sources { columns: 1; }
}
.hero-see { margin-top: 10px; }
.hero-see a { color: #ffb35c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#ciForm .field { min-width: 0; }
#ciForm select { width: 100%; min-width: 0; text-overflow: ellipsis; }
@media (max-width: 640px) { #ciForm { grid-template-columns: 1fr; } }
.ci-costs td.per { white-space: nowrap; }
