/* A title and its date share one row at every viewport width. */
.race-notice {
    padding: 0;
    border-bottom: 1px solid var(--line);
}
.race-notice:first-of-type {
    border-top: 1px solid var(--line);
}
.race-notice summary {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 16px;
    gap: 12px 24px;
    align-items: start;
    list-style: none;
    padding: 24px 20px;
}
.race-notice summary::-webkit-details-marker {
    display: none;
}
.race-notice summary::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: 6px 2px 0;
    border-right: 1.5px solid #111;
    border-bottom: 1.5px solid #111;
    transform: rotate(45deg);
    justify-self: end;
}
.race-notice[open] summary::after {
    transform: rotate(225deg);
    margin-top: 10px;
}
.race-notice .notice-title {
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.race-notice summary .notice-date {
    float: none;
    display: block;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    line-height: 25.6px;
}
.race-notice>.rich-content {
    max-width: none;
    margin: 0 0 12px;
    padding: 20px;
    background: #f5f6f8;
    font-size: 14px;
    line-height: 1.85;
}
.race-notice>.rich-content p {
    padding: 0;
    margin: 12px 0;
}
.race-notice>.rich-content h2 {
    font-size: 20px;
    line-height: 1.5;
    margin: 8px 0 16px;
}
.race-notice>.rich-content h3 {
    font-size: 16px;
    margin: 18px 0 10px;
}
.race-notice>.rich-content>:first-child {
    margin-top: 0;
}
.race-notice>.rich-content>:last-child {
    margin-bottom: 0;
}
/* Buttons slide; ordinary text truncates; decorative course boxes simply clip. */
.course-options .course-toggles {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    scrollbar-width: none;
}
.course-toggles::-webkit-scrollbar {
    display: none;
}
.course-toggles.swiper {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}
.course-toggles>.swiper-wrapper {
    position: relative;
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
    box-sizing: content-box;
    transition-property: transform;
    transition-timing-function: ease-out;
}
.course-toggles .course-toggle {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}
.course-toggles .course-toggle span {
    white-space: nowrap;
}
.course-toggles .course-toggle input:focus-visible+span {
    outline-offset: -3px;
}
.course-text,.race-distances,.home-live-event>p,.home-winner-course {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.course>.row>.course-text {
    flex: 1;
}
.course-box {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
}
.home-content .home-course-tags {
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
}
.home-content .home-course-tags>span {
    flex: 0 0 auto;
}
.album-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.album-list>.album {
    width: 100%;
    min-width: 0;
}
.album-list>.album>div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.album-list>.album>.button {
    flex-shrink: 0;
}
@media(max-width:767px) {
    .race-notice summary {
        gap: 10px;
        padding: 20px 12px;
    }
    .race-notice .notice-title {
        font-size: 16px;
    }
    .race-notice summary .notice-date {
        font-size: 13px;
    }
    .race-notice>.rich-content {
        padding: 18px 16px;
    }
}
