/* Sorting Floor player wiki. Tokens match the art site design system
   (navy app background, fog text, gold accent, Noto Sans). */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+Mono:wght@500;700&display=swap');

:root {
  --navy-950: #08080a;
  --navy-900: #171b22;
  --navy-850: #1c212b;
  --navy-700: #242933;
  --navy-600: #2e3645;
  --navy-500: #40495c;
  --slate-400: #7c8598;
  --slate-300: #b3bac9;
  --fog-100: #eef0f5;
  --fog-200: #e0e6f0;
  --blue-300: #5fa0e0;
  --blue-400: #4580c7;
  --gold-400: #e6b333;
  --amber-300: #ffd973;
  --green-600: #3fa65c;
  --red-300: #ff8080;
  --red-500: #8c3340;
  --bg-app: var(--navy-950);
  --surface-panel: rgba(28, 33, 39, 0.92);
  --border-panel: var(--navy-500);
  --text-primary: var(--fog-100);
  --text-muted: var(--slate-300);
  --font-ui: 'Noto Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Noto Sans Mono', ui-monospace, monospace;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius-sm: 6px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1000px 480px at 8% -10%, #1a3358 0%, transparent 55%),
    radial-gradient(800px 420px at 100% 0%, #2a2210 0%, transparent 42%),
    var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--blue-300); text-decoration: none; }
a:hover { color: #7eb6ea; text-decoration: underline; }
code, kbd {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
kbd {
  display: inline-block;
  background: #0e141c;
  border: 1px solid var(--border-panel);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 6px;
  color: var(--fog-200);
  line-height: 1.5;
}

.shell { max-width: 1120px; margin: 0 auto; padding: 0 22px 72px; }

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--border-panel);
  margin-bottom: 22px;
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.brand:hover { text-decoration: none; color: inherit; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.brand strong { font-size: 18px; font-weight: 700; }
.search-wrap { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-wrap input {
  width: 100%;
  background: var(--navy-900);
  color: var(--text-primary);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
}
.search-wrap input:focus {
  outline: 2px solid var(--gold-400);
  outline-offset: 1px;
}
#results {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--navy-850);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-height: 360px;
  overflow: auto;
}
#results.open { display: block; }
#results a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(64, 73, 92, 0.55);
  color: var(--text-primary);
  text-decoration: none;
}
#results a:hover { background: var(--navy-700); color: var(--gold-400); }
#results .hit-title { font-weight: 650; }
#results .hit-where { color: var(--slate-400); font-size: 13px; }
#results .empty { padding: 12px; color: var(--text-muted); }

.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
}

.sidenav {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: var(--surface-panel);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-md);
}
@media (max-width: 860px) {
  .sidenav { position: static; flex-direction: row; flex-wrap: wrap; }
}
.sidenav a {
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-decoration: none;
}
.sidenav a:hover { color: var(--text-primary); background: var(--navy-700); }
.sidenav a[aria-current="page"] {
  color: #1a1a1a;
  background: var(--gold-400);
  font-weight: 700;
}

article h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
}
.lede { margin: 0 0 18px; color: var(--text-muted); max-width: 68ch; }
h2 {
  margin: 28px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  border-left: 3px solid var(--blue-400);
  padding-left: 10px;
}
h3 { margin: 18px 0 6px; font-size: 17px; }
p { margin: 0 0 12px; max-width: 78ch; }
ul, ol { margin: 0 0 12px; padding-left: 1.2em; max-width: 78ch; }
li { margin: 0 0 6px; }

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}
.badge.progress {
  background: #3a2e12;
  color: var(--amber-300);
  border: 1px solid var(--gold-400);
}
.badge.debug {
  background: #2a1520;
  color: var(--red-300);
  border: 1px solid var(--red-500);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.card {
  display: block;
  background: var(--surface-panel);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.card:hover { border-color: var(--gold-400); text-decoration: none; color: inherit; }
.card strong { display: block; margin-bottom: 4px; color: var(--fog-100); }
.card span { color: var(--text-muted); font-size: 14px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
  background: var(--surface-panel);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-md);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(64, 73, 92, 0.65);
  vertical-align: top;
}
th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  background: var(--navy-900);
  font-weight: 650;
}
tr:last-child td { border-bottom: 0; }
td.keys { white-space: nowrap; font-family: var(--font-mono); }

.note {
  background: rgba(69, 128, 199, 0.12);
  border: 1px solid var(--blue-400);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 0 0 16px;
  max-width: 78ch;
}
footer.site {
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--border-panel);
  color: var(--slate-400);
  font-size: 13px;
}
