.journey {
  margin-block: clamp(28px, 5vw, 68px);
}
.journey-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.journey h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}
.journey-intro {
  margin: 10px 0 0;
  color: var(--muted);
}
.journey-search {
  flex: 0 1 20rem;
}
.journey-search label {
  display: block;
  margin-bottom: 4px;
  font-weight: 650;
}
.journey-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #88aca0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.journey-search-status {
  color: var(--muted);
}
.journey-track {
  display: grid;
  gap: 10px;
}
.journey-year {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f9f7;
  scroll-margin-top: 24px;
}
.journey-year > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  min-height: 56px;
  padding: 10px 18px;
  cursor: pointer;
  list-style: none;
}
.journey-year > summary::-webkit-details-marker { display: none; }
.journey-year > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
}
.journey-year[open] > summary::after { transform: rotate(225deg); }
.journey-year > summary:focus-visible { outline-offset: -4px; border-radius: 12px; }
.journey-year-label {
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 750;
}
.journey-count {
  color: var(--muted);
  font-size: .875rem;
}
.journey-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 0 14px 14px;
  list-style: none;
}
.journey-entries li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow-wrap: anywhere;
}
.journey [hidden] { display: none; }
.journey-date {
  color: var(--green);
  font-size: .8125rem;
  font-weight: 650;
}
.journey-entries h3 { margin: 4px 0 0; font-size: 1rem; line-height: 1.35; }
.journey-entries p { margin: 5px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.journey-details { margin-top: 9px; font-size: .875rem; }
.journey-details summary {
  width: fit-content;
  padding-block: 4px;
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
}
.journey-details summary:hover { text-decoration: underline; }
.journey-details dl {
  margin: 5px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #aacfc2;
  background: #eff5f1;
}
.journey-details dt { font-weight: 700; }
.journey-details dt:not(:first-child) { margin-top: 8px; }
.journey-details dd { margin: 3px 0 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 850px) {
  .journey-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .journey-entries { grid-template-columns: minmax(0, 1fr); }
}
