/* ShipTrac Hub: light-DOM layout for the shared app shell, loaded ONLY on the shiptrac brand.
   The canon menu, top bar and SHIP views render in shadow roots styled by hub.css; this file only
   places them and restyles the shared HubHarness surfaces into the ShipTrac palette. */
html[data-brand="shiptrac"] {
  --st-navy:#091d2c; --st-mint:#48ffd9; --st-mint-ink:#0a6b5a; --st-purple:#8548ca; --st-line:#dbe3ea;
  --accent:#0a6b5a; --brand:#0a6b5a; --bg:#f3f6f9;
}
html[data-brand="shiptrac"] body { background:#f3f6f9; }
html[data-brand="shiptrac"] #productShell.app-shell { grid-template-columns:232px minmax(0,1fr); grid-template-rows:auto; background:#f3f6f9; }
html[data-brand="shiptrac"] #productShell > .sidebar,
html[data-brand="shiptrac"] #productShell .app-dashboard-header,
html[data-brand="shiptrac"] .brand-mark-latemate, html[data-brand="shiptrac"] .brand-wordmark-latemate,
html[data-brand="shiptrac"] .brand-mark-hubharness, html[data-brand="shiptrac"] .brand-wordmark-hubharness { display:none !important; }
/* Full-height dark rail on long pages: the host stretches the whole grid row; the menu inside it is sticky. */
html[data-brand="shiptrac"] #st-nav { grid-column:1; grid-row:1 / -1; align-self:stretch; background:#091d2c; z-index:30; min-height:100vh; }
html[data-brand="shiptrac"] #productShell > main.main { grid-column:2; padding:0; min-width:0; background:#f3f6f9; }
html[data-brand="shiptrac"] #st-top { position:sticky; top:0; z-index:25; }
html[data-brand="shiptrac"] main.main > .app-view:not(#st-ship) { padding:20px 24px 40px; }
html[data-brand="shiptrac"] #st-ship { padding:0; }
html[data-brand="shiptrac"] #st-ship:not([hidden]) { display:block; }
html[data-brand="shiptrac"] #st-triggers { display:none; }
html[data-brand="shiptrac"] #st-freight-banner { display:block; margin-bottom:16px; }
@media (max-width:700px) {
  html[data-brand="shiptrac"] #productShell.app-shell { grid-template-columns:minmax(0,1fr); }
  html[data-brand="shiptrac"] #st-nav { position:fixed; top:56px; left:0; right:0; height:auto; max-height:calc(100vh - 56px); overflow:auto; z-index:40; background:transparent; min-height:0; }
  html[data-brand="shiptrac"] #productShell > main.main { grid-column:1; }
  html[data-brand="shiptrac"] main.main > .app-view:not(#st-ship) { padding:16px 12px 30px; }
}
/* Signed-out: no marketing landing; invite-only sign-in card in ShipTrac colours (N3: no sign-up). */
html[data-brand="shiptrac"] #landingShell { display:none !important; }
html[data-brand="shiptrac"] #authPanel { background:#091d2c; }
html[data-brand="shiptrac"] #authPanel .auth-card { background:#fff; color:#0d1b26; border-radius:16px; }
html[data-brand="shiptrac"] #authPanel .auth-card::before { content:""; display:block; height:40px; margin-bottom:12px; background:url("/assets/shiptrac/logo-2.svg") left center / contain no-repeat; }
html[data-brand="shiptrac"] #authModeToggle, html[data-brand="shiptrac"] #authCompany, html[data-brand="shiptrac"] [data-auth-close] { display:none !important; }
html[data-brand="shiptrac"] #authSubmit { background:#48ffd9; color:#091d2c; border:0; font-weight:700; }
/* Shared HubHarness surfaces in the ShipTrac palette (r1 judges: orange primary buttons/tabs on Pricing etc.). */
html[data-brand="shiptrac"][data-theme], html[data-brand="shiptrac"][data-theme] body {
  --orange:#0a6b5a; --accent:#0a6b5a; --brand-late:#0a6b5a; --btn-hover-border:#0a6b5a; --btn-active-border:#0a6b5a; --btn-active-bg:#e8fbf6; --btn-active-text:#0a6b5a;
}
html[data-brand="shiptrac"] main.main > .app-view:not(#st-ship) { font-family:Inter, system-ui, sans-serif; }
html[data-brand="shiptrac"] main.main > .app-view:not(#st-ship) :is(h1,h2,h3,h4,button,input,select,textarea,label) { font-family:inherit; }
html[data-brand="shiptrac"] main.main :is(.primary-button,.btn.primary,.compact-green-button,.bflag-topbar-green) { background:#48ffd9 !important; color:#091d2c !important; border-color:#48ffd9 !important; }
html[data-brand="shiptrac"] main.main :is(.bflag-orange-outline,.btn.ghost) { border-color:#9fb0bd !important; color:#0d1b26 !important; }
html[data-brand="shiptrac"] main.main :is(.billing-mega-tab.active,.tab.active,[aria-selected="true"].tab) { color:#0a6b5a !important; border-color:#0a6b5a !important; }
html[data-brand="shiptrac"] main.main :is(.btn.active,.btn.sm.active,[role="tab"].active) { background:#e8fbf6 !important; color:#0a6b5a !important; border-color:#0a6b5a !important; }
html[data-brand="shiptrac"] main.main .bflag-pricing-preview { border-color:#9fe3d3 !important; background:#f4fbf9 !important; }
/* View switches jump to the top at once (the shared smooth scroll left the sticky top bar mid-page in r1 mobile Rates captures). */
html[data-brand="shiptrac"] { scroll-behavior:auto; }
