/* Child & Family homepage preview: events, news and service finder hub. All rules scoped to .cfhub */
.cfhub{--blue:#5987c5;--blue-dark:#2f5d99;--orange:#e09900;--orange-dark:#a86f00;--orange-soft:#fff4dc;--ink:#24303d;--muted:#5d6874;--line:#d6dce3;--land:#f1eee6;--land-hover:#e3ddcf;--water:#e4eef8;--mapw:33.33%;
  font-family:"Work Sans",Arial,sans-serif;color:var(--ink);font-size:16px;line-height:1.5;text-align:left}
.cfhub *,.cfhub *::before,.cfhub *::after{box-sizing:border-box}
.cfhub h2,.cfhub h3,.cfhub h4,.cfhub p,.cfhub ul{margin:0;padding:0}
.cfhub h2,.cfhub h3,.cfhub h4{font-family:inherit;color:var(--ink);padding-bottom:0;text-transform:none}
.cfhub ul{list-style:none}
.cfhub a{text-decoration:none}
.cfhub-box{background:#fff;border:1px solid var(--line);border-radius:18px;display:grid;grid-template-columns:minmax(0,1fr) var(--mapw);overflow:hidden}
.cfhub-left{padding:26px 28px;display:flex;flex-direction:column;gap:26px;min-width:0}
.cfhub-rowhead{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 14px}
.cfhub-rowhead h2{font-size:24px;font-weight:700;line-height:1.2;letter-spacing:-.2px}
.cfhub-rowhead a{font-size:14px;font-weight:600;color:var(--blue-dark);white-space:nowrap}
.cfhub-rowhead a:hover{text-decoration:underline}
.cfhub-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cfhub-events{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr))}
.cfhub-card{display:flex;flex-direction:column;border:1px solid #e3e8ee;border-radius:12px;overflow:hidden;background:#fff;transition:box-shadow .15s,transform .15s;min-width:0;position:relative;color:var(--ink)}
a.cfhub-card:hover{box-shadow:0 6px 18px rgba(36,48,61,.12);transform:translateY(-2px)}
.cfhub-thumb{aspect-ratio:16/10;background:#eef1f5 center/cover no-repeat;position:relative}
.cfhub-date{position:absolute;left:10px;top:10px;background:#fff;border-radius:8px;text-align:center;padding:4px 9px 5px;line-height:1.1;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.cfhub-date .m{display:block;font-size:11px;font-weight:700;color:var(--orange-dark);text-transform:uppercase;letter-spacing:.6px}
.cfhub-date .d{display:block;font-size:20px;font-weight:700;color:var(--ink)}
.cfhub-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px;flex:1}
.cfhub-kicker{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;color:var(--blue-dark)}
.cfhub-card h3{font-size:16px;font-weight:700;line-height:1.3}
.cfhub-meta{font-size:13px;color:var(--muted)}
.cfhub-fill{border-style:dashed;border-color:#e9c77a;background:var(--orange-soft)}
.cfhub-fill .cfhub-body{justify-content:center;padding:18px}
.cfhub-fill h3{font-size:18px}
.cfhub-fill p{margin:4px 0 10px;font-size:14px;color:#5c4a22}
.cfhub-btn{display:inline-block;align-self:flex-start;background:var(--orange);color:#fff!important;font-weight:600;font-size:14px;border-radius:999px;padding:8px 16px}
.cfhub-btn:hover{background:var(--orange-dark)}
.cfhub-amts{display:flex;gap:6px;margin:2px 0 12px;flex-wrap:wrap}
.cfhub-amts span{border:1.5px solid #e2b34d;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:600;color:#7a5600;background:#fff}
.cfhub-ph{display:flex;align-items:center;justify-content:center;height:56px;border:1.5px dashed #a9c0de;border-radius:8px;color:#5f7ea8;font-size:12px;margin-bottom:10px;background:#fff}
.cfhub-fill.partner{background:#f3f7fc;border-color:#b9cde6}
.cfhub-fill.partner p{color:var(--muted)}
.cfhub-tag{position:absolute;right:8px;top:8px;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;background:rgba(36,48,61,.8);color:#fff;border-radius:4px;padding:2px 6px}
.cfhub-right{border-left:1px solid var(--line);display:flex;flex-direction:column;min-width:0;position:relative}
.cfhub-finder{padding:26px 22px 12px}
.cfhub-finder h2{font-size:24px;font-weight:700;line-height:1.2;letter-spacing:-.2px;margin-bottom:4px}
.cfhub-finder p{margin:0 0 12px;color:var(--muted);font-size:14px}
.cfhub select.cfhub-town{width:100%;font:inherit;font-size:15px;height:auto;padding:10px 12px;border:1.5px solid #b9c3cf;border-radius:10px;background:#fff;color:var(--ink);-webkit-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 52%,calc(100% - 14px) 52%;background-size:6px 6px;background-repeat:no-repeat}
.cfhub select:focus,.cfhub button:focus-visible,.cfhub a:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.cfhub-mapbox{flex:1;position:relative;min-height:260px;margin:0 14px 14px;background:var(--water);border-radius:12px;overflow:hidden}
.cfhub-mapbox svg{position:absolute;left:8px;top:8px;width:calc(100% - 16px);height:calc(100% - 16px)}
.cfhub .town-p{fill:var(--land);stroke:#fff;stroke-width:1.4;stroke-linejoin:round;cursor:pointer;transition:fill .15s}
.cfhub .town-p:hover{fill:var(--land-hover)}
.cfhub .town-p.sel{fill:var(--orange)}
.cfhub .inset{fill:var(--water);stroke:#b8c6d6;stroke-width:1.2;stroke-dasharray:4 3}
.cfhub .insetlbl{font:600 13px "Work Sans",Arial;fill:#6d7d8f}
.cfhub .pin circle{fill:#fff;stroke:var(--ink);stroke-width:3}.cfhub .pin .dot{fill:var(--ink);stroke:none}
.cfhub .sellbl{font:700 22px "Work Sans",Arial;fill:var(--ink);paint-order:stroke;stroke:#fff;stroke-width:7px;stroke-linejoin:round;pointer-events:none}
.cfhub-tip{position:absolute;pointer-events:none;background:var(--ink);color:#fff;font-size:12px;padding:3px 7px;border-radius:6px;white-space:nowrap;opacity:0;transform:translate(-50%,-130%)}
.cfhub-allprog{padding:0 22px 20px;font-size:14px}
.cfhub-allprog a{color:var(--blue-dark);font-weight:600}
.cfhub-drawer{position:absolute;left:14px;right:14px;bottom:14px;top:120px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;opacity:0;transition:opacity .2s ease;visibility:hidden;z-index:2}
.cfhub-drawer.open{opacity:1;visibility:visible}
.cfhub-dhead{display:flex;justify-content:space-between;align-items:center;padding:12px 14px 8px;border-bottom:1px solid #edf0f4}
.cfhub-dhead h3{font-size:17px;font-weight:700}
.cfhub-dhead button{font:inherit;font-size:13px;border:0;background:#eef2f7;border-radius:999px;padding:4px 10px;cursor:pointer;color:var(--ink)}
.cfhub-dbody{overflow:auto;padding:4px 14px 14px}
.cfhub-dbody h4{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);margin:10px 0 6px}
.cfhub-dbody ul{display:grid;gap:6px}
.cfhub-dbody li{padding:0}
.cfhub-dbody li a{display:block;font-size:14px;font-weight:500;padding:7px 10px;border-radius:8px;background:#f5f8fb;border:1px solid #e6ebf1;color:var(--ink)}
.cfhub-dbody li a:hover{border-color:var(--blue)}
.cfhub-dbody .local a{background:#fff8ea;border-color:#f3dfb4}
.cfhub-dbody .flag{display:block;font-size:11px;color:var(--orange-dark)}
.cfhub-dbody details{margin:10px 0 0}
.cfhub-dbody summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--blue-dark);padding:4px 0}
.cfhub-dbody details ul{margin-top:6px}
.cfhub-ctr{font-size:13px;border-left:3px solid var(--blue);padding:4px 10px;background:#f5f8fb;border-radius:0 8px 8px 0}
.cfhub-ctr a{color:var(--blue-dark);font-weight:600}
/* preview-only controls */
.cfpv-bar{position:fixed;left:16px;bottom:16px;z-index:99999;font:13px/1.4 "Work Sans",Arial,sans-serif;color:#fff}
.cfpv-bar>button{font:inherit;font-weight:600;background:#24303d;color:#fff;border:0;border-radius:999px;padding:9px 16px;box-shadow:0 4px 14px rgba(0,0,0,.25);cursor:pointer}
.cfpv-panel{display:none;background:#24303d;border-radius:12px;padding:14px 16px;margin-bottom:8px;box-shadow:0 6px 20px rgba(0,0,0,.3);width:270px}
.cfpv-bar.open .cfpv-panel{display:block}
.cfpv-panel b{display:block;margin-bottom:8px}
.cfpv-panel label{display:block;margin:8px 0 0}
.cfpv-panel select,.cfpv-panel input{width:100%;margin-top:3px;font:inherit;color:#24303d}
.cfpv-note{background:#fff4dc;color:#6b4a00;border:1px solid #f0d9a6;border-radius:10px;font:14px/1.45 "Work Sans",Arial,sans-serif;padding:10px 14px;margin:0 0 16px}
@media (max-width:1100px){.cfhub-cards,.cfhub-events{grid-template-columns:repeat(2,minmax(0,1fr))}.cfhub-cards .cfhub-card:nth-child(3){display:none}}
@media (max-width:900px){
  .cfhub-box{grid-template-columns:1fr}
  .cfhub-right{border-left:0;border-top:1px solid var(--line)}
  .cfhub-mapbox{min-height:420px}
  .cfhub-cards .cfhub-card:nth-child(3){display:flex}
  .cfhub-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cfhub-events{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr))}
}
@media (max-width:700px){
  .cfhub-left{padding:20px 16px}
  .cfhub-cards,.cfhub-events{grid-template-columns:1fr}
  .cfhub-finder{padding:20px 16px 12px}
  .cfhub-mapbox,.cfhub .maponly,.cfhub-dhead button{display:none}
  .cfhub-drawer{position:static;transform:none;visibility:visible;box-shadow:none;max-height:none;border:1px solid var(--line);margin:0 16px 16px;display:none}
  .cfhub-drawer.open{display:flex}
  .cfhub-allprog{padding:0 16px 18px}
  .cfpv-bar{left:8px;bottom:8px}
}
/* Program cards (replaces flat icon row) */
.cfsvc{font-family:"Work Sans",Arial,sans-serif;color:#24303d;padding:10px 0 6px}
.cfsvc *{box-sizing:border-box}
.cfsvc h2{text-align:center;font-size:30px;font-weight:700;line-height:1.2;margin:0 0 6px;padding:0;color:#24303d;letter-spacing:-.3px}
.cfsvc .sub{text-align:center;color:#5d6874;font-size:16px;margin:0 0 26px;padding:0}
.cfsvc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.cfsvc-card{--c:#5987c5;--t:#e9f0fa;display:flex;flex-direction:column;align-items:center;text-align:center;text-decoration:none!important;color:#24303d;background:var(--t);border-radius:20px;padding:26px 16px 20px;position:relative;overflow:hidden;transition:transform .25s cubic-bezier(.2,.8,.3,1.2),box-shadow .25s,background .25s}
.cfsvc-card::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--c)}
.cfsvc-card:hover,.cfsvc-card:focus-visible{transform:translateY(-6px);box-shadow:0 14px 28px rgba(36,48,61,.16)}
.cfsvc-card:focus-visible{outline:3px solid #e09900;outline-offset:3px}
.cfsvc-ico{width:112px;height:112px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:16px;box-shadow:0 0 0 6px color-mix(in srgb,var(--c) 22%,transparent);transition:transform .35s cubic-bezier(.2,.8,.3,1.4),box-shadow .25s}
.cfsvc-ico img{width:78px;height:78px;object-fit:contain;mix-blend-mode:multiply}
.cfsvc-card:hover .cfsvc-ico{transform:scale(1.08) rotate(-3deg);box-shadow:0 0 0 9px color-mix(in srgb,var(--c) 32%,transparent)}
.cfsvc-card h3{font-size:18px;font-weight:700;line-height:1.25;margin:0 0 6px;padding:0;color:#24303d}
.cfsvc-card p{font-size:14px;line-height:1.45;color:#4a5560;margin:0 0 14px;padding:0}
.cfsvc-more{margin-top:auto;font-size:14px;font-weight:700;color:var(--d,#2f5d99);display:inline-flex;gap:6px;align-items:center}
.cfsvc-more span{transition:transform .2s}
.cfsvc-card:hover .cfsvc-more span{transform:translateX(4px)}
.cfsvc-card.foster{--c:#5987c5;--t:#eaf1fb;--d:#2f5d99}
.cfsvc-card.living{--c:#e09900;--t:#fdf3e0;--d:#8a5c00}
.cfsvc-card.sand{--c:#3f9a6e;--t:#e7f5ee;--d:#24694a}
.cfsvc-card.preserve{--c:#8a63b8;--t:#f2ecf9;--d:#5d3d86}
.cfsvc-card.aging{--c:#d0624a;--t:#fcebe7;--d:#9a3d29}
.cfsvc.anim .cfsvc-card{opacity:0;transform:translateY(18px)}
.cfsvc.anim .cfsvc-card.in{opacity:1;transform:none;transition:opacity .5s ease,transform .5s ease;transition-delay:calc(var(--i)*90ms)}
.cfsvc.anim .cfsvc-card.in:hover{transform:translateY(-6px);transition-delay:0s}
@media (prefers-reduced-motion:reduce){.cfsvc-card,.cfsvc-ico,.cfsvc-more span{transition:none!important}.cfsvc.anim .cfsvc-card{opacity:1;transform:none}.cfsvc-card:hover .cfsvc-ico{transform:none}}
@media (max-width:1100px){.cfsvc-grid{display:flex;flex-wrap:wrap;justify-content:center}.cfsvc-card{flex:0 1 calc(33.333% - 12px)}}
@media (max-width:700px){.cfsvc h2{font-size:24px}.cfsvc .sub{margin-bottom:18px}.cfsvc-card{flex:1 1 100%;display:grid;grid-template-columns:72px 1fr;column-gap:16px;row-gap:2px;text-align:left;align-items:center;justify-items:start;padding:16px 16px 16px 20px}.cfsvc-card h3,.cfsvc-card p,.cfsvc-more{grid-column:2}.cfsvc-more{margin-top:0}.cfsvc-ico{grid-column:1;grid-row:1/4;width:72px;height:72px;margin:0;flex:none;box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 22%,transparent)}.cfsvc-ico img{width:50px;height:50px}.cfsvc-card::before{width:5px;height:auto;bottom:0;right:auto}.cfsvc-card p{margin-bottom:6px}.cfsvc-card h3{font-size:17px}}

/* v2: three separate panels with colored title bars */
.cfhub{--bar:#3d6fb0;--land:#ddd5c3;--land-hover:#cbbfa4;--water:#b7d0ea}
.cfhub .town-p{stroke:#756f63;stroke-width:1.2}
.cfhub .town-p.sel{stroke:#4a3a12}
.cfhub .inset{stroke:#5f7896}
.cfhub .insetlbl{fill:#3f5168}
.cfhub-box{background:none;border:0;border-radius:0;overflow:visible;gap:20px}
.cfhub-left{padding:0;gap:20px}
.cfhub-panel{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.cfhub-rowhead{background:var(--bar);margin:0;padding:12px 18px;align-items:center}
.cfhub-rowhead h2{color:#fff!important;font-size:20px;letter-spacing:0}
.cfhub-rowhead a{color:#fff;opacity:.92}
.cfhub-rowhead a:hover{opacity:1}
.cfhub-panel>.cfhub-cards{padding:16px}
.cfhub-right{border-left:1px solid var(--line)}
.cfhub-finder{padding:14px 16px 12px}
.cfhub-mapbox{margin:0 16px 16px}
.cfhub-drawer{left:16px;right:16px;bottom:16px}
.cfhub-allprog{padding:0 16px 16px}
@media (max-width:900px){.cfhub-right{border-top:1px solid var(--line);border-left:1px solid var(--line)}}
@media (max-width:700px){.cfhub-panel>.cfhub-cards{padding:14px}.cfhub-finder{padding:14px 14px 12px}.cfhub-drawer{margin:0 14px 14px}.cfhub-allprog{padding:0 14px 16px}}

/* v3: two cards per row */
.cfhub-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.cfhub-events{grid-template-columns:repeat(var(--cols,2),minmax(0,1fr))}
@media (max-width:900px){.cfhub-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cfhub-events{grid-template-columns:repeat(var(--cols,2),minmax(0,1fr))}}
@media (max-width:700px){.cfhub-cards,.cfhub-events{grid-template-columns:1fr}}

/* v4: program cards without boxes (icon rings + motion kept) */
.cfsvc-card{background:transparent!important;box-shadow:none!important;padding:8px 10px 6px}
.cfsvc-card::before{display:none}
.cfsvc-card:hover,.cfsvc-card:focus-visible,.cfsvc.anim .cfsvc-card.in:hover{transform:none;box-shadow:none}
.cfsvc-card:hover h3{color:var(--d)}
.cfsvc-ico{background:var(--t)}
@media (max-width:700px){.cfsvc-card{padding:10px 4px}.cfsvc-grid{gap:6px}}

/* v5: section header colors from program palette */
.cfhub-right .cfhub-rowhead{background:#2f8560}

/* v6: rounded, inset hero (preview page only) */
body.page-id-14721 .et_pb_section_0{width:95%;max-width:1400px;margin-left:auto!important;margin-right:auto!important;border-radius:22px;overflow:hidden;isolation:isolate}
@media (max-width:700px){body.page-id-14721 .et_pb_section_0{width:calc(100% - 24px);border-radius:16px}}

/* v7: let hovered icons sit above everything */
.cfsvc-card{overflow:visible!important;position:relative;z-index:1}
.cfsvc-card:hover,.cfsvc-card:focus-visible{z-index:5}
.cfsvc-ico{position:relative;z-index:2}
body.page-id-14721 .et_pb_section_1,body.page-id-14721 .et_pb_section_1 .et_pb_row,body.page-id-14721 .et_pb_section_1 .et_pb_column,body.page-id-14721 .et_pb_section_1 .et_pb_code,body.page-id-14721 .et_pb_section_1 .et_pb_code_inner{overflow:visible!important}
body.page-id-14721 .et_pb_section_1{position:relative;z-index:3}
