/* =====================================================================
   Pharmaville Editorial · Variant A "Editorial Restraint"
   Scope: everything is under .pv-editorial so MyListing styles aren't
   affected on non-editorial pages.
   Spec §6.2.
   ===================================================================== */

/* Container reset to avoid MyListing's default .container padding fighting us */
.pv-editorial-section { padding: 32px 0; background: #fff; }
.pv-editorial-section > .container { max-width: none; padding: 0; }

.pv-editorial {
  font-family: Georgia, "Times New Roman", serif;
  color: #1a1a1a;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── HERO ─────────────────────────────────────────────────────────── */

.pv-editorial .pv-hero { margin-bottom: 36px; }
.pv-editorial .pv-hero-meta { max-width: 940px; margin: 0 auto 12px; padding: 0; }

.pv-editorial .pv-kicker {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c2272d;
  margin: 0 0 14px;
}
.pv-editorial .pv-pubdate {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6b6b6b;
  margin: 0 0 10px;
}

.pv-editorial .pv-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: #1a1a1a;
  margin: 0 0 18px;
}

.pv-editorial .pv-dek {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: #4a4a4a;
  margin: 0 0 22px;
}

.pv-editorial .pv-byline {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #6b6b6b;
  padding: 0 0 16px;
  border-bottom: 1px solid #1a1a1a;
  margin: 0 0 28px;
}
.pv-editorial .pv-byline strong { color: #1a1a1a; font-weight: 700; }
.pv-editorial .pv-byline a { color: #6b6b6b; text-decoration: none; }
.pv-editorial .pv-byline a:hover { color: #1a1a1a; }

.pv-editorial .pv-hero-image { margin: 0 0 8px; }
.pv-editorial .pv-hero-image .pv-hero-img,
.pv-editorial .pv-hero-image img { width: 100%; height: auto; display: block; }
.pv-editorial .pv-hero-image figcaption {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px; color: #6b6b6b; text-align: left;
  margin-top: 6px; font-style: italic;
}

/* ── BODY ─────────────────────────────────────────────────────────── */

.pv-editorial .pv-body { max-width: 880px; margin: 0 auto; }

.pv-editorial .pv-lead-wrap { margin: 0 0 8px; }
.pv-editorial .pv-lead-wrap p { margin: 0 0 18px; }

.pv-editorial .pv-lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px; line-height: 1.55;
  margin: 0 0 18px;
  color: #1a1a1a;
}
.pv-editorial .pv-lead::first-letter {
  font-size: 56px; float: left; line-height: 0.92;
  padding: 4px 8px 0 0; font-weight: 700;
}

.pv-editorial p,
.pv-editorial .pv-section-body,
.pv-editorial .pv-section-body p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px; line-height: 1.65;
  margin: 0 0 18px;
  color: #1a1a1a;
}
.pv-editorial a { color: #0066cc; text-decoration: underline; }
.pv-editorial a:hover { color: #003d7a; }

/* Inline lists in body content (section bodies, fallback the_content, lead).
   Parent theme resets ul {list-style:none; padding:0} for menus — restore here. */
.pv-editorial .pv-section-body ul,
.pv-editorial .pv-lead-wrap ul,
.pv-editorial .pv-fallback-content ul { list-style: disc outside; }
.pv-editorial .pv-section-body ol,
.pv-editorial .pv-lead-wrap ol,
.pv-editorial .pv-fallback-content ol { list-style: decimal outside; }
.pv-editorial .pv-section-body ul,
.pv-editorial .pv-section-body ol,
.pv-editorial .pv-lead-wrap ul,
.pv-editorial .pv-lead-wrap ol,
.pv-editorial .pv-fallback-content ul,
.pv-editorial .pv-fallback-content ol {
  margin: 0 0 18px;
  padding-left: 28px;
}
.pv-editorial .pv-section-body li,
.pv-editorial .pv-lead-wrap li,
.pv-editorial .pv-fallback-content li {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px; line-height: 1.65;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.pv-editorial h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px; font-weight: 700; line-height: 1.22;
  margin: 36px 0 14px; color: #1a1a1a;
  letter-spacing: -0.005em;
}
.pv-editorial h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px; font-weight: 700;
  margin: 24px 0 10px; color: #1a1a1a;
}

/* ── QUOTE BLOCK ──────────────────────────────────────────────────── */

.pv-editorial .pv-quote {
  margin: 32px 0;
  padding: 18px 0 18px 28px;
  border-left: 3px solid #1a1a1a;
  display: flex; gap: 24px;
  align-items: center;
}
/* MyListing's frontend.css applies styles to every `blockquote p` — uppercase
   center letter-spaced bold + a Material Icons quote mark via ::before. Reset
   those overrides inside our editorial quote so the design holds. */
.pv-editorial .pv-quote::before,
.pv-editorial .pv-quote::after,
.pv-editorial .pv-quote p::before,
.pv-editorial .pv-quote p::after { content: none !important; }
.pv-editorial .pv-quote .pv-quote-body,
.pv-editorial .pv-quote .pv-quote-speaker {
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
}

.pv-editorial .pv-quote-photo {
  flex: 0 0 25%;
  max-width: 25%;
}
.pv-editorial .pv-quote-photo .pv-quote-photo-img {
  width: 100%; height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.pv-editorial .pv-quote-text { flex: 1; }
/* Decorative marks frame ONLY the quote body — the speaker line sits outside.
   Selectors are intentionally specific (3 classes) and use !important so they
   beat the .pv-quote p::before/::after suppression rule above. */
.pv-editorial .pv-quote .pv-quote-body { position: relative; padding: 6px 16px 6px 22px; }
.pv-editorial .pv-quote .pv-quote-body::before {
  content: "\201C" !important;
  position: absolute;
  top: -26px; left: -12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px; line-height: 1;
  color: #c2272d;
  opacity: 1;
  pointer-events: none;
}
.pv-editorial .pv-quote .pv-quote-body::after {
  content: "\201D" !important;
  position: absolute;
  bottom: -14px; right: -4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px; line-height: 1;
  color: #c2272d;
  opacity: 1;
  pointer-events: none;
}
.pv-editorial .pv-quote-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px; line-height: 1.42;
  font-style: italic;
  color: #1a1a1a;
  margin: 0 0 12px;
}
.pv-editorial .pv-quote-speaker {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 18px; line-height: 1.65;
  color: #6b6b6b; margin: 0;
}
.pv-editorial .pv-quote-speaker strong { color: #1a1a1a; font-weight: 700; }

/* ── STAT BLOCK ───────────────────────────────────────────────────── */

.pv-editorial .pv-stat {
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  text-align: center;
}
.pv-editorial .pv-stat-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px; font-weight: 700; line-height: 1;
  color: #c2272d; margin-bottom: 8px;
}
.pv-editorial .pv-stat-caption {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px; letter-spacing: 0.02em; color: #6b6b6b;
}

/* ── IMAGE FIGURE ─────────────────────────────────────────────────── */

.pv-editorial .pv-figure { margin: 28px 0; }
.pv-editorial .pv-figure .pv-figure-img,
.pv-editorial .pv-figure img { width: 100%; height: auto; display: block; }
.pv-editorial .pv-figure figcaption {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 11px; font-style: italic; color: #6b6b6b;
  text-align: center; margin-top: 8px;
}

/* ── BULLET LIST BLOCK ────────────────────────────────────────────── */

.pv-editorial .pv-list { margin: 22px 0; }
.pv-editorial .pv-list ul { margin: 0; padding-left: 24px; }
.pv-editorial .pv-list li {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px; line-height: 1.65; margin: 0 0 8px;
  color: #1a1a1a;
}

/* ── CTA BANNER ───────────────────────────────────────────────────── */

.pv-editorial .pv-cta-banner { margin: 36px 0 16px; }
.pv-editorial .pv-cta-banner-link {
  display: block;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  border-radius: 12px;
}
.pv-editorial .pv-cta-banner-link:hover { text-decoration: none; }
.pv-editorial .pv-cta-banner-img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.pv-editorial .pv-cta-banner-link:hover .pv-cta-banner-img { transform: scale(1.02); }

/* ── RELATED READING (card grid → mobile carousel) ────────────────── */

.pv-editorial .pv-related { margin: 32px 0 16px; padding-top: 18px; border-top: 1px solid #d0d0d0; }
.pv-editorial .pv-related h3 {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #6b6b6b; font-weight: 600; margin: 0 0 16px;
}
.pv-editorial .pv-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pv-editorial .pv-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.pv-editorial .pv-related-thumb {
  margin: 0 0 12px;
  overflow: hidden;
  background: #f5f3ee;
  aspect-ratio: 16 / 9;
}
.pv-editorial .pv-related-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.pv-editorial .pv-related-card:hover .pv-related-thumb img {
  transform: scale(1.04);
}
.pv-editorial .pv-related-date {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #6b6b6b;
  display: block; margin: 0 0 6px;
}
.pv-editorial .pv-related-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px; line-height: 1.3; font-weight: 700;
  color: #1a1a1a; margin: 0;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pv-editorial .pv-related-card:hover .pv-related-title {
  color: #c2272d;
}

/* ── TAGS LIST ────────────────────────────────────────────────────── */

.pv-editorial .pv-tags {
  margin: 28px 0 0; padding-top: 18px;
  border-top: 1px solid #d0d0d0;
}
.pv-editorial .pv-tags-label {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #6b6b6b; font-weight: 600;
  display: inline-block; margin-right: 12px; vertical-align: middle;
}
.pv-editorial .pv-tags a {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px; font-weight: 500;
  color: #1a1a1a; text-decoration: none;
  padding: 4px 12px; margin: 4px 6px 4px 0;
  background: #f5f3ee; border: 1px solid #e0dcd2;
  border-radius: 99px;
}
.pv-editorial .pv-tags a:hover {
  background: #1a1a1a; color: #fff; border-color: #1a1a1a;
}

/* ── PAGE NAV + POST NAV ──────────────────────────────────────────── */

.pv-editorial .pv-page-pages {
  margin: 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px; color: #6b6b6b;
}
.pv-editorial .pv-postnav {
  display: flex; justify-content: space-between;
  margin: 32px 0 0; padding-top: 18px;
  border-top: 1px solid #d0d0d0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 11px;
}
.pv-editorial .pv-postnav a { color: #6b6b6b; text-decoration: none; }
.pv-editorial .pv-postnav a:hover { color: #1a1a1a; }

/* ── COMMENTS WRAPPER ─────────────────────────────────────────────── */

.pv-editorial-comments { padding: 32px 0; background: #f9f8f4; }

/* ── MOBILE BREAKPOINT (≤640px) ───────────────────────────────────── */

@media (max-width: 640px) {
  .pv-editorial { padding: 0 22px; }
  .pv-editorial .pv-hero h1 { font-size: 32px; line-height: 1.16; }
  .pv-editorial .pv-lead { font-size: 17px; }
  .pv-editorial .pv-lead::first-letter { font-size: 44px; }
  .pv-editorial p,
  .pv-editorial .pv-section-body p,
  .pv-editorial .pv-list li { font-size: 16px; }
  .pv-editorial h2 { font-size: 23px; margin: 28px 0 12px; }
  /* Quote: stack as photo → quote → speaker on mobile. */
  .pv-editorial .pv-quote {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
    gap: 14px;
  }
  .pv-editorial .pv-quote-photo {
    flex: 0 0 auto;
    max-width: 100%;
    width: 120px;
  }
  .pv-editorial .pv-quote-text { width: 100%; }
  .pv-editorial .pv-quote .pv-quote-body { padding: 4px 14px 4px 22px; }
  .pv-editorial .pv-quote .pv-quote-body::before { font-size: 52px; top: -22px; left: -10px; }
  .pv-editorial .pv-quote .pv-quote-body::after  { font-size: 52px; bottom: -10px; right: -2px; }
  .pv-editorial .pv-quote-body { font-size: 18px; }
  .pv-editorial .pv-stat-number { font-size: 36px; }

  /* Related Reading: 3-up grid → swipeable card rail with peek */
  .pv-editorial .pv-related-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -22px;
    padding: 4px 22px 16px;
    scroll-padding-left: 22px;
  }
  .pv-editorial .pv-related-grid::-webkit-scrollbar { display: none; }
  .pv-editorial .pv-related-grid { scrollbar-width: none; }
  .pv-editorial .pv-related-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .pv-editorial .pv-related-title { font-size: 16px; }
}

/* ── ACCESSIBILITY: REDUCED MOTION ────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .pv-editorial .pv-cta-banner-img,
  .pv-editorial .pv-related-thumb img { transition: none; }
  .pv-editorial .pv-cta-banner-link:hover .pv-cta-banner-img,
  .pv-editorial .pv-related-card:hover .pv-related-thumb img { transform: none; }
}

/* ── ACCESSIBILITY: KEYBOARD FOCUS ────────────────────────────────── */

.pv-editorial a:focus-visible,
.pv-editorial .pv-related-card:focus-visible,
.pv-editorial .pv-cta-banner-link:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 3px;
}
.pv-editorial .pv-cta-banner-link:focus-visible { outline-offset: 4px; }
.pv-editorial .pv-tags a:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
