/* Journey — scoped to journey page */
body.journey-page .btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid #b7c7cb;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

body.journey-page .btn-secondary:hover {
  border-color: var(--navy);
  background: #f7fafb;
}

body.journey-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.journey-page .journey-site-footer,
body.journey-page .checklist-site-footer {
  background: var(--navy);
  padding: 45px 0;
}

body.journey-page .checklist-site-footer .site-footer {
  border-top: none;
  padding-top: 0;
}

body.journey-page .journey-disclosure-bar {
  background: var(--pale);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

body.journey-page .journey-disclosure {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

body.journey-page .journey-body.container {
  width: min(100% - 36px, 820px);
  padding: 28px 0 48px;
}

body.journey-page .journey-timeline-wrap {
  --journey-dot-size: 36px;
  --journey-ring-outset: 5px;
  --journey-marker-head: calc(var(--journey-dot-size) + 2 * var(--journey-ring-outset));
  --journey-label-gap: 4px;
  margin-bottom: 20px;
}

body.journey-page .journey-timeline-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

body.journey-page .journey-timeline-track {
  position: relative;
}

body.journey-page .journey-timeline-track::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: calc(var(--journey-marker-head) / 2);
  inset-inline-start: calc(100% / 12);
  inset-inline-end: calc(100% / 12);
  height: 2px;
  background: #b7c7cb;
  pointer-events: none;
  transform: translateY(-50%);
}

body.journey-page .journey-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 0;
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
  direction: ltr;
}

html[dir='rtl'] body.journey-page .journey-timeline {
  direction: rtl;
}

body.journey-page .journey-timeline__item {
  min-width: 0;
}

body.journey-page .journey-timeline-point {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

body.journey-page .journey-timeline-point:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}

body.journey-page .journey-timeline-point__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex-shrink: 0;
}

body.journey-page .journey-timeline-point__dot-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--journey-marker-head);
  flex-shrink: 0;
}

body.journey-page .journey-timeline-point__dot {
  position: relative;
  z-index: 1;
  width: var(--journey-dot-size);
  height: var(--journey-dot-size);
  border-radius: 50%;
  border: 2px solid #8fa8b0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
  box-sizing: border-box;
}

body.journey-page .journey-timeline-point__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

body.journey-page .journey-timeline-point__step-num {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: inherit;
}

body.journey-page .journey-timeline-point.is-current .journey-timeline-point__dot {
  background: var(--green);
  border-color: var(--green);
  color: #162c30;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--green);
}

body.journey-page .journey-timeline-point.is-browsing:not(.is-current) .journey-timeline-point__dot {
  border-color: var(--navy);
  background: #f7fafb;
  box-shadow: 0 0 0 2px #fff;
}

body.journey-page .journey-timeline-point.is-browsing.is-current .journey-timeline-point__dot {
  border-color: var(--green);
}

body.journey-page .journey-timeline-point__label {
  margin: var(--journey-label-gap) 0 0;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--muted);
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.journey-page .journey-timeline-point.is-browsing .journey-timeline-point__label,
body.journey-page .journey-timeline-point.is-current .journey-timeline-point__label {
  color: var(--ink);
  font-weight: 700;
}

body.journey-page .journey-timeline-mobile-title {
  margin: 22px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
}

body.journey-page .journey-timeline-mobile-current {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

body.journey-page .journey-current-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 18px 0 22px;
  padding: 14px 16px;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 10px;
}

body.journey-page .journey-current-bar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  flex: 1 1 12rem;
  min-width: 0;
}

body.journey-page .journey-current-bar__label {
  font-weight: 400;
  margin: 0;
}

body.journey-page .journey-current-bar__name {
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

body.journey-page .journey-current-bar__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  text-align: end;
}

body.journey-page .journey-current-bar__browse {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  width: 100%;
}

@media (max-width: 720px) {
  html[lang='en'] body.journey-page .journey-current-bar,
  html[lang='ru'] body.journey-page .journey-current-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 8px;
  }

  html[lang='en'] body.journey-page .journey-current-bar__group,
  html[lang='ru'] body.journey-page .journey-current-bar__group {
    grid-row: 1;
    grid-column: 1 / -1;
    display: block;
    flex: unset;
    min-width: 0;
    margin: 0;
    line-height: 1.35;
    align-self: start;
  }

  html[lang='en'] body.journey-page .journey-current-bar__label,
  html[lang='ru'] body.journey-page .journey-current-bar__label,
  html[lang='en'] body.journey-page .journey-current-bar__name,
  html[lang='ru'] body.journey-page .journey-current-bar__name {
    display: inline;
    margin: 0;
  }

  html[lang='en'] body.journey-page .journey-current-bar__name,
  html[lang='ru'] body.journey-page .journey-current-bar__name {
    font-weight: 700;
    color: var(--navy);
    margin-inline-start: 0.28em;
    overflow-wrap: anywhere;
  }

  html[lang='en'] body.journey-page .journey-current-bar__browse,
  html[lang='ru'] body.journey-page .journey-current-bar__browse {
    grid-row: 2;
    grid-column: 1;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    line-height: 1.35;
  }

  html[lang='en'] body.journey-page .journey-current-bar__tag,
  html[lang='ru'] body.journey-page .journey-current-bar__tag {
    grid-row: 2;
    grid-column: 2;
    margin: 0;
    padding: 0;
    flex: unset;
    max-width: 11rem;
    font-size: 12px;
    line-height: 1.35;
    text-align: end;
    justify-self: end;
    overflow-wrap: anywhere;
  }
}

body.journey-page .journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px 28px;
  align-items: start;
}

body.journey-page .journey-stage-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.journey-page .journey-stage-nav button {
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.35;
}

body.journey-page .journey-stage-nav button:hover {
  border-color: #8fa8b0;
}

body.journey-page .journey-stage-nav button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

body.journey-page .journey-stage-nav button.is-browsing:not(.is-current) {
  border-color: var(--navy);
  background: #f7fafb;
}

body.journey-page .journey-stage-nav button.is-current {
  border-color: var(--green);
  background: #ecf9f2;
  border-inline-start: 4px solid var(--green);
  padding-inline-start: 9px;
}

body.journey-page .journey-stage-nav__badge {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a5c42;
}

body.journey-page .journey-panel {
  min-width: 0;
}

body.journey-page .journey-panel h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

body.journey-page .journey-panel__desc {
  margin: 0 0 18px;
  line-height: 1.6;
  color: var(--muted);
}

body.journey-page .journey-make-current {
  margin-bottom: 16px;
}

body.journey-page .journey-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 10px;
}

body.journey-page .journey-steps-count {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

body.journey-page .journey-step-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.journey-page .journey-step-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}

body.journey-page .journey-step-list input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body.journey-page .journey-resource-links {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

body.journey-page .journey-resource-links a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.journey-page .journey-suggested {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

body.journey-page .journey-suggested button {
  padding: 8px 12px;
  border: 1px solid #b7c7cb;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.3;
  text-align: start;
}

body.journey-page .journey-suggested button:hover {
  border-color: var(--green);
}

body.journey-page .journey-suggested button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

body.journey-page .journey-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

body.journey-page .journey-notes-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

body.journey-page .journey-notes-block h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

body.journey-page .journey-notes-block textarea {
  width: 100%;
  min-height: 96px;
  max-height: min(40dvh, 220px);
  padding: 10px 12px;
  border: 1px solid #b7c7cb;
  border-radius: 9px;
  font: inherit;
  font-size: 16px;
  resize: vertical;
  box-sizing: border-box;
}

body.journey-page .journey-notes-privacy {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

body.journey-page .journey-char-count {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

body.journey-page .journey-inquiry-pref {
  margin-top: 12px;
}

body.journey-page .journey-inquiry-pref label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.journey-page .journey-inquiry-pref input {
  margin-top: 3px;
}

@media (max-width: 720px) {
  body.journey-page .journey-layout {
    grid-template-columns: 1fr;
  }

  body.journey-page .journey-stage-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  body.journey-page .journey-stage-nav button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    font-size: 13px;
    padding: 9px 10px;
  }

  body.journey-page .journey-timeline-point__label {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  body.journey-page .journey-timeline-wrap {
    --journey-dot-size: 32px;
  }
}
