/*
 * ZAATERRA — Approved typography-only update
 * 06 November 2026
 * Scope: justify prose throughout the website; turn the existing
 * Introduction copy into a centred, book-preface reading column.
 * No font-family, colour, navigation, image or other layout changes.
 */

/* 1. JUSTIFY LONG-FORM BODY PARAGRAPHS THROUGHOUT THE SITE
 * Apply class="za-editorial-copy" to the existing text container of each
 * prose section (Home, Overview, Mayah, Qavaris, Eternum, ZAZNI,
 * Leadership, Investors, and other long-form pages).
 * Do NOT attach to menus, cards, buttons, captions, or headings.
 */
.za-editorial-copy p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* 2. INTRODUCTION — CENTERED BOOK-PREFACE PRESENTATION
 * Retain all existing copy and typography.
 * Add "za-introduction-preface" to the wrapper containing the paragraphs.
 * This class also handles justification without requiring an extra class.
 */
.za-introduction-preface {
  box-sizing: border-box;
  width: min(100%, 720px);
  margin-inline: auto;
  padding-inline: 18px;
}

.za-introduction-preface p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  line-height: 1.75;
  margin-block: 0 1.4em;
}

/* Quiet quotation marks: separate from the copy, not a new heading. */
.za-introduction-preface::before,
.za-introduction-preface::after {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(54px, 6vw, 76px);
  line-height: 0.9;
  opacity: 0.45;
}

.za-introduction-preface::before {
  content: "\201C";
  text-align: left;
  margin-bottom: 26px;
}

.za-introduction-preface::after {
  content: "\201D";
  text-align: right;
  margin-top: 10px;
}

/* 3. SMALL SCREENS: prevent awkward justified whitespace. */
@media (max-width: 767px) {
  .za-editorial-copy p,
  .za-introduction-preface p {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

  .za-introduction-preface {
    padding-inline: 0;
  }
}

/* Integration with the site's existing, more specific Introduction rules. */
.story-purpose-led>.story-content.za-introduction-preface{
 width:min(88%,720px);max-width:720px;padding-inline:18px;margin-inline:auto;
}
.story-purpose-led .za-introduction-preface>p[class]{
 text-align:justify;hyphens:auto;-webkit-hyphens:auto;line-height:1.75;margin-block:0 1.4em;
}
/* Preserve labels, notes and short standalone statements inside prose containers. */
.za-editorial-copy p.eyebrow,.za-editorial-copy p.development-note,
.za-editorial-copy p.qavaris-home-signature,.za-editorial-copy p.leadership-principle-closing{
 text-align:left;hyphens:none;-webkit-hyphens:none;
}
@media(max-width:767px){
 .story-purpose-led>.story-content.za-introduction-preface{padding-inline:0}
 .story-purpose-led .za-introduction-preface>p[class]{text-align:left;hyphens:none;-webkit-hyphens:none}
}

/* Introduction remains justified on mobile at the owner's request. */
@media(max-width:767px){
 .story-purpose-led .za-introduction-preface>p[class]{
  text-align:justify;text-align-last:left;text-justify:inter-word;
  hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word;
 }
}

/* Mobile prose throughout the site, including summaries and introductions. */
@media(max-width:767px){
 body main p:not(.eyebrow):not(.pillar-module-sub):not(.business-category):not(.office-operating-name):not(.development-note):not(.story-signature):not(.qavaris-home-signature),
 body .footer-disclosures p{
  text-align:justify;text-align-last:left;text-justify:inter-word;
  hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word;
 }
}

/* Keep natural word spacing in the short homepage purpose paragraph. */
.home .home-perspective-copy > p.home-purpose-standard {
  text-align: start;
  hyphens: none;
  -webkit-hyphens: none;
}
