/* Rating site — broadcast style: dark ground, Oswald in caps, an orange plate on first place. */

:root {
  --ground: #0e1116;
  --panel: #171c23;
  --panel-2: #1d232b;
  --line: #2b333d;
  --ink: #eef2f6;
  --muted: #92a0ae;
  --plate: #e4572e;
  --plate-ink: #ffe2d6;
  --amber: #ffb84d;
  --shell: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); }
a:hover { color: #ffd08a; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--amber);
  color: #0e1116;
  padding: 12px 16px;
  border-radius: 2px;
}

/* ── header ─────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 4px solid var(--plate);
  padding: 18px 0 14px;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.brand { text-decoration: none; color: var(--ink); display: block; }

.brand-kicker {
  display: block;
  font-family: "Oswald", "Golos Text", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plate);
  font-weight: 600;
}

.brand-title {
  display: block;
  font-family: "Oswald", "Golos Text", sans-serif;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--amber); }

.nav a[aria-current="page"] {
  font-weight: 600;
  border-bottom-color: var(--plate);
}

/* ── shared pieces ──────────────────────────────────────────────────────── */

.page-head { margin: 32px 0 20px; }

.kicker {
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plate);
  font-weight: 600;
}

h1 {
  font-family: "Oswald", sans-serif;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 600;
  text-transform: uppercase;
  margin: 8px 0 0;
}

h2 {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.lede {
  color: var(--muted);
  max-width: 680px;
  margin: 12px 0 0;
}

.muted { color: var(--muted); }

.periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}

.periods a {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 11px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.periods a:hover { border-color: var(--amber); }

.periods a[aria-current="page"] {
  background: var(--plate);
  border-color: var(--plate);
  color: #fff;
  font-weight: 500;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 22px 0 28px;
}

.tile {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 18px;
}

.tile-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tile-value {
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.tile-note { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── board ──────────────────────────────────────────────────────────────── */

.boards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.board { flex: 1 1 420px; min-width: 0; }

.board-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.board-head h2 { margin: 0; }
.board--secondary .board-head h2 { color: var(--amber); }
.board-note { font-size: 13px; color: var(--muted); }

.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
}

.row:hover { background: var(--panel-2); }

.row--first { background: var(--plate); }
.row--first:hover { background: #d14a22; }
.row--first .row-meta { color: var(--plate-ink); }
.row--first .row-rank { color: #fff; }

.row-rank {
  font-family: "Oswald", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  width: 44px;
  color: #5b6878;
  font-variant-numeric: tabular-nums;
}

.row-main { flex: 999 1 200px; min-width: 0; }

.row-name {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.row--first .row-name { font-size: 26px; font-weight: 600; color: #fff; }

.row-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

.row-value {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  min-width: 108px;
}

.row-second {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  min-width: 96px;
  color: var(--muted);
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.row--first .row-second { border-left-color: #f09070; color: var(--plate-ink); }
.board--secondary .row-second { color: var(--amber); }

.move { font-size: 12px; color: var(--amber); white-space: nowrap; }
.move--down { color: var(--muted); }

/* ── catalog ────────────────────────────────────────────────────────────── */

.modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.card:hover { border-color: var(--amber); }

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: var(--panel-2);
}

.card-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
}

.card-body { padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }

.card-name {
  font-family: "Oswald", sans-serif;
  font-size: 19px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.15;
}

.card-text { font-size: 13px; color: var(--muted); margin: 0; }

.card-stats {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.tier--resident { background: var(--plate); border-color: var(--plate); color: #fff; }
.tier--regular { background: #3c5064; border-color: #3c5064; color: #eef2f6; }
.tier--archival { border-style: dashed; }

/* ── vignettes: one stroked mark per kind of expertise ──────────────────── */

.vignette {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--amber);
  vertical-align: middle;
}

.vignette svg {
  width: 17px;
  height: 17px;
  display: block;
}

.vignette--sm {
  width: 23px;
  height: 23px;
  margin-left: 9px;
  position: relative;
  top: -2px;
}

.vignette--sm svg { width: 15px; height: 15px; }

.vignette--lg { width: 42px; height: 42px; }
.vignette--lg svg { width: 24px; height: 24px; }

/* On the orange first-place plate the mark takes the plate's own ink. */
.row--first .vignette {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* The portrait keeps its own mark in the corner, cut out of the card ground. */
.card-frame { position: relative; }

.vignette--corner {
  position: absolute;
  right: 10px;
  bottom: -16px;
  width: 36px;
  height: 36px;
  background: var(--panel);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--panel);
}

.vignette--corner svg { width: 20px; height: 20px; }

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.trade {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.chip .vignette { color: var(--amber); }

.trade-line { display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; }

.trade-label {
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trade-head { display: flex; align-items: center; gap: 12px; margin: 0; }

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 14px;
}

.legend-item { display: flex; align-items: center; gap: 12px; min-width: 0; }

.legend-label {
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legend-note { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

/* ── what a guest talks about, built from their own episodes ────────────── */

.summary { margin: 34px 0 10px; }

.summary-field {
  font-family: "Oswald", sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.summary-topics { list-style: none; padding: 0; margin: 18px 0 14px; }

.summary-topics li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.summary-time {
  font-family: "Oswald", sans-serif;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  grid-row: span 3;
}

.summary-topic { font-weight: 600; overflow-wrap: anywhere; }

.summary-role {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-quote { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .summary-topics li { grid-template-columns: 1fr; }
  .summary-time { grid-row: auto; }
}

.tier-section { margin-bottom: 34px; }

.tier-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.tier-head h2 { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}

.chip:hover { border-color: var(--amber); }
.chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.chip span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── guest page ─────────────────────────────────────────────────────────── */

.guest-head {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 32px 0 28px;
}

.guest-photo {
  width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  flex: 0 0 auto;
  background: var(--panel);
}

.guest-main { flex: 999 1 320px; min-width: 0; }

.credit { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 220px; line-height: 1.4; }

.guest-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }

.guest-stat-value {
  font-family: "Oswald", sans-serif;
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.guest-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
}

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline .date { color: var(--muted); font-size: 13px; width: 96px; font-variant-numeric: tabular-nums; }
.timeline .title { flex: 999 1 240px; min-width: 0; }
.timeline .views { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }

/* ── method, notes, footer ──────────────────────────────────────────────── */

.prose { max-width: 720px; }
.prose p { color: var(--muted); }
.prose h2 { margin-top: 28px; }

.callout {
  border: 1px dashed #3c4650;
  padding: 18px 20px;
  margin: 28px 0;
  color: var(--muted);
}

.loading, .error { color: var(--muted); padding: 40px 0; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p { margin: 0 0 8px; max-width: 820px; }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .brand-title { font-size: 26px; }
  .row-rank { width: 34px; font-size: 24px; }
  .row-value { font-size: 20px; min-width: 84px; }
  .row-second { min-width: 76px; padding-left: 10px; }
  .guest-photo { width: 100%; max-width: 280px; }
}

.periods--months {
  margin-top: 6px;
}

.periods--months a {
  font-size: 13px;
  padding: 9px 13px;
  background: transparent;
}

/* Nothing may make the page scroll sideways: a long name wraps, a flex or grid child
   is allowed to shrink below its content, and the shell never exceeds the viewport. */
html,
body {
  max-width: 100%;
}

.shell {
  width: 100%;
}

.row,
.card,
.guest-main,
.timeline li {
  min-width: 0;
}

.row-value,
.row-second {
  flex-shrink: 0;
}

.card-name,
.guest-stat-value,
.tile-value {
  overflow-wrap: anywhere;
}
