/* One reference-based sun/road wordmark across existing headers. No session or navigation logic. */
:is(html,html[data-smarti-ui][data-theme]) :is(.brand,.course-brand,.sm-ui-brand,.sie-logo,.course-runner-brand).smarti-header-brand {
  display:inline-flex; align-items:center; justify-content:flex-start; flex:0 0 auto;
  width:var(--sm-header-logo-width,154px); max-width:100%; height:auto; min-width:0;
  padding:0; gap:0; line-height:1; text-decoration:none; grid-template-columns:none;
}
:is(html,html[data-smarti-ui][data-theme]) .smarti-header-brand > img.smarti-header-logo {
  display:block; width:100%; max-width:100%; height:auto; aspect-ratio:1986/600;
  margin:0; padding:0; object-fit:contain; object-position:left center; filter:none;
}
.smarti-header-brand::before,.smarti-header-brand::after { content:none; }
.smarti-header-brand[hidden] { display:none!important; }
.sie-header .smarti-header-brand { --sm-header-logo-width:186px; }
.smarti-header .smarti-header-brand { --sm-header-logo-width:190px; }
.sm-ui-header .smarti-header-brand { --sm-header-logo-width:146px; }
.course-runner-brandbar { --sm-header-bar-height:76px; height:var(--sm-header-bar-height); min-height:var(--sm-header-bar-height); box-sizing:border-box; padding-block:4px; }
.course-runner-brandbar .smarti-header-brand { --sm-header-logo-width:164px; }
.course-view-lesson .course-runner-subbar { top:0; }
.course-view-checkpoint .course-runner-subbar { top:76px; }
@media(max-width:700px) {
  .smarti-header-brand { --sm-header-logo-width:118px; }
  .sie-header .smarti-header-brand { --sm-header-logo-width:124px; }
  .smarti-header .smarti-header-brand { --sm-header-logo-width:146px; }
  html[data-smarti-ui="learning"] .sm-ui-header { grid-template-columns:96px minmax(0,1fr) 96px; gap:10px; }
  .sm-ui-header .smarti-header-brand { --sm-header-logo-width:92px; }
  .course-header-leading .smarti-header-brand { --sm-header-logo-width:106px; }
  .course-runner-brandbar { --sm-header-bar-height:58px; }
  .course-runner-brandbar .smarti-header-brand { --sm-header-logo-width:124px; }
  .course-view-lesson .course-runner-subbar { top:0; }
  .course-view-checkpoint .course-runner-subbar { top:58px; }
}

.sie-header .sie-brand { display:flex; align-items:center; justify-self:start; text-align:left; }


/* Remove the space formerly reserved for logo captions, not just their ink. */
.sie-header { padding-block:12px; }
.smarti-header { grid-template-columns:minmax(0,1fr) auto; min-height:88px; padding-block:6px; }
html[data-smarti-ui="learning"] .sm-ui-header { min-height:76px; padding-block:8px; }
@media(max-width:1000px) { .sie-header .sie-course-heading { padding-top:0; } }
@media(max-width:700px) {
  .sie-header { padding-block:8px; row-gap:8px; }
  .smarti-header { min-height:72px; }
  html[data-smarti-ui="learning"] .sm-ui-header { min-height:64px; padding-block:6px; }
}

/* 2026-10-05: branded navy header surface for the high-contrast 3D wordmark. */
html[data-theme] :is(.topbar,.sie-header.sm-ui-header,.smarti-header,.sm-ui-header,.course-runner-brandbar) {
  background:#082b63!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.16)!important;
}
html[data-theme] :is(.sie-header.sm-ui-header,.sm-ui-header) :is(h1,.sie-course-heading) { color:#fff!important; }
html[data-theme] :is(.sie-header.sm-ui-header,.sm-ui-header) :is(h1,.sie-course-heading) span { color:#ffc640!important; }
html[data-theme] :is(.sie-header.sm-ui-header,.sm-ui-header) .course-menu-toggle {
  color:#fff!important;
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.24)!important;
}
html[data-theme] .topbar #site-navigation:not(.is-mobile-open) > :is(a,.menu-account) { color:#fff!important; }
