/* EMOD App — scores + paediatric calculator styles, migrated from MADAR and mapped onto EMOD tokens */
.sc-gate { background: var(--amber-soft); border: 1px solid #f0dcb6; color: #6d5410; border-radius: 11px;
  padding: 11px 13px; font-size: 12.5px; line-height: 1.55; }
.sc-gate b { color: var(--amber); }
.sc-ok { background: var(--green-soft); border: 1px solid #bfe3cc; color: #14532a; border-radius: 11px;
  padding: 10px 13px; font-size: 12.5px; line-height: 1.55; }
.sc-ok b { color: var(--green); }
.sc-cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
  font-weight: 800; margin: 18px 0 8px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.sc-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.sc-card:hover { transform: translateY(-2px); border-color: var(--teal);
  box-shadow: 0 10px 24px -16px rgba(18,54,92,.5); }
.sc-card .n { font-weight: 750; font-size: 14px; color: var(--navy-ink); }
.sc-card .s { font-size: 11.5px; color: var(--slate); margin-top: 3px; line-height: 1.4; }
.sc-flag { position: absolute; top: 9px; inset-inline-end: 10px; font-size: 8.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #8a5d0c; background: #fdf0dc;
  padding: 2px 6px; border-radius: 999px; }
.sc-foot { font-size: 12px; color: var(--slate); margin-top: 20px; padding-top: 12px;
  border-top: 1px solid var(--line); line-height: 1.55; }

.sc-res { border-radius: 13px; padding: 15px 17px; margin-bottom: 14px; border: 1px solid var(--line);
  background: var(--card); border-inline-start-width: 5px; }
.sc-res .tot { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; }
.sc-res .tot i { font-style: normal; font-size: 17px; font-weight: 700; opacity: .6; }
.sc-res .lb { font-size: 15.5px; font-weight: 800; margin-top: 6px; }
.sc-res .mn { font-size: 13px; margin-top: 5px; line-height: 1.55; color: var(--ink); }
.sc-res.part { border-inline-start-color: var(--line); background: var(--grey-soft); }
.sc-res.part .lb { color: var(--slate); font-size: 14px; }
.sc-res.part .mn { color: var(--slate); }
.sc-res.good { border-inline-start-color: var(--green); background: var(--green-soft); }
.sc-res.good .tot, .sc-res.good .lb { color: var(--green); }
.sc-res.warn { border-inline-start-color: var(--amber); background: var(--amber-soft); }
.sc-res.warn .tot, .sc-res.warn .lb { color: var(--amber); }
.sc-res.bad  { border-inline-start-color: var(--red); background: var(--red-soft); }
.sc-res.bad .tot, .sc-res.bad .lb { color: var(--red); }
.sc-res.info { border-inline-start-color: var(--teal); background: var(--teal-soft); }
.sc-res.info .tot, .sc-res.info .lb { color: var(--teal-ink); }

.sc-items { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.sc-item { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sc-item:last-child { border-bottom: none; }
.sc-item .q { font-size: 13.5px; font-weight: 650; color: var(--navy-ink); margin-bottom: 8px; line-height: 1.45; }
.sc-item .q span { display: block; font-size: 11.5px; color: var(--slate); font-weight: 400; margin-top: 3px; }
.sc-item .opts { display: flex; gap: 7px; flex-wrap: wrap; }
.sc-item .opt { background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 11px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: background .12s, border-color .12s; }
.sc-item .opt:hover { border-color: var(--teal); }
.sc-item .opt i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--slate);
  font-variant-numeric: tabular-nums; }
.sc-item .opt.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sc-item .opt.on i { color: rgba(255,255,255,.75); }
.sc-num { display: flex; align-items: center; gap: 9px; }
.sc-num input { width: 130px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--navy-ink); background: var(--bg); }
.sc-num span { font-size: 12.5px; color: var(--slate); font-weight: 650; }
.sc-lines { margin-top: 11px; border-top: 1px solid rgba(0,0,0,.08); padding-top: 9px; }
.sc-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px;
  padding: 3px 0; align-items: baseline; }
.sc-lines span { color: var(--ink); }
.sc-lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-note { font-size: 12.5px; color: var(--slate); line-height: 1.6; background: var(--blue-soft);
  border-radius: 10px; padding: 11px 13px; margin-top: 14px; }
.sc-note b { color: var(--navy-ink); display: block; margin-bottom: 3px; }

/* ---- Paediatric Calculator (v6.94) — lives inside My Score ---- */
.sc-card.peds { grid-column: 1 / -1; background: linear-gradient(135deg, var(--navy-deep), var(--teal));
  border-color: transparent; color: #fff; display: flex; align-items: center; gap: 14px; padding: 15px 17px; }
.sc-card.peds .n, .sc-card.peds .s { color: #fff; }
.sc-card.peds .s { opacity: .85; }
.sc-card.peds .pd-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.pd-hero { background: linear-gradient(135deg, var(--navy-deep), var(--teal)); color: #fff; border-radius: 16px;
  padding: 16px 17px; margin-bottom: 12px; }
.pd-in { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 9px; }
.pd-in label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  opacity: .8; margin-bottom: 5px; }
.pd-in input { width: 100%; padding: 11px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 11px;
  background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 20px; font-weight: 800;
  font-variant-numeric: tabular-nums; -webkit-appearance: none; }
.pd-in input::placeholder { color: rgba(255,255,255,.5); font-weight: 600; font-size: 15px; }
.pd-in input:focus { outline: none; background: rgba(255,255,255,.22); border-color: #fff; }
.pd-in .or { grid-column: 1 / -1; font-size: 11px; opacity: .7; text-align: center; margin: -2px 0 -4px; letter-spacing: .08em; }
.pd-out { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.pd-chip { background: rgba(255,255,255,.14); border-radius: 12px; padding: 9px 12px; min-width: 96px; flex: 1 1 auto; }
.pd-chip .k { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; opacity: .75; font-weight: 800; }
.pd-chip .v { font-size: 20px; font-weight: 800; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pd-chip .v small { font-size: 12px; font-weight: 600; opacity: .8; margin-inline-start: 3px; }
.pd-chip .t { font-size: 11px; opacity: .8; margin-top: 2px; line-height: 1.35; }
.pd-chip.wt { flex: 2 1 160px; background: rgba(255,255,255,.22); }
.pd-chip .bro { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px;
  margin-inline-end: 6px; border: 1px solid rgba(255,255,255,.6); }
.pd-vit { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-vit div { background: rgba(255,255,255,.1); border-radius: 10px; padding: 7px 10px; }
.pd-vit b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.pd-vit span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; font-weight: 800; }
.pd-empty { margin-top: 12px; font-size: 13px; opacity: .85; line-height: 1.5; }
.pd-consider { background: var(--amber-soft); border: 1px solid #f0dcb6; border-radius: 12px; padding: 11px 13px;
  font-size: 12.5px; color: #6d5410; line-height: 1.55; margin-bottom: 12px; }
.pd-consider b { color: var(--amber); display: block; margin-bottom: 3px; }
.pd-consider ul { margin: 4px 0 0 18px; }
.pd-consider li { margin: 2px 0; }
.pd-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0;
  background: var(--bg); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pd-nav::-webkit-scrollbar { display: none; }
.pd-nav a { flex: none; text-decoration: none; border-radius: 999px; padding: 6px 12px; font-size: 12px;
  font-weight: 750; color: var(--navy-ink); background: var(--card); border: 1px solid var(--line); white-space: nowrap; }
.pd-nav a b { display: inline-block; width: 17px; height: 17px; border-radius: 50%; background: var(--navy);
  color: #fff; font-size: 10px; text-align: center; line-height: 17px; margin-inline-end: 6px; }
.pd-sec { margin: 16px 0 6px; display: flex; align-items: baseline; gap: 9px; scroll-margin-top: 52px; }
.pd-sec b { width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center; }
.pd-sec h3 { margin: 0; font-size: 15px; color: var(--navy-ink); }
.pd-sec span { font-size: 12px; color: var(--slate); }
.pd-rows { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--card); }
.pd-row { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.pd-row:last-child { border-bottom: none; }
.pd-row .l { flex: 1 1 auto; min-width: 0; }
.pd-row .d { font-size: 14px; font-weight: 750; color: var(--navy-ink); line-height: 1.3; }
.pd-row .d em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal-ink); background: var(--teal-soft); padding: 2px 6px; border-radius: 999px; margin-inline-start: 6px; vertical-align: 1px; }
.pd-row .p { font-size: 12px; color: var(--slate); margin-top: 2px; line-height: 1.4; }
.pd-row .w { font-size: 11.5px; color: #8a5d0c; background: #fdf0dc; border-radius: 8px; padding: 4px 8px; margin-top: 6px;
  line-height: 1.4; display: inline-block; }
.pd-row .r { flex: 0 0 auto; text-align: end; max-width: 46%; }
.pd-row .v { font-size: 17px; font-weight: 800; color: var(--navy-ink); font-variant-numeric: tabular-nums; line-height: 1.25; white-space: nowrap; }
.pd-row .v small { display: block; font-size: 11.5px; font-weight: 600; color: var(--slate); white-space: normal; }
.pd-row .k { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.pd-row .ln { margin-top: 5px; }
.pd-row .ln:first-child { margin-top: 0; }
.pd-row .v.dash { color: var(--line); }
.pd-row .prep { font-size: 11px; color: var(--slate); margin-top: 5px; line-height: 1.4; }
.pd-row .prep b { color: var(--ink); font-weight: 700; }
.pd-hidden { display: none; }
.pd-src { font-size: 12px; color: var(--slate); margin-top: 18px; line-height: 1.6; padding-top: 12px; border-top: 1px solid var(--line); }
.pd-src b { color: var(--navy-ink); }
@media (max-width: 480px) {
  .pd-in { grid-template-columns: 1fr 1fr; }
  .pd-in .wt-field { grid-column: 1 / -1; }
  .pd-vit { grid-template-columns: repeat(3, 1fr); }
  .pd-row .v { font-size: 15.5px; }
}
.pd-row.pd-h { background: var(--grey-soft); padding: 7px 14px; }
.pd-row.pd-h .k { color: var(--navy-ink); }

/* ---- each question gets its own soft tint, so items read as separate cards (24 Sep 2026) ---- */
.sc-items { border: none; background: none; overflow: visible; display: grid; gap: 8px; }
.sc-item { border: 1px solid var(--line); border-radius: 14px; border-inline-start-width: 5px; padding: 12px 14px 12px 12px; position: relative; }
.sc-item:last-child { border-bottom: 1px solid var(--line); }
.sc-item .q { padding-inline-start: 30px; }
.sc-item .n { position: absolute; inset-inline-start: 10px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 900; color: #fff; }
.sc-item:nth-child(4n+1) { background: #eef8f2; border-inline-start-color: #2e9e5b; } .sc-item:nth-child(4n+1) .n { background: #2e9e5b; }
.sc-item:nth-child(4n+2) { background: #eaf3fb; border-inline-start-color: #1b7fb0; } .sc-item:nth-child(4n+2) .n { background: #1b7fb0; }
.sc-item:nth-child(4n+3) { background: #fdf5e6; border-inline-start-color: #d4901c; } .sc-item:nth-child(4n+3) .n { background: #d4901c; }
.sc-item:nth-child(4n+4) { background: #f3eefb; border-inline-start-color: #7a56c2; } .sc-item:nth-child(4n+4) .n { background: #7a56c2; }
.sc-item .opt { background: rgba(255,255,255,.75); }
html[data-theme="dark"] .sc-item:nth-child(4n+1) { background: #142b20; }
html[data-theme="dark"] .sc-item:nth-child(4n+2) { background: #12283a; }
html[data-theme="dark"] .sc-item:nth-child(4n+3) { background: #33270f; }
html[data-theme="dark"] .sc-item:nth-child(4n+4) { background: #261d3a; }
html[data-theme="dark"] .sc-item .opt { background: rgba(255,255,255,.06); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .sc-item:nth-child(4n+1) { background: #142b20; }
  html:not([data-theme="light"]) .sc-item:nth-child(4n+2) { background: #12283a; }
  html:not([data-theme="light"]) .sc-item:nth-child(4n+3) { background: #33270f; }
  html:not([data-theme="light"]) .sc-item:nth-child(4n+4) { background: #261d3a; }
  html:not([data-theme="light"]) .sc-item .opt { background: rgba(255,255,255,.06); }
}

/* ---- evidence panel under each score ---- */
.sc-ev { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.sc-ev summary { cursor: pointer; font-weight: 900; color: var(--navy-ink); font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.sc-ev summary::-webkit-details-marker { display: none; }
.sc-ev summary::after { content: "›"; margin-inline-start: auto; font-size: 20px; transform: rotate(90deg); transition: transform .15s; color: var(--slate); }
.sc-ev[open] summary::after { transform: rotate(-90deg); }
html[data-theme="dark"] .sc-ev summary { color: #dbe9f5; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .sc-ev summary { color: #dbe9f5; } }
.sc-ev h4 { font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-ink); margin: 12px 0 4px; }
.sc-ev p { font-size: 13.5px; line-height: 1.5; margin: 0; }
.sc-ev .sc-evr { display: grid; gap: 6px; margin-top: 4px; }
.sc-ev .sc-evr div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 13px; line-height: 1.45; padding: 6px 8px; background: var(--bg); border-radius: 9px; }
.sc-ev .sc-evr b { font-variant-numeric: tabular-nums; }
.sc-ev ol { margin: 4px 0 0 18px; font-size: 12px; color: var(--slate); line-height: 1.45; }
.sc-ev ol li { margin-bottom: 3px; }
.sc-item .q { min-height: 22px; padding-top: 1px; }
html[data-theme="dark"] .sc-item .q { color: #e8eef3; }
html[data-theme="dark"] .sc-item .q span { color: #a3b1c0; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .sc-item .q { color: #e8eef3; } html:not([data-theme="light"]) .sc-item .q span { color: #a3b1c0; } }
