*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#f6f3ea;color:#2f3e2e;font:19px/1.55 "Montserrat",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
img{max-width:100%}
a{color:#556b2f}
a:hover{color:#2f3e2e}
:focus-visible{outline:3px solid #8a9a5b;outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link{position:absolute;left:-9999px;top:12px;z-index:300;background:#2f3e2e;color:#fff;padding:12px 16px;font-weight:600}
.skip-link:focus{left:16px;color:#fff}
.wrap{max-width:1320px;margin:0 auto;padding-left:clamp(16px,4vw,40px);padding-right:clamp(16px,4vw,40px)}
.eyebrow{margin:0;font-size:14px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#445725}
.band--cream .eyebrow{color:#3a4a1f}
.h-section{margin:0;font-weight:600;font-size:clamp(28px,3.4vw,46px);line-height:1.02;letter-spacing:-.025em;text-wrap:balance}
.muted{color:#4d4a40}
.pretty{text-wrap:pretty}
.btn{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border:1.5px solid #2f3e2e;border-radius:999px;background:#2f3e2e;color:#f6f3ea;font:700 16px/1.2 "Montserrat",system-ui,sans-serif;text-decoration:none;cursor:pointer}
.btn:hover{background:#556b2f;border-color:#556b2f;color:#fff}
.btn--line{background:transparent;color:#2f3e2e}
.btn--line:hover{background:#e7ddc8;border-color:#2f3e2e;color:#2f3e2e}
.btn-row{display:flex;flex-wrap:wrap;gap:12px}
.rule-note{border-left:3px solid #556b2f;padding:4px 0 4px 22px}

/* header */
.site-header{background:#fff;border-top:4px solid #556b2f;border-bottom:1px solid #d9d3c2;box-shadow:0 1px 8px rgba(47,62,46,.08);z-index:50}
.site-header__inner{padding-top:14px;padding-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}
.wordmark{flex:0 0 auto;white-space:nowrap;display:flex;flex-direction:column;text-decoration:none;line-height:1.1}
.wordmark__county{font-size:16px;font-weight:700;letter-spacing:.01em;color:#7b4b2a}
.wordmark__bank{font-size:24px;font-weight:800;letter-spacing:-.005em;line-height:1;color:#556b2f}
.nav-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 30px;text-transform:uppercase;letter-spacing:.08em;font-size:14px;font-weight:700}
.nav-list a{white-space:nowrap;color:#2f3e2e;text-decoration:none;padding:10px 0;display:flex;align-items:center;gap:8px;background:linear-gradient(currentColor,currentColor) left calc(100% - 4px)/0% 2px no-repeat;transition:background-size .25s ease}
.nav-list a:hover,.nav-list a:focus-visible,.nav-list a[aria-current="page"]{background-size:100% 2px}
.nav-list .nav-county a{color:#556b2f}
.nav-county__logo{display:block;width:44px;height:33px;background:url("../images/fairfield-county-logo.png") center/contain no-repeat}
.nav-toggle{display:none;margin-left:auto;align-items:center;gap:10px;min-height:44px;padding:0 14px;background:#fff;border:1.5px solid #2f3e2e;border-radius:6px;color:#2f3e2e;font:700 14px/1 "Montserrat",system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.nav-toggle__bars{display:grid;gap:4px;width:20px}
.nav-toggle__bars span{display:block;height:2px;background:#2f3e2e}
@media (min-width:961px){.site-header{position:sticky;top:0}}
@media (max-width:960px){
  .site-nav{display:contents}
  .nav-toggle{display:flex}
  .nav-list{display:none;flex:1 0 100%;flex-direction:column;align-items:stretch;gap:0;border-top:1px solid #d9d3c2;font-size:15px}
  .nav-list.is-open{display:flex}
  .nav-list li+li{border-top:1px solid #d9d3c2}
  .nav-list a{padding:14px 0;background:none}
  .nav-list .nav-county{display:none}
}

/* hero */
.hero{position:relative;min-height:min(88vh,860px);display:flex;align-items:flex-end;color:#fff;background:#3a3a2c}
.hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(15,15,10,.35) 0%,rgba(15,15,10,.55) 45%,rgba(15,15,10,.88) 100%)}
.hero__inner{position:relative;z-index:2;width:100%;padding-bottom:clamp(36px,6vw,72px);display:flex;flex-direction:column;align-items:flex-start}
.hero__logo{display:block;width:clamp(170px,20vw,260px);height:auto;background:#fff;padding:14px 18px;border-radius:6px;box-sizing:content-box;margin:0 0 28px}
.hero__kicker{margin:0 0 14px;font-size:14px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.hero h1{margin:0;font-weight:800;font-size:clamp(34px,5vw,72px);line-height:1;letter-spacing:-.02em;max-width:16ch;text-wrap:balance;text-shadow:0 2px 24px rgba(0,0,0,.35)}

/* meeting bar */
.meeting{background:#7b4b2a;color:#fff}
.meeting__inner{display:flex;flex-wrap:wrap}
.meeting__item{padding:22px 0}
.meeting__item:first-child{padding-right:48px;margin-right:48px;border-right:1px solid rgba(255,255,255,.3)}
.meeting__label{margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#f3ecd9}
.meeting__value{margin:0;font-size:18px;font-weight:700}
@media (max-width:1180px){
  .meeting__item{flex:1 1 100%}
  .meeting__item:first-child{padding:20px 0 16px;margin:0;border-right:0;border-bottom:1px solid rgba(255,255,255,.3)}
  .meeting__item+.meeting__item{padding:16px 0 20px}
}

/* sections */
.two-up{padding-top:clamp(56px,9vw,128px);padding-bottom:clamp(56px,9vw,128px);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:clamp(32px,5vw,80px)}
.lede{margin:0 0 24px;font-size:clamp(22px,2.1vw,28px);line-height:1.4;text-wrap:pretty}
.band{border-top:1px solid #d9d3c2}
.band__inner{padding-top:clamp(48px,7vw,96px);padding-bottom:clamp(48px,7vw,96px)}
.band--cream{background:#e7ddc8;border-top:0}
.faq{border-top:1px solid #2f3e2e}
.faq summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:baseline;gap:12px;padding:26px 0}
.faq summary::-webkit-details-marker{display:none}
.faq__q{font-size:clamp(20px,2.2vw,30px);font-weight:600;line-height:1.15;letter-spacing:-.015em}
.faq__plus{font-size:30px;line-height:1;justify-self:end;transition:transform .2s}
.faq[open] .faq__plus{transform:rotate(45deg)}
.faq__a{margin:0;padding:0 52px 30px 0;max-width:62ch;color:#3a372e;text-wrap:pretty}
.now{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:clamp(32px,5vw,72px);align-items:start}
.news{list-style:none;margin:0;padding:0}
.news li{border-top:1px solid #c4b89c;padding:20px 0}
.news a{font-size:21px;line-height:1.3;color:#2f3e2e;text-decoration-thickness:1px;text-underline-offset:4px}
.grants{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr))}
.grants__img{display:block;width:100%;height:100%;min-height:340px;object-fit:cover}
.grants__body{padding:clamp(40px,6vw,88px) clamp(16px,4vw,56px);display:flex;flex-direction:column;justify-content:center;gap:22px}
.board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:clamp(32px,5vw,72px)}
.directors{list-style:none;margin:0;padding:0}
.directors li{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid #d9d3c2;padding:12px 0;font-size:17px}
.directors span{font-size:14px;font-weight:600;color:#556b2f;align-self:center}
address{font-style:normal}

/* page header (subpages) */
.page-head{background:#2f3e2e;color:#fff}
.page-head__inner{padding-top:clamp(36px,6vw,72px);padding-bottom:clamp(36px,6vw,72px)}
.crumbs ol{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;gap:6px;font-size:14px;font-weight:600;color:#e7ddc8}
.crumbs a{color:#e7ddc8}
.page-head h1{margin:0;font-weight:800;font-size:clamp(32px,4.6vw,60px);line-height:1.02;letter-spacing:-.02em;max-width:20ch;text-wrap:balance}

/* application */
.toolbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid #d9d3c2}
@media (min-width:961px){.toolbar{top:var(--header-h,0px)}}
.toolbar__inner{padding-top:12px;padding-bottom:12px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
.toolbar p{margin:0;font-size:14px;color:#4d4a40;flex:1 1 240px}
.toolbar .btn{font-size:15px}
.sheet-wrap{padding:clamp(24px,4vw,48px) clamp(12px,3vw,40px) 72px}
.sheet{max-width:900px;margin:0 auto;background:#fff;border:1px solid #e1dac8;border-radius:8px;padding:clamp(22px,5vw,56px);font-size:18px;line-height:1.6}
.sheet__contact{margin:0 0 24px;font-size:15px;line-height:1.55}
.sheet__title{margin:0 0 16px;font-size:clamp(24px,3vw,32px);font-weight:800;line-height:1.2;letter-spacing:-.01em;text-wrap:balance}
.step{margin:44px 0 4px;padding-top:22px;border-top:2px solid #556b2f;font-size:21px;font-weight:800;letter-spacing:-.01em}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:0 24px}
.full{grid-column:1/-1}
.sheet label{display:block;font-weight:700;font-size:15px;margin:18px 0 6px}
.sheet input[type=text],.sheet input[type=tel],.sheet input[type=email],.sheet input[type=date],.sheet textarea{display:block;width:100%;font:inherit;font-size:17px;padding:11px 12px;border:1.5px solid #8a8574;border-radius:4px;background:#fff;color:#2f3e2e}
.sheet textarea{resize:vertical;min-height:9rem}
.sheet fieldset{border:0;padding:0;margin:16px 0 0}
.sheet legend{font-weight:700;padding:0}
.sheet .check{display:flex;gap:12px;align-items:flex-start;margin:10px 0;font-size:17px;font-weight:400}
.sheet .check input{flex:0 0 auto;width:22px;height:22px;margin:2px 0 0;accent-color:#556b2f}
.hint{margin:6px 0 0;font-size:14px;color:#4d4a40}
.sheet__actions{margin-top:36px}

/* 404 */
.nf{position:relative;min-height:min(70vh,640px);display:flex;align-items:flex-end;color:#fff;background:#3a3a2c}
.nf::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(15,15,10,.5) 0%,rgba(15,15,10,.7) 50%,rgba(15,15,10,.9) 100%)}
.nf__inner{position:relative;z-index:2;width:100%;padding-top:clamp(48px,8vw,96px);padding-bottom:clamp(48px,8vw,96px);display:grid;gap:18px;justify-items:start}
.nf h1{margin:0;font-weight:800;font-size:clamp(34px,5vw,68px);line-height:1.02;letter-spacing:-.02em;max-width:16ch;text-wrap:balance}
.nf p{margin:0;max-width:48ch;font-size:clamp(18px,1.6vw,21px)}
.nf .nf__code{font-size:14px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#f3ecd9}
.btn--light{background:#fff;border-color:#fff;color:#2f3e2e}
.btn--light:hover{background:#e7ddc8;border-color:#e7ddc8;color:#2f3e2e}
.btn--ghost{background:transparent;border-color:#fff;color:#fff}
.btn--ghost:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff}
.links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:0 40px}
.links li{border-top:1px solid #2f3e2e}
.links a{display:block;padding:18px 0;font-size:20px;font-weight:600;color:#2f3e2e;text-underline-offset:4px}

/* accessibility */
.intro{margin:0 0 40px;max-width:52ch;font-size:clamp(21px,2vw,26px);line-height:1.4;text-wrap:pretty}
.row{border-top:1px solid #d9d3c2;padding:32px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px clamp(24px,5vw,72px)}
.row h2{margin:0;font-size:clamp(21px,2vw,26px);font-weight:700;line-height:1.2;letter-spacing:-.01em}
.row>div{max-width:64ch}
.row p{margin:0 0 12px}
.row p:last-child{margin-bottom:0}
.row ul{margin:0;padding-left:1.2em}
.row li{margin:0 0 8px}

/* footer */
.site-footer{background:#2f3e2e;color:#e7ddc8}
.site-footer__top{padding-top:56px;padding-bottom:28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:40px;align-items:start}
.site-footer__tag{margin:0;font-size:clamp(22px,2.4vw,32px);font-weight:600;line-height:1.15;letter-spacing:-.02em;max-width:22ch}
.site-footer__mission{margin:0;font-size:17px;color:#cfc9b6;text-wrap:pretty}
.site-footer__county{justify-self:start;background:#f6f3ea;padding:10px;border-radius:6px;display:block}
.site-footer__county,.site-footer__county:hover{color:#2f3e2e}
.site-footer__county img{display:block;width:110px;height:auto}
.site-footer__legal{padding-top:18px;padding-bottom:28px;border-top:1px solid #4a5a48;font-size:14px;color:#cfc9b6;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
.site-footer a{color:#e7ddc8}
.site-footer a:hover{color:#fff}

/* document viewer */
.dv[hidden]{display:none}
.dv{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:24px}
.dv__backdrop{position:absolute;inset:0;background:rgba(20,28,20,.62)}
.dv__panel{position:relative;background:#fff;color:#2f3e2e;width:100%;max-width:980px;height:min(88vh,900px);display:flex;flex-direction:column;border-radius:10px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.dv__bar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 12px}
.dv__title{margin:0;font-size:19px;font-weight:700;line-height:1.3;text-wrap:pretty}
.dv__x{flex:0 0 auto;width:44px;height:44px;border:1.5px solid #2f3e2e;border-radius:50%;background:#fff;color:#2f3e2e;font-size:18px;cursor:pointer}
.dv__tabs{display:flex;gap:4px;padding:0 12px;border-bottom:1px solid #d9d3c2}
.dv__tabs[hidden]{display:none}
.dv__tab{font:700 15px/1.2 "Montserrat",system-ui,sans-serif;padding:12px 18px;min-height:44px;background:none;border:0;border-bottom:3px solid transparent;cursor:pointer;color:#2f3e2e}
.dv__tab[aria-selected="true"]{border-bottom-color:#556b2f}
.dv__body{flex:1 1 auto;min-height:0;display:flex;background:#f4f1e8}
.dv__pane{flex:1;display:flex}
.dv__pane[hidden]{display:none}
.dv__pane iframe{flex:1;width:100%;height:100%;border:0;background:#fff}
.dv__mobile{display:none;margin:auto;padding:32px 24px;max-width:36ch;text-align:center;gap:16px;justify-items:center}
.dv__mobile p{margin:0}
.dv__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:14px 20px;border-top:1px solid #d9d3c2}
.dv__note{margin:0;flex:1 1 280px;font-size:14px;line-height:1.45;color:#4d4a40}
.dv__actions{display:flex;gap:10px;flex-wrap:wrap}
.dv .btn{font-size:14px;min-height:40px;padding:0 16px}
.dv__btn[hidden]{display:none}
body.dv-open{overflow:hidden}
@media (max-width:759px){
  .dv{padding:0}
  .dv__panel{height:100%;border-radius:0}
  .dv__pane--pdf iframe{display:none}
  .dv__mobile{display:grid}
}

@media print{
  .site-header,.site-footer,.skip-link,.toolbar,.page-head,.sheet__actions,.dv{display:none !important}
}
@media (prefers-reduced-motion:reduce){*{transition:none !important}}

[id]{scroll-margin-top:var(--header-h,0px)}
@media (max-width:960px){[id]{scroll-margin-top:0}}
@media (max-width:720px){
  .hero{min-height:clamp(340px,62svh,520px)}
  .hero__inner{padding-bottom:28px}
  .hero__logo{width:140px;padding:10px 12px;margin:0 0 18px}
  .hero__kicker{font-size:12px;margin:0 0 10px}
  .meeting__item:first-child{padding:16px 0 12px}
  .meeting__item+.meeting__item{padding:12px 0 16px}
  .meeting__value{font-size:17px}
}
.to-top{position:fixed;right:16px;bottom:16px;z-index:150;width:48px;height:48px;border-radius:50%;border:2px solid #fff;background:#2f3e2e;color:#fff;font:700 22px/1 "Montserrat",system-ui,sans-serif;display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.25);opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s}
.to-top:hover{background:#556b2f}
@media (max-width:960px){.to-top{display:flex}}
.to-top.is-visible{opacity:1;transform:none}
.to-top:not(.is-visible){pointer-events:none}
body.dv-open .to-top{display:none}
@media print{.to-top{display:none !important}}
