/* ==============================================================================
   TENANT PAGES — everything under /{tenant}/: the catalogue, the preview,
   the gate (cover and open experience), the player, the offline download
   and the denied page. Mobile first: the reader is a tourist on the street
   with one hand free.

   The look is the Waveloom theme, variant AvavaStation, distilled (mode B,
   ADR-037): its tokens live in 01-foundation/tenant-tokens.css, the client's
   colours arrive through /{tenant}/theme.css, and this sheet re-expresses
   three of Station's gestures on auris's own markup, without renaming a
   class, an id or a data attribute the scripts read:

   - the band with the heavy uppercase title (.masthead), in the client's
     primary;
   - the episode row .ep (big number, uppercase title, mono length and a
     round ▶ that fills with the accent), for the list of tracks;
   - the player bar .pe-bar (a 2px rule of the accent over the accent's
     wash), for the fixed player, the notices and the download panel.

   Station's metadata voice runs through all of it: mono, small, uppercase,
   spaced. Every text colour here is a token measured for AA in both modes.
   ============================================================================== */

/* Page ------------------------------------------------------------------ */
.tenant {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.5;
}

/* Links in the body read as links by their underline as well, because a
   near-black brand gives them almost the colour of the text. */
.tenant-main a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.tenant-main a:hover {
  text-decoration-thickness: 2px;
}

/* Station's metadata voice, shared by every kicker, label and figure
   caption below. */
.masthead__kicker,
.experience__summary,
.experience__until,
.cover-tracks__module,
.cover-tracks__duration,
.card__meta dt,
.route__summary,
.route__module,
.route__duration,
.track-panel__module,
.track-panel__duration,
.cue__label,
.player__time,
.player__duration,
.player__status,
.experience__practical dt,
.tenant-footer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* The page column. Every section the main holds spans the whole width
   and passes the same three columns on to its children (subgrid), so a
   band can run edge to edge while the text keeps to the column. */
.tenant-main {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, var(--measure))
    [content-end] minmax(var(--gutter), 1fr) [full-end];
  padding-bottom: var(--space-8);
}

.tenant-main > * {
  display: grid;
  grid-column: full;
  grid-template-columns: subgrid;
  align-content: start;
}

.tenant-main > * > * {
  grid-column: content;
  min-width: 0;
}

/* Icons -------------------------------------------------------------------- */
/* The three icons of templates/tenant/partials/icon.html, drawn inline: a
   little bigger than the letters beside them and sitting on their line.
   The main strokes are currentColor; the accent parts read
   --icon-accent, which each surface below sets to a token measured for
   AA on it. By default that is the accent's text shade, 4.5:1 on the
   paper, the sheet and the wash in both modes (internal/palette). */
.tenant {
  --icon-accent: var(--accent-text);
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
}

.icon__accent-fill {
  fill: var(--icon-accent);
}

.icon__accent-stroke {
  stroke: var(--icon-accent);
}

/* The ticket's ear is drawn on the ticket itself, not on the page, so it
   has to read against currentColor (the ink). In light mode the ink is
   near black and the raw accent stands out on it; in dark mode the ink
   is the cream and the ear is cut out of it in the colour of the surface
   behind, like the perforation. --icon-surface is that surface. */
.icon--ticket {
  --icon-accent: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .icon--ticket {
    --icon-accent: var(--icon-surface, var(--paper));
  }
}

/* Header and footer ------------------------------------------------------- */
.tenant-header {
  background: var(--paper);
  border-bottom: 1px solid var(--i14);
}

/* The header and the footer are as wide as the page column plus its two
   gutters, so AurisPass and the footer's first word stand on the same
   line as the band's title, and the client's logo on its right edge.
   AurisPass on the left, the client on the right, both centred on the
   bar's height (03-components/brand.css draws the two blocks). The gap
   keeps them apart on a 320 px phone with a wide logo. */
.tenant-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: calc(var(--measure) + 2 * var(--gutter));
  min-height: 44px;
  margin: 0 auto;
  padding: var(--space-3) var(--gutter);
  color: var(--ink);
}

/* AurisPass keeps its whole width: with a tagline the client's link may
   shrink, and it is the one that gives way. */
.tenant-header__bar > .brand-lockup {
  flex: none;
}

/* The client's logo is the way to its website or its catalogue: 44 px of
   height to tap, whatever the height of the image. Its tagline takes the
   header's quiet ink. */
.tenant-header .client-logo {
  --client-logo-tagline-ink: var(--muted);
  min-height: 44px;
}

.tenant-footer {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--space-5) var(--gutter);
  border-top: 1px solid var(--i14);
  color: var(--muted);
}

.tenant-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
}

.tenant-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}

.tenant-footer p {
  margin: 0;
}

/* The band (.masthead) ----------------------------------------------------- */
/* Station's display: the title heavy, uppercase and tight, on the
   client's primary, with the brand's name over it in the mono voice and
   the place under it in serif italic. A rule of the accent closes it, so
   a near-black band still ends on the dark paper. */
.masthead {
  grid-column: full;
  display: grid;
  grid-template-columns: subgrid;
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 2px solid var(--accent);
  background: var(--band);
  color: var(--band-ink);
}

.masthead > * {
  grid-column: content;
  min-width: 0;
}

.masthead__kicker {
  margin: 0 0 var(--space-2);
  color: var(--band-accent);
}

/* The client's name over the title leads to its catalogue (/{tenant}/)
   on the preview, the cover and the open guide. It keeps the kicker's
   look: the accent of the band in the mono voice, no line at rest, so it
   reads as the label it was; the pointer and the keyboard get the line,
   and the ring is .masthead's. The catalogue is inside the visit
   cookie's Path (ADR-034), so leaving for it closes nothing. */
.tenant-main .masthead__kicker a {
  color: inherit;
  text-decoration: none;
}

.tenant-main .masthead__kicker a:hover,
.tenant-main .masthead__kicker a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.masthead__title {
  margin: 0;
  font: 800 clamp(1.9rem, 1.2rem + 3.6vw, 4rem) / 0.95 var(--font-text);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.masthead__lede {
  margin: var(--space-3) 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  font-style: italic;
}

.masthead--compact {
  padding-block: var(--space-4);
}

.masthead--compact .masthead__title {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  line-height: 1.05;
}

.masthead :focus-visible {
  outline-color: var(--band-ink);
}

/* «Descargar sin conexión ↓» on the open page: a quiet link on the
   right edge of the band, in the band's own ink (measured for AA on the
   band in both modes), underlined only under the pointer or the
   keyboard. The box is 44 px tall for the thumb. */
.tenant-main .masthead__jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  color: var(--band-ink);
  font-size: 0.9rem;
  text-decoration: none;
}

/* The link takes no row of its own (Juan, 2026-10-14): the title, the
   place and the languages keep the distances of a page without the
   download. A band that carries it leaves the subgrid for its own
   layout, so the padding re-creates the column, as the compact band
   does: the gutter, or half of what the measure leaves on a wide
   screen.
   On a phone the band is a wrapping flex column: each line takes the
   whole width, and the link goes last, at the end of the row of the
   languages, pushed to the right edge and on the line of their last
   row of chips. When the chips and the link do not fit in one row, the
   link wraps under them on the right with no gap of its own, rather
   than squeezing the chips or crossing the title: beside a title of
   two or three uppercase lines there is no room on a 320 px screen. */
.masthead:has(> .masthead__jump) {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-4);
  padding-inline: max(var(--gutter), calc((100% - var(--measure)) / 2));
}

.masthead:has(> .masthead__jump) > * {
  flex: 1 0 100%;
}

.masthead:has(> .masthead__jump) > .lang-links {
  flex: 0 1 auto;
}

.masthead:has(> .masthead__jump) > .masthead__jump {
  flex: none;
  order: 1;
  align-self: flex-end;
  margin-inline-start: auto;
}

/* On a wider screen the link has a column of its own on the right,
   spanning the band's four rows (kicker, title, place, languages) and
   centred on them, so it stands at mid-height of the band and never
   under the title. A grid rather than absolute positioning, because the
   column's width is the link's own, in any language, and the title
   wraps before it instead of running under it. The span names four rows
   because a guide without a place has three: the fourth is empty and
   takes no height. The space before it is a margin, not a column gap,
   so a band whose link is hidden keeps the whole width for the title. */
@media (min-width: 48em) {
  .masthead:has(> .masthead__jump) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .masthead:has(> .masthead__jump) > * {
    grid-column: 1;
  }

  .masthead:has(> .masthead__jump) > .masthead__jump {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin-inline-start: var(--space-5);
  }
}

.tenant-main .masthead__jump:hover,
.tenant-main .masthead__jump:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* The link follows the panel: hidden while the panel is (the offer is
   born hidden until offline-download.js decides, and stays so without
   JavaScript), and saying so once the download is kept. */
.experience:has(> #descarga[hidden]) .masthead__jump,
.masthead__jump-ready,
.experience:has([data-offline-state="ready"]:not([hidden])) .masthead__jump-offer {
  display: none;
}

.experience:has([data-offline-state="ready"]:not([hidden])) .masthead__jump-ready {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

/* On the band the offline badge's accent is the band's own accent shade,
   measured for AA on the client's primary. */
.masthead {
  --icon-accent: var(--band-accent);
}

/* The head that stays (open page) -------------------------------------- */
/* static/js/masthead.js keeps the band of the open page on screen and
   compact while the text scrolls (Juan, 2026-10-13), the technique of
   turismo-fuencaliente's header, and turns it compact with the finger
   (2026-10-14). The slot is the sticky box and keeps the band's full
   height (--masthead-full-h), so the compact band shrinks inside it and
   nothing under it moves; the part it leaves free is transparent and
   lets the pointer through. Without the script the slot is a plain
   wrapper and the band scrolls away. */
.masthead-slot {
  grid-column: full;
  display: grid;
  grid-template-columns: subgrid;
  align-content: start;
}

.masthead-slot--sticky {
  position: sticky;
  top: 0;
  z-index: 9;
  min-height: var(--masthead-full-h, auto);
  pointer-events: none;
}

.masthead-slot--sticky > .masthead {
  pointer-events: auto;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

/* The sentinel is empty and takes no room; masthead.js only reads where
   it is. */
.masthead-sentinel {
  height: 0;
}

/* A sticky offline strip («Sin conexión», «Le quedan 2 horas») already
   holds the top of the screen: the band scrolls away under it as before,
   and masthead.js does not compact a slot that is not sticky. */
.experience:has(> .offline-strip:not(.offline-strip--langs):not([hidden])) .masthead-slot--sticky {
  position: static;
  min-height: 0;
}

/* Compact: one row, the client's name and the title on the left, the
   languages and then the link down to the download on the right; the
   place is put away until the page is back at the top. One row is what
   keeps the band about 50 px tall on a phone, so an anchor or the
   download panel still fits between it and the player. The band leaves
   the subgrid for a flex row, so its padding re-creates the column: the
   gutter, or half of what the measure leaves on a wide screen. */
.masthead-slot--stuck > .masthead {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) max(var(--gutter), calc((100% - var(--measure)) / 2));
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.2);
}

.masthead-slot--stuck .masthead__lede {
  display: none;
}

/* The client's name stays on the compact band, before the title, in the
   kicker's own voice and size (Juan, 2026-10-15): it was the one word
   that said whose guide this is, and it went away on scrolling. It never
   shrinks; the title is what gives way and ends in its ellipsis. */
.masthead-slot--stuck .masthead__kicker {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--masthead-ear-gap);
  margin: 0;
  white-space: nowrap;
}

/* Below 48em the name does not always fit: beside it, three of the five
   languages of the Alhambra scroll out of sight at 390 px, and at 360
   px even a third language does, with the title already at its 5rem.
   Juan chose (2026-10-15, option 4) to keep it there only when every
   language still fits: masthead.js lays the compact band out with the
   name, measures, and leaves .masthead-slot--named on the slot if
   nothing went out of sight. Without that class the compact band of a
   phone is the one of before: the name put away, fading out and rising
   a little in the first third of the way, before the title or the chips
   reach its line. From 48em six languages, the name and the whole link
   to the download fit beside a title of some 180 px. */
@media (max-width: 47.99em) {
  .masthead-slot--stuck:not(.masthead-slot--named) .masthead__kicker {
    display: none;
  }

  .masthead-slot--moving:not(.masthead-slot--named) .masthead__kicker {
    opacity: max(0, 1 - var(--masthead-p, 0) * 3);
    transform: translateY(calc(var(--masthead-p, 0) * -8px));
  }
}

/* The AurisPass ear signs the compact band of a wide screen, before the
   client's name (Juan, 2026-10-15), from the 64em where the page takes
   its two columns; a phone has no room for it beside the languages. It
   is drawn in the band's ink, not in the kicker's accent, as the header
   draws it in its own ink, with the terracotta play of the brand. */
.masthead {
  --masthead-ear-gap: 10px;
}

.masthead__ear {
  display: none;
  color: var(--band-ink);
}

.masthead__ear .brand-mark {
  display: block;
  width: 28px;
  height: 28px;
}

@media (min-width: 64em) {
  .masthead-slot--stuck .masthead__ear {
    display: block;
  }
}

/* The link down to the download stays on the compact band (Juan,
   2026-10-14: it went away on scrolling, and that was wrong), last on
   the right and centred on the row like the chips. It keeps its 44 px
   for the thumb, but the negative margin lets it count as 36 px, the
   chips' height, so the band does not grow by it: the 4 px it overhangs
   on each side stay inside the band's own padding. */
.masthead-slot--stuck > .masthead > .masthead__jump {
  flex: none;
  align-self: center;
  justify-content: center;
  min-width: 44px;
  margin: -4px 0;
}

/* Below 40em the title, the chips and the whole text of the link do not
   fit in one row (a 375 px phone leaves the title less than its 5rem),
   so the link shrinks to its arrow or its offline badge. The text is
   only out of sight, not out of the page: it is still the link's name
   for a screen reader. A width, not a container query, because the band
   is always as wide as the screen, and 40em is the step the rest of
   this sheet already uses for a phone. The second half of the trip to
   the compact band (--late, masthead.js) already shows the link that
   way, so the arrow fades in where it is going to stay. */
@media (max-width: 39.99em) {
  .masthead-slot--stuck .masthead__jump-label,
  .masthead-slot--late .masthead__jump-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .masthead-slot--stuck .masthead__jump-arrow,
  .masthead-slot--late .masthead__jump-arrow {
    font-size: 1.25rem;
    line-height: 1;
  }
}

/* The title takes what the languages leave, but never less than a word
   or two: past that the languages scroll instead. A title that does not
   glide to the compact band (two or three lines, or wider than its
   place) takes this shape half-way, still in the open band and cut at
   the width the compact band gives it (--late-title, masthead.js), so
   it arrives already the size it keeps. */
.masthead-slot--stuck .masthead__title,
.masthead-slot--late-title .masthead__title {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead-slot--stuck .masthead__title {
  flex: 1 1 0;
  min-width: 5rem;
}

.masthead-slot--late-title .masthead__title {
  flex: none;
  justify-self: start;
  width: var(--masthead-title-w, auto);
}

/* The chips keep one row and scroll sideways when they do not fit beside
   the title, rather than wrapping into a band twice as tall. The padding
   leaves room for the focus ring, which the scrolling box would
   otherwise cut, and the negative margin keeps the chips on the column's
   edge. They stay 36 px, above the 24 px of WCAG 2.5.8, so a thumb still
   finds them. Chips in two rows, or more than the compact row shows,
   take this shape half-way (--late-langs, masthead.js), as wide as the
   compact band leaves them. */
.masthead-slot--stuck .lang-links {
  flex: 0 1 auto;
  min-width: 0;
}

.masthead-slot--late-langs .lang-links {
  max-width: var(--masthead-langs-w, none);
}

.masthead-slot--stuck .lang-links__list,
.masthead-slot--late-langs .lang-links__list {
  flex-wrap: nowrap;
  margin: -5px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tenant-main .masthead-slot--stuck .lang-links__link,
.tenant-main .masthead-slot--late-langs .lang-links__link {
  flex: none;
  min-width: 36px;
  min-height: 36px;
  padding: 0 var(--space-2);
  font-size: 0.875rem;
}

/* On a phone the compact chips show the language's code, ES, EN, IT,
   rather than its name (Juan, 2026-10-14): five names do not fit beside
   the title and the arrow on a 375 px screen, and the ones past the edge
   scrolled away with nothing to say they were there. The code is the
   chip's own language tag, upper-cased here. The name leaves the sight
   only, so it is still the link's name for a screen reader. Narrower
   chips and gaps let five codes fit at 375 px; six on a 320 px screen
   still scroll, and the arrow, which does not shrink, stays on screen.
   The step is measured, not the band's own 48em: on a small tablet six
   names do not fit beside the title and the whole link either (31 px
   went off the screen at 768 px, 1 px at 800), and from about 820 px
   they did. Since the client's name stays on the band (2026-10-15) six
   names beside it, the title and the link fit only from about 1000 px
   (one chip went out of sight at 900 px), so the codes go up to 60em. */
@media (max-width: 59.99em) {
  .masthead-slot--stuck .lang-links__name,
  .masthead-slot--late-langs .lang-links__name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .masthead-slot--stuck .lang-links__code,
  .masthead-slot--late-langs .lang-links__code {
    display: inline;
    text-transform: uppercase;
  }

  .masthead-slot--stuck .lang-links__list,
  .masthead-slot--late-langs .lang-links__list {
    gap: 4px;
  }

  /* The names left out of sight are absolute boxes: the scrolling list
     has to be their containing block, or the name of a chip scrolled
     past the edge sticks out of the page and the whole page scrolls
     sideways (61 px at 320 px when the client's name was tried on a
     phone's band, 2026-10-15). */
  .masthead-slot--stuck .lang-links__list,
  .masthead-slot--late-langs .lang-links__list {
    position: relative;
  }

  .tenant-main .masthead-slot--stuck .lang-links__link,
  .tenant-main .masthead-slot--late-langs .lang-links__link {
    min-width: 32px;
    padding: 0 6px;
  }
}

/* The compact band keeps its chips without the flag the open band shows
   (prompt 136): the code on a phone, the name on a wide screen, as the
   prompts 8 and 10 measured them. That row beside the title is measured
   to the pixel, and a flag in front of each language, even at two thirds
   of its size, pushed five codes 57 px past what the row shows at
   375 px (Italiano out of sight again) and six names 71 px past it at
   1024 px. The flags are back as soon as the band opens again. */
.masthead-slot--stuck .lang-links__link .flag,
.masthead-slot--late-langs .lang-links__link .flag {
  display: none;
}

/* On the way from open to compact (masthead.js, Juan 2026-10-14): the
   band keeps its open layout, cut at the height it has reached, while
   its client's name, title, chips and link travel with inline
   transforms (past half-way, in the --late shapes above for the pieces
   that swap). The place fades out and rises a little in the first third
   of the way, before the title or the chips reach its line, and the
   shadow of the compact band comes in with the progress. Nothing here
   transitions: the scroll is the clock. The rows keep the height of
   their content and start at the top, whatever height the band has
   reached: stretched rows (a late layout shorter than the band) or
   squeezed ones (a title cut with overflow: hidden has no minimum
   height of its own) would move the pieces away from where masthead.js
   measured them. */
.masthead-slot--moving > .masthead {
  grid-auto-rows: max-content;
  align-content: start;
  overflow: clip;
  box-shadow: 0 6px 16px rgb(0 0 0 / calc(0.2 * var(--masthead-p, 0)));
  transition: none;
}

.masthead-slot--moving .masthead__lede {
  opacity: max(0, 1 - var(--masthead-p, 0) * 3);
  transform: translateY(calc(var(--masthead-p, 0) * -8px));
}

/* On a wide screen the ear rides on the left of the client's name, out
   of the flow and as far from it as on the compact band, so the
   kicker's transform carries it to its place. It comes in over the
   second half of the way: in the first one it would stand in the band's
   margin, where it has nothing to sign. */
@media (min-width: 64em) {
  .masthead-slot--moving .masthead__kicker {
    position: relative;
  }

  .masthead-slot--moving .masthead__ear {
    display: block;
    position: absolute;
    top: 50%;
    right: 100%;
    margin-right: var(--masthead-ear-gap);
    translate: 0 -50%;
    opacity: clamp(0, var(--masthead-p, 0) * 2 - 1, 1);
  }
}

.masthead-slot--moving .masthead__kicker,
.masthead-slot--moving .masthead__title,
.masthead-slot--moving .lang-links__list,
.masthead-slot--moving .masthead__jump {
  will-change: transform;
}

/* A state applied at once (a measure, a swap halfway down the page) does
   not animate, and neither does anything for whoever asked for less
   motion. The pieces inside the band are switched off too: main.css
   gives every element a 0.01 ms transition on all its properties for
   less motion, and while a transition has not run, the size masthead.js
   reads right after a class switch is still the one from before it. The
   !important is the one way past that guard's own. */
.masthead-slot--settling > .masthead,
.masthead-slot--settling > .masthead * {
  transition-property: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .masthead-slot--sticky > .masthead {
    transition: none;
  }
}

/* What the page scrolls to (an anchor, a focused title, the panel of the
   download) lands under the compact band, not behind it. The height is
   masthead.js's measure; without the script it is not set and adds
   nothing. */
html {
  scroll-padding-top: var(--masthead-compact-h, 0px);
}

/* Languages ------------------------------------------------------------------ */
/* Station's square chips. They wrap instead of scrolling: six languages
   fit in two rows at 320 px. The one in use is filled with the accent.
   The code is only for the compact band of a phone (above). Every chip
   starts with its flag (03-components/flag.css, prompt 136), whose
   hairline keeps a white stripe apart from the accent of the chip in
   use. */
.lang-links__code {
  display: none;
}

.lang-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.tenant-main .lang-links__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: var(--band-ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.tenant-main .lang-links__link:hover {
  background: color-mix(in srgb, var(--band-ink) 12%, transparent);
}

.tenant-main .lang-links__link[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

/* Buttons ------------------------------------------------------------------ */
/* Station's two buttons: a hairline box, and the accent filled with its
   own ink. Both 44 px at least, square, without the lift of the site's
   buttons. The filled one keeps a boundary in the accent's edge shade,
   so a pale accent still shows its shape on the paper (1.4.11).
   _buttons.css fades background-color over 0.3 s and leaves color out,
   so when the mode changes with the page open the text takes the new
   ink at once while the box is still the old paper: light ink on white
   for a moment, which a screenshot or a reader caught (2026-10-12).
   Station's buttons have no motion anyway, hence no transition here. */
.tenant .btn {
  transition: none;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--i55);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.tenant .btn:hover {
  border-color: var(--accent-edge);
  transform: none;
  box-shadow: none;
}

.tenant .btn-primary {
  min-height: 48px;
  border-color: var(--accent-edge);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.tenant .btn-primary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  filter: none;
}

/* Catalogue ----------------------------------------------------------------- */
.catalog__grid {
  display: grid;
  /* min(100%, 16rem) so a 320 px screen never overflows its one column. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-6) var(--space-5);
  margin-top: var(--space-6);
}

.catalog > p {
  margin-top: var(--space-6);
}

/* Station's card: the photo, the title uppercase and a hairline under
   it that turns to the accent on hover. No box, no shadow. */
.card {
  display: flex;
  flex-direction: column;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--i14);
}

.card:hover {
  border-bottom-color: var(--accent-edge);
}

.card__cover img,
.preview__cover,
.experience__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sheet);
}

.card__body {
  padding-top: var(--space-3);
}

.card__title {
  margin: 0 0 var(--space-1);
  font: 800 1.2rem / 1.1 var(--font-text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.tenant-main .card__title a {
  color: var(--ink);
  text-decoration: none;
}

.tenant-main .card__title a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.card__zone {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
}

/* Station's counters: the figure over its mono caption. */
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: 0;
}

.card__meta div {
  display: flex;
  flex-direction: column-reverse;
}

.card__meta dt {
  color: var(--muted);
}

.card__meta dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* The languages of a card or a preview (lang-flags.html, prompt 136): a
   flag before each name, in a row that wraps between two languages and
   never between a flag and its name. */
.lang-flags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-flags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Preview ---------------------------------------------------------------- */
.preview__article {
  display: grid;
  gap: var(--space-5);
  max-width: 48rem;
  padding-top: var(--space-6);
}

.preview__intro,
.experience__intro {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

/* The call to action as Station's player bar: the accent's rule over its
   wash, the sentence and the filled button. */
.preview__start {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  padding: var(--space-5) clamp(1rem, 2.4vw, 1.75rem);
  border-top: 2px solid var(--accent);
  background: var(--accent-wash);
}

.preview__cta {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
}

.preview__back {
  margin: 0;
}

.btn-large {
  padding: var(--space-4) var(--space-5);
  font-size: 1.15rem;
  min-height: 48px;
}

/* The cover ---------------------------------------------------------------- */
.experience__cover {
  margin-top: var(--space-5);
}

@media (min-width: 40em) {
  .experience--cover .experience__cover {
    aspect-ratio: 21 / 8;
  }
}

.experience__intro {
  margin-top: var(--space-5);
}

/* «Pistas» in Station's section head, with the summary of the list
   beside it in the mono voice. */
.experience__tracks-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin: var(--space-7) 0 var(--space-4);
}

.experience__tracks-head h2 {
  margin: 0;
  font: 800 clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem) / 0.95 var(--font-text);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.experience__summary {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* The notice is what a visitor must not miss before the first ▶: the
   bar's gesture, the accent's rule over its wash, so it reads as a
   warning without looking like an error. */
.experience__notice {
  --icon-surface: var(--accent-wash);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0 0 var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 2px solid var(--accent);
  background: var(--accent-wash);
  font-weight: 500;
}

/* The ticket stands on the first line of the notice, centred on its
   1.5 line-height whatever the number of lines under it. */
.experience__notice .icon,
.offline__clock--starts .icon,
.offline__ready .icon {
  margin-top: 0.125em;
}

.experience__error {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-top: 2px solid var(--color-danger);
  background: var(--sheet);
  color: var(--color-danger);
  font-weight: 600;
}

/* The module over its group of tracks, Station's .pc-month: the label
   in the accent's text shade and a hairline that fills the row. A group
   after another one leaves room above its name. */
.cover-tracks__module {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-6) 0 var(--space-2);
  color: var(--accent-text);
  font-weight: 400;
  letter-spacing: 0.22em;
}

.cover-tracks__module::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--i14);
}

/* The rows. One column on a phone; from 48em, as many 20rem columns as
   fit, like Station's grid of episodes. */
.cover-tracks {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48em) {
  .cover-tracks {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    column-gap: var(--space-7);
  }
}

/* Station's .ep: the big number, the title uppercase, the length in the
   mono voice and the ▶ last. The title is the only column that gives
   way, so a long one wraps under itself and the ▶ stays in its line. */
.cover-tracks__item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto auto;
  grid-template-areas: "id title length play";
  align-items: center;
  gap: var(--space-3);
  min-height: 72px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--i10);
}

.cover-tracks__start {
  grid-area: play;
  margin: 0;
}

.cover-tracks__id {
  grid-area: id;
  color: var(--muted);
  font: 800 1.6rem / 1 var(--font-text);
  letter-spacing: -0.04em;
}

.cover-tracks__title {
  grid-area: title;
  font: 700 1.05rem / 1.15 var(--font-text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cover-tracks__duration {
  grid-area: length;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

/* Station's .ring-btn grown from 34 to 48 px: a ring that fills with the
   accent under the pointer, as Station's does when a row plays. The
   ring is --i55, a 4.2:1 line, so the control shows its edge. */
.cover-tracks__play {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 0 3px;
  border: 1px solid var(--i55);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
}

.cover-tracks__play:hover {
  border-color: var(--accent-edge);
  background: var(--accent);
  color: var(--accent-ink);
}

.cover-tracks__play:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.cover-tracks__id,
.route__id,
.track-panel__id,
.cue__id {
  font-variant-numeric: tabular-nums;
}

.cover-tracks__title {
  overflow-wrap: anywhere;
}

/* The listen form of a browser without JavaScript. */
.experience__listen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-4) 0;
}

.experience__listen select {
  min-height: 44px;
  padding: var(--space-2);
  font-size: 1rem;
}

/* Open experience ------------------------------------------------------------ */
/* «Disponible hasta …» under the band in the accent's text shade, on
   the right edge of the column with the stamp after it (Juan,
   2026-10-12), under the link to the download that stands on the same
   edge of the band. On a phone the date breaks in two balanced lines and
   the stamp stays beside the last one. When the end is near, the box
   takes the error colour and a rule of its own, and «queda poco» goes on
   a line of its own under the date, on the same right edge. */
.experience__until {
  display: grid;
  justify-items: end;
  gap: var(--space-1);
  margin: var(--space-4) 0 0;
  color: var(--accent-text);
  text-align: end;
}

.experience__until-date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-wrap: balance;
}

/* The stamp is the one icon on a 12 px line: at 1.25 em its two rings
   and the ear run together, at 1.5 em (18 px) they read. */
.experience__until .icon--stamp {
  width: 1.5em;
  height: 1.5em;
}

.experience__until--soon {
  padding: var(--space-2) var(--space-3);
  border-top: 2px solid var(--color-danger);
  background: var(--sheet);
  color: var(--color-danger);
  font-weight: 700;
}

.experience__text {
  max-width: 68ch;
}

.experience__text h2,
.experience__practical h2 {
  margin: var(--space-7) 0 var(--space-3);
  font: 800 1.5rem / 1.05 var(--font-text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.experience__practical {
  max-width: 68ch;
}

.experience__practical dl {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}

.experience__practical dt {
  color: var(--muted);
}

.experience__practical dd {
  margin: 0;
}

/* The route and the panels. On a phone the route sits on top and folds;
   from 64em it is a column of its own on the right, as Station keeps its
   chapters beside the episode, and it follows the reader down the page. */
.experience__body {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 64em) {
  .experience__body--route {
    grid-template-columns: minmax(0, 1fr) 21rem;
    align-items: start;
    gap: var(--space-8);
  }

  .experience__body--route .route-nav {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    /* Under the compact band of the head, which is stuck too. */
    top: calc(var(--masthead-compact-h, 0px) + var(--space-4));
  }

  .experience__body--route .experience__panels {
    grid-column: 1;
    grid-row: 1;
  }
}

/* The route: Station's .pe-chaps -------------------------------------------- */
.route {
  border-top: 2px solid var(--ink);
}

/* «Recorrido · A2 de 8», a 52 px bar the thumb can open and close. The
   triangle is the browser's own, the cue everyone already knows. */
.route__summary {
  min-height: 52px;
  padding: var(--space-3) 0;
  font-weight: 700;
  cursor: pointer;
}

.route__summary::marker {
  color: var(--muted);
}

.route__list,
.route__tracks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.route__group + .route__group {
  margin-top: var(--space-1);
}

.route__module {
  display: block;
  padding: var(--space-4) 0 var(--space-1);
  color: var(--accent-text);
  letter-spacing: 0.22em;
}

.tenant-main .route__link {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--i10);
  border-left: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
}

.tenant-main .route__link:hover {
  border-left-color: var(--i28);
}

.route__id {
  color: var(--muted);
  font: 700 0.8rem / 1 var(--font-mono);
}

.route__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.route__duration {
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* The track on screen: Station's is-on in the client's accent, a rule
   on its edge and the wash behind, and its weight, not only a colour, so
   it still reads in forced colours. */
.tenant-main .route__link[aria-current="step"] {
  border-left-color: var(--accent-edge);
  background: var(--accent-wash);
}

.route__link[aria-current="step"] .route__id,
.route__link[aria-current="step"] .route__title {
  color: var(--accent-text);
  font-weight: 800;
}

/* The bars of the Wave templates' .css-waveform beside the track that
   sounds: only while the player plays, still for whoever asked the OS
   for less motion (main.css's guard stops the animation too). */
.route__playing {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 0.8rem;
  margin-left: var(--space-2);
  vertical-align: -1px;
}

.experience:has(.player.is-playing) .route__link[aria-current="step"] .route__playing {
  display: inline-flex;
}

.route__playing span {
  width: 3px;
  height: 4px;
  background: var(--accent-edge);
  animation: route-playing 1s ease-in-out infinite;
}

.route__playing span:nth-child(2) {
  animation-delay: 0.2s;
}

.route__playing span:nth-child(3) {
  animation-delay: 0.4s;
}

.route__playing span:nth-child(4) {
  animation-delay: 0.1s;
}

@keyframes route-playing {
  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route__playing span {
    height: 0.6rem;
    animation: none;
  }
}

@media (min-width: 64em) {
  /* Beside the panel the route is always there: the summary that folds
     it on a phone has nothing to do, and it stays open even if a script
     closed it at a narrower width. track-list.js reads this display to
     tell the two layouts apart. */
  .route__summary {
    display: none;
  }

  .route::details-content {
    content-visibility: visible;
    display: block;
  }
}

/* The track panel ------------------------------------------------------- */
/* The anchor of a panel lands below the edge, not glued to it. */
.track-panel {
  scroll-margin-top: var(--space-4);
}

.track-panel__module {
  margin: 0 0 var(--space-2);
  color: var(--accent-text);
  letter-spacing: 0.22em;
}

/* Station's point head: the track is the big heading of the page. */
.track-panel__title {
  margin: 0 0 var(--space-3);
  font: 800 clamp(1.9rem, 1.3rem + 3vw, 3.5rem) / 0.95 var(--font-text);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.track-panel__id {
  color: var(--muted);
}

/* The script moves the focus here when a track is chosen by hand; the
   heading is no control, so it gets no ring, only the reading position. */
.track-panel__title:focus {
  outline: none;
}

.track-panel__place {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-5);
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-style: italic;
}

.track-panel__duration {
  color: var(--muted);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

/* Without JavaScript this holds the native <audio controls> of the
   track; with it the box is empty and takes no room. */
.track-panel__audio:has(audio) {
  margin: 0 0 var(--space-4);
}

.track-panel__audio audio {
  display: block;
  width: 100%;
}

/* The photos keep the ratio their width and height give them: no fixed
   height crops a portrait, and the box is reserved before the bytes come.
   Two side by side from the width where each is still a useful size. */
.track-panel__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
}

.track-panel__photo {
  margin: 0;
}

.track-panel__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--sheet);
}

/* The caption in Station's serif italic. */
.track-panel__photo figcaption {
  margin-top: var(--space-2);
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
}

.track-panel__text {
  max-width: 68ch;
}

.track-panel__text p,
.track-panel__text li {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.15rem);
  line-height: 1.65;
}

/* The way on from a track: «ANTERIOR» on the left and «SIGUIENTE» on
   the right (Juan, 2026-10-14), always side by side, on a phone too. The
   way back takes its own width up to a little under half the row, and
   its title wraps past that; the way on, with the author's cue, takes
   the rest. */
.track-steps {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  max-width: 68ch;
  margin: var(--space-6) 0 0;
}

.track-steps > .cue {
  flex: 1 1 0;
  min-width: 0;
}

.track-steps > .cue--previous {
  flex: 0 1 auto;
  max-width: 45%;
}

/* «SIGUIENTE»: what to do after the track, set apart from the text it
   follows by the accent's rule on its edge and the sheet behind. The
   label is written as the text says it and the capitals are the look.
   «ANTERIOR» has the same box. */
.cue {
  max-width: 68ch;
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-left: 2px solid var(--accent-edge);
  background: var(--sheet);
}

.cue__label {
  margin: 0 0 var(--space-1);
  color: var(--accent-text);
}

.cue__text {
  margin: 0 0 var(--space-2);
}

/* A flex box trims the spaces at the edges of its text runs, so the one
   between the id and «· El patio» vanished («A2· El patio»): the gap puts
   it back. */
.tenant-main .cue__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* The underline of a flex link breaks at its gap, so it only shows on
   hover; the arrow says where the link leads, with an empty alternative
   text so a screen reader does not read it as part of the name. */
.cue__link::after {
  content: "→" / "";
  color: var(--accent-text);
}

/* The way back points back, before its words. In its narrow box on a
   phone the title can take two lines, and the arrow and the id stay on
   the first one rather than in the middle of both. */
.tenant-main .cue__link--previous {
  align-items: baseline;
}

.cue__link--previous::after {
  content: none;
}

.cue__link--previous::before {
  content: "←" / "";
  color: var(--accent-text);
}

.tenant-main .cue__link:hover {
  text-decoration: underline;
}

/* The player: Station's .pe-bar ------------------------------------------- */
/* Fixed to the bottom of the screen at every width, under the thumb
   wherever the text has scrolled (design §8.6): the accent's 2px rule
   over its wash. The wash is a solid colour (theme.css works it out), so
   the text that scrolls under the bar does not show through. The
   safe-area inset keeps it above the home indicator of an iPhone. */
.player {
  --player-gap: var(--space-2);
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  padding: var(--space-2) max(var(--gutter), env(safe-area-inset-left)) calc(var(--space-2) + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-right));
  border-top: 2px solid var(--accent);
  background: var(--accent-wash);
}

/* How tall the player stands over the page, without the safe area: the
   bottom of the page is padded by this much so the last cue and the
   footer scroll out from under it. Measured in Chromium with the
   language chips, the controls and the status line: 199 px when the
   bar wraps under the buttons (narrow screens), 147 px when it fits
   beside them; each value rounds up with a few pixels to spare. */
.tenant {
  --player-height: 13rem;
}

@media (min-width: 40em) {
  .tenant {
    --player-height: 9.75rem;
  }
}

/* Only while the player is on screen: it is born hidden and the script
   shows it, so a page without JavaScript keeps its own margins. */
.tenant:has(.player:not([hidden])) {
  padding-bottom: calc(var(--player-height) + env(safe-area-inset-bottom));
}

.player__langs,
.player__controls,
.player__status {
  max-width: var(--measure);
  margin-inline: auto;
}

/* One row of square chips that scrolls sideways rather than growing the
   player: six languages would otherwise take a third of a phone. */
.player__langs {
  display: flex;
  gap: 6px;
  margin-bottom: var(--player-gap);
  overflow-x: auto;
  scrollbar-width: none;
}

.player__lang {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--i55);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
}

.player__lang[aria-pressed="true"] {
  border-color: var(--accent-edge);
  background: var(--accent);
  color: var(--accent-ink);
}

/* The buttons first and the bar after them; when the bar has no room for
   a useful width (under 10rem) it wraps to a row of its own with the
   times, instead of shrinking the targets. */
.player__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--player-gap);
}

/* Station's .pe-skip is bare 12 px text; here each one is a 48 px box
   with its glyph in the mono voice. */
.player__btn {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--i55);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 400 0.85rem / 1 var(--font-mono);
  cursor: pointer;
}

.player__btn:hover {
  border-color: var(--accent-edge);
}

/* Station's .pe-play: the round button filled with the accent. */
.player__btn--toggle {
  flex-basis: 56px;
  width: 56px;
  height: 56px;
  border-color: var(--accent-edge);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 400 1.2rem / 1 var(--font-text);
}

.player__btn--toggle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* The script disables «previous» on the first track and «next» on the
   last. */
.player__btn:disabled,
.player__btn:disabled:hover {
  border-color: var(--i28);
  opacity: 0.45;
  cursor: default;
}

.player__btn:focus-visible,
.player__lang:focus-visible,
.player__track:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* One icon at a time: the play glyph until it plays, the pause glyph while
   it does; the state class is set by audio-player.js. */
.player__icon--pause,
.player.is-playing .player__icon--play {
  display: none;
}

.player.is-playing .player__icon--pause {
  display: inline;
}

/* Station's progress without its waveform (auris has no peaks per
   track): a thin rail, the heard part in the accent and a 2 px head. The
   box is 44 px tall so the finger has room; the rail is its middle. */
.player__track {
  position: relative;
  flex: 1 1 10rem;
  height: 44px;
  /* No page scrolling from a finger on the bar: the drag is the seek. */
  touch-action: none;
  cursor: pointer;
}

.player__track::before {
  content: "";
  position: absolute;
  inset: 20px 0;
  background: var(--i20);
}

/* audio-player.js sets the width in percent through element.style. */
.player__fill {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  display: block;
  width: 0;
  background: var(--accent-edge);
}

.player__fill::after {
  content: "";
  position: absolute;
  top: -12px;
  right: -1px;
  bottom: -12px;
  width: 2px;
  background: var(--accent-edge);
}

.player__time,
.player__duration {
  flex: 0 0 auto;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.player__time::after {
  content: " /";
}

/* «Reproduciendo A2 · …» on one line: the full text is for the screen
   reader, the eye only needs the start of it. */
.player__status {
  min-height: 1.4em;
  margin-top: var(--space-1);
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Denied and 404 --------------------------------------------------------- */
.denied {
  padding-block: clamp(1.75rem, 5vw, 3.5rem) 0;
}

.denied > * {
  max-width: 62ch;
}

.denied h1 {
  margin: 0 0 var(--space-4);
  padding-top: var(--space-4);
  border-top: 2px solid var(--ink);
  font: 800 clamp(1.75rem, 1.2rem + 3vw, 3rem) / 1 var(--font-text);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.denied p {
  margin: 0 0 var(--space-4);
  font-size: 1.05rem;
}

.denied__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.denied__code code {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--i28);
  border-radius: var(--radius);
  background: var(--sheet);
  font: 400 1rem / 1.3 var(--font-mono);
  user-select: all;
}

/* -------------------------------------------------------------------------
   Offline download (ADR-036): the panel #descarga and the strips of a
   downloaded page, as the offline mockup draws them. Every state is a
   block the script shows with hidden; nothing here sets display on them,
   so hidden always wins.
   ------------------------------------------------------------------------- */

/* The bar's gesture again: the accent's rule over its wash. */
.offline {
  --icon-surface: var(--accent-wash);
  margin: var(--space-5) 0 0;
  padding: var(--space-5) clamp(1rem, 2.4vw, 1.75rem);
  border-top: 2px solid var(--accent);
  background: var(--accent-wash);
}

/* Where a jump to the panel lands (the link under the title, the swap of
   «Descargar», a plain #descarga without JavaScript): a little below the
   compact band, and clear of the player stuck to the bottom. The band
   never steps aside (Juan, 2026-10-13), and html's scroll-padding-top
   already keeps its height free, as it does for the track anchors; this
   margin only adds the breath under it. */
#descarga {
  scroll-margin-top: var(--space-4);
  scroll-margin-bottom: calc(var(--player-height) + env(safe-area-inset-bottom));
}

/* The panel fits whole between the band and the player, so the visitor
   who jumped to it sees every part of it without hunting under the
   player. On a short phone it first gives up its air (a 667 px screen
   then holds it with room to spare); on the shortest ones (320 x 568,
   where the player alone takes a third of the screen) what is still too
   tall scrolls inside the panel, with the title and the download button
   on top in sight. Scroll chaining stays on: a swipe past its end moves
   the page, so the panel never traps the thumb. */
#descarga {
  /* What the player takes at the bottom: nothing on the cover, where it
     is not on screen yet, so the panel there keeps the whole height. */
  --panel-player-room: 0px;
  max-height: calc(100dvh - var(--masthead-compact-h, 0px) - var(--panel-player-room) - 2 * var(--space-4));
  overflow-y: auto;
}

.tenant:has(.player:not([hidden])) #descarga {
  --panel-player-room: calc(var(--player-height) + env(safe-area-inset-bottom));
}

@media (max-height: 44rem) {
  #descarga {
    padding-block: var(--space-4);
  }

  #descarga .offline__title {
    margin-bottom: var(--space-2);
  }

  #descarga .offline__state > * + * {
    margin-top: var(--space-2);
  }

  #descarga .offline__download {
    min-height: 48px;
  }
}

.offline__title {
  margin: 0 0 var(--space-3);
  font: 800 1.35rem / 1.1 var(--font-text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.offline__title:focus {
  outline: none;
}

/* One rhythm between the blocks of a state, whatever their tags: the
   paragraphs lose their own margins first, so the rule after wins. */
.offline__state > * {
  margin: 0;
}

.offline__state > * + * {
  margin-top: var(--space-3);
}

.offline__form {
  margin: 0;
}

/* The download button the width of the panel on a phone: it is the one
   thing the panel asks for. */
.offline__download {
  width: 100%;
  min-height: 56px;
  font-size: 1.05rem;
}

@media (min-width: 40em) {
  .offline__download {
    width: auto;
    min-width: 18rem;
  }
}

.offline__summary,
.offline__clock {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* The flag of the language offered before the sentence that names it,
   on the first line, with the text wrapping beside it (prompt 136). */
.offline__summary {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.offline__summary .flag {
  margin-top: 0.2em;
}

.offline__note {
  color: var(--muted);
  font-size: 0.95rem;
}

.offline__error {
  color: var(--color-danger);
  font-weight: 600;
}

/* The native <progress> drawn as the player's rail: the grey scale for
   the rest, the accent for what has come down. A screen reader still
   announces it as a progress bar. */
.offline__progress {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 0;
  background: var(--i20);
  appearance: none;
}

.offline__progress::-webkit-progress-bar {
  background: var(--i20);
}

.offline__progress::-webkit-progress-value {
  background: var(--accent-edge);
}

.offline__progress::-moz-progress-bar {
  background: var(--accent-edge);
}

.offline__ready {
  font-weight: 700;
  font-size: 1.1rem;
}

/* A line with its icon in front: the icon on the first line, the text
   wrapping beside it and never under it. */
.offline__clock--starts,
.offline__ready,
.offline-strip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

/* The link to copy in an in-app browser breaks anywhere: it is 60
   characters without a space and must not push the page sideways. */
.offline__share {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
}

.offline__share code {
  justify-self: stretch;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--i28);
  border-radius: var(--radius);
  background: var(--paper);
  font: 400 0.9rem / 1.3 var(--font-mono);
  overflow-wrap: anywhere;
  user-select: all;
}

/* The strips at the top of a downloaded page: the state of the page, so
   they stay on screen while it scrolls. Without network an ink band;
   with the hours running out, the accent with its own ink. */
.offline-strip {
  --icon-accent: currentColor;
  grid-column: full;
  position: sticky;
  top: 0;
  z-index: 11;
  margin: 0;
  padding: var(--space-3) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.offline-strip--soon {
  background: var(--accent);
  color: var(--accent-ink);
}

.offline-strip--langs {
  position: static;
  background: var(--sheet);
  color: var(--ink);
  font-weight: 500;
}

/* A language switched off without network still reads as a choice that
   exists, only unavailable. */
.player__lang:disabled,
.lang-links__link[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
