/* GE Market Watch design system v2 — shared app shell */
:root{
 --gm-canvas:#120e0b;--gm-surface:#251c12;--gm-surface-raised:#312517;
 --gm-border:rgba(192,170,127,.16);--gm-emphasis:#f9f7f4;--gm-secondary:#c6b28c;
 --gm-accent:#e4b04a;--gm-radius:16px;--gm-easing:cubic-bezier(.2,.75,.3,1);
}
body.gm-redesign-shell{background:radial-gradient(ellipse at 62% -20%,rgba(131,102,63,.13),transparent 56%),var(--gm-canvas);color:var(--gm-emphasis)}
.gm-redesign-shell .iw-app-shell{grid-template-columns:246px minmax(0,1fr);background:transparent}
.gm-redesign-shell .iw-sidebar{background:linear-gradient(180deg,#241b11,#1a150f);border-right:1px solid var(--gm-border);padding:22px 14px;z-index:45}
.gm-redesign-shell .iw-side-brand{padding:4px 8px 18px;display:block}
.gm-redesign-shell .iw-side-brand-lockup{max-width:100%;height:auto}
.gm-redesign-shell .iw-side-nav{gap:4px;padding:8px 0}
.gm-redesign-shell .gm-nav-label{color:#a48751;font-size:11px;text-transform:uppercase;letter-spacing:1.7px;font-weight:800;padding:23px 14px 9px}
.gm-redesign-shell .iw-side-nav a{min-height:43px;font-size:12px;font-weight:650;color:#c4bdb1;padding:11px 13px;border:1px solid transparent;border-radius:11px;transition:background .15s,border-color .15s}
.gm-redesign-shell .iw-side-nav a span{font-size:17px;width:20px;color:#b9a071}
.gm-redesign-shell .iw-side-nav a:hover{color:white;background:rgba(176,148,95,.10)}
.gm-redesign-shell .iw-side-nav a.active,.gm-redesign-shell .iw-side-nav a[aria-current=page]{background:rgba(188,151,84,.15);border-color:rgba(223,180,100,.22);color:#f7f2ea;box-shadow:none}
.gm-redesign-shell .iw-side-status{margin-top:32px;border:1px solid var(--gm-border);border-radius:14px}
.gm-redesign-shell .iw-workspace{padding:0 clamp(15px,2.7vw,42px) 45px;min-width:0;background:none}
.gm-redesign-shell .iw-topbar.gm-header{display:flex!important;align-items:center;gap:18px;min-height:83px;margin:0!important;padding:12px 0!important;background:none!important;border-bottom:1px solid var(--gm-border)}
.gm-redesign-shell .iw-header-wordmark{flex:0 0 auto;max-width:230px}
.gm-redesign-shell .iw-header-wordmark img{max-width:100%;height:auto}
.gm-redesign-shell .iw-topbar-actions{margin-left:auto;gap:8px}
.gm-redesign-shell .gm-authbar{margin-left:0}
.gm-redesign-shell .gm-global-search{flex:1 1 240px;min-width:180px;max-width:480px;margin:0 0 0 auto}
.gm-redesign-shell .gm-global-search input{height:44px;background:rgba(40,30,19,.88);border:1px solid var(--gm-border);border-radius:12px;font-size:13px;padding-left:15px}
.gm-redesign-shell .gm-global-search input:focus{border-color:rgba(230,189,112,.6);outline:3px solid rgba(230,189,112,.10)}
.gm-redesign-shell .gm-results{top:49px;border-radius:12px;background:#281e13;border-color:#655036}
.gm-redesign-shell .iw-topbar .iw-global-search{flex:1;min-width:0;max-width:650px}
.gm-redesign-shell .iw-topbar .iw-item-top-search{width:100%}
.gm-redesign-shell .mw-card{border-color:var(--gm-border);border-radius:var(--gm-radius);box-shadow:0 12px 28px rgba(0,0,0,.12)}
.gm-redesign-shell .mw-card-head{border-bottom-color:var(--gm-border)}
.gm-redesign-shell .mw-btn{border-radius:11px;min-height:39px}
.gm-redesign-shell .mw-btn.small{min-height:36px}
.gm-redesign-shell .iw-page-hero,.gm-redesign-shell .iw-banner{margin-top:22px}
.gm-redesign-shell .iw-workspace :is(.iw-portfolio-table,.mw-watch-table){font-variant-numeric:tabular-nums}
.gm-bottom-nav,.gm-mobile-search,.gm-more-drawer,.gm-more-scrim{display:none}
.gm-search-dialog{color:var(--gm-emphasis);background:#231b11;border:1px solid #755e40;box-shadow:0 28px 80px #000a;border-radius:18px;padding:0;width:min(640px,calc(100% - 24px));max-height:min(85dvh,680px);overflow:hidden}
.gm-search-dialog::backdrop{background:rgba(18,14,11,.78);backdrop-filter:blur(7px)}
.gm-search-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--gm-border)}
.gm-search-head strong{font-size:17px}
.gm-search-head button,.gm-drawer-head button{border:0;background:transparent;color:#e4ded3;display:grid;place-items:center;width:40px;height:40px;border-radius:11px;cursor:pointer}
.gm-search-field{display:flex;align-items:center;gap:10px;margin:20px;background:#18140f;border:1px solid #6b563a;border-radius:13px;padding:0 14px;color:var(--gm-accent)}
.gm-search-field:focus-within{border-color:var(--gm-accent)}
.gm-search-field input{border:0;background:transparent;color:white;min-width:0;width:100%;height:50px;outline:0;font-size:16px}
.gm-search-hint{font-size:12px;color:var(--gm-secondary);padding:0 20px;margin:0 0 12px}
.gm-search-list{max-height:48dvh;overflow-y:auto;padding:0 12px 15px}
.gm-search-list a{display:flex;gap:12px;align-items:center;text-decoration:none;padding:10px 13px;border-radius:10px;color:#f6f1e9;min-height:57px}
.gm-search-list a:hover,.gm-search-list a:focus-visible{background:#473622}
.gm-search-list a img{width:38px;height:38px;object-fit:contain}
.gm-search-list a span{flex:1;font-weight:600}
.gm-search-list p{padding:14px;color:#c8c1b3}
@media(max-width:1100px) and (min-width:761px){
 .gm-redesign-shell .iw-app-shell{grid-template-columns:206px minmax(0,1fr)}
 .gm-redesign-shell .iw-sidebar{padding:18px 10px}
 .gm-redesign-shell .iw-topbar-actions{display:none}
}
@media(max-width:760px){
 html{scroll-padding-bottom:105px}
 body.gm-redesign-shell{overflow-x:hidden}
 .gm-redesign-shell .iw-app-shell{display:block;min-width:0}
 .gm-redesign-shell .iw-sidebar{display:none!important}
 .gm-redesign-shell .iw-workspace{padding:0 14px calc(105px + env(safe-area-inset-bottom,0px));width:100%;max-width:100%;min-width:0}
 .gm-redesign-shell .iw-topbar.gm-header{position:sticky;top:0;z-index:44;min-height:63px;margin:0 -14px!important;padding:9px 14px!important;background:rgba(20,16,12,.96)!important;backdrop-filter:blur(16px);gap:10px}
 .gm-redesign-shell .iw-header-wordmark{width:min(35vw,152px);flex:0 1 152px;min-width:0}
 .gm-redesign-shell .iw-header-wordmark img{max-height:42px}
 .gm-redesign-shell .iw-topbar-actions,.gm-redesign-shell .gm-global-search,.gm-redesign-shell .iw-topbar .iw-global-search{display:none!important}
 .gm-redesign-shell .gm-authbar{margin-left:0}
 .gm-redesign-shell .gm-authbar .mw-btn{white-space:nowrap;padding:8px;font-size:11px}
 .gm-redesign-shell .gm-avatar{width:39px;height:39px}
 .gm-mobile-search{display:grid;place-items:center;color:#ece5d7;background:#302417;border:1px solid #665137;border-radius:11px;width:43px;height:43px;margin-left:auto;flex:0 0 43px;cursor:pointer}
 .gm-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:100;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px max(8px,env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-right,0px));border-top:1px solid rgba(180,153,103,.25);background:rgba(24,20,15,.97);backdrop-filter:blur(16px);box-shadow:0 -10px 40px #120e0b80}
 .gm-bottom-nav a,.gm-bottom-nav button{color:#c2ac83;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:none;border:0;text-decoration:none;font-size:11px;font-weight:700;min-height:51px;padding:5px 1px;border-radius:10px;cursor:pointer}
 .gm-bottom-nav a[aria-current=page]{color:#e7c179;background:rgba(197,155,75,.13)}
 .gm-bottom-nav :is(a,button):active{background:rgba(181,153,102,.16)}
 .gm-bottom-nav svg{width:21px;height:21px}
 .gm-more-scrim:not([hidden]){display:block;position:fixed;inset:0;background:#120e0bc9;z-index:110;border:0;width:100%}
 .gm-more-drawer{display:block;position:fixed;bottom:0;left:0;right:0;z-index:111;background:#251c12;border:1px solid #655136;border-radius:22px 22px 0 0;padding:12px 16px calc(24px + env(safe-area-inset-bottom,0px));height:min(78dvh,760px);overflow-y:auto;transform:translateY(103%);transition:transform .24s var(--gm-easing);visibility:hidden}
 .gm-more-drawer.is-open{transform:translateY(0);visibility:visible}
 .gm-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:12px 4px 15px;border-bottom:1px solid var(--gm-border)}
 .gm-drawer-head strong{display:block;font-size:18px}
 .gm-drawer-head small{color:var(--gm-secondary);display:block;margin-top:4px}
 .gm-drawer-label{font-size:11px;color:#bba375;text-transform:uppercase;letter-spacing:1.5px;font-weight:800;margin:21px 6px 8px}
 .gm-drawer-links a{display:flex;align-items:center;gap:13px;padding:13px 10px;border-radius:11px;text-decoration:none;color:#f0ebe3;font-size:14px;min-height:48px}
 .gm-drawer-links a[aria-current=page]{background:#433220;color:#d7c39d}
 .gm-drawer-links a>svg{margin-left:auto;width:16px;color:#b0945f}
 .gm-drawer-links a small{margin-left:auto;color:#c0a97e;font-size:11px}
 .gm-drawer-icon{width:24px;text-align:center;color:#cbaf7b;font-size:19px}
 .gm-search-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:none;border:0;border-radius:0;padding-top:env(safe-area-inset-top,0px)}
 .gm-search-list{max-height:calc(100dvh - 190px)}
 .gm-redesign-shell .mw-card{border-radius:13px}
 .gm-redesign-shell .iw-page-hero,.gm-redesign-shell .iw-banner{margin-top:14px}
 .gm-redesign-shell .iw-workspace :is(table,.iw-table-scroll){max-width:100%}
 body.gm-drawer-open{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){.gm-more-drawer{transition:none!important}}


/* Ensure the existing GE Market Watch logo is visible on both builds. */
.gm-redesign-shell .iw-header-wordmark{display:inline-flex;align-items:center;gap:9px;text-decoration:none}
.gm-redesign-shell .gm-brand-mark{display:block;flex:0 0 37px;width:37px;height:37px;object-fit:contain}
.gm-redesign-shell .iw-header-wordmark>img:not(.gm-brand-mark){max-width:185px}
@media(max-width:760px){
 .gm-redesign-shell .iw-header-wordmark{width:auto;min-width:39px;max-width:136px;flex:0 1 auto}
 .gm-redesign-shell .gm-brand-mark{flex-basis:35px;width:35px;height:35px}
 .gm-redesign-shell .iw-header-wordmark>img:not(.gm-brand-mark){display:none}
}


/* Restore branding over the retired mobile-header override in market-watch.css. */
@media(max-width:760px){
  body.gm-redesign-shell .iw-topbar.gm-header .iw-header-wordmark{
    display:inline-flex!important;
    visibility:visible;
    opacity:1;
    flex:0 0 39px;
    width:39px;
    min-width:39px;
    max-width:39px;
    height:43px;
    align-items:center;
    justify-content:center;
  }
  body.gm-redesign-shell .iw-topbar.gm-header .iw-header-wordmark .gm-brand-mark{
    display:block!important;
    visibility:visible!important;
    width:37px;
    height:37px;
    min-width:37px;
    max-width:37px;
    max-height:40px;
    object-fit:contain;
  }
  body.gm-redesign-shell .iw-topbar.gm-header .iw-header-wordmark>img:not(.gm-brand-mark){display:none!important}
}

/* Simplified shield-only sidebar branding and uniform desktop navigation labels. */
@media(min-width:761px){
 .gm-redesign-shell .iw-sidebar .iw-side-brand{display:flex;align-items:center;justify-content:flex-start;padding:8px 12px 18px;min-height:72px}
 .gm-redesign-shell .iw-sidebar .iw-side-brand img.iw-side-brand-lockup{display:block;width:49px!important;height:49px!important;max-width:49px!important;max-height:49px!important;object-fit:contain}
 .gm-redesign-shell .gm-sidebar-nav>a{font-size:12px!important;font-weight:650!important;line-height:1.35!important;white-space:nowrap;min-width:0}
 .gm-redesign-shell .gm-sidebar-nav>a .iw-nav-label{display:inline-flex;align-items:center;gap:7px;width:auto!important;min-width:0;font:inherit!important;color:inherit!important;white-space:nowrap}
 .gm-redesign-shell .gm-sidebar-nav>a [data-notification-badge]{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;font-size:11px;line-height:1;font-weight:700;border-radius:12px}
 .gm-redesign-shell .gm-sidebar-nav>a [data-notification-badge][hidden]{display:none!important}
}
