/* GlobalSignal v3.21 SAFE — Readability + contrast pass.
   Presentation only. Loaded last so older micro-type rules cannot win. */
:root{
  --gs-readable-body:20px;
  --gs-readable-small:18px;
  --gs-readable-meta:17px;
}

/* Stronger contrast, especially for secondary text and borders. */
body:not(.light){
  --text:#F8FAFD;
  --muted:#D0DAE5;
  --line:#3A5674;
  --field:#152C46;
  --panel:#0D1C2E;
}
body.light{
  --text:#102033;
  --muted:#42576E;
  --line:#AFC4D9;
  --field:#E5EFF8;
}

html{font-size:19px}
body{font-size:var(--gs-readable-body);line-height:1.58;-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}

/* Primary copy */
p,li,.details p,.detail-body,.intel-panel p,.weather-card p,.source-row div>span,
.brief-card p,.critical-card p,.auth-sync-panel small,.auth-email-prefs small,
.gs-more-grid button small,.event-context,.monitor-session,.signal-intro p{
  font-size:18px!important;line-height:1.62!important;
}

/* Headlines and panel titles */
h1{font-size:36px!important;line-height:1.14!important;font-weight:760!important}
h2{font-size:23px!important;line-height:1.3!important;font-weight:720!important}
h3{font-size:21px!important;line-height:1.35!important}
.panel-title,.intel-panel .panel-title,.signal-subhead strong{font-size:20px!important;font-weight:760!important;letter-spacing:.1px!important}
.panel-title span,.panel-title small,.signal-subhead small,.signal-subhead>span{font-size:17px!important;color:var(--muted)!important}

/* Buttons, chips, tabs, controls: readable at a glance and finger-friendly. */
button,.button,a.button,input,select,textarea{font-size:18px!important}
button,.button{min-height:42px}
input:not([type=checkbox]):not([type=radio]),select,textarea{min-height:44px;color:var(--text)!important;background:var(--field)!important;border-color:var(--line)!important}
input::placeholder,textarea::placeholder{color:color-mix(in srgb,var(--muted) 88%,transparent)!important;opacity:1}
.gs-section-tabs button,.gs-context-chips button,.preset-buttons button,.quick-start-actions button,
.intel-tabs button,.aviation-tabs button,.webcam-tabs button,.anomaly-tabs button,
.mission-profile-btn,.rules-lab-btn{font-size:18px!important;font-weight:720!important;min-height:44px!important}

/* Event stream / articles were one of the smallest areas. */
.event{padding:16px 17px!important}
.event-title{font-size:20px!important;line-height:1.5!important;font-weight:650!important;color:var(--text)!important}
.event-top,.event-bottom,.event-meta,.detail-meta{font-size:17px!important;line-height:1.45!important;color:var(--muted)!important}
.tag{font-size:17px!important;padding:5px 8px!important}
.feed-tools input,.feed-tools select{font-size:18px!important}
.empty{font-size:19px!important}

/* Lists / source panels */
.source-row{padding:18px 0!important}
.source-row strong{font-size:18px!important}
.source-row div>span{font-size:18px!important}
.status{font-size:17px!important;font-weight:650!important}
.release-item li,.release-item span,.release-item p{font-size:18px!important;line-height:1.55!important}
.release-item strong{font-size:18px!important}

/* Stats and overview cards */
.stats article>div,.stats small,.gs-hero-metric span,.signal-metrics span,.signal-metrics small,
.gs-hero-copy span,.section-kicker,.eyebrow,.gs-context-kicker{font-size:17px!important;letter-spacing:.5px!important}
.stats strong{font-size:34px!important}
.gs-hero-metric strong{font-size:24px!important}
.gs-context-title{font-size:28px!important}
.gs-context-meta{font-size:17px!important}

/* Map layers: deliberately much larger and higher contrast. */
.map-layer-dock{z-index:950!important;border:1px solid color-mix(in srgb,var(--gs-blue) 30%,var(--line))!important}
.map-layer-dock,.map-layer-dock *{pointer-events:auto}
.layer-dock-title{min-height:54px!important;padding:10px 11px 10px 14px!important;cursor:pointer;position:relative;z-index:3}
.layer-dock-title>strong{font-size:20px!important;color:var(--text)!important}
.layer-dock-title>span{font-size:17px!important;color:var(--muted)!important}
.layer-dock-toggle{position:relative;z-index:5;min-width:42px!important;height:42px!important;font-size:22px!important;color:var(--text)!important;background:var(--field)!important;border:1px solid var(--line)!important;cursor:pointer!important}
.layer-accordion>summary{font-size:17px!important;font-weight:760!important;letter-spacing:.45px!important;padding:13px 11px!important;color:var(--text)!important;min-height:46px}
.layer-accordion>summary>small{font-size:17px!important;color:var(--muted)!important}
.map-layer-dock .layer{font-size:18px!important;min-height:48px!important;padding:10px 11px!important;color:var(--text)!important}
.map-layer-dock .layer-count{font-size:17px!important;color:var(--muted)!important}
.map-layer-dock .section-label{font-size:17px!important;color:var(--muted)!important}
.map-layer-dock select{font-size:18px!important;min-height:44px!important}
.map-layer-dock .reset{font-size:18px!important;min-height:44px!important}
.map-layer-dock .layer-note{font-size:17px!important;line-height:1.58!important;color:var(--muted)!important}
.map-layer-dock .layer-note span,.hazard-threshold-key small{font-size:17px!important}
.hazard-threshold-key b{font-size:17px!important}

/* Dedicated highly visible layers button. */
.gs-map-layers-fab{position:absolute;z-index:960;left:14px;right:auto;top:64px;display:flex;align-items:center;gap:8px;min-height:46px!important;padding:9px 14px!important;border-radius:12px!important;border:1px solid color-mix(in srgb,var(--gs-blue) 58%,var(--line))!important;background:color-mix(in srgb,var(--panel) 94%,transparent)!important;color:var(--text)!important;font-size:18px!important;font-weight:800!important;box-shadow:0 10px 28px rgba(0,0,0,.34);backdrop-filter:blur(10px);cursor:pointer!important;pointer-events:auto!important}
.gs-map-layers-fab strong{font-size:18px!important}
.gs-map-layers-fab[aria-expanded="true"]{display:none;border-color:var(--gs-yellow)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--gs-yellow) 18%,transparent),0 10px 28px rgba(0,0,0,.34)}

/* Dialogs and settings */
dialog{font-size:19px!important}
dialog p,dialog li{font-size:18px!important}
.dialog-head h2{font-size:24px!important}
.dialog-head button{font-size:21px!important;min-width:44px!important}
.auth-consent strong,.auth-sync-panel strong{font-size:18px!important}

/* Footer and legal/meta remain smaller, but not tiny. */
footer{font-size:17px!important;line-height:1.55!important}
.leaflet-control-attribution{font-size:17px!important}

@media(max-width:1200px){
  h1{font-size:32px!important}
  .map-layer-dock .layer{font-size:18px!important}
}

@media(max-width:700px){
  body{font-size:20px!important}
  h1{font-size:28px!important}
  h2{font-size:23px!important}
  .gs-context-title{font-size:25px!important}
  .gs-app-brand strong{font-size:21px!important}
  .gs-app-live{font-size:17px!important}
  .gs-context-chips button{font-size:18px!important;min-height:43px!important;padding:9px 13px!important}
  .gs-mobile-nav button{min-height:62px!important}
  .gs-mobile-nav .gs-nav-icon{font-size:23px!important}
  .gs-mobile-nav .gs-nav-label{font-size:17px!important;font-weight:750!important}
  .event-title{font-size:20px!important}
  .event-top,.event-bottom,.event-meta{font-size:17px!important}
  .map-layer-dock{width:min(330px,calc(100% - 20px))!important;right:10px!important;top:62px!important;max-height:calc(100% - 128px)!important}
  .map-layer-dock.dock-collapsed{width:122px!important;max-height:54px!important}
  .map-layer-dock .layer{font-size:19px!important;min-height:50px!important}
  .layer-accordion>summary{font-size:17px!important;min-height:48px!important}
  .gs-map-layers-fab{left:12px;right:auto;top:66px;min-height:48px!important;font-size:18px!important}
  .gs-more-grid button{font-size:19px!important;min-height:56px!important}.gs-more-grid button small{font-size:17px!important}
  .map-footer>span{font-size:17px!important;line-height:1.5!important}
}
