/* Nurse Dojo memory cards + trainer embed. High contrast, phone first. */
.ndm-inline{position:relative;width:100%;margin:0 0 24px;height:calc(100vh - 90px);height:calc(100dvh - 90px);min-height:560px;border-radius:14px;overflow:hidden;border:1px solid #D9D4C7;background:#F7F5F0}
.ndm-inline iframe{width:100%;height:100%;border:0;display:block;background:#F7F5F0}
@media (max-width:760px){.ndm-inline{border-radius:0;border-left:0;border-right:0;width:auto;margin-left:calc(-1 * var(--ndm-gutter,0px));margin-right:calc(-1 * var(--ndm-gutter,0px))}}

.ndm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px;margin:0 0 16px}
.ndm-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #D9D4C7;border-top:6px solid #1E2D50;border-radius:14px;padding:16px 16px 12px;color:#1B2233;font-family:'Outfit',system-ui,-apple-system,'Segoe UI',sans-serif;break-inside:avoid}
.ndm-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.ndm-topic{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#0B6E99;line-height:1.3}
.ndm-tag{flex-shrink:0;font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:999px;background:#FFF4D1;color:#6B4D00}
.ndm-name{font:400 32px/1.02 'Bebas Neue',Impact,'Arial Narrow',sans-serif;letter-spacing:.03em;color:#1E2D50}
.ndm-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.ndm-items li{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.35}
.ndm-k{flex-shrink:0;min-width:30px;height:30px;padding:0 6px;border-radius:8px;background:#1E2D50;color:#F5C542;display:flex;align-items:center;justify-content:center;font:400 19px/1 'Bebas Neue',Impact,sans-serif;letter-spacing:.03em}
.ndm-k-long{min-width:0;height:auto;padding:5px 8px;font:700 12.5px/1.15 'Outfit',system-ui,sans-serif;letter-spacing:0;max-width:44%;text-align:center}
.ndm-t{padding-top:4px}
.ndm-pearl{font-size:14px;line-height:1.4;background:#FFF4D1;border-left:4px solid #C99A00;border-radius:8px;padding:8px 10px}
.ndm-cue{font-size:14px;line-height:1.4;background:#E6F4FB;border-left:4px solid #0B6E99;border-radius:8px;padding:8px 10px}
.ndm-pearl b,.ndm-cue b{color:#1E2D50}
.ndm-foot{display:flex;justify-content:space-between;align-items:center;margin-top:2px;padding-top:8px;border-top:1px solid #E7E2D6;font:400 15px/1 'Bebas Neue',Impact,sans-serif;letter-spacing:.08em;color:#1E2D50}
.ndm-foot b{color:#C2410C;font-weight:400}
html body .ndm-print{border:1.5px solid #1E2D50;background:#fff;color:#1E2D50;border-radius:8px;padding:7px 12px;font:600 13.5px/1 'Outfit',sans-serif;cursor:pointer;min-height:36px}
html body .ndm-btns{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 8px}
html body .ndm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:12px;border:1.5px solid #1E2D50;background:#fff;color:#1E2D50;font:600 15.5px/1 'Outfit',sans-serif;text-decoration:none;cursor:pointer}
html body .ndm-primary{background:#C2410C;border-color:#C2410C;color:#fff}
.ndm-show{background:#fff;border:1px solid #D9D4C7;border-radius:16px;padding:22px 18px;color:#1B2233;font-family:'Outfit',system-ui,sans-serif}
.ndm-eyebrow{font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#C2410C}
.ndm-h{font:400 38px/1.02 'Bebas Neue',Impact,sans-serif;letter-spacing:.03em;color:#1E2D50;margin:4px 0 8px}
.ndm-p{font-size:16.5px;line-height:1.5;margin:0 0 14px}
.ndm-modes{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin:0 0 16px}
.ndm-mode{border:1px solid #D9D4C7;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;background:#F7F5F0}
.ndm-mode b{color:#1E2D50}.ndm-mode span{font-size:14px}

/* The theme sets nowrap and its own colors on every button; ours wrap and keep their colors. */
html body .ndd-tab,html body .ndd-btn,html body .ndd-opt,html body button.ndd-front,html body .ndc-prog-ic,html body .ndm-print,html body .ndm-btn,html body .ndc-btn,html body .ndc-pill{white-space:normal;text-transform:none;letter-spacing:normal;}
