/* VietScope Visual Refresh — soft midnight, sea glass, and warm sand.
   Original UI styling. Designed to preserve readability of financial data.
   This layer intentionally changes presentation only, not source figures. */
:root{
 --vs-bg:#0a1c2a;--vs-deep:#0d2231;--vs-surface:#133246;
 --vs-raised:#193b4d;--vs-border:#3c6571;--vs-text:#f1f7f9;
 --vs-muted:#bdd0d8;--vs-accent:#9be1d2;--vs-warm:#e8cda0;
 --vs-focus:#f2d49b;
}
html{background:var(--vs-bg)}
body{background-color:var(--vs-bg);color:var(--vs-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--vs-focus)!important;outline-offset:3px}
:is(button,a,input,select,textarea){-webkit-tap-highlight-color:rgba(155,225,210,.16)}
a{transition:color .18s ease,border-color .18s ease}
:is(input,select,textarea){accent-color:#89d8c8}
::selection{background:#477b75;color:#fff}
:where(.panel,.card,.tile,.feature,.entry,.value,.stat,.metric,.preview,.search-card,.mp-outlook,.search-panel,.vs-intraday){
 box-shadow:0 8px 24px rgba(2,12,20,.11);
}
:where(.panel,.card,.tile,.feature,.entry,.value,.stat,.metric,.preview,.search-card,.mp-outlook){
 border-color:var(--vs-border);
}
:where(.panel,.card,.tile,.feature,.entry,.value,.stat,.metric,.preview,.search-card,.mp-outlook) :is(p,small){
 line-height:1.7;
}
:where(.panel,.card,.tile,.feature,.entry,.value,.stat,.metric,.preview,.search-card,.mp-outlook) a:focus-visible{
 border-radius:4px;
}
@media(min-width:768px){
 :where(.panel,.card,.tile,.entry,.feature){transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
 :where(.panel,.card,.tile,.entry,.feature):hover{border-color:#588c90;box-shadow:0 16px 32px rgba(1,14,24,.18)}
}
@media(max-width:767px){
 html,body{overflow-x:clip}
 :where(.wrap){width:min(100% - 30px,1220px)}
 :where(.hero){background-image:linear-gradient(140deg,#102b3f,#0a2030)!important}
 :where(.panel,.card,.tile,.feature,.entry,.value,.stat,.metric,.preview,.search-card,.mp-outlook,.search-panel){
  border-radius:13px;
 }
 :where(.lead,.hero-copy,.subtitle,.note,.lede){line-height:1.72}
 :where(input[type="search"],input[type="text"],input[type="email"],select,textarea){
  font-size:16px!important; /* prevent Safari focus zoom */
 }
 :where(button,.action,.btn,.view-link,.feature-action){touch-action:manipulation}
 :where(.hero h1,h1){letter-spacing:-.036em}
 :where(.feature,.tile){min-height:unset}
 :where(.panel,.card){box-shadow:none}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}
}

/* 2026 VietScope identity: navy and metallic gold symbol system. */
:root{--vs-gold:#D8B77A;--vs-rich-navy:#0B1424;--vs-accent:#E4C28C;--vs-warm:#E8CDA0}
.vs-brand-icon{width:43px;height:43px;object-fit:contain;flex:0 0 43px;vertical-align:middle;border-radius:10px;box-shadow:0 0 0 1px #d8b77a30}
a.brand{display:inline-flex!important;align-items:center;gap:10px;color:#F4D7A3!important;letter-spacing:-.035em}
a.brand .brandtag{color:#D4BE99}
a.brand em{color:#F7E9C5!important}
@media(max-width:600px){.vs-brand-icon{width:36px;height:36px;flex-basis:36px}a.brand{gap:7px;font-size:20px!important}}

/* Fluid zoom resilience — desktop browser zoom changes the CSS viewport width.
   Allow layout reflow without clipping research data or hiding interactive actions. */
html{min-width:0}
body{min-width:0}
:where(main,header,footer,section,article,aside,nav,.wrap,.header-bar,.hero-inner,.features,.preview,.search-card,.mp-outlook,.mp-outlook-list,.news-board,.vs-compare-inner){min-width:0}
:where(.wrap){max-width:100%}
:where(img,video,canvas,svg){max-width:100%}
:where(img,video){height:auto}
:where(.panel,.card,.tile,.feature,.entry,.value,.stat,.metric,.preview,.search-card,.mp-outlook,.news-board,.news-item,.mp-outlook-item){min-width:0}
:where(.news-title,.news-source,.mp-outlook-item,.feature,.panel,.card,.tile,.entry){overflow-wrap:anywhere}
:where(.data-table,.table-scroll,.table-responsive,.table-wrap,.stock-table-wrap){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
:where(table){max-width:100%}
:where(input,select,textarea){max-width:100%;min-width:0}
:where(.hero-inner,.features,.mp-outlook-list){max-width:100%}
:where(.preview-chart,.chart-container,.chart-wrap,.vs-intraday){max-width:100%;min-width:0}
@media(max-width:1180px){
 .site-header .header-bar{gap:clamp(8px,1.4vw,18px)}
 a.brand{flex-shrink:1;min-width:0}
 a.brand span{min-width:0;overflow-wrap:normal}
 .vs-main-menu{flex-shrink:0}
}
@media(max-width:1050px){
 :where(.hero-inner){gap:clamp(16px,3vw,30px)}
 :where(.features){gap:12px}
 :where(.feature){padding:clamp(14px,2.1vw,23px)}
 :where(.section-head,.home-section-heading,.vs-compare-inner){flex-wrap:wrap}
}
@media(max-width:900px){
 :where(.hero-inner){grid-template-columns:minmax(0,1fr)}
 :where(.preview){width:100%;max-width:100%}
 :where(.features){grid-template-columns:repeat(2,minmax(0,1fr))}
 :where(.mp-outlook-list){grid-template-columns:minmax(0,1fr)}
 .site-header .header-bar{min-width:0}
}
@media(max-width:600px){
 :where(.features){grid-template-columns:minmax(0,1fr)}
 :where(.wrap){width:calc(100% - 28px)}
 :where(.news-columns,.news-item){grid-template-columns:62px minmax(0,1fr);gap:8px}
 :where(.news-columns>span:last-child,.news-source){display:none}
 :where(.preview-footer){grid-template-columns:repeat(2,minmax(0,1fr))}
 :where(.preview-mini){min-width:0;padding:10px}
 :where(.preview-mini strong){overflow-wrap:anywhere}
}

/* Image-backed commentary; aspect-ratio prevents overlap or layout jumps. */
.mp-outlook-item{min-width:0;overflow:hidden}
.mp-outlook-photo{display:block;position:relative;aspect-ratio:16/7;max-height:160px;overflow:hidden;border-radius:8px;margin-bottom:12px;background:#15364a}
.mp-outlook-photo img{display:block;width:100%;height:100%;object-fit:cover;max-width:100%}
.mp-outlook-credit{position:absolute;bottom:0;right:0;max-width:100%;padding:5px 9px;color:#f4f7fa;background:rgba(4,19,31,.88);font-size:10px;line-height:1.3;overflow-wrap:anywhere}
@media(max-width:600px){.mp-outlook-photo{aspect-ratio:16/8;max-height:135px}}
