.page-content:has(#journey-planner){max-width:1040px}
#journey-planner [hidden]{display:none}
.journey-privacy{border-left:4px solid var(--ink);padding:.7rem 1rem;background:var(--panel)}
.journey-section{margin:2rem 0;border:1px solid var(--line);border-radius:8px;padding:clamp(.7rem,3vw,1.3rem)}
.journey-section h2{margin-top:0}
.journey-section label{display:block;font-weight:bold;margin:1rem 0 .2rem}
.journey-section .journey-hint{margin:.15rem 0 .35rem;font-size:.9em}
.journey-section textarea,.journey-section input[type=text],.journey-section input[type=tel],.journey-section input[type=file],.journey-section select{display:block;box-sizing:border-box;width:100%;max-width:100%;font:inherit;border:1px solid var(--control-line,var(--ink));border-radius:4px;padding:.55rem;background:var(--white);color:var(--ink)}
.journey-section textarea{resize:vertical;min-height:3.5em}
.journey-section select{max-width:32rem}
.journey-section input[type=checkbox]{width:1.45rem;height:1.45rem;flex:none;accent-color:var(--ink)}
.journey-section input:focus-visible,.journey-section select:focus-visible,.journey-section textarea:focus-visible,.journey-section button:focus-visible{outline:3px solid var(--focus,#0659ac);outline-offset:2px}
.journey-leg,.journey-card-editor{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:clamp(.55rem,2.5vw,1rem);margin:1.1rem 0}
.journey-leg legend,.journey-card-editor legend{font:700 1.15rem/1.25 Arial,sans-serif;padding:0 .35rem;color:var(--ink)}
.journey-card-editor legend img{vertical-align:middle;object-fit:contain}
.journey-card-editor .journey-check{display:flex;gap:.65rem;align-items:center;margin-top:0;min-height:44px}
.journey-photo-preview{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;margin:.6rem 0}
.journey-own-photo{width:min(240px,100%);height:auto;max-height:200px;object-fit:contain}
.journey-section button{margin:.45rem .3rem .3rem 0;min-height:44px;max-width:100%;white-space:normal}
.journey-section button:disabled{display:none}
.journey-advice{display:flex;gap:1rem;align-items:flex-start;margin-top:1rem;padding:1rem;background:var(--panel);border:1px solid var(--line);border-radius:6px}
.journey-advice h3{margin:0 0 .55rem}
.journey-cards-edit{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:.8rem}
#journey-status{font-weight:bold;min-height:1.5em}
.journey-related{margin-top:2rem}
@media(max-width:540px){.journey-advice{display:block}.journey-advice img{width:65px;height:auto}}
@media print{
 @page{size:A4 portrait;margin:12mm}
 .page-content:has(#journey-planner){max-width:none;margin:0;padding:0;background:#fff;color:#000}
 .page-content:has(#journey-planner)>h1,.page-content:has(#journey-planner)>:not(#journey-planner),#journey-planner>:not(#journey-print),.feedback-callout,.site-search,.everyday-nav,.page-end{display:none!important}
 #journey-planner #journey-print[hidden]{display:block!important;font:14pt/1.35 Arial,sans-serif;color:#000}
 #journey-print h1{font-size:24pt;margin:0 0 5mm}#journey-print h2{font-size:18pt;margin:4mm 0 2mm;break-after:avoid}#journey-print h3{font-size:15pt;margin:2mm 0;break-after:avoid}
 .journey-answer{margin:2mm 0;break-inside:avoid}
 .journey-answer p{font:inherit;border:1px solid #999;padding:2mm;min-height:8mm;white-space:pre-wrap;overflow-wrap:anywhere;margin:1mm 0 2mm}
 .journey-print-leg{border:1px solid #999;padding:3mm;margin:2mm 0}
 .journey-print-photo{display:block;max-width:100%;max-height:55mm;object-fit:contain;margin:2mm 0}
 .journey-print-cards{break-before:page}.journey-print-cards:first-child{break-before:auto}
 .journey-pocket-grid{display:flex;flex-wrap:wrap;align-items:flex-start;gap:3mm}
 .journey-pocket-card{box-sizing:border-box;width:85mm;min-height:55mm;max-width:100%;border:1px dashed #444;padding:3mm;break-inside:avoid;overflow-wrap:anywhere}
 #journey-print .journey-pocket-card h3{font-size:13pt;margin:0 0 2mm;line-height:1.2}
 #journey-print .journey-pocket-card p{font:12pt/1.3 Arial,sans-serif;margin:1mm 0;white-space:pre-wrap}
 .journey-card-icon,.journey-pocket-card .journey-print-photo{width:15mm;height:13mm;object-fit:contain;float:right;margin:0 0 2mm 2mm}
 #journey-print .journey-credit{font:10pt Arial,sans-serif}
}
