/* ==========================================================================
   Perspektive — Editorial Section Styles
   Loaded only on page-perspektive.php
   ========================================================================== */

/* ── Layout ──────────────────────────────────────────────────────────────── */

.pv-main {
  background: var(--hk-parchment);
  min-height: 100vh;
}

/* ── Hero / Carousel Section ─────────────────────────────────────────────── */

.pv-hero {
  padding: var(--hk-space-xl) 0 var(--hk-space-lg);
  background: var(--hk-parchment);
  overflow: hidden;
}

.pv-hero__head {
  text-align: center;
  margin-bottom: var(--hk-space-lg);
}

.pv-hero__title {
  font-family: var(--hk-font-heading);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--hk-heading);
  margin: 0;
}

/* ── Carousel Scope + Wrap ───────────────────────────────────────────────── */

.pv-carousel-scope {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.pv-carousel-wrap {
  position: relative;
  height: 380px;
  perspective: 1050px;
  /* webkit: prevent the overflow-x:scroll child from inflating document scrollWidth */
  overflow: hidden;
}

@media (min-width: 768px) {
  .pv-carousel-wrap { height: 420px; }
}

/* ── Scroll Layer (invisible, captures input) ────────────────────────────── */

.pv-carousel-scroll {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Force LTR: this is an invisible input-capture layer —
     RTL flips scrollLeft and scroll-timeline direction, breaking the carousel.
     Visual cards below remain RTL-aware for text rendering. */
  direction: ltr;
}

.pv-carousel-scroll::-webkit-scrollbar { display: none; }

.pv-spacer {
  flex-shrink: 0;
  min-width: calc(50% - 130px);
  scroll-snap-align: none; /* prevent snapping to edges */
}

.pv-snap-slot {
  flex-shrink: 0;
  width: 260px;
  height: 100%;
  scroll-snap-align: center;
}

/* ── Visual Cards ────────────────────────────────────────────────────────── */

.pv-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 340px;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: layout style paint;
  isolation: isolate;
}

/* Safari compositor fix: .hk-thumb-stack__layer (style.css) uses
   `will-change: opacity` for the dark-mode crossfade, which promotes each layer
   to its own composited surface. Inside .pv-card's 3D rotateY animation, those
   composited surfaces end up above DOM-sibling overlay/body on real Safari,
   hiding the text. Override to `will-change: auto` here — the crossfade
   transitions still work fine without the explicit promotion hint. */
.pv-card .hk-thumb-stack__layer {
  will-change: auto;
}

.pv-card:focus-visible {
  outline: 2px solid var(--hk-gold);
  outline-offset: 4px;
}

.pv-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Parchment fallback when no image */
.pv-card:not(:has(.pv-card__img)) {
  background: linear-gradient(135deg, var(--hk-navy) 0%, var(--hk-navy-mid) 100%);
}

/* z-index on overlay/body: Safari composites .hk-thumb-stack__layer (will-change:
   opacity) as its own layer and places it above DOM siblings under the card's
   3D rotateY animation — without explicit z-index, text disappears on Safari. */
.pv-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.15) 70%,
    transparent 100%);
}

.pv-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 16px 16px;
}

.pv-card__tag {
  display: block;
  font-family: var(--hk-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hk-gold-light);
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.pv-card__title {
  font-family: var(--hk-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.pv-card__autor {
  font-family: var(--hk-font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ── Carousel: Modern path (scroll-driven animations) ────────────────────── */

@supports (animation-timeline: scroll()) {

  /* B2: unique, assess (carousel-specific; multi-step 3D translate+scale+rotateY, no primitive match) */
  @keyframes pv-carousel-transform {
    0%      { opacity: 0;   z-index: 5;  transform: translate(calc(-50% + 480px),  -50%) scale(0.6) rotateY(-25deg); }
    16.667% { opacity: 0.6; z-index: 10; transform: translate(calc(-50% + 380px),  -50%) scale(0.7) rotateY(-25deg); }
    33.333% { opacity: 1;   z-index: 20; transform: translate(calc(-50% + 220px),  -50%) scale(0.8) rotateY(-21deg); }
    50%     { opacity: 1;   z-index: 30; transform: translate(-50%, -50%)          scale(1)   rotateY(0deg);   }
    66.667% { opacity: 1;   z-index: 20; transform: translate(calc(-50% - 220px),  -50%) scale(0.8) rotateY(21deg);  }
    83.333% { opacity: 0.6; z-index: 10; transform: translate(calc(-50% - 380px),  -50%) scale(0.7) rotateY(25deg);  }
    100%    { opacity: 0;   z-index: 5;  transform: translate(calc(-50% - 480px),  -50%) scale(0.6) rotateY(25deg);  }
  }

  .pv-carousel-scroll {
    scroll-timeline: --pv-carousel inline;
  }

  .pv-carousel-scope {
    timeline-scope: --pv-carousel;
  }

  .pv-card {
    opacity: 0;
    animation-name: pv-carousel-transform;
    animation-timing-function: linear;
    animation-fill-mode: none;
    animation-timeline: --pv-carousel;
    animation-range-start: calc((var(--i) - 3) / (var(--n) - 1) * 100%);
    animation-range-end:   calc((var(--i) + 3) / (var(--n) - 1) * 100%);
  }

  /* Single-entry edge case: scroll range is 0, animation stays at 0% (opacity:0).
     Force visible + centered when --n equals 1. */
  .pv-carousel-scope[style*="--n: 1"] .pv-card {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    animation: none;
    z-index: 30;
  }
}

/* ── Carousel: Fallback (JS updates --si) ────────────────────────────────── */

@supports not (animation-timeline: scroll()) {
  .pv-card {
    --raw: calc(var(--i) - var(--si));
    --abs: abs(var(--raw));
    --sgn: sign(var(--raw));
    --s:   max(0.6, max(1 - 0.2 * var(--abs), 0.9 - 0.1 * var(--abs)));
    --tx:  calc(-50% + var(--sgn) * 1px * min(480, min(var(--abs) * 220, 60 + var(--abs) * 160, 180 + var(--abs) * 100)));
    --ry:  calc(var(--sgn) * -1deg * min(25, var(--abs) * 21));
    --z:   round(max(5, max(30 - 10 * var(--abs), 20 - 5 * var(--abs))), 1);
    --co:  clamp(0, min(1, min(1.4 - 0.4 * var(--abs), 1.8 - 0.6 * var(--abs))), 1);
    transform: translate(var(--tx), -50%) scale(var(--s)) rotateY(var(--ry));
    z-index: var(--z);
    opacity: var(--co);
  }
}

/* ── Dots ────────────────────────────────────────────────────────────────── */

.pv-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.pv-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--hk-parchment-dark);
  transition: all 0.2s;
}

@supports (animation-timeline: scroll()) {
  /* B2: unique, assess (carousel-specific; animates background-color + width custom properties, no primitive match) */
  @keyframes pv-dot-activate {
    0%   { background-color: var(--hk-parchment-dark); width: 6px; }
    50%  { background-color: var(--hk-gold);           width: 16px; }
    100% { background-color: var(--hk-parchment-dark); width: 6px; }
  }
  .pv-dot {
    animation-name: pv-dot-activate;
    animation-timing-function: linear;
    animation-fill-mode: none;
    animation-timeline: --pv-carousel;
    animation-range-start: calc((var(--i) - 0.5) / (var(--n) - 1) * 100%);
    animation-range-end:   calc((var(--i) + 0.5) / (var(--n) - 1) * 100%);
  }
}

/* ── Arrows ──────────────────────────────────────────────────────────────── */

.pv-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: none;
  background: var(--hk-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--hk-glass-border);  /* Spec B1 — Family 3 full border shorthand */
  color: var(--hk-heading);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 40px;
}

.pv-arrow:hover {
  background: rgba(255,255,255,0.9);
  color: var(--hk-gold);
}

.pv-arrow--prev { left: 8px; }
.pv-arrow--next { right: 8px; }

@media (min-width: 768px) {
  .pv-arrow { display: flex; }
}

/* ── Article Grid ────────────────────────────────────────────────────────── */

.pv-grid-section {
  padding: var(--hk-space-xl) var(--hk-space-md);
}

.pv-grid-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .pv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .pv-grid { grid-template-columns: repeat(3, 1fr); }
}

.pv-grid-card {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--hk-ease), box-shadow 0.3s var(--hk-ease);
}

.pv-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(27,42,74,0.12);
}

.pv-grid-card:focus-visible {
  outline: 2px solid var(--hk-gold);
  outline-offset: 4px;
}

.pv-grid-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pv-grid-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--hk-ease);
}

.pv-grid-card:hover .pv-grid-card__img-wrap img {
  transform: scale(1.04);
}

.pv-grid-card__body {
  padding: 24px;
}

.pv-tag {
  display: inline-block;
  font-family: var(--hk-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hk-gold);
  margin-bottom: 10px;
}

.pv-grid-card__title {
  font-family: var(--hk-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--hk-heading);
  line-height: 1.3;
  margin: 0 0 10px;
}

.pv-grid-card__autor {
  font-family: var(--hk-font-body);
  font-size: 13px;
  color: var(--hk-body);
  margin: 0 0 4px;
}

.pv-grid-card__rolle {
  color: var(--hk-teal);
}

.pv-grid-card__date {
  display: block;
  font-family: var(--hk-font-body);
  font-size: 12px;
  color: var(--hk-body);
  opacity: 0.6;
  margin-bottom: 12px;
}

.pv-grid-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--hk-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
}

.pv-grid-card__cta {
  font-family: var(--hk-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--hk-gold);
}

.pv-empty {
  padding: 48px 32px;
  text-align: center;
  color: var(--hk-body);
  font-size: 16px;
  border-radius: 16px;
}

/* ── Fullscreen Reader ───────────────────────────────────────────────────── */

.pv-reader {
  position: fixed;
  inset: 0;
  z-index: var(--hk-z-modal);   /* full-screen takeover above the page header */
  background: var(--hk-parchment);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.pv-reader.is-open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.pv-reader__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: calc(var(--hk-z-modal) + 1);   /* close button must stay clickable above the reader */
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: none;
  background: var(--hk-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--hk-glass-border);  /* Spec B1 — Family 3 full border shorthand */
  color: var(--hk-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.pv-reader__close:hover {
  background: rgba(255,255,255,0.95);
}

.pv-reader__hero {
  position: relative;
  height: 40vh;
  min-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--hk-navy);
  transition: height 280ms var(--hk-ease), opacity 280ms var(--hk-ease);
}

@media (max-width: 768px) {
  .pv-reader__hero {
    height: 28vh;
    min-height: 160px;
  }
}

.pv-reader.is-scrolled .pv-reader__hero {
  height: 0;
  min-height: 0;
  opacity: 0;
}

.pv-reader__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-reader__hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--hk-parchment) 100%);
}

.pv-reader__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pv-reader__content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--hk-space-lg) var(--hk-space-md) var(--hk-space-2xl);
}

.pv-reader__thema {
  display: block;
  margin-bottom: var(--hk-space-xs);
}

.pv-reader__title {
  font-family: var(--hk-font-heading);
  font-weight: 300;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--hk-heading);
  line-height: 1.2;
  margin: 0 0 var(--hk-space-sm);
}

.pv-reader__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  margin-bottom: var(--hk-space-lg);
  padding-bottom: var(--hk-space-sm);
  border-bottom: 1px solid var(--hk-parchment-dark);
}

.pv-reader__autor {
  font-family: var(--hk-font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--hk-heading);
}

.pv-reader__rolle {
  font-family: var(--hk-font-body);
  font-size: 13px;
  color: var(--hk-teal);
}

.pv-reader__date {
  font-family: var(--hk-font-body);
  font-size: 12px;
  color: var(--hk-body);
  opacity: 0.6;
  margin-inline-start: auto;
}

.pv-reader__body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--hk-body);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.25s, transform 0.35s ease 0.25s;
}

.pv-reader.is-open .pv-reader__body {
  opacity: 1;
  transform: translateY(0);
}

.pv-reader__link-wrap {
  margin-top: var(--hk-space-lg);
}

/* ── View Transitions ────────────────────────────────────────────────────── */

::view-transition-old(pv-active) { animation: none; }
::view-transition-new(pv-active) { animation: none; }
::view-transition-group(pv-active) {
  animation-duration: 400ms;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Fallback transition (no View Transitions API) ───────────────────────── */

.pv-reader--fallback-enter {
  animation: pv-reader-enter 0.3s ease forwards;
}

/* B2: collapse into hk-scale-in (style.css primitive) */
@keyframes pv-reader-enter {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Reduced Motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .pv-card,
  .pv-dot,
  .pv-grid-card,
  .pv-reader,
  .pv-reader__body,
  .pv-reader__hero,
  ::view-transition-group(pv-active) {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   SINGLE PERSPEKTIVE PAGE
   ========================================================================== */

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

.hk-pv-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hk-pv-hero__bg {
    z-index: 0;
}

.hk-pv-hero--fallback {
    background: linear-gradient(135deg, var(--hk-navy) 0%, #0f1a2e 100%);
}

.hk-pv-hero--fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(200,169,110,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hk-pv-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(27,42,74,0.3) 0%, rgba(27,42,74,0.85) 100%);
    pointer-events: none;
}

.hk-pv-hero--fallback .hk-pv-hero__overlay {
    display: none;
}

.hk-pv-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--hk-space-2xl) var(--hk-space-lg);
    max-width: 800px;
}

.hk-pv-hero__content .hk-overline {
    color: var(--hk-gold);
    margin-bottom: 1rem;
}

.hk-pv-hero__title {
    font-family: var(--hk-font-heading);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--hk-white);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.hk-pv-hero__diamond {
    color: var(--hk-gold);
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.hk-pv-hero__diamond::before {
    content: '\25C6'; /* ◆ */
}

.hk-pv-hero__meta {
    font-family: var(--hk-font-body);
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hk-pv-hero__rolle {
    opacity: 0.65;
    font-style: italic;
}

.hk-pv-hero__date {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    display: block;
}

.hk-pv-hero__back {
    position: absolute;
    bottom: var(--hk-space-lg);
    left: var(--hk-space-lg);
    z-index: 3;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.hk-pv-hero__back:hover {
    color: var(--hk-gold);
}

.hk-pv-hero__scroll {
    position: absolute;
    bottom: var(--hk-space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    animation: hk-scroll-pulse 2.5s ease-in-out infinite;
}

/* B2: unique, assess (pulse+translateY scroll-indicator; no clean primitive match) */
@keyframes hk-scroll-pulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 0.7; transform: translateX(-50%) translateY(6px); }
}

/* ── Single Content ──────────────────────────────────────────────────────── */

.hk-pv-single {
    background: var(--hk-parchment);
    padding: var(--hk-space-2xl) 0;
}

.hk-pv-abstract {
    font-family: var(--hk-font-heading);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--hk-heading);
    border-left: 4px solid var(--hk-gold);
    padding: 0 0 0 var(--hk-space-lg);
    margin: 0 0 var(--hk-space-lg);
    max-width: 680px;
}

.hk-pv-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--hk-space-xl);
    color: var(--hk-gold);
    opacity: 0.5;
}

.hk-pv-ornament span:first-child,
.hk-pv-ornament span:last-child {
    width: 40px;
    height: 1px;
    background: var(--hk-gold);
    opacity: 0.4;
}

.hk-pv-ornament span:nth-child(2) {
    font-size: 0.7rem;
}

.hk-pv-ornament span:nth-child(2)::before {
    content: '\25C6'; /* ◆ */
}

.hk-pv-body-card {
    background: var(--hk-white);
    border-top: 3px solid var(--hk-gold);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: var(--hk-space-xl);
    margin-bottom: var(--hk-space-xl);
}

:is(.hk-pv-body, .pv-reader__body) h2 {
    font-family: var(--hk-font-heading);
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--hk-heading);
    margin: var(--hk-space-xl) 0 var(--hk-space-lg);
}

:is(.hk-pv-body, .pv-reader__body) h3 {
    font-family: var(--hk-font-heading);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--hk-heading);
    padding-inline-start: var(--hk-space-sm);
    border-inline-start: 3px solid var(--hk-gold);
    margin: var(--hk-space-lg) 0 var(--hk-space-md);
}

:is(.hk-pv-body, .pv-reader__body) p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--hk-body);
    margin-bottom: 1.2rem;
}

:is(.hk-pv-body, .pv-reader__body) blockquote {
    font-family: var(--hk-font-heading);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--hk-heading);
    border-left: 4px solid var(--hk-gold);
    padding: var(--hk-space-sm) var(--hk-space-lg);
    margin: var(--hk-space-md) 0;
    background: rgba(200,169,110,0.04);
    border-radius: 0 8px 8px 0;
}

/* Quran quotes — override to premium navy style */
:is(.hk-pv-body, .pv-reader__body) .hk-blockquote-wrap.hk-blockquote--quran blockquote {
    border-left: none;
    padding: 0;
    background: none;
    border-radius: 0;
    color: var(--hk-white);
    text-align: center;
}

/* Hadith quotes — keep distinct teal style */
:is(.hk-pv-body, .pv-reader__body) .hk-blockquote-wrap.hk-blockquote--hadith blockquote {
    border-left: none;
    padding: 0;
    background: none;
    border-radius: 0;
}

:is(.hk-pv-body, .pv-reader__body) a {
    color: var(--hk-teal);
    text-decoration: underline;
    text-decoration-color: rgba(91,138,154,0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.3s ease;
}

:is(.hk-pv-body, .pv-reader__body) a:hover {
    text-decoration-color: var(--hk-teal);
}

:is(.hk-pv-body, .pv-reader__body) ul,
:is(.hk-pv-body, .pv-reader__body) ol {
    padding-inline-start: 1.5rem;
    margin-bottom: 1.2rem;
}

:is(.hk-pv-body, .pv-reader__body) li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--hk-body);
    margin-bottom: 0.4rem;
}

.hk-pv-source {
    text-align: center;
    padding-top: var(--hk-space-lg);
    border-top: 1px solid rgba(27,42,74,0.06);
    margin-top: var(--hk-space-lg);
}

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

.hk-pv-author {
    text-align: center;
    padding: var(--hk-space-lg);
    border-top: 3px solid var(--hk-gold);
    border-radius: 12px;
    margin-bottom: var(--hk-space-xl);
}

.hk-pv-author__name {
    font-family: var(--hk-font-heading);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--hk-heading);
    margin: 0 0 0.25rem;
}

.hk-pv-author__rolle {
    font-size: 0.95rem;
    color: var(--hk-body);
    margin: 0 0 0.75rem;
}

.hk-pv-author__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hk-gold);
    border: 1px solid rgba(200,169,110,0.4);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ── Related Perspektiven ────────────────────────────────────────────────── */

.hk-pv-related {
    background: var(--hk-parchment);
    padding: var(--hk-section-padding) 0;
    border-top: 1px solid rgba(27,42,74,0.06);
}

.hk-pv-related__header {
    text-align: center;
    margin-bottom: var(--hk-space-xl);
}

.hk-pv-related__header .hk-overline {
    color: var(--hk-gold);
    margin-bottom: 0.5rem;
}

.hk-pv-related__header h2 {
    font-family: var(--hk-font-heading);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--hk-heading);
    margin: 0;
}

.hk-pv-related__divider {
    width: 60px;
    height: 2px;
    background: var(--hk-gold);
    margin: 1rem auto 0;
}

.hk-pv-related__grid {
    display: flex;
    justify-content: center;
    gap: var(--hk-space-lg);
}

.hk-pv-related__card {
    width: 360px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--hk-navy);
    border: 1px solid rgba(200,169,110,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.5s var(--hk-ease), box-shadow 0.5s var(--hk-ease), border-color 0.5s var(--hk-ease);
}

.hk-pv-related__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 0 0 1px rgba(200,169,110,0.25);
    border-color: rgba(200,169,110,0.4);
}

.hk-pv-related__card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hk-pv-related__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--hk-ease);
}

.hk-pv-related__card:hover .hk-pv-related__card-img img {
    transform: scale(1.08);
}

.hk-pv-related__card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,15,28,0.65) 0%, rgba(9,15,28,0.15) 40%, transparent 70%);
    pointer-events: none;
}

.hk-pv-related__card-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(200,169,110,0.92);
    color: var(--hk-white);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 4px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hk-pv-related__card-content {
    padding: 1.25rem;
}

.hk-pv-related__card-title {
    font-family: var(--hk-font-heading);
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--hk-white);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.hk-pv-related__card:hover .hk-pv-related__card-title {
    color: var(--hk-gold-light);
}

.hk-pv-related__card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 0.75rem;
}

.hk-pv-related__card-date {
    opacity: 0.7;
}

.hk-pv-related__card-cta {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hk-gold);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.hk-pv-related__card:hover .hk-pv-related__card-cta {
    opacity: 1;
}

.hk-pv-related__footer {
    text-align: center;
    margin-top: var(--hk-space-xl);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .hk-pv-related__card {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .hk-pv-hero {
        min-height: 40vh;
    }

    .hk-pv-hero__title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hk-pv-hero__back {
        bottom: auto;
        top: var(--hk-space-md);
        left: var(--hk-space-md);
    }

    .hk-pv-hero__scroll {
        display: none;
    }

    .hk-pv-hero__content {
        padding: var(--hk-space-xl) var(--hk-space-md);
    }

    .hk-pv-single {
        padding: var(--hk-space-xl) 0;
    }

    .hk-pv-abstract {
        font-size: 1.1rem;
        padding-inline-start: var(--hk-space-md);
    }

    .hk-pv-body-card {
        padding: var(--hk-space-lg) var(--hk-space-md);
    }

    :is(.hk-pv-body, .pv-reader__body) h2 {
        font-size: 1.5rem;
    }

    .hk-pv-related__grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 var(--hk-space-md);
        gap: var(--hk-space-md);
        justify-content: flex-start;
    }

    .hk-pv-related__card {
        flex-shrink: 0;
        width: 82vw;
        max-width: 340px;
        scroll-snap-align: center;
    }
}

@media (max-width: 480px) {
    .hk-pv-body-card {
        padding: var(--hk-space-md);
    }

    .hk-pv-related__card {
        width: 85vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-pv-hero__scroll,
    .hk-pv-related__card,
    .hk-pv-related__card-img img {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Infographic — Premium embedded image treatment
   ========================================================================== */

.hk-infographic {
    margin: 3rem auto;
    max-width: 520px;
    position: relative;
}

/* Outer glow + gold border frame */
.hk-infographic__inner {
    background: var(--hk-white);
    border: 1px solid rgba(200, 169, 110, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow:
        0 4px 24px rgba(27, 42, 74, 0.08),
        0 0 0 1px rgba(200, 169, 110, 0.08);
    position: relative;
    overflow: hidden;
}

/* Subtle gold corner accents */
.hk-infographic__inner::before,
.hk-infographic__inner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(200, 169, 110, 0.25);
    pointer-events: none;
    z-index: 1;
}

.hk-infographic__inner::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
    border-radius: 6px 0 0 0;
}

.hk-infographic__inner::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 6px 0;
}

.hk-infographic__inner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .hk-infographic {
        max-width: 100%;
        margin: 2rem auto;
    }

    .hk-infographic__inner {
        padding: 12px;
        border-radius: 12px;
    }
}

/* ==========================================================================
   Editorial components — used inside .hk-pv-body article content
   ========================================================================== */

/* Numbered survey/results card with auto-counter list */
:is(.hk-pv-body, .pv-reader__body) .hk-pv-results {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: var(--hk-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 169, 110, 0.22);
    border-inline-start: 3px solid var(--hk-gold);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(27, 42, 74, 0.06);
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-results__label {
    font-family: var(--hk-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hk-gold);
    margin: 0 0 0.4rem;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-results__title {
    font-family: var(--hk-font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--hk-heading);
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-results ol {
    list-style: none;
    counter-reset: pv-results;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-results ol li {
    counter-increment: pv-results;
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    font-family: var(--hk-font-body);
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--hk-body);
    margin: 0;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-results ol li::before {
    content: counter(pv-results, decimal-leading-zero);
    font-family: var(--hk-font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--hk-gold);
    flex-shrink: 0;
    min-width: 2.2rem;
    line-height: 1;
}

/* Featured insight / Auftakt-style highlight */
:is(.hk-pv-body, .pv-reader__body) .hk-pv-callout {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(200, 169, 110, 0.08), rgba(200, 169, 110, 0.02));
    border-inline-start: 3px solid var(--hk-gold);
    border-radius: 0 8px 8px 0;
    font-family: var(--hk-font-heading);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--hk-heading);
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-callout strong {
    font-style: normal;
    font-weight: 500;
    color: var(--hk-navy, var(--hk-heading));
}

/* Side-by-side comparison cards (Patient vs. Arzt etc.) */
:is(.hk-pv-body, .pv-reader__body) .hk-pv-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2.5rem 0;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-comparison__item {
    padding: 1.5rem;
    background: var(--hk-white);
    border-radius: 12px;
    border-top: 3px solid var(--hk-teal);
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.06);
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-comparison__item--alt {
    border-top-color: var(--hk-gold);
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-comparison__label {
    font-family: var(--hk-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hk-teal);
    margin: 0 0 0.5rem;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-comparison__item--alt .hk-pv-comparison__label {
    color: var(--hk-gold);
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-comparison__title {
    font-family: var(--hk-font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--hk-heading);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-comparison__body {
    font-family: var(--hk-font-body);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--hk-body);
    margin: 0;
}

/* Editorial figure — framed visual with overline, title, and caption */
:is(.hk-pv-body, .pv-reader__body) .hk-pv-figure {
    margin: 3rem 0;
    padding: 0;
    text-align: center;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-figure__label {
    font-family: var(--hk-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hk-gold);
    margin: 0 0 0.4rem;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-figure__title {
    font-family: var(--hk-font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--hk-heading);
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-figure__frame {
    display: inline-block;
    max-width: 100%;
    padding: 1.25rem;
    background: var(--hk-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 169, 110, 0.22);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(27, 42, 74, 0.08);
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-figure__frame img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 6px;
}

:is(.hk-pv-body, .pv-reader__body) .hk-pv-figure__caption {
    display: block;
    margin: 1rem auto 0;
    max-width: 38rem;
    font-family: var(--hk-font-heading);
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--hk-body);
}

@media (max-width: 640px) {
    :is(.hk-pv-body, .pv-reader__body) .hk-pv-comparison {
        grid-template-columns: 1fr;
    }

    :is(.hk-pv-body, .pv-reader__body) .hk-pv-results {
        padding: 1.25rem 1.25rem;
    }

    :is(.hk-pv-body, .pv-reader__body) .hk-pv-callout {
        padding: 1.25rem 1.25rem;
        font-size: 1.05rem;
    }

    :is(.hk-pv-body, .pv-reader__body) .hk-pv-figure {
        margin: 2rem 0;
    }

    :is(.hk-pv-body, .pv-reader__body) .hk-pv-figure__frame {
        padding: 0.75rem;
        border-radius: 10px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   Dark-mode overrides — standalone single-hakim_perspektive page
   Parity with :root[data-theme="dark"] .hk-page__card (pages.css)
   ───────────────────────────────────────────────────────────────────────── */

:root[data-theme="dark"] .hk-pv-body-card {
    background: var(--hk-parchment-dark);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body),
:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) p,
:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) li {
    color: var(--hk-body);
}

:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) h2,
:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) h3,
:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) h4 {
    color: var(--hk-heading);
}

:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-pv-results {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(200, 169, 110, 0.3);
}

:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-pv-results ol li {
    background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-pv-callout {
    background: linear-gradient(135deg, rgba(200, 169, 110, 0.14), rgba(200, 169, 110, 0.04));
}

:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-pv-callout strong {
    color: inherit;
}

:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-pv-comparison__item {
    background: var(--hk-parchment-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-pv-figure__frame {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(200, 169, 110, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Inline body figure with dual light/dark layers ──
   Inline article illustrations (infographics, diagrams). Light + dark imgs
   stack in the same CSS Grid cell so the wrapper sizes to max(lightHeight,
   darkHeight) — eliminates overflow when the two source files have slightly
   different aspect ratios (the prior absolute-overlay approach let the dark
   img bleed past the wrapper into the following paragraph).
*/
:is(.hk-pv-body, .pv-reader__body) .hk-pv-inline-figure {
    margin: var(--hk-space-xl) auto;
    max-width: 540px;
    text-align: center;
}
:is(.hk-pv-body, .pv-reader__body) .hk-pv-inline-figure .hk-inline-stack {
    display: grid;
    width: 100%;
}
:is(.hk-pv-body, .pv-reader__body) .hk-pv-inline-figure .hk-inline-stack img {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    align-self: start;
}
:is(.hk-pv-body, .pv-reader__body) .hk-pv-inline-figure .hk-inline-stack__dark {
    opacity: 0;
    transition: opacity 0.55s var(--hk-ease);
    will-change: opacity;
}
:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-pv-inline-figure .hk-inline-stack__light {
    opacity: 0;
    transition: opacity 0.55s var(--hk-ease);
}
:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-pv-inline-figure .hk-inline-stack__dark {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    :is(.hk-pv-body, .pv-reader__body) .hk-pv-inline-figure .hk-inline-stack__light,
    :is(.hk-pv-body, .pv-reader__body) .hk-pv-inline-figure .hk-inline-stack__dark {
        transition: none;
    }
}

/* ── Premium ordered list — mirrors .hk-pv-results card design ──
   Outer glass card with gold left bar; inner items are stacked sub-cards
   with their own subtle glass; gold serif numerals (decimal-leading-zero). */
:is(.hk-pv-body, .pv-reader__body) .hk-premium-list {
    list-style: none;
    counter-reset: premium-counter;
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: var(--hk-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 169, 110, 0.22);
    border-inline-start: 3px solid var(--hk-gold);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(27, 42, 74, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
:is(.hk-pv-body, .pv-reader__body) .hk-premium-list li {
    counter-increment: premium-counter;
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    border-radius: 8px;
    font-family: var(--hk-font-body);
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--hk-body);
    margin: 0;
}
:is(.hk-pv-body, .pv-reader__body) .hk-premium-list li::before {
    content: counter(premium-counter, decimal-leading-zero);
    font-family: var(--hk-font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--hk-gold);
    flex-shrink: 0;
    min-width: 2.2rem;
    line-height: 1;
}
@media (max-width: 768px) {
    :is(.hk-pv-body, .pv-reader__body) .hk-premium-list {
        padding: 1.25rem 1.25rem;
    }
}
/* Dark mode: invert glass tints to white-on-navy */
:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-premium-list {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(200, 169, 110, 0.3);
}
:root[data-theme="dark"] :is(.hk-pv-body, .pv-reader__body) .hk-premium-list li {
    background: rgba(255, 255, 255, 0.04);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) :is(.hk-pv-body, .pv-reader__body) .hk-premium-list {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(200, 169, 110, 0.3);
    }
    :root:not([data-theme="light"]) :is(.hk-pv-body, .pv-reader__body) .hk-premium-list li {
        background: rgba(255, 255, 255, 0.04);
    }
}
