.news-templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.news-template{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;padding:20px!important;background:#fff!important;color:#213047!important;border:1px solid #d9e1eb!important;border-radius:12px!important;min-width:0}.news-template.selected{border-color:var(--primary,var(--navy,var(--local-tone-443080,#304d80)))!important;box-shadow:0 0 0 2px var(--primary,var(--navy,var(--local-tone-443080,#304d80)))}.news-template strong{font-size:17px}.news-template small{font-size:14px;line-height:1.5;color:#617086}.news-template-mark{font-size:27px;color:var(--primary,var(--navy,var(--local-tone-443080,#304d80)))}.news-options,.communication-attachments{border:1px solid #d9e1eb;border-radius:12px;padding:18px;margin:22px 0}.news-options summary,.communication-attachments summary{font-weight:700;cursor:pointer}.news-options .form-grid{margin:18px 0}.news-preview{max-width:740px;margin:24px auto;width:100%;overflow-wrap:anywhere}.news-preview-mobile{max-width:390px}.news-preview-switch{display:flex;gap:10px;flex-wrap:wrap}.news-preview img{max-width:100%}.roster-indicators{display:flex;flex-wrap:wrap;gap:6px;min-width:190px}.roster-indicator{display:inline-flex;gap:5px;align-items:center;padding:5px 8px;border-radius:7px;font-size:12px;line-height:1.4;white-space:normal}.roster-indicator.complete{background:#e9f5ee;color:#17633e}.roster-indicator.missing{background:#fff3dc;color:#79551a}.communication-recipients{max-height:320px;overflow:auto;border:1px solid #d9e1eb;padding:10px;border-radius:10px}.communication-recipient{display:flex!important;align-items:flex-start;gap:10px;padding:10px;border-bottom:1px solid #edf0f5}.communication-recipient input{width:auto!important;flex:0 0 auto;margin-top:5px}.communication-recipient small{display:block;color:#617086}.communication-recipient[hidden]{display:none!important}.news-options label,.communication-attachments label{display:block;margin:12px 0}.communication-attachments input,.communication-attachments select{display:block;width:100%;max-width:100%;margin-top:8px}#newsletter-editor .ql-editor{min-height:280px;font-size:16px;line-height:1.7}.communication-form .ql-toolbar{position:relative;z-index:1}.news-options input,.news-options select{min-width:0}.communication-list-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:16px 0}.communication-list-row h2{font-size:19px}.communication-list-row .actions{flex-wrap:wrap}#newsletter-form .form-actions{margin-top:22px}#newsletter-schedule{display:block;width:min(100%,360px);margin-top:8px}#newsletter-form .form-error{color:#a32935;white-space:pre-wrap}
@media(max-width:700px){.news-templates{grid-template-columns:1fr}.news-template{padding:16px!important}.news-preview>div{padding:12px 0!important}.communication-list-row{flex-direction:column;align-items:flex-start}.news-preview-switch{width:100%}.news-options{padding:14px}.roster-indicators{min-width:150px}.communication-attachments input[type=file]{font-size:14px}}

/* Compact roster: one icon per field, shared key and content that fits the page. */
.roster-key{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;padding:14px 18px;border-bottom:1px solid #e2e6eb;background:#fafbfc;color:#536176;font-size:12px}
.roster-key-fields,.roster-key-states{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.roster-key-fields>span{display:inline-flex;align-items:center;gap:6px}.roster-key svg{width:18px;height:18px;flex:none}.roster-key small{flex-basis:100%;font-size:12px;line-height:1.4}.roster-key-states{gap:12px;margin-left:auto;font-weight:600}.roster-key .complete{color:#14663e}.roster-key .missing{color:#ad2635}.roster-key .unknown{color:#596579}
.member-roster{width:100%;min-width:0}.member-roster .table-wrap{overflow:visible;min-width:0}.member-roster table{width:100%;min-width:0!important;table-layout:fixed;border-collapse:collapse}.member-roster :is(th,td){padding:12px 10px;white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle;font-size:13px;line-height:1.45}.member-roster th{font-size:10px;letter-spacing:.035em}.member-roster td small{display:block;margin-top:3px;font-size:12px;line-height:1.45;color:#657186}.member-roster td strong{font-size:14px}.member-roster .badge{display:inline-block;font-size:11px;padding:4px 7px;white-space:normal}.member-roster .roster-indicators{display:flex;flex-wrap:nowrap;gap:5px;min-width:0}.roster-indicator{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:29px;height:32px;padding:5px;border-radius:6px;font-size:12px}.roster-indicator svg{width:20px;height:20px;flex:none}.roster-indicator b{position:absolute;right:-2px;bottom:-1px;display:grid;place-items:center;width:12px;height:12px;border-radius:50%;border:1px solid white;background:#fff;font-size:12px;line-height:1}.roster-indicator.complete{color:#14663e;background:#edf6f0}.roster-indicator.missing{color:#ad2635;background:#fff0f1}.roster-indicator.unknown{color:#596579;background:#edf0f4}.roster-tip{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);z-index:4;background:#172b40;color:#fff;border-radius:5px;padding:6px 9px;font-size:12px;line-height:1.4;width:max-content;max-width:180px;white-space:normal;pointer-events:none}.roster-indicator:hover .roster-tip,.roster-indicator:focus .roster-tip{display:block}.roster-indicator:focus-visible{outline:2px solid #254f80;outline-offset:3px}.roster-row-actions{white-space:normal}.roster-row-actions>button,.roster-more summary{min-height:44px;padding:8px!important;font-size:12px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}.roster-more{display:inline-block;position:relative;margin-left:3px}.roster-more summary{cursor:pointer;border:1px solid #dce3ea;border-radius:6px;background:white;color:#234262;list-style:none}.roster-more summary::-webkit-details-marker{display:none}.roster-more summary:after{content:'⌄';margin-left:6px}.roster-more>div{position:absolute;right:0;top:calc(100% + 4px);width:185px;z-index:5;background:#fff;border:1px solid #dce3ea;border-radius:8px;box-shadow:0 8px 22px #182c4226;padding:5px}.roster-more>div button{display:block;text-align:left;width:100%;min-height:44px;white-space:normal}.roster-help{margin:0 0 16px;font-size:13px;color:#566278}.roster-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.roster-help summary:before{content:'▸';margin-right:7px}.roster-help[open] summary:before{content:'▾'}.roster-help p{margin-top:8px}.roster-toolbar{flex-wrap:wrap!important}.roster-toolbar>input{flex:1 1 230px;min-width:0!important}.council-roster th:nth-child(1){width:19%}.council-roster th:nth-child(2){width:14%}.council-roster th:nth-child(3){width:15%}.council-roster th:nth-child(4){width:10%}.council-roster th:nth-child(5){width:9%}.council-roster th:nth-last-child(2){width:145px}.council-roster th:last-child{width:135px}.lodge-roster th:first-child{width:23%}.lodge-roster th:nth-child(2){width:14%}.lodge-roster th:nth-child(3){width:25%}.lodge-roster th:nth-last-child(2){width:145px}.lodge-roster th:last-child{width:120px}
@media(max-width:1150px){.member-roster table,.member-roster tbody{display:block}.member-roster thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.member-roster tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;padding:18px;border-bottom:1px solid #dce3ea}.member-roster td{display:block;padding:0;border:0!important;min-width:0}.member-roster td:before{content:attr(data-label);display:block;text-transform:uppercase;letter-spacing:.055em;font-size:10px;color:#677387;margin-bottom:5px;font-weight:600}.member-roster .roster-person{grid-column:1/-1}.member-roster .roster-person:before{display:none}.member-roster .roster-person strong{font-size:16px}.member-roster .roster-status{grid-column:1}.member-roster .roster-row-actions{grid-column:2;text-align:right;align-self:end}.member-roster .roster-row-actions:before{display:none}.roster-key-states{margin-left:0}.roster-more>div{top:auto;bottom:calc(100% + 4px)}}
@media(max-width:480px){.roster-key{padding:12px;gap:10px}.roster-key-fields{gap:10px}.roster-key-states{gap:10px}.member-roster tr{padding:14px 8px;gap:12px}.member-roster .roster-contact{grid-column:1/-1}.member-roster .roster-row-actions>button,.roster-more summary{padding:7px!important}.member-roster .roster-indicators{gap:4px}.roster-indicator{width:26px}.roster-key small{font-size:11px}.roster-toolbar{gap:8px!important}.roster-toolbar>input{flex-basis:auto!important}}

.roster-key>small{font-size:12px!important}.roster-tools{position:relative;flex:0 0 auto}.roster-tools>summary{cursor:pointer;list-style:none;border:1px solid #dce3ea;background:#fff;color:#234262;border-radius:6px;min-height:44px;display:flex;justify-content:center;align-items:center;padding:10px 14px;font-size:13px;font-weight:600}.roster-tools>summary::-webkit-details-marker{display:none}.roster-tools>summary:after{content:'⌄';margin-left:8px}.roster-tools>div{position:absolute;right:0;top:calc(100% + 5px);z-index:8;display:grid;gap:5px;width:220px;background:#fff;border:1px solid #dce3ea;border-radius:8px;padding:8px;box-shadow:0 8px 24px #182c4226}.roster-tools>div button{width:100%;min-height:44px;white-space:normal!important;text-align:left;font-size:13px}.roster-tools summary:focus-visible,.roster-more summary:focus-visible{outline:3px solid #ce9415;outline-offset:3px}@media(max-width:760px){.roster-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}.roster-toolbar>input{grid-column:1/-1}.roster-toolbar>*{width:100%!important;max-width:100%!important;min-width:0!important}.roster-toolbar>select{font-size:13px}.roster-toolbar>.muted{font-size:12px;align-self:center}.roster-tools>div{width:min(220px,80vw)}}

@media(max-width:760px){.roster-toolbar>.roster-tools{grid-column:1/-1}}

/* Keep member actions in the row so the panel grows around the open menu. */
.member-roster .roster-more{max-width:100%;vertical-align:top}
.member-roster .roster-more>div{position:static;box-sizing:border-box;max-width:100%;margin-top:4px}

/* Meeting check-in uses names only, with large targets for a shared computer. */
.meeting-attendance{margin:24px 0;min-width:0}.meeting-attendance h2{margin-bottom:8px}.attendance-roster-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:24px}.attendance-roster-heading h3{margin:0}.attendance-roster-heading strong{color:var(--primary,var(--local-tone-442e84,#2e4e84))}.meeting-attendance label{display:block;margin:12px 0}.meeting-attendance input[type=search],.attendance-visitor input,.meeting-attendance textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px}.attendance-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:440px;overflow:auto;padding:4px;border:1px solid #dce3ea;border-radius:8px;margin-top:16px}.attendance-roster .attendance-member{display:flex;align-items:center;gap:12px;min-height:52px;margin:0;padding:12px;background:#fff;border:1px solid var(--local-tone-e7e3ef,#e6e8ec);border-radius:6px;cursor:pointer;overflow-wrap:anywhere}.attendance-member:has(input:checked){background:#edf6f0;border-color:#75a88c}.attendance-member input[type=checkbox]{width:22px;height:22px;min-width:22px;flex:0 0 22px;margin:0;accent-color:var(--primary,var(--local-tone-442e84,#2e4e84))}.attendance-member small{display:block;color:#657186;font-size:12px}.attendance-member[hidden],.meeting-attendance [hidden]{display:none!important}.attendance-roster-heading+label{max-width:520px}.attendance-save-status{min-height:24px;color:#14663e}.attendance-visitor{max-width:680px}.meeting-attendance textarea{min-height:100px}.attendance-member:focus-within{outline:2px solid var(--primary,var(--local-tone-442e84,#2e4e84));outline-offset:1px}@media(max-width:600px){.attendance-roster{grid-template-columns:1fr}.attendance-member{padding:10px!important}.meeting-attendance h2{font-size:22px}}

/* Minutes details use the available form width while keeping related fields together. */
#minutes-form{container-type:inline-size}.minutes-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;align-items:end}.minutes-details-grid>label{min-width:0;display:flex;flex-direction:column;gap:8px}.minutes-details-grid>label>input,.minutes-details-grid>label>select{width:100%;min-width:0;min-height:44px;margin:0}.minutes-details-grid>.minute-field-title,.minutes-details-grid>.minute-field-scheduled{grid-column:1/-1}@container(min-width:900px){.minutes-details-grid{grid-template-columns:repeat(12,minmax(0,1fr))}.minutes-details-grid>.minute-field-title,.minutes-details-grid>.minute-field-scheduled{grid-column:span 6}.minutes-details-grid>.minute-field-date,.minutes-details-grid>.minute-field-time,.minutes-details-grid>.minute-field-zone,.minutes-details-grid>.minute-field-location,.minutes-details-grid>.minute-field-presiding,.minutes-details-grid>.minute-field-recorder{grid-column:span 3}.minutes-details-grid>.minute-field-meetingType,.minutes-details-grid>.minute-field-opened,.minutes-details-grid>.minute-field-closed{grid-column:span 2}}@container(max-width:499px){.minutes-details-grid{grid-template-columns:1fr}.minutes-details-grid>label{grid-column:1/-1}}


/* Member actions stay visible and wrap within their own row. */
.member-roster .roster-row-controls{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0}
.member-roster .roster-row-controls>.btn{position:static;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:8px 10px;font-size:12px}
@media(max-width:1150px){.member-roster .roster-row-actions{grid-column:1/-1;text-align:left}.member-roster .roster-row-controls{justify-content:flex-start}}

/* Officer roll call stays in the minutes page, with the substitute beside presence. */
.officer-roll{margin:28px 0;min-width:0}.officer-roll-list{border:1px solid var(--line,#ddd);border-radius:10px;overflow:hidden;margin:18px 0}.officer-roll-row{display:grid;grid-template-columns:minmax(0,1fr) 110px minmax(180px,1fr);gap:14px 20px;align-items:center;padding:16px;border-bottom:1px solid var(--line,#ddd)}.officer-roll-row:last-child{border-bottom:0}.officer-roll-identity{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.officer-roll-identity strong{font-size:15px}.officer-roll-identity span{font-size:14px;color:var(--muted)}.officer-roll .officer-roll-present{display:flex;flex-direction:row;align-items:center;gap:9px;min-height:44px;font-size:14px;margin:0}.officer-roll-present input[type=checkbox]{width:22px;min-width:22px;height:22px;min-height:22px;margin:0;accent-color:var(--purple,var(--local-tone-442e84,#2e4e84))}.officer-roll .officer-roll-substitute,.officer-roll .officer-roll-notes{display:grid;gap:7px;min-width:0;font-size:13px;margin:0}.officer-roll-substitute input{width:100%;min-width:0;font-size:16px;min-height:44px}.officer-roll-substitute input:disabled{background:var(--local-tone-f5f3f8,#f4f5f7);color:var(--muted)}.officer-roll-notes textarea{width:100%;min-height:90px;font-size:16px}.officer-roll-list>.muted{padding:16px}@media(max-width:700px){.officer-roll-row{grid-template-columns:100px minmax(0,1fr);gap:12px;padding:14px}.officer-roll-identity{grid-column:1/-1}.officer-roll .officer-roll-present{grid-column:1}.officer-roll .officer-roll-substitute{grid-column:2}}

/* Local Lodge palette; Grand and other editions keep their existing colors. */
:root[data-local-lodge=true]{--local-tone-442e84:#2e4e84;--local-tone-443080:#304d80;--local-tone-e7e3ef:#e6e8ec;--local-tone-f5f3f8:#f4f5f7;}
