/* "A word from Ibiza" portrait player — public port of the app's .ibz-reveal
   (materna-app app/globals.css ~4573–4647). Logical properties only, so it
   mirrors under [dir="rtl"] (Arabic). Behaviour in js/ibiza-video.js. */
.ibz-reveal {
  /* SAME gradient as materna-app .ibz-reveal — keep the two in step. */
  background: linear-gradient(135deg, #3C1848 0%, #5A2E7A 100%);
  color: #F6F1E8;
  border-radius: 16px;
  overflow: hidden;
  max-inline-size: 360px;
  margin-block-start: 24px;
  text-align: start;
}
.ibz-reveal__bar {
  all: unset;
  box-sizing: border-box;
  inline-size: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  padding-inline: 16px;
  cursor: pointer;
}
.ibz-reveal__bar:focus-visible {
  outline: 2px solid #F6F1E8;
  outline-offset: -4px;
  border-radius: 16px;
}
.ibz-reveal__dot {
  inline-size: 36px;
  block-size: 36px;
  flex: none;
  border-radius: 50%;
  background: #78489C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ibz-reveal__dot svg {
  inline-size: 12px;
  block-size: 12px;
  margin-inline-start: 2px;
}
.ibz-reveal__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}
.ibz-reveal__title {
  font-family: var(--font-heading, Georgia, serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}
.ibz-reveal__meta {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.75rem;
  opacity: 0.75;
  margin-block-start: 2px;
}
.ibz-reveal__chev {
  flex: none;
  display: inline-flex;
  transition: transform 0.2s ease;
}
.ibz-reveal[data-open="true"] .ibz-reveal__chev {
  transform: rotate(180deg);
}
.ibz-reveal__panel {
  padding-inline: 14px;
  padding-block-end: 14px;
}
.ibz-reveal video {
  display: block;
  inline-size: 100%;
  max-inline-size: 300px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border-radius: 12px;
  background: #3C1848;
}
@media (max-width: 900px) {
  .ibz-reveal {
    max-inline-size: none;
  }
}

/* Landing Meet Ibiza / trail bands: the reveal sits a touch below the card or
   section top (the service-page default is 24px under the hero text). */
.ibz-reveal.ibz-reveal--band {
  margin-block-start: 12px;
}
/* The trail gets its own band; block padding matches index.html .meet-band. */
.trail-band {
  padding: 40px 0;
}
/* One clip per page: the reveal sits in its own band just below the hero. */
.ibz-after-hero {
  padding: 24px 0 8px;
}

/* ── Tighten space below video bars (13 Oct) ─────────────────────────
   The gap under the bar was band-bottom padding + the next section's
   top padding (≈80–88px). Zero the band's bottom, keep a little above,
   and pull the next section up with an adjacent-sibling override — never
   the section's own base rule, never the hero. Target ≈24px desktop /
   20px ≤900px. .ibz-reveal has no margin-block-end, so none to zero. */
.trail-band { padding-block: 24px 0; }
.ibz-after-hero { padding-block: 16px 0; }
.trail-band + section,
.ibz-after-hero + section { padding-block-start: 24px; }
@media (max-width: 900px) {
  .trail-band + section,
  .ibz-after-hero + section { padding-block-start: 20px; }
}
/* Subscribe-page trail bar: full width of .sub-main at every width (no cap);
   30px above = the gap above the "Included in every plan" heading; 0 below. */
.ibz-reveal.ibz-reveal--subscribe {
  max-inline-size: none;
  margin-block-start: 30px;
  margin-block-end: 0;
}
/* Desktop pop-up (data-ibz-modal="desktop", >=921px): the reveal opens as a
   centred native <dialog> instead of folding. Scoped to .ibz-dialog only. */
.ibz-dialog {
  /* The global reset (*{margin:0} in design-system.css) kills the UA dialog's
     margin:auto centering, so set the centering explicitly, scoped here. */
  position: fixed;
  inset: 0;
  margin: auto;
  inline-size: fit-content;
  block-size: fit-content;
  max-inline-size: min(92vw, 440px);
  max-block-size: 92vh;
  border: none;
  padding: 12px;
  background: linear-gradient(135deg, #3C1848 0%, #5A2E7A 100%);
  border-radius: 20px;
  overflow: visible;
  color: #F6F1E8;
}
.ibz-dialog::backdrop { background: rgba(60, 24, 72, 0.6); }
.ibz-dialog video {
  display: block;
  block-size: min(80vh, 720px);
  inline-size: auto;
  aspect-ratio: 9 / 16;
  max-inline-size: 86vw;
  border-radius: 12px;
  background: #3C1848;
}
.ibz-dialog__close {
  position: absolute;
  inset-block-start: -14px;
  inset-inline-end: -14px;
  inline-size: 36px;
  block-size: 36px;
  border: none;
  border-radius: 50%;
  background: #F6F1E8;
  color: #3C1848;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ibz-dialog__close:focus-visible { outline: 2px solid #F6F1E8; outline-offset: 2px; }
/* Desktop: the band bar spans its .container (beats the base 360px cap via 2-class
   specificity); phone (<=900px) keeps the base max-inline-size:none. */
@media (min-width: 921px) {
  .trail-band .ibz-reveal,
  .ibz-after-hero .ibz-reveal { max-inline-size: none; }
}
