/* Shared Ultron site shell.
 * Namespaced so it can sit beside legacy page CSS without resetting page content.
 */
:root {
  --ud-shell-bg: #f8f9fc;
  --ud-shell-surface: #ffffff;
  --ud-shell-ink: #0f172a;
  --ud-shell-muted: #64748b;
  --ud-shell-line: #e2e8f0;
  --ud-shell-blue: #2563eb;
  --ud-shell-blue-dark: #1d4ed8;
  --ud-shell-blue-soft: #eff6ff;
}

.ud-a-bar,
.ud-header,
.ud-footer,
.ud-a-bar *,
.ud-header *,
.ud-footer * {
  box-sizing: border-box;
}

.ud-a-bar {
  background: var(--ud-shell-blue);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font: 500 .8rem/1.35 Inter, system-ui, sans-serif;
  padding: 9px 20px;
  text-align: center;
}

.ud-a-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.ud-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ud-shell-line);
  color: var(--ud-shell-ink);
  font-family: Inter, system-ui, sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.ud-nav-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  height: 70px;
  margin-inline: auto;
  max-width: 1200px;
  padding-inline: 20px;
  position: relative;
  width: 100%;
}

.ud-brand {
  align-items: center;
  color: var(--ud-shell-ink);
  display: inline-flex;
  flex: 0 0 auto;
  font: 800 1.05rem/1 "Bricolage Grotesque", Inter, system-ui, sans-serif;
  gap: 9px;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}

.ud-brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 32px;
  object-fit: contain;
  width: 41px;
}

.ud-brand-wordmark {
  color: var(--ud-shell-ink);
  display: inline-flex;
  gap: 3px;
}

.ud-brand-wordmark em {
  color: var(--ud-shell-blue);
  font-style: normal;
}

.ud-nav-links {
  align-items: center;
  display: flex;
  gap: 2px;
}

.ud-nav-links a {
  border-radius: 8px;
  color: var(--ud-shell-muted);
  font: 500 .875rem/1.2 Inter, system-ui, sans-serif;
  padding: 8px 11px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.ud-nav-links a:hover,
.ud-nav-links a:focus-visible {
  background: var(--ud-shell-blue-soft);
  color: var(--ud-shell-blue-dark);
  outline: none;
}

.ud-nav-end {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.ud-shell-button {
  align-items: center;
  border: 1.5px solid var(--ud-shell-line);
  border-radius: 8px;
  color: var(--ud-shell-ink);
  display: inline-flex;
  font: 600 .82rem/1.2 Inter, system-ui, sans-serif;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.ud-shell-button:hover,
.ud-shell-button:focus-visible {
  background: var(--ud-shell-blue-soft);
  border-color: var(--ud-shell-blue);
  color: var(--ud-shell-blue-dark);
  outline: none;
}

.ud-shell-button--primary {
  background: var(--ud-shell-blue);
  border-color: var(--ud-shell-blue);
  color: #fff;
}

.ud-shell-button--primary:hover,
.ud-shell-button--primary:focus-visible {
  background: var(--ud-shell-blue-dark);
  color: #fff;
}

.ud-menu-toggle {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--ud-shell-line);
  border-radius: 8px;
  color: var(--ud-shell-ink);
  cursor: pointer;
  display: none;
  font: 700 .82rem/1 Inter, system-ui, sans-serif;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
}

.ud-menu-toggle svg { width: 17px; height: 17px; }

.ud-footer {
  background: var(--ud-shell-ink);
  color: #a8b3c5;
  font-family: Inter, system-ui, sans-serif;
  padding: 56px 20px 40px;
}

.ud-footer-inner {
  margin-inline: auto;
  max-width: 1200px;
  width: 100%;
}

.ud-footer-grid {
  display: grid;
  gap: 52px;
  grid-template-columns: 1.15fr 1fr 1fr;
}

.ud-footer-logo {
  background: #fff;
  border-radius: 8px;
  display: block;
  height: auto;
  margin-bottom: 14px;
  padding: 6px;
  width: 56px;
}

.ud-footer p {
  color: #a8b3c5;
  font-size: .8rem;
  line-height: 1.72;
  margin: 0;
}

.ud-footer strong { color: #fff; }

.ud-footer h2 {
  color: #fff;
  font: 700 .78rem/1.3 Inter, system-ui, sans-serif;
  letter-spacing: .1em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.ud-footer-nav {
  display: grid;
  gap: 10px;
}

.ud-footer-nav a {
  color: #a8b3c5;
  font: 500 .85rem/1.35 Inter, system-ui, sans-serif;
  text-decoration: none;
}

.ud-footer-nav a:hover,
.ud-footer-nav a:focus-visible { color: #fff; outline: none; }

.ud-footer-base {
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #738096;
  display: flex;
  font-size: .72rem;
  gap: 16px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 28px;
}

@media (max-width: 980px) {
  .ud-menu-toggle { display: inline-flex; }
  .ud-nav-phone { display: none; }
  .ud-nav-links {
    background: #fff;
    border: 1px solid var(--ud-shell-line);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
    display: none;
    gap: 4px;
    left: 20px;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: calc(100% + 8px);
  }

  .ud-nav-links.is-open { display: grid; }
  .ud-nav-links a { padding: 12px; }
}

@media (max-width: 720px) {
  .ud-footer-grid { gap: 32px; grid-template-columns: 1fr 1fr; }
  .ud-footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .ud-nav-inner { gap: 10px; padding-inline: 16px; }
  .ud-brand { font-size: .98rem; }
  .ud-brand-logo { height: 28px; width: 36px; }
  .ud-nav-end { display: none; }
  .ud-menu-toggle { margin-left: auto; }
  .ud-nav-links { left: 16px; right: 16px; }
  .ud-footer-grid { grid-template-columns: 1fr; }
  .ud-footer-grid > div:first-child { grid-column: auto; }
  .ud-footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .ud-nav-links a,
  .ud-shell-button { transition: none; }
}
