.journey-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.journey-header .page-intro { flex: 1 1 300px; }
.journey-header .outline-button { min-height: 44px; }
.journey-status { margin: 0 0 24px; padding: 16px 18px; border-radius: 16px; color: var(--portal-dark, #003e30); background: var(--mint-soft, #e9f8f5); font-size: .85rem; line-height: 1.6; }
.journey-content { display: grid; gap: 32px; }
.journey-content h3 { margin: 0 0 12px; font-size: 1.2rem; }
.journey-starts { display: grid; gap: 16px; }
.journey-start-card { min-width: 0; padding: 24px; border: 1px solid var(--portal-border, #dde6e2); border-radius: 20px; background: #fff; }
.journey-start-card .kicker { margin: 0 0 18px; }
.journey-start-card h3 { margin: 0 0 8px; font-size: .95rem; }
.journey-start-personal { background: #93dcce; border-color: #93dcce; color: #003e30; }
.journey-start-date { margin: 0 0 18px; font-family: "Preon Loopless", sans-serif; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; }
.journey-note { margin: 0 0 18px; color: var(--muted, #646d68); font-size: .85rem; line-height: 1.65; }
.journey-start-card .journey-note { margin-bottom: 0; }
.journey-start-personal .journey-note { color: #003e30; }
.journey-year { margin-top: 14px; overflow: clip; border: 1px solid var(--portal-border, #dde6e2); border-radius: 20px; background: #fff; }
.journey-year-heading { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 20px; list-style: none; cursor: pointer; }
.journey-year-heading::-webkit-details-marker { display: none; }
.journey-year-heading:focus-visible { outline: 3px solid #008067; outline-offset: -4px; }
.journey-year-number { color: #003e30; font-family: "Preon Loopless", sans-serif; font-size: 1.6rem; }
.journey-year-state { color: var(--muted, #646d68); font-size: .75rem; }
.journey-year-action { margin-left: auto; color: #003e30; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; }
.journey-year[open] > summary { background: #eff9f5; }
.journey-year-body { padding: 22px 20px 8px; }
.journey-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.journey-metric { min-width: 0; display: flex; flex-direction: column; padding: 14px; border-radius: 12px; background: #f6f8f5; }
.journey-metric dt { margin-top: 8px; font-size: .75rem; line-height: 1.4; color: var(--muted, #646d68); }
.journey-metric dd { order: -1; margin: 0; color: #003e30; font-family: "Preon Loopless", sans-serif; font-size: 1.75rem; overflow-wrap: anywhere; }
.journey-metric .journey-unknown { font-size: 1rem; line-height: 2.1875; }
.journey-event-list, .journey-milestone-list { padding: 0; margin: 0; list-style: none; }
.journey-event { position: relative; padding: 0 0 24px 23px; margin-left: 5px; border-left: 1px solid #b8d8ca; overflow-wrap: anywhere; }
.journey-event::before { position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #008067; content: ""; }
.journey-event:last-child { border-left-color: transparent; }
.journey-event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin-bottom: 9px; color: var(--muted, #646d68); font-size: .72rem; line-height: 1.5; }
.journey-scope { padding: 3px 7px; border-radius: 5px; color: #003e30; background: #e9f8f5; }
.journey-event h4 { margin: 0; color: #003e30; font-family: "Preon Loopless", sans-serif; font-size: 1rem; line-height: 1.5; }
.journey-event p { margin: 8px 0 0; font-size: .82rem; color: var(--muted, #646d68); line-height: 1.6; }
.journey-event-link { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.journey-milestone-list { display: grid; gap: 12px; }
.journey-milestone-list .journey-event { margin: 0; padding: 20px; border: 1px solid #dde6e2; border-radius: 16px; background: #fff; }
.journey-milestone-list .journey-event::before { display: none; }
.journey-upcoming { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid #dde6e2; }
.journey-upcoming .journey-event:last-child { padding-bottom: 0; }
@media (max-width: 899px) {
  .portal-authenticated .section-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .portal-authenticated .section-tabs:has(#invoices-tab[hidden]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portal-authenticated .section-tabs button { white-space: normal; line-height: 1.2; }
}
@media (min-width: 600px) {
  .journey-starts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journey-milestone-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-year-heading { padding: 22px 26px; }
  .journey-year-body { padding: 26px 26px 10px; }
}
@media (prefers-contrast: more) {
  .journey-start-card, .journey-year, .journey-upcoming, .journey-milestone-list .journey-event { border: 2px solid #003e30; }
  .journey-note, .journey-event-meta, .journey-metric dt, .journey-year-state, .journey-event p { color: #003e30; }
}

/* Membership renewals remain recognizable even among many meetup entries. */
.journey-year-heading { flex-wrap: wrap; }
.journey-renewal-badge { padding: 5px 9px; border-radius: 6px; border: 1px solid #003e30; background: #003e30; color: #fff; font-size: .7rem; line-height: 1.4; }
.journey-renewal-badge-upcoming { border-style: dashed; background: #e9f8f5; color: #003e30; }
.journey-event-list .journey-renewal,
.journey-milestone-list .journey-renewal { margin: 0 0 24px; padding: 20px; border: 2px solid #003e30; border-left-width: 6px; border-radius: 16px; background: #003e30; color: #fff; }
.journey-milestone-list .journey-renewal { margin: 0; }
.journey-event-list .journey-renewal::before { display: none; }
.journey-renewal h4 { color: inherit; font-size: 1.2rem; line-height: 1.4; }
.journey-renewal .journey-event-meta,
.journey-renewal p { color: inherit; }
.journey-renewal .journey-renewal-label { margin: 0 0 14px; color: #93dcce; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.journey-renewal .journey-scope { background: #93dcce; color: #003e30; }
.journey-event-list .journey-renewal-upcoming,
.journey-milestone-list .journey-renewal-upcoming { background: #e9f8f5; color: #003e30; border-style: dashed; }
.journey-renewal-upcoming .journey-renewal-label { color: #003e30; }
@media (forced-colors: active) {
  .journey-event-list .journey-renewal,
  .journey-milestone-list .journey-renewal { border-color: CanvasText; }
  .journey-renewal h4, .journey-renewal p, .journey-renewal .journey-event-meta { color: CanvasText; }
}

/* Filtering and disclosure shorten dense histories without hiding membership milestones. */
.journey-content [hidden] { display: none !important; }
.journey-filter-bar { display: grid; gap: 10px; }
.journey-filter-bar .journey-note { margin: 0; }
.journey-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.journey-action-button { min-height: 44px; max-width: 100%; padding: 11px 16px; border: 1px solid #b8d8ca; border-radius: 24px 0 0 24px; background: #fff; color: #003e30; font: inherit; font-size: .875rem; line-height: 1.5; white-space: normal; text-align: center; cursor: pointer; }
.journey-action-button:hover { background: #e9f8f5; }
.journey-action-button:focus-visible { outline: 3px solid #008067; outline-offset: 3px; }
.journey-action-button[aria-pressed="true"] { border-color: #003e30; background: #003e30; color: #fff; }
.journey-milestones-more { margin-top: 16px; }
.journey-disclosure-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 20px; }
.journey-events-count { flex-basis: 100%; margin: 0; }
@media (forced-colors: active) {
  .journey-action-button { border-color: ButtonText; }
  .journey-action-button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
}
