/* v3.36.5: readable by default. Underlying typography is enlarged throughout
   every active authored stylesheet; these rules address the resulting layout. */
:root{--gs-readable-body:20px;--gs-readable-small:18px;--gs-readable-meta:17px;--gs-reading-main:22px;--gs-reading-detail:18px;--gs-reading-heading:25px}
html{font-size:18px}body{font-size:20px;line-height:1.55}
body:not(.light){--muted:#cfdae6;--gs-soft-muted:#d2dce7}body.light{--muted:#394f65;--gs-soft-muted:#394f65}
/* Essential metadata, not just headlines. Maintain contrast and wrapping. */
main :is(.panel-title,.intel-head,.signal-subhead,.space-weather-head,.weather-head,.map-bar,.map-footer),.dialog-head,.critical-section-head,.brief-section-head{height:auto;min-width:0;flex-wrap:wrap;gap:8px;line-height:1.4}
main :is(.panel-title,.intel-head,.signal-subhead) :is(span,small),.intel-status,.status,.map-footer,.map-bar,.section-label,.section-kicker,.eyebrow{letter-spacing:0!important;line-height:1.45!important;white-space:normal;overflow-wrap:anywhere}
main :is(.event-title,.news-item strong,.intel-main strong,.stability-main strong,.aircraft-main strong,.webcam-card strong,.finance-news-item strong),#critical-desk-dialog :is(.critical-main strong,.incident-heading strong),#global-brief-dialog :is(.brief-signal-main strong,.brief-headline strong,.brief-context strong){font-size:22px!important;line-height:1.4!important;overflow-wrap:anywhere}
#gs-today :is(p,.today-meta,.today-muted,.today-headline a),#gs-today small{line-height:1.5!important;overflow-wrap:anywhere}
button,input,select,textarea{line-height:1.35;max-width:100%}button{white-space:normal;overflow-wrap:anywhere}button:not(.gs-globe-marker):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out){min-height:44px}
:is(.intel-tabs,.aviation-tabs,.webcam-tabs,.anomaly-tabs,.map-actions,.map-mode-buttons,.preset-buttons,.monitor-actions,.signal-actions,.weather-head-tools,.brief-controls,.critical-controls,.gs-context-chips,.nature-toolbar,.today-actions){flex-wrap:wrap;gap:8px;height:auto;min-width:0}
:is(.news-item,.event,.intel-row,.stability-row,.aviation-row,.finance-news-item,.webcam-card,.source-row,.signal-driver,.level-history-row,.critical-item,.brief-signal,.brief-headline,.incident-thread,.saved-monitor){min-width:0;min-height:min-content;flex-shrink:0;height:auto!important;overflow-wrap:anywhere}
:is(.intel-main,.stability-main,.aircraft-main,.news-item,.event,.finance-news-item,.webcam-card) :is(strong,small,a,span){white-space:normal;text-overflow:clip;overflow-wrap:anywhere}
:is(.intel-list,.aviation-list,.webcam-list,.stability-list,.finance-news-list,.news-list,.event-list){min-height:0}
/* Existing larger dialog headings remain larger. Keep the content scrolling. */
dialog{font-size:19px;line-height:1.55;max-width:calc(100vw - 12px);max-height:94dvh;overflow-wrap:anywhere}
dialog :is(p,li,label,small,summary){line-height:1.5!important;white-space:normal;overflow-wrap:anywhere}
dialog :is(input,select,textarea){min-width:0;max-width:100%}dialog .dialog-head{flex-wrap:nowrap;min-width:0;align-items:flex-start}dialog .dialog-head>div{min-width:0;flex:1}dialog .dialog-head>button{flex:none;min-width:44px;min-height:44px}
#critical-desk-dialog :is(.critical-metrics,.critical-scale),#global-brief-dialog .brief-overview{min-width:0}
#critical-desk-dialog :is(.critical-footer,.critical-meta),#global-brief-dialog :is(.brief-footer,.brief-meta){flex-wrap:wrap;overflow-wrap:anywhere}
#global-brief-dialog .brief-controls>span,#critical-desk-dialog .critical-meta{white-space:normal!important}
#gs-more-dialog .gs35-toolitems>button{min-height:52px!important;font-size:19px!important;line-height:1.35!important;overflow-wrap:anywhere}
/* Leaflet is third-party, so change its reading sizes here rather than its vendor CSS. */
.leaflet-popup-content,.leaflet-tooltip{font-family:inherit;font-size:18px!important;line-height:1.45!important;overflow-wrap:anywhere;white-space:normal}
.leaflet-popup-content :is(strong,b){font-size:20px!important}.leaflet-control-attribution{font-size:14px!important;line-height:1.35!important;max-width:100%;white-space:normal}
.leaflet-control-scale-line{font-size:15px!important;line-height:1.3!important}
/* Globe marker text must fit the marker; descriptive detail is large in the sheet. */
.gs-globe-marker{font-size:14px!important;line-height:1!important;white-space:nowrap!important;min-height:0!important}
@media(max-width:700px){
 :root{--gs-nav-height:86px}
 #gs-mobile-nav{height:calc(var(--gs-nav-height) + env(safe-area-inset-bottom));align-items:stretch;gap:1px}
 #gs-mobile-nav button{padding:5px 1px;min-width:0;min-height:0;gap:3px;justify-content:center}
 #gs-mobile-nav .gs-nav-label,#gs-mobile-nav [data-gs-view="overview"] .gs-nav-label{font-size:15px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere;letter-spacing:-.15px;text-align:center;max-width:100%}
 #gs-mobile-nav .gs-nav-icon{font-size:24px!important;line-height:1.2!important}
 .gs-app-brand strong{font-size:clamp(17px,4.5vw,21px)!important;letter-spacing:0!important}.gs-app-brand{min-width:0}.gs35-status{font-size:17px!important;padding:6px 8px;flex:none}
 main :is(.stats,.signal-metrics,.aviation-metrics,.weather-metrics,.space-metrics,.snapshot-grid){grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
 main :is(.stats,.signal-metrics,.aviation-metrics,.weather-metrics,.space-metrics,.snapshot-grid)>*{min-width:0;overflow-wrap:anywhere}
 main .panel-title{padding:12px 13px;align-items:start}
 main .panel-title :is(span,small){max-width:100%;min-width:0}
 .gs-map-controls,.map-bar,.map-footer{height:auto!important;flex-wrap:wrap}
 #critical-desk-dialog .critical-scroll,#global-brief-dialog .brief-scroll{min-height:0;flex:1 1 auto}
 #critical-desk-dialog .critical-footer,#global-brief-dialog .brief-footer{padding:8px 12px;gap:6px}
 #critical-desk-dialog .critical-scale{overflow-x:auto;grid-template-columns:repeat(5,minmax(80px,1fr))}
 dialog .dialog-head h2{overflow-wrap:anywhere}dialog .dialog-head :is(p,span){overflow-wrap:anywhere}
 #gs-more-dialog .gs35-toolitems{gap:8px}#gs-more-dialog .gs35-toolitems button{padding:10px!important}
 .gs36-sheet :is(button,a){white-space:normal;overflow-wrap:anywhere}
 .weather-forecast{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))!important}
 .signal-level-scale i{min-width:27px;min-height:26px;line-height:1.3}
 .gs-mission-strip-actions{flex-wrap:wrap;overflow:visible}
}
@media(max-width:700px){
 #gs-mobile-nav{grid-template-columns:1fr 1.48fr 1fr 1fr 1fr}
 #gs-mobile-nav .gs-nav-label,#gs-mobile-nav [data-gs-view="overview"] .gs-nav-label{white-space:nowrap!important;overflow-wrap:normal;letter-spacing:-.25px}
 .gs-mission-strip-tools{flex:0 0 auto}.gs-mission-strip-head button{min-width:90px;white-space:nowrap!important;overflow-wrap:normal}
}
@media(max-width:350px){
 #gs-mobile-nav .gs-nav-label,#gs-mobile-nav [data-gs-view="overview"] .gs-nav-label{font-size:14px!important}
 .gs35-status{font-size:15px!important;padding:6px}.gs-app-brand strong{font-size:15px!important;letter-spacing:0!important}.gs-app-header{gap:5px!important}
 .gs-mission-strip-head{gap:8px}.gs-mission-strip-head>div:first-child{flex:1}.gs-mission-strip-head button{min-width:83px;padding:8px}
}

/* Theme-specific text colors; category marker colors remain unchanged. */
body.light{--severity-low:#46566b;--severity-medium:#934500;--severity-critical:#b51f36}
body.light .gs-mission-strip-head span,body.light .gs-mission-dialog-head span{color:#735300}
body.light .event-top>span:first-child{color:#735000!important}

/* Map hover labels must size to their content, never stretch across the map. */
#map .leaflet-tooltip{width:max-content!important;min-width:0!important;max-width:min(260px,65vw)!important;height:auto!important;background:var(--panel,#142335)!important;color:var(--text,#eef4fa)!important;border:0!important;box-shadow:none!important;padding:6px 9px!important;white-space:normal!important;pointer-events:none!important}
#map .leaflet-tooltip:before{display:none!important}
/* Supplied publisher thumbnails; no image means the original text layout. */
.gs-news-thumbnail{float:right;width:112px;height:84px;object-fit:cover;border-radius:8px;margin:0 0 10px 14px;background:var(--panel,#142335)}
.today-headline::after,.news-item::after{content:'';display:block;clear:both}
.gs-news-photo{display:block;width:100%;max-height:280px;object-fit:contain;border-radius:8px;margin:12px 0}
@media(max-width:430px){.gs-news-thumbnail{width:88px;height:66px;margin-left:10px}}
