/* Styles for the standalone "Slik beregnes poengene" explainer page
   (templates/scoring.html). Loaded after ranking.css, which is where
   :root's colour tokens (--direct/--playoff/--eliminated etc.), .site-header
   and .brand* live -- this file only adds what's specific to this page, so
   the two headers stay visually identical without duplicating anything. */

.scoring-page {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) 1.25rem clamp(3rem, 8vw, 5rem);
}

.scoring-emblem {
  margin-bottom: 1rem;
  text-align: center;
}

.scoring-emblem img {
  width: clamp(80px, 20vw, 112px);
}

.scoring-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--purple-dark);
  font-weight: 700;
  text-decoration: none;
}

.scoring-back:hover {
  text-decoration: underline;
}

.scoring-page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--navy);
}

.scoring-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.scoring-section {
  margin-bottom: 1.75rem;
}

.scoring-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.scoring-section p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.scoring-max {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* The example graphic: a single bar split into the same three zones and
   colours already used on the ranking page itself, so a participant who
   has seen that page recognises this instantly instead of learning a new
   visual language just for this explanation. */
.zone-bar {
  display: flex;
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.zone-bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.zone-bar-direct {
  background: var(--direct);
  color: var(--direct-strong);
}

.zone-bar-playoff {
  background: var(--playoff);
  color: var(--playoff-strong);
}

.zone-bar-eliminated {
  background: var(--eliminated);
  color: var(--eliminated-strong);
}

/* The five bonuses as a compact list -- one line each rather than a
   heading-plus-paragraph-plus-table block per bonus, which read as five
   separate legal clauses (Marius's "ser ut som en kontrakt" feedback).
   A divider between rows keeps them scannable without extra vertical
   rhythm from repeated headings. */
.scoring-bonus-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scoring-bonus-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}

.scoring-bonus-list li:last-child {
  border-bottom: none;
}

.scoring-bonus-list strong {
  color: var(--navy);
}

/* Inline example clause inside a bonus's own list item, so the worked
   example sits right next to the rule it illustrates instead of living in
   a separate box further down the page. */
.scoring-example {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.scoring-footnote {
  color: var(--muted);
  font-size: 0.9rem;
}

.scoring-footnote a {
  color: var(--purple-dark);
  font-weight: 650;
}

@media (max-width: 480px) {
  .zone-bar {
    flex-direction: column;
  }

  .zone-bar-segment {
    padding: 0.6rem;
  }
}

/* ---- "Premiefordeling" page (templates/prizes.html) ---- */

.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.prize-table th,
.prize-table td {
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid var(--border, #e4e2f0);
  text-align: left;
  font-weight: 500;
}

.prize-table thead th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prize-table tbody th {
  font-weight: 650;
}

.prize-table .prize-amount {
  text-align: right;
  white-space: nowrap;
  font-weight: 750;
}

.prize-table .prize-note {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.prize-table .prize-top th,
.prize-table .prize-top td {
  color: var(--navy);
  font-size: 1.15rem;
}

.prize-table .prize-reserve th,
.prize-table .prize-reserve td {
  color: var(--muted);
  font-style: italic;
}

.prize-table tfoot th,
.prize-table tfoot td {
  border-bottom: 0;
  border-top: 2px solid var(--navy);
  font-weight: 800;
}
