/* User's reference: warm paper, seven pastel chapters, visible photo collages.
   Native CSS, existing handwritten fonts. Variance 8 / motion 2 / density 7. */
.atlas-cover:has(.story-atlas){padding:24px 18px 20px;background-color:#fff7e7;border:1px solid #ceba8c;overflow:clip}
.atlas-cover:has(.story-atlas) .atlas-cover-heading{position:relative;padding:5px 0 18px}
.atlas-cover:has(.story-atlas) .atlas-cover-heading:before{content:'✦';position:absolute;left:4%;top:16px;font-size:35px;color:#b8873e;transform:rotate(-14deg)}
.atlas-cover:has(.story-atlas) .atlas-cover-heading:after{content:'❄';position:absolute;right:4%;top:26px;font-size:38px;color:#8c9e8a;transform:rotate(12deg)}
.atlas-cover:has(.story-atlas) .atlas-kicker{margin:0;color:#89634e;font-size:10px}
.atlas-cover:has(.story-atlas) h1{color:#6f3c24;font-size:clamp(38px,5vw,68px);line-height:1.3;letter-spacing:.035em;margin:9px 0 6px}
.atlas-cover:has(.story-atlas) .atlas-subtitle{font:20px/1.6 var(--hand);margin:0;color:#866948}
.atlas-cover:has(.story-atlas) .atlas-cover-ticket{background:#b9695e;color:#fff6df;border:0;transform:rotate(-1deg);max-width:450px;margin:12px auto 0;padding:8px 20px;clip-path:polygon(0 0,100% 0,97% 50%,100% 100%,0 100%,3% 50%)}
.atlas-cover:has(.story-atlas) .atlas-cover-ticket b{color:#fff8df;font-size:18px;letter-spacing:.07em}
.atlas-cover:has(.story-atlas) .atlas-intro{display:none}
.story-view-switch{display:flex;justify-content:center;gap:7px;margin:5px 0 0}
.story-view-switch button{min-height:44px;padding:9px 17px;border:1px solid #bca27b;border-radius:6px;background:#fffbed;color:#655139;font:600 13px/1.5 system-ui}
.story-view-switch button[aria-pressed=true]{background:#657a50;color:#fff9e6;border-color:#546641;box-shadow:2px 3px 0 #b7b494}
.story-view-note{text-align:center;font:12px/1.7 system-ui;color:#78694e;margin:10px 0 16px}
.story-atlas[data-story-mode=journal]>.atlas-region-tabs,.story-atlas[data-story-mode=journal]>.atlas-date-tabs,.story-atlas[data-story-mode=journal]>.atlas-selection,.story-atlas[data-story-mode=journal]>.atlas-photo-strip,.story-atlas[data-story-mode=journal]>.atlas-seven-days,.story-atlas[data-story-mode=journal]>.atlas-map-help{display:none}
.story-atlas[data-story-mode=journal] .atlas-canvas-wrap{display:grid;isolation:isolate;border:0;outline:0;box-shadow:none;border-radius:8px;background:#e4e9d7}
.story-atlas[data-story-mode=journal] .atlas-canvas{position:absolute;inset:0;height:100%;width:100%;min-width:0;border-radius:8px}
.story-atlas[data-story-mode=journal] .atlas-map-sticker{display:none}
.story-atlas[data-story-mode=journal] .google-journal-pin{width:10px!important;height:10px!important;border-radius:50%;padding:0;background:var(--pin-color);opacity:.6;box-shadow:none;transform:translate(-50%,-50%)}
.story-atlas[data-story-mode=journal] .google-journal-pin>*{display:none}
.story-atlas[data-story-mode=journal] .leaflet-marker-pane,.story-atlas[data-story-mode=journal] .leaflet-shadow-pane{visibility:hidden}
.story-map-board{position:relative;z-index:2;pointer-events:none;padding:12px 12px 65px;min-width:0}
.story-map-board button{pointer-events:auto;touch-action:pan-y;cursor:pointer}
.story-board-greeting{color:#745239;text-align:center;font:15px/1.8 var(--script);padding:8px 12px 14px;text-shadow:0 0 7px #fff,0 0 7px #fff}
.story-board-greeting span{color:#bd796d;padding:0 8px;font:14px system-ui}
.story-chapters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:22px 17px}
.story-day{position:relative;min-width:0;border:2px dashed var(--story-ink);border-radius:34px 44px 29px 42px;background:color-mix(in srgb,var(--story-paper) 89%,transparent);padding:18px 15px 14px;box-shadow:0 0 0 5px #fffbf0b8,1px 4px 0 #967a4320;isolation:isolate}
.story-day:before{content:'';position:absolute;top:-7px;left:calc(50% - 24px);width:48px;height:16px;background:color-mix(in srgb,var(--story-ink) 25%,#fff7df);transform:rotate(-5deg);opacity:.85;box-shadow:0 1px 0 #79674325}
.story-day:nth-child(even){border-radius:45px 28px 42px 27px;transform:rotate(.5deg)}
.story-day:nth-child(3n){transform:rotate(-.6deg)}
.story-day header{position:relative;margin-bottom:15px;min-width:0}
.story-day-heading{display:block;text-align:left;background:none;border:0;padding:0 34px 0 0;color:#503724;width:100%;min-height:64px}
.story-date{display:inline-flex;align-items:center;gap:15px;font:800 20px/1.3 system-ui;color:var(--story-ink);border-bottom:3px solid color-mix(in srgb,var(--story-ink) 35%,transparent);padding:0 2px 3px}
.story-date time{font-size:15px}
.story-day-heading h2{font:27px/1.3 var(--hand);color:#553c29;margin:7px 0 1px}
.story-day-en{font:14px/1.6 var(--script);color:var(--story-ink)}
.story-day-stamp{position:absolute;top:2px;right:1px;font-size:28px;transform:rotate(12deg)}
.story-stops{display:grid;grid-template-columns:repeat(var(--story-columns),minmax(0,1fr));gap:15px 15px;list-style:none;padding:0!important;margin:0!important}
.story-stops li{position:relative;min-width:0;margin:0;padding:0}
.story-stops li:not(:last-child):after{content:'↝';position:absolute;right:-15px;top:36px;font:bold 24px/1 var(--hand);color:#b95e4f;text-shadow:0 1px #fff5db}
.story-stops li:nth-child(3n):not(:last-child):after{content:'↙';right:0;top:auto;bottom:-12px}
.story-stop{display:block;position:relative;width:100%;padding:0;text-align:center;border:0;background:none;color:#553c29;min-width:0}
.story-picture{position:relative;display:block;width:100%;aspect-ratio:1.1;background:#fffdf4;padding:4px;box-shadow:1px 3px 5px #69523230;transform:rotate(-3deg);border-radius:2px}
.story-stops li:nth-child(even) .story-picture{transform:rotate(3deg)}
.story-picture:before{content:'';position:absolute;top:-5px;left:25%;width:47%;height:11px;background:#ffefba9c;transform:rotate(4deg);z-index:1}
.story-picture img{width:100%;height:100%;object-fit:cover;display:block;border-radius:1px}
.story-picture i{position:absolute;left:-4px;bottom:-5px;width:21px;height:21px;background:var(--story-ink);border:2px solid #fff8e8;color:white;border-radius:50%;font:700 10px/17px system-ui;text-align:center}
.story-stop strong{display:block;font:600 12px/1.45 system-ui;margin:9px -2px 2px;overflow-wrap:anywhere}
.story-stop small{display:block;color:#756049;font:9px/1.4 system-ui;overflow-wrap:anywhere}
.story-stop em{display:inline-block;font:10px/1.4 system-ui;color:#795c3f;margin-top:3px;border-bottom:1px dashed #af9670}
.story-photo-missing{display:grid;place-items:center;height:100%;font:12px system-ui;color:#796a53}
.story-day footer{display:flex;align-items:center;gap:10px;margin-top:16px;padding-top:9px;border-top:1px dashed color-mix(in srgb,var(--story-ink) 35%,transparent)}
.story-day footer p{flex:1;margin:0;color:#725b41;font:11px/1.65 system-ui;min-width:0}
.story-day footer button{font:600 11px/1.6 system-ui;color:#634e36;background:#fffaf0b3;border:1px solid #bda981;border-radius:5px;padding:7px 8px;min-height:44px;flex-shrink:0}
.story-day-7{grid-column:1/-1;max-width:100%}
.story-day-7 .story-stops{grid-template-columns:repeat(3,minmax(0,1fr));max-width:490px;margin:auto!important}
.story-map-footnote{font:11px/1.75 system-ui;text-align:center;margin:22px auto 0;padding:10px 14px;max-width:400px;background:#fff6e8e8;border:1px dashed #aa8a5e;border-radius:7px;color:#795e3e}
.story-atlas[data-story-mode=geography] .story-map-board{display:none}
.story-place-dialog{position:fixed;box-sizing:border-box;width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 36px);padding:18px;margin:auto;border:1px solid #bda77f;border-radius:15px;background:#fff8e7;color:#5b4937;box-shadow:0 15px 50px #382c3440;overflow:auto;overscroll-behavior:contain}
.story-place-dialog::backdrop{background:#3c352a85;backdrop-filter:blur(3px)}
.story-dialog-close{position:sticky;top:0;display:block;margin:-9px -8px 2px auto;z-index:3;background:#fff9ea;border:1px solid #aa9470;color:#69523e;width:40px;height:40px;border-radius:50%;font:27px/1 system-ui;cursor:pointer}
.story-place-dialog .atlas-popup>img{height:200px;max-height:30dvh;width:100%;object-fit:cover}
.story-locate{display:block;width:100%;min-height:44px;margin-top:14px;border:1px solid #576c4c;border-radius:6px;background:#687c56;color:#fffbea;font:600 13px/1.5 system-ui;padding:10px;cursor:pointer}
.story-atlas button:focus-visible,.story-place-dialog button:focus-visible{outline:3px solid #8e465e;outline-offset:4px}
@media(hover:hover){.story-stop:hover .story-picture{transform:rotate(0) translateY(-3px)}.story-picture{transition:transform .15s ease}.story-day-heading:hover h2{text-decoration:underline;text-decoration-color:var(--story-ink);text-underline-offset:5px}}
@media(max-width:760px){
 .atlas-cover:has(.story-atlas){padding:16px 9px 14px}
 .atlas-cover:has(.story-atlas) h1{font-size:39px;letter-spacing:.02em}
 .atlas-cover:has(.story-atlas) .atlas-cover-heading:before{font-size:20px;left:0;top:26px}
 .atlas-cover:has(.story-atlas) .atlas-cover-heading:after{font-size:20px;right:0;top:33px}
 .atlas-cover:has(.story-atlas) .atlas-kicker{font-size:8px;letter-spacing:.08em}
 .atlas-cover:has(.story-atlas) .atlas-subtitle{font-size:18px}
 .atlas-cover:has(.story-atlas) .atlas-cover-ticket{display:block;padding:7px 14px;margin-top:10px}
 .atlas-cover:has(.story-atlas) .atlas-cover-ticket b{font-size:16px}.atlas-cover:has(.story-atlas) .atlas-cover-ticket span{display:block;font-size:10px}
 .story-view-switch{gap:6px}.story-view-switch button{padding:9px 12px;font-size:12px}
 .story-view-note{font-size:11px;margin-bottom:11px}
 .story-map-board{padding:8px 9px 58px}.story-board-greeting{font-size:13px;padding-bottom:17px}
 .story-chapters{grid-template-columns:minmax(0,1fr);gap:24px}
 .story-day{padding:17px 12px 13px;border-radius:29px 38px 31px 23px}
 .story-day-heading h2{font-size:25px}.story-date{font-size:19px}
 .story-stops{gap:15px 13px}.story-stop strong{font-size:11px}.story-stop small{font-size:9px}
 .story-day-7 .story-stops{grid-template-columns:repeat(var(--story-columns),minmax(0,1fr))}
 .story-day footer{gap:6px}.story-day footer p{font-size:10px}.story-day footer button{font-size:10px;padding:6px}
}
@media(prefers-reduced-motion:reduce){.story-picture{transition:none}.story-stop:hover .story-picture{transform:none}}
