/* Keep meaningful names together without making whole headings unbreakable. */
.audit-phrase { display: inline-block; }
.section-heading h2,
.business-feature h3 { text-wrap: balance; }
.page-hero-copy > p:not(.eyebrow),
.gallery-lead,
.professional-lead { text-wrap: pretty; }

/* Plain reading remains complete when enhancement is unavailable. Controls
   appear only after that particular interaction has mounted successfully. */
.growth-reader:not([data-reading-ready]),
#motion-toggle:not([data-motion-ready]),
.page-world [data-world-switch]:not([data-world-ready]) [data-world-select] {
  display: none !important;
}

/* Complete the disclosure: newly added controls must also close with its panel. */
.scene-palette:not([open]) > :not(summary) { display: none !important; }
.scene-palette[open] { background: #f8f4ec; border-radius: 3px; }

/* Slightly deeper text tones on the existing paper surfaces. */
.growth-scroll-hint,
.growth-handover-example dt,
.growth-metric-path dt,
.growth-model-controls [data-growth-model-status] { color: #4b6344; }
#growth-operating-model .growth-card dl dt { color: #4b6344; }
.growth-guarantee .eyebrow { color: #684d73; }
body[data-page="for-business"] .professional-page dt { color: #80593c; }
body[data-page="quality"] .professional-page { --professional-muted: #53645e; }
.page-world .world-skill-field details > div > p:first-child { color: #4a634e; }
body[data-page="play"] .connection-garden :is(.garden-eyebrow,.garden-keyboard-help,.garden-console-kicker,.garden-journal-count,.garden-closing),
body[data-page="play"] .connection-garden .garden-invitation > p,
body[data-page="play"] .connection-garden .garden-session p,
body[data-page="play"] .connection-garden .garden-artwork-foot > p,
body[data-page="play"] .connection-garden .garden-secondary-actions > button[data-garden-new] { color: #4b634e; }

@media screen and (max-width: 359px) {
  .growth-network-facts dd { font-size: 30px; }
}

/* Audit refinements: the reading control should enlarge each promised body-text
   family, while display copy and the existing art keep their original scale. */
@media screen {
  /* The document already reserves the sticky header via scroll-padding.
     A second target margin used to leave roughly another header of blank space. */
  html body main [id],
  html body main [id]:target {
    scroll-margin-block-start: 0;
  }

  .growth-reading-expanded .content-section .prose > p:not(.eyebrow):not(.large-copy),
  .growth-reading-expanded .service-map-card .service-card-issue,
  .growth-reading-expanded .professional-page .professional-principle-copy > p:not(.professional-confirmation-points) {
    font-size: 17px;
    line-height: 2.1;
  }
}

@media screen and (max-width: 767px) {
  .growth-reading-expanded .content-section .prose > p:not(.eyebrow):not(.large-copy),
  .growth-reading-expanded .service-map-card .service-card-issue,
  .growth-reading-expanded .professional-page .professional-principle-copy > p:not(.professional-confirmation-points) {
    font-size: 16px;
    line-height: 2.1;
  }

  /* A 16px input font avoids focus zoom on iPhone without disabling zoom. */
  .growth-route-form select {
    font-size: 16px;
  }
}

/* When enhancement fails, the complete tab content remains ordinary reading. */
html:not(.tabs-ready) [data-tabs] .tab-panel[hidden],
html:not(.experience-ready) [data-growth-explorer] .growth-stage-panel[hidden] {
  display: grid !important;
}
html:not(.tabs-ready) [data-tabs] .tab-list,
html:not(.experience-ready) [data-growth-explorer] .growth-stage-list {
  display: none;
}

/* Screens retain their horizontal table scroller. On paper every column must
   fit the printable width, including the four-column support comparison. */
@media print {
  .growth-table-wrap {
    max-width: 100%;
    overflow: visible;
  }

  .growth-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 9pt;
  }

  .growth-table caption {
    padding: 8pt;
    font-size: 10pt;
    line-height: 1.6;
    text-align: left;
  }

  .growth-table th,
  .growth-table td,
  .growth-table tbody th {
    min-width: 0;
    max-width: none;
    padding: 8pt 6pt;
    font-size: 9pt;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
  }

  .growth-table thead {
    display: table-header-group;
  }

  .growth-table tr {
    break-inside: avoid;
  }

  .growth-reader,
  .growth-scroll-hint {
    display: none !important;
  }
}
