/* CEAS institutional design system — coherent, high-contrast editorial UI.
   UI uses neutral gray/black/white and pure red; editorial media is untouched. */
:root{
  --ceas-black:#080808;--ceas-panel:#111111;--ceas-surface:#111111;
  --ceas-paper:#f5f5f5;--ceas-ink:#080808;--ceas-white:#ffffff;
  --ceas-raised:#191919;--ceas-graphite:#111111;
  --ceas-secondary:#c8c8c8;--ceas-hint:#a9a9a9;
  --ceas-signal:#dc0000;--ceas-signal-bright:#f00000;
  --ceas-accent:#dc0000;--ceas-red:#dc0000;
  --red:#dc0000;--red2:#f00000;--v43-red:#dc0000;
  --sovereign-red:#dc0000;--ceas-studio-red:#dc0000;
  --ceas-gallery-red:#dc0000;
  --ceas-rule:rgba(255,255,255,.14);--ceas-line:rgba(255,255,255,.14);
  --ceas-v75-content-width:1376px;
}
html{background:#080808;color-scheme:dark;scroll-padding-top:88px}
html body{background-color:#080808;color:#f5f5f5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html body :is(h1,h2,h3,h4){text-wrap:balance;overflow-wrap:break-word}
html body :is(p,li){text-wrap:pretty}
html body :is(.mast-main,.inst-shell,.stream-shell,.library-shell,.command-shell,.v42-shell,.site-footer){max-width:var(--ceas-v75-content-width);margin-left:auto;margin-right:auto;box-sizing:border-box}
html body :is(.masthead,.library-topbar,.audio-topbar,.topbar){background:#080808!important;border-bottom:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important}
html body :is(.utility,.v45-utility){border-color:rgba(255,255,255,.12)!important;color:#bdbdbd!important;letter-spacing:.08em}
html body .primary-nav{gap:clamp(10px,1.35vw,24px)!important;min-width:0}
html body .primary-nav a{font-size:clamp(12px,.88vw,14px)!important;line-height:1.35!important;letter-spacing:.025em!important;color:#e4e4e4!important;text-decoration:none!important;white-space:nowrap}
html body .primary-nav a:is(:hover,.active,[aria-current="page"]){color:#ffffff!important;border-color:#e00000!important}
html body :is(.brand,.identity){max-width:100%}
html body .mast-actions{display:flex;gap:clamp(7px,.7vw,14px);align-items:center;flex-shrink:0}
html body :is(.lang-switch,.ceas-v72-lang,.ceas-global-lang){gap:5px;display:flex;flex-wrap:wrap;align-items:center}
html body :is(.lang-switch,.ceas-v72-lang,.ceas-global-lang) button{font-size:12px!important;min-width:40px!important;min-height:42px!important;padding:8px 10px!important;color:#ececec!important;background:#111111!important;border:1px solid #484848!important;border-radius:3px!important;line-height:1.3!important;letter-spacing:.02em;cursor:pointer}
html body :is(.lang-switch,.ceas-v72-lang,.ceas-global-lang) button:is(.active,[aria-pressed="true"]){color:#ffffff!important;border-color:#dc0000!important;background:#b80000!important}
html body :is(.lang-switch,.ceas-v72-lang,.ceas-global-lang) button:hover{border-color:#dc0000!important}
html body :is(.hero-v45,.inst-hero,.stream-hero,.library-hero,.audio-hero,.flash-hero){background-color:#0b0b0b!important;border-color:rgba(255,255,255,.12)!important}
html body :is(.hero-v45-copy,.inst-hero,.lead-story,.v46-observatory__content){min-width:0}
html body :is(.hero-v45-name,.inst-hero h1,.lead-story h2,.audio-hero h1,.stream-hero h1){letter-spacing:-.03em!important;line-height:1.08!important;overflow-wrap:break-word}
html body :is(.hero-v45-actions,.v46-action-row,.hero-actions,.stream-filters,.filter-row){gap:clamp(9px,1vw,18px)!important;flex-wrap:wrap}
html body :is(.hero-v45-actions a,.v46-action-main,.v46-action-outline,.secure-link,.button.primary,.quick-submit,.action-primary){min-height:44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;text-decoration:none;white-space:normal;text-align:center}
html body :is(.hero-v45-actions a,.v46-action-main,.button.primary,.quick-submit,.action-primary):hover{border-color:#f00000!important;filter:none!important}
html body :is(.section-title,.inst-head,.operations-head,.stream-head,.panel-head){min-width:0;gap:12px}
html body :is(.story-card,.lead-story,.stream-card,.library-card,.inst-card,.article-card,.rail-card,.panel,.news-card,.v42-metric-card){border:1px solid rgba(255,255,255,.13)!important;border-radius:6px!important;background-color:#101010!important;box-shadow:none!important;min-width:0;max-width:100%;overflow:hidden;box-sizing:border-box}
html body :is(.story-card,.lead-story,.stream-card,.library-card,.inst-card,.article-card,.rail-card,.panel,.news-card):hover{border-color:rgba(220,0,0,.6)!important;box-shadow:none!important}
html body :is(.story-card,.lead-story,.stream-card,.library-card,.inst-card,.article-card) :is(h2,h3,h4,p,a){overflow-wrap:anywhere}
html body :is(.story-card,.lead-story,.stream-card,.library-card,.inst-card,.article-card) :is(img,video){max-width:100%;object-fit:contain!important}
html body :is(.lead-story .lead-media,.stream-card .media,.story-card .card-media,.article-card .article-media,.library-card .library-media){overflow:hidden!important;background:#080808!important;max-width:100%}
html body :is(.lead-story .lead-media img,.stream-card .media img,.story-card .card-media img,.library-card .library-media img){display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important}
html body :is(.inst-section,.lead-section,.mission-system,.operations,.library-section){max-width:100%;min-width:0}
html body :is(.stream-grid,.story-grid,.library-list,.inst-grid,.lead-layout,.operations-grid){min-width:0}
html body :is(.stream-grid,.story-grid,.library-list,.inst-grid,.lead-layout,.operations-grid)>*{min-width:0}
html body :is(input,select,textarea){max-width:100%;box-sizing:border-box;accent-color:#dc0000;color:#f5f5f5}
html body :is(input,select,textarea):focus-visible{outline:2px solid #f00000!important;outline-offset:2px!important}
html body :is(button,a,[tabindex]):focus-visible{outline:2px solid #f00000!important;outline-offset:3px!important}
html body :is(button,a,input,select,textarea){touch-action:manipulation}
html body :is(.radar-scope,.radar-panel,.radar-v55-stage,.corpus-radar-stage,.scope-core,.v46-observatory__visual){min-width:0;max-width:100%;box-sizing:border-box}
html body :is(.radar-v55-metrics,.radar-metrics,.v42-metric-card,.hero-v45-stats){font-variant-numeric:tabular-nums}
html body :is(.radar-stage-scope,.scope-axis,.v46-visual-rings,.scope-sweep){filter:none!important}
html body :is(.v46-observatory__visual,.radar-panel,.radar-v55-stage){background-color:#090909!important;border-color:rgba(255,255,255,.14)!important}
html body :is(.v46-observatory,.ceas-world-feed,.corpus-radar-section,.evidence-standard){border-color:rgba(255,255,255,.14)!important}
html body :is(.tag,.badge,.status,.tag-pill){border-color:rgba(255,255,255,.17)!important}
html body :is(.top-right,.ceas-world-controls,.library-tools){min-width:0;max-width:100%;flex-wrap:wrap}
html body :is(.v46-disclosure,.map-note,.meta-note,.evidence-copy){color:#bcbcbc!important}
html body :is(.reading-progress,.progress-bar){background-color:#dc0000!important}
/* Autonomous observatory — same institutional contrast as the editorial portal. */
html body:has(.shell) :is(.shell,.rail,.main-panel,.top){background-color:#090909!important;color:#f5f5f5}
html body:has(.shell) :is(.rail,.top,.nav,.filters,.hero,.panel,.card){border-color:rgba(255,255,255,.14)!important}
html body:has(.shell) :is(.nav a,.breadcrumb,.top-right,.field span){color:#dedede}
html body:has(.shell) :is(.nav a.active,.nav a:hover){color:#ffffff!important;border-color:#dc0000!important}
@media(max-width:1100px){
 html body .primary-nav{gap:10px!important}
 html body .mast-main{padding-inline:clamp(12px,2.4vw,26px)!important}
}
@media(max-width:760px){
 html body :is(.mast-main,.inst-shell,.stream-shell,.library-shell,.command-shell,.site-footer){width:100%;padding-left:max(16px,env(safe-area-inset-left))!important;padding-right:max(16px,env(safe-area-inset-right))!important}
 html body .mast-actions{margin-left:auto;max-width:100%}
 html body :is(.hero-v45,.v46-observatory,.ceas-world-feed,.lead-section,.mission-system){padding-inline:clamp(16px,4.2vw,24px)!important}
 html body :is(.hero-v45-copy,.hero-v45-map,.v46-observatory__content,.v46-observatory__visual){width:100%;max-width:100%}
 html body :is(.stream-grid,.story-grid,.library-list,.inst-grid,.lead-layout,.operations-grid){grid-template-columns:minmax(0,1fr)!important}
 html body :is(.filter-row,.ceas-world-controls,.stream-filters){gap:10px!important}
 html body :is(.filter-row select,.stream-filters select,.ceas-world-controls select){width:100%;min-height:44px}
 html body :is(.hero-v45-name,.inst-hero h1){font-size:clamp(32px,8.5vw,58px)!important}
 html body .hero-v45-actions a{flex:1 1 145px}
 html body :is(.lang-switch,.ceas-global-lang){justify-content:center}
 html body :is(.lang-switch,.ceas-global-lang) button{min-height:44px!important}
 html body .utility span:nth-child(2){display:none!important}
}
@media(prefers-reduced-motion:reduce){html *,html *::before,html *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
