/* naturfag-regnelab.css — "Drop og koncentration" (naturfag-drop.js) og "Bakterievækst" (naturfag-vaekst.js).
   Samme udtryk som de andre afsnit i fanerne (struktur-sektion / fl-sektion). */

.drop-sektion, .vaekst-sektion { margin: 26px 0; padding: 20px; border-radius: 20px; background: #f4f8fc; border: 1px solid var(--line, #c9d8e6); }
.drop-sektion h3, .vaekst-sektion h3 { margin: 4px 0 6px; font-size: 1.25rem; color: var(--navy, #1f3864); }
.drop-sektion__lead, .vaekst-sektion__lead { margin: 0 0 14px; font-size: .82rem; line-height: 1.5; color: var(--muted, #5a6b82); max-width: 720px; }
.drop__fallback, .vaekst__fallback { font-size: .82rem; color: #3b4b63; padding: 14px; border: 1px dashed #c9d8e6; border-radius: 12px; background: #fff; }

/* faner */
.drop-faner { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.drop-fane { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line, #c9d8e6); background: #fff; color: var(--navy, #1f3864); font: 800 .8rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.drop-fane[aria-selected="true"] { background: var(--navy, #1f3864); border-color: var(--navy, #1f3864); color: #fff; }
.drop-panel { background: #fff; border: 1px solid var(--line, #c9d8e6); border-radius: 16px; padding: 16px; }
.drop-intro { margin: 0 0 12px; font-size: .86rem; line-height: 1.55; color: #3b4b63; }
.drop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; align-items: start; }

/* felter */
.drop-raekke { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.drop-raekke .drop-felt { flex: 1 1 130px; }
.drop-felt { display: grid; gap: 4px; min-width: 0; margin-bottom: 10px; }
.drop-raekke .drop-felt { margin-bottom: 0; }
.drop-felt__navn { font-size: .74rem; font-weight: 800; color: #5a6b82; }
.drop-felt__input { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--line, #c9d8e6); border-radius: 11px; background: #fff; }
.drop-felt__input:focus-within { border-color: #12a08a; }
.drop-felt input { flex: 1; min-width: 0; width: 100%; border: 0; outline: none; font: 700 1rem/1.2 -apple-system, "Segoe UI", sans-serif; color: #16263f; background: transparent; padding: 9px 0; }
.drop-felt__enhed { font-size: .76rem; font-weight: 800; color: #5a6b82; white-space: nowrap; }
.drop-felt select { min-height: 44px; border: 1.5px solid var(--line, #c9d8e6); border-radius: 11px; background: #fff; padding: 0 10px; font: 600 .86rem/1.2 -apple-system, "Segoe UI", sans-serif; color: #16263f; }
.drop-per { margin: 0 0 12px; font-size: .78rem; font-weight: 800; color: #5a6b82; }
.drop-hurtig { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.drop-chip { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid #bfe3ff; background: #eef8ff; color: #0b4a7a; font: 800 .76rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.drop-chip[aria-pressed="true"] { background: #0b4a7a; border-color: #0b4a7a; color: #fff; }

/* resultat */
.drop-res { margin-top: 4px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, #e9f8f4, #fff); border: 1.5px solid #b7e8dc; }
.drop-res__top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.drop-res__top b { font-size: 2rem; font-weight: 900; color: #0d2038; letter-spacing: -.02em; }
.drop-res__top span { font-size: .9rem; font-weight: 800; color: #0e7a68; }
.drop-res p { margin: 6px 0 0; font-size: .84rem; line-height: 1.5; color: #2a3a52; }
.drop-res__udregning { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .78rem !important; color: #5a6b82 !important; }
.drop-res[data-type="hypo"] { background: linear-gradient(160deg, #eaf4ff, #fff); border-color: #bfe3ff; }
.drop-res[data-type="hyper"] { background: linear-gradient(160deg, #fff3e8, #fff); border-color: #ffd2a8; }
.drop-tip { margin: 10px 0 0; font-size: .78rem; color: #5a6b82; padding-left: 10px; border-left: 3px solid #12a08a; }

/* dråbekammer og blodcelle */
.drop-kammer, .drop-celle { text-align: center; }
.drop-kammer svg { width: 100%; max-width: 150px; height: auto; }
.drop-draabe { transform-box: fill-box; }
.drop-kammer__tal { margin: 6px 0 0; font-size: .82rem; color: #3b4b63; }
.drop-kammer__tal b { font-size: 1.3rem; color: #0d2038; }
.drop-kammer__taeller { margin: 2px 0 0; font-size: .72rem; color: #8a9ab0; }
.drop-celle svg { width: 100%; max-width: 190px; height: auto; }
.drop-rbc__form { transition: d .6s ease; }
.drop-celle__tekst { margin: 4px 0 0; font-size: .8rem; font-weight: 800; color: #3b4b63; }
.drop-3d { margin-top: 12px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #ff9a4d, #ffb877); color: #2a1200; font: 850 .8rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }

/* øv dig */
.drop-opgave { padding: 14px; border-radius: 14px; background: #f7fbff; border: 1px solid #dbe8f5; }
.drop-opgave__spm { margin: 0 0 10px; font-size: .95rem; font-weight: 750; color: #16263f; line-height: 1.45; }
.drop-knap { min-height: 44px; padding: 0 16px; border: 0; border-radius: 11px; background: #1f3864; color: #fff; font: 850 .8rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.drop-knap--rolig { background: transparent; color: #1f3864; border: 1.5px solid var(--line, #c9d8e6); }
.drop-fb { margin-top: 10px; }
.drop-fb.er-rigtig { padding: 10px 12px; border-radius: 10px; background: #dcfce7; color: #14532d; }
.drop-fb.er-forkert { padding: 10px 12px; border-radius: 10px; background: #fff1e6; color: #7a2e00; }
.drop-fb p { margin: 4px 0 0; font-size: .8rem; }
.drop-point { margin: 8px 0 0; font-size: .8rem; font-weight: 800; color: #5a6b82; }
.drop-graense, .vaekst-graense { margin: 12px 0 0; font-size: .72rem; line-height: 1.5; color: #8a9ab0; }

/* bakterievækst */
.vaekst-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.vaekst-scene { position: relative; background: #fff; border: 1px solid var(--line, #c9d8e6); border-radius: 16px; padding: 12px; text-align: center; }
.vaekst-skaal { width: 100%; max-width: 360px; height: auto; }
.vaekst-tal { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-top: 4px; }
.vaekst-tal b { font-size: 1.9rem; font-weight: 900; color: #0d2038; }
.vaekst-tal span { font-size: .86rem; font-weight: 800; color: #5a6b82; }
.vaekst-side { display: grid; gap: 10px; }
.vaekst-knapper { display: flex; flex-wrap: wrap; gap: 6px; }
.vaekst-knap { min-height: 42px; padding: 0 13px; border-radius: 11px; border: 1.5px solid var(--line, #c9d8e6); background: #fff; color: #1f3864; font: 800 .78rem/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.vaekst-knap[aria-pressed="true"] { background: #1f3864; color: #fff; border-color: #1f3864; }
.vaekst-knap--primaer { background: #12a08a; border-color: #12a08a; color: #fff; }
.vaekst-knap--rolig { color: #5a6b82; }
.vaekst-forhold, .vaekst-forklar { margin: 0; font-size: .84rem; line-height: 1.5; color: #3b4b63; }
.vaekst-forklar { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #dbe8f5; }
.vaekst-tid { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .8rem; font-weight: 800; color: #5a6b82; }
.vaekst-tid input { width: 100%; accent-color: #12a08a; height: 32px; }
.vaekst-tid b { color: #0d2038; min-width: 78px; text-align: right; }
.vaekst-graf { width: 100%; height: auto; background: #fff; border: 1px solid var(--line, #c9d8e6); border-radius: 12px; }
.vaekst-log { display: flex; gap: 8px; align-items: center; font-size: .76rem; color: #5a6b82; }

@media (max-width: 760px) {
  .drop-grid, .vaekst-grid { grid-template-columns: 1fr; }
  .drop-kammer svg { max-width: 110px; }
}
@media (prefers-color-scheme: dark) {
  .drop-sektion, .vaekst-sektion { background: #12233b; border-color: #223a5a; }
  .drop-sektion h3, .vaekst-sektion h3 { color: #e8f0fa; }
  .drop-panel, .vaekst-scene, .vaekst-forklar, .drop-opgave { background: #16294a; border-color: #2a4468; }
  .drop-intro, .drop-res p, .vaekst-forhold, .vaekst-forklar, .drop-opgave__spm, .drop-celle__tekst, .drop-kammer__tal { color: #cfdcec; }
  .drop-felt__input, .drop-felt select, .drop-fane, .vaekst-knap, .drop-knap--rolig { background: #12233b; border-color: #2a4468; color: #e8f0fa; }
  .drop-felt input { color: #e8f0fa; }
  .drop-res { background: linear-gradient(160deg, #10352f, #16294a); border-color: #1d5a4e; }
  .drop-res__top b, .vaekst-tal b, .drop-kammer__tal b { color: #fff; }
}
