.journey-page {
  --jr-edge: #cbd8e9;
  --jr-navy: #11345d;
  --jr-tint: #eff5fc;
  --jr-unit: clamp(19px, 2.5vw, 36px);
  overflow-wrap: break-word;
}
.journey-page .wrap { max-width: 1256px }
.jr-hero { padding: clamp(24px, 4.6vw, 72px) 0 clamp(44px, 5.5vw, 88px) }
.jr-hero h1 {
  font-size: clamp(42px, 5vw, 80px);
  max-width: 24ch; letter-spacing: -.065em; line-height: 1.02;
  color: #122745; text-wrap: balance;
}
.jr-hero p { margin-top: 24px; max-width: 74ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.62 }
.journey-actions { margin-top: 26px }
.jr-band { padding-block: clamp(40px, 6vw, 92px); border-top: 1px solid var(--jr-edge); background: #fff }
.jr-band:nth-of-type(even) { background: #f2f6fc }
.jr-layout { display: grid; gap: clamp(22px,3vw,44px) }
.jr-copy { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); gap: clamp(32px,7vw,115px); align-items: end }
.jr-copy h2 { font-size: clamp(29px,3vw,48px); max-width: 24ch; color: #122745 }
.jr-copy p { max-width: 72ch; font-size: 16px; line-height: 1.7 }
.jr-exhibits { display: grid; gap: 16px; min-width: 0 }
.jr-panel {
  margin: 0; min-width: 0; background: #fff; border: 1px solid var(--jr-edge);
  border-radius: 14px; overflow: hidden;
}
.jr-panel figcaption, .jr-record-head {
  font-size: 14px; line-height: 1.45; font-weight: 720;
  padding: 14px var(--jr-unit); color: #fff; background: var(--jr-navy);
}
.jr-record-head {
  display: grid; grid-template-columns: minmax(112px,.75fr) minmax(0,1.35fr); align-items: baseline; gap: 14px;
  color: var(--jr-navy); background: #e9f1fc; font-weight: 600;
}
.jr-fields { margin: 0; padding-inline: var(--jr-unit) }
.jr-fields > div { display: grid; grid-template-columns: minmax(112px,.75fr) minmax(0,1.35fr); gap: 14px; padding: 13px 0 }
.jr-fields > div + div { border-top: 1px solid #e2e9f3 }
.jr-fields dt,.jr-matrix tbody th { font-weight: 700; color: var(--jr-navy) }
.jr-fields dd { margin: 0; color: #354760 }
.jr-layout .journey-actions { margin-top: 0 }
.jr-matrix { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55 }
.jr-matrix th,.jr-matrix td { padding: 16px var(--jr-unit); text-align: left; vertical-align: top; overflow-wrap: anywhere }
.jr-matrix thead th { color: var(--jr-navy); background: #e8f0fa; font-size: 13px }
.jr-matrix td { color: #334861 }
.jr-matrix tbody tr + tr > * { border-top: 1px solid #dce5f0 }
.jr-mobile-label { display: none }
.jr-layout-record .jr-layout,.jr-layout-conversation .jr-layout { grid-template-columns: minmax(0,.75fr) minmax(0,1.15fr); column-gap: clamp(30px,5vw,80px); align-items: start }
.jr-layout-record .jr-copy,.jr-layout-conversation .jr-copy { display: block; padding-top: 8px }
.jr-layout-record .jr-copy p,.jr-layout-conversation .jr-copy p { margin-top: 20px }
.jr-layout-record .journey-actions,.jr-layout-conversation .journey-actions { grid-column: 1 / -1 }
.jr-transcript { list-style: none; padding: var(--jr-unit); margin: 0; display: grid; gap: 13px; background: #eef4fb }
.jr-transcript li { border: 1px solid #cfdded; padding: 12px 16px; max-width: 90%; border-radius: 12px 12px 12px 2px; background: white; justify-self: start }
.jr-transcript .reply { margin-left: 12%; border-color: #c6d9f4; justify-self: end; background: #deecff; border-radius: 12px 12px 2px 12px }
.jr-transcript span,.jr-step-detail > span,.jr-mobile-label,.jr-branches small,.jr-timeline small { font-size: 12px; font-weight: 720; color: #34567e }
.jr-transcript p { margin-top: 3px; font-size: 15px; color: #1b3450 }
.jr-layout-totals .jr-exhibits,.jr-layout-evidence .jr-exhibits { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start }
.jr-layout-totals .jr-matrix td { text-align: right; font-variant-numeric: tabular-nums; font-size: 19px; color: var(--accent); font-weight: 720 }
.jr-layout-totals .jr-matrix th:last-child { text-align: right }
.jr-layout-totals .jr-matrix tr:last-child { background: var(--jr-tint) }
.jr-list,.jr-timeline,.jr-branches,.jr-swim ol { list-style: none; margin: 0; padding: 0 }
.jr-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(230px,100%),1fr)) }
.jr-list li { padding: var(--jr-unit); color: #354760; border-inline-start: 3px solid var(--accent) }
.jr-list strong,.jr-list span { display: block }
.jr-list strong { font-size: 18px; color: var(--jr-navy); margin-bottom: 7px }
.jr-list .jr-flow { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 0; margin:0; padding:0; list-style:none }
.jr-list .jr-flow li { padding:0; border:none; font-size:14px }
.jr-flow li + li::before { content:'→'; padding-inline:8px; color:var(--accent) }
.jr-steps-items { counter-reset: trial }
.jr-steps-items li { counter-increment: trial; border: 0; position: relative }
.jr-steps-items li + li { border-inline-start: 1px solid var(--jr-edge) }
.jr-steps-items li::before { content: counter(trial,decimal-leading-zero); display: block; color: var(--accent); margin-bottom: 12px; font: 600 15px/1.3 ui-monospace,monospace }
.jr-note { padding: 8px 0 8px 16px; border-left: 3px solid #81a7dc; font-size: 14px }
.jr-branches,.jr-timeline { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(215px,100%),1fr)) }
.jr-branches > li,.jr-timeline > li { padding: var(--jr-unit); position: relative; border-inline-start: 1px solid var(--jr-edge) }
.jr-branches > li:first-child,.jr-timeline > li:first-child { border: none }
.jr-branches h3,.jr-timeline h3 { font-size: 22px; letter-spacing: -.035em; line-height: 1.23; color: var(--jr-navy) }
.jr-branches small,.jr-timeline small { margin: 0 0 8px; display: block; letter-spacing: 0 }
.jr-timeline > li::before { content: ''; display: block; border-top: 3px solid var(--accent); width: 32px; margin-bottom: 16px }
.jr-step-detail { margin-top: 14px; font-size: 15px }
.jr-step-detail p { margin-top: 4px }
.jr-swim .jr-lane-titles,.jr-swim li { display: grid; grid-template-columns: 1fr 1fr 1fr }
.jr-lane-titles strong { background: var(--jr-navy); color: white; padding: 17px var(--jr-unit) }
.jr-lane-titles strong:nth-child(2) { background: var(--accent) }
.jr-swim li + li { border-top: 1px solid var(--jr-edge) }
.jr-swim li > div { padding: 16px var(--jr-unit); color: #263e5b; font-size: 15px; border-inline-end: 1px solid #e5edf7 }
.jr-swim li > div:nth-child(2) { background: #f1f6ff }
.jr-swim li > div:last-child { border: 0 }
.use-case-page .jr-band { padding-block:clamp(38px,4.9vw,72px) }
.use-case-page .jr-copy { align-items:start }
.use-case-page .jr-copy h2 { font-size:clamp(29px,3.1vw,47px) }
.use-case-page .jr-layout-call { background:#f6f8fd }
.use-case-page .jr-layout-call .jr-exhibits>.ob-record { width:min(100%,900px); justify-self:end }
.uc-rules { padding:0; margin:0; list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-block:1px solid #c4d2e4 }
.uc-rules li { min-width:0; padding:clamp(18px,2.2vw,30px) }
.uc-rules li:first-child { padding-left:0 }
.uc-rules li+li { border-inline-start:1px solid #d4dfeb }
.uc-rules h3 { color:#153861; font-size:clamp(20px,1.65vw,27px); letter-spacing:-.035em; line-height:1.24 }
.uc-rules p { margin-top:9px; font-size:.96rem; line-height:1.6 }
.uc-sequence { counter-reset:review; background:#f3f7fc; border-radius:12px }
.uc-sequence li:first-child { padding-left:clamp(18px,2.2vw,30px) }
.uc-sequence li { counter-increment:review }
.uc-sequence li::before { content:counter(review); display:grid; place-items:center; width:27px; height:27px; margin-bottom:13px; border:1px solid #93b2d6; border-radius:50%; color:#245c9c; font-size:.83rem; font-weight:720 }
.jr-layout-pilot .jr-layout { grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); align-items:start }
.jr-layout-pilot .jr-copy { display:block }
.jr-layout-pilot .jr-copy p { margin-top:16px }
.jr-layout-pilot .journey-actions { gap:12px 22px }
@media(max-width:760px){
  .jr-layout-pilot .jr-layout,.uc-rules { grid-template-columns:1fr }
  .uc-rules li,.uc-rules li:first-child { padding:15px 0 }
  .uc-rules li+li { border-inline-start:0; border-top:1px solid #d4dfeb }
  .uc-sequence li,.uc-sequence li:first-child { padding:17px }
}
@media(max-width: 850px) {
  .jr-copy,.jr-layout-record .jr-layout,.jr-layout-conversation .jr-layout { grid-template-columns: 1fr; gap: 18px }
  .jr-copy h2 { max-width: 30ch }
  .jr-layout-record .jr-copy,.jr-layout-conversation .jr-copy { padding-top: 0 }
  .jr-layout-record .jr-copy p,.jr-layout-conversation .jr-copy p { margin-top: 16px }
  .jr-layout-evidence .jr-exhibits { grid-template-columns: 1fr }
}
@media(max-width: 640px) {
  .jr-hero { padding: 20px 0 40px }
  .jr-hero h1 { font-size: clamp(36px,8vw,48px) }
  .jr-hero p { margin-top: 18px; font-size: 16px }
  .jr-layout-totals .jr-exhibits {grid-template-columns: 1fr}
  .jr-transcript { padding: 12px }.jr-transcript li { max-width: 93% }
  .jr-fields > div { grid-template-columns: 1fr; gap: 3px }
  .jr-record-head { display:flex; flex-wrap:wrap; gap:4px 14px; justify-content:space-between }
  .jr-layout-evidence .jr-matrix th:first-child { width:36% }
  .jr-matrix th,.jr-matrix td { padding: 12px 14px }
  .jr-layout-matrix .jr-matrix,.jr-layout-signoff .jr-matrix { display: block }
  .jr-layout-matrix .jr-matrix thead,.jr-layout-signoff .jr-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
  .jr-layout-matrix .jr-matrix tbody,.jr-layout-signoff .jr-matrix tbody { display: grid }
  .jr-layout-matrix .jr-matrix tr,.jr-layout-signoff .jr-matrix tr { display: grid }
  .jr-layout-matrix .jr-matrix tr > th,.jr-layout-signoff .jr-matrix tr > th { background: #eaf1fb }
  .jr-layout-matrix .jr-matrix tr > td,.jr-layout-signoff .jr-matrix tr > td { border-top: 0; padding-block: 8px }
  .jr-layout-matrix .jr-mobile-label,.jr-layout-signoff .jr-mobile-label,.jr-swim .jr-mobile-label { display: block; margin-bottom: 2px }
  .jr-swim .jr-lane-titles { display: none }
  .jr-swim li { grid-template-columns: 1fr; padding: 8px 0 }
  .jr-swim li + li { border-top: 2px solid var(--jr-edge) }
  .jr-swim li > div { padding: 8px 16px; border: 0 }
  .jr-swim li > div:nth-child(2) { background: transparent }
  .jr-branches,.jr-timeline,.jr-list { grid-template-columns: 1fr }
  .jr-branches > li + li,.jr-timeline > li + li,.jr-list > li + li { border-inline-start: none; border-top: 1px solid var(--jr-edge) }
}
