/* Styles are restricted to this article component; theme header/footer remain outside it. */
.fpd-layout{--fpd-accent:#267049;--fpd-ink:#000;--fpd-muted:#000;--fpd-line:#dce2dd;--fpd-soft:#f0f4f1;box-sizing:border-box;max-width:1240px;width:100%;margin:40px auto;padding:30px;color:var(--fpd-ink);background:#fff;font-family:inherit;font-size:16px;line-height:1.75}
.fpd-layout *{box-sizing:border-box}
.fpd-layout .fpd-layout-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;align-items:start}
.fpd-layout .fpd-main,.fpd-layout .fpd-sidebar{min-width:0}
.fpd-layout.fpd-sidebar-left .fpd-layout-grid{grid-template-columns:300px minmax(0,1fr)}
.fpd-layout.fpd-sidebar-left .fpd-main{grid-column:2;grid-row:1}
.fpd-layout.fpd-sidebar-left .fpd-sidebar{grid-column:1;grid-row:1}
.fpd-layout.fpd-sidebar-none .fpd-layout-grid{display:block}
.fpd-layout.fpd-sidebar-none .fpd-article{max-width:1000px;margin-inline:auto}
.fpd-layout.fpd-sidebar-none .fpd-content{max-width:800px;margin-inline:auto}
.fpd-layout a{color:#000;text-underline-offset:3px}
.fpd-layout a:focus-visible{outline:3px solid var(--fpd-accent);outline-offset:4px}
.fpd-layout .fpd-categories{font-size:12px;letter-spacing:1px;text-transform:uppercase;margin-bottom:12px;font-weight:700}
.fpd-layout .fpd-title{font-family:"Poppins",sans-serif;font-size:46px;font-weight:400;line-height:1.1;letter-spacing:normal;margin:0 0 18px;padding:0;color:#242429;overflow-wrap:anywhere}
.fpd-layout .fpd-meta{font-size:13px;line-height:1.6;color:var(--fpd-muted);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 26px;padding:10px 0}
.fpd-layout .fpd-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 0 auto;padding:0;border:0;font-size:13px}
.fpd-layout .fpd-share a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:22px;height:22px;min-height:30px;background:#000;color:#fff;border:0;border-radius:0;box-shadow:none;text-decoration:none;padding:0}
.fpd-layout .fpd-share a:hover{background:#222;color:#fff}
.fpd-layout .fpd-share svg{display:block;width:20px;height:20px;fill:currentColor;flex:none}
.fpd-layout .fpd-featured{margin:0 0 26px}
.fpd-layout .fpd-featured img{display:block;width:100%;height:auto;max-width:100%;border-radius:0}
.fpd-layout figcaption{font-size:12px;line-height:1.5;color:var(--fpd-muted);padding-top:8px}
.fpd-layout .fpd-content{overflow-wrap:anywhere;font-size:16px;line-height:1.75;color:#000}
.fpd-layout .fpd-content :where(p,li){font-size:16px;line-height:1.75}
.fpd-layout :where(h1,h2,h3,h4,h5,h6,p,li,figcaption,blockquote){color:#000}
.fpd-layout .fpd-content :where(span,strong,em,b,i,a){color:#000}
.fpd-layout .fpd-content>p:first-child{font-size:16px;line-height:1.75;font-weight:600}
.fpd-layout .fpd-content p{margin:0 0 1.25em}
.fpd-layout .fpd-content h2{font-size:1.5em;line-height:1.3;margin:1.5em 0 .7em;color:var(--fpd-ink)}
.fpd-layout .fpd-content h3{font-size:1.2em;line-height:1.35;margin:1.5em 0 .7em}
.fpd-layout .fpd-content img,.fpd-layout .fpd-content video,.fpd-layout .fpd-sidebar img{max-width:100%;height:auto}
.fpd-layout .fpd-content iframe{max-width:100%}
.fpd-layout .fpd-content .alignwide,.fpd-layout .fpd-content .alignfull{width:100%;max-width:100%;margin-inline:0}
.fpd-layout .fpd-content pre{overflow:auto;max-width:100%}
.fpd-layout .fpd-content table{display:block;max-width:100%;overflow:auto}
.fpd-layout .fpd-content blockquote{border-left:4px solid var(--fpd-accent);padding:8px 22px;margin:28px 0;background:var(--fpd-soft)}
.fpd-layout .fpd-widget{margin-bottom:30px;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.fpd-layout .fpd-widget-title{font-family:"Poppins",sans-serif;font-size:18px;line-height:1.4;margin:0 0 16px;padding-bottom:10px;border-bottom:3px solid #000}
.fpd-layout .fpd-sidebar{padding-top:4px}
.fpd-layout .fpd-latest{list-style:none;padding:0;margin:0}
.fpd-layout .fpd-latest li{padding:14px 0;border-bottom:1px solid #000}
.fpd-layout .fpd-latest a{text-decoration:none;color:var(--fpd-ink)}
.fpd-layout .fpd-directory-cta{background:var(--fpd-soft);padding:24px;margin:32px 0}
.fpd-layout .fpd-directory-cta h2{font-size:21px;line-height:1.4;margin:0 0 14px}
.fpd-layout a.fpd-button{display:inline-block;background:#fff;color:#000;border:1px solid #000;padding:11px 18px;text-decoration:none;font-size:15px}
.fpd-layout .fpd-tags{font-size:13px;margin:24px 0}
.fpd-layout .post-navigation{border:0;padding:20px 0;margin:28px 0;font-size:14px}
.fpd-layout .post-navigation .nav-links{display:flex;gap:24px;justify-content:space-between}
.fpd-layout .post-navigation .nav-links>div{flex:1;max-width:48%;overflow-wrap:anywhere}
.fpd-layout .post-navigation a{display:block;text-decoration:none;color:#000}
.fpd-layout .fpd-navigation-label{display:block;font-size:13px;font-weight:400;line-height:1.5;color:#000}
.fpd-layout .post-navigation .fpd-navigation-title{display:block;font-size:22px;font-weight:700;line-height:1.5;margin-top:10px;color:#000}
.fpd-layout .fpd-related{border:0;margin-top:30px;padding-top:22px}
.fpd-layout .fpd-related h2{font-size:24px;margin:0 0 20px}
.fpd-layout .fpd-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.fpd-layout .fpd-related-card{font-size:15px;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
.fpd-layout .fpd-related-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;margin-bottom:10px;height:auto}
.fpd-layout .fpd-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.fpd-layout .fpd-layout-grid,.fpd-layout.fpd-sidebar-left .fpd-layout-grid{grid-template-columns:minmax(0,1fr) 260px;gap:24px}.fpd-layout.fpd-sidebar-left .fpd-layout-grid{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:760px){.fpd-layout{margin:40px auto;padding:30px;font-size:16px}.fpd-layout .fpd-layout-grid,.fpd-layout.fpd-sidebar-left .fpd-layout-grid{display:flex;flex-direction:column;gap:32px}.fpd-layout .fpd-main,.fpd-layout .fpd-sidebar{width:100%}.fpd-layout .fpd-related-grid{grid-template-columns:1fr}.fpd-layout .fpd-related-card img{max-width:360px}.fpd-layout .fpd-share a{min-height:33px}.fpd-layout .fpd-directory-cta{padding:20px}}

@media(max-width:480px){.fpd-layout .post-navigation .nav-links{flex-direction:column}.fpd-layout .post-navigation .nav-links>div{max-width:100%}}

.fpd-layout .fpd-latest a{display:flex;align-items:flex-start;gap:12px}
.fpd-layout .fpd-latest .fpd-latest-thumb{display:block;flex:0 0 72px;width:72px;height:72px;aspect-ratio:1/1;object-fit:cover;border-radius:0;margin:0}
.fpd-layout .fpd-latest-placeholder{background:var(--fpd-soft)}
.fpd-layout .fpd-latest-title{min-width:0;font-size:15px;line-height:1.5;color:#000}

/* White page canvas only on posts using this layout. */
body.fpd-article-page{background:#fff!important;background-image:none!important}

/* Introductory prose before the WordPress Read More anchor. */
.fpd-layout .fpd-content .fpd-intro-text{font-size:24px;line-height:1.2}
body.fpd-article-page #c27-site-wrapper{background:#fff!important;background-image:none!important}

/* Advertising areas collapse entirely when no widgets are assigned. */
.fpd-layout .fpd-ad-zone{min-width:0;max-width:100%;margin:0 0 30px;text-align:center;overflow-wrap:anywhere}
.fpd-layout .fpd-ad-after-article{margin:30px 0}
.fpd-layout .fpd-ad-widget{max-width:100%;margin:0 0 20px}
.fpd-layout .fpd-ad-widget:last-child{margin-bottom:0}
.fpd-layout .fpd-ad-zone img,.fpd-layout .fpd-ad-zone video{max-width:100%;height:auto}
.fpd-layout .fpd-ad-zone iframe{max-width:100%}
.fpd-layout .fpd-ad-zone .wp-block-image{margin:0}

/* Latest Grants: linked titles only, without thumbnails, dates or excerpts. */
.fpd-layout .fpd-grants-list{list-style:none;padding:0;margin:0;text-align:left}
.fpd-layout .fpd-grants-list li{margin:0;padding:14px 0;border-bottom:1px solid #000}
.fpd-layout .fpd-grants-list a{display:block;color:#000;text-decoration:none;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.fpd-layout .fpd-grants-list a:hover{text-decoration:underline}

/* Latest Events: date on the left, title and optional location on the right. */
.fpd-layout .fpd-events-list{list-style:none;padding:0;margin:0;text-align:left}
.fpd-layout .fpd-events-list li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;padding:18px 0;margin:0;border-bottom:1px solid #000}
.fpd-layout .fpd-event-date{font-family:"Poppins",sans-serif;text-align:center;color:#000;line-height:1.2;padding-top:3px}
.fpd-layout .fpd-event-day{display:block;font-size:24px;font-weight:700;white-space:nowrap}
.fpd-layout .fpd-event-month{display:block;font-size:12px;letter-spacing:1px;text-transform:uppercase;margin-top:5px}
.fpd-layout .fpd-event-year{display:block;font-size:11px;margin-top:4px}
.fpd-layout .fpd-event-range{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.fpd-layout .fpd-event-details{min-width:0}
.fpd-layout .fpd-event-title{display:block;font-size:15px;line-height:1.5;text-decoration:none;color:#000;overflow-wrap:anywhere}
.fpd-layout .fpd-event-title:hover{text-decoration:underline}
.fpd-layout .fpd-event-location{display:block;font-size:12px;line-height:1.5;margin-top:7px;color:#000;overflow-wrap:anywhere}

/* Sticky inner sidebar stays bounded by the article/sidebar grid. */
@media(min-width:761px){
.fpd-layout .fpd-sidebar{align-self:stretch}
.fpd-layout .fpd-sidebar-inner{position:sticky;top:var(--fpd-sticky-top,calc(var(--fpd-sticky-offset,96px) + var(--wp-admin--admin-bar--height,0px)))}
}
@media(max-width:760px){
.fpd-layout .fpd-sidebar-inner{position:static;top:auto}
}

.fpd-layout .fpd-featured-caption{display:block;font-size:12px;line-height:1.5;color:#000;padding-top:8px;text-align:left}
.fpd-layout .fpd-image-credit{font-size:12px;line-height:1.5;color:#000}
.fpd-layout .fpd-image-caption+.fpd-image-credit{margin-top:4px}

.fpd-layout .fpd-grant-location{display:inline-block;vertical-align:baseline;margin:0 7px 3px 0;padding:2px 6px;background:#f0f0f0;color:#000;font-size:11px;font-weight:700;line-height:1.5;white-space:nowrap}

.fpd-layout .fpd-mobile-ad{display:none}
@media(max-width:760px){
.fpd-layout .fpd-content .fpd-mobile-ad{display:block;clear:both;max-width:100%;margin:28px auto;padding:10px 0;text-align:center}
.fpd-layout .fpd-mobile-ad .fpd-ad-label{display:block;color:#000;font-size:10px;font-weight:400;line-height:1.5;margin-bottom:8px;letter-spacing:.05em;text-transform:uppercase}
.fpd-layout .fpd-mobile-ad-creative{width:300px;max-width:100%;margin-inline:auto}
.fpd-layout .fpd-mobile-ad-creative img,.fpd-layout .fpd-mobile-ad-creative video{max-width:100%;height:auto}
.fpd-layout .fpd-mobile-ad-creative iframe{max-width:100%}
}

@media(max-width:760px){
.fpd-layout .fpd-content .fpd-mobile-ad:not([data-fpd-filled]){position:absolute;visibility:hidden;pointer-events:none;width:300px;max-width:100%;margin:0;padding:0;overflow:hidden}
}

@media(max-width:760px){.fpd-layout .fpd-mobile-source-empty{display:none!important}}

.fpd-layout .fpd-latest .fpd-list-thumb,.fpd-layout .fpd-grants-list .fpd-list-thumb,.fpd-layout .fpd-event-title .fpd-list-thumb{display:block;flex:0 0 72px;width:72px;height:72px;aspect-ratio:1;object-fit:cover;border-radius:0;margin:0}
.fpd-layout .fpd-grants-list a,.fpd-layout .fpd-event-title{display:flex;gap:12px;align-items:flex-start}
.fpd-layout .fpd-list-body{display:block;min-width:0}
.fpd-layout .fpd-list-date{display:block;font-size:12px;line-height:1.5;margin-top:7px;color:#000}
.fpd-layout .fpd-list-excerpt{display:block;font-size:13px;line-height:1.6;margin-top:7px;color:#000}
.fpd-layout .fpd-events-no-date li{grid-template-columns:minmax(0,1fr)}
.fpd-layout .fpd-grant-status{display:inline-block;font-size:11px;line-height:1.5;padding:2px 6px;margin:5px 0 0 6px;border-radius:2px}
.fpd-layout .fpd-grant-soon{background:#fff0bd;color:#604500}
.fpd-layout .fpd-grant-expired{background:#fbe7e7;color:#8b1d1d}

/* Optional article-end premium listings; no wrapper is printed for empty results. */
.fpd-layout .fpd-premium{margin:36px 0}
.fpd-layout .fpd-premium h2{font-family:"Poppins",sans-serif;font-size:22px;font-weight:400;color:#000;margin:0 0 20px}
.fpd-layout .fpd-premium-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.fpd-layout .fpd-premium-card{display:block;overflow:hidden;border:1px solid #e6e6e6;border-radius:4px;color:#000;text-decoration:none;background:#fff}
.fpd-layout .fpd-premium-cover{aspect-ratio:4/3;position:relative;background:#333;overflow:hidden}
.fpd-layout .fpd-premium-photo{display:block;width:100%;height:100%;object-fit:cover}
.fpd-layout .fpd-premium-cover:after{content:"";position:absolute;inset:30% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.9));pointer-events:none}
.fpd-layout .fpd-premium-badge{position:absolute;top:12px;left:12px;background:#000;color:#fff;font-size:12px;padding:3px 8px;z-index:1}
.fpd-layout .fpd-premium-name{position:absolute;bottom:14px;left:14px;right:14px;display:flex;align-items:center;gap:10px;color:#fff;font-size:16px;font-weight:700;line-height:1.4;z-index:1;overflow-wrap:anywhere}
.fpd-layout .fpd-premium-logo{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:3px;flex-shrink:0}
.fpd-layout .fpd-premium-footer{padding:16px;font-size:13px;line-height:1.5}
.fpd-layout .fpd-premium-footer strong{display:block;margin-top:8px;font-size:14px}
.fpd-layout .fpd-premium-card:focus-visible{outline:2px solid #000;outline-offset:3px}
@media(max-width:1024px){.fpd-layout .fpd-premium-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.fpd-layout .fpd-premium-grid{grid-template-columns:minmax(0,1fr)}}

/* Configurable article-end grids and sliders. */
.fpd-layout .fpd-end-section{--fpde-columns:var(--fpde-desktop,3);margin:36px 0;color:#000;background:#fff;padding:0}
.fpd-layout .fpd-end-dark{background:#000;color:#fff;padding:20px}
.fpd-layout .fpd-end-section h2{font-family:"Poppins",sans-serif;font-size:22px;font-weight:400;color:inherit;margin:0 0 20px}
.fpd-layout .fpd-end-section .fpde-cards{display:grid;grid-template-columns:repeat(var(--fpde-columns),minmax(0,1fr));gap:20px}
.fpd-layout .fpd-end-section .fpd-related-card{display:flex;flex-direction:column;color:inherit;text-decoration:none;min-width:0}
.fpd-layout .fpd-end-section .fpd-related-card small{display:block;font-size:12px;margin-top:8px}
.fpd-layout .fpd-end-section .fpde-read{margin-top:auto;padding-top:12px;font-size:13px}
.fpd-layout .fpd-end-dark .fpd-premium-card{background:#151515;color:#fff;border-color:#333}
.fpd-layout .fpd-end-slider .fpde-cards{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:3px 0 10px;position:relative}
.fpd-layout .fpd-end-slider .fpde-cards::-webkit-scrollbar{display:none}
.fpd-layout .fpd-end-slider .fpde-cards>a{flex:0 0 calc((100% - 20px * (var(--fpde-columns) - 1)) / var(--fpde-columns));scroll-snap-align:start;min-width:0}
.fpd-layout .fpde-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:16px}
.fpd-layout .fpde-controls[hidden],.fpd-layout .fpde-dots[hidden]{display:none}
.fpd-layout .fpde-controls button{padding:6px 12px;border:1px solid currentColor;background:transparent;color:inherit;cursor:pointer}
.fpd-layout .fpde-controls button:disabled{opacity:.35;cursor:default}
.fpd-layout .fpde-controls progress{width:100px;height:4px;accent-color:currentColor}
.fpd-layout .fpde-dots{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.fpd-layout .fpde-dots button{width:9px;height:9px;min-height:0;padding:0;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.fpd-layout .fpde-dots button[aria-current="true"]{background:currentColor}
.fpd-layout .fpde-cards:focus-visible,.fpd-layout .fpde-controls button:focus-visible,.fpd-layout .fpde-dots button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:1024px){.fpd-layout .fpd-end-section{--fpde-columns:var(--fpde-tablet,2)}}
@media(max-width:600px){.fpd-layout .fpd-end-section{--fpde-columns:var(--fpde-mobile,1)}}
.fpd-layout .fpd-event-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#000;color:#fff;padding:24px;margin:24px 0}
.fpd-layout .fpd-event-summary strong,.fpd-layout .fpd-event-summary span{display:block}
.fpd-layout .fpd-event-summary a{background:#c9a455;color:#000;padding:12px 18px;font-weight:700;text-decoration:none}
.fpd-layout .fpd-related-events small{display:block;font-size:13px;margin-top:8px}

/* Event summary: black/white palette and self-contained icons. */
.fpd-layout .fpd-event-summary{display:flex;align-items:center;justify-content:flex-start;gap:24px;background:#000;color:#fff;padding:24px;border:0;border-radius:4px;box-sizing:border-box}
.fpd-layout .fpd-event-summary .fpd-event-fact{display:flex;align-items:center;gap:12px;flex:1 1 220px;min-width:0;color:#fff;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.fpd-layout .fpd-event-summary .fpd-event-fact strong{color:#fff;font-weight:700}
.fpd-layout .fpd-event-summary svg{display:block;width:26px;height:26px;flex:0 0 26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#fff}
.fpd-layout .fpd-event-summary .fpd-event-venue{border-inline-start:1px solid #444;padding-inline-start:24px}
.fpd-layout .fpd-event-summary .fpd-event-register{display:inline-flex;align-items:center;justify-content:center;gap:12px;margin-inline-start:auto;flex:0 1 auto;max-width:100%;background:#fff;color:#000;border:1px solid #fff;padding:12px 18px;min-height:48px;font-size:14px;line-height:1.4;font-weight:700;text-decoration:none;border-radius:3px;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.fpd-layout .fpd-event-summary .fpd-event-register svg{color:#000;width:18px;height:18px;flex-basis:18px}
.fpd-layout .fpd-event-summary .fpd-event-register:hover{background:#e8e8e8;color:#000}
.fpd-layout .fpd-event-summary .fpd-event-register:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(max-width:760px){.fpd-layout .fpd-event-summary{padding:20px;gap:18px}.fpd-layout .fpd-event-summary .fpd-event-fact{flex-basis:100%}.fpd-layout .fpd-event-summary .fpd-event-venue{border:0;padding-inline-start:0}.fpd-layout .fpd-event-summary .fpd-event-register{margin-inline-start:0}}
.fpd-layout .fpd-event-summary .fpd-event-address{display:block;color:#fff;font-size:12px;font-weight:400;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}

/* Override theme heading typography only inside FPD sections and widgets. */
.fpd-layout .fpd-widget .fpd-widget-title,
.fpd-layout .fpd-end-section > h2,
.fpd-layout .fpd-premium > h2,
.fpd-layout .fpd-related-events > h2{font-family:"Poppins",sans-serif!important}
