:root {
  --night:#247aa0; --night-2:#247aa0; --paper:#fff; --ink:#263f49;
  --muted:#60747c; --line:#dce9ed; --gold:#247aa0; --gold-light:#e8f5fa;
  --teal:#68b79b; --urban:#729ac5; --sans:'Yu Gothic UI','Hiragino Kaku Gothic ProN','Meiryo',sans-serif;
  --serif:var(--sans);
}
*{box-sizing:border-box}
body{margin:0;font-family:var(--sans);color:var(--ink);background:#f2f9fb;font-size:16px;line-height:1.75}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer;border:0}
button:disabled{cursor:wait;opacity:.6}
a{color:inherit;text-underline-offset:4px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #49a6bf;outline-offset:3px}
input,select,textarea{min-width:0}
svg{fill:none;stroke:currentColor;stroke-width:1.7}
button svg{width:20px;height:20px}
button .dot{pointer-events:none}
.skip-link{position:fixed;left:20px;top:-80px;z-index:9999;padding:10px 16px;background:white}
.skip-link:focus{top:10px}
.site-header{height:96px;padding:0 28px;display:flex;align-items:center;gap:24px;background:#fff;border-bottom:1px solid var(--line)}
.brand{display:flex;gap:11px;align-items:center;text-decoration:none;flex-shrink:0}
.brand img{width:44px;height:44px}
.brand>span{font-size:20px;font-weight:700;letter-spacing:0;line-height:1.5;color:#28667c}
.brand small{display:block;font-size:13px;font-weight:400;letter-spacing:.035em;color:var(--muted);margin-top:3px}
.site-header nav{display:flex;gap:24px;align-items:center;margin-left:auto}
.nav-link{font-size:14px;background:none;text-decoration:none;color:#4d6873;padding:32px 0;white-space:nowrap}
.nav-link:hover{color:#147393}
.nav-link.active{color:#1a7799;box-shadow:inset 0 -3px #62b5c9}
.nav-link span{font-size:13px;background:#edf6f8;border-radius:20px;min-width:24px;display:inline-block;line-height:23px;text-align:center;margin-left:5px}
.button{padding:12px 19px;display:inline-flex;gap:7px;align-items:center;justify-content:center;font-size:15px;font-weight:600;border-radius:8px;text-decoration:none;line-height:1.5}
.button-gold,.button-dark{background:#247aa0;color:#fff}
.button-gold:hover,.button-dark:hover{background:#1c6b8d}
.button-quiet{background:#fff;border:1px solid #cddfe5;color:#365e6d}
.button-quiet:hover{background:#edf7fa}
.header-post{margin-left:0;flex-shrink:0}
.workspace{display:grid;grid-template-columns:390px minmax(0,1fr);height:calc(100dvh - 96px);min-height:650px}
.explore-panel{background:#fff;display:flex;flex-direction:column;overflow:hidden;z-index:10;border-right:1px solid var(--line)}
.explore-intro{padding:28px 28px 21px;background:#f2fafc}
.eyebrow{font-size:14px;font-weight:500;color:var(--muted);margin:0 0 12px}
.explore-intro h1{font-size:28px;font-weight:700;line-height:1.5;letter-spacing:.02em;margin:0;color:#2e6478}
.intro-copy{font-size:15px;color:var(--muted);line-height:1.8;margin:13px 0 0}
.search-tools{padding:19px 24px 17px;border-bottom:1px solid var(--line)}
.search-box{display:flex;align-items:center;border:1px solid #c7dde4;background:#fff;padding:0 13px;border-radius:8px;gap:9px;height:48px}
.search-box svg{width:21px;height:21px;flex-shrink:0;color:#5d9daf}
.search-box input{border:0;background:none;outline:0;width:100%;font-size:16px;height:44px;color:var(--ink)}
.search-box:focus-within{box-shadow:0 0 0 2px #97ccd9}
.search-box input:focus-visible{outline:0}
.region-row{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:14px;color:var(--muted)}
.region-row select{border:0;background:#f3f8fa;font-size:15px;color:var(--ink);flex:1;min-width:100px;padding:6px 8px;border-radius:5px}
.text-button{background:none;color:#547785;font-size:14px;padding:6px}
.type-row{margin-top:0;margin-bottom:14px}
.category-tabs{display:flex;gap:6px;flex-wrap:wrap}
.category-tabs button{padding:7px 10px;display:flex;align-items:center;gap:6px;font-size:14px;border-radius:6px;background:#edf5f7;color:#4b6b77;white-space:nowrap}
.category-tabs button[aria-pressed=true]{background:#247aa0;color:#fff}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}
.legend-folklore{background:#5aaa8b}.legend-uma{background:#409cba}.legend-urban{background:#839ad0}
.mobile-view{display:flex;gap:5px;margin-top:14px}
.mobile-view button{padding:6px 15px;background:#f2f7f9;color:#456875;border-radius:6px;font-size:14px}
.mobile-view button[aria-pressed=true]{background:#dceff5;color:#236781}
.results-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 28px 10px}
.results-heading h2{font-weight:600;font-size:16px;margin:0}
.result-count{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.story-list{padding:0 16px 16px;overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#bdd9e1 transparent}
.story-card{display:block;text-decoration:none;padding:19px 12px;border-bottom:1px solid var(--line);position:relative;transition:background .15s}
.story-card:hover,.story-card.selected{background:#eef8fa;border-radius:8px}
.story-card:focus-visible{outline-offset:-3px}
.card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px}
.card-place{font-size:14px;color:var(--muted)}
.category-label{font-size:13px;line-height:1.5;display:inline-flex;align-items:center;gap:5px;color:#516c77}
.story-card h3{font-size:21px;font-weight:700;line-height:1.55;margin:7px 0 7px}
.story-card p{font-size:15px;line-height:1.8;color:#60747c;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-bottom{font-size:13px;color:#6c838c;display:flex;justify-content:space-between;gap:12px;margin-top:12px}
.record-icon{width:14px;height:14px;vertical-align:-2px;margin-right:4px}
.panel-foot{padding:13px 28px;background:#f4fafb;display:flex;justify-content:space-between;font-size:13px;color:var(--muted);gap:8px}
.map-panel{position:relative;overflow:hidden;background:#dceef5}
#map{height:100%;width:100%;background:#dceef5}
.map-tiles{filter:none}
.leaflet-container{font-family:var(--sans)}
.leaflet-control-attribution{font-size:11px!important;background:#fffffff0!important;color:#466c7b!important;padding:4px 9px!important}
.leaflet-control-attribution a{color:#236c8c!important}
.leaflet-control-zoom{border:1px solid #cfdee5!important;box-shadow:0 2px 7px #46768c1a!important}
.leaflet-control-zoom a{background:#fff!important;color:#35697e!important;border-color:#dce9ed!important;width:38px!important;height:38px!important;line-height:38px!important}
.leaflet-top.leaflet-right{top:75px;right:15px}
.leaflet-tooltip{background:#fff;color:#263f49;border:1px solid #d2e3e9;padding:8px 12px;border-radius:7px;box-shadow:0 3px 10px #365a6d20;font-size:14px}
.map-top{position:absolute;top:24px;left:25px;right:25px;z-index:500;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}
.map-caption{display:flex;align-items:center;gap:9px;font-size:15px;color:#37657b;padding:9px 15px;background:#fffffff2;border:1px solid #d8e8ed;border-radius:8px}
.tiny-cross{color:#4fa6a5;font-size:22px;line-height:1}
.map-button{pointer-events:auto;background:#fffffff2;border:1px solid #d8e8ed;color:#37657b;padding:11px 15px;border-radius:8px;font-size:14px}
.map-key{position:absolute;left:25px;bottom:40px;z-index:500;color:#3a6574;display:flex;gap:17px;align-items:center;font-size:14px;flex-wrap:wrap;max-width:380px;background:#fffffff2;border:1px solid #d8e8ed;padding:13px 16px;border-radius:8px}
.map-key>span{display:flex;gap:6px;align-items:center}
.map-key small{font-size:13px;flex-basis:100%;color:#657e89}
.map-notice{position:absolute;z-index:600;top:100px;left:25px;right:80px;color:#325c6d;background:#fff;padding:16px;border:1px solid #bfdce7;border-radius:8px;font-size:15px}
.map-unlocated{position:absolute;left:25px;bottom:143px;z-index:500;padding:11px 15px;background:#e9f5ed;color:#3f6e57;border:1px solid #c8e3d1;border-radius:8px;font-size:14px;box-shadow:0 2px 8px #3b6b5515}
.map-unlocated:hover{background:#daf0e2}
.map-marker{border:0!important;background:none!important}
.marker-disc{display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;box-shadow:0 0 0 4px #ffffff70,0 2px 5px #30615640;background:#5aaa8b;color:#fff;border:2px solid #fff;font-size:13px;font-weight:bold}
.map-marker.uma .marker-disc{background:#409cba}
.map-marker.urban .marker-disc{background:#839ad0}
.map-marker.active .marker-disc{transform:scale(1.3);box-shadow:0 0 0 6px #ffffffa0,0 2px 9px #30615640}
.loading-state,.empty-state{padding:24px 15px;color:var(--muted);font-size:15px}
.empty-state strong{display:block;font-size:20px;font-weight:600;color:var(--ink);margin-bottom:10px}
.empty-state button{margin-top:10px}
dialog{background:#fff;color:var(--ink);border:1px solid #d4e6ec;padding:0;border-radius:14px;box-shadow:0 18px 70px #20455433;max-height:90dvh;overscroll-behavior:contain}
dialog::backdrop{background:#33576166;backdrop-filter:blur(3px)}
.detail-dialog{width:min(760px,calc(100% - 36px))}
.post-dialog{width:min(660px,calc(100% - 28px));padding:36px}
.close-button{position:absolute;right:15px;top:15px;z-index:3;width:38px;height:38px;border-radius:50%;background:#edf6f9;color:#4a7585;font-size:25px;line-height:1;display:grid;place-items:center}
.close-button:hover{background:#dfeff4}
.detail-hero{padding:40px 40px 28px;border-bottom:1px solid var(--line);background:#f0f9fc}
.detail-hero .eyebrow{display:flex;gap:14px;align-items:center}
.detail-hero h2{font-size:30px;line-height:1.6;margin:12px 0 13px;font-weight:700;padding-right:16px}
.detail-location{font-size:15px;color:var(--muted)}
.detail-body{padding:30px 40px 36px}
.record-summary{font-size:17px;line-height:2;white-space:pre-wrap;margin:0 0 24px}
.record-type{font-size:14px;border-left:3px solid #a8d6c5;padding-left:12px;color:var(--muted);margin:0 0 24px}
.content-type-label{display:inline-block;padding:3px 8px;background:#eef7f0;border:1px solid #d5e9dd;border-radius:5px;font-size:13px;color:#456f58;line-height:1.5}
.record-type .content-type-label{margin:0 5px 4px 0}
.source-card{padding:19px 21px;border:1px solid var(--line);border-radius:9px;background:#fff}
.source-card .eyebrow{font-size:14px;margin-bottom:6px}
.source-card a{font-size:16px;display:block;overflow-wrap:anywhere;font-weight:600;color:#257795}
.source-card p{font-size:14px;color:var(--muted);margin:8px 0 0}
.visit-note{display:flex;gap:10px;font-size:14px;line-height:1.8;color:var(--muted);margin:18px 0}
.visit-note svg{flex-shrink:0;width:18px;height:18px;margin-top:3px}
.detail-actions{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0 30px}
.detail-actions .button{font-size:15px}
.contributions{border-top:1px solid var(--line);padding-top:24px}
.contributions h3{font-size:23px;font-weight:600;margin:0 0 8px}
.contributions-intro{font-size:15px;color:var(--muted);margin-bottom:20px}
.contribution{padding:19px 0;border-top:1px solid var(--line)}
.contribution-meta{display:flex;gap:10px;font-size:14px;color:var(--muted);flex-wrap:wrap}
.contribution h4{font-size:18px;font-weight:600;margin:10px 0 4px;overflow-wrap:anywhere}
.contribution p{white-space:pre-wrap;font-size:16px;line-height:1.9;overflow-wrap:anywhere}
.contribution a{font-size:14px;overflow-wrap:anywhere}
.contribution-actions{display:flex;justify-content:flex-end;margin-top:6px}
.contribution-actions .text-button{font-size:13px;text-decoration:underline}
.detail-report{text-align:right;margin-top:24px}
.detail-report button{font-size:14px;background:none;text-decoration:underline;color:var(--muted)}
.dialog-heading h2{font-size:27px;line-height:1.6;font-weight:600;margin:0 0 10px;padding-right:22px}
.dialog-heading>p:last-child{font-size:16px;color:var(--muted);margin-bottom:24px}
.post-dialog form>label,.post-dialog #new-story-fields>label,.form-grid>label{display:flex;flex-direction:column;font-size:16px;font-weight:500;gap:7px;margin-bottom:18px}
input:not([type=checkbox]),select,textarea{color:var(--ink)}
.post-dialog input:not([type=checkbox]),.post-dialog select,.post-dialog textarea,.admin-content input,.admin-content textarea{border:1px solid #c4dce5;border-radius:7px;background:#fff;padding:11px 12px;max-width:100%;width:100%;font-size:16px}
.post-dialog input[readonly]{background:#f0f6f8;color:#687f88}
.post-dialog textarea{resize:vertical;min-height:150px}
.post-dialog label small{font-size:14px;font-weight:400;color:var(--muted)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.consent-box{padding:17px;background:#f0f8f2;border-radius:8px}
.checkbox-label{display:flex;align-items:start;gap:11px;font-size:14px;line-height:1.8;margin:0 0 12px}
.checkbox-label:last-child{margin-bottom:0}
.checkbox-label input{accent-color:#308cb0;width:18px;height:18px;margin-top:4px;flex-shrink:0}
.form-note{font-size:14px;color:var(--muted);margin:18px 0}
.form-message{font-size:16px;color:#ad4941;white-space:pre-wrap;overflow-wrap:anywhere}
.form-message.success{color:#346f51;background:#eef8f0;padding:16px;border-radius:7px}
.full-width{width:100%}
.honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.creation-origin{border:1px solid #cbe4ee;background:#f0f9fc;padding:17px 19px;border-radius:8px;margin-bottom:18px}
.creation-origin>a{font-weight:600}
.creation-origin p{font-size:14px;line-height:1.8;margin:7px 0}
.creation-origin .eyebrow{margin-top:0}
.creation-parent{font-size:15px;background:#f0f8f2;padding:12px 15px;border-radius:7px}
.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);opacity:0;z-index:9999;background:#fff;color:#315a6b;padding:14px 23px;border:1px solid #c9e3ec;border-radius:9px;box-shadow:0 4px 20px #30566b20;max-width:calc(100% - 30px);pointer-events:none;transition:.2s;font-size:16px}
.toast.visible{opacity:1;transform:translate(-50%,0)}
.noscript-note{padding:30px;background:#fff}
.page-shell{max-width:920px;margin:40px auto 80px;background:#fff;padding:44px;border:1px solid var(--line);border-radius:14px}
.page-shell h1,.page-shell h2{font-weight:600;line-height:1.6}
.page-shell h1{font-size:32px;color:#2e6478}
.page-shell h2{font-size:25px;margin-top:38px}
.page-shell p,.page-shell li{line-height:1.95}
.page-shell ul{padding-left:24px}
.page-shell a{overflow-wrap:anywhere}
.page-foot{font-size:14px;color:var(--muted);margin-top:30px;border-top:1px solid var(--line);padding-top:20px}
.admin-content{max-width:1100px}.admin-login{max-width:420px;margin:30px auto}
.admin-login label{display:block;font-size:16px;margin:0 0 15px}
.admin-record{border:1px solid var(--line);padding:24px;margin-top:20px;border-radius:9px;background:#fff}
.admin-record h3{margin:5px 0 12px;font-size:20px}
.admin-record .body-text{white-space:pre-wrap;overflow-wrap:anywhere}
.admin-record .form-grid{margin:15px 0}
.admin-meta{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.admin-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.admin-status{font-size:14px;border-radius:20px;padding:3px 10px;background:#eef8f0;color:#436d54}
.admin-error{color:#ad4941}
.admin-section{margin-top:25px}.admin-section summary{cursor:pointer}
.admin-story-row{display:flex;justify-content:space-between;gap:15px;font-size:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.admin-story-row button{flex-shrink:0}
.admin-header{display:flex;align-items:center;justify-content:space-between}
.admin-report-target{border:1px solid #d1e4ed;background:#f3fafe;padding:17px;margin:18px 0;border-radius:8px}
.admin-report-target h4{margin:6px 0;font-size:18px}
.admin-report-target .body-text{font-size:16px;max-height:260px;overflow:auto}
.admin-report-reason{font-size:15px;color:#566f7a}
.admin-location-note{background:#f0f8f2;padding:13px;font-size:15px;border-radius:7px}
@media(min-width:1500px){.workspace{grid-template-columns:430px minmax(0,1fr)}.explore-intro{padding:31px 32px 24px}.explore-intro h1{font-size:31px}.search-tools{padding-left:28px;padding-right:28px}.story-list{padding-left:21px;padding-right:21px}}
@media(min-width:721px){.list-view .workspace{grid-template-columns:minmax(0,1fr)}.list-view .map-panel{display:none}.list-view .explore-intro{padding:20px 28px 16px}.list-view .explore-intro h1{font-size:27px}.list-view .explore-intro h1 br{display:none}.list-view .explore-intro .intro-copy{display:none}.list-view .search-tools{display:grid;grid-template-columns:minmax(200px,2fr) minmax(170px,1fr) minmax(180px,1fr);align-items:center;gap:12px 16px;padding:17px 28px}.list-view .region-row{margin:0}.list-view .mobile-view{margin:0;justify-content:flex-end}.list-view .story-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:8px 16px;align-content:start;padding-left:26px;padding-right:26px}.list-view .empty-state{grid-column:1/-1}.list-view .results-heading{padding-left:28px;padding-right:28px}}
@media(max-width:1100px){.site-header{padding:0 20px;gap:18px}.site-header nav{gap:17px}.about-link{display:none}.workspace{grid-template-columns:355px minmax(0,1fr)}.explore-intro{padding:24px 24px 20px}.explore-intro h1{font-size:26px}.search-tools{padding-left:18px;padding-right:18px}}
@media(max-width:900px){.site-header{display:grid;height:128px;grid-template-columns:1fr auto;grid-template-rows:70px 58px;gap:0 16px;padding:0 22px}.brand{grid-column:1;grid-row:1}.site-header nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;margin-left:0;gap:25px}.site-header .nav-link{padding:15px 0}.header-post{grid-column:2;grid-row:1}.workspace{height:calc(100dvh - 128px)}}
@media(max-width:720px){.site-header{height:128px;padding:0 16px;grid-template-rows:70px 58px;gap:0 10px}.brand{grid-column:1/-1;gap:9px}.brand img{width:35px;height:35px}.brand>span{font-size:17px;line-height:1.4}.brand small{font-size:13px;margin-top:3px}.site-header nav{grid-column:1;gap:20px;overflow:visible;min-width:0}.site-header .nav-link{font-size:14px;padding:15px 0}.site-header #explore-nav{display:none}.site-header #saved-nav{font-size:0}.site-header #saved-nav:before{content:'保存';font-size:14px}.site-header #saved-nav span{font-size:13px}.site-header .about-link{display:none}.header-post{grid-column:2;grid-row:2;padding:9px 13px;font-size:14px;margin-left:0}.workspace{display:flex;flex-direction:column;height:calc(100dvh - 128px);min-height:650px}.explore-panel{overflow:visible;flex-shrink:0;border-right:0;border-bottom:1px solid var(--line);position:relative}.explore-intro{padding:18px 120px 17px 20px}.explore-intro h1{font-size:23px;line-height:1.4}.intro-copy{display:none}.search-tools{padding:14px 16px 13px}.search-box{height:46px}.search-box input{font-size:16px;height:42px}.region-row{margin:9px 0}.category-tabs{gap:6px}.category-tabs button{font-size:14px;padding:6px 11px}.mobile-view{position:absolute;right:16px;top:33px;margin:0;gap:2px;background:#e0f0f6;padding:3px;border-radius:7px}.mobile-view button{padding:5px 9px;background:none;font-size:14px}.mobile-view button[aria-pressed=true]{background:#fff;color:#236781}.results-heading,.story-list,.panel-foot{display:none}.map-panel{flex:1;min-height:340px}.map-top{top:16px;left:14px;right:14px}.map-caption{font-size:14px;padding:7px 10px;gap:5px}.map-button{font-size:13px;padding:9px 11px}.map-key{left:14px;bottom:36px;font-size:13px;gap:12px;padding:10px 13px;max-width:285px}.map-key small{font-size:12px}.leaflet-top.leaflet-right{right:8px;top:72px}.leaflet-control-attribution{font-size:10px!important;max-width:100%}.map-unlocated{left:14px;bottom:132px;max-width:calc(100% - 65px);font-size:13px;padding:9px 12px}.mobile-list .map-panel{display:none}.mobile-list .explore-panel{height:100%;overflow:hidden}.mobile-list .results-heading{display:flex;padding:13px 24px}.mobile-list .story-list{display:block}.mobile-list .panel-foot{display:flex}.detail-dialog{max-height:94dvh;width:calc(100% - 16px);margin:3dvh auto;border-radius:10px}.detail-hero{padding:35px 25px 24px}.detail-hero h2{font-size:26px;padding-right:15px}.detail-body{padding:24px}.record-summary{font-size:16px}.detail-actions .button{font-size:14px;padding:10px 13px}.post-dialog{padding:31px 22px;width:calc(100% - 18px);max-height:94dvh}.dialog-heading h2{font-size:24px}.form-grid{grid-template-columns:1fr;gap:0}.page-shell{margin:18px 12px 40px;padding:27px 23px}.page-shell h1{font-size:27px}.page-shell h2{font-size:23px}.page-shell p,.page-shell li{font-size:16px}.admin-record{padding:18px}.admin-header{align-items:start;gap:14px}.admin-tools{gap:8px}.admin-tools .button{font-size:14px;padding:9px 12px}.admin-story-row{font-size:14px}.admin-report-target{padding:14px}}
@media(max-width:360px){.site-header{padding:0 12px}.brand>span{font-size:16px}.brand img{width:31px;height:31px}.site-header nav{gap:12px}.explore-intro{padding-left:16px;padding-right:116px}.explore-intro h1{font-size:21px}.category-tabs button{padding:6px 9px}.search-tools{padding-left:12px;padding-right:12px}}
[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.related-reading{margin:26px 0;font-size:16px}.related-reading a{color:var(--night);text-decoration:underline;text-underline-offset:4px}

@media(max-width:720px){.site-header #saved-nav{font-size:14px}.site-header #saved-nav:before{content:none}}

/* Nearby records share a count marker; the popup keeps every story reachable. */
.map-marker.cluster .marker-disc{width:38px;height:38px;background:#426b64;border:3px solid #fff;font-size:15px;box-shadow:0 0 0 4px #ffffff85,0 2px 6px #244b4430}
.map-group-heading{font-size:15px;font-weight:700;margin:3px 0 11px!important;color:#365e6d}
.map-group-list{max-height:222px;overflow:auto;scrollbar-width:thin}
.map-group-record{display:block;width:100%;text-align:left;background:#fff;color:var(--ink);border-top:1px solid var(--line);padding:11px 5px;line-height:1.5}
.map-group-record:hover{background:#eef8fa}
.map-group-record strong{display:block;font-size:15px}
.map-group-record span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.map-group-zoom{background:#e8f5fa;color:#247aa0;width:100%;padding:9px 12px;border-radius:5px;font-size:13px;margin-top:10px}
.map-group-popup .leaflet-popup-content{margin:17px 18px}
.map-group-popup .leaflet-popup-content-wrapper{border-radius:10px;box-shadow:0 3px 20px #365a6d25}

/* Keep the key and unlocated-record link below the map, away from Okinawa pins. */
.map-panel{display:flex;flex-direction:column}
#map{flex:1;min-height:0;height:auto}
.map-footer{position:relative;z-index:500;display:flex;align-items:center;justify-content:space-between;gap:9px 18px;flex-wrap:wrap;flex-shrink:0;padding:10px 18px;background:#fff;border-top:1px solid var(--line)}
.map-footer .map-unlocated{position:static;max-width:none;box-shadow:none;font-size:13px;padding:6px 9px;order:2}
.map-footer .map-key{position:static;max-width:none;padding:0;border:0;border-radius:0;background:none;font-size:13px;gap:8px 13px;flex:1}
.map-footer .map-key small{font-size:12px;white-space:nowrap}
@media(max-width:720px){.map-panel{min-height:480px}.map-footer{padding:9px 14px;gap:7px}.map-footer .map-key{min-width:100%;gap:5px 13px}.map-footer .map-unlocated{padding:5px 9px}.map-footer .map-key small{flex-basis:auto;white-space:normal;font-size:12px}}

/* Rat King and the illustrated site wordmark stay within the existing header. */
.brand .brand-mascot{display:block;width:58px;height:70px;object-fit:contain;flex-shrink:0}
.brand .brand-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1}
.brand .brand-logo{display:block;width:228px;height:auto;max-width:100%;object-fit:contain}
.brand .brand-copy small{font-size:12px;line-height:1.5;margin-top:2px;letter-spacing:.035em}
@media(max-width:1100px){.brand{gap:9px}.brand .brand-mascot{width:52px;height:64px}.brand .brand-logo{width:216px}}
@media(max-width:900px){.brand .brand-mascot{width:48px;height:60px}.brand .brand-logo{width:204px}.brand .brand-copy small{font-size:11px}}
@media(max-width:720px){.brand{gap:9px;min-width:0}.brand .brand-mascot{width:48px;height:60px}.brand .brand-logo{width:200px;height:auto}.brand .brand-copy small{font-size:11px;margin-top:2px;line-height:1.5}}
@media(max-width:360px){.brand{gap:7px}.brand .brand-mascot{width:43px;height:56px}.brand .brand-logo{width:192px}}