/* Shared content styles for official-race v3 and community-festival v4. */
body.familiar-race{margin:0;background:#fff;color:#26313d;font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.65;word-break:keep-all;--theme-accent:#164d92;--theme-soft:#f2f6fb;--theme-border:#dce3ec;--theme-muted:#5e6a79}
.familiar-race *{box-sizing:border-box;min-width:0}.familiar-race a{color:inherit;text-underline-offset:.25em;overflow-wrap:anywhere}.familiar-race a:hover{text-decoration:underline}.familiar-race :focus-visible{outline:3px solid var(--theme-accent);outline-offset:4px}.familiar-race ::selection{background:var(--theme-accent);color:#fff}
.familiar-race h1,.familiar-race h2,.familiar-race h3,.familiar-race p,.familiar-race dd{overflow-wrap:anywhere}.familiar-race h1,.familiar-race h2,.familiar-race h3{line-height:1.4;letter-spacing:-.025em}.familiar-race h1{font-size:clamp(1.8rem,3vw,2.65rem)}.familiar-race h2{font-size:1.35rem}.familiar-race p{margin:.65rem 0}.familiar-race img{max-width:100%;height:auto}.familiar-race button{font:inherit;cursor:pointer}
.familiar-race .theme-container{width:min(1160px,calc(100% - 40px));margin-inline:auto}.familiar-race .theme-skip{position:absolute;left:-10000px}.familiar-race .theme-skip:focus{left:1rem;top:1rem;padding:1rem;background:white;z-index:10}
.familiar-race nav{display:flex}.familiar-race nav a{display:flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none;font-weight:650}.familiar-race nav a[aria-current=page]{text-decoration:underline;text-underline-offset:.5em}
.familiar-race .theme-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.7rem 1.4rem;border:1px solid var(--theme-accent);border-radius:5px;background:var(--theme-accent);color:#fff;font-weight:650;text-decoration:none}.familiar-race .theme-button:hover{filter:brightness(.94)}.familiar-race .theme-button-secondary{color:var(--theme-accent);background:white}
.familiar-race .theme-page{width:min(1060px,calc(100% - 40px));min-height:60vh;margin:auto;padding:44px 0 64px}.familiar-race .theme-page>h1{margin:0 0 28px;padding-bottom:20px;border-bottom:2px solid var(--theme-accent)}.familiar-race .theme-description{color:var(--theme-muted);margin-bottom:28px}
.familiar-race .theme-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:12px;border-bottom:2px solid var(--theme-accent)}.familiar-race .theme-section-heading h2{margin:0}.familiar-race .theme-section-heading>a{font-size:.875rem;color:var(--theme-muted);flex-shrink:0}
.familiar-race dl{margin:0}.familiar-race dd{margin:0}.familiar-race .race-facts>div{display:grid;grid-template-columns:100px 1fr;gap:16px;border-bottom:1px solid var(--theme-border);padding:14px 0}.familiar-race dt{font-weight:650}.familiar-race .theme-notices{list-style:none;padding:0;margin:0}.familiar-race .theme-notices a{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:16px 0;border-bottom:1px solid var(--theme-border);text-decoration:none}.familiar-race .theme-notices a:hover>span{text-decoration:underline}.familiar-race .theme-notices b{display:inline-block;color:var(--theme-accent);background:var(--theme-soft);font-size:.75rem;padding:1px 6px;margin-right:8px;border-radius:3px}.familiar-race time{font-size:.875rem;color:var(--theme-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.familiar-race .theme-contact h2{margin:0 0 8px}.familiar-race .theme-contact>strong{display:block;font-size:1.45rem;color:var(--theme-accent);overflow-wrap:anywhere}.familiar-race .theme-contact>a{display:block;font-size:.9rem}.familiar-race .theme-page>.theme-contact{margin-top:36px;padding:24px;background:var(--theme-soft)}
.familiar-race .theme-courses{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px;margin:28px 0}.familiar-race .theme-courses article{border:1px solid var(--theme-border);background:#fff;border-radius:6px;overflow:hidden}.familiar-race .theme-courses h2{margin:0;padding:16px 24px;color:var(--theme-accent);background:var(--theme-soft);font-size:1.5rem}.familiar-race .theme-courses dl{padding:12px 24px 20px}.familiar-race .theme-courses dl>div{display:grid;grid-template-columns:80px 1fr;gap:12px;padding:9px 0}.familiar-race .theme-courses dt{color:var(--theme-muted);font-weight:400}
.familiar-race .theme-empty{padding:36px 16px;text-align:center;color:var(--theme-muted);border-bottom:1px solid var(--theme-border)}.familiar-race .theme-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:24px 0}.familiar-race figure{margin:0}.familiar-race .theme-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}.familiar-race figcaption{padding:10px 0}.familiar-race .theme-notice-body{padding:28px 0;margin:24px 0;border-block:1px solid var(--theme-border);max-width:75ch;line-height:1.9}.familiar-race .theme-notice h1{margin:0 0 12px}
.familiar-race .theme-footer{border-top:1px solid var(--theme-border);background:#f7f8fa;padding:30px 0;color:var(--theme-muted);font-size:.875rem}.familiar-race .theme-footer .theme-container>a{font-size:1.15rem;color:#26313d;font-weight:750;text-decoration:none}.familiar-race .theme-footer p{margin:8px 0}
.familiar-race dialog{width:min(560px,calc(100% - 32px));max-height:90vh;overflow:auto;padding:24px;border:1px solid var(--theme-border);border-radius:8px;background:white;color:#26313d}.familiar-race dialog::backdrop{background:rgb(0 0 0 / .5)}.familiar-race .theme-popup-trigger{position:relative;display:block;margin:8px auto;padding:8px 16px;border:1px solid var(--theme-border);background:var(--theme-soft);color:var(--theme-accent)}.familiar-race .theme-popup-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-top:16px}.familiar-race .theme-popup-actions button{padding:8px 20px;background:var(--theme-accent);color:white;border:0;border-radius:4px}
@media(max-width:700px){.familiar-race .theme-container,.familiar-race .theme-page{width:calc(100% - 32px)}.familiar-race .theme-page{padding:32px 0 48px}.familiar-race .race-facts>div{grid-template-columns:76px 1fr;gap:12px}.familiar-race .theme-notices a{flex-direction:column;gap:4px}.familiar-race .theme-gallery{grid-template-columns:1fr}.familiar-race .theme-section-heading h2{font-size:1.2rem}.familiar-race .theme-courses{gap:16px}}
