/* TDSC/AUC theme for pwa-container, after the TDSC case book (P126, tdsc-auc.sty):
   AUC colours, Helvetica body text, geometric grotesque (URW Gothic / TeX Gyre Adventor)
   for headings, square corners and cyan rules. Triage colours are deliberately not used.
   Cyan reaches only about 2:1 against white, so it stays a decorative accent (rules, bars,
   section numbers beside their titles);
   the focus ring and control borders use darker colours with at least 3:1 (WCAG 1.4.11). */

@font-face {
  font-family: 'TDSC Gothic';
  src: url('fonts/texgyreadventor-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TDSC Gothic';
  src: url('fonts/texgyreadventor-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --auc-navy: #0a283c;
  --auc-blau: #0f427a;
  --auc-cyan: #14beed;
  --auc-grau: #f4f6f8;
  --auc-linie: #dae3eb;
  --auc-text: #141414;
  --auc-mittel: #5b6b78;
  --auc-kontur: #7a8a99; /* 3.5:1 on white, 3.3:1 on --auc-grau */

  --c-page: var(--auc-grau);
  --c-surface: #ffffff;
  --c-surface-muted: var(--auc-grau);
  --c-border: var(--auc-linie);
  --c-control-border: var(--auc-kontur);
  --c-text: var(--auc-text);
  --c-muted: var(--auc-mittel);
  --c-header-bg: var(--auc-navy);
  --c-header-fg: #ffffff;
  --c-header-muted: #b9c8d4;
  --c-accent: var(--auc-cyan);
  --c-primary: var(--auc-blau);
  --c-primary-fg: #ffffff;
  --c-focus: var(--auc-blau); /* 10:1 on white */
  --font-body: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif;
  --font-heading: 'TDSC Gothic', 'URW Gothic', 'Century Gothic', 'Avant Garde', var(--font-body);
  --radius: 0;
  --rule: 3px;
}

/* Header like the case book: navy band with a cyan rule. */
.brand {
  color: var(--auc-cyan);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.95rem;
}

.masthead-title {
  font-weight: 700;
}

/* Section headings: navy text, cyan number (as \section in tdsc-auc.sty). */
.section-title,
.page-title {
  color: var(--auc-navy);
}

.section-num,
.review-num {
  /* Text needs ≥ 3:1 (large text); cyan stays for rules and accents only. */
  color: var(--auc-blau);
}

/* Question cards like the case book's case cards: white, thin rule, cyan top line. */
.item-card {
  border-color: var(--auc-linie);
  border-top: 3px solid var(--auc-cyan);
}

.item-text {
  color: var(--auc-navy);
}

/* The section description as the case book's grey box with a cyan bar on the left. */
.section-desc {
  background: var(--auc-grau);
  border-left-color: var(--auc-cyan);
  border: 1px solid var(--auc-linie);
  border-left: 3px solid var(--auc-cyan);
}

.legend dt {
  font-family: var(--font-heading);
  color: var(--auc-blau);
}

.scale-btn {
  font-family: var(--font-heading);
  border-color: var(--c-control-border);
  color: var(--auc-navy);
}

.scale-btn.is-selected {
  background: var(--auc-blau);
  border-color: var(--auc-blau);
  color: #ffffff;
}

.scale-btn.scale-na {
  color: var(--auc-mittel);
}

.scale-btn.scale-na.is-selected {
  color: #ffffff;
}

.btn {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--auc-navy);
}

.btn-primary:hover {
  background: var(--auc-blau);
}

.progress-bar {
  height: 4px;
}

.panel {
  border-left-color: var(--auc-cyan);
}

.panel.panel-error {
  border-left-color: var(--c-error);
}

.page-footer {
  border-top: 1.2px solid var(--auc-cyan);
}
