.language-switch{display:inline-flex;align-items:center;gap:.2rem;flex-shrink:0;padding:.15rem;border:1px solid #45616d;border-radius:5px;font-size:.78rem;line-height:1.4}
.language-switch button{font:inherit;color:#c8d7df;background:transparent;border:0;border-radius:3px;padding:.35rem .5rem;cursor:pointer;min-height:32px}
.language-switch button[aria-pressed="true"]{background:#9aeeed;color:#08151c;font-weight:700}
.language-switch button:focus-visible{outline:2px solid #fff;outline-offset:2px}
html[lang="en"] .section-title{letter-spacing:.04em;line-height:1.5}
html[lang="en"] .card,html[lang="en"] article{overflow-wrap:anywhere}
html[lang="en"] .header-inner{flex-wrap:wrap;gap:.5rem}
@media(max-width:800px){.language-switch button{min-height:40px}.hdr-left{flex-wrap:wrap}.logo-sub{display:none}html[lang="en"] .header-status{flex-wrap:wrap}html[lang="en"] .section-title{font-size:.76rem}.hdr-left .network-links{border-left:0;padding-left:0}}
header .header-inner{height:auto;min-height:64px;padding:.6rem 0;flex-wrap:wrap;gap:.6rem}
header .hdr-left{flex-wrap:wrap}
header .header-status{flex-wrap:wrap;max-width:100%;gap:.6rem}
@media(max-width:800px){header .header-inner{min-height:48px;padding:.5rem 0}header .hdr-left{gap:.5rem}.language-switch{order:2}}
/* Keep the arcade frame; prose and controls need a stable reading size. */
body .container :is(.news-item,.poly-question,.poly-meta,.strat-note,.fh-legend,.fh-tab,.food-row,.strat-name,.ti-panel,.signal-desc){font-family:Arial,'Noto Sans TC',sans-serif!important;font-size:14px!important;line-height:1.65!important;letter-spacing:normal}
body .container :is(.strat-note,.fh-legend,.poly-meta){color:#a9bdcb}
body .container .fh-tab{min-height:36px;padding:.3rem .7rem}
body .container .fh-chart{max-width:900px;margin-inline:auto}
body .container .fh-chart svg{min-width:720px}
body .container .fh-svg-axis{font-family:Arial,'Noto Sans TC',sans-serif!important;font-size:13px}
.reading-details{margin-top:.45rem}
.reading-details>summary{cursor:pointer;color:#a9dce5;line-height:1.6;padding:.25rem 0}
.reading-details>summary:hover{color:#8de9ef}
.reading-details>summary:focus-visible{outline:2px solid #8de9ef;outline-offset:3px}
.reading-details>p{margin:.5rem 0;max-width:75ch}
body .container :is(.card,.card [style*="font-family"],.card small,.news-src,.news-time,.food-unit,.strat-val .u){font-family:Arial,'Noto Sans TC',sans-serif!important}
body .container :is(.card small,.news-src,.news-time,.food-unit,.strat-val .u){font-size:12px!important;line-height:1.6}
body .container .card [style*="font-size:.6"]{font-size:12px!important;line-height:1.6!important}
#strat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1rem}
#strat-grid .strat-item{padding:.8rem;border:1px solid #37506a;min-width:0}
@media(max-width:800px){#strat-grid{grid-template-columns:1fr}}
.chart-scroll-hint{display:none;color:#a9bdcb;font:12px/1.6 Arial,'Noto Sans TC',sans-serif}
@media(max-width:800px){.chart-scroll-hint{display:block}}
#chart-tip{font:14px/1.6 Arial,'Noto Sans TC',sans-serif!important;white-space:normal!important;overflow-wrap:anywhere}
body .container .section-title{font-size:14px!important;line-height:1.5!important;letter-spacing:.04em;color:#b7d5df}
body .container .section-title::before{flex-shrink:0;white-space:nowrap}
body .container .section-title svg{flex-shrink:0}
.fh-chart{scrollbar-color:#536f82 #0a1622;scrollbar-width:thin}
body .container :is(.news-topic,.strat-flag,.pla-legend,.pla-legend a,.tg-cta-txt small,.tg-cta-go){font-size:12px!important;font-family:Arial,'Noto Sans TC',sans-serif!important;line-height:1.6}
@media(max-width:600px){body .container .news-item{display:grid;grid-template-columns:auto 1fr;gap:.3rem .6rem;padding:.7rem 0}body .container .news-title{grid-column:1/-1}body .container .news-topic{max-width:none}body .container .news-time{text-align:right}}
body .container :is(.osint-updated,.avi-box-lbl,.avi-tr .row,.avi-item){font-family:Arial,'Noto Sans TC',sans-serif!important;font-size:12px!important;line-height:1.6;letter-spacing:normal}
body .container .osint-adv-hdr{font-size:14px;letter-spacing:.03em;flex-wrap:wrap;gap:.5rem}
body .container .avi-tr .row{white-space:normal;flex-wrap:wrap}
.observation-caption{font:13px/1.6 Arial,'Noto Sans TC',sans-serif;color:#a9bdcb;margin:.4rem 0 .8rem}
#notac-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;align-items:stretch;grid-auto-rows:1fr}
.notac-tile{min-width:0;border:1px solid #304252;padding:1rem;background:#101d28;font:14px/1.6 Arial,'Noto Sans TC',sans-serif}
.notac-tile-head{display:flex;justify-content:space-between;align-items:start;gap:.5rem;flex-wrap:wrap}
.notac-status{font-size:12px;color:#b8c7d3;background:#22313e;padding:.15rem .4rem}
.notac-count{display:flex;align-items:baseline;gap:.7rem;margin:.7rem 0 .3rem;flex-wrap:wrap}
.notac-count b{font-size:32px;line-height:1.2;color:#c9f7fa;font-variant-numeric:tabular-nums}
.notac-count span,.notac-time{font-size:12px;color:#9eb2c2}
.notac-coverage{font-size:13px;color:#e0c78a}
.notac-source{display:inline-block;margin-top:.7rem;color:#8de9ef;text-decoration:none}
.notac-source:hover{color:#fff}
body .container .pla-wrap{display:grid;grid-template-columns:180px minmax(0,1fr);gap:1.4rem;padding:1.2rem;background:#101d28;border:1px solid #304252}
.pla-summary{border-right:1px solid #304252;padding-right:1rem;align-self:stretch}
.pla-date{font:13px/1.6 Arial,sans-serif;color:#a9bdcb;margin-top:.8rem}
.pla-latest-value{display:flex;gap:.6rem;align-items:baseline;margin:.25rem 0}
.pla-latest-value b{font:600 48px/1.2 Arial,sans-serif;font-variant-numeric:tabular-nums}
.pla-latest-value span{font-size:13px;color:#a9bdcb}
.pla-chart-panel{min-width:0}.pla-chart-heading{font-size:13px;color:#b7d5df;margin-bottom:.6rem}
body .container .pla-chart-panel .fh-chart{max-width:none}
body .container .pla-chart-panel .fh-chart svg{min-width:560px}
.pla-elevated{color:#ff8e9b;font-size:13px}
@media(max-width:1000px){#notac-body{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#notac-body{grid-template-columns:1fr}body .container .pla-wrap{grid-template-columns:1fr;gap:.8rem}.pla-summary{border-right:0;border-bottom:1px solid #304252;padding:0 0 .8rem}.pla-latest-value b{font-size:36px}}
/* Instrument-panel hierarchy: quiet frames, bright controls, compact summaries. */
body.theme-8bit .container .card{border:1px solid #334357!important;border-radius:8px!important;box-shadow:0 4px 16px #0003!important;background:#0b1420!important}
body.theme-8bit .container :is(.notac-tile,.pla-wrap){border-radius:6px!important}
.notac-region{display:flex;align-items:center;gap:.65rem;min-width:0}
.notac-icon{width:32px;height:32px;flex:none;color:#79ccd7}
.notac-region strong{font-size:15px;color:#d7e8f2}
.notac-status>span{margin-right:.2rem;color:#afc5d5}
.notac-count{padding-left:2.65rem}
.notac-coverage,.notac-time{padding-left:2.65rem}
@media(max-width:600px){body .container .fh-chart{overscroll-behavior-x:contain}body .container .fh-tab{min-height:42px}body .container .news-title{font-size:14px!important}}

/* Unified grain explorer: preserve source-specific chart axes and legends. */
#grain-explorer [hidden] { display:none !important; }
#grain-explorer #fh-cmd, #grain-explorer #fh-view,
#grain-explorer #uh-cmd, #grain-explorer #uh-view { display:none; }
#grain-explorer > .fh-wrap { margin-top:0 !important; padding-top:.5rem !important; border-top:0 !important; }
#grain-explorer #uh-wrap > .fh-controls { display:none; }
#grain-explorer #food-hist-wrap > .fh-controls { justify-content:flex-end; }
#grain-view { gap:.4rem; }
#grain-explorer .fh-tab { min-height:36px; padding:.4rem .6rem; }
@media(max-width:600px){
  #grain-explorer > .fh-controls { align-items:stretch; flex-direction:column; }
  #grain-view { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Equal collapsed NOTAM cards, with aligned footer actions and no clipped details. */
.notac-tile{display:flex;flex-direction:column}
.notac-tile-head{min-height:3.2rem}
.notac-time{margin-top:auto;padding-top:.3rem}
.notac-tile>.reading-details{margin-bottom:0}
.notac-tile>.notac-source{align-self:flex-start}
#notac-body:has(details[open]){grid-auto-rows:auto}

.site-disclaimer{margin:1.5rem 0;padding:1rem;border:1px solid #334357;border-radius:8px;color:#a9bdcb;font:14px/1.8 Arial,'Noto Sans TC',sans-serif}
.site-disclaimer h2{font-size:16px;color:#d7e8f2;margin:0 0 .4rem}
.site-disclaimer p{margin:.4rem 0}.site-disclaimer summary{cursor:pointer;color:#8de9ef}
