/* Selected GUTL 01 / Marcellus lettermark. Actual blue and Paper SVGs, no colour filters. */
.site-header .brand,
.trading-header .brand,
.arena-footer .arena-footer-brand {
  padding: 0;
  background: transparent;
  min-height: 44px;
}
.brand picture { display: block; line-height: 0; }
.brand .brand-night { display: none; }
html[data-theme="dark"] .brand .brand-day { display: none; }
html[data-theme="dark"] .brand .brand-night { display: block; }
.site-header .brand img,
.trading-header .brand img,
.arena-footer .arena-footer-brand img {
  display: block;
  width: 280px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  filter: none;
}
.arena-footer .arena-footer-brand { max-width: 100%; flex: none; }
@media (max-width: 1100px) {
  .site-header .brand img,
  .trading-header .brand img { width: 140px; }
}
@media (max-width: 480px) {
  .site-header .brand img,
  .trading-header .brand img { width: 124px; }
  .arena-footer { align-items: flex-start; }
}

/* The live arena is the source of truth for both top navigation bars. */
.site-header .trade-mode-link{width:144px;flex:none}
.site-header .identity-control{width:212px;flex:none}
.site-header .identity-control select{width:100%;max-width:none}
.site-header .identity-value{display:flex;align-items:center;min-height:32px;padding:2px 20px 2px 0;font-size:var(--type-sm);font-weight:400;color:var(--blue);white-space:nowrap}
.site-header .language-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:8px 10px;background:transparent;border:1px solid var(--arena-control);border-radius:3px;color:var(--blue);font-size:var(--type-xs);font-weight:600;white-space:nowrap}
.site-header .language-button:hover{background:var(--pale)}
.trading-context{--context-heading-size:var(--type-md);display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;gap:16px;min-height:44px;margin-bottom:12px;min-width:0}
.trading-context-main{display:flex;align-items:center;gap:16px;min-width:0;min-height:44px}
.trading-context .trading-identity{width:136px;flex:none;min-width:0;margin:0;padding:0;border:0}
.trading-context .trading-identity h1{font-size:var(--context-heading-size);line-height:1.4;font-weight:600;letter-spacing:0;color:var(--blue);white-space:nowrap}
.trading-title-divider{height:20px;width:1px;flex:none;background:var(--line);opacity:.6}
.trading-contest-context{flex:1;min-width:0}
.trading-contest-context a{display:block;font-size:var(--context-heading-size);font-weight:600;line-height:1.4;color:var(--blue);text-decoration:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.trading-contest-context a:hover{text-decoration:underline;text-underline-offset:4px}
.trading-pnl-context{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;min-width:0;text-align:right}
.context-label{font-size:var(--type-xs);line-height:1.4;color:var(--muted);white-space:nowrap}
.context-pnl-amount{display:flex;justify-content:flex-end;align-items:baseline;gap:4px;min-width:0;font-variant-numeric:tabular-nums;color:var(--blue)}
.context-pnl-amount strong{font-size:var(--type-lg);font-weight:600;line-height:1.25;white-space:nowrap}
.context-pnl-amount>span{font-size:var(--type-xs);color:var(--muted)}
.trading-context-tools{display:flex;align-items:center;gap:8px;justify-self:end}
@media(max-width:760px){
 .site-header .trade-mode-link{width:100%;flex-basis:100%}
 .site-header .identity-control{width:100%;flex-basis:100%}
 .site-header .identity-value{font-size:var(--type-xs);min-height:40px;padding-right:20px}
}
@media(max-width:600px){
 .trading-context{--context-heading-size:var(--type-sm);grid-template-columns:minmax(0,1fr);grid-template-rows:44px 44px;gap:8px}
 .trading-context-main{gap:8px;min-width:0;grid-row:1}
 .trading-context .trading-identity{width:112px}
 .trading-context-tools{grid-column:1;grid-row:2;justify-self:end}
}
