/* Final approved GetHelp246 home screen. Loaded after legacy CSS on purpose. */
body[data-route="home"] {
  overflow-x: hidden !important;
  background: #fff7eb !important;
}

body[data-route="home"] .page,
body[data-route="home"] .home-hero,
body[data-route="home"] .desktop-home,
body[data-route="home"] .home-redesign {
  min-height: calc(100dvh - 72px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff7eb !important;
}

body[data-route="home"] .topbar {
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 clamp(32px, 5vw, 68px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  background: #fff !important;
  border-bottom: 1px solid rgba(6, 26, 58, .14) !important;
  box-shadow: none !important;
}

/* Keep phone numbers readable with icon + flag + checkmark present. */
body[data-route="home"] .contact-row {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
}

body[data-route="home"] .contact-shell {
  gap: 8px !important;
  padding: 0 12px 0 14px !important;
}

body[data-route="home"] .contact-shell.contact-country {
  grid-template-columns: 30px 30px minmax(0, 1fr) 22px !important;
}

body[data-route="home"] .contact-shell input {
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: clamp(16px, 1.1vw, 18px) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
  text-overflow: clip !important;
}

body[data-route="home"] .country-chip {
  width: 30px !important;
  min-width: 30px !important;
}

body[data-route="home"] .country-chip img {
  width: 21px !important;
}

@media (max-width: 700px) {
  body[data-route="home"] .contact-shell input {
    font-size: clamp(16px, 4.4vw, 18px) !important;
  }
}

@media (max-width: 430px) {
  body[data-route="home"] .contact-shell {
    grid-template-columns: 28px minmax(0, 1fr) 20px !important;
    gap: 6px !important;
    padding: 0 10px 0 12px !important;
  }

  body[data-route="home"] .contact-shell.contact-country {
    grid-template-columns: 28px 28px minmax(0, 1fr) 20px !important;
  }

  body[data-route="home"] .country-chip {
    width: 28px !important;
    min-width: 28px !important;
    border-radius: 7px !important;
  }

  body[data-route="home"] .country-chip img {
    width: 20px !important;
    height: 14px !important;
  }

  body[data-route="home"] .contact-shell input {
    font-size: clamp(15px, 4vw, 16px) !important;
  }
}

body[data-route="home"] .topbar nav {
  justify-self: center !important;
}

body[data-route="home"] .topbar .nav-link {
  justify-self: end !important;
}

body[data-route="home"] .mobile-status,
body[data-route="home"] .mobile-appbar {
  display: none !important;
}

body[data-route="home"] .brand {
  color: var(--ink) !important;
  font-size: clamp(29px, 2.2vw, 38px) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body[data-route="home"] .brand i {
  width: .35em !important;
  height: .35em !important;
  background: var(--gold) !important;
}

body[data-route="home"] .home-stage {
  width: 100% !important;
  height: calc(100dvh - 72px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  align-content: stretch !important;
  overflow: hidden !important;
}

body[data-route="home"] .home-left {
  width: min(680px, calc(100% - 96px)) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: clamp(30px, 5vh, 66px) 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body[data-route="home"] .hero-copy {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body[data-route="home"] h1 {
  max-width: 670px !important;
  margin: 0 0 18px !important;
  color: var(--ink) !important;
  font-size: clamp(52px, 4.8vw, 74px) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
  text-wrap: balance !important;
}

body[data-route="home"] .hero-copy > p {
  max-width: 620px !important;
  margin: 0 0 26px !important;
  color: #10254a !important;
  font-size: clamp(19px, 1.35vw, 24px) !important;
  line-height: 1.38 !important;
  font-weight: 500 !important;
}

body[data-route="home"] .home-intake {
  width: 100% !important;
  max-width: 640px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 16px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-route="home"] .home-field {
  display: grid !important;
  gap: 8px !important;
}

body[data-route="home"] .parish-label-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
}

body[data-route="home"] .home-field label,
body[data-route="home"] .home-field > span,
body[data-route="home"] .parish-label-row > span {
  color: var(--ink) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body[data-route="home"] .parish-control {
  display: grid !important;
  grid-template-columns: minmax(0, 470px) !important;
  gap: 0 !important;
  align-items: center !important;
}

body[data-route="home"] .home-input-shell {
  min-height: 58px !important;
  border: 1px solid rgba(6, 26, 58, .26) !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, .76) !important;
  box-shadow: none !important;
}

body[data-route="home"] .home-input-shell:focus-within {
  border-color: rgba(6, 26, 58, .48) !important;
  box-shadow: 0 0 0 4px rgba(255, 199, 38, .24) !important;
  transform: translateY(-1px) !important;
}

body[data-route="home"] .home-select-shell {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  padding: 0 18px !important;
}

body[data-route="home"] .home-select-shell .icon,
body[data-route="home"] .use-parish .icon,
body[data-route="home"] .contact-mark .icon,
body[data-route="home"] .contact-check .icon {
  width: 26px !important;
  height: 26px !important;
  color: #1a3458 !important;
}

body[data-route="home"] .home-select-shell select,
body[data-route="home"] .home-input-shell input {
  min-height: 56px !important;
  padding: 0 !important;
  outline: none !important;
  color: var(--ink) !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-route="home"] .task-input-shell input {
  padding: 0 48px 0 18px !important;
}

body[data-route="home"] .home-input-shell input::placeholder {
  color: #65748c !important;
  opacity: 1 !important;
}

body[data-route="home"] .use-parish {
  min-height: 44px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: #52627a !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body[data-route="home"] .parish-picks,
body[data-route="home"] .home-privacy,
body[data-route="home"] .request-reassurance,
body[data-route="home"] .home-process,
body[data-route="home"] .home-request-state,
body[data-route="home"] .home-work-photo figcaption,
body[data-route="home"] .home-work-photo::after {
  display: none !important;
}

body[data-route="home"] .contact-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 16px !important;
}

body[data-route="home"] .contact-shell {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 26px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 0 14px 0 18px !important;
}

body[data-route="home"] .contact-shell.contact-country {
  grid-template-columns: 40px 32px minmax(0, 1fr) 26px !important;
}

body[data-route="home"] .email-shell {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 26px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 0 14px 0 18px !important;
}

body[data-route="home"] .contact-mark,
body[data-route="home"] .contact-check {
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body[data-route="home"] .contact-country .contact-mark {
  overflow: visible !important;
  color: #1a3458 !important;
  background: transparent !important;
}

body[data-route="home"] .contact-country .contact-mark::before {
  content: none !important;
}

body[data-route="home"] .country-chip {
  width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 1px solid rgba(6, 26, 58, .16) !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body[data-route="home"] .country-chip img {
  width: 22px !important;
  height: 15px !important;
  display: block !important;
  border-radius: 2px !important;
}

body[data-route="home"] .country-chip[hidden],
body[data-route="home"] .contact-check[hidden] {
  display: none !important;
}

body[data-route="home"] .contact-check,
body[data-route="home"] .contact-check .icon {
  color: #16834d !important;
}

body[data-route="home"] .contact-hint:empty {
  display: none !important;
}

body[data-route="home"] .home-submit-row {
  display: block !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
}

body[data-route="home"] .request-button {
  width: 100% !important;
  min-height: 62px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #f4f0e8 !important;
  color: rgba(8, 26, 61, .48) !important;
  font-size: 27px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

body[data-route="home"] .request-button:disabled {
  cursor: not-allowed !important;
  opacity: .72 !important;
}

body[data-route="home"] .request-button[data-ready="true"] {
  background: #0a1d41 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

body[data-route="home"] .request-button[data-complete="true"] {
  background: linear-gradient(90deg, #081a3d 0%, #0b3475 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  box-shadow: 0 12px 26px rgba(8, 26, 61, .18) !important;
}

body[data-route="home"] .request-button:active {
  transform: translateY(1px) !important;
}

body[data-route="home"] .home-visual-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body[data-route="home"] .home-work-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: block !important;
}

body[data-route="home"] .home-work-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: none !important;
  display: block !important;
}

@media (max-width: 700px) {
  body[data-route="home"] .topbar {
    display: none !important;
  }

  body[data-route="home"] .mobile-appbar {
    min-height: 86px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(6, 26, 58, .12) !important;
  }

  body[data-route="home"] .mobile-appbar .brand {
    font-size: clamp(33px, 9vw, 42px) !important;
  }

  body[data-route="home"] .mobile-menu {
    width: 50px !important;
    height: 50px !important;
    display: inline-flex !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-route="home"] .page,
  body[data-route="home"] .home-hero,
  body[data-route="home"] .desktop-home,
  body[data-route="home"] .home-redesign {
    min-height: 100dvh !important;
    height: auto !important;
    overflow: visible !important;
  }

  body[data-route="home"] .home-stage {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
  }

  body[data-route="home"] .home-left {
    display: contents !important;
  }

  body[data-route="home"] .home-visual-panel {
    order: 1 !important;
    width: 100% !important;
    height: clamp(250px, 70vw, 390px) !important;
    margin: 0 !important;
  }

  body[data-route="home"] .hero-copy {
    order: 2 !important;
    width: auto !important;
    padding: 34px 24px 0 !important;
  }

  body[data-route="home"] h1 {
    max-width: 760px !important;
    margin-bottom: 16px !important;
    font-size: clamp(48px, 13vw, 70px) !important;
    line-height: 1.06 !important;
  }

  body[data-route="home"] .hero-copy > p {
    max-width: 660px !important;
    margin-bottom: 0 !important;
    font-size: clamp(19px, 5vw, 28px) !important;
    line-height: 1.38 !important;
  }

  body[data-route="home"] .home-intake {
    order: 3 !important;
    width: auto !important;
    max-width: none !important;
    margin: 26px 24px 34px !important;
    gap: 20px !important;
  }

  body[data-route="home"] .home-field label,
  body[data-route="home"] .home-field > span,
  body[data-route="home"] .parish-label-row > span {
    font-size: 21px !important;
  }

  body[data-route="home"] .parish-control {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-route="home"] .home-input-shell {
    min-height: 68px !important;
  }

  body[data-route="home"] .home-select-shell,
  body[data-route="home"] .contact-shell {
    padding-left: 18px !important;
  }

  body[data-route="home"] .home-select-shell select,
  body[data-route="home"] .home-input-shell input {
    min-height: 66px !important;
    font-size: 20px !important;
  }

  body[data-route="home"] .task-input-shell input {
    padding: 0 46px 0 18px !important;
  }

  body[data-route="home"] .use-parish {
    min-height: 48px !important;
    font-size: 18px !important;
  }

  body[data-route="home"] .contact-shell {
    grid-template-columns: 34px minmax(0, 1fr) 24px !important;
    gap: 8px !important;
  }

  body[data-route="home"] .contact-shell.contact-country {
    grid-template-columns: 34px 32px minmax(0, 1fr) 24px !important;
  }

  body[data-route="home"] .contact-row {
    gap: 16px !important;
  }

  body[data-route="home"] .email-shell {
    grid-template-columns: 34px minmax(0, 1fr) 24px !important;
    gap: 8px !important;
  }

  body[data-route="home"] .request-button {
    min-height: 72px !important;
    font-size: 31px !important;
  }
}

@media (max-width: 430px) {
  body[data-route="home"] .mobile-appbar {
    min-height: 58px !important;
    padding: 0 18px !important;
  }

  body[data-route="home"] .mobile-appbar .brand {
    font-size: clamp(28px, 7vw, 32px) !important;
  }

  body[data-route="home"] .home-visual-panel {
    height: clamp(112px, 31vw, 136px) !important;
  }

  body[data-route="home"] .hero-copy {
    padding: 16px 22px 0 !important;
  }

  body[data-route="home"] h1 {
    margin-bottom: 7px !important;
    font-size: clamp(31px, 8.6vw, 36px) !important;
    line-height: 1.03 !important;
  }

  body[data-route="home"] .hero-copy > p {
    font-size: 14px !important;
    line-height: 1.24 !important;
  }

  body[data-route="home"] .home-intake {
    margin: 14px 22px 18px !important;
    gap: 9px !important;
  }

  body[data-route="home"] .home-field {
    gap: 6px !important;
  }

  body[data-route="home"] .home-field label,
  body[data-route="home"] .home-field > span,
  body[data-route="home"] .parish-label-row > span {
    font-size: 16px !important;
  }

  body[data-route="home"] .parish-control {
    grid-template-columns: 1fr !important;
  }

  body[data-route="home"] .use-parish {
    min-height: 28px !important;
    justify-self: end !important;
    font-size: 13px !important;
    gap: 6px !important;
  }

  body[data-route="home"] .use-parish .icon {
    width: 20px !important;
    height: 20px !important;
  }

  body[data-route="home"] .contact-shell {
    min-height: 56px !important;
    grid-template-columns: 30px minmax(0, 1fr) 22px !important;
    grid-template-rows: 1fr !important;
    align-content: center !important;
    padding: 0 12px 0 14px !important;
  }

  body[data-route="home"] .contact-shell.contact-country {
    grid-template-columns: 30px 32px minmax(0, 1fr) 22px !important;
  }

  body[data-route="home"] .email-shell {
    min-height: 56px !important;
    grid-template-columns: 30px minmax(0, 1fr) 22px !important;
    padding: 0 12px 0 14px !important;
  }

  body[data-route="home"] .contact-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body[data-route="home"] .contact-shell .contact-mark {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body[data-route="home"] .contact-shell .country-chip {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  body[data-route="home"] .contact-shell input {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 54px !important;
  }

  body[data-route="home"] .contact-shell.contact-country input {
    grid-column: 3 !important;
  }

  body[data-route="home"] .contact-shell .contact-check {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  body[data-route="home"] .contact-shell.contact-country .contact-check {
    grid-column: 4 !important;
  }

  body[data-route="home"] .home-select-shell select,
  body[data-route="home"] .home-input-shell input {
    min-height: 50px !important;
    font-size: 16px !important;
  }

  body[data-route="home"] .home-input-shell {
    min-height: 52px !important;
  }

  body[data-route="home"] .request-button {
    min-height: 54px !important;
    font-size: 22px !important;
  }
}

body[data-route="home"] .contact-shell input[data-contact-input] {
  min-width: 0 !important;
  font-size: clamp(16px, 1.1vw, 18px) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
}

@media (max-width: 430px) {
  body[data-route="home"] .contact-shell input[data-contact-input] {
    font-size: clamp(15px, 4vw, 16px) !important;
  }
}

/* Launch guard: home nav height must match every other desktop route. */
@media (min-width: 701px) {
  body[data-route="home"] .topbar {
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    padding: 0 clamp(40px, 4vw, 78px) !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
  }

  body[data-route="home"] .brand,
  body[data-route="home"] .topbar nav,
  body[data-route="home"] .topbar nav button,
  body[data-route="home"] .topbar .nav-link {
    height: 92px !important;
    min-height: 92px !important;
  }
}
