/* Issue #59 disposable integrated Experience candidate.
   It recomposes the released Contact and footer without changing their behavior. */

body.issue-59-contact-close .contact-section,
body.issue-59-contact-close .contact-section[data-contact-form-ready="true"] {
  padding: clamp(34px, 3.4vw, 48px) var(--edge-wide) 24px;
  border-bottom: 0;
  background: var(--surface-lower);
}

body.issue-59-contact-close .contact-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 52px);
  align-items: start;
}

body.issue-59-contact-close .contact-layout__statement,
body.issue-59-contact-close .contact-layout__center,
body.issue-59-contact-close .contact-layout__fallback {
  position: static;
  inset: auto;
  width: auto;
  max-width: none;
}

body.issue-59-contact-close .contact-layout__statement h2 {
  max-width: 330px;
  font-size: clamp(32px, 2.15vw, 44px);
}

body.issue-59-contact-close .contact-layout__center {
  width: 100%;
  max-width: 400px;
}

body.issue-59-contact-close .contact-layout__heading { margin-bottom: 10px; }

body.issue-59-contact-close .contact-form { gap: 18px; }
body.issue-59-contact-close .contact-form__fields { gap: 14px; }

body.issue-59-contact-close .contact-field input,
body.issue-59-contact-close .contact-field textarea {
  font-size: var(--font-body-compact-size);
  line-height: var(--font-body-compact-leading);
  letter-spacing: .02em;
}

body.issue-59-contact-close .contact-field input {
  height: 48px;
  padding-inline: 14px;
}

body.issue-59-contact-close .contact-field textarea {
  height: 120px;
  min-height: 96px;
  max-height: 240px;
  padding: 13px 14px;
}

body.issue-59-contact-close .contact-field__message {
  right: 14px;
  left: 14px;
}

body.issue-59-contact-close .contact-form__submit-row {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  min-height: 55px;
}

body.issue-59-contact-close .contact-form__submit {
  width: 120px;
  height: 48px;
  padding-inline: 14px;
  font-size: var(--font-body-compact-size);
  letter-spacing: .08em;
}

body.issue-59-contact-close .contact-form__submit [aria-hidden="true"] {
  font-size: .82em;
  line-height: 1;
  letter-spacing: 0;
}

body.issue-59-contact-close .contact-layout__rail {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

body.issue-59-contact-close .contact-layout__fallback .contact-layout__heading { margin-bottom: 6px; }

body.issue-59-contact-close .contact-layout__fallback a {
  min-height: 44px;
  font-size: clamp(14px, .82vw, 18px);
  overflow-wrap: anywhere;
}

body.issue-59-contact-close .contact-layout__navigation {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

body.issue-59-contact-close .contact-layout__navigation nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
  align-content: start;
}

body.issue-59-contact-close .contact-layout__navigation nav a {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
  text-decoration: none;
}

body.issue-59-contact-close .contact-layout__navigation nav a[aria-current="page"] {
  color: var(--text-primary);
  box-shadow: inset 0 -1px var(--signal);
}

body.issue-59-contact-close .contact-layout__navigation .site-footer__utilities {
  display: grid;
  justify-items: start;
  margin-top: 8px;
}

body.issue-59-contact-close .contact-layout__navigation button {
  min-height: 44px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

body.issue-59-contact-close .site-footer[data-contact-close-ready="true"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 20px var(--edge-wide) 24px;
  border-top: 1px solid var(--rule);
  background: var(--surface-lower);
}

body.issue-59-contact-close .site-footer[data-contact-close-ready="true"] > div:first-child {
  display: flex;
  align-items: center;
  gap: 18px;
}

body.issue-59-contact-close .site-footer[data-contact-close-ready="true"] .wordmark {
  flex: none;
  font-size: 16px;
}

body.issue-59-contact-close .site-footer[data-contact-close-ready="true"] p { margin: 0; }

body.issue-59-contact-close .site-footer[data-contact-close-ready="true"] .footer-meta {
  grid-column: auto;
  padding: 0;
  border: 0;
  text-align: right;
}

@media (max-width: 1100px) {
  body.issue-59-contact-close .contact-section,
  body.issue-59-contact-close .contact-section[data-contact-form-ready="true"] {
    padding: 38px 20px 26px;
  }

  body.issue-59-contact-close .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.issue-59-contact-close .contact-layout__statement h2 {
    max-width: 360px;
    font-size: clamp(32px, 6vw, 44px);
  }

  body.issue-59-contact-close .contact-layout__center { max-width: 650px; }

  body.issue-59-contact-close .contact-layout__rail {
    order: 3;
    grid-template-columns: minmax(180px, .7fr) minmax(300px, 1.3fr);
    gap: 28px;
  }

  body.issue-59-contact-close .contact-layout__rail > .contact-layout__fallback { order: 0; }

  body.issue-59-contact-close .contact-layout__navigation { padding-top: 0; border-top: 0; }

  body.issue-59-contact-close .site-footer[data-contact-close-ready="true"] {
    padding: 18px 20px 22px;
  }
}

@media (max-width: 620px) {
  body.issue-59-contact-close .contact-section,
  body.issue-59-contact-close .contact-section[data-contact-form-ready="true"] {
    padding: 32px 18px 24px;
  }

  body.issue-59-contact-close .contact-layout { gap: 24px; }
  body.issue-59-contact-close .contact-layout__statement h2 { font-size: 32px; }
  body.issue-59-contact-close .contact-layout__rail { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.issue-59-contact-close .contact-layout__navigation { padding-top: 10px; border-top: 1px solid var(--rule); }

  body.issue-59-contact-close .contact-form__submit-row {
    grid-template-columns: minmax(120px, 36%) minmax(0, 1fr);
    gap: 12px;
  }

  body.issue-59-contact-close .contact-form__submit { width: 100%; }

  body.issue-59-contact-close .site-footer[data-contact-close-ready="true"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  body.issue-59-contact-close .site-footer[data-contact-close-ready="true"] > div:first-child {
    display: grid;
    gap: 4px;
  }

  body.issue-59-contact-close .site-footer[data-contact-close-ready="true"] .footer-meta {
    align-self: auto;
    text-align: left;
  }
}
