@import url('./journey/start-step.css');

:root {
  --journey-footer-height: 88px;
  --journey-shell-max-width: 74rem;
}

.page-shell.journey-page {
  max-width: var(--journey-shell-max-width);
  padding-bottom: calc(var(--journey-footer-height) + env(safe-area-inset-bottom) + 1.25rem);
}

.journey-content-grid {
  padding-top: clamp(1.25rem, 3vh, 2.25rem);
}

.journey-sticky-footer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.65rem 0.9rem calc(env(safe-area-inset-bottom) + 0.72rem);
}

.journey-sticky-footer-inner {
  max-width: var(--journey-shell-max-width);
  margin-inline: auto;
  padding: 0.68rem 0.8rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
}

.journey-nav-btn {
  min-width: clamp(7.5rem, 14vw, 10rem);
  border-radius: 0.6rem;
  padding: 0.58rem 0.95rem;
  font-size: 0.92rem;
  border: 1px solid rgba(158, 178, 191, 0.35);
}

.journey-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.journey-nav-btn.primary {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.8);
  color: #fff;
  margin-inline-start: auto;
}

.journey-nav-btn.primary:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.95);
}

.journey-nav-btn.secondary {
  color: #d6e2e9;
  background: rgba(22, 41, 53, 0.58);
}

.journey-nav-btn.secondary:hover:not(:disabled) {
  background: rgba(42, 79, 100, 0.4);
}

.journey-nav-hint {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: #9eb2bf;
}

.journey-nav-btn-spacer {
  display: inline-block;
  min-height: 2.2rem;
}

.required-marker {
  color: #f87171;
}

@media (max-width: 1023px) {
  .journey-sticky-footer-inner {
    padding: 0.58rem 0.64rem;
  }
}

@media (min-width: 1024px) {
  .journey-sticky-footer-inner {
    padding: 0.76rem 0.92rem;
    border-radius: 0.95rem;
  }

  .journey-nav-btn {
    min-width: clamp(8rem, 13vw, 10rem);
    min-height: 2.95rem;
    padding: 0.68rem 1rem;
    font-size: 0.98rem;
  }

  .journey-nav-hint {
    font-size: 0.84rem;
  }

}

@media (max-width: 767px) {
  .journey-sticky-footer-inner {
    flex-wrap: wrap;
    border-radius: 1rem;
  }

  .journey-nav-btn {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  .journey-nav-btn.primary {
    margin-inline-start: 0;
  }

}

.journey-report-preview {
  line-height: 1.8;
  color: #f3f4f6;
  text-align: start;
  overflow-wrap: anywhere;
}

.journey-report-preview :where(h1, h2, h3, h4) {
  margin: 1.35rem 0 0.7rem;
  color: #f8fbfd;
  font-weight: 700;
  line-height: 1.35;
}

.journey-report-preview :where(h1) {
  margin-top: 0;
  font-size: 1.3rem;
}

.journey-report-preview :where(h2) {
  font-size: 1.08rem;
}

.journey-report-preview :where(h3, h4) {
  font-size: 1rem;
}

.journey-report-preview :where(p, ul, ol, blockquote, table, pre) {
  margin: 0 0 0.9rem;
}

.journey-report-preview :where(ul, ol) {
  padding-inline-start: 1.4rem;
}

.journey-report-preview :where(ul) {
  list-style: disc;
}

.journey-report-preview :where(ol) {
  list-style: decimal;
}

.journey-report-preview :where(li + li) {
  margin-top: 0.35rem;
}

.journey-report-preview :where(blockquote) {
  padding: 0.8rem 1rem;
  border-inline-start: 3px solid rgba(34, 193, 145, 0.45);
  background: rgba(18, 34, 46, 0.72);
  color: #d6e2e9;
}

.journey-report-preview :where(code, pre) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.journey-report-preview :where(code) {
  border-radius: 0.35rem;
  background: rgba(15, 26, 34, 0.92);
  padding: 0.12rem 0.32rem;
  font-size: 0.92em;
}

.journey-report-preview :where(pre) {
  overflow-x: auto;
  border: 1px solid rgba(53, 95, 117, 0.8);
  border-radius: 0.75rem;
  background: rgba(8, 17, 23, 0.94);
  padding: 0.95rem 1rem;
  white-space: pre-wrap;
}

.journey-report-preview :where(pre code) {
  background: transparent;
  padding: 0;
}

.journey-report-preview :where(table) {
  width: 100%;
  border-collapse: collapse;
}

.journey-report-preview :where(th, td) {
  border: 1px solid rgba(53, 95, 117, 0.72);
  padding: 0.55rem 0.7rem;
  vertical-align: top;
}

.journey-report-preview :where(th) {
  background: rgba(18, 34, 46, 0.88);
  color: #f8fbfd;
  font-weight: 700;
}

.journey-report-preview :where(a) {
  color: #7ae0be;
  text-decoration: underline;
}
