/* MAP-002 integrated demo: retain portal content while clarifying the map/list controls. */
#header-user{background:#172e4b!important;border:0!important;box-shadow:none!important;padding:9px 16px!important;min-height:56px;z-index:40}
#header-user>div{max-width:448px;gap:0}
#header-user h1{color:#fff!important;font-size:19px!important;line-height:1.15!important}
#header-user h1+*{color:#fff}
#header-user h1~*{color:#fff}
#header-user .cursor-pointer p{color:#d5e5e6!important;font-size:8px}
#header-user #weather-badge-btn{background:#ffffff18;color:#fff;border-color:#ffffff40;box-shadow:none;min-width:70px;width:auto;height:38px;flex-shrink:0;padding-inline:8px}
#header-user #wb-temp,#header-user #wb-wind{color:white!important}

#map-demo-badge{display:inline-flex;align-items:center;min-height:32px;padding:0 10px;border:1px solid #e8d6a580;border-radius:999px;color:#e8d6a5;font-size:11px;font-weight:900;letter-spacing:.05em}
.map-fullscreen #map-demo-badge{display:none!important}
#main-content{max-width:448px}
#main-content.mdt-space{padding-top:0}
#map-demo-news{margin:3px 0 0}
#header-carousel-area,.map-motion #header-carousel-area{padding-top:0!important;transition:none!important}
body.map-demo-ready #header-search-subtabs{display:none!important}
#sub-btn-map{width:94px;height:42px;border-color:#fff;background:#172e4b;color:white;box-shadow:0 4px 18px #172e4b80}
#map-demo-toolbar{position:relative;z-index:25;margin:5px 0 2px;background:transparent;border:0;box-shadow:none;padding:1px 8px}
#map-demo-toolbar[hidden]{display:none!important}
.mdt-inner{display:flex;align-items:center;gap:6px;max-width:800px;margin:auto}
.mdt-quick-actions{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.mdt-quick-actions[hidden]{display:none!important}
.mdt-icon-button{position:relative;display:grid;place-items:center;flex:none;box-sizing:border-box;width:48px;height:48px;border:1px solid #c9d7df;border-radius:11px;background:white;color:#172e4b;font-size:19px;cursor:pointer}
.mdt-icon-button:hover,.mdt-icon-button[aria-expanded=true],.mdt-icon-button[aria-pressed=true]{border-color:#13b2a1;background:#e9f4f2;color:#125e5a}
#map-demo-notes[aria-pressed=true],#map-demo-favorites[aria-pressed=true]{border-width:2px;background:#d8efe9;box-shadow:inset 0 0 0 1px #fff}
.mdt-bookmark-star{position:relative;display:inline-grid;place-items:center;flex:none;width:21px;height:21px;line-height:1}
.mdt-bookmark-star .fa-bookmark{font-size:21px}
.mdt-bookmark-star .fa-star{position:absolute;top:5px;left:50%;transform:translateX(-50%);color:#fff;font-size:8px;line-height:1}
.mdt-icon-button.has-query::after{content:"";position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%;background:#d04b32}
.mdt-search-panel{display:flex;align-items:center;gap:4px;flex:1;min-width:0}
.mdt-search-panel[hidden]{display:none!important}
#map-demo-search{flex:1;min-width:0;width:100%;height:48px;padding:0 8px;border:1px solid #c9d7df;border-radius:11px;background:white;font-size:13px;color:#172e4b}
#map-demo-search::-webkit-search-cancel-button{display:none}
#map-demo-search::placeholder{color:#67768a}
.mdt-switch button{min-width:52px;height:48px;border:1px solid #c9d7df;border-radius:10px;padding:0 10px;background:#f3f7f8;color:#172e4b;font-size:12px;font-weight:800;white-space:nowrap}
.mdt-switch button[aria-pressed=true]{background:#172e4b;color:white;border-color:#172e4b}
.mdt-spacer{display:none}
.mdt-switch{display:flex;gap:6px;margin-left:auto}
#map-demo-toolbar button:focus-visible,#map-demo-search:focus-visible{outline:3px solid #13b2a1;outline-offset:2px}
#paper-tags-toggle,#paper-list-tags,#paper-list-search{display:none!important}
#map-demo-search-backdrop{position:fixed;inset:56px 0 0;z-index:59;background:#172e4b24;pointer-events:auto}
#map-demo-search-backdrop[hidden]{display:none!important}
#map-demo-search-area{width:100%;max-width:448px;max-height:calc(100dvh - 146px);overflow-y:auto;scrollbar-width:thin;margin:8px auto 0;padding-top:8px;border-top:1px solid #dbe4eb;pointer-events:auto}
#map-demo-search-area[hidden]{display:none!important}
#map-demo-search-area #paper-tags-options{position:static!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;width:100%;max-width:none;margin:0;padding:2px 4px 0;border:0;border-radius:0;box-shadow:none;background:transparent}
#paper-tags-options[hidden]{display:none!important}
#map-demo-category-status{margin:0;padding:10px 12px;border-radius:9px;background:#eff5f6;color:#34515e;font-size:12px;line-height:1.5}
#map-demo-category-status[hidden]{display:none!important}
#map-demo-filter-empty{margin:8px 0 0;padding:8px 10px;border-radius:9px;background:#eff5f6;color:#34515e;font-size:12px;line-height:1.5}
#map-demo-filter-empty[hidden]{display:none!important}
#map-demo-search-area #paper-results{position:static!important;inset:auto!important;width:100%;max-width:none;margin:8px 0 0;max-height:min(140px,22dvh);border:0;border-top:1px solid #dbe4eb;border-radius:0;box-shadow:none}
#map-demo-search-area #paper-results button{box-sizing:border-box;min-height:44px}
#map-demo-search-area #paper-results button,#map-demo-search-area #paper-tags-options input{pointer-events:auto}
.map-fullscreen #map-demo-toolbar{position:fixed;left:0;right:0;top:56px;margin:0;padding-top:6px;padding-bottom:6px;background:transparent;z-index:60;pointer-events:none}
body.mdt-search-open #map-demo-toolbar{z-index:60;background:#fff;border:1px solid #cbd5df;border-radius:0 0 16px 16px;box-shadow:0 14px 32px #102a4d4a;padding-bottom:10px;pointer-events:auto}
body.map-fullscreen.mdt-search-open #map-demo-toolbar{left:50%;right:auto;width:min(448px,calc(100vw - 8px));transform:translateX(-50%)}
body.mdt-search-open:not(.map-fullscreen) #map-demo-toolbar{border-radius:16px 16px 0 0}
body.mdt-search-open:not(.map-fullscreen) #map-demo-search-area{position:absolute;left:-1px;right:-1px;top:100%;width:auto;max-width:none;margin:0;padding:8px 8px 10px;border:1px solid #cbd5df;border-top:0;border-radius:0 0 16px 16px;background:#fff;box-shadow:0 14px 32px #102a4d4a}
.map-fullscreen #map-demo-toolbar .mdt-icon-button,.map-fullscreen #map-demo-toolbar .mdt-search-panel,.map-fullscreen #map-demo-toolbar .mdt-switch,.map-fullscreen #map-demo-toolbar #paper-tags-options{pointer-events:auto}
.map-fullscreen #header-user{background:transparent!important;min-height:0}
.map-fullscreen #shared-portal-logo{height:56px;display:flex;align-items:center;padding:8px 16px!important}
.map-fullscreen #header-search-subtabs,.map-fullscreen.map-motion #header-search-subtabs{display:none!important}
body.map-demo-ready #paper-back{display:none}
#paper-fixed-sign{top:112px!important;width:clamp(150px,48vw,205px);filter:drop-shadow(0 2px 3px #172e4b33)}
/* Keep the sign size continuous across width and browser-height changes; the two caps meet the four reviewed phone sizes. */
@media(max-width:699px){#cont-map{--paper-centered-top:max(149px,calc(53px + 50dvh - 75.9107vw));--paper-viewport-top:56px}#paper-fixed-sign{top:112px!important;width:clamp(120px,min(calc(25.714px + 35.714vw),calc(43.216px + 19dvh - 9.73vw)),165px)}#cont-map,#paper-viewport,#paper-canvas{background:#30449a}#paper-viewport{padding-top:calc(var(--paper-centered-top) - var(--paper-viewport-top));padding-bottom:32px}}
#paper-viewport{inset:56px 0 0;touch-action:pan-x pan-y}
#map-store-index{padding:4px 0 8px}
#paper-list{display:block}
.paper-list-section{border-bottom:1px solid #e2e8f0;margin-bottom:2px}
.paper-list-section[hidden],.paper-list-cards[hidden],#paper-list-empty[hidden]{display:none!important}
.paper-list-heading{margin:0}
.paper-list-toggle{display:flex;align-items:center;gap:13px;width:100%;min-height:56px;padding:5px 4px;background:transparent;text-align:left;color:#1e293b}
.paper-list-accent{width:4px;height:32px;flex:none;border-radius:99px;background:#13b2a1}
.paper-list-title{display:grid;gap:2px;flex:1;min-width:0}
.paper-list-title small{font-size:10px;line-height:1.3;letter-spacing:.14em;text-transform:uppercase;color:#94a3b8;font-weight:800}
.paper-list-title strong{color:#1A2D4B;font-size:19px;line-height:1.2;font-weight:900;letter-spacing:-.02em}
.paper-list-section-count{font-size:16px;font-weight:900;color:#475569;white-space:nowrap}
.paper-list-chevron{font-size:27px;line-height:1;color:#cbd5e1;transition:transform .2s}
.paper-list-toggle[aria-expanded=true] .paper-list-chevron{transform:rotate(180deg)}
.paper-list-toggle:focus-visible{outline:3px solid #13b2a1;outline-offset:2px}
.paper-list-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px;padding:3px 4px 9px}
#paper-list-empty{padding:24px 8px;text-align:center;font-size:13px;color:#64748b}
#map-demo-play-entry{display:grid;gap:12px;margin:12px 0 18px;padding:18px;border-radius:18px;background:#172e4b;color:white;box-shadow:0 8px 24px #172e4b30}
#map-demo-play-entry small{font-size:10px;font-weight:800;letter-spacing:.14em;color:#e8d6a5}
#map-demo-play-entry h2{font-size:20px;font-weight:900;margin:3px 0 4px}
#map-demo-play-entry p{font-size:12px;line-height:1.6;color:#e5edf2}
#map-demo-play-entry button{min-height:44px;padding:10px 14px;border-radius:12px;background:#e8d6a5;color:#172e4b;font-size:13px;font-weight:900;text-align:center}
.msd-prize{display:grid;gap:4px;padding:12px;margin:8px 0;border:1px solid #d8e2e9;border-radius:12px;background:white}
.msd-prize small{font-size:10px;font-weight:800;color:#946b29}
.msd-prize strong{font-size:13px;line-height:1.4}
.msd-prize span{font-size:11px;line-height:1.5;color:#536579}
@media(max-width:380px){#map-demo-toolbar{padding-left:4px;padding-right:4px}.mdt-inner,.mdt-quick-actions{gap:4px}.mdt-switch{gap:4px}.mdt-switch button{min-width:48px;padding:0 6px;font-size:11px}.mdt-icon-button{width:48px}#map-demo-search{font-size:12px}.paper-list-title strong{font-size:17px}}
@media(min-width:700px){.map-fullscreen #map-demo-toolbar{padding-left:20px;padding-right:20px}.mdt-spacer{display:block;flex:1}}

/* Public detail-action-sync dimensions and colors. */
#map-demo-notes,#map-demo-favorites{color:#087c79;font-size:18px}
.mdt-bookmark-star{width:19px;height:19px}
.mdt-bookmark-star .fa-bookmark{font-size:18px}
.mdt-bookmark-star .fa-star{top:4px;font-size:7px}

/* Radio metadata on the existing dark background. */
#podcast-container p.text-slate-500,#podcast-container .current-time,#podcast-container .duration{color:#cbd5e1!important}
#map-demo-play-entry .play-entry-date{display:inline-block;white-space:nowrap}

/* Use the adopted 448px consumer width on larger screens; admin has its own CSS. */
html{--consumer-width:min(100vw,448px);--consumer-left:max(0px,calc((100vw - 448px)/2));background:#f8fafc}
body{width:var(--consumer-width);max-width:448px;margin-inline:auto}
#map-demo-badge{display:none!important}
#msd-map-entry{left:calc(var(--consumer-left) + 16px)}
body.mdt-search-open:not(.map-fullscreen) #main-content{z-index:auto}
body.mdt-search-open:not(.map-fullscreen) #cont-search{animation:none;transform:none}
#cont-map,.map-fullscreen #header-user,.map-fullscreen #shared-portal-logo,.map-fullscreen #map-demo-toolbar,#map-demo-search-backdrop,#v2-shop-detail-modal,#paper-only-dialog,#map-stamp-demo{left:var(--consumer-left);right:auto;width:var(--consumer-width)}
#ai-guide-modal,#news-modal,#quest-modal,#faq-modal,#podcast-modal,#column-modal,#kogapay-modal{left:var(--consumer-left);right:auto;width:var(--consumer-width)}
@media(min-width:700px){
 .map-fullscreen #map-demo-toolbar{padding-left:8px;padding-right:8px}
 .mdt-spacer{display:none}
 #cont-map{--paper-centered-top:max(149px,calc(53px + 50dvh - 340.08px));--paper-viewport-top:56px}
 #paper-fixed-sign{top:112px!important;width:clamp(120px,min(185.713px,calc(19dvh - .374px)),165px)}
 #cont-map,#paper-viewport,#paper-canvas{background:#30449a}
 #paper-viewport{padding-top:calc(var(--paper-centered-top) - var(--paper-viewport-top));padding-bottom:32px}
 #v2-shop-detail-modal,#paper-only-dialog{align-items:flex-end}
 #v2-shop-detail-panel{top:auto;bottom:0;left:0;width:100%;max-width:none;height:calc(60dvh + 110px);min-height:min(530px,calc(100dvh - 112px));max-height:calc(100dvh - 112px);border-radius:20px 20px 0 0;box-shadow:0 -8px 28px #0f172a50}
 #paper-only-dialog section{width:100%;margin:0;border-radius:20px 20px 0 0;padding-bottom:max(30px,env(safe-area-inset-bottom))}
 .msd-header{padding:6px 12px}
}

/* Public NEWS: preserve three direct rows, without creating a second editor. */
.portal-news-line{display:flex;align-items:center;gap:6px;min-height:20px;min-width:0}.portal-news-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex:none;overflow:hidden;border-radius:50%;font-size:8px;background:#e2e8f0;color:#64748b}.portal-news-icon img{width:100%;height:100%;object-fit:cover}.portal-news-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700;color:#475569}

.curry-vote-period{position:absolute;top:3px;left:40%;font-size:clamp(9px,2.55vw,13px);line-height:1.4;white-space:nowrap;color:#fff;font-weight:700;letter-spacing:.01em;text-shadow:0 1px 2px #006b73}.portal-carousel-loading{padding:24px;color:#64748b;font-size:12px}
.portal-news-label{font-size:10px;font-weight:800;flex:none;max-width:78px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Local 10/8 review: compact menu and a retained list toolbar. */
#nav-user{padding-bottom:max(8px,env(safe-area-inset-bottom));padding-top:12px}
#nav-user a.nav-item{min-height:44px;justify-content:flex-end}
body:not(.map-fullscreen) #main-content>.tab-content{padding-bottom:calc(var(--portal-menu-height,65px) + 4px)!important}
body:not(.map-fullscreen) #map-demo-toolbar{position:sticky;top:0;background:#f8fafc;z-index:35}
body.mdt-search-open:not(.map-fullscreen) #map-demo-toolbar{z-index:60}
.mdt-switch{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;gap:0;margin-left:auto;padding:2px;border:1px solid #c9d7df;border-radius:12px;background:#eaf0f3}
.mdt-switch::before{content:"";position:absolute;z-index:0;left:3px;top:3px;bottom:3px;width:calc((100% - 6px)/2);border-radius:8px;background:#172e4b;box-shadow:0 1px 3px #172e4b24;transform:translateX(0);transition:transform 440ms cubic-bezier(.22,.72,.18,1)}
.mdt-switch.is-map::before{transform:translateX(100%)}
.mdt-switch button{position:relative;z-index:1;border:0;border-radius:8px;min-width:52px;height:44px;background:transparent;color:#172e4b;font-weight:700}
.mdt-switch button[aria-pressed=true]{background:transparent;border-color:transparent;color:white;font-weight:900}
.mdt-switch button:focus-visible{outline:2px solid #13b2a1;outline-offset:2px}
#paper-list .paper-list-body strong{font-size:17px;line-height:1.3;color:#1A2D4B;background:transparent;white-space:normal;word-break:normal;overflow-wrap:anywhere;text-overflow:clip}
@media(max-width:380px){.mdt-switch{gap:0}.mdt-switch button{min-width:48px}}
@media(prefers-reduced-motion:reduce){.mdt-switch::before{transition:none}}

#paper-list .paper-list-body{flex:1}
#paper-list .paper-affiliations{position:absolute;top:4px;left:4px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:38px;padding:2px 3px;border-radius:3px;background:rgba(255,255,255,.92)}
#paper-list .paper-list-row .paper-affiliations img{height:11px;max-width:32px;object-fit:contain;border-radius:0;flex:none}
#paper-list .paper-list-row .paper-affiliations img[data-map-src$="/logo_gojo.png"],#paper-list .paper-list-row .paper-affiliations img[src$="/logo_gojo.png"]{opacity:.65}
#paper-list .paper-list-row{--paper-photo-width:108px;position:relative;min-height:96px;height:auto;gap:10px;padding:10px 0 10px calc(var(--paper-photo-width) + 10px);border:0;border-bottom:1px solid #e2e8f0;border-radius:0;box-shadow:none;background:transparent}
#paper-list .paper-list-row:hover{border-color:#e2e8f0;background:#f8faff}
#paper-list .paper-list-media{position:absolute;left:0;top:0;width:var(--paper-photo-width);height:100%;overflow:hidden;border-radius:4px}
#paper-list .paper-list-media>img{width:100%;height:100%;object-fit:cover;border-radius:0}
#paper-list .paper-list-body .paper-list-type{font-size:12px;line-height:1.35;font-weight:600;color:#64748b;white-space:normal;overflow-wrap:anywhere}
#paper-list .paper-list-body .paper-list-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;font-size:13px;line-height:1.45;font-weight:400;color:#64748b;white-space:normal;overflow-wrap:anywhere;text-align:left}
@media(max-width:380px){#paper-list .paper-list-row{--paper-photo-width:108px}}

/* One compact, labeled action set shared by the list and map. */
.mdt-quick-actions .mdt-icon-button{display:flex;flex-direction:column;justify-content:center;gap:2px;height:48px;min-height:44px;padding:4px 2px;border-radius:9px}
.mdt-quick-actions .mdt-icon-button>i{font-size:19px;line-height:19px}
.mdt-quick-actions .mdt-action-label{font-size:11px;line-height:13px;font-weight:600;white-space:nowrap}
.mdt-quick-actions #map-demo-favorites{width:64px}
@media(max-width:380px){.mdt-quick-actions .mdt-icon-button{width:44px}}

/* SAFED accepted single banner, 2026-10-10. */
.curry-vote-banner .curry-vote-art{aspect-ratio:1063/170!important}.curry-vote-banner .curry-vote-art img{position:static!important;top:auto!important;left:auto!important;display:block;width:100%;height:auto;max-width:100%}

/* 2026-10-10: list header is the shared consumer header. */
.map-fullscreen #header-user,.map-fullscreen.map-motion #header-user{height:56px!important;min-height:56px!important;background:#172e4b!important;padding:9px 16px!important;pointer-events:auto}
.map-fullscreen #header-user>div,.map-fullscreen #header-user>div>div:first-child,.map-fullscreen #header-user .cursor-pointer,.map-fullscreen #header-user .cursor-pointer *,.map-fullscreen #header-user #weather-badge-btn,.map-fullscreen #header-user #weather-badge-btn *{visibility:visible!important}
.map-fullscreen #shared-portal-logo{position:static!important;inset:auto!important;width:auto!important;height:auto!important;display:block!important;padding:0!important;background:transparent!important;transform:none!important}
