/* SEO-UX7, 2026-11-01 — scoped contrast & mobile disclosure repair. */
@media screen {
  /* RELATIONAL: expanding the three perspectives must follow its own gauge row on mobile. */
  @media (max-width:560px) {
    html body .rv-gauges > .rv-gauge-card {
      display:grid!important; grid-template-areas:none!important;
      grid-template-columns:minmax(92px,132px) minmax(0,1fr)!important;
      grid-auto-rows:auto!important; align-items:center!important;
      min-width:0!important;
    }
    html body .rv-gauge-card > .rv-gauge-svg { grid-area:auto!important;grid-column:1!important;grid-row:1!important; }
    html body .rv-gauge-card > .rv-gauge-svg + div { grid-area:auto!important;grid-column:2!important;grid-row:1!important;min-width:0!important; }
    html body .rv-gauge-card > .rv-gauge-detail {
      grid-area:auto!important;grid-column:1/-1!important;grid-row:2!important;
      position:static!important;inset:auto!important;float:none!important;
      width:auto!important;max-width:100%!important;min-width:0!important;
      margin:8px 0 0!important;padding:9px 0 0!important;
      border-top:1px solid #879eae!important;align-self:stretch!important;
    }
  }
  html[data-reguspace-theme="dark"] body .rv-gauges > .rv-gauge-card {
    background:#344452!important;border-color:#6b8598!important;color:#eaf2f7!important;
  }
  html[data-reguspace-theme="dark"] body .rv-gauges > .rv-gauge-card :is(.rv-gauge-label,.rv-gauge-blurb){color:#eaf2f7!important;}
  html[data-reguspace-theme="dark"] body .rv-gauge-detail,
  html[data-reguspace-theme="dark"] body .rv-gauge-detail ul,
  html[data-reguspace-theme="dark"] body .rv-gauge-detail li,
  html[data-reguspace-theme="dark"] body .rv-gauge-detail li strong,
  html[data-reguspace-theme="dark"] body .rv-gauge-detail summary {color:#eaf2f7!important;}
  html[data-reguspace-theme="dark"] body .rv-gauge-detail summary {font-weight:850!important;}

  /* NEURO: numerals and letters on pale markers must use dark ink; profile text on dark cards needs light ink. */
  html[data-reguspace-theme="dark"] body .nd-module .route-card .route-n,
  html[data-reguspace-theme="dark"] body .nd-module .layer-head .layer-num,
  html[data-reguspace-theme="dark"] body .nd-module .align-card .step {
    color:#24475b!important;background:#edf5f9!important;border-color:#bfd0da!important;
    opacity:1!important;font-weight:900!important;
  }
  html[data-reguspace-theme="dark"] body .nd-module .profile .profile-body,
  html[data-reguspace-theme="dark"] body .nd-module .profile .profile-row,
  html[data-reguspace-theme="dark"] body .nd-module .profile .profile-row b,
  html[data-reguspace-theme="dark"] body .nd-module .profile .profile-row strong {
    color:#eaf2f7!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .profile-grid article.profile .profile-body .profile-row,
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .profile-grid article.profile .profile-body .profile-row :is(b,strong,span) {
    color:#eaf2f7!important;
  }
  html[data-reguspace-theme="dark"] body .nd-module .profile .profile-row b {font-weight:850!important;}
  html[data-reguspace-theme="dark"] body .nd-module .summary-card .score,
  html[data-reguspace-theme="dark"] body .nd-module .mirror-top .score {color:#eaf2f7!important;}
  @media(max-width:760px){
    html body .nd-module .route-card .route-n {width:42px;min-width:42px;height:42px;min-height:42px;font-size:21px!important;line-height:1!important;}
    html body .nd-module .layer-head .layer-num {font-size:24px!important;}
    /* Privacy explanation stays within the viewport on narrow screens. */
    html body .nd-module .regu-privacy-note[open] > .regu-privacy-popover {
      position:fixed!important;left:12px!important;right:12px!important;
      top:auto!important;bottom:14px!important;width:auto!important;
      max-width:none!important;max-height:min(50vh,300px)!important;
      overflow:auto!important;z-index:10003!important;
    }
    html body #reguR1PrivacyFloat {left:12px!important;right:12px!important;width:auto!important;max-width:none!important;}
  }

  /* Eleven thematiek AI prompts: dark on pale fields, light on the outer dark disclosure. */
  html[data-reguspace-theme="dark"] body .theme-detail-screen details.reguspace-ai-theme .more-info-body {
    color:#eaf2f7!important;
  }
  html[data-reguspace-theme="dark"] body .theme-detail-screen .reguspace-ai-theme-example {
    background:#f1f6f9!important;color:#263d50!important;border-left-color:#739bb2!important;
  }
  html[data-reguspace-theme="dark"] body .theme-detail-screen .reguspace-ai-theme-example :is(strong,span,p,small) {
    color:#263d50!important;
  }
  html[data-reguspace-theme="dark"] body .theme-detail-screen .reguspace-ai-theme-ui .reguspace-ai-usertext {
    background:#fbfdff!important;color:#253d50!important;-webkit-text-fill-color:#253d50!important;
  }
  html[data-reguspace-theme="dark"] body .theme-detail-screen .reguspace-ai-theme-ui .reguspace-ai-note {
    color:#e5eff7!important;
  }
  html[data-reguspace-theme="dark"] body .reguspace-ai-dialog .reguspace-ai-note {
    color:#43586b!important;
  }
  html[data-reguspace-theme="dark"] body .reguspace-ai-dialog,
  html[data-reguspace-theme="dark"] body .reguspace-ai-dialog :is(h2,.reguspace-ai-intro,.reguspace-ai-full summary,.reguspace-ai-full pre){color:#273e52!important;}
  html[data-reguspace-theme="dark"] body .reguspace-ai-dialog .reguspace-ai-usertext{color:#273e52!important;background:#fbfdff!important;}

  /* AUTUMN: poem on dark paper; modern poem and four pastel reflection cards on pale paper. */
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-poem :is(h3,.autumn-author,pre){color:#f1e9df!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-poem-modern :is(h3,.autumn-modern-label,.autumn-modern-note,.autumn-modern-text){color:#403d36!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-mini :is(h4,label,p,small,strong){color:#39453f!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-mini textarea,
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-field textarea {
    background:#fff!important;color:#273d50!important;-webkit-text-fill-color:#273d50!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-mini textarea::placeholder {color:#627487!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-outdoor-choice label,
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-dare :is(strong,p,span,small) {color:#344556!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-field label {color:#eaf2f7!important;}

  /* WINTER: white/pastel cards need dark ink (never white-on-white); dark interstitial copy needs light ink. */
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .winter-2026 .winter-hero .winter-kicker {
    color:#324b61!important;-webkit-text-fill-color:#324b61!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .winter-2026 .winter-hero .song-chip{
    color:#324b61!important;-webkit-text-fill-color:#324b61!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .winter-poem :is(h3,.byline,pre),
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .closing-card :is(.eyebrow,h2,label,.closing-note,.goodbye,.closing-signoff,.closing-signoff strong,.closing-signoff span),
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .question-card :is(label,p,strong),
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .roof-copy .question-card :is(label,p,strong) {color:#354354!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .winter-poem-side :is(strong,p,.wink),
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .roof-copy > :is(h2,p) {color:#eaf2f7!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .closing-card textarea,
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .question-card textarea {background:#fff!important;color:#263d50!important;-webkit-text-fill-color:#263d50!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .question-card textarea::placeholder,
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .closing-card textarea::placeholder{color:#5f7181!important;}
}
