/* Joe Rogan Experience clips (build.py rogan_clips): the clips page, the home row (16b-rogan.html)
   and the veterans page. 9:16 videos on paper, the episode in the display serif, the quote in Inter. */
.rogan { --rogan-paper: #FAF6F0; --rogan-ink: #1A0F0A; background: var(--rogan-paper); }
.rogan--home { padding: clamp(4rem, 8vw, 7rem) 0; }
.rogan .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* The permission line: on the hero gradient, and on paper (--dark) */
.rogan-note { margin-top: 1.25rem; padding-top: 1rem; max-width: 42rem; border-top: 1px solid rgba(255, 255, 255, .35); font-size: var(--text-small); line-height: 1.5; color: rgba(255, 255, 255, .9); }
.rogan-note--dark { margin-top: 0; padding-top: 0; border-top: 0; color: var(--color-text-2); }

/* Intro on the clips page: what ibogaine is vs iboga */
.rogan__intro { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.rogan__intro .aud__head { margin-bottom: 0; }
.rogan__intro-text { display: grid; gap: .9rem; max-width: 40rem; line-height: 1.7; }
.rogan__intro-text a, .clip__context a, .rogan__feature-head a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .rogan__intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.rogan__fineprint { margin-top: 2rem; max-width: 44rem; font-size: var(--text-small); line-height: 1.55; color: var(--color-text-2); }
.rogan__cta { margin-bottom: 0; }

/* ---- Clip cards ---- */
.clips { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); align-items: start; }
.clip { display: grid; align-content: start; background: var(--color-white); border-radius: var(--r-card); box-shadow: 0 0 0 1px rgba(40, 10, 0, .06), var(--shadow-card); overflow: hidden; }
.clip__media { position: relative; aspect-ratio: 9 / 16; background: var(--rogan-ink); }
.clip__video { width: 100%; height: 100%; object-fit: cover; background: var(--rogan-ink); }
.clip__play {
  position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center;
  width: 4.25rem; height: 4.25rem; border-radius: 50%; translate: -50% -50%;
  background: rgba(255, 255, 255, .88); color: var(--color-accent);
  box-shadow: 0 10px 30px -8px rgba(26, 15, 10, .6), 0 0 0 6px rgba(255, 255, 255, .22);
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast);
}
.clip__play[hidden] { display: none; }
.clip__play svg { translate: 2px 0; }
.clip__play:hover { transform: scale(1.07); background: var(--color-white); }
.clip__play:active { transform: scale(.96); }
.clip__media[data-state="loading"]::after {   /* only while the browser waits for data (js/clips.js) */
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--color-white);
  animation: clip-spin .8s linear infinite; pointer-events: none;
}
@keyframes clip-spin { to { transform: rotate(1turn); } }
.clip__play:focus-visible, .clip__video:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; }

.clip__text { display: grid; gap: .6rem; padding: 1.25rem 1.25rem 1.5rem; }
.clip__ep { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; letter-spacing: var(--tracking-display); }
.clip__num { background: var(--gradient-fire-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clip__date { font-size: .8125rem; color: var(--color-text-3); }
.clip__quote { position: relative; margin: .25rem 0 0; padding-left: 1rem; border-left: 2px solid var(--color-ember); display: grid; gap: .55rem; font-size: .9375rem; line-height: 1.6; color: var(--color-text); }
.clip__quote footer { font-size: var(--text-small); color: var(--color-text-2); }
.clip__who { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--color-accent); }
.clip__context { font-size: var(--text-small); line-height: 1.55; color: var(--color-text-2); }

/* The clips page: one column on phones (video on top, full width, at most 80% of the screen), two, then three */
@media (min-width: 640px) { .clips--full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .clips--full { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .clips--full .clip__media, .clips--feature .clip__media { max-height: 80vh; width: 100%; } }

/* Home row: three across; on phones the shared [data-swipe] slider (Z03) with dots from js/slider.js */
.clips--compact .clip__quote { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.35; letter-spacing: -0.02em; }
@media (min-width: 769px) { .clips--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
@media (max-width: 768px) { .clips--compact[data-swipe] { grid-auto-columns: 74%; } }
.rogan__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.75rem; }
.rogan__foot .rogan-note { max-width: 38rem; }

/* Veterans page: the text beside one clip */
.rogan__feature { display: grid; gap: 2rem; align-items: center; }
.rogan__feature-head { margin-bottom: 0; }
.rogan__feature-head .rogan-note { margin-top: 1rem; }
.clips--feature .clip { max-width: 40rem; }
/* Wide card: the video column runs the full height of the card (cover), so no blank block under it */
@media (min-width: 640px) {
  .clips--feature .clip { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); align-items: stretch; }
  .clips--feature .clip__media { aspect-ratio: auto; min-height: 28.5rem; height: 100%; border-radius: var(--r-card) 0 0 var(--r-card); overflow: hidden; }
  .clips--feature .clip__video { position: absolute; inset: 0; }
  .clips--feature .clip__text { align-content: center; padding: 1.5rem; }
}
@media (min-width: 1024px) { .rogan__feature { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

/* Cory's Bwiti House video on the veterans page ("Who holds it"): the same wide card as the Dakota Meyer clip */
.rogan__cory { margin-top: clamp(2rem, 4vw, 3rem); }
.rogan__cory .clip { max-width: 44rem; }

@media (prefers-reduced-motion: reduce) { .clip__play { transition: none; } .clip__media[data-state="loading"]::after { animation-duration: 2.4s; } }

/* Book-a-call button inside a clip card (veterans: Cory). Brand fire gradient, white text. */
.clip__book { display: inline-flex; align-self: flex-start; margin-top: 1.25rem; padding: .85rem 1.5rem; border-radius: 999px; border: 0; color: #fff; font-weight: 600; text-decoration: none; background: linear-gradient(120deg, #F0CC81 0%, #EF8519 45%, #C20000 100%); box-shadow: 0 10px 24px -12px rgba(194, 0, 0, .6); transition: transform var(--duration-fast, .15s), box-shadow var(--duration-fast, .15s); }
.clip__book:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(194, 0, 0, .7); color: #fff; }
.clip__book:focus-visible { outline: 2px solid #C20000; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .clip__book, .clip__book:hover { transition: none; transform: none; } }
