/* Ravens Crest Colours v1.2.0 — all-page compatibility.
   Colour ONLY, no position, display, height or DOM structure changes.
   Kept separate from v1.1 layer so the plugin can replace older versions safely. */
body.rbc-crest-palette {
  --rbc-forest:#0d2e23;
  --rbc-forest-deep:#071d17;
  --rbc-forest-mid:#194734;
  --rbc-crest-green:#46884f;
  --rbc-crest-violet:#4a49b8;
  --rbc-crest-yellow:#f6ed3c;
  --rbc-paper:#f6f8f4;
  --rbc-slate:#527066;
  --e-global-color-primary:#0d2e23;
  --e-global-color-secondary:#4a49b8;
  --e-global-color-accent:#46884f;
  --e-global-color-text:#17342a;
  --elementor-color-primary:#0d2e23;
  --elementor-color-secondary:#4a49b8;
  --elementor-color-accent:#46884f;
  --elementor-color-text:#17342a;
  --navy:#0d2e23;
  --gold:#f6ed3c;
  --rbc-navy:#0d2e23;
  --rbc-gold:#f6ed3c;
  --ravens-navy:#0d2e23;
  --ravens-gold:#f6ed3c;
  --primary-color:#0d2e23;
  --accent-color:#46884f;
}
/* Inner pages and WordPress/Elementor content containers. */
body.rbc-crest-palette:not(.home) :is(.site-main,.page-content,.entry-content,.elementor) {
  --e-global-color-primary:#0d2e23;
  --e-global-color-secondary:#4a49b8;
  --e-global-color-accent:#46884f;
  --e-global-color-text:#17342a;
  --navy:#0d2e23;
  --gold:#f6ed3c;
  --rbc-navy:#0d2e23;
  --rbc-gold:#f6ed3c;
  --ravens-navy:#0d2e23;
  --ravens-gold:#f6ed3c;
}
body.rbc-crest-palette:not(.home) :is(.entry-title,.page-title,.wp-block-post-title) {color:#0d2e23!important}
/* Section headings on light page surfaces; photo-overlay headings stay light. */
body.rbc-crest-palette:not(.home) .rbc-crest-inner-page .rbc-crest-light-surface :is(h1,h2,h3,h4,.elementor-heading-title) {
  color:#0d2e23!important;
  -webkit-text-fill-color:#0d2e23!important;
}
body.rbc-crest-palette .rbc-crest-inner-page .rbc-crest-dark-surface :is(h1,h2,h3,h4,.elementor-heading-title) {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.rbc-crest-palette .rbc-crest-inner-page .rbc-crest-dark-surface a:not(.elementor-button):hover {color:#f6ed3c!important}
/* Native Ravens membership, calendar, regatta, gallery widgets. */
body.rbc-crest-palette :is(.ravens-membership,.ravens-events,.ravens-regattas,.ravens-calendar,.ravens-gallery,.ravens-page,.ravens-page-builder,.ravens-page-hero,
  [class*="ravens-membership"],[class*="ravens-calendar"],[class*="ravens-regatta"],[class*="ravens-events"],[class*="ravens-gallery"],
  [class*="rbc-membership"],[class*="rbc-regatta"],[class*="rbc-calendar"],[class*="rbc-gallery"]) {
  --navy:#0d2e23;--gold:#f6ed3c;--ravens-navy:#0d2e23;--ravens-gold:#f6ed3c;
  --rbc-navy:#0d2e23;--rbc-gold:#f6ed3c;
  --e-global-color-primary:#0d2e23;--e-global-color-accent:#46884f;
}
/* Buttons on light inner-page surfaces: readable white text on dark forest. */
body.rbc-crest-palette:not(.home) .rbc-crest-inner-page :is(a.elementor-button,.wp-block-button__link,a.button,a.btn,a.btn-primary,a.button-primary) {
  background-color:#0d2e23!important;
  border-color:#0d2e23!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.rbc-crest-palette:not(.home) .rbc-crest-inner-page .rbc-crest-dark-surface :is(a.elementor-button,.wp-block-button__link,a.button,a.btn,a.btn-primary,a.button-primary) {
  background-color:#f6ed3c!important;
  border-color:#f6ed3c!important;
  color:#071d17!important;
  -webkit-text-fill-color:#071d17!important;
}
body.rbc-crest-palette:not(.home) .rbc-crest-inner-page :is(a.elementor-button,.wp-block-button__link,a.button,a.btn-primary):hover {background-color:#194734!important;border-color:#194734!important;color:#fff!important}
/* Never let broad button rules override the purpose-built contact/video forms. */
body.rbc-crest-palette .rvc5-root .rvc5-form-card :is(input,textarea,select),
body.rbc-crest-palette .rvhc-root .rvhc-form-pane :is(input,textarea,select) {color:#17342a}
/* Navigation and header/footer, also when using Elementor location templates. */
body.rbc-crest-palette :is(.site-header,header#masthead,.elementor-location-header,.rbc-crest-header,.rbc-crest-nav-surface) {
  background-color:#071d17!important;
  border-color:rgba(246,237,60,.22)!important;
}
body.rbc-crest-palette :is(.site-footer,footer#colophon,.elementor-location-footer,.rbc-crest-footer) {
  background-color:#071d17!important;
  border-color:rgba(246,237,60,.15)!important;
}
body.rbc-crest-palette :is(.site-header,header#masthead,.elementor-location-header,.rbc-crest-header) a:hover,
body.rbc-crest-palette :is(.site-footer,footer#colophon,.elementor-location-footer,.rbc-crest-footer) a:hover {color:#f6ed3c!important}
/* Elementor page sections with explicit old navy are recoloured safely by JS;
   their background images and image/video nodes remain untouched. */
body.rbc-crest-palette .rbc-crest-legacy-dark {background-color:#0d2e23!important}
body.rbc-crest-palette .rbc-crest-legacy-dark.rbc-crest-dark-surface {color:#f2faf3}
body.rbc-crest-palette .rbc-crest-legacy-primary {color:#0d2e23!important;-webkit-text-fill-color:#0d2e23!important}
body.rbc-crest-palette .rbc-crest-legacy-light {color:#fff!important;-webkit-text-fill-color:#fff!important}
body.rbc-crest-palette .rbc-crest-legacy-accent {color:#27753c!important;-webkit-text-fill-color:#27753c!important}
body.rbc-crest-palette .rbc-crest-legacy-accent-on-dark {color:#f6ed3c!important;-webkit-text-fill-color:#f6ed3c!important}
body.rbc-crest-palette :is(.rbc-crest-legacy-primary,.rbc-crest-legacy-light,.rbc-crest-legacy-accent,.rbc-crest-legacy-accent-on-dark) svg {color:inherit}
/* Visible form controls and keyboard navigation remain high-contrast. */
body.rbc-crest-palette .rbc-crest-inner-page :is(input[type=text],input[type=email],input[type=tel],select,textarea):focus-visible {border-color:#46884f;outline:2px solid #4a49b8;outline-offset:2px}
/* Gallery / video filter buttons only: violet outlines on light surfaces. */
body.rbc-crest-palette .rbc-crest-inner-page :is([aria-pressed=true],[aria-selected=true]):not([type=checkbox]):not([type=radio]) {border-color:#4a49b8}
@media(prefers-contrast:more){body.rbc-crest-palette .rbc-crest-inner-page :is(a,button):focus-visible{outline:3px solid #4a49b8!important;outline-offset:3px}}
