/* =========================================================================
   Voices Custom Post Type — Front-End Styles
   ========================================================================= */

:root {
  --voices-accent: #992e3b;
  --voices-text: #1a1a1a;
  --voices-text-muted: #757575;
  --voices-bg: #ffffff;
  --voices-bg-alt: #f5f5f5;
  --voices-max-width: 960px;
  --voices-wide-width: 1200px;
  --voices-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Shared Reset for Voices Pages ──────────── */

.voices-content-area,
.voices-archive-content-area {
  font-family: var(--voices-font);
  color: var(--voices-text);
  overflow: hidden; /* contain full-width breakouts */
}

.voices-content-area img,
.voices-archive-content-area img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Full-width breakout utility (escapes #content container) */
.voices-full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* =========================================================================
   SINGLE VOICES POST  (Synchro project-style — vs- prefix)
   ========================================================================= */

/* ── 1. Hero ─────────────────────────────────── */

.vs-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  background: var(--voices-bg);
  color: var(--voices-text);
  padding: 7rem 2rem 5rem;
  position: relative;
}

.vs-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.vs-hero__title {
  font-family: var(--voices-font);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  color: var(--voices-text);
}

.vs-hero__subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0.5rem 0 0;
  color: var(--voices-text-muted);
}

/* ── 2. Featured Image ───────────────────────── */

.vs-featured {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  line-height: 0;
}

.vs-featured img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
}

/* ── 3a. Overview Marquee ────────────────────── */

.vs-marquee {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  white-space: nowrap;
}

.vs-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  animation: vs-marquee-scroll 30s linear infinite;
}

.vs-marquee__text {
  font-family: var(--voices-font);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--voices-text);
  margin-right: 40px;
}

.vs-marquee__separator {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--voices-text-muted);
  opacity: 0.35;
}

@keyframes vs-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── 3b. Overview (content + facts) ─────────── */

.vs-overview {
  padding: 3rem 2rem;
}

.vs-overview__inner {
  max-width: var(--voices-wide-width);
  margin: 0 auto;
  display: flex;
  gap: 80px;
}

/* Accessible heading — hidden visually but available to screen readers */
.vs-overview__heading.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vs-overview__left {
  width: 50%;
  overflow: hidden;
}

.vs-overview__right {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--voices-text);
}

.vs-overview__content p {
  margin: 0 0 1.5rem;
}

.vs-overview__content p:last-child {
  margin-bottom: 0;
}

/* ── PDF Documents (inside overview left column) ── */

.vs-pdfs {
  margin-top: 2rem;
  padding: 0 10px;
}

.vs-pdfs__heading {
  font-family: var(--voices-font);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--voices-text-muted);
  margin: 0 0 0.75rem;
}

.vs-pdfs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vs-pdfs__item {
  margin-bottom: 0.5rem;
}

.vs-pdfs__item a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--voices-font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--voices-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.vs-pdfs__item a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='M9 15l3 3 3-3'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='M9 15l3 3 3-3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
}

.vs-pdfs__item a:hover {
  opacity: 0.7;
}

/* =========================================================================
   Inline content images — lightbox affordance.
   ========================================================================= */

.elementor-widget-theme-post-content img.vs-content-lightbox__img {
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.elementor-widget-theme-post-content img.vs-content-lightbox__img:hover {
  filter: brightness(1.04);
}

.elementor-widget-theme-post-content img.vs-content-lightbox__img:focus-visible {
  outline: 3px solid var(--voices-accent, #992e3b);
  outline-offset: 4px;
}

/* When the image is wrapped in <a href=image-file>, suppress the underline. */
.elementor-widget-theme-post-content a:has(> img.vs-content-lightbox__img) {
  text-decoration: none;
  border-bottom: 0;
}

/* =========================================================================
   Inline Gallery — [voices_gallery] shortcode output.
   Three layouts: stack (default, full-width vertical), grid (CSS grid),
   row (horizontal flex, scrollable on overflow). Each image renders at its
   natural aspect ratio; the lightbox JS auto-binds zoom-in cursor + click.
   ========================================================================= */

.vs-content-gallery {
  --vs-gallery-gap: 1.5rem;
  --vs-gallery-columns: 2;

  margin: 2rem 0;
  font-family: var(--voices-font, inherit);
}

.vs-content-gallery__item {
  margin: 0;
  padding: 0;
}

.vs-content-gallery__img {
  display: block;
  width: 100%;
  height: auto; /* preserve original aspect ratio */
  max-width: 100%;
}

.vs-content-gallery__caption {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--voices-text-muted, #757575);
  line-height: 1.4;
}

/* ── Stack layout ────────────────────────── */
.vs-content-gallery--stack {
  display: flex;
  flex-direction: column;
  gap: var(--vs-gallery-gap);
}

/* ── Grid layout ─────────────────────────── */
.vs-content-gallery--grid {
  display: grid;
  grid-template-columns: repeat(var(--vs-gallery-columns), 1fr);
  gap: var(--vs-gallery-gap);
  align-items: start;
}

@media (max-width: 640px) {
  .vs-content-gallery--grid {
    grid-template-columns: 1fr;
  }
}

/* ── Row layout ──────────────────────────────
   Horizontal scrolling strip of fixed-height thumbnails — mirrors the
   project header gallery but smaller and contained within the post-
   content column width. Each item keeps its original aspect ratio
   (width auto, height fixed) and is clickable into the lightbox.
   ─────────────────────────────────────────── */

.vs-content-gallery--row {
  position: relative;
  display: block;
}

.vs-content-gallery--row .vs-content-gallery__track {
  display: flex;
  flex-direction: row;
  gap: var(--vs-gallery-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 0.5rem;

  /* Tidy scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.vs-content-gallery--row .vs-content-gallery__track::-webkit-scrollbar {
  height: 6px;
}
.vs-content-gallery--row .vs-content-gallery__track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.vs-content-gallery--row .vs-content-gallery__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin: 0;
  height: var(--vs-gallery-row-h, 180px);
}

.vs-content-gallery--row .vs-content-gallery__img {
  width: auto;
  height: 100%;
  max-width: none;
  display: block;
  border-radius: 3px;
  object-fit: cover; /* preserves visible aspect; lightbox shows original */
  transition: filter 0.2s ease, transform 0.2s ease;
}

.vs-content-gallery--row .vs-content-gallery__img:hover {
  filter: brightness(1.05);
}

/* Captions hidden in row layout to keep the strip compact;
   lightbox still surfaces alt text. */
.vs-content-gallery--row .vs-content-gallery__caption {
  display: none;
}

/* ── Row arrows (prev / next) ─────────────── */
.vs-content-gallery__arrow {
  position: absolute;
  top: calc(var(--vs-gallery-row-h, 180px) / 2);
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--voices-text, #1a1a1a);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.vs-content-gallery__arrow:hover {
  background: var(--voices-accent, #992e3b);
  color: #fff;
  border-color: var(--voices-accent, #992e3b);
}

.vs-content-gallery__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.vs-content-gallery__arrow:focus-visible {
  outline: 2px solid var(--voices-accent, #992e3b);
  outline-offset: 3px;
}

.vs-content-gallery__arrow[aria-disabled="true"],
.vs-content-gallery__arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.vs-content-gallery__arrow svg {
  width: 16px;
  height: 16px;
}

.vs-content-gallery__arrow--prev { left: -18px; }
.vs-content-gallery__arrow--next { right: -18px; }

@media (max-width: 640px) {
  .vs-content-gallery__arrow--prev { left: 4px; }
  .vs-content-gallery__arrow--next { right: 4px; }
}

/* ── 4. Project Facts (horizontal rows, inside overview right column) ── */

.vs-facts {
  margin-top: 2.5rem;
}

.vs-facts__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.vs-facts__row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vs-facts__label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--voices-text-muted);
}

.vs-facts__value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--voices-text);
  text-align: right;
}

/* ── 5. Media Gallery ────────────────────────── */

.vs-gallery {
  padding: 2rem 0 4rem;
}

.vs-gallery .vs-marquee {
  padding: 3rem 0 2rem;
}

.vs-gallery__header {
  padding: 3rem 2rem 0;
}

.vs-gallery__heading {
  font-family: var(--voices-font);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 2.5rem;
  color: var(--voices-text);
}

.vs-gallery__inner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vs-gallery__item {
  line-height: 0;
}

.vs-gallery__item img {
  width: 100%;
  height: auto;
}

/* ── 6. Audio Player ─────────────────────────── */

.vs-audio {
  padding: 4rem 2rem;
  background: var(--voices-bg-alt);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.vs-audio__inner {
  max-width: var(--voices-wide-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.vs-audio__heading {
  font-family: var(--voices-font);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--voices-text);
}

.vs-audio__episode-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--voices-text);
}

/* WordPress audio player overrides */
.vs-audio .mejs-container {
  max-width: 100%;
}

.vs-audio .mejs-controls .mejs-time-rail .mejs-time-current {
  background: var(--voices-accent);
}

.vs-audio .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
  background: var(--voices-accent);
}

/* ── Pull Quote ──────────────────────────────── */

.vs-pullquote {
  padding: 0 2rem 4rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  text-align: center;
}

.vs-pullquote__inner {
  max-width: var(--voices-max-width);
  margin: 0 auto;
}

.vs-pullquote__text {
  font-family: var(--voices-font);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  color: var(--voices-accent);
  margin: 0;
  padding: 0;
  border: none;
  quotes: "\201C" "\201D";
}

.vs-pullquote__text::before { content: open-quote; }
.vs-pullquote__text::after  { content: close-quote; }

/* ── Inline Pull Quote (shortcode) ───────────── */

.vs-inline-pullquote {
  font-family: var(--voices-font);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  color: var(--voices-accent);
  border-left: 4px solid var(--voices-accent);
  margin: 2rem 0;
  padding: 1rem 0 1rem 1.5rem;
  quotes: "\201C" "\201D";
}

.vs-inline-pullquote::before { content: open-quote; }
.vs-inline-pullquote::after  { content: close-quote; }

/* ── Video Embed ─────────────────────────────── */

.vs-video {
  padding: 4rem 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--voices-bg-alt);
}

.vs-video__inner {
  /* max-width: var(--voices-wide-width); */
  margin: 0 auto;
}

.vs-video__player {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.vs-video__player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── 7. Related / More Voices ────────────────── */

.vs-related {
  padding: 5rem 2rem;
}

.vs-related__inner {
  max-width: var(--voices-wide-width);
  margin: 0 auto;
}

.vs-related__heading {
  font-family: var(--voices-font);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 2.5rem;
  color: var(--voices-text);
}

.vs-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.vs-related__card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--voices-bg-alt);
}

.vs-related__card-image {
  line-height: 0;
  width: 100%;
  height: 100%;
}

.vs-related__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.vs-related__card:hover .vs-related__card-image img {
  transform: scale(1.04);
}

.vs-related__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.35s ease;
  pointer-events: none;
}

.vs-related__card:hover .vs-related__card-overlay {
  transform: translateY(0);
  opacity: 1;
}

.vs-related__card-meta {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.vs-related__card-title {
  font-family: var(--voices-font);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  line-height: 1.2;
}

/* ── 8. Entrance Animations ─────────────────── */

/* fadeIn */
.vs-anim-fadeIn {
  opacity: 0;
  animation: vs-fadeIn 0.8s ease forwards;
}

/* fadeInUp */
.vs-anim-fadeInUp {
  opacity: 0;
  transform: translateY(24px);
  animation: vs-fadeInUp 0.8s ease forwards;
}

/* Delays */
.vs-anim-delay-100 { animation-delay: 0.1s; }
.vs-anim-delay-200 { animation-delay: 0.2s; }
.vs-anim-delay-300 { animation-delay: 0.3s; }
.vs-anim-delay-400 { animation-delay: 0.4s; }

@keyframes vs-fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes vs-fadeInUp {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal — elements start invisible and animate
   into view when they enter the viewport via IntersectionObserver
   (JS added inline at the bottom of the page) or just on load. */
.vs-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.vs-reveal.vs-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   ARCHIVE PAGE  (Synchro portfolio-style)
   ========================================================================= */

/* ── Archive Hero ────────────────────────────── */

.va-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--voices-bg);
  color: var(--voices-text);
  padding: 6rem 2rem;
  position: relative;
}

.va-hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.va-hero__title {
  font-family: var(--voices-font);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  color: var(--voices-text);
}

.va-hero__subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 9vw, 7.5rem);
  line-height: 1;
  margin: -0.15em 0 0;
  color: var(--voices-text);
}

.va-hero__tagline,
.va-hero__credit,
.va-hero__scroll {
  flex: 1;
}

.va-hero__tagline {
  text-align: left;
}

.va-hero__credit {
  text-align: center;
  color: var(--voices-text-muted);
}

.va-hero__scroll {
  text-align: right;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  cursor: default;
}

.va-hero__scroll svg {
  transition: transform 0.3s ease;
}

/* ── Project Grid (Brave-style 2-col) ────────── */

.va-grid {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 1.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* ── Card ────────────────────────────────────── */

.va-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.va-card.is-leaving {
  opacity: 0;
  transform: scale(0.96);
}

.va-card.is-hidden {
  display: none;
}

.va-card.is-entering {
  animation: va-card-enter 0.4s ease both;
}

@keyframes va-card-enter {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.va-card__link {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.va-card__image {
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 4 / 3;
  background: var(--voices-bg-alt);
}

.va-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.va-card__link:hover .va-card__image img {
  transform: scale(1.04);
}

.va-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}

/* ── Card Overlay (positioned over image) ────── */

.va-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
  transition: background 0.4s ease;
}

.va-card__link:hover .va-card__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
}

/* ── Card Top (title + arrow) ────────────────── */

.va-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.va-card__title {
  font-family: var(--voices-font);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.va-card__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--voices-text);
  transition: background 0.25s ease, transform 0.25s ease;
}

.va-card__link:hover .va-card__arrow {
  background: #ffffff;
  transform: rotate(-45deg) scale(1.05);
}

/* ── Card Bottom (tag pills) ─────────────────── */

.va-card__pill {
  display: inline-block;
  padding: 0.4rem 1.25rem 0.55rem;
  font-family: var(--voices-font);
  font-size: clamp(0.875rem, 1.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--voices-text);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 100px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* ── Layout Toggle (Grid / List) ─────────────── */

.va-toolbar {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
}

.va-layout-toggle {
  display: inline-flex;
  background: #000000;
  border-radius: 112px;
  padding: 0 3px;
  height: 46px;
  align-items: center;
}

.va-layout-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
  border: none;
  border-radius: 112px;
  background: transparent;
  color: #ffffff;
  font-family: var(--voices-font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.va-layout-btn.is-active {
  background: #ffffff;
  color: #000000;
}

/* ── Cards wrapper (transparent in grid view) ── */

.va-cards {
  display: contents; /* in grid view, cards participate directly in the grid */
}

/* ── List View Mode ──────────────────────────── */

.va-grid.is-list-view {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Preview container: left column for the image */
.va-list-preview {
  display: none;
}

.va-grid.is-list-view .va-list-preview {
  display: block;
  flex: 0 0 35%;
  position: sticky;
  top: 2rem;
  overflow: hidden;
  border-radius: 6px;
  background: var(--voices-bg-alt);
}

.va-list-preview img {
  display: block;
  width: 100%;
  height: auto;
}

/* Cards wrapper becomes the right column in list view */
.va-grid.is-list-view .va-cards {
  display: block;
  flex: 1;
  min-width: 0;
}

/* Hide the per-card image in list view */
.va-grid.is-list-view .va-card__image {
  display: none;
}

/* Row layout */
.va-grid.is-list-view .va-card__link {
  display: grid;
  grid-template-columns: 1fr auto 32px;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding: 1.5rem 1.5rem;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.va-grid.is-list-view .va-card__link:hover {
  background: #000000;
}

.va-grid.is-list-view .va-card:last-child .va-card__link {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.va-grid.is-list-view .va-card__overlay {
  position: static;
  display: contents;
}

.va-grid.is-list-view .va-card__top {
  display: contents;
}

.va-grid.is-list-view .va-card__title {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 500;
  color: var(--voices-text);
  grid-column: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.va-grid.is-list-view .va-card__link:hover .va-card__title {
  color: #ffffff;
}

.va-grid.is-list-view .va-card__arrow {
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--voices-text);
  grid-column: 3;
  order: 3;
  transition: color 0.3s ease;
}

.va-grid.is-list-view .va-card__link:hover .va-card__arrow {
  background: transparent;
  color: #ffffff;
  transform: none;
}

.va-grid.is-list-view .va-card__pill {
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: color 0.3s ease;
  border-radius: 0;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  color: var(--voices-text);
}

.va-grid.is-list-view .va-card__link:hover .va-card__pill {
  color: rgba(255, 255, 255, 0.7);
}

.va-grid.is-list-view .va-card__pill + .va-card__pill::before {
  content: ",\00a0";
}

/* ── Empty State ─────────────────────────────── */

.va-empty {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--voices-text-muted);
  font-size: 1.125rem;
}

/* ── Pagination ──────────────────────────────── */

.voices-archive-content-area .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2rem 5rem;
}

.voices-archive-content-area .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--voices-text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.voices-archive-content-area .page-numbers.current {
  background: var(--voices-text);
  color: #fff;
}

.voices-archive-content-area .page-numbers:hover:not(.current) {
  background: var(--voices-bg-alt);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (min-width: 1200px) {
  .va-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem 4rem;
  }
}

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

  .va-grid {
    gap: 6px;
  }

  .va-card__overlay {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  /* Single hero */
  .vs-hero {
    min-height: 75vh;
    padding: 4rem 1.5rem 0;
  }

  /* Audio two-column collapses to single column */
  .vs-audio__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Archive hero */
  .va-hero {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Archive grid: single column */
  .va-grid {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 3rem;
  }

  /* Toolbar */
  .va-toolbar {
    padding: 0 1rem 1rem;
    justify-content: center;
  }

  /* List view: hide preview, stack to single column */
  .va-grid.is-list-view {
    flex-direction: column;
  }

  .va-grid.is-list-view .va-list-preview {
    display: none;
  }

  .va-grid.is-list-view .va-card__link {
    grid-template-columns: 1fr 32px;
    gap: 0.5rem 1rem;
    padding: 1.5rem 0;
  }

  .va-grid.is-list-view .va-card__arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  /* Filter wrap on small screens */
  .va-filter__list {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Always show related overlays on mobile */
  .vs-related__card-overlay {
    transform: translateY(0);
    opacity: 1;
  }

  /* Archive hero */
  .va-hero {
    padding: 3rem 1rem;
  }

  .va-hero__tagline,
  .va-hero__credit,
  .va-hero__scroll {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  /* Archive overlay & title adjustments */
  .va-card__overlay {
    padding: 16px;
  }

  .va-card__title {
    font-size: 1rem;
  }

  .va-card__pill {
    font-size: 0.75rem;
  }

  /* Single hero */
  .vs-hero {
    min-height: 55vh;
    padding: 3rem 1rem 0;
  }

  .vs-hero__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 0;
    align-items: flex-start;
  }

  /* Single content sections */
  .vs-overview {
    padding: 3rem 1rem;
  }

  .vs-facts {
    margin-top: 1.5rem;
  }

  .vs-gallery__inner {
    padding: 0 1rem;
  }

  .vs-audio {
    padding: 3rem 1rem;
  }

  .vs-related {
    padding: 3rem 1rem;
  }

  .vs-related__grid {
    grid-template-columns: 1fr;
  }

  /* Facts rows stack nicely on small screens */
  .vs-facts__row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .vs-facts__value {
    text-align: left;
  }

  .vs-overview__inner {
    flex-direction: column;
    gap: 50px;
  }

  .vs-overview__left {
    width: 100%;
  }

  .vs-video {
    padding: 2rem;
  }
}

/* =========================================================================
   Prev / Next Episode Widget  —  Voices_Prev_Next_Widget
   Two-tile mini navigation. Mirrors the .vs-related card design (image with
   hover overlay) but locked to two columns: previous (left) + next (right).
   ========================================================================= */

/* No internal max-width / centering — let the parent Elementor section/column
   bound the width so this widget aligns with every other section on the page. */
.vs-prev-next {
  /* padding: 0 10px; */
}

.vs-prev-next__heading {
  font-family: var(--voices-font);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  color: var(--voices-text);
}

.vs-prev-next__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.vs-prev-next__card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--voices-bg-alt);
}

.vs-prev-next__card--empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--voices-text-muted);
  cursor: default;
  pointer-events: none;
}

.vs-prev-next__card-image {
  line-height: 0;
  width: 100%;
  height: 100%;
}

.vs-prev-next__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.vs-prev-next__card:hover .vs-prev-next__card-image img {
  transform: scale(1.04);
}

.vs-prev-next__card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  transition: background 0.3s ease;
}

.vs-prev-next__card:hover .vs-prev-next__card-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 65%, rgba(0, 0, 0, 0) 100%);
}

.vs-prev-next__direction {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.vs-prev-next__card--next .vs-prev-next__card-overlay {
  text-align: right;
}

.vs-prev-next__card-meta {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.vs-prev-next__card-title {
  font-family: var(--voices-font);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  line-height: 1.2;
}

.vs-prev-next__empty-text {
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .vs-prev-next {
    padding: 3rem 2.625rem;
  }
  .vs-prev-next__grid {
    grid-template-columns: 1fr;
  }
  .vs-prev-next__card--next .vs-prev-next__card-overlay {
    text-align: left;
  }
}

/* =========================================================================
   Overview Widget  —  Voices_Overview_Widget
   The widget renders post content + an appended PDF list.
   ========================================================================= */

.vs-overview-widget {
  font-family: var(--voices-font);
  color: var(--voices-text);
}

.vs-overview-widget__content {
  font-family: var(--voices-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--voices-text);
}

.vs-overview-widget__content > :first-child { margin-top: 0; }
.vs-overview-widget__content > :last-child  { margin-bottom: 0; }

/* Content headings — match the "More Voices" / section-heading treatment:
   DM Sans 800, uppercase, tight letter-spacing. */
.vs-overview-widget__content h1,
.vs-overview-widget__content h2,
.vs-overview-widget__content h3,
.vs-overview-widget__content h4,
.vs-overview-widget__content h5,
.vs-overview-widget__content h6,
.vs-pdfs__heading {
  font-family: var(--voices-font);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--voices-text);
  line-height: 1.1;
  margin: 2.5rem 0 1rem;
}

.vs-overview-widget__content h1,
.vs-overview-widget__content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.vs-overview-widget__content h3,
.vs-pdfs__heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.vs-overview-widget__content h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.vs-overview-widget__content h5,
.vs-overview-widget__content h6 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.vs-overview-widget__content p {
  margin: 0 0 1.25rem;
}

.vs-overview-widget__content a {
  color: var(--voices-accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.vs-overview-widget__pdfs {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.vs-pdfs__heading {
  margin-top: 0;
  margin-bottom: 1rem;
}

.vs-pdfs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vs-pdfs__item {
  margin: 0 0 0.5rem;
}

.vs-pdfs__item a {
  font-family: var(--voices-font);
  font-weight: 500;
  color: var(--voices-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.vs-pdfs__item a:hover {
  color: var(--voices-accent);
}

/* =========================================================================
   Section Heading utility — drop on any Elementor Heading widget via the
   "CSS Classes" field to match the "More Voices" treatment.
   ========================================================================= */

.vs-section-heading h1,
.vs-section-heading h2,
.vs-section-heading h3,
.vs-section-heading h4,
.vs-section-heading h5,
.vs-section-heading h6,
h1.vs-section-heading,
h2.vs-section-heading,
h3.vs-section-heading,
h4.vs-section-heading,
h5.vs-section-heading,
h6.vs-section-heading,
.vs-section-heading > .elementor-heading-title {
  font-family: var(--voices-font);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--voices-text);
  margin: 0 0 2rem;
}

/* =========================================================================
   Voices PDFs Widget  —  Voices_PDFs_Widget
   Two layouts: button-style cards or a plain link list.
   ========================================================================= */

.vs-pdf-buttons {
  --vs-pdf-accent: var(--voices-accent, #992e3b);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.vs-pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  color: var(--voices-text);
  text-decoration: none;
  font-family: var(--voices-font);
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  min-width: 220px;
  max-width: 100%;
}

.vs-pdf-button:hover {
  color: var(--vs-pdf-accent);
  border-color: var(--vs-pdf-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.vs-pdf-button:active {
  transform: translateY(0);
}

.vs-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--vs-pdf-accent);
}

.vs-pdf-icon svg {
  width: 22px;
  height: 22px;
}

.vs-pdf-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.vs-pdf-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.vs-pdf-size {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--voices-text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0.04em;
}

/* List layout */
.vs-pdf-list {
  --vs-pdf-accent: var(--voices-accent, #992e3b);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vs-pdf-list__item a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--voices-font);
  font-weight: 500;
  color: var(--voices-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.vs-pdf-list__item a:hover {
  color: var(--vs-pdf-accent);
}

.vs-pdf-list .vs-pdf-icon { color: var(--vs-pdf-accent); }
.vs-pdf-list .vs-pdf-size { margin-left: 0.35rem; }

.vs-pdfs-empty {
  font-style: italic;
  color: var(--voices-text-muted);
}

@media (max-width: 640px) {
  .vs-pdf-button { min-width: 0; width: 100%; }
}

.elementor-column-gap-default>.elementor-column>.elementor-element-populated {
  padding: 10px 0 !important;
  margin: 0 auto;
  max-width: var(--content-width);
  padding-inline-end: 0;
  padding-inline-start: 0;
}
/* ── Skip to Media link — [skip_to_media] shortcode ── */

.vs-skip-to-media {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0.625rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--voices-font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--voices-accent);
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.vs-skip-to-media:hover,
.vs-skip-to-media:focus {
  background: var(--voices-accent);
  color: #fff;
  text-decoration: none;
}

.vs-skip-to-media:focus-visible {
  outline: 2px solid var(--voices-accent);
  outline-offset: 3px;
}

.vs-skip-to-media__icon {
  display: inline-flex;
  transition: transform 0.25s ease;
}

.vs-skip-to-media:hover .vs-skip-to-media__icon {
  transform: translateY(2px);
}

/* Alignment modifiers — the anchor is inline-flex, so alignment is applied
   by turning the element into a centred/right-aligned block-level flex box. */
.vs-skip-to-media--center,
.vs-skip-to-media--right {
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
}

.vs-skip-to-media--center { margin-left: auto; margin-right: auto; }
.vs-skip-to-media--right  { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .vs-skip-to-media,
  .vs-skip-to-media__icon {
    transition: none;
  }
}

/* Scroll target: keep the media section clear of the sticky site header and
   suppress the focus ring the smooth-scroll script's focus() would draw. */
#voices-player {
  scroll-margin-top: var(--vs-site-header-height, 0px);
}

#voices-player:focus {
  outline: none;
}
