/* AllScanTool — favicon circle-A is the first letter of AllScanTool everywhere */

.ast-word {
  display: inline;
  font-weight: inherit;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Exact favicon asset (seal-favicon.svg) as inline A */
.ast-a {
  display: inline-block;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  line-height: 0;
  vertical-align: -0.14em;
  margin-right: 0.02em;
  user-select: none;
}

.ast-a img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Blue scanner header — white glow so favicon reads on #1D4ED8 bar */
.page-wrapper > .header .ast-a img {
  filter: drop-shadow(0 0 1px #ffffff) drop-shadow(0 0 3px rgba(255, 255, 255, 0.85));
}

.ast-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.ast-brand:hover,
.ast-brand:focus-visible {
  text-decoration: none;
  opacity: 0.95;
}

.ast-brand .ast-word {
  font-weight: 800;
  font-size: 0.9375rem;
}

.ast-context {
  font-weight: 500;
  font-size: 0.8125rem;
  opacity: 0.88;
}

.ast-context::before {
  content: "·";
  margin: 0 0.4em;
  opacity: 0.65;
}

.page-wrapper > .header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.page-wrapper > .header .header-back-link {
  justify-self: start;
}

.page-wrapper > .header .ast-brand {
  justify-self: center;
  color: #fff;
}

.page-wrapper > .header .ast-word {
  color: #fff;
}

.page-wrapper > .header .header-right {
  justify-self: end;
}

.ast-brand--dark {
  color: #f1f5f9;
}

.ast-brand--dark .ast-context {
  color: #94a3b8;
  opacity: 1;
}

.ast-brand--center {
  justify-content: center;
}

.verify-header .ast-brand,
.topbar .brand .ast-brand {
  margin: 0;
}

.topbar .brand a {
  color: inherit;
  text-decoration: none;
}

.topbar .brand .ast-word {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .ast-context {
    display: none;
  }

  .ast-brand .ast-word {
    font-size: 0.875rem;
  }

  .ast-a {
    width: 1.1em;
    height: 1.1em;
  }
}

@media (max-width: 380px) {
  .page-wrapper > .header .header-back-link {
    font-size: 0.72rem;
  }
}
