.journey {
  --journey-nite-1: #14201e;
  --journey-nite-2: #14282b;
  --journey-nite-3: #123437;
  --journey-nite-text: rgba(255, 255, 255, 0.93);
  --journey-nite-text-2: rgba(255, 255, 255, 0.66);
  --journey-nite-text-3: rgba(255, 255, 255, 0.44);
  --journey-nite-border: rgba(255, 255, 255, 0.13);
  --journey-glass-light: rgba(255, 255, 255, 0.66);
  --journey-glass-light-border: #dbe7e4;
  --journey-glass-dark: rgba(255, 255, 255, 0.07);
  --journey-glass-dark-border: rgba(255, 255, 255, 0.16);
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
}

.journey .detail-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  background:
    radial-gradient(120% 170% at 86% -18%, rgba(23, 106, 115, 0.55), transparent 56%),
    radial-gradient(90% 150% at 10% 120%, rgba(180, 83, 9, 0.26), transparent 58%),
    linear-gradient(120deg, #14201e, #123437 62%, #176a73);
}

.journey .detail-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 26, 25, 0.04), rgba(10, 26, 25, 0.22));
}

.journey .detail-cover-star {
  position: absolute;
  z-index: 2;
  top: 34px;
  right: 8%;
  color: rgba(255, 255, 255, 0.34);
}

.journey .cover-back {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--glass-chip);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.journey .orbit-detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.journey .orbit-detail-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: -64px;
}

.journey .orbit-detail-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 28px;
  margin-top: 30px;
}

.journey .rail-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--bg);
  border-radius: var(--r-lg);
  background:
    radial-gradient(100% 120% at 20% 0%, rgba(23, 106, 115, 0.6), transparent 60%),
    linear-gradient(150deg, #14201e, #123437 60%, #176a73);
}

.journey .rail-cover-code {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.journey .rail-cover-status {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 14px;
}

.journey .rail-card { padding: 16px 18px; }
.journey .rail-card .eyebrow { margin-bottom: 8px; }
.journey .rail-org { display: flex; align-items: center; gap: 11px; }
.journey .rail-org-copy { min-width: 0; flex: 1; }
.journey .rail-org-name { display: block; overflow: hidden; color: var(--ink); font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.journey .rail-org-meta { display: block; color: var(--text-2); font-size: 12.5px; }

.journey .rail-stage { display: flex; flex-direction: column; gap: 9px; }
.journey .rail-stage-row { display: flex; align-items: center; gap: 9px; color: var(--text-3); font-size: 13px; }
.journey .rail-stage-row .n { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border: 1.5px solid var(--border-2); border-radius: 999px; color: var(--text-4); font-size: 11px; font-weight: 700; }
.journey .rail-stage-row.done { color: var(--text-2); }
.journey .rail-stage-row.done .n { border-color: transparent; background: var(--live-soft); color: var(--live-text); }
.journey .rail-stage-row.now { color: var(--ink); font-weight: 600; }
.journey .rail-stage-row.now .n { border-color: transparent; background: var(--accent); color: #fff; }

.journey .journey-collapse[hidden] { display: none; }
.journey .fold-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: var(--r-xs); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.journey .fold-btn:hover { border-color: var(--accent); color: var(--accent); }
.journey .fold-btn .chev { transition: transform 0.22s ease; }
.journey .fold-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.journey .ai-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.journey .ai-chip.on-light { background: var(--accent-soft); color: var(--accent-press); }
.journey .ai-chip.on-dark { border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.1); color: #9bd8ce; }

.journey .cardA,
.journey .cardC { overflow: hidden; }
.journey .a-head { padding: 20px 22px 4px; }
/* Permanent header: title + status + the fold control on one baseline. The
   fold button is pushed to the far right and never wraps under the title. */
.journey .a-headline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.journey .a-headline .a-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.journey .a-headline .badge { flex: 0 0 auto; }
.journey .a-headline-fold { flex: 0 0 auto; margin-left: auto; }
/* Collapsed, the header is the whole card, so it closes its own bottom and the
   time/venue line gets room to sit under a 26px title rather than a 15.5px one. */
.journey .a-headline-block.is-collapsed { padding-bottom: 18px; }
.journey .a-headline-block.is-collapsed .a-mini-meta { margin-top: 8px; }
.journey .a-head-rest { padding-top: 14px; }
.journey .a-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.journey .a-title { margin: 0; font-size: 26px; }
.journey .a-sub { margin-top: 7px; color: var(--text-2); font-size: 13.5px; }
.journey .a-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.journey .a-tag { padding: 3px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 500; }
.journey .orbit-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px 22px 4px; }
.journey .a-info { display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.journey .a-info .ic { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.journey .a-info-copy { min-width: 0; }
.journey .a-info b { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.journey .a-info span:not(.ic) { display: block; overflow: hidden; color: var(--text-2); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.journey .a-desc { padding: 14px 22px 4px; color: var(--text-2); font-size: 14.5px; line-height: 1.72; }
.journey .a-desc p { margin: 0; white-space: pre-line; }
.journey .a-desc p + p { margin-top: 9px; }
.journey .a-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 22px 22px; }
.journey .a-cta-note { color: var(--text-3); font-size: 12.5px; }
.journey .a-mini-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 3px; color: var(--text-2); font-size: 13px; }
.journey .a-details-extra { display: grid; gap: 22px; padding: 4px 22px 22px; }
.journey .a-details-extra h3 { margin: 0 0 10px; color: var(--ink); font-size: 15px; }
.journey .a-about-list { display: grid; gap: 12px; }
.journey .a-about-item { padding-top: 12px; border-top: 1px solid var(--border); }
.journey .a-about-item:first-child { padding-top: 0; border-top: 0; }
.journey .a-about-label { color: var(--ink); font-size: 13px; font-weight: 600; }
.journey .a-about-body { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.7; white-space: pre-line; }
.journey .a-agenda { display: grid; gap: 12px; }
.journey .a-agenda-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
.journey .a-agenda-time { color: var(--accent); font-family: var(--ff-mono); font-size: 12px; font-weight: 600; }
.journey .a-agenda-copy b { display: block; color: var(--ink); font-size: 13.5px; }
.journey .a-agenda-copy span { color: var(--text-3); font-size: 12.5px; }

.journey .cardB {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, 0.5);
  border-radius: var(--r-lg);
  background:
    radial-gradient(56% 44% at 84% 2%, rgba(23, 106, 115, 0.55), transparent 62%),
    radial-gradient(42% 40% at 6% 98%, rgba(180, 83, 9, 0.16), transparent 64%),
    linear-gradient(164deg, var(--journey-nite-1), var(--journey-nite-2) 52%, var(--journey-nite-3));
  color: var(--journey-nite-text);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --ink: #fff;
  --text: rgba(255, 255, 255, 0.93);
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.48);
  --text-4: rgba(255, 255, 255, 0.38);
  --border: rgba(255, 255, 255, 0.13);
  --border-2: rgba(255, 255, 255, 0.2);
  --border-strong: rgba(255, 255, 255, 0.3);
  --accent: #9bd8ce;
  --accent-soft: rgba(255, 255, 255, 0.1);
  --on-accent: #14201e;
}
.journey .cardB::before { position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none; opacity: 0.45; background-image: radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.7), transparent 100%), radial-gradient(1px 1px at 34% 68%, rgba(255,255,255,.5), transparent 100%), radial-gradient(1.5px 1.5px at 58% 14%, rgba(255,255,255,.6), transparent 100%), radial-gradient(1px 1px at 76% 44%, rgba(255,255,255,.45), transparent 100%), radial-gradient(1.5px 1.5px at 90% 78%, rgba(255,255,255,.55), transparent 100%); }
.journey .b-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 22px 4px; }
.journey .b-titlewrap { display: flex; flex-direction: column; gap: 2px; }
.journey .b-eyebrow { color: var(--journey-nite-text-3); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.journey .b-title { color: #fff; font-family: var(--ff-tight); font-size: 18px; font-weight: 600; line-height: 1.02; }
.journey .badge-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 1px solid rgba(125, 235, 184, 0.26); border-radius: var(--r-pill); background: rgba(22, 163, 74, 0.2); color: #7debb8; font-size: 12px; font-weight: 600; }
.journey .badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade97; animation: journeyPulse 1.6s infinite; }
.journey .b-head .fold-btn { margin-left: auto; border-color: var(--journey-nite-border); background: rgba(255,255,255,.07); color: var(--journey-nite-text-2); }
.journey .b-hook { padding: 12px 22px 22px; }
.journey .hook-lede { max-width: 48ch; margin: 0 0 14px; color: var(--journey-nite-text-2); font-size: 14px; }
.journey .hook-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.journey .glass-dark { border: 1px solid var(--journey-glass-dark-border); border-radius: var(--r-md); background: var(--journey-glass-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(16px) saturate(150%); }
.journey .hook-card { padding: 15px 16px; }
.journey .hook-card h4 { margin: 0 0 10px; color: var(--journey-nite-text-3); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.journey .mock-person { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; }
.journey .mock-person + .mock-person { border-top: 1px dashed rgba(255,255,255,.1); }
.journey .mock-person-copy { min-width: 0; }
.journey .mock-person b { display: block; color: var(--journey-nite-text); font-size: 14px; font-weight: 600; }
.journey .mock-person .role { display: block; color: var(--journey-nite-text-3); font-size: 12px; }
.journey .mock-person .why { margin: 3px 0 0; color: var(--journey-nite-text-2); font-size: 12.5px; }
.journey .hook-side { display: flex; flex-direction: column; gap: 12px; }
.journey .hook-seat { display: flex; align-items: center; gap: 14px; padding: 4px 0 2px; }
.journey .seat-num { color: #9bd8ce; font-family: var(--ff-tight); font-size: 28px; font-weight: 600; line-height: 1; }
.journey .seat-desc { color: var(--journey-nite-text-2); font-size: 12.5px; }
.journey .hook-open { margin: 0; padding: 10px 13px; border-left: 2px solid #9bd8ce; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(255,255,255,.05); color: var(--journey-nite-text); font-size: 13px; }
.journey .hook-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.journey .hook-foot .note { color: var(--journey-nite-text-3); font-size: 12.5px; }
.journey .btn-unlock { background: #fff; color: #171a1c; }
.journey .b-live { padding: 6px 0 20px; }
.journey .progress-wrap { padding: 10px 22px 14px; }
.journey .progress-scroll { display: flex; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.journey .p-step { display: flex; flex: 0 0 auto; align-items: center; scroll-snap-align: center; }
.journey .p-node { display: flex; min-width: 74px; flex-direction: column; align-items: center; gap: 6px; }
.journey .p-dot { display: grid; width: 28px; height: 28px; place-items: center; border: 1.5px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(255,255,255,.04); color: var(--journey-nite-text-3); font-size: 12px; font-weight: 700; }
.journey .p-step.done .p-dot { border-color: rgba(125,235,184,.46); background: rgba(22,163,74,.16); color: #7debb8; }
.journey .p-step.now .p-dot { border-color: #fff; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.14); color: #0e4b52; }
.journey .p-label { color: var(--journey-nite-text-3); font-size: 12px; white-space: nowrap; }
.journey .p-step.done .p-label { color: var(--journey-nite-text-2); }
.journey .p-step.now .p-label { color: #fff; font-weight: 600; }
.journey .p-time { color: var(--journey-nite-text-3); font-family: var(--ff-mono); font-size: 10.5px; }
.journey .p-link { width: 32px; height: 1.5px; margin: 0 2px 22px; background: rgba(255,255,255,.14); }
.journey .p-link.done { background: rgba(125,235,184,.4); }
.journey .journey-matchmaking { padding: 0 22px; }
.journey .journey-matchmaking [data-event-matchmaking] { gap: 12px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.journey .journey-matchmaking [data-event-matchmaking] > div:first-child { display: none; }
.journey .journey-matchmaking [data-event-matchmaking] .card-flat { border-color: var(--journey-nite-border); background: rgba(255,255,255,.045); box-shadow: none; }
.journey .journey-matchmaking [data-matchmaking-candidate] { border-radius: var(--r-md); padding: 14px 15px !important; }
/* The light theme layer sets `.btn-primary { color: #fff }` at a specificity
   (html + 2 attributes + class) this rule could not reach on its own, so the
   panel's white-on-dark CTA was rendering white text on its own white fill.
   Matching that layer's shape puts the dark ink back on the button. */
html[data-theme="light"] .journey .journey-matchmaking .btn-primary,
.journey .journey-matchmaking .btn-primary { border-color: #fff; background: #fff; color: #171a1c; }
.journey .journey-matchmaking .btn-primary:hover { background: rgba(255,255,255,.87); }
.journey .journey-matchmaking .btn-ghost { border-color: var(--journey-nite-border); background: transparent; color: var(--journey-nite-text-2); }
.journey .journey-matchmaking [data-event-participant-directory] { margin-top: 2px; }
.journey .b-ended-bar { display: flex; align-items: center; gap: 12px; padding: 16px 22px; color: var(--journey-nite-text-2); font-size: 14px; }
.journey .b-ended-bar b { color: var(--journey-nite-text); }

.journey .c-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 20px 22px 0; }
.journey .c-titlewrap { display: flex; flex-direction: column; gap: 2px; }
.journey .c-title { margin: 0; font-size: 19px; }
.journey .c-head .right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.journey .c-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 22px 22px; }
.journey .c-tint { padding: 4px; border: 1px solid var(--border); border-radius: var(--r-md); background: radial-gradient(80% 100% at 92% 0%, rgba(23,106,115,.13), transparent 58%), radial-gradient(60% 90% at 4% 100%, rgba(180,83,9,.09), transparent 58%), var(--accent-softer); }
.journey .glass-light { border: 1px solid var(--journey-glass-light-border); border-radius: var(--r-md); background: var(--journey-glass-light); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(18px) saturate(150%); }
.journey .c-mock { padding: 16px 18px; }
.journey .c-mock > b { color: var(--ink); font-size: 14.5px; }
.journey .c-mock > p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.journey .c-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 13px 0 2px; }
.journey .stat-pill { min-width: 96px; padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; }
.journey .stat-pill b { display: block; color: var(--ink); font-family: var(--ff-tight); font-size: 20px; font-weight: 600; line-height: 1.2; }
.journey .stat-pill span { color: var(--text-3); font-size: 11.5px; }
.journey .c-note { margin-top: 10px !important; color: var(--text-4) !important; font-size: 12px !important; }
.journey .c-real [data-post-event-center] { gap: 12px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.journey .c-real [data-post-event-center] > div:first-child > div:first-child { display: none; }
.journey .c-real [data-post-event-center] .card-flat { box-shadow: none; }
.journey .c-empty { padding: 16px 18px; color: var(--text-2); font-size: 13.5px; }

.journey .orb-dock { position: fixed; z-index: 80; right: 24px; bottom: 24px; }
.journey .orb-ball { position: relative; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 26px rgba(23,33,31,.22), 0 2px 6px rgba(23,33,31,.12); color: #fff; transition: transform .16s ease, background .15s; }
.journey .orb-ball:hover { background: var(--accent-hover); transform: translateY(-2px); }
.journey .orb-ball .pip { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border: 2px solid var(--bg); border-radius: 999px; background: var(--amber); }

@keyframes journeyPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 900px) {
  .journey .orbit-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 18px 80px; }
  .journey .orbit-detail-rail { display: none; }
  .journey .orbit-detail-main { gap: 20px; margin-top: 18px; }
  .journey .detail-cover { height: 168px; }
  .journey .cover-back { left: 18px; }
}

@media (max-width: 720px) {
  .journey .hook-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .journey .orbit-info-grid { grid-template-columns: minmax(0, 1fr); }
  .journey .a-head, .journey .b-head, .journey .c-head { padding-right: 18px; padding-left: 18px; }
  .journey .orbit-info-grid, .journey .a-desc, .journey .a-cta-row, .journey .a-details-extra, .journey .b-hook, .journey .c-body { padding-right: 18px; padding-left: 18px; }
  .journey .journey-matchmaking { padding-right: 18px; padding-left: 18px; }
  .journey .progress-wrap { padding-right: 14px; padding-left: 14px; }
  .journey .a-title { font-size: clamp(22px, 7vw, 26px); }
  /* Narrow: the title takes a row of its own, then status and the fold control
     share the next one — otherwise a wrapped title strands the badge on an
     empty line of its own. */
  .journey .a-headline .a-title { flex-basis: 100%; }
  .journey .a-cta-row .btn { width: 100%; }
  .journey .orb-dock { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .journey *, .journey *::before, .journey *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
