/* PAXTON core site chrome — Phase A redesign, 2026-10-26 */
:root {
  --px-ink: #071d3b;
  --px-ink-2: #102c50;
  --px-blue: #0b55a5;
  --px-blue-soft: #eaf2fb;
  --px-paper: #f4f7fa;
  --px-white: #ffffff;
  --px-text: #12243a;
  --px-muted: #627184;
  --px-line: #dbe3eb;
  --px-line-strong: #cbd6e2;
  --px-max: 1320px;
  --px-shadow: 0 18px 45px rgba(7,29,59,.08);
  --px-sans: Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--px-paper); color: var(--px-text); font-family: var(--px-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.shell { width: min(var(--px-max), calc(100% - 64px)); margin-inline: auto; }
.utility { display: none !important; }

.site-header,
.main-nav {
  position: relative;
  z-index: 80;
  min-height: 78px;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid rgba(7,29,59,.09);
}
.site-header .shell,
.main-nav .shell {
  min-height: 78px;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 34px;
}
.brand-lockup {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  width: max-content;
  text-decoration: none;
}
.brand-lockup .brand-mark { grid-row: 1 / 3; width: 38px; height: 38px; object-fit: contain; }
.brand-lockup .brand-wordmark { width: 154px; height: auto; }
.brand-tagline {
  margin-top: -1px;
  color: var(--px-ink);
  font-size: 8px;
  line-height: 1.1;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 2.5vw, 42px);
}
.nav-links a {
  position: relative;
  padding: 29px 0 27px;
  color: var(--px-ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 0;
  height: 2px;
  background: var(--px-blue);
  transition: width .18s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links .mobile-contact-link { display: inline-block; margin: 0; background: none; color: var(--px-ink); text-align: left; }
.contact-nav { display: none !important; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--px-line-strong);
  background: var(--px-white);
  color: var(--px-ink);
  font-size: 21px;
  cursor: pointer;
}

/* Shared typography and layout rhythm. Old page-specific CSS remains during phased migration. */
.editorial-page,
.unified-legacy-page { background: var(--px-paper); color: var(--px-text); }
.editorial-page main,
.unified-legacy-page main { overflow: clip; }
.editorial-page h1,
.editorial-page h2,
.editorial-page h3,
.unified-legacy-page h1,
.unified-legacy-page h2,
.unified-legacy-page h3 { text-wrap: balance; }
.editorial-page p,
.unified-legacy-page p { text-wrap: pretty; }

.site-footer {
  padding: 58px 0 22px;
  background: #06182e;
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(150px, .7fr) minmax(270px, 1fr);
  gap: 64px;
  align-items: start;
  padding-bottom: 40px;
}
.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-brand-lockup .brand-mark { width: 38px; height: 38px; object-fit: contain; }
.footer-brand-lockup .brand-wordmark { width: 145px; height: auto; filter: brightness(0) invert(1); }
.footer-brand-block p { max-width: 38ch; margin: 18px 0 0; font-size: 13px; line-height: 1.65; }
.footer-links,
.footer-contact { display: grid; gap: 11px; font-size: 12px; }
.footer-links a,
.footer-contact a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-links a:hover,
.footer-contact a:hover { color: #fff; }
.footer-contact .company-name { color: #fff; font-weight: 750; letter-spacing: .035em; }
.footer-contact .address { max-width: 34ch; line-height: 1.55; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .shell { width: min(var(--px-max), calc(100% - 44px)); }
  .site-header,
  .main-nav { min-height: 70px; }
  .site-header .shell,
  .main-nav .shell { min-height: 70px; grid-template-columns: 1fr auto; gap: 20px; }
  .brand-lockup .brand-mark { width: 34px; height: 34px; }
  .brand-lockup .brand-wordmark { width: 138px; }
  .brand-tagline { font-size: 7px; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    z-index: 90;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 24px 18px;
    background: #fff;
    border-top: 1px solid var(--px-line);
    border-bottom: 1px solid var(--px-line);
    box-shadow: 0 18px 30px rgba(7,29,59,.12);
  }
  .nav-links.open { display: grid; }
  .nav-links a,
  .nav-links .mobile-contact-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--px-line);
    background: transparent;
    color: var(--px-ink);
    text-align: left;
    font-size: 13px;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .shell { width: min(var(--px-max), calc(100% - 36px)); }
  .brand-tagline { display: none; }
  .brand-lockup { grid-template-rows: auto; }
  .brand-lockup .brand-mark { grid-row: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand-block { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Accessibility: keep the skip link off canvas until keyboard focus. */
.skip-link {
  position: fixed;
  z-index: 999;
  top: -80px;
  left: 12px;
  padding: 10px 14px;
  background: #fff;
  color: #071d3b;
  border: 1px solid #cbd6e2;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
