/* FREE chapter activity-first Home; the Slack-like experience remains the Projects workspace. */
:root{--free-blue:#96cee7;--free-orange:#f4a34f;--free-navy:#173a49}
html{scroll-behavior:smooth}body{margin:0;background:var(--free-orange);color:var(--free-navy);font-family:Montserrat,Arial,sans-serif}
.chapter-home-page{background:var(--free-orange);min-height:calc(100vh - 100px);padding-bottom:90px}
.chapter-home-wrap{width:min(1320px,calc(100% - 90px));margin:auto}
.chapter-loading{padding:90px 0;font:normal 32px Georgia,serif}
.chapter-hero{padding:65px 0 30px;display:flex;align-items:flex-end;justify-content:space-between;gap:26px}
.chapter-hero h1{font:normal clamp(62px,8.5vw,124px)/.98 Georgia,serif;letter-spacing:-.067em;margin:0}
.chapter-rule{width:110px;height:6px;background:var(--free-navy);margin:24px 0 0}
.chapter-switch{font-size:12px;font-weight:800;white-space:nowrap;padding-bottom:9px;border-bottom:2px solid var(--free-navy)}
.chapter-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 31px}
.chapter-tabs>a{display:flex;align-items:center;justify-content:center;text-align:center;background:var(--free-blue);color:var(--free-navy);border:1px solid var(--free-navy);padding:15px 12px;min-height:55px;font-size:14px;font-weight:800;border-radius:3px;transition:background .16s ease}
.chapter-tabs>a[aria-current=page],.chapter-tabs>a:hover{background:var(--free-orange)}
.chapter-featured{display:grid;grid-template-columns:1.35fr .65fr;background:var(--free-navy);color:var(--free-blue);min-height:350px;gap:0;margin-bottom:27px}
.chapter-featured-left{padding:clamp(26px,4vw,53px);border-right:1px solid #96cee760}
.chapter-featured-right{padding:clamp(24px,3vw,41px);position:relative;display:flex;flex-direction:column}
.chapter-featured h2{font:normal clamp(37px,4.5vw,61px)/1.08 Georgia,serif;letter-spacing:-.047em;color:var(--free-blue);margin:0 0 27px}
.chapter-featured-items{display:grid;gap:14px}
.chapter-featured-items .chapter-story{border-top:1px solid #96cee763;padding:16px 0 0}
.chapter-featured .chapter-story-title{font:normal clamp(23px,2.4vw,35px)/1.2 Georgia,serif;color:var(--free-blue);margin:0}
.chapter-featured .chapter-story-meta{font-size:12px;color:var(--free-blue);opacity:.9;margin-top:8px}
.chapter-date{display:flex;gap:9px;align-items:baseline;align-self:flex-end;margin-bottom:24px;border:1px solid var(--free-blue);padding:10px 12px}
.chapter-date span:first-child{font:normal 35px Georgia,serif}
.chapter-date span:last-child{font-size:12px;font-weight:800}
.chapter-next-meeting{font:normal 24px/1.35 Georgia,serif;color:var(--free-blue);min-height:75px}
.chapter-next-meeting p{font-size:13px;line-height:1.6;font-family:Montserrat,Arial,sans-serif}
.chapter-action{margin-top:auto;align-self:flex-start;background:var(--free-orange);color:var(--free-navy);border:1px solid var(--free-blue);padding:13px 18px;font-weight:800;font-size:12px}
.chapter-two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;margin-bottom:26px}
.chapter-panel{background:var(--free-blue);border:1px solid var(--free-navy);padding:clamp(22px,3vw,38px);min-height:270px}
.chapter-panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #173a4959;padding-bottom:19px;margin-bottom:11px}
.chapter-panel h2{font:normal clamp(30px,3.3vw,48px)/1.13 Georgia,serif;letter-spacing:-.045em;margin:0}
.chapter-panel-head>a{font-size:12px;font-weight:800;white-space:nowrap;border-bottom:2px solid var(--free-navy);padding-bottom:5px}
.chapter-list{display:grid;gap:0}
.chapter-list-record{border-bottom:1px solid #173a4935;padding:18px 0}
.chapter-list-record:last-child{border:0}
.chapter-list-record>a{display:block;font:normal clamp(22px,2.2vw,31px)/1.24 Georgia,serif;text-decoration:none}
.chapter-list-record>a:hover{text-decoration:underline}
.chapter-list-record p{margin:8px 0 0;font-size:12px;line-height:1.5}
.chapter-none{font:normal 27px Georgia,serif;margin:23px 0}
.chapter-chat-float{position:fixed;right:23px;bottom:24px;z-index:20;display:flex;gap:15px;align-items:center;background:var(--free-navy);color:var(--free-blue);padding:15px 23px;border:2px solid var(--free-blue);border-radius:40px;font-size:13px;font-weight:800;box-shadow:0 8px 24px #173a4945}
.chapter-chat-float:hover{background:var(--free-orange);color:var(--free-navy);border-color:var(--free-navy)}
@media(max-width:900px){.chapter-home-wrap{width:calc(100% - 44px)}.chapter-featured{grid-template-columns:1fr}.chapter-featured-left{border-right:0;border-bottom:1px solid #96cee760}.chapter-featured-right{min-height:230px}.chapter-date{position:absolute;right:26px;top:20px}.chapter-featured-right h2{padding-right:80px}.chapter-two-cols{gap:16px}}
@media(max-width:660px){.chapter-hero{padding-top:34px;display:block}.chapter-hero h1{font-size:clamp(52px,12vw,78px)}.chapter-switch{display:inline-block;margin-top:25px}.chapter-tabs{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-tabs>a{font-size:12px;min-height:48px}.chapter-two-cols{grid-template-columns:1fr;gap:17px}.chapter-featured-left{padding:25px}.chapter-featured-right{padding:25px}.chapter-featured h2{font-size:44px}.chapter-panel{min-height:180px;padding:25px}.chapter-panel-head{flex-wrap:wrap}.chapter-panel h2{font-size:36px}.chapter-chat-float{right:13px;bottom:13px}}
@media(prefers-reduced-motion:reduce){.chapter-tabs>a{transition:none}}


/* Private role switcher: global administrators see every approved chapter. */
.chapter-hero-access{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.chapter-hero-access label{font-size:12px;font-weight:800}
.chapter-hero-access select{min-width:230px;max-width:100%;background:#96cee7;border:1px solid #173a49;border-radius:3px;color:#173a49;padding:14px 16px;font-family:Montserrat,Arial,sans-serif;font-size:13px;font-weight:700;cursor:pointer}
.chapter-hero-access select:focus-visible{outline:3px solid #173a49;outline-offset:3px}
.chapter-role{background:#173a49;color:#96cee7;padding:9px 13px;font-size:11px;font-weight:800}
@media(max-width:660px){.chapter-hero-access{margin-top:22px;justify-content:flex-start}.chapter-hero-access select{min-width:min(260px,100%)}}


/* Approved private Chapter Home: projects pop-out, shared public calendar, updates and map. */
.chapter-overview-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:27px}
.chapter-overview-panels .chapter-panel{min-width:0;padding:clamp(22px,3vw,36px);background:#96cee7;border:1px solid #173a49;border-radius:2px;min-height:0}
.chapter-overview-panels .chapter-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid #173a4945}
.chapter-overview-panels .chapter-panel h2{font:normal clamp(31px,3.3vw,48px)/1.13 Georgia,serif;letter-spacing:-.045em;margin:0}
.chapter-panel-action{display:inline-flex;align-items:center;justify-content:center;border:1px solid #173a49;background:#f4a34f;color:#173a49;border-radius:2px;padding:12px 17px;font:800 12px/1.45 Montserrat,Arial,sans-serif;cursor:pointer;white-space:nowrap;text-decoration:none}
.chapter-panel-action:hover{background:#b6e1f2}
.chapter-projects-panel{display:flex;flex-direction:column;justify-content:space-between;min-height:190px!important}
.chapter-projects-panel .chapter-panel-head{flex:1;align-items:flex-start;border:0;margin:0;padding:0}
.chapter-project-summary:empty{display:none}
.chapter-events-panel,.chapter-economy-panel{grid-column:span 2}
.chapter-public-calendar{width:100%;height:485px;display:block;border:1px solid #173a4939;background:#96cee7}
.chapter-public-map{width:100%;height:550px;display:block;border:1px solid #173a4939;background:#96cee7}
.chapter-updates-panel{grid-column:span 2}
.chapter-updates-panel .chapter-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.chapter-updates-panel .chapter-list-record{border:1px solid #173a4938;padding:22px 20px;background:#96cee7;min-height:150px}
.chapter-update-button{border:0;background:transparent;padding:0;color:#173a49;text-align:left;font:normal clamp(22px,2.3vw,31px)/1.2 Georgia,serif;cursor:pointer}
.chapter-update-button:hover{text-decoration:underline}
.chapter-updates-panel .chapter-list-record p{line-height:1.55;margin:17px 0 0}
.chapter-popout{width:min(880px,calc(100% - 36px));max-height:86vh;overflow:auto;background:#96cee7;color:#173a49;border:2px solid #173a49;border-radius:2px;padding:clamp(22px,4vw,38px);box-shadow:8px 8px 0 #173a4935}
.chapter-popout::backdrop{background:#173a49ad}
.chapter-dialog-top{display:flex;justify-content:space-between;align-items:start;gap:18px;padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid #173a4948}
.chapter-dialog-top h2{font:normal clamp(32px,4vw,53px)/1.12 Georgia,serif;letter-spacing:-.045em;margin:0}
.chapter-dialog-top>button{width:44px;height:44px;border:1px solid #173a49;background:#f4a34f;font-size:28px;line-height:1;cursor:pointer;flex-shrink:0}
.chapter-dialog-items{display:grid;gap:0}
.chapter-dialog-project{border-bottom:1px solid #173a4940;padding:20px 0}
.chapter-dialog-project:last-child{border:0}
.chapter-dialog-project a{font:normal clamp(25px,3vw,34px)/1.2 Georgia,serif;text-decoration:none}
.chapter-dialog-project a:hover{text-decoration:underline}
.chapter-dialog-project p{margin:12px 0;font-size:13px;line-height:1.6}
.chapter-dialog-project small{font-size:12px;font-weight:800}
.chapter-update-meta{font-size:12px;font-weight:700}
.chapter-update-image{max-height:260px;max-width:100%;object-fit:cover;margin:12px 0}
.chapter-update-full-text{font-size:15px;line-height:1.7;margin:16px 0 25px}
.chapter-archive-controls{display:grid;grid-template-columns:minmax(0,2fr) minmax(110px,1fr) minmax(110px,1fr);gap:12px;margin:10px 0 18px}
.chapter-archive-controls label{display:grid;gap:7px;font-size:12px;font-weight:800}
.chapter-archive-controls input,.chapter-archive-controls select{min-width:0;width:100%;border:1px solid #173a49;border-radius:2px;background:#b5dfef;color:#173a49;padding:12px;font:500 13px Montserrat,Arial,sans-serif}
.chapter-archive-popout .chapter-list-record{padding:19px 0}
.chapter-archive-popout .chapter-list-record:first-child{border-top:1px solid #173a4938}
.chapter-archive-popout .chapter-update-button{font-size:27px}
.chapter-popout .chapter-none{font-size:23px}
@media(min-width:1050px){.chapter-projects-panel{grid-column:span 2;min-height:135px!important}.chapter-projects-panel .chapter-panel-head{align-items:center}.chapter-events-panel{grid-column:span 2}.chapter-updates-panel,.chapter-economy-panel{grid-column:span 2}}
@media(max-width:850px){.chapter-overview-panels{grid-template-columns:1fr;gap:18px}.chapter-overview-panels .chapter-panel{grid-column:auto}.chapter-updates-panel .chapter-list{grid-template-columns:1fr}.chapter-public-calendar{height:470px}.chapter-public-map{height:570px}}
@media(max-width:600px){.chapter-overview-panels .chapter-panel{padding:22px 17px}.chapter-overview-panels .chapter-panel-head{align-items:flex-start}.chapter-overview-panels .chapter-panel h2{font-size:34px}.chapter-archive-controls{grid-template-columns:1fr 1fr}.chapter-archive-controls label:first-child{grid-column:span 2}.chapter-popout{padding:20px}.chapter-public-map{height:540px}.chapter-public-calendar{height:480px}}


/* Expanded economy map and editorial update imagery */
.chapter-public-map{height:800px!important;min-height:800px}
.chapter-update-button{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:16px}
.chapter-update-thumb{display:block;width:100%;height:190px;object-fit:cover;border:1px solid #173a4938;background:#b6e1f2}
.chapter-update-title{display:block}
.chapter-archive-popout .chapter-update-button{display:grid;grid-template-columns:minmax(90px,170px) minmax(0,1fr);align-items:center;gap:18px}
.chapter-archive-popout .chapter-update-thumb{height:100px}
.chapter-update-image{display:block;max-height:370px;object-fit:contain}
@media(max-width:850px){.chapter-public-map{height:740px!important;min-height:740px}}
@media(max-width:600px){.chapter-public-map{height:680px!important;min-height:680px}.chapter-update-thumb{height:175px}.chapter-archive-popout .chapter-update-button{grid-template-columns:100px minmax(0,1fr)}.chapter-archive-popout .chapter-update-thumb{height:78px}}

/* Deployment marker: chapter news imagery and larger economy map approved 2026-10-30. */


/* Full original event-detail views from the public FREE chapter pages */
.chapter-original-event-frame{width:100%;height:min(680px,67vh);min-height:480px;border:1px solid #173a4940;display:block;background:#96cee7}
.chapter-update-record .chapter-update-thumb{object-position:center center}
.chapter-popout:has(.chapter-original-event-frame){width:min(1060px,calc(100% - 34px))}
.chapter-popout:has(.chapter-original-event-frame) #chapter-update-detail{margin-top:4px}
@media(max-width:650px){.chapter-original-event-frame{height:68vh;min-height:410px}}
