/* Flagship pass, 25 Nov 2026: fixes from the UI and UX designer reviews (reference/ot-chatgpt-2026-11-25/REVIEWS.md). Loaded last. */
:root { --ot-navy: #172B43; --ot-gold: #D8BD77; --ot-gold-ink: #7A611F; --ot-radius: 8px; }

/* One navy: header without the blue gradient, the film band's scrim in the same navy */
.site-header { background: var(--ot-navy); }
.cta-film-scrim { background: linear-gradient(180deg, rgba(23,43,67,.88) 0%, rgba(23,43,67,.82) 50%, rgba(23,43,67,.92) 100%); }

/* One type scale for inner pages */
.page-hero h1, main.cg h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
main.cg h2, .title { font-size: clamp(2rem, 3.4vw, 3rem); }
h1 em, h2 em, .title em, main.cg h1 em, main.cg h2 em, main.cg .statement em { font-size: .86em !important; letter-spacing: -.005em; }
main.cg.cg-story .hero h1 { font-size: clamp(2.4rem, 4.3vw, 3.7rem); }

/* Text in Source Sans 3; Libre Caslon only for headings and italics */
.page-hero > .container > p:not(.eyebrow), .intro, .hero-lede, .prose p { font-family: var(--sans); }
input, select, textarea, button { font: inherit; font-family: var(--sans); }
main.cg .quote blockquote, main.cg .featured blockquote { font-family: var(--serif) !important; }
.cta-strip-title { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); }
.dropdown a, main.cg .related-grid strong { font-weight: 400; }

/* One eyebrow, and a 13 px floor for small text */
.eyebrow, main.cg .eyebrow, .img-hero-eyebrow, .kicker, .kind, .acc-label, .footer-head, .hero-eyebrow {
  font-family: var(--sans); font-style: normal; font-size: .8125rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow, main.cg .eyebrow, .kicker, .kind, .acc-label { color: var(--ot-gold-ink); }
.on-navy .eyebrow, main.cg .band .eyebrow, .img-hero-eyebrow, .footer-head, .proof-strip .acc-label { color: var(--ot-gold); }
.page-hero > .container > p.eyebrow { font-family: var(--sans); font-size: .8125rem; color: var(--ot-gold-ink); }
.footer-base { font-size: .875rem; align-items: center; }

/* One button system: the About pages' buttons match .btn */
main.cg .cta { font-family: var(--sans); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; border-radius: var(--ot-radius); padding: 14px 26px; border: 0; background: var(--ot-gold); color: var(--ot-navy); }
main.cg .consult .cta, main.cg .section .cta { background: var(--ot-navy); color: #fff; }

/* Same gutters as the rest of the site */
main.cg .wrap { width: min(1140px, calc(100% - 44px)); }

/* Calm photos: no tilt */
.svc-split-media { transform: none; }

/* Tags that are not links read as quiet text, not buttons */
.tags-row li:not(:has(a)) { border: 0; padding: 0; background: none; }
.tags-row li:not(:has(a)) + li:not(:has(a))::before { content: "\00B7"; margin: 0 8px 0 0; color: var(--ot-gold-ink); }
.tags-row li:not(:has(a)):hover { background: none; }
.tags-row li:has(a) { padding: 0; }
.tags-row li > a { padding: 6px 12px; display: inline-flex; align-items: center; min-height: 32px; }

/* Home stats line up on phones */
@media (max-width: 767px) { .hstat dt { white-space: nowrap; font-size: clamp(1.6rem, 7vw, 2rem); } }

/* Phones */
@media (max-width: 767px) {
  .intake-form input, .intake-form select, .intake-form textarea { font-size: 16px; }
  .header-inner { min-height: 64px; }
  .nav-toggle { height: 44px; }
  .dropdown a, .primary-nav.open .dropdown a { min-height: 44px; display: flex; align-items: center; }
  .primary-nav.open .caret { display: none; }
  main.cg .quotes { margin-left: 0; margin-right: 0; }
}
/* Phone menu button turns into an X while the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(var(--ot-x, 6px)) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(calc(-1 * var(--ot-x, 6px))) rotate(-45deg); }

/* Learning Differences cards: the text shows on touch screens, which have no hover */
@media (hover: none) { .whb-reveal { grid-template-rows: 1fr; } }
@media (max-width: 767px) { .nav-toggle-bar:nth-child(1) { top: 15px; } .nav-toggle-bar:nth-child(2) { top: 21px; } .nav-toggle-bar:nth-child(3) { top: 27px; } }
/* 13 px floor, second pass */
.footer-base, .footer-base * { font-size: .875rem !important; }
main figcaption, main figcaption *, main cite, main cite *, main .tc-label, .outcomes-note, .tags-row li, .ari-cell[role="columnheader"], .voices-hint, [class*="hint"], .voice-name, .voice-role, .phil3-thesis { font-size: .875rem !important; }
@media (max-width: 767px) { .tags-row li > a { min-height: 40px; } }

/* 28 Nov 2026, audit step 2.8 (VISUAL V-20, V-21): text at AA contrast, and taps of 44 px on phones.
   Colours one step darker only where a text measured under AA; sizes grown only where a tap was under 44 px.
   Where growing would move the page, padding is taken back with a negative margin, so the text stays put. */
.hub-privacy { color: #706a5e; }                                 /* 3.11 -> 4.8 to 1 on #f5f2e9 */
.cg-mission .thought .thought-intro p { color: #0a2429; }        /* 4.10 -> 4.68 to 1 on the teal band */
section.consult .eyebrow { color: #765e1e; }                     /* 4.49 -> 4.71 to 1 on #e5e0d6 */
@media (max-width: 767px) {
  .tags-row li > a { min-height: 44px; }
  .footer-link { min-width: 44px; }
  .lib-chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  details > summary { min-height: 44px; }
  .brand { min-height: 44px; }
  .article-ref-link { padding: 11px 0; margin: -1px 0 -11px; }   /* 22 -> 44 px, text where it was */
  .gate-back { padding: 10.5px 0; margin: 15.5px 0 -10.5px; }   /* 23 -> 44 px, text where it was */
}
