/* ==========================================================================
   Paṇatā v2.0.0 RC3 Gold Master
   Final editorial consistency and responsive refinement layer.
   This file intentionally overrides prior v2.x presentation rules without
   replacing the approved visual system.
   ========================================================================== */

/* ---------- Shared editorial labels ---------- */
.publication-kicker,
.v2-section-mark,
.editorial-kicker,
.chapter-label {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  min-height: 18px;
  line-height: 1;
}

.publication-kicker i,
.v2-section-mark i,
.editorial-kicker i {
  flex: 0 0 72px;
  width: 72px;
  height: 1px;
}

.publication-kicker span,
.v2-section-mark span,
.editorial-kicker span,
.chapter-label {
  white-space: nowrap;
}

/* ---------- Homepage: preserve approved composition ---------- */
.publication-home .v2-home-copy h1,
.publication-home .v2-home-copy h1 em {
  text-wrap: balance;
}

.publication-home .v2-home-art figcaption,
.publication-home .v2-home-art [class*="value"] {
  font-size: clamp(11px, .78vw, 14px);
  letter-spacing: .18em;
}

/* ---------- Philosophy: one chapter-header system ---------- */
.v2-ph-page .v2-section-mark,
.v2-ph-page .publication-kicker {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* Force Technology / Chapter VII back into the same editorial grid */
.v2-ph-page [class*="technology"] .v2-section-mark,
.v2-ph-page [class*="technology"] .publication-kicker,
.v2-ph-page section:nth-of-type(7) .v2-section-mark,
.v2-ph-page section:nth-of-type(7) .publication-kicker {
  justify-content: flex-start !important;
  align-self: start !important;
  justify-self: start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

/* Prevent headline collisions and over-scaling */
.v2-ph-page h1,
.v2-ph-page h2,
.v2-ph-page [class*="headline"] {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

/* Stewardship label must never collide with the main declaration */
.v2-ph-page [class*="steward"] [class*="kicker"],
.v2-ph-page [class*="steward"] [class*="eyebrow"],
.v2-ph-page [class*="steward"] .v2-section-mark {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  margin-bottom: 28px !important;
  z-index: 2;
}

/* Memory of an Exchange: equal stages, restrained final emphasis */
.v2-memory-figure {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.v2-memory-figure > * {
  min-width: 0;
}

.v2-memory-figure > *:last-child {
  transform: none !important;
  font-size: 1em !important;
}

.v2-memory-figure > *:last-child h3,
.v2-memory-figure > *:last-child [class*="title"] {
  font-size: 1.08em !important;
}

/* Technology quote: preserve authority without oversized clipping */
.v2-ph-page [class*="technology"] [class*="quote"],
.v2-ph-page [class*="technology"] blockquote {
  font-size: clamp(44px, 4.7vw, 76px) !important;
  line-height: .98 !important;
  text-wrap: balance;
}

/* ---------- Manifesto: single numeral and declaration system ---------- */
.v2-manifesto .manifesto-number,
.v2-manifesto .v2-mf-number,
.v2-manifesto .v2-declaration-number,
.v2-manifesto [class*="declaration-number"],
.v2-manifesto [class*="manifesto-number"] {
  position: absolute !important;
  top: 48px !important;
  right: 72px !important;
  margin: 0 !important;
  font-size: clamp(150px, 12.7vw, 220px) !important;
  font-weight: 500 !important;
  line-height: .82 !important;
  opacity: .08 !important;
  letter-spacing: -.06em !important;
  transform: none !important;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.v2-manifesto .v2-declaration,
.v2-manifesto [class*="declaration"] {
  position: relative;
  isolation: isolate;
}

/* Five-percent reduction from the prior display scale */
.v2-manifesto .v2-declaration h1,
.v2-manifesto .v2-declaration h2,
.v2-manifesto [class*="declaration"] h1,
.v2-manifesto [class*="declaration"] h2 {
  font-size: clamp(58px, 6.55vw, 105px) !important;
  line-height: .99 !important;
  letter-spacing: -.035em;
  max-width: 15.5ch;
  text-wrap: balance;
  position: relative;
  z-index: 1;
}

.v2-manifesto .v2-declaration p,
.v2-manifesto [class*="declaration"] p {
  line-height: 1.65 !important;
  max-width: 58ch;
  position: relative;
  z-index: 1;
}

/* ---------- Research: remain deliberately non-disclosive ---------- */
.research-page [class*="process"],
.research-article-page [class*="process"] {
  overflow: hidden;
}

.research-page [class*="process"] h2,
.research-article-page [class*="process"] h2 {
  text-wrap: balance;
}

.research-page [class*="card"],
.research-article-page [class*="card"] {
  min-width: 0;
}

/* ---------- Global editorial rhythm ---------- */
.publication-home section,
.v2-ph-page section,
.v2-manifesto section,
.research-page section,
.research-article-page section {
  scroll-margin-top: 32px;
}

.publication-home p,
.v2-ph-page p,
.v2-manifesto p,
.research-page p,
.research-article-page p {
  orphans: 3;
  widows: 3;
}

/* ---------- Laptop refinement ---------- */
@media (max-width: 1280px) {
  .v2-manifesto .manifesto-number,
  .v2-manifesto .v2-mf-number,
  .v2-manifesto .v2-declaration-number,
  .v2-manifesto [class*="declaration-number"],
  .v2-manifesto [class*="manifesto-number"] {
    right: 48px !important;
  }

  .v2-manifesto .v2-declaration h1,
  .v2-manifesto .v2-declaration h2,
  .v2-manifesto [class*="declaration"] h1,
  .v2-manifesto [class*="declaration"] h2 {
    font-size: clamp(54px, 6.15vw, 92px) !important;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .publication-kicker,
  .v2-section-mark,
  .editorial-kicker {
    gap: 12px;
  }

  .publication-kicker i,
  .v2-section-mark i,
  .editorial-kicker i {
    flex-basis: 48px;
    width: 48px;
  }

  .v2-memory-figure {
    grid-template-columns: 1fr 1fr;
  }

  .v2-manifesto .manifesto-number,
  .v2-manifesto .v2-mf-number,
  .v2-manifesto .v2-declaration-number,
  .v2-manifesto [class*="declaration-number"],
  .v2-manifesto [class*="manifesto-number"] {
    top: 28px !important;
    right: 28px !important;
    font-size: clamp(112px, 22vw, 160px) !important;
  }

  .v2-manifesto .v2-declaration h1,
  .v2-manifesto .v2-declaration h2,
  .v2-manifesto [class*="declaration"] h1,
  .v2-manifesto [class*="declaration"] h2 {
    font-size: clamp(44px, 8.5vw, 72px) !important;
    max-width: 17ch;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 620px) {
  .publication-kicker,
  .v2-section-mark,
  .editorial-kicker {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .publication-kicker span,
  .v2-section-mark span,
  .editorial-kicker span,
  .chapter-label {
    white-space: normal;
  }

  .v2-memory-figure {
    grid-template-columns: 1fr;
  }

  .v2-memory-figure > * {
    min-height: 180px;
  }

  .v2-manifesto .manifesto-number,
  .v2-manifesto .v2-mf-number,
  .v2-manifesto .v2-declaration-number,
  .v2-manifesto [class*="declaration-number"],
  .v2-manifesto [class*="manifesto-number"] {
    top: 20px !important;
    right: 18px !important;
    font-size: 104px !important;
  }

  .v2-manifesto .v2-declaration h1,
  .v2-manifesto .v2-declaration h2,
  .v2-manifesto [class*="declaration"] h1,
  .v2-manifesto [class*="declaration"] h2 {
    font-size: clamp(38px, 12vw, 54px) !important;
    line-height: 1.02 !important;
  }

  .v2-ph-page [class*="technology"] [class*="quote"],
  .v2-ph-page [class*="technology"] blockquote {
    font-size: clamp(38px, 11vw, 54px) !important;
  }
}
