/*
 * app-start.css: appens forside med fire indgange (app-start.js, 1.11.2026).
 * Bygger på app-design.css' farver: navy #1f3864, teal #0d6e6e, blæk --ad-ink.
 */

.ps-skjult { display: none !important; }

.ps {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 16px 4px;
  --ps-ink: var(--ad-ink, #142f4b);
  --ps-muted: #5a6b7e;
  --ps-line: rgba(31, 56, 100, .13);
  --ps-card: rgba(255, 255, 255, .94);
  --ps-on: linear-gradient(135deg, #1f3864, #2f5c9a);
  --ps-accent: #0d6e6e;
  --ps-accent-soft: #e3f2f1;
}
.ps[hidden] { display: none; }

.ps-titel {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ps-ink);
}

/* ── Fanerne ── */
.ps-faner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ps-fane {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--ps-line);
  border-radius: 16px;
  background: var(--ps-card);
  color: var(--ps-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px -18px rgba(20, 47, 75, .6);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, background .2s;
}
.ps-fane:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -18px rgba(20, 47, 75, .7); }
.ps-fane:focus-visible { outline: 3px solid #5a9be0; outline-offset: 2px; }
.ps-fane[aria-selected="true"] {
  background: var(--ps-on);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 30px -18px rgba(20, 47, 75, .9);
}
.ps-fane-ikon {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ps-accent-soft);
  color: var(--ps-accent);
}
.ps-fane[aria-selected="true"] .ps-fane-ikon { background: rgba(255, 255, 255, .18); color: #fff; }
.ps-fane-ikon .pp-icon { width: 20px; height: 20px; }
.ps-fane-tekst { display: flex; flex-direction: column; min-width: 0; }
.ps-fane-navn { font-weight: 800; font-size: .98rem; line-height: 1.2; }
.ps-fane-kort { font-size: .72rem; line-height: 1.3; color: var(--ps-muted); }
.ps-fane[aria-selected="true"] .ps-fane-kort { color: rgba(255, 255, 255, .78); }

/* ── Panelet ── */
.ps-panel { padding-top: 14px; }
.ps-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ps-top .ps-titel { margin-bottom: 0; }
.ps-spor { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(15, 118, 110, .1); border: 1px solid rgba(15, 118, 110, .25); }
.ps-spor button { border: 0; background: transparent; color: inherit; font: inherit; font-size: .8rem; font-weight: 750; padding: 6px 12px; min-height: 32px; border-radius: 999px; cursor: pointer; }
.ps-spor button[aria-pressed="true"] { background: #0f766e; color: #fff; }
.ps-spor button:focus-visible { outline: 3px solid #2e75b6; outline-offset: 2px; }
.ps-faner + .ps-panel, .ps-top + .ps-faner { margin-top: 10px; }
.ps-intro { margin: 0 0 10px; font-size: .9rem; color: var(--ps-muted); }
/* Eksamen nærmer sig: rolig besked om Eksamenspas (13.11.2026) */
.ps-pas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px;
  background: rgba(15, 118, 110, .08); border: 1px solid rgba(15, 118, 110, .3); font-size: .88rem; line-height: 1.45; }
.ps-pas > div:first-child { flex: 1 1 260px; }
.ps-pas-knapper { display: flex; gap: 8px; }
.ps-pas button { font: inherit; font-size: .82rem; font-weight: 750; padding: 7px 12px; min-height: 36px; border-radius: 999px; cursor: pointer; border: 1px solid #0f766e; background: #0f766e; color: #fff; }
.ps-pas button[data-pas-nej] { background: transparent; color: inherit; border-color: rgba(15, 118, 110, .4); }
.ps-pas button:focus-visible { outline: 3px solid #2e75b6; outline-offset: 2px; }
.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ps-kort {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--ps-line);
  border-radius: 14px;
  background: var(--ps-card);
  color: var(--ps-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(16, 44, 72, .05);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, border-color .2s;
}
.ps-kort:hover { transform: translateY(-2px); border-color: rgba(13, 110, 110, .35); box-shadow: 0 14px 26px -18px rgba(20, 47, 75, .7); }
.ps-kort:focus-visible { outline: 3px solid #5a9be0; outline-offset: 2px; }
.ps-kort-ikon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ps-accent-soft);
  color: var(--ps-accent);
}
.ps-kort-ikon .pp-icon { width: 22px; height: 22px; }
.ps-kort-tekst { display: flex; flex-direction: column; min-width: 0; }
.ps-kort-navn { font-weight: 750; font-size: .93rem; line-height: 1.25; }
.ps-kort-sub { font-size: .78rem; line-height: 1.35; color: var(--ps-muted); }

/* Praktik: værktøjerne fylder mindre, så situationerne stadig ses lige under */
.ps-grid-kompakt { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ps-grid-kompakt .ps-kort { min-height: 54px; padding: 9px 10px; gap: 10px; }
.ps-grid-kompakt .ps-kort-ikon { flex-basis: 32px; height: 32px; border-radius: 10px; }
.ps-grid-kompakt .ps-kort-ikon .pp-icon { width: 18px; height: 18px; }
.ps-grid-kompakt .ps-kort-sub { display: none; }

/* Trinlinjen og situationerne lige under fanerne */
#ppStart + .steps { padding-top: 6px; }

@media (max-width: 720px) {
  .ps { padding: 14px 16px 2px; }
  .ps-titel { font-size: 1.15rem; margin-bottom: 10px; }
  .ps-faner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-fane { min-height: 54px; padding: 8px 10px; gap: 8px; }
  .ps-fane-ikon { flex-basis: 32px; height: 32px; }
  .ps-grid, .ps-grid-kompakt { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ps-fane-kort { display: none; }
  /* Kompakte genveje på mobil, så situationerne stadig ses lige under */
  .ps-kort { min-height: 54px; padding: 9px 10px; gap: 10px; }
  .ps-kort-ikon { flex-basis: 32px; height: 32px; border-radius: 10px; }
  .ps-kort-ikon .pp-icon { width: 18px; height: 18px; }
  .ps-kort-sub { display: none; }
  .ps-kort-navn { font-size: .86rem; overflow-wrap: break-word; }
  .ps-kort:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-fane, .ps-kort { transition: none; }
  .ps-fane:hover, .ps-kort:hover { transform: none; }
}

/* ── Mørk tilstand (appens egen knap sætter body.dark) ── */
body.dark .ps {
  --ps-ink: #e8eaf6;
  --ps-muted: #9fa6c0;
  --ps-line: #2c3048;
  --ps-card: #171b28;
  --ps-accent: #7fd6d0;
  --ps-accent-soft: #123b3d;
  --ps-on: linear-gradient(135deg, #2a4a80, #3a6aae);
}
