/* ========================================================================
   BRANCH POLICIES AND PROCEDURES — PAGE-SPECIFIC BODY LAYOUT
   File: /assets/css/branch-policies.css
   Shared X1 continues to control the hero, outer page shell, typography,
   buttons, and responsive foundation. This file controls only the unique
   Branch Policies body arrangement.
   ======================================================================== */

.aauw-branch-policies{
    --bp-blue:#052a4f;
    --bp-green:#67873a;
    --bp-green-dark:#55752f;
    --bp-text:#20242a;
    --bp-muted:#66717d;
    --bp-border:#d8e0e4;
    --bp-soft:#f5f7ef;
    --bp-white:#fff;
    --bp-shadow:0 7px 20px rgba(8,34,59,.08);
    width:100%;
    max-width:1200px;
    margin:0 auto;
    color:var(--bp-text);
}
.aauw-branch-policies *{box-sizing:border-box}

/* Intro heading */
.aauw-branch-policies__intro{
    max-width:960px;
    margin:0 auto 22px;
    text-align:center;
}
.aauw-branch-policies__floral{
    display:block;
    width:210px;
    max-width:48%;
    height:auto;
    margin:0 auto 10px;
}
.aauw-branch-policies__kicker,
.aauw-branch-policies__section-kicker{
    margin:0 0 6px;
    color:var(--bp-green)!important;
    font-family:Montserrat,Arial,sans-serif!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.3!important;
    letter-spacing:.12em!important;
    text-transform:uppercase!important;
}
.aauw-branch-policies__intro h2,
.aauw-branch-policies__section h2{
    margin:0;
    color:var(--bp-blue);
    font-family:Georgia,"Times New Roman",serif;
    font-weight:700;
    line-height:1.12;
}
.aauw-branch-policies__intro h2{font-size:32px}

/* Shared section panel */
.aauw-branch-policies__section{
    position:relative;
    width:100%;
    margin:0 0 20px;
    padding:28px 30px;
    overflow:hidden;
    background:var(--bp-white);
    border:1px solid var(--bp-border);
    border-radius:7px;
    box-shadow:var(--bp-shadow);
}
.aauw-branch-policies__section--soft{
    background:linear-gradient(110deg,#f7f8f2 0%,#fff 58%,#f3f6ea 100%);
}
.aauw-branch-policies__section:last-child{margin-bottom:0}
.aauw-branch-policies__section h2{font-size:31px}
.aauw-branch-policies__section-lead{
    margin:5px 0 0;
    color:var(--bp-muted);
    font-size:15px;
    line-height:1.55;
}
.aauw-branch-policies__section-heading{margin:0 0 18px}

/* Governing Documents — editorial split */
.aauw-branch-policies__governance{
    display:grid;
    grid-template-columns:minmax(280px,.9fr) minmax(0,1.45fr);
    gap:38px;
    align-items:start;
}
.aauw-branch-policies__governance-copy{
    position:relative;
    z-index:1;
    padding:0 0 92px;
}
.aauw-branch-policies__governance-copy p:last-child{
    margin-bottom:0;
}
.aauw-branch-policies__governance-copy::after{
    content:"";
    position:absolute;
    left:-18px;
    bottom:-18px;
    width:170px;
    height:150px;
    opacity:.28;
    pointer-events:none;
    background:
        url("../images/backgrounds/policies-greenery-left.png") no-repeat left bottom/contain;
    transform:rotate(-18deg);
}
.aauw-branch-policies__governance-copy .aauw-branch-policies__body-copy{
    margin:18px 0 0;
    font-size:16px;
    line-height:1.58;
}

/* Resource cards */
.aauw-branch-policies__cards{
    display:grid;
    gap:16px;
}
/* Two-card groups stack when each card would have less than 240px. */
.aauw-branch-policies__cards--2{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
}
.aauw-branch-policies__cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.aauw-branch-policies__cards--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.aauw-branch-policies__resource-card{
    position:relative;
    min-width:0;
    min-height:136px;
    padding:20px 18px 17px 76px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:#fff;
    border:1px solid #d5dde2;
    border-radius:6px;
    box-shadow:0 4px 12px rgba(8,34,59,.06);
}
.aauw-branch-policies__resource-card::before{
    content:"";
    position:absolute;
    left:20px;
    top:50%;
    width:38px;
    height:38px;
    transform:translateY(-50%);
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
}
.aauw-branch-policies__resource-card--document::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2367873a' stroke-width='4'%3E%3Cpath d='M17 7h21l10 10v40H17z'/%3E%3Cpath d='M38 7v12h12M24 31h18M24 39h18M24 47h13'/%3E%3C/svg%3E");
}
.aauw-branch-policies__resource-card--people::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%2367873a'%3E%3Ccircle cx='32' cy='20' r='9'/%3E%3Ccircle cx='15' cy='24' r='7'/%3E%3Ccircle cx='49' cy='24' r='7'/%3E%3Cpath d='M20 53V43c0-8 5-13 12-13s12 5 12 13v10H20zM3 52v-8c0-7 4-11 10-11 4 0 7 2 9 5-3 3-5 7-5 12v2H3zM47 52v-2c0-5-2-9-5-12 2-3 5-5 9-5 6 0 10 4 10 11v8H47z'/%3E%3C/svg%3E");
}
.aauw-branch-policies__resource-card--education::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2367873a' stroke-width='4' stroke-linejoin='round'%3E%3Cpath d='M5 24 32 11l27 13-27 13L5 24z'/%3E%3Cpath d='M16 30v13c8 7 24 7 32 0V30M55 26v18'/%3E%3C/svg%3E");
}
.aauw-branch-policies__resource-card--calendar::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2367873a' stroke-width='4'%3E%3Crect x='9' y='13' width='46' height='42' rx='3'/%3E%3Cpath d='M9 24h46M20 7v12M44 7v12M19 33h6M30 33h6M41 33h6M19 44h6M30 44h6M41 44h6'/%3E%3C/svg%3E");
}
.aauw-branch-policies__resource-card--money::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2367873a' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M32 5v54M44 16c-3-5-8-7-13-7-8 0-14 4-14 10 0 16 29 7 29 24 0 7-6 12-15 12-6 0-12-2-16-7'/%3E%3C/svg%3E");
}
.aauw-branch-policies__resource-card--chart::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%2367873a'%3E%3Crect x='8' y='35' width='11' height='21'/%3E%3Crect x='26' y='24' width='11' height='32'/%3E%3Crect x='44' y='10' width='11' height='46'/%3E%3C/svg%3E");
}
.aauw-branch-policies__resource-card--megaphone::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2367873a' stroke-width='4' stroke-linejoin='round'%3E%3Cpath d='M9 26h12l28-12v36L21 38H9zM21 38l6 15h-9l-5-15M52 25h5M52 39h5'/%3E%3C/svg%3E");
}
.aauw-branch-policies__resource-card--alert::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2367873a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 7 58 54H6L32 7z'/%3E%3Cpath d='M32 23v15M32 46h.01'/%3E%3C/svg%3E");
}
.aauw-branch-policies__resource-card h3{
    margin:0 0 6px;
    color:var(--bp-blue);
    font-family:Georgia,"Times New Roman",serif;
    font-size:18px;
    line-height:1.18;
    overflow-wrap:anywhere;
}
.aauw-branch-policies__resource-card p{
    margin:0 0 4px;
    color:var(--bp-muted);
    font-size:13px;
    line-height:1.4;
}
.aauw-branch-policies__resource-card a{
    display:inline-block;
    margin-top:3px;
    color:var(--bp-green-dark)!important;
    font-size:13px;
    font-weight:700;
    text-decoration:none!important;
}
.aauw-branch-policies__resource-card a::after{content:"  ›"}
.aauw-branch-policies__resource-card a:hover,
.aauw-branch-policies__resource-card a:focus{color:var(--bp-blue)!important}

/* Give the General Communication Information card more usable title width */
.aauw-branch-policies__resource-card--megaphone{
    padding-left:64px;
    padding-right:14px;
}
.aauw-branch-policies__resource-card--megaphone::before{
    left:14px;
    width:34px;
    height:34px;
}
.aauw-branch-policies__resource-card--megaphone h3{
    font-size:17px;
    line-height:1.12;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
}
.aauw-branch-policies__resource-card--megaphone a{
    margin-top:6px;
}

/* Related policies list */
.aauw-branch-policies__related{
    margin-top:15px;
    padding-top:12px;
    border-top:1px solid #aab98d;
}
.aauw-branch-policies__related h3{
    margin:0 0 9px;
    color:var(--bp-blue);
    font-family:Georgia,"Times New Roman",serif;
    font-size:19px;
    line-height:1.2;
}
.aauw-branch-policies__related ul{
    list-style:none!important;
    margin:0!important;
    padding:0!important;
}
.aauw-branch-policies__related li{
    position:relative;
    margin:0 0 8px!important;
    padding:0 0 0 24px!important;
    line-height:1.5;
}
.aauw-branch-policies__related li:last-child{margin-bottom:0!important}
.aauw-branch-policies__related li::before{
    content:"›";
    position:absolute;
    left:2px;
    top:-2px;
    color:var(--bp-green);
    font-size:25px;
    font-weight:700;
    line-height:1;
}
.aauw-branch-policies__related a{
    color:#0868ad!important;
    font-weight:700;
    text-decoration:underline!important;
    text-underline-offset:2px;
}

/* Leadership resources */
.aauw-branch-policies__leadership-head{
    display:grid;
    grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);
    gap:32px;
    align-items:end;
    margin-bottom:17px;
}
.aauw-branch-policies__leadership-head .aauw-branch-policies__section-heading{margin:0}
.aauw-branch-policies__leadership-head .aauw-branch-policies__section-lead{margin:0 0 4px}

/* Additional resources */
.aauw-branch-policies__tools-head{
    display:grid;
    grid-template-columns:minmax(270px,.75fr) minmax(0,1.25fr);
    gap:32px;
    align-items:end;
    margin-bottom:17px;
}
.aauw-branch-policies__tools-head .aauw-branch-policies__section-heading{margin:0}
.aauw-branch-policies__tools-head .aauw-branch-policies__section-lead{margin:0 0 4px}
.aauw-branch-policies__tools-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    padding-right:0;
}
.aauw-branch-policies__tool-note{
    position:relative;
    min-height:136px;
    display:flex;
    align-items:flex-end;
    justify-content:flex-end;
    padding:18px 8px 8px 30px;
    color:var(--bp-green-dark);
    font-family:Georgia,"Times New Roman",serif;
    font-size:18px;
    font-style:italic;
    line-height:1.28;
    text-align:right;
}
.aauw-branch-policies__tool-note::before{
    content:"";
    position:absolute;
    right:0;
    top:-25px;
    width:145px;
    height:115px;
    opacity:.30;
    background:url("../images/backgrounds/policies-greenery-right.png") no-repeat right top/contain;
    transform:rotate(12deg);
}
.aauw-branch-policies__tool-note span{
    position:relative;
    z-index:1;
    padding-top:52px;
    border-bottom:1px solid #9bad7d;
}

/* Long description below Nomination Form */
.aauw-branch-policies__note{
    margin:12px 0 0;
    padding:12px 15px;
    background:rgba(255,255,255,.66);
    border-left:3px solid var(--bp-green);
    color:var(--bp-muted);
    font-size:13px;
    line-height:1.5;
}

/* Tablet */
@media(max-width:1050px){
    .aauw-branch-policies__resource-card--megaphone{padding-left:70px;padding-right:16px}
    .aauw-branch-policies__resource-card--megaphone::before{left:17px;width:36px;height:36px}
    .aauw-branch-policies__resource-card--megaphone h3{font-size:18px;line-height:1.18}
    .aauw-branch-policies__governance{grid-template-columns:1fr;gap:20px}
    .aauw-branch-policies__governance-copy{padding-bottom:18px}
    .aauw-branch-policies__governance-copy::after{display:none}
    .aauw-branch-policies__tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .aauw-branch-policies__tool-note{grid-column:span 3;min-height:95px;padding-top:8px}
    .aauw-branch-policies__tool-note::before{top:-10px}
    .aauw-branch-policies__tool-note span{padding-top:24px}
}
@media(max-width:800px){
    .aauw-branch-policies__section{padding:24px 22px}
    .aauw-branch-policies__leadership-head,
    .aauw-branch-policies__tools-head{grid-template-columns:1fr;gap:8px;align-items:start}
    .aauw-branch-policies__cards--3,
    .aauw-branch-policies__tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .aauw-branch-policies__tool-note{grid-column:span 2}
}
@media(max-width:560px){
    .aauw-branch-policies__resource-card--megaphone{padding:18px 16px 18px 70px}
    .aauw-branch-policies__resource-card--megaphone::before{left:17px;width:36px;height:36px}
    .aauw-branch-policies__intro h2{font-size:28px}
    .aauw-branch-policies__section h2{font-size:27px}
    .aauw-branch-policies__section{margin-bottom:16px;padding:22px 18px}
    .aauw-branch-policies__cards--3,
    .aauw-branch-policies__tools-grid{grid-template-columns:1fr}
    .aauw-branch-policies__resource-card{min-height:112px;padding:18px 16px 18px 70px}
    .aauw-branch-policies__resource-card::before{left:17px;width:36px;height:36px}
    .aauw-branch-policies__tool-note{grid-column:auto;min-height:95px}
}
