/* 명예의 전당 (PUB-08 전체 누적 랭킹 · PUB-09 이번 달 랭킹 · PUB-10 우리 기관 랭킹) */
.container { width: min(1120px, 100% - 40px); margin: 0 auto; }
.brand-title {
    margin: 0;
    font-family: var(--vb-font-brand);
    font-weight: 800;
    color: var(--vb-color-text-title);
}
.main { flex: 1 0 auto; }

.rk {
    position: relative;
    overflow: hidden;
    padding: 75px 0 80px;
    background-image: linear-gradient(180deg, #f0faf4 0%, #f3f9fc 46%, #f7f6fc 78%, #fffdf8 100%);
}
.rk__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 760px;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
}
.rk .container { position: relative; }
.rk__title { font-size: 34px; line-height: 1.5; }

/* 시상대 */
.podium {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    align-items: end;
    justify-content: center;
    gap: 20px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}
.podium__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 407px;
    overflow: hidden;
    padding: 26px 23px 0;
    border: 1px solid var(--vb-color-surface-white);
    border-radius: 24px;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(249, 252, 251, 0.8) 100%);
    box-shadow: 0 12px 26px rgba(10, 56, 33, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}
.podium__card::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    width: 300px;
    height: 96px;
    background-image: linear-gradient(90deg, rgba(237, 247, 254, 0.96), rgba(244, 250, 252, 0.72));
}
.podium__card--1 { height: 416px; box-shadow: 0 16px 32px rgba(10, 56, 33, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.7); }
.podium__card--1::before { background-image: linear-gradient(90deg, rgba(255, 247, 216, 0.96), rgba(239, 249, 243, 0.72)); }
.podium__card--3::before { background-image: linear-gradient(90deg, rgba(241, 238, 252, 0.96), rgba(238, 247, 251, 0.72)); }
.podium__card > * { position: relative; }
.podium__medal { width: 140px; height: 131px; object-fit: contain; }
.rk--total .podium__card { padding-top: 22px; }
.rk--total .podium__medal { width: 148px; height: 139px; }
.podium__name { margin: 10px 0 0; font-size: 18px; font-weight: 700; line-height: 28px; color: var(--vb-color-text-title); }
.podium__card--1 .podium__name { font-size: 20px; line-height: 30px; }
.podium__org { margin: 0; font-size: 13px; line-height: 20px; color: var(--vb-color-text-secondary); }
.podium__card--1 .podium__org { margin-top: -2px; }
.podium__km { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 0; font-size: 14px; line-height: 22px; color: var(--vb-color-text-secondary); }
.podium__km strong { font-family: var(--vb-font-brand); font-size: 34px; font-weight: 800; line-height: 1.5; color: var(--vb-color-semantic-info); }
.podium__card--1 .podium__km strong { font-size: 44px; line-height: 1.4; }
.podium__stats { align-self: stretch; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--vb-color-border-subtle); }
.podium__stats div { display: flex; align-items: center; justify-content: space-between; }
.podium__stats div + div { margin-top: 4px; }
.podium__stats dt { font-size: 13px; font-weight: 600; line-height: 20px; }
.podium__stats dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 22px; color: var(--vb-color-text-primary); }
.podium__sub { margin: 10px 0 0; font-size: 12px; line-height: 18px; color: var(--vb-color-text-muted); }
.c-rr { color: var(--vb-color-rr-blue); }
.c-tr { color: var(--vb-color-tr-purple); }
.c-cert { color: var(--vb-color-semantic-warning-text); }

/* 순위 표 */
.rank-table { margin-top: 64px; }
.rank-table__scroll { overflow-x: auto; }
.rank-table__inner { min-width: 1120px; }
.rank-head,
.rank-row {
    display: grid;
    grid-template-columns: 95px 48px 282px 150px 150px 100px 170px 1fr;
    align-items: center;
}
.rank-head { padding: 0 0 8px; font-size: 12px; font-weight: 600; line-height: 18px; color: var(--vb-color-text-muted); }
.rank-head span:first-child { padding-left: 16px; }
.rank-head span:nth-child(2) { grid-column: 2 / 4; padding-left: 1px; }
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-row {
    position: relative;
    height: 64px;
    border: 1px solid var(--vb-color-surface-white);
    border-radius: 14px;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.3));
    font-size: 14px;
    line-height: 22px;
    color: var(--vb-color-text-primary);
}
.rank-row::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 1px;
    height: 1px;
    background: var(--vb-color-border-subtle);
}
.rank-row--top {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66));
    box-shadow: 0 5px 12px rgba(13, 56, 33, 0.06);
}
.rank-row--top::after { content: none; }
.rank-row--top + .rank-row { margin-top: 6px; }
.rank-row__rank { padding-left: 34px; font-weight: 600; color: var(--vb-color-text-muted); }
.rank-row--top .rank-row__rank { padding-left: 35px; font-size: 18px; font-weight: 700; line-height: 28px; color: var(--vb-color-brand-green); }
.rank-row__avatar { width: 36px; height: 36px; }
.rank-row__who strong { display: block; font-weight: 600; color: var(--vb-color-text-title); }
.rank-row__who span { display: block; font-size: 12px; line-height: 18px; color: var(--vb-color-text-secondary); }
.rank-row__total { font-size: 16px; font-weight: 600; line-height: 26px; color: var(--vb-color-semantic-info); }

.my-rank {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    margin-top: 24px;
    padding: 14px 24px;
    border-radius: 16px;
    background: var(--vb-color-brand-green-tint);
}
.my-rank__label { margin: 0; font-size: 13px; font-weight: 600; line-height: 20px; color: var(--vb-color-brand-green); }
.my-rank__text { margin: 0; font-size: 16px; font-weight: 600; line-height: 26px; color: var(--vb-color-text-title); }
.my-rank .btn { flex: none; width: 140px; }
.rk__note { margin: 14px 0 0 24px; font-size: 13px; line-height: 20px; color: var(--vb-color-text-muted); }

@media (max-width: 1000px) {
    .podium { grid-template-columns: minmax(0, 300px); }
    .podium__card--1 { order: -1; }
    .my-rank { flex-direction: column; align-items: flex-start; }
}

/* ── PUB-09A 베리포인트 랭킹 (2026-09-22 사본 1086:2700) — 「거리 · 베리포인트」 토글 ── */
/* 제목 오른쪽 도구 줄 — 범위 칩(전체 · 친구) + 랭킹 기준 토글 (V2 사본 PUB-09B · 칩 57×36 · 칩 사이 8 · 토글까지 16) */
.rk-tools { position: absolute; top: 8px; right: 0; display: flex; align-items: center; gap: 16px; }
.rk-scope { display: flex; gap: 8px; }
.rk-scope a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--vb-color-border-default);
    border-radius: 999px;
    background: var(--vb-color-surface-white);
    font-size: 14px;
    line-height: 22px;
    white-space: nowrap;
    color: var(--vb-color-text-primary);
}
.rk-scope a.is-on { border-color: var(--vb-color-brand-green); background: var(--vb-color-brand-green); font-weight: 600; color: var(--vb-color-text-inverse); }
.rk-tools .rk-toggle { position: static; }
.rk-toggle {
    position: absolute;
    top: 8px;
    right: 0;
    display: flex;
    gap: 2px;
    height: 36px;
    padding: 4px;
    border-radius: 999px;
    background: var(--vb-color-surface-subtle);
}
.rk-toggle a {
    height: 28px;
    padding: 4px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--vb-color-text-muted);
}
.rk-toggle a.is-on { border-color: var(--vb-color-border-default); background: var(--vb-color-surface-white); color: var(--vb-color-text-title); }
.rk--points .podium__km strong { color: var(--vb-color-semantic-info); }
.rank-head--points span:nth-child(3) { grid-column: 4 / 5; }
.rk--points .rank-row .c-rr { grid-column: 4 / 5; }
@media (max-width: 767px) {
    .rk-toggle { position: static; display: inline-flex; margin-top: 12px; }
    .rk-tools { position: static; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
    .rk-tools .rk-toggle { margin-top: 0; }
}

/* ── 2026-10-01 새 사본 PUB-09 · 10 · 11 (20:3141 · 20:3583 · 1521:5008 · 1521:5472 · 1521:5666) ──
   제목 줄: 제목 + 「리딩레이스 / 씽킹레이스」 칩(왼쪽) · 「우리 기관 / 베리북스 전체 / 베리포인트」 칩(오른쪽)
   단상: 큰 숫자 + 「인증 · 코스」(전체) / 「인증」 + 아래 「N코스 · 진행 중」(우리 기관) / 「누적」(베리포인트)
   표: 순위 · 회원 · 거리(또는 이번 달 P) · 인증(또는 누적 P) · 코스 */
.rk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rk-head .rk__title { margin: 0; }
.rk-head .rk-scope--board { margin-left: auto; }
.rk-v2 .podium__km { margin-top: 10px; }
.rk-v2 .podium__stats dt { font-size: 13px; font-weight: 500; color: var(--vb-color-text-secondary); }
.rk-v2 .podium__sub--bottom { margin-top: auto; padding-bottom: 18px; }
.rank-v2 .rank-head,
.rank-v2 .rank-row { grid-template-columns: 96px 48px 326px 249px 276px 1fr; }
.rank-v2 .rank-row__km { font-size: 16px; font-weight: 600; line-height: 26px; color: var(--vb-color-semantic-info); }
@media (max-width: 767px) {
    .rk-head .rk-scope--board { margin-left: 0; }
}
