/* The navigation floats directly over each section in both appearances. */
.site-header:not(.menu-open),.site-header.scrolled:not(.menu-open){background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
.theme-toggle{display:grid;place-items:center;width:32px;height:32px;padding:4px;flex:none;color:inherit;background:transparent;border:0;border-radius:50%}
.theme-toggle:hover{background:rgb(128 128 128 / .14)}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}
.theme-toggle .theme-half{fill:currentColor;stroke:none;transform-origin:center;transition:transform 500ms var(--curve)}
[data-theme=light] .theme-half{transform:rotate(180deg)}
.markets .product-symbol{position:relative}
.markets :is(.symbol-gold,.symbol-silver,.symbol-brent,.symbol-wti,.symbol-gas){font-size:0;color:#fff;background-position:center;background-repeat:no-repeat;background-size:22px 22px}
.markets :is(.symbol-gold,.symbol-silver){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 4h6l3 6H6zM4 12h6l3 6H1zM14 12h6l3 6H11z'/%3E%3C/svg%3E")}
.markets .symbol-gold{background-color:#aa8047}
.markets .symbol-silver{background-color:#999}
.markets .symbol-brent{background-color:#181818;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.4'%3E%3Cellipse cx='11' cy='5' rx='6' ry='2'/%3E%3Cpath d='M5 5v14c0 3 12 3 12 0V5M5 10c3 2 9 2 12 0M5 15c3 2 9 2 12 0'/%3E%3C/svg%3E")}
.markets .symbol-wti{background-color:#727272;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3s-7 8-7 12a7 7 0 0 0 14 0c0-4-7-12-7-12z'/%3E%3Cpath fill='none' stroke='%23727272' stroke-width='1.4' d='M9 16c0 2 2 3 4 2'/%3E%3C/svg%3E")}
.markets .symbol-gas{background-color:#00a887;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M13 2c2 7-6 7-5 13-2-1-2-3-2-3-6 9 11 15 13 4 1-5-2-7-2-7 1 5-3 6-3 6 2-7 1-9-1-13z'/%3E%3C/svg%3E")}
.markets .symbol-fx,.markets .symbol-index,.markets .symbol-share,.markets .symbol-etf{background:#313131;color:#eee}
.markets .product-table tbody th,.markets .product-table td{padding-block:16px}
:root[data-theme=light]{color-scheme:light;--paper:#fff;--paper-2:#f7f7f5;--ink:#161616;--ink-2:#444;--muted:#666;--gold:#99702f;--gold-bright:#805a1e;--line:#e1e1dc}
html[data-theme=light] body{background:#fff;color:var(--ink)}
html[data-theme=light] :is(.hero,.hero-art,.markets,.products-board,.trust-section,.awards-ribbon,footer){background:#fff}
html[data-theme=light] .hero-art{background-image:none}
html[data-theme=light] :is(.platform,.statement,.faq){background:#f7f7f5}
html[data-theme=light] :is(.trust-grid>article,.intelligence-card,.nav-panel,.language-options,.resource-dialog,.lesson-example){background:#f7f7f5;border-color:var(--line)}
html[data-theme=light] .intelligence-card:hover{background:#f0f0ec}
html[data-theme=light] .site-header.menu-open{background:rgb(255 255 255 / .98);border-color:var(--line)}
html[data-theme=light] .brand-logo img{filter:brightness(0)}
html[data-theme=light] .header-honors{content:url('./assets/glg-brand-honors-light.svg');filter:brightness(.65)}
html[data-theme=light] :is(.awards-item img,.trust-award-images img){filter:brightness(.7)}
html[data-theme=light] .hero h1{background-image:linear-gradient(90deg,#000,#666)}
html[data-theme=light] :is(.hero-copy,.hero-foot,.text-link,.section-head>p,.statement-copy>div p,.platform-copy>p,.feature-list article p,.ecosystem-copy>p,.partner-list,.intelligence-sub,.board-note,.faq-list p,.credential-main p,.credential-note,.products-note,.product-name small,.resource-dialog p,.nav-column>h2,.language-options>p,.language-options>small,.footer-links a,.footer-links button){color:#666}
html[data-theme=light] :is(.button,.header-actions .button,.resource-next){background:#d3ad66;color:#111;border-color:#d3ad66}
html[data-theme=light] :is(.button:hover,.header-actions .button:hover,.resource-next:hover){background:#ead09a;color:#111}
html[data-theme=light] .hero-actions .button-secondary{background:rgb(255 255 255 / .75);border-color:#888;color:#222}
html[data-theme=light] .hero-actions .button-secondary:hover{background:#eee}
html[data-theme=light] .markets .products-action .button{background:transparent;color:var(--gold-bright);border-color:#bba57b}
html[data-theme=light] .markets .products-action .button:hover{background:#f4ede0}
html[data-theme=light] :is(.product-table,.product-table thead,.faq-list details,.footer-top,.risk,.resource-bottom,.resource-dialog details){border-color:var(--line)}
html[data-theme=light] :is(.product-tabs button,.product-table thead th,.price-pending){color:#666}
html[data-theme=light] .markets .product-name small{color:#777}
html[data-theme=light] .markets .product-tabs button[aria-selected=true]{color:#111}
html[data-theme=light] :is(.line-link,.ghost-link,.feature-list article h3,.credential-main p,.trust-grid .ecosystem-copy>p,.partner-list,.footer-links h3){color:#222}
html[data-theme=light] .platform h2 em{color:#80663c}
html[data-theme=light] .language-options>a[aria-current=true],html[data-theme=light] .language-options>a:hover{background:#eee9df}
html[data-theme=light] :is(.nav-panel,.language-options){box-shadow:0 24px 64px #0001}
html[data-theme=light] :is(.menu-button,.resource-close){border-color:#ccc}
html[data-theme=light] .markets :is(.symbol-fx,.symbol-index,.symbol-share,.symbol-etf){background:#e9e9e4;color:#444}
html[data-theme=light] :is(.intelligence-card:before,.intelligence-card:after,.feature-list article>span){border-color:#c8b48c}
html[data-theme=light] .platform-devices [fill="#131209"]{fill:#eeeae1}
html[data-theme=light] .platform-devices [fill="#181818"],html[data-theme=light] .platform-devices [fill="#1f1f1f"]{fill:#fff}
html[data-theme=light] .platform-devices [fill="#000"]{fill:#e9e6df}
html[data-theme=light] .platform-devices [stroke="#313131"]{stroke:#e1e1dc}
html[data-theme=light] .platform-devices [fill="#aaa"]{fill:#666}
html[data-theme=light] .platform-devices [fill="#ead09a"]{fill:#8b672c}
html[data-theme=light] .platform-devices [stroke="#ead09a"]{stroke:#8b672c}
html[data-theme=light] .ranking-board .products-scroll{background:transparent}
html[data-theme=light] .markets .ranking-table tbody th{background:var(--paper)}
html[data-theme=light] .ranking-trade{border-color:#ccc;color:#222}
html[data-theme=light] .ranking-trade:hover{background:#eee9df;border-color:var(--gold);color:var(--gold-bright)}
html[data-theme=light] .trend-pending{border-color:#ccc;color:#888}
@media(min-width:1241px) and (max-width:1500px){.header-actions{gap:12px}.site-header{gap:12px}.desktop-nav{gap:12px}}
@media (max-width: 600px) {
  .site-header .brand {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 210px;
  }
  .site-header .brand-logo {
    width: 100%;
  }
  .site-header .brand-logo img {
    display: block;
    content: url('./assets/glg-markets-mobile.svg');
  }
  .header-honors { width: 64px; }
  .header-actions { gap: 8px; }
  .theme-toggle { width: 32px; height: 32px; }
  .markets .product-table tbody th, .markets .product-table td { padding-block: 16px; }
}
@media (max-width: 360px) {
  .header-honors { width: 56px; }
}
