/* Navigation i Naturfag (naturfag-navigation.js) */
:root { --nf-hoved: 62px; --nf-nav: 58px; }
kbd { font: 800 .7em/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; border: 1px solid #b8c7d9; background: #fff; color: #33475f; }

/* På denne side */
.nf-side { position: sticky; top: calc(var(--nf-hoved) + var(--nf-nav) + 8px); z-index: 40; display: flex; gap: 10px; align-items: center; margin: -10px -6px 20px; padding: 7px 8px 7px 12px; border: 1px solid var(--line, #c9d8e6); border-radius: 15px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 8px 22px rgba(31, 56, 100, .1); }
.nf-side__liste { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px 0; }
.nf-side__liste::-webkit-scrollbar { display: none; }
.nf-side__knap { flex: none; border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; color: #4f5f76; font: 800 .74rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; white-space: nowrap; }
.nf-side__knap:hover, .nf-side__knap:focus-visible { background: #e6eef8; color: var(--navy, #1f3864); }
.nf-side__knap.er-paa { background: var(--navy, #1f3864); color: #fff; }
.nf-side__find { flex: none; display: inline-flex; gap: 7px; align-items: center; border: 1px solid #bfd0e3; background: #fff; padding: 7px 12px; border-radius: 999px; color: var(--navy, #1f3864); font: 850 .74rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.nf-side__find:hover, .nf-side__find:focus-visible { border-color: var(--teal, #12c4a8); background: #eef9f7; }
.nf-fremhaev { animation: nf-puls 2.2s ease-out; }
@keyframes nf-puls { 0% { box-shadow: 0 0 0 0 rgba(18, 196, 168, .7); } 100% { box-shadow: 0 0 0 26px rgba(18, 196, 168, 0); } }

/* Modelatlas */
.atlas { margin: 6px 0 30px; }
.atlas__hoved { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: 20px; align-items: end; margin-bottom: 14px; }
.atlas__hoved h2 { margin: 4px 0 6px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.03em; color: var(--navy, #1f3864); }
.atlas__hoved p { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--muted, #5a6b82); }
.atlas__soeg { display: grid; gap: 4px; }
.atlas__label { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: var(--teal, #12a08a); }
.atlas__soeg input { width: 100%; padding: 13px 16px; border: 2px solid #c9d8e6; border-radius: 14px; font-size: .95rem; background: #fff; color: var(--navy, #1f3864); }
.atlas__soeg input:focus { outline: none; border-color: var(--teal, #12c4a8); box-shadow: 0 0 0 4px rgba(18, 196, 168, .18); }
.atlas__antal { font-size: .66rem !important; font-weight: 800; color: #8793a5 !important; }
.atlas__filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.atlas__chip { padding: 7px 13px; border: 1px solid var(--line, #c9d8e6); background: #fff; border-radius: 999px; font: 800 .74rem/1 -apple-system, "Segoe UI", sans-serif; color: #4f5f76; cursor: pointer; }
.atlas__chip[aria-pressed="true"] { background: var(--navy, #1f3864); border-color: var(--navy, #1f3864); color: #fff; }
.atlas__fortsaet { margin: 0 0 12px; padding: 9px 14px; border-radius: 12px; background: #e8f7f2; font-size: .78rem; color: #1f5f52; }
.atlas__fortsaet-knap { border: 0; background: transparent; font: 850 .78rem/1 -apple-system, "Segoe UI", sans-serif; color: #0e7a68; text-decoration: underline; cursor: pointer; padding: 0; }
.atlas__fallback { margin: 0; padding: 14px; border: 1px dashed var(--line, #c9d8e6); border-radius: 12px; font-size: .8rem; color: var(--muted, #5a6b82); }
.atlas--aktiv .atlas__fallback { display: none; }
.atlas__tom { padding: 18px; text-align: center; color: var(--muted, #5a6b82); font-size: .82rem; }
.atlas__gitter { display: grid; gap: 22px; }
.atlas__gruppe-titel { display: flex; align-items: baseline; gap: 8px; margin: 0 0 9px; font-size: .98rem; color: var(--navy, #1f3864); }
.atlas__gruppe-titel span { font-size: 1.05rem; color: var(--omr, #1f3864); }
.atlas__gruppe-titel small { font-size: .66rem; font-weight: 800; color: #8793a5; }
.atlas__raekke { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
.atlas__kort { --omr: #1f3864; display: grid; gap: 4px; align-content: start; text-align: left; padding: 13px 14px 12px; border: 1px solid var(--line, #c9d8e6); border-left: 5px solid var(--omr); border-radius: 14px; background: #fff; color: var(--navy, #1f3864); cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.atlas__kort:hover, .atlas__kort:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 56, 100, .13); border-color: var(--omr); }
.atlas__ikon { font-size: 1.1rem; color: var(--omr); line-height: 1; }
.atlas__titel { font-size: .88rem; font-weight: 850; line-height: 1.2; }
.atlas__tekst { font-size: .72rem; line-height: 1.45; color: #55657c; }
.atlas__meta { font-size: .6rem; font-weight: 800; color: #8793a5; letter-spacing: .02em; margin-top: 3px; }
.atlas__kort--stor { grid-column: auto; background: linear-gradient(150deg, #0d2038, #14345a); color: #fff; border-color: #14345a; border-left-color: var(--omr); }
.atlas__kort--stor .atlas__tekst { color: #cfe3f5; }
.atlas__kort--stor .atlas__meta { color: #7be4ee; }
.a-systemer { --omr: #2e75b6; } .a-sanser { --omr: #7c3aed; } .a-boelger { --omr: #0e9aa7; } .a-kemi { --omr: #d97706; } .a-kroppen { --omr: #12a08a; } .a-anatomi { --omr: #e0503a; }

/* Om Naturfag (sammenfoldet) */
.om-naturfag { margin-top: 30px; border: 1px solid var(--line, #c9d8e6); border-radius: 18px; background: #f8fbfe; }
.om-naturfag > summary { display: flex; gap: 10px; align-items: baseline; padding: 16px 20px; cursor: pointer; font-weight: 900; color: var(--navy, #1f3864); list-style: none; }
.om-naturfag > summary::-webkit-details-marker { display: none; }
.om-naturfag > summary::before { content: "▸"; color: var(--teal, #12a08a); }
.om-naturfag[open] > summary::before { content: "▾"; }
.om-naturfag > summary small { font-weight: 700; font-size: .72rem; color: #8793a5; }
.om-naturfag > :not(summary) { margin-left: 20px; margin-right: 20px; }
.om-naturfag > :last-child { margin-bottom: 20px; }

/* Søgevindue */
.nf-soeg { width: min(92vw, 640px); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 20px; background: #0d2038; color: #e8f4ff; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); overflow: hidden; }
.nf-soeg::backdrop { background: rgba(9, 20, 36, .62); backdrop-filter: blur(4px); }
.nf-soeg__rum { display: grid; }
.nf-soeg__felt { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nf-soeg__felt input { flex: 1; border: 0; background: transparent; color: #fff; font-size: 1.05rem; outline: none; }
.nf-soeg__felt input::placeholder { color: #7f96b0; }
.nf-soeg__liste { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.nf-soeg__resultat { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; --omr: #7be4ee; }
.nf-soeg__resultat[aria-selected="true"] { background: rgba(123, 228, 238, .16); }
.nf-soeg__ikon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .08); color: var(--omr); }
.nf-soeg__tekst { display: grid; gap: 1px; min-width: 0; }
.nf-soeg__tekst b { font-size: .88rem; color: #fff; }
.nf-soeg__tekst small { font-size: .7rem; color: #9fb6cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-soeg__resultat em { font-style: normal; font-size: .62rem; font-weight: 800; color: #7be4ee; }
.nf-soeg__tom { padding: 18px; text-align: center; color: #9fb6cc; font-size: .84rem; }
.nf-soeg__hjaelp { margin: 0; padding: 10px 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .66rem; color: #7f96b0; }
.nf-soeg kbd { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #dff3ff; }
.hero-find { margin-right: 6px; }

/* Telefon: områderne som 3×2-felt i stedet for en rude, man skal rulle i */
@media (max-width: 700px) {
  .journey-nav[role="tablist"] { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; overflow: visible; width: calc(100% - 18px); padding: 8px; }
  .journey-nav[role="tablist"] button { flex-direction: column; gap: 3px; justify-content: center; min-height: 56px; padding: 6px 4px; font-size: .68rem; line-height: 1.15; text-align: center; white-space: normal; }
  .nf-side { top: calc(var(--nf-hoved) + 6px); margin: -8px -4px 16px; padding: 6px; }
  .nf-side__find kbd { display: none; }
  .atlas__hoved { grid-template-columns: 1fr; gap: 12px; }
  .atlas__raekke { grid-template-columns: 1fr; }
  .atlas__kort--stor { grid-column: auto; }
  .om-naturfag > :not(summary) { margin-left: 12px; margin-right: 12px; }
  .journey-grid .journey-card .journey-what, .journey-grid .journey-card .journey-meta { display: none; }
  .journey-grid .journey-card { min-height: 0; padding-top: 14px; padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .nf-fremhaev { animation: none; outline: 3px solid rgba(18, 196, 168, .6); } .atlas__kort { transition: none; } }

/* Delknap på modelkort og opgave-banner */
.atlas__vaerge { position: relative; display: grid; }
.atlas__vaerge .atlas__kort { width: 100%; }
.atlas__del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; opacity: 0; transition: opacity .12s, background .12s; font-size: .85rem; }
.atlas__vaerge:hover .atlas__del, .atlas__del:focus-visible, .atlas__del.er-kopieret { opacity: 1; }
.atlas__del:hover { background: #e6eef8; }
.atlas__del.er-kopieret { background: #e2f5f2; border-color: #12c4a8; }
.atlas__kort--stor + .atlas__del:hover { background: rgba(255, 255, 255, .15); }
.atlas__vaerge:has(.atlas__kort--stor) { grid-column: span 2; }
@media (hover: none) { .atlas__del { opacity: .7; } }
@media (max-width: 700px) { .atlas__vaerge:has(.atlas__kort--stor) { grid-column: auto; } }
.nf-opgave { display: flex; gap: 12px; align-items: flex-start; width: min(1160px, calc(100% - 32px)); margin: 0 auto 14px; padding: 13px 18px; border-radius: 16px; background: #fff8eb; border: 1px solid #f2d7a4; color: #6b4a1a; }
.nf-opgave > span { font-size: 1.3rem; }
.nf-opgave b { display: block; font-size: .88rem; }
.nf-opgave p { margin: 2px 0 0; font-size: .78rem; line-height: 1.5; }
.nf-opgave a { margin-left: auto; align-self: center; white-space: nowrap; font-weight: 800; font-size: .78rem; color: #8a5a10; }

/* ═══ Galleriet øverst (2026-10-25) ═══ */
.a-kemi { --omr: #d97706; } .a-vaeske { --omr: #0e9aa7; } .a-cellen { --omr: #16a34a; } .a-blod { --omr: #e0503a; }
.a-sanser { --omr: #7c3aed; } .a-mikro { --omr: #65a30d; } .a-arbejde { --omr: #2e75b6; } .a-anatomi { --omr: #db2777; } .a-alle { --omr: #1f3864; }
.nfg.atlas { padding: 28px clamp(16px, 4vw, 56px) 30px; margin: 0; background: linear-gradient(180deg, #eef4fb, #f7fafd 60%, #fff); border-bottom: 1px solid var(--line, #d7e2ee); }
.nfg .atlas__hoved { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 12px; }
.nfg .atlas__antal { align-self: end; justify-self: start; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #d7e2ee); }
.nfg-soeg { display: grid; gap: 10px; margin: 0 0 18px; }
.nfg-soeg__felt { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 2px solid #c9d8e6; border-radius: 16px; background: #fff; max-width: 620px; box-shadow: 0 6px 18px rgba(31, 56, 100, .06); }
.nfg-soeg__felt:focus-within { border-color: var(--teal, #12c4a8); box-shadow: 0 0 0 4px rgba(18, 196, 168, .18); }
.nfg-soeg__felt svg { width: 20px; height: 20px; color: #6b7c93; flex: none; }
.nfg-soeg__felt input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 14px 0; font-size: 1rem; background: transparent; color: var(--navy, #1f3864); }
.nfg-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nfg-chips::-webkit-scrollbar { display: none; }
.nfg-chip { flex: none; padding: 8px 14px; border: 1px solid var(--line, #c9d8e6); background: #fff; border-radius: 999px; font: 800 .76rem/1 -apple-system, "Segoe UI", sans-serif; color: #3f5068; cursor: pointer; box-shadow: inset 0 -3px 0 var(--omr); }
.nfg-chip[aria-pressed="true"] { background: var(--omr); border-color: var(--omr); color: #fff; box-shadow: none; }
.nfg-gruppe { margin: 0 0 18px; }
.nfg-gruppe__titel { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 1.02rem; color: var(--navy, #1f3864); }
.nfg-gruppe__titel::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--omr, #1f3864); align-self: center; }
.nfg-gruppe__titel small { font-size: .68rem; font-weight: 800; color: #8793a5; }
.nfg-gruppe--fortsaet { --omr: #12a08a; }
.nfg-raekke-vaerge { position: relative; }
.nfg-raekke { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(210px, 23vw, 260px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 4px; padding: 4px 4px 10px; scrollbar-width: thin; }
.nfg-raekke > * { scroll-snap-align: start; }
.nfg-pil { position: absolute; top: 34%; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--navy, #1f3864); box-shadow: 0 6px 18px rgba(13, 32, 56, .25); cursor: pointer; }
.nfg-pil svg { width: 20px; height: 20px; }
.nfg-pil--v { left: -8px; } .nfg-pil--h { right: -8px; }
.nfg-pil[hidden] { display: none; }
.nfg-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.nfg-tom { padding: 22px; text-align: center; color: var(--muted, #5a6b82); background: #fff; border: 1px dashed var(--line, #c9d8e6); border-radius: 14px; }
.nfg-kort { --omr: #1f3864; display: grid; grid-template-rows: auto 1fr; padding: 0; text-align: left; border: 1px solid var(--line, #d7e2ee); border-radius: 16px; background: #fff; color: var(--navy, #1f3864); cursor: pointer; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.nfg-kort:hover, .nfg-kort:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 56, 100, .18); border-color: var(--omr); outline: none; }
.nfg-kort:focus-visible { box-shadow: 0 0 0 3px var(--omr), 0 14px 30px rgba(31, 56, 100, .18); }
.nfg-kort__billede { position: relative; display: block; aspect-ratio: 16 / 10; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--omr) 55%, #0d2038), #0d2038 72%); overflow: hidden; }
.nfg-kort__billede img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.nfg-kort:hover .nfg-kort__billede img { transform: scale(1.05); }
.nfg-kort__ikon { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); }
.nfg-kort__ikon svg { width: 46px; height: 46px; }
.nfg-kort.har-billede .nfg-kort__ikon { display: none; }
.nfg-kort__billede::after { content: "3D"; position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 7px; background: rgba(13, 32, 56, .78); color: #7be4ee; font: 900 .62rem/1 -apple-system, "Segoe UI", sans-serif; letter-spacing: .06em; }
.nfg-kort__tid { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 7px; background: rgba(13, 32, 56, .78); color: #fff; font: 800 .6rem/1 -apple-system, "Segoe UI", sans-serif; }
.nfg-kort__tekst { display: grid; gap: 4px; align-content: start; padding: 10px 12px 12px; border-top: 3px solid var(--omr); }
.nfg-kort__tekst b { font-size: .9rem; line-height: 1.2; }
.nfg-kort__tekst small { font-size: .72rem; line-height: 1.4; color: #55657c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Galleriet i fuld skærm */
.nfg-dialog { width: min(1280px, 100vw - 24px); max-width: none; height: min(92vh, 100dvh - 24px); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 22px; background: #f4f8fc; box-shadow: 0 30px 80px rgba(13, 32, 56, .45); overflow: hidden; }
.nfg-dialog[open] { display: grid; grid-template-rows: auto auto 1fr; }
.nfg-dialog::backdrop { background: rgba(9, 22, 40, .62); backdrop-filter: blur(4px); }
.nfg-dialog__hoved { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(14px, 3vw, 28px) 4px; }
.nfg-dialog__hoved h2 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--navy, #1f3864); }
.nfg-dialog__luk { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line, #c9d8e6); border-radius: 50%; background: #fff; color: var(--navy, #1f3864); cursor: pointer; }
.nfg-dialog__luk svg { width: 20px; height: 20px; }
.nfg-dialog__soeg { padding: 8px clamp(14px, 3vw, 28px) 0; }
.nfg-dialog__gitter { overflow-y: auto; padding: 4px clamp(14px, 3vw, 28px) 24px; }

/* Den faste knap */
.nf-3d-knap { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px 13px 14px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #12c4a8, #0e8f9c); color: #fff; font: 900 .9rem/1 -apple-system, "Segoe UI", sans-serif; box-shadow: 0 12px 30px rgba(14, 143, 156, .45); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.nf-3d-knap svg { width: 22px; height: 22px; }
.nf-3d-knap:hover, .nf-3d-knap:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(14, 143, 156, .55); outline: none; }
.nf-3d-knap:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0e8f9c; }
.nf-i-teater .nf-3d-knap { display: none; }

/* ═══ Modelteatret ═══ */
[data-nf-skjult] { display: none !important; }
.nf-teater { display: none; }
.nf-i-teater .nf-teater { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 8px; padding: 8px clamp(8px, 2vw, 18px); background: rgba(13, 32, 56, .97); color: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, .3); border-bottom: 3px solid var(--omr, #12c4a8); }
.nf-i-teater body { padding-top: calc(var(--nf-teater-h, 64px) + 10px); }
.nf-teater__knap { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; font: 800 .8rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; white-space: nowrap; }
.nf-teater__knap:hover, .nf-teater__knap:focus-visible { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); outline: none; }
.nf-teater__knap svg { width: 20px; height: 20px; flex: none; }
.nf-teater__titel { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 0 6px; overflow: hidden; }
.nf-teater__titel small { font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #7be4ee; }
.nf-teater__titel b { font-size: 1rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-teater__blad { display: inline-flex; align-items: center; gap: 6px; }
.nf-teater__blad .nf-teater__knap { padding: 0 9px; }
.nf-teater__nr { font-size: .72rem; font-weight: 800; color: #bfd3ea; min-width: 52px; text-align: center; }
.nf-teater__luk { background: #fff; color: #0d2038; border-color: #fff; }
.nf-teater__luk:hover, .nf-teater__luk:focus-visible { background: #e6f7f4; color: #0d2038; }
.nf-teater-mal { margin: 0 auto 28px !important; max-width: 1280px; }
@media (max-width: 760px) {
  .nf-teater__alle span, .nf-teater__om span { display: none; }
  .nf-teater__nr { display: none; }
  .nf-teater { gap: 5px !important; }
  .nf-teater__knap { min-height: 40px; padding: 0 9px; }
  .nf-teater__titel b { font-size: .86rem; }
  .nf-3d-knap span { display: none; }
  .nf-3d-knap { padding: 15px; }
  .nfg .atlas__hoved { grid-template-columns: 1fr; }
  .nfg-raekke, .nfg-emne .nfg-raekke { grid-auto-columns: clamp(170px, 62vw, 250px); }
  .nfg-pil { display: none; }
}
@media (max-width: 420px) { .nf-teater__om { display: none !important; } .nf-teater__luk span { display: none; } }
@media (prefers-reduced-motion: reduce) { .nfg-kort, .nfg-kort__billede img, .nf-3d-knap { transition: none; } }

/* 3D-modellerne øverst i hvert emne */
.nfg-emne { margin: 0 0 24px; padding: 14px 14px 4px; border-radius: 18px; background: linear-gradient(180deg, #eef4fb, #f8fbfe); border: 1px solid var(--line, #d7e2ee); }
.nfg-emne .nfg-raekke { grid-auto-columns: clamp(190px, 20vw, 230px); }
.nf-i-teater .lab-shell { background: transparent; }
/* I fuld visning er søskende skjult; det synlige spor skal fylde hele bredden i et gitter (fx emnelisten) */
.nf-i-teater [data-nf-sti] { grid-column: 1 / -1; }

/* Rækkerne må aldrig gøre siden bredere end skærmen: de ruller vandret indeni (rettet 26/10) */
.atlas__gitter, .nfg-dialog__gitter { grid-template-columns: minmax(0, 1fr); }
.nfg-gruppe, .nfg-raekke-vaerge, .nfg-raekke, .nfg-emne { min-width: 0; max-width: 100%; }
.nfg.atlas, .nfg-emne { overflow-x: clip; }
