/* 19.10.2026 (Codex): paint the complete approved artwork on its sized box, without a pseudo-element. */
/* Source: 1536x1024. Logo viewport: x189 y371, 1160x252. Ratios preserve the exact artwork. */
:is(.brand-link, .site-header .brand, .footer .brand, .auth-brand, .navbar > .brand > .brand-name) {
  --sc-brand-height: 30px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  inline-size: calc(var(--sc-brand-height) * 4.6031746032);
  block-size: var(--sc-brand-height);
  min-block-size: var(--sc-brand-height);
  min-inline-size: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background-color: transparent;
  background-image: var(--sc-brand-logo);
  background-repeat: no-repeat;
  background-origin: border-box;
  background-size: calc(var(--sc-brand-height) * 6.0952380952) calc(var(--sc-brand-height) * 4.0634920635);
  background-position: calc(var(--sc-brand-height) * -.75) calc(var(--sc-brand-height) * -1.4722222222);
  /* Navbar hover transitions must not animate the artwork's crop or scale. */
  transition: background-color .15s;
  color: transparent;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-decoration: none;
  vertical-align: middle;
  direction: ltr;
  unicode-bidi: isolate;
}
/* Visually hide the legacy artwork while retaining the original accessible link names. */
:is(.brand-link, .site-header .brand, .footer .brand, .auth-brand) > :is(.brand-icon, .brand-name, img, span),
.navbar > .brand > .brand-icon {
  position: absolute;
  display: block;
  inline-size: 1px;
  block-size: 1px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: none;
}
/* Match the shared selector's specificity so contextual sizing wins the cascade. */
/* 19.10.2026 (Codex): a larger complete navbar logo, with room inside the existing header. */
:root .navbar .brand-link,
:root .navbar > .brand > .brand-name { --sc-brand-height: 36px; }
:root .site-header .brand { --sc-brand-height: 32px; }
:root .footer .brand { --sc-brand-height: 28px; }
:root .auth-card .auth-brand { --sc-brand-height: 48px; margin-inline: auto; display: block; }
.brand-link:focus-visible,
.site-header .brand:focus-visible,
.footer .brand:focus-visible,
.auth-brand:focus-visible { outline: 2px solid #C8F135; outline-offset: 5px; }
/* The approved white/lime lettering keeps its graphite plate on a light tool surface. */
[data-theme="light"] .navbar:not(.guide-navbar) .brand-link,
[data-theme="light"] .navbar > .brand > .brand-name {
  box-shadow: 0 0 0 4px #0f1517;
}
@media (max-width: 760px) {
  :root .navbar .brand-link,
  :root .navbar > .brand > .brand-name { --sc-brand-height: 34px; }
}
@media (max-width: 640px) {
  :root .site-header .brand { --sc-brand-height: 28px; }
  :root .auth-card .auth-brand { --sc-brand-height: 43px; }
}
/* Keep the existing compact landing header at the narrowest phone width. */
@media (max-width: 360px) {
  :root .site-header .brand { inline-size: var(--sc-brand-height); }
  :root .site-header .brand {
    background-image: var(--sc-brand-mark);
    background-size: contain;
    background-position: center;
  }
}
