/* ============================================================================
   community-pro.css — 커뮤니티 디자인 프리미엄 패스 (2026-05-27)

   목적: 당근마켓·토스 수준의 사용자친화 디자인. community.css 위에 얹는 override.
   원칙:
     - 그림자 1단계 + 둥근 16px+ + 넉넉한 여백 + 절제된 색상
     - 보더는 옅게(1px subtle), 호버는 그림자 lift (border 변색 ❌)
     - 다크모드 자동 대응 (CSS variable 의존)
     - 모바일에서 컴팩트, 데스크탑에서 여유

   적용 페이지:
     - Community/Index (허브)
     - Community/Category (목록 + 런닝구장터 그리드)
     - Community/New (작성 폼)
     - Community/Detail (상세)
   ============================================================================ */

/* ─────────────────────────────────────────────────────────────────────────
   디자인 토큰 보강 (community.css 와 호환되는 추가 변수)
   ───────────────────────────────────────────────────────────────────────── */
/* 폰트가 아직 안 로드된 경우 텍스트(예: "directions_run") 가 그대로 보이는 문제 방지.
   site.js 가 font-ready 를 검증해 body 에 .no-material-icons 클래스를 붙임. */
body.no-material-icons .material-icons { display: none !important; }
.material-icons {
    font-feature-settings: 'liga';
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    max-width: 1.5em;
}

:root {
    --ro-shadow-card:     0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
    --ro-shadow-card-h:   0 4px 16px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.06);
    --ro-shadow-pop:      0 20px 60px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --ro-radius-pro:      16px;
    --ro-radius-pro-lg:   20px;
    --ro-radius-pill:     999px;
}
[data-theme="dark"] {
    --ro-shadow-card:     0 1px 2px rgba(0,0,0,0.30), 0 2px 8px rgba(0,0,0,0.20);
    --ro-shadow-card-h:   0 4px 16px rgba(0,0,0,0.40), 0 8px 32px rgba(0,0,0,0.30);
    --ro-shadow-pop:      0 20px 60px rgba(0,0,0,0.50), 0 4px 12px rgba(0,0,0,0.30);
}

/* ─────────────────────────────────────────────────────────────────────────
   1. 페이지 헤더 — 큰 타이틀, 부제, 검색바 (당근 홈 헤더 스타일)
   ───────────────────────────────────────────────────────────────────────── */
.ro-community-header {
    padding: clamp(20px, 4vw, 32px) 0 clamp(16px, 3vw, 24px);
    border-bottom: 1px solid var(--ro-border);
    margin-bottom: clamp(20px, 3.5vw, 32px);
}
.ro-community-header__title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}
.ro-community-header__desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ro-text-sub);
    max-width: 720px;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. 허브: 카테고리 카드 — 토스 카드 스타일 (그림자 lift, 보더 옅음)
   ───────────────────────────────────────────────────────────────────────── */
.ro-cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.ro-cat-card {
    position: relative;
    padding: 22px 22px 20px;
    border: 1px solid var(--ro-border);
    border-radius: var(--ro-radius-pro);
    background: var(--ro-surface);
    box-shadow: var(--ro-shadow-card);
    transition:
        transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ro-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ro-shadow-card-h);
    border-color: var(--ro-border);   /* override: don't switch color */
}
.ro-cat-card__head { gap: 14px; margin-bottom: 14px; }
.ro-cat-card__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    font-size: 22px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.ro-cat-card__title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.ro-cat-card__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ro-text-sub);
}
.ro-cat-card__recent {
    border-top: 1px solid var(--ro-border);
    padding-top: 14px;
    gap: 8px;
}
.ro-cat-card__recent li {
    font-size: 13.5px;
    color: var(--ro-text);
    position: relative;
    padding-left: 12px;
}
.ro-cat-card__recent li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.65em;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--ro-primary-400);
}
.ro-cat-card__empty {
    margin: 4px 0 0;
    padding: 12px 14px;
    background: var(--ro-bg);
    border-radius: 12px;
    font-size: 12.5px;
    color: var(--ro-text-sub);
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────
   3. 카테고리 페이지 툴바 — 더 넉넉하고 정돈된 레이아웃
   ───────────────────────────────────────────────────────────────────────── */
.ro-cat-toolbar {
    padding: 12px 14px;
    border: 1px solid var(--ro-border);
    border-radius: var(--ro-radius-pro);
    background: var(--ro-surface);
    box-shadow: var(--ro-shadow-card);
    gap: 10px;
}
.ro-cat-toolbar__sort .ro-chip {
    padding: 8px 14px;
    border-radius: var(--ro-radius-pill);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--ro-border);
    background: transparent;
    color: var(--ro-text-sub);
    transition: background 160ms, color 160ms, border-color 160ms;
}
.ro-cat-toolbar__sort .ro-chip:hover { color: var(--ro-text); }
.ro-cat-toolbar__sort .ro-chip--primary {
    background: var(--ro-text);
    color: var(--ro-surface);
    border-color: var(--ro-text);
}
.ro-cat-toolbar__search input {
    padding: 10px 14px;
    border-radius: var(--ro-radius-pill);
    border: 1px solid var(--ro-border);
    background: var(--ro-bg);
    font-size: 13.5px;
}

/* ─────────────────────────────────────────────────────────────────────────
   4. 일반 카테고리 — 게시글 리스트
   ───────────────────────────────────────────────────────────────────────── */
.ro-post-list { gap: 6px; }
.ro-post-row {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: var(--ro-surface);
    box-shadow: var(--ro-shadow-card);
    transition: transform 160ms, box-shadow 160ms;
}
.ro-post-row:hover {
    transform: translateY(-1px);
    box-shadow: var(--ro-shadow-card-h);
    border-color: var(--ro-border);
}
.ro-post-row__title {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}
.ro-post-row__meta { font-size: 12.5px; gap: 8px; }
.ro-post-row__stats { font-size: 12.5px; gap: 14px; }

/* ─────────────────────────────────────────────────────────────────────────
   5. 런닝구장터 — 당근마켓 스타일 카드 그리드
       모바일: 2열, 태블릿: 3열, 데스크탑: 4-5열
   ───────────────────────────────────────────────────────────────────────── */
.ro-seller-other__grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
    gap: clamp(10px, 1.6vw, 16px);
}

/* 위치 표시 바 */
.ro-market-locate-bar {
    border-radius: var(--ro-radius-pro) !important;
    padding: 12px 16px !important;
    box-shadow: var(--ro-shadow-card);
}
.ro-market-locate-bar .ro-btn {
    border-radius: var(--ro-radius-pill);
    padding: 8px 16px !important;
    font-weight: 600;
}

/* 카드 — 당근 스타일 */
.ro-seller-other__item {
    position: relative;
    border-radius: 14px;
    border: 1px solid var(--ro-border);
    box-shadow: var(--ro-shadow-card);
    overflow: hidden;
    transition:
        transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ro-seller-other__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--ro-shadow-card-h);
}
.ro-seller-other__thumb {
    aspect-ratio: 1;
    background-color: var(--ro-bg);
    background-size: cover;
    background-position: center;
    position: relative;
}
/* 썸네일 위 배지 (좌상단) */
.ro-seller-other__item .ro-market-badge {
    position: relative;
    margin-right: 0;
    font-size: 10.5px;
    padding: 3px 9px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}
/* 찜 카운트 코너 배지 (썸네일 우상단) */
.ro-wish-corner {
    position: absolute;
    top: 8px; right: 8px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(245,158,11,0.92);
    color: #fff;
    font-size: 11px; font-weight: 800;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    z-index: 2;
}
.ro-seller-other__info {
    padding: 12px 12px 14px;
}
.ro-seller-other__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8em;
    color: var(--ro-text);
    margin-bottom: 6px;
}
.ro-seller-other__price {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--ro-text);
    letter-spacing: -0.01em;
}
.ro-market-dist {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: var(--ro-primary-600) !important;
}

/* 네고 가능/정가 알약 — 가격 옆에 작게 */
.ro-nego-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    vertical-align: 2px;
}
.ro-nego-pill--yes {
    background: var(--ro-primary-50, rgba(34,197,94,0.12));
    color: var(--ro-primary-700);
}
.ro-nego-pill--no {
    background: var(--ro-border);
    color: var(--ro-text-sub);
}

/* ─────────────────────────────────────────────────────────────────────────
   매물 상세 — 모바일 sticky 액션바 (당근마켓 스타일)
   데스크탑: 위 인라인 CTA(.ro-market-cta) 사용, sticky 바 숨김
   모바일(≤ 768): sticky 바 표시, 인라인 CTA 숨김
   ───────────────────────────────────────────────────────────────────────── */
.ro-market-cta {
    display: block;
    text-align: center;
    padding: 14px !important;
    margin: 14px 0;
    font-size: 15px;
}

.ro-market-stickybar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: none;            /* 데스크탑에선 숨김 */
    align-items: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--ro-surface);
    border-top: 1px solid var(--ro-border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.ro-market-stickybar__price {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 8px;
    font-size: 16px;
    color: var(--ro-text);
}
.ro-market-stickybar__price strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ro-text);
}
.ro-market-stickybar__cta {
    flex-shrink: 0;
    padding: 12px 22px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
}
[data-theme="dark"] .ro-market-stickybar,
html[data-theme="dark"] .ro-market-stickybar {
    box-shadow: 0 -4px 16px rgba(0,0,0,0.40);
}

@media (max-width: 768px) {
    .ro-market-cta { display: none; }
    .ro-market-stickybar { display: flex; }
    /* sticky 바가 있는 페이지에만 본문 하단 패딩 부여 */
    body:has(.ro-market-stickybar) { padding-bottom: 84px; }
}

/* 거래 상태 배지 — 알약 모양 단색 */
.ro-market-badge {
    border-radius: var(--ro-radius-pill);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.ro-market-badge--selling  {
    background: var(--ro-success-100, var(--ro-success-50));
    color: var(--ro-success-700);
}
.ro-market-badge--reserved {
    background: var(--ro-warn-100, var(--ro-warn-50));
    color: var(--ro-warn-700);
}
.ro-market-badge--sold     {
    background: var(--ro-gray-200);
    color: var(--ro-text-sub);
}

/* SOLD 상품 흐리게 */
.ro-seller-other__item:has(.ro-market-badge--sold) .ro-seller-other__thumb { opacity: 0.5; }
.ro-seller-other__item:has(.ro-market-badge--sold) .ro-seller-other__price {
    text-decoration: line-through;
    color: var(--ro-text-sub);
}

/* ─────────────────────────────────────────────────────────────────────────
   6. 작성 폼 — 토스 폼 UI
   ───────────────────────────────────────────────────────────────────────── */
.ro-write-card {
    border-radius: var(--ro-radius-pro-lg);
    border: 1px solid var(--ro-border);
    background: var(--ro-surface);
    box-shadow: var(--ro-shadow-card);
    padding: clamp(20px, 4vw, 36px);
}
.ro-form-input, .ro-form-textarea {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    background: var(--ro-bg) !important;
    color: var(--ro-text) !important;
    caret-color: var(--ro-text);
    border-color: var(--ro-border);
    transition: border-color 160ms, box-shadow 160ms;
    color-scheme: light dark;  /* UA placeholder/autofill 색 자동 보정 */
}
.ro-form-input::placeholder, .ro-form-textarea::placeholder {
    color: var(--ro-text-sub);
    opacity: 0.8;
}
.ro-form-input:focus, .ro-form-textarea:focus {
    border-color: var(--ro-primary-500);
    box-shadow: 0 0 0 3px var(--ro-primary-100, rgba(34,197,94,0.18));
    outline: none;
}
/* 다크모드 autofill 흰배경 방지 (Chrome) */
[data-theme="dark"] .ro-form-input:-webkit-autofill,
[data-theme="dark"] .ro-form-textarea:-webkit-autofill,
html[data-theme="dark"] .ro-form-input:-webkit-autofill,
html[data-theme="dark"] .ro-form-textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--ro-text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--ro-bg) inset !important;
    caret-color: var(--ro-text);
}

/* 판매 가이드 · 법적 면책 (글쓰기 폼) */
.ro-sale-guide {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--ro-bg);
    border: 1px solid var(--ro-border);
    border-radius: 14px;
    font-size: 13.5px;
    color: var(--ro-text);
}
.ro-sale-guide > summary {
    cursor: pointer;
    list-style: none;
    color: var(--ro-text);
    font-size: 14px;
}
.ro-sale-guide > summary::before { content: "▾ "; transition: transform 160ms; display: inline-block; }
.ro-sale-guide:not([open]) > summary::before { content: "▸ "; }
.ro-sale-guide__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
}
@media (min-width: 720px) {
    .ro-sale-guide__cols { grid-template-columns: 1fr 1fr; }
}
.ro-sale-guide h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ro-text);
    letter-spacing: -0.01em;
}
.ro-sale-guide ul { margin: 0 0 0 18px; padding: 0; line-height: 1.7; color: var(--ro-text-sub); }
.ro-sale-guide li { margin-bottom: 3px; font-size: 13px; }
.ro-sale-guide__agree {
    display: flex; gap: 8px; align-items: flex-start;
    margin-top: 14px; padding: 10px 12px;
    background: var(--ro-surface);
    border: 1px solid var(--ro-border);
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}
.ro-sale-guide__agree input { margin-top: 3px; }

/* 시장 칩 라디오 — 알약 형태
   ⚠ community.css 에도 .ro-market-sub-chip 가 정의돼 있어 라벨(label)에 보더/배경/box-shadow 가 붙음.
   여기(나중에 로드)서 라벨 박스를 완전히 초기화하고, 알약 스타일은 안쪽 <span> 에만 적용 → 이중 테두리 방지. */
.ro-market-sub-chip {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.ro-market-sub-chip:hover {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.ro-market-sub-chip:has(input:checked) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.ro-market-sub-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ro-market-sub-chip span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--ro-border);
    border-radius: var(--ro-radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--ro-text-sub);
    background: var(--ro-surface);
    transition: all 160ms;
    user-select: none;
}
.ro-market-sub-chip:hover span { color: var(--ro-text); border-color: var(--ro-text-sub); }
.ro-market-sub-chip input:checked + span {
    background: var(--ro-text);
    color: var(--ro-surface);
    border-color: var(--ro-text);
}

/* ─────────────────────────────────────────────────────────────────────────
   7. 상세 페이지 — 좀 더 여백 있게
   ───────────────────────────────────────────────────────────────────────── */
.ro-market-card {
    border-radius: var(--ro-radius-pro-lg) !important;
    box-shadow: var(--ro-shadow-card);
    border: 1px solid var(--ro-border) !important;
}
.ro-market-card__price { font-size: 28px !important; font-weight: 800 !important; letter-spacing: -0.02em; }

.ro-market-map-block {
    border-radius: var(--ro-radius-pro) !important;
    box-shadow: var(--ro-shadow-card);
}

/* ─────────────────────────────────────────────────────────────────────────
   8. 버튼 — 토스 스타일 (검정/녹색 솔리드, 회색 보더)
   ───────────────────────────────────────────────────────────────────────── */
.ro-btn {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 120ms, background 160ms, color 160ms, border-color 160ms;
}
.ro-btn:active { transform: scale(0.97); }

.ro-btn--primary {
    background: var(--ro-primary-600);
    color: white;
    border: 1px solid var(--ro-primary-600);
}
.ro-btn--primary:hover { background: var(--ro-primary-700); border-color: var(--ro-primary-700); }

.ro-btn--ghost {
    background: var(--ro-bg);
    color: var(--ro-text);
    border: 1px solid var(--ro-border);
}
.ro-btn--ghost:hover { background: var(--ro-surface-1, var(--ro-bg)); border-color: var(--ro-text-sub); }

.ro-btn--outline {
    background: transparent;
    color: var(--ro-text);
    border: 1px solid var(--ro-border);
}

/* ─────────────────────────────────────────────────────────────────────────
   9. 모바일 — 컴팩트하지만 안 갑갑하게
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ro-community-header__title { font-size: 22px; }
    .ro-community-header__desc  { font-size: 14px; }

    .ro-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ro-cat-card { padding: 14px; }
    .ro-cat-card__icon { width: 38px; height: 38px; font-size: 18px; }
    .ro-cat-card__title { font-size: 14.5px; }
    .ro-cat-card__desc  { font-size: 12.5px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .ro-cat-card__recent { display: none; }    /* 모바일에서 최신글 목록 숨김 — 카드 컴팩트 */

    .ro-seller-other__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ro-seller-other__title { font-size: 13px; min-height: 2.6em; }
    .ro-seller-other__price { font-size: 14.5px; }
    .ro-seller-other__info { padding: 10px; }

    .ro-cat-toolbar { padding: 10px; }
    .ro-cat-toolbar__search { max-width: none; flex: 1 1 100%; order: 99; }
}

@media (min-width: 1100px) {
    .ro-seller-other__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ─────────────────────────────────────────────────────────────────────────
   9.5. 베스트 게시글 — 일간/주간/월간
   ───────────────────────────────────────────────────────────────────────── */
.ro-best {
    margin: 24px 0 28px;
    padding: 20px 22px 22px;
    background: var(--ro-surface);
    border: 1px solid var(--ro-border);
    border-radius: 18px;
    box-shadow: var(--ro-shadow-card);
}
.ro-best__head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.ro-best__title {
    margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -0.02em;
    color: var(--ro-text);
}
.ro-best__tabs {
    display: inline-flex; gap: 0;
    padding: 3px;
    background: var(--ro-bg);
    border: 1px solid var(--ro-border);
    border-radius: var(--ro-radius-pill);
}
.ro-best__tab {
    appearance: none; border: 0; cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--ro-radius-pill);
    background: transparent;
    color: var(--ro-text-sub);
    font-size: 12.5px; font-weight: 700;
    letter-spacing: -0.01em;
    transition: background 160ms, color 160ms;
}
.ro-best__tab:hover { color: var(--ro-text); }
.ro-best__tab.is-active {
    background: var(--ro-text);
    color: var(--ro-surface);
}

.ro-best__panel { display: none; }
.ro-best__panel.is-active { display: block; }

.ro-best__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.ro-best__row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 160ms;
}
.ro-best__row:hover { background: var(--ro-bg); }
.ro-best__rank {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px;
    background: var(--ro-bg);
    color: var(--ro-text-sub);
    font-variant-numeric: tabular-nums;
}
.ro-best__rank--1 { background: radial-gradient(circle at 30% 30%, #fde047, #ca8a04); color: #fff; }
.ro-best__rank--2 { background: radial-gradient(circle at 30% 30%, #f1f5f9, #64748b); color: #fff; }
.ro-best__rank--3 { background: radial-gradient(circle at 30% 30%, #fed7aa, #b45309); color: #fff; }
.ro-best__main { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ro-best__cat {
    font-size: 10.5px; font-weight: 800;
    color: var(--ro-primary-700);
    padding: 2px 8px;
    background: var(--ro-primary-50, rgba(34,197,94,0.10));
    border-radius: 999px;
    flex-shrink: 0;
}
.ro-best__title-text {
    font-size: 14px; font-weight: 700;
    color: var(--ro-text);
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ro-best__author {
    font-size: 11.5px; color: var(--ro-text-sub);
    flex-shrink: 0;
}
.ro-best__stats {
    display: flex; gap: 10px;
    font-size: 12px; color: var(--ro-text-sub);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ro-best__like { color: var(--ro-primary-700); font-weight: 700; }
.ro-best__empty {
    margin: 14px 0;
    padding: 16px;
    text-align: center;
    color: var(--ro-text-sub);
    font-size: 13px;
    background: var(--ro-bg);
    border-radius: 12px;
}
@media (max-width: 540px) {
    .ro-best__row { grid-template-columns: 28px 1fr auto; gap: 10px; padding: 10px; }
    .ro-best__author { display: none; }
    .ro-best__title-text { font-size: 13.5px; }
    .ro-best__stats .ro-best__reply { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   10. 도움말 토글 — "사용 방법" 버튼 + 펼침 패널
   ───────────────────────────────────────────────────────────────────────── */
.ro-help-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 14px;
    background: var(--ro-bg);
    border: 1px solid var(--ro-border);
    border-radius: var(--ro-radius-pill);
    color: var(--ro-text-sub);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color 160ms, border-color 160ms, background 160ms;
}
.ro-help-toggle:hover { color: var(--ro-text); border-color: var(--ro-text-sub); }
.ro-help-toggle[aria-expanded="true"] {
    background: var(--ro-primary-50);
    color: var(--ro-primary-700);
    border-color: var(--ro-primary-200);
}
.ro-help-panel {
    margin-top: 12px;
    padding: 14px 18px;
    background: var(--ro-bg);
    border: 1px solid var(--ro-border);
    border-radius: 12px;
    color: var(--ro-text-sub);
    font-size: 13.5px;
    line-height: 1.7;
}
.ro-help-panel ul { margin: 0; padding-left: 18px; }
.ro-help-panel li { margin-bottom: 4px; }
.ro-help-panel li:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   11. 런닝구장터 비로그인 게이트 — "친구가 되어야 보여요"
   ───────────────────────────────────────────────────────────────────────── */
.ro-gate {
    max-width: 640px;
    margin: 32px auto 64px;
    padding: 48px 28px;
    background: var(--ro-surface);
    border: 1px solid var(--ro-border);
    border-radius: 24px;
    box-shadow: var(--ro-shadow-card);
    text-align: center;
}
.ro-gate__art { margin: 0 auto 18px; line-height: 0; }
.ro-gate__title {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 14px;
    color: var(--ro-text);
}
.ro-gate__desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ro-text-sub);
    margin: 0 0 32px;
}
.ro-gate__perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin: 0 0 32px;
}
.ro-gate__perk {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--ro-bg);
    border-radius: 14px;
}
.ro-gate__perk-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--ro-primary-100, var(--ro-primary-50));
    color: var(--ro-primary-700);
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ro-gate__perk strong {
    display: block;
    color: var(--ro-text);
    font-size: 14.5px;
    margin-bottom: 2px;
}
.ro-gate__perk span {
    display: block;
    color: var(--ro-text-sub);
    font-size: 13px;
    line-height: 1.55;
}
.ro-gate__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 0 16px;
    flex-wrap: wrap;
}
.ro-gate__btn-primary, .ro-gate__btn-ghost {
    min-width: 140px;
    padding: 12px 24px;
    font-size: 15px;
}
.ro-gate__foot a {
    color: var(--ro-text-sub);
    font-size: 13px;
    text-decoration: none;
}
.ro-gate__foot a:hover { color: var(--ro-text); }
@media (max-width: 540px) {
    .ro-gate { padding: 32px 18px; margin: 16px 12px 48px; }
    .ro-gate__actions .ro-btn { flex: 1 1 100%; }
}
