.community-preview-page { background:linear-gradient(180deg,#f4f1e9 0,#fff 34%,#eef5f6 100%); }
.preview-pill { padding:7px 11px; border-radius:999px; color:#fff; background:#8f6b25; font-size:.7rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.community-hero { width:min(1400px,calc(100% - 32px)); margin:clamp(18px,3vw,42px) auto 0; overflow:hidden; border-radius:var(--radius-lg); background:var(--navy-deep); box-shadow:var(--shadow); }
.community-hero-image { display:block; width:100%; aspect-ratio:1280/426; object-fit:cover; }
.community-hero-copy { padding:clamp(34px,6vw,82px); color:#fff; background:radial-gradient(circle at 86% 0,rgba(226,172,77,.2),transparent 28rem),linear-gradient(130deg,var(--navy-deep),var(--navy)); }
.community-hero-copy .eyebrow,.community-closing .eyebrow { color:#ffd67f; }
.community-hero-copy h1 { max-width:1050px; margin:.15rem 0 1.2rem; color:#fff; font-size:clamp(2.7rem,6vw,6.3rem); line-height:.94; letter-spacing:-.055em; }
.community-hero-copy > p:not(.eyebrow) { max-width:920px; margin:0 0 28px; color:rgba(255,255,255,.87); font-size:clamp(1.05rem,1.65vw,1.32rem); line-height:1.7; }
.community-primary { color:var(--navy-deep); background:#fff6d8; }
.community-primary:hover { background:#fff; }
.event-gallery { width:min(1320px,calc(100% - 32px)); margin:clamp(65px,9vw,115px) auto; }
.gallery-heading { display:grid; grid-template-columns:.85fr 1.15fr; align-items:end; gap:clamp(26px,6vw,82px); margin-bottom:28px; }
.gallery-heading h2 { margin:.15rem 0 0; color:var(--navy); font-size:clamp(2.2rem,4.5vw,4.7rem); line-height:.98; letter-spacing:-.045em; }
.gallery-heading > p { max-width:650px; margin:0; color:var(--muted); font-size:1.05rem; line-height:1.7; }
.gallery-carousel { position:relative; }
.gallery-viewport { overflow:hidden; border-radius:var(--radius-lg); background:var(--navy-deep); box-shadow:var(--shadow); scroll-behavior:smooth; }
.gallery-track { display:flex; transition:transform .55s cubic-bezier(.22,.75,.3,1); }
.gallery-slide { position:relative; flex:0 0 100%; margin:0; aspect-ratio:16/9; overflow:hidden; background:var(--navy-deep); }
.gallery-slide img { display:block; width:100%; height:100%; object-fit:cover; }
.gallery-slide figcaption { position:absolute; right:0; bottom:0; left:0; padding:42px 24px 20px; color:#fff; background:linear-gradient(transparent,rgba(9,21,30,.88)); font-size:clamp(.92rem,1.4vw,1.12rem); font-weight:850; }
.gallery-arrow { position:absolute; top:50%; z-index:2; display:grid; place-items:center; width:48px; height:48px; border:1px solid rgba(255,255,255,.55); border-radius:50%; color:#fff; background:rgba(9,21,30,.78); cursor:pointer; font-size:2rem; line-height:1; transform:translateY(-50%); }
.gallery-arrow:hover { background:var(--blue); }
.gallery-arrow--previous { left:18px; }
.gallery-arrow--next { right:18px; }
.gallery-dots { display:flex; justify-content:center; gap:8px; margin-top:16px; }
.gallery-dot { width:10px; height:10px; padding:0; border:0; border-radius:50%; background:rgba(20,40,56,.25); cursor:pointer; }
.gallery-dot.active { background:var(--blue); transform:scale(1.25); }
.community-questionnaire { scroll-margin-top:100px; display:grid; grid-template-columns:.75fr 1.25fr; gap:clamp(30px,6vw,90px); width:min(1240px,calc(100% - 32px)); margin:clamp(70px,10vw,130px) auto; }
.questionnaire-intro { align-self:start; position:sticky; top:110px; }
.questionnaire-intro h2,.directory-heading h2,.community-closing h2 { margin:.15rem 0 1rem; color:var(--navy); font-size:clamp(2.2rem,4.5vw,4.7rem); line-height:.98; letter-spacing:-.045em; }
.questionnaire-intro > p:not(.eyebrow),.directory-heading > p { color:var(--muted); font-size:1.05rem; line-height:1.7; }
.community-survey-form { display:grid; gap:18px; padding:clamp(22px,4vw,48px); border:1px solid var(--line); border-radius:var(--radius-lg); background:rgba(255,255,255,.96); box-shadow:0 18px 48px rgba(9,21,30,.09); }
.community-survey-form fieldset,.survey-text-field { display:grid; gap:10px; margin:0; padding:20px; border:1px solid rgba(20,40,56,.13); border-radius:18px; background:#f8fafb; }
.community-survey-form legend,.survey-text-field > span { padding:0 5px; color:var(--navy); font-weight:850; line-height:1.4; }
.community-survey-form fieldset > label { display:grid; grid-template-columns:auto 1fr; align-items:start; gap:10px; padding:11px 12px; border-radius:11px; background:#fff; color:#334957; cursor:pointer; font-weight:650; }
.community-survey-form input[type='radio'],.community-survey-form input[type='checkbox'] { width:18px; min-height:18px; margin:2px 0 0; accent-color:var(--blue); }
.community-survey-form input[type='text'],.community-survey-form textarea { width:100%; border:1px solid rgba(20,40,56,.18); border-radius:11px; background:#fff; }
.community-survey-form textarea { resize:vertical; }
.community-survey-form .inline-other { grid-template-columns:auto auto 1fr; align-items:center; }
.field-help { margin:-2px 0 4px; color:var(--muted); font-size:.78rem; font-weight:650; }
.compact-field { grid-template-columns:minmax(130px,.45fr) 1fr; align-items:center; }
.community-survey-form .submit-button { width:100%; }
.business-directory { scroll-margin-top:100px; width:min(1320px,calc(100% - 32px)); margin:0 auto clamp(70px,9vw,120px); }
.directory-heading { display:grid; grid-template-columns:.85fr 1.15fr; align-items:end; gap:clamp(26px,6vw,82px); margin-bottom:30px; }
.directory-heading h2 { margin-bottom:0; }
.directory-heading > p { max-width:650px; margin:0; }
.directory-signup-callout { display:flex; align-items:center; justify-content:space-between; gap:28px; margin:0 0 24px; padding:clamp(24px,4vw,42px); border-radius:24px; color:#fff; background:linear-gradient(125deg,var(--navy-deep),var(--blue)); box-shadow:0 16px 40px rgba(9,21,30,.14); }
.directory-signup-callout .eyebrow { margin-bottom:6px; color:#ffd67f; }
.directory-signup-callout h3 { margin:0 0 8px; color:#fff; font-size:clamp(1.55rem,3vw,2.4rem); line-height:1.05; }
.directory-signup-callout p:last-child { max-width:740px; margin:0; color:rgba(255,255,255,.84); line-height:1.6; }
.directory-signup-callout .button { flex:0 0 auto; text-align:center; }
.directory-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 24px; padding:16px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.85); }
.directory-search { flex:1; }
.directory-search input { width:100%; min-height:48px; padding:12px 16px; border:1px solid rgba(20,40,56,.18); border-radius:999px; background:#fff; }
#directory-count { flex:0 0 auto; margin:0; color:var(--navy); font-size:.82rem; font-weight:850; }
.directory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.directory-card { display:grid; grid-template-rows:150px auto; min-width:0; overflow:hidden; border:1px solid rgba(20,40,56,.13); border-radius:20px; background:rgba(255,255,255,.97); box-shadow:0 10px 28px rgba(9,21,30,.07); }
.directory-logo-wrap { display:grid; place-items:center; padding:20px; border-bottom:1px solid rgba(20,40,56,.09); background:linear-gradient(145deg,#fff,#f2f5f5); }
.directory-logo { display:block; width:100%; height:110px; object-fit:contain; }
.directory-card-body { display:grid; align-content:start; gap:8px; padding:18px; }
.directory-card h3 { margin:0; color:var(--navy); font-size:1.15rem; line-height:1.2; }
.directory-representative { margin:0; color:var(--muted); font-size:.85rem; font-weight:700; }
.directory-contact { display:flex; flex-wrap:wrap; gap:8px; margin-top:5px; }
.directory-contact a { max-width:100%; overflow:hidden; padding:8px 10px; border-radius:999px; color:var(--navy); background:#edf4f5; font-size:.72rem; font-weight:800; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.directory-contact a:hover { color:#fff; background:var(--blue); }
.directory-empty { grid-column:1/-1; padding:36px; border:1px dashed var(--line); border-radius:18px; color:var(--muted); text-align:center; }
.community-closing { width:min(1240px,calc(100% - 32px)); margin:0 auto 70px; padding:clamp(34px,6vw,72px); border-radius:var(--radius-lg); color:#fff; background:radial-gradient(circle at 82% 20%,rgba(32,169,197,.28),transparent 28rem),linear-gradient(130deg,var(--navy-deep),var(--navy)); }
.community-closing h2 { max-width:920px; color:#fff; }
.community-closing > p:last-child { max-width:820px; margin:0; color:rgba(255,255,255,.8); font-size:1.05rem; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media (max-width:960px) {
  .community-questionnaire,.directory-heading,.gallery-heading { grid-template-columns:1fr; }
  .questionnaire-intro { position:static; }
  .directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
  .preview-pill { display:none; }
  .community-hero { width:calc(100% - 20px); margin-top:10px; border-radius:20px; }
  .community-hero-image { aspect-ratio:auto; min-height:175px; object-fit:cover; }
  .community-hero-copy { padding:34px 22px 40px; }
  .event-gallery { width:calc(100% - 20px); margin:60px auto; }
  .gallery-heading { margin-bottom:20px; }
  .gallery-viewport { border-radius:20px; }
  .gallery-slide { aspect-ratio:4/3; }
  .gallery-arrow { width:40px; height:40px; font-size:1.65rem; }
  .gallery-arrow--previous { left:10px; }
  .gallery-arrow--next { right:10px; }
  .gallery-slide figcaption { padding:38px 16px 15px; }
  .community-questionnaire,.business-directory,.community-closing { width:calc(100% - 20px); }
  .community-questionnaire { margin:65px auto; }
  .community-survey-form { padding:16px; border-radius:20px; }
  .community-survey-form fieldset,.survey-text-field { padding:16px; }
  .compact-field { grid-template-columns:1fr; }
  .directory-toolbar { align-items:stretch; flex-direction:column; }
  .directory-signup-callout { align-items:flex-start; flex-direction:column; }
  #directory-count { text-align:center; }
  .directory-grid { grid-template-columns:1fr; }
  .directory-card { grid-template-columns:110px 1fr; grid-template-rows:auto; }
  .directory-logo-wrap { padding:12px; border-right:1px solid rgba(20,40,56,.09); border-bottom:0; }
  .directory-logo { height:86px; }
  .directory-card-body { padding:14px; }
  .community-closing { padding:34px 22px; border-radius:20px; }
}
