:root{color-scheme:light;--ink:#233f48;--muted:#536168;--paper:#fffef8;--ground:#f0ede4;--line:#c8cdc4;--honey:#efcb74;--coral:#c4513e;--blue:#e4eef0;--soft:#eaf0ef}
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;font-size:17px;line-height:1.55}
button,input,select{font:inherit;color:inherit}
button,a,input,select,summary{touch-action:manipulation}
button{min-height:44px;padding:10px 16px;border:1px solid #87958f;border-radius:6px;background:var(--paper);font-size:16px;line-height:1.3;cursor:pointer}
button:hover:not(:disabled){background:#e5ece8}
button:disabled{opacity:.48;cursor:default}
a{color:var(--ink);text-underline-offset:5px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid #a5412f;outline-offset:4px}
button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px}
.skip-link{position:absolute;left:16px;top:-100px;padding:12px;background:var(--paper);z-index:20}
.skip-link:focus{top:12px}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px 32px;background:var(--paper);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:20px}
.brand-mark{flex:none;width:48px;height:55px;fill:none;stroke:var(--ink);stroke-width:3;stroke-linejoin:round}
.brand-straps{stroke:var(--coral);stroke-width:4}
h1{font-size:29px;line-height:1.2;letter-spacing:-1px;margin:0 0 5px;font-weight:800}
.brand p{font-size:16px;color:var(--muted);margin:0}
.header-links{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.header-links span{font-size:14px;color:var(--muted)}
.header-links a{display:inline-flex;align-items:center;min-height:44px;font-size:16px}
.language-feedback:empty{display:none}
.language-feedback{margin:12px 16px;font-size:14px}
.workspace{max-width:1480px;margin:auto;padding:24px 32px;display:grid;grid-template-columns:326px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:32px;row-gap:14px;align-items:start}
.preparation{grid-column:1;grid-row:1 / span 2;background:var(--paper);border:1px solid var(--line);border-radius:10px}
.preparation summary{position:relative;cursor:pointer;min-height:44px;padding:21px 40px 12px 22px;list-style:none}
.preparation summary::-webkit-details-marker{display:none}
.preparation summary:after{content:'+';position:absolute;right:20px;top:23px;font-size:23px;line-height:1}
.preparation details[open] summary:after{content:'−'}
.summary-title{display:block;font-size:23px;font-weight:750;letter-spacing:-.6px;line-height:1.3}
.summary-kind{display:none}
.summary-action{display:block;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:3px;margin-top:7px}
#preparation-summary{display:block;color:var(--muted);font-size:12px;margin-top:7px;overflow-wrap:anywhere}
.preparation-content{padding:0 22px 20px}
.rail-intro{color:var(--muted);font-size:16px;margin:0 0 12px}
.sample-badge{font-size:14px;font-weight:650;background:#f5e4b1;color:#634915;border-radius:4px;padding:7px 10px;margin:0 0 23px}
.sample-badge.customized{background:var(--soft);color:var(--ink)}
.field{margin-bottom:20px}
.field label,.difficulty legend{display:block;font-size:14px;font-weight:700;margin-bottom:7px}
input[type=text],select{width:100%;min-height:48px;border:1px solid #7e8b8d;border-radius:5px;padding:10px 12px;background:#fff;font-size:17px}
.help{font-size:12px;line-height:1.55;color:var(--muted);margin:8px 0 0}
.field-feedback{font-size:12px;font-weight:650;margin:5px 0 0;overflow-wrap:anywhere}
.difficulty{border:0;padding:0;margin:0}
.difficulty legend{padding:0}
.preset{display:flex;gap:12px;align-items:flex-start;padding:11px 12px;margin:0 0 10px;border:1px solid #a2acaa;border-radius:6px;cursor:pointer}
.preset:has(input:checked){background:var(--soft);border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.preset input{width:19px;height:19px;flex:none;margin:3px 0 0;accent-color:var(--ink)}
.preset strong{display:block;font-size:16px;line-height:1.5}
.preset small{display:block;font-size:12px;line-height:1.5;color:#40575d;margin-top:3px}
.primary,button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink);font-weight:650}
.primary:hover:not(:disabled),button[aria-pressed=true]:hover{background:#355963}
.wide{display:block;width:100%}
.finish-editing{display:none;margin-bottom:10px}
.print-help{margin:10px 0 13px}
.reset-button{margin-top:10px;font-size:14px}
.local-note{text-align:center;margin-top:12px}
.edition-bar{grid-column:2;grid-row:1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.edition-bar button{padding:12px 21px}
#edition-detail{margin-left:auto;font-size:14px;color:var(--muted)}
.preview{grid-column:2;grid-row:2;min-width:0;scroll-margin-top:12px}
.page-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:19px}
.page-strip button{text-align:left;padding:8px 10px;min-height:61px;border-color:var(--line);border-radius:5px;font-size:14px;line-height:1.35}
.page-strip button span{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.page-strip button[aria-current=page]{background:var(--honey);border-color:#8b6b2a;font-weight:750}
.page-strip button[aria-current=page] span{color:#58451f}
.page-strip.guide-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
.proof-label{max-width:690px;margin:0 auto 9px;display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}
.proof-label span:first-child{font-weight:750}
.sheets{max-width:690px;margin:auto}
.sheet{display:none;background:var(--paper);border:1px solid #c6cabc;box-shadow:5px 5px 0 #e2e2d7,9px 9px 0 #d6d8cb;padding:32px 38px;min-height:718px;overflow-wrap:anywhere}
.sheet.is-current{display:flex;flex-direction:column}
.sheet-heading{display:flex;justify-content:space-between;align-items:baseline;gap:15px;font-size:12px;letter-spacing:1.2px;font-weight:700;text-transform:uppercase;color:var(--muted);margin-bottom:24px}
.sheet h2{font-size:34px;line-height:1.14;letter-spacing:-1px;font-weight:800;margin:0 0 19px;max-width:540px}
.sheet h3{font-size:19px;line-height:1.3;margin:19px 0 7px}
.sheet p{margin:0 0 15px;font-size:17px;line-height:1.6}
.sheet .lede{font-size:17px;line-height:1.6}
.sheet .task{border-left:4px solid var(--coral);padding-left:13px;margin:5px 0 20px;font-weight:650}
.sheet-footer{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-top:auto;padding-top:20px;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
.sheet-footer span:first-child{font-weight:700}
.transition{margin-top:15px!important}
.story-art{width:100%;height:244px;margin:0 0 13px;display:block}
.illustration{stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.paper-fill{fill:var(--paper)}
.honey-fill{fill:#e8c46e}
.honey-dark{fill:#d4aa4e}
.coral-fill{fill:var(--coral)}
.blue-fill{fill:var(--blue)}
.brown-fill{fill:#c29969}
.cream-fill{fill:#e8c89a}
.ink-fill{fill:var(--ink)}
.blank-fill{fill:none}
.soft-fill{fill:#e3e7e2}
.no-stroke{stroke:none}
.thin-stroke{stroke-width:2}
.white-stroke{stroke:#ffe0b9;stroke-width:4}
.item-icon{display:block;width:95px;height:95px;margin:auto}
.packing-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 19px}
.packing-option{border:1.5px solid #89958e;border-radius:50%;padding:10px 6px 12px;text-align:center;min-height:140px}
.packing-option span{display:block;font-size:16px;font-weight:650}
.packing-line{border-bottom:2px solid #87958f;min-height:37px;margin-bottom:20px;font-size:16px}
.luggage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px 14px;margin:16px 0 25px;padding:14px 0}
.luggage-grid .item-icon{width:100%;height:auto;max-width:105px}
.answer-space{display:flex;align-items:center;gap:14px;font-size:18px;font-weight:700;margin-bottom:24px}
.answer-box{display:inline-block;border:2px solid var(--ink);width:75px;height:54px;background:#fff}
.path-diagram{display:block;width:100%;max-height:340px;margin:0 auto 10px}
.path-track{fill:none;stroke:var(--ink);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.path-node{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
.path-label{fill:var(--ink);font-family:system-ui,sans-serif;font-size:20px;font-weight:700;text-anchor:middle;dominant-baseline:middle}
.path-endpoint{fill:var(--honey)}
.sheet .small-instruction{font-size:14px;color:var(--muted)}
.drawing-window{height:320px;max-width:410px;width:100%;margin:2px auto 22px;border:3px solid var(--ink);border-radius:95px;box-shadow:inset 0 0 0 9px var(--paper),inset 0 0 0 11px #9aa8a5;background:#fff}
.closing-art{height:190px}
.memory-space{height:140px;border:1.5px dashed #87958f;border-radius:7px;margin:6px 0 20px}
.guide-sheet h2{font-size:31px}
.guide-sheet p,.guide-sheet li{font-size:16px}
.guide-sheet ol{padding-left:23px;margin:0 0 18px}
.guide-sheet li{padding-left:4px;margin-bottom:10px}
.guide-label{font-size:13px!important;text-transform:uppercase;letter-spacing:1px;font-weight:700;color:#95402e}
.guide-summary{padding:13px 16px;background:var(--soft);border-left:4px solid var(--ink);margin:0 0 20px}
.guide-summary p{margin:0}
.key-block{border-top:1px solid var(--line);padding:15px 0}
.key-block h3{margin:0 0 8px}
.key-block p:last-child{margin-bottom:0}
.route-answer{font-weight:750;font-size:20px!important;letter-spacing:.2px}
.pagination{display:grid;grid-template-columns:110px minmax(0,1fr) 110px;align-items:center;gap:14px;max-width:690px;margin:26px auto 0}
.pagination p{text-align:center;font-size:14px;line-height:1.5;margin:0}
.pagination p span{display:block;font-size:12px;color:var(--muted)}
.preview-print{display:none}
.preview-note{font-size:12px;text-align:center;color:var(--muted);margin:17px 0 0}
.site-footer{max-width:1480px;margin:auto;padding:0 32px 24px;font-size:12px;color:var(--muted)}
dialog{width:min(460px,calc(100% - 32px));padding:28px;border:1px solid var(--ink);border-radius:10px;background:var(--paper);color:var(--ink);box-shadow:0 15px 70px #172d3540}
dialog::backdrop{background:#172d3580}
dialog h2{margin:0 0 12px;font-size:25px;line-height:1.25}
dialog p{font-size:16px;margin:0 0 23px}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.noscript{position:fixed;bottom:0;left:0;right:0;background:var(--paper);border-top:2px solid var(--ink);padding:20px;margin:0}
.loading{padding:35px;background:var(--paper)}
@media(min-width:1250px){.workspace{grid-template-columns:350px minmax(0,1fr)}}
@media(max-width:1100px){.workspace{padding:22px;gap:20px;grid-template-columns:292px minmax(0,1fr)}.masthead{padding:22px}.header-links{gap:16px}.header-links span{display:none}.page-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.page-strip button{min-height:54px}.sheet{padding:28px;min-height:700px}.edition-bar button{padding:11px 14px}#edition-detail{margin-left:0;width:100%}.preparation summary{padding-left:19px}.preparation-content{padding-left:19px;padding-right:19px}.summary-title{font-size:21px}}
@media(max-width:760px){
  html{scroll-padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  body{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .preview-print{display:block;position:fixed;z-index:10;bottom:0;left:0;right:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}
  .masthead{padding:18px 16px;align-items:flex-start;gap:12px;flex-wrap:wrap}
  .brand{gap:11px}.brand-mark{width:32px;height:40px}
  h1{font-size:23px;letter-spacing:-.65px}
  .brand p{font-size:14px;max-width:300px}
  .header-links{width:100%;justify-content:space-between}.header-links a{font-size:14px;white-space:normal}
  .workspace{display:flex;flex-direction:column;padding:18px 16px;gap:16px}
  .edition-bar{width:100%;gap:8px}.edition-bar button{flex:1;padding:12px 8px;font-size:15px}
  #edition-detail{font-size:12px}
  .preparation{width:100%;border-radius:7px}
  .preparation summary{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:4px;align-items:center;padding:12px 16px}
  .preparation summary:after{content:none}
  .preparation details[open] summary:after{content:none}
  .summary-title{display:none}
  .summary-kind{display:block;grid-column:1;grid-row:1;font-size:12px;font-weight:750;color:#634915}
  .summary-kind.customized{color:var(--ink)}
  .summary-action{grid-column:2;grid-row:1;margin:0;font-size:14px}
  #preparation-summary{grid-column:1 / -1;grid-row:2;margin:0;line-height:1.5}
  .preparation details[open] summary{border-bottom:1px solid var(--line);margin-bottom:16px}
  .preparation-content{padding:0 18px 18px}
  .preparation-content .field{margin-bottom:18px}
  .finish-editing{display:block;font-weight:650;background:var(--soft)}
  .preview{width:100%}
  .page-strip{gap:6px;margin-bottom:15px}
  .page-strip button{font-size:14px;padding:8px;min-height:60px}
  .proof-label{font-size:12px}
  .sheet{padding:24px 21px;min-height:660px;box-shadow:3px 3px 0 #d6d8cb}
  .sheet-heading{margin-bottom:21px;font-size:12px;letter-spacing:.6px}
  .sheet h2{font-size:31px}.sheet p,.sheet .lede{font-size:17px}
  .story-art{height:auto;min-height:165px;margin-top:8px;margin-bottom:17px}
  .closing-art{height:170px;min-height:0}
  .packing-grid{gap:13px}.packing-option{min-height:127px}.item-icon{width:80px;height:80px}
  .luggage-grid{gap:15px 8px;grid-template-columns:repeat(3,minmax(0,1fr))}
  .path-diagram{margin-top:10px}
  .drawing-window{height:300px;border-radius:78px}
  .sheet-footer{font-size:12px;gap:10px}
  .pagination{grid-template-columns:88px minmax(0,1fr) 88px;gap:9px;margin-top:21px}
  .pagination button{font-size:14px;padding:11px 8px}.pagination p{font-size:13px}
  .guide-sheet h2{font-size:29px}.guide-sheet p,.guide-sheet li{font-size:16px}
  .site-footer{padding:0 16px 23px}.guide-strip button{font-size:14px}.route-answer{font-size:18px!important}
}
@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .15s ease}}
/* Switch edition text and background together to preserve contrast. */
.edition-bar button{transition:none}
@page{size:auto;margin:15mm}
@media print{
  :root{--paper:#fff;--ink:#172e35;--muted:#425459;--line:#a7b0aa}
  html,body{margin:0;padding:0;background:#fff;font-size:16px}
  body{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .masthead,.skip-link,.edition-bar,.preparation,.page-strip,.proof-label,.pagination,.preview-print,.preview-note,.site-footer,dialog,.noscript,.language-feedback{display:none!important}
  .workspace,.preview,.sheets{display:block;max-width:none;width:auto;margin:0;padding:0}
  .sheet,.sheet.is-current{display:flex!important;flex-direction:column;min-height:0;width:100%;height:auto;border:0;box-shadow:none;padding:0;margin:0;break-after:page;page-break-after:always;overflow:visible}
  .sheet:last-child{break-after:auto;page-break-after:auto}
  .sheet-heading{margin-bottom:7mm;font-size:12px}
  .sheet h2,.guide-sheet h2{font-size:29px;margin-bottom:5mm;max-width:none}
  .sheet p,.sheet .lede{font-size:17px;line-height:1.5;margin-bottom:4mm}
  .sheet h3{font-size:18px;margin-top:5mm;margin-bottom:2mm}
  .sheet .task{margin-top:2mm;margin-bottom:5mm}
  .story-art{height:65mm;min-height:0;width:100%;margin:2mm 0 5mm}
  .closing-art{height:48mm}
  .sheet-footer{margin-top:6mm;padding-top:4mm;font-size:12px}
  .packing-grid{gap:5mm;margin-bottom:5mm;grid-template-columns:1fr 1fr}
  .packing-option{min-height:0;padding:3mm}
  .item-icon{width:23mm;height:23mm}
  .luggage-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5mm;margin:5mm 0;padding:3mm 0}
  .luggage-grid .item-icon{height:25mm;width:100%;max-width:none}
  .answer-space{margin-bottom:5mm}
  .path-diagram{width:100%;height:82mm;max-height:none;margin:0 0 4mm}
  .drawing-window{height:88mm;max-width:110mm;margin:3mm auto 5mm;border-radius:25mm;box-shadow:inset 0 0 0 2mm #fff,inset 0 0 0 2.5mm #9aa8a5}
  .memory-space{height:34mm;margin-bottom:5mm}
  .guide-sheet p,.guide-sheet li{font-size:16px;line-height:1.45}
  .guide-sheet ol{margin-bottom:5mm}
  .guide-sheet li{margin-bottom:3mm}
  .guide-summary{padding:3mm 4mm;margin-bottom:5mm}
  .key-block{padding:4mm 0}
  .key-block h3{margin-top:0}
  .route-answer{font-size:20px!important}
  .sheet-heading,.packing-grid,.luggage-grid,.path-diagram,.drawing-window,.key-block{break-inside:avoid}
}
