/* V2 visual worlds. Load after style.css. No filters on geography, cover or video. */
.app[data-theme],.memory-card[data-card-theme]{--surface:var(--paper);--muted:#52615b;--title-font:var(--sans);--title-weight:700;--card-radius:20px;--world-bg:linear-gradient(135deg,#eceae3,#d8e0d8);--cover-ink:var(--ink);--cover-shade:none;--map-water:#d8e8ea;--map-land:#eff0e7;--map-line:#84978c;--map-label:#263b35}
.app[data-theme=minimal],.memory-card[data-card-theme=minimal]{--paper:#f8f7f2;--soft:#ebece6;--ink:#252e29;--line:#cdd3c9;--surface:#fffdf8;--muted:#536056;--card-radius:6px;--world-bg:linear-gradient(150deg,#fcfaf5 0 67%,#e6e8df 67%);--trip-accent:#486653;--cover-ink:#252e29;--cover-shade:none;--title-font:var(--sans)}
.app[data-theme=film],.memory-card[data-card-theme=film]{--paper:#eef4e9;--soft:#dce8d6;--ink:#263e30;--line:#b8cbb4;--surface:#f8fbf4;--muted:#50664e;--card-radius:25px;--world-bg:radial-gradient(ellipse at 80% 10%,#b5ccad55,transparent 50%),linear-gradient(145deg,#f1f7eb,#cee0c6);--trip-accent:#416f59;--cover-ink:#263e30;--cover-shade:none;--title-font:Georgia,"Songti SC",serif;--title-weight:500;--map-water:#d1e7de;--map-land:#eaf1de}
.app[data-theme=atlas],.memory-card[data-card-theme=atlas]{--paper:#f0e6d0;--soft:#e4d8ba;--ink:#39342a;--line:#baad90;--surface:#f8efd9;--muted:#665944;--card-radius:3px;--world-bg:repeating-linear-gradient(0deg,#a6937320 0 1px,transparent 1px 28px),linear-gradient(135deg,#f4ecd7,#e7d8b5);--trip-accent:#215e61;--cover-ink:#39342a;--cover-shade:none;--title-font:Georgia,"Songti SC",serif;--title-weight:500;--map-water:#b6d2cb;--map-land:#ede3c9;--map-line:#9a8b6c;--map-label:#463d2c}
.app[data-theme=transit],.memory-card[data-card-theme=transit]{--paper:#f7f3f7;--soft:#e8e4ee;--ink:#2c2030;--line:#bfb6c8;--surface:#fffaff;--muted:#625567;--card-radius:2px;--world-bg:repeating-linear-gradient(90deg,#bcaeb633 0 1px,transparent 1px 36px),repeating-linear-gradient(0deg,#bcaeb633 0 1px,transparent 1px 36px),linear-gradient(125deg,#f9e8f2,#e4e5ee);--trip-accent:#bd237b;--cover-ink:#2c2030;--cover-shade:none;--title-font:"Arial Narrow",Impact,var(--sans);--map-water:#d4daee;--map-land:#f3edf3;--map-line:#a194ab;--map-label:#34253a}
.app[data-theme=noir],.memory-card[data-card-theme=noir]{--paper:#111823;--soft:#242d3a;--ink:#f1f4f9;--line:#536071;--surface:#1d2735;--muted:#bac6d5;--card-radius:9px;--world-bg:radial-gradient(ellipse at 90% 0,#1c567957,transparent 65%),linear-gradient(140deg,#273344,#0c141f);--trip-accent:#edc477;--cover-ink:#f1f4f9;--cover-shade:none;--title-font:var(--sans);--map-water:#142738;--map-land:#344758;--map-line:#637a8d;--map-label:#f3f6fa}
.app[data-theme=watercolor],.memory-card[data-card-theme=watercolor]{--paper:#eef8fc;--soft:#d8edf3;--ink:#244452;--line:#aac8d4;--surface:#f8fcff;--muted:#4f6c79;--card-radius:24px 7px 24px 7px;--world-bg:radial-gradient(ellipse at 3% 2%,#70c9e19c,transparent 40%),radial-gradient(ellipse at 100% 100%,#81d9c777,transparent 40%),linear-gradient(130deg,#f8fcff,#dceff6);--trip-accent:#15728b;--cover-ink:#244452;--cover-shade:none;--title-font:Georgia,"Songti SC",serif;--title-weight:500;--map-water:#b2dfef;--map-land:#f4f8ee;--map-line:#7c9eac;--map-label:#244452}
.app[data-theme]{background:var(--paper);color:var(--ink)}
.app[data-theme] :is(.memory-card,.detail-hero,.style-preview),.memory-card[data-card-theme]{background-image:var(--world-bg);background-color:var(--soft);color:var(--cover-ink);border-radius:var(--card-radius);border:1px solid var(--line);border-top:4px solid var(--trip-accent);box-shadow:none;filter:none}
.app[data-theme] :is(.memory-card,.detail-hero,.style-preview):before,.memory-card[data-card-theme]:before{background:var(--cover-shade)}
/* Real custom hero remains readable over its photograph. */
.app[data-theme] :is(.memory-card,.detail-hero,.style-preview)[data-has-image=true]{color:#fff;--cover-shade:linear-gradient(180deg,#0c142b25,#0c142bdf)}
.app[data-theme] .detail-hero[data-has-image=true]:before{opacity:1}
.app[data-theme] .detail-hero h1,.app[data-theme] .style-preview strong,.memory-card[data-card-theme] strong,.app[data-theme] .relive-route-copy h1,.app[data-theme] .relive-place h1{font-family:var(--title-font);font-weight:var(--title-weight);letter-spacing:-.035em;line-height:1.04;overflow-wrap:anywhere}
.app[data-theme] :is(.intro h1,.route-list strong,.small-card b,.section-head h2){font-family:var(--title-font);line-height:1.15}
.app[data-theme] .style-preview strong{font-size:clamp(27px,8vw,40px);max-width:100%}
.memory-card[data-card-theme] strong{font-size:clamp(30px,10vw,48px);max-width:calc(100% - 36px)}
.app[data-theme] :is(.small-card,.settings-card,.style-controls,.detail-section,.stop-card,.memory-item,.facts>div,.empty-copy,.legacy-note,.audio-settings,.photo-look-controls){background:var(--surface);color:var(--ink);border-color:var(--line)}
.app[data-theme] :is(.small-card span,.small-card i,.settings-card p,.setting-note,.style-controls label,.soundtrack-section label,.soundtrack-section .setting-note,.stop-info p,.facts small,.eyebrow,.map-hint,.style i,.style>span,.route-list span,.route-list>p,.intro p,.brand small,.page-title small,.empty-state i){color:var(--muted)}
.app[data-theme] :is(input,select,textarea){background:var(--surface);color:var(--ink);border-color:var(--line);accent-color:var(--trip-accent)}
.app[data-theme] :is(nav,.detail-tabs,.style){background:var(--surface);color:var(--ink);border-color:var(--line)}
.app[data-theme] :is(nav button,.detail-tabs button,.round,.style em){color:var(--ink)}
.app[data-theme] .style.selected,.app[data-theme] .detail-tabs button.selected{background:var(--soft);border-color:var(--trip-accent);box-shadow:inset 3px 0 var(--trip-accent)}
.app[data-theme] :is(.actions button,.section-head button,.wide-action,.relive-launch,.settings-card>button,.style-controls #style-reset){background:var(--trip-accent);color:var(--accent-ink);border-color:var(--trip-accent)}
.app[data-theme] .progress i{background:var(--trip-accent)}
.app[data-theme] .relive-progress progress{accent-color:var(--trip-accent)}
.app[data-theme] :focus-visible{outline:3px solid var(--trip-accent);outline-offset:3px}
.app[data-theme] .memory-card em,.memory-card[data-card-theme] em{background:var(--surface);color:var(--ink);border:1px solid var(--trip-accent)}
.app[data-theme] .relive-route{background:var(--paper);color:var(--ink)}
.app[data-theme] .relive-route-copy{color:var(--ink);background:var(--surface);border-left:3px solid var(--trip-accent);text-shadow:none}
.app[data-theme] .relive-route-copy :is(p,small){color:var(--muted)}
.app[data-theme] .relive-journal{background:var(--paper);color:var(--ink);border:1px solid var(--line)}
.app[data-theme] .relive-journal blockquote{font-family:var(--title-font);color:var(--ink);line-height:1.75}
.app[data-theme] .relive-journal small{color:var(--muted)}
.app[data-theme] .relive-media :is(.relive-place,p){background:#101b2ce6;color:#fff;border-color:var(--trip-accent);text-shadow:none;backdrop-filter:none}
.app[data-theme] .relive-media-slot img,.app[data-theme] .photo-look-preview img{filter:var(--photo-look,none)}
.app[data-theme] .media-thumb img{filter:none}
/* Preset decoration stays at the edges, outside text and cartography. */
.app[data-theme=film] :is(.detail-hero,.style-preview),.memory-card[data-card-theme=film]{box-shadow:inset 0 0 0 7px #ffffff55}
.app[data-theme=film] .relive-journal{background-image:repeating-linear-gradient(0deg,transparent 0 31px,#769b7e12 31px 32px)}
.app[data-theme=atlas] :is(.detail-hero,.style-preview),.memory-card[data-card-theme=atlas]{border-bottom:6px double var(--trip-accent)}
.app[data-theme=transit] :is(.detail-hero,.style-preview),.memory-card[data-card-theme=transit]{border-bottom:2px dashed var(--trip-accent)}
.app[data-theme=transit] .relive-route-copy{border-radius:0;border-top:3px solid var(--trip-accent)}
.app[data-theme=noir] :is(.detail-hero,.style-preview),.memory-card[data-card-theme=noir]{box-shadow:inset 0 1px 0 #98ccff25}
.app[data-theme=watercolor] :is(.detail-hero,.style-preview),.memory-card[data-card-theme=watercolor]{box-shadow:inset 0 0 22px #55b6d225}
/* Overrides apply to title hierarchy and journals, never to the map's labels. */
.app[data-typography=serif],[data-typography=serif]{--title-font:Georgia,"Songti SC",serif;--title-weight:500}
.app[data-typography=sans],[data-typography=sans]{--title-font:var(--sans);--title-weight:750}
.app[data-typography=transit],[data-typography=transit]{--title-font:"Arial Narrow",Impact,var(--sans);--title-weight:700}
.app[data-typography=soft],[data-typography=soft]{--title-font:Palatino,"Palatino Linotype","Songti SC",serif;--title-weight:500}
.app[data-title-style=clean] :is(.detail-hero h1,.style-preview strong,.relive-route-copy h1),.memory-card[data-title-style=clean] strong{letter-spacing:-.045em;font-style:normal}
.app[data-title-style=editorial] :is(.detail-hero h1,.style-preview strong,.relive-route-copy h1),.memory-card[data-title-style=editorial] strong{letter-spacing:-.02em;font-style:italic;font-weight:500}
.app[data-title-style=ticket] :is(.detail-hero h1,.style-preview strong,.relive-route-copy h1),.memory-card[data-title-style=ticket] strong{letter-spacing:.015em;text-transform:uppercase;border-bottom:2px solid var(--trip-accent);padding-bottom:8px;font-size:clamp(24px,8vw,38px)}
.app[data-cover-layout=bottom] :is(.detail-hero,.style-preview){justify-content:flex-end;align-items:flex-start;text-align:left;padding-top:66px}
.app[data-cover-layout=center] :is(.detail-hero,.style-preview){justify-content:center;align-items:center;text-align:center;padding-block:35px}
.app[data-cover-layout=editorial] :is(.detail-hero,.style-preview){justify-content:flex-start;align-items:flex-start;text-align:left;padding:30px 22px;gap:18px;min-height:275px}
.app[data-cover-layout=editorial] .style-preview i{margin-top:auto;max-width:70%;padding-top:12px;border-top:1px solid var(--trip-accent)}
.memory-card[data-cover-layout=center] strong{top:38%;bottom:auto;left:18px;right:18px;text-align:center}
.memory-card[data-cover-layout=center] i{bottom:60px;left:18px;right:18px;text-align:center}
.memory-card[data-cover-layout=editorial] strong{top:70px;bottom:auto;font-size:40px}
.memory-card[data-cover-layout=editorial] i{bottom:54px;padding-top:14px;border-top:1px solid var(--trip-accent)}
/* Map treatment is palette/line styling; SVG coordinate transforms remain untouched. */
.app[data-map-treatment=clean]{--map-water:#dce9ed;--map-land:#f1f1e9;--map-line:#9aa79d;--map-label:#293932}
.app[data-map-treatment=botanical]{--map-water:#d1e7de;--map-land:#eaf1de;--map-line:#8ca38e;--map-label:#304a37}
.app[data-map-treatment=archival]{--map-water:#b6d2cb;--map-land:#ede3c9;--map-line:#9a8b6c;--map-label:#463d2c}
.app[data-map-treatment=transit]{--map-water:#d4daee;--map-land:#f3edf3;--map-line:#a194ab;--map-label:#34253a}
.app[data-map-treatment=night]{--map-water:#142738;--map-land:#344758;--map-line:#637a8d;--map-label:#f3f6fa}
.app[data-map-treatment=watercolor]{--map-water:#b2dfef;--map-land:#f4f8ee;--map-line:#7c9eac;--map-label:#244452}
.style-preview .preview-map{position:relative;inset:auto;width:100%;height:140px;flex-shrink:0;border:1px solid var(--line);border-radius:10px;background:var(--map-water);order:1}
.style-preview .preview-motion{font-size:11px;line-height:1.4;color:inherit;border-left:3px solid var(--trip-accent);padding-left:8px}
.style-preview .preview-copy{position:relative;order:0;display:flex;flex-direction:column;gap:8px;max-width:100%;min-width:0}
.app[data-theme] .style-preview .preview-copy h2{margin:0;font-family:var(--title-font);font-weight:var(--title-weight);font-size:clamp(26px,8vw,38px);line-height:1.08;letter-spacing:-.03em;color:inherit;overflow-wrap:anywhere}
.app[data-theme] .style-preview .preview-copy :is(p,small){margin:0;font-size:12px;line-height:1.5;color:inherit;letter-spacing:.02em;overflow-wrap:anywhere}
.app[data-title-style=editorial] .style-preview .preview-copy h2{font-style:italic;font-weight:500}
.app[data-title-style=ticket] .style-preview .preview-copy h2{text-transform:uppercase;letter-spacing:.02em;border-bottom:2px solid var(--trip-accent);padding-bottom:8px;font-size:28px}
.app[data-cover-layout=editorial] .style-preview .preview-copy{order:-1;margin-bottom:auto;max-width:86%}
.app[data-cover-layout=center] .style-preview .preview-copy{align-items:center}
.app[data-theme] .style-preview{height:auto;min-height:310px;gap:14px}
.style-preview .preview-meta{font:11px/1.45 var(--sans);padding-top:8px;border-top:1px solid var(--trip-accent);width:100%;color:inherit}
.style-preview .preview-progress{width:100%;height:3px;background:var(--line);overflow:hidden}
.style-preview .preview-progress:after{content:"";display:block;width:30%;height:100%;background:var(--trip-accent);animation:preview-route 6s ease-in-out infinite}
.app[data-rhythm=slow] .preview-progress:after{animation-duration:10s}
.app[data-rhythm=quick] .preview-progress:after{animation-duration:3s}
.app[data-transition=slide] .style-preview .preview-copy{animation:preview-slide 6s ease-in-out infinite}
.app[data-transition=pageTurn] .style-preview .preview-copy{animation:preview-page 6s ease-in-out infinite;transform-origin:left center}
.app[data-transition=fade] .style-preview .preview-copy{animation:preview-fade 6s ease-in-out infinite}
.app[data-transition=cut] .style-preview .preview-copy{animation:none}
@keyframes preview-route{0%,100%{width:12%}80%{width:100%}}
@keyframes preview-slide{0%,85%,100%{transform:none;opacity:1}92%{transform:translateX(10px);opacity:.4}}
@keyframes preview-page{0%,85%,100%{transform:none;opacity:1}92%{transform:perspective(600px) rotateY(-8deg);opacity:.5}}
@keyframes preview-fade{0%,85%,100%{opacity:1}92%{opacity:.4}}
.app.reduce-motion .style-preview *{animation:none!important;transition:none!important}
.app[data-theme] .photo-look-preview{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}
.app[data-theme] .photo-look-preview img{display:block;width:100%;height:160px;object-fit:cover}
.accent-options{display:flex;flex-wrap:wrap;gap:10px}.accent-options button{width:44px;height:44px;border:3px solid var(--surface);outline:1px solid var(--line);border-radius:50%}.accent-options button[aria-pressed=true]{outline:3px solid var(--ink)}
@media(max-width:380px){.app[data-theme] .style-preview{padding-inline:16px}.app[data-theme] .style-controls{gap:12px}.app[data-theme] .style-preview strong{font-size:30px}.app[data-theme] .style-controls label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.style-preview,.style-preview *{animation:none!important;transition:none!important}}
/* Remove legacy fixed-green navigation and dark title overrides. */
.app[data-theme] nav button,.app[data-theme] nav button.active{color:var(--ink)!important;font-size:12px}.app[data-theme] .style b{color:var(--ink)}.app[data-theme] .style i{font-size:13px}.app[data-theme] :is(.style-controls label,.photo-look-controls label,.map-source-control,.settings-card label){font-size:14px}.app[data-theme] :is(.brand small,.intro p,.page-title small){font-size:11px}.app[data-theme] .style-preview .preview-copy p{font-size:15px}#hero-framing-controls label{display:block;margin-block:12px}#hero-framing-controls input{width:100%}.app[data-theme] .photo-look-preview p{padding:20px}
/* Relive shares the active world, including journal and transport controls. */
.app[data-theme].relive-open,.app[data-theme] .relive-page{background:var(--paper);color:var(--ink)}.app[data-theme] .relive-header .page-title small{color:var(--muted)}.app[data-theme] .relive-journal{background:var(--surface);color:var(--ink)}.app[data-theme] .relive-journal p,.app[data-theme] .relive-journal small{color:var(--muted)}.app[data-theme] .relive-controls,.app[data-theme] .relive-counter{color:var(--ink)}.app[data-theme] .relive-buttons button{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.app[data-theme] #relive-toggle{background:var(--trip-accent);color:#fff}.app[data-theme=noir] #relive-toggle{color:#111823}.app[data-theme] .relive-music-on{color:var(--ink)}.app[data-theme] .relive-media{background:var(--paper);color:var(--ink)}.app[data-theme] .relive-media>p{color:var(--ink)}
.app[data-theme] .round,.app[data-theme] .relive-header .round{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.app[data-theme] .relive-controls{background:var(--paper)}.app[data-theme] .settings-card a{color:var(--ink);text-decoration:underline}.app[data-theme] #relive-counter{color:var(--ink)}

.app[data-theme] .relive-place span{color:var(--muted)}nav button span{overflow-wrap:anywhere;line-height:1.25}

.app[data-theme] button{min-width:44px}.app[data-theme] #relive-toggle{color:var(--accent-ink,#fff)}

.style-preview .preview-meta{order:2}.style-preview .preview-progress{order:3}.app[data-theme] .style-preview .preview-copy{width:100%;max-width:100%;margin-bottom:0;pointer-events:auto}
.date-picker{width:min(92vw,350px);padding:18px;color:var(--ink,#17352d);background:var(--paper,#f1efe6);border:1px solid var(--line,#d5d9cf);border-radius:18px}
.calendar-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px}.calendar-head button{min-width:44px;min-height:44px;font-size:25px;border-radius:10px;background:#e0e8df;color:#17352d}.calendar-head strong{font-size:17px}
.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.calendar-week span{text-align:center;font-size:11px;padding-bottom:9px}.calendar-days button{min-height:40px;background:transparent;color:inherit;border:1px solid transparent;border-radius:8px}.calendar-days button:hover,.calendar-days button:focus-visible{border-color:#507363}.calendar-days button[aria-pressed=true]{background:#17352d;color:#fff}.calendar-actions{display:flex;justify-content:space-between;margin-top:16px}.calendar-actions button{padding:10px 14px;background:#e0e8df;color:#17352d;border-radius:9px}
