/* ToolDuty design-system harmonization. index.html is intentionally untouched.
   Palette sampled from index.css: --blue #0878df, --blue2 #0755a3, --dark #092b4a,
   --ink #102b43, --muted #60758a, --light #eef7ff, --line #dce8f2. */
:root {
  --td-blue: #9bc7f0;
  --td-blue-deep: #0755a3;
  --td-navy: #092b4a;
  --td-ink: #102b43;
  --td-muted: #60758a;
  --td-pale: #eef7ff;
  --td-line: #dce8f2;
  --td-green: #17c978;
  --blue: #0878df;
  --blue2: #0755a3;
  --primary: #0878df;
  --primary-color: #0878df;
  --dark: #092b4a;
  --ink: #102b43;
  --text: #102b43;
  --muted: #60758a;
  --light: #eef7ff;
  --line: #dce8f2;
  --border: #dce8f2;
  --green: #17c978;
  --brand-blue: #0878df;
  --brand-orange: #ff8a24;
}

html {
  scroll-behavior: smooth
}

body:not(.home-page) {
  color: var(--td-ink)
}

/* Harmonize common header shells without changing their structure or behavior. */
body:not(.home-page) :is(header.navbar, header.about-nav, header.contact-nav, header.site-header, header.nav, header.auth-topbar, header.topbar, header.verify-topbar) {
  background: #fff !important;
  border-bottom: 1px solid var(--td-line) !important;
  box-shadow: 0 5px 22px rgba(9, 43, 74, .055) !important;
  z-index: 1000
}

body:not(.home-page) :is(header.navbar, header.about-nav, header.contact-nav, header.site-header, header.nav) {
  position: sticky;
  top: 0
}

body:not(.home-page) :is(.desktop-nav a, .header-nav a, header nav a) {
  color: var(--td-ink);
  transition: color .2s ease, background .2s ease
}

body:not(.home-page) :is(.desktop-nav a, .header-nav a, header nav a):hover,
body:not(.home-page) :is(.desktop-nav a.active, header nav a.active) {
  color: var(--td-blue) !important
}

body:not(.home-page) :is(.nav-cta, .navbtn, .btn-primary, .primary-btn, .button-primary) {
  background: var(--td-blue);
  border-color: var(--td-blue)
}

body:not(.home-page) :is(.nav-cta, .navbtn, .btn-primary, .primary-btn, .button-primary):hover {
  background: var(--td-blue-deep);
  border-color: var(--td-blue-deep)
}

body:not(.home-page) :is(a:not(.nav-cta), .text-link):hover {
  color: var(--td-blue)
}

body:not(.home-page) :is(h1, h2, h3, .section-heading h2) {
  color: var(--td-navy)
}

body:not(.home-page) :is(.card, .service-card, .feature-card, .content-card, .info-card) {
  border-color: var(--td-line)
}

body:not(.home-page) :is(.card, .service-card, .feature-card, .content-card, .info-card) {
  box-shadow: 0 10px 30px rgba(20, 70, 110, .07)
}

body:not(.home-page) :is(.section, .page-section) {
  scroll-margin-top: 96px
}

body:not(.home-page) :is(footer, .footer, .site-footer, .about-footer, .auth-footer, .verify-footer) {
  color: inherit
}

body:not(.home-page) :is(footer, .footer, .site-footer, .about-footer, .auth-footer, .verify-footer) a {
  text-decoration: none
}

body:not(.home-page) :is(button, a, input, textarea, select):focus-visible {
  outline: 3px solid rgba(8, 120, 223, .32);
  outline-offset: 3px
}

/* Dashboard keeps its own information architecture; only its brand palette is aligned. */
body.dashboard-page :is(.dash-topbar, .sidebar, .dashboard-sidebar) {
  border-color: var(--td-line)
}

@media(max-width:768px) {
  body:not(.home-page) main {
    max-width: 100%;
  }

  body:not(.home-page) :is(.container, .wrap, .about-container, .contact-container) {
    max-width: 100%;
  }

  body:not(.home-page) :is(footer, .footer, .site-footer) {
    overflow-wrap: anywhere
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  body:not(.home-page) *,
  body:not(.home-page) *::before,
  body:not(.home-page) *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important
  }
}