.my-journey-hero {
  position: relative;
  isolation: isolate;
  color: #fff5e6;
  background: #172a35;
  border-bottom: 2px solid #b58e59;
}
.my-journey-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 43% 0 0;
  content: "";
  background: linear-gradient(to left, #172a35 0%, #172a3540 80%),
    url("assets/journey-map.webp") center 52% / cover;
}
.my-journey-hero-copy { padding-block: clamp(25px, 5vw, 65px); }
.my-journey-hero h1 { font-size: clamp(2.1rem, 5.25vw, 3.9rem); line-height: 1.4; }
.my-journey-hero p { margin-block-start: 8px; color: #f3e8d9; font-size: clamp(1.04rem, 2vw, 1.25rem); }
.my-journey-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 20px; }
.my-journey-actions a {
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  padding: 4px 13px;
  border: 1px solid #dbb37a;
  border-radius: 6px;
  color: #f7d7a5;
  background: #172a35de;
  font-weight: 700;
}
.my-journey-actions a:first-child { background: #edc58b; color: #2a2117; }
.my-journey-actions a:hover { box-shadow: inset 0 0 0 1px #dbb37a; }
.my-journey-actions a:focus-visible { outline-color: #f7d7a5; }

.my-journey-body { padding-block: clamp(16px, 3vw, 32px) clamp(35px, 6vw, 65px); }
.my-journey-note {
  border: 1px solid #e0d2bd;
  border-inline-start: 3px solid #a77944;
  border-radius: 6px;
  padding: 9px 13px;
  background: #f5eee0;
  color: #554838;
}
.my-journey-section { margin-block-start: clamp(24px, 4vw, 46px); scroll-margin-top: 16px; }
.my-journey-section > p { margin-block-start: 4px; color: var(--muted); }
.my-journey-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.my-journey-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.my-journey-filter select {
  min-height: 44px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid #bbab91;
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
}
.my-journey-empty {
  margin-block-start: 11px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}
.my-journey-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #754822;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.my-journey-filter[hidden], .my-journey-link[hidden] { display: none; }
.my-journey-saved {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.my-journey-saved:not(:empty) { margin-block-start: 11px; }
.my-journey-saved li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px 18px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}
.my-journey-saved-copy { min-width: 0; overflow-wrap: anywhere; }
.my-journey-saved h3 { font-size: clamp(.95rem, 1.6vw, 1.12rem); line-height: 1.6; }
.my-journey-saved h3 a { text-decoration: underline; text-decoration-color: #c6a178; text-underline-offset: 4px; }
.my-journey-saved h3 a:hover { color: var(--bronze); }
.my-journey-saved p { color: var(--muted); }
.my-journey-saved p:first-child { color: #754822; font-size: .92rem; font-weight: 600; }
.my-journey-remove {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  border: 1px solid #d7c6ad;
  border-radius: 5px;
  color: #694329;
  background: #fffdf8;
}
.my-journey-remove:hover { background: #f2e7d4; }

.my-journey-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 17px);
  margin-block-start: 12px;
}
.my-journey-trail {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 6px;
  padding: 13px 16px 16px;
  border: 1px solid var(--line);
  border-block-start: 3px solid var(--my-journey-tone);
  border-radius: 8px;
  background: #fffdf8;
}
.my-journey-trail h3 { font-size: 1.08rem; color: var(--my-journey-tone); }
.my-journey-trail p { color: var(--muted); }
.my-journey-progress-meter { margin-block: 5px; }
.my-journey-progress-meter progress {
  display: block;
  width: 100%;
  height: 12px;
  accent-color: var(--my-journey-tone);
}
.my-journey-progress-meter p { margin-block-start: 5px; font-weight: 700; }
.my-journey-trail a {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--my-journey-tone);
  border-radius: 6px;
  color: var(--my-journey-tone);
  font-weight: 700;
}
.my-journey-trail a:hover { background: #f5eee0; }

@media (max-width: 720px) {
  .my-journey-hero::before { inset-inline: 0; opacity: .27; }
  .my-journey-saved, .my-journey-progress { grid-template-columns: minmax(0, 1fr); }
}
