/* Editorial heritage design: open compositions, chapel arches, warm paper. */
:root{--paper:#faf6ee;--ink:#3f392f;--green:#485346;--red:#8c3739;--muted:#796f60;--line:#dfd5c5}
body{background:var(--paper);color:var(--ink)}
header{height:102px;padding:0 6%;background:transparent}
.brand{font-size:16px;gap:12px}.brand strong{font-size:25px;letter-spacing:.2px}.brand-flower{width:59px;height:70px}
nav{gap:30px}nav a{font-size:12px;letter-spacing:.3px}nav button{border:0;border-radius:30px;background:#eee7da;padding:12px 19px;font-size:12px}
.hero{border:0;background:transparent;overflow:visible;margin:0 6%;min-height:0}
.hero-copy{padding:28px 0 32px;column-gap:8%;row-gap:16px;grid-template-columns:1.1fr 1fr}
.hero-copy:before{inset:0 -3% 0 34%;border-radius:55% 38% 48% 22%;background:linear-gradient(90deg,#faf6ee,#faf6eed4),url('assets/appenzell-magdalena-stich.png') right center/auto 100% no-repeat}
.hero-copy h1{font-size:clamp(43px,4.5vw,67px);line-height:1.05;letter-spacing:-2.1px;color:#40392f}
.hero-copy h1 em{font-weight:500;color:#8c3739}.hero-copy>p{font-size:14px;line-height:1.9;color:#6b6154;max-width:395px}
.eyebrow{letter-spacing:2px;font-size:9px;font-weight:600}
.hero-copy .primary{background:none;color:var(--red);border-radius:0;border-bottom:1px solid #b78275;padding:2px 0 8px;box-shadow:none;gap:22px;font-size:12px;transition:gap .2s}
.hero-copy .primary:hover{background:none;gap:32px}.hero-bottom{font-size:10px;color:#7a6a56;gap:26px}.hero-bottom b{font-style:italic;color:#8c3739;font-size:26px}
.explore{position:relative;margin-top:0;padding:35px 6% 50px;background:#f0eadf;border-radius:65px 65px 0 0}
.section-heading{align-items:center;margin-bottom:25px;gap:28px}.section-heading>div{padding-left:0;min-height:0}.section-heading>div:before{display:none}
.section-heading h2{font-size:clamp(29px,2.65vw,40px);letter-spacing:-1.1px;margin-top:9px;color:#40392f}.section-heading p{font-size:12px;color:#807361;line-height:1.8}
.toolbar{background:transparent;box-shadow:none;border:0;border-radius:0;padding:0;gap:18px;align-items:center}
.toolbar>.search{background:#fffcf6;border:1px solid #e5dccc;border-radius:30px;box-shadow:0 4px 16px #6f583508;padding:0 20px;flex:1 1 320px;height:52px}
.toolbar>label:not(.search){border:0;border-bottom:1px solid #c6b8a0;background:none;border-radius:0;height:42px}
.toolbar select{color:#665746;padding-left:0;font-size:12px}.toolbar>button{background:none;border:0;border-radius:25px;padding:10px 14px;font-size:12px;height:42px}.toolbar>button:hover{background:#e6dece}
.toolbar>button[aria-pressed=true]{background:#8c3739;color:#fffaf0}
.resultbar{margin:20px 0 22px;color:#80715c;font-size:11px}.view-options{gap:20px}.segmented{background:#e5ddce;border:0;border-radius:30px;padding:4px}.segmented button{border-radius:25px;padding:9px 16px}.segmented button[aria-pressed=true]{background:#fffaf1;color:#6e3935;box-shadow:0 2px 8px #64523816}
#explorer{grid-template-columns:minmax(290px,350px) minmax(0,1fr);gap:35px}
.map-mode .results{gap:0;padding:0 12px 0 0;scrollbar-width:thin;scrollbar-color:#c1b298 transparent}
.card{border:0;background:transparent;border-radius:0;box-shadow:none;overflow:visible}.card:hover{border-color:transparent;box-shadow:none;background:transparent}
.map-mode .results>.card{flex:0 0 auto;min-height:176px;border-bottom:1px solid #d7cdbb;overflow:visible;padding:16px 0}
.map-mode .results>.card:first-child{padding-top:0;min-height:160px}
.map-mode .card-main{grid-template-columns:104px minmax(0,1fr);gap:19px;min-height:144px;align-items:center}
.map-mode .card img{width:104px;height:144px;min-height:144px;max-height:144px;border-radius:55px 55px 9px 9px;object-fit:cover;box-shadow:0 3px 10px #52402612}
.map-mode .card-copy{padding:0;border:0}.map-mode .card h3{font-size:22px;font-weight:500;letter-spacing:-.5px;margin:7px 0;line-height:1.18}.card .meta{font-size:9px;letter-spacing:1px;color:#976b54}.card .patron{color:#857665;font-size:11px;line-height:1.6}.map-mode .card .more{font-size:10px;margin-top:13px;color:#8c3739}
.card-main:hover h3{color:#8c3739}.map-mode .heart{top:26px;left:7px;width:26px;height:26px;line-height:26px;background:#fffaf2e8;box-shadow:none}.map-mode .card:first-child .heart{top:10px}
.map-panel{border:0;border-radius:90px 23px 90px 23px;box-shadow:0 12px 32px #6f57341c;isolation:isolate;overflow:hidden}
.fit-map{top:19px;right:62px;border:0;border-radius:24px;padding:11px 16px;box-shadow:0 3px 12px #705c3320;background:#fffaf0ed}
.map-note{left:28px;right:28px;bottom:34px;border:0;border-radius:17px;padding:12px 19px;background:#fff9eceb;box-shadow:0 3px 14px #725a3210}.map-note b{font-size:15px;font-weight:400}.map-note span{line-height:1.5}
.map-panel .leaflet-top.leaflet-left{top:47px;left:14px}.map-panel .leaflet-top.leaflet-right{top:9px;right:9px}
.leaflet-bar{box-shadow:0 3px 12px #705c3320;border:0!important;overflow:hidden;border-radius:20px!important}.leaflet-bar a{background:#fffaf0;color:#6a5038}.leaflet-control-layers{border:0!important;border-radius:20px;background:#fffaf0}
.map-panel .leaflet-bottom.leaflet-left{left:25px;bottom:4px}.small-note{font-size:10px;color:#94836c;max-width:850px;margin-top:22px}
.gallery-mode .results{gap:36px 30px}.gallery-mode .card{padding:0 0 20px}.gallery-mode .card img{height:270px;border-radius:130px 130px 13px 13px}.gallery-mode .card:nth-child(3n+2) img{border-radius:13px 130px 13px 13px}.gallery-mode .card-copy{padding:22px 4px 0;min-height:0}.gallery-mode .card h3{font-size:27px;letter-spacing:-.5px}.gallery-mode .heart{right:17px;top:23px}
.photo-stories{background:var(--paper);padding:65px 8% 80px}.photo-stories>div:first-child{padding-left:0;min-height:0;text-align:center;max-width:650px;margin:0 auto 38px}.photo-stories>div:first-child:before{position:static;display:block;width:45px;height:55px;margin:0 auto 17px}.photo-stories h2{font-size:39px;letter-spacing:-1px;margin:12px 0 0}
.story-grid{gap:35px;align-items:start}.story-grid>button{height:375px;border:0;border-radius:160px 160px 15px 15px;box-shadow:none}.story-grid>button:nth-child(2){margin-top:35px}.story-grid span{left:25px;right:25px;bottom:29px}.story-grid big{font-size:27px;line-height:1.22}.story-grid>button:after{background:linear-gradient(transparent,#303527e6)}
.collection{margin:0 4%;padding:65px 7%;border:0;border-radius:110px 25px 110px 25px;background:#eae2d2;gap:65px;grid-template-columns:1fr 1.15fr}
.collection>div:nth-child(2){padding-top:0;padding-left:0}.collection>div:nth-child(2):before{position:static;display:block;width:58px;height:68px;margin-bottom:17px}.collection h2{font-size:46px;line-height:1.15;color:#514431}.collection-text{font-size:14px;line-height:1.9;color:#6f604c;align-self:center}.collection-text button{margin-top:12px}
footer{background:transparent;padding:35px 6%;color:#8c7b65}footer .brand-flower{width:38px;height:47px}
dialog{border-radius:28px;background:#faf6ee;max-width:1100px}dialog::backdrop{background:#30291fb0;backdrop-filter:blur(7px)}.modal-top{border:0;gap:0;padding:30px 30px 0;grid-template-columns:.95fr 1.05fr}.modal-image{border-radius:180px 180px 16px 16px;max-height:460px;height:440px}.modal-intro{background:none;padding:45px 20px 25px 38px}.modal-intro h2{font-size:41px;letter-spacing:-1px}.modal-intro>p{color:#7d6d57;font-size:13px;line-height:1.8}.modal-intro:after{width:40px;height:48px}.modal-buttons button{border-radius:25px;padding:12px 18px}.modal-buttons button+button{background:#eee5d6;color:#70563d}.modal-body{padding:30px 45px 50px;gap:45px}.modal-body h3{color:#7d4d3b;font-size:26px}.modal-body p{font-size:14px;color:#665b4d;line-height:1.95}.modal-body aside>img{border-radius:65px 9px 65px 9px}.historical{border-color:#c8ad7f}#detailMap{border:0;border-radius:28px 28px 65px 15px}.close{border:0;background:#fffaf1;box-shadow:0 3px 15px #55402720}.empty{background:transparent}.empty button{border-radius:25px}
@media(max-width:1050px){.hero-copy{column-gap:35px}.hero-copy h1{font-size:50px}#explorer{grid-template-columns:290px minmax(0,1fr);gap:24px}.map-mode .card-main{grid-template-columns:85px minmax(0,1fr);gap:16px}.map-mode .card img{width:85px;height:132px;min-height:132px}.map-mode .card h3{font-size:20px}.toolbar{gap:13px}.toolbar>.search{flex-basis:100%}.story-grid{gap:22px}.story-grid>button{height:330px}.story-grid big{font-size:24px}.collection{padding:55px 6%;gap:35px}.collection h2{font-size:39px}.modal-intro h2{font-size:34px}}
@media(max-width:700px){header{height:85px;padding:0 5%}.brand-flower{width:46px;height:58px}.brand{font-size:12px}.brand strong{font-size:21px}nav{gap:12px}nav button{font-size:10px;padding:10px 12px}nav a{font-size:11px}.hero{margin:0 6%}.hero-copy{padding:20px 0 28px;gap:15px}.hero-copy h1{font-size:44px}.hero-copy>p{font-size:13px}.hero-copy:before{inset:0 0 0 20%}.hero-bottom{gap:18px}.explore{padding:28px 5% 35px;border-radius:35px 35px 0 0}.section-heading{display:block;margin-bottom:22px}.section-heading h2{font-size:30px}.section-heading p{font-size:11px;margin-top:12px}.toolbar{gap:10px}.toolbar>.search{height:49px}.toolbar>label:not(.search){height:39px}.toolbar>button{padding:8px 10px}.resultbar{margin:16px 0}.view-options{gap:4px}.segmented button{padding:8px 13px}.map-panel{border-radius:48px 16px 48px 16px}.map-panel .leaflet-top.leaflet-left{top:36px;left:10px}.map-note{left:16px;right:16px;bottom:29px;padding:10px 13px;border-radius:13px}.map-note b{font-size:14px}.map-note span{font-size:9px}.fit-map{top:15px;right:58px;font-size:10px}.map-mode .results{padding-right:4px}.map-mode .results>.card{min-height:159px;padding:14px 0}.map-mode .card-main{grid-template-columns:97px minmax(0,1fr);gap:21px;min-height:130px}.map-mode .card img{width:97px;height:130px;min-height:130px}.map-mode .card h3{font-size:23px}.map-mode .card:first-child .heart{top:10px}.gallery-mode .results{gap:25px 17px}.gallery-mode .card img{height:190px;border-radius:90px 90px 10px 10px}.gallery-mode .card:nth-child(3n+2) img{border-radius:10px 90px 10px 10px}.gallery-mode .card-copy{padding:15px 0 0}.gallery-mode .card h3{font-size:22px}.photo-stories{padding:40px 7% 48px}.photo-stories h2{font-size:32px}.story-grid{gap:25px;max-width:410px;margin:auto}.story-grid>button{height:340px}.story-grid>button:nth-child(2){margin-top:0}.story-grid big{font-size:28px}.collection{margin:0 4%;padding:38px 8%;border-radius:60px 20px 60px 20px}.collection>div:nth-child(2):before{width:46px;height:58px}.collection h2{font-size:36px}.collection-text{font-size:13px}.modal-top{display:block;padding:18px 18px 0}.modal-image{height:280px;border-radius:140px 140px 12px 12px}.modal-intro{padding:24px 8px 10px}.modal-intro h2{font-size:32px}.modal-body{padding:15px 26px 35px}.modal-body aside>img{max-height:360px}.modal-intro:after{display:none}dialog{border-radius:22px}.about-content{padding:40px 26px}}
@media(prefers-reduced-motion:reduce){.hero-copy .primary{transition:none}}

/* Regionally referenced artwork and quietly framed photographs. */
header .brand-flower{width:90px;height:70px;object-fit:contain;filter:drop-shadow(0 2px 2px #705b2920)}
footer .brand-flower{width:61px;height:47px}
.photo-stories>div:first-child:before{width:76px;height:54px}.collection>div:nth-child(2):before{width:85px;height:62px}.modal-intro:after{width:65px;height:49px}
.hero-copy:before{inset:0 -3% 0 28%;border-radius:0;background:linear-gradient(90deg,#faf6ee 5%,#faf6eee8 38%,#faf6ee80 80%,#faf6ee55),url('assets/appenzell-magdalena-stich.png') right center/auto 100% no-repeat}
.map-mode .card img,.gallery-mode .card img,.gallery-mode .card:nth-child(3n+2) img,.modal-image,.modal-body aside>img{border-radius:7px;border:4px solid #fffcf6;outline:1px solid #dacebb;box-shadow:0 4px 12px #5e45251a}
.story-grid>button{border-radius:8px;border:5px solid #fffcf6;outline:1px solid #dacebb;box-shadow:0 6px 18px #5e45251c}
.story-grid img{border-radius:3px}.story-grid>button:nth-child(2){margin-top:0}
.alpaufzug-footer{margin:30px 6% 0;height:clamp(65px,10vw,155px);background:url('assets/appenzell-alpaufzug-silhouette.png') center/100% auto no-repeat;opacity:.72;pointer-events:none}
footer{padding-top:20px}
@media(max-width:700px){header .brand-flower{width:66px;height:53px}header .brand{gap:8px}.hero-copy:before{inset:0 0 0 12%;background:linear-gradient(90deg,#faf6eef5,#faf6eed9),url('assets/appenzell-magdalena-stich.png') right center/auto 100% no-repeat}.photo-stories>div:first-child:before{width:68px;height:48px}.collection>div:nth-child(2):before{width:76px;height:55px}.alpaufzug-footer{margin:22px 4% 0;height:60px;background-size:100% auto;background-position:center}.map-mode .card img,.gallery-mode .card img,.gallery-mode .card:nth-child(3n+2) img,.modal-image,.modal-body aside>img{border-radius:6px}.story-grid>button{border-radius:7px}}

/* Quiet single-ink church engraving; text remains the visual focus. */
.hero-copy:before{opacity:.48;background:linear-gradient(90deg,#faf6ee 8%,#faf6eee8 42%,#faf6ee90),url('assets/appenzell-magdalena-stich.png') right center/auto 100% no-repeat}
footer #imprint{border:0;padding:0 0 3px;background:none;color:#795d43;border-bottom:1px solid #c7b496;font-size:11px}
@media(max-width:700px){.hero-copy:before{opacity:.33}}

/* Copper-print presentation: sepia double rule, warm laid-paper mat, fine outer keyline. */
.map-mode .card img,.gallery-mode .card img,.gallery-mode .card:nth-child(3n+2) img,.modal-image,.modal-body aside>img{border-radius:4px;border:3px double #9d8060;padding:5px;background:#eee2cb;outline:1px solid #c8b494;outline-offset:3px;box-shadow:0 2px 2px #5c432514,0 7px 15px #5c43251c}
.map-mode .card img{padding:3px;outline-offset:2px}
.gallery-mode .card-main{padding:5px}.gallery-mode .card-copy{padding-left:2px}
.story-grid>button{border-radius:5px;border:3px double #947454;outline:1px solid #bda17b;outline-offset:4px;box-shadow:0 3px 0 #e5d4b8,0 10px 22px #5c432522;background:#dfceb0}
.story-grid>button:before{content:'';position:absolute;inset:5px;border:1px solid #f1dfbba6;border-radius:2px;z-index:2;pointer-events:none}
.story-grid img{border-radius:2px}.modal-body aside>img{background:#eee2cb}
@media(max-width:700px){.map-mode .card img,.gallery-mode .card img,.gallery-mode .card:nth-child(3n+2) img,.modal-image,.modal-body aside>img{border-radius:4px}.story-grid>button{border-radius:5px}}

/* Featured engravings: uninterrupted art, prominent ink-on-paper captions. */
.story-grid{align-items:stretch}
.story-grid>button,.story-grid>button:nth-child(2){height:auto;min-height:0;display:flex;flex-direction:column;margin-top:0;background:#faf2e2;color:#463527;overflow:hidden;transition:box-shadow .2s}
.story-grid>button:after,.story-grid>button:before{display:none}
.story-grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;flex:0 0 auto;background:#faf2e2;transform:none;transition:none}
.story-grid button:hover img{transform:none}
.story-grid>button>span{position:static;display:flex;flex:1;flex-direction:column;z-index:auto;padding:22px 24px 25px;margin:0 14px;border-top:1px solid #c5ad89;color:#825b3e;font-size:9px;letter-spacing:1.6px}
.story-grid big{display:block;font-size:28px;line-height:1.2;letter-spacing:-.5px;color:#4c3727;margin:12px 0 18px}
.story-grid small{display:block;margin-top:auto;color:#813e35;font-size:12px;font-weight:600;letter-spacing:.1px}
.story-grid>button:hover{box-shadow:0 3px 0 #e5d4b8,0 12px 25px #5c432530}.story-grid>button:hover small{text-decoration:underline;text-underline-offset:4px}
@media(max-width:1050px){.story-grid>button>span{padding:19px 13px 23px;margin:0 10px}.story-grid big{font-size:24px}}
@media(max-width:700px){.story-grid>button{height:auto}.story-grid>button>span{padding:22px 16px 25px;margin:0 14px}.story-grid big{font-size:28px}}

#storageDialog{width:min(92vw,590px);max-height:88vh;border:1px solid #cbb691;border-radius:13px;background:#faf5e9;box-shadow:0 15px 70px #39281955}
.storage-content{padding:32px}.storage-content h2{font-size:31px;margin:10px 0 20px}.storage-content p{font-size:13px;line-height:1.8;color:#655541}.storage-actions{display:flex;gap:12px;flex-wrap:wrap;margin:23px 0}.storage-actions button{flex:1 1 200px;border:1px solid #ab9472;border-radius:24px;padding:12px 17px;background:#eee2ce;color:#553c2b;font-size:12px}.storage-actions button:hover{background:#e5d4b6}.storage-content details{border-top:1px solid #d8c7ad;padding-top:17px;font-size:12px}.storage-content summary{cursor:pointer}.storage-content a{text-decoration:underline}footer #storageSettings{border:0;border-bottom:1px solid #c7b496;padding:0 0 3px;background:none;color:#795d43;font-size:11px}
@media(max-width:700px){.storage-content{padding:25px}.storage-content h2{font-size:28px}}

/* Desktop introduction: a clear title/subtitle sequence and separate engraving. */
@media(min-width:701px){
 .hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:25px 0 30px}
 .hero-copy .eyebrow{margin:0 0 17px}
 .hero-copy h1{width:100%;font-size:clamp(38px,4.25vw,64px);line-height:1.12;letter-spacing:-1.8px;margin:0 0 17px;text-wrap:balance}
 .hero-copy h1 br{display:none}
 .hero-copy>p{width:67%;max-width:790px;margin:0 0 18px;font-family:'Playfair Display',Georgia,serif;font-size:clamp(19px,1.65vw,24px);font-weight:400;line-height:1.5;letter-spacing:-.2px;color:#776049;text-wrap:pretty}
 .hero-copy .primary{margin:0 0 20px;padding:2px 0 7px}
 .hero-bottom{width:67%;margin:0;padding:0;gap:24px}
 .hero-copy:before{inset:105px 0 10px 73%;border-radius:0;background:linear-gradient(90deg,#faf6ee90,#faf6ee20),url('assets/appenzell-magdalena-stich.png') right center/auto 100% no-repeat;opacity:.48}
}
@media(min-width:701px) and (max-width:1000px){
 .hero-copy h1{font-size:clamp(35px,4.4vw,44px);letter-spacing:-1.2px}
 .hero-copy>p{width:70%;font-size:19px}
 .hero-copy:before{left:76%;top:95px;opacity:.36}
 .hero-bottom{width:72%;gap:16px}
}

/* One explicit trail checkbox; no redundant layer-menu icon. */
.leaflet-container .leaflet-control-layers .leaflet-control-layers-toggle{display:none!important}
.leaflet-container .leaflet-control-layers{padding:8px 11px;border:1px solid #d4c3a7!important;border-radius:8px;background:#fffaf2f5;box-shadow:0 2px 8px #59432b20;color:#594735}
.leaflet-container .leaflet-control-layers-list{margin:0;padding:0;border:0}
.leaflet-container .leaflet-control-layers-overlays label{margin:0;font:12px/1.5 'DM Sans',Arial,sans-serif;cursor:pointer}
.leaflet-container .leaflet-control-layers-selector{position:static;vertical-align:middle;margin:0 5px 0 0;accent-color:#943c3d}

/* User-provided chapel tablet in the header, preserving its full silhouette. */
header .brand-tablet{width:68px;height:78px;object-fit:contain;object-position:center;flex-shrink:0;filter:drop-shadow(0 2px 2px #705b2920)}
@media(max-width:700px){header .brand-tablet{width:51px;height:60px}}
