/*
 * Auspicious Journeys website: the journal, hub and articles (P8, SPEC 5 "Journal"). Tokens only, no hex values.
 * Loaded after base.css, frame.css, motion.css and booking.css on /journal/ and the three guides.
 *
 *  1 shared: the 12-column reading grid, masked title words, links, night route maps
 *  2 hub: head, the featured guide on night, more guides as hairline rows
 *  3 article head and the drawn cover band
 *  4 article body: contents rail, short answer, sections, tables, lists, the gate-to-car timeline
 *  5 tools as paper panels (ride picker, fare estimator, terminal picker)
 *  6 from our own trips (night band, aligned to the reading column, D5)
 *  7 questions, numbered sources, keep reading
 *  8 reduced motion and print
 */

/* ============================== 1. Shared ============================== */
/* the reading grid: from 1280 a contents rail (cols 1-3) and the column (cols 4-12); one grid for every band */
@media (min-width: 1280px) {
  .jn-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .jn-grid > * { grid-column: 1 / -1; min-width: 0; }
}

/* page titles: each word rises from its mask once on load (CSS only, the same move as the stage titles) */
:is(.jn-title, .jh-title) .w { display: inline-block; overflow: clip; vertical-align: top; padding: 0.06em 0.02em 0.14em; margin: -0.06em -0.02em -0.14em; }
:is(.jn-title, .jh-title) .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  :is(.jn-title, .jh-title) .w > span { animation: jn-word var(--dur-reveal) var(--ease-out) both; animation-delay: calc(160ms + var(--i, 0) * 60ms); }
  :is(.jn-crumbs, .jn-head-foot, .jh-lede) { animation: jn-rise 900ms var(--ease-out) both; animation-delay: 520ms; }
  .jn-crumbs { animation-delay: 60ms; }
}
@keyframes jn-word { from { translate: 0 105%; } to { translate: 0 0; } }
@keyframes jn-rise { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }

/* links inside the guides: the house underline (a quiet line, a full one wipes in on hover) */
.aj-site :is(.jn-cite, .jn-body li a:not([class]), .jn-sources a, .jn-tool-note a, .jn-trips-text a, .jn-faq details a) {
  color: var(--link, var(--text)); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, currentColor 32%, transparent), color-mix(in srgb, currentColor 32%, transparent));
  background-size: 0% 1px, 100% 1px; background-position: 0 calc(100% - 0.02em), 0 calc(100% - 0.02em); background-repeat: no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size var(--dur-hover) var(--ease-out);
}
.aj-site :is(.jn-cite, .jn-body li a:not([class]), .jn-sources a, .jn-tool-note a, .jn-trips-text a, .jn-faq details a):hover { background-size: 100% 1px, 100% 1px; }

/* route maps on night: the island in graphite, the sea in pine, the route drawn in mist */
.on-green .routemap { --map-sea: var(--map-sea-d); --map-land: var(--map-land-d); --map-coast: var(--map-coast-d); --map-xway: var(--map-xway-d); }
.on-green .routemap .rm-route { stroke: var(--mist); }
.on-green .routemap .rm-pin { background: var(--green); color: var(--mist); border-color: var(--mist); box-shadow: none; }
.on-green .routemap .rm-pin.is-start { background: var(--mist); color: var(--ink); }
/* a drawn cover opens like a photograph: the frame wipes up, the drawing settles from a larger scale */
html.mo [data-reveal="image"]:not(.is-in) .routemap svg { scale: 1.12; }
html.mo [data-reveal="image"].is-in:not(.no-anim):not(.is-done) .routemap svg { transition: scale var(--dur-image) var(--ease-out) var(--rd, 0ms); }

/* ============================== 2. Hub ============================== */
.page-journal .jh { padding-block: clamp(24px, 0.5rem + 3vw, 72px) clamp(48px, 1.5rem + 4vw, 112px); }
.jh-head { display: grid; gap: 20px; }
.jh-title { margin: 0; }
.jh-lede { color: var(--text-2); max-width: 30ch; }
@media (min-width: 1024px) {
  /* the notice card floats top right over the page head (frame.css): the head starts below it, so the lede never runs under it */
  .page-journal .jh { padding-top: clamp(80px, 2rem + 4vw, 112px); }
  .jh-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
  .jh-title { grid-column: 1 / span 7; }
  .jh-lede { grid-column: 9 / -1; padding-bottom: 0.9em; }
  .jh-filter { grid-column: 1 / -1; }
}
.jh-filter { margin-top: 8px; max-width: 100%; overflow-x: auto; }
.jh-seg > button { padding: 0 18px; }

/* the featured guide on night: the drawn route hangs from the band's top edge (and from 1024 bleeds off the left),
   the words bottom right, aligned to the drawing's foot */
.aj-site .jh-band { padding-block: 0 clamp(64px, 2rem + 7vw, 160px); }
.jh-feature-link { display: grid; gap: 32px; color: var(--text); text-decoration: none; }
.jh-feature-media { display: block; position: relative; overflow: clip; margin-inline: calc(-1 * var(--gutter)); box-shadow: inset 0 -1px 0 var(--hair-d); }
.jh-feature-media .routemap { border-block: 1px solid var(--hair-d); }
.jh-feature-media .routemap svg { transition: scale 1200ms var(--ease-out); }
.jh-feature-words { display: grid; gap: 20px; justify-items: start; align-content: end; }
.jh-feature-title { font-size: var(--fs-statement); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; color: var(--heading); max-width: 18ch; text-wrap: balance; }
.jh-dek { font-size: var(--fs-lede); line-height: 1.5; color: var(--text-2); max-width: 40ch; }
.jh-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding-top: 24px; border-top: 1px solid var(--line); }
.jh-meta { font-size: var(--fs-small); font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.jh-feature-link:is(:hover, :focus-visible) .arrow-circle { color: var(--accent-fill-fg); border-color: var(--accent-fill); }
.jh-feature-link:is(:hover, :focus-visible) .arrow-circle::before { transform: scale(1); }
.jh-feature-link:is(:hover, :focus-visible) .arrow-circle .icon { transform: translateX(3px); }
@media (hover: hover) { .jh-feature-link:hover .routemap svg { scale: 1.035; } }
.jh-feature-media .routemap { border-top: 0; }
@media (min-width: 1024px) {
  .aj-site .jh-band { padding-block: 0 clamp(64px, 1rem + 6vw, 128px); }
  .jh-feature-link { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: stretch; }
  .jh-feature-media { align-self: start; grid-column: 1 / span 7; margin-left: calc(-1 * var(--gutter)); box-shadow: none; }
  .jh-feature-media .routemap { border-block: 0; }
  .jh-feature-words { grid-column: 9 / -1; padding-top: clamp(48px, 1rem + 3vw, 88px); }
}

/* more guides: the heading sticky on the left, hairline rows with route-map covers on the right */
.jh-more { padding-block: clamp(64px, 2rem + 6vw, 144px); }
.jh-more-grid { display: grid; gap: 40px; }
.jh-more-head { display: grid; gap: 20px; justify-items: start; align-content: start; }
.jh-latest-title { margin: 0; }
@media (min-width: 1024px) {
  .jh-more-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 0; align-items: start; }
  .jh-more-grid > * { grid-column: 1 / -1; }
  .jh-more-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--frame-top, 96px) + 32px); }
  .jh-more-grid > .jh-list { grid-column: 5 / -1; }
  .jh-more-grid > .jh-pillars { grid-column: 5 / -1; margin-bottom: 64px; }
}
.jh-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.jh-row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.jh-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line-strong); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-hover) var(--ease-out); }
.jh-row:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.jh-thumb { display: block; overflow: clip; background: var(--inset); }
.jh-thumb .routemap svg, .jh-thumb .photo { transition: scale 900ms var(--ease-out); }
.jh-thumb .photo { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.jh-thumb .rm-pin { width: 12px; height: 12px; margin: -6px 0 0 -6px; font-size: 0; }
.jh-row:hover .jh-thumb :is(svg, .photo) { scale: 1.06; }
.jh-row-words { display: grid; gap: 10px; min-width: 0; justify-items: start; }
.jh-row-title { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); max-width: 26ch; }
.jh-row-dek { font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 52ch; }
.jh-row > .arrow-circle { display: none; }
@media (min-width: 600px) {
  .jh-row { grid-template-columns: 200px minmax(0, 1fr) auto; gap: 32px; padding: 36px 0; align-items: center; }
  .jh-row > .arrow-circle { display: inline-grid; }
  .jh-row-title { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); }
}
@media (min-width: 1280px) { .jh-row { grid-template-columns: 240px minmax(0, 1fr) auto; gap: 40px; } }
.jh-svc { margin-top: 4px; }
/* topic lists (once a topic has four guides) */
.jh-pillars { display: grid; gap: 48px; align-content: start; }
.jh-group { display: grid; gap: 12px; }
.jh-group-title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--heading); scroll-margin-top: 112px; }
.jh-group-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.jh-group-list a { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.jh-group-post { font-size: 17px; font-weight: 500; line-height: 1.35; }
.jh-group-role { font-size: var(--fs-meta); color: var(--text-2); font-variant-numeric: tabular-nums; }
.jh-group-svc { justify-self: start; }
.jh-empty { margin-top: 48px; }

/* ============================== 3. Article head and the drawn cover ============================== */
.page-article .jn-top { padding-block: clamp(24px, 0.5rem + 2.6vw, 64px) clamp(48px, 1.5rem + 4vw, 104px); }
.jn-head { display: grid; gap: 28px; justify-items: start; }
.jn-crumbs { margin-bottom: 4px; }
.aj-site .jn-title { margin: 0; font-size: clamp(2.375rem, 1.2rem + 4.4vw, 5.25rem); max-width: 19ch; text-wrap: balance; }
.jn-head-foot { display: grid; gap: 28px; width: 100%; margin-top: clamp(8px, 1vw, 24px); padding-top: 28px; border-top: 1px solid var(--line); }
.jn-dek { max-width: 40ch; color: var(--text-2); }
.jn-byline { display: grid; gap: 4px; align-content: end; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
.jn-by { color: var(--text); font-weight: 600; }
.jn-dates { display: flex; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.jn-dates > span { white-space: nowrap; }
@media (max-width: 599px) { .jn-dates { column-gap: 14px; } .jn-dates.meta-dots > * + *::before { content: none; } }
@media (min-width: 1024px) {
  .jn-head-foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .jn-dek { grid-column: 1 / span 6; }
  .jn-byline { grid-column: 8 / -1; }
}

/* the cover runs edge to edge on a night band; on phones the drawing is wider than the screen so the route reads */
.jn-cover-band { background: var(--green); overflow: clip; }
.jn-hero { margin: 0; }
.jn-hero .routemap { width: 100%; }
@media (max-width: 767px) { .jn-hero .jn-cover { width: 150%; margin-left: -25%; } }
.jn-cover-band.is-photo .jn-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 10; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* ============================== 4. Article body ============================== */
.page-article .jn-article { padding-top: clamp(56px, 2rem + 5vw, 136px); }
.jn-layout { row-gap: 0; }
@media (min-width: 1280px) {
  .jn-layout > .jn-toc { grid-column: 1 / span 3; grid-row: 1; position: sticky; top: calc(var(--frame-top, 96px) + 32px); }
  .jn-layout > .jn-body { grid-column: 4 / -1; grid-row: 1; }
}
/* contents: a sticky rail from 1280, a short hairline list before the guide below that (never hidden) */
.jn-toc { margin-bottom: clamp(48px, 2rem + 3vw, 72px); }
.jn-toc-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: var(--fs-meta); font-weight: 500; letter-spacing: 0.01em; color: var(--text-2); }
.jn-toc-title::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.jn-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: toc; }
.jn-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.jn-toc a { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: baseline; min-height: 44px; padding: 11px 0; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--text-2); text-decoration: none; transition: color var(--dur-hover) var(--ease-out); }
.jn-toc a::before { content: counter(toc, decimal-leading-zero) / ""; font-size: var(--fs-meta); color: var(--text-2); font-variant-numeric: tabular-nums; }
.jn-toc a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line-strong); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-hover) var(--ease-out); }
.jn-toc a:hover { color: var(--text); }
.jn-toc a[aria-current="true"] { color: var(--heading); }
.jn-toc a[aria-current="true"]::after { transform: scaleX(1); }
@media (min-width: 600px) and (max-width: 1279px) { .jn-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); } }
@media (min-width: 1280px) { .jn-toc { margin-bottom: 0; } .jn-toc a { font-size: 14px; padding: 9px 0; min-height: 40px; } }

.jn-body { font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); line-height: 1.7; font-variant-numeric: proportional-nums lining-nums; }
.jn-body :is(p, .jn-list) { max-width: 64ch; }
.jn-section { margin-top: clamp(64px, 3rem + 3vw, 112px); padding-top: clamp(28px, 1rem + 1.5vw, 44px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--frame-top, 96px) + 24px); }
.aj-site .jn-h2 { margin: 0 0 clamp(24px, 1rem + 1.2vw, 40px); font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.875rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; color: var(--heading); max-width: 20ch; text-wrap: balance; }
.jn-section p + p, .jn-section p + ul, .jn-section ul + p, .jn-section .table-wrap + p { margin-top: 1em; }

/* the short answer: the guide in one paragraph, set larger between two hairlines */
.jn-answer { padding: 28px 0 8px; border-top: 1px solid var(--line-strong); }
.aj-site .jn-answer-title { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: var(--fs-meta); font-weight: 500; letter-spacing: 0.01em; line-height: 1.4; color: var(--text-2); }
.jn-answer-title::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.aj-site .jn-answer p { max-width: 40ch; font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem); font-weight: 400; letter-spacing: -0.015em; line-height: 1.45; color: var(--text); }

/* lists: a short drawn dash instead of a bullet */
.jn-list { list-style: none; margin: 1.1em 0 0; padding: 0; }
.jn-list li { position: relative; padding-left: 32px; }
.jn-list li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 16px; height: 1px; background: var(--text-2); }
.jn-list li + li { margin-top: 10px; }

/* tables: hairline rows across the whole column (wider than the text); on phones each row becomes a stacked card */
.jn-table-wrap { margin-top: clamp(28px, 1rem + 1.5vw, 48px); }
.aj-site .jn-table { width: 100%; font-size: 15px; font-variant-numeric: tabular-nums lining-nums; }
.aj-site .jn-table th { white-space: nowrap; }
.aj-site .jn-table td { line-height: 1.45; }
.aj-site .jn-table td.cell-main { font-size: 1.0625rem; font-weight: 600; }
.jn-td { display: block; }
.jn-table-note { margin-top: 16px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
@media (max-width: 719px) {
  .aj-site .jn-table.table-reflow td { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 16px; align-items: baseline; text-align: left; font-size: 15px; }
  .aj-site .jn-table.table-reflow td.cell-main { display: block; font-size: 1.125rem; }
}

/* the gate-to-car steps: one drawn line, counter numerals, the step titles at h3 size */
.aj-site .timeline.jn-steps { margin-top: 12px; }
.aj-site .timeline.jn-steps .tl-item { grid-template-columns: 9px minmax(0, 1fr); column-gap: 28px; padding-bottom: 40px; }
.aj-site .timeline.jn-steps .tl-item:last-child { padding-bottom: 0; }
.aj-site .timeline.jn-steps .tl-mark { margin-top: 8px; }
.aj-site .timeline.jn-steps .tl-body { gap: 8px; }
.aj-site .timeline.jn-steps .tl-body::before { content: counter(tl, decimal-leading-zero) / ""; font-size: var(--fs-small); font-weight: 500; line-height: 1.6; color: var(--text-2); font-variant-numeric: tabular-nums; }
.jn-step-k { display: block; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); }
.jn-step-v { display: block; max-width: 56ch; color: var(--text-2); }

/* ============================== 5. Tools: clean paper panels ============================== */
.jn-tool { margin-top: clamp(72px, 3rem + 4vw, 136px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-0); scroll-margin-top: calc(var(--frame-top, 96px) + 24px); font-variant-numeric: tabular-nums lining-nums; line-height: 1.5; --pad: 20px; }
@media (min-width: 600px) { .jn-tool { --pad: clamp(28px, 1rem + 2.4vw, 48px); } }
.jn-tool-head { display: grid; gap: 12px; padding: calc(var(--pad) + 4px) var(--pad) 0; }
.aj-site .jn-tool-title { margin: 0; font-size: clamp(1.625rem, 1.25rem + 1.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; color: var(--heading); max-width: 18ch; text-wrap: balance; }
.aj-site .jn-tool-lede { font-size: var(--fs-lede); color: var(--text-2); max-width: 44ch; }
.jn-tool-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin-top: 28px; padding: 24px var(--pad) 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.jn-tool-controls .jn-ctl.field { grid-column: 1 / -1; }
.jn-ctl { display: grid; gap: 10px; align-content: start; min-width: 0; }
.jn-ctl-wide { grid-column: 1 / -1; }
.jn-ctl .label { color: var(--text-2); }
.jn-ctl .input-wrap { max-width: 220px; }
/* the time field keeps its clock button inside the field (the button base rule sets position: relative) */
.aj-site .jn-ctl .input-wrap .cal-btn { position: absolute; }
.jn-ctl .seg-block > button { font-size: 15px; padding: 0 8px; }
.jn-tool-out { padding: 0 var(--pad) 8px; min-height: 120px; }
.aj-site .jn-tool-note { padding: 18px var(--pad) 22px; border-top: 1px solid var(--line); font-size: var(--fs-meta); line-height: 1.55; color: var(--text-2); max-width: none; }
.jn-body .jn-tool p { max-width: none; }
.jn-body .jn-tool .rp-note { max-width: 46ch; }
@media (min-width: 720px) {
  .jn-tool-controls { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 40px; }
  .jn-tool-controls .jn-ctl.field { grid-column: auto; }
  .jn-tool-controls-fares { grid-template-columns: 220px minmax(0, 1fr); }
  .jn-tool-controls-fares .jn-ctl.field { grid-row: span 2; }
  .jn-tool-controls-fares .jn-ctl-wide { grid-column: 2; }
}
/* ride picker results: hairline rows, the best fit on a quiet fill */
.rp-summary { padding: 22px 0 14px; font-size: 15px; color: var(--text-2); }
.rp-list { list-style: none; margin: 0; padding: 0; }
.rp-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.rp-row.is-pick { margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); background: var(--select); border-top-color: var(--line-strong); }
.rp-main { display: grid; gap: 4px; min-width: 0; }
.rp-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; color: var(--text); }
.rp-row.is-off .rp-name { color: var(--text-2); }
.rp-note { font-size: 15px; line-height: 1.5; color: var(--text-2); max-width: 46ch; }
.rp-link { margin-top: 2px; font-size: 15px; }
.rp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.rp-facts dt { font-size: var(--fs-meta); color: var(--text-2); }
.rp-facts dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); }
.rp-facts .rp-closed { grid-column: 1 / -1; }
/* the best-fit tag: a 1px ink outline, never an ink fill on day (the owner's 12/10 review) */
.aj-site .jn-tool .tag.tone-brand { --tone-bg: transparent; --tone-fg: var(--ink); background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* the chosen segment (fare day, drop-off, terminal): the booking card's outline, not an ink fill */
.aj-site :is(.jn-tool, .jh-filter) .seg > :is([aria-checked="true"], [aria-pressed="true"]) { background: var(--sunken); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.aj-site :is(.jn-tool, .jh-filter) .seg > :hover:not([aria-checked="true"]):not([aria-pressed="true"]) { background: var(--sunken); }
@media (min-width: 720px) {
  .rp-row { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; }
  .rp-facts { gap: 20px; }
}
/* fare estimator results: two ledgers side by side */
.fe-summary { padding: 24px 0 8px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.5; color: var(--text); max-width: 56ch; }
.fe-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.fe-col { padding: 20px 0 14px; border-top: 1px solid var(--line); min-width: 0; }
.fe-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; font-size: 1.125rem; font-weight: 600; color: var(--text); }
.fe-head span { font-size: var(--fs-meta); font-weight: 500; color: var(--text-2); }
.fe-ledger { font-size: 15px; }
.fe-ledger .ledger-total { font-size: 1.0625rem; }
.fe-foot { margin-top: 12px; font-size: var(--fs-meta); line-height: 1.5; color: var(--text-2); }
@media (min-width: 720px) { .fe-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; padding-top: 12px; } }
/* terminal picker: the terminals as a segmented row, the panel as hairline facts */
.tp-seg { display: flex; margin: 28px var(--pad) 0; width: auto; }
.tp-seg > button { flex: 1 1 0; min-width: 0; padding: 0 4px; }
.tp-panels { padding: 8px var(--pad) 12px; }
.tp-panel { display: grid; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.tp-panel:first-child, .tp.is-tabbed .tp-panel { border-top: 0; }
.aj-site .tp-name { margin: 0; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; color: var(--heading); }
.tp-facts { margin: 0; border-top: 1px solid var(--line); }
.tp-facts > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tp-facts dt { font-size: var(--fs-meta); font-weight: 500; color: var(--text-2); }
.tp-facts dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.aj-site .tp-note { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.tp-note .icon { flex: none; margin-top: 2px; }
@media (min-width: 600px) { .tp-facts > div { grid-template-columns: 148px minmax(0, 1fr); gap: 24px; } }

/* ============================== 6. From our own trips (night, aligned to the reading column: D5) ============================== */
.jn-trips { padding-block: clamp(80px, 2.5rem + 8vw, 192px) 0; overflow: clip; }
.jn-trips:not(:has(.jn-trips-media)) { padding-bottom: clamp(80px, 2.5rem + 8vw, 192px); }
/* with a photograph the band ends on it: the frame sits on the hard cut to the questions */
.aj-site .jn-trips:has(.jn-trips-media) { padding-bottom: 0; }
.jn-trips .container { row-gap: 0; }
.aj-site .jn-trips-label { margin-bottom: 28px; color: var(--text-2); }
.aj-site .jn-trips-title { margin: 0; font-size: clamp(2rem, 1.2rem + 3.3vw, 4.25rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.06; color: var(--heading); max-width: 17ch; text-wrap: balance; }
.aj-site .jn-trips-text { margin-top: clamp(28px, 1rem + 2vw, 48px); font-size: var(--fs-lede); line-height: 1.55; color: var(--text-2); max-width: 44ch; }
.jn-trips-media { margin: clamp(56px, 2rem + 5vw, 120px) calc(-1 * var(--gutter)) 0; aspect-ratio: 16 / 10; background: var(--green-raised); }
@media (min-width: 768px) { .jn-trips-media { aspect-ratio: 2 / 1; } }
/* the drift (data-speed -0.12, up to about 85px) needs more overscan than motion.css's 7.5%; phones hold the photo still so the car stays whole */
.aj-site .jn-trips-media > img[data-speed] { top: -18%; height: 136%; }
@media (max-width: 767px) {
  .aj-site .jn-trips-media > img[data-speed] { top: 0; height: 100%; }
  html.mo .aj-site .jn-trips-media > img[data-speed] { translate: none; }
}
@media (min-width: 1280px) {
  .jn-trips-label { grid-column: 1 / span 3; padding-top: 1.1em; margin-bottom: 0; }
  .jn-trips-words { grid-column: 4 / span 8; }
  .jn-trips-media { grid-column: 4 / -1; margin-left: 0; }
}

/* ============================== 7. Questions, numbered sources, keep reading ============================== */
.jn-end { padding-block: clamp(80px, 2.5rem + 7vw, 176px); }
.jn-end-block + .jn-end-block { margin-top: clamp(80px, 3rem + 5vw, 160px); }
.aj-site .jn-end-h { font-size: var(--fs-statement); max-width: 12ch; }
@media (min-width: 1280px) {
  .jn-end-h { grid-column: 1 / span 3; position: sticky; top: calc(var(--frame-top, 96px) + 32px); }
  .jn-end-main { grid-column: 4 / -1; }
}
.aj-site .jn-related .index-row .t-h3 { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem); }
/* base.css resets the cells to grid-column: auto after naming their areas, so on phones (two rows) they drift; pin them back */
.aj-site .jn-related .index-row .t-h3 { grid-column: t; }
.aj-site .jn-related .index-row .index-fact { grid-column: f; }
.aj-site .jn-related .index-row > i[data-icon] { grid-column: go; grid-row: 1 / span 2; }
@media (min-width: 900px) { .aj-site .jn-related .index-row > i[data-icon] { grid-row: auto; } }
.jn-faq .faq-block details > p { font-size: 1rem; line-height: 1.65; }
.jn-sources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: src; font-size: 1rem; line-height: 1.45; }
.jn-sources li { counter-increment: src; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 8px; row-gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.jn-sources li::before { content: counter(src, decimal-leading-zero) / ""; grid-row: 1 / span 2; padding-top: 2px; font-size: var(--fs-small); font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.jn-sources a { justify-self: start; font-weight: 500; color: var(--text); }
.jn-src-by { font-size: var(--fs-meta); color: var(--text-2); }
.jn-src-note { margin-top: 24px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); max-width: 64ch; }
@media (min-width: 1024px) { .jn-sources li { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 0.8fr); align-items: baseline; } .jn-sources li::before { grid-row: auto; } }

/* ============================== 8. Reduced motion and print ============================== */
@media (prefers-reduced-motion: reduce) {
  .jh-feature-media .routemap svg, .jh-thumb :is(svg, .photo), .jh-row::after, .jn-toc a::after { transition: none; }
  .jh-feature-link:hover .routemap svg, .jh-row:hover .jh-thumb :is(svg, .photo) { scale: none; }
}
@media print {
  .jn-toc, .jn-tool-controls, .jn-trips, .jn-cover-band { display: none; }
  .jn-grid, .jn-layout { display: block; }
}
