/* TraVision / quiet wayfinding and a genuine larger-text mode.
 * Load AFTER site.css, thread.css, cinematic-hero.css and read-aloud.css.
 * Normal typography stays authored; the explicit larger-text rules below beat
 * the legacy fixed-pixel !important declarations without scaling whole pages.
 */

/* A small, quiet maker's signature; the functional footer remains unchanged. */
.footer-bottom > .footer-signature {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.footer-bottom .footer-signature p { margin: 0; }
.footer-bottom .maker-credit {
  color: #e9e3d6;
  font-size: 16px;
  letter-spacing: .015em;
}
.footer-bottom .maker-name {
  color: #efd6a7;
  font-weight: 600;
}
.footer-bottom .maker-credit [role="img"] {
  display: inline-block;
  margin-inline: .1em;
}

:root {
  --nav-current: #efd6a7;
  --nav-accent: #d5b378;
}

.site-header .header-listen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  color: #f4eddf;
  background: transparent;
  border: 1px solid #e7d7b440;
  border-radius: 999px;
  font: 16px/1.4 var(--sans);
}
.site-header .header-listen[hidden] { display: none; }
.site-header .header-listen .icon { width: 19px; height: 19px; }
.site-header .header-listen:hover,
.site-header .header-listen[aria-pressed="true"] {
  color: #efd6a7;
  border-color: #efd6a7;
}
@media (max-width:700px) {
  .site-header .header-listen { width:44px; padding:8px; }
  .site-header .header-listen > span { display:none; }
}

/* No selected-page ellipse, travel trace or navigation terminal dot. */
.nav-thread,
.mobile-nav-thread {
  display: none !important;
}

.site-header .desktop-nav > a[aria-current="page"],
.site-header .learn-menu > summary.is-current,
.site-header .header-support[aria-current="page"] {
  color: var(--nav-current);
}

.site-header .desktop-nav > a[aria-current="page"]::after,
.site-header .learn-menu > summary.is-current::after,
.site-header .header-support[aria-current="page"]::after {
  content: "";
  display: block;
  position: absolute;
  inset-inline: 0;
  bottom: 3px;
  height: 1px;
  background: var(--nav-accent);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.site-header .header-support[aria-current="page"] {
  background: #173b2a66;
  border-color: #d5b37880;
}

.site-header .header-support[aria-current="page"]::after {
  inset-inline: 12px;
  bottom: 5px;
}

.learn-dropdown a[aria-current="page"] {
  color: #715624;
  text-decoration: underline;
  text-decoration-color: #97743d;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.mobile-links a {
  position: relative;
  min-width: 0;
  gap: 18px;
  overflow-wrap: anywhere;
}

.mobile-links a[aria-current="page"] {
  color: var(--nav-current);
}

.mobile-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 6px;
  width: 42px;
  height: 1px;
  background: var(--nav-accent);
  pointer-events: none;
}

.site-header .header-text-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 44px;
  height: auto;
  min-height: 44px;
  padding: 7px 8px;
  flex: 0 0 auto;
  border: 1px solid #f0d8ab80;
  border-radius: 6px;
  background: transparent;
  color: #f7efe0;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.site-header .header-text-size[aria-pressed="true"] {
  color: #14392c;
  background: #efd6a7;
  border-color: #efd6a7;
}

.site-header .header-text-size:hover {
  border-color: #efd6a7;
}

.site-header :is(a, button, summary):focus-visible,
.mobile-menu :is(a, button):focus-visible {
  outline: 2px solid #f6ddb0;
  outline-offset: 5px;
}

.site-header .learn-dropdown a:focus-visible {
  outline-color: #806032;
}

.footer .text-size-button[aria-pressed="true"] {
  color: var(--nav-current);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Body copy, forms and labels grow, not just an inherited root value that
 * fixed-pixel descendants ignore. No CSS zoom, transform or clipped heights. */
html.large-text body {
  font-size: 22px;
  line-height: 1.75;
}

html.large-text body :is(p, li, td, th, input, textarea, select),
html.large-text body :is(.article-content, .resource, .path-card, .support-band, .page-intro, .chapter-intro, .dual-heading, .placeholder-copy, .contact-copy, .faq-stack, .work-card, .choice, .coming-card, .footer-about) :is(p, li) {
  font-size: 23px !important;
  line-height: 1.75;
}

html.large-text body :is(.eyebrow, .text-link, .button, .listen-button, .motion-control, .text-size-button, .resource-type, .resource-status, .result-count, .filter-chip, .breadcrumb, .photo-credit, .article-meta, .windows-note, .availability, .card-status, .card-top, .work-card-top, .audio-status, .form-status),
html.large-text body :is(.chapter-link, .support-action, .coming-card, .placeholder-copy, .contact-form, .big-quote) small,
html.large-text body :is(.footer-col a, .footer-col h3, .footer-bottom, .footer-bottom p, .footer-bottom a, .article-sidebar a, .article-sidebar > p, .contact-form label, .search-box label, .audio-dock label, .audio-dock button, .audio-dock select, .audio-dock strong) {
  font-size: 20px !important;
  line-height: 1.6;
}

html.large-text body .article-content .article-meta,
html.large-text body .article-content .editorial-callout p,
html.large-text body .article-content .references-panel p,
html.large-text body .editorial-photo figcaption {
  font-size: 21px !important;
  line-height: 1.75;
}

html.large-text body :is(.directory-link, .faq-stack summary, .chapter-link strong) {
  font-size: 24px !important;
  line-height: 1.5;
}

html.large-text body :is(.hero, .page-hero) .hero-description,
html.large-text body .page-hero p:not(.eyebrow):not(.audio-status),
html.large-text body .cinematic-hero .hero-description,
html.large-text body .cinematic-hero .page-hero-copy > p:not(.eyebrow):not(.audio-status) {
  font-size: 25px !important;
  line-height: 1.7;
}

html.large-text body .cinematic-hero.rotating-hero[data-slide-kind="history"] .hero-description {
  font-size: 29px !important;
  line-height: 1.7;
}

html.large-text body .cinematic-hero :is(.eyebrow, .button, .listen-button, .cinematic-video-toggle, .breadcrumb, .hero-location, .carousel-pause, .scroll-cue, .audio-status),
html.large-text body .cinematic-hero .slide-selectors button,
html.large-text body .cinematic-hero .carousel-controls > .carousel-pause {
  font-size: 20px !important;
  line-height: 1.5;
}

html.large-text body h2 {
  font-size: clamp(48px, 5vw, 72px);
}

html.large-text body .page-intro h2 {
  font-size: 60px;
}

html.large-text body .placeholder-copy h2 {
  font-size: 54px;
}

html.large-text body :is(.article-content, .timeline) h2 {
  font-size: 42px;
}

html.large-text body :is(.library-heading, .research-directory) h2 {
  font-size: 44px;
}

html.large-text body .reading-directory summary {
  font-size: 38px;
  line-height: 1.4;
}

html.large-text body h3 {
  font-size: 32px;
}

html.large-text body :is(.resource, .work-card, .choice, .coming-card) h3 {
  font-size: 38px;
}

html.large-text body .path-card h3 {
  font-size: 48px;
}

html.large-text body .article-content blockquote p {
  font-size: 34px !important;
  line-height: 1.5;
}

html.large-text body .big-quote blockquote {
  font-size: 46px;
  line-height: 1.4;
}

html.large-text body .cinematic-hero h1 {
  font-size: clamp(60px, 6.6vw, 100px);
}

html.large-text body .cinematic-hero--page h1,
html.large-text body .cinematic-hero.rotating-hero[data-slide-kind="history"] h1 {
  font-size: clamp(56px, 6vw, 92px);
}

html.large-text .site-header :is(.desktop-nav > a, .learn-menu > summary, .header-support),
html.large-text .site-header .header-text-size,
html.large-text .learn-dropdown strong {
  font-size: 20px !important;
}

html.large-text .learn-dropdown small {
  font-size: 18px;
  line-height: 1.6;
}

html.large-text .mobile-links a {
  font-size: 30px;
  line-height: 1.45;
}

/* Keep text within its real layout. Rows wrap and narrow reading layouts stack
 * rather than shrinking the enlarged text back down to fit. */
html.large-text :is(.resource-body, .work-card, .path-card, .choice, .coming-card, .section-head > *, .library-heading > *, .contact-copy, .placeholder-copy, .footer-col, .audio-dock > *) {
  min-width: 0;
}

html.large-text :is(.button, .text-link, .directory-link, .listen-button, .filter-chip) {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

html.large-text :is(.section-head, .library-heading, .actions, .hero-subactions, .page-hero-tools, .work-card-tools, .audio-dock, .audio-dock-actions) {
  flex-wrap: wrap;
}

html.large-text body .audio-dock strong {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

html.large-text body :is(.resource, .work-card, .choice, .coming-card, .path-card) :is(h2, h3, p),
html.large-text body :is(.footer-col, .article-content) a {
  overflow-wrap: anywhere;
}

html.large-text :is(input, select, textarea) {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1499px) {
  html.large-text .desktop-nav { display: none; }
  html.large-text .menu-toggle { display: flex; }
}

@media (max-width: 1100px) {
  html.large-text .article-layout { display: block; }
  html.large-text .article-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 40px;
  }
  html.large-text .choice-row,
  html.large-text .coming-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  html.large-text body .cinematic-hero h1,
  html.large-text body .cinematic-hero--page h1 {
    font-size: clamp(48px, 11.8vw, 72px);
  }
  html.large-text body .cinematic-hero.rotating-hero[data-slide-kind="history"] h1 {
    font-size: clamp(46px, 10.8vw, 68px);
  }
  html.large-text body .cinematic-hero.rotating-hero[data-slide-kind="history"] .hero-description {
    font-size: 26px !important;
  }
  html.large-text body :is(.article-content, .timeline) h2 { font-size: 38px; }
  html.large-text body .page-intro h2 { font-size: 52px; }
  html.large-text body .placeholder-copy h2 { font-size: 48px; }
  html.large-text body .path-card h3 { font-size: 44px; }
  html.large-text body .big-quote blockquote { font-size: 36px; }
  html.large-text .big-quote { padding: 26px; }
  html.large-text .library-grid,
  html.large-text .path-grid { grid-template-columns: minmax(0, 1fr); }
  html.large-text .chapter-grid { grid-template-columns: minmax(0, 1fr); }
  html.large-text .chapter-link { padding: 24px 14px; }
  html.large-text .hero-bottom .carousel-controls { flex-wrap: wrap; }
  html.large-text .footer-top { grid-template-columns: minmax(0, 1fr); }
  html.large-text .footer-col,
  html.large-text .footer-about { grid-column: 1 / -1; }
  html.large-text .audio-dock label { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .site-header .header-inner { gap: 8px; }
  .site-header .header-end { gap: 8px; }
  html.large-text .contact-form { padding: 20px; }
  html.large-text .resource-body,
  html.large-text .work-card,
  html.large-text .path-card,
  html.large-text .choice { padding: 22px; }
}
