/* Local places are part of the reading: one clear map beside each short history. */
.page-top-actions{display:flex;align-items:center;gap:1.6rem;flex:0 0 auto}
.reader-place-link{flex:0 0 auto;font-size:.86rem;min-height:44px;margin-top:1.5vh}
.motifs-page,.motif-page{display:flex;flex-direction:column;padding:3.1vh 4.2vw 2vh;gap:1.8vh}
.motif-filters{gap:.25rem}
.motif-filters .filter-button{padding:.45em .7em}
.motif-list{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));column-gap:4.5vw}
.motif-entry{display:grid;grid-template-columns:2.2rem 1fr 1.5rem;align-items:center;gap:1.5vw;min-width:0;min-height:0;padding:1.5vh .25vw 1.5vh 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left}
.motif-entry h2{font-size:1.7rem;line-height:1.12}
.motif-entry p{font-size:.83rem;color:var(--muted);line-height:1.35;margin-top:.55em}
.motif-entry .number{font-size:1.2rem;align-self:start;padding-top:.5vh}
.motif-entry-copy{min-width:0}
.motif-page .page-top-text{min-width:0;flex:1}
.motif-page .page-top h1{font-size:2.5rem;max-width:26em}
.motif-page .page-top>.text-button{flex:0 0 auto}
.motif-page .intro-line{font-size:.8rem;margin-top:.7em}
.motif-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5vw;flex:1;min-height:0;align-items:center;padding:1.6vh 0 2vh}
.motif-map{min-width:0;max-height:100%;overflow-y:auto;scrollbar-width:thin}
.map-place-title{font-size:1.65rem;line-height:1.12;margin-bottom:1.4vh}
.mini-map{width:100%;max-width:76vh}
.mini-map-frame{position:relative;width:100%;border:1px solid rgba(39,38,31,.35);background:#f2efdf;isolation:isolate;overflow:hidden}
.mini-map-image{width:100%;height:auto;display:block;filter:saturate(.65);object-fit:contain}
.map-north{position:absolute;right:1%;top:1.5%;font-family:var(--heading);font-size:.8rem;line-height:1.1;background:rgba(245,238,223,.91);padding:.35em .5em;color:var(--ink)}
.map-pin{position:absolute;width:1.6rem;height:2.18rem;min-width:24px;min-height:33px;transform:translate(-50%,-100%);z-index:2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));pointer-events:none;color:var(--rust)}
.map-pin svg{display:block;width:100%;height:100%;overflow:visible}
.map-pin path{fill:var(--paper-light);stroke:var(--rust);stroke-width:1.7}
.map-pin circle{fill:var(--rust)}
.map-pin.is-primary{z-index:3}
.map-pin.is-primary path{fill:var(--rust);stroke:var(--paper-light)}
.map-pin.is-primary circle{fill:var(--paper-light)}
.map-label{position:absolute;transform:translate(-50%,-50%);max-width:40%;font-family:var(--body);font-size:.7rem;font-weight:700;line-height:1.15;text-align:center;padding:.25em .4em;background:rgba(245,238,223,.84);color:var(--ink);border-radius:2px;pointer-events:none}
.map-water-label{font-style:italic;color:#365762;font-weight:400;background:transparent;text-shadow:0 1px 2px #e9fbfb}
.mini-map-caption{display:grid;grid-template-columns:1fr auto;gap:.35em 1rem;margin-top:.7rem;font-size:.74rem;line-height:1.4}
.map-pin-legend{display:flex;gap:.5em;align-items:center;font-family:var(--heading);font-size:.94rem}
.map-legend-dot{display:inline-block;width:.55em;height:.55em;border-radius:50%;background:var(--rust);flex:0 0 auto}
.map-position-note{grid-column:1/-1;color:var(--muted);font-size:.72rem}
.map-attribution{grid-column:2;grid-row:1;font-size:.58rem;align-self:center;color:var(--muted);white-space:nowrap}
.map-place-switch{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:1.5vh}
.map-place-switch button{font-family:var(--heading);font-size:.79rem;padding:.45em .75em;border:1px solid var(--line);background:none;min-height:42px;line-height:1.1}
.map-place-switch button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper-light)}
.motif-history{max-height:100%;min-height:0;min-width:0;overflow-y:auto;scrollbar-width:thin;padding:.3vh .6vw .3vh 0}
.motif-history>.eyebrow{margin-bottom:1rem}
.motif-history-text{font-size:1.2rem;line-height:1.65;max-width:34em}
.motif-connections{border-top:1px solid var(--line);padding-top:1.4vh;margin-top:2.4vh}
.motif-connections h2{font-size:1.1rem;margin-bottom:1.2vh;color:var(--muted)}
.motif-card-links{display:flex;gap:1.8rem;flex-wrap:wrap}
.motif-card-link{display:flex;align-items:center;gap:.8rem;max-width:46%;background:none;border:0;padding:.2rem .5rem .2rem 0;text-align:left;font-family:var(--heading);font-size:1.2rem;line-height:1.18}
.motif-card-link img{height:9.4vh;min-height:64px;width:auto;max-width:5rem;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(39,38,31,.14))}
.motif-photo-link{display:flex;align-items:center;gap:1rem;border:0;border-top:1px solid var(--line);background:none;text-align:left;width:100%;padding:1.4vh 0 0;margin-top:1.8vh;font-family:var(--heading);font-size:.95rem;line-height:1.2}
.motif-photo-link img{height:7.2vh;min-height:48px;max-width:5rem;object-fit:contain}
.motif-sequence{display:flex;align-items:center;gap:1rem}
.motif-sequence .button{font-size:.85rem;min-height:46px;padding:.6em 1em}
.motif-footer .text-button{font-size:.8rem}
@media(hover:hover){
 .motif-entry:hover h2,.motif-card-link:hover span,.motif-photo-link:hover span{color:var(--rust)}
 .reader-place-link:hover,.page-top-actions .button:hover{background:rgba(128,84,66,.07)}
}
@media(max-height:680px) and (min-width:701px){
 .motif-page .page-top h1{font-size:2rem}
 .motif-body{padding:.5vh 0;gap:4vw}
 .mini-map{max-width:67vh}
 .map-place-title{font-size:1.35rem}
 .motif-history-text{font-size:1.1rem;line-height:1.5}
 .motif-history>.eyebrow{margin-bottom:.6rem}
}
@media(max-width:700px){
 .page-top-actions{align-items:flex-start;gap:1rem;flex-wrap:wrap}
 .page-top-actions .button{font-size:.9rem}
 .reader-place-link{margin-top:1rem}
 .page.motifs-page,.page.motif-page{padding:1.6rem 6vw;gap:1.2rem;height:auto;min-height:calc(100vh - 60px)}
 .motif-filters{gap:.35rem}
 .motif-list{grid-template-columns:1fr;grid-template-rows:none;gap:0}
 .motif-entry{min-height:94px;gap:1rem;padding:1.2rem 0;grid-template-columns:1.8rem 1fr 1.5rem}
 .motif-entry h2{font-size:1.6rem}
 .motif-entry p{font-size:.86rem}
 .motif-page .page-top h1{font-size:2.3rem}
 .motif-page .page-top .text-button{align-self:flex-start}
 .motif-body{display:flex;flex-direction:column;align-items:stretch;gap:2rem;padding:0}
 .motif-map{overflow:visible;max-height:none}
 .mini-map{max-width:none}
 .map-place-title{font-size:1.5rem;margin-bottom:1rem}
 .map-label{font-size:.65rem}
 .map-north{font-size:.7rem}
 .map-pin{width:24px;height:33px}
 .mini-map-caption{margin-top:.6rem}
 .map-attribution{font-size:.58rem}
 .map-position-note{font-size:.76rem}
 .map-place-switch{gap:.4rem;margin-top:1rem}
 .motif-history{overflow:visible;max-height:none;padding:0}
 .motif-history-text{font-size:1.13rem;line-height:1.65}
 .motif-history>.eyebrow{margin-bottom:.85rem}
 .motif-connections{margin-top:1.4rem;padding-top:1rem}
 .motif-connections h2{margin-bottom:1rem}
 .motif-card-links{gap:1.2rem}
 .motif-card-link{font-size:1.1rem;gap:.65rem}
 .motif-card-link img{height:90px;max-width:3.5rem}
 .motif-photo-link{margin-top:1.3rem;padding-top:1rem}
 .motif-photo-link img{height:70px;max-width:4.5rem}
 .motif-footer{flex-wrap:wrap;gap:1rem;margin-top:.5rem;padding-top:1rem}
 .motif-sequence{width:100%;justify-content:space-between;gap:.7rem}
 .motif-sequence .button{font-size:.85rem;padding:.6em .8em}
 .motifs-page .page-bottom{flex-wrap:wrap;gap:1rem;padding-top:1rem}
}
