/*
Theme Name: Associations Theme
Author: Associations Theme Project
Description: قالب الجمعيات مع مراكز إدارة المحتوى والحوكمة والتخصيص.
Version: 3.0.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: associations-theme
*/
:root{--at-accent:#176b75}*{box-sizing:border-box}body{margin:0;color:#26353d;background:#fff;font:16px/1.8 system-ui,Tahoma,sans-serif}a{color:var(--at-accent)}img{max-width:100%;height:auto}.wrap{max-width:1160px;margin:auto;padding:0 20px}.site-head{padding:18px 0;border-bottom:1px solid #ddd}.head-inner{display:flex;justify-content:space-between;align-items:center;gap:20px}.menu{display:flex;flex-wrap:wrap;gap:18px;list-style:none;padding:0;margin:0}.main{min-height:60vh;padding-top:35px;padding-bottom:35px}.entry{border-bottom:1px solid #eee;padding-bottom:25px;margin-bottom:25px}.site-foot{padding:24px 0;background:#f5f7f8}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.card{border:1px solid #ddd;border-radius:12px;padding:18px}.aligncenter{display:block;margin:auto}.alignleft{float:left;margin-right:1em}.alignright{float:right;margin-left:1em}.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{color:#666}.sticky{outline:1px solid #ddd}.bypostauthor{font-weight:inherit}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}@media(max-width:700px){.head-inner{display:block}.menu{margin-top:15px}}

.skip-link:focus{clip:auto;position:fixed;top:10px;right:10px;background:#fff;padding:12px;z-index:9999}.entry:after{content:"";display:block;clear:both} .menu a{text-decoration:none}a:focus-visible{outline:2px solid var(--at-accent);outline-offset:3px}

/* Improved accessibility and layout */
:focus-visible{outline:2px solid var(--at-accent);outline-offset:3px}.cards img{display:block;border-radius:8px}.site-head .menu li{margin:0}.main{overflow-wrap:anywhere}@media(max-width:700px){.cards{grid-template-columns:1fr}.wrap{padding-inline:16px}}

/* Associations Theme customization controls */
body{color:var(--at-text);background:var(--at-bg)}
.wrap{max-width:var(--at-width)}
.site-head{background:var(--at-header-bg)}
.site-foot{background:var(--at-footer-bg)}
.card{border-radius:var(--at-radius)}
.site-head .head-inner{min-height:48px}
.site-head nav{min-width:0}
.site-head nav .menu{align-items:center}
.site-head nav .menu li{position:relative}
.site-head nav .menu .sub-menu{list-style:none;margin:0;padding:8px 0;background:var(--at-header-bg)}
.site-head nav .menu .sub-menu a{display:block;padding:4px 10px}
@media(min-width:701px){
.site-head nav .menu .sub-menu{position:absolute;z-index:20;min-width:180px;border:1px solid #ddd;display:none}
.site-head nav .menu li:hover>.sub-menu,.site-head nav .menu li:focus-within>.sub-menu{display:block}
}
@media(max-width:700px){.site-head nav .menu{display:block}.site-head nav .menu li{padding:4px 0}.site-head nav .menu .sub-menu{padding-inline-start:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.atb-section{display:grid;grid-template-columns:repeat(var(--cols,1),minmax(0,1fr));gap:var(--gap,16px);padding:var(--pad,16px);background:var(--bg,transparent);margin-block:18px;border-radius:var(--at-radius,12px)}.atb-section>*{min-width:0}.atb-section img{max-width:100%;height:auto}.atb-btn{display:inline-block;background:var(--at-accent);color:white;padding:9px 20px;border-radius:8px;text-decoration:none}.atb-space{height:var(--height,24px)}@media(max-width:720px){.atb-section{grid-template-columns:1fr}}

/* V1.3.1 responsive navigation and footer: scoped styles avoid affecting page content */
.site-head .head-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.site-head .at-brand{flex-shrink:0;font-size:1.25rem;font-weight:700}
.site-head .at-primary-nav{min-width:0}
.site-head .at-primary-nav ul.at-menu,.site-head .at-primary-nav ul.menu{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;list-style:none;padding:0;margin:0}
.site-head .at-primary-nav li{list-style:none;position:relative;margin:0;padding:0}
.site-head .at-primary-nav li::marker{content:''}
.site-head .at-primary-nav a{display:inline-block;padding:8px 0;color:var(--at-text,#26353d);text-decoration:none}
.site-head .at-primary-nav a:hover,.site-head .at-primary-nav a:focus-visible{color:var(--at-accent,#176b75)}
.at-menu-toggle{display:none;align-items:center;gap:8px;background:var(--at-accent,#176b75);color:#fff;border:0;border-radius:8px;padding:9px 14px;font:inherit;cursor:pointer}
.at-submenu-toggle{background:transparent;border:0;color:inherit;font:inherit;cursor:pointer;padding:8px}
.site-head .at-primary-nav .sub-menu{display:none;list-style:none;min-width:190px;z-index:30;background:var(--at-header-bg,#fff);padding:8px 12px;border:1px solid #dce3e6;border-radius:8px;box-shadow:0 6px 18px #00000015}
.site-head .at-primary-nav .at-submenu-open>.sub-menu{display:block}
@media(min-width:701px){.site-head .at-primary-nav li:hover>.sub-menu,.site-head .at-primary-nav li:focus-within>.sub-menu{display:block}}
@media(max-width:700px){
.site-head .head-inner{display:flex;flex-wrap:wrap;align-items:center}
.at-menu-toggle{display:inline-flex;margin-inline-start:auto}
.site-head .at-primary-nav{display:none;flex-basis:100%;width:100%}
.site-head .at-primary-nav.at-nav-open{display:block}
.site-head .at-primary-nav ul.at-menu,.site-head .at-primary-nav ul.menu{display:block;list-style:none;margin:0;padding:8px 0}
.site-head .at-primary-nav li{border-bottom:1px solid #e5eaed}
.site-head .at-primary-nav a{padding:10px 4px}
.site-head .at-primary-nav .sub-menu{position:static;box-shadow:none;border:0;border-radius:0;padding:0 14px;background:transparent}
.site-head .at-primary-nav li:hover>.sub-menu,.site-head .at-primary-nav li:focus-within>.sub-menu{display:none}
.site-head .at-primary-nav .at-submenu-open>.sub-menu{display:block!important}
}
.site-foot{background:var(--at-footer-bg,#f5f7f8);color:var(--at-text,#26353d);overflow-wrap:anywhere}
.site-foot .at-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding-top:36px;padding-bottom:28px}
.site-foot .at-footer-col{min-width:0}
.site-foot .at-footer-col h2{font-size:1.15rem;line-height:1.5;margin:0 0 14px;color:inherit}
.site-foot .at-footer-col p{margin:0 0 12px}
.site-foot .at-footer-menu,.site-foot .at-footer-menu ul{list-style:none;margin:0;padding:0}
.site-foot .at-footer-menu li{margin:0 0 9px}
.site-foot .at-footer-menu a{color:var(--at-accent,#176b75);text-decoration:none}
.site-foot .at-footer-bottom{border-top:1px solid #dce3e6;padding-top:16px;padding-bottom:16px;font-size:.9rem}
@media(max-width:850px){.site-foot .at-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.site-foot .at-footer-grid{grid-template-columns:1fr;gap:22px}}

.at-form{max-width:680px;margin:24px auto;padding:24px;background:#fff;border:1px solid #ddd;border-radius:12px}
.at-form label{display:block;margin:14px 0 6px;font-weight:600}.at-form input,.at-form textarea,.at-form select{width:100%;max-width:100%;padding:10px;border:1px solid #aaa;border-radius:7px}.at-form button{background:var(--at-accent,#176b75);color:#fff;border:0;padding:10px 24px;border-radius:8px;cursor:pointer}.at-form .at-hp{position:absolute;left:-9999px}
.at-notice{padding:12px;background:#eef8f2;border:1px solid #b2d7bc}.at-error{background:#fff0f0;border-color:#e5aaaa}


/* Scoped news cards - V1.4.2 */
.at-news-page{padding-block:32px 55px}.at-news-heading{font-size:clamp(1.6rem,3vw,2.2rem);margin:0 0 25px;line-height:1.4}
.at-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.at-news-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e1e7e9;border-radius:var(--at-radius,12px);overflow:hidden;box-shadow:0 3px 12px #0000000c}
.at-news-image-link{display:block;aspect-ratio:16/10;background:#edf2f3;overflow:hidden}
.at-news-image{width:100%;height:100%;display:block;object-fit:cover}
.at-news-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:2.4rem;background:#e8f0f1}
.at-news-body{padding:18px;display:flex;flex:1;flex-direction:column;gap:10px}
.at-news-body time{color:#65747a;font-size:.85rem}.at-news-body h2{font-size:1.12rem;line-height:1.55;margin:0}
.at-news-body h2 a{text-decoration:none;color:#26353d}.at-news-body h2 a:hover{color:var(--at-accent,#176b75)}
.at-news-body p{margin:0;color:#5c676d;font-size:.95rem;line-height:1.75;overflow-wrap:anywhere}
.at-news-more{margin-top:auto;align-self:flex-start;text-decoration:none;font-weight:700}
.at-news-pagination{margin-top:35px}.at-news-pagination .nav-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.at-news-pagination .page-numbers{padding:7px 12px;border:1px solid #dbe4e7;border-radius:7px;text-decoration:none}
.at-news-pagination .current{background:var(--at-accent,#176b75);color:#fff}
@media(max-width:980px){.at-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.at-news-grid{grid-template-columns:1fr;gap:18px}.at-news-body{padding:16px}}

/* Independent front-end dashboard */
.atd-shell{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:20px;max-width:1200px;margin:24px auto;padding:12px;align-items:start}
.atd-nav{background:#f0f5f5;padding:18px;border-radius:12px}.atd-nav h2{font-size:1.2rem}
.atd-nav ul{list-style:none;padding:0;margin:0}
.atd-nav a{display:block;padding:9px 12px;text-decoration:none;border-radius:8px}
.atd-nav a:hover,.atd-nav a:focus{background:#d9e7e8}
.atd-main{min-width:0}.atd-main h2{margin:0 0 20px}
.atd-record-list{width:100%;min-width:0}

.atd-editor{display:grid;gap:12px;margin:20px 0}
.atd-editor label{display:grid;gap:5px}.atd-editor input,.atd-editor textarea,.atd-editor select{width:100%;max-width:100%;padding:10px;border:1px solid #bdcbce;border-radius:6px}
.atd-main button{background:var(--at-accent,#176b75);color:white;border:0;padding:9px 16px;border-radius:7px;cursor:pointer}
.atd-inline{display:inline-block;margin-inline-start:10px}
@media(max-width:760px){.atd-shell{grid-template-columns:minmax(0,1fr)}}

/* V1.6.0 dashboard */
.atd-editor .wp-editor-wrap{max-width:100%;min-width:0}
.atd-request-form{display:grid;gap:8px;margin:10px 0;padding:12px;border:1px solid #e1e7e8;border-radius:8px}
.atd-request-form label{display:grid;gap:5px}
.atd-request-form textarea,.atd-request-form select{max-width:100%;padding:8px}
.atd-pagination{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.atd-pagination a{padding:5px 10px;border:1px solid #ddd;border-radius:5px}
.atd-pagination a[aria-current]{background:var(--at-accent,#176b75);color:white}

/* V1.7.0 request assignment */
.atd-request-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-block:14px;padding:12px;border:1px solid #dce4e5;border-radius:10px}
.atd-request-form label{display:flex;flex-direction:column;gap:6px}
.atd-request-form select,.atd-request-form textarea{max-width:100%;min-width:0;padding:9px;border:1px solid #c9d6d8;border-radius:6px}
.atd-request-form button{align-self:end}

/* V1.9.0 - optional homepage sections; all selectors scoped to the home. */
.at-front-existing-content{padding-block:24px}
.at-front-existing-content:empty{display:none}
.at-home-section{background:var(--at-home-bg,#fff);padding:clamp(34px,5vw,76px) 0}
.at-home-section:nth-child(even){border-block:1px solid #eaf0f1}
.at-home-section-inner{max-width:var(--at-width,1160px);margin-inline:auto}
.at-home-section-head{max-width:820px;margin:0 auto 28px;text-align:center}
.at-home-section-head h2{font-size:clamp(1.6rem,3vw,2.5rem);line-height:1.4;margin:0 0 12px;color:var(--at-text,#26353d)}
.at-home-section-head p{font-size:1.06rem;line-height:1.85;color:#485962;margin:0;white-space:pre-line}
.at-home-button{display:inline-block;background:var(--at-accent,#176b75);color:#fff!important;text-decoration:none;padding:10px 24px;border-radius:var(--at-radius,12px);font-weight:700}
.at-home-section-hero{text-align:center}
.at-home-section-hero .at-home-section-inner{display:flex;flex-direction:column;align-items:center}
.at-home-section-hero .at-home-section-head{margin-bottom:22px}
.at-home-hero-image{max-width:980px;width:100%;margin:0 auto 24px}
.at-home-hero-image img{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:var(--at-radius,12px)}
.at-home-hero-copy{display:flex;justify-content:center}
.at-home-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.at-home-stat{text-align:center;border-radius:var(--at-radius,12px);padding:25px 15px;border:1px solid #dce7e8;background:#ffffffc9}
.at-home-stat strong{font-size:clamp(1.6rem,3vw,2.3rem);display:block;color:var(--at-accent,#176b75);line-height:1.5}
.at-home-stat span{font-size:.96rem;display:block}
.at-home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.at-home-card,.at-home-quote{background:#fff;min-width:0;border:1px solid #dfe8ea;border-radius:var(--at-radius,12px);overflow:hidden;box-shadow:0 3px 14px #0000000b;margin:0}
.at-home-card-media{display:block;aspect-ratio:16/10;overflow:hidden;background:#edf3f4}
.at-home-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.at-home-card-body{padding:20px}
.at-home-card-body h3{font-size:1.16rem;line-height:1.55;margin:0 0 10px}
.at-home-card-body h3 a{text-decoration:none;color:inherit}
.at-home-card-body h3 a:hover{color:var(--at-accent,#176b75)}
.at-home-card-body p{color:#4d5b64;line-height:1.7;margin:8px 0}
.at-home-card-body time{color:#65757b;font-size:.85rem}
.at-home-service a{font-weight:700}
.at-home-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.at-home-gallery figure{margin:0;min-width:0;aspect-ratio:4/3;overflow:hidden;border-radius:var(--at-radius,12px);background:#f0f4f6}
.at-home-gallery img{display:block;width:100%;height:100%;object-fit:cover}
.at-home-quote{padding:22px}
.at-home-quote p{line-height:1.9;margin:0 0 16px;color:#26353d}
.at-home-quote cite{font-size:.95rem;font-weight:700;color:var(--at-accent,#176b75)}
.at-home-contact{text-align:center;line-height:1.9}
.at-home-contact p{margin:5px}
.at-home-section-governance,.at-home-section-volunteering,.at-home-section-about,.at-home-section-vision{text-align:center}
.at-home-posts-index{padding-block:30px 55px}
@media(max-width:1000px){.at-home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.at-home-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.at-home-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.at-home-cards,.at-home-stat-grid{grid-template-columns:minmax(0,1fr)}.at-home-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.at-home-section-head{text-align:start}.at-home-section-hero .at-home-section-head{text-align:center}}

.at-home-vision-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;text-align:start}
.at-home-vision-item{background:#fff;border:1px solid #dce7e8;border-radius:var(--at-radius,12px);padding:22px}
.at-home-vision-item h3{margin:0 0 9px;color:var(--at-accent,#176b75)}
.at-home-vision-item p{margin:0;line-height:1.8;white-space:pre-line}
.at-front-existing-content-elementor{padding-block:0;max-width:none}
@media(max-width:760px){.at-home-vision-grid{grid-template-columns:1fr}}


/* V1.9.1: all actions are visible without an internal or horizontal scrollbar.
 * Do not hide overflow to disguise clipped content. Reflow layout instead.
 */
html{max-width:100%}
body{overflow-wrap:anywhere}
.site-head .head-inner,.site-head .at-primary-nav,.site-foot .at-footer-col,
.entry,.wrap,.main,.at-home-section,.at-home-section-inner,.at-news-page{min-width:0}
img,video,iframe,embed,object,svg{max-width:100%}
.entry pre,.main pre,.at-front-existing-content pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.entry table,.main > table,.at-front-existing-content table{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse}
.entry th,.entry td,.at-front-existing-content th,.at-front-existing-content td{overflow-wrap:anywhere;word-break:break-word}
.site-head .at-primary-nav li,.site-foot .at-footer-menu li{overflow-wrap:anywhere}
.site-foot .at-footer-menu a,.at-home-section a{overflow-wrap:anywhere}

/* Full-length navigation: responsive tiles; all links remain in view. */
.atd-shell{width:100%;max-width:1200px;min-width:0;grid-template-columns:minmax(0,230px) minmax(0,1fr);gap:clamp(12px,2vw,22px);align-items:start}
.atd-shell,.atd-shell *{box-sizing:border-box}
.atd-nav,.atd-main{min-width:0;max-width:100%}
.atd-nav{padding:16px}
.atd-nav h2{font-size:clamp(1.05rem,2.4vw,1.2rem);line-height:1.55;margin:0 0 14px}
.atd-nav ul{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;list-style:none;padding:0;margin:0;max-height:none;overflow:visible}
.atd-nav li{min-width:0;max-width:100%;margin:0}
.atd-nav a{display:block;width:100%;max-width:100%;min-width:0;padding:9px 11px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-decoration:none}
.atd-nav a[aria-current="page"]{background:#d9e8ea;color:#153e45;font-weight:700}
.atd-main{min-width:0;width:100%}
.atd-main > h2{font-size:clamp(1.4rem,4vw,1.85rem);line-height:1.5;overflow-wrap:anywhere}
.atd-main > p{overflow-wrap:anywhere}
.atd-main form,.atd-main textarea,.atd-main input,.atd-main select,.atd-main button{min-width:0;max-width:100%}
.atd-main input[type="file"]{width:100%;white-space:normal}
.atd-main button,.atd-action,.atd-main .atd-pagination a{overflow-wrap:anywhere;white-space:normal;line-height:1.5;max-width:100%}
.atd-main .wp-editor-wrap,.atd-main .wp-editor-container,.atd-main .mce-tinymce,
.atd-main .mce-container,.atd-main .mce-panel,.atd-main iframe{max-width:100%;min-width:0}
.atd-main .wp-editor-tabs{display:flex;flex-wrap:wrap;justify-content:flex-end}

/* Records are cards on ALL screen sizes, never a wide table. */
.atd-record-list{display:grid;gap:14px;width:100%;min-width:0}
.atd-record{min-width:0;width:100%;border:1px solid #dce5e7;background:#fff;border-radius:12px;padding:clamp(13px,2vw,19px);box-shadow:0 2px 9px #00000009}
.atd-record-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;align-items:start;min-width:0}
.atd-record-identity,.atd-record-status,.atd-record-actions{min-width:0}
.atd-record-label{display:block;font-size:.8rem;color:#63717a;margin:0 0 6px;font-weight:500}
.atd-record-title{font-size:clamp(1.02rem,2vw,1.18rem);font-weight:700;line-height:1.55;margin:0;overflow-wrap:anywhere;color:#223941}
.atd-status-badge{display:inline-flex;max-width:100%;padding:5px 11px;background:#edf4f4;border-radius:8px;color:#27565c;font-size:.86rem;overflow-wrap:anywhere}
.atd-record-actions{border-top:1px solid #e7edef;margin-top:13px;padding-top:12px}
.atd-action-group{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%;min-width:0}
.atd-action,.atd-action-group .atd-inline button{display:inline-flex;justify-content:center;align-items:center;max-width:100%;padding:8px 12px;border-radius:7px;text-decoration:none;font-size:.9rem}
.atd-action{background:#e9f3f4;color:#165b63}
.atd-inline{margin:0;display:inline-flex;max-width:100%;min-width:0}
.atd-action-group > .atd-details,.atd-action-group > .atd-request-overview,
.atd-action-group > .atd-request-form{flex:1 1 100%;min-width:0;max-width:100%}
.atd-request-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.atd-request-overview p{margin:2px 0;overflow-wrap:anywhere}
.atd-details{border:1px solid #e1e8e9;padding:9px 12px;border-radius:8px;width:100%;min-width:0}
.atd-details summary{cursor:pointer;font-weight:600;overflow-wrap:anywhere}
.atd-details-body,.atd-details ol{overflow-wrap:anywhere;padding-inline-start:20px}
.atd-details-body p{margin:6px 0}
.atd-empty{padding:24px 16px;border:1px dashed #cbd6d9;border-radius:9px;text-align:center;color:#586873}
.atd-request-form{width:100%;min-width:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px}
.atd-request-form label,.atd-request-form select,.atd-request-form textarea{width:100%;min-width:0}
.atd-pagination{display:flex;flex-wrap:wrap;gap:8px}
.atd-pagination a{min-width:35px;text-align:center}
.atd-editor,.atd-editor label{min-width:0;width:100%}
.atd-editor label{overflow-wrap:anywhere}
.atd-editor .quicktags-toolbar{white-space:normal}
.atd-editor .wp-editor-tabs{margin-top:6px}
.atd-editor button{width:auto;max-width:100%}

/* Theme settings also use cards rather than a wide permissions table. */
.atd-permission-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin-top:15px}
.atd-permission-card{min-width:0;max-width:100%;padding:14px 12px;border:1px solid #d7e1e4;border-radius:9px;background:#fff}
.atd-permission-card legend{font-weight:700;padding:0 8px;overflow-wrap:anywhere}
.atd-permission-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.atd-permission-options label{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}

@media(max-width:760px){
 .atd-shell{display:grid;grid-template-columns:minmax(0,1fr);margin:18px auto;padding:0;gap:18px}
 .atd-nav{padding:14px;border-radius:10px}
 .atd-nav ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .atd-nav a{padding:11px 8px;text-align:center;border:1px solid #d5e2e4;border-radius:8px;background:#fff;font-size:.88rem;min-height:44px;display:flex;align-items:center;justify-content:center}
 .atd-nav a[aria-current="page"]{background:#d5e9eb}
 .atd-record-header{grid-template-columns:minmax(0,1fr);gap:10px}
 .atd-record-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
 .atd-record-status .atd-record-label{margin:0}
 .atd-record-actions{margin-top:12px}
 .atd-request-overview{grid-template-columns:minmax(0,1fr)}
 .atd-main .atd-request-form{grid-template-columns:minmax(0,1fr)}
 .atd-main .atd-request-form button{width:100%}
 .atd-action-group .atd-inline button{width:100%}
}
@media(max-width:359px){
 .atd-nav ul{grid-template-columns:minmax(0,1fr)}
 .atd-record{padding:12px}
 .atd-action-group > .atd-inline{flex:1 1 100%}
 .atd-action-group .atd-inline button{width:100%}
}

/* V1.9.2 — stand-alone module screens and cards-only main dashboard.
   No internal scrollbars and no hidden navigation items. */
.atd-overview,.atd-detail{width:100%;max-width:var(--at-width,1160px);min-width:0;margin:0 auto;padding:clamp(8px,2vw,16px) 0 30px;box-sizing:border-box}
.atd-overview *,.atd-detail *{box-sizing:border-box}
.atd-overview-title{font-size:clamp(1.7rem,4vw,2.35rem);line-height:1.4;margin:0 0 clamp(22px,4vw,34px);color:var(--at-text,#26353d)}
.atd-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.7vw,18px);width:100%;margin:0;padding:0}
.atd-center-card{display:flex;align-items:center;justify-content:center;min-width:0;min-height:92px;padding:15px 12px;text-align:center;line-height:1.5;background:#f1f7f7;color:var(--at-accent,#176b75);border:1px solid #d7e3e5;border-radius:12px;text-decoration:none;font-weight:600;font-size:clamp(.98rem,1.7vw,1.08rem);overflow-wrap:anywhere;word-break:normal;transition:background-color .16s ease,border-color .16s ease}
.atd-center-card:hover,.atd-center-card:focus-visible{background:#dcecee;border-color:var(--at-accent,#176b75);color:#174b53}
.atd-center-card:focus-visible,.atd-return:focus-visible{outline:3px solid var(--at-accent,#176b75);outline-offset:3px}
.atd-detail-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-bottom:26px;padding-bottom:17px;border-bottom:1px solid #e4edef}
.atd-detail-header h1{font-size:clamp(1.6rem,3.5vw,2.2rem);margin:0;line-height:1.4;color:var(--at-text,#26353d)}
.atd-return{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:44px;padding:8px 14px;background:#edf4f5;color:#155a62;text-decoration:none;font-size:.95rem;font-weight:650;line-height:1.5;border-radius:9px;overflow-wrap:anywhere}
.atd-return:hover{background:#dbe9eb;color:#17454c}
.atd-detail .atd-record-list,.atd-detail .atd-editor,.atd-detail .atd-pagination{width:100%;min-width:0}
@media(max-width:1000px){.atd-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.atd-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atd-center-card{min-height:78px;padding:12px 9px}.atd-detail-header{align-items:stretch;flex-direction:column}.atd-detail-header .atd-return{align-self:flex-start}}
@media(max-width:340px){.atd-card-grid{grid-template-columns:minmax(0,1fr)}.atd-center-card{min-height:66px}}
@media(prefers-reduced-motion:reduce){.atd-center-card{transition:none}}

/* V1.9.3: documents repeater is owned by a page or an association center record. */
.atdocs-editor{min-width:0;margin:24px 0;padding:clamp(13px,3vw,22px);border:1px solid #d7e3e5;background:#f7fafa;border-radius:14px;overflow-wrap:anywhere}
.atdocs-editor h3{font-size:1.2rem;line-height:1.5;margin:0 0 8px}
.atdocs-help{margin:0 0 12px;color:#405660;line-height:1.7}
.atdocs-warning{padding:10px 12px;margin:12px 0;border-right:4px solid #c68a1b;background:#fff8e8;color:#6e4b10;border-radius:7px;line-height:1.65}
.atdocs-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:16px 0}
.atdocs-row{display:block;min-width:0;width:100%;border:1px solid #cddcdf;border-radius:12px;background:#fff;padding:clamp(12px,2vw,18px);margin:0}
.atdocs-row legend{font-weight:700;padding:0 9px;color:#24434d}
.atdocs-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.atdocs-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;font-weight:600;font-size:.93rem;color:#354d55}
.atdocs-fields .atdocs-wide{grid-column:1/-1}
.atdocs-fields input,.atdocs-fields textarea{display:block;min-width:0;width:100%;max-width:100%;font:inherit;border:1px solid #bdcdd0;border-radius:8px;padding:9px 11px;background:#fff;line-height:1.5;color:#26353d}
.atdocs-fields input[type=file]{max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:12px 8px}
.atdocs-linked{overflow-wrap:anywhere;margin:12px 0 0}
.atdocs-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}
.atd-editor .atdocs-action,.atd-editor .atdocs-add{width:auto;min-height:42px;max-width:100%;padding:8px 12px;background:#e4f0f1;color:#17515b;border:1px solid #bcd6da;border-radius:8px;font:inherit;font-weight:600;cursor:pointer}
.atd-editor .atdocs-remove{background:#fff0ed;border-color:#e7c2be;color:#823f38}
.atd-editor .atdocs-add{background:var(--at-accent,#176b75);color:#fff;border:0}
.atdocs-removed{opacity:.6;background:#f8eeee;border-style:dashed}
.atdocs-removed .atdocs-fields,.atdocs-removed .atdocs-linked{display:none}
.atdocs-hint{font-size:.85rem;color:#586873;margin:12px 0 0}
.atdocs-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.atdocs-target{min-width:0;border:1px solid #d7e4e6;background:#fff;border-radius:12px;padding:16px;display:flex;flex-direction:column;align-items:start;gap:12px}
.atdocs-target h3{margin:0 0 6px;font-size:1.05rem;line-height:1.5;overflow-wrap:anywhere}
.atdocs-target p{margin:0;font-size:.86rem;color:#64757d}
.atdocs-public{margin:28px 0;padding:18px 0;border-top:1px solid #d9e5e7}
.atdocs-public>h2{font-size:clamp(1.3rem,2.7vw,1.8rem);margin:0 0 18px}
.atdocs-public-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.atdocs-public-card{display:flex;flex-direction:column;min-width:0;border:1px solid #d7e3e6;border-radius:12px;padding:17px;background:#fff;box-shadow:0 2px 9px #00000008;overflow-wrap:anywhere}
.atdocs-public-card h3{font-size:1.08rem;line-height:1.5;margin:0 0 11px}
.atdocs-public-card p{margin:2px 0;font-size:.93rem;color:#52636c}
.atdocs-public-desc{margin:10px 0!important}
.atdocs-download{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;margin-top:auto;padding:9px 15px;border-radius:8px;background:var(--at-accent,#176b75);color:white;text-decoration:none;font-weight:600;min-height:43px}
.atdocs-download:hover{background:#164f57;color:#fff}
@media(max-width:730px){.atdocs-targets,.atdocs-public-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:580px){.atdocs-fields{grid-template-columns:minmax(0,1fr)}.atdocs-editor{padding:12px}.atdocs-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.atd-editor .atdocs-action{width:100%}.atdocs-row-actions .atdocs-remove{grid-column:1/-1}}
@media(max-width:340px){.atdocs-row-actions{grid-template-columns:minmax(0,1fr)}}

.atdocs-search{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:14px 0 22px;width:100%}
.atdocs-search label{display:grid;gap:5px;min-width:0;flex:1 1 230px}
.atdocs-search input{width:100%;max-width:100%;min-height:44px;border:1px solid #c4d3d5;border-radius:8px;padding:9px 11px;font:inherit}
.atdocs-search button{min-height:44px;white-space:normal}

/* Small program shortcut, without scrollable navigation rows */
.at-ref-programs-icon{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;min-height:44px;max-width:100%;padding:7px 10px;border:1px solid #d7e4e5;border-radius:9px;color:var(--at-accent,#146c69);background:var(--at-header-bg,#fff);text-decoration:none;font-size:.77rem;font-weight:650;line-height:1.2}
.at-ref-programs-icon:hover,.at-ref-programs-icon:focus-visible{background:#edf6f3;border-color:var(--at-accent,#146c69)}
.at-ref-programs-icon svg{display:block;flex:0 0 auto;width:19px;height:19px}
.at-ref-programs-label{white-space:normal}
@media(max-width:700px){.at-ref-programs-icon{padding:7px;min-width:44px}.at-ref-programs-label{font-size:.7rem}}

/* V2.3.1: add policy inside the actual policies page, without internal scrollers. */
.atsp-policy-controls{min-width:0;width:100%;max-width:100%;margin:20px 0 26px;box-sizing:border-box}
.atsp-policy-disclosure{display:block;min-width:0;max-width:100%;border:1px solid #d3e2e4;border-radius:14px;background:#f5faf9;padding:clamp(12px,3vw,22px)}
.atsp-policy-add-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;max-width:100%;padding:12px 22px;border-radius:10px;background:var(--at-accent,#176b75);color:#fff;font-weight:750;cursor:pointer;list-style:none;line-height:1.5}
.atsp-policy-add-button::-webkit-details-marker{display:none}
.atsp-policy-add-button:focus-visible,.atsp-policy-save:focus-visible{outline:3px solid #efae41;outline-offset:3px}
.atsp-policy-form{margin-top:20px;min-width:0}
.atsp-policy-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.atsp-policy-form-grid label{display:flex;flex-direction:column;gap:7px;min-width:0;font-weight:650;overflow-wrap:anywhere}
.atsp-policy-form-grid .atsp-policy-form-wide{grid-column:1/-1}
.atsp-policy-form-grid input,.atsp-policy-form-grid textarea{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #c6d8db;border-radius:8px;background:#fff;color:#223a42;font:inherit}
.atsp-policy-form-grid textarea{min-height:100px;resize:vertical}
.atsp-policy-form-grid input[type=file]{overflow-wrap:anywhere;white-space:normal;font-size:.9rem}
.atsp-policy-help{margin:13px 0;color:#576870;font-size:.9rem;line-height:1.7}
.atsp-policy-save{display:inline-block;max-width:100%;min-height:44px;padding:12px 22px;border:0;border-radius:9px;background:var(--at-accent,#176b75);color:#fff;font:inherit;font-weight:750;cursor:pointer}
.atsp-policy-notice{padding:12px 14px;border-radius:8px;background:#e6f4ef;color:#11583d;margin:0 0 14px;overflow-wrap:anywhere}
.atsp-policy-notice-error{background:#fff0eb;color:#80352a}
@media(max-width:640px){.atsp-policy-form-grid{grid-template-columns:minmax(0,1fr)}.atsp-policy-add-button,.atsp-policy-save{width:100%}}

/* V2.3.2: explicit media-library or device source without horizontal scrolling */
.atsp-policy-file-chooser{min-width:0;border:1px solid #cfdddf;background:#fff;border-radius:12px;padding:15px;display:flex;flex-direction:column;gap:12px}
.atsp-policy-file-label{font-weight:700}
.atsp-policy-file-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;min-width:0}
.atsp-policy-media-button,.atsp-policy-file-device{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:46px;min-width:0;padding:10px 14px;border:1px solid #a7c5c7;border-radius:9px;color:#145a60;background:#edf6f6;font:inherit;font-weight:700;cursor:pointer;text-align:center;overflow-wrap:anywhere}
.atsp-policy-file-device{position:relative;overflow:hidden}
.atsp-policy-file-device input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-height:0;cursor:pointer}
.atsp-policy-file-device:focus-within,.atsp-policy-media-button:focus-visible,.atsp-policy-clear:focus-visible{outline:3px solid #e6aa3c;outline-offset:2px}
.atsp-policy-file-separator{display:inline-flex;align-items:center;justify-content:center;color:#5b6f71;font-weight:600}
.atsp-policy-picked{margin:0;max-width:100%;color:#39555b;overflow-wrap:anywhere;font-size:.92rem}
.atsp-policy-clear{align-self:flex-start;background:transparent;color:#8d2525;border:0;text-decoration:underline;font:inherit;cursor:pointer}
@media(max-width:560px){.atsp-policy-file-actions{flex-direction:column}.atsp-policy-file-separator{align-self:center}.atsp-policy-media-button,.atsp-policy-file-device{width:100%}}

/* Associations Theme V2.4.0 — customizable background banners & per-section icons.
 * Controls preserve legacy content and do not introduce internal scrollbars. */
.at-home-section{position:relative;isolation:isolate;min-width:0}
.at-home-section.at-home-has-banner:not(.at-home-section-hero){background:var(--at-home-bg,#fff);color:#fff}
.at-home-section-banner{position:absolute;inset:0;z-index:-2;overflow:hidden;pointer-events:none}
.at-home-section-banner img{width:100%;height:100%;display:block;object-fit:cover;object-position:var(--at-home-banner-position,center)}
.at-home-has-banner:not(.at-home-section-hero)::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(6,32,39,var(--at-home-overlay,.45));pointer-events:none}
.at-home-has-banner:not(.at-home-section-hero) .at-home-section-head p{color:#f0f7f6}
.at-home-has-banner:not(.at-home-section-hero) .at-ref-eyebrow{color:#e3f1ee}
.at-home-section .at-home-section-head h2{color:var(--at-home-title-color,#113d49)}
.at-home-section-hero .at-home-section-head h2{color:var(--at-home-title-color,#fff)}
.at-home-section-head .at-home-title-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;max-width:100%;margin:0 0 12px}
.at-home-section-head .at-home-title-row h2{margin:0;min-width:0;overflow-wrap:anywhere}
.at-home-section-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:46px;height:46px;background:color-mix(in srgb,currentColor 9%,transparent);border-radius:14px;color:var(--at-home-icon-color,#146c69)}
.at-home-section-icon .at-home-svg-icon{width:26px;height:26px;display:block}
.at-home-section-hero .at-home-title-row,.at-home-align-start .at-home-title-row{justify-content:flex-start}
.at-home-align-center .at-home-title-row{justify-content:center}
.at-home-align-start .at-home-section-head{text-align:start}
.at-home-align-center .at-home-section-head{text-align:center}
.at-home-align-start .at-home-section-head p{margin-inline:0 auto}
.at-home-align-center .at-home-section-head p{margin-inline:auto}
.at-home-height-small:not(.at-home-section-hero){min-height:220px}
.at-home-height-medium:not(.at-home-section-hero){min-height:360px}
.at-home-height-large:not(.at-home-section-hero){min-height:490px}
.at-home-section-hero.at-home-height-small .at-ref-hero-scene{min-height:320px}
.at-home-section-hero.at-home-height-medium .at-ref-hero-scene{min-height:460px}
.at-home-section-hero.at-home-height-large .at-ref-hero-scene{min-height:610px}
.at-home-section-hero .at-ref-hero-image img{object-position:var(--at-home-banner-position,center)}
.at-home-section-hero .at-ref-hero-scene:after{opacity:var(--at-home-overlay,.55)}
.at-home-section-head .at-home-title-row{direction:inherit}
@media(max-width:700px){
  .at-home-section-head .at-home-title-row{gap:9px;justify-content:flex-start}
  .at-home-section-icon{width:38px;height:38px;border-radius:11px}
  .at-home-section-icon .at-home-svg-icon{width:22px;height:22px}
  .at-home-align-center .at-home-title-row{justify-content:center}
  .at-home-section-hero .at-home-title-row{justify-content:flex-start}
  .at-home-height-large:not(.at-home-section-hero){min-height:380px}
}

/* Preserve readable text on light cards even when their section has a dark photo overlay. */
.at-home-has-banner .at-home-card,
.at-home-has-banner .at-home-stat,
.at-home-has-banner .at-home-quote,
.at-home-has-banner .at-home-vision-item{color:#26353d}
.at-home-has-banner .at-home-contact a{color:#fff}
.at-home-section-icon{background:rgba(20,108,105,.12)}
.at-home-section-icon{background:color-mix(in srgb,currentColor 9%,transparent)}

.at-home-section-banner picture,.at-ref-hero-image picture{display:block;width:100%;height:100%}

/* Clear, editable vision / mission / one-card-per-goal presentation. */
.at-home-vision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.at-home-objectives{grid-column:1/-1}
.at-home-objectives-list{margin:8px 0 0;padding-inline-start:1.4rem;display:grid;gap:12px;list-style:decimal}
.at-home-objectives-list li{padding-inline-start:6px;overflow-wrap:anywhere}
@media(max-width:700px){.at-home-vision-grid{grid-template-columns:minmax(0,1fr)}.at-home-objectives{grid-column:auto}}

.atsp-source-note{border-inline-start:4px solid var(--at-accent,#146c69);padding:12px 16px;background:#f1f7f7;color:#35494b;border-radius:8px;margin:0 0 24px;line-height:1.85;overflow-wrap:anywhere}


.at-home-section-intro{max-width:820px;margin:0 auto;color:#485962;line-height:1.85}
.at-home-section-intro p{margin:0 0 12px}
.at-home-service-placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eff6f6,#dfeceb)}
.at-home-service-placeholder .at-ref-service-icon{font-size:2rem}
.at-home-service .at-home-card-body{display:grid;gap:10px}
.at-home-service .at-home-card-body p{margin:0}
.at-home-vision-item ul,.at-home-vision-item ol{margin:0;padding-inline-start:1.2rem;line-height:1.9}
.at-home-vision-item p:last-child{margin-bottom:0}

/* V3.0.0 — full-width hero with optional, accessible background video. */
.at-front-page,.at-home-sections,.at-home-section-hero {width:100%;max-width:100%;min-width:0}
.at-home-section-hero{padding:0;margin:0}
.at-home-section-hero .at-ref-hero-scene{width:100%;max-width:100%;min-width:0;isolation:isolate}
.at-home-hero-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:var(--at-home-banner-position,center);z-index:-2;opacity:0;transition:opacity .35s ease;pointer-events:none}
.at-home-hero-video.is-playing{opacity:1}
.at-home-section-hero.at-home-height-screen .at-ref-hero-scene{min-height:100svh}
.at-home-section-hero .at-ref-hero-image{z-index:-3}
.at-home-section-hero .at-ref-hero-scene::after{z-index:-1;pointer-events:none}
.at-home-section-hero .at-ref-hero-content{z-index:1;width:100%}
@media (prefers-reduced-motion:reduce){.at-home-hero-video{display:none!important;transition:none!important}}
@media (max-width:700px){.at-home-section-hero.at-home-height-screen .at-ref-hero-scene{min-height:78svh}}

/* V3.0.1 — permanent footer developer credit; no customization setting. */
.at-footer-developer-credit{display:inline-flex;align-items:center;gap:.35em;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.at-footer-developer-credit a{color:inherit;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.at-footer-developer-credit a:hover,.at-footer-developer-credit a:focus-visible{text-decoration-thickness:2px}
@media(max-width:700px){.at-ref-footer-bottom-inner{justify-content:center;text-align:center}}
