/* The homepage footer, shared by every route. */

/* Reusable fade at grid dividers where one section meets another. */
:root {
  --ct-section-edge-fade-mask: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
  --ct-contact-deep-blue: #01365e;
}
.ct-section-edge-fade {
  -webkit-mask-image: var(--ct-section-edge-fade-mask);
  mask-image: var(--ct-section-edge-fade-mask);
}

.site-footer {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #202329;
  font-family: Inter, sans-serif;
  letter-spacing: .005em;
  --footer-card-pad: 24px;
}

.site-footer::before { display: none; }
.site-footer .footer-grid-pattern {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 112px;
  border-bottom: 0;
  background-color: #fff;
  background-image:
    linear-gradient(rgb(23 93 220 / 10%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 93 220 / 10%) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  background-repeat: repeat;
}

/* The contact band reaches the right edge and both grid transitions. */
.site-footer .footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(120px, .83fr) minmax(360px, 1.16fr);
  grid-template-areas:
    "title title panel"
    "lead  links panel"
    "copy  copy  panel";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(24px, 2.5vw, 44px);
  row-gap: 16px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 40px 0 36px max(8%, calc((100% - 1240px) / 2));
}
.site-footer .footer-title {
  grid-area: title;
  align-self: end;
  max-width: none;
  margin: clamp(12px, 1.6vw, 22px) 0 0;
  font-family: inherit;
  font-size: clamp(33px, 3.9vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.025em;
}
.site-footer .footer-lead { grid-area: lead; padding-top: var(--footer-card-pad); }
.site-footer .footer-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid #175ddc;
  color: #175ddc;
  font-size: 14px;
  text-decoration: none;
}
.site-footer .footer-email:hover { border-color: #202329; color: #202329; }
.site-footer .footer-links {
  grid-area: links;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding-top: var(--footer-card-pad);
  font-size: 13px;
}
.site-footer .footer-links p,
.site-footer .footer-panel-title {
  margin: 0 0 6px;
  color: #202329;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.site-footer .footer-downloads-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}
.site-footer .footer-downloads-trigger:hover { color: #175ddc; }
.site-footer .footer-downloads-trigger span { color: #175ddc; }
.site-footer .footer-copy {
  grid-area: copy;
  align-self: end;
  margin: 0 0 clamp(34px, 4vw, 54px);
  color: #68717d;
  font-size: 11px;
}

/* The form panel echoes the Contact hero while the rest of the footer stays white. */
.site-footer .footer-panel {
  position: relative;
  isolation: isolate;
  grid-area: panel;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: clamp(28px, 3vw, 40px) clamp(26px, 6vw, 92px) clamp(28px, 3vw, 40px) clamp(26px, 3.2vw, 50px);
  border: 0;
  border-radius: 0;
  background: var(--ct-contact-deep-blue);
  color: #fff;
  font-size: 13px;
}
.site-footer .footer-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 8%) 1px, transparent 1px);
  background-size: 56px 56px;
}
.site-footer .footer-panel > * { position: relative; z-index: 1; }
.site-footer .footer-panel-title { margin-bottom: 10px; color: #fff; font-size: 18px; }
.site-footer .footer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.site-footer .footer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.site-footer .footer-form label {
  display: block;
  min-width: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.site-footer .footer-form input,
.site-footer .footer-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 5px;
  padding: 8px 11px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 7px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  font: 400 14px/1.4 Inter, sans-serif;
}
.site-footer .footer-form textarea { resize: vertical; min-height: 60px; }
.site-footer .footer-form input:focus-visible,
.site-footer .footer-form textarea:focus-visible {
  border-color: #fff;
  outline: 2px solid #9ac6ff;
  outline-offset: 2px;
}
.site-footer .footer-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 2px;
}
.site-footer .footer-form-note {
  margin: 0;
  color: #d9e9f8;
  font-size: 11px;
  line-height: 1.45;
}
.site-footer .footer-panel-link {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: #d9e9f8;
  font-size: 13px;
  text-decoration: none;
}
.site-footer .footer-panel-link::after { content: none; }
.site-footer .footer-panel-link:hover { color: #fff; }
.site-footer .footer-panel-link:focus-visible { outline-color: #fff; }
.site-footer .footer-panel .interactive-button:hover,
.site-footer .footer-panel .interactive-button:focus-visible { border-color: #fff !important; box-shadow: 0 0 0 2px #fff !important; }
.site-footer .footer-panel .interactive-button:disabled { opacity: .78; }
.site-footer .footer-socials {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
}
.site-footer .footer-socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dce5f1;
  border-radius: 50%;
  color: #175ddc;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.site-footer .footer-socials a:hover { background: #175ddc; border-color: #175ddc; color: #fff; }
.site-footer .footer-socials svg { width: 15px; height: 15px; fill: currentColor; }
.site-footer .footer-grid-pattern-bottom { inset: auto 0 0; height: 112px; }

.site-footer .ct-downloads-dialog {
  position: fixed;
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  background: #fff;
  color: #202329;
  box-shadow: 0 22px 70px rgb(23 42 72 / 18%);
  font-family: Inter, sans-serif;
}
.site-footer .ct-downloads-dialog::backdrop { background: rgb(15 31 54 / 46%); }
.site-footer .ct-downloads-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.site-footer .ct-downloads-eyebrow {
  margin: 0 0 6px;
  color: #175ddc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.site-footer .ct-downloads-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.site-footer .ct-downloads-close {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid #dce5f1;
  border-radius: 50%;
  background: #fff;
  color: #3d4652;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}
.site-footer .ct-downloads-close:hover { border-color: #175ddc; color: #175ddc; }
.site-footer .ct-downloads-description {
  margin: 12px 0 20px;
  color: #536071;
  font-size: 14px;
  line-height: 1.5;
}
.site-footer .ct-downloads-list { border-top: 1px solid #e4eaf2; }
.site-footer .ct-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #e4eaf2;
  color: #202329;
  text-decoration: none;
}
.site-footer .ct-download-item::after { content: none !important; }
.site-footer .ct-download-item:hover strong { color: #175ddc; }
.site-footer .ct-download-item strong,
.site-footer .ct-download-item small { display: block; }
.site-footer .ct-download-item strong { font-size: 15px; font-weight: 600; }
.site-footer .ct-download-item small { margin-top: 3px; color: #68717d; font-size: 12px; }
.site-footer .ct-download-action {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dce5f1;
  border-radius: 50%;
  color: #175ddc;
  font-size: 19px;
  line-height: 1;
}
.site-footer .ct-download-item:hover .ct-download-action { border-color: #175ddc; background: #175ddc; color: #fff; }
.site-footer .ct-download-item:focus-visible { outline-offset: -2px; }
@media (max-width: 980px) {
  .site-footer .footer-grid-pattern { height: 92px; background-size: 24px 24px; }
  .site-footer .footer-content {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "lead  links"
      "copy  copy"
      "panel panel";
    grid-template-rows: auto;
    gap: 22px 26px;
    padding: 30px 0 26px;
  }
  .site-footer .footer-title { margin: 16px 6% 0; font-size: 39px; }
  .site-footer .footer-lead,
  .site-footer .footer-links { padding-top: 0; }
  .site-footer .footer-lead { padding-left: 12%; }
  .site-footer .footer-links { padding-right: 12%; }
  .site-footer .footer-copy { margin: 0 6% 0; }
  .site-footer .footer-panel { min-height: 0; padding: 30px 6%; }
}

@media (max-width: 470px) {
  .site-footer .footer-content {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "lead" "links" "copy" "panel";
  }
  .site-footer .footer-lead,.site-footer .footer-links { padding-inline: 6%; }
  .site-footer .footer-form-row { grid-template-columns: 1fr; }
  .site-footer .footer-copy { font-size: 10px; }
  .site-footer .ct-downloads-dialog { padding: 22px; }
}

@media (forced-colors: active) {
  .site-footer .footer-grid-pattern { background-image: none; border-block: 1px solid CanvasText; }
  .site-footer .footer-panel { border-block: 1px solid CanvasText; background: Canvas; }
  .site-footer .footer-form input,
  .site-footer .footer-form textarea { border-color: CanvasText; }
  .ct-section-edge-fade { -webkit-mask-image: none; mask-image: none; }
}

/* Homepage echo: the hero's neutral cell size, softened at both edges. */
.home-page .site-footer .footer-grid-pattern {
  background-image:
    linear-gradient(to right, rgb(0 0 0 / 5%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(0 0 0 / 5%) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
}
@media (forced-colors: active) {
  .home-page .site-footer .footer-grid-pattern {
    background-image: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
