.journey [hidden],.journey .print-route {display:none!important}
.journey {max-width:57rem;overflow-wrap:anywhere}
.choice {display:grid;grid-template-columns:auto minmax(0,1fr);gap:1rem;align-items:center}
.choice label {font-weight:600}
.selectbox {position:relative;min-width:0}
#path {appearance:none;background:#fafbf7;border:1px solid #798371;color:#272a23;border-radius:.28rem;font:inherit;padding:.75rem;padding-inline-end:2.35rem;width:100%;cursor:pointer;text-overflow:ellipsis}
.selectbox::after {content:"";width:.48rem;height:.48rem;position:absolute;inset-inline-end:1.1rem;top:38%;border:solid #474d40;border-width:0 2px 2px 0;transform:rotate(45deg);pointer-events:none}
.journey .journey-actions {justify-content:start;margin:.85rem 0 .3rem;column-gap:1.3rem;font-size:.94rem}
.journey-meter {margin-inline-end:auto;font-weight:600;color:#425038}
.journey-actions button {padding:.4rem 0;background:none;color:inherit;text-decoration:underline;text-underline-offset:.24em}
.journey .save-choice,.journey .device-note {font-size:.92rem}
.journey .save-choice input {margin-top:.15rem}
.journey .part {margin-bottom:2.5rem}
.journey .part h2 {margin-bottom:1rem}
.journey .time-note {margin-block:1.2rem 1.5rem;font-size:1rem}
.journey details:not([open])>summary::after {content:"+"}
.journey details[open]>summary::after {content:"−"}
.journey details>summary {padding-block:.85rem}
.stage>summary {display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.24rem .75rem}
.stage>summary .when {grid-column:1 / 3;font-weight:500}
.stage>summary .heading {font:400 clamp(1.24rem,2.4vw,1.53rem)/1.31 Georgia,serif}
.stage>summary .count {font-size:.88rem;color:#526249;font-weight:500}
.stage>summary::after {grid-row:1 / 3;grid-column:3;align-self:center}
.inside {padding:.25rem 0 1.35rem;padding-inline-start:clamp(.5rem,2.2vw,1.45rem)}
.inside p {margin:0 0 1rem}
.sub[open] {padding-bottom:.7rem}
.journey .task {padding:.52rem 0;font:inherit;line-height:1.55}
.journey .task:has(:checked) {color:#425038}
.journey .refs {border:none;font-size:.94rem}
.refs>summary {color:#424d39;justify-content:start;font-weight:500}
.refs a,.calculator>a {display:block;width:fit-content;max-width:100%;padding:.26rem 0}
.journey .calculator {border:1px solid #aeb4a4;background:#fafbf7;padding:0 clamp(.85rem,3vw,1.4rem);margin-top:.9rem}
.calculator fieldset {margin:0 0 1rem;padding:.5rem 0;border:0;border-block-start:1px solid var(--line);min-width:0}
.calculator legend {font-weight:600;padding-inline:0 .7rem}
.calculator label bdi {min-width:1.5em;text-align:end;color:#526249;font-weight:650}
.calculator output {display:block;font-weight:600;background:#e6eadd;padding:.9rem}
.calculator>a {margin:.65rem 0}
.journey :focus-visible {outline:3px solid #50714d;outline-offset:3px}
@media(max-width:700px){
 .choice {grid-template-columns:minmax(0,1fr);gap:.2rem}
 .journey .journey-actions {gap:0 1.1rem}
 .stage>summary {grid-template-columns:minmax(0,1fr) auto}
 .stage>summary .when,.stage>summary .count {grid-column:1}
 .stage>summary .count:empty {display:none}
 .stage>summary::after {grid-column:2}
 .inside {padding-inline-start:0}
 .journey .phase-links {gap:.5rem 1.2rem;font-size:.97rem}
}
@media print{
 @page {size:A4;margin:13mm}
 .journey #plan-next,.journey #plan-graduate {break-inside:avoid}
 .journey .print-route {display:block!important;font-weight:600}
 .journey .part {margin-bottom:0}
 .journey .part h2 {font-size:16pt;margin:4mm 0 2mm;break-after:avoid}
 .journey summary {break-after:avoid;break-inside:avoid}
 .journey details>summary {display:block;padding:3mm 0 1mm}
 .journey summary::after,.journey .count,.journey .refs,.calculator:not([open]),.calculator a {display:none}
 .journey .inside {padding:0 0 1.3mm}
 .inside p,.journey .time-note {margin:1.5mm 0;font-size:10.5pt}
 .stage .when {display:block;font-size:9pt}
 .stage>summary .heading {display:block;font-size:13pt}
 .journey .task,.journey .calculator label {padding:.65mm 0;break-inside:avoid;font:10.5pt/1.3 Arial,sans-serif}
 .journey .sub {padding-bottom:1mm}
 .calculator fieldset {break-inside:avoid;margin-bottom:2mm}
 .calculator output {break-before:avoid}
 .stage::details-content,.sub::details-content {content-visibility:visible}
}


.journey .budget {background:#fafbf7;padding:0 .98rem;border:1px solid #aeb4a4;margin-block:.5rem .86rem}
.cost-line {display:grid;gap:.65rem;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1.1fr);padding-block:.42rem}
.budget label,.budget label span {display:block;font-size:.9rem;min-width:0;padding:0}
.budget input,.budget select {width:100%;min-width:0;font:400 1rem/1.5 system-ui,sans-serif;height:2.65rem;margin:.25rem 0 0;padding:.35rem .46rem;border:1px solid #808674;border-radius:.25rem;color:#242623;background:#fff}
.budget select {appearance:none;padding-inline-end:1.5rem;cursor:pointer}
.budget .selectbox::after {inset-inline-end:.66rem;width:.4rem;height:.4rem}
.budget .totals {padding:.85rem 0;display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;justify-content:space-between}
.budget .totals button {border:0;padding:.3rem 0;background:none;text-decoration:underline;text-underline-offset:.18em;font:inherit;cursor:pointer}
.budget output {font-size:1rem}
.budget [aria-invalid=true] {border:2px solid #993825}
@media screen and (min-width:831px) {
 .cost-line + .cost-line .fieldtitle {clip-path:inset(50%);position:absolute;width:1px;height:1px;overflow:hidden}
}
@media screen and (max-width:830px) {
 .cost-line {grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-top:1px solid var(--line);padding-block:.95rem}
 .budget select {font-size:.94rem}
}
@media screen and (max-width:380px) { .cost-line {grid-template-columns:minmax(0,1fr)} }
@media print{
 .budget:not([open]),.totals button,.budget .selectbox::after,.onscreen {display:none}
 .cost-line {break-inside:avoid}
 .journey .budget input,.journey .budget select {font:10pt Arial;height:8mm;width:100%}
 .journey .budget label,.budget label span {font-size:9pt}
}

