/* CityOfEastLiverpool.com — final HTML-era family directory; only .cel-family-* scope */
.cel-family-page{--cel-ink:#18394b;--cel-teal:#105a70;--cel-green:#205b4c;--cel-paper:#f5f9f8;--cel-line:#d9e4e2;color:var(--cel-ink)}
.cel-family-page *{box-sizing:border-box}
.cel-family-wrap{max-width:1240px;margin-inline:auto;padding:0 clamp(17px,3vw,30px)}
.cel-family-hero{position:relative;overflow:hidden;background:linear-gradient(125deg,#143e57 0%,#1e655d 65%,#276c59 100%);color:#fff;padding:clamp(44px,6vw,86px) 0 42px}
.cel-family-hero:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 87% 5%,#f1d39b45,transparent 30%)}
.cel-family-hero-inner{position:relative;z-index:1}
.cel-family-kicker{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:#f3d9a4}
.cel-family-hero h1{font-family:inherit;font-size:clamp(2.35rem,5vw,4.25rem);font-weight:800;line-height:1.1;letter-spacing:-.04em;color:#fff;margin:12px 0 13px}
.cel-family-hero p{max-width:710px;color:#e9f4f1;font-size:clamp(1rem,1.6vw,1.2rem);line-height:1.65}
.cel-family-hero-bands{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0 0}
.cel-family-hero-bands a{display:inline-flex;align-items:center;border:1px solid #ffffff65;border-radius:100px;padding:9px 15px;color:#fff;text-decoration:none;background:#ffffff16;font-weight:700;font-size:.9rem}
.cel-family-hero-bands a:hover,.cel-family-hero-bands a:focus-visible{background:#ffffff33;color:#fff}
.cel-family-body{padding:40px 0 65px;background:#f7faf9}
.cel-family-intro{display:grid;grid-template-columns:1.7fr 1fr;gap:24px;align-items:center;margin-bottom:26px}
.cel-family-intro h2,.cel-family-events h2{font-size:clamp(1.6rem,2.3vw,2.25rem);letter-spacing:-.025em;margin:0 0 8px;color:var(--cel-ink)}
.cel-family-intro p{margin:0;line-height:1.65;color:#4a6471}
.cel-family-distance-note{background:#e7f0ec;padding:15px 18px;border-left:4px solid #267358;border-radius:9px;font-size:.89rem;line-height:1.6;color:#294d48}
.cel-family-tools{display:flex;align-items:end;flex-wrap:wrap;gap:13px;padding:18px;background:#fff;border:1px solid var(--cel-line);border-radius:14px;margin:0 0 16px}
.cel-family-tools label{font-size:.79rem;font-weight:800;color:#3d5962;display:flex;flex-direction:column;gap:5px;min-width:145px}
.cel-family-tools label:first-child{min-width:210px;flex:2}
.cel-family-tools input,.cel-family-tools select{padding:11px 12px;border:1px solid #b9d0d0;border-radius:8px;background:#fff;color:#233f48;font:inherit;font-size:.94rem;min-height:44px;width:100%}
.cel-family-tools button{border:1px solid #bacccc;border-radius:8px;background:#eef5f1;padding:10px 14px;color:#265548;min-height:44px;cursor:pointer;font-weight:800}
.cel-family-count{font-size:.9rem;color:#50666e;margin:0 0 14px}
.cel-family-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.cel-family-card{min-width:0;background:white;border:1px solid var(--cel-line);border-radius:14px;padding:19px;display:flex;flex-direction:column;gap:10px;box-shadow:0 3px 15px #1b53540b}
.cel-family-card[hidden],.cel-family-event[hidden]{display:none!important}
.cel-family-card-top{display:flex;justify-content:space-between;gap:9px;align-items:center}
.cel-family-tag{border-radius:100px;background:#e6f2ed;color:#215947;padding:5px 10px;font-size:.7rem;font-weight:800;line-height:1.25;display:inline-block}
.cel-family-tag.stretch{background:#fff2de;color:#81551d}
.cel-family-card h3{font-size:1.17rem;line-height:1.28;margin:0;color:#183a4b;overflow-wrap:anywhere}
.cel-family-card p{font-size:.88rem;line-height:1.56;color:#4b6168;margin:0}
.cel-family-meta{font-size:.78rem;color:#526671;line-height:1.6}
.cel-family-links{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:auto;padding-top:6px}
.cel-family-links a{font-size:.88rem;color:#0c637a;font-weight:800;text-underline-offset:3px}
.cel-family-events{padding:40px 0 0;margin-top:43px;border-top:1px solid #d6e3df}
.cel-family-events > p{color:#526a72;line-height:1.6;margin:0 0 18px}
.cel-family-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.cel-family-event{background:#fff;border:1px solid var(--cel-line);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:9px}
.cel-family-date{font-weight:800;color:#236056;font-size:.82rem;letter-spacing:.02em}
.cel-family-event h3{font-size:1.13rem;line-height:1.3;margin:0;color:#173b4d}
.cel-family-event p{font-size:.9rem;color:#52666d;line-height:1.5;margin:0}
.cel-family-disclaimer{font-size:.83rem;line-height:1.55;color:#5b6c73;margin:20px 0 0}
.cel-family-empty{padding:28px;border:1px dashed #b2c8c3;background:white;border-radius:10px}
.cel-family-empty[hidden]{display:none!important}
.cel-family-teaser{max-width:1220px;margin:20px auto 35px;padding:23px clamp(18px,3vw,32px);border:1px solid #c5dacc;border-radius:16px;background:linear-gradient(125deg,#f0f7f2,#eaf3f8);color:#173d4c;display:flex;gap:25px;justify-content:space-between;align-items:center}
.cel-family-teaser h2{font-size:clamp(1.25rem,2vw,1.65rem);margin:0 0 8px;line-height:1.2;color:#204d49}
.cel-family-teaser p{margin:0;font-size:.95rem;line-height:1.6;max-width:680px;color:#486571}
.cel-family-teaser a{white-space:nowrap;display:inline-block;background:#23614c;color:#fff!important;padding:12px 17px;border-radius:9px;text-decoration:none;font-weight:800}
.cel-family-teaser a:hover{background:#174937}
@media (max-width:1170px){.cel-family-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:850px){.cel-family-grid,.cel-family-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cel-family-intro{grid-template-columns:1fr}.cel-family-teaser{margin-inline:16px}}
@media (max-width:570px){.cel-family-grid,.cel-family-event-grid{grid-template-columns:1fr}.cel-family-teaser{flex-direction:column;align-items:start}.cel-family-tools label,.cel-family-tools label:first-child{width:100%;flex:auto}.cel-family-body{padding-top:26px}.cel-family-card{padding:17px}}
@media (prefers-reduced-motion:reduce){.cel-family-page *, .cel-family-teaser{scroll-behavior:auto!important;transition:none!important}}
