
/* ── Keyframes ───────────────────────────────────────── */

@keyframes nievaFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nievaLoadingBar {
  0%   { width: 0%;   opacity: 1; }
  50%  { width: 70%;  opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

@keyframes nievaShine {
  from { transform: translateX(-200%); }
  to   { transform: translateX(200%); }
}


/* ── Ink & surface utilities ─────────────────────────────
   Sections used to reach for Tailwind's palette directly — text-gray-400,
   bg-gray-900, border-gray-700 — which pins them to a colour scale that has
   nothing to do with the theme's tokens. Changing a token moved the tokens and
   left those behind, so half the UI stayed in the previous palette.
   These map the same intent onto the token set. */

/* X-HEIGHT COMPENSATION ───────────────────────────────────────────────────
   The eye measures the height of the x, not the nominal font size. Hanken
   Grotesk sits at an x-height/cap-height ratio of 0.707 against Inter's 0.750,
   so at a nominal 15px it reads about 6% smaller than it looks on the spec
   sheet. 15.9px restores the same optical size. Measured, not guessed. */
body {
  font-size: var(--text-base);
  line-height: 1.65;
}

/* Base size. The reader's 100% in the text-size menu is this value; the
   menu scales from it (components/A11yMenu.tsx, BASE). */
html { font-size: 81%; }
/* Tailwind's max-w-* containers are rem-based; pinned in px so page widths
   stay what they were before the 81% base. */
:root {
  --container-xs: 320px; --container-sm: 384px; --container-md: 448px;
  --container-lg: 512px; --container-xl: 576px; --container-2xl: 672px;
  --container-3xl: 768px; --container-4xl: 896px; --container-5xl: 1024px;
  --container-6xl: 1152px; --container-7xl: 1280px;
}

/* FLUID TYPE SCALE ─────────────────────────────────────────────────────────
   Every page reads its sizes from Tailwind's --text-* variables, including the
   pages the platform renders (forum, course detail). Redefining them here
   moves the whole site at once instead of page by page, and clamp() makes
   each step grow with the viewport: phone sizes at 375px, larger reading
   sizes on a desktop. The small steps carry the biggest lift because that is
   where the text was too small to read (12px labels, 14px body copy). The
   x-height compensation above is folded into these values. */
:root {
  --text-xs: clamp(0.8125rem, 0.78rem + 0.12vw, 0.875rem);
  --text-sm: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --text-base: clamp(1.0625rem, 1.02rem + 0.18vw, 1.125rem);
  --text-lg: clamp(1.1875rem, 1.12rem + 0.25vw, 1.3125rem);
  --text-xl: clamp(1.3125rem, 1.22rem + 0.35vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1vw, 2.375rem);
  --text-4xl: clamp(2.25rem, 1.85rem + 1.5vw, 3rem);
  --text-5xl: clamp(2.75rem, 2.1rem + 2.4vw, 3.75rem);
  --text-6xl: clamp(3.25rem, 2.4rem + 3.2vw, 4.5rem);
}

/* Fixed pixel sizes written as Tailwind arbitrary values (text-[13px]) do not
   read the variables above, and the platform's own pages (forum, course
   cards) use them for metadata and excerpts. Mapping them onto the same
   fluid steps keeps every page on one scale, harmonised upwards. */
.text-\[10px\],
.text-\[11px\],
.text-\[12px\] { font-size: var(--text-xs); }
.text-\[13px\],
.text-\[14px\] { font-size: var(--text-sm); }
/* Large text from the accessibility menu: the header uses the compact menu at
   every width, because the full menu no longer fits on one line. */
html[data-text-large] .nav-wide { display: none !important; }
html[data-text-large] .nav-compact.ml-auto { display: flex !important; }
html[data-text-large] .nav-compact.fixed { display: block !important; }
/* Long single words in titles (Mini-Bootcamp, Developer) wrap instead of
   pushing the page sideways when the text is enlarged. */
h1, h2, h3, h4 { overflow-wrap: anywhere; }
/* Large text only: rows built with flex let their text shrink and wrap, and
   rows that space two things apart may drop to a second line, so enlarged
   text reflows instead of pushing the page sideways. The normal design is
   untouched because the rules only apply while the reader enlarges text. */
html[data-text-large] .flex > :is(span, p, strong, a, h3, h4, div) { min-width: 0; }
html[data-text-large] .flex.justify-between,
html[data-text-large] .flex.items-center:not(nav) { flex-wrap: wrap; }

/* On a phone with large text the logo, the text-size button and the menu
   button no longer fit beside the wordmark; the wordmark leaves the bar
   visually but stays as the link's accessible name. */
@media (max-width: 639px) {
  html[data-text-large] .brand-wordmark {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}
body { overflow-wrap: break-word; }

/* Forum (rendered by the platform): its excerpts and metadata use the small
   steps, which read smaller than the rest of the site. Inside the forum each
   small step moves up one, so it matches the landings and still follows the
   text-size control. */
.forum-scope .text-sm,
.nieva-forum-side .text-sm,
.forum-scope .text-\[14px\] { font-size: var(--text-lg); }
/* Post titles sit above their excerpt, so they step up past it. */
.forum-scope .text-\[17px\],
.forum-scope .text-\[18px\] { font-size: var(--text-xl); }
.forum-scope .text-xs,
.nieva-forum-side .text-xs,
.forum-scope .text-\[12px\],
.forum-scope .text-\[13px\] { font-size: var(--text-base); }
.forum-scope .text-\[10px\],
.forum-scope .text-\[11px\] { font-size: var(--text-sm); }

/* The reading sizes written as px (text-[15px], text-[17px], ...) restated in
   rem, so they follow the root size the reader picks in the accessibility
   menu instead of staying fixed. */
.text-\[15px\] { font-size: 0.9375rem; }
.text-\[16px\] { font-size: 1rem; }
.text-\[17px\] { font-size: 1.0625rem; }
.text-\[18px\] { font-size: 1.125rem; }
.text-\[19px\] { font-size: 1.1875rem; }
.text-\[20px\] { font-size: 1.25rem; }
.text-\[22px\] { font-size: 1.375rem; }
.text-\[28px\] { font-size: 1.75rem; }

/* FOCUS ────────────────────────────────────────────────────────────────────
   One definition for every control. The theme already had this recipe on
   .cta:focus-visible and nowhere else — its four form controls had four
   different focus behaviours: a hardcoded orange ring, a border mutated by JS,
   a native radio ring, and the browser outline. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-background),
    0 0 0 4px var(--color-primary);
  border-radius: 6px;
}

/* FORM CONTROLS ────────────────────────────────────────────────────────────
   styles.ts had none. Not one selector for input, select, textarea,
   ::placeholder, or an error state — so every field in the theme inherited
   whatever the host shipped. */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.field .field-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.field .field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.3125rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-error);
}
.inp {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: border-color 120ms, box-shadow 120ms;
}
.inp::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}
.inp:hover {
  border-color: var(--color-border-hover);
}
.inp:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 2px var(--color-background),
    0 0 0 4px var(--color-primary);
}
.inp[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-surface-dim);
}
.inp[aria-invalid="true"] {
  border-color: var(--color-error);
}
.inp[aria-invalid="true"]:focus {
  box-shadow:
    0 0 0 2px var(--color-background),
    0 0 0 4px var(--color-error);
}
select.inp {
  appearance: none;
  cursor: pointer;
  padding-right: 2.25rem;
}

/* REDUCED MOTION ───────────────────────────────────────────────────────────
   The theme animated five hover scales and ran two infinite loops with no
   media query at all, while hooks.ts exported a useReducedMotion that nothing
   imported. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.tx-1 { color: var(--color-text-primary); }
.tx-2 { color: var(--color-text-secondary); }
.tx-3 { color: var(--color-text-muted); }
.tx-accent { color: var(--color-primary); }

/* SURFACE-SAFE INKS ────────────────────────────────────────────────────────
   The raw accent and secondary tokens clear 4.5:1 against the page ground but
   not against .sf-1 / .sf-2, which is exactly where small coloured labels sit:
   pills, level tags, badges. This caught the level ramp, the hero mock and the
   section eyebrow in turn, so it is a variable now rather than a fix applied
   three times. Use the raw token for fills and large type; use these for text
   under ~18px sitting on a raised surface. */
:root {
  /* Solid primary CTA. The platform derives --color-cta / --color-on-cta so
     the label reads on both WCAG and APCA (snowlab lib/themes/cta.ts): for
     NIEVA that is white on a deeper coral, because dark ink on the bright
     coral passes WCAG but reads muddy (APCA Lc 48). The fallbacks keep the
     old pair on a platform that predates the tokens. */
  --cta-fill: var(--color-cta, var(--color-primary));
  --cta-ink: var(--color-on-cta, var(--color-background));
  --ink-secondary: color-mix(in srgb, var(--color-secondary) 80%, #fff);
  --ink-accent: color-mix(in srgb, var(--color-accent) 75%, #fff);
  --ink-primary: color-mix(in srgb, var(--color-primary) 80%, #fff);
  --ink-warning: color-mix(in srgb, var(--color-warning) 88%, #fff);
}
.ink-secondary { color: var(--ink-secondary); }
.ink-accent { color: var(--ink-accent); }
.ink-primary { color: var(--ink-primary); }
.ink-warning { color: var(--ink-warning); }

.sf-0 { background-color: var(--color-background); }
.sf-1 { background-color: var(--color-surface); }
.sf-2 { background-color: var(--color-surface-hover); }
.sf-dim { background-color: var(--color-surface-dim); }

/* ── Page shell ──────────────────────────────────────────
   One definition for the page's content column, because there were three:
   the header ran full-bleed with a 24px gutter, the hero and paths capped at
   80rem, and the bootcamp and "start where you are" sections at 72rem. Three
   left edges — 24px, 80px, 144px — stacked down the same page, which reads as
   sections of different widths rather than as one column.

   80rem is the hero's width, and the hero is the reference the brand signed
   off on. Anything that should line up with it uses this class; the only
   things that legitimately do not are prose measures (max-w-5xl), where the
   constraint is line length, not layout. */
.shell {
  width: 100%;
  margin-inline: auto;
  /* px, not rem: the layout width must not shrink with the text size (the
     81% base and the reader's text-size control only move the type). */
  max-width: 1280px;
  padding-inline: 16px;
}
@media (min-width: 640px) {
  .shell { padding-inline: 24px; }
}
@media (min-width: 1024px) {
  .shell { padding-inline: 32px; }
}

/* .shell-flush — el header, y solo el header, corre a sangre.
   ─────────────────────────────────────────────────────────────
   Esto revierte a propósito lo que dice el comentario de .shell arriba, así
   que aquí queda el contraargumento para que nadie lo "arregle" de vuelta sin
   leerlo.

   El hallazgo de las tres orillas izquierdas (24px / 80px / 144px apiladas en
   la misma página) era correcto para SECCIONES: el hero, las rutas y los
   bootcamps son bloques de la misma columna y tienen que compartir orilla.

   El header no es una sección de esa columna, es el marco que la contiene.
   Ya pinta su fondo a sangre y su hairline inferior a sangre; lo único que
   seguía capado en 80rem era su contenido, así que en una pantalla de 1440+
   el logo flotaba a 112px del borde con el fondo del bar corriendo por debajo
   hasta el filo. Eso no leía como "una columna", leía como una barra angosta
   dentro de una barra ancha.

   Con el contenido también a sangre, el logo ancla en el filo izquierdo y la
   cuenta en el derecho: el bar se lee como marco alrededor de la columna, no
   como una cuarta anchura compitiendo con ella. Es como resuelven la misma
   tensión Vercel, Linear y el dashboard de Stripe.

   Los gutters son idénticos a los de .shell a propósito — a 1280px exactos el
   header y el hero siguen alineados, y la diferencia solo aparece cuando hay
   ancho de sobra, que es donde el problema existía.

   Para revertir: cambiar shell-flush por shell en el <nav> del Header. Nada
   más depende de esta clase. */
.shell-flush {
  width: 100%;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .shell-flush { padding-inline: 1.5rem; }
}
/* El gutter ancho espera a xl, no a lg. Entre 1024 y 1279 el nav de escritorio
   va justo de ancho, y 1rem de gutter recuperado son 32px que ahí valen más
   que la simetría con .shell — que a esos anchos igual nadie compara, porque
   el hero de abajo ya está capado en 80rem y no llega. */
@media (min-width: 1280px) {
  .shell-flush { padding-inline: 2rem; }
}

/* The hero fact strip stacks vertically on phones and runs as a row from sm
   up, so the rule between items has to change axis with it. */
.fact-divider { border-top: 1px solid var(--color-border); }
@media (min-width: 640px) {
  .fact-divider {
    border-top: 0;
    border-left: 1px solid var(--color-border);
  }
}

/* ── Disclosure rows ─────────────────────────────────────
   Cards with air between them, not one continuous slab. Rows separated only
   by a hairline inside a single panel read as a table — fine for a schedule of
   twenty, wrong for three products where each one has to look clickable on its
   own. Each row now carries its own border and lifts on hover. */
.disclosure {
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  background-color: var(--color-surface);
  overflow: hidden;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.disclosure:hover { border-color: var(--color-border-hover); }

/* Link body + toggle button as siblings: two targets, neither nested in the
   other. Nesting a button inside a link is invalid HTML and leaves a screen
   reader guessing which one it just activated. */
.disclosure__row { display: flex; align-items: stretch; }
.disclosure__link,
.disclosure__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}
@media (min-width: 640px) {
  .disclosure__link,
  .disclosure__trigger { padding: 1.25rem 1.5rem; }
}
.disclosure__link:hover,
.disclosure__trigger:hover { background-color: var(--color-surface-hover); }

.disclosure__toggle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  border: 0;
  border-left: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.disclosure__toggle:hover {
  background-color: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.disclosure__chevron {
  color: inherit;
  transition: transform 200ms ease, color 150ms ease;
}
.disclosure__trigger .disclosure__chevron { color: var(--color-text-muted); }
.disclosure__trigger:hover .disclosure__chevron { color: var(--color-text-primary); }
.disclosure__chevron.is-open { transform: rotate(180deg); }

.disclosure__panel {
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface-dim);
}
@media (min-width: 640px) {
  .disclosure__panel { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* A fact worth reading twice. The panel's values were all one white, so the
   labels and the answers carried the same weight. */
.fact-value {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Hero terminal ───────────────────────────────────────
   The caret blinks at 1s — well under the 3 flashes per second that trips the
   photosensitivity threshold, and it stops entirely with the animation. */
.hero-terminal__caret {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background-color: var(--color-primary);
  animation: nievaCaret 1s steps(2, start) infinite;
}
@keyframes nievaCaret { to { visibility: hidden; } }

/* El cuerpo apila las líneas desde abajo (justify-end) dentro de una caja de
   alto fijo, así que en cuanto el guion es más largo que la caja la línea de
   arriba queda cortada por la mitad — media letra asomando bajo la barra del
   terminal. No se lee como "hay más arriba", se lee como un bug de recorte.

   El degradado hace que el borde superior se desvanezca en vez de tajar. Con
   eso el desbordamiento pasa a ser lo que realmente es: un transcript que se
   va yendo hacia arriba. Y a diferencia de un tope de líneas, funciona a
   cualquier ancho — en un teléfono, donde la caja siempre va a ser más chica
   que el guion, es la única forma de que no se vea roto.

   2.5rem ≈ una línea y media a 12.5px/1.625, que es lo suficiente para que la
   línea que se va salga completa del degradado y no a medias. */
.hero-terminal__body {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem);
  mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem);
}

/* Present, not prominent. WCAG 2.2.2 requires a pause mechanism for motion
   that starts on its own and runs past five seconds; it does not require that
   mechanism to sit on screen at all times. Hidden until the terminal is
   hovered or the button itself takes keyboard focus: the chrome stays clean,
   and the control is still in the tab order and still announced. */
.hero-terminal__toggle {
  opacity: 0;
  transition: opacity 160ms ease, color 150ms ease, border-color 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}
.hero-terminal__toggle:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-hover);
}
.hero-terminal:hover .hero-terminal__toggle,
.hero-terminal__toggle:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  /* No hover on touch, so the control is simply always there. */
  .hero-terminal__toggle { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-terminal__caret { animation: none; }
}

/* ── Emphasis ────────────────────────────────────────────
   An underline drawn as a gradient sitting under the baseline, not
   text-decoration: it can be thick and coloured without touching legibility,
   and it stops at the phrase instead of running through descenders. */
.mark-underline {
  background-image: linear-gradient(
    to right,
    color-mix(in srgb, var(--color-primary) 85%, transparent),
    color-mix(in srgb, var(--color-primary) 85%, transparent)
  );
  background-repeat: no-repeat;
  background-size: 100% 0.18em;
  background-position: 0 88%;
  padding-bottom: 0.05em;
}

/* A number that carries weight. The section stats were the same grey as the
   labels beside them, so the one figure worth reading looked like caption. */
.stat-figure {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

/* The header runs on a 16px scale — nav links, the dashboard pill, the locale
   toggle. A button borrowing the card-sized .cta--sm dropped to 12.8px and
   read as an afterthought wedged between full-size neighbours. */
.header-cta {
  width: auto;
  /* Altura fija en vez de padding vertical: "Cerrar sesión" y la píldora de
     "Mi tablero" son dos controles del mismo rango pegados uno al otro, y
     medían 38.6px y 46px. Dos alturas casi-iguales leen peor que dos alturas
     distintas a propósito — el ojo las lee como error de alineación. Con
     height explícita las dos salen de este número y no se pueden desfasar.
     El .cta base ya es inline-flex + align-items:center, así que la etiqueta
     se centra sola sin padding vertical. */
  height: 2.375rem;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-width: 1.5px;
}

/* The whole review card is the link to its guide, so it needs to behave like
   one: lift on hover, and move the arrow the way every other row in the theme
   does. */
/* ── Catálogo ──────────────────────────────────────────────────
   Con treinta cursos y dos dimensiones reales de filtro (acceso y nivel), una
   barra lateral de facetas sería andamiaje para un problema que no existe.
   Van fichas en una fila: se ven todas las opciones a la vez, se pulsan con
   un clic y en móvil se convierten en una fila que se desliza en vez de un
   cajón que hay que abrir, aplicar y cerrar. */

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  padding: 0.35rem 0.9rem;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.filter-chip:hover { border-color: var(--color-border-hover); color: var(--color-text-primary); }
.filter-chip:focus-visible {
  outline: none;
  border-color: var(--color-border-hover);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 45%, transparent);
}
/* El estado activo no se marca solo con color: quien no distingue el tono
   necesita otra señal, y el borde más marcado más el fondo tintado la dan. */
.filter-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--chip-hue, var(--color-primary)) 55%, transparent);
  background-color: color-mix(in srgb, var(--chip-hue, var(--color-primary)) 14%, transparent);
  color: var(--color-text-primary);
}
.filter-chip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  border-color: var(--color-border);
}
.filter-chip:disabled:hover { color: var(--color-text-secondary); border-color: var(--color-border); }
.filter-chip__count { color: var(--color-text-muted); font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.filter-chip[aria-pressed="true"] .filter-chip__count { color: inherit; opacity: 0.75; }

.filter-group__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.catalog-search {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  padding: 0.65rem 0.9rem 0.65rem 2.4rem;
  color: var(--color-text-primary);
  font-size: 0.9375rem;
}
.catalog-search::placeholder { color: var(--color-text-muted); }
.catalog-search:focus-visible {
  outline: none;
  border-color: var(--color-border-hover);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

/* Item del índice. Sin caja en reposo: el relieve solo aparece bajo el cursor.
   Treinta y seis rectángulos con borde y fondo permanentes forman un damero en
   el que ningún elemento destaca; quitando la caja, lo que queda a la vista es
   la columna de títulos, que es lo que se escanea. */
.catalog-tile {
  background-color: transparent;
  transition: background-color 140ms ease;
}
.catalog-tile:hover, .catalog-tile:focus-visible {
  background-color: var(--color-surface);
}
.catalog-tile__title { transition: color 140ms ease; }
.catalog-tile:hover .catalog-tile__title { color: var(--color-primary); }
/* El punto crece al pasar por encima: confirma la fila activa sin mover el
   texto, que es lo que produce el salto de layout en listas densas. */
/* Tarjeta de la vista de secuencia: aquí la caja se queda, y el hover solo
   la aclara. */
.catalog-card { transition: border-color 160ms ease, background-color 160ms ease; }
.catalog-card:hover, .catalog-card:focus-visible {
  border-color: var(--color-border-hover);
  background-color: var(--color-surface-hover);
}
/* Logo de tecnología. Apagado en reposo y a color de texto al pasar por
   encima: en una lista, veinte logos a plena saturación compiten entre sí y
   vuelven a producir la textura uniforme que arruina el escaneo. */
.catalog-tech {
  color: var(--color-text-muted);
  opacity: 0.75;
  transition: opacity 140ms ease, color 140ms ease;
}
.catalog-tile:hover .catalog-tech { opacity: 1; color: var(--color-text-secondary); }
.catalog-tech-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Chip de ecosistema. Tenue a propósito: acompaña al título, no compite con
   él. El contorno lo separa del fondo sin pedir un color más. */
.catalog-chip {
  display: inline-block;
  max-width: 100%;
  padding: 1px 7px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.catalog-tile:hover .catalog-chip { border-color: var(--color-border-hover); }
.catalog-tile__dot { transition: transform 140ms ease; }
.catalog-tile:hover .catalog-tile__dot { transform: scale(1.6); }
.catalog-page { transition: border-color 160ms ease, background-color 160ms ease; }
.catalog-page:not(:disabled):hover { border-color: var(--color-border-hover); }

/* ── Blog ──────────────────────────────────────────────────────
   El blog no se lee como el resto del sitio, así que tampoco se maqueta
   igual. Aquí manda una columna de lectura con una barra de identidad fija
   al lado: quien entra a un artículo desde fuera no ha visto la portada, y
   esa barra es lo único que le dice de quién está leyendo.

   La monoespaciada aparece SOLO en fechas y encabezados de sección. Es la
   marca del template: separa el andamiaje editorial del texto que se lee. */

.blog-rail {
  background-color: color-mix(in srgb, var(--color-surface) 55%, transparent);
  backdrop-filter: blur(8px);
}
@media (min-width: 1024px) {
  .blog-rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}

/* El rótulo vertical del canto. Cuesta una línea y es lo primero que hace
   que la página no parezca una plantilla más. */
.blog-spine {
  writing-mode: vertical-rl;
  letter-spacing: 0.06em;
}

.mono-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.mono-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.75rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Cada artículo se separa por una línea, no por una tarjeta. Una tarjeta
   encapsula un objeto; una línea deja leer la lista como un índice. */
.blog-entry { border-top: 1px solid var(--color-border-subtle); }
.blog-entry:first-child { border-top: 0; }
.blog-entry__title { transition: color 160ms ease; }
.blog-entry:hover .blog-entry__title { color: var(--color-primary); }

.blog-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-primary);
  text-decoration: none;
  transition: color 160ms ease;
}
.blog-action:hover, .blog-action:focus-visible { color: var(--color-primary); }
.blog-action__sep { color: var(--color-text-muted); font-weight: 700; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  padding: 0.3rem 0.8rem;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}
.tag-pill:hover, .tag-pill:focus-visible {
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.tag-pill--active {
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
  color: var(--ink-primary);
}
.tag-pill__count { color: var(--color-text-muted); font-variant-numeric: tabular-nums; font-size: 0.75rem; }

/* El cuerpo del artículo. La medida se fija en ch, no en px: lo que cansa la
   lectura es el número de caracteres por línea, no el ancho en pantalla. */
/* El contenedor de la columna es ancho a propósito, para que el índice y la
   cabecera del artículo ocupen sitio en vez de flotar en un lienzo vacío. El
   CUERPO, en cambio, sí lleva tope: pasado cierto número de caracteres por
   línea el ojo pierde el renglón al volver, y eso no se arregla con más
   espacio. 74ch es el borde alto de lo cómodo, que es donde queremos estar. */
.blog-prose { max-width: 74ch; }
.blog-prose p { margin: 0 0 1.15em; line-height: 1.8; font-size: 1.0625rem; }
.blog-prose h2 {
  margin: 2.4em 0 0.7em;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}
.blog-prose h3 {
  margin: 1.9em 0 0.6em;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
}
.blog-prose ul, .blog-prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.blog-prose li { margin-bottom: 0.45em; line-height: 1.8; }
.blog-prose ul li::marker { color: var(--color-primary); }
.blog-prose ol li::marker { color: var(--color-primary); font-weight: 700; }
.blog-prose a { color: var(--color-primary); text-underline-offset: 3px; }
.blog-prose img { border-radius: 0.75rem; margin: 1.8em 0; }
.blog-prose strong { color: var(--color-text-primary); font-weight: 700; }
.blog-prose blockquote {
  margin: 1.8em 0;
  border-left: 3px solid var(--color-secondary);
  padding-left: 1.15em;
  color: var(--color-text-secondary);
}
.blog-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--ink-secondary);
  background-color: color-mix(in srgb, var(--color-secondary) 10%, transparent);
  border-radius: 0.3rem;
  padding: 0.1em 0.35em;
}

.review-card {
  transition: border-color 160ms ease, background-color 160ms ease;
}
.review-card:hover { border-color: var(--color-border-hover); }
.review-card__arrow { transition: transform 160ms ease, color 160ms ease; }
.review-card:hover .review-card__arrow {
  transform: translateX(3px);
  color: var(--color-secondary);
}

.dot-muted { background-color: var(--color-text-muted); }

/* Difficulty ramp.
   Difficulty is an ordinal scale, so it gets a ramp, not a traffic light.
   A green/amber/red scale fails twice here: red already means "brand action"
   in this theme, and a red/green pair is the one contrast a colourblind
   reader cannot separate. This ramp steps in hue AND lightness, and every
   dot is labelled in text anyway, so colour is never the only channel.

   The label colours are lifted toward white because these labels are 12px:
   the raw secondary and accent tokens clear 4.5:1 on the page ground but not
   on .sf-2, which is where the path cards actually sit. The dots keep the raw
   token — a dot is a graphical object and only owes 3:1. */
.lvl-1 { color: var(--color-text-muted); }
.lvl-2 { color: var(--ink-secondary); }
.lvl-3 { color: var(--ink-accent); }
.dot-1 { background-color: var(--color-text-muted); }
.dot-2 { background-color: var(--color-secondary); }
.dot-3 { background-color: var(--color-accent); }

.bd   { border-color: var(--color-border); }
.bd-2 { border-color: var(--color-border-hover); }



/* ── Section bands ───────────────────────────────────────
   The complaint that survived every palette change was "it's a black
   landing" — and it was never about the hero. One glow at the top leaves
   eight sections below it on the same flat ground.

   The fix is the one the best-built platform in the research uses: DataCamp
   alternates 58 dark bands against 28 light ones on its homepage, each band a
   real theme scope. Anthropic reassigns its background token per section.

   Here it costs nothing new. A band is the surface token plus a hairline,
   and every other band carries its own soft light so the effect travels the
   whole scroll instead of dying after the first screen.

   Usage: wrap alternating sections in '.band' / '.band--lit'. Cards inside
   keep working because '--color-surface' is still what they fill with — the
   band sits behind them, one step down. */

.band {
  position: relative;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Every other band gets a light of its own, alternating side so the page
   reads as one lit room rather than a stack of identical slabs. */
.band--lit::before,
.band--lit-r::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.band--lit::before {
  background: radial-gradient(
    ellipse 70% 60% at 8% 0%,
    color-mix(in srgb, var(--color-primary) 13%, transparent),
    transparent 62%
  );
}
.band--lit-r::before {
  background: radial-gradient(
    ellipse 65% 55% at 92% 100%,
    color-mix(in srgb, var(--color-secondary) 11%, transparent),
    transparent 58%
  );
}
.band--lit > *,
.band--lit-r > * { position: relative; z-index: 1; }

/* Cards sitting on a band need one more step of separation, since the band
   already spent the first one. */
.band .elev-1,
.band-card {
  background-color: var(--color-surface-hover);
}

/* ── Elevation ───────────────────────────────────────────
   The finding that took four research passes to arrive at, confirmed
   independently by Linear, GitHub, Vercel, Raycast and DataCamp: in dark UI
   the FILL does not separate a card from the page — it only warms it. The
   median ground→surface contrast across 18 shipped products is 1.08:1, which
   is invisible on its own. Every one of them pairs that step with an explicit
   border, and that border is what the eye reads as an edge.

   DataCamp puts it plainly in its own tokens: one border colour, six alpha
   steps, and box-shadow used eight times on the entire homepage.

   So: surfaces get a token fill, and every raised surface gets a hairline.
   The white-alpha rungs below are the ones ten independent design systems
   converged on — 3% wash, 5% divider, 8% hairline, 15% strong. */

/* PAGE GROUND ─────────────────────────────────────────────────────────────
   ONE ground for the whole document. Not a band per section — the element
   carrying this is fixed inset-0, so it never scrolls and never seams.
   Sections paint nothing; they let this through.

   It reads as light with a direction: a crest above the fold, falling to the
   substrate by mid-viewport, settling darker at the floor. Ten points of
   OKLCH lightness top to bottom, single hue throughout — a gradient in one
   colour family is light, two colour families is two backgrounds.

   Both ends are color-mix of tokens, never literals, so a tenant that
   overrides background gets a ground mixed from ITS substrate. */
.ground-crest { background-color: color-mix(in srgb, var(--color-background), var(--color-surface)); }
.ground-floor { background-color: color-mix(in srgb, var(--color-background) 60%, var(--color-surface-dim)); }

/* The ground lives on body::before, not on a div.
   It used to be a div inside a position:fixed wrapper with z-index:0.
   That is the bug that made section headers invisible: in the CSS paint order,
   a positioned element with z-index 0 paints in step 8, while the inline text
   of non-positioned in-flow boxes paints in step 7. So the ground painted OVER
   the text of any section that did not carry relative. PathGrid's header was
   exactly that — the markup was correct, the colour was correct, the element
   was even the hit-test target (the ground is pointer-events:none), and it
   still never appeared on screen. Sections that happened to have relative
   were fine, which is why only some headers vanished.

   body::before with z-index -1 paints above the root background and below
   every piece of content, positioned or not, so no section needs to opt in. */
/* PAGE GROUND — isometric grid ────────────────────────────────────────────
   Two axes at plus and minus 30 degrees with the SAME perpendicular spacing
   (46px). Equal spacing is what produces 60/120 rhombi, which is the correct
   isometric lattice; unequal spacing gives a skewed diamond that reads as an
   error. Because the axes never converge, the pattern tessellates seamlessly
   in every direction, and because no line is horizontal or vertical it never
   reads as graph paper — which is what killed the earlier square grid.

   The radial mask fades it out below the fold: texture lives where there is
   air, and disappears under the content.

   It lives on body::before at z-index -1. It used to be a div inside a
   position:fixed wrapper at z-index 0 — and in the CSS paint order a
   positioned element at z-index 0 paints in step 8, while the inline text of
   non-positioned in-flow boxes paints in step 7. So the ground painted OVER
   the text of every section that did not carry position:relative. Section headers
   were invisible with correct markup and correct colour. At -1 it paints
   above the root background and below all content, positioned or not, so no
   section has to opt in. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(30deg,  color-mix(in srgb, var(--color-border) 34%, transparent) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(-30deg, color-mix(in srgb, var(--color-border) 34%, transparent) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, var(--color-background), var(--color-background));
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 22%, transparent 76%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 22%, transparent 76%);
}

/* Grain, same layer, above the grid. Keeps 8-bit panels from banding. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: lighten;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}



.elev-1 {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 1px 0 0 var(--color-border),
    0 1px 2px 0 rgba(0, 0, 0, 0.4);
}
.elev-2 {
  background-color: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 1px 0 0 var(--color-border),
    0 4px 12px -2px rgba(0, 0, 0, 0.5);
}
/* Top-edge bevel — light appears to come from above, so the upper hairline
   is brighter than the rest. One line, and it is the difference between a
   flat rectangle and a surface. */
.elev-lit {
  box-shadow: inset 0 1px 0 0 var(--color-border);
}

/* ── Custom scrollbar ────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--color-primary) 35%, transparent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--color-primary) 55%, transparent); }
html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--color-primary) 35%, transparent) var(--color-surface); }

/* ── Typography (mirrors nieva.ai globals.css) ───────── */

.hero-title {
  font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.card-title {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: clamp(1.3125rem, 1.1rem + 0.9vw, 1.875rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.hero-description {
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-description {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.content-text-large {
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  color: var(--color-text-secondary);
  line-height: 1.625;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Hero CTA button (mirrors Button variant="hero" size="hero") ─────── */
/* Colors come from theme tokens (manifest.defaultTokens.colors) which the
   platform injects as :root CSS variables. tokenOverrides per tenant work
   automatically — no hex hardcoded here. */

.btn-hero-gradient {
  color: var(--cta-ink);
  background-image: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--cta-fill) 94%, #fff),
    var(--cta-fill)
  );
}
.btn-hero-gradient:hover {
  background-image: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-secondary) 80%, transparent),
    var(--color-secondary)
  );
}

/* ── Bootcamp CTA system — all buttons share the SAME geometry ─────────
   Identical: padding, border-radius, border, font-size, font-weight,
   line-height, text-align, gap, icon-size. Only color treatment differs.
   This is what makes Reservar / Agendar / Descargar PDF / Ver programa
   feel like a coherent set, not random buttons. */

.cta,
.bootcamp-primary-cta,
.bootcamp-schedule-cta,
.bootcamp-download-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;          /* py-3 px-6 */
  border-radius: 0.5rem;            /* rounded-lg */
  border: 2px solid transparent;
  font-size: var(--text-base);      /* fluid body size, like the copy */
  font-weight: 700;                 /* font-bold — same across all */
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  min-width: 0;
  flex: 0 1 auto;
  cursor: pointer;
  transition: all 300ms;
}
@media (min-width: 640px) {
  .cta,
  .bootcamp-primary-cta,
  .bootcamp-schedule-cta,
  .bootcamp-download-cta {
    width: auto;
    padding: 1rem 2rem;             /* sm:py-4 sm:px-8 */
  }
}

/* Icons inside any CTA — same size, same alignment */
.cta svg,
.bootcamp-primary-cta svg,
.bootcamp-schedule-cta svg,
.bootcamp-download-cta svg {
  width: 1rem;        /* h-4 w-4 */
  height: 1rem;
  flex-shrink: 0;
}

/* Paired-button row: 1 column on mobile, 2 equal columns on sm+. Buttons inside
   stretch to fill their cell so they end up with identical widths regardless
   of label length. Use this whenever 2 CTAs sit side-by-side. */
.bootcamp-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 640px) {
  .bootcamp-cta-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .bootcamp-cta-row > .bootcamp-primary-cta,
  .bootcamp-cta-row > .bootcamp-schedule-cta,
  .bootcamp-cta-row > .bootcamp-download-cta {
    width: 100%;       /* override the auto width inside grid cells */
  }
}

/* Stacked pair: every CTA in the group takes the same width, so two buttons
   of one set never come out two different shapes. Capped so the group doesn't
   stretch across a wide column. */
.bootcamp-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 24rem;
}
.bootcamp-cta-stack > .bootcamp-primary-cta,
.bootcamp-cta-stack > .bootcamp-schedule-cta,
.bootcamp-cta-stack > .bootcamp-download-cta,
.bootcamp-cta-stack > .enrollment-cta :where(button, a) {
  width: 100%;
}



/* ── Eyebrow label ───────────────────────────────────────
   The small uppercase label above a section title. It existed as a bare
   .badge-text in eight places and as a bordered pill in one, which is the
   same split that produced three different tag treatments earlier. One shape:
   a pill with an accent hairline. */

/* EYEBROW ──────────────────────────────────────────────────────────────────
   Neutral by default. The brand colour is Torch Red, and a red brand only
   works when the red is scarce: Netflix and YouTube both spend theirs on the
   logo and one action per screen. A section label does not change anyone's
   decision, so it does not earn the accent.

   .eyebrow-pill--hot exists for the cases that do: seats left, a deadline,
   enrolment opening. Use it once per screen at most. */
/* CURRENT LESSON ───────────────────────────────────────────────────────────
   The syllabus used to give the current lesson no affordance at all: same
   glyph as a pending one, no background, no rule. A reader three modules deep
   could not tell where they were. */
.lesson-row--current {
  background-color: color-mix(in srgb, var(--color-primary) 13%, transparent);
  box-shadow: inset 2px 0 0 0 var(--color-primary);
  font-weight: 600;
}

/* SECTION RAIL ─────────────────────────────────────────────────────────────
   The bootcamp rail marked its active item with aria-current and nothing else
   — there was no rule for that attribute anywhere in this file, so the
   position indicator on a twelve-section page was invisible. Its border-l-2
   also declared no colour, falling back to currentColor. */
.section-rail a {
  border-left: 2px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  transition: color 120ms, border-color 120ms;
}
.section-rail a:hover {
  color: var(--color-text-secondary);
  border-left-color: var(--color-border-hover);
}
.section-rail a[aria-current] {
  color: var(--color-text-primary);
  border-left-color: var(--color-secondary);
  font-weight: 600;
}

/* METER TRACK ──────────────────────────────────────────────────────────────
   The spots meter declared height, overflow and radius but no background, so
   only the filled portion was visible: a bar floating with no scale. */
.meter-track {
  background-color: var(--color-surface-dim);
}

.eyebrow-pill {
  display: inline-flex;
  width: fit-content;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  /* One tag style for every section label on every page, the one the course
     catalogue uses (SolidTag): solid neutral fill, primary text, bold, no
     border. Colour variants (ink-*) are ignored on purpose. */
  border: 0;
  background-color: var(--color-surface-hover);
  padding: 0.375rem 1rem;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.5;
}
.eyebrow-pill,
.eyebrow-pill.ink-secondary,
.eyebrow-pill.ink-accent { color: var(--color-text-primary); }
.eyebrow-pill--hot {
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
  background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
}

/* ── CTA system ──────────────────────────────────────────
   This started life as four .bootcamp-*-cta classes on one landing page,
   and it was the only place in the theme where buttons read as a set: the
   same padding, radius, border, size, weight, line-height, gap and icon size,
   with colour as the ONLY difference. Everywhere else each section invented
   its own box — ten distinct geometries across seventeen sections, three
   radius families, seven padding pairs, and no rule for which went where.

   The old names stay as aliases so the bootcamp page keeps working while the
   rest migrates. New code uses .cta plus one variant and, if needed, one
   size. Nothing else. A button that needs a geometry outside this set is
   almost always a link that wants to look like a button. */

/* Variants — colour only. Geometry is inherited, never redeclared. */
.cta--primary {
  color: var(--cta-ink);
  background-image: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--cta-fill) 94%, #fff),
    var(--cta-fill)
  );
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--color-primary) 55%, transparent);
}
.cta--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.cta--secondary {
  color: var(--color-secondary);
  background-color: transparent;
  border-color: var(--color-secondary);
}
.cta--secondary:hover {
  background-color: color-mix(in srgb, var(--color-secondary) 12%, transparent);
}

/* The default for anything that isn't the page's one main action. */
.cta--ghost {
  color: var(--color-text-secondary);
  background-color: var(--color-surface);
  border-color: var(--color-border);
}
.cta--ghost:hover {
  background-color: var(--color-border);
  color: var(--color-text-primary);
}

/* Sizes — two, because a third is always someone avoiding a layout decision. */
/* DESTRUCTIVE ──────────────────────────────────────────────────────────────
   The brand colour IS red, so danger cannot be signalled by colour alone —
   a red destructive button and a red primary CTA are the same object to the
   eye. It is distinguished by a different tone (the error red, which is not
   the brand red), by a trash icon, and by the label. That is what red-branded
   products do; the guidance is explicit about it. */
.cta--danger {
  background-color: var(--color-surface-hover);
  color: var(--color-error);
  border-color: var(--color-error);
}
.cta--danger:hover {
  background-color: color-mix(in srgb, var(--color-error) 14%, var(--color-surface-hover));
}

.cta--sm {
  padding: 0.45rem 0.9rem;
  font-size: var(--text-sm);
  border-width: 1.5px;
}
@media (min-width: 640px) { .cta--sm { padding: 0.5rem 1rem; } }

.cta:active,
.bootcamp-primary-cta:active { transform: scale(0.99); }

.cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-background),
    0 0 0 4px var(--color-primary);
}
.cta:disabled,
.cta[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Schedule CTA color (accent / morado) ──────────────────────────── */

.bootcamp-schedule-cta {
  color: var(--color-background);
  background-image: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-accent) 78%, white),
    var(--color-accent)
  );
  box-shadow:
    0 14px 32px -8px color-mix(in srgb, var(--color-accent) 55%, transparent),
    0 6px 12px -3px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 var(--color-border);
}
.bootcamp-schedule-cta:hover {
  transform: scale(1.05);
  filter: brightness(1.12);
  box-shadow:
    0 22px 44px -10px color-mix(in srgb, var(--color-accent) 65%, transparent),
    0 12px 18px -5px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 var(--color-border);
}
.bootcamp-schedule-cta:active { transform: scale(1.02); }
.bootcamp-schedule-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-background, var(--color-background)),
    0 0 0 4px var(--color-accent),
    0 14px 32px -8px color-mix(in srgb, var(--color-accent) 55%, transparent);
}

/* ── Download CTA: outlined (Hero) and filled (Curriculum) variants ───── */

.bootcamp-download-cta--outlined {
  color: var(--color-text-secondary);
  background-color: var(--color-border);
  border-color: var(--color-border);
}
.bootcamp-download-cta--outlined:hover {
  background-color: var(--color-border);
  border-color: var(--color-border);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}
.bootcamp-download-cta--outlined:focus-visible {
  outline: none;
  border-color: var(--color-border);
  box-shadow: 0 0 0 2px var(--color-background, var(--color-background)),
    0 0 0 4px var(--color-border);
}

.bootcamp-download-cta--filled {
  color: var(--color-background);
  background-image: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-secondary) 78%, white),
    var(--color-secondary)
  );
  box-shadow:
    0 10px 24px -8px color-mix(in srgb, var(--color-secondary) 50%, transparent),
    0 4px 6px -2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 var(--color-border);
}
.bootcamp-download-cta--filled:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
  box-shadow:
    0 16px 32px -10px color-mix(in srgb, var(--color-secondary) 60%, transparent),
    0 8px 12px -4px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 var(--color-border);
}

/* ── Theme-owned bootcamp CTA (mirrors nieva-ai exactly) ─────────────── */
/* Used when the contract exposes enrollAction + label (data-only handoff).
   Vertical gradient orange→teal-on-hover, rounded-lg, scale-105, full-width
   on mobile and intrinsic on desktop. */

.bootcamp-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;          /* py-3 px-6 */
  border-radius: 0.5rem;            /* rounded-lg */
  border: 2px solid transparent;
  font-size: var(--text-base);      /* fluid body size, like the copy */
  font-weight: 700;                 /* font-bold */
  color: var(--cta-ink);
  background-image: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--cta-fill) 94%, #fff),
    var(--cta-fill)
  );
  cursor: pointer;
  transition: all 300ms;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  white-space: normal;
  line-height: 1.2;
  min-width: 0;
  flex: 0 1 auto;
  text-align: center;
}
@media (min-width: 640px) {
  .bootcamp-primary-cta {
    width: auto;
    padding: 1rem 2rem;             /* sm:py-4 sm:px-8 */
  }
}
.bootcamp-primary-cta:hover {
  transform: scale(1.05);
  background-image: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-secondary) 80%, transparent),
    var(--color-secondary)
  );
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.bootcamp-primary-cta:active { transform: scale(1.02); }
.bootcamp-primary-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-background, var(--color-background)),
    0 0 0 4px var(--color-primary);
}
.bootcamp-primary-cta:disabled,
.bootcamp-primary-cta[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* ── Enrollment CTA wrapper ──────────────────────────────────────────── */
/* Provides polished default styling for whatever button/anchor the host's
   enrollmentButton slot renders. Uses :where() for zero specificity so any
   host className/inline style wins automatically. */

.enrollment-cta :where(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cta-ink);
  background-image: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--cta-fill) 94%, #fff),
    var(--cta-fill)
  );
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 300ms;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}
@media (min-width: 640px) {
  .enrollment-cta :where(button, a) {
    width: auto;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
.enrollment-cta :where(button, a):hover {
  transform: scale(1.05);
  background-image: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-secondary) 80%, transparent),
    var(--color-secondary)
  );
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.enrollment-cta :where(button, a):active {
  transform: scale(1.02);
}
.enrollment-cta :where(button, a):disabled,
.enrollment-cta :where(button, a)[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* ── Hero media frame (mirrors HeroMediaContainer + image hover) ─────── */

.hero-media-frame {
  border: 1px solid var(--color-border);
  transition: all 500ms;
}
.hero-media-frame:hover {
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.hero-media-overlay {
  background-image: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
  opacity: 0;
  transition: opacity 500ms;
}
.hero-media-frame:hover .hero-media-overlay {
  opacity: 1;
}

/* ── Bootcamp content column ─────────────────────────────── */
/* Each bootcamp section ships its own max-w / mx-auto / px container so it
   still works when rendered standalone. Inside the three-column body the page
   shell already supplies the gutter, so the inner padding is cancelled —
   without this the section text sits one gutter to the right of the rail and
   the enrollment card beside it. Written here rather than as a Tailwind
   arbitrary variant so it doesn't depend on the host's class scanning. */

@media (min-width: 1024px) {
  .bc-column > div > section > div {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }
}

/* ── Blog post content (BlogPostView) ────────────────────── */

.blog-prose {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.75;
}
.blog-prose h1, .blog-prose h2, .blog-prose h3, .blog-prose h4 {
  color: var(--color-text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.blog-prose h1 { font-size: 2.25rem; }
.blog-prose h2 { font-size: 1.875rem; }
.blog-prose h3 { font-size: 1.5rem; }
.blog-prose h4 { font-size: 1.25rem; }
.blog-prose p { margin: 1.25rem 0; }
.blog-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
  text-underline-offset: 3px;
  transition: color 200ms;
}
.blog-prose a:hover { color: var(--color-secondary); }
.blog-prose strong { color: var(--color-text-primary); font-weight: 700; }
.blog-prose em { font-style: italic; color: var(--color-text-secondary); }
.blog-prose ul, .blog-prose ol {
  margin: 1.25rem 0;
  padding-left: 1.625rem;
}
.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }
.blog-prose li { margin: 0.5rem 0; }
.blog-prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-secondary);
}
.blog-prose code {
  background-color: var(--color-surface);
  /* Not primary: inline code recurs many times per lesson, and red that
     frequent stops meaning "click me". Matches the lesson body, which is
     already on secondary. */
  color: var(--color-secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.blog-prose pre {
  background-color: var(--color-surface-dim);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.blog-prose pre code {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0;
}
.blog-prose img {
  border-radius: 0.75rem;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
}
.blog-prose hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* ── Syntax highlighting ─────────────────────────────────
   The host highlights code server-side and ships highlight.js class names
   (a theme bundle has no dependencies, so it could never highlight itself).
   What arrives is structure; the colour is ours, which is the point: code
   follows the brand instead of a fixed vendor scheme.

   The assignments are conventional — purple keywords, green strings, amber
   numbers, cyan callables — because a developer reads code by muscle memory,
   and this is the wrong place to be original. Every colour clears 7:1 on the
   code ground; none of them is the brand red, which stays a control colour. */
.prose pre,
.blog-prose pre {
  background-color: var(--color-surface-dim);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.6;
}
/* font-size: inherit, no 0.875em. Los tres selectores de aquí solo alcanzan
   código de BLOQUE — code.hljs únicamente existe dentro de un pre, porque la
   clase la pone el resaltador del host y solo en bloques cercados — y
   @tailwindcss/typography ya encoge el pre a .875em. Un 0.875em más encima se
   multiplica: sobre el cuerpo de 15.9px daba 15.9 × .875 × .875 = 12.2px de
   monoespaciada, que es tamaño de nota al pie para el elemento que la persona
   vino a leer. Heredando queda en 13.9px, que es lo que la regla quería decir. */
.prose pre code,
.blog-prose pre code,
code.hljs {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0;
  font-size: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hljs-keyword,
.hljs-built_in,
.hljs-literal,
.hljs-type,
.hljs-selector-tag { color: var(--color-accent); }

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-template-variable { color: var(--color-success); }

.hljs-number,
.hljs-symbol,
.hljs-bullet { color: var(--color-warning); }

.hljs-title,
.hljs-title_,
.hljs-title.class_,
.hljs-title.function_,
.hljs-section,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class { color: var(--color-secondary); }

.hljs-attr,
.hljs-attribute,
.hljs-variable,
.hljs-params,
.hljs-property,
.hljs-operator { color: var(--color-text-secondary); }

.hljs-meta,
.hljs-punctuation,
.hljs-tag { color: var(--color-text-muted); }

.hljs-deletion { color: var(--color-error); }

/* Comments carry the least information density on the screen, so they get the
   quietest colour — but italic too, so the distinction survives a grayscale
   print and any form of colour blindness. */
.hljs-comment,
.hljs-quote {
  color: var(--color-text-muted);
  font-style: italic;
}

.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

/* ── RouteMap: "where do I start?" (components/RouteMap.tsx) ─────────────
   One question, one map. The primary colour only marks the picked route and the start button. */
.nv-rm{display:grid;gap:18px;margin:0 auto 40px;max-width:1240px;padding:clamp(18px,3vw,36px);border:1px solid var(--color-border);border-radius:var(--radius-card,16px);background:color-mix(in srgb,var(--color-surface) 70%,transparent)}
.nv-rm--panel{padding:0;gap:0}
.nv-rm-folio{margin:0;font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.18em;text-transform:uppercase;color:var(--color-text-muted)}
.nv-rm-toggle{display:flex;width:100%;justify-content:space-between;align-items:center;gap:16px;padding:clamp(16px,2.6vw,28px);background:none;border:0;color:inherit;text-align:left;cursor:pointer;font:inherit}
.nv-rm-toggle>span:first-child{display:grid;gap:4px}
.nv-rm-toggle-title{font-family:var(--font-heading);font-weight:800;font-size:clamp(22px,2.6vw,30px);color:var(--color-text-primary)}
.nv-rm-toggle-hint{color:var(--color-text-secondary);font-size:15px}
.nv-rm-toggle-action{flex:none;padding:10px 16px;border:1px solid var(--color-border);border-radius:999px;font-weight:600;font-size:14px;color:var(--color-text-primary)}
.nv-rm--panel>div{padding:0 clamp(16px,2.6vw,28px) clamp(16px,2.6vw,28px)}
.nv-rm-body{display:grid;gap:24px}
.nv-rm-q{margin:0;font-family:var(--font-heading);font-weight:800;font-size:clamp(24px,3vw,36px);line-height:1.08;color:var(--color-text-primary)}
.nv-rm-sub{margin:6px 0 0;color:var(--color-text-secondary)}
.nv-rm-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.nv-rm-chip{display:grid;gap:2px;text-align:left;font:600 15px var(--font-body,inherit);color:var(--color-text-primary);background:color-mix(in srgb,var(--color-text-primary) 7%,transparent);border:1.5px solid color-mix(in srgb,var(--color-text-secondary) 55%,transparent);border-radius:12px;padding:12px 16px;min-height:52px;cursor:pointer;box-shadow:0 2px 0 color-mix(in srgb,var(--color-text-primary) 10%,transparent);transition:border-color .15s,background-color .15s,transform .15s}
.nv-rm-chip small{font-weight:400;font-size:12.5px;color:var(--color-text-secondary)}
.nv-rm-chip:hover{border-color:var(--color-text-primary);background:color-mix(in srgb,var(--color-text-primary) 12%,transparent);transform:translateY(-1px)}
.nv-rm-chip[aria-pressed="true"]{border-color:var(--color-primary);background:color-mix(in srgb,var(--color-primary) 16%,transparent);box-shadow:inset 0 0 0 1px var(--color-primary)}
@media (prefers-reduced-motion:reduce){.nv-rm-chip{transition:none}.nv-rm-chip:hover{transform:none}}
.nv-rm-chip:focus-visible,.nv-rm-cta:focus-visible,.nv-rm-toggle:focus-visible{outline:2px solid var(--color-secondary);outline-offset:3px}
.nv-rm-mapsec{display:grid;gap:12px;border-top:1px solid var(--color-border);padding-top:20px}
.nv-rm-maphead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:10px}
.nv-rm-maptitle{margin:0;font-family:var(--font-heading);font-weight:700;font-size:clamp(18px,2vw,24px);color:var(--color-text-primary)}
.nv-rm-legend{margin:0;display:flex;flex-wrap:wrap;gap:16px;font-size:13px;color:var(--color-text-muted)}
.nv-rm-legend span{display:inline-flex;align-items:center;gap:8px}
.nv-rm-legend-hot{color:var(--color-primary)}
.nv-rm-map{margin:0;overflow-x:auto}
.nv-rm-map svg{display:block;width:100%;min-width:900px;height:auto}
.nv-rm-stage{font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em;fill:var(--color-text-muted)}
.nv-rm-rule{stroke:var(--color-border);stroke-width:1}
.nv-rm-edge{fill:none;stroke:var(--color-text-muted);stroke-opacity:.45;stroke-width:1.4}
.nv-rm-edge[data-state="hot"]{stroke:var(--color-primary);stroke-opacity:1;stroke-width:2.6}
.nv-rm-edge[data-state="dim"]{stroke-opacity:.15}
.nv-rm-head{fill:var(--color-text-muted);fill-opacity:.6}
.nv-rm-head--hot{fill:var(--color-primary);fill-opacity:1}
.nv-rm-box{fill:var(--color-background);stroke:var(--color-border);stroke-width:1.2}
.nv-rm-name{font:600 13px var(--font-body,system-ui);fill:var(--color-text-secondary)}
.nv-rm-count{font:600 10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;fill:var(--color-text-muted)}
.nv-rm-node:hover .nv-rm-box{stroke:var(--color-text-muted)}
.nv-rm-node[data-state="hot"] .nv-rm-box{stroke:var(--color-primary);stroke-width:2.4;fill:color-mix(in srgb,var(--color-primary) 10%,var(--color-background))}
.nv-rm-node[data-state="hot"] .nv-rm-name{fill:var(--color-text-primary)}
.nv-rm-node[data-state="dim"]{opacity:.3}
.nv-rm-badge circle{fill:var(--color-primary)}
.nv-rm-badge text{font:800 12px var(--font-body,system-ui);fill:var(--color-background)}
.nv-rm-step{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--color-primary);color:var(--color-background);font-weight:800;font-size:12px}
.nv-rm-foot{display:flex;flex-wrap:wrap;gap:14px 20px;align-items:center;justify-content:space-between}
.nv-rm-steps{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:15px;color:var(--color-text-secondary)}
.nv-rm-steps b{color:var(--color-text-primary)}
.nv-rm-steps a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.nv-rm-cta{display:inline-flex;align-items:center;gap:10px;min-height:50px;padding:0 22px;border-radius:12px;background:var(--color-primary);color:var(--color-background);font-weight:700;font-size:16px;text-decoration:none}
.nv-rm-wait{margin:0;color:var(--color-text-muted)}
.nv-rm-zonewrap,.nv-rm-legend-zone{--zc:var(--color-primary)}
.nv-rm-zonewrap[data-free],.nv-rm-legend-zone[data-free],.nv-rm-mgroup[data-free]{--zc:var(--color-secondary)}
.nv-rm-zone{fill:color-mix(in srgb,var(--zc,var(--color-primary)) 7%,transparent);stroke:color-mix(in srgb,var(--zc,var(--color-primary)) 60%,transparent);stroke-width:1.2;stroke-dasharray:5 4}
.nv-rm-zonetag{font:600 9px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;fill:var(--zc);opacity:.8}
.nv-rm-zonelabel{font:700 9.5px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em;fill:var(--zc)}
.nv-rm-zonelink:hover .nv-rm-zonelabel,.nv-rm-zonelink:focus-visible .nv-rm-zonelabel{text-decoration:underline}
.nv-rm-zonewrap[data-state="dim"]{opacity:.35}
.nv-rm-legend-zone{color:var(--zc)}
.nv-rm-live{flex-basis:100%;margin:0;color:var(--color-text-secondary);font-size:15px}
.nv-rm-live a{color:var(--color-primary);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.nv-rm-m{display:none}
@media (max-width:820px){
.nv-rm-maphead,.nv-rm-foot{display:none}
.nv-rm-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.nv-rm-chip{padding:10px 12px;min-height:0;font-size:14px}
.nv-rm-chip small{font-size:11.5px}
.nv-rm-m{display:grid;gap:14px}
.nv-rm-mroute{display:grid;gap:12px}
.nv-rm-mhead{margin:0;font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--color-text-muted)}
.nv-rm-mroute ol{margin:0;padding:0;list-style:none;display:grid;gap:0}
.nv-rm-mroute li{display:grid;grid-template-columns:24px 1fr;gap:12px;position:relative;padding-bottom:14px}
.nv-rm-mroute li:not(:last-child)::before{content:"";position:absolute;left:11px;top:26px;bottom:2px;width:2px;background:color-mix(in srgb,var(--color-primary) 45%,transparent)}
.nv-rm-mroute li a{display:grid;gap:2px;color:inherit;text-decoration:none}
.nv-rm-mroute b{color:var(--color-text-primary);font-weight:600}
.nv-rm-mroute small,.nv-rm-mgroup small{color:var(--color-text-muted);font-size:12.5px}
.nv-rm-mroute .nv-rm-cta{justify-content:center}
.nv-rm-mall{border:1px solid var(--color-border);border-radius:12px}
.nv-rm-mall summary{cursor:pointer;padding:14px 16px;font-weight:600;color:var(--color-text-primary)}
.nv-rm-mall[open] summary{border-bottom:1px solid var(--color-border)}
.nv-rm-mgroup{--zc:var(--color-primary);padding:12px 16px;display:grid;gap:8px}
.nv-rm-mgroup+.nv-rm-mgroup{border-top:1px solid var(--color-border)}
.nv-rm-mgrouphead{margin:0;display:grid;gap:2px;font-weight:700;font-size:14px;color:var(--zc);text-decoration:none}
p.nv-rm-mgrouphead{color:var(--color-text-secondary)}
.nv-rm-mgrouphead span{font:600 10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;opacity:.85}
.nv-rm-mgroup ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.nv-rm-mgroup li a{display:flex;justify-content:space-between;gap:10px;padding:8px 0;color:inherit;text-decoration:none;border-bottom:1px dashed color-mix(in srgb,var(--color-border) 70%,transparent)}
.nv-rm-mgroup li:last-child a{border-bottom:0}
.nv-rm-mgroup b{color:var(--color-text-primary);font-weight:500}
.nv-rm-mgroup li[data-state="hot"] b{color:var(--color-primary)}
}
@media (max-width:820px){.nv-rm-map{display:none}}
