/* A single notebook for the road and the return. All long pages scroll inside it. */
#notebook-preview{margin:16px 0 4px}
.notebook-preview-card{display:flex;gap:14px;text-align:left;width:100%;padding:17px 15px;background:#efeddf;border-color:#d7d8c5;border-radius:5px 15px 15px 5px;box-shadow:inset 5px 0 #9baa8e,0 4px 12px #35483d08}
.notebook-preview-card:hover{background:#e9eddc}
.notebook-preview-icon{display:grid;place-items:center;flex:0 0 36px;height:46px;margin-top:5px;border:1px solid #9aaa8d;border-radius:3px 8px 8px 3px;color:#6f8568;font:26px Georgia,serif}
.notebook-preview-card>span:last-child{min-width:0}
.notebook-preview-card small{display:block;font-size:10px;letter-spacing:.6px;color:var(--sage)}
.notebook-preview-card strong{display:block;font:20px/1.5 Georgia,'Microsoft YaHei',serif;margin:3px 0 5px}
.notebook-preview-copy{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.8;color:#757c6c}
.notebook-preview-card em{display:block;margin-top:9px;font-size:11px;font-style:normal;color:var(--ink)}
#trip-notebook.notebook-dialog{width:min(900px,94vw);max-width:900px;height:min(760px,88dvh);max-height:88dvh;padding:0;overflow:hidden;border-radius:19px;background:#f9f6ec}
#trip-notebook[open]{display:flex;flex-direction:column}
.notebook-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px 15px;border-bottom:1px solid #dfe0d0;flex:none;background:#f2f1e4}
.notebook-header h2{font-size:24px;margin:4px 0 0;overflow-wrap:anywhere}
.notebook-close{align-self:flex-start;flex:0 0 40px;height:40px;display:grid;place-items:center;font-size:24px;padding:0;background:#fffdf5}
.notebook-toolbar{flex:none;padding:12px 28px;border-bottom:1px solid var(--line)}
.notebook-toolbar select{width:100%;max-width:380px;border:1px solid var(--line);border-radius:9px;padding:9px 12px;background:#fffdf6;color:var(--ink);font:inherit;font-size:12px;line-height:1.5;min-height:42px}
.notebook-scroll{flex:1;min-height:0;overflow:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 28px 34px;background:linear-gradient(90deg,#6f856805 1px,transparent 1px) 0 0/28px 28px}
.notebook-page{min-width:0;overflow-wrap:anywhere}
.notebook-page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:var(--muted);margin-bottom:17px}
.notebook-status{color:var(--sage);font-weight:700}
.notebook-cover{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:26px;align-items:center}
.notebook-cover-art{position:relative;transform:rotate(-2deg);padding:7px;background:#fffdf5;box-shadow:0 5px 13px #4b523914;border:1px solid #e7e4d4;border-radius:3px}
.notebook-cover-art>img{display:block;aspect-ratio:1.5;width:100%;object-fit:cover;border-radius:2px}
.notebook-cover-art>span{display:block;padding:9px 7px 3px;font:italic 15px/1.4 Georgia,'Microsoft YaHei',serif;color:#66795b}
.notebook-intro h3{font:24px/1.4 Georgia,'Microsoft YaHei',serif;margin:9px 0 12px}
.notebook-intro p{font-size:14px;line-height:1.9;margin:0;color:#5e6b59;white-space:pre-line}
.notebook-intro small{display:block;font-size:10px;line-height:1.8;color:var(--muted);margin-top:12px}
.notebook-bag{margin:26px 0;padding:14px 0;border-block:1px solid var(--line)}
.notebook-bag>span{font-size:9px;font-weight:700;letter-spacing:1.2px;color:var(--sage)}
.notebook-bag>div{display:flex;flex-wrap:wrap;gap:9px 18px;margin-top:7px}
.notebook-bag>div>span{display:flex;align-items:center;gap:7px;font-size:11px}
.notebook-bag img{width:30px;height:30px;object-fit:contain}
.notebook-page h4{font-size:13px;font-weight:600;letter-spacing:.3px;margin:23px 0 13px}
.notebook-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.notebook-card{min-width:0;background:#fffdf6;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.notebook-card>button{padding:0;width:100%;border:0;border-radius:0;background:none;text-align:left}
.notebook-card>button img{display:block;width:100%;aspect-ratio:1.65;object-fit:cover}
.notebook-card>button>span{display:block;padding:11px}
.notebook-card strong{display:block;font-size:12px;line-height:1.6;font-weight:600}
.notebook-card small{display:block;font-size:10px;color:var(--sage);margin-top:6px}
.notebook-card details{padding:0 11px 11px}
.notebook-card summary{cursor:pointer;font-size:10px;color:var(--muted)}
.notebook-card details p{font-size:12px;line-height:1.9;margin:10px 0 0}
.notebook-road{margin-top:27px}
.notebook-road ol{list-style:none;margin:0;padding:0 0 0 13px;border-left:1px solid #cbd2bc}
.notebook-road li{position:relative;padding:0 0 19px 12px}
.notebook-road li::before{content:'';position:absolute;left:-17px;top:6px;width:7px;height:7px;background:#91a27e;border:2px solid #f9f6ec;border-radius:50%;box-sizing:content-box}
.notebook-road time{display:block;font-size:10px;color:var(--muted)}
.notebook-road li p{font-size:13px;line-height:1.9;margin:5px 0 0;white-space:pre-line}
.notebook-caption{font-size:11px!important;line-height:1.8!important;color:var(--muted);margin:14px 0}
.notebook-choice{padding:14px;background:#e8eddc;border-radius:11px;margin:12px 0}
.notebook-choice p{font-size:12px;margin:0 0 10px}.notebook-choice button{font-size:12px;margin-right:7px}
.notebook-empty{padding:45px 12px;text-align:center;max-width:460px;margin:auto}
.notebook-empty>span{font:48px Georgia,serif;color:var(--sage)}
.notebook-empty h3{font:24px/1.5 Georgia,'Microsoft YaHei',serif;margin:18px 0 12px}
.notebook-empty p{font-size:13px;line-height:1.9;color:var(--muted)}
.notebook-empty button{margin-top:16px}
.notebook-postcard-back{margin:16px 62px 0 20px;background:transparent;border:0;font-size:12px;padding:8px 0;text-align:left;color:var(--sage)}
@media(max-width:540px){
 #mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr))}
 #mobile-nav small{font-size:9px}
 #trip-notebook.notebook-dialog{width:calc(100vw - 20px);height:calc(100dvh - 38px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(100dvh - 38px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:17px}
 .notebook-header{padding:16px 16px 12px;gap:10px}.notebook-header h2{font-size:20px}.notebook-header .eyebrow{font-size:8px;letter-spacing:1.6px}
 .notebook-toolbar{padding:10px 16px}.notebook-toolbar select{max-width:none;font-size:12px}
 .notebook-scroll{padding:17px 17px 28px;scrollbar-gutter:auto}
 .notebook-page-heading{font-size:9px;gap:8px;align-items:flex-start}.notebook-page-heading>span:last-child{text-align:right}
 .notebook-cover{grid-template-columns:1fr;gap:19px}.notebook-cover-art{max-width:300px;width:94%;margin:0 auto;transform:rotate(-1.5deg)}
 .notebook-cover-art>img{aspect-ratio:1.65}.notebook-cover-art>span{font-size:13px;padding:7px 5px 2px}
 .notebook-intro h3{font-size:22px;margin:7px 0 9px}.notebook-intro p{font-size:13px;line-height:1.85}.notebook-intro small{font-size:10px;margin-top:10px}
 .notebook-bag{margin:18px 0;padding:11px 0}.notebook-bag>div{gap:7px 12px}.notebook-bag>div>span{font-size:10px}.notebook-bag img{width:26px;height:26px}
 .notebook-card-grid{grid-template-columns:1fr;gap:10px}.notebook-card>button{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;min-height:83px}
 .notebook-card>button img{height:83px;aspect-ratio:auto;object-fit:cover}.notebook-card>button>span{padding:9px 11px}.notebook-card details{padding:0 12px 10px}.notebook-card summary{padding-top:8px}
 .notebook-road{margin-top:22px}.notebook-road li p{font-size:12px}.notebook-empty{padding:32px 4px}.notebook-empty h3{font-size:22px}
 .notebook-postcard-back{font-size:11px;margin-left:17px}
}

/* One natural scrolling surface on phones, tablets and desktops. */
#trip-notebook .notebook-flow{overflow:auto;overscroll-behavior:contain;min-height:0;width:100%}
#trip-notebook .notebook-header{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:12px;padding:16px}
#trip-notebook #notebook-back{position:static;inset:auto;display:grid;place-items:center;width:32px;height:32px;padding:6px;margin:0;color:#242424;background:transparent}
#trip-notebook .notebook-close{align-self:center;width:32px;height:32px;min-width:32px;padding:0;line-height:1;display:grid;place-items:center;color:#242424}
#trip-notebook .notebook-header h2{font-size:18px;margin:4px 0;line-height:1.35}
#trip-notebook .notebook-scroll{overflow:visible;flex:none}
