/* Shared responsive corrections; loaded after each page's own styles. */
.mobile-navigation { display: none; }
.fagup-page .accountability .principles { padding: 0; background: transparent; width: 100%; }
.fagup-page .accountability .principles article { display: block; text-align: left; padding: 20px; border: 0; border-left: 4px solid var(--teal); }
.fagup-page .accountability .principles b { display: block; margin-bottom: 8px; }
.fagup-page .accountability .principles p { margin: 0; }

@media (max-width: 850px) {
  html, body { overflow-x: visible; }
  main *, .site-header * { min-width: 0; }
  main :is(h1,h2,h3,h4,p,a,b,strong,span,li,blockquote) { overflow-wrap: anywhere; }
  main :is(h1,h2,h3) { hyphens: auto; }
  body main h1 { font-size: clamp(30px, 8.5vw, 40px) !important; line-height: 1.12 !important; }
  body main h2 { font-size: clamp(25px, 7vw, 32px) !important; line-height: 1.18 !important; }
  body main h3 { line-height: 1.25; }
  .hero-symbol .node strong { white-space: nowrap; overflow-wrap: normal; }
  main :is(img,video,svg,canvas) { max-width: 100%; }
  main section { scroll-margin-top: 82px; }
  main :is(.hero,.about-hero,.policy-hero):not(:has(.hero-media)) { height: auto; min-height: 0; padding-top: 36px; padding-bottom: 36px; overflow: visible; }
  .site-header { height: auto; min-height: 64px; padding: 8px 16px; gap: 8px; flex-wrap: wrap; background: #d3ccc2; }
  .fagup-page .accountability { gap: 24px; }
  .site-header .brand { flex: 1; }
  .site-header .brand span { white-space: normal; overflow-wrap: anywhere; }
  .site-header > nav, .site-header > .engage { display: none; }
  .site-header .mobile-navigation { display: block; position: relative; margin-left: auto; }
  .mobile-navigation summary { cursor: pointer; min-height: 44px; padding: 10px 12px; border: 1px solid var(--navy); border-radius: 6px; color: var(--navy); font-size: 14px; font-weight: 700; }
  .mobile-navigation[open] { position: static; }
  .site-header .mobile-navigation nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 16px; flex-direction: column; gap: 0; background: #f4eef4; border-bottom: 2px solid var(--navy); max-height: calc(100dvh - 80px); overflow-y: auto; box-shadow: 0 8px 16px #0b2b3e22; }
  .mobile-navigation nav a { display: block; min-height: 44px; padding: 12px; font-size: 15px; }
  .mobile-navigation summary:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
  main :is(.hero-chain,.loop,.pillar-loop,.economic-chain,.keynes-flow,.chain-row,.balance-flow) { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  main :is(.hero-chain,.loop,.pillar-loop,.economic-chain,.keynes-flow,.chain-row,.balance-flow) > i { align-self: center; transform: rotate(90deg); line-height: 1.3; }
  main :is(.hero-chain,.loop,.pillar-loop,.economic-chain,.keynes-flow) > :is(span,b) { text-align: center; }
  main .foundation-line { grid-template-columns: minmax(0,1fr); }
  main .foundation-line i { justify-self: center; transform: rotate(90deg); }
  main .system-diagram { grid-template-columns: minmax(0,1fr); }
  /* Darker orange text on light surfaces; light orange remains on dark cards. */
  body main :is(.eyebrow,.kicker,.step small,.core-grid small,.portal-card small,.policy-grid span) { color: #923a0d; }
  body main :is(.practice,.pillars,.democracy,.critique-strip,.policy-principle,.analysis-card,.vote-box) :is(.eyebrow,.kicker,small) { color: #f4b48b; }
  body .primary, body .engage { background: #a74313; }
  body .secondary { color: #573f64; border-color: #573f64; }
  body main .hero-copy .promise { font-size: 12px; line-height: 1.6; }
}

