/*
 * Season site additions. main.css is the main site's compiled stylesheet, copied unchanged (fonts point to
 * /fonts/). This file only adds what the main site has no pattern for, built from the same colour roles
 * (--p-* variables), fonts and spacing. No animations here: motion is limited to the countdown text.
 */

/* Factions: one colour and one mark each, used the same way on every page.
   Cartel = warn (amber), diamond. State = accent2 (indigo), circle. Both differ from the accent (cyan) that
   marks links and buttons, and the name is always shown next to the mark, so colour is never the only signal. */
:root {
  --season-cartel: var(--p-warn);
  --season-state: var(--p-accent2);
}
.season-faction { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; }
.season-faction--cartel { color: var(--season-cartel); }
.season-faction--state { color: var(--season-state); }
.season-faction-mark { display: inline-block; flex-shrink: 0; width: 0.62em; height: 0.62em; }
.season-faction-mark--cartel { background: var(--season-cartel); transform: rotate(45deg) scale(0.85); }
.season-faction-mark--state { background: var(--season-state); border-radius: 9999px; }
.season-card--cartel { border-top: 2px solid var(--season-cartel); }
.season-card--state { border-top: 2px solid var(--season-state); }

/* Numbers line up in tables and counters. */
.season-num { font-variant-numeric: tabular-nums; }

.season-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.season-stats dd { margin: 0.25rem 0 0; }

/* Phone menu without JavaScript: a <details> under the header (the main site uses a script for this). */
.season-menu > summary { list-style: none; }
.season-menu > summary::-webkit-details-marker { display: none; }
.season-menu-panel { position: absolute; left: 0; right: 0; top: 4rem; }

/* Forms (sign-up). The main site has no forms; these use its line, card and accent colours. */
.season-form { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.season-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; color: var(--p-muted); width: 100%; max-width: 24rem; }
.season-form input[type="text"],
.season-form input:not([type]) {
  width: 100%;
  background: var(--p-surface);
  border: 1px solid var(--p-line-strong);
  border-radius: 0.375rem;
  color: var(--p-fg);
  padding: 0.55rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.season-form input:focus { border-color: var(--p-accent); outline: none; }
.season-form fieldset { border: 1px solid var(--p-line); border-radius: 0.5rem; padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.season-form legend { padding: 0 0.35rem; font-size: 0.75rem; color: var(--p-muted); }
.season-form fieldset label { flex-direction: row; align-items: center; gap: 0.5rem; width: auto; color: var(--p-fg); font-size: 0.875rem; }
.season-form input[type="radio"] { accent-color: var(--p-accent); }
li .season-form { display: inline-flex; margin-left: 0.5rem; }

.season-code { word-break: break-all; }

/* Operator dossier (/me). */
.season-avatar { width: 6rem; height: 6rem; flex-shrink: 0; border-radius: 0.5rem; object-fit: cover; border: 2px solid var(--p-line-strong); background: var(--p-card); }
.season-avatar--sm { width: 2rem; height: 2rem; border-radius: 0.375rem; border-width: 1px; }
.season-avatar--cartel { border-color: var(--season-cartel); }
.season-avatar--state { border-color: var(--season-state); }
.season-avatar--none { border-color: var(--p-line-strong); }
.season-slot { width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 0.375rem; border: 1px dashed var(--p-line-strong); }

/* Crew emblem: SVG drawn from the tag, coloured by the faction class (season-faction--*). */
.season-emblem { flex-shrink: 0; }
.season-emblem--lg { width: 3.5rem; height: 3.5rem; }
.season-emblem--sm { width: 1.5rem; height: 1.5rem; }
h1 .season-emblem { width: 2.5rem; height: 2.5rem; }

/* Season timeline: a vertical line with a dot per step. */
.season-timeline { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding-left: 1.4rem; border-left: 1px solid var(--p-line-strong); margin-left: 0.35rem; }
.season-timeline-item { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.season-timeline-item::before { content: ""; position: absolute; left: -1.78rem; top: 0.4em; width: 0.7rem; height: 0.7rem; border-radius: 9999px; background: var(--p-ink); border: 2px solid var(--p-line-strong); }
.season-timeline-item--done::before { background: var(--p-muted); border-color: var(--p-muted); }
.season-timeline-item--here::before { background: var(--p-accent); border-color: var(--p-accent); }

.season-badge { max-width: 16rem; }
