/* THE RANKS — board styles (DESIGN.md §3). Loaded only on /ranks pages,
   layered on site.css tokens. Phone-first; desktop widens the column. */

.rk-method { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.rk-stale { margin: 14px 0; padding: 12px 14px; border: 1px solid rgba(255, 176, 32, .55);
  background: rgba(255, 176, 32, .08); border-radius: 10px; font-size: 14px; }
.rk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.rk-chip { display: inline-block; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--text); text-decoration: none; font-size: 13px;
  font-family: "Oswald", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.rk-chip:hover { border-color: rgba(255,31,31,.55); }
.rk-chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Podium — CSS depth: stepped tiers, layered shadows, centre highest. */
.rk-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px;
  align-items: end; margin: 22px 0 8px; perspective: 900px; }
.rk-pod { display: block; text-decoration: none; color: var(--text); text-align: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 8px 14px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  box-shadow: 0 18px 34px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); }
.rk-pod-1 { padding-top: 24px; border-color: rgba(212,175,55,.6);
  background: linear-gradient(180deg, rgba(212,175,55,.13), var(--glass)); }
.rk-pod-2 { transform: translateY(10px); }
.rk-pod-3 { transform: translateY(16px); }
.rk-pod-rank { font-family: "Oswald", sans-serif; font-size: 30px; font-weight: 700; line-height: 1; }
.rk-pod-1 .rk-pod-rank { font-size: 38px; color: #d4af37; }
.rk-crown { font-size: 22px; line-height: 1; }
.rk-pod-name { display: block; font-family: "Oswald", sans-serif; font-size: 17px;
  font-weight: 600; text-transform: uppercase; margin-top: 8px; overflow-wrap: anywhere; }
.rk-pod-1 .rk-pod-name { font-size: 20px; }
.rk-pod-num { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px;
  font-variant-numeric: tabular-nums; }
.rk-mono { width: 52px; height: 52px; margin: 0 auto 8px; border: 2px solid var(--red);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 19px; color: #fff; }
.rk-pod-1 .rk-mono { border-color: #d4af37; }

/* Board rows — the stepped 3D list. */
.rk-board { margin: 14px 0 6px; border-top: 1px solid var(--line); }
.rk-row { display: grid; grid-template-columns: 52px 34px 1fr auto; gap: 8px;
  align-items: center; min-height: 56px; padding: 8px 6px; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.rk-row:hover { background: var(--glass-2); }
.rk-row .rk-rank { font-family: "Oswald", sans-serif; font-size: 24px; font-weight: 700;
  text-align: center; font-variant-numeric: tabular-nums; }
.rk-move { font-size: 11.5px; font-weight: 700; text-align: center; white-space: nowrap; }
.rk-move.up { color: #40c774; } .rk-move.down { color: #ff5c5c; }
.rk-move.flat { color: var(--muted-2); } .rk-move.new { color: #d4af37; }
.rk-move.return { color: #6cb2f5; }
.rk-name { display: block; font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.rk-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.rk-num { text-align: right; font-variant-numeric: tabular-nums; }
.rk-num b { display: block; font-size: 16px; font-weight: 700; }
.rk-num span { color: var(--muted); font-size: 12px; }
.rk-tied { color: #d4af37; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.rk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #ffb020; margin-left: 5px; vertical-align: middle; }
.rk-unranked { margin: 18px 0; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.rk-unranked h3 { margin: 0 0 8px; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 16px; }
.rk-unranked p { margin: 4px 0; color: var(--muted); font-size: 14px; }

/* Strips: battles + climbers. */
.rk-strip { margin: 26px 0; }
.rk-battles { display: grid; gap: 10px; }
.rk-battle { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--glass); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.rk-battle a { color: var(--text); font-weight: 700; text-decoration: none; }
.rk-battle a:hover { color: var(--red); }
.rk-vs { color: var(--red); font-family: "Oswald", sans-serif; font-weight: 700; }
.rk-gap { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rk-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #d4af37; border: 1px solid rgba(212,175,55,.5); padding: 2px 8px; border-radius: 999px; }
.rk-climb-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px;
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rk-climb-row a { color: var(--text); font-weight: 700; text-decoration: none; }
.rk-gain { color: #40c774; font-weight: 700; }

/* FAN VOTE surfaces — visually distinct (gold tint) from the data chart. */
.rk-fan { margin: 26px 0; padding: 16px; border: 1px solid rgba(212,175,55,.45);
  border-radius: 14px; background: linear-gradient(180deg, rgba(212,175,55,.07), rgba(212,175,55,.02)); }
.rk-fan-label { display: inline-block; background: #d4af37; color: #111; font-weight: 800;
  font-size: 11px; letter-spacing: .14em; padding: 3px 9px; border-radius: 4px; text-transform: uppercase; }
.rk-fan h2, .rk-fan h3 { font-family: "Oswald", sans-serif; text-transform: uppercase; margin: 10px 0 4px; }
.rk-fan .rk-note { color: var(--muted); font-size: 13px; }
.rk-stand-row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 8px; align-items: center;
  padding: 7px 2px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rk-stand-row a { color: var(--text); font-weight: 700; text-decoration: none; }

/* Vote widgets. */
.rk-widget { margin: 14px 0; }
.rk-opt { display: block; width: 100%; text-align: left; margin: 8px 0; padding: 12px 14px;
  min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass);
  color: var(--text); cursor: pointer; font: inherit; position: relative; overflow: hidden; }
.rk-opt:hover { border-color: rgba(212,175,55,.6); }
.rk-opt .rk-bar { position: absolute; inset: 0 auto 0 0; background: rgba(212,175,55,.22); width: 0;
  transition: width .6s ease; }
.rk-opt .rk-opt-label { position: relative; font-weight: 700; display: block; }
.rk-opt .rk-opt-sub { position: relative; color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.rk-opt .rk-opt-pct { position: relative; float: right; font-family: "Oswald", sans-serif; font-weight: 700; }
.rk-opt.picked { border-color: #d4af37; box-shadow: 0 0 0 1px #d4af37 inset; }
.rk-widget .rk-note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.rk-widget .rk-total { color: var(--muted); font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rk-search { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; margin: 8px 0; }
.rk-share-vote { margin-top: 10px; }

/* Contact block (§16) — same block on profiles + charts. */
.rk-contact { margin: 26px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--glass); font-size: 15px; line-height: 1.55; }
.rk-contact strong { color: #fff; }

/* Profile pages. */
.rk-rankblock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.rk-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; background: var(--glass); }
.rk-stat b { display: block; font-family: "Oswald", sans-serif; font-size: 26px; font-variant-numeric: tabular-nums; }
.rk-stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.rk-card-img { width: 100%; max-width: 560px; border-radius: 14px; display: block; margin: 14px auto; }
.rk-spark { width: 100%; height: auto; display: block; margin: 8px 0; }
.rk-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.rk-table th, .rk-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.rk-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.rk-fight { margin: 18px 0; }
.rk-fight-row { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.rk-fight-row a { color: var(--text); font-weight: 700; text-decoration: none; }

/* Submit form + hall of fame. */
.rk-form label { display: block; margin: 14px 0 5px; font-weight: 700; font-size: 14px; }
.rk-form input, .rk-form select, .rk-form textarea { width: 100%; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; }
.rk-form .rk-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.rk-form .rk-check input { width: auto; margin-top: 4px; }
.rk-hof-entry { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; background: var(--glass); }
.rk-hof-entry h3 { margin: 0 0 6px; font-family: "Oswald", sans-serif; text-transform: uppercase; }

.rk-foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0; }
.rk-foot-links a { color: var(--muted); font-size: 14px; }
.rk-flip { transition: transform .7s cubic-bezier(.2,.7,.2,1); will-change: transform; }

@media (min-width: 768px) {
  .rk-battles { grid-template-columns: 1fr 1fr; }
  .rk-row { grid-template-columns: 64px 40px 1fr auto; padding: 10px 12px; }
  .rk-pod-name { font-size: 20px; } .rk-pod-1 .rk-pod-name { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-flip { transition: none; }
  .rk-opt .rk-bar { transition: none; }
}

/* Profile enrichment (§4.1): history / why-this-rank / sources. */
.rk-bio { font-size: 16px; line-height: 1.65; margin: 10px 0 6px; }
.rk-credit { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 4px 0 10px; }
.rk-credit a, .rk-sources a { color: var(--text); font-weight: 700; }
.rk-why, .rk-sources { margin: 10px 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.rk-why li, .rk-sources li { margin: 7px 0; }
.rk-why a { color: var(--text); font-weight: 700; }

/* Artist search (§4.2) + chart-row anchor highlight. */
.rk-search { position: relative; margin: 16px 0 6px; }
.rk-search-label { display: block; font-family: "Oswald", sans-serif;
  text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
  color: var(--muted); margin-bottom: 6px; }
.rk-search-input { width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font: inherit; font-size: 16px; }
.rk-search-results { position: absolute; left: 0; right: 0; top: 100%;
  z-index: 30; margin-top: 6px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg-2); overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.rk-search-hit { display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--line); }
.rk-search-hit:last-child { border-bottom: none; }
.rk-search-main { flex: 1; display: block; padding: 11px 12px;
  text-decoration: none; color: var(--text); min-height: 44px; }
.rk-search-name { font-weight: 700; }
.rk-search-rank { color: #ff1f1f; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.rk-search-sub { display: block; color: var(--muted); font-size: 13px;
  margin-top: 2px; }
.rk-search-jump { display: flex; align-items: center; padding: 0 12px;
  color: var(--muted); font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap; }
.rk-search-none { padding: 12px; color: var(--muted); font-size: 14px;
  line-height: 1.5; margin: 0; }
.rk-row:target { background: rgba(255,31,31,.16);
  box-shadow: inset 0 0 0 2px #ff1f1f; }

/* Artist photos (2026-11-12) — licensed Commons photos in the same
   circular PF slots the monogram has always occupied. Fail-fast: an
   artist without a complete credit record never gets an <img>. */
.rk-photo { width: 52px; height: 52px; margin: 0 auto 8px; display: block;
  border: 2px solid var(--red); border-radius: 50%; object-fit: cover; }
.rk-pod-1 .rk-photo { border-color: #d4af37; }
.rk-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rk-photo-sm { width: 40px; height: 40px; flex: none; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--red); }
.rk-mono-sm { width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--red); display: flex; align-items: center;
  justify-content: center; font-family: "Oswald", sans-serif;
  font-weight: 700; font-size: 15px; color: #fff; }
.rk-row { scroll-margin-top: 160px; }
.rk-has-pf { display: flex; gap: 18px; align-items: center; }
.rk-pf { width: 88px; height: 88px; flex: none; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--red); }
.rk-head-txt { min-width: 0; }
.rk-photocredit { color: var(--muted); font-size: 11.5px; line-height: 1.6;
  margin: 18px 0 0; text-align: center; }
.rk-photocredit a { color: var(--muted); text-decoration: underline; }

/* Chart layout — Fan Vote sidebar (president's order 2026-11-12): the
   podium stays put; below it the chart list shifts left and the voting
   suite rides a sticky right rail level with the first rows, so the
   chart and the votes are seen together. On narrow screens the rail
   stacks between the first 10 rows and the rest of the list (the
   board_split seam) — never under the full list. */
.rk-col-top .rk-board { margin-bottom: 0; }
.rk-col-rest .rk-board { margin-top: 0; border-top: none; }
.rk-side .rk-fan { margin: 0 0 16px; }
.rk-side .rk-strip { margin: 0; }
.rk-side .section-head { margin-bottom: 10px; }
.rk-side .section-title { font-size: 21px; }
@media (max-width: 899px) {
  .rk-layout { display: flex; flex-direction: column; }
  .rk-side { margin: 22px 0 6px; }
}
@media (min-width: 900px) {
  .rk-layout { display: grid; align-items: start; gap: 6px 26px;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas: "top side" "rest side"; }
  .rk-col-top { grid-area: top; min-width: 0; }
  .rk-col-rest { grid-area: rest; min-width: 0; }
  .rk-side { grid-area: side; min-width: 0; position: sticky; top: 156px;
    max-height: calc(100vh - 172px); overflow-y: auto;
    scrollbar-width: thin; padding: 2px 2px 8px; }
}
@media (min-width: 1200px) {
  .rk-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* What's Happening — profile movement section (2026-11-14, §18). */
.rk-whats { display: flex; gap: 18px; align-items: flex-start; }
.rk-whats-arrow { font-size: 44px; font-weight: 800; line-height: 1;
  min-width: 52px; text-align: center; }
.rk-whats-arrow.up { color: #40c774; } .rk-whats-arrow.down { color: #ff5c5c; }
.rk-whats-arrow.flat { color: var(--muted-2); } .rk-whats-arrow.new { color: #d4af37; font-size: 26px; padding-top: 8px; }
.rk-whats-label { font-family: "Oswald", sans-serif; text-transform: uppercase;
  font-size: 21px; font-weight: 700; margin: 2px 0 4px; letter-spacing: .02em; }
.rk-whats-sent { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.5; }
.rk-why-line { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; }
.rk-why-line a { color: var(--red); }

/* Board Memory — permanent record strip, return note, alumni (2026-11-14, §19). */
.rk-whats-arrow.return { color: #6cb2f5; font-size: 24px; padding-top: 8px; }
.rk-mem-line { margin: 6px 0; font-size: 15.5px; line-height: 1.55; }
.rk-mem-ret { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: #6cb2f5; }
.rk-offboard { border-color: rgba(108, 178, 245, .55); }
