/* kept.css (round 2, item 4): bounded fixes for the six retained pages, loaded after each page's own CSS.
   Only these selectors change; every page keeps its own design. Phone sizes: labels (text set in capitals,
   buttons, kickers) at least 13 px, body text in paragraphs and list items at least 16 px, tap targets at least
   44 px tall. Scripts off: the Journey chapter labels show instead of waiting for hover. */

/* Scripts off (site.js never added the js class): show the chapter names that otherwise appear on hover */
html:not(.js) .chapter-rail a b { opacity: 1; transform: none; }

@media (max-width: 899.98px) {
  /* Labels: 12 px capitals and small UI text up to 13 px */
  .v3-kicker, .v3-fact-row span, .v3-button, .v3-title-grid li > span, .v3-title-grid p a, .v3-side-fact,
  .v3-reader-grid span, .v3-text-link, .v3-boundary strong, .v3-page-meta span, .v3-field-item > span,
  .v3-proof-standard span, .v3-ledger span, .v3-ledger a span,
  .eyebrow, .product-card .eyebrow, .note-number, .note-foot, .hero-principles span, .filter, .price-line span,
  .button, .button span, .help-items span,
  .journey-overline, .journey-button, .journey-text-link, .journey-text-link span, .journey-identity-line span,
  .journey-side-note, .journey-fact-ribbon span, .journey-kicker, .worksite-reality span, .voice-loop span,
  .book-stage figcaption, .journey-link-stack span, .journey-link-stack a span, .ledger-status,
  .system-node small, .proof-card-index, .proof-card b, .journey-signature small,
  .chapter-rail-title, .chapter-rail a span, .chapter-rail a b { font-size: 13px !important; }

  /* Body copy: 12 to 15 px paragraphs and list text up to 16 px */
  .v3-title-grid p, .v3-catalogue-note, .v3-catalogue-note a, .v3-proof-standard p,
  .hero-note p, .section-heading p, .product-kicker, .product-description, .currency-note, .result-count, .books-grid p,
  .help-items p, .help-items p a,
  .worksite-method p, .business-ledger p, .business-ledger .ledger-wide p, .systems-copy p, .proof-card p, .journey-meaning-copy p,
  .possibility-grid li p, .chapter-heading > p:last-child, .journey-book-catalogue li > span, .possibility-grid ol li > span,
  main p.updated, main p code { font-size: 16px !important; }
  /* 20 Nov: the email address set in code on Privacy may wrap, so a 320 px phone doesn't scroll sideways */
  main p code { overflow-wrap: anywhere; }

  /* Tap targets: standalone links and filter buttons at least 44 px tall and 8 px apart */
  .filter, .text-link, .journey-text-link, .v3-text-link, .v3-title-grid p a, .v3-catalogue-note a { display: inline-flex !important; align-items: center; min-height: 44px; }
  .filters { gap: 10px !important; }
  .v3-title-grid p a { margin-right: 10px; }

  /* Journey: on phones the chapter list sits in the page as a short contents list instead of being hidden */
  .chapter-rail { display: block !important; position: static !important; transform: none !important; opacity: 1 !important; margin: 0 auto; padding: 18px 20px; max-width: none; width: auto; background: transparent; }
  .chapter-rail ol { display: grid !important; gap: 8px !important; }
  .chapter-rail a { display: flex !important; align-items: center; min-height: 44px; }
  .chapter-rail a b { opacity: 1; transform: none; }
}
