/* 마라톤타임 — 레이스 번호표(bib)처럼 날짜를 크게, 나머지는 조용하게 */
:root {
  --bg: #ffffff; --surface: #f5f6f8; --line: #e3e6eb; --text: #14171c; --muted: #5d6673;
  --accent: #0a6cff; --open: #0b7a3e; --soon: #8a5a00; --closed: #8a9099;
  --open-bg: #e6f4ec; --soon-bg: #fbf1dc; --closed-bg: #eef0f3;
  --radius: 14px; --wrap: 760px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418; --surface: #1a1e24; --line: #2a3039; --text: #eef1f5; --muted: #9aa4b2;
    --accent: #5aa1ff; --open: #5fd394; --soon: #f0c060; --closed: #7d8590;
    --open-bg: #12301f; --soon-bg: #33290f; --closed-bg: #23272e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif; word-break: keep-all; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.rn-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.rn-muted { color: var(--muted); font-size: .9em; }

.rn-top { border-bottom: 1px solid var(--line); background: var(--bg); }
.rn-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.rn-brand { font-weight: 800; font-size: 1.1rem; color: var(--text); letter-spacing: -.02em; }
.rn-nav { display: flex; gap: 16px; font-size: .92rem; white-space: nowrap; overflow-x: auto; }
.rn-nav a { color: var(--muted); }

.rn-hero { padding: 28px 0 8px; }
.rn-hero h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); line-height: 1.25; margin: 0 0 10px; letter-spacing: -.03em; }
.rn-lead { color: var(--muted); margin: 0 0 16px; max-width: 62ch; }
.rn-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.rn-jump a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .9rem; }
.rn-jump small { color: var(--muted); }

.rn-sec { margin: 28px 0; }
.rn-sec h2 { font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -.02em; }
.rn-sec h2 small, .rn-month small { color: var(--muted); font-weight: 500; font-size: .8em; }
.rn-month { font-size: 1.05rem; margin: 24px 0 8px; padding-top: 4px; scroll-margin-top: 16px; }

.rn-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rn-row a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.rn-row a:hover .rn-row-name { color: var(--accent); }
/* 번호표 같은 날짜 칸 */
.rn-row-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border: 2px solid var(--text); border-radius: 10px; line-height: 1; }
.rn-row-date b { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rn-row-date small { font-size: .68rem; white-space: nowrap; color: var(--muted); margin-top: 3px; }
.rn-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rn-row-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.rn-row-meta { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rn-chip { font-size: .75rem; padding: 1px 7px; border-radius: 6px; background: var(--surface); color: var(--muted); }

.rn-st { display: inline-block; font-size: .78rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rn-st--open { color: var(--open); background: var(--open-bg); }
.rn-st--soon { color: var(--soon); background: var(--soon-bg); }
.rn-st--closed, .rn-st--done, .rn-st--unknown { color: var(--closed); background: var(--closed-bg); }
.rn-hero--race .rn-st { margin: 0 0 10px; }

.rn-crumb { font-size: .85rem; color: var(--muted); padding-top: 16px; }
.rn-card { background: var(--surface); border-radius: var(--radius); padding: 18px; }
.rn-facts { margin: 0; display: grid; gap: 0; }
.rn-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rn-facts div:last-child { border-bottom: 0; }
.rn-facts dt { color: var(--muted); font-size: .9rem; }
.rn-facts dd { margin: 0; font-weight: 600; }
.rn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.rn-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 650; }
.rn-btn:hover { text-decoration: none; filter: brightness(1.05); }
.rn-btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.rn-src { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.rn-plain { margin: 0; padding-left: 18px; }
.rn-plain li { margin: 6px 0; }
.rn-regions { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.rn-regions b { color: var(--text); }

.rn-ad { margin: 32px 0; text-align: center; min-height: 280px; }
.rn-ad-label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 6px; }

.rn-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0 32px; color: var(--muted); font-size: .85rem; }
.rn-foot p { margin: 6px 0; }

@media (max-width: 520px) {
  .rn-row a { grid-template-columns: 48px minmax(0, 1fr); }
  .rn-row-date { height: 48px; }
  .rn-row .rn-st { grid-column: 2; justify-self: start; }
  .rn-facts div { grid-template-columns: 80px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.rn-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.rn-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.rn-form input, .rn-form textarea { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
.rn-form .rn-btn { align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.rn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
