:root {
    --jade: #176b50; --jade-dark: #104f3c; --jade-light: #e1eee5;
    --maize: #f5bd3f; --maize-dark: #cb8615;
    --obsidian: #263b32; --muted: #59675d; --cream: #f3eee5;
    --surface: #fffdf8; --surface-border: #d8cbb9; --ink: #263b32;
    font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
    color: var(--obsidian); background: var(--cream);
}
html { scroll-behavior: smooth; }
/* Blazor reveals this with an inline display style only after a fatal error. */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1100;
    padding: 1rem 3rem 1rem 1rem;
    border: 1px solid #c4a25a;
    border-radius: 14px;
    background: #fff6df;
    color: #493b23;
    box-shadow: 0 4px 20px #263b3226;
}
#blazor-error-ui .reload { font-weight: 750; text-decoration: underline; margin-left: .5rem; }
#blazor-error-ui .dismiss { position: absolute; right: 1rem; top: .6rem; cursor: pointer; font-size: 1.5rem; }
@media (max-width: 700px) { #blazor-error-ui { bottom: 5.5rem; } }
html, body { margin: 0; min-height: 100%; background: var(--cream); }
.learning-app .app-header { background:var(--surface); border-bottom-color:var(--surface-border); }
.learning-app .mobile-nav { background:var(--surface); border-color:var(--surface-border); }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin-top: 0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
/* Match MobileNavigation's breakpoint: only one account entry is visible. */
@media (max-width: 700px) {
    .learning-app .app-header .header-actions .avatar { display: none; }
}
*:focus-visible { outline: 3px solid #f5bd3f; outline-offset: 3px; }

/* Camino de aprendizaje: respaldo global para que el trazado también se
   aplique cuando el host no enlaza automáticamente los estilos aislados. */
.journey { position: relative; overflow: visible; }
.path-line { display: block; position: absolute; z-index: 0; top: 8.2rem; bottom: auto; left: 0; width: 100%; height: calc(var(--path-steps) * 161px); overflow: visible; pointer-events: none; }
.path-trail-shadow { fill: none; stroke: rgba(74, 132, 102, .13); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 11; vector-effect: non-scaling-stroke; }
.path-trail { fill: none; stroke: #9bcdb0; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 11; vector-effect: non-scaling-stroke; }
.path-stop { position: relative; z-index: 2; }
.path-stop::before { content: ""; position: absolute; z-index: -1; top: 50%; width: clamp(24px, 4vw, 66px); height: 8px; translate: 0 -50%; border-radius: 999px; background: repeating-linear-gradient(90deg, #b7d9c4 0 6px, transparent 6px 12px); opacity: .9; }
.path-stop.left::before { right: clamp(-66px, -4vw, -24px); }
.path-stop.right::before { left: clamp(-66px, -4vw, -24px); }
.path-stop.center::before { display: none; }
@media (max-width: 700px) { .path-line { top: 7.5rem; height: calc(var(--path-steps) * 151px); } .path-stop::before { display: none; } }
