/* ===== Rankings ==============================================================
   Builder (/create/ranking, .rkc-*): full-page workspace — 316px browse rail |
   board, split by a vertical hairline. Table ⇄ Article format toggle.
   Published (/p/{slug}, .rk-*): render driven by the board's saved format.
   Dark #0f1216 tokens, white accent, green/red only for attention deltas. */

/* ---------- workspace ---------- */
/* Full-bleed app workspace: break out of Pico's centered container (the site
   rail already owns the left edge via body.has-rail padding). */
.page-create-ranking main.container { max-width: 100%; width: 100%; padding-left: 0; padding-right: 0; }
.rkc-page { color: #fff; font-variant-numeric: tabular-nums; }
.rkc-workspace {
  display: flex; gap: 30px; align-items: flex-start;
  /* Floor at viewport height so the rail (sticky, viewport-tall) and its
     divider run all the way down to meet the footer on short boards. */
  min-height: calc(100vh - var(--rkc-chrome-h, 64px));
}

/* ---------- segmented control ---------- */
.rkc-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); }
.rkc-seg-btn {
  padding: 5px 13px; margin: 0; border: none; border-radius: 6px; background: transparent;
  color: rgba(255, 255, 255, 0.42); font: 700 12px Inter, sans-serif; cursor: pointer;
  box-shadow: none; white-space: nowrap;
}
.rkc-seg-sm .rkc-seg-btn { padding: 4px 11px; font-size: 11.5px; }
.rkc-seg-btn.is-on { background: #fff; color: #0f1216; }
.rkc-seg-btn:focus { outline: none; box-shadow: none; }

/* ---------- browse rail ---------- */
/* Built-in sidebar: sticky full-height next to the global site rail, its own
   scroll. --rkc-chrome-h (nav + ticker) is measured by syncChrome() in
   ranking-composer.js. */
.rkc-rail {
  width: 360px; flex: none; box-sizing: border-box;
  display: flex; flex-direction: column;
  position: sticky; top: var(--rkc-chrome-h, 64px);
  height: calc(100vh - var(--rkc-chrome-h, 64px));
  overflow-y: auto; overscroll-behavior: contain;
  /* no visible scrollbar — the hairline divider stays clean */
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 26px 24px 30px 26px;
  /* rail rides the RIGHT edge of the workspace — divider on its left */
  order: 2; margin-left: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.rkc-rail::-webkit-scrollbar { width: 0; height: 0; display: none; }
.rkc-rail-top { flex: none; display: flex; align-items: center; margin-bottom: 12px; }
.rkc-rail-close {
  display: none; margin-left: auto; width: 30px; height: 30px; padding: 0; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: rgba(255, 255, 255, 0.6);
  font-size: 15px; cursor: pointer; box-shadow: none; align-items: center; justify-content: center;
}
/* Matches the site's global search fields (40px, transparent, .15 hairline).
   flex:none — without it the rail's flex column shrinks this to a sliver
   whenever the list overflows. */
.rkc-search-box {
  flex: none; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px;
  border-radius: 10px; background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15); margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.45);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rkc-search-box:hover { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.25); }
.rkc-search-box:focus-within { border-color: rgba(255, 255, 255, 0.35); }
.rkc-search {
  flex: 1; min-width: 0; margin: 0 !important; padding: 0 !important;
  background: transparent !important; border: none !important; box-shadow: none !important;
  color: #fff !important; font: 500 12.5px Inter, sans-serif !important; outline: none;
  height: auto !important;
}
.rkc-search::placeholder { color: rgba(255, 255, 255, 0.3); }

.rkc-pills { flex: none; display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.rkc-pill-wrap { position: relative; }
.rkc-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; margin: 0;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08); background: transparent;
  color: rgba(255, 255, 255, 0.62); font: 600 11.5px Inter, sans-serif; cursor: pointer;
  white-space: nowrap; box-shadow: none;
}
.rkc-pill:hover { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.rkc-pill.is-set { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.rkc-pill svg { color: rgba(255, 255, 255, 0.4); flex: none; }
.rkc-pill-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 170px;
  max-height: 300px; overflow-y: auto; background: #191d22;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 11px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); padding: 4px;
}
.rkc-pill-opt {
  display: block; width: 100%; padding: 7px 11px; margin: 0; border: none; border-radius: 7px;
  background: transparent; color: rgba(255, 255, 255, 0.72); font: 600 12px Inter, sans-serif;
  text-align: left; cursor: pointer; box-shadow: none; white-space: nowrap;
}
.rkc-pill-opt:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.rkc-pill-opt.is-on { color: #fff; background: rgba(255, 255, 255, 0.09); }

.rkc-list { flex: none; margin-top: 6px; }
.rkc-rrow { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rkc-rrow:first-child { border-top: none; }
.rkc-rimg, .page-create-ranking img.rkc-rimg {
  width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}
.rkc-rimg.is-logo, .page-create-ranking img.rkc-rimg.is-logo { border-radius: 0; object-fit: contain; padding: 2px; background: transparent; }
.rkc-rimg-blank { display: inline-block; }
.rkc-rmain { flex: 1; min-width: 0; }
.rkc-rname { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rkc-rsub { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: rgba(255, 255, 255, 0.42); margin-top: 2px; }
.rkc-rsub > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rkc-tlogo, .page-create-ranking img.rkc-tlogo { width: 15px; height: 15px; flex: none; object-fit: contain; background: transparent; }
.rkc-delta { flex: none; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rkc-delta.up { color: #47c47d; }
.rkc-delta.down { color: #e76f6d; }
.rkc-delta.new { color: rgba(255, 255, 255, 0.42); }
.rkc-add {
  flex: none; display: inline-flex; align-items: center; height: 29px; padding: 0 11px; margin: 0;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent;
  color: #fff; font: 800 11.5px Inter, sans-serif; cursor: pointer; box-shadow: none; white-space: nowrap;
}
.rkc-add:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.rkc-add.is-on { border-color: transparent; background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.42); font-weight: 700; padding: 0 9px; }
.rkc-noresults { padding: 16px 0; font-size: 12px; color: rgba(255, 255, 255, 0.4); }

/* ---------- board ---------- */
.rkc-board { flex: 1; min-width: 0; max-width: 960px; padding: 34px 8px 90px 36px; order: 1; }
.rkc-board-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.rkc-board-head-l { min-width: 0; }
.rkc-h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.rkc-explainer { margin: 3px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.42); }
.rkc-board-head-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.rkc-format-lbl { font-size: 11.5px; color: rgba(255, 255, 255, 0.42); }
.rkc-publish {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px; margin: 0;
  border-radius: 9px; background: #fff; border: 1px solid #fff; color: #0b0d10;
  font: 700 13px Inter, sans-serif; cursor: pointer; box-shadow: none;
}
.rkc-publish:hover:not(:disabled) { background: rgba(255, 255, 255, 0.88); }
.rkc-publish:disabled { opacity: 0.4; cursor: default; }
.rkc-publish:focus { outline: none; box-shadow: none; }
.rkc-rail-open {
  display: none; align-items: center; height: 34px; padding: 0 13px; margin: 0;
  border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.45); background: transparent;
  color: #fff; font: 700 12px Inter, sans-serif; cursor: pointer; box-shadow: none; white-space: nowrap;
}

/* title + framing — document-style, not boxed inputs */
.rkc-title {
  font-size: 26px; font-weight: 800; letter-spacing: -0.015em; color: #fff;
  padding: 6px 0 4px; border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  margin-bottom: 12px; outline: none; min-height: 40px;
}
.rkc-title:focus { border-bottom-color: rgba(255, 255, 255, 0.35); }
.rkc-title:empty:before { content: attr(data-placeholder); color: rgba(255, 255, 255, 0.25); }
.rkc-framing {
  font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.62);
  padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px; outline: none; min-height: 22px;
}
.rkc-framing:empty:before { content: attr(data-placeholder); color: rgba(255, 255, 255, 0.28); }

.rkc-notice {
  margin: 0 0 14px; padding: 9px 13px; border-radius: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.2); font-size: 12px; color: rgba(255, 255, 255, 0.62);
}
.rkc-empty { margin: 26px 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }
.rkc-err { margin: 10px 0 0; font-size: 12px; color: #e76f6d; min-height: 15px; }
.rkc-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 11.5px; color: rgba(255, 255, 255, 0.3); }
.rkc-foot-tip { margin-left: auto; }

/* shared entry bits */
.rkc-grip { flex: none; font-size: 13px; letter-spacing: -2px; color: rgba(255, 255, 255, 0.3); cursor: grab; user-select: none; }
.rkc-erank { flex: none; width: 26px; text-align: center; font-size: 17px; font-weight: 800; color: #fff; }
.rkc-erank-ghost { flex: none; width: 38px; text-align: center; font-size: 33px; font-weight: 800; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.25); }
.rkc-eimg, .page-create-ranking img.rkc-eimg { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.06); }
.rkc-eimg-lg, .page-create-ranking img.rkc-eimg-lg { width: 50px; height: 50px; flex: none; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.06); }
.rkc-eimg.is-logo, .rkc-eimg-lg.is-logo,
.page-create-ranking img.rkc-eimg.is-logo, .page-create-ranking img.rkc-eimg-lg.is-logo { border-radius: 0; object-fit: contain; padding: 3px; background: transparent; }
.rkc-emeta { min-width: 0; }
.rkc-trow .rkc-emeta { width: 200px; flex: none; }
.rkc-arow .rkc-emeta { flex: 1; }
.rkc-ename { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rkc-ename-lg { font-size: 17.5px; font-weight: 800; color: #fff; }
.rkc-esub { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: rgba(255, 255, 255, 0.42); margin-top: 2px; }
.rkc-ebtns { display: flex; gap: 6px; flex: none; margin-left: auto; }
.rkc-mv, .rkc-rm {
  width: 28px; height: 28px; padding: 0; margin: 0; display: inline-flex; align-items: center;
  justify-content: center; background: transparent; border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px; color: rgba(255, 255, 255, 0.42); font-size: 12px; cursor: pointer; box-shadow: none;
}
.rkc-mv:hover:not(:disabled), .rkc-rm:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.rkc-mv:disabled { opacity: 0.25; cursor: default; }
.rkc-rm:hover { color: #e76f6d; border-color: rgba(231, 111, 109, 0.5); }

/* table format */
.rkc-trow { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rkc-trow:first-child { border-top: none; }
.rkc-why {
  flex: 1; min-width: 0; margin: 0 !important; height: 44px !important; padding: 0 14px !important;
  border-radius: 9px !important; background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important; box-shadow: none !important;
  color: #fff !important; font: 500 13.5px Inter, sans-serif !important; outline: none;
}
.rkc-why:focus { border-color: rgba(255, 255, 255, 0.3) !important; }
.rkc-why::placeholder { color: rgba(255, 255, 255, 0.3); }

/* article format */
.rkc-arow { padding: 18px 0 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rkc-entries.is-article > .rkc-arow:first-child,
.rkc-entries.is-article > .rkc-noteblock:first-child + .rkc-arow { border-top: none; }
.rkc-arow-head { display: flex; align-items: center; gap: 14px; margin-bottom: 11px; }
.rkc-case {
  display: block; width: calc(100% - 52px); margin: 0 0 0 52px !important; min-height: 70px;
  padding: 12px 14px !important; border-radius: 11px !important;
  background: transparent !important; border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important; color: rgba(255, 255, 255, 0.78) !important;
  font: 500 14.5px/1.62 Inter, sans-serif !important; outline: none; resize: none; overflow: hidden;
}
.rkc-case:focus { border-color: rgba(255, 255, 255, 0.3) !important; }
.rkc-case::placeholder { color: rgba(255, 255, 255, 0.3); }

.rkc-noterule { display: flex; align-items: center; gap: 9px; margin: 8px 0; }
.rkc-noterule-line { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.rkc-addnote {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; margin: 0;
  border-radius: 999px; border: 1px dashed rgba(255, 255, 255, 0.12); background: transparent;
  color: rgba(255, 255, 255, 0.3); font: 600 11.5px Inter, sans-serif; cursor: pointer; box-shadow: none;
}
.rkc-addnote:hover { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.3); }
.rkc-noteblock { position: relative; margin: 2px 0 8px 48px; }
.rkc-notetext {
  display: block; width: 100%; margin: 0 !important; min-height: 40px;
  padding: 11px 38px 11px 14px !important; border-radius: 11px !important;
  background: transparent !important; border: 1px dashed rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important; color: rgba(255, 255, 255, 0.62) !important;
  font: italic 500 13px/1.55 Inter, sans-serif !important; outline: none; resize: none; overflow: hidden;
}
.rkc-notetext:focus { border-color: rgba(255, 255, 255, 0.3) !important; }
.rkc-notetext::placeholder { color: rgba(255, 255, 255, 0.28); }
.rkc-noterm {
  position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 6px;
  background: transparent; color: rgba(255, 255, 255, 0.35); font-size: 13px; cursor: pointer; box-shadow: none;
}
.rkc-noterm:hover { color: #e76f6d; }

/* narrow: rail becomes a slide-over */
@media (max-width: 960px) {
  .rkc-rail {
    /* slide-over: starts below the fixed chrome (nav + ticker) — see
       syncChrome(); without the offset the rail's top clips under the
       sticky bar (same landmine as the discuss drawer). */
    position: fixed; top: var(--rkc-chrome-h, 0px); bottom: 0; left: 0;
    height: auto;
    z-index: 200; width: min(340px, 88vw);
    padding: 18px 18px 18px 20px; background: #14171b; border-right: 1px solid rgba(255, 255, 255, 0.14);
    overflow-y: auto; transform: translateX(-105%); transition: transform 0.2s ease;
  }
  .rkc-board { padding: 22px 18px 70px; max-width: none; }
  body.rkc-rail-o .rkc-rail { transform: translateX(0); box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5); }
  .rkc-rail-close { display: inline-flex; }
  .rkc-rail-open { display: inline-flex; }
  .rkc-trow { flex-wrap: wrap; }
  .rkc-why { flex-basis: 100%; order: 9; }
}

/* ============================================================================
   Ranking view page (/p/{slug}, .rkv-*) — richer entries (why-text +
   attention deltas + take chips), Beside ⇄ Below discussion layouts,
   rank-anchored takes, version-history snapshots. The discussion is the
   board's live Discuss room mounted by ranking-view.js.
============================================================================ */
/* Full-bleed like /discuss (same gutters); the site rail owns the left edge. */
.page-post-ranking main.container { max-width: 100%; width: 100%; padding-left: 0; padding-right: 0; }
.rkv-page { max-width: none; margin: 0; padding: 26px 32px 90px; color: #fff; font-variant-numeric: tabular-nums; }

/* kicker row + layout toggle */
.rkv-topline { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rk-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.rk-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; flex: none; }
.rkv-layoutctl { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.rkv-layout-lbl { font-size: 11.5px; color: rgba(255, 255, 255, 0.3); }

.rk-title { margin: 0 0 12px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; color: #fff; }

/* byline */
.rk-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.42); padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.rk-author { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.rk-author:hover b { text-decoration: underline; text-underline-offset: 2px; }
.rk-author-av, .page-post-ranking img.rk-author-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.06); }
.rk-author b { font-weight: 700; font-size: 12.5px; }
.rk-meta-dot { margin: 0 8px; color: rgba(255, 255, 255, 0.3); }
.rk-edit { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.rk-edit:hover { text-decoration: underline; text-underline-offset: 2px; }

/* version selector */
.rkv-ver-wrap { position: relative; display: inline-flex; margin-left: 10px; }
.rkv-ver-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; margin: 0;
  border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.12); background: transparent;
  color: rgba(255, 255, 255, 0.65); font: 700 11px Inter, sans-serif; cursor: pointer; box-shadow: none;
}
.rkv-ver-chip:hover { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.rkv-ver-menu {
  position: absolute; left: 0; top: 30px; width: 228px; z-index: 60;
  background: #14171b; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); overflow: hidden;
}
.rkv-ver-label { padding: 8px 12px 5px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.3); }
.rkv-ver-row { display: flex; align-items: center; gap: 9px; padding: 8px 12px; text-decoration: none; color: inherit; }
.rkv-ver-row:hover { background: rgba(255, 255, 255, 0.04); }
.rkv-ver-row.is-current { background: rgba(255, 255, 255, 0.06); }
.rkv-ver-n { font-size: 11.5px; font-weight: 800; color: #fff; width: 22px; }
.rkv-ver-when { font-size: 11px; color: rgba(255, 255, 255, 0.42); flex: 1; }
.rkv-ver-current { font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #7ee0a6; }
.rkv-ver-view { font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, 0.55); }
.rkv-ver-foot { padding: 7px 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 10px; color: rgba(255, 255, 255, 0.3); }

/* snapshot banner (read-only view of an old version; composer hidden) */
.rkv-snapbar {
  display: flex; align-items: center; margin-top: 14px; padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 9px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.62);
}
.rkv-snapback { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.rkv-snapback:hover { text-decoration: underline; text-underline-offset: 2px; }
.rkv-snapshot #rkComposer { display: none; }

/* ---- the two layouts ---- */
.rkv-grid { display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; }
.rkv-content { min-width: 0; }
.rkv-rail {
  min-width: 0; border-left: 1px solid rgba(255, 255, 255, 0.08); padding-left: 26px;
  padding-top: 20px;
  position: sticky; top: calc(var(--rkv-chrome-h, 64px) + 18px);
  max-height: calc(100vh - var(--rkv-chrome-h, 64px) - 36px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  /* the embedded .disc-* room reads its palette from these tokens */
  --d-line: rgba(255, 255, 255, .08); --d-line-2: rgba(255, 255, 255, .12); --d-hair: rgba(255, 255, 255, .07);
  --d-ink: #fff; --d-ink-2: rgba(255, 255, 255, .6); --d-ink-3: rgba(255, 255, 255, .4);
  --d-panel: rgba(255, 255, 255, .025); --d-pos: #47c47d; --d-pos-soft: #7ee0a6; --d-amber: #f1b82d;
  --d-thread: #282a2d;
}
.rkv-rail::-webkit-scrollbar { width: 0; height: 0; display: none; }
.rkv-rail .disc-composer { margin-bottom: 16px; }
/* the 380px rail can't fit the Enter-to-post hint — the "/" hint carries it */
.rkv-rail .disc-enter-hint { display: none; }
.rk-discuss-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 14px; }
.rk-discuss-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.rk-discuss-count { font-size: 11.5px; color: rgba(255, 255, 255, 0.42); }
.rk-discuss-count b { color: rgba(255, 255, 255, 0.72); font-weight: 700; }
.rk-discuss-open { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.rk-discuss-open:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Below layout: content centered ~760, discussion full-width underneath */
.rkv-page.rkv-below .rkv-grid { display: block; max-width: 760px; margin-left: auto; margin-right: auto; }
.rkv-page.rkv-below .rkv-rail {
  position: static; max-height: none; overflow: visible;
  border-left: none; padding-left: 0;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rkv-page.rkv-below .rk-title { font-size: 26px; }

/* ---- content: entries ---- */
.rk-desc { margin: 20px 0 0; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.92); }
.rkv-entries { margin-top: 10px; }
.rkv-entry { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; }
.rkv-entry-head { display: flex; align-items: center; gap: 14px; }
.rk-sec-rank { flex: none; width: 34px; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.22); }
.rkv-eimg, .page-post-ranking img.rkv-eimg { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.06); }
.rkv-eimg.is-logo, .page-post-ranking img.rkv-eimg.is-logo { border-radius: 0; object-fit: contain; padding: 3px; background: transparent; }
.rk-img-blank { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, 0.6); }
.rkv-entry-id { flex: 1; min-width: 0; }
.rkv-ename { font-size: 16.5px; font-weight: 800; color: #fff; text-decoration: none; }
.rkv-ename:hover { text-decoration: underline; text-underline-offset: 3px; }
.rk-sec-sub { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255, 255, 255, 0.42); margin-top: 2px; }
.rk-tlogo, .page-post-ranking img.rk-tlogo { width: 14px; height: 14px; flex: none; object-fit: contain; background: transparent; }
.rkv-entry-side { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex: none; }
/* entry sentiment — clickable up/down (click again to clear) */
.rkv-vote { display: inline-flex; gap: 6px; }
.rkv-vote-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; margin: 0;
  border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.1); background: transparent;
  color: rgba(255, 255, 255, 0.45); font: 700 11px Inter, sans-serif; cursor: pointer;
  box-shadow: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.rkv-vote-btn b { font-weight: 700; }
.rkv-vote-btn:hover { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.rkv-vote-btn.up.is-on { border-color: rgba(71, 196, 125, 0.55); color: #47c47d; background: rgba(71, 196, 125, 0.08); }
.rkv-vote-btn.down.is-on { border-color: rgba(231, 111, 109, 0.55); color: #e76f6d; background: rgba(231, 111, 109, 0.08); }
.rkv-takes-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; margin: 0;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.08); background: transparent;
  color: rgba(255, 255, 255, 0.42); font: 700 11px Inter, sans-serif; cursor: pointer;
  box-shadow: none; white-space: nowrap;
}
.rkv-takes-chip.is-hot { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.rkv-takes-chip:hover { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.rkv-why { margin: 10px 0 0 58px; font-size: 13.5px; line-height: 1.62; color: rgba(255, 255, 255, 0.92); }
.rk-inote { margin: 14px 0 14px 58px; font-size: 13.5px; font-style: italic; line-height: 1.6; color: rgba(255, 255, 255, 0.42); }

/* anchored-take chip on rail takes */
.rkv-anchor-chip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px;
  border-radius: 6px; background: rgba(20, 23, 27, 0.5); border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; font: 700 11px Inter, sans-serif; cursor: pointer; box-shadow: none; white-space: nowrap;
}
.rkv-anchor-chip:hover { border-color: rgba(255, 255, 255, 0.6); }
.rkv-rail .disc-post-head { display: flex; align-items: center; gap: 7px; }

/* scroll-target highlight */
@keyframes rkvFlash { 0% { background: rgba(255, 255, 255, 0.09); } 100% { background: transparent; } }
.rkv-flash { animation: rkvFlash 1.5s ease; }

/* narrow: always Below, toggle hidden */
@media (max-width: 1100px) {
  .rkv-layoutctl { display: none; }
  .rkv-grid, .rkv-page.rkv-below .rkv-grid { display: block; max-width: 760px; margin-left: auto; margin-right: auto; }
  .rkv-rail, .rkv-page.rkv-below .rkv-rail {
    position: static; max-height: none; overflow: visible;
    border-left: none; padding-left: 0;
    margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .rk-title { font-size: 26px; }
}

@media (max-width: 640px) {
  .rkv-page { padding: 26px 16px 70px; }
  .rk-title { font-size: 23px; }
  .rkv-why, .rk-inote { margin-left: 0; }
  .rkc-page { padding-top: 22px; }
  .rkc-board-head-r { flex-wrap: wrap; }
}
