:root {
  --paper: #e3d8c6;
  --ink: #141210;
  --soft: #4a433b;
  --red: #c5392b;
  --green: #1c8a4b;
  --grey: #b9ad9c;
  --rule: #141210;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px),
    radial-gradient(rgba(0,0,0,.035) 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
  color: var(--ink);
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  line-height: 1.25;
}
.page { max-width: 880px; margin: 0 auto; padding: 20px 16px 40px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  font: inherit; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 15px;
  padding: 7px 12px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.tab.on { background: var(--ink); color: var(--paper); }
.tab .count { opacity: .6; font-weight: 400; margin-left: 4px; }

.kicker { color: var(--red); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0; font-size: 18px; }
h1 { font-size: clamp(44px, 11vw, 84px); line-height: .95; margin: 4px 0 10px; text-transform: uppercase; letter-spacing: -.01em; }
.sub { margin: 0 0 6px; color: var(--soft); font-size: 19px; font-weight: 500; }
.legend { margin: 0 0 12px; color: var(--soft); font-size: 16px; display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; }
.legend .dot { margin-left: 10px; }
.legend .dot:first-child { margin-left: 0; }

.dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; flex: none; }
.dot.for { background: var(--green); }
.dot.against { border: 3px solid var(--red); background: transparent; }
.dot.none { background: var(--grey); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--rule); }
.row { border-bottom: 1px solid rgba(20,18,16,.18); }
.row-main {
  width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer;
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 170px 96px; gap: 14px; align-items: center; padding: 12px 0;
}
.team {
  position: relative; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px;
}
.badge {
  position: absolute; right: -8px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff; border: 2px solid var(--paper);
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700;
}
.who { min-width: 0; }
.name { font-size: 30px; font-weight: 700; text-transform: uppercase; line-height: 1; overflow-wrap: anywhere; }
.pos { color: var(--soft); font-weight: 500; font-size: 16px; letter-spacing: .05em; }
.reason { display: block; color: var(--soft); font-size: 18px; font-weight: 400; margin-top: 4px; }
.consensus { display: flex; flex-direction: column; gap: 3px; }
.marks { display: flex; gap: 3px; flex-wrap: wrap; }
.label { font-weight: 500; letter-spacing: .1em; font-size: 16px; }
.tally { color: var(--soft); font-size: 13px; }
.bid { color: var(--red); font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.rankbox { text-align: right; }
.posrank { display: block; font-size: 36px; font-weight: 700; line-height: 1; }
.proj { color: var(--soft); font-size: 15px; font-weight: 500; }

.details { padding: 0 0 14px 90px; }
.details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.detail { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.4; border-left: 4px solid var(--grey); padding-left: 10px; }
.detail.for { border-color: var(--green); }
.detail.against { border-color: var(--red); }
.d-show { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: block; }
.d-stance { color: var(--soft); display: block; }
.d-quote { display: block; font-style: italic; }
.d-link { color: var(--red); }

.empty { border-top: 3px solid var(--rule); padding: 28px 0; font-size: 22px; color: var(--soft); }
.foot { margin-top: 28px; color: var(--soft); font-size: 15px; font-weight: 400; }
.missing { margin: 0 0 10px; }
.weeks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.weeks a, .foot a { color: var(--ink); }
.built { margin: 0; }

/* Show ratings page */
.shows { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--rule); }
.show { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(20,18,16,.18); }
.rating { font-size: 54px; font-weight: 700; line-height: 1; }
.rating.na { font-size: 17px; font-weight: 500; color: var(--soft); line-height: 1.2; }
.show h2 { margin: 0; font-size: 26px; text-transform: uppercase; }
.record { color: var(--soft); margin: 2px 0 6px; font-size: 17px; }
.recent { font-family: Georgia, serif; font-size: 14px; margin: 2px 0; }
.recent b { font-family: "Oswald", sans-serif; letter-spacing: .05em; }
.recent.right b { color: var(--green); }
.recent.wrong b { color: var(--red); }

@media (max-width: 640px) {
  .page { padding: 14px 12px 32px; }
  .row-main { grid-template-columns: 52px minmax(0, 1fr) 64px; gap: 10px; }
  .team { width: 48px; height: 48px; font-size: 16px; border-width: 2px; }
  .badge { width: 22px; height: 22px; font-size: 13px; right: -6px; bottom: -5px; }
  .name { font-size: 21px; }
  .reason { font-size: 15px; }
  .consensus { grid-column: 2 / 4; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .rankbox { grid-column: 3; grid-row: 1; }
  .posrank { font-size: 22px; }
  .proj { font-size: 12px; }
  .dot { width: 11px; height: 11px; }
  .label, .bid { font-size: 13px; }
  .details { padding-left: 0; }
  .sub { font-size: 16px; }
  .show { grid-template-columns: 64px minmax(0, 1fr); }
  .rating { font-size: 38px; }
}
