:root {
  --production-gold: #f4c85d;
  --production-gold-strong: #e9ae31;
  --production-warm: #fffdf8;
  --production-warm-2: #f6f1e7;
  --production-navy: #082f50;
  --production-navy-deep: #041f35;
  --production-blue: #164f7d;
  --production-line: rgba(8, 47, 80, .14);
  --production-shadow: 0 24px 70px rgba(8, 47, 80, .14);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.mobile-action-bar .ui-button--navy {
  color: #fff !important;
}

main :is(h1, h2).title-long {
  text-wrap: balance;
}

main h1.title-long {
  max-width: 20ch;
  font-size: clamp(3rem, 4.75vw, 5rem);
  line-height: 1;
  letter-spacing: -.055em;
}

main h2.title-long {
  max-width: 29ch;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -.044em;
}

.state-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.state-region-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid var(--production-line);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(8, 47, 80, .08);
}

.state-region-card > header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--production-line);
}

.state-region-card > header span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--production-navy);
  background: #fff4d1;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 850;
}

.state-region-card > header h3 {
  margin: 0;
  color: var(--production-navy);
  font-size: 1.25rem;
}

.state-region-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.state-entry {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  background: var(--production-warm);
  border: 1px solid rgba(8, 47, 80, .09);
  border-radius: 14px;
}

.state-entry strong {
  overflow-wrap: anywhere;
  color: var(--production-navy);
  font-size: .88rem;
  line-height: 1.25;
}

.state-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.state-entry-links a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: var(--production-blue);
  background: #eaf3f8;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 850;
  text-decoration: none;
}

.state-entry-links a:hover {
  color: #fff;
  background: var(--production-navy);
}

body.city-page .service-area .city-directory {
  grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
}

body.careers-page .hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgba(244, 200, 93, .2), transparent 26%),
    linear-gradient(135deg, var(--production-navy-deep), var(--production-navy) 62%, #174f78);
}

body.careers-page .hero::after {
  position: absolute;
  right: clamp(30px, 8vw, 120px);
  bottom: 46px;
  width: clamp(180px, 28vw, 390px);
  aspect-ratio: 1;
  content: "HS";
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 900;
  letter-spacing: -.1em;
}

body.careers-page .hero .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(90px, 12vw, 150px);
}

body.careers-page .hero h1 {
  max-width: 9ch;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(4rem, 8vw, 7.2rem);
}

body.careers-page .hero .hero-lead {
  max-width: 650px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

body.careers-page .hero a {
  color: #fff;
  font-weight: 800;
  text-decoration-color: var(--production-gold);
}

body.careers-page main > .section {
  padding-block: clamp(76px, 8vw, 112px);
  background: var(--production-warm-2);
}

body.careers-page main > .section .container {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

body.careers-page main > .section h2 {
  position: sticky;
  top: 112px;
  margin: 0;
}

body.careers-page .career-city-list {
  display: grid;
  gap: 14px;
}

body.careers-page .career-city-card,
body.careers-page .city-item {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  color: var(--production-navy);
  background: #fff;
  border: 1px solid var(--production-line);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(8, 47, 80, .09);
}

body.careers-page .career-city-card::before,
body.careers-page .city-item::before {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  content: "→";
  color: var(--production-navy);
  background: linear-gradient(135deg, var(--production-gold), #f7d778);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
}

.partners-page main > .site-section:first-child {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(244, 200, 93, .2), transparent 22%),
    linear-gradient(145deg, #fff 0 52%, #f6f1e7 52% 100%);
}

.partners-page main > .site-section:first-child::after {
  position: absolute;
  right: 8vw;
  top: 50%;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  content: "1 → 1";
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--production-navy), var(--production-blue));
  border: 22px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  box-shadow: var(--production-shadow);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.06em;
  transform: translateY(-50%);
}

.partners-page main > .site-section:first-child .site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto;
  padding-right: min(42vw, 520px);
}

.partners-page main > .site-section:first-child h1 {
  max-width: 10ch;
  margin-bottom: 24px;
}

.partners-page main > .site-section:first-child p {
  max-width: 650px;
  color: #526b7f;
  font-size: 1.05rem;
}

.not-found-page main > .site-section:first-child {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(244, 200, 93, .32), transparent 26%),
    var(--production-warm);
}

.not-found-page main > .site-section:first-child::before {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "404";
  color: rgba(8, 47, 80, .05);
  font-size: clamp(11rem, 35vw, 31rem);
  font-weight: 950;
  line-height: .7;
  letter-spacing: -.12em;
  transform: translate(-50%, -50%);
}

.not-found-page main > .site-section:first-child .site-shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  align-items: center;
}

.not-found-page main > .site-section:first-child h1 {
  max-width: 12ch;
  margin-inline: auto;
}

.not-found-page main > .site-section:first-child p {
  max-width: 52ch;
  margin-inline: auto;
  color: #536c80;
  font-size: 1.1rem;
}

body.legal-page .legal {
  width: min(calc(100% - 40px), 900px);
  max-width: none;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 108px) 0;
  color: #243d51;
}

body.legal-page .legal > h1 {
  max-width: 18ch;
  margin-bottom: 14px;
  color: var(--production-navy);
  font-size: clamp(3rem, 6vw, 5.2rem);
}

body.legal-page .legal .meta {
  margin-bottom: 38px;
  color: #6d7e8c;
}

body.legal-page .legal .box,
body.legal-page .legal .toc {
  margin-block: 28px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--production-warm-2);
  border: 1px solid var(--production-line);
  border-left: 5px solid var(--production-gold-strong);
  border-radius: 18px;
}

body.legal-page .legal .toc {
  border-left-color: var(--production-navy);
}

body.legal-page .legal h2 {
  margin: 54px 0 16px;
  padding-top: 24px;
  color: var(--production-navy);
  border-top: 1px solid var(--production-line);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

body.legal-page .legal h3 {
  margin: 28px 0 10px;
  color: var(--production-navy);
  font-size: 1.12rem;
}

body.legal-page .legal :is(p, li) {
  color: #425c70;
}

body.legal-page .legal :is(a, button) {
  color: var(--production-blue);
}

body.legal-page .legal .tablewrap {
  overflow-x: auto;
  border: 1px solid var(--production-line);
  border-radius: 18px;
}

body.legal-page .legal table {
  margin: 0;
}

body.legal-page .legal :is(input, select, textarea) {
  border-color: var(--production-line);
  border-radius: 12px;
}

body.legal-page .legal button {
  min-height: 52px;
  padding: 14px 24px;
  color: var(--production-navy);
  background: linear-gradient(135deg, var(--production-gold), #f7d778);
  border-radius: 999px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .state-region-grid {
    grid-template-columns: 1fr;
  }

  body.careers-page main > .section .container {
    grid-template-columns: 1fr;
  }

  body.careers-page main > .section h2 {
    position: static;
  }

  body.city-page .service-area .city-directory {
    grid-template-columns: repeat(2, minmax(170px, 1fr)) !important;
  }

  .partners-page main > .site-section:first-child {
    min-height: 620px;
    align-items: start;
  }

  .partners-page main > .site-section:first-child::after {
    right: -50px;
    top: auto;
    bottom: -90px;
    width: 300px;
    transform: none;
  }

  .partners-page main > .site-section:first-child .site-shell {
    padding: 72px 0 280px;
  }
}

@media (max-width: 640px) {
  main h1.title-long {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 2.9rem);
    line-height: 1.02;
  }

  main h2.title-long {
    max-width: none;
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .state-region-card {
    padding: 20px;
    border-radius: 20px;
  }

  .state-region-directory {
    grid-template-columns: 1fr;
  }

  body.hub .service-grid {
    grid-template-columns: 1fr;
  }

  body.hub .service-card {
    min-width: 0;
    width: 100%;
  }

  body.city-page .service-area .city-directory {
    grid-template-columns: 1fr !important;
  }

  body.careers-page .hero {
    min-height: 560px;
  }

  body.careers-page .hero::after {
    right: -74px;
    bottom: 24px;
    width: 240px;
  }

  body.careers-page .hero h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
  }

  .partners-page main > .site-section:first-child .site-shell {
    width: min(calc(100% - 32px), 1200px);
  }

  body.legal-page .legal {
    width: min(calc(100% - 32px), 900px);
    padding-block: 52px 70px;
  }

  body.legal-page .legal > h1 {
    font-size: clamp(2.55rem, 12vw, 3.5rem);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
