/* UI-01 — visual foundation. No font, image, or icon loads outside SPIFFS. */

/* The supplied dark-blue wordmark needs a light plate in BOTH themes. */
.shell-brand__logo,
.landing-topbar__logo {
  display: block;
  box-sizing: content-box;
  max-width: min(42vw, 15rem);
  min-width: 0;
  height: auto;
  padding: .35rem .55rem;
  background: #fff;
  border: 1px solid #d9e3f0;
  border-radius: var(--radius-control);
  box-shadow: 0 4px 14px rgba(7, 27, 61, .10);
  filter: none;
}
.auth-hero__mark {
  background: #fff;
  border-color: #d9e3f0;
}
.auth-hero__mark img {
  filter: none;
}

/* Preserve the old class names while standardising essential controls. */
.panel, .auth-panel, .landing-overview__card, .landing-benefit {
  border-color: var(--border-default);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-card);
}
.shell-header, .landing-hero {
  border-radius: var(--radius-panel);
}
.primary-button {
  color: var(--brand-primary-action-text);
  background: var(--brand-primary-action-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  box-shadow: 0 5px 15px rgba(7, 27, 61, .12);
}
.primary-button:hover {
  background: var(--accent-strong);
  color: var(--brand-primary-action-text);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(7, 27, 61, .17);
}
.primary-button:disabled {
  box-shadow: none;
}
.secondary-button, .back-button, .ghost-button, .switch-button {
  border-radius: var(--radius-control);
}
.switch-button.is-active {
  background: var(--interactive-active-surface);
  border-color: var(--interactive-hover-border);
}
.text-input, input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  border-radius: var(--radius-control);
  accent-color: var(--brand-orange-500);
}
.text-input:hover {
  border-color: var(--interactive-hover-border);
}
.eyebrow {
  color: var(--text-secondary);
  letter-spacing: .055em;
}
/* Match the more specific legacy :focus-visible selectors. */
.primary-button:focus-visible, .secondary-button:focus-visible,
.back-button:focus-visible, .ghost-button:focus-visible,
.switch-button:focus-visible, .danger-button:focus-visible,
.emergency-button:focus-visible {
  outline: 3px solid var(--focus-outline);
  outline-offset: 3px;
}
/* Full keyboard coverage, not merely the standard button classes. */
:where(button, a, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-outline);
  outline-offset: 3px;
}
:where(input, textarea, select):focus-visible {
  border-color: var(--focus-outline);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 700px) {
  .shell-brand__logo, .landing-topbar__logo {
    max-width: min(41vw, 9rem);
    padding: .25rem .35rem;
  }
}
