/* Shared marketing actions: quiet edge lighting and tactile press feedback.
   Page colours, labels, sizing and destinations stay with their existing rules. */
:root{
 --ft-action-rest:inset 0 1px 0 rgb(255 255 255 / .18),
   inset 0 -1px 0 rgb(6 22 62 / .22),
   0 1px 2px rgb(6 22 62 / .16),
   0 5px 14px -7px rgb(39 66 201 / .22);
 --ft-action-pressed:inset 0 2px 4px rgb(6 22 62 / .24),
   0 1px 1px rgb(6 22 62 / .08);
}

body.home-flow :is(.btn,.river-create,.scan-primary,.river-advisor>a),
body.site-inner .btn,
body :is(.site-header .nav,.company-in-person>div,.property-tour .story-contact)>.header-advisor-cta,
body.site-inner .faq-search-controls .faq-search-submit,
body .cookie-privacy form button{
 background-image:linear-gradient(180deg,rgb(255 255 255 / .075),rgb(0 0 0 / .035));
 box-shadow:var(--ft-action-rest);
 border-radius:5px;
 transform:none;
 translate:0 0;
 filter:none;
 transition:background-color 140ms ease,box-shadow 140ms ease,translate 100ms ease;
}

/* A brighter cyan face makes the opening action clear against the navy hero. */
body.home-flow a.river-create{
 background-color:#19afd5;
 background-image:linear-gradient(180deg,#36d1ec,#19afd5);
 border-color:#3ccbe7;
 color:#fff;
 --ft-action-rest:inset 0 1px 0 rgb(255 255 255 / .48),
   inset 0 -1px 0 rgb(6 41 75 / .18),
   0 1px 2px rgb(6 22 62 / .18),
   0 7px 22px -6px rgb(17 197 221 / .38);
}

/* Light actions carry less coloured shadow against blue section backgrounds. */
:where(.story-close,.contact-close,.resource-question-close,.advisor-start,
 .family-utility,.market-ready,.brand-tool-chapter,.portal-showroom,
 .audit-brand-grid,.shipping-campaign,.service-panel-actions,.savings-next) .btn,
.btn.light,.btn.secondary{
 --ft-action-rest:inset 0 1px 0 rgb(255 255 255 / .85),
   inset 0 -1px 0 rgb(16 43 67 / .10),
   0 1px 2px rgb(8 28 53 / .10),
   0 4px 12px -8px rgb(8 28 53 / .17);
 --ft-action-pressed:inset 0 2px 3px rgb(16 43 67 / .15);
}

body.home-flow :is(.btn,.river-create,.scan-primary,.river-advisor>a):active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])),
body.site-inner .btn:active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])),
body :is(.site-header .nav,.company-in-person>div,.property-tour .story-contact)>.header-advisor-cta:active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])),
body.site-inner .faq-search-controls .faq-search-submit:active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])),
body .cookie-privacy form button:active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])){
 background-image:none;
 box-shadow:var(--ft-action-pressed);
 translate:0 1px;
}

body.home-flow :is(.btn,.river-create,.scan-primary,.river-advisor>a):focus-visible,
body.site-inner .btn:focus-visible,
body :is(.site-header .nav,.company-in-person>div,.property-tour .story-contact)>.header-advisor-cta:focus-visible,
body.site-inner .faq-search-controls .faq-search-submit:focus-visible,
body .cookie-privacy form button:focus-visible{
 outline:3px solid #087fbd;
 outline-offset:4px;
 box-shadow:0 0 0 2px #fff,var(--ft-action-rest);
}

body.home-flow :is(.btn,.river-create,.scan-primary,.river-advisor>a):focus-visible:active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])),
body.site-inner .btn:focus-visible:active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])),
body :is(.site-header .nav,.company-in-person>div,.property-tour .story-contact)>.header-advisor-cta:focus-visible:active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])),
body.site-inner .faq-search-controls .faq-search-submit:focus-visible:active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])),
body .cookie-privacy form button:focus-visible:active:where(:not(:disabled,[aria-disabled="true"],[aria-busy="true"])){
 box-shadow:0 0 0 2px #fff,var(--ft-action-pressed);
}

/* Disabled and in-progress actions never look raised or respond to pressing. */
body:is(.home-flow,.site-inner) :is(.btn,.river-create,.scan-primary,.river-advisor>a,
 .cookie-privacy form button):is(:disabled,[aria-disabled="true"],[aria-busy="true"]){
 background-image:none;
 box-shadow:none;
 transform:none;
 translate:0 0;
 opacity:.62;
 cursor:default;
}

@media(prefers-reduced-motion:reduce){
 body.home-flow :is(.btn,.river-create,.scan-primary,.river-advisor>a),
 body.site-inner .btn,
 body :is(.site-header .nav,.company-in-person>div,.property-tour .story-contact)>.header-advisor-cta,
 body.site-inner .faq-search-controls .faq-search-submit,
 body .cookie-privacy form button{
  transition:none;
 }
}
@media(forced-colors:active){
 body.home-flow :is(.btn,.river-create,.scan-primary,.river-advisor>a),
 body.site-inner .btn,
 body :is(.site-header .nav,.company-in-person>div,.property-tour .story-contact)>.header-advisor-cta,
 body.site-inner .faq-search-controls .faq-search-submit,
 body .cookie-privacy form button{
  background-image:none;
  box-shadow:none;
  border:1px solid ButtonText;
 }
}
