/* ===========================================================================
   Lifehaki — Rankings home, "the board" (/rankings).
   Loaded only when bodyClass contains `lh-rank-home` (see templates/layout.php).

   Scoped under body.lh-rank-home so it outranks the older flat `.rk-*` rules
   at the bottom of lifehaki-design.css that the previous home page used.
   Class prefix is `rh-*`; lifehaki-ranking.css (`rk-*`, detail page) is a
   separate file and is NOT loaded here.
   =========================================================================== */

body.lh-rank-home {
    --rh-paper: #f5f5f9;
    --rh-white: #fff;
    --rh-ink: #15171c;
    --rh-ink-2: #20242b;
    --rh-body: #3c424d;
    --rh-muted: #5b626e;
    --rh-faint: #767d89;
    --rh-line: #e3e3ea;
    --rh-line-2: #ececf2;
    --rh-line-3: #d2d3dc;
    --rh-red: #ca2128;
    --rh-red-dark: #a81a20;
    --rh-gold: #fdc949;
    --rh-gold-700: #946107;
    --rh-green: #2f8f5b;

    --rh-display: 'Fraunces', Georgia, serif;
    --rh-text: 'Urbanist', system-ui, sans-serif;
    --rh-cond: 'Barlow Condensed', sans-serif;
    --rh-mono: 'DM Mono', ui-monospace, monospace;

    background: var(--rh-paper);
    color: var(--rh-ink-2);
    font-family: var(--rh-text);
}
body.lh-rank-home main { overflow-x: hidden; padding: 0; max-width: none; }
body.lh-rank-home ::selection { background: var(--rh-gold); color: var(--rh-ink); }

@keyframes rh-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(47,143,91,.55); }
    70%  { box-shadow: 0 0 0 7px rgba(47,143,91,0); }
    100% { box-shadow: 0 0 0 0 rgba(47,143,91,0); }
}
@keyframes rh-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================== HERO ==================================== */
.rh-hero { position: relative; overflow: hidden; background: var(--rh-ink); }
.rh-hero > .lhh-navwrap { position: relative; z-index: 6; }
.rh-hero-art { position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .5; }
.rh-hero-scrim-x, .rh-hero-scrim-y { position: absolute; inset: 0; }
.rh-hero-scrim-x { background: linear-gradient(100deg, #0f1114 0%, rgba(15,17,20,.94) 46%, rgba(15,17,20,.55) 100%); }
.rh-hero-scrim-y { background: linear-gradient(180deg, rgba(15,17,20,.72) 0%, rgba(15,17,20,0) 30%, rgba(15,17,20,.86) 100%); }
.rh-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.rh-orb-gold { top: -190px; right: -90px; width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(253,201,73,.22), rgba(253,201,73,0) 70%); }
.rh-orb-red { bottom: -210px; left: -150px; width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(202,33,40,.20), rgba(202,33,40,0) 70%); }

.rh-hero-inner { position: relative; z-index: 4; max-width: 1240px; margin: 0 auto;
    padding: 34px 40px 54px; display: grid; grid-template-columns: minmax(0,1fr) 430px;
    gap: 60px; align-items: end; }

.rh-eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.rh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rh-green);
    animation: rh-pulse 2.2s infinite; flex: none; }
.rh-eyebrow span { font-family: var(--rh-cond); font-weight: 600; font-size: 14px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--rh-gold); }

.rh-headline { font-family: var(--rh-display); font-weight: 900; font-size: 68px;
    line-height: .94; letter-spacing: -.028em; color: #fff; margin: 0 0 20px; text-wrap: pretty; }
.rh-headline em { color: var(--rh-gold); font-style: italic; font-weight: 900; }
.rh-sub { font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.8);
    margin: 0 0 30px; max-width: 560px; text-wrap: pretty; }

.rh-stats { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.rh-stat-n { font-family: var(--rh-mono); font-size: 28px; color: #fff; line-height: 1; }
.rh-stat-n.is-gold { color: var(--rh-gold); }
.rh-stat-k { font-family: var(--rh-cond); font-weight: 600; font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 7px; }

/* live podium */
.rh-podium { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px; padding: 20px; backdrop-filter: blur(10px); }
.rh-podium-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rh-podium-head strong { font-family: var(--rh-cond); font-weight: 700; font-size: 13px;
    letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.rh-podium-head span { font-family: var(--rh-mono); font-size: 12px; color: rgba(255,255,255,.6); }
.rh-podium-list { display: flex; flex-direction: column; gap: 10px; }
.rh-pod { display: flex; align-items: center; gap: 13px; padding: 10px; border-radius: 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    text-decoration: none; transition: background 120ms; }
.rh-pod:hover { background: rgba(255,255,255,.13); }
.rh-pod.is-first { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.rh-pod-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 40px;
    height: 28px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff;
    font-family: var(--rh-mono); font-size: 14px; flex: none; }
.rh-pod.is-first .rh-pod-rank { background: var(--rh-gold); color: var(--rh-ink); }
.rh-pod-img { width: 48px; height: 66px; border-radius: 10px; object-fit: cover; flex: none; }
/* Rows and podium use <span> wrappers (a <summary>/<a> may not contain block
   flow content in the places these sit), so every stacked part is made a block
   here rather than relying on the default inline layout. */
.rh-pod-body { flex: 1; min-width: 0; display: block; }
.rh-pod-title, .rh-pod-meta, .rh-pod-score, .rh-pod-cap { display: block; }
.rh-pod > span:last-child { flex: none; display: block; }
.rh-pod-title { font-family: var(--rh-display); font-weight: 800; font-size: 16px; line-height: 1.15;
    color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-pod-meta { font-family: var(--rh-mono); font-size: 12px; color: rgba(255,255,255,.6); margin-top: 5px; }
.rh-pod-score { font-family: var(--rh-mono); font-size: 20px; font-weight: 500; color: #fff; line-height: 1; }
.rh-pod.is-first .rh-pod-score { color: var(--rh-gold); }
.rh-pod-cap { font-family: var(--rh-cond); font-weight: 600; font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 4px; }

/* ========================= STICKY CONTROLS ============================== */
.rh-bar { position: sticky; top: 0; z-index: 30; background: rgba(245,245,249,.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--rh-line); }
.rh-bar-inner { max-width: 1240px; margin: 0 auto; padding: 11px 40px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rh-bar-spacer { flex: 1; }
.rh-bar-rule { width: 1px; height: 24px; background: var(--rh-line); }

.rh-tabs { display: flex; align-items: center; gap: 2px; }
.rh-tab { border: 0; background: transparent; color: var(--rh-muted); font-family: var(--rh-text);
    font-weight: 600; font-size: 14.5px; padding: 0 16px; height: 36px; border-radius: 999px;
    cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex;
    align-items: center; transition: background 120ms, color 120ms; }
.rh-tab.is-on { background: var(--rh-ink); color: #fff; font-weight: 700; }

.rh-seg { display: flex; align-items: center; gap: 4px; background: var(--rh-line-2);
    border-radius: 999px; padding: 4px; }
.rh-seg a, .rh-seg button { border: 0; background: transparent; color: var(--rh-faint);
    font-family: var(--rh-text); font-weight: 600; font-size: 13.5px; padding: 0 14px; height: 30px;
    border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 120ms, color 120ms; }
.rh-seg .is-on { background: var(--rh-white); color: var(--rh-ink); font-weight: 700;
    box-shadow: 0 1px 3px rgba(21,23,40,.14); }
.rh-seg-icon a { width: 32px; height: 30px; padding: 0; }

.rh-cta { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px;
    border-radius: 999px; background: var(--rh-red); color: #fffdf8; font-weight: 700; font-size: 14px;
    text-decoration: none; border: 0; cursor: pointer; font-family: var(--rh-text);
    box-shadow: 0 6px 18px rgba(202,33,40,.32);
    transition: transform 120ms cubic-bezier(.16,1,.3,1), background 120ms; }
.rh-cta:hover { background: var(--rh-red-dark); color: #fffdf8; transform: translateY(-2px); }

/* ============================= BOARD ==================================== */
.rh-board { max-width: 1240px; margin: 0 auto; padding: 40px 40px 20px;
    display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.rh-board-main { flex: 1 1 620px; min-width: 0; }
.rh-board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 22px; flex-wrap: wrap; }
.rh-board-head > div:first-child { max-width: 640px; }
.rh-pill { display: inline-block; font-family: var(--rh-cond); font-weight: 700; font-size: 13px;
    letter-spacing: .14em; text-transform: uppercase; background: var(--rh-gold);
    color: var(--rh-ink); padding: 4px 10px; border-radius: 999px; }
.rh-h2 { font-family: var(--rh-display); font-weight: 900; font-size: 40px; line-height: 1.02;
    letter-spacing: -.022em; color: var(--rh-ink); margin: 14px 0 10px; text-wrap: pretty; }
.rh-board-sub { font-size: 16px; line-height: 1.55; color: var(--rh-muted); margin: 0; text-wrap: pretty; }
.rh-board-meta { font-family: var(--rh-mono); font-size: 13px; color: var(--rh-faint); white-space: nowrap; }

.rh-rows { background: var(--rh-white); border: 1px solid var(--rh-line); border-radius: 20px;
    box-shadow: 0 2px 14px rgba(21,23,40,.06); overflow: hidden; margin: 0; padding: 0; list-style: none; }
.rh-entry { border-bottom: 1px solid var(--rh-line-2); }
.rh-entry:last-child { border-bottom: 0; }
.rh-entry[open] { background: var(--rh-white); }
.rh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 15px 22px;
    cursor: pointer; transition: background 120ms; list-style: none; }
.rh-row::-webkit-details-marker { display: none; }
.rh-row:hover { background: #f7f7fb; }
.rh-entry.is-top .rh-row { padding: 20px 22px; }

.rh-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 52px;
    height: 34px; border-radius: 999px; background: #f2f2f7; color: var(--rh-muted);
    font-family: var(--rh-mono); font-size: 16px; flex: none; }
.rh-entry.is-top .rh-rank { background: var(--rh-gold); color: var(--rh-ink); font-weight: 500; font-size: 17px; }

.rh-delta { display: inline-flex; align-items: center; justify-content: center; min-width: 38px;
    height: 24px; padding: 0 8px; border-radius: 999px; font-family: var(--rh-mono); font-size: 12px;
    font-weight: 500; flex: none; background: var(--rh-line-2); color: var(--rh-faint); }
.rh-delta.is-up { background: #e4f2ea; color: var(--rh-green); }
.rh-delta.is-down { background: #fbe7e8; color: var(--rh-red); }

.rh-thumb { width: 54px; height: 80px; border-radius: 8px; object-fit: cover; flex: none; display: block; }
.rh-thumb.art { width: 54px; height: 80px; }

.rh-row-body { flex: 1 1 220px; min-width: 180px; display: block; }
.rh-row-title, .rh-row-meta, .rh-row-bar { display: block; }
.rh-score-cell > span { display: block; }
.rh-duel-body, .rh-duel-title, .rh-duel-bar { display: block; }
.rh-mover-body, .rh-mover-title, .rh-mover-meta { display: block; }
.rh-row-title { font-family: var(--rh-display); font-weight: 800; font-size: 20px; line-height: 1.15;
    color: var(--rh-ink); letter-spacing: -.01em; text-wrap: pretty; margin: 0; }
.rh-row-meta { font-family: var(--rh-mono); font-size: 12.5px; color: var(--rh-faint); margin-top: 6px; }
.rh-row-bar { margin-top: 10px; height: 5px; width: 100%; max-width: 280px; border-radius: 999px;
    background: var(--rh-line-2); overflow: hidden; }
.rh-row-bar > span { display: block !important; height: 100%; border-radius: 999px;
    transition: width 400ms cubic-bezier(.16,1,.3,1); }

.rh-stars { display: flex; align-items: center; gap: 5px; flex: none; }
.rh-stars span { font-family: var(--rh-mono); font-size: 14px; color: var(--rh-ink-2); }

.rh-score-cell { text-align: right; flex: none; width: 86px; }
.rh-score { font-family: var(--rh-mono); font-size: 22px; font-weight: 500; line-height: 1; }
.rh-score-votes { font-family: var(--rh-mono); font-size: 11.5px; color: var(--rh-faint); margin-top: 4px; }
.is-good { color: var(--rh-green); }
.is-mid  { color: var(--rh-gold-700); }
.is-low  { color: var(--rh-red); }
.rh-bar-good { background: var(--rh-green); }
.rh-bar-mid  { background: var(--rh-gold-700); }
.rh-bar-low  { background: var(--rh-red); }

.rh-chev { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 999px; color: var(--rh-faint); flex: none;
    transition: transform 200ms cubic-bezier(.16,1,.3,1); }
.rh-entry[open] .rh-chev { transform: rotate(180deg); }

.rh-panel { padding: 0 22px 22px 132px; animation: rh-rise 200ms cubic-bezier(.16,1,.3,1) both; }
.rh-panel-inner { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 26px;
    align-items: start; background: #f7f7fb; border-radius: 14px; padding: 18px 20px; }
.rh-panel-inner.is-solo { grid-template-columns: minmax(0,1fr); }
.rh-panel-k { font-family: var(--rh-cond); font-weight: 700; font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--rh-red); margin-bottom: 8px; }
.rh-panel-k.is-quiet { color: var(--rh-faint); }
.rh-panel p { font-size: 15.5px; line-height: 1.6; color: var(--rh-body); margin: 0 0 14px; text-wrap: pretty; }
.rh-panel-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rh-open-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px;
    border-radius: 999px; background: var(--rh-ink); color: #fff; font-weight: 700; font-size: 13.5px;
    text-decoration: none; transition: background 120ms; }
.rh-open-btn:hover { background: #2a2d35; color: #fff; }
.rh-up { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px;
    border-radius: 999px; border: 1.5px solid var(--rh-line-3); background: var(--rh-white);
    color: var(--rh-ink); font-family: var(--rh-text); font-weight: 700; font-size: 13.5px;
    cursor: pointer; transition: transform 120ms cubic-bezier(.16,1,.3,1), background 120ms, border-color 120ms; }
.rh-up.is-on { border-color: var(--rh-red); background: var(--rh-red); color: #fff; }
.rh-hist { font-family: var(--rh-mono); font-size: 12.5px; color: var(--rh-faint); }
.rh-take { border-left: 1px solid var(--rh-line); padding-left: 20px; }
.rh-take blockquote { font-family: var(--rh-display); font-style: italic; font-weight: 500;
    font-size: 15px; line-height: 1.45; color: var(--rh-ink); margin: 0 0 8px; text-wrap: pretty; }
.rh-take-by { font-family: var(--rh-mono); font-size: 12px; color: var(--rh-faint); }

/* poster grid mode */
.rh-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px;
    margin: 0; padding: 0; list-style: none; }
.rh-card { background: var(--rh-white); border: 1px solid var(--rh-line); border-radius: 16px;
    overflow: hidden; box-shadow: 0 2px 14px rgba(21,23,40,.06); text-decoration: none;
    display: block; color: inherit;
    transition: transform 200ms cubic-bezier(.16,1,.3,1), box-shadow 200ms; }
.rh-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(21,23,40,.14); color: inherit; }
.rh-card-art { position: relative; }
.rh-card-art img, .rh-card-art .art { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.rh-card-rank { position: absolute; top: 10px; left: 10px; font-family: var(--rh-mono); font-size: 13px;
    font-weight: 500; background: var(--rh-gold); color: var(--rh-ink); padding: 3px 10px; border-radius: 999px; }
.rh-card-body { padding: 12px 14px 14px; }
.rh-card-title { font-family: var(--rh-display); font-weight: 800; font-size: 16px; line-height: 1.2;
    color: var(--rh-ink); text-wrap: pretty; }
.rh-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.rh-card-foot span:first-child { font-family: var(--rh-mono); font-size: 12.5px; color: var(--rh-faint); }
.rh-card-foot .rh-score { font-size: 16px; }

.rh-more { display: flex; justify-content: center; padding: 26px 0 4px; }
.rh-more a { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 24px;
    border-radius: 999px; border: 1.5px solid var(--rh-line-3); background: var(--rh-white);
    color: var(--rh-ink); font-family: var(--rh-text); font-weight: 700; font-size: 15px;
    text-decoration: none; cursor: pointer;
    transition: transform 120ms cubic-bezier(.16,1,.3,1), box-shadow 120ms; }
.rh-more a:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21,23,40,.1); color: var(--rh-ink); }

.rh-empty { background: var(--rh-white); border: 1px solid var(--rh-line); border-radius: 20px;
    padding: 40px; text-align: center; color: var(--rh-muted); }

/* ============================== RAIL ==================================== */
.rh-rail { position: sticky; top: 74px; flex: 1 1 300px; max-width: 340px;
    display: flex; flex-direction: column; gap: 20px; }
.rh-runoff { background: var(--rh-white); border: 2px solid var(--rh-ink); border-radius: 14px;
    box-shadow: 4px 4px 0 var(--rh-red); padding: 20px; }
.rh-runoff-k { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.rh-runoff-k span:last-child { font-family: var(--rh-cond); font-weight: 700; font-size: 12.5px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--rh-ink); }
.rh-runoff h3 { font-family: var(--rh-display); font-weight: 900; font-size: 22px; line-height: 1.1;
    letter-spacing: -.015em; color: var(--rh-ink); margin: 0 0 4px; text-wrap: pretty; }
.rh-runoff > p { font-size: 13.5px; color: var(--rh-faint); margin: 0 0 16px; }
.rh-duel-opts { display: flex; flex-direction: column; gap: 10px; }
.rh-duel { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px;
    border-radius: 14px; border: 1.5px solid var(--rh-line); background: var(--rh-white);
    cursor: pointer; font-family: var(--rh-text); text-align: left;
    transition: border-color 120ms, background 120ms, transform 120ms cubic-bezier(.16,1,.3,1); }
.rh-duel:hover { transform: translateY(-1px); }
.rh-duel.is-picked { border-color: var(--rh-red); background: #fdf3f3; }
.rh-duel img, .rh-duel .art { width: 54px; height: 74px; border-radius: 8px; object-fit: cover; flex: none; }
.rh-duel-body { flex: 1; min-width: 0; }
.rh-duel-title { font-weight: 700; font-size: 15px; color: var(--rh-ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-duel-bar { margin-top: 8px; height: 6px; border-radius: 999px; background: var(--rh-line-2); overflow: hidden; }
.rh-duel-bar > span { display: block; height: 100%; border-radius: 999px; background: #c8cad2;
    transition: width 400ms cubic-bezier(.16,1,.3,1); }
.rh-duel.is-picked .rh-duel-bar > span { background: var(--rh-red); }
.rh-duel-pct { font-family: var(--rh-mono); font-size: 14px; color: var(--rh-faint); flex: none;
    width: 44px; text-align: right; }
.rh-duel.is-picked .rh-duel-pct { color: var(--rh-red); }
.rh-runoff-foot { font-family: var(--rh-mono); font-size: 12px; color: var(--rh-faint); margin-top: 14px; }

.rh-card-plain { background: var(--rh-white); border: 1px solid var(--rh-line); border-radius: 20px;
    box-shadow: 0 2px 14px rgba(21,23,40,.06); padding: 20px; }
.rh-card-k { font-family: var(--rh-cond); font-weight: 700; font-size: 12.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--rh-red); margin-bottom: 14px; }
.rh-movers { display: flex; flex-direction: column; gap: 14px; }
.rh-mover { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.rh-mover-body { flex: 1; min-width: 0; }
.rh-mover-title { font-weight: 700; font-size: 14.5px; color: var(--rh-ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-mover:hover .rh-mover-title { color: var(--rh-red); }
.rh-mover-meta { font-family: var(--rh-mono); font-size: 12px; color: var(--rh-faint); margin-top: 3px; }

.rh-method { background: var(--rh-ink); border-radius: 20px; padding: 22px; position: relative; overflow: hidden; }
.rh-method::before { content: ''; position: absolute; top: -70px; right: -50px; width: 200px; height: 200px;
    border-radius: 50%; background: radial-gradient(circle, rgba(253,201,73,.28), rgba(253,201,73,0) 70%); }
.rh-method > div { position: relative; }
.rh-method .rh-card-k { color: var(--rh-gold); margin-bottom: 10px; }
.rh-method p { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.8); margin: 0 0 14px; text-wrap: pretty; }
.rh-method a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px;
    color: var(--rh-gold); text-decoration: none; }
.rh-method a:hover { color: #fff; }

/* =========================== MORE BOARDS ================================ */
.rh-boards { max-width: 1240px; margin: 0 auto; padding: 36px 40px 60px; }
.rh-boards-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 22px; border-top: 1px solid var(--rh-line); padding-top: 34px; flex-wrap: wrap; }
.rh-boards-head h2 { font-family: var(--rh-display); font-weight: 900; font-size: 34px; line-height: 1.05;
    letter-spacing: -.02em; color: var(--rh-ink); margin: 0 0 8px; }
.rh-boards-head h2 em { color: var(--rh-red); font-style: italic; }
.rh-boards-head p { font-size: 16px; color: var(--rh-muted); margin: 0; }
.rh-boards-head a { font-weight: 700; font-size: 15px; color: var(--rh-red); text-decoration: none; white-space: nowrap; }
.rh-boards-head a:hover { color: var(--rh-red-dark); }
/* The sort toggle reuses .rh-seg; .rh-boards-head a lands later in the sheet,
   so restore the segment's own colours. */
.rh-boards-tools { display: flex; align-items: center; gap: 16px; }
.rh-seg-sort a { color: var(--rh-faint); font-weight: 600; }
.rh-seg-sort a.is-on { color: var(--rh-ink); font-weight: 700; }
.rh-boards-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.rh-bcard { text-decoration: none; color: inherit; background: var(--rh-white);
    border: 1px solid var(--rh-line); border-radius: 20px; box-shadow: 0 2px 14px rgba(21,23,40,.06);
    padding: 20px; display: flex; flex-direction: column; gap: 14px;
    transition: transform 200ms cubic-bezier(.16,1,.3,1), box-shadow 200ms; }
.rh-bcard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(21,23,40,.13); color: inherit; }
.rh-bcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rh-tag { font-family: var(--rh-cond); font-weight: 700; font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
    background: var(--rh-line-2); color: var(--rh-faint); }
.rh-tag.is-red { background: #fbe7e8; color: var(--rh-red); }
.rh-tag.is-gold { background: #fdf1d4; color: var(--rh-gold-700); }
.rh-tag.is-green { background: #e4f2ea; color: var(--rh-green); }
.rh-bcard-updated { font-family: var(--rh-mono); font-size: 12px; color: var(--rh-faint); }
.rh-bcard-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.rh-bcard-thumbs img, .rh-bcard-thumbs .art { width: 100%; aspect-ratio: 2/3; border-radius: 8px;
    object-fit: cover; display: block; }
.rh-bcard h3 { font-family: var(--rh-display); font-weight: 800; font-size: 21px; line-height: 1.15;
    letter-spacing: -.012em; color: var(--rh-ink); margin: 0 0 7px; text-wrap: pretty; }
.rh-bcard p { font-size: 14.5px; line-height: 1.5; color: var(--rh-muted); margin: 0; text-wrap: pretty; }
.rh-bcard-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.rh-bcard-foot span { font-family: var(--rh-mono); font-size: 13px; color: var(--rh-ink-2); }
.rh-bcard-foot .rh-sep { width: 4px; height: 4px; border-radius: 50%; background: #c8cad2; }
.rh-bcard-foot span:last-child { color: var(--rh-faint); }

/* ============================ DRAFTS ==================================== */
.rh-drafts { max-width: 1240px; margin: 0 auto; padding: 0 40px 40px; }
.rh-drafts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rh-draft { display: flex; align-items: center; gap: 14px; background: var(--rh-white);
    border: 1px dashed var(--rh-line-3); border-radius: 14px; padding: 14px 18px; }
.rh-draft strong { font-family: var(--rh-display); font-size: 17px; color: var(--rh-ink); }
.rh-draft .rh-bar-spacer { flex: 1; }

/* ============================== CTA ===================================== */
.rh-outro { background: var(--rh-ink); position: relative; overflow: hidden; }
.rh-outro::before { content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); width: 760px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(253,201,73,.20), rgba(253,201,73,0) 70%); }
.rh-outro-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 76px 40px; text-align: center; }
.rh-outro h2 { font-family: var(--rh-display); font-weight: 900; font-size: 46px; line-height: 1.04;
    letter-spacing: -.025em; color: #fff; margin: 0 0 16px; text-wrap: pretty; }
.rh-outro h2 em { color: var(--rh-gold); font-style: italic; }
.rh-outro p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.78); margin: 0 0 28px; }
.rh-outro .rh-cta { height: auto; padding: 14px 28px; font-size: 16px; box-shadow: 0 8px 24px rgba(202,33,40,.4); }

/* =========================== RESPONSIVE ================================= */
@media (max-width: 1080px) {
    .rh-hero-inner { grid-template-columns: minmax(0,1fr); gap: 34px; }
    .rh-headline { font-size: 52px; }
    .rh-rail { position: static; max-width: none; }
    .rh-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .rh-boards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .rh-panel { padding-left: 22px; }
}
@media (max-width: 780px) {
    .rh-hero-inner, .rh-bar-inner, .rh-board, .rh-boards, .rh-drafts { padding-left: 20px; padding-right: 20px; }
    .rh-headline { font-size: 38px; }
    .rh-sub { font-size: 16px; }
    .rh-stats { gap: 22px; }
    .rh-h2 { font-size: 28px; }
    .rh-row { padding: 14px 16px; gap: 10px 12px; }
    .rh-entry.is-top .rh-row { padding: 16px; }
    .rh-rank { min-width: 42px; height: 30px; font-size: 14px; }
    .rh-row-body { flex: 1 1 100%; order: 5; min-width: 0; }
    .rh-score-cell { width: auto; }
    .rh-panel-inner { grid-template-columns: minmax(0,1fr); }
    .rh-take { border-left: 0; border-top: 1px solid var(--rh-line); padding-left: 0; padding-top: 16px; }
    .rh-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .rh-boards-grid { grid-template-columns: minmax(0,1fr); }
    .rh-outro h2 { font-size: 30px; }
}
