.race-map-guide-page .race-map-product-visual {
    --shop-preview-pattern: url('/assets/hib-shop/multi-race-map-topography.png');
    --shop-preview-pattern-size: cover;
    background-color: #286c60;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}
.race-map-case {
    width: min(100%, 32rem);
    padding: clamp(.55rem, 1.4vw, .9rem);
    border-radius: 1rem;
    background: #faf8f0;
    color: #264653;
    box-shadow: 0 1rem 2.2rem #122e3650;
}
.race-map-case-header, .race-map-case-legend {
    display: flex;
    align-items: center;
    gap: .4rem .9rem;
    flex-wrap: wrap;
    padding: .3rem .45rem;
}
.race-map-case-header { justify-content: space-between; }
.race-map-case-header strong { font-size: clamp(1rem, 2vw, 1.28rem); }
.race-map-case-header > span { color: #305c54; font-size: .85rem; font-weight: 700; }
.race-map-case-legend { margin-top: .25rem; font-size: .8rem; }
.race-map-case-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.race-map-case-legend span::before {
    content: '';
    inline-size: .55rem;
    block-size: .55rem;
    border-radius: 50%;
    background: var(--race-marker);
}
.race-map-case-legend span:nth-child(1), .race-map-illustration-start { --race-marker: #2a9d8f; }
.race-map-case-legend span:nth-child(2), .race-map-illustration-aid { --race-marker: #e9c46a; }
.race-map-case-legend span:nth-child(3), .race-map-illustration-finish { --race-marker: #e76f51; }
.race-map-illustration {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: .6rem;
    background:
        linear-gradient(145deg, transparent 32%, #f8f6ed 32% 34%, transparent 34% 60%, #f8f6ed 60% 62%, transparent 62%),
        repeating-linear-gradient(90deg, #26465312 0 1px, transparent 1px 28px),
        repeating-linear-gradient(0deg, #26465312 0 1px, transparent 1px 28px),
        #e6ede2;
}
.race-map-illustration::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #a9d7de;
    clip-path: polygon(73% 0, 87% 0, 80% 24%, 69% 43%, 75% 63%, 91% 80%, 100% 100%, 85% 100%, 76% 86%, 65% 72%, 61% 49%, 64% 32%);
}
.race-map-illustration-course {
    position: absolute;
    inset: 0;
    background: #9e4b32;
    clip-path: polygon(14% 70%, 20% 43%, 35% 36%, 39% 18%, 54% 15%, 62% 25%, 78% 30%, 85% 49%, 77% 62%, 54% 67%, 46% 84%, 27% 85%, 27% 82%, 44% 81%, 53% 64%, 76% 59%, 83% 48%, 77% 33%, 61% 28%, 53% 18%, 40% 21%, 37% 39%, 22% 46%, 16% 72%);
}
.race-map-illustration-point {
    position: absolute;
    left: var(--pin-x);
    top: var(--pin-y);
    width: clamp(.6rem, 1.5vw, .85rem);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--race-marker);
    box-shadow: 0 0 0 1px #264653;
}
.race-map-illustration-start { --pin-x: 15%; --pin-y: 71%; }
.race-map-illustration-aid { --pin-x: 62%; --pin-y: 27%; }
.race-map-illustration-finish { --pin-x: 27%; --pin-y: 84%; }
.race-map-guide-page .sgp-preview-panel[hidden], .race-map-guide-page .sgp-preview-tabs[hidden] { display: none; }
.race-map-guide-page .sgp-preview-tabs { margin-block-end: clamp(.9rem, 1.4vw, 1.15rem); }
.race-map-guide-page .sgp-preview-panel:not([hidden]) + .sgp-preview-panel:not([hidden]) { margin-block-start: 1rem; }
.race-map-guide-page .race-map-demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-block-size: 2.9rem;
    max-inline-size: 100%;
    padding: .65rem .9rem;
    border: 1px solid #aac6c4;
    border-radius: .65rem;
    background: #264653;
    color: #f7f6f2;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.race-map-guide-page .race-map-demo-button:hover {
    background: #f7f6f2;
    border-color: #f7f6f2;
    color: #264653;
}
.race-map-guide-page .race-map-demo-button:focus-visible {
    outline: 2px solid #e9c46a;
    outline-offset: 3px;
}
.race-admin-title {
    padding: .7rem clamp(.6rem, 1.6vw, 1.1rem) .35rem;
    color: #1d343f;
    font-weight: 750;
}
.race-admin-layout {
    display: grid;
    gap: .65rem;
    padding: 0 clamp(.55rem, 1.6vw, 1.1rem) .95rem;
}
.race-admin-layout-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.race-admin-layout dl { display: grid; gap: .35rem; margin: 0; }
.race-admin-layout dl > div { display: grid; gap: .12rem; padding: .4rem .55rem; background: #f0f4f1; border-radius: .3rem; }
.race-admin-layout dt { color: #264653; font-size: .75rem; font-weight: 750; }
.race-admin-layout dd { margin: 0; color: #31535b; font-size: .8rem; overflow-wrap: anywhere; }
.race-map-guide-page .race-shortcode-example {
    margin: .65rem 0 0;
    padding: .8rem;
    border: 1px solid var(--shop-line, #4f686c);
    border-radius: .6rem;
    color: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.race-map-guide-page #help .sgp-help-details > .shop-text-link {
    display: inline-block;
    margin: .65rem .1rem;
    color: #e9c46a;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.race-map-guide-page #help .sgp-help-details > .shop-text-link:is(:hover, :focus-visible) {
    color: #f7f6f2;
}
.race-map-guide-page #help .sgp-help-details > .shop-text-link:focus-visible {
    outline: 2px solid #e9c46a;
    outline-offset: 4px;
}
.race-map-guide-page .race-map-subscribe { max-width: 48rem; margin: 1.5rem auto 0; }
.race-map-guide-page .race-map-subscribe h2 { margin: 0 0 .6rem; }
@media (max-width: 42rem) {
    .race-admin-layout-map { grid-template-columns: minmax(0, 1fr); }
}

.race-map-guide-page .store-back-row + #product-content { padding-block-start: 0; }
