/* cae-website-redesign-theme-subscribe-redesign-kate: assets/css/subscribe-redesign-kate.css */
/* CAE Subscribe form redesign — matches the Contact form */
html body.page-id-6{background:#fff!important;background-image:none!important}
/* remove the tall right-side image */
html body .wp-site-blocks:not(#a):not(#b):not(#c) section[class*="fg-cae-subscribe-image01"]{display:none!important}
/* full-width mint band (section is a flex item of post-content, so flex-basis must be reset) */
html body .wp-site-blocks:not(#a):not(#b):not(#c) section.sx.sx{flex:0 0 auto!important;width:calc(100vw / 0.8)!important;max-width:none!important;margin-left:calc(50% - 50vw / 0.8)!important;background:#83B390!important;background-image:none!important;padding:72px 24px 88px!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;box-sizing:border-box!important}
/* centered cream panel, hard edges */
html body .wp-site-blocks:not(#a):not(#b):not(#c) section.sx.sx > div{left:0!important;position:relative!important;width:100%!important;max-width:860px!important;margin:0 auto!important;background:#F7F4E2!important;padding:48px 56px 56px!important;box-shadow:0 12px 40px rgba(0,0,0,.18)!important;box-sizing:border-box!important;border-radius:0!important}
html body .wp-site-blocks:not(#a):not(#b):not(#c) section.sx form#site-form-subscribe{width:100%!important;max-width:none!important;background:transparent!important;padding:0!important;box-shadow:none!important}
section.sx h1, section.sx h2{color:#B15533!important;text-align:center!important}
section.sx hr, section.sx .wp-block-separator{border-color:#C9C9C4!important;background:#C9C9C4!important;color:#C9C9C4!important}
/* type + fields: same as Contact form */
section.sx .site-form__label, section.sx legend, section.sx .site-form__choice-label, section.sx .site-form__help, section.sx fieldset p{color:#606055!important}
section.sx .site-form__help, section.sx fieldset p{font-size:19.18px!important;line-height:28px!important}
section.sx input[type=text], section.sx input[type=email], section.sx select{color:#606055!important;border:1px solid #C7C6C6!important;background-color:#fff!important}
section.sx input:focus, section.sx select:focus, section.sx input:focus-visible, section.sx select:focus-visible{outline:2.5px solid #C5E3BF!important;outline-offset:0!important;box-shadow:none!important}
section.sx input[type=checkbox]:focus, section.sx input[type=radio]:focus{outline:none!important;box-shadow:none!important}
section.sx input[type=checkbox]:focus-visible, section.sx input[type=radio]:focus-visible{outline:2.5px solid #C5E3BF!important;outline-offset:2px!important}
section.sx input[type=text], section.sx input[type=email]{border-radius:4px!important}
section.sx select{border-radius:5px!important}
/* newsletter options as cards, 2 columns, "All" full width */
section.sx .site-form__field--checkbox .site-form__choice-group{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin-top:12px!important}
section.sx .site-form__choice-group .site-form__choice-option{display:flex!important;align-items:center!important;gap:12px!important;background:#fff!important;border:1px solid #D8D6C8!important;padding:14px 16px!important;margin:0!important;cursor:pointer!important}
section.sx .site-form__choice-group .site-form__choice-option:first-child{grid-column:1 / -1!important}
section.sx .site-form__choice-group .site-form__choice-option:hover{border-color:#004F39!important}
section.sx .site-form__choice-group .site-form__choice-option:has(input:checked){background:#EEF3EF!important;border-color:#004F39!important}
section.sx .site-form__choice-label{cursor:pointer!important;margin:0!important}
/* Physical Mailings: one white card */
section.sx fieldset.sx-pm{background:#fff!important;border:1px solid #D8D6C8!important;padding:22px 22px 20px!important;margin-top:8px!important}
section.sx fieldset.sx-pm > legend{float:left!important;width:100%!important;padding:0!important;margin:0 0 6px!important}
section.sx fieldset.sx-pm > legend + *{clear:both!important}
section.sx fieldset.sx-pm .site-form__choice-option, section.sx fieldset.sx-pm .site-form__choice-group{border:0!important;padding:0!important;background:transparent!important;margin-top:10px!important}
section.sx fieldset.sx-pm .site-form__choice-group .site-form__choice-option:has(input:checked){background:transparent!important}
/* Address Type: 4 cards in one row */
section.sx fieldset:has(input[name=address_type]) .site-form__choice-group{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:12px!important}
section.sx fieldset:has(input[name=address_type]) .site-form__choice-option{margin:0!important;background:#fff!important;border:1px solid #D8D6C8!important;padding:12px 14px!important;display:flex!important;align-items:center!important;gap:10px!important}
section.sx fieldset:has(input[name=address_type]) .site-form__choice-option:first-child{grid-column:auto!important}
section.sx fieldset:has(input[name=address_type]) .site-form__choice-option:has(input:checked){background:#EEF3EF!important;border-color:#004F39!important}
/* Submit centered */
section.sx .wp-block-buttons:has(button[type=submit]){display:flex!important;justify-content:center!important;margin-top:8px!important}
/* spam note moved inside the panel, under Submit, body size */
section.sx .sx-note{display:block!important;width:auto!important;border-top:1px solid #D8D6C8!important;padding-top:20px!important;margin-top:28px!important;text-align:center!important}
section.sx .sx-note, section.sx .sx-note *{background:transparent!important;font-size:19.18px!important;line-height:28px!important;color:#606055!important;text-align:center!important;justify-content:center!important}
@media (max-width:760px){
  html body .wp-site-blocks:not(#a):not(#b):not(#c) section.sx.sx > div{padding:32px 22px!important}
  section.sx .site-form__field--checkbox .site-form__choice-group{grid-template-columns:1fr!important}
  section.sx fieldset:has(input[name=address_type]) .site-form__choice-group{grid-template-columns:1fr 1fr!important}
}
/* SECTIONED LAYOUT (supersedes the card styling above): section headings, plain checkboxes, no white boxes */
section.sx hr, section.sx .wp-block-separator{display:none!important}
section.sx .sx-h{display:flex;align-items:baseline;gap:12px;border-bottom:1px solid #C9C9C4;padding-bottom:10px;margin:36px 0 20px}
section.sx form > .sx-h:first-of-type{margin-top:0}
section.sx .sx-h__t{font-family:"Acumin Pro Condensed",sans-serif;font-weight:700;font-size:26px;letter-spacing:.02em;text-transform:uppercase;color:#004F39}
section.sx .sx-h__s{font-size:19.18px;color:#606055}
section.sx .site-form__choice-group .site-form__choice-option, section.sx fieldset:has(input[name=address_type]) .site-form__choice-option{background:transparent!important;border:0!important;padding:4px 0!important}
section.sx .site-form__choice-group .site-form__choice-option:has(input:checked), section.sx fieldset:has(input[name=address_type]) .site-form__choice-option:has(input:checked){background:transparent!important}
section.sx .site-form__field--checkbox .site-form__choice-group{gap:10px 24px!important}
section.sx fieldset.sx-pm{background:transparent!important;border:0!important;padding:0!important;margin-top:0!important}
section.sx fieldset.sx-pm > legend{display:none!important}
section.sx fieldset:has(input[name^=newsletter]) > legend{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
section.sx fieldset:has(input[name^=newsletter]) > .site-form__help{display:none!important}
/* ALTERNATING SECTION BANDS: cream / white / cream, full width of the panel */
section.sx .sx-band{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-content:start;margin:0 -56px;padding:32px 56px 36px}
section.sx .sx-band > *{grid-column:1 / -1}
section.sx .sx-band > .sx-half{grid-column:auto}
section.sx .sx-band--1{padding-top:8px}
section.sx .sx-band--2{background:#fff}
section.sx .sx-band--3{margin-bottom:28px}
section.sx .sx-band .sx-h{margin:0!important}
@media (max-width:760px){section.sx .sx-band{margin:0 -22px;padding:24px 22px}section.sx .sx-band > .sx-half{grid-column:1 / -1}}
/* NEWSLETTER CARDS (Equitable Growth style): photo, title, one-line description, checkbox top right; one column on a light grey band */
section.sx .sx-band--2{background:#F5F5F4!important}
section.sx .site-form__field--checkbox .site-form__choice-group.sx-nl{display:flex!important;flex-direction:column!important;gap:14px!important;margin-top:4px!important}
section.sx .sx-nl .sx-nl__all{padding:0 0 4px!important}
section.sx .sx-nl .sx-nl__all label{font-weight:700!important}
section.sx .sx-nl .site-form__choice-option.sx-nl__card{position:relative!important;display:block!important;background:#fff!important;border:1px solid #D8D6C8!important;padding:16px 56px 16px 16px!important;border-radius:0!important}
section.sx .sx-nl .sx-nl__card > input{position:absolute!important;top:16px!important;right:16px!important;margin:0!important}
section.sx .sx-nl .sx-nl__card > label{display:grid!important;grid-template-columns:150px 1fr!important;gap:20px!important;align-items:center!important;cursor:pointer!important}
section.sx .sx-nl .sx-nl__card:hover{border-color:#004F39!important}
section.sx .sx-nl .sx-nl__card:has(input:checked){border-color:#004F39!important;background:#EEF3EF!important}
section.sx .sx-nl__img{display:block;width:150px;height:100px;background:#ddd center/cover no-repeat}
section.sx .sx-nl__txt{display:flex;flex-direction:column;gap:6px}
section.sx .sx-nl__t{font-family:"Acumin Pro Condensed",sans-serif;font-weight:700;font-size:26px;line-height:1.1;color:#004F39}
section.sx .sx-nl__d{font-size:19.18px;line-height:28px;color:#606055;font-weight:400}
@media (max-width:600px){section.sx .sx-nl .sx-nl__card > label{grid-template-columns:1fr!important}section.sx .sx-nl__img{width:100%;height:140px}}
/* BIG CHECKBOXES, PRE-CHECKED: all four newsletters render with checked; clicking a card unchecks it */
html body section.sx .sx-nl .sx-nl__card > input[type=checkbox], html body section.sx .sx-nl .sx-nl__all > input[type=checkbox]{-webkit-appearance:none!important;appearance:none!important;width:32px!important;height:32px!important;min-width:32px!important;border:2px solid #F2A518!important;border-radius:3px!important;background:#fff center/22px no-repeat!important;box-shadow:none!important;outline:none!important;cursor:pointer!important}
html body section.sx .sx-nl input[type=checkbox]::before, html body section.sx .sx-nl input[type=checkbox]::after{display:none!important;content:none!important}
html body section.sx .sx-nl .sx-nl__card > input[type=checkbox]:checked, html body section.sx .sx-nl .sx-nl__all > input[type=checkbox]:checked{background-color:#F2A518!important;border-color:#F2A518!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
html body section.sx .sx-nl .sx-nl__card > input[type=checkbox]:focus-visible{outline:2.5px solid #C5E3BF!important;outline-offset:2px!important}
section.sx .sx-nl .sx-nl__all{display:flex!important;align-items:center!important;gap:12px!important}
section.sx .sx-nl .sx-nl__card > input{top:50%!important;transform:translateY(-50%)!important;right:20px!important}
section.sx .sx-nl .site-form__choice-option.sx-nl__card{padding-right:72px!important}
section.sx .sx-nl .sx-nl__card:has(input:checked), section.sx .sx-nl .sx-nl__card:hover{background:#fff!important;border-color:#D8D6C8!important}
/* other checkboxes + radios: same big yellow style */
html body section.sx input[name=submit_as_company], html body section.sx input[name=physical_mailings], html body section.sx input[name=address_type]{-webkit-appearance:none!important;appearance:none!important;width:32px!important;height:32px!important;min-width:32px!important;border:2px solid #F2A518!important;border-radius:3px!important;background:#fff center/22px no-repeat!important;box-shadow:none!important;outline:none!important;cursor:pointer!important;margin:0!important}
html body section.sx input[name=address_type]{border-radius:50%!important}
html body section.sx input[name=submit_as_company]::before, html body section.sx input[name=submit_as_company]::after, html body section.sx input[name=physical_mailings]::before, html body section.sx input[name=physical_mailings]::after, html body section.sx input[name=address_type]::before, html body section.sx input[name=address_type]::after{display:none!important;content:none!important}
html body section.sx input[name=submit_as_company]:checked, html body section.sx input[name=physical_mailings]:checked{background-color:#F2A518!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
html body section.sx input[name=address_type]:checked{background:#fff radial-gradient(circle,#F2A518 0 7px,transparent 8px)!important}
section.sx .site-form__choice-option:has(input[name=submit_as_company]), section.sx .site-form__choice-option:has(input[name=physical_mailings]), section.sx .site-form__choice-option:has(input[name=address_type]){display:flex!important;align-items:center!important;gap:12px!important}
/* PHYSICAL MAILINGS (supersedes the earlier sx-pm rules): one opt-in card, address panel attached below when ticked */
section.sx .sx-hide{display:none!important}
section.sx fieldset.sx-pm{background:#fff!important;border:1px solid #D8D6C8!important;padding:20px 22px!important}
section.sx fieldset.sx-pm .site-form__choice-group{margin:0!important}
section.sx fieldset.sx-pm .site-form__choice-option{display:flex!important;align-items:center!important;gap:16px!important;margin:0!important}
section.sx fieldset.sx-pm label{display:flex!important;flex-direction:column!important;gap:4px!important;cursor:pointer!important}
section.sx .sx-pm__t{font-family:"Acumin Pro Condensed",sans-serif;font-weight:700;font-size:26px;line-height:1.1;color:#004F39}
section.sx .sx-pm__d{font-size:19.18px;line-height:28px;color:#606055;font-weight:400}
section.sx fieldset.sx-pm:has(input:checked){border-bottom-color:#EEECE2!important}
section.sx .site-form__group--address{background:#fff!important;border:1px solid #D8D6C8!important;border-top:0!important;margin-top:-24px!important;padding:8px 22px 26px!important}
section.sx .sx-pm__ah{font-family:"Acumin Pro Condensed",sans-serif;font-weight:700;font-size:20px;letter-spacing:.04em;text-transform:uppercase;color:#606055;padding-top:16px;border-top:1px solid #EEECE2;margin-bottom:4px}
/* physical mailings polish: brick text, checkbox top-aligned, address panel on light grey instead of divider lines */
section.sx .sx-pm__t{color:#B15533!important}
section.sx .sx-pm__ah{color:#004F39!important;margin-bottom:14px!important}
section.sx fieldset.sx-pm .site-form__choice-option{align-items:flex-start!important}
section.sx fieldset.sx-pm .site-form__choice-option > input{margin-top:0!important}
section.sx fieldset.sx-pm:has(input:checked){border-bottom:0!important}
section.sx fieldset.sx-pm{background:#F5F5F4!important}
section.sx .site-form__group--address{background:#fff!important;padding:30px 28px 34px!important}
section.sx .sx-pm__ah{border-top:0!important;padding-top:0!important}
/* MOBILE (390px) */
@media (max-width:760px){
html body .wp-site-blocks:not(#a):not(#b):not(#c) section.sx.sx{padding:28px 12px 40px!important}
html body .wp-site-blocks:not(#a):not(#b):not(#c) section.sx.sx > div{padding:28px 20px 32px!important}
section.sx .sx-band{margin:0 -20px!important;padding:24px 20px 28px!important;grid-template-columns:1fr!important}
section.sx .sx-band > .sx-half{grid-column:1 / -1!important}
section.sx .sx-h{flex-wrap:wrap!important;gap:2px 10px!important}
section.sx .sx-h__t{font-size:24px!important}
section.sx .sx-nl .site-form__choice-option.sx-nl__card{padding:14px 60px 14px 14px!important}
section.sx .sx-nl .sx-nl__card > label{grid-template-columns:1fr!important;gap:12px!important}
section.sx .sx-nl__img{width:100%!important;height:140px!important}
section.sx .sx-nl .sx-nl__card > input{top:24px!important;transform:none!important;right:14px!important}
section.sx .sx-nl__card .sx-nl__txt{padding-right:0}
section.sx fieldset.sx-pm{padding:18px 16px!important}
section.sx .site-form__group--address{padding:22px 16px 26px!important}
section.sx fieldset:has(input[name=address_type]) .site-form__choice-group{grid-template-columns:1fr 1fr!important}
section.sx .site-form__row--address{display:grid!important;grid-template-columns:1fr!important;gap:16px!important}
}
@media (max-width:760px){
section.sx .sx-nl .sx-nl__card > label{grid-template-columns:84px 1fr!important;gap:14px!important;align-items:start!important}
section.sx .sx-nl__img{width:84px!important;height:84px!important}
section.sx .sx-nl .site-form__choice-option.sx-nl__card{padding:14px 56px 14px 14px!important}
section.sx .sx-nl .sx-nl__card > input{top:14px!important;right:14px!important;transform:none!important}
section.sx .sx-nl__t{font-size:22px!important}
section.sx .sx-nl__d{font-size:16px!important;line-height:22px!important}
}
/* THANK-YOU VIEW: after a successful submit, add class "sx--done" to section.sx and fill .site-form__status with the markup below (form fields, Turnstile, Submit and the spam note hide) */
section.sx.sx--done form#site-form-subscribe > *:not(.site-form__status), section.sx.sx--done .sx-note, section.sx.sx--done .wp-block-buttons:has([type=submit]), section.sx.sx--done [class*=turnstile], section.sx.sx--done .cf-turnstile{display:none!important}
section.sx.sx--done h1, section.sx.sx--done h2{display:none!important}
section.sx .sx-done{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 0 8px}
section.sx .sx-done__icon{width:72px;height:72px;border-radius:50%;background:#83B390;display:flex;align-items:center;justify-content:center;margin-bottom:22px}
section.sx .sx-done__t{font-family:"Acumin Pro Condensed",sans-serif;font-weight:700;text-transform:uppercase;font-size:52px;line-height:1;color:#B15533;margin:0 0 12px}
section.sx .sx-done__lead{font-weight:700;font-size:22px;color:#004F39;margin:0 0 14px}
section.sx .sx-done__p{font-size:19.18px;line-height:28px;color:#606055;max-width:520px;margin:0 0 6px}
section.sx .sx-done__list{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0 26px;padding:0;list-style:none}
section.sx .sx-done__list li{background:#fff;border:1px solid #D8D6C8;border-radius:4px;color:#004F39;font-weight:700;font-size:17px;padding:6px 14px}
section.sx .sx-done__actions{display:flex;gap:28px;align-items:center;justify-content:center;flex-wrap:wrap}
section.sx .sx-done__link{color:#004F39;font-weight:700;text-decoration:underline}
section.sx .sx-done__note{font-size:16px;color:#606055;margin-top:26px;padding-top:18px;border-top:1px solid #D8D6C8;width:100%}
@media (max-width:760px){section.sx .sx-done__t{font-size:40px}section.sx .sx-done__actions{flex-direction:column;gap:16px}}
/* SIGN UP LINK ANCHOR: /support-cae/subscribe/#site-form-subscribe must land with the panel top (and title) visible under the fixed header.
   Put the anchor on the cream panel, or give the form a scroll-margin-top that clears header + title. Screen math: header 162px + 24px gap + 133px title area = 319px; /0.8 zoom = ~400px.
   Do the same for every #site-form-* link on the site (Contact etc.) so the form title is never hidden. */
#site-form-subscribe{scroll-margin-top:400px}
@media (max-width:760px){#site-form-subscribe{scroll-margin-top:260px}}
/* Markup changes (template, not CSS): add class "sx" to the form section; class "sx-pm" to the Physical Mailings fieldset;
   move the spam-folder note into the panel under Submit (class "sx-note"); add 3 section headings before First Name, the newsletters fieldset and Physical Mailings: <div class="sx-h"><span class="sx-h__t">Your details</span></div>, <div class="sx-h"><span class="sx-h__t">Newsletters</span><span class="sx-h__s">Select all that apply.</span></div>, <div class="sx-h"><span class="sx-h__t">Physical mailings</span><span class="sx-h__s">Optional</span></div> (keep the newsletter legend for screen readers); wrap each heading and its fields in <div class="sx-band sx-band--1|2|3"> (First/Last Name fields get class "sx-half");
   labels "State" (not State/Province) and "ZIP" (not Zip/Postal Code), placeholder "Enter ZIP". 
   Newsletter options: add class "sx-nl" to the newsletters .site-form__choice-group; "All" option gets class "sx-nl__all" with label "Subscribe to all CAE newsletters"; each other option gets class "sx-nl__card" and its label becomes
   <span class="sx-nl__img" style="background-image:url(../IMAGE)"></span><span class="sx-nl__txt"><span class="sx-nl__t">TITLE</span><span class="sx-nl__d">DESCRIPTION</span></span>
   (checkbox values stay exactly as they are so Neon keeps working). Images = each program page's og:image:
   CAE Newsletter | /about-cae/ | News, events and stories from across CAE's programs and places.
   Vermont Farm Fund | /programs-places/vermont-farm-fund/ | Updates from Vermont's grassroots revolving loan fund for farms and food businesses.
   Grow Your Own | /programs-places/community-connections/grow-your-own/ | Workshops and resources to help you grow your own food at home.
   Vermont Food Venture Center | /programs-places/vermont-food-venture-center/ | News from CAE's shared-use food hub and business incubator for food entrepreneurs and farmers. 
   Pre-check: render all four newsletter checkboxes with the checked attribute (and "All" if it stays). If "All" stays: ticking it ticks all four, unticking any card unticks it. 
   Physical Mailings: hide the fieldset legend and the long description paragraph (class "sx-hide"); the checkbox label becomes
   <span class="sx-pm__t">Yes, send me physical mailings</span><span class="sx-pm__d">Stay in touch with us! We send out 4-6 physical mailings annually.</span>
   No extra heading on the address panel (it still shows only when the box is ticked).
   Country: hide the field (class "sx-hide") and keep submitting "United States of America" (its current default) so Neon still gets it. 
   Thank-you markup (inside .site-form__status, newsletter chips = only the ones the person ticked, by their short names):
   <div class="sx-done"><div class="sx-done__icon"><svg width="34" height="34" viewBox="0 0 24 24"><path d="M5 12.5l4.5 4.5L19 7.5" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg></div>
   <p class="sx-done__t">Thank You!</p><p class="sx-done__lead">You're on the list.</p><p class="sx-done__p">Watch your inbox for these newsletters:</p>
   <ul class="sx-done__list"><li>CAE Newsletter</li><li>Vermont Farm Fund</li>...</ul>
   <div class="sx-done__actions">[standard yellow button with chevron: See Upcoming Events -> /news-events/] <a class="sx-done__link" href="/support-cae/donate/">Support CAE</a></div>
   <p class="sx-done__note">Not seeing our newsletters? Please check your spam or junk folder.</p></div>
   If they also ticked Physical Mailings, add a line after the chips: <p class="sx-done__p">We'll also send our physical mailings to the address you gave.</p>
   "All" behavior change: today ticking All HIDES the four newsletter checkboxes. Remove that. All four render pre-checked (and All). Ticking All ticks all four; unticking any card unticks All; unticking All unticks all four. Cards always stay visible. */
