/* Shared, keyboard-accessible footer control. Load after style.css. */
[data-accessibility-trigger] {
  appearance: none; border: 0; padding: 10px 0; min-height: 44px;
  background: transparent; color: inherit; font: inherit; letter-spacing: inherit;
  cursor: pointer; text-align: left;
}
[data-accessibility-trigger]:hover { color: #fff; text-decoration: underline; }
[data-accessibility-trigger]:focus-visible,
.accessibility-panel :focus-visible { outline: 2px solid #92cbff; outline-offset: 4px; }
.accessibility-panel {
  position: fixed; z-index: 50; right: 20px; bottom: 20px;
  width: min(390px, calc(100vw - 32px)); max-height: calc(100dvh - 40px);
  overflow-y: auto; overscroll-behavior: contain; padding: 22px;
  border: 1px solid #66819b; border-radius: 8px;
  background: #111923; color: #f2f5f9; box-shadow: 0 12px 50px #0009;
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: normal; text-align: left;
}
.accessibility-panel[hidden] { display: none !important; }
.accessibility-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.accessibility-panel h2 { margin: 0; font: 600 21px/1.4 system-ui, sans-serif; letter-spacing: normal; }
.accessibility-close {
  min-height: 44px; padding: 8px 10px; border: 1px solid #71869a; border-radius: 4px;
  background: transparent; color: #f2f5f9; font: inherit; cursor: pointer;
}
.accessibility-close span { margin-left: 6px; }
.accessibility-option { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 16px; font-weight: 600; cursor: pointer; }
.accessibility-option input { width: 22px; height: 22px; margin: 0; flex: 0 0 22px; accent-color: #92cbff; }
.accessibility-option:has(input:disabled) { cursor: default; }
.accessibility-panel p { color: #c5d0dc; margin: 2px 0 12px; font-size: 14px; line-height: 1.6; }
.accessibility-panel .accessibility-storage-note { border-top: 1px solid #536171; padding-top: 14px; margin-top: 20px; margin-bottom: 0; }
html[data-animation-stopped="true"] { scroll-behavior: auto; }
html[data-animation-stopped="true"] *,
html[data-animation-stopped="true"] *::before,
html[data-animation-stopped="true"] *::after { animation: none !important; transition: none !important; }
html[data-animation-stopped="true"] .letter.lit { color: inherit !important; text-shadow: none !important; }

/* Reversible reading treatment; no content or link is removed. */
html[data-easy-read="true"] {
  --bg: #10151b; --fg: #f5f7fa; --muted: #d1d9e2; --blue: #9acdff;
  --line: #4c5c6d; --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[data-easy-read="true"] body { font-family: var(--sans); font-size: 18px; line-height: 1.7; }
html[data-easy-read="true"] #network { visibility: hidden; }
html[data-easy-read="true"] .hero,
html[data-easy-read="true"] .study,
html[data-easy-read="true"] .name-section,
html[data-easy-read="true"] .writing-network { background: none; }
html[data-easy-read="true"] .hero::after,
html[data-easy-read="true"] .hero-fade { background: none; }
html[data-easy-read="true"] main :is(h1,h2,h3,h4,p,li,dt,dd) {
  font-family: var(--sans); font-weight: 400; letter-spacing: normal; color: var(--fg);
  text-shadow: none !important;
}
html[data-easy-read="true"] main :is(p,li,dt,dd) { font-size: max(1em, 18px); line-height: 1.8; }
html[data-easy-read="true"] main :is(h1,h2,h3,h4) { font-weight: 600; line-height: 1.25; }
html[data-easy-read="true"] main h1 { font-size: clamp(36px, 5vw, 64px); }
html[data-easy-read="true"] main h2 { font-size: clamp(28px, 3.5vw, 40px); }
html[data-easy-read="true"] main h3 { font-size: 24px; }
html[data-easy-read="true"] main .eyebrow { font-size: 14px; line-height: 1.6; }
html[data-easy-read="true"] main .word { white-space: normal; }
html[data-easy-read="true"] main a { color: #b6dcff; text-decoration: underline; text-underline-offset: 4px; }
html[data-easy-read="true"] .hero { height: auto; min-height: 0; overflow: visible; }
html[data-easy-read="true"] .hero-content { padding-top: 40px; padding-bottom: 40px; }
html[data-easy-read="true"] .hero-topline,
html[data-easy-read="true"] .hero-bottomline { position: relative; top: auto; bottom: auto; left: auto; right: auto; margin: 24px 4.3%; flex-wrap: wrap; gap: 16px; }
html[data-easy-read="true"] :is(.hero-topline,.hero-bottomline,.quiet-mono,.label-secondary,.venture-number,.venture-title>span) { color: #c7d5e4; font-size: 13px; }
html[data-easy-read="true"] footer,
html[data-easy-read="true"] .site-header nav { color: #d1d9e2; font-size: 14px; line-height: 1.7; }
html[data-easy-read="true"] .footer-links { flex-wrap: wrap; }
html[data-easy-read="true"] .principle-symbol { position: static; }
html[data-easy-read="true"] .status-dot { box-shadow: none; }
@media (max-width: 600px) {
  .accessibility-panel { right: 16px; bottom: 16px; padding: 18px; }
  html[data-easy-read="true"] .site-header { height: auto; min-height: 100px; padding: 14px 6%; flex-wrap: wrap; gap: 20px; }
  html[data-easy-read="true"] .site-header nav { flex-wrap: wrap; }
}
@media (forced-colors: active) {
  .accessibility-panel, .accessibility-close { border-color: CanvasText; }
  [data-accessibility-trigger]:focus-visible, .accessibility-panel :focus-visible { outline-color: Highlight; }
}

.footer-links{align-items:center}
.footer-links>a{display:inline-flex;align-items:center;min-height:44px;padding:10px 0}
html[data-easy-read="true"] main :is(h1,h2,h3){overflow-wrap:anywhere}
html[data-easy-read="true"] .hero-topline,html[data-easy-read="true"] .hero-bottomline{margin-left:0;margin-right:0}

html[data-easy-read="true"] .footer-links{font-size:15px}
html[data-easy-read="true"] .site-header nav a{font-size:15px!important}
