/* beredskaQet — Manualer (2026-10-24, DC)
   Bygger oven på stats-live.css (variabler, header, footer, .panel, .pill).
   Rører ikke farver eller baggrund. Kun manual-specifikke klasser. */

/* ── spiller-manualens kort ─────────────────────────────────────────────── */
.man-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.man-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 15px;
}

.man-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}

.man-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.man-card code,
.man-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* ── de to store knapper ────────────────────────────────────────────────── */
.man-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.man-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 22px 22px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  color: var(--text);
  font: inherit;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.man-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 54, .5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.man-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.man-btn .ikon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 21px;
  background: rgba(255, 210, 54, .1);
  border: 1px solid rgba(255, 210, 54, .28);
}

.man-btn.admin .ikon {
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .3);
}

.man-btn .tekst {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.man-btn .tekst b {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.man-btn .tekst span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.man-btn .laas {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

/* ── gate-besked ────────────────────────────────────────────────────────── */
.man-gate {
  margin-top: 16px;
  padding: 15px 17px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.man-gate.neutral { border-color: rgba(255, 210, 54, .3); background: var(--gold-dim); color: var(--text); }
.man-gate.fejl    { border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .08); color: #ffd9d9; }
.man-gate.ok      { border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); color: #d8ffe4; }

.man-gate a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.man-gate[hidden] { display: none; }

/* ── selve manualen ─────────────────────────────────────────────────────── */
.man-doc h3 {
  margin: 22px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.man-doc h3:first-of-type { margin-top: 6px; }

.man-doc p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 80ch;
}

.man-doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.man-doc li { margin-bottom: 5px; }
.man-doc li b, .man-doc p b { color: var(--text); font-weight: 600; }

.man-doc .kommando-tabel {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 14px;
  font-size: 13px;
}

.man-doc .kommando-tabel th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 10px 7px 0;
  border-bottom: 1px solid var(--line);
}

.man-doc .kommando-tabel td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.man-doc .kommando-tabel td:first-child { white-space: nowrap; }

/* advarselsboks */
.man-advarsel {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, .45);
  background: rgba(239, 68, 68, .09);
  color: #ffdcdc;
  font-size: 13.5px;
  line-height: 1.6;
}

.man-advarsel b { color: #fff; }

.man-advarsel .titel {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #ff9c9c;
}

/* trin */
.man-trin {
  counter-reset: trin;
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
}

.man-trin li {
  counter-increment: trin;
  position: relative;
  padding: 0 0 12px 40px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.man-trin li::before {
  content: counter(trin);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 210, 54, .12);
  border: 1px solid rgba(255, 210, 54, .3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.man-doc .luk {
  margin-top: 18px;
}

.man-doc .luk button {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 16px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.man-doc .luk button:hover { color: var(--text); border-color: var(--gold); }

.man-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .man-btn { padding: 18px 16px; gap: 13px; }
  .man-btn .laas { display: none; }
  .man-doc .kommando-tabel td:first-child { white-space: normal; }
}
