/* ==========================================================================
   FETRI 2026 · Recorridos al estilo del gráfico de TV «Circuito» (Components/Courses/CourseBoard.razor)
   Panel oscuro con textura; plano de la ortofoto en grafito con cada recorrido en su color y, al lado,
   cada disciplina con sus vueltas, su altimetría y sus datos. Con dos pestañas (CourseTabs): «Gráfico» (con las
   rutas que aún no tienen gráfico apuntadas debajo, una por fila) y «Wikiloc», la vista original de todas las rutas
   (CourseWikiloc). Solo FETRI (html.f26c).
   ========================================================================== */

html.f26c .f26-crs {
    --crs-swim: #4FC3F7;
    --crs-bike: #FDB913;
    --crs-run: #E8702A;
    --crs-r: 14px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 16px;
    padding: 16px 16px 20px;
    border-radius: var(--f26-r-lg);
    background: var(--f26-ink);
    color: #fff;
    font-family: var(--f26-font);
    overflow: hidden;
    overflow: clip;
    box-shadow: var(--f26-shadow-2);
}
html.f26c .f26-crs::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--f26-tex);
    pointer-events: none;
}
/* filete de color de las barras de TV */
html.f26c .f26-crs::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--f26-grad-accent);
    pointer-events: none;
}
html.f26c .f26-crs__defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* colores por disciplina */
html.f26c .f26-crs .is-swim { --c: var(--crs-swim); }
html.f26c .f26-crs .is-bike { --c: var(--crs-bike); }
html.f26c .f26-crs .is-run { --c: var(--crs-run); }

/* ---------- Pruebas y distancias ---------- */
html.f26c .f26-crs__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    min-width: 0;
}
html.f26c .f26-crs__groups {
    display: flex;
    gap: 4px;
    max-width: 100%;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--f26-pill);
    background: rgba(255, 255, 255, .06);
    scrollbar-width: none;
}
html.f26c .f26-crs__groups::-webkit-scrollbar { display: none; }
html.f26c .f26-crs__group {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--f26-pill);
    background: transparent;
    color: rgba(255, 255, 255, .78);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
html.f26c .f26-crs__group:hover { background: rgba(255, 255, 255, .1); color: #fff; }
html.f26c .f26-crs__group.is-on { background: #fff; color: var(--f26-ink); }
html.f26c .f26-crs__group:focus-visible { outline: none; box-shadow: var(--f26-focus); }

html.f26c .f26-crs__cat {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    background: var(--f26-red);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
html.f26c .f26-crs__dist {
    display: flex;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
html.f26c .f26-crs__dist::-webkit-scrollbar { display: none; }
html.f26c .f26-crs__pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 13px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .94);
    color: var(--f26-ink);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-crs__pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
html.f26c .f26-crs__pill small { margin-left: -4px; color: var(--f26-mute); font-size: 11px; font-weight: 800; }

/* ---------- Plano + tarjetas ---------- */
html.f26c .f26-crs__body {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(330px, 1fr);
    gap: 14px;
    align-items: start;
}

/* ---------- Plano ---------- */
html.f26c .f26-crs__map {
    position: sticky;
    top: calc(var(--f26-topbar-h) + 78px);
    overflow: hidden;
    border-radius: var(--crs-r);
    background: #2A2A31;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    animation: f26crs-fade .5s ease-out both;
}
html.f26c .f26-crs__tiles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: saturate(.3) brightness(.58) contrast(1.12);
}
html.f26c .f26-crs__vig {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 55% 50%, transparent 52%, rgba(20, 20, 26, .55) 100%);
    pointer-events: none;
}
html.f26c .f26-crs__route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    animation: f26crs-wipe .95s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(.3s + var(--i, 0) * .4s);
    transition: opacity .2s ease;
}
html.f26c .f26-crs__route path {
    fill: none;
    stroke: var(--c);
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
html.f26c .f26-crs__route .h { stroke-width: 15px; stroke-opacity: .14; }
html.f26c .f26-crs__route .w { stroke-width: 7px; stroke-opacity: .34; }
html.f26c .f26-crs__route .c { stroke-width: 3.4px; }
html.f26c .f26-crs__route.is-dim,
html.f26c .f26-crs__arrow.is-dim { opacity: .2; }

html.f26c .f26-crs__arrow {
    position: absolute;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 2px rgba(20, 20, 26, .78);
    transform: rotate(var(--a, 0deg));
    pointer-events: none;
    animation: f26crs-fade .4s ease-out both;
    animation-delay: calc(1s + var(--i, 0) * .4s);
    transition: opacity .2s ease;
}
html.f26c .f26-crs__arrow::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--f26-ink);
    border-right: 2px solid var(--f26-ink);
    transform: rotate(45deg);
}

html.f26c .f26-crs__mark {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translate(-15px, -50%);
    pointer-events: none;
    animation: f26crs-pop .45s cubic-bezier(.34, 1.56, .64, 1) both;
    animation-delay: .2s;
}
html.f26c .f26-crs__mark b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--f26-ink);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 0 0 4px rgba(28, 28, 34, .6);
}
html.f26c .f26-crs__mark span {
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(20, 20, 26, .88);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

html.f26c .f26-crs__probe {
    --c: var(--crs-run);
    position: absolute;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 3px solid var(--c);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .22), 0 2px 8px rgba(0, 0, 0, .5);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .12s ease, transform .12s ease;
    pointer-events: none;
}
html.f26c .f26-crs__probe[data-d="bike"] { --c: var(--crs-bike); }
html.f26c .f26-crs__probe[data-d="swim"] { --c: var(--crs-swim); }
html.f26c .f26-crs__probe.is-on { opacity: 1; transform: none; }

html.f26c .f26-crs__attr {
    position: absolute;
    right: 8px;
    bottom: 6px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
html.f26c .f26-crs__attr a { color: inherit !important; text-decoration: none; }
html.f26c .f26-crs__attr a:hover { text-decoration: underline; }

/* ---------- Tarjetas por disciplina ---------- */
html.f26c .f26-crs__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
html.f26c .f26-crs__seg {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--crs-r);
    background: #fff;
    color: var(--f26-ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    animation: f26crs-in .5s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(.15s + var(--i, 0) * .12s);
    transition: box-shadow .2s ease, opacity .2s ease;
}
html.f26c .f26-crs__seg.is-dim { opacity: .82; }
html.f26c .f26-crs__seg.is-hl { box-shadow: 0 0 0 3px var(--c), 0 6px 16px rgba(0, 0, 0, .3); }

html.f26c .f26-crs__hd {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(28, 28, 34, .08);
}
html.f26c .f26-crs__ic {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--f26-ink);
    color: var(--c);
}
html.f26c .f26-crs__ic svg { width: 26px; height: 26px; }
html.f26c .f26-crs .f26-crs__nm {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    color: var(--f26-ink) !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: .01em;
    line-height: 1.15 !important;
    text-transform: uppercase;
}
html.f26c .f26-crs__vu {
    display: inline-flex;
    flex: none;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: var(--f26-pill);
    background: var(--c);
    color: var(--f26-ink);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* altimetría: SVG que se estira y etiquetas en HTML para que el texto no se deforme */
html.f26c .f26-crs__chart {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: 106px 20px;
    padding: 22px 16px 0 4px;
}
html.f26c .f26-crs__yl { position: relative; grid-row: 1; grid-column: 1; }
html.f26c .f26-crs__yl span {
    position: absolute;
    right: 7px;
    transform: translateY(-50%);
    color: var(--f26-mute);
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-crs__plot {
    position: relative;
    grid-row: 1;
    grid-column: 2;
    cursor: crosshair;
    touch-action: pan-y;
}
html.f26c .f26-crs__plot svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
html.f26c .f26-crs__plot .gl { stroke: rgba(28, 28, 34, .1); stroke-width: 1px; vector-effect: non-scaling-stroke; }
html.f26c .f26-crs__plot .a { animation: f26crs-fade .6s ease-out both; animation-delay: calc(.9s + var(--i, 0) * .12s); }
html.f26c .f26-crs__plot .l {
    fill: none;
    stroke: var(--c);
    stroke-width: 2.6px;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
html.f26c .f26-crs__plot svg { animation: f26crs-wipe 1.2s cubic-bezier(.45, 0, .3, 1) both; animation-delay: calc(.35s + var(--i, 0) * .12s); }
html.f26c .f26-crs__peak {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 1px rgba(28, 28, 34, .15);
    animation: f26crs-fade .4s ease-out both;
    animation-delay: calc(1.3s + var(--i, 0) * .12s);
}
html.f26c .f26-crs__peakv {
    position: absolute;
    transform: translate(-50%, calc(-100% - 8px));
    color: var(--f26-ink);
    font-size: 11.5px;
    font-weight: 900;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    animation: f26crs-fade .4s ease-out both;
    animation-delay: calc(1.3s + var(--i, 0) * .12s);
    transition: opacity .12s ease;
}
html.f26c .f26-crs__cursor {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--x, 0);
    width: 0;
    border-left: 1.5px dashed rgba(28, 28, 34, .55);
    opacity: 0;
    pointer-events: none;
}
html.f26c .f26-crs__tip {
    position: absolute;
    top: -20px;
    left: var(--x, 0);
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--f26-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transform: translateX(8px);
    opacity: 0;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-crs__tip.is-right { transform: translateX(calc(-100% - 8px)); }
html.f26c .f26-crs__plot.is-scrub .f26-crs__cursor,
html.f26c .f26-crs__plot.is-scrub .f26-crs__tip { opacity: 1; }
html.f26c .f26-crs__plot.is-scrub .f26-crs__peakv { opacity: 0; }

html.f26c .f26-crs__xl { position: relative; grid-row: 2; grid-column: 2; }
html.f26c .f26-crs__xl span {
    position: absolute;
    top: 4px;
    transform: translateX(-50%);
    color: var(--f26-mute);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-crs__xl span.is-first { transform: none; }
html.f26c .f26-crs__xl span.is-last { transform: translateX(-100%); }

html.f26c .f26-crs__kv {
    display: flex;
    gap: 8px;
    margin: 0 !important;
    padding: 12px 14px 12px;
}
html.f26c .f26-crs__kv > div {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 7px 10px 8px;
    border-radius: 9px;
    background: var(--f26-tint);
}
html.f26c .f26-crs__kv dt {
    color: var(--f26-mute);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
}
html.f26c .f26-crs__kv dd {
    margin: 0 !important;
    color: var(--f26-ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-crs__wl {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    gap: 6px;
    margin: -4px 14px 12px;
    color: var(--f26-red-dk) !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}
html.f26c .f26-crs__wl i { font-size: 10px; }
html.f26c .f26-crs__wl:hover { color: var(--f26-red) !important; text-decoration: underline !important; }

/* ---------- Pestañas «Gráfico» / «Wikiloc» (CourseTabs) ----------
   Control en pastilla como el selector de vista de la clasificación (.f26-rtabs): la activa en negro con el
   icono en oro. El panel visible es el gráfico o la vista original de Wikiloc. */
html.f26c .f26-crs-tabs { margin: 0 0 16px; }
html.f26c .f26-crs-tabs__bar {
    display: flex;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 4px;
    border: 1px solid var(--f26-line);
    border-radius: var(--f26-pill);
    background: #fff;
    box-shadow: var(--f26-shadow-1);
}
html.f26c .f26-crs-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--f26-pill);
    background: transparent;
    color: var(--f26-text-2);
    font-family: var(--f26-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
html.f26c .f26-crs-tab i { color: var(--f26-mute-2); font-size: 12px; }
html.f26c .f26-crs-tab:hover { background: var(--f26-tint); color: var(--f26-ink); }
html.f26c .f26-crs-tab.is-on { background: var(--f26-ink); color: #fff; }
html.f26c .f26-crs-tab.is-on i { color: var(--f26-gold); }
html.f26c .f26-crs-tab:focus-visible { outline: none; box-shadow: var(--f26-focus); }
/* el panel entra en el orden de tabulación (patrón de pestañas): su anillo de foco sigue la forma del contenido */
html.f26c .f26-crs-tabs__panel { border-radius: var(--f26-r-lg); }
html.f26c .f26-crs-tabs__panel:has(> .f26-crs-wl) { border-radius: var(--f26-r); }
html.f26c .f26-crs-tabs__panel > .f26-crs,
html.f26c .f26-crs-tabs__panel > .f26-crs-wl { margin-bottom: 0; }

/* ---------- Vista original de Wikiloc (CourseWikiloc) ----------
   Una ficha por ruta, una debajo de otra: cabecera como las tarjetas del gráfico (caja oscura con el pictograma de
   la disciplina y el título), el mapa de Wikiloc a todo el ancho y un pie con «Powered by Wikiloc» y el enlace. */
html.f26c .f26-crs-wl {
    --crs-swim: #4FC3F7;
    --crs-bike: #FDB913;
    --crs-run: #E8702A;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 16px;
    font-family: var(--f26-font);
}
html.f26c .f26-crs-wl .is-swim { --c: var(--crs-swim); }
html.f26c .f26-crs-wl .is-bike { --c: var(--crs-bike); }
html.f26c .f26-crs-wl .is-run { --c: var(--crs-run); }
html.f26c .f26-crs-wl__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--f26-r);
    background: #fff;
    box-shadow: var(--f26-shadow-1);
}
/* ficha a la que lleva «Ver mapa» (f26-courses.js, goTo): un filete dorado por dentro que se apaga solo */
html.f26c .f26-crs-wl__item.is-target::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 0 0 3px var(--f26-gold);
    pointer-events: none;
    animation: f26crs-flash 1.8s ease-out both;
}
html.f26c .f26-crs-wl__hd {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--f26-line);
}
html.f26c .f26-crs-wl__ic {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--f26-ink);
    color: var(--c, #fff);
}
html.f26c .f26-crs-wl__ic svg { width: 26px; height: 26px; }
html.f26c .f26-crs-wl__ic i { font-size: 15px; }
html.f26c .f26-crs-wl .f26-crs-wl__nm {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    color: var(--f26-ink) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
}
html.f26c .f26-crs-wl__map { background: var(--f26-tint); }
/* a ras de la ficha: gana a la esquina redondeada que la ficha del evento pone a sus iframes */
html.f26c .f26-crs-wl .f26-crs-wl__map iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 0;
}
/* visor de reserva (BlockWikiloc) cuando el enlace no trae el número de la ruta: a todo el ancho y sin margen */
html.f26c .f26-crs-wl__map > div { max-width: none !important; margin: 0 !important; }
html.f26c .f26-crs-wl__ft {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    min-height: 44px;
    padding: 6px 16px;
    border-top: 1px solid var(--f26-line);
}
html.f26c .f26-crs-wl__by {
    color: var(--f26-mute);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}
html.f26c .f26-crs-wl__by a,
html.f26c .f26-crs-wl__open {
    color: var(--f26-red-dk) !important;
    font-weight: 800;
    text-decoration: none !important;
}
html.f26c .f26-crs-wl__open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin-left: auto;
    font-size: 12px;
}
html.f26c .f26-crs-wl__open i { font-size: 10px; }
html.f26c .f26-crs-wl__by a:hover,
html.f26c .f26-crs-wl__open:hover { color: var(--f26-red) !important; text-decoration: underline !important; }

/* ---------- Rutas sin gráfico (CourseTabs, debajo del gráfico) ----------
   Las rutas que aún no tienen datos convertidos se apuntan aquí, una por fila y sin cargar su mapa: franja clara como
   las listas de TV, caja oscura con el pictograma de la disciplina, el título y, a la derecha, «Ver mapa» (abre su
   ficha en la pestaña «Wikiloc») y el enlace a la ruta en Wikiloc. Las filas entran 6 px menos que la cabecera para
   que su caja oscura quede en la vertical del icono de la cabecera (como los documentos y enlaces). */
html.f26c .f26-crs-nochart {
    --crs-swim: #4FC3F7;
    --crs-bike: #FDB913;
    --crs-run: #E8702A;
    overflow: hidden;
    margin: 16px 0 0;
    border-radius: var(--f26-r);
    background: #fff;
    box-shadow: var(--f26-shadow-1);
    font-family: var(--f26-font);
}
html.f26c .f26-crs-nochart .is-swim { --c: var(--crs-swim); }
html.f26c .f26-crs-nochart .is-bike { --c: var(--crs-bike); }
html.f26c .f26-crs-nochart .is-run { --c: var(--crs-run); }
html.f26c .f26-crs-nochart__hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--f26-line);
}
html.f26c .f26-crs-nochart__hd > i {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--f26-tint);
    color: var(--f26-red);
    font-size: 13px;
}
html.f26c .f26-crs-nochart .f26-crs-nochart__tt {
    margin: 0 !important;
    color: var(--f26-ink) !important;
    font-size: 13.5px !important;
    font-weight: 900 !important;
    letter-spacing: .08em;
    line-height: 1.2 !important;
    text-transform: uppercase;
}
html.f26c .f26-crs-nochart__body { padding: 12px 12px 14px; }
html.f26c .f26-crs-nochart .f26-crs-nochart__tx {
    margin: 0 0 10px !important;
    padding: 0 6px;
    color: var(--f26-mute) !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
}
html.f26c .f26-crs-nochart__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
html.f26c .f26-crs-nochart__row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin: 0 !important;
    padding: 6px 8px 6px 6px;
    border-radius: 10px;
    background: var(--f26-tint);
}
html.f26c .f26-crs-nochart__ic {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--f26-ink);
    color: var(--c, #fff);
}
html.f26c .f26-crs-nochart__ic svg { width: 27px; height: 27px; }
html.f26c .f26-crs-nochart__ic i { font-size: 15px; }
html.f26c .f26-crs-nochart__nm {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--f26-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
html.f26c .f26-crs-nochart__acts {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
html.f26c .f26-crs-nochart__go,
html.f26c .f26-crs-nochart__wl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    margin: 0;
    padding: 0 14px;
    border-radius: var(--f26-pill);
    font-family: var(--f26-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
html.f26c .f26-crs-nochart__go { border: 0; background: var(--f26-ink); color: #fff; }
html.f26c .f26-crs-nochart__go i { color: var(--f26-gold); font-size: 12px; }
html.f26c .f26-crs-nochart__go:hover { background: var(--f26-red); }
html.f26c .f26-crs-nochart__go:hover i { color: #fff; }
html.f26c .f26-crs-nochart__wl { border: 1px solid var(--f26-line); background: #fff; color: var(--f26-ink) !important; }
html.f26c .f26-crs-nochart__wl i { font-size: 10px; }
html.f26c .f26-crs-nochart__wl:hover { border-color: var(--f26-ink); }
html.f26c .f26-crs-nochart__ft { padding: 10px 18px; border-top: 1px solid var(--f26-line); }

/* Mientras llegan los recorridos convertidos (no se pinta ningún mapa de Wikiloc hasta saber cuáles tienen gráfico) */
html.f26c .f26-crs-wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 240px;
    margin: 0 0 16px;
    padding: 24px;
    border-radius: var(--f26-r-lg);
    background: var(--f26-tex), var(--f26-ink);
    color: var(--f26-on-ink-mute);
    font-family: var(--f26-font);
    font-size: 13px;
    font-weight: 700;
}
html.f26c .f26-crs-wait .spinner-border { color: var(--f26-gold); }

/* ---------- Animaciones ---------- */
@keyframes f26crs-wipe {
    from { clip-path: inset(0 100% 0 0); opacity: .2; }
    to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes f26crs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes f26crs-pop { from { opacity: 0; transform: translate(-15px, -50%) scale(.6); } to { opacity: 1; transform: translate(-15px, -50%) scale(1); } }
@keyframes f26crs-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes f26crs-flash { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    html.f26c .f26-crs *,
    html.f26c .f26-crs *::before { animation: none !important; transition: none !important; }
    html.f26c .f26-crs-tab,
    html.f26c :is(.f26-crs-nochart__go, .f26-crs-nochart__wl) { transition: none; }
    /* la marca de «Ver mapa» se ve fija y se quita sola, sin fundido */
    html.f26c .f26-crs-wl__item.is-target::after { animation: none; }
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 1400px) {
    html.f26c .f26-crs__chart { grid-template-rows: 118px 20px; }
    /* el mapa de Wikiloc gana alto con el ancho para no quedar como una franja */
    html.f26c .f26-crs-wl .f26-crs-wl__map iframe { height: 560px; }
    /* Con la capa de pantallas anchas de la ficha del evento (--ev-pad), iconos, títulos y pies de las fichas de
       Wikiloc y de las rutas sin gráfico van en la misma vertical que el resto de la ficha; sin ella (variable sin
       definir) se quedan como por debajo de 1400 px. */
    html.f26c :is(.f26-crs-wl__hd, .f26-crs-wl__ft) { padding-left: var(--ev-pad, 16px); padding-right: var(--ev-pad, 16px); }
    html.f26c :is(.f26-crs-nochart__hd, .f26-crs-nochart__ft) { padding-left: var(--ev-pad, 18px); padding-right: var(--ev-pad, 18px); }
    html.f26c .f26-crs-nochart__body { padding-left: calc(var(--ev-pad, 18px) - 6px); padding-right: calc(var(--ev-pad, 18px) - 6px); }
}
@media (min-width: 1680px) {
    html.f26c .f26-crs { padding: 20px 20px 24px; gap: 16px; }
    html.f26c .f26-crs-wl .f26-crs-wl__map iframe { height: 620px; }
    html.f26c .f26-crs__body { grid-template-columns: minmax(0, 1.8fr) minmax(400px, 1fr); gap: 16px; }
    html.f26c .f26-crs__chart { grid-template-rows: 132px 20px; }
    html.f26c .f26-crs .f26-crs__nm { font-size: 19px !important; }
    html.f26c .f26-crs__kv dd { font-size: 19px; }
}

/* ---------- Tableta y móvil ---------- */
@media (max-width: 991.98px) {
    html.f26c .f26-crs { gap: 12px; padding: 12px 12px 16px; border-radius: var(--f26-r); }
    html.f26c .f26-crs__body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    html.f26c .f26-crs__map { position: relative; top: auto; }
    html.f26c .f26-crs__col { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
    /* el anillo de foco del panel y la espera siguen el radio del gráfico en tableta */
    html.f26c .f26-crs-tabs__panel,
    html.f26c .f26-crs-wait { border-radius: var(--f26-r); }
}
/* Teléfono y tableta pequeña: en cada ruta sin gráfico, las acciones pasan debajo del título, alineadas con el texto */
@media (max-width: 767.98px) {
    html.f26c .f26-crs-nochart__row { flex-wrap: wrap; gap: 6px 10px; padding-bottom: 8px; }
    html.f26c .f26-crs-nochart__nm { flex: 1 1 calc(100% - 50px); }
    html.f26c .f26-crs-nochart__acts { flex: 1 1 100%; justify-content: flex-start; padding-left: 50px; }
}
@media (max-width: 575.98px) {
    html.f26c .f26-crs { --crs-r: 12px; gap: 10px; padding: 8px 8px 14px; border-radius: 12px; }
    html.f26c .f26-crs__top { gap: 8px; }
    html.f26c .f26-crs__groups { width: 100%; }
    html.f26c .f26-crs__group { min-height: 34px; padding: 0 13px; font-size: 12.5px; }
    html.f26c .f26-crs__cat { min-height: 30px; padding: 0 11px; font-size: 11.5px; }
    html.f26c .f26-crs__pill { height: 30px; padding: 0 10px; gap: 6px; font-size: 12.5px; }
    html.f26c .f26-crs__pill small { font-size: 10px; }
    html.f26c .f26-crs__col { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    html.f26c .f26-crs__mark { gap: 5px; transform: translate(-12px, -50%); }
    html.f26c .f26-crs__mark b { width: 24px; height: 24px; font-size: 11px; box-shadow: 0 0 0 3px rgba(28, 28, 34, .6); }
    html.f26c .f26-crs__mark span { padding: 2px 7px; font-size: 10.5px; }
    html.f26c .f26-crs__arrow { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
    html.f26c .f26-crs__arrow::before { left: 3px; top: 4px; width: 5px; height: 5px; }
    html.f26c .f26-crs__attr { right: 6px; bottom: 4px; font-size: 9px; }
    html.f26c .f26-crs__hd { gap: 10px; min-height: 50px; padding: 8px 10px; }
    html.f26c .f26-crs__ic { width: 34px; height: 34px; border-radius: 8px; }
    html.f26c .f26-crs__ic svg { width: 23px; height: 23px; }
    html.f26c .f26-crs .f26-crs__nm { font-size: 15px !important; }
    html.f26c .f26-crs__vu { height: 28px; padding: 0 10px; font-size: 12px; }
    html.f26c .f26-crs__chart { grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: 96px 20px; padding: 22px 12px 0 2px; }
    html.f26c .f26-crs__kv { gap: 6px; padding: 10px 10px 10px; }
    html.f26c .f26-crs__kv > div { padding: 6px 8px 7px; }
    html.f26c .f26-crs__kv dt { font-size: 9px; letter-spacing: .08em; }
    html.f26c .f26-crs__kv dd { font-size: 15px; }
    html.f26c .f26-crs__wl { margin: -2px 10px 10px; }
    html.f26c .f26-crs-tabs { margin-bottom: 12px; }
    html.f26c .f26-crs-tabs__bar { margin-bottom: 8px; }
    html.f26c .f26-crs-tab { min-height: 36px; padding: 0 16px; font-size: 12.5px; }
    html.f26c .f26-crs-tabs__panel { border-radius: 12px; }
    html.f26c .f26-crs-wl { gap: 8px; margin-bottom: 12px; }
    html.f26c .f26-crs-wl__item { border-radius: 12px; }
    html.f26c .f26-crs-wl__hd { gap: 10px; min-height: 50px; padding: 8px 10px; }
    html.f26c .f26-crs-wl__ic { width: 34px; height: 34px; border-radius: 8px; }
    html.f26c .f26-crs-wl__ic svg { width: 23px; height: 23px; }
    html.f26c .f26-crs-wl .f26-crs-wl__nm { font-size: 14px !important; }
    html.f26c .f26-crs-wl .f26-crs-wl__map iframe { height: 440px; }
    html.f26c .f26-crs-wl__ft { padding: 4px 10px 4px 12px; }
    html.f26c .f26-crs-wait { min-height: 180px; margin-bottom: 12px; border-radius: 12px; }
    html.f26c .f26-crs-nochart { margin-top: 12px; border-radius: 12px; }
    html.f26c .f26-crs-nochart__hd { padding: 12px 14px; }
    html.f26c .f26-crs-nochart__body { padding: 10px 8px 12px; }
    html.f26c .f26-crs-nochart__ft { padding: 8px 14px; }
}
