/* EMOD App — Lead the ED */
.ld-n { background: linear-gradient(160deg, #123c63, #12a58f); color: #fff; font-weight: 900; }
.ld-n.soon { background: var(--navy-soft); color: var(--slate); }
.ld-cta { display: block; background: linear-gradient(120deg, #123c63, #1b7fb0 60%, #12a58f); color: #fff; border-radius: 18px; padding: 16px; margin: 12px 0; box-shadow: var(--shadow); }
.ld-cta b { display: block; font-size: 18px; font-weight: 900; }
.ld-cta small { display: block; font-size: 13px; opacity: .9; margin-top: 3px; line-height: 1.4; }
.ld-intro { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 10px 0 4px; line-height: 1.5; }
.ld-sec { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; margin-top: 12px; }
.ld-sec h2 { font-size: 18px; font-weight: 900; color: var(--navy-ink); margin-bottom: 8px; }
html[data-theme="dark"] .ld-sec h2 { color: #dbe9f5; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .ld-sec h2 { color: #dbe9f5; } }
.ld-sec p { margin-bottom: 10px; line-height: 1.55; }
.ld-sec p:last-child { margin-bottom: 0; }
.ld-tw { overflow-x: auto; margin: 4px 0 10px; }
.ld-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ld-t th { text-align: start; font-weight: 800; color: var(--slate); border-bottom: 2px solid var(--line); padding: 6px 8px 6px 0; }
.ld-t td { border-bottom: 1px solid var(--line); padding: 7px 8px 7px 0; vertical-align: top; }
.ld-call { border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 14px; line-height: 1.45; }
.ld-call b { display: block; font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.ld-call.do { background: var(--teal-soft); color: var(--ink); border-left: 4px solid var(--teal); }
.ld-call.do b { color: var(--teal-ink); }
.ld-call.warn { background: var(--red-soft); border-left: 4px solid var(--red); }
.ld-call.warn b { color: var(--red); }
.ld-call.note { background: var(--navy-soft); border-left: 4px solid var(--blue); }
.ld-call.note b { color: var(--blue-ink); }
.ld-call p { margin: 0 !important; }
.ld-do { border-left: 4px solid var(--teal); }
.ld-acts { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.ld-acts .btn { flex: 1; min-width: 150px; justify-content: center; text-align: center; color: var(--ink); }
.ld-acts .btn-primary { color: #fff; }
.ld-q { margin-top: 10px; }
.ld-qt { font-size: 15px; line-height: 1.45; margin-bottom: 10px; }
.ld-opts { display: grid; gap: 7px; }
.ld-why { margin-top: 10px; font-size: 13.5px; line-height: 1.45; background: var(--navy-soft); border-radius: 10px; padding: 9px 11px; }
/* calculator */
.ld-month { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-weight: 800; margin: 10px 0; }
.ld-month input { border: none; background: var(--bg); color: var(--ink); border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 700; }
.ld-sum { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 8px; }
.ld-sumc { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ld-sumc b { display: block; font-size: 26px; font-weight: 900; color: var(--navy-ink); }
html[data-theme="dark"] .ld-sumc b { color: #dbe9f5; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .ld-sumc b { color: #dbe9f5; } }
.ld-sumc small { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); }
.ld-list { padding: 0; }
.ld-k { border-top: 1px solid var(--line); padding: 11px 14px; }
.ld-k:first-child { border-top: none; }
.ld-kh { display: flex; align-items: center; gap: 8px; }
.ld-kh b { font-size: 14.5px; font-weight: 800; flex: 1; }
.ld-core { font-size: 10px; font-weight: 900; text-transform: uppercase; background: var(--teal-soft); color: var(--teal-ink); border-radius: 6px; padding: 2px 5px; vertical-align: middle; }
.ld-i { width: 24px; height: 24px; flex: none; border: none; border-radius: 50%; cursor: pointer; background: var(--navy-soft); color: var(--slate); font-weight: 900; font-style: italic; }
.ld-i.on { background: var(--navy); color: #fff; }
.ld-kb { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.ld-in { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 10px; padding: 6px 10px; }
.ld-in input { width: 84px; border: none; background: none; color: var(--ink); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; }
.ld-in span { font-size: 12px; color: var(--slate); font-weight: 700; }
.ld-v { font-size: 12.5px; font-weight: 800; }
.ld-v.on { color: var(--green); } .ld-v.near { color: var(--amber); } .ld-v.off { color: var(--red); } .ld-v.none { color: var(--slate); font-weight: 700; }
.ld-bm { font-size: 12px; color: var(--slate); margin-top: 6px; line-height: 1.4; }
.ld-bm i { opacity: .85; }
.ld-def { margin-top: 8px; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.ld-def p { margin-bottom: 5px; }
.ld-dict { border-top: 1px solid var(--line); padding: 9px 0; }
.ld-dict:first-of-type { border-top: none; }
.ld-dict b { font-size: 15px; }
.ld-dict p { margin: 3px 0 !important; }
@media print {
  .ld-acts, .ld-i, .ld-cta, .ld-month input { display: none !important; }
  .ld-sec, .ld-sum, .ld-k { box-shadow: none; break-inside: avoid; }
  .ld-def { display: block !important; }
}

/* crowding score */
.ld-cta.alt { background: linear-gradient(120deg, #7a2f6b, #b3372f 70%, #b0700a); }
.nd-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; margin: 10px 0; border-top: 6px solid var(--slate); }
.nd-card.b1 { border-top-color: #1e7d3c; } .nd-card.b2 { border-top-color: #1b7fb0; } .nd-card.b3 { border-top-color: #b0700a; }
.nd-card.b4 { border-top-color: #d2691e; } .nd-card.b5 { border-top-color: #b3372f; } .nd-card.b6 { border-top-color: #4a0f0c; }
.nd-score { display: flex; align-items: baseline; gap: 10px; }
.nd-score b { font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.nd-score span { font-size: 15px; font-weight: 800; }
.nd-bar { height: 10px; border-radius: 6px; margin-top: 12px; position: relative;
  background: linear-gradient(90deg, #1e7d3c, #1b7fb0 30%, #b0700a 50%, #b3372f 70%, #4a0f0c); }
.nd-mark { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; border-radius: 3px;
  background: var(--ink); box-shadow: 0 0 0 2px var(--card); }
.nd-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }
.nd-terms { margin-top: 12px; display: grid; gap: 6px; }
.nd-term { display: grid; grid-template-columns: 1fr 30% 34px; align-items: center; gap: 8px; font-size: 13px; }
.nd-term span { line-height: 1.3; }
.nd-term i { height: 8px; border-radius: 5px; background: var(--teal); display: block; min-width: 3px; }
.nd-term b { text-align: end; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--slate); }
.nd-card.empty2 { border-top-color: var(--line); }
.ld-cta.rota { background: linear-gradient(120deg, #123c63, #4a2f7a 60%, #12a58f); }

/* toolkit + self-assessment */
.ld-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.ld-mini { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 13px 14px; border-top: 4px solid var(--teal); }
.ld-mini b { display: block; font-size: 14.5px; font-weight: 900; line-height: 1.25; color: var(--ink); }
.ld-mini small { display: block; font-size: 12px; color: var(--slate); margin-top: 4px; line-height: 1.35; }
.mt-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.mt-opts button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 9px; padding: 8px 2px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.mt-opts button.sel { background: var(--teal-btn); border-color: var(--teal-btn); color: #fff; }
.mt-bars { display: grid; gap: 6px; margin-top: 12px; }
.mt-bar { display: grid; grid-template-columns: 38% 1fr 42px; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.mt-bar i { height: 9px; border-radius: 5px; background: var(--navy-soft); display: block; overflow: hidden; }
.mt-bar u { display: block; height: 100%; background: var(--teal); border-radius: 5px; text-decoration: none; }
.mt-bar b { text-align: end; font-variant-numeric: tabular-nums; color: var(--slate); }
.mt-fix { margin: 4px 0 0 18px; font-size: 13px; line-height: 1.45; } .mt-fix li { margin-bottom: 4px; }
@media print { .mt-opts button:not(.sel) { opacity: .35; } }

/* ---- leadership cases ---- */
.ld-cta.cases { background: linear-gradient(135deg, #4a2f7a, #7a56c2); }
.ld-scene { border-inline-start: 4px solid var(--navy); }
.ld-ask { font-weight: 900; font-size: 16px; margin-top: 10px; }
.ld-reveal { margin: 4px 0 14px; }
.ld-reveal > summary { cursor: pointer; list-style: none; background: var(--teal-btn); color: #fff; border-radius: 14px; padding: 14px 16px; font-weight: 900; font-size: 15px; text-align: center; box-shadow: 0 8px 20px rgba(18,165,143,.3); }
.ld-reveal > summary::-webkit-details-marker { display: none; }
.ld-reveal[open] > summary { background: var(--navy); box-shadow: none; margin-bottom: 12px; }
.ld-step ol { padding-inline-start: 20px; }
.ld-step li { margin: 6px 0; line-height: 1.5; }

/* ---- open practice (Train) ---- */
.ld-cta.practice { background: linear-gradient(120deg, #0c2a47, #0d7b6b); }
