/* Craft discovery uses the existing story-map shell and map renderer. */
#craft-app{--sheet-height:330px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) var(--sheet-height);height:100vh;height:100dvh;overflow:hidden;padding-top:env(safe-area-inset-top)}
#craft-header{gap:8px;min-height:58px;padding:6px 12px}
#craft-header .map-brand{flex:1;min-width:0}
#craft-header .map-brand span{font-size:14px}
.craft-back{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:12px;color:#315d48;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
#craft-language{flex:none;min-height:44px;min-width:44px;border:1px solid #ccd6c8;border-radius:22px;background:#fffdf7;font-size:12px}
.craft-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:7px 8px;padding:7px 12px 10px;border-bottom:1px solid #dce0d2;background:#f8f5ec;align-items:end;z-index:2}
.craft-filters label{display:block;min-width:0}
.craft-filters label span{display:block;font-size:11px;line-height:1.4;color:#536c5b;margin:0 0 3px}
.craft-filters select{width:100%;height:44px;padding:0 23px 0 9px;border:1px solid #ccd6c8;border-radius:8px;background:#fffdf7;font-size:16px;text-overflow:ellipsis}
.craft-filters label:nth-child(1){grid-column:1;grid-row:1}
.craft-filters label:nth-child(2){grid-column:2 / 4;grid-row:1}
.craft-filters label:nth-child(3){grid-column:1;grid-row:2}
.craft-filters label:nth-child(4){grid-column:2;grid-row:2}
#craft-overview{grid-column:3;grid-row:2;width:44px;min-height:44px;border:1px solid #ccd6c8;border-radius:8px;background:#fffdf7;font-size:23px}
#craft-map-viewport{grid-column:1;min-height:0}
#craft-frame{width:100%;height:100%;display:block;border:0}
#craft-sheet{height:var(--sheet-height);min-height:0;border-radius:17px 17px 0 0;transition:height .16s ease}
#craft-app.is-dragging #craft-sheet{transition:none}
#craft-handle{display:flex;width:100%;height:44px;min-height:44px;flex:none;justify-content:center;align-items:center;background:transparent;border:0;touch-action:none;cursor:ns-resize}
#craft-handle span{width:42px;height:4px;border-radius:10px;background:#aebb9f}
#craft-sheet .sheet-heading{padding:0 14px 12px;min-height:74px;align-items:center}
#craft-eyebrow{font-size:9px!important;letter-spacing:.14em;margin:0 0 6px!important;color:#667b64!important}
#craft-title{font-family:Georgia,"Noto Serif TC",serif;font-size:22px!important;line-height:1.25!important;font-weight:500;letter-spacing:-.025em!important}
#craft-count{font-size:12px!important;margin-top:7px!important}
#craft-list{padding:0 14px calc(20px + env(safe-area-inset-bottom));scroll-padding-top:8px}
#craft-app[data-sheet=collapsed] #craft-list{visibility:hidden;overflow:hidden}
#craft-app[data-sheet=collapsed] #craft-eyebrow{display:none}
#craft-app[data-sheet=collapsed] #craft-title{-webkit-line-clamp:1;font-size:18px!important}
#craft-app[data-sheet=collapsed] #craft-handle{height:44px;min-height:44px}
.craft-intro{font-size:14px;line-height:1.8;margin:2px 0 17px;color:#506b59}
.craft-card{display:block;width:100%;text-align:left;color:#173e33;border:1px solid #d6ddce;background:#fffdf7;border-radius:12px;padding:16px;margin:0 0 10px;min-height:104px;box-shadow:0 2px 3px #173e3304}
.craft-card:hover{border-color:#738c65;background:#f0f2e8}
.craft-card-kicker{display:block;font-size:11px;letter-spacing:.02em;color:#657760;margin-bottom:8px}
.craft-card-title{display:flex;justify-content:space-between;gap:12px;font-size:18px;line-height:1.4;font-weight:650}
.craft-card-arrow{font-size:21px;font-weight:400;flex:none}
.craft-card-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;line-height:1.7;margin:9px 0 0;color:#506451}
.craft-card-meta{display:block;font-size:12px;color:#68755c;margin-top:11px;line-height:1.6}
.craft-detail-back{display:inline-flex;align-items:center;min-height:44px;padding:6px 0;margin:0 0 3px;border:0;background:transparent;font-size:13px;color:#315d48;text-decoration:underline;text-underline-offset:3px}
.craft-detail-kicker{font-size:12px;color:#697b62;margin:6px 0 15px}
.craft-detail-section{padding:16px 0 18px;border-top:1px solid #d8decf}
.craft-detail-section h2{font-family:Georgia,"Noto Serif TC",serif;font-size:20px;font-weight:500;line-height:1.4;margin:0 0 12px}
.craft-detail-section p{font-size:15px;line-height:1.9;margin:0;white-space:pre-line;overflow-wrap:anywhere}
.craft-info{margin:0;display:grid;grid-template-columns:76px minmax(0,1fr);gap:11px 12px;font-size:13px;line-height:1.8}
.craft-info dt{color:#65745d}
.craft-info dd{margin:0;overflow-wrap:anywhere}
.craft-actions{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 14px}
.craft-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 15px;border-radius:24px;text-decoration:none;font-size:13px;line-height:1.5;font-weight:600;color:#173e33;border:1px solid #aebda5;background:#fffdf7}
.craft-actions a:first-child{background:#173e33;color:#fffdf7;border-color:#173e33}
.craft-sources{font-size:12px;line-height:1.8;color:#64745d;border-top:1px solid #d8decf;padding-top:5px;overflow-wrap:anywhere}
.craft-sources summary{display:list-item;cursor:pointer;min-height:44px;padding:10px 0;color:#3c6047}
.craft-sources a{color:#315d48;display:inline-block;min-height:44px;padding:9px 0}
.craft-sources ul{margin:0;padding-left:18px}
.craft-sources p{margin:4px 0 10px}
.craft-empty{padding:7px 0;font-size:14px;line-height:1.8}
.craft-reset{min-height:44px;padding:9px 18px;border:1px solid #173e33;border-radius:22px;background:#173e33;color:#fffdf7;font-size:13px}
.craft-photo{margin:0 0 17px}
.craft-photo img{display:block;max-height:280px;width:100%;height:auto;object-fit:contain;border-radius:10px;background:#e9eddf}
.craft-photo details{font-size:11px;line-height:1.7;color:#65745d}
.craft-photo summary{cursor:pointer;min-height:44px;padding:10px 0}
.craft-photo a{color:inherit}
@media(min-width:900px){
 #craft-app{grid-template-columns:minmax(0,1fr) 440px;grid-template-rows:auto auto minmax(0,1fr)}
 #craft-header,#craft-filters{grid-column:1 / -1}
 #craft-header{padding-inline:22px}
 #craft-header .map-brand span{font-size:17px}
 .craft-back{font-size:13px;margin-right:12px}
 .craft-filters{grid-template-columns:repeat(4,minmax(140px,230px)) 44px;justify-content:center;padding:10px 22px 12px;gap:12px}
 .craft-filters label:nth-child(n){grid-column:auto;grid-row:auto}
 .craft-filters select{font-size:14px}
 #craft-overview{grid-column:auto;grid-row:auto}
 #craft-map-viewport{grid-column:1;grid-row:3}
 #craft-sheet{grid-column:2;grid-row:3;height:auto;border-radius:0;border-top:0;border-left:1px solid #c8d3c4;box-shadow:-3px 0 15px #173e3308}
 #craft-handle,#craft-sheet .sheet-controls{display:none}
 #craft-sheet .sheet-heading{padding:24px 23px 20px;min-height:112px}
 #craft-list{padding-inline:23px}
 #craft-app[data-sheet=collapsed] #craft-list{visibility:visible;overflow:auto}
 #craft-app[data-sheet=collapsed] #craft-eyebrow{display:block}
 #craft-app[data-sheet=collapsed] #craft-title{font-size:22px!important;-webkit-line-clamp:2}
 .craft-info{grid-template-columns:82px minmax(0,1fr)}
}
@media(max-width:359px){#craft-header{padding-inline:8px;gap:6px}#craft-header .map-brand img{width:28px;height:28px}#craft-header .map-brand span{font-size:12px}.craft-back{font-size:11px}.craft-filters{padding-inline:8px;gap:6px}.craft-filters label span{font-size:10px}#craft-sheet .sheet-heading{padding-inline:10px}#craft-list{padding-inline:10px}.craft-info{grid-template-columns:65px minmax(0,1fr);gap:9px}}
@media(max-height:500px) and (min-width:560px) and (max-width:899px){.craft-filters{grid-template-columns:repeat(4,minmax(0,1fr)) 44px}.craft-filters label:nth-child(n),#craft-overview{grid-column:auto;grid-row:auto}.craft-filters{padding-block:4px}.craft-filters label span{font-size:10px}#craft-header{min-height:48px;padding-block:2px}#craft-handle{height:44px;min-height:44px}#craft-sheet .sheet-heading{min-height:58px;padding-bottom:7px}#craft-eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){#craft-sheet{transition:none}}
/* Short screens show a workshop immediately; cultural detail remains readable. */
@media(max-height:700px) and (max-width:899px){.craft-intro,#craft-eyebrow{display:none}#craft-sheet .sheet-heading{min-height:66px;padding-bottom:8px}#craft-title{font-size:20px!important}}

/* Source-backed details remain readable in the same map/list interface. */
.craft-process{padding-left:22px;margin:0;font-size:15px;line-height:1.85}
.craft-process li{padding-left:3px;margin:0 0 12px;overflow-wrap:anywhere}
.craft-process li:last-child{margin-bottom:0}
.craft-info dd{white-space:pre-line}
.craft-filters label[hidden]{display:none}
.craft-filters[data-teaching=false] label:nth-child(3){grid-column:1 / 3}
#craft-overview{font-size:12px}
#craft-sheet .sheet-controls button{min-width:96px;min-height:44px;height:44px;padding:0 12px;border-radius:8px;font-size:12px;white-space:nowrap}
@media(min-width:900px){
 .craft-filters[data-teaching=false]{grid-template-columns:repeat(3,minmax(140px,230px)) 44px}
 .craft-filters[data-teaching=false] label:nth-child(3){grid-column:auto}
}
@media(max-height:500px) and (min-width:560px) and (max-width:899px){
 .craft-filters[data-teaching=false]{grid-template-columns:repeat(3,minmax(0,1fr)) 44px}
 .craft-filters[data-teaching=false] label:nth-child(3){grid-column:auto}
}

.craft-photo details a{display:inline-flex;align-items:center;min-height:44px;margin-right:14px;overflow-wrap:anywhere}
