/* naturfag-anatomilag.css: "Den rigtige anatomi" under Naturfags modeller (23/11 2026) */
.nfa { margin: 18px 0 8px; border-radius: 20px; overflow: hidden; background: linear-gradient(165deg, #0f2342, #0a1628 60%); color: #e2e8f0; border: 1px solid rgba(148, 163, 184, .22); box-shadow: 0 18px 44px rgba(10, 22, 40, .28); }
.nfa[hidden] { display: none; }
.nfa-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 18px 10px; }
.nfa-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5eead4; }
.nfa-top h4 { margin: 0; font-size: 1.12rem; font-weight: 900; color: #fff; }
.nfa-scene { position: relative; height: clamp(300px, 52vw, 480px); background: radial-gradient(120% 90% at 50% 10%, #17345e, #0a1628 70%); }
.nfa-host { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.nfa-host:active { cursor: grabbing; }
.nfa-host canvas { display: block; width: 100% !important; height: 100% !important; }
.nfa-plakat { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: radial-gradient(60% 60% at 50% 45%, rgba(45, 212, 191, .14), transparent 70%); }
.nfa-plakat[hidden] { display: none; }
.nfa-plakat p { max-width: 520px; margin: 0; color: rgba(226, 232, 240, .9); line-height: 1.55; }
.nfa-plakat small { color: rgba(203, 213, 225, .7); font-size: .76rem; }
.nfa-knap { padding: 12px 22px; border-radius: 999px; border: 0; background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 10px 26px rgba(20, 184, 166, .35); transition: transform .15s ease, box-shadow .15s ease; }
.nfa-knap:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20, 184, 166, .45); }
.nfa-knap:focus-visible, .nfa-knapper button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.nfa-status { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(15, 23, 42, .85); border: 1px solid rgba(148, 163, 184, .3); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.nfa-status.er-fejl { background: rgba(127, 29, 29, .9); white-space: normal; text-align: center; max-width: 90%; }
.nfa-hud { position: absolute; left: 14px; right: 150px; bottom: 12px; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(10, 22, 40, .78); border: 1px solid rgba(148, 163, 184, .22); font-size: .84rem; font-weight: 700; line-height: 1.4; color: #f1f5f9; pointer-events: none; }
.nfa-hud:empty, .nfa:not(.er-aktiv) .nfa-hud { display: none; }
.nfa-knapper { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.nfa:not(.er-aktiv) .nfa-knapper { display: none; }
.nfa-knapper button { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, .35); background: rgba(15, 23, 42, .8); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.nfa-forkl { list-style: none; margin: 0; padding: 14px 18px 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 18px; }
.nfa-forkl li { font-size: .88rem; line-height: 1.5; color: rgba(226, 232, 240, .85); }
.nfa-forkl b { color: #fff; }
.nfa-prik { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; box-shadow: 0 0 10px currentColor; }
.nfa-kilde { margin: 0; padding: 8px 18px 16px; font-size: .74rem; color: rgba(203, 213, 225, .65); }
.nfa-kilde a { color: #7dd3fc; }
@media (max-width: 560px) { .nfa-hud { right: 12px; bottom: 58px; font-size: .78rem; } .nfa-top { padding: 14px 14px 8px; } }
@media (prefers-reduced-motion: reduce) { .nfa-knap { transition: none; } }
/* Panelet ligger i modellens gitter: brug hele bredden */
.systems-workbench > .nfa, .systems-cockpit > .nfa, .topic-model > .nfa, #kroppenLab > .nfa { grid-column: 1 / -1; width: 100%; }
.nfa-hud { max-width: 640px; }
