/* Shared exploration chooser for the homepage and Americans guide. */
[data-get-started],
.get-started-dialog a,
.get-started-close {
  -webkit-tap-highlight-color: transparent;
}
html.get-started-open {
  overflow: hidden;
}

html.get-started-open body {
  position: fixed;
  top: var(--get-started-scroll-top);
  inset-inline: 0;
  width: 100%;
  padding-right: var(--get-started-scrollbar-width);
}

.get-started-dialog {
  --start-ink: #173e32;
  --start-muted: #526b60;
  --start-rule: #dfe5d7;
  --start-enter-y: 24px;
  --start-enter-scale: 0.96;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(560px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(23, 62, 50, 0.1);
  border-radius: 24px;
  background: #f6f5e9;
  color: var(--start-ink);
  box-shadow: 0 24px 80px rgba(10, 31, 24, 0.24);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
  text-align: left;
  scrollbar-width: thin;
  opacity: 0;
  transform: translateY(var(--start-enter-y)) scale(var(--start-enter-scale));
  transition: opacity 200ms ease-in, transform 200ms ease-in;
}

.get-started-dialog.is-visible {
  opacity: 1;
  transform: none;
  transition-duration: 360ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.get-started-dialog::backdrop {
  background: rgba(20, 20, 20, 0.62);
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.get-started-dialog.is-visible::backdrop {
  opacity: 1;
  transition-duration: 300ms;
  transition-timing-function: ease-out;
}

.get-started-brand {
  display: none;
}

.get-started-dialog .get-started-header {
  display: block;
  position: static;
  z-index: auto;
  padding: 0 28px 0 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  line-height: inherit;
}

.get-started-dialog #get-started-title {
  margin: 0;
  color: var(--start-ink);
  font: 600 28px/1.2 'DM Sans', sans-serif;
  letter-spacing: -0.035em;
  outline: none;
}

.get-started-dialog #get-started-description {
  margin: 8px 0 0;
  color: var(--start-ink);
  font: 400 16px/1.5 'DM Sans', sans-serif;
}

.get-started-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: #ebeedf;
  color: var(--start-ink);
  cursor: pointer;
}

.get-started-close svg,
.get-started-arrow {
  display: block;
  width: 22px;
  height: 22px;
}

.get-started-close:hover {
  background: #dfe6d5;
}

.get-started-choices {
  margin-top: 24px;
}

.get-started-choice {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 18px;
  min-height: 106px;
  padding: 24px 0;
  color: var(--start-ink);
  text-decoration: none;
  border-radius: 4px;
}

.get-started-choice + .get-started-choice {
  border-top: 1px solid var(--start-rule);
}

.get-started-dialog .get-started-choice {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease-in, transform 160ms ease-in;
}

.get-started-dialog.is-visible .get-started-choice {
  opacity: 1;
  transform: none;
  transition-duration: 260ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 60ms;
}

.get-started-dialog.is-visible .get-started-choice:nth-child(2) { transition-delay: 90ms; }
.get-started-dialog.is-visible .get-started-choice:nth-child(3) { transition-delay: 120ms; }
.get-started-dialog.is-visible .get-started-choice:nth-child(4) { transition-delay: 150ms; }


@media (hover: hover) {
  .get-started-choice:hover .get-started-label {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
  }
}

.get-started-choice:focus-visible,
.get-started-close:focus-visible {
  outline: 2px solid #3f704b;
  outline-offset: 4px;
}

.get-started-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(105, 81, 137, 0.14);
  border-radius: 9px;
  background: #eee9f4;
  color: #695189;
}

.get-started-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Animate the contents so the row's hit area and entrance stay steady. */
@media (prefers-reduced-motion: no-preference) {
  .get-started-icon,
  .get-started-copy,
  .get-started-arrow {
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .get-started-choice:focus-visible .get-started-icon,
  .get-started-choice:focus-visible .get-started-copy,
  .get-started-choice:focus-visible .get-started-arrow {
    transform: translateX(4px);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .get-started-choice:hover .get-started-icon,
  .get-started-choice:hover .get-started-copy,
  .get-started-choice:hover .get-started-arrow {
    transform: translateX(4px);
  }
}

.get-started-choice--pathways .get-started-icon {
  border-color: rgba(154, 112, 32, 0.14);
  background: #f6efe0;
  color: #9a7020;
}

.get-started-choice--globe .get-started-icon {
  border-color: rgba(79, 132, 88, 0.14);
  background: #eef3ea;
  color: #3f704b;
}

.get-started-choice--discovery .get-started-icon {
  border-color: rgba(83, 108, 133, 0.14);
  background: #edf1f7;
  color: #536c85;
}

.get-started-copy {
  min-width: 0;
}

.get-started-label,
.get-started-detail {
  display: block;
}

.get-started-label {
  font: 600 18px/1.35 'DM Sans', sans-serif;
  letter-spacing: -0.025em;
}

.get-started-detail {
  margin-top: 4px;
  color: var(--start-muted);
  font: 400 14px/1.5 'DM Sans', sans-serif;
}

@media (max-width: 600px), (pointer: coarse) and (max-width: 960px) and (max-height: 500px) {
  .get-started-dialog {
    --start-enter-y: 32px;
    --start-enter-scale: 1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .get-started-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    margin-bottom: 28px;
    font: 600 20px/1.2 'Merriweather Sans', sans-serif;
  }

  .get-started-brand-mark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: currentColor;
    -webkit-mask: url('/images/logo.svg') center / contain no-repeat;
    mask: url('/images/logo.svg') center / contain no-repeat;
  }

  .get-started-dialog .get-started-header {
    padding-right: 0;
  }

  .get-started-dialog #get-started-title {
    max-width: 270px;
    font-size: 32px;
    line-height: 1.15;
    text-wrap: balance;
  }

  .get-started-close {
    top: max(24px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    background: transparent;
  }

  .get-started-choices {
    margin-top: 24px;
  }

  .get-started-choice {
    gap: 16px;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
  }

  .get-started-arrow {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 359px) {
  .get-started-dialog {
    padding-inline: 18px;
  }

  .get-started-choice {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .get-started-dialog,
  .get-started-dialog::backdrop,
  .get-started-dialog .get-started-choice {
    transition: none;
    transform: none;
  }
}
