/* Phase 6.17F: scoped membership/organization forms and public news search. */
.f-workspace,.organization-panel{min-width:0}.f-page-header,.f-section-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.f-page-header h1,.f-admin-welcome h1{font-size:clamp(24px,2.4vw,32px);margin:0 0 6px}.f-page-header p,.f-admin-welcome p{margin:4px 0;color:#52665b}.f-panel{background:#fff;border:1px solid #dae4dc;border-radius:12px;padding:18px;margin:14px 0}.f-panel h2,.organization-panel h2{font-size:18px;margin:0 0 14px}.f-form,.membership-content .organization-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:start;width:100%;max-width:none;margin:0}.f-form label,.f-filter label,.f-news-search label,.membership-content .organization-form>label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:650;color:#304c3b;margin:0}.f-form input:not([type=checkbox]),.f-form select,.f-form textarea,.f-filter input,.f-filter select,.f-news-search input,.f-news-search select,.membership-content .organization-form input:not([type=checkbox]),.membership-content .organization-form textarea,.membership-content .organization-form select{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid #b8ccbd;border-radius:7px;background:#fff;color:#203f2b;font:inherit;font-size:13px;margin:0}.f-form textarea,.membership-content .organization-form textarea{resize:vertical;min-height:76px}.f-form input[readonly]{background:#f2f6f3;color:#52665b}.f-form small,.f-help{font-size:12px;font-weight:400;line-height:1.5;color:#52665b}.f-form-wide,.f-form-actions,.organization-form>fieldset{grid-column:1/-1}.f-form-actions,.f-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.f-form .button,.f-filter .button,.organization-form>.button{min-height:40px;padding:9px 15px;font-size:12px;width:auto;justify-self:start}.f-filter{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(100px,1fr)) auto auto;align-items:end;gap:10px;margin:14px 0}.f-row-actions{display:flex;gap:9px;flex-wrap:wrap}.f-row-actions a{display:inline-flex;align-items:center;gap:4px;min-height:28px;font-size:12px;font-weight:650;color:#116032}.f-row-actions .icon{width:14px;height:14px}.f-member-table{max-height:490px;overflow:auto;border:1px solid #d9e4dc;border-radius:8px}.f-member-table table{width:100%;border-collapse:collapse;font-size:12px}.f-member-table th{position:sticky;top:0;background:#edf5ef;z-index:1;text-align:left;white-space:nowrap}.f-member-table th,.f-member-table td{padding:11px 10px;border-bottom:1px solid #e4ece6;vertical-align:top}.f-member-table td{overflow-wrap:anywhere}.f-member-table .pill{white-space:nowrap;font-size:10px}.f-pagination{display:flex;justify-content:flex-end;gap:10px;margin:12px 0}.f-pagination a{font-size:12px}.f-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}.f-record div{min-width:0}.f-record dt{font-size:11px;color:#52665b;margin:0 0 5px}.f-record dd{margin:0;font-size:13px;overflow-wrap:anywhere}.f-advanced>summary,.f-panel>summary{cursor:pointer;font-weight:700;font-size:14px;min-height:28px;line-height:28px;color:#274b34}.f-panel[open]>summary{margin-bottom:12px}.f-danger{border-color:#e6c9c5}.f-danger-button{background:#9b3229!important}.f-audit{border-bottom:1px solid #e2eae4;padding:10px 0;font-size:12px}.f-audit p{margin:5px 0;overflow-wrap:anywhere}.f-admin-welcome{padding:8px 0 12px!important;margin:0!important}.membership-content>.membership-tabs{margin:10px 0 18px}.f-org-tabs a[aria-current=page]{background:#e4f1e8;color:#11552c}.organization-panel{margin:0 0 16px;padding:18px!important}.organization-unit{margin:10px 0;padding:14px!important}.organization-unit h3{font-size:15px;margin:0 0 6px}.organization-unit p{font-size:12px;margin:6px 0}.organization-form>.checkbox-label{display:flex;align-items:flex-start;font-weight:400}.organization-form>.checkbox-label input{width:18px;flex:0 0 18px}.organization-form fieldset{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border:1px solid #ccdcd0}.organization-form fieldset .checkbox-label{display:flex;gap:8px;font-size:12px;align-items:center}.organization-form fieldset input[type=checkbox]{width:18px;min-height:18px;margin:0}.organization-panel details{margin:12px 0}.organization-panel details>summary{cursor:pointer;padding:8px 0;font-size:13px;font-weight:650}.organization-filter{display:flex;gap:10px;align-items:end}.organization-filter label{flex:1}.f-news-search{margin:18px 0;background:#f3f7f4;border:1px solid #d7e4da;border-radius:14px;padding:14px;overflow:visible;position:relative;z-index:2}.f-news-main{display:flex;gap:10px;align-items:end}.f-search-label{flex:1}.f-news-main .button,.f-menu-trigger{height:40px;min-width:44px;margin:0;flex-shrink:0}.f-menu-anchor{position:relative}.f-menu-trigger{border:1px solid #b5cdbd;background:#fff;color:#204b30;border-radius:8px;font-size:25px;cursor:pointer}.f-news-menu{position:absolute;right:0;top:calc(100% + 8px);width:240px;max-width:calc(100vw - 40px);padding:6px;background:#fff;border:1px solid #ccdcd0;border-radius:12px;box-shadow:0 12px 35px #12372126;z-index:20}.f-news-menu[hidden],.f-news-advanced[hidden]{display:none!important}.f-news-menu button,.f-news-menu a{display:block;width:100%;text-align:left;border:0;border-radius:7px;background:white;color:#264a32;padding:12px;font:inherit;font-size:13px;text-decoration:none;cursor:pointer}.f-news-menu :is(button,a):is(:focus-visible,:hover){background:#eaf4ed;outline:2px solid #347e4b;outline-offset:-2px}.f-news-advanced{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px;align-items:end}.f-news-advanced .button{min-height:40px}.f-empty{padding:18px;color:#52665b}
@media(min-width:1500px){.f-form,.membership-content .organization-form{grid-template-columns:repeat(3,minmax(0,1fr))}.f-record{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.f-filter{grid-template-columns:repeat(3,minmax(0,1fr))}.f-filter label:first-child{grid-column:span 2}}
@media(max-width:760px){.f-page-header,.f-section-header{align-items:flex-start;flex-wrap:wrap;gap:10px}.f-form,.membership-content .organization-form,.f-record{grid-template-columns:1fr}.f-form-wide,.f-form-actions,.organization-form>fieldset{grid-column:auto}.f-panel,.organization-panel{padding:14px!important}.f-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.f-filter label:first-child{grid-column:1/-1}.f-filter .button{width:100%}.f-member-table{max-height:none;overflow:visible;border:0}.f-member-table table,.f-member-table tbody,.f-member-table tr,.f-member-table td{display:block;width:100%;min-width:0;box-sizing:border-box}.f-member-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.f-member-table tr{border:1px solid #d8e4db;border-radius:10px;background:#fff;padding:10px;margin:0 0 12px}.f-member-table td{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;padding:7px 0;border:0;font-size:12px}.f-member-table td:before{content:attr(data-label);font-size:11px;font-weight:650;color:#52665b}.f-member-table td strong{overflow-wrap:anywhere}.f-member-table th{position:static}.f-row-actions{gap:10px}.f-row-actions a{min-height:32px}.organization-form fieldset{grid-template-columns:repeat(2,minmax(0,1fr))}.f-news-advanced{grid-template-columns:1fr}.f-news-main{gap:7px}.f-news-main .button{padding:8px 12px}.f-news-search{padding:10px}.f-news-main input{font-size:14px}.f-pagination{justify-content:space-between}.f-org-tabs{display:flex;flex-wrap:wrap;gap:6px}.f-org-tabs a{font-size:11px}}

/* Final visual acceptance corrections after actual browser review. */
.membership-content .f-form .f-form-actions{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;grid-column:1/-1}.membership-content .f-form .f-form-actions .button{width:auto!important;flex:0 0 auto;min-width:140px;max-width:100%;margin:0}.membership-content .alert.success{background:#edf8ef;border:1px solid #b9ddc3;color:#215d34;border-radius:9px;padding:12px 14px}.membership-content .organization-form>.button{grid-column:1/-1;width:auto!important;min-width:140px}.membership-content .organization-filter{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.membership-content .organization-filter>.button{width:auto!important;flex:0 0 auto}.membership-content .organization-filter>label{flex:1 1 200px}.membership-content .f-org-assignment{padding:12px;border:1px solid #d8e4db;border-radius:10px;margin-top:14px}.membership-content .f-org-overview{margin:8px 0 16px}.membership-content .f-org-overview dd{min-height:20px}
@media(max-width:760px){.membership-content .f-member-table.table-scroll{max-height:none!important;height:auto!important;overflow:visible!important}.membership-content .f-form .f-form-actions .button{min-width:120px}.membership-content .f-form .f-form-actions{flex-wrap:wrap}.membership-content .organization-form>.button{width:auto!important}.membership-content .f-org-assignment{padding:10px}}

.membership-content .membership-form-panel{max-width:none;padding:18px}.membership-form-panel form.f-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin-top:16px}.membership-form-panel form.f-form label{display:grid;gap:6px;margin:0}.membership-form-panel .f-record{margin:12px 0 20px}.membership-form-panel form.f-form .f-form-actions{display:flex;gap:10px;grid-column:1/-1}.membership-form-panel form.f-form .f-form-actions .button{width:auto!important;min-height:40px;padding:9px 16px;min-width:140px}.membership-public .membership-form-panel{max-width:none}.membership-content form.membership-form-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.membership-content form.membership-form-panel>h3,.membership-content form.membership-form-panel>p{grid-column:1/-1}.organization-context-card{border:1px solid #d5e3d9;border-radius:12px;padding:18px;margin:12px 0;max-width:620px}.organization-context-card .button{min-height:40px;width:auto;padding:9px 16px}
@media(min-width:1100px){.membership-public{grid-template-columns:minmax(240px,.8fr) minmax(480px,1.3fr);gap:32px}.membership-public .membership-intro h1{font-size:36px}.membership-public .membership-intro .info-panel{padding:18px}}
@media(max-width:760px){.membership-form-panel form.f-form,.membership-content form.membership-form-panel{grid-template-columns:1fr}.membership-form-panel form.f-form .f-form-actions{grid-column:auto}.membership-public .membership-form-panel{padding:16px}.membership-content .membership-form-panel{padding:14px}}

.membership-public.f-context{display:block;max-width:960px}.membership-public.f-context>section{width:100%}

@media(min-width:761px){.membership-content .f-member-table table{min-width:900px}.membership-content .f-member-table td:nth-child(2){white-space:nowrap;font-size:11px}.membership-content .f-member-table td:nth-child(6){min-width:135px}}
