@font-face{font-family:"Vivicitta Barlow";src:url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");font-style:normal;font-weight:800;font-display:swap;}
@font-face{font-family:"Vivicitta Barlow";src:url("fonts/barlow-condensed-latin-ext-800-normal.woff2") format("woff2");font-style:normal;font-weight:800;font-display:swap;unicode-range:U+0100-024F,U+1E00-1EFF;}
@font-face{font-family:"Vivicitta Inter";src:url("fonts/inter-latin-wght-normal.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap;}
@font-face{font-family:"Vivicitta Inter";src:url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0100-024F,U+1E00-1EFF;}
#vv-course-widget{font-family:"Vivicitta Inter",Inter,system-ui,sans-serif;}

#vv-course-widget {
    --course-surface: #18181b;
    --course-ink: #f9f6f8;
    --course-muted: #bfbbc2;
    --course-line: #45424a;
    --course-red: #ff516d;
    --course-aid: #17616a;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    padding: clamp(15px, 3.05vw, 40px);
    border: 1px solid #28252c;
    border-radius: 18px;
    background: radial-gradient(ellipse at 80% 0%, #461524 0%, transparent 44%), linear-gradient(145deg, #19181c, #101014 58%);
    color: var(--course-ink);
    text-align: left;
    box-shadow: 0 16px 60px #25101523;
}

#vv-course-widget::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #a91e3d, #ff536e 24%, #b52143 59%, #6c1832);
    content: "";
}

#vv-course-widget .course-heading {
    position: relative;
    display: flex;
    min-height: 116px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 22px;
    overflow: clip;
}

#vv-course-widget .course-heading::after {
    position: absolute;
    z-index: -1;
    top: -75px;
    right: 17%;
    width: 320px;
    height: 246px;
    transform: rotate(34deg);
    background: repeating-linear-gradient(90deg, transparent 0 27px, #f3567030 28px 29px, transparent 30px 46px);
    mask-image: linear-gradient(180deg, transparent, black 35%, transparent 94%);
    content: "";
    pointer-events: none;
}

#vv-course-widget .course-event { margin-bottom: 6px; color: #ff7890; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
#vv-course-widget .course-heading h3 { color: #fff; font-size: clamp(3.3rem, 7.6vw, 6.15rem); line-height: .81; letter-spacing: -.035em; font-family: "Vivicitta Barlow", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; }
#vv-course-widget .course-status { align-self: end; position: relative; padding: 7px 10px 7px 23px; border: 1px solid #e44a706e; border-radius: 4px; color: #fbdee6; background: #381622; font-size: .71rem; font-weight: 670; white-space: nowrap; }
#vv-course-widget .course-status::before { position: absolute; top: 50%; left: 9px; width: 6px; height: 6px; border-radius: 50%; background: #ff687e; transform: translateY(-50%); content: ""; }

#vv-course-widget .choice { gap: 8px; margin: 0 0 11px; }
#vv-course-widget .choice button {
    min-height: 48px;
    padding: 9px 6px;
    border: 1px solid var(--course-line);
    border-radius: 7px;
    background: #202024;
    color: #e5e1e5;
    font-family: inherit;
    font-size: .91rem;
    font-weight: 720;
}

#vv-course-widget .choice button:hover { border-color: #ff6883; background: #2e2029; }
#vv-course-widget .choice button[aria-pressed=true] { border-color: #f1607b; color: #fff; background: #ad1c3a; box-shadow: inset 0 1px 0 #fa8c9b47; }

#vv-course-widget .course-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(274px, 1fr); gap: 14px; align-items: stretch; }
#vv-course-widget .course-map-panel, #vv-course-widget .course-route-panel { min-width: 0; border: 1px solid #3a363e; border-radius: 11px; background: #1b1a1f; }
#vv-course-widget .course-map-panel { padding: 8px 8px 0; }
#vv-course-widget .course-leaflet { height: 424px; border: 0; border-radius: 6px; background: #e7e7df; }
#vv-course-widget .course-map-expanded .course-leaflet { height: 75vh; }
#vv-course-widget .map { border: 0; border-radius: 6px; }
#vv-course-widget .course-leaflet .leaflet-image-layer, #vv-course-widget .course-leaflet .leaflet-tile-pane, #vv-course-widget .map img { filter: saturate(.8) brightness(.97); }
#vv-course-widget .course-leaflet .leaflet-control-attribution, #vv-course-widget .course-leaflet .leaflet-control-scale { font-size: 11px; }
#vv-course-widget .course-leaflet .leaflet-control-zoom { border: 1px solid #3b333d; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px #0004; }
#vv-course-widget .course-leaflet .leaflet-control-zoom a { background: #f9f6f9; color: #231e24; width: 36px; height: 36px; line-height: 36px; }
#vv-course-widget .course-leaflet .leaflet-control-zoom a:hover { background: #fff0f2; color: #8e1730; }
#vv-course-widget .course-leaflet .leaflet-control-zoom a.leaflet-disabled { background: #e5e2e5; color: #737074; }
#vv-course-widget .course-leaflet .leaflet-marker-icon.course-endpoint, #vv-course-widget .course-leaflet .leaflet-marker-icon.course-aid-pin { border-color: white; color: white; }
#vv-course-widget .course-leaflet .leaflet-marker-icon.course-endpoint { background: #231e25; }
#vv-course-widget .leaflet-overlay-pane path[stroke="#aa1f37"] { stroke: #b41536; }
#vv-course-widget .leaflet-popup-content { color: #242126; }
#vv-course-widget .course-direction span { color: #fff; text-shadow: 0 0 2px #59091d, 0 1px 2px #59091d; }

#vv-course-widget .course-map-actions { gap: 6px; align-items: center; margin: 0; padding: 9px 3px 5px; }
#vv-course-widget .course-map-actions button, #vv-course-widget .download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid #514950;
    border-radius: 6px;
    color: #f8f4f5;
    background: #2a272e;
    font-family: inherit;
    font-size: .77rem;
    font-weight: 700;
    line-height: 1.2;
}

#vv-course-widget .course-map-actions button:hover, #vv-course-widget .download:hover { border-color: #ff6883; }
#vv-course-widget .course-map-actions svg, #vv-course-widget .download svg { width: 16px; height: 16px; flex: none; }
#vv-course-widget figcaption { padding: 4px 3px 9px; }
#vv-course-widget figcaption a { color: #c1bbc4; }
#vv-course-widget .course-map-panel.has-map figcaption { display: none; }

#vv-course-widget .course-route-panel { display: flex; flex-direction: column; gap: 16px; padding: 17px 16px 15px; }
#vv-course-widget .route-head { display: block; margin: 0; }
#vv-course-widget #vv-course-route-name { color: #fff; font: 800 3.45rem/.85 "Vivicitta Barlow", "Arial Narrow", sans-serif; letter-spacing: -.015em; }
#vv-course-widget #vv-course-lap-info { margin-top: 9px; color: #c6bfc8; font-size: .74rem; line-height: 1.35; }
#vv-course-widget .station-legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin: 0; padding: 13px 0 0; border: 0; border-top: 1px solid #3d3943; border-radius: 0; background: transparent; color: #e7e2e8; font-size: .75rem; }
#vv-course-widget .station-legend strong { font-size: .78rem; }
#vv-course-widget .station-rule span:last-child { color: #d7cfd9; }
#vv-course-widget .station-number { width: 20px; height: 20px; background: #24717a; color: #fff; font-size: .68rem; }

#vv-course-widget .profile { margin: 0; padding: 13px 0 0; border-color: #3d3943; }
#vv-course-widget .profile-head { display: block; }
#vv-course-widget #vv-course-height-title { color: #f6f1f6; font-family: inherit; font-size: .78rem; font-weight: 740; }
#vv-course-widget .profile-head output { display: block; margin-top: 4px; color: #ff7b92; font-size: .74rem; font-weight: 700; }
#vv-course-widget canvas { height: 115px; margin-top: 4px; }
#vv-course-widget .range-label { color: #e0dade; font-size: .73rem; }
#vv-course-widget input[type=range] { min-height: 34px; margin-top: 4px; accent-color: #ff516d; }
#vv-course-widget .profile-note { color: #bfbbc2; font-size: .66rem; }
#vv-course-widget .detail { margin: auto 0 0; }
#vv-course-widget .download { justify-content: flex-start; width: 100%; background: #2a1821; border-color: #8f4357; color: #ffd8e1; text-decoration: none; }

@media (max-width: 920px) {
    #vv-course-widget .course-layout { grid-template-columns: minmax(0, 1.65fr) minmax(232px, 1fr); }
    #vv-course-widget .course-route-panel { padding: 16px 12px; }
}

@media (max-width: 720px) {
    #vv-course-widget { border-radius: 14px; }
    #vv-course-widget .course-heading { min-height: 0; flex-wrap: wrap; margin-bottom: 17px; }
    #vv-course-widget .course-heading h3 { font-size: clamp(2.9rem, 11.7vw, 5rem); }
    #vv-course-widget .course-heading::after { right: -16%; opacity: .65; }
    #vv-course-widget .course-status { margin-top: 5px; }
    #vv-course-widget .choice { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    #vv-course-widget .choice button { min-height: 44px; }
    #vv-course-widget .course-layout { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    #vv-course-widget .course-leaflet { height: clamp(190px, 59vw, 380px); }
    #vv-course-widget .course-map-expanded .course-leaflet { height: 72vh; }
    #vv-course-widget .course-map-actions { padding: 7px 1px; }
    #vv-course-widget .course-map-actions button { padding: 7px 8px; }
    #vv-course-widget .course-route-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    #vv-course-widget .route-head { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; }
    #vv-course-widget #vv-course-route-name { font-size: 2.55rem; }
    #vv-course-widget #vv-course-lap-info { margin-top: 0; }
    #vv-course-widget .station-legend { gap: 6px; }
    #vv-course-widget .profile-head { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    #vv-course-widget .leaflet-zoom-animated, #vv-course-widget .leaflet-fade-anim .leaflet-tile { transition-duration: 0s; }
}
