.contact-page {
  background: #f4f6fb;
}

.contact-page .top-line,
.contact-page .top-line-inner {
  min-height: 40px;
}

.contact-page .site-header {
  top: 40px;
}

.contact-page .nav-shell {
  min-height: 64px;
}

.contact-main {
  padding-top: 28px;
  padding-bottom: 48px;
}

.contact-breadcrumb {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.contact-breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--blue-dark);
  font-weight: 700;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  color: #fff;
  background: var(--blue-dark);
  overflow: hidden;
}

.contact-hero-copy {
  display: flex;
  min-height: 0;
  padding: clamp(30px, 3.5vw, 46px);
  flex-direction: column;
  justify-content: center;
}

.contact-hero .topic-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  min-height: 0;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--blue-dark);
  background: var(--focus-accent);
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.contact-hero h1 {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.contact-hero-copy > p {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.7;
}

.contact-email-inline {
  display: flex;
  margin-top: 22px !important;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.contact-email-inline span {
  color: var(--focus-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.contact-email-inline a {
  color: #fff;
  font-size: 18px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 0.16em;
}

.contact-email-inline a:hover,
.contact-email-inline a:focus-visible {
  text-decoration-color: currentColor;
}

.contact-hero-media {
  position: relative;
  min-height: 0;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.contact-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-media figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(7, 21, 41, 0.72);
  border-radius: 4px;
  font-size: 10px;
}

.contact-hero-links {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--blue-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hero-links a {
  display: flex;
  min-height: 78px;
  padding: 14px 22px;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hero-links a:last-child {
  border-right: 0;
}

.contact-hero-links a:hover,
.contact-hero-links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.contact-hero-links b {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.contact-hero-links span {
  font-size: 15px;
}

.contact-purpose {
  margin-top: 40px;
}

.contact-section-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.contact-section-heading .topic-eyebrow {
  width: auto;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.contact-section-heading h2 {
  margin: 8px 0 0;
  color: #03122b;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.contact-section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  scroll-margin-top: 124px;
  overflow: hidden;
}

.contact-card.is-open {
  border-color: var(--blue-divider);
  border-top-color: var(--blue-dark);
}

.contact-card-trigger {
  display: grid;
  width: 100%;
  min-height: 116px;
  padding: 22px 24px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  background: #fff;
  border: 0;
  text-align: left;
}

.contact-card-trigger:hover,
.contact-card-trigger[aria-expanded="true"] {
  background: #f7f9fc;
}

.contact-card-index {
  color: var(--blue-divider);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.contact-card-copy {
  display: grid;
  gap: 6px;
}

.contact-card-copy strong {
  color: #03122b;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.contact-card-copy small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.contact-card-state {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--blue-divider);
  border-radius: var(--ds-radii-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.contact-card-panel {
  padding: 26px 24px 24px;
  background: #f7f9fc;
  border-top: 1px solid var(--line);
}

.contact-card-panel[hidden] {
  display: none;
}

.contact-card-panel h3 {
  margin: 0 0 10px;
  color: #03122b;
  font-size: 18px;
  font-weight: 400;
}

.contact-card-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-panel-email {
  margin-top: 14px !important;
}

.contact-panel-email strong {
  color: #03122b;
  font-weight: 700;
}

.contact-panel-email a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.contact-template-box {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-template-box > div {
  display: flex;
  min-height: 58px;
  padding: 0 10px 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  background: var(--blue-dark);
}

.contact-template-box > div > strong {
  font-weight: 400;
}

.contact-template-box button,
.contact-close {
  min-height: 44px;
  padding: 0 18px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--ds-radii-pill);
  font-weight: 700;
}

.contact-template-box button:hover,
.contact-close:hover {
  color: #fff;
  background: var(--blue);
  border-color: rgba(255, 255, 255, 0.35);
}

.contact-template-box pre {
  margin: 0;
  padding: 20px;
  color: var(--ink);
  background: #fff;
  overflow-x: auto;
  white-space: pre-wrap;
}

.contact-template-box code {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.8;
}

.contact-close {
  margin-top: 20px;
  border-color: var(--blue-divider);
}

.contact-safety {
  margin-top: 32px;
  padding: 24px 28px;
  color: #03122b;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
}

.contact-safety h2 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 400;
}

.contact-safety p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.contact-safety p:first-of-type {
  font-size: 16px;
  font-weight: 700;
}

.contact-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-weight: 700;
}

@media (max-width: 680px) {
  .contact-page .top-line {
    display: none;
  }

  .contact-page .site-header {
    top: 0;
  }

  .contact-main {
    padding-top: 10px;
    padding-bottom: 32px;
  }

  .contact-breadcrumb {
    min-height: 40px;
  }

  .contact-hero {
    display: block;
  }

  .contact-hero-copy {
    min-height: 0;
    padding: 30px 22px 34px;
  }

  .contact-hero .topic-eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .contact-hero h1 {
    font-size: 28px;
  }

  .contact-hero-copy > p {
    margin-top: 16px;
    font-size: 16px;
  }

  .contact-hero-media {
    min-height: 0;
  }

  .contact-hero-media img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .contact-hero-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-hero-links a {
    min-height: 64px;
    padding: 10px 14px;
  }

  .contact-hero-links a:nth-child(2n) {
    border-right: 0;
  }

  .contact-hero-links a:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .contact-purpose {
    margin-top: 30px;
  }

  .contact-section-heading {
    display: block;
    margin-bottom: 18px;
  }

  .contact-section-heading h2 {
    font-size: 26px;
  }

  .contact-section-heading p {
    margin-top: 10px;
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card-trigger {
    min-height: 108px;
    padding: 18px 16px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .contact-card-index {
    font-size: 30px;
  }

  .contact-card-state {
    width: max-content;
    grid-column: 2;
  }

  .contact-card-panel {
    padding: 22px 16px 20px;
  }

  .contact-template-box > div {
    min-height: 62px;
  }

  .contact-safety {
    margin-top: 24px;
    padding: 20px;
  }
}
