/* St. Mary Health Fair — mobile-first, no framework.
   Palette: maroon from the printed guide, muted gold/green from the Coptic cross. */

/* ---------- Fonts (self-hosted, SIL OFL; see assets/fonts/LICENSE-*) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../assets/fonts/inter-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
  --brand: #7a1f1f;
  --brand-dark: #561313;
  --brand-tint: #f7ecea;
  --gold: #a9872f;
  --gold-soft: #e9d9a8;
  --green: #2f6b3a;
  --crimson: #c0392b;
  --cream: #f8f4ee;
  --cream-deep: #f1eae0;
  --surface: #ffffff;
  --text: #211a17;
  --muted: #5d5550;
  --line: #e4dbd0;
  --focus: #1a56db;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(62, 30, 20, .06), 0 12px 32px -18px rgba(62, 30, 20, .35);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --arabic: "Noto Naskh Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
  background-color: var(--cream);
  background-image:
    radial-gradient(60rem 26rem at 50% -8rem, rgba(122, 31, 31, .10), transparent 70%),
    url("../assets/pattern-cross.svg");
  background-repeat: no-repeat, repeat;
  min-height: 100vh;
}
html[lang="ar"] body { font-family: var(--arabic); font-size: 1.125rem; line-height: 1.8; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[lang="ar"] .ltr, html[lang="ar"] .num { font-family: var(--sans); }

img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--brand); }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-family: var(--arabic); letter-spacing: 0; line-height: 1.5; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin: .5rem 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: .9rem 0 0; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.brand-row { display: flex; align-items: center; gap: .85rem; }
.brand-row .logo { width: 72px; height: 64px; flex: none; filter: drop-shadow(0 2px 4px rgba(62, 30, 20, .12)); }
.brand-text { min-width: 0; flex: 1 1 auto; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); line-height: 1.3; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.hero h1 { font-size: 1.9rem; }
html[lang="ar"] .hero h1 { font-size: 1.7rem; line-height: 1.4; }
.hero .date { margin: .2rem 0 0; color: var(--muted); font-size: 1rem; font-weight: 600; }
.lang-btn {
  flex: none; min-height: 44px; min-width: 44px;
  padding: .4rem .95rem; border: 1.5px solid var(--brand); border-radius: 999px;
  background: var(--surface); color: var(--brand); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 1px 2px rgba(62, 30, 20, .08);
}
.lang-btn:hover { background: var(--brand); color: #fff; }
/* System Arabic font for the toggle label so the English page never downloads the Arabic web font */
.lang-btn[lang="ar"] { font-family: system-ui, -apple-system, "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", sans-serif; }
.lang-btn[lang="en"] { font-family: var(--sans); }

/* ECG trace under the hero: decorative only */
.ecg { display: block; width: 100%; height: 56px; margin: .9rem 0 .2rem; overflow: visible; }
.ecg path { fill: none; stroke: url(#ecg-grad); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .ecg path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: ecg-draw 2.4s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
  @keyframes ecg-draw { to { stroke-dashoffset: 0; } }
}

/* Ornament divider: thin gold rules around the Coptic cross */
.ornament { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.1rem 0 1.25rem; }
.ornament::before, .ornament::after { content: ""; flex: 1 1 auto; max-width: 9rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
html[dir="rtl"] .ornament::before { background: linear-gradient(90deg, var(--gold), transparent); }
html[dir="rtl"] .ornament::after { background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament img { width: 44px; height: 57px; mix-blend-mode: multiply; }
.ornament.small img { width: 30px; height: 39px; }

/* ---------- Home cards ---------- */
.lead { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; margin: 0 0 .9rem; color: var(--text); }
html[lang="ar"] .lead { font-family: var(--arabic); }
.cards { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .8rem; }
.card {
  position: relative; display: flex; align-items: center; gap: .9rem; min-height: 80px;
  padding: 1rem; padding-inline-start: 1.35rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 18px; bottom: 18px; width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--gold)); border-radius: 0 4px 4px 0;
}
html[dir="rtl"] .card::before { border-radius: 4px 0 0 4px; }
.card:hover { transform: translateY(-2px); border-color: var(--gold-soft); box-shadow: 0 2px 4px rgba(62, 30, 20, .08), 0 18px 40px -20px rgba(62, 30, 20, .45); }
.card:active { transform: translateY(0); }
.card .body { flex: 1 1 auto; min-width: 0; }
.card .t { display: block; font-weight: 700; font-size: 1.18rem; line-height: 1.25; color: var(--brand); }
.card .d { display: block; color: var(--muted); font-size: .93rem; margin-top: .25rem; line-height: 1.4; }
.card .go {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold-soft);
  display: grid; place-items: center; color: var(--brand); background: var(--cream);
  transition: background-color .12s, color .12s;
}
.card:hover .go { background: var(--brand); color: #fff; border-color: var(--brand); }
.card .go svg { width: 18px; height: 18px; }
html[dir="rtl"] .card .go svg { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; min-height: 56px; padding: .75rem 1.25rem; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 1.1rem; line-height: 1.2;
  border: 1.5px solid var(--brand); background: var(--brand); color: #fff;
  text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: 0 8px 20px -12px rgba(122, 31, 31, .7);
  transition: background-color .12s, transform .08s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand); border-color: var(--brand); }
.btn-row { display: grid; gap: .6rem; margin: .8rem 0; }
.btn svg { width: 1.3em; height: 1.3em; flex: none; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 1rem; }
.section-head { margin: 2.2rem 0 .6rem; }
.section-head .kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .25rem; }
html[lang="ar"] .section-head .kicker { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem; margin: .8rem 0; box-shadow: var(--shadow); }
.note { color: var(--muted); font-size: .95rem; }

/* ---------- CPR ---------- */
.big-hint { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: .25rem 0 .6rem; }
.steps { list-style: none; display: grid; gap: .8rem; margin: .5rem 0 1rem; padding: 0; }
.step { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem; box-shadow: var(--shadow); }
.step .n { flex: none; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.7rem; display: grid; place-items: center; box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1.5px var(--gold-soft); }
.step h3 { margin: .15rem 0 .3rem; font-size: 1.3rem; color: var(--brand); }
.step p { margin: 0; }

.video-wrap { margin: .8rem 0; }
.video {
  position: relative; display: grid; place-items: center; align-content: center; text-align: center; gap: .45rem;
  aspect-ratio: 16 / 9; min-height: 12rem; width: 100%; padding: 1rem;
  background: radial-gradient(70% 90% at 50% 100%, rgba(169, 135, 47, .28), transparent 60%), linear-gradient(135deg, #8a2525 0%, #3f0f0f 100%);
  border-radius: var(--radius); color: #fff; text-decoration: none; border: 0; cursor: pointer; font: inherit;
  box-shadow: var(--shadow); overflow: hidden;
}
.video::after { content: ""; position: absolute; inset: 0; background: url("../assets/pattern-cross.svg"); opacity: .9; mix-blend-mode: screen; pointer-events: none; }
.video > * { position: relative; z-index: 1; }
.video .play { width: 4.6rem; height: 4.6rem; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.video .play svg { width: 2.2rem; height: 2.2rem; margin-inline-start: .3rem; }
.video .vt { font-weight: 700; font-size: 1.1rem; }
.video .vs { font-size: .92rem; opacity: .9; }
.video-wrap iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 12rem; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

.metro { text-align: center; }
.pulse {
  width: 10rem; height: 10rem; border-radius: 50%; margin: .8rem auto;
  background: radial-gradient(circle at 50% 40%, #fff, var(--brand-tint));
  border: 5px solid var(--brand); box-shadow: 0 0 0 6px var(--surface), 0 0 0 7.5px var(--gold-soft);
  display: grid; place-items: center; color: var(--brand);
  transition: transform .07s ease-out, background-color .07s ease-out, color .07s;
}
.pulse svg { width: 3.4rem; height: 3.4rem; }
.pulse.beat { transform: scale(1.1); background: var(--brand); color: #fff; }
@media (prefers-reduced-motion: reduce) { .pulse.beat { transform: none; } }
.metro-controls { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .5rem 0; }
.metro-controls .btn { width: auto; min-width: 56px; font-size: 1.4rem; }
.metro-controls .bpm { font-size: 1.05rem; min-width: 9rem; }
.metro-controls .bpm strong { font-size: 1.7rem; font-family: var(--sans); color: var(--brand); }
.metro .btn-main { max-width: 20rem; margin: .5rem auto 0; font-size: 1.3rem; }
.metro .btn-main[aria-pressed="true"] { background: var(--surface); color: var(--crimson); border-color: var(--crimson); }

/* ---------- Footer ---------- */
.site-footer { margin: 2.5rem 0 2.5rem; color: var(--muted); font-size: .95rem; text-align: center; }
.site-footer p { margin: .4rem 0; }
.site-footer strong { color: var(--brand); }

/* ---------- Forms (calculator) ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field > label, .field > .label, fieldset legend { font-weight: 700; font-size: 1.05rem; }
.hint { color: var(--muted); font-size: .92rem; }
.input-row { display: flex; align-items: center; gap: .5rem; }
.input-row .unit { color: var(--muted); font-size: .95rem; white-space: nowrap; font-family: var(--sans); }
input[type="number"], input[type="text"], select {
  font: inherit; font-size: 1.15rem; min-height: 52px; padding: .5rem .75rem; width: 100%; max-width: 12rem;
  border: 1.5px solid #8f857c; border-radius: 12px; background: var(--surface); color: var(--text);
  font-family: var(--sans);
}
input[type="number"], input[type="text"] { direction: ltr; text-align: start; }
input[type="number"]:focus { border-color: var(--focus); }
input[aria-invalid="true"] { border-color: var(--crimson); background: #fff6f5; }
.error { color: #a12a1e; font-size: .95rem; font-weight: 600; display: none; }
.error.show { display: block; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: .35rem; }
.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg label {
  position: relative; flex: 1 1 7rem; display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 52px; padding: .5rem .9rem; border: 1.5px solid #8f857c; border-radius: 12px; background: var(--surface);
  font-weight: 600; cursor: pointer;
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.seg.small label { min-height: 44px; flex: 0 1 auto; padding: .35rem .8rem; font-size: .95rem; }
.inline-pair { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-pair input { max-width: 7rem; }
.computed { font-weight: 700; }

/* ---------- Results ---------- */
.results { margin-top: 1.25rem; }
.result-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.risk-main { text-align: center; padding: .5rem 0 .85rem; border-bottom: 1px solid var(--line); margin-bottom: .85rem; }
.risk-main .lbl { font-weight: 700; font-size: 1.1rem; }
.risk-main .sub { color: var(--muted); font-size: .95rem; }
.risk-main .val { font-family: var(--sans); font-weight: 800; font-size: 3.6rem; line-height: 1.05; color: var(--brand); letter-spacing: -.02em; }
.risk-main .val small { font-size: 1.6rem; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.risk { border-radius: 14px; padding: .75rem .85rem; background: var(--cream); border-inline-start: 6px solid var(--line); }
.risk .lbl { font-weight: 700; font-size: .98rem; line-height: 1.25; }
.risk .val { font-family: var(--sans); font-weight: 800; font-size: 1.9rem; line-height: 1.1; margin-top: .2rem; }
.risk .val small { font-size: 1rem; }
.cat { display: inline-block; margin-top: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.band-lower { border-color: #2e8b57; } .band-lower .cat { background: #dff2e6; color: #1b5e3a; }
.band-borderline { border-color: #d99a00; } .band-borderline .cat { background: #fff1c9; color: #6b4a00; }
.band-intermediate { border-color: #e07b1a; } .band-intermediate .cat { background: #fde4cf; color: #7a3b00; }
.band-high { border-color: #c0392b; } .band-high .cat { background: #fadbd8; color: #7a1f1f; }
.sentence { font-size: 1.15rem; margin: .9rem 0 .25rem; }
.sentence strong { font-family: var(--sans); color: var(--brand); }

.whatif { background: var(--brand-tint); border-radius: var(--radius); padding: 1.1rem; margin-top: 1rem; border: 1px solid #e8cfcb; }
.whatif h3 { margin-top: 0; color: var(--brand); font-size: 1.4rem; font-family: var(--serif); }
html[lang="ar"] .whatif h3 { font-family: var(--arabic); }
.toggles { display: grid; gap: .5rem; margin: .5rem 0; }
.toggle {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 56px; padding: .6rem .9rem;
  border: 1.5px solid #8f857c; border-radius: 14px; background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-align: start; cursor: pointer;
}
.toggle .box { flex: none; width: 1.6rem; height: 1.6rem; border: 2px solid #8f857c; border-radius: 6px; display: grid; place-items: center; background: #fff; }
.toggle .box svg { width: 1.1rem; height: 1.1rem; opacity: 0; }
.toggle[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.toggle[aria-pressed="true"] .box { background: #fff; border-color: #fff; }
.toggle[aria-pressed="true"] .box svg { opacity: 1; color: var(--brand); }
.toggle[disabled] { opacity: .55; cursor: not-allowed; }
.toggle .why { font-weight: 400; font-size: .9rem; color: inherit; opacity: .85; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; text-align: center; margin-top: .75rem; }
.compare .k { font-size: .95rem; color: var(--muted); }
.compare .v { font-family: var(--sans); font-weight: 800; font-size: 2.2rem; line-height: 1.1; }
.compare .v.now { color: var(--muted); }
.compare .v.then { color: #1b5e3a; }
.compare .v.then.worse { color: var(--crimson); }
.compare .arrow { width: 2rem; height: 2rem; color: var(--muted); }
html[dir="rtl"] .compare .arrow { transform: scaleX(-1); }
.compare-rows { display: grid; gap: .25rem; margin-top: .5rem; font-size: .98rem; }
.compare-rows div { display: flex; justify-content: space-between; gap: .5rem; }
.compare-rows .num { font-family: var(--sans); font-weight: 700; }

.disclaimer { background: var(--cream-deep); border-radius: 14px; padding: .85rem 1rem; margin-top: 1rem; font-size: .95rem; color: #3a322e; }
.age-msg { background: #fff1c9; border: 1.5px solid #d99a00; border-radius: 14px; padding: 1rem; font-weight: 600; color: #4a3300; }
.toast { position: fixed; inset-inline: 1rem; bottom: 1.25rem; background: #211a17; color: #fff; padding: .75rem 1rem; border-radius: 12px; text-align: center; opacity: 0; transform: translateY(.5rem); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 20; }
.toast.show { opacity: 1; transform: none; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem 0; font-weight: 600; text-decoration: none; }

@media (min-width: 560px) {
  .hero h1 { font-size: 2.3rem; }
  .brand-row .logo { width: 84px; height: 75px; }
  .btn-row.two { grid-template-columns: 1fr 1fr; }
  .card { padding: 1.15rem 1.25rem; }
}
@media print {
  .lang-btn, .skip, .toast, .btn-row, .ecg { display: none; }
  body { background: #fff; }
}

/* ---------- Provider directory ---------- */
.prov-filters { margin: .25rem 0 1rem; }
.prov-search {
  width: 100%; max-width: none; min-height: 52px; padding: .6rem .9rem; border: 1.5px solid #8f857c; border-radius: 14px;
  font: inherit; font-size: 1.05rem; background: var(--surface); color: var(--text);
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.chip {
  min-height: 40px; padding: .35rem .85rem; border-radius: 999px; border: 1.5px solid var(--gold-soft);
  background: var(--surface); color: var(--brand); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.prov-group { margin-top: 1.6rem; }
.prov-group-title { font-size: 1.4rem; margin: 0 0 .6rem; padding-bottom: .3rem; border-bottom: 2px solid var(--gold-soft); }
.prov-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.prov {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.05rem 1rem 1.3rem; box-shadow: var(--shadow);
}
html[dir="rtl"] .prov { padding: 1rem 1.3rem 1rem 1.05rem; }
.prov::before { content: ""; position: absolute; inset-inline-start: 0; top: 18px; bottom: 18px; width: 4px; background: linear-gradient(180deg, var(--brand), var(--gold)); border-radius: 0 4px 4px 0; }
html[dir="rtl"] .prov::before { border-radius: 4px 0 0 4px; }
.prov-name { margin: 0; font-size: 1.2rem; color: var(--brand); font-family: var(--sans); }
.prov-spec { margin: .15rem 0 0; font-weight: 600; }
.prov-sub { font-weight: 400; color: var(--muted); }
.prov-practice { margin: .1rem 0 0; color: var(--text); }
.prov-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .55rem 0 0; padding: 0; }
.tag { font-size: .85rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--cream-deep); color: #4a403a; }
.tag-new { background: #dff2e6; color: #1b5e3a; }
.tag-lang { background: var(--brand-tint); color: var(--brand); }
.prov-addr { margin: .6rem 0 0; color: var(--muted); font-size: .98rem; }
.prov-also { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.prov-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.act {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .45rem .9rem; border-radius: 12px;
  border: 1.5px solid var(--brand); color: var(--brand); background: var(--surface); text-decoration: none; font-weight: 700; font-size: .98rem;
}
.act:hover { background: var(--brand-tint); }
.act-call { background: var(--brand); color: #fff; }
.act-call:hover { background: var(--brand-dark); }
.act-host { font-weight: 400; font-size: .88rem; opacity: .85; }
.prov-more { margin-top: .6rem; font-size: .95rem; }
.prov-more summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: .3rem 0; }
.prov-more p { margin: .3rem 0 0; color: #3a322e; }
.prov-notes { margin: .5rem 0 0; font-size: .95rem; color: #3a322e; }
html[lang="ar"] .ltr { font-family: var(--sans); }
