/* Shared geometry. Every colour is a semantic token from the theme registry. */
.map-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 0}.map-heading h1{font-size:30px;margin:0 0 8px}.map-heading p:not(.eyebrow){color:var(--muted);font-size:14px;margin:0}.map-heading>a{flex-shrink:0}
.map-unit-nav{display:flex;gap:10px;max-width:760px;margin:0 auto 22px;scroll-margin-top:20px}.map-unit-nav select{width:100%;min-width:0;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:12px;font:inherit;font-size:14px}.map-unit-nav button{flex:0 0 46px;min-height:46px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;font-size:22px}.map-unit-nav button:disabled{background:var(--disabled);color:var(--disabled-text)}.map-unit-nav select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.journey-map{max-width:760px;margin:auto;background:var(--surface);border:1px solid var(--border);border-radius:24px;overflow:hidden}.map-unit-heading{padding:28px 32px 18px}.map-unit-heading h2{font-size:28px;line-height:1.2;margin:0 0 10px;text-align:left}.map-unit-heading>p:not(.eyebrow){font-size:14px;color:var(--muted);margin:10px 0}.map-unit-heading .map-count{font-weight:600}.map-guide{font-size:13px;margin-top:18px;border-top:1px solid var(--border);padding-top:12px;color:var(--muted)}.map-guide summary{cursor:pointer;display:flex;gap:8px;align-items:center;color:var(--text);min-height:36px}.map-guide summary svg,.map-legend svg{width:18px;height:18px}.map-guide p{line-height:1.65}.map-guide summary::after{content:'⌄';margin-left:auto}.map-guide[open] summary::after{content:'⌃'}
.map-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:18px;padding:8px 16px 20px;color:var(--muted);font-size:11px}.map-legend span{display:flex;align-items:center;gap:5px}
.map-trail{list-style:none;position:relative;margin:0;padding:16px 24px 32px}.map-trail::before{content:'';position:absolute;width:3px;left:calc(50% - 1.5px);top:44px;bottom:78px;background:var(--track)}.map-row{display:grid;position:relative;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);min-height:136px;align-items:start;column-gap:16px;padding-bottom:24px}.map-node{grid-column:2;display:grid;place-items:center;width:64px;height:64px;position:relative;z-index:1;border-radius:50%}.map-circle{width:56px;height:56px;display:grid;place-items:center;border-radius:50%;border:2px solid var(--selection);background:var(--surface);color:var(--selection);box-shadow:0 4px 0 var(--track)}.map-circle svg{width:26px;height:26px}.map-copy{grid-column:3;min-width:0;padding-top:4px}.map-type{font-size:10px;letter-spacing:.5px;color:var(--muted);text-transform:uppercase}.map-copy h3{font:700 16px/1.35 Inter,Arial,sans-serif;margin:5px 0;color:var(--text);overflow-wrap:anywhere}.map-status{font-size:12px;color:var(--muted);margin:4px 0 8px}.map-open{font-size:12px;display:inline-block;padding:7px 0;min-height:32px}.map-start{font-size:12px;min-height:40px;padding:9px 15px;margin-top:4px;box-shadow:0 4px 12px var(--shadow)}
.map-row[data-state=complete] .map-circle{background:var(--success-bg);color:var(--success);border-color:var(--success)}.map-row[data-state=complete] .map-status{color:var(--success)}.map-row[data-state=current] .map-circle{width:64px;height:64px;background:var(--button);color:var(--button-text);border:3px solid var(--button-border);outline:5px solid var(--selected);box-shadow:0 5px 0 var(--track)}.map-row[data-state=locked] .map-circle{background:var(--soft);color:var(--muted);border-color:var(--border)}
.map-branch{min-height:168px;padding-top:10px}.map-branch .map-node{width:48px;height:48px;grid-column:1;grid-row:1;justify-self:end}.map-branch .map-circle{width:44px;height:44px}.map-branch .map-circle svg{width:22px;height:22px}.map-branch .map-copy{grid-column:1;grid-row:2;text-align:right;padding-top:10px}.map-branch .map-copy h3{font-size:14px}.map-branch-note{font-size:12px;line-height:1.55;color:var(--muted);margin:8px 0}.map-branch::before{content:'';position:absolute;left:calc(50% - 72px);top:32px;width:72px;height:22px;border-top:2px dotted var(--muted);border-left:2px dotted var(--muted);border-radius:15px 0 0 0}.map-branch.side-right .map-node{grid-column:3;justify-self:start}.map-branch.side-right .map-copy{grid-column:3;text-align:left}.map-branch.side-right::before{left:50%;border-left:0;border-right:2px dotted var(--muted);border-radius:0 15px 0 0}.map-branch[data-state=complete]::before{border-color:var(--success)}
.map-node[href]:hover .map-circle{transform:translateY(-3px)}.map-node[href]:active .map-circle{transform:translateY(1px)}.map-circle{transition:transform .15s ease}.map-unit-footer{padding:8px 24px 28px;text-align:center}.map-unit-footer p{font-size:12px;color:var(--muted)}.map-daily{max-width:760px;margin:24px auto;color:var(--muted);font-size:14px}.map-daily>summary{cursor:pointer;padding:12px 0;color:var(--text)}
@media(max-width:600px){.map-heading{display:block;padding:18px 0}.map-heading h1{font-size:25px}.map-heading>a{display:inline-block;margin-top:12px}.map-unit-nav{gap:7px;margin-bottom:14px}.map-unit-nav button{flex-basis:42px}.journey-map{border-radius:18px}.map-unit-heading{padding:22px 18px 12px}.map-unit-heading h2{font-size:24px}.map-unit-heading>p:not(.eyebrow){font-size:13px}.map-trail{padding:16px 12px 24px}.map-row{grid-template-columns:minmax(0,1fr) 54px minmax(0,1.4fr);column-gap:10px;min-height:150px}.map-trail::before{left:calc(12px + (100% - 98px)/2.4 + 37px);bottom:85px}.map-node{width:54px;height:58px}.map-circle{width:48px;height:48px}.map-row[data-state=current] .map-circle{width:54px;height:54px}.map-copy h3{font-size:14px}.map-type{font-size:9px;letter-spacing:0}.map-start{padding:9px 10px;font-size:11px}.map-status{font-size:11px}.map-branch .map-copy{grid-column:1 / span 2;max-width:calc(100% - 34px);padding-right:16px}.map-branch.side-right .map-copy{grid-column:3;max-width:none;padding-right:0}.map-branch::before{left:calc((100% - 74px)/2.4 - 12px);width:49px}.map-branch.side-right::before{left:calc((100% - 74px)/2.4 + 37px);width:44px}.map-branch{min-height:178px}.map-branch-note{font-size:11px}.map-legend{gap:10px;font-size:10px}.map-unit-footer{padding-inline:18px}}
@media(prefers-reduced-motion:reduce){.map-circle{transition:none}.map-node[href]:hover .map-circle{transform:none}}
.map-row{min-height:96px;padding-bottom:18px}.map-branch{min-height:158px}.map-relation{font-size:11px;color:var(--muted);margin:3px 0}.map-branch .map-status{margin-bottom:2px}.map-branch .map-copy{padding-top:6px}.map-needed{color:var(--muted);font-size:11px}.map-needed summary{cursor:pointer;padding:5px 0}.map-needed a{font-size:11px;display:inline-block;padding-block:5px}
@media(max-width:600px){.map-row{min-height:100px}.map-branch{min-height:170px}.map-branch .map-copy{grid-column:1;max-width:none;padding-right:0}.map-branch.side-right .map-copy{grid-column:3}.map-relation{font-size:10px}}

/* Each segment joins two nodes; a terminal node never owns an outgoing line. */
.map-trail::before{content:none}
.map-row:not(:last-child)::after{content:'';position:absolute;z-index:0;left:calc(50% - 1.5px);top:32px;width:3px;height:100%;background:var(--track)}
@media(max-width:600px){.map-row:not(:last-child)::after{left:calc((100% - 74px)/2.4 + 35.5px)}}
/* Keep the native select and keyboard behaviour, with an inset themed chevron. */
.map-unit-nav select{appearance:none;-webkit-appearance:none;padding-right:40px;background-image:linear-gradient(45deg,transparent 50%,var(--text) 50%),linear-gradient(135deg,var(--text) 50%,transparent 50%);background-position:calc(100% - 21px) 50%,calc(100% - 16px) 50%;background-size:5px 5px;background-repeat:no-repeat}
@media(forced-colors:active){.map-unit-nav select{appearance:auto;background-image:none}}

/* Guided Journey controls follow the same compact selector language as the public site. */
.map-heading h1,.map-unit-heading h2{font-family:'LP Live Playfair','Playfair Display',Georgia,serif;font-weight:700;letter-spacing:-.035em}
.map-heading p:not(.eyebrow),.map-unit-heading>p:not(.eyebrow),.map-copy,.map-copy h3,.map-unit-footer,.map-legend,.map-guide{font-family:'LP Live Inter',Inter,system-ui,sans-serif}
.map-heading h1:focus,.map-unit-heading h2:focus{outline:none}
.map-unit-nav{display:block;width:100%;max-width:760px;margin:0 auto 22px}
.map-select-control{position:relative;width:100%;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 3px 0 color-mix(in srgb,var(--shadow) 65%,transparent);transition:border-color .15s,box-shadow .15s}
.map-select-control:focus-within{border-color:var(--button-border);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 18%,transparent)}
.map-select-control.is-open{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 24%,transparent)}
.map-select-control select{display:block;width:100%;min-height:48px;appearance:none;-webkit-appearance:none;border:0;border-radius:14px;background:var(--surface);color:var(--text);padding:12px 58px 12px 18px;font:700 15px/1.35 'LP Live Inter',Inter,system-ui,sans-serif;cursor:pointer}
.map-select-control select option{background:var(--surface);color:var(--text);font-family:'LP Live Inter',Inter,system-ui,sans-serif}
.map-select-control select:focus{outline:none}
.map-select-chevron{position:absolute;right:10px;top:50%;display:grid;place-items:center;width:32px;height:32px;transform:translateY(-50%);border-radius:50%;background:var(--button);color:var(--button-text);pointer-events:none}
.map-select-chevron::before{content:'';width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.map-select-control.is-open .map-select-chevron{transform:translateY(-50%) rotate(180deg);background:var(--focus)}
.map-unit-nav button{display:none}
.map-unit-footer p{font-size:13px}
@media(max-width:600px){.map-select-control select{min-height:48px;padding-left:15px;font-size:14px}.map-select-chevron{right:8px;width:30px;height:30px}.map-heading h1{font-size:28px}.map-unit-nav{width:100%;margin-bottom:16px}}

/* Portugal Guided Journey: a warmer editorial map with a quiet Portuguese sense of place. */
:root[data-theme="portugal"] body.path-map-view #app{position:relative;width:min(1180px,calc(100% - 48px));max-width:none;padding:36px 0 54px}
:root[data-theme="portugal"] body.path-map-view{overflow-x:hidden}
:root[data-theme="portugal"] body.path-map-view #app::before,
:root[data-theme="portugal"] body.path-map-view #app::after{content:"";position:absolute;z-index:-1;width:104px;height:104px;border:1px solid color-mix(in srgb,var(--button) 28%,transparent);opacity:.55;pointer-events:none;background:radial-gradient(circle at center,transparent 0 19px,color-mix(in srgb,var(--button) 20%,transparent) 20px 22px,transparent 23px 34px,color-mix(in srgb,var(--selection) 20%,transparent) 35px 37px,transparent 38px),linear-gradient(45deg,transparent 48%,color-mix(in srgb,var(--button) 18%,transparent) 49% 51%,transparent 52%),linear-gradient(-45deg,transparent 48%,color-mix(in srgb,var(--button) 18%,transparent) 49% 51%,transparent 52%);border-radius:6px;transform:rotate(45deg)}
:root[data-theme="portugal"] body.path-map-view #app::before{left:-76px;top:218px}
:root[data-theme="portugal"] body.path-map-view #app::after{right:-76px;bottom:260px;transform:rotate(45deg) scale(.82)}
:root[data-theme="portugal"] body.path-map-view .map-heading{width:min(760px,100%);margin:0 auto 16px;padding:12px 0 0}
:root[data-theme="portugal"] body.path-map-view .map-heading h1{font-size:clamp(32px,4vw,46px);color:var(--text)}
:root[data-theme="portugal"] body.path-map-view .map-heading p:not(.eyebrow){font-size:15px;line-height:1.65}
:root[data-theme="portugal"] body.path-map-view .map-unit-nav{margin-bottom:14px}
:root[data-theme="portugal"] body.path-map-view .map-select-control{background:var(--surface);border-color:color-mix(in srgb,var(--border) 85%,var(--button));box-shadow:0 4px 0 color-mix(in srgb,var(--shadow) 75%,transparent)}
:root[data-theme="portugal"] body.path-map-view .journey-map{border-radius:18px;background:var(--surface);box-shadow:0 16px 38px var(--shadow)}
:root[data-theme="portugal"] body.path-map-view .map-unit-heading{position:relative;min-height:218px;padding:30px 310px 18px 32px;overflow:hidden;background:linear-gradient(90deg,var(--surface) 0%,var(--surface) 49%,color-mix(in srgb,var(--surface) 84%,transparent) 69%,transparent 100%),url('public/family-420.webp') right center/42% 100% no-repeat}
:root[data-theme="portugal"] body.path-map-view .map-unit-heading h2{font-size:clamp(30px,3.3vw,43px);line-height:1.1;margin-top:2px}
:root[data-theme="portugal"] body.path-map-view .map-unit-heading>p:not(.eyebrow){font-size:15px}
:root[data-theme="portugal"] body.path-map-view .map-unit-heading .map-count{font-size:14px;color:var(--button);font-weight:800}
:root[data-theme="portugal"] body.path-map-view .map-guide{margin-top:18px}
:root[data-theme="portugal"] body.path-map-view .map-trail{padding:20px 32px 32px;background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 75%,var(--soft)) 0%,var(--surface) 30%)}
:root[data-theme="portugal"] body.path-map-view .map-main .map-copy{padding:12px 16px 10px;background:color-mix(in srgb,var(--surface) 92%,var(--soft));border:1px solid var(--border);border-radius:12px;box-shadow:0 4px 12px var(--shadow)}
:root[data-theme="portugal"] body.path-map-view .map-main[data-state="current"] .map-copy{background:color-mix(in srgb,var(--selected) 72%,var(--surface));border-color:var(--selection);box-shadow:0 5px 16px var(--shadow)}
:root[data-theme="portugal"] body.path-map-view .map-main[data-state="current"] .map-circle{background:var(--selection);border-color:var(--selection);outline-color:var(--selected);color:var(--button-text)}
:root[data-theme="portugal"] body.path-map-view .map-main[data-state="locked"] .map-copy{background:color-mix(in srgb,var(--soft) 45%,var(--surface))}
:root[data-theme="portugal"] body.path-map-view .map-branch .map-copy{padding:10px 13px;background:color-mix(in srgb,var(--soft) 70%,var(--surface));border:1px solid var(--border);border-radius:10px}
:root[data-theme="portugal"] body.path-map-view .map-branch .map-copy h3{font-size:15px}
:root[data-theme="portugal"] body.path-map-view .map-unit-footer{padding-bottom:32px}
@media(max-width:600px){
 :root[data-theme="portugal"] body.path-map-view #app{width:calc(100% - 32px);padding-top:20px}
 :root[data-theme="portugal"] body.path-map-view #app::before,:root[data-theme="portugal"] body.path-map-view #app::after{display:none}
 :root[data-theme="portugal"] body.path-map-view .map-heading{padding-top:4px}
 :root[data-theme="portugal"] body.path-map-view .map-unit-heading{min-height:0;padding:22px 18px 14px;background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 82%,transparent),var(--surface) 54%),url('public/family-420.webp') center top/100% 150px no-repeat;padding-top:168px}
 :root[data-theme="portugal"] body.path-map-view .map-unit-heading h2{font-size:29px}
 :root[data-theme="portugal"] body.path-map-view .map-unit-heading>p:not(.eyebrow){font-size:13px}
 :root[data-theme="portugal"] body.path-map-view .map-trail{padding-inline:12px}
 :root[data-theme="portugal"] body.path-map-view .map-main .map-copy{padding:10px 12px}
}

/* Keep the Portugal version focused on the learning path itself: no hero artwork or page annotations. */
:root[data-theme="portugal"] body.path-map-view #app::before,
:root[data-theme="portugal"] body.path-map-view #app::after{display:none}
:root[data-theme="portugal"] body.path-map-view .map-unit-heading{min-height:0;padding:30px 32px 18px;background:var(--surface)}

/* The lesson cards now alternate around a centre line and connect from each node. */
:root[data-theme="portugal"] body.path-map-view .map-trail{background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 74%,var(--soft)) 0%,var(--surface) 34%)}
:root[data-theme="portugal"] body.path-map-view .map-main{min-height:126px;align-items:center;padding-bottom:18px}
:root[data-theme="portugal"] body.path-map-view .map-main .map-node,:root[data-theme="portugal"] body.path-map-view .map-main .map-copy{grid-row:1}
:root[data-theme="portugal"] body.path-map-view .map-main .map-copy{position:relative;z-index:1;align-self:center;min-height:70px;padding:12px 16px}
:root[data-theme="portugal"] body.path-map-view .map-main-odd .map-copy{grid-column:3;text-align:left}
:root[data-theme="portugal"] body.path-map-view .map-main-even .map-copy{grid-column:1;text-align:right}
:root[data-theme="portugal"] body.path-map-view .map-main::before{display:none}
:root[data-theme="portugal"] body.path-map-view .map-main .map-copy::before{content:"";position:absolute;z-index:-1;top:50%;width:17px;border-top:2px dashed color-mix(in srgb,var(--muted) 54%,transparent);transform:translateY(-50%);pointer-events:none}
:root[data-theme="portugal"] body.path-map-view .map-main-odd .map-copy::before{left:-18px}
:root[data-theme="portugal"] body.path-map-view .map-main-even .map-copy::before{right:-18px}
:root[data-theme="portugal"] body.path-map-view .map-row:not(:last-child)::after{top:76px;left:calc(50% - 1.5px);width:28px;height:calc(100% - 52px);background:none;border-left:3px dashed var(--track);border-radius:0 0 0 26px;transform:none}
:root[data-theme="portugal"] body.path-map-view .map-main-even:not(:last-child)::after{left:calc(50% - 28px);border-left:0;border-right:3px dashed var(--track);border-radius:0 0 26px 0}
:root[data-theme="portugal"] body.path-map-view .map-main .map-node{align-self:center}
:root[data-theme="portugal"] body.path-map-view .map-main-odd .map-copy h3{margin-right:0}
:root[data-theme="portugal"] body.path-map-view .map-main-even .map-copy h3{margin-left:0}
@media(max-width:600px){
 :root[data-theme="portugal"] body.path-map-view .map-unit-heading{padding:22px 18px 14px;background:var(--surface)}
 :root[data-theme="portugal"] body.path-map-view .map-main-even .map-copy{grid-column:3;text-align:left}
 :root[data-theme="portugal"] body.path-map-view .map-main-even::before{display:none}
 :root[data-theme="portugal"] body.path-map-view .map-main .map-copy::before{width:11px}
 :root[data-theme="portugal"] body.path-map-view .map-main-odd .map-copy::before,:root[data-theme="portugal"] body.path-map-view .map-main-even .map-copy::before{left:-12px;right:auto}
 :root[data-theme="portugal"] body.path-map-view .map-main-even:not(:last-child)::after{left:calc(50% - 1.5px);border-right:0;border-left:3px dashed var(--track);border-radius:0 0 0 26px}
 :root[data-theme="portugal"] body.path-map-view .map-main{min-height:118px}
}

/* Shared curved map treatment for every visual theme. */
body.path-map-view #app{width:min(1100px,calc(100% - 64px));max-width:none;padding:36px 0 54px}
body.path-map-view #app>.home-footer{width:100%;max-width:none;margin-inline:0;margin-top:48px}
body.path-map-view .map-main{min-height:126px;align-items:center;padding-bottom:18px}
body.path-map-view .map-main .map-node,body.path-map-view .map-main .map-copy{grid-row:1}
body.path-map-view .map-main .map-copy{position:relative;z-index:1;align-self:center;min-height:70px;padding:12px 16px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--surface) 92%,var(--soft));box-shadow:0 4px 12px var(--shadow)}
body.path-map-view .map-main-odd .map-copy{grid-column:3;text-align:left}
body.path-map-view .map-main-even .map-copy{grid-column:1;text-align:right}
body.path-map-view .map-main::before{display:none}
body.path-map-view .map-main .map-copy::before{content:"";position:absolute;z-index:-1;top:50%;width:17px;border-top:2px dashed color-mix(in srgb,var(--muted) 54%,transparent);transform:translateY(-50%);pointer-events:none}
body.path-map-view .map-main-odd .map-copy::before{left:-18px}
body.path-map-view .map-main-even .map-copy::before{right:-18px}
body.path-map-view .map-row:not(:last-child)::after{top:76px;left:calc(50% - 1.5px);width:28px;height:calc(100% - 52px);background:none;border-left:3px dashed var(--track);border-radius:0 0 0 26px;transform:none}
body.path-map-view .map-main-even:not(:last-child)::after{left:calc(50% - 28px);border-left:0;border-right:3px dashed var(--track);border-radius:0 0 26px 0}
body.path-map-view .map-main .map-node{align-self:center}
body.path-map-view .map-main[data-state="current"] .map-copy{background:color-mix(in srgb,var(--selected) 72%,var(--surface));border-color:var(--selection);box-shadow:0 5px 16px var(--shadow)}
body.path-map-view .map-main[data-state="locked"] .map-copy{background:color-mix(in srgb,var(--soft) 45%,var(--surface))}
@media(max-width:600px){
 body.path-map-view #app{width:calc(100% - 32px);padding:20px 0 36px}
 body.path-map-view .map-main-even .map-copy{grid-column:3;text-align:left}
 body.path-map-view .map-main-even::before{display:none}
 body.path-map-view .map-main .map-copy::before{width:11px}
 body.path-map-view .map-main-odd .map-copy::before,body.path-map-view .map-main-even .map-copy::before{left:-12px;right:auto}
 body.path-map-view .map-main{min-height:118px}
}

/* Keep the page frame stable while the journey catalogue loads. */
body.path-map-view #app{min-height:calc(100svh - 136px)}

/* Speech bubbles and filled lesson nodes (Preview, 26 October 2026).
   Presentation only: lesson states, access and links remain server/application-owned. */
:root[data-theme] body.path-map-view .journey-map{--map-done:#c8cdd1;--map-done-ink:#34414a;--map-done-edge:#a0a9af}
:root[data-theme="dark"] body.path-map-view .journey-map{--map-done:#59666d;--map-done-ink:#fff;--map-done-edge:#77858c}
:root[data-theme] body.path-map-view .journey-map .map-trail::before,:root[data-theme] body.path-map-view .journey-map .map-row::after,:root[data-theme] body.path-map-view .journey-map .map-row::before{content:none;display:none}
:root[data-theme] body.path-map-view .journey-map .map-copy{--bubble-bg:color-mix(in srgb,var(--surface) 92%,var(--soft));--bubble-edge:var(--border);position:relative;isolation:isolate;border:1px solid var(--bubble-edge);border-radius:20px;padding:16px 18px;background:var(--bubble-bg);box-shadow:0 4px 12px var(--shadow)}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="current"] .map-copy{--bubble-bg:color-mix(in srgb,var(--selected) 72%,var(--surface));--bubble-edge:var(--selection);background:var(--bubble-bg);border-color:var(--bubble-edge)}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="locked"] .map-copy{--bubble-bg:color-mix(in srgb,var(--soft) 45%,var(--surface));background:var(--bubble-bg)}
:root[data-theme] body.path-map-view .journey-map .map-copy::before{content:"";display:block;position:absolute;z-index:0;pointer-events:none;box-sizing:border-box;top:50%;left:-8px;right:auto;width:14px;height:14px;background:var(--bubble-bg);border:0;border-left:1px solid var(--bubble-edge);border-bottom:1px solid var(--bubble-edge);border-radius:0 0 0 3px;transform:translateY(-50%) rotate(45deg)}
:root[data-theme] body.path-map-view .journey-map .map-main-even .map-copy::before{left:auto;right:-8px;transform:translateY(-50%) rotate(225deg)}
:root[data-theme] body.path-map-view .journey-map .map-branch .map-copy::before{top:-8px;left:auto;right:16px;transform:rotate(135deg)}
:root[data-theme] body.path-map-view .journey-map .map-branch.side-right .map-copy::before{left:16px;right:auto}
:root[data-theme] body.path-map-view .journey-map .map-circle{background:var(--button);border-color:var(--button-border);border-style:solid;color:var(--button-text);box-shadow:0 4px 0 color-mix(in srgb,var(--button) 70%,#000)}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="current"] .map-circle{background:var(--button);border-color:var(--button-border);color:var(--button-text);outline-color:var(--selected)}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="complete"] .map-circle{background:var(--map-done);color:var(--map-done-ink);border-color:var(--map-done-edge);box-shadow:0 4px 0 var(--map-done-edge)}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="complete"] .map-status{color:var(--muted)}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="locked"] .map-circle{background:var(--surface);color:var(--muted);border-color:var(--border);box-shadow:none}
:root[data-theme] body.path-map-view .journey-map .map-node[href]:focus-visible{outline:3px solid var(--focus);outline-offset:6px}
@media(max-width:600px){
 :root[data-theme] body.path-map-view .journey-map .map-row{grid-template-columns:56px minmax(0,1fr);column-gap:18px;align-items:center;min-height:116px}
 :root[data-theme] body.path-map-view .journey-map .map-row .map-node{grid-column:1;grid-row:1;align-self:center;justify-self:center}
 :root[data-theme] body.path-map-view .journey-map .map-row .map-copy{grid-column:2;grid-row:1;max-width:none;text-align:left;padding:14px;min-height:70px}
 :root[data-theme] body.path-map-view .journey-map .map-row .map-copy::before{left:-8px;right:auto;top:50%;width:14px;transform:translateY(-50%) rotate(45deg)}
 :root[data-theme] body.path-map-view .journey-map .map-branch{margin-left:16px;grid-template-columns:44px minmax(0,1fr);min-height:120px;padding-top:0}
 :root[data-theme] body.path-map-view .journey-map .map-copy h3{font-size:14px}
}
@media(forced-colors:active){
 :root[data-theme] body.path-map-view .journey-map .map-circle{border-color:ButtonText;box-shadow:none}
 :root[data-theme] body.path-map-view .journey-map .map-node[href]:focus-visible{outline-color:Highlight}
 :root[data-theme] body.path-map-view .journey-map .map-copy::before{background:Canvas;border-color:CanvasText}
}

/* Round coloured speech bubbles: unfinished lessons stay colourful; completed lessons are neutral. */
:root[data-theme] body.path-map-view .journey-map{--map-done-bubble:#e3e6e8;--map-done-bubble-edge:#b7bfc4;--map-done-bubble-ink:#34414a}
:root[data-theme="dark"] body.path-map-view .journey-map{--map-done-bubble:#354249;--map-done-bubble-edge:#68767e;--map-done-bubble-ink:#e3e7e9}
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy{--bubble-bg:var(--button);--bubble-edge:var(--button-border);background:var(--bubble-bg);border-color:var(--bubble-edge);color:var(--button-text);border-radius:50% / 50%;padding:24px 36px;text-align:center}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="current"] .map-copy{--bubble-bg:var(--button);--bubble-edge:var(--button-border);box-shadow:0 0 0 4px var(--selected),0 5px 16px var(--shadow)}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="locked"] .map-copy{--bubble-bg:color-mix(in srgb,var(--button) 20%,var(--surface));--bubble-edge:color-mix(in srgb,var(--button) 55%,var(--border));color:var(--text)}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="complete"] .map-copy{--bubble-bg:var(--map-done-bubble);--bubble-edge:var(--map-done-bubble-edge);color:var(--map-done-bubble-ink);box-shadow:0 3px 8px var(--shadow)}
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy :is(h3,p,a,summary,.map-type){color:inherit}
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy a:not(.map-start){text-decoration:underline;text-underline-offset:3px}
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy .map-start{background:transparent;border:1px solid currentColor;color:inherit}
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy a:focus-visible,:root[data-theme] body.path-map-view .journey-map .map-row .map-copy summary:focus-visible{outline:2px solid currentColor;outline-offset:4px}
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="locked"] .map-circle{border-color:var(--button-border);color:var(--button)}
:root[data-theme] body.path-map-view .journey-map .map-branch .map-node{justify-self:center}
:root[data-theme] body.path-map-view .journey-map .map-branch .map-copy::before{left:calc(50% - 7px);right:auto}
@media(max-width:600px){
 :root[data-theme] body.path-map-view .journey-map .map-row .map-copy{border-radius:38px;padding:22px;text-align:center}
 :root[data-theme] body.path-map-view .journey-map .map-branch .map-copy::before{left:-8px;right:auto}
}

/* Reference speech bubble: rounded rectangle, curved lower tail; restore the connecting trail. */
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy{border-radius:26px;padding:20px 26px;margin-bottom:16px}
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy::before,:root[data-theme] body.path-map-view .journey-map .map-row .map-copy::after{content:"";display:block;position:absolute;z-index:0;pointer-events:none;top:calc(100% - 1px);bottom:auto;left:24px;right:auto;width:30px;height:24px;border:0;border-radius:0;box-shadow:none;transform:scaleX(-1);mask-repeat:no-repeat;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;-webkit-mask-size:100% 100%}
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy::before{background:var(--bubble-bg);mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2030%2024%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M1%200H22C18%205%2019%2014%2027%2021C12%2019%204%2013%201%200Z%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2030%2024%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M1%200H22C18%205%2019%2014%2027%2021C12%2019%204%2013%201%200Z%22%2F%3E%3C%2Fsvg%3E")}
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy::after{background:var(--bubble-edge);mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2030%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.2%22%20stroke-linejoin%3D%22round%22%20d%3D%22M22%200C18%205%2019%2014%2027%2021C12%2019%204%2013%201%200%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2030%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.2%22%20stroke-linejoin%3D%22round%22%20d%3D%22M22%200C18%205%2019%2014%2027%2021C12%2019%204%2013%201%200%22%2F%3E%3C%2Fsvg%3E")}
:root[data-theme] body.path-map-view .journey-map .map-main-even .map-copy::before,:root[data-theme] body.path-map-view .journey-map .map-main-even .map-copy::after,:root[data-theme] body.path-map-view .journey-map .map-branch.side-left .map-copy::before,:root[data-theme] body.path-map-view .journey-map .map-branch.side-left .map-copy::after{left:auto;right:24px;transform:none}
:root[data-theme] body.path-map-view .journey-map .map-row:not(:last-child)::after{content:"";display:block;position:absolute;z-index:0;top:76px;left:calc(50% - 1.5px);right:auto;bottom:auto;width:28px;height:calc(100% - 52px);background:none;border:0;border-left:3px dashed var(--track);border-radius:0 0 0 26px;transform:none;pointer-events:none}
:root[data-theme] body.path-map-view .journey-map .map-main-even:not(:last-child)::after{left:calc(50% - 28px);border-left:0;border-right:3px dashed var(--track);border-radius:0 0 26px 0}
:root[data-theme] body.path-map-view .journey-map .map-branch .map-node{justify-self:end}
:root[data-theme] body.path-map-view .journey-map .map-branch.side-right .map-node{justify-self:start}
:root[data-theme] body.path-map-view .journey-map .map-branch::before{content:"";display:block;position:absolute;left:calc(50% - 72px);top:32px;width:72px;height:22px;background:none;border:0;border-top:2px dotted var(--muted);border-left:2px dotted var(--muted);border-radius:15px 0 0 0;pointer-events:none}
:root[data-theme] body.path-map-view .journey-map .map-branch.side-right::before{left:50%;border-left:0;border-right:2px dotted var(--muted);border-radius:0 15px 0 0}
@media(max-width:600px){
 :root[data-theme] body.path-map-view .journey-map .map-row .map-copy{border-radius:24px;padding:18px 20px;margin-bottom:16px}
 :root[data-theme] body.path-map-view .journey-map .map-row .map-copy::before,:root[data-theme] body.path-map-view .journey-map .map-row .map-copy::after{left:22px;right:auto;top:calc(100% - 1px);transform:scaleX(-1)}
 :root[data-theme] body.path-map-view .journey-map .map-row:not(:last-child)::after{left:26px;top:calc(50% - 9px);height:100%;width:0;border:0;border-left:3px dashed var(--track);border-radius:0}
 :root[data-theme] body.path-map-view .journey-map .map-branch:not(:last-child)::after{left:10px}
 :root[data-theme] body.path-map-view .journey-map .map-branch::before{display:none;content:none}
 :root[data-theme] body.path-map-view .journey-map .map-branch .map-node{justify-self:center}
}

/* Highlight only unfinished new speaking practice on an already completed lesson. */
:root[data-theme] body.path-map-view .journey-map .map-row[data-state="complete"] .map-copy > a.map-open:is([href^="#/speaking/"],[data-lp-route^="#/speaking/"]){color:var(--selection);text-decoration-color:currentColor}

/* Slightly deepen Classic's accent for readable text on the neutral completed card. */
:root[data-theme="classic"] body.path-map-view .journey-map .map-row[data-state="complete"] .map-copy > a.map-open:is([href^="#/speaking/"],[data-lp-route^="#/speaking/"]){color:color-mix(in srgb,var(--selection) 90%,#000)}

/* Compact activity cards: keep route connectors, remove only the dotted branch stub. */
:root[data-theme] body.path-map-view .journey-map .map-branch::before{content:none;display:none}
/* Native anchors give the whole card touch/keyboard access without nesting the new-practice link. */
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy a.map-card-link{position:static;color:inherit;text-decoration:none;font:inherit;filter:none;transform:none;transition:none}
:root[data-theme] body.path-map-view .journey-map .map-card-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;cursor:pointer}
:root[data-theme] body.path-map-view .journey-map .map-card-link:focus-visible{outline:none}
:root[data-theme] body.path-map-view .journey-map .map-card-link:focus-visible::after{outline:3px solid var(--focus);outline-offset:5px;border-radius:26px}
:root[data-theme] body.path-map-view .journey-map .map-copy:has(.map-card-link:hover){box-shadow:0 0 0 2px var(--bubble-edge),0 4px 12px var(--shadow)}
:root[data-theme] body.path-map-view .journey-map .map-copy>.map-open{position:relative;z-index:2}

/* Keep the activity type visible; completion/access are independent small badges. */
.journey-map .map-circle[data-activity-type]{position:relative}
.journey-map .map-circle .map-state-badge{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:22px;height:22px;box-sizing:border-box;border:2px solid var(--surface);border-radius:50%;background:var(--map-done);color:var(--map-done-ink);pointer-events:none}
.journey-map .map-circle .map-state-badge[data-badge="lock"]{background:var(--soft);color:var(--text);box-shadow:0 0 0 1px var(--border)}
:root[data-theme] body.path-map-view .journey-map .map-circle .map-state-badge>svg{width:14px;height:14px;stroke-width:2.2}
@media(forced-colors:active){.journey-map .map-circle .map-state-badge{background:Canvas;color:CanvasText;border-color:CanvasText}}

/* Shared title/status rhythm for all activity providers, allowing longer content to grow. */
:root[data-theme] body.path-map-view .journey-map .map-row .map-copy{min-height:120px;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}

/* A shared, spacious journey: one Lesson per circle, scenery belongs only to the map. */
:root[data-theme] body.path-map-view #path-map-root{width:100%;max-width:none}
:root[data-theme] body.path-map-view #app{padding-inline:0}
:root[data-theme] body.path-map-view #app::before,:root[data-theme] body.path-map-view #app::after{display:none}
:root[data-theme] body.path-map-view .map-heading{width:100%;max-width:none;margin:0 0 24px;padding:8px 0}
:root[data-theme] body.path-map-view .map-heading>div{max-width:800px}
:root[data-theme] body.path-map-view .map-toolbar{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:20px;align-items:start;padding:18px 20px;margin:0 0 24px;background:var(--soft);border:1px solid var(--border);border-radius:20px;box-sizing:border-box}
:root[data-theme] body.path-map-view .map-toolbar .map-unit-nav,:root[data-theme] body.path-map-view .map-toolbar .lp-language-picker{max-width:none;width:100%;margin:0;padding:0}
:root[data-theme] body.path-map-view .map-toolbar label{display:block;font:700 13px/1.5 'LP Live Inter',Inter,system-ui,sans-serif;color:var(--text);margin:0 0 8px}
:root[data-theme] body.path-map-view .map-toolbar .lp-language-scope{display:none}
:root[data-theme] body.path-map-view .map-toolbar .map-select-control select{min-height:48px}
:root[data-theme] body.path-map-view .journey-scenic{width:100%;max-width:none;border:0;background:transparent;overflow:visible;box-shadow:none}
:root[data-theme] body.path-map-view .journey-scenic .map-unit-heading{padding:28px 32px;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:0 4px 18px var(--shadow)}
:root[data-theme] body.path-map-view .journey-scenic .map-unit-heading h2{font-size:clamp(26px,3vw,36px)}
:root[data-theme] body.path-map-view .journey-scenic .map-unit-heading .map-count{color:var(--text);font-weight:700}
:root[data-theme] body.path-map-view .journey-scenic .map-legend{padding:20px 16px 16px}
.map-landscape{position:relative;isolation:isolate;overflow:hidden;border-radius:28px;border:1px solid var(--border);background:#dce6bc;--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-city-v1.webp');--road-edge:#b5ae96;--road-surface:#d6ccb3;box-shadow:0 8px 24px var(--shadow)}
.map-landscape[data-scene=market]{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-market-v1.webp')}
.map-landscape[data-scene=home]{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-home-v1.webp')}
.map-landscape[data-scene=nature]{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-nature-v1.webp')}
.map-landscape[data-scene=coast]{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-coast-v1.webp')}
.map-landscape::before{content:'';position:absolute;inset:0;z-index:-2;background-image:var(--scene-image);background-size:100% auto;background-repeat:repeat-y;pointer-events:none}
.map-landscape::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(245,250,226,.16) 35% 65%,transparent)}
:root[data-theme=dark] .map-landscape{background:#273b32;--road-edge:#34473f;--road-surface:#67766a}
:root[data-theme=dark] .map-landscape::before{filter:brightness(.55) saturate(.75)}
:root[data-theme=dark] .map-landscape::after{background:rgba(8,28,31,.16)}
:root[data-theme=atlantic] .map-landscape::after{background:rgba(145,199,218,.13)}
.map-road{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:visible}
.map-road path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.map-road-edge{stroke:var(--road-edge);stroke-width:48}
.map-road-surface{stroke:var(--road-surface);stroke-width:42}
/* The road keeps its base colour; progress is shown by the lesson nodes. */
.map-road-marking{stroke:#fffdf4;stroke-width:4;stroke-dasharray:12 16;opacity:.85}
:root[data-theme] body.path-map-view .journey-scenic .map-trail{padding:48px 0 60px;margin:0;z-index:1;background:transparent}
:root[data-theme] body.path-map-view .journey-scenic .map-row{display:grid;grid-template-columns:1fr;grid-template-rows:auto;min-height:216px;padding:24px 0 40px;margin:0;align-items:center;position:relative}
:root[data-theme] body.path-map-view .journey-map.journey-scenic .map-row::after,:root[data-theme] body.path-map-view .journey-map.journey-scenic .map-row::before,:root[data-theme] body.path-map-view .journey-map.journey-scenic .map-trail::before{content:none;display:none}
:root[data-theme] body.path-map-view .journey-scenic .map-row .map-node{position:absolute;left:calc(34% - 38px);top:calc(50% - 38px);width:76px;height:76px;grid-column:auto;grid-row:auto;justify-self:auto;align-self:auto}
:root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-right .map-node{left:calc(66% - 38px)}
:root[data-theme] body.path-map-view .journey-scenic .map-row .map-circle{width:70px;height:70px;box-sizing:border-box}
:root[data-theme] body.path-map-view .journey-scenic .map-row .map-circle>svg{width:28px;height:28px}
:root[data-theme] body.path-map-view .journey-scenic .map-row .map-copy{width:260px;max-width:none;min-height:120px;grid-column:1;grid-row:1;justify-self:start;margin:0 0 0 calc(34% + 58px);padding:20px 24px;text-align:center;box-shadow:0 5px 14px rgba(20,45,31,.17)}
:root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-right .map-copy{margin-left:calc(66% - 318px)}
:root[data-theme] body.path-map-view .journey-scenic .map-row .map-copy h3{font-size:16px;line-height:1.4;margin:4px 0}
:root[data-theme] body.path-map-view .journey-scenic .map-row .map-status{font-size:12px;margin:4px 0}
:root[data-theme] body.path-map-view .journey-scenic .map-row .map-copy::before,:root[data-theme] body.path-map-view .journey-scenic .map-row .map-copy::after{left:24px;right:auto;transform:scaleX(-1)}
:root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-right .map-copy::before,:root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-right .map-copy::after{left:auto;right:24px;transform:none}
:root[data-theme] body.path-map-view .journey-scenic .map-unit-footer{padding:28px 0}
@media(max-width:700px){
 :root[data-theme] body.path-map-view .map-toolbar{grid-template-columns:minmax(0,1fr);gap:14px;padding:16px}
 :root[data-theme] body.path-map-view .journey-scenic .map-unit-heading{padding:24px}
 :root[data-theme] body.path-map-view .journey-scenic .map-trail{padding:32px 0 36px}
 :root[data-theme] body.path-map-view .journey-scenic .map-row{min-height:250px;padding:94px 0 24px;align-items:start}
 :root[data-theme] body.path-map-view .journey-scenic .map-row .map-node{top:0;left:calc(32% - 38px)}
 :root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-right .map-node{left:calc(68% - 38px)}
 :root[data-theme] body.path-map-view .journey-scenic .map-row .map-copy{width:clamp(180px,58%,240px);min-height:120px;margin-left:5%;padding:18px;justify-self:start}
 :root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-right .map-copy{margin-left:0;margin-right:5%;justify-self:end}
 :root[data-theme] body.path-map-view .journey-scenic .map-row .map-copy h3{font-size:15px}
 .map-landscape{border-radius:24px}
 .map-road-edge{stroke-width:36}.map-road-surface{stroke-width:30}.map-road-marking{stroke-width:3;stroke-dasharray:8 12}
}
@media(forced-colors:active){.map-landscape::before,.map-landscape::after{display:none}.map-road-edge,.map-road-surface{stroke:CanvasText}.map-road-marking{stroke:Canvas}}

/* Keep the approved curved tail intact; place its own circle along its direction. */
:root[data-theme] body.path-map-view .journey-scenic .map-row{--balloon-width:260px;--balloon-inset:clamp(52px,calc(34% + 12px),calc(100% - var(--balloon-width) - 16px));min-height:268px;padding:24px 0 124px;align-items:start}
:root[data-theme] body.path-map-view .journey-scenic .map-row .map-copy{width:var(--balloon-width);margin:0 0 0 var(--balloon-inset);justify-self:start}
:root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-right .map-copy{margin:0 var(--balloon-inset) 0 0;justify-self:end}
:root[data-theme] body.path-map-view .journey-scenic .map-row .map-node{left:calc(var(--balloon-inset) - 50px);top:calc(100% - 106px)}
:root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-right .map-node{left:calc(100% - var(--balloon-inset) - 26px)}
:root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-left .map-copy::before,:root[data-theme] body.path-map-view .journey-scenic .map-row.scenic-left .map-copy::after{left:24px;right:auto;transform:scaleX(-1)}
@media(max-width:700px){
 :root[data-theme] body.path-map-view .journey-scenic .map-row{--balloon-width:clamp(180px,58%,240px);--balloon-inset:clamp(52px,calc(32% + 12px),calc(100% - var(--balloon-width) - 16px))}
}

/* One scene follows the visible journey; artwork is never tiled or stretched. */
.map-landscape{overflow:clip}
.map-landscape::before{content:none;display:none;background-image:none}
.map-scenery{position:absolute;inset:0;z-index:-2;pointer-events:none}
.map-scenery-window{position:sticky;top:0;width:100%;height:100vh;height:100svh;max-height:100%;background-image:var(--scene-image);background-size:cover;background-position:center;background-repeat:no-repeat}
:root[data-theme=dark] .map-scenery-window{filter:brightness(.55) saturate(.75)}
/* The open centre of the artwork stays beneath the road on narrow viewports. */
@supports not (overflow:clip){.map-landscape{overflow:visible;clip-path:inset(0 round 28px)}}
@media(forced-colors:active){.map-scenery{display:none}}

/* Keep the next-unit action on the same illustrated surface as the path. */
:root[data-theme] body.path-map-view .journey-scenic .map-landscape .map-trail{padding-bottom:12px}
:root[data-theme] body.path-map-view .journey-scenic .map-landscape .map-unit-footer{position:relative;z-index:1;padding:0 24px 36px}

/* The map remains in place when bubbles are hidden; every circle stays operable. */
:root[data-theme] body.path-map-view .journey-scenic .map-controls{position:relative;z-index:2;display:flex;justify-content:flex-end;padding:18px 20px 0}
:root[data-theme] body.path-map-view .journey-scenic .map-bubbles-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;max-width:100%;padding:10px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);font:700 13px/1.4 'LP Live Inter',Inter,system-ui,sans-serif;box-shadow:0 3px 12px rgba(15,35,25,.16);cursor:pointer;transform:none;transition:background-color .15s,color .15s}
:root[data-theme] body.path-map-view .journey-scenic .map-bubbles-toggle[aria-pressed=true]{background:var(--button);color:var(--button-text);border-color:var(--button-border)}
:root[data-theme] body.path-map-view .journey-scenic .map-bubbles-toggle>svg{width:21px;height:21px;flex:none}
:root[data-theme] body.path-map-view .journey-scenic .map-bubbles-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
:root[data-theme] body.path-map-view .journey-scenic .map-bubbles-hidden .map-copy{visibility:hidden;pointer-events:none}
:root[data-theme] body.path-map-view .journey-scenic .map-position-marker{position:absolute;z-index:3;left:23px;top:57px;width:30px;height:38px;pointer-events:none;filter:drop-shadow(0 2px 3px rgba(20,35,20,.3))}
:root[data-theme] body.path-map-view .journey-scenic .map-position-marker>svg{display:block;width:30px;height:38px;stroke:#18382f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.journey-scenic .map-position-pin{fill:#ffd052;stroke:#fffdf4;stroke-width:2}
:root[data-theme] body.path-map-view .journey-scenic .map-position-legend{gap:6px}
:root[data-theme] body.path-map-view .journey-scenic .map-position-legend>svg{width:19px;height:24px;stroke:#18382f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){:root[data-theme] body.path-map-view .journey-scenic .map-controls{padding:14px 14px 0}}
@media(forced-colors:active){.journey-scenic .map-position-pin{fill:Highlight;stroke:CanvasText}:root[data-theme] body.path-map-view .journey-scenic .map-position-marker>svg{stroke:HighlightText}}

/* Ocean: a clearly distinct open state for every shared selector, on every page. */
:root[data-theme="atlantic"]{--selector-open-bg:#f6c763}

:root[data-theme="atlantic"] .map-select-control.is-open{border-color:var(--text);box-shadow:0 0 0 3px color-mix(in srgb,var(--button) 24%,transparent)}
:root[data-theme="atlantic"] .map-select-control.is-open select{background-color:var(--selector-open-bg);color:var(--text)}
:root[data-theme="atlantic"] .map-select-control.is-open .map-select-chevron{background:var(--selector-open-bg);color:var(--text);box-shadow:0 0 0 1px var(--button)}
/* Native popup state also covers selectors outside a custom wrapper, without changing their behaviour. */
@supports selector(select:open){
 :root[data-theme="atlantic"] select:open{background-color:var(--selector-open-bg);color:var(--text);outline:2px solid var(--button);outline-offset:1px}
 :root[data-theme="atlantic"] .map-select-control:has(select:open){border-color:var(--text);box-shadow:0 0 0 3px color-mix(in srgb,var(--button) 24%,transparent)}
 :root[data-theme="atlantic"] .map-select-control:has(select:open) select{outline:none}
 :root[data-theme="atlantic"] .map-select-control:has(select:open) .map-select-chevron{transform:translateY(-50%) rotate(180deg);background:var(--selector-open-bg);color:var(--text);box-shadow:0 0 0 1px var(--button)}
}

/* The installed app has one compact header that stays with the learner on the map. */
html.lp-android-journey .site-header,
html.lp-android-journey #app .home-footer,
html.lp-android-journey #app .public-footer,
html.lp-android-journey #path-map-root>.map-heading{display:none!important}
html.lp-android-journey body{padding-top:0!important;padding-bottom:0!important}
html.lp-android-journey[data-theme] body.path-map-view #app{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:100svh}
html.lp-android-journey[data-theme] body.path-map-view .journey-map.journey-scenic{margin:0;padding:0;border-radius:0}
html.lp-android-journey[data-theme] body.path-map-view .map-landscape{min-height:100svh;border:0;border-radius:0;box-shadow:none;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:calc(104px + env(safe-area-inset-bottom));box-sizing:border-box}
html.lp-android-journey .map-apk-overlay{position:sticky;top:max(8px,env(safe-area-inset-top));z-index:12;width:calc(100% - 16px);max-width:1100px;margin:0 auto 12px;padding:0;box-sizing:border-box;border:1px solid var(--border);border-radius:20px;background:color-mix(in srgb,var(--surface) 97%,transparent);box-shadow:0 5px 18px var(--shadow);backdrop-filter:blur(8px)}
html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-toolbar{grid-template-columns:minmax(0,1.45fr) minmax(128px,1fr);gap:10px;padding:10px 10px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-toolbar label{font-size:10px;line-height:1.3;min-height:26px;display:flex;align-items:end;margin-bottom:5px}
html.lp-android-journey .map-apk-overlay .map-language-slot{min-width:0}
html.lp-android-journey .map-apk-overlay .map-select-control select{font-size:12px;text-overflow:ellipsis}
html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-unit-heading{padding:12px;border:0;border-radius:0;background:transparent;box-shadow:none}
html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-unit-heading h2{font-size:18px;line-height:1.25;margin:0 0 8px}
html.lp-android-journey .map-apk-actions{display:flex;align-items:center;gap:8px}
html.lp-android-journey .map-apk-progress{flex:1;min-width:0}
html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-count{font-size:11px;line-height:1.4;margin:0;font-weight:600}
html.lp-android-journey .map-apk-meter{height:5px;margin-top:6px;border-radius:99px;background:var(--border);overflow:hidden}
html.lp-android-journey .map-apk-meter>span{display:block;height:100%;background:var(--button);border-radius:inherit}
html.lp-android-journey .map-apk-overlay .map-guide{position:static;flex:none;margin:0;padding:0;border:0}
html.lp-android-journey .map-apk-overlay .map-guide summary,
html.lp-android-journey[data-theme] body.path-map-view .journey-scenic .map-apk-overlay .map-bubbles-toggle{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:none;cursor:pointer;list-style:none}
html.lp-android-journey .map-apk-overlay .map-guide summary::-webkit-details-marker{display:none}
html.lp-android-journey .map-apk-overlay .map-guide summary::after{display:none}
html.lp-android-journey .map-apk-overlay .map-guide summary>span,
html.lp-android-journey .map-apk-overlay .map-bubbles-toggle>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
html.lp-android-journey .map-apk-overlay .map-guide summary>svg,
html.lp-android-journey .map-apk-overlay .map-bubbles-toggle>svg{width:21px;height:21px;margin:0;flex:none}
html.lp-android-journey .map-apk-overlay .map-guide[open]>summary,
html.lp-android-journey[data-theme] body.path-map-view .journey-scenic .map-apk-overlay .map-bubbles-toggle[aria-pressed=true]{background:var(--button);color:var(--button-text);border-color:var(--button-border)}
html.lp-android-journey .map-apk-overlay .map-guide summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
html.lp-android-journey .map-apk-guide-content{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:max(90px,calc(100svh - 330px));overflow-y:auto;overscroll-behavior:contain;padding:18px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:0 8px 24px var(--shadow);font-size:13px;line-height:1.5}
html.lp-android-journey .map-guide:not([open])>.map-apk-guide-content{display:none}
html.lp-android-journey .map-apk-guide-content>.eyebrow{font-size:10px;margin-top:0}
html.lp-android-journey .map-apk-guide-content>p{margin:0 0 12px}
html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-legend{gap:8px 12px;padding:12px 0 0;margin:0;border:0;border-top:1px solid var(--border);border-radius:0;background:transparent;font-size:11px}
html.lp-android-journey[data-theme] body.path-map-view .journey-scenic .map-trail{padding-top:0}
html.lp-android-journey .map-native-loading{min-height:100svh;padding:32px 20px;box-sizing:border-box;background:var(--background);color:var(--text)}
@media(min-width:600px){html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-toolbar label{min-height:13px}}
@media(max-height:500px) and (orientation:landscape){
 html.lp-android-journey .map-apk-overlay{display:grid;grid-template-columns:1.1fr 1fr;align-items:center}
 html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-toolbar{padding:8px 10px}
 html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-unit-heading{padding:8px 10px;border-left:1px solid var(--border)}
 html.lp-android-journey[data-theme] body.path-map-view .map-apk-overlay .map-unit-heading h2{font-size:16px;margin-bottom:4px}
 html.lp-android-journey .map-apk-guide-content{max-height:calc(100svh - 200px)}
}
@supports not (overflow:clip){html.lp-android-journey .map-landscape{clip-path:inset(0)}}


/* Portrait scenes retain both illustrated borders and an open central lane.
   The original bubble tail is unchanged: its circle moves with its bubble. */
@media(max-width:700px) and (orientation:portrait){
 .map-landscape{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-city-mobile-v1.webp')}
 .map-landscape[data-scene=city]{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-city-mobile-v1.webp')}
 .map-landscape[data-scene=market]{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-market-mobile-v1.webp')}
 .map-landscape[data-scene=home]{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-home-mobile-v1.webp')}
 .map-landscape[data-scene=nature]{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-nature-mobile-v1.webp')}
 .map-landscape[data-scene=coast]{--scene-image:url('/wp-content/themes/lp-learning/assets/journey-scene-coast-mobile-v1.webp')}
 :root[data-theme] body.path-map-view .journey-scenic .map-row{--balloon-width:clamp(168px,52%,220px);--balloon-inset:clamp(52px,calc(40% + 12px),calc(100% - var(--balloon-width) - 12px))}
}

/* Installed Guided Journey: no web heading or unassembled map between routes. */
html.lp-android-journey #app.map-native-pending>:not(.map-native-loading){opacity:0!important;pointer-events:none!important}
html.lp-android-journey #app.map-native-pending>.lp-language-picker{display:none!important}
html.lp-android-journey #app>.map-native-loading{position:fixed;inset:0;z-index:20;display:grid;place-items:center;min-height:100svh;padding:24px 24px calc(104px + env(safe-area-inset-bottom));box-sizing:border-box;background:var(--background);color:var(--muted);text-align:center}
html.lp-android-journey .map-native-loading>div{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:28rem}
html.lp-android-journey .map-native-loading p{margin:0;font-size:14px;line-height:1.5}
html.lp-android-journey .map-native-loading .path-loading-spinner{width:24px;height:24px}
html.lp-android-journey .map-native-loading .button{min-height:48px}
