/*
 * /contact and /thank-you. Loaded after /styles/home.css, which supplies the
 * page base and the shared .hm-* blocks, and before /styles/site.css, which
 * supplies the tokens, bands, type and buttons. A rule here that overrides a
 * shared .dz-* class carries one more class than the rule it overrides.
 *
 * Calm rules: no text styles beyond the home page's eight; white bands and one
 * snow band; everything left-aligned on one edge; no boxes, only hairlines.
 * Mobile first: the base rules are the 320px layout.
 */

/* ---------- Hero ---------- */

.ct-hero .dz-display {
  max-width: 14ch;
  font-size: clamp(36px, 6.4vw, 76px);
}
.ct-hero .hm-sub {
  margin-top: 24px;
}

/* ---------- Three ways to reach a person ---------- */

.ct-ways {
  display: grid;
  gap: 0;
  margin-top: var(--hm-gap);
  border-bottom: 1px solid var(--dz-line-strong);
}
.ct-way {
  display: grid;
  gap: 6px;
  align-content: start;
  height: 100%;
  min-height: 44px;
  padding: 24px 0;
  border-top: 1px solid var(--dz-line-strong);
  color: var(--dz-ink);
  text-decoration: none;
}
/* The address and the number must never push the page sideways at 320px. */
.ct-way .dz-h3 {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--dz-link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--dz-fast) var(--dz-ease);
}
.ct-way:hover .dz-h3 {
  text-decoration-color: currentColor;
}
.ct-way:active .dz-h3 {
  color: var(--dz-ink-2);
}
.ct-note {
  margin-top: 20px;
}
@media (min-width: 860px) {
  .ct-ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 48px;
    border-bottom: 0;
  }
  .ct-way {
    padding: 28px 0 8px;
  }
}

/* ---------- Route the enquiry ---------- */

/* Each item is a column so the links line up along the foot of the row. */
.ct-needs li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ct-needs .dz-link {
  margin-top: auto;
  padding-top: 12px;
}
@media (min-width: 640px) and (max-width: 859px) {
  .ct-needs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- For the purchase team ---------- */

.ct-company {
  max-width: 72ch;
  margin-top: var(--hm-gap);
}

/* ---------- /thank-you: what happens next ---------- */

.ty-next {
  margin-top: var(--hm-gap);
  padding-top: var(--hm-gap);
  border-top: 1px solid var(--dz-line-strong);
}
.ty-next a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
}

@media (prefers-reduced-motion: reduce) {
  .ct-way .dz-h3 {
    transition: none;
  }
}
