/* ══════════════════════════════════════════════════════════════════════════
   PLAYBOOK — shared reading surface (AX system, 2026-09-16)
   Loaded via BaseLayout additionalCss by /playbook/, /playbook/[chapter]/ and
   /playbook/industry/[industry]/. Holds ONLY what those three templates share:

     1. the warm off-white ground and the reading-progress bar
     2. the 760px article column: parallax hero + fact caption, the rail TOC,
        numbered sections, the .ax-pb-body prose rhythm (same values as the
        blog's .ax-bd-body), the citable sentence, serving line, related links
     3. the pb-* furniture classes that the chapter/industry data HTML hard-codes
        (tables, bars, callouts, sample-reply quotes, checklists, phases)

   Page-only layout (the hub's chapter cards and trade row) lives in that
   page's own <style is:global>. No element is styled in both places.

   Light on purpose: these are long-form reads (~89% light, approved by Ram
   2026-08-17). Ground #fbfaf8, ink #1c1917. Orange #ff9200 is a fill or rule
   only; orange TEXT on this ground is var(--ax-otext) #9c4f00.

   Loads BEFORE ax.css, so every prose rule is prefixed .ax-pb to out-rank the
   .ax scope resets (.ax p { margin: 0 }, .ax ul { list-style: none }).
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Ground + progress ──────────────────────────────────────────────── */
body.pb-page { background: #fbfaf8; }
.pb-page .body-wrapper { background: #fbfaf8; }
.ax-pb-ground { background: #fbfaf8; }
.pb-page ::selection { background: #ffe0b0; color: #1c1917; }
.pb-page :is(table, .ax-pb-num, .pb-bar-num) { font-variant-numeric: tabular-nums; }

.pb-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100000; pointer-events: none; }
.pb-progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff9200 0%, #ff6b00 100%); box-shadow: 0 0 12px rgba(255, 146, 0, .5); }

/* ── 2. Article column ─────────────────────────────────────────────────── */
.ax-pb { padding-bottom: clamp(72px, 9vw, 128px); }
.ax-pb-col { max-width: 760px; margin-inline: auto; }

/* hero: 125% bleed frame on wide screens, parallax image inside, the FACT caption under it */
.ax-pb .ax-pb-hero { margin: 0; }
.ax-pb .ax-pb-hero-frame { display: block; position: relative; width: 100%; height: clamp(300px, 46vw, 520px); border-radius: 6px; overflow: hidden; background: var(--ax-warm); }
@media (min-width: 1080px) { .ax-pb .ax-pb-hero-frame { width: 125%; max-width: 125%; margin-inline: -12.5%; } }
.ax-pb .ax-pb-cap { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--ax-orange); font-size: 14.5px; line-height: 1.55; color: var(--ax-ink2); text-wrap: pretty; }
.ax-pb .ax-pb-cap a { color: var(--ax-mute); text-decoration: underline; text-decoration-color: var(--ax-line); text-underline-offset: 2px; }
.ax-pb .ax-pb-cap a:hover { color: var(--ax-otext); }
.ax-pb .ax-pb-credit { color: var(--ax-mute); }

.ax-pb-main { position: relative; margin-top: clamp(40px, 5vw, 64px); }

/* rail TOC: a <details> above the copy; a sticky rail in the left margin ≥ 1280px (opened by the page script) */
.ax-pb-rail { margin-bottom: 36px; }
.ax-pb-toc { border: 1px solid var(--ax-line); border-radius: 8px; background: var(--ax-warm2); padding: 14px 18px; }
.ax-pb-toc summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-family: var(--ax-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-ink2); }
.ax-pb-toc summary::-webkit-details-marker { display: none; }
.ax-pb-toc summary::after { content: "+"; font-size: 16px; line-height: 1; color: var(--ax-mute); transition: transform .25s var(--ax-out); }
.ax-pb-toc[open] summary::after { transform: rotate(45deg); }
.ax-pb .ax-pb-toc ol { margin-top: 14px; display: grid; gap: 9px; counter-reset: toc; }
.ax-pb-toc li { counter-increment: toc; display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.4; }
.ax-pb-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--ax-mono); font-size: 11px; color: var(--ax-otext); flex: 0 0 auto; }
.ax-pb-toc a { color: var(--ax-ink2); transition: color .2s var(--ax-out); }
.ax-pb-toc a:hover { color: var(--ax-ink); }
.ax-pb-toc a.is-active { color: var(--ax-ink); font-weight: 600; }
.ax-pb .ax-pb-toc-cta { margin-top: 18px; color: var(--ax-otext); font-size: 13px; }
@media (min-width: 1280px) {
  .ax-pb-rail { position: absolute; left: -232px; top: 0; bottom: 0; width: 200px; margin: 0; }
  .ax-pb-toc { position: sticky; top: 140px; border: 0; background: none; padding: 0 0 0 16px; border-left: 1px solid var(--ax-line); border-radius: 0; }
  .ax-pb-toc summary::after { display: none; }
}

/* numbered sections */
.ax-pb-sec { scroll-margin-top: 150px; }
.ax-pb-sec + .ax-pb-sec { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--ax-line2); }
.ax-pb-sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.ax-pb .ax-pb-num { font-family: var(--ax-mono); font-size: 12px; letter-spacing: .08em; color: var(--ax-otext); flex: 0 0 auto; }
.ax-pb .ax-pb-sec-head h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; color: var(--ax-ink); }
/* copy-link button on each heading: quiet until the section is hovered */
.ax-pb .pb-copy { position: relative; margin-left: 8px; padding: 4px; color: rgba(28, 25, 23, .26); vertical-align: middle; line-height: 0; transition: color .2s var(--ax-out); }
.ax-pb-sec:hover .pb-copy { color: rgba(28, 25, 23, .46); }
.ax-pb .pb-copy:hover, .ax-pb .pb-copy:focus-visible { color: var(--ax-otext); }
.ax-pb .pb-copy.is-copied { color: #15803d; }
.pb-copy-toast { position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translate(-50%, 4px); padding: 4px 9px; border-radius: 6px; background: #4ade80; color: #04240f; font-family: var(--ax-mono); font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .24s var(--ax-out), transform .24s var(--ax-out); }
.pb-copy.is-copied .pb-copy-toast { opacity: 1; transform: translate(-50%, 0); }

/* ── prose rhythm (mirrors the blog's .ax-bd-body) ─────────────────────── */
.ax-pb .ax-pb-body { font-size: 18px; line-height: 1.7; color: var(--ax-ink); overflow-wrap: anywhere; }
.ax-pb .ax-pb-body > :first-child { margin-top: 0; }
.ax-pb .ax-pb-body > :last-child { margin-bottom: 0; }
.ax-pb .ax-pb-body p { margin: 0 0 28px; text-wrap: pretty; }
.ax-pb .ax-pb-body h3, .ax-pb .ax-pb-body h4 { color: var(--ax-ink); letter-spacing: -.02em; text-wrap: balance; }
.ax-pb .ax-pb-body h3 { font-size: 22px; line-height: 1.3; margin: 40px 0 14px; }
.ax-pb .ax-pb-body h4 { font-size: 18px; line-height: 1.4; margin: 32px 0 10px; }
.ax-pb .ax-pb-body strong { font-weight: 600; color: var(--ax-ink); }
.ax-pb .ax-pb-body a { color: var(--ax-otext); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ax-out); }
.ax-pb .ax-pb-body a:hover { color: var(--ax-ohover); }
.ax-pb .ax-pb-body ul, .ax-pb .ax-pb-body ol { margin: 0 0 28px; padding-left: 26px; display: grid; gap: 10px; }
.ax-pb .ax-pb-body ul { list-style: none; }
.ax-pb .ax-pb-body ul > li { position: relative; }
.ax-pb .ax-pb-body ul > li::before { content: ""; position: absolute; left: -22px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--ax-orange); }
.ax-pb .ax-pb-body ol { list-style: decimal; }
.ax-pb .ax-pb-body ol > li { padding-left: 4px; }
.ax-pb .ax-pb-body ol > li::marker { color: var(--ax-otext); font-weight: 600; font-family: var(--ax-mono); font-size: 15px; }
.ax-pb .ax-pb-body li > ul, .ax-pb .ax-pb-body li > ol { margin: 10px 0 0; }
.ax-pb .ax-pb-body li p { margin: 0; }
.ax-pb .ax-pb-body hr { border: 0; border-top: 1px solid var(--ax-line); margin: 48px 0; }
.ax-pb .ax-pb-body code { font-family: var(--ax-mono); font-size: .88em; background: var(--ax-warm); color: var(--ax-otext); padding: 2px 6px; border-radius: 4px; }
.ax-pb .ax-pb-body img { display: block; width: 100%; height: auto; border-radius: 6px; }

/* blockquote — the data uses it for sample review replies, so it reads as sample copy, not a pull quote */
.ax-pb .ax-pb-body blockquote { margin: 0 0 24px; padding: 18px 22px; border-radius: 6px; background: var(--ax-warm); border-left: 3px solid var(--ax-orange); font-size: 17px; line-height: 1.6; color: var(--ax-ink2); }
.ax-pb .ax-pb-body blockquote p { margin: 0; }
.ax-pb .ax-pb-body blockquote p + p { margin-top: 12px; }

/* tables (the data wraps every table in .pb-table-wrap) */
.ax-pb .ax-pb-body .pb-table-wrap { margin: 0 0 32px; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--ax-line); border-radius: 8px; background: var(--ax-paper); scrollbar-width: thin; scrollbar-color: rgba(255, 146, 0, .3) transparent; }
.ax-pb .ax-pb-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; min-width: 22rem; }
.ax-pb .ax-pb-body caption { caption-side: top; text-align: left; font-family: var(--ax-mono); font-size: 12px; color: var(--ax-mute); padding: 12px 14px 0; }
.ax-pb .ax-pb-body th { font-family: var(--ax-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--ax-ink2); background: var(--ax-warm); padding: 12px 14px; border-bottom: 1px solid var(--ax-line); white-space: nowrap; }
.ax-pb .ax-pb-body td { padding: 12px 14px; border-bottom: 1px solid var(--ax-line2); vertical-align: top; color: var(--ax-ink2); }
.ax-pb .ax-pb-body td:first-child { font-weight: 500; color: var(--ax-ink); }
.ax-pb .ax-pb-body tbody tr:last-child td { border-bottom: 0; }
.ax-pb .ax-pb-body tbody tr { transition: background .2s var(--ax-out); }
.ax-pb .ax-pb-body tbody tr:hover { background: var(--ax-warm2); }
.ax-pb .ax-pb-body .pb-compare--ours td:last-child { color: var(--ax-ink); font-weight: 600; white-space: nowrap; }
.ax-pb .ax-pb-body .pb-yes  { color: #15803d; font-weight: 600; }
.ax-pb .ax-pb-body .pb-some { color: var(--ax-otext); font-weight: 600; }
.ax-pb .ax-pb-body .pb-no   { color: var(--ax-mute); font-weight: 600; }

/* ranking-factor bars (Ch.5) */
.ax-pb .ax-pb-body .pb-factors td:first-child { white-space: nowrap; }
.ax-pb .ax-pb-body .pb-factors td:last-child { display: flex; align-items: center; gap: 12px; min-width: 168px; }
.ax-pb .ax-pb-body .pb-bar { display: block; height: 5px; width: var(--w); max-width: 124px; border-radius: 3px; background: linear-gradient(90deg, #ff9200 0%, #ff6b00 100%); flex: 0 0 auto; }
.ax-pb .ax-pb-body .pb-bar-num { font-weight: 600; color: var(--ax-ink); font-size: 14px; }

/* stat callout */
.ax-pb .ax-pb-body .pb-stat-callout { background: var(--ax-cream); border-radius: 8px; padding: 20px 24px; font-size: 17px; line-height: 1.6; color: var(--ax-ink2); }

/* Ch.1 diagnostic: a numbered sequence of cards */
.ax-pb .ax-pb-body .pb-checklist { list-style: none; counter-reset: pbtest; padding: 0; gap: 12px; }
.ax-pb .ax-pb-body .pb-checklist > li { counter-increment: pbtest; padding: 18px 20px 18px 58px; border: 1px solid var(--ax-line); border-radius: 8px; background: var(--ax-paper); }
.ax-pb .ax-pb-body .pb-checklist > li::before { content: counter(pbtest); position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ax-orange); color: var(--ax-ink); font-family: var(--ax-mono); font-size: 12px; font-weight: 500; }
.ax-pb .ax-pb-body .pb-check-label { display: block; font-size: 16px; font-weight: 600; color: var(--ax-ink); margin-bottom: 6px; }
.ax-pb .ax-pb-body .pb-checklist p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ax-ink2); }
.ax-pb .ax-pb-body .pb-score { padding-left: 0; }
.ax-pb .ax-pb-body .pb-score > li { padding-left: 18px; }
.ax-pb .ax-pb-body .pb-score > li::before { left: 0; top: .78em; width: 8px; height: 2px; border-radius: 0; }

/* Ch.10 phases: a real sequence */
.ax-pb .ax-pb-body .pb-phases { display: grid; gap: 12px; margin: 0 0 28px; }
.ax-pb .ax-pb-body .pb-phase { position: relative; padding: 22px 24px 22px 28px; border: 1px solid var(--ax-line); border-radius: 8px; background: var(--ax-paper); overflow: hidden; }
.ax-pb .ax-pb-body .pb-phase::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #ff9200 0%, rgba(255, 146, 0, .14) 100%); }
.ax-pb .ax-pb-body .pb-phase-days { display: inline-block; font-family: var(--ax-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-otext); margin-bottom: 6px; }
.ax-pb .ax-pb-body .pb-phase-title { font-size: 20px; line-height: 1.25; margin: 0 0 12px; }
.ax-pb .ax-pb-body .pb-phase ul { margin-bottom: 14px; gap: 8px; font-size: 16.5px; }
.ax-pb .ax-pb-body .pb-phase-why { margin: 0; padding-top: 12px; border-top: 1px solid var(--ax-line2); font-size: 15px; color: var(--ax-ink2); }

/* hub-only lines inside prose */
.ax-pb .ax-pb-body .pb-serving { font-size: 14px; color: var(--ax-mute); }
.ax-pb .ax-pb-body .pb-quotable { font-size: 20px; line-height: 1.5; letter-spacing: -.012em; color: var(--ax-ink); margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--ax-line); }
.pb-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── the one citable sentence (Aurax blockquote shape on light ground) ─── */
.ax-pb .ax-pb-quotable { position: relative; margin: clamp(48px, 6vw, 72px) 0 0; padding: 36px 40px 36px 44px; border-radius: 5px; background: var(--ax-warm); border-left: 3px solid var(--ax-orange); font-size: 23px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; color: var(--ax-ink); text-wrap: pretty; }
.ax-pb .ax-pb-quotable::before { content: "\201D"; display: block; font-family: var(--ax-serif); font-size: 56px; line-height: .6; margin-bottom: 18px; color: var(--ax-otext); }

/* serving line + related links */
.ax-pb .ax-pb-serving { margin-top: 28px; font-size: 14.5px; line-height: 1.7; color: var(--ax-mute); }
.ax-pb .ax-pb-serving a { color: var(--ax-otext); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ax-pb .ax-pb-serving a:hover { color: var(--ax-ohover); }
.ax-pb .ax-pb-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px 28px; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--ax-line); }
.ax-pb .ax-pb-foot-lbl { font-family: var(--ax-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-mute); }
.ax-pb .ax-pb-related { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.ax-pb .ax-pb-related .ax-ul { color: var(--ax-ink); white-space: normal; }
.ax-pb-anchor { scroll-margin-top: 120px; }

@media (max-width: 640px) {
  .ax-pb .ax-pb-body { font-size: 17px; }
  .ax-pb .ax-pb-body h3 { font-size: 20px; }
  .ax-pb .ax-pb-sec-head h2 { font-size: 25px; }
  .ax-pb .ax-pb-hero-frame { height: clamp(220px, 60vw, 300px); }
  .ax-pb .ax-pb-quotable { padding: 26px 22px 26px 24px; font-size: 20px; }
  .ax-pb .ax-pb-body th, .ax-pb .ax-pb-body td { padding: 10px 12px; }
  .ax-pb .ax-pb-body .pb-checklist > li { padding-left: 52px; }
}

/* ── print: a chapter prints in full; the hub prints only the 90-day plan ── */
@media print {
  .pb-progress, .ax-pb-rail, .ax-pb-hero, .pb-copy, .ax-pb-foot, .ax-pb-cards, .ax-pb-trades, .ax-pb-deeper, .ax-pb-cta, .ax-strip, .ax-faq, .ax-cta, .ax-pn, .ax-lg { display: none !important; }
  .pb-page--hub .ax-pb-sec { display: none !important; }
  .pb-page--hub .ax-pb-sec#\39 0-days { display: block !important; border: 0; }
}
