/* navigating-ceaseless-certainty-change-evolving-world.html — page-only tweaks on top of pages.css.
   Prefix ncc-. Tokens only (no hex, no new px scale). */

/* Hero: the long article title sets in 3-4 lines instead of 5 */
.ncc-hero .pg-hero__title { max-width: 20ch; }

/* Executive summary: key points sit on a white card so the light band has a clear focal block */
.ncc-points {
  padding: var(--card-pad);
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-soft);
}

/* Two strategies: keep the pair centred on wide screens */
.ncc-pillars { max-width: var(--container-text); margin-inline: auto; }

/* Protection: the aside (title + photo) stays in view while the six parts scroll past */
@media (min-width: 1069px) {
  .ncc-protect__aside { position: sticky; top: calc(var(--header-h) + var(--space-7)); }
}

/* The short line under part 04 reads as the article's own emphasis */
.ncc-note { font-weight: 600; color: var(--color-blue-700); }

/* Quote credit: name only, centred */
.ncc-quote .pg-who { text-align: center; }

/* Related posts: Playbook covers are 1024x538 with the title set in the image, so show them whole */
.ncc-more .pg-card__media { aspect-ratio: 1024 / 538; }

@media (max-width: 734px) {
  .ncc-points { padding: var(--card-pad-sm); }
  .ncc-more .pg-card--media { padding: 0; }   /* pages.css phone card padding otherwise insets the media card */
}

/* ===== Fix round 1 ===== */

/* Article bands: Playbook-post reading layout. Sticky "On this page" list left, 980 text column right,
   both on the container edge so every band starts at the same x. */
.ncc-read .pg-article { max-width: var(--container-text); margin-inline: 0; }
.ncc-read .pg-article__lead { font-size: var(--fs-lead) !important; }
.ncc-toc { display: none; }
@media (min-width: 1069px) {
  .ncc-read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--container-text)); gap: var(--space-9); align-items: start; }
  .ncc-toc { display: block; position: sticky; top: calc(var(--header-h) + var(--space-7)); }
  .ncc-toc__list { margin-top: var(--space-4); border-left: 1px solid var(--color-hairline); }
  .ncc-toc__list a {
    display: flex; align-items: center; min-height: 44px; padding-left: var(--space-5); margin-left: -1px;
    border-left: 2px solid transparent; color: var(--color-text-muted); font-size: var(--fs-small);
    transition: color var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
  }
  .ncc-toc__list a:hover, .ncc-toc__list a:focus-visible { color: var(--color-blue-700); border-left-color: var(--color-yellow-400); }
}
@media (max-width: 1068px) { .ncc-read__spacer { display: none; } }
.pg-article h2[id] { scroll-margin-top: calc(var(--header-h) + var(--space-6)); }

/* Adaptation: three equal cards, no empty lower halves */
.ncc-adapt .pg-card { min-height: 0; }
.ncc-adapt .pg-card .link-underline { margin-top: auto; }

/* Tablet: hero photo spans the container in a landscape crop; related posts stack as horizontal cards */
@media (min-width: 735px) and (max-width: 1068px) {
  .ncc-hero .pg-hero__media { max-width: none; justify-self: stretch; }
  .ncc-hero .pg-hero__media .pg-photo { aspect-ratio: 1020 / 776; }
  .ncc-more { grid-template-columns: minmax(0, 1fr); }
  .ncc-more > li { grid-column: auto; }
  .ncc-more .pg-card--media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .ncc-more .pg-card--media .pg-card__media { height: 100%; }
}

/* Phone: one-line breadcrumb, shorter related cards */
@media (max-width: 734px) {
  .ncc-crumb-home { display: none; }
  .ncc-hero .pg-crumbs { flex-wrap: nowrap; }
  .ncc-hero .pg-crumbs li { white-space: nowrap; min-width: 0; }
  .ncc-hero .pg-crumbs li:last-child { overflow: hidden; text-overflow: ellipsis; display: block; }
  .ncc-more .pg-card__title { display: none; }
}

/* ===== sitewide fix 2026-11-16 (tester checklist, group "other") ===== */
/* sitewide fix 2026-11-16 (bug 9): headings, card titles and pull quotes outside the hero use plain wrap, so line 1
   fills its column (balance left 58-83% lines with room for the next word at 1069-1440). */
html body main :is(h2, h3, .pg-pull p):not(section[class*="hero"] *) { text-wrap: wrap !important; }
/* sitewide fix 2026-11-16 (bug 9): card text, step lines, summary points and article paragraphs: plain wrap where
   "pretty" pulled a word down (77-84% lines at 320-1440) */
html body main :is(.pg-card__text, .pg-step__text, .ncc-points > li, .pg-article > p):not(section[class*="hero"] *) { text-wrap: wrap !important; }
/* sitewide fix 2026-11-16 (bug 9): CTA title on desktop: one line across the text column (448px cap = 2 lines at 78%) */
@media (min-width: 1069px) { html body main .pg-cta__card .pg-cta__title { max-width: none; } }
/* sitewide fix 2026-11-16 (bug 8): "On this page" links also underline on hover + keyboard focus (colour + bar only before) */
@media (min-width: 1069px) {
  .ncc-toc__list a:hover, .ncc-toc__list a:focus-visible {
    text-decoration: underline; text-decoration-color: var(--color-yellow-400); text-decoration-thickness: 2px; text-underline-offset: 4px;
  }
}
/* sitewide fix 2026-11-16 (rule D14): the 3:2 desktop crop cut the right-hand man's face; 34% keeps all faces whole */
@media (min-width: 1069px) { #protection .pg-photo { --pg-focus: 34% 40% !important; } }
