/*
 * 공통 스타일과 이후 보완 규칙은 현재 선언 순서에 의존한다. 중복 선택자를 합치거나 재정렬하면 같은 특이도의 우선순위가 바뀐다.
 */
@font-face {
    font-family: Kanit;
    src: url('/assets/fonts/Kanit-Regular.woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Kanit;
    src: url('/assets/fonts/Kanit-Medium.woff2');
    font-weight: 500 900;
    font-display: swap;
}
@font-face {
    font-family: Manrope;
    src: url('/assets/fonts/Manrope.woff2');
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: 'source-han-sans-kr-variable';
    src: url('/assets/fonts/SourceHanSansKR-VF.woff2');
    font-weight: 250 900;
    font-display: swap;
    unicode-range: U+0000-10FF,U+1200-302D,U+3030-312F,U+3190-A95F,U+A980-ABFF,U+D800-FF9F,U+FFDD-10FFFF;
}
:root {
    --blue: #245bff;
    --ink: #15171b;
    --muted: #626976;
    --line: #e5e8ee;
    --surface: #f7f8fa;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: white;
    color: var(--ink);
    font: 15px/1.75 'Pretendard Variable','source-han-sans-kr-variable',SUIT,Kanit,sans-serif;
    -webkit-font-smoothing: antialiased;
}
.en {
    font-family: 'Pretendard Variable',Kanit,sans-serif;
}
.number {
    font-family: 'Pretendard Variable',Manrope,sans-serif;
    font-weight: 500;
    font-variant-numeric: lining-nums tabular-nums;
}
a {
    color: inherit;
    text-decoration: none;
}
button,input,select,textarea {
    font: inherit;
}
button,a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
h1,h2,h3,p {
    margin: 0 0 16px;
}
h1 {
    font-size: 36px;
    line-height: 1.35;
    letter-spacing: -.035em;
    font-weight: 600;
}
h2 {
    font-size: 25px;
    line-height: 1.5;
    letter-spacing: -.025em;
    font-weight: 550;
}
h3 {
    font-size: 21px;
    line-height: 1.5;
    font-weight: 550;
}
.shell {
    max-width: 1440px;
    margin: auto;
    padding: 0 64px;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
    border-bottom: 1px solid var(--line);
}
.logo {
    display: block;
    width: 180px;
    height: auto;
}
nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
}
nav a {
    padding: 10px 0;
    white-space: nowrap;
}
nav a[aria-current=page] {
    color: var(--blue);
}
main {
    min-height: 70vh;
    padding: 40px 0 80px;
}
.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 50px;
    min-height: 350px;
    padding: 12px 0 46px;
}
.hero h1 {
    font-size: clamp(56px,6vw,82px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.025em;
}
.hero em {
    font-style: normal;
    color: var(--blue);
}
.hero p:not(.eyebrow) {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    margin-top: 22px;
}
.hero {
    position: relative;
    isolation: isolate;
}
.hero>div:first-child {
    position: relative;
    z-index: 1;
}
.hero-art {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 390px;
    max-width: 45%;
    color: #c3cad7;
    z-index: 0;
    pointer-events: none;
}
.eyebrow {
    font: 400 11px 'Pretendard Variable',Kanit,sans-serif;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 18px;
}
.section-title,.row,.event-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.section-title {
    margin: 40px 0 22px;
}
.section-title h2 {
    margin: 0;
}
.muted {
    color: var(--muted);
    font-size: 13px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}
.card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    min-width: 0;
    align-self: start;
}
.race-card h3 {
    margin: 26px 0 12px;
}
.card-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 18px;
    font-size: 13px;
}
.badge {
    display: inline-flex;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 5px;
    background: #eef3ff;
    color: var(--blue);
    font-size: 12px;
    white-space: nowrap;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 21px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    background: var(--blue);
    color: white;
    font-size: 14px;
    white-space: nowrap;
}
.button.secondary {
    background: white;
    color: var(--ink);
    border-color: #858d99;
}
.button.danger {
    background: #c22b35;
    border-color: #c22b35;
}
.feature-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
    margin-top: 76px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
}
.feature-strip h3 {
    font-size: 19px;
}
.empty {
    grid-column: 1/-1;
    text-align: center;
    background: var(--surface);
    border-radius: 12px;
    padding: 52px 24px;
}
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding: 28px 0;
    color: var(--muted);
    font-size: 11px;
}
.footer>div {
    display: flex;
    gap: 25px;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 32px;
}
.event-heading {
    align-items: center;
    margin-bottom: 32px;
}
.event-heading .eyebrow {
    margin: 0 0 12px;
}
.event-heading h1 {
    margin-bottom: 12px;
}
.event-nav {
    gap: 28px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
    padding-bottom: 10px;
}
.event-nav a[aria-current=page] {
    box-shadow: 0 2px var(--blue);
}
.columns {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(240px,1fr);
    gap: 36px;
}
.columns>* {
    min-width: 0;
}
.narrow {
    max-width: 800px;
}
.prose {
    line-height: 2;
    overflow-wrap: anywhere;
    white-space: normal;
}
.prose p {
    margin: 24px 0;
}
.course {
    margin-bottom: 24px;
}
.metric {
    font-size: 36px;
}
.metric small {
    font-size: 16px;
}
.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 26px 0 8px;
}
.metrics>div>span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}
.metrics strong {
    font-size: 23px;
    font-weight: 400;
}
.metrics small {
    font-size: 12px;
}
.big-record {
    font-size: 48px;
    line-height: 1.3;
    margin: 30px 0 14px;
    letter-spacing: -1px;
}
.table-scroll {
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 20px 0;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    text-align: left;
}
th,td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
th {
    background: var(--surface);
    color: var(--muted);
    font-weight: 500;
}
tr:last-child td {
    border-bottom: 0;
}
dl {
    margin: 0;
}
dt {
    color: var(--muted);
    font-size: 12px;
    margin-top: 18px;
}
dt:first-child {
    margin-top: 0;
}
dd {
    margin: 6px 0 0;
}
.album {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}
.album .eyebrow {
    margin-bottom: 10px;
}
.album h3 {
    margin-bottom: 8px;
}
.album p {
    margin: 4px 0;
}
.accordion {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.accordion summary {
    cursor: pointer;
    min-height: 30px;
}
.accordion summary .muted {
    float: right;
}
.accordion p {
    padding: 20px 0;
}
.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}
.fields .wide {
    grid-column: 1/-1;
}
label {
    display: block;
    font-size: 13px;
    margin: 10px 0;
}
input,select,textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 1px solid #858d99;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    padding: 11px 12px;
    font-size: 16px;
    margin-top: 7px;
}
textarea {
    resize: vertical;
}
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
}
.check input {
    width: 19px;
    min-height: 19px;
    height: 19px;
    margin: 4px 0;
}
.notice {
    padding: 18px 22px;
    border-radius: 8px;
    background: #eef3ff;
    color: #1844bc;
    font-size: 13px;
    margin: 20px 0;
}
.code-wrap {
    overflow-wrap: anywhere;
    font-size: 16px;
    margin: 12px 0;
}
.admin-layout {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    gap: 36px;
}
.admin-nav {
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}
.admin-nav a {
    padding: 8px;
}
.admin-nav a[aria-current=page] {
    background: #eef3ff;
    border-radius: 6px;
}
.admin-panel {
    min-width: 0;
}
.admin-panel .card {
    margin-bottom: 25px;
}
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.actions form {
    margin: 0;
}
.small-form {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}
.small-form label {
    flex: 1;
    min-width: 100px;
}
.small-form .button {
    min-height: 44px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.scan-wrap {
    max-width: 540px;
    margin: auto;
}
.camera {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    margin: 20px 0;
}
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.camera video:empty {
    display: block;
}
#toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 22px;
    color: white;
    background: #15171b;
    border-radius: 8px;
    z-index: 30;
    pointer-events: none;
    max-width: 90vw;
}
#toast[hidden] {
    display: none;
}
canvas.preview {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    background: repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 0/24px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}
a.card:hover {
    border-color: #245bff;
}
.sticky {
    position: sticky;
    top: 24px;
}
@media(max-width:1100px) {
    .shell {
        padding: 0 36px;
    }
    .cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .columns {
        grid-template-columns: minmax(0,1fr);
    }
    .sticky {
        position: static;
    }
}
@media(max-width:767px) {
    .shell {
        padding: 0 20px;
    }
    .header {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 8px 0;
    }
    .logo {
        width: 150px;
    }
    .header nav {
        gap: 24px;
        font-size: 13px;
    }
    .header nav a {
        padding: 3px 0;
    }
    main {
        padding: 30px 0 50px;
    }
    .hero {
        grid-template-columns: 1fr;
        min-height: 230px;
        gap: 0;
        padding: 5px 0 24px;
    }
    .hero h1 {
        font-size: 54px;
    }
    .hero-art {
        display: none;
    }
    .hero p:not(.eyebrow) {
        font-size: 14px;
    }
    .cards,.fields,.feature-strip {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 22px;
    }
    .feature-strip {
        gap: 22px;
        margin-top: 45px;
        padding-top: 30px;
    }
    .section-title {
        margin-top: 28px;
        align-items: flex-start;
    }
    .section-title .muted {
        font-size: 11px;
    }
    h1 {
        font-size: 27px;
    }
    h2 {
        font-size: 22px;
    }
    h3 {
        font-size: 19px;
    }
    .event-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .event-nav {
        gap: 22px;
        font-size: 13px;
        margin-bottom: 26px;
    }
    .album {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .columns {
        gap: 24px;
    }
    .big-record {
        font-size: 40px;
    }
    .metrics {
        gap: 22px;
    }
    .metrics strong {
        font-size: 23px;
    }
    .footer {
        font-size: 9px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .accordion summary .muted {
        float: none;
        display: block;
    }
    .admin-nav {
        gap: 4px;
    }
    .admin-nav a {
        font-size: 12px;
    }
    .fields {
        gap: 8px;
    }
    .section-title .button {
        padding: 10px 14px;
        font-size: 12px;
    }
}
@media(max-width:360px) {
    .shell {
        padding: 0 16px;
    }
    .header nav {
        gap: 20px;
    }
    .hero h1 {
        font-size: 48px;
    }
    .card {
        padding: 18px;
    }
}
/* Site typography and original route animation. */
.course-route {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: course-draw 10s linear 1s infinite both;
}
.summit-dot {
    opacity: 0;
    animation: summit-arrive 10s ease-out 1s infinite both;
}
@keyframes course-draw {
    0% {
        stroke-dashoffset: 1;
        opacity: 1;
    }
    22%,94% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    99% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
    100% {
        stroke-dashoffset: 1;
        opacity: 0;
    }
}
@keyframes summit-arrive {
    0%,32% {
        opacity: 0;
    }
    38%,94% {
        opacity: 1;
    }
    99%,100% {
        opacity: 0;
    }
}
.auth-panel {
    max-width: 560px;
    margin: 20px auto 50px;
}
.auth-panel h1 {
    font-size: 32px;
}
.auth-panel>p {
    margin: 20px 0;
}
.auth-panel form>.button {
    margin-top: 14px;
}
.field-hint {
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 20px;
}
.social-buttons {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin: 28px 0;
}
.social-buttons form {
    min-width: 0;
}
.social {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    background: white;
    color: var(--ink);
    border-color: var(--line);
}
.social.kakao {
    background: #fee500;
    border-color: #fee500;
    color: #191919;
}
.social.naver {
    background: #03c75a;
    border-color: #03c75a;
    color: #092414;
}
button:disabled {
    cursor: not-allowed;
    opacity: .5;
}
.search-results {
    margin-top: 36px;
}
.demo-banner {
    background: #eef3ff;
    color: #1844bc;
}
.header nav {
    flex-wrap: wrap;
    row-gap: 6px;
}
.footer>div {
    flex-wrap: wrap;
    row-gap: 10px;
}
.mountain-scene {
    display: block;
    width: 100%;
}
@media(max-width:767px) {
    .hero-art {
        display: block;
        width: 240px;
        max-width: none;
        margin: 0;
    }
    .header nav {
        gap: 24px;
    }
    .auth-panel h1 {
        font-size: 27px;
    }
    .social-buttons {
        grid-template-columns: 1fr;
    }
    .footer>div {
        gap: 12px;
    }
    .auth-panel {
        margin-top: 8px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .course-route {
        animation: none;
        stroke-dashoffset: 0;
    }
    .summit-dot {
        animation: none;
        opacity: 1;
    }
}
.badge-trail {
    background: #e8f5ef;
    color: #176b49;
}
.badge-road {
    background: #eef3ff;
    color: #245bff;
}
.badge-closed {
    background: #f0f1f3;
    color: #656d78;
}
.rich-content img {
    max-width: 100%;
    height: auto;
}
.rich-content table {
    width: 100%;
    table-layout: fixed;
}
.rich-content td,.rich-content th {
    white-space: normal;
    overflow-wrap: anywhere;
}
.rich-content a {
    color: var(--blue);
    text-decoration: underline;
}
.rich-content blockquote {
    margin: 20px 0;
    padding: 12px 20px;
    border-left: 3px solid var(--blue);
    background: var(--surface);
}
.rich-content h2 {
    font-size: 24px;
}
.rich-content h3 {
    font-size: 20px;
}
.rich-content h4 {
    font-size: 18px;
}
.rankings {
    margin-top: 40px;
}
.editor-field {
    margin: 24px 0;
}
.editor-field .note-editor {
    margin-top: 8px;
}
.note-editable {
    font-family: 'Pretendard Variable','source-han-sans-kr-variable',SUIT,Kanit,sans-serif;
    font-size: 16px;
    line-height: 1.8;
}
.note-editor.note-frame {
    border: 1px solid #858d99;
    border-radius: 8px;
}
.note-editor .note-toolbar {
    background: #f7f8fa;
}
.note-editor button,.note-modal button {
    min-height: 32px;
}
.note-editor input[type=color],.note-editor .note-color-select,.note-editor .note-holder-custom,.note-editor .note-color-reset {
    display: none!important;
}
.note-editor .note-editable img {
    max-width: 100%;
}
.note-editor .note-editing-area {
    overflow: auto;
}
.note-editor .note-btn-group .note-btn {
    padding: 6px 9px;
}
.note-editor .note-fontsize-10,.note-editor .note-fontsize-36 {
    display: none;
}
.media-item {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0;
}
.media-item img {
    max-width: 120px;
    max-height: 90px;
}
.media-item form {
    margin: 0;
}
.install-help {
    font-size: 13px;
    color: var(--muted);
}
/* Address lookup and checkpoint analytics */
.race-distances {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 12px;
}
.address-fields {
    margin: 24px 0;
}
.address-postcode-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.address-postcode-row label {
    max-width: 180px;
    flex: 1;
    margin: 0;
}
.address-postcode-row button {
    flex-shrink: 0;
}
.address-fields input[readonly] {
    background: var(--surface);
    color: var(--ink);
    cursor: default;
}
.address-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-top: 12px;
}
.address-clear,.address-close {
    background: white;
    border: 0;
    color: var(--muted);
    padding: 8px;
    font-size: 12px;
    white-space: nowrap;
}
.address-message {
    margin: 6px 0;
}
.address-search-panel {
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.address-search-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--surface);
    font-size: 14px;
}
.address-search-mount {
    width: 100%;
    height: 460px;
}
.address-search-mount iframe {
    width: 100%;
    border: 0;
}
.cp-distance,.cp-note {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
}
.eta-time {
    color: var(--blue);
}
.checkpoint-table strong {
    font-weight: 500;
}
.checkpoint-record {
    margin-top: 36px;
}
.pace-chart {
    margin-top: 32px;
}
.pace-svg {
    display: block;
    width: 100%;
    height: auto;
    min-width: 300px;
}
.pace-chart {
    overflow-x: auto;
}
.chart-grid {
    stroke: var(--line);
    stroke-width: 1;
}
.chart-label {
    fill: var(--muted);
    font: 11px 'Pretendard Variable',Manrope,sans-serif;
    font-variant-numeric: tabular-nums;
}
.chart-line {
    fill: none;
    stroke: var(--blue);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.chart-point {
    fill: white;
    stroke: var(--blue);
    stroke-width: 2;
}
.chart-point:focus,.chart-point:hover {
    fill: var(--blue);
    outline: none;
}
.checkpoint-record>.muted {
    max-width: 800px;
}
.address-search-panel[hidden] {
    display: none;
}
@media(max-width:767px) {
    .address-postcode-row label {
        max-width: none;
    }
    .address-postcode-row button {
        padding: 11px 17px;
    }
    .address-bottom {
        gap: 8px;
    }
    .checkpoint-record .section-title {
        flex-wrap: wrap;
    }
    .pace-chart .section-title {
        align-items: center;
    }
    .cp-distance {
        margin-top: 3px;
    }
}
@media(max-width:767px) {
    .chart-label {
        font-size: 20px;
    }
    .pace-svg {
        min-width: 300px;
    }
}
.auth-primary-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.auth-primary-actions>.button {
    flex: 1;
    min-width: 0;
}
.auth-primary-actions>.signup-button {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}
.auth-primary-actions>.signup-button:hover {
    border-color: var(--blue);
}
@media(max-width:600px) {
    .header nav {
        gap: 24px;
        justify-content: flex-start;
        width: 100%;
        font-size: 12px;
    }
}
/* Native select behaviour, with equal text/chevron edge insets. */
body select:not([multiple]):not([size]),body select:not([multiple])[size="1"] {
    -webkit-appearance: none;
    appearance: none;
    padding-left: 12px;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23626976' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}
@media(forced-colors:active) {
    body select:not([multiple]):not([size]),body select:not([multiple])[size="1"] {
        -webkit-appearance: auto;
        appearance: auto;
        background-image: none;
        padding-right: 12px;
    }
}
/* Fill short viewports while keeping the footer after long content. */
body>.shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
body>.shell>main {
    flex: 1 0 auto;
    min-height: 0;
}
body>.shell>.header,body>.shell>.footer {
    flex-shrink: 0;
}
/* Visible back navigation on secondary pages; comfortable touch target. */
.page-back-row {
    margin: 0 0 18px;
}
.page-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 76px;
    min-height: 44px;
    padding: 8px 12px 8px 4px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}
.page-back svg {
    width: 20px;
    height: 20px;
    flex: none;
}
.page-back:hover {
    background: #eef3ff;
    color: var(--blue);
}
.page-back:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}
@media(max-width:767px) {
    .page-back-row {
        margin-bottom: 14px;
    }
}
/* Cloudflare reference blue action buttons. Provider-branded SNS buttons retain their original styles. */
:root {
    --button-blue: #066dff;
    --button-blue-hover: #005ee5;
    --button-gradient: linear-gradient(180deg,#3985ff 0%,#066dff 100%);
    --button-gradient-hover: linear-gradient(180deg,#2878f2 0%,#005ee5 100%);
    --button-line: #d8dce3;
}
.button:not(.social) {
    min-height: 48px;
    min-width: 96px;
    padding: 12px 24px;
    border: 1px solid #0055df;
    border-radius: 8px;
    background: var(--button-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    gap: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
    transition: background-color .15s,border-color .15s,color .15s;
}
.button:not(.social):hover {
    background: var(--button-gradient-hover);
    border-color: #004ecb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.button:not(.social):active {
    background: #0058d6;
    border-color: #004ecb;
}
.button.secondary:not(.social),.button.signup-button:not(.social) {
    background: #fff;
    border-color: var(--button-line);
    color: #4b5260;
    box-shadow: none;
}
.button.secondary:not(.social):hover,.button.signup-button:not(.social):hover {
    background: #f7f9fc;
    border-color: #a9b7cd;
    color: #37445a;
}
.button.danger:not(.social) {
    background: #b7444c;
    border-color: #b7444c;
}
.button.danger:not(.social):hover {
    background: #9e3740;
    border-color: #9e3740;
}
.button:not(.social):focus-visible {
    outline: 2px solid var(--button-blue);
    outline-offset: 3px;
}
.button:not(.social):disabled {
    background: #e8edf5;
    border-color: #e0e5ee;
    color: #8490a5;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}
@media(max-width:420px) {
    .button:not(.social) {
        padding-inline: 18px;
    }
    .signup-email-row .button:not(.social) {
        min-width: 0;
        padding-inline: 12px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .button:not(.social) {
        transition: none;
    }
}
/* Fixed two/three-way choices: a single click, native select value preserved. */
.choice-field {
    min-width: 0;
    margin: 10px 0;
    font-size: 13px;
}
.choice-field>.choice-label {
    display: block;
    margin: 0 0 7px;
}
.choice-native {
    position: absolute!important;
    width: 1px!important;
    height: 1px!important;
    min-height: 0!important;
    padding: 0!important;
    margin: 0!important;
    border: 0!important;
    overflow: hidden!important;
    clip-path: inset(50%)!important;
    white-space: nowrap!important;
}
.choice-options {
    display: grid;
    grid-template-columns: repeat(var(--choice-count),minmax(0,1fr));
    gap: 10px;
    min-width: 0;
}
.choice-options>.choice-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #dce1eb;
    border-radius: 8px;
    background: #f6f7fb;
    color: #626976;
    font: 500 15px/1.5 'Pretendard Variable','source-han-sans-kr-variable',SUIT,Kanit,sans-serif;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    box-shadow: none;
    cursor: pointer;
}
.choice-options>.choice-option small {
    font: 400 12px/1.4 'Pretendard Variable',Manrope,'source-han-sans-kr-variable',sans-serif;
    color: inherit;
}
.choice-options>.choice-option:hover {
    border-color: #98b5ff;
    background: #f0f4ff;
}
.choice-options>.choice-option[aria-checked=true] {
    border-color: #7396ff;
    background: #edf2ff;
    color: #245bdf;
    box-shadow: inset 0 0 0 .5px #7396ff;
}
.choice-options>.choice-option:focus-visible {
    outline: 2px solid #066dff;
    outline-offset: 3px;
}
.choice-options>.choice-option:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.choice-options[aria-invalid=true] {
    outline: 1px solid #b33131;
    outline-offset: 3px;
    border-radius: 8px;
}
.tool-fields>.choice-wide,.fields>.choice-wide {
    grid-column: 1/-1;
}
@media(max-width:420px) {
    .choice-options {
        gap: 8px;
    }
    .choice-options>.choice-option {
        padding: 10px 8px;
        font-size: 14px;
    }
    .tool-fields>.choice-field {
        grid-column: 1/-1;
    }
}
@media(forced-colors:active) {
    .choice-options>.choice-option[aria-checked=true] {
        outline: 2px solid Highlight;
        outline-offset: -3px;
    }
}
/* Official multicolor Google wordmark for sign-in and account linking. */
.button.social.google .google-wordmark {
    display: block;
    width: auto;
    height: 1em;
    flex: 0 0 auto;
    object-fit: contain;
}
/* Event representative image, shared by every event subpage. */
.rankings-event-select {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-bottom: 32px;
}
.rankings-event-select label {
    min-width: 0;
    flex: 1;
}
.rankings-event-select select {
    width: 100%;
}
.rankings-event-select button {
    flex-shrink: 0;
    margin-bottom: 20px;
}
.rankings-pagination {
    flex-wrap: wrap;
}
.standings-table td {
    white-space: nowrap;
}
.standings-table .cp-distance {
    display: block;
}
.event-kv .event-heading .eyebrow,.event-kv .event-heading .muted {
    text-shadow: 0 1px 5px rgba(0,0,0,.8);
}
.record-leader-heading .button {
    font-size: 12px;
    min-height: 32px;
    padding: 6px 10px;
    white-space: nowrap;
}
.event-kv {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 0 40px;
    border-radius: 0;
    background-color: #243a43;
    background-size: cover;
    background-position: center 48%;
    color: #fff;
}
.event-kv::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg,rgba(8,20,28,.32),rgba(8,20,28,.04) 66%,rgba(8,20,28,.12));
}
.event-kv>.event-heading {
    position: relative;
    z-index: 1;
    min-height: 230px;
    margin: 0;
    padding: 36px 52px;
    gap: 32px;
}
.event-kv .event-heading>div {
    min-width: 0;
    max-width: 950px;
}
.event-kv .event-heading h1 {
    font-size: clamp(30px,3.2vw,44px);
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: -.035em;
    margin: 18px 0 20px;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
.event-kv .event-heading .eyebrow {
    color: #d9e7f8;
    letter-spacing: 2.2px;
}
.event-kv .event-heading .muted {
    color: #f0f4f7;
    font-size: 14px;
    margin: 0;
    line-height: 1.8;
}
.event-kv .event-heading>.button,.event-kv .event-heading>.badge {
    flex-shrink: 0;
}
.event-kv .badge-closed {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.event-kv>.event-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 13px 28px;
    border: 0;
    background-color: rgba(0,0,0,.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #f5f8fc;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) transparent;
}
.event-kv>.event-nav a {
    flex: 0 0 auto;
    padding: 10px 0;
    border-radius: 0;
    font-size: 14px;
    color: #f1f5fa;
    line-height: 1.5;
    box-shadow: none;
}
.event-kv>.event-nav a:hover {
    background: transparent;
    color: #fff;
}
.event-kv>.event-nav a[aria-current=page] {
    background: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 -2px #00b8ff;
}
.event-kv>.event-nav a:focus-visible {
    outline: 2px solid #d9eaff;
    outline-offset: -2px;
}
.event-kv-field {
    margin: 24px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9fc;
}
.event-kv-preview {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
    margin: 16px 0;
}
.event-kv-preview[hidden] {
    display: none;
}
.event-kv-field [data-kv-error] {
    color: #b33131;
}
@media(max-width:767px) {
    .event-kv {
        margin-bottom: 28px;
        border-radius: 0;
    }
    .event-kv>.event-heading {
        min-height: 220px;
        padding: 28px 24px;
        gap: 16px;
        justify-content: center;
        align-items: flex-start;
    }
    .event-kv .event-heading h1 {
        font-size: 30px;
        margin: 12px 0;
    }
    .event-kv .event-heading .muted {
        font-size: 13px;
    }
    .event-kv>.event-nav {
        padding: 11px 24px;
        gap: 22px;
    }
    .event-kv>.event-nav a {
        padding: 10px 0;
        font-size: 13px;
    }
    .event-kv-field {
        padding: 18px;
    }
}
@media(prefers-reduced-transparency:reduce) {
    .event-kv>.event-nav {
        background: #172c37;
        backdrop-filter: none;
    }
}
/* Non-editable fields remain readable, with a neutral surface across page themes. */
:is(input,textarea,select)[readonly]:not([type="checkbox"]):not([type="radio"]) {
    background: #f1f3f6;
    border-color: #b9c1cd;
    color: #4b5563;
    -webkit-text-fill-color: currentColor;
    opacity: 1;
    cursor: default;
    box-shadow: none;
}
:is(input,textarea,select):disabled:not([type="checkbox"]):not([type="radio"]) {
    background: #e8ecf1;
    border-color: #c1c8d2;
    color: #667085;
    -webkit-text-fill-color: currentColor;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}
/* Event KV starts directly below the global header. */
main.event-page {
    padding-top: 0;
}
/* Hide the native scrollbar; enhance overflowing event menus with Swiper. */
.event-kv>.event-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.event-kv>.event-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.event-kv>.event-nav.swiper {
    display: block;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.event-nav.swiper>.swiper-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    box-sizing: content-box;
    transition-property: transform;
    transition-timing-function: ease-out;
    transform: translate3d(0,0,0);
}
.event-nav.swiper .swiper-slide {
    position: relative;
    display: block;
    width: auto;
    flex-shrink: 0;
    transition-property: transform;
    -webkit-user-drag: none;
}
.event-nav.swiper.is-draggable,.event-nav.swiper.is-draggable a {
    cursor: grab;
}
.event-nav.swiper.is-draggable:active,.event-nav.swiper.is-draggable:active a {
    cursor: grabbing;
}
/* Blend the event KV call to action into the image while keeping its label opaque. */
.event-kv .event-heading>.button {
    background: linear-gradient(180deg,rgba(57,133,255,.78),rgba(6,109,255,.78));
    border-color: rgba(0,85,223,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.event-kv .event-heading>.button:hover {
    background: linear-gradient(180deg,rgba(40,120,242,.9),rgba(0,94,229,.9));
    border-color: rgba(0,78,203,.75);
}
.event-kv .event-heading>.button:active {
    background: rgba(0,88,214,.94);
    border-color: rgba(0,78,203,.85);
}
/* Consistent photographic portal headers. */
/* Portal section heroes use the same 230px desktop image area as event pages. */
main.portal-page {
    padding-top: 0;
}
.portal-kv {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 230px;
    min-height: 230px;
    margin: 0 0 40px;
    padding: 32px 52px;
    border-radius: 0;
    overflow: hidden;
    background-color: #243a43;
    background-size: cover;
    background-position: center 50%;
    color: #fff;
}
.portal-kv::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg,rgba(8,20,28,.32),rgba(8,20,28,.04) 66%,rgba(8,20,28,.12));
}
.portal-kv-copy,.portal-kv-action {
    position: relative;
    z-index: 1;
}
.portal-kv-copy {
    min-width: 0;
    max-width: 1000px;
}
.portal-kv .eyebrow {
    margin: 0 0 14px;
    color: #d9e7f8;
    letter-spacing: 2.2px;
}
.portal-kv h1 {
    margin: 0;
    font-size: clamp(30px,3.2vw,44px);
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: -.035em;
    color: #fff;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
.portal-kv-description {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.8;
    color: #f0f4f7;
    overflow-wrap: anywhere;
}
.portal-kv-action {
    flex-shrink: 0;
    margin: 0;
}
.portal-kv-action .button.secondary {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.65);
    color: #fff;
}
.portal-kv-action .button.secondary:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
}
.portal-kv[data-portal-kv=tools] {
    background-position: center 58%;
}
.record-title-row h2 {
    margin: 0;
    font-size: clamp(28px,3vw,40px);
}
@media(max-width:767px) {
    .portal-kv {
        height: auto;
        min-height: 220px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 16px;
        padding: 28px 24px;
        margin-bottom: 28px;
    }
    .portal-kv h1 {
        font-size: 30px;
        line-height: 1.4;
    }
    .portal-kv .eyebrow {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }
    .portal-kv-description {
        font-size: 13px;
        margin-top: 12px;
    }
    .portal-kv[data-portal-kv=tools] {
        background-position: 68% center;
    }
    .portal-kv[data-portal-kv=my] {
        background-position: 65% center;
    }
}
/* Match the postcode input and its adjacent address lookup action. */
.address-postcode-row input,.address-postcode-row .button.address-find {
    height: 52px;
    min-height: 52px;
}
/* Text actions share the site link style; navigation and button components keep their own styles. */
main p a:not(.button):not(.site-brand),.narrow p a:not(.button),.text-link,button.address-clear,.address-fields .address-clear {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 3px;
}
.address-fields .address-clear {
    background: none;
    border: 0;
    cursor: pointer;
}
.event-heading .event-live-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d64133;
    background: #fff2ef;
    color: #c8382b;
    text-decoration: none;
    white-space: nowrap;
}
.event-live-link i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d64133;
    flex: none;
}
.event-course-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f1f5f0;
}
.event-course-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--course-card-image,none);
    background-position: var(--course-card-position,center);
    background-size: auto;
    background-repeat: no-repeat;
    opacity: .64;
}
