/* ==========================================================================
   "Content pages" — shared pieces for Artistas, Paradas y gastronomía,
   Programa, Zona infantil, Acerca de and Colabora. Figma sources: nodes
   48:3 / 53:3 / 56:3 / 59:3 / 70:3 / 71:3 on the "Matsuri Barcelona —
   Tone & Manner" file, all undiscoverable via get_metadata like FAQ/
   Privacidad/Contacto were — user supplied the 6 direct frame links
   (2026-09-05). Unlike those 3 earlier pages (flat ink .page-intro),
   all 6 of these use a NEW intro-banner pattern: an optional background
   photo under the .photo-duotone--content gradient (tokens.css), so this
   file only covers what's actually new — content-intro, the reusable CTA
   banner, the highlight-item component, program-placeholder, filter
   pills/day tabs, and the listing card grid.
   ========================================================================== */

/* ----------------------------- Content intro ------------------------------
   template-parts/content-intro.php. Structure confirmed identical across
   all 6 pages via get_design_context: p-[80px] uniform padding, gap 24px,
   kicker + JP subtitle + H1 (fixed 48px, same override as .page-intro__title)
   + lead (width 700-760px depending on page). */
.content-intro {
  position: relative;
  color: var(--white);
}

.content-intro .photo-duotone,
.content-intro .photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.content-intro__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-block: 80px;
}

.content-intro__jp {
  font-family: var(--font-jp);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.content-intro__title {
  font-family: var(--font-sans);
  font-weight: 700; /* bold page title, per the user, 2026-11-03 */
  font-size: 3rem;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
  max-width: 820px;
}

.content-intro__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: #d1d3e0;
  max-width: 760px;
  margin: 0;
}

.content-intro__pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--amber);
}

.content-intro__pdf-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Colabora's "access" row — a single row of 5 flat text + button columns,
   now a quick-nav sitting on the Participa section's own plain/light
   background, directly below its "Cinco formas de sumarte al Matsuri"
   heading (page-colabora.php). Used to live INSIDE the dark photo/
   gradient .content-intro banner above instead (embedded via that
   template's 'after' slot) — moved out per the user, 2026-11-05
   ("Colaboraページの添付の5項目、Cinco formas de ~~の下に移動させて上部の
   タイトル部分の縦の幅を減らしたい"), both to shorten that banner and to
   put this quick-nav immediately above the detailed cards it jumps down
   to. The grid/column rules below are unchanged by the move — only the
   banner-specific color/button overrides that follow needed rework, see
   each one's own comment. (Earlier history: this row was briefly pulled
   out into its own standalone "numbered cards" section on 2026-10-29,
   then reverted back to this single-row design the same day once it
   turned out that redesign was meant for the HOMEPAGE's own Colabora
   teaser (template-parts/section-colabora.php), not this page.) */
.content-intro__access {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  /* Was margin-top: 48px, which assumed this sat right under the dark
     banner's own lead paragraph. Now it's the next sibling after
     .section-head (base.css), which already carries its own
     margin-bottom: 48px above this row — so no extra top margin is
     needed here.
     Was margin-bottom: 56px — the only thing keeping this quick-nav
     visually separate from .highlight-list's first detailed card right
     below it, back when both sat on the same --paper background in the
     same <section>. Left in place (by mistake) after the 2026-11-08
     white-band split below gave the quick-nav a whole section of its
     own — which meant this 56px was stacking ON TOP OF .participa-intro's
     own 96px bottom padding, making the white band's bottom noticeably
     taller than its top (96px) once live ("上下の余白あってないよ",
     screenshot of the live page, same day). Removed outright: the white
     band's own padding is now the ONLY thing below this row (matching
     its own top, both just .section's shared 96px), and the breathing
     room above the first photo comes entirely from .participa-cards'
     own padding-top instead (content-pages.css, right after this). */
}

.content-intro__access-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  /* Grid rows default to `align-items: stretch`, so every block in the
     same row is already the tallest-sibling height — margin-top: auto
     on the button below pins it to the bottom of that shared height
     regardless of how much title/body text sits above it. */
}

/* Small "0N —" number + rule badge on each access block, per the user,
   2026-11-08 ("下は01〜05でナンバリングしてるのに上部はナンバリングない
   のもおかしく見える") — this quick-nav's display order already matches
   highlight-item.php's own detailed cards below 1:1 (both read
   Patrocínanos/Artista/Gastronomía/Stands/Voluntariado in that order),
   so 01 here lines up with 01 "Patrocínanos" etc. Same visual language
   as that component's own .highlight-item__number-row/__number/__rule
   (thin-weight number + short rule), just sized down to fit a 1/5-width
   column instead of its 480px-wide card — a 4rem number would overpower
   this compact a block. */
.access-number-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.access-number {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
}

.access-rule {
  width: 28px;
  height: 2px;
  background: var(--ink);
  flex-shrink: 0;
}

/* The Participa quick-nav and its detailed highlight-list cards used to
   share one <section> (and so one --paper background) — split into two
   per the user, 2026-11-08 ("この上部の5項目の背景は白背景でもいいかも"
   → clarified: "白背景はここだけでいい", i.e. ONLY the quick-nav, not the
   cards below). page-colabora.php now renders .participa-intro (kicker/
   title + .content-intro__access) and .participa-cards (.highlight-list)
   as two sibling <section class="section">s.
   Padding went through a few passes with the user before landing here:
   first tried tightening .participa-intro's own bottom padding (96px →
   32px) so the white band wouldn't carry a lot of empty white space of
   its own, which then read as lopsided against its unchanged 96px top
   ("白背景の下の余白がなさすぎる。上と合わせて自然に見えるようにして") —
   so .participa-intro now keeps .section's shared 96px/96px symmetric
   padding unchanged, and .participa-cards instead adds its own 64px top
   padding so the first photo doesn't sit flush against the white band's
   bottom edge (originally 0, which read as too abrupt — "01の写真の上の
   余白が全くないから取ってほしい"). */
.participa-intro {
  background: var(--white);
}

.participa-cards {
  padding-top: 64px;
}

/* h3's own default color (base.css — no color set, so it just inherits
   the page's normal dark ink text color) and .body-sm's own default
   color (var(--ink-65), base.css) both already read correctly on this
   row's new plain/light background, so neither needs a color override
   any more. Before the 2026-11-05 move out of the dark photo banner,
   this block force-set h3 to var(--white) and p to a light grey
   (#d1d3e0, matching .content-intro__lead) — removed along with the
   move; kept here as a note in case this component ever moves back onto
   a dark background and needs that pair restored. */
.content-intro__access-block h3 {
  margin: 0;
}

/* min-height: 76px (and white-space: normal, for a label that could wrap
   to 2 lines) was needed back when these buttons carried date-gated
   labels of very different lengths, e.g. "Patrocínanos (Noviembre)" vs
   "Voluntariado". Now every button says the same short "Ver más →" (see
   page-colabora.php) — it never wraps, so that extra height just left a
   lot of empty padding inside the button (reported by the user,
   2026-10-29). Sized naturally now, same as .btn's own default padding;
   width: 100% still keeps all 5 the same WIDTH (their own column's). */
.content-intro__access-block .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* Was a pair of dark-photo legibility fixes for 'btn--outline' (flipped
   to a solid white pill) and 'btn--ink' (a faint light ring so its edges
   didn't disappear into the banner photo's darkest gradient band) — both
   removed along with the 2026-11-05 move onto this row's new plain/light
   background, where every .btn variant (including the ink/vermillion/
   amber mix actually used here, per $access_defaults in
   page-colabora.php) already reads correctly with its normal, unmodified
   styles (base.css). */

@media (max-width: 900px) {
  .content-intro__access {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-intro__access-block {
    align-items: stretch;
  }
}

@media (max-width: 782px) {
  .content-intro__inner {
    padding-block: 56px;
    gap: 18px;
  }

  .content-intro__title {
    font-size: 2.25rem;
  }

  /* On SP the intro banner (kicker + JP subtitle + title + lead — on
     Colabora this also used to include the 5-item access row, before it
     moved out to sit above the Participa section instead, 2026-11-05;
     see .content-intro__access's own comment above) got very tall once
     the lead paragraph was included too — per the user, 2026-10-29.
     Dropping just the lead on SP keeps the banner itself (and what it
     promises) short, while the full explanation is still readable in the
     page body below; kicker/JP subtitle/title stay as the compact
     identity for the page. */
  .content-intro__lead {
    display: none;
  }
}

/* -------------------------------- CTA banner -------------------------------
   template-parts/cta-banner.php. Reused by Artistas/Paradas/Acerca de's
   closing CTAs — identical structure, only copy + vertical padding differ
   (Artistas: py-110; Paradas & Acerca de: py-80 — set via a modifier). */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: 110px;
  max-width: 640px;
  margin-inline: auto;
}

.cta-banner--compact .cta-banner__inner {
  padding-block: 80px;
}

.cta-banner__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  color: var(--white);
  margin: 0;
}

.cta-banner__body {
  font-size: 1rem;
  line-height: 1.6;
  color: #d1d3e0;
  max-width: 560px;
  margin: 0;
}

@media (max-width: 782px) {
  .cta-banner__inner,
  .cta-banner--compact .cta-banner__inner {
    padding-block: 56px;
  }
}

/* "High-energy" opt-in skin — .cta-banner--confetti, added per the user,
   2026-11-17. Same vermillion + white silhouette watermark + scattered
   confetti recipe as the homepage's Stand CTA
   (template-parts/section-stand-cta.php) and Colabora's .festival-decor,
   turned on for Acerca de and Paradas's closing CTAs (reviewed first as
   acerca_cta_mock.html). Artistas keeps the plain ink banner above —
   this modifier only applies where the page passes 'confetti' => true. */
.cta-banner--confetti {
  background: var(--vermillion);
  position: relative;
  overflow: hidden;
}

.cta-banner--confetti .cta-banner__inner {
  position: relative;
  z-index: 1;
}

.cta-banner--confetti .kicker {
  /* Base .kicker is always vermillion (base.css) — invisible against
     this section's own vermillion background without this override,
     same fix as .stand-cta--confetti .kicker. */
  color: rgba(255, 255, 255, 0.8);
}

/* Bold heading, per the user, 2026-11-17 ("TOPページみたいに") — matches
   the homepage's own bold-H2 convention (front-page.css's homepage-only
   ".h2{font-weight:700}", 2026-11-03), which is why the Stand CTA's
   heading already reads bold there. cta-banner__title isn't a .h2 and
   this page isn't the homepage, so it stays Light (300, base.css) by
   default — scoped to just this confetti variant rather than bolding
   every cta-banner (Artistas' plain ink one wasn't part of this ask). */
.cta-banner--confetti .cta-banner__title {
  font-weight: 700;
}

.cta-banner--confetti .cta-banner__body {
  color: rgba(255, 255, 255, 0.88);
}

/* Disabled-ticket-button convention (base.css, "A disabled ticket CTA…")
   — override a color modifier's bg/fg directly rather than stacking
   another custom-property layer, so this wins over .btn--vermillion's
   red-on-red regardless of class order. */
.cta-banner--confetti .btn--vermillion {
  background: var(--white);
  color: var(--vermillion);
}

.cta-banner--confetti .btn--vermillion:hover {
  background: var(--paper);
  color: var(--vermillion);
}

.cta-banner__watermark {
  position: absolute;
  right: -120px;
  top: -60px;
  width: 340px;
  height: 340px;
  opacity: 0.16;
  transform: rotate(8deg);
  pointer-events: none;
}

.cta-banner__watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner .confetti {
  position: absolute;
  border-radius: 1px;
  pointer-events: none;
}

@media (max-width: 782px) {
  .cta-banner__watermark {
    right: -70px;
    top: -30px;
    width: 190px;
    height: 190px;
    opacity: 0.14;
  }
}

/* ------------------------------ Highlight item ------------------------------
   template-parts/highlight-item.php ("Component — Highlight item", Figma
   master 64:81). Vertical rotated label strip + number/title/body text +
   photo (or gradient placeholder) — order flips via .highlight-item--reverse. */
.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.highlight-item {
  display: flex;
  align-items: stretch;
  gap: 40px;
  /* Colabora's Participa items carry #patrocinio/#voluntariado ids
     (jumped to from the intro access-block buttons and the header's
     Colabora dropdown) — without this, the sticky .site-header (82px,
     layout.css) lands on top of the item's heading after the jump, since
     the browser scrolls the target flush to the very top of the viewport. */
  scroll-margin-top: 104px;
}

.highlight-item--reverse {
  flex-direction: row-reverse;
}

.highlight-item__label-strip {
  flex: 0 0 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-item__label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  transform: rotate(-90deg);
  font-size: 0.8125rem;
}

.highlight-item__label-prefix {
  color: #4a453d;
  font-weight: 400;
}

.highlight-item__label-brand {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.highlight-item__text {
  flex: 0 0 480px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: center;
}

.highlight-item__number-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.highlight-item__number {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 4rem;
  line-height: 1;
  color: var(--ink);
}

.highlight-item__rule {
  width: 48px;
  height: 2px;
  background: var(--ink);
  flex-shrink: 0;
}

.highlight-item__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  max-width: 460px;
}

.highlight-item__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4a453d;
  max-width: 460px;
  margin: 0;
}

/* Figma's original fixed width for the CTA button on Colabora's
   Participa items (280px, e.g. 84:467/84:481/84:495) — auto-width
   before. Also used harmlessly by Zona infantil/Acerca de's own
   highlight-item callers, none of which currently pass a btn_label.
   Once this section grew to 5 items (per the user, 2026-10-28) with
   longer live labels ("Solicita participar →" / "Solicita tu puesto →" /
   "Solicita tu stand →") plus the two gated/disabled ones' much longer
   "(Noviembre)"/"(Abril)" labels ("Solicitar dossier de patrocinio
   (Noviembre)" / "Inscríbete como voluntario/a (Abril)"), a single fixed
   280px no longer fit every label, and splitting live buttons (280px)
   from disabled ones (360px) left the page visibly inconsistent even
   though these buttons aren't side-by-side (reported by the user,
   2026-10-28). 360px comfortably fits the longest label here,
   "Solicitar dossier de patrocinio (Noviembre)" (measured ~347px in
   Outfit 600), so every button in this section now shares that one
   width — `white-space: normal` + `text-align: center` apply to all of
   them, not just the disabled ones, and `min(…, 100%)` keeps this from
   overflowing on very narrow screens, where it falls back to full-width
   + wrapped text. */
.highlight-item__text .btn {
  width: min(360px, 100%);
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* Participa's white "Voluntariado" CTA (84:495) needs a solid 1.5px ink
   border here — a separate instance from the intro banner's borderless
   .btn--white-plain button, and this section isn't .section--ink (so the
   base.css dark-section override doesn't apply), so it needs its own
   scoped override. */
.highlight-item__text .btn--outline {
  background: var(--white);
  border-width: 1.5px;
  border-color: var(--ink);
  color: var(--ink);
}

.highlight-item__text .btn--outline:hover {
  background: var(--paper);
  border-color: var(--ink);
}

/* Bug found 2026-10-28: Participa's Voluntariado CTA (the only button in
   the theme combining a 2-class scoped color override like the one above
   with the disabled state) was rendering as a plain white/ink-bordered
   button even while disabled, instead of base.css's grey "off" look —
   visible once Voluntariado's date gate actually kicked in. Cause:
   .highlight-item__text .btn--outline above and base.css's .btn[disabled]
   are the SAME specificity (0,2,0 — two classes vs. one class + one
   attribute), and this file loads after base.css, so this rule was
   silently winning the tie and overriding the grey back to white. This
   selector (0,3,0) outranks both outright, regardless of file order. */
.highlight-item__text .btn--outline[disabled] {
  background: #857f74;
  border-color: transparent;
  color: var(--paper);
}

.highlight-item__photo {
  flex: 1 1 0%;
  min-height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.highlight-item__photo .photo-placeholder,
.highlight-item__photo .photo-duotone {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

@media (max-width: 1000px) {
  .highlight-item,
  .highlight-item--reverse {
    flex-direction: column;
  }

  .highlight-item__label-strip {
    display: none;
  }

  .highlight-item__text {
    flex: 1 1 auto;
    max-width: none;
  }

  .highlight-item__photo {
    min-height: 240px;
  }

  .highlight-item__photo .photo-placeholder,
  .highlight-item__photo .photo-duotone {
    min-height: 240px;
  }
}

@media (max-width: 782px) {
  .highlight-list {
    gap: 40px;
  }

  .highlight-item__title {
    font-size: 1.5rem;
  }
}

/* --------------------------- Program placeholder ----------------------------
   template-parts/program-placeholder.php. A decorative "coming soon" card:
   dark gradient bg, giant low-opacity kanji watermark, a hand-built CSS
   approximation of Figma's kite/pinwheel vector motif (the real SVG assets
   can't be downloaded in this sandbox — same egress-blocked precedent as
   the header logo mark), tag chip + caption text bottom-left. Reused by
   Programa's "Section — Schedule" (kanji 踊, width 640px) and Zona
   infantil's "Section — Programa Kids" (kanji 遊, full width). */
.program-placeholder {
  position: relative;
  width: 100%;
  max-width: var(--pp-width, 640px);
  /* Figma has BOTH the 640px-wide Programa card and the full-width Zona
     infantil card fixed at exactly 810px tall — it is not derived from
     width, so an aspect-ratio here (as this used to be, 640/810) makes the
     full-width instance balloon to ~1620px tall on a ~1280px container.
     An explicit height, overridable per-instance via --pp-height, matches
     Figma exactly for both callers. */
  height: var(--pp-height, 810px);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(206, 134, 29, 0.45);
  /* 2nd stop was #331714 (a custom warm dark brown, not tied to any
     token) until 2026-10-29 — swapped to a near-black NAVY to match the
     site-wide blue-leaning duotone/gradient update, see tokens.css's
     .photo-duotone::after for the full reasoning. */
  background: linear-gradient(165deg, #221c43 0%, #0d0a1a 80%);
  overflow: hidden;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .program-placeholder {
    height: var(--pp-height-mobile, 420px);
  }
}

.program-placeholder__kanji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: var(--pp-kanji-size, 28.75rem);
  line-height: 1;
  color: rgba(206, 134, 29, 0.14);
  user-select: none;
  overflow: hidden;
}

/* Hand-built approximation of Figma's kite/pinwheel decorative motif —
   4 diamond "petals" around a center point + a thin hanging string. Not
   pixel-accurate to the original vector (which couldn't be exported), but
   reads the same at a glance and this is purely decorative filler, not
   content. */
.program-placeholder__motif {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 130px;
  height: 130px;
  transform: translateX(-50%);
}

.program-placeholder__motif::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--amber) 49%, transparent 51%) top left / 50% 50% no-repeat,
    linear-gradient(-135deg, var(--vermillion) 49%, transparent 51%) top right / 50% 50% no-repeat,
    linear-gradient(45deg, var(--vermillion) 49%, transparent 51%) bottom left / 50% 50% no-repeat,
    linear-gradient(-45deg, var(--amber) 49%, transparent 51%) bottom right / 50% 50% no-repeat;
  border-radius: 50%;
  opacity: 0.9;
}

.program-placeholder__motif::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 3px;
  height: 90px;
  background: rgba(244, 239, 225, 0.32);
  transform: translateX(-50%);
}

.program-placeholder__tag {
  position: absolute;
  top: 24px;
  left: 24px;
}

.program-placeholder__text {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
}

.program-placeholder__title {
  font-size: 1.6875rem;
  font-weight: 500;
  color: #f4efe1;
  margin: 0 0 4px;
}

.program-placeholder__caption {
  font-size: 1rem;
  color: rgba(244, 239, 225, 0.75);
  margin: 0;
}

/* Pill chip — shared by "PRÓXIMAMENTE" tags and the filter/day pills below. */
.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----------------------------- Day tabs / filters ----------------------------
   Shared pill-tab look for Programa's "Day tabs" (56:38) and the Artistas/
   Paradas filter pills (48:37 / 53:37) — same geometry, different states
   (day-tabs: link/current; filter-pills: JS-toggled data-active). */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill-tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 28, 67, 0.18);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.pill-tab.is-active,
.pill-tab[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 28, 67, 0.18);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* -------------------------------- Listing grid -------------------------------
   "Component — Card (foto + título + meta + link)" (Figma master 52:54),
   backing both the Artistas and Paradas card grids. */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.listing-card {
  position: relative;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
}

.listing-card__photo {
  position: absolute;
  inset: 0;
}

.listing-card__photo img,
.listing-card__photo .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to top, rgba(34, 28, 67, 0.85) 0%, rgba(34, 28, 67, 0) 100%);
}

.listing-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.listing-card__body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-card__name {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  margin: 0;
}

.listing-card__meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.listing-card__link {
  align-self: flex-end;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--amber);
}

.listing-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* "Card — Coming soon" variant (Artistas only — Paradas ships an
   empty-state message instead, see .listing-empty below). */
.listing-card--coming-soon {
  /* Same #331714→#0d0a1a swap as program-placeholder above, same day —
     see tokens.css's .photo-duotone::after for the full reasoning. */
  background: linear-gradient(167deg, #221c43 0%, #0d0a1a 80%);
  border: 1.5px dashed rgba(206, 134, 29, 0.45);
  display: flex;
  align-items: flex-end;
}

.listing-card--coming-soon .listing-card__kanji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 6.5rem;
  color: rgba(206, 134, 29, 0.14);
  user-select: none;
}

.listing-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 64px 24px;
  border: 1.5px dashed rgba(34, 28, 67, 0.25);
  border-radius: var(--radius-md);
}

.listing-empty__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.listing-empty__body {
  font-size: 0.9375rem;
  color: var(--ink-65);
  max-width: 480px;
  margin: 0;
}

@media (max-width: 1100px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------- Programa — schedule + tickets --------------------- */
.programa-schedule {
  padding-top: 60px;
}

.programa-schedule .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.ticket-reminder {
  padding-block: 40px;
}

.ticket-reminder .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ticket-reminder__text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--white);
}

/* ------------------------------- Centered helpers ---------------------------- */
.section-head--center {
  align-items: center;
  text-align: center;
}

.section-stack--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.zi-juegos-intro {
  max-width: 1000px;
  margin-bottom: 48px;
}

/* -------------------------------- Stats row (Acerca de) ---------------------- */
.stats-section {
  padding-block: 60px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__number {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
}

.stat__label {
  font-size: 0.875rem;
  color: #4a453d;
}

/* ------------------------------ Partners strip (Acerca de) ------------------- */
.partners-strip {
  background: var(--ink);
  padding-block: 60px;
  text-align: center;
}

.partners-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.partners-strip__text {
  font-size: 0.9375rem;
  color: #d1d3e0;
  max-width: 900px;
  margin: 0;
}

@media (max-width: 782px) {
  .stats-row {
    justify-content: flex-start;
  }
}

/* ------------------------------ Barcelona Ondo ------------------------------
   page-barcelona-ondo.php (new page, added 2026-10-28 per the user). No
   Figma source for this one — built from this file's existing .section /
   .section-head / .kicker/.h2 pieces so it reads as part of the same
   system as the other content pages, rather than inventing a one-off
   look. Two side-by-side YouTube embeds, then an optional lyrics block
   that only renders once the "Letra" ACF field has content. */
.ondo-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.ondo-video {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ondo-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-card);
}

.ondo-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ondo-video__label {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  text-align: center;
}

@media (max-width: 782px) {
  .ondo-videos {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Subtle tint (same --ink-06 convention as base.css/solicitud.css) just
   to separate this section visually from the plain-paper video section
   above it — no Figma reference to match here, kept deliberately simple:
   a single centered column of plain text, since lyrics don't need a
   card/photo treatment. */
.ondo-lyrics-section {
  background: var(--ink-06);
}

.ondo-lyrics {
  max-width: 640px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
}

.ondo-lyrics p {
  margin: 0 0 1.4em;
}

.ondo-lyrics p:last-child {
  margin-bottom: 0;
}


/* ============================================================================
   Programa schedule — split-view (list + sticky detail panel)
   ============================================================================
   page-programa.php's Programa/Programa Kids × Sábado/Domingo timetable.
   First shipped 2026-10-30 as a simple list + modal; reworked 2026-10-31
   into this split-view after the user asked for a "trendier" UI and
   specifically asked for pattern A (left: schedule list, right: a
   sticky artist detail panel — no modal). See page-programa.php's own
   doc comment for the full interaction design, and
   assets/js/programa-schedule.js for the JS that drives it.

   Day/type tabs reuse .pill-tab's existing look (defined above, near
   .program-placeholder) — only the 2-row nav's own spacing is added
   here. */
.programa-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.program-type-tabs {
  display: flex;
  gap: 6px;
  background: var(--ink-06);
  padding: 6px;
  border-radius: var(--radius-pill);
}

.program-type-tabs .pill-tab {
  padding: 10px 24px;
  border: none;
}

.schedule-day-tabs {
  margin: 0;
}

/* ------------------------------- Split layout --------------------------------
   Single breakpoint (900px — same as .content-intro__access above) for
   collapsing 2 columns to 1. Below it, the detail panel stops being
   sticky/2nd-column and instead gets relocated by JS to sit inline right
   after whichever row is open (an accordion), so its on-screen position
   always matches its place in the chronological list — see that same JS
   file's selectItem() for why that matters (a fixed side panel can show
   any time's content without confusion, but an inline one can't
   silently "jump" to a different time while staying physically between
   two unrelated rows). */
.schedule-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.schedule-list {
  border-top: 1px solid var(--ink-10);
}

.schedule-list[hidden] {
  display: none;
}

/* Fallback row for a type+day combination with zero published items yet
   (currently: Programa Kids, both days — no seed data has been supplied
   for it). Keeps the <ul data-list> element always present in the DOM
   (see page-programa.php) so tab-switching in JS never hits a missing
   target; this just explains the empty state instead of showing nothing. */
.schedule-list__empty {
  padding: 32px 4px;
  color: var(--ink-50);
  font-size: 0.95rem;
}

.schedule-row-wrap {
  border-bottom: 1px solid var(--ink-10);
}

/* A plain reset <button>, not a link — the whole row is the click target
   that updates/opens the detail panel (see programa-schedule.js), never
   a navigation. */
.schedule-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: 18px 14px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  margin: 0;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.schedule-row:hover,
.schedule-row:focus-visible {
  background: var(--ink-04);
}

.schedule-row:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.schedule-row.is-active {
  background: var(--white);
  border-left-color: var(--vermillion);
  box-shadow: var(--shadow-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.schedule-row__time {
  flex: 0 0 auto;
  width: 58px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}

.schedule-row__text {
  flex: 1 1 auto;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-ink);
}

.schedule-row__name {
  color: var(--vermillion);
  font-weight: 600;
}

.schedule-row__chevron {
  flex: 0 0 auto;
  color: var(--ink-35);
  font-size: 0.875rem;
  align-self: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.schedule-row:hover .schedule-row__chevron,
.schedule-row.is-active .schedule-row__chevron {
  color: var(--vermillion);
}

/* On the split (desktop) layout the chevron nudges right on hover, same
   as the old modal-era row; on the mobile accordion layout below it
   rotates 90° instead when the row is the open one — see that block. */
@media (min-width: 901px) {
  .schedule-row:hover .schedule-row__chevron,
  .schedule-row:focus-visible .schedule-row__chevron {
    transform: translateX(4px);
  }
}

.programa-schedule__kids-link {
  margin: 32px 0 0;
  text-align: center;
  font-size: 0.9375rem;
}

.programa-schedule__kids-link a {
  color: var(--vermillion);
  font-weight: 600;
}

.programa-schedule__kids-link a:hover {
  text-decoration: underline;
}

/* --------------------------------- Detail panel -------------------------------
   One shared element (data-schedule-detail in page-programa.php),
   repositioned/repopulated by JS rather than rebuilt per row — see this
   file's intro comment above. Visually: a big top photo, then
   eyebrow/title/bio, optional LINK pill buttons, and the horizontal
   neighbor-programs rail. */
.schedule-detail {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}

@media (min-width: 901px) {
  .schedule-detail {
    position: sticky;
    top: 24px;
  }
}

.schedule-detail__photo-wrap {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--ink) 0%, var(--amber) 100%);
}

.schedule-detail__photo-wrap[hidden] {
  display: none;
}

.schedule-detail__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.schedule-detail__body {
  padding: 32px 36px 8px;
}

.schedule-detail__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin: 0 0 8px;
}

.schedule-detail__title {
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0 0 14px;
}

.schedule-detail__bio {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted-ink);
  margin: 0;
  white-space: pre-line;
}

.schedule-detail__bio[hidden] {
  display: none;
}

.schedule-detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 36px 0;
}

.schedule-detail__links[hidden] {
  display: none;
}

.schedule-detail__link {
  height: 36px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.schedule-detail__link:hover {
  background: var(--ink-06);
}

.schedule-detail__link::after {
  content: '↗';
  margin-left: 6px;
  font-size: 0.6875rem;
  color: var(--ink-50);
}

/* ------------------------------ Neighbor-programs rail ------------------------
   Horizontal-scroll strip of every item in the currently active list
   (not just immediate neighbors — the user asked to see "before/after"
   items via horizontal scroll, and showing the whole day is simpler to
   reason about than computing a sliding window), with the open item
   highlighted and centered on open. Edge fade via mask-image hints more
   content off-screen; the ‹ › buttons step the scroll position. */
.schedule-rail {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 18px 10px 24px;
  border-top: 1px solid var(--ink-10);
}

.schedule-rail[hidden] {
  display: none;
}

.schedule-rail__arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink-16);
  background: var(--white);
  color: var(--ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
}

.schedule-rail__arrow:hover {
  background: var(--ink-06);
}

.schedule-rail__track {
  flex: 1 1 auto;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 10px;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.schedule-rail__track::-webkit-scrollbar {
  display: none;
}

.schedule-rail-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 58px;
  scroll-snap-align: center;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  opacity: 0.55;
  transition: opacity var(--transition-fast);
}

.schedule-rail-item:hover {
  opacity: 0.85;
}

.schedule-rail-item.is-current {
  opacity: 1;
}

.schedule-rail-item__thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--ink) 0%, var(--amber) 100%);
}

.schedule-rail-item.is-current .schedule-rail-item__thumb {
  border-color: var(--vermillion);
}

.schedule-rail-item__time {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-65);
}

.schedule-rail-item.is-current .schedule-rail-item__time {
  color: var(--vermillion);
  font-weight: 700;
}

/* ------------------------------ Mobile (≤900px) -------------------------------
   The grid collapses to a single column and the detail panel stops
   being a persistent 2nd column: programa-schedule.js moves the same
   .schedule-detail element to sit right after whichever row is
   currently open (classic accordion), and removes it from the flow
   (hidden) when nothing is open. .schedule-row's chevron rotates to
   show open/closed state, matching the old accordion mockup. */
@media (max-width: 900px) {
  .schedule-split {
    display: block;
  }

  .schedule-row.is-active .schedule-row__chevron {
    transform: rotate(90deg);
  }

  .schedule-detail {
    margin: 0 0 18px;
  }

  .schedule-detail[hidden] {
    display: none;
  }

  .schedule-detail__body {
    padding: 24px 22px 4px;
  }

  .schedule-detail__title {
    font-size: 1.375rem;
  }

  .schedule-detail__links {
    padding: 18px 22px 0;
  }
}

@media (max-width: 640px) {
  .schedule-row {
    gap: 14px;
    padding: 16px 4px;
  }

  .schedule-row__time {
    width: 52px;
    font-size: 0.875rem;
  }

  .schedule-row__text {
    font-size: 0.875rem;
  }
}

/* ============================================================================
   Vendor detail modal (Stands/Paradas only) — template-parts/vendor-modal.php,
   assets/js/vendor-modal.js. Photo/name/bio/"visitar sitio web" link, plus a
   prev/next row below the card to step through every expositor. Added per
   the user, 2026-11-01; see vendor-modal.php's own doc comment for the full
   design history (photo shape/size, scroll behavior, nav layout all went
   through several rounds first, worked out against Playwright mockups
   before any of this was real markup).
   ========================================================================= */

/* The whole card becomes a modal trigger only when listing-card.php was
   given a modal_id (Stands grid only, via page-paradas.php) — Artistas'
   cards get neither this class nor the cursor/hover change. */
.listing-card--clickable {
  cursor: pointer;
}

.listing-card--clickable:hover,
.listing-card--clickable:focus-visible {
  box-shadow: var(--shadow-card-hover);
}

.listing-card--clickable:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

.vendor-modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(34, 28, 67, 0.72); /* --ink at 72% */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  z-index: 200;
}

.vendor-modal-scrim[hidden] {
  display: none;
}

.vendor-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  /* Capped so the card no longer nearly fills the screen (per the user,
     2026-11-01), but still raised back up once from an even shorter first
     pass — at a tighter cap the scrollable bio only had room for ~2-3
     lines before cutting off. */
  max-height: min(700px, calc(100vh - 140px));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* clips the photo's top corners to the card radius */
}

.vendor-modal__photo {
  position: relative;
  width: 100%;
  flex: 0 0 auto; /* fixed size — never shrinks to make room for text */
  aspect-ratio: 16 / 9;
  background: linear-gradient(175deg, #ce861d 0%, #221c43 55%, #0d0a1a 100%);
}

.vendor-modal__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vendor-modal__photo-img[hidden] {
  display: none; /* no featured image on this vendor — the gradient above shows through, same fallback as .photo-placeholder elsewhere */
}

/* .vendor-modal__body is a flex column of three parts: a fixed header
   (eyebrow + name), a scrolling middle (.vendor-modal__scroll, just the
   bio paragraph), and a fixed footer (the link button) — so the name and
   button always stay visible and only the bio itself scrolls when long,
   per the user, 2026-11-01. */
.vendor-modal__body {
  flex: 1 1 auto;
  min-height: 0; /* lets the column's own children size against it instead of the column growing past the card */
  padding: 24px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vendor-modal__header {
  flex: 0 0 auto;
}

.vendor-modal__counter {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vermillion); /* same role as .schedule-detail__eyebrow */
}

.vendor-modal__name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 0;
  line-height: 1.15;
}

.vendor-modal__scroll {
  flex: 1 1 auto;
  min-height: 0; /* without this a flex child won't scroll, it just grows past its parent */
  overflow-y: auto;
  position: relative; /* anchors the fade below to THIS box's own bottom edge, not the card's */
}

.vendor-modal__intro {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-75);
  margin: 0;
  padding-bottom: 14px;
  white-space: pre-line; /* preserves blank-line paragraph breaks from the vendor_bio textarea, same as .schedule-detail__bio */
}

/* A faint fade right where the scrollable bio meets the fixed footer below
   it — same idea as .schedule-rail__track's horizontal scroll fade above,
   a hint that there's more text below rather than a hard cut. Anchored to
   .vendor-modal__scroll itself (not the card), so it always sits at that
   boundary regardless of how far the text is scrolled. */
.vendor-modal__scroll::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background: linear-gradient(0deg, var(--white) 0%, transparent 100%);
  pointer-events: none;
}

/* Vertical padding only — .vendor-modal__footer is a child of
   .vendor-modal__body, which already sets the 32px (mobile:
   --content-pad-sp) left/right inset for the whole card. Horizontal
   padding here too would stack on top of that and push the button past
   the bio text's left edge. */
.vendor-modal__footer {
  flex: 0 0 auto;
  padding: 14px 0 28px;
}

/* .btn sets its own `display: inline-flex` directly, which — author CSS
   always beating the user-agent stylesheet's default `[hidden] {
   display: none }`, regardless of selector specificity — would otherwise
   leave this link fully visible and clickable even with the `hidden`
   attribute set (caught in testing: vendor-modal.js hides this whenever
   a vendor has no vendor_profile_url, and without this rule it stayed
   on screen anyway). Same fix shape as .schedule-detail__bio[hidden] /
   .schedule-detail__photo-wrap[hidden] above, for the same reason. */
.vendor-modal__link[hidden] {
  display: none;
}

.vendor-modal__link-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.vendor-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-card);
}

/* ---- prev/next row, below the card ---- */

.vendor-modal-nav {
  width: 100%;
  max-width: 620px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vendor-modal-nav[hidden] {
  display: none;
}

/* Chevron on top, name underneath, centered, on every breakpoint — prev
   and next are identical in shape; only which side of the row they sit on
   (justify-content: space-between above) tells them apart, same as the
   arrow direction already does. */
.vendor-modal-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  flex: 1 1 0;
  min-width: 0; /* let the name ellipsize instead of overflowing */
}

.vendor-modal-nav__arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: var(--shadow-card);
}

.vendor-modal-nav__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.vendor-modal-nav__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Truncates to one line with "…" past max-width — not a hard cap on what
   editors can type in the vendor's title field, just how much of a long
   name this one small label shows before trailing off. The full name is
   still shown in full on the card itself (.vendor-modal__name). */
.vendor-modal-nav__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

@media (max-width: 600px) {
  .vendor-modal-scrim { padding: var(--content-pad-sp); gap: 10px; }
  .vendor-modal { max-height: calc(100vh - 150px); }
  .vendor-modal__body { padding: 20px var(--content-pad-sp) 0; }
  .vendor-modal__footer { padding: 12px 0 22px; } /* same fix as desktop — no horizontal padding here, the parent already insets it */
  .vendor-modal__name { font-size: 1.5rem; }
  .vendor-modal-nav__name { max-width: 130px; }
  .vendor-modal-nav__label { display: none; } /* "anterior"/"siguiente" is redundant with the arrow direction at this size */
}
