/* Junction pages: the prerendered guide below the playground (hub, presets, types, comparisons). Built from cloudflare/scripts/build_junction_pages.mjs. */
/* === Editorial reading layout === */
.jn-about-home, .jp { box-sizing: border-box; width: 100%; max-width: 840px; margin-inline: auto; }
.jn-about-home { padding: 40px var(--nv-gut) 8px; }
.jn-about-home .jn-lede, .jn-about-home .jp-asof, .jn-about-home .jp-banner { max-width: 65ch; }
.jn-about-home .jn-lede { margin-bottom: 24px; font: 400 1.0625rem/1.65 var(--nv-font); }
.jn-about { border: 0; border-top: 1px solid var(--nv-line); border-bottom: 1px solid var(--nv-line); border-radius: 0; background: transparent; }
.jn-about > summary { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 8px 0; list-style: none; }
.jn-about > summary::-webkit-details-marker { display: none; }
.jn-about > summary::after { content: "+"; margin-left: auto; font: 500 1.25rem/1 var(--nv-font); color: var(--nv-muted); }
.jn-about[open] > summary::after { content: "\2212"; }
.jn-about-text { max-width: 65ch; padding: 4px 0 16px; font: 400 1rem/1.65 var(--nv-font); }
.jn-about-text p { margin-bottom: 12px; }
.jp { padding: 8px var(--nv-gut) 72px; font: 400 1rem/1.65 var(--nv-font); color: var(--nv-ink); }
.jp h2 { margin: 0; font: 650 clamp(1.375rem, 2vw, 1.625rem)/1.25 var(--nv-font); letter-spacing: -0.025em; text-wrap: balance; }
.jp h3 { margin: 28px 0 10px; font: 650 1.0625rem/1.35 var(--nv-font); letter-spacing: -0.01em; }
.jp p { margin: 0 0 16px; max-width: 65ch; }
.jp a, .jn-about-text a { color: var(--nv-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.jp a:hover, .jn-about-text a:hover { text-decoration-thickness: 2px; }

.jp-crumbs { padding: 16px 0 24px; font: 500 0.875rem/1.6 var(--nv-font); color: var(--nv-muted); }
.jp-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nv-muted); }

.jp-sec { padding: 36px 0; border-top: 1px solid var(--nv-line); }
.jp-sec:first-of-type { border-top: 0; }
.jp-sec > h2 { margin-bottom: 18px; }
.jp-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.jp-fold > summary::-webkit-details-marker { display: none; }
.jp-fold > summary h2 { margin: 0; }
.jp-fold > summary::after { content: "+"; margin-left: auto; font: 500 1.25rem/1 var(--nv-font); color: var(--nv-muted); }
.jp-fold[open] > summary::after { content: "\2212"; }
.jp-fold > summary:focus-visible, .jp-q > summary:focus-visible { outline: 2px solid var(--nv-ink); outline-offset: 2px; }
.jp-fold > :not(summary) { margin-top: 16px; }

.jp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); gap: 20px 24px; margin: 24px 0 8px; }
.jp-facts > div { min-width: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
.jp-facts dt { font: 500 0.875rem/1.4 var(--nv-font); color: var(--nv-muted); }
.jp-facts dd { margin: 6px 0 0; font: 600 1rem/1.45 var(--nv-font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.jp-asof { margin: 0 0 16px; font: 500 0.9375rem/1.55 var(--nv-font); }
.jp-banner { padding: 16px; margin: 0 0 20px; background: color-mix(in srgb, var(--nv-accent) 14%, var(--nv-raised)); border: 1px solid var(--nv-line); border-radius: var(--nv-r); font: 400 1rem/1.55 var(--nv-font); }

.jp-table-wrap { overflow-x: auto; margin: 20px 0 16px; border: 1px solid var(--nv-line); border-radius: var(--nv-r); background: var(--nv-raised); -webkit-overflow-scrolling: touch; }
.jp-table { width: 100%; border-collapse: collapse; font: 400 0.9375rem/1.5 var(--nv-font); font-variant-numeric: tabular-nums; }
.jp-table caption { position: sticky; left: 0; box-sizing: border-box; max-width: calc(100vw - 2 * var(--nv-gut) - 2px); padding: 14px 16px; text-align: left; font: 500 0.875rem/1.45 var(--nv-font); color: var(--nv-muted); caption-side: top; }
.jp-table th, .jp-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--nv-line); }
.jp-table thead th { font-weight: 600; border-top: 1px solid var(--nv-line); background: var(--nv-surface); }
.jp-table tbody th { font-weight: 500; color: var(--nv-ink); }
.jp-table small { font-size: 0.8125rem; font-weight: 400; color: var(--nv-muted); }
.jp-kpi thead small { display: block; white-space: nowrap; }
.jp-table .num, .jp-kpi td, .jp-score td:last-child { text-align: right; white-space: nowrap; }
.jp-kpi th[scope="row"], .jp-score th[scope="row"] { white-space: nowrap; }
.jp-facts-table td:nth-child(2) { min-width: 220px; }
.jp-facts-table td:nth-child(4) { white-space: nowrap; font-size: 0.8125rem; }
.jp-tag { display: inline-block; padding: 2px 7px; border: 1px solid var(--nv-line); border-radius: var(--nv-r); font: 500 0.8125rem/1.4 var(--nv-font); background: var(--nv-surface); }
.jp-tag[data-status="sourced"] { background: var(--nv-surface); }
.jp-tag[data-status="estimate"] { background: color-mix(in srgb, var(--nv-accent) 20%, var(--nv-raised)); }
.jp-none { color: var(--nv-muted); }
.jp-method, .jp-note { font: 400 0.875rem/1.6 var(--nv-font); color: var(--nv-muted); max-width: 65ch; }
/* === End editorial reading layout === */

.jp-chart { margin: 14px 0 6px; }
.jp-bars { display: block; width: 100%; max-width: 560px; height: auto; font: 500 10px var(--nv-font); }
.jp-bars rect { fill: var(--nv-ink); }
.jp-bars text { fill: var(--nv-muted); }
.jp-chart figcaption { margin-top: 4px; font: 400 0.8125rem/1.4 var(--nv-font); color: var(--nv-muted); max-width: 70ch; }
.jp-hours { margin-top: 6px; }
.jp-hours > summary { min-height: 36px; font: 600 0.875rem var(--nv-font); }

/* === Editorial directories and disclosures === */
.jp-links { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.jp-links li { min-width: 0; padding: 0; font: 400 1rem/1.5 var(--nv-font); }
.jp-links a { display: flex; align-items: center; min-height: 44px; font-weight: 600; }
.jp-links span { display: block; color: var(--nv-muted); font-size: 0.875rem; line-height: 1.55; }
.jp-bullets, .jp-steps { margin: 0 0 16px; padding-left: 24px; max-width: 65ch; }
.jp-bullets li, .jp-steps li { margin: 0 0 12px; padding-left: 4px; }
.jp-cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 24px; }
.jp-cta > a { display: inline-flex; align-items: center; min-height: 44px; }
.jp-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--nv-accent); border: 1px solid var(--nv-ink); border-radius: var(--nv-r); color: var(--nv-accent-ink); font: 600 0.9375rem/1.4 var(--nv-font); text-decoration: none; }
.jp a.jp-btn { color: var(--nv-accent-ink); }
.jp-q { border-bottom: 1px solid var(--nv-line); }
.jp-q > summary { display: flex; align-items: center; gap: 20px; cursor: pointer; box-sizing: border-box; padding: 16px 0; min-height: 56px; list-style: none; font: 600 1rem/1.45 var(--nv-font); }
.jp-q > summary::-webkit-details-marker { display: none; }
.jp-q > summary::after { content: "+"; flex: none; margin-left: auto; font: 500 1.25rem/1 var(--nv-font); color: var(--nv-muted); }
.jp-q[open] > summary::after { content: "\2212"; }
.jp-q > p { margin: 0 32px 20px 0; }
.jp-credits { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--nv-line); font: 400 0.875rem/1.6 var(--nv-font); color: var(--nv-muted); max-width: 65ch; }
.jp-credits a { color: var(--nv-muted); }
/* === End editorial directories and disclosures === */

/* Sub-pages: the title shares the toolbar row with the transport controls, so a long place name is clipped, not wrapped. */
.jn-title { max-width: 100%; overflow-wrap: anywhere; }

@media (max-width: 767px) {
    /* Phones: the playground is a full-screen tool and the guide is reached by scrolling the page below it. */
    body.jn-page { overflow-y: auto; }
    .jn-about-home { display: block; padding-top: 28px; }
    .jp { padding-top: 0; padding-bottom: 64px; }
    .jp-sec { padding-block: 28px; }
    .jp-links { gap: 20px; }
    .jp-kpi th[scope="row"], .jp-kpi thead th.num { white-space: normal; }
    .jp-table th, .jp-table td { padding: 10px; }
}
