/* psyconnect journeys — /journeys/ and /journeys/<date>/ only.
   Built on theme.css's light-dark() tokens, so both schemes come free.
   The path: a time column, a plum line threading round nodes, and a card
   per stop; the legs between are the dashed stretches of the walk. Your
   own stops are drawn in ochre, open-ringed, with a dashed card edge —
   the group's additions, distinct from the listed gatherings. */

.journey-page .static-main {
  max-width: 760px;
}

.jr-head .static-kicker a {
  color: inherit;
  text-decoration: none;
}

.jr-head .static-kicker a:hover {
  color: var(--peach);
}

/* the header's journeys icon, lit while you're here */
.journey-page .journeys-toggle {
  color: var(--peach);
  border-color: var(--peach);
}

/* a named day's date, under its name */
.jr-date {
  margin: 0.3rem 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
}

.jr-note {
  margin: 0.8rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--ink);
}

/* ---------- a plan someone sent you: the plan, not the planning ---------- */

.jr-shared-view .jr-days,
.jr-shared-view .jr-head .static-intro,
.jr-shared-view .jr-how {
  display: none;
}

/* ---------- other weekend days ---------- */

.jr-days {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.9rem;
  margin: 0 0 0.6rem;
  scrollbar-width: none;
}

.jr-day {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 16px;
  border: 1px solid var(--edge-soft);
  background: var(--surface);
  color: var(--ui-soft);
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.25;
}

.jr-day strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.jr-day:hover {
  border-color: var(--peach);
}

.jr-day.here {
  background: var(--sel-wash);
  border-color: var(--sel-line);
  color: var(--sel-ink);
}

/* ---------- the plan's head: name, summary ---------- */

.jr-top {
  display: grid;
  gap: 0.9rem;
  margin: 0.4rem 0 1rem;
}

.jr-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ui-label);
}

.jr-plan-name {
  width: 100%;
  margin: 0;
  padding: 0.35rem 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1.5px dashed var(--edge-soft);
  border-radius: 0;
}

input.jr-plan-name::placeholder {
  color: var(--ink-dim);
  opacity: 0.8;
  font-weight: 500;
}

input.jr-plan-name:focus {
  outline: none;
  border-bottom-color: var(--peach);
}

.jr-x {
  border: 0;
  background: none;
  color: var(--ui-soft);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  cursor: pointer;
  border-radius: 50%;
}

.jr-x:hover {
  color: var(--peach);
}

.jr-hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.jr-dim {
  color: var(--ink-dim);
  font-size: 0.86em;
}

.jr-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--ui-label);
}

.jr-sum span {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.jr-sum span:first-child {
  font-family: var(--display);
  font-weight: 600;
  color: var(--gold);
}

/* ---------- view tabs ---------- */

.jr-tabs {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  margin: 0 0 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--edge-soft);
}

.jr-tabs button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ui-soft);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.jr-tabs button[aria-selected="true"] {
  background: var(--sel-wash);
  color: var(--sel-ink);
  font-weight: 600;
}

/* ---------- the path ---------- */

.jr-path {
  --time-w: 3.6rem;
  --node: 14px;
  --line-x: calc(var(--time-w) + 0.75rem + var(--node) / 2);
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the thread through the day */
.jr-path::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: calc(var(--line-x) - 1px);
  width: 2px;
  background: linear-gradient(var(--peach), var(--gold));
  opacity: 0.35;
  border-radius: 2px;
}

.jr-stop {
  position: relative;
  display: grid;
  grid-template-columns: var(--time-w) var(--node) 1fr;
  column-gap: 0.75rem;
  align-items: start;
}

.jr-time {
  margin: 0.85rem 0 0;
  text-align: right;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.jr-time span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.74rem;
  color: var(--ink-dim);
}

.jr-node {
  position: relative;
  z-index: 1;
  width: var(--node);
  height: var(--node);
  margin-top: 1.05rem;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 4px var(--dusk-0);
}

.jr-own .jr-node {
  background: var(--dusk-0);
  border: 3px solid var(--gold);
}

.jr-gone .jr-node {
  background: var(--ink-dim);
}

.jr-card {
  display: flex;
  gap: 0.8rem;
  padding: 0.7rem;
  margin: 0.25rem 0;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  min-width: 0;
}

.jr-own .jr-card {
  border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
}

.jr-gone .jr-card {
  opacity: 0.75;
}

.jr-thumb {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 12px;
  object-fit: cover;
  background: var(--dusk-2);
}

.jr-thumb-none {
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--peach) 35%, transparent), transparent 60%),
    radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--gold) 35%, transparent), transparent 55%),
    var(--dusk-2);
}

/* your own stop: its icon, in ochre */
.jr-thumb-own {
  display: grid;
  place-items: center;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--dusk-1));
}

.jr-thumb-own svg,
.jr-chip-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jr-thumb-own svg {
  width: 55%;
  height: 55%;
}

.jr-body {
  min-width: 0;
  flex: 1;
}

.jr-kind {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ui-label);
}

.jr-own .jr-kind {
  color: var(--gold);
}

.jr-title {
  margin: 0.15rem 0 0.2rem;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.jr-title a {
  color: inherit;
  text-decoration: none;
}

.jr-title a:hover {
  color: var(--peach);
}

.jr-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-dim);
}

.jr-moved {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--peach);
}

/* a gathering we couldn't pin, or only roughly */
.jr-flag {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink);
  background: color-mix(in srgb, #c4622d 13%, transparent);
  border: 1px solid color-mix(in srgb, #c4622d 35%, transparent);
}

.jr-flag-rough {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}

/* a rough pin on the map: hollow, dashed */
.jr-pin.rough {
  background: var(--dusk-0);
  color: var(--peach);
  border: 2px dashed var(--peach);
}

.jr-rough-note {
  color: var(--gold);
  font-weight: 600;
}

.jr-flag-btn {
  font: inherit;
  font-weight: 600;
  padding: 0;
  border: 0;
  background: none;
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.jr-pin-map {
  height: min(52vh, 420px);
  margin-top: 0.8rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--dusk-1);
}

.jr-pin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.9rem;
}

.jr-sheet .jr-pin-actions .jr-cta {
  margin: 0;
  width: auto;
}

.jr-cta:disabled {
  opacity: 0.45;
  cursor: default;
}

.jr-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.jr-tool {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--edge-soft);
  background: var(--surface);
  color: var(--ui-strong);
  cursor: pointer;
}

.jr-tool:hover {
  border-color: var(--peach);
  color: var(--peach);
}

/* the legs: the dashed stretches between stops */
.jr-leg,
.jr-gap {
  position: relative;
  padding: 0.55rem 0 0.55rem calc(var(--line-x) + 1.1rem);
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.jr-leg::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--line-x) - 1px);
  width: 2px;
  background: repeating-linear-gradient(var(--dusk-0) 0 4px, transparent 4px 9px);
}

.jr-leg-text {
  display: block;
}

.jr-tight .jr-leg-text {
  color: var(--ink);
}

.jr-warn {
  color: #b5452b;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jr-warn {
    color: #f19a7e;
  }
}

:root[data-theme="dark"] .jr-warn {
  color: #f19a7e;
}

.jr-spare {
  color: var(--gold);
}

.jr-leg-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  margin: 0.2rem 0.8rem 0 0;
}

.jr-leg-links a {
  color: var(--peach);
  text-decoration: none;
  font-size: 0.8rem;
}

.jr-leg-links a:hover {
  text-decoration: underline;
}

.jr-add {
  font: inherit;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent);
  background: none;
  color: var(--gold);
  cursor: pointer;
}

.jr-add:hover {
  border-style: solid;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}

.jr-gap-edge {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.jr-empty {
  padding: 2rem 1rem;
  text-align: center;
  border: 1.5px dashed var(--edge-soft);
  border-radius: var(--radius);
  color: var(--ink-dim);
}

/* the build's path, before the script takes over: no add buttons to
   wait for, and the edge gaps don't exist */
.jr:not(.jr-live) .jr-path {
  margin-bottom: 1.5rem;
}

/* ---------- map view ---------- */

.jr-map {
  height: min(62vh, 480px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--dusk-1);
}

.jr-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--cta-ink);
  font: 600 0.85rem/1 var(--display);
  box-shadow: 0 0 0 3px var(--dusk-0), 0 3px 10px rgba(0, 0, 0, 0.25);
}

.jr-pin.own {
  background: var(--gold);
}

.jr-map-key {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--ink);
}

.jr-map-key li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.jr-pin-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--peach);
  color: var(--cta-ink);
  font: 600 0.72rem/1 var(--display);
}

.jr-map-key .own .jr-pin-num {
  background: var(--gold);
}

.jr-map-key .nopin .jr-pin-num {
  background: var(--dusk-2);
  color: var(--ink-dim);
}

/* ---------- actions, booking, suggestions ---------- */

.jr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.6rem 0 0.3rem;
}

.jr-cta {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 0;
  background: var(--peach);
  color: var(--cta-ink);
  cursor: pointer;
}

.jr-cta:hover {
  filter: brightness(1.08);
}

.jr-btn {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--edge-soft);
  background: var(--surface);
  color: var(--ui-strong);
  text-decoration: none;
  cursor: pointer;
}

.jr-btn:hover {
  border-color: var(--peach);
  color: var(--peach);
}

/* the link, once made */
.jr-sharebox {
  margin: 1.6rem 0 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--peach) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--peach) 25%, transparent);
}

.jr-sharebox .jr-actions {
  margin: 0.7rem 0 0;
}

.jr-linkrow {
  display: flex;
  gap: 0.5rem;
}

.jr-link {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--edge-soft);
  background: var(--surface-solid);
  color: var(--peach);
}

/* your journeys, on /journeys/ */
.jr-mine {
  margin: 1rem 0 0;
}

.jr-mine .jr-section-title {
  margin-top: 0.4rem;
}

.jr-mine-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.jr-mine-list li {
  position: relative;
}

.jr-mine-x {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  font-size: 1.2rem;
}

.jr-mine-list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 2.4rem 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--card-edge);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.jr-mine-list a:hover {
  border-color: var(--peach);
}

.jr-mine-list strong {
  font-family: var(--display);
  font-weight: 600;
}

.jr-mine-list span {
  font-size: 0.84rem;
  color: var(--gold);
}

.jr-status {
  min-height: 1.2em;
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--gold);
}

.jr-h2 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.jr-book,
.jr-alts {
  margin: 1.8rem 0 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-edge);
}

.jr-book ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.jr-book li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.jr-book label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--ink);
}

.jr-book input {
  accent-color: var(--peach);
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.jr-book li.done label span {
  text-decoration: line-through;
  color: var(--ink-dim);
}

.jr-book a {
  flex: none;
  color: var(--peach);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
}

.jr-alt-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.jr-alt {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  font: inherit;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--edge-soft);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.jr-alt:hover {
  border-color: var(--peach);
}

.jr-alt strong {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
}

.jr-alt-k {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ui-label);
}

/* ---------- the add / swap sheet ---------- */

.jr-sheet {
  width: min(560px, calc(100vw - 2rem));
  max-height: min(84vh, 760px);
  padding: 0;
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  background: var(--hint-bg);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.jr-sheet::backdrop {
  background: rgba(30, 20, 15, 0.4);
  backdrop-filter: blur(2px);
}

.jr-sheet-in {
  padding: 1rem 1.1rem 1.3rem;
}

.jr-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.jr-sheet-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.jr-close {
  font-size: 1.5rem;
}

.jr-sheet .jr-tabs {
  margin-bottom: 0.6rem;
}

.jr-cands {
  display: grid;
  gap: 0.45rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.jr-cand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem;
  text-align: left;
  font: inherit;
  border-radius: 14px;
  border: 1px solid var(--card-edge);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.jr-cand:hover {
  border-color: var(--peach);
}

.jr-cand img,
.jr-cand .jr-thumb {
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 10px;
  object-fit: cover;
}

.jr-cand-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.jr-cand-body strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.jr-cand-time {
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 600;
}

.jr-near {
  flex: none;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--peach) 12%, transparent);
  color: var(--peach);
}

.jr-more {
  margin-top: 0.9rem;
}

.jr-more summary {
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--ui-label);
}

.jr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0;
}

.jr-chip {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  color: var(--ui-strong);
  cursor: pointer;
}

.jr-chip:hover {
  border-color: var(--gold);
}

.jr-chip-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.jr-chip-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gold);
}

.jr-field {
  display: grid;
  gap: 0.25rem;
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--ui-label);
  flex: 1;
}

.jr-field em {
  font-style: normal;
  opacity: 0.75;
}

.jr-field input,
.jr-field select {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--edge-soft);
  background: var(--surface-solid);
  color: var(--ink);
}

.jr-field input:focus,
.jr-field select:focus {
  outline: 2px solid color-mix(in srgb, var(--peach) 50%, transparent);
  outline-offset: 1px;
}

.jr-row {
  display: flex;
  gap: 0.6rem;
}

/* place suggestions, under the place box */
.jr-suggest {
  margin: 0.3rem 0 0;
  padding: 0.25rem;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--edge-soft);
  background: var(--surface-solid);
}

.jr-suggest button {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  text-align: left;
  font: inherit;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.jr-suggest button:hover,
.jr-suggest button:focus-visible {
  background: color-mix(in srgb, var(--peach) 10%, transparent);
}

.jr-suggest strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.jr-suggest span {
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.jr-field-pc input {
  max-width: 11rem;
  text-transform: uppercase;
}

.jr-field-pc input::placeholder {
  text-transform: none;
}

.jr-pinned {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--peach);
}

.jr-sheet .jr-cta {
  margin-top: 1rem;
  width: 100%;
}

/* ---------- how it works & the index ---------- */

.jr-section-title {
  margin: 2rem 0 0.2rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.jr-start {
  margin: 1.2rem 0 0.4rem;
  padding: 1.2rem 1.3rem 0.6rem;
  border-radius: var(--radius);
  border: 1.5px dashed color-mix(in srgb, var(--gold) 50%, transparent);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
}

.jr-start .jr-section-title {
  margin-top: 0;
}

.jr-start-text p {
  margin: 0.2rem 0 0.9rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.jr-start-cta {
  display: inline-block;
  text-decoration: none;
}

.jr-start-or {
  margin: 1rem 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ui-label);
}

.jr-how {
  margin: 2.2rem 0 0;
  color: var(--ink);
}

.jr-how-title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}

.jr-how ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.jr-how li::marker {
  color: var(--gold);
  font-family: var(--display);
  font-weight: 600;
}

.jr-daycards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 0;
}

.jr-daycard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-edge);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.jr-daycard:hover {
  border-color: var(--peach);
  transform: translateY(-2px);
}

.jr-daycard-day {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}

.jr-daycard-kinds {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

/* a little path of its own */
.jr-mini {
  position: relative;
  margin: 0.4rem 0;
  padding: 0 0 0 1.1rem;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.3;
}

.jr-mini::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.45rem;
  bottom: 0.45rem;
  border-left: 2px dotted color-mix(in srgb, var(--peach) 45%, transparent);
}

.jr-mini li {
  position: relative;
}

.jr-mini li::before {
  content: "";
  position: absolute;
  left: -1.07rem;
  top: 0.38rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 3px var(--card);
}

.jr-mini-time {
  margin-right: 0.45rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.jr-daycard-foot {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  margin: auto 0 0;
  padding-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.jr-daycard-go {
  margin-left: auto;
  white-space: nowrap;
  color: var(--peach);
  font-weight: 600;
}

/* ---------- wide screens: the journey and the map side by side ---------- */

@media (min-width: 1000px) {
  .journey-page:has(#journey) .static-main {
    max-width: var(--page-max);
  }

  .journey-page:has(#journey) .jr-head .static-intro,
  .journey-page:has(#journey) .jr-head .static-title {
    max-width: 760px;
  }
}

.jr-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.jr-col-map {
  position: sticky;
  top: 1rem;
}

.jr-col-map .jr-map {
  height: calc(100vh - 2rem);
  max-height: 760px;
}

/* the nodes carry their map pin's number */
.jr-wide .jr-path {
  --node: 22px;
}

.jr-node {
  display: grid;
  place-items: center;
  font-size: 0;
  color: var(--cta-ink);
}

.jr-wide .jr-node {
  margin-top: 0.85rem;
  font: 600 0.7rem/1 var(--display);
}

.jr-wide .jr-own .jr-node {
  color: var(--gold);
}

.jr-wide .jr-stop[data-pin] {
  cursor: default;
}

/* ---------- phones ---------- */

@media (max-width: 560px) {
  .jr-path {
    --time-w: 2.9rem;
    --node: 12px;
  }

  .jr-stop {
    column-gap: 0.55rem;
  }

  .jr-time {
    font-size: 0.95rem;
  }

  .jr-thumb {
    width: 3.4rem;
    height: 3.4rem;
  }

  .jr-card {
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .jr-sheet {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 88vh;
  }

  .jr-actions .jr-cta {
    width: 100%;
  }
}

.jr-mine .jr-note + .jr-section-title {
  margin-top: 1.4rem;
}
