/* One colour for every primary button: the brand burgundy.
   Linked last in <head> by lib/brand-buttons.js; every selector is the rule it replaces with "html" in
   front (one step more specific), so neither the order of the stylesheets nor a later inline <style>
   brings the old colour back. A thin gold ring (an inset shadow, so no size changes) keeps the burgundy
   apart from the navy and dark-burgundy backgrounds it often sits on.
   Not here on purpose: the gold buttons of the Rosh Hashana page (a decided exception), the landing pages
   that carry their own burgundy-and-gold design, and what is not a button (menu items, tabs, tags,
   hover tints, glows). */
:root {
  --bb-bord: #7e022b;
  --bb-bord-2: #5c011f;
  --bb-soft: rgba(126, 2, 43, .12);
  --bb-soft-2: rgba(126, 2, 43, .22);
  --bb-ring: inset 0 0 0 1px rgba(201, 162, 74, .6);
  --bb-glow: 0 12px 26px -14px rgba(126, 2, 43, .95);
}

/* the header: the call to action ("למסירת שמות לברכה") */
html header.rb-hdr #top_header .left_side .btn {
  background: var(--bb-bord); color: #fff;
  box-shadow: var(--bb-glow), var(--bb-ring);
}
html header.rb-hdr #top_header .left_side .btn:hover {
  background: var(--bb-bord-2); color: #fff; filter: none;
  box-shadow: 0 14px 28px -14px rgba(126, 2, 43, 1), var(--bb-ring);
}

/* the header search: its send buttons, and the search button while the panel is open */
html header.rb-hdr #top_header #search button,
html header.rb-hdr #rb-search-panel #search button[type=submit] {
  background: var(--bb-bord); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(126, 2, 43, .95), var(--bb-ring);
}
html header.rb-hdr #top_header #search button:hover,
html header.rb-hdr #rb-search-panel #search button[type=submit]:hover {
  background: var(--bb-bord-2); filter: none;
}
html header.rb-hdr.search-open #rb-search-toggle {
  background: var(--bb-bord); border-color: rgba(201, 162, 74, .6); color: #fff;
}
html header.rb-hdr #rb-search-toggle:hover {
  background: var(--bb-soft-2); border-color: rgba(201, 162, 74, .6);
}
/* "all the results" under the search box */
html #rb-search-results .all {
  background: var(--bb-bord); color: #fff;
}
html #rb-search-results .all:hover { background: var(--bb-bord-2); }

/* the pages' own primary button (pages.css .rbp-btn: was a gradient from pink to the page's hue);
   the transparent ghost button stays as it is */
html .rbp-btn:not(.rbp-btn--ghost) {
  background: var(--bb-bord); color: #fff;
  box-shadow: 0 14px 30px -14px rgba(126, 2, 43, .9), var(--bb-ring);
}
html .rbp-btn:not(.rbp-btn--ghost):hover {
  background: var(--bb-bord-2); color: #fff; filter: none;
}
html .rbp-btn:not(.rbp-btn--ghost):focus-visible {
  outline: 3px solid #c9a24a; outline-offset: 2px;
}

/* the sign-up form at the foot of every page */
html .rb-nl-row input[type=submit] {
  background: var(--bb-bord); color: #fff;
  box-shadow: 0 12px 26px -14px rgba(126, 2, 43, .95), var(--bb-ring);
}
html .rb-nl-row input[type=submit]:hover { background: var(--bb-bord-2); filter: none; }

/* play buttons: the lessons on the home page, the pidyon / tikun videos, and the audio player */
html #vod_widget.rb-vodx .list article .rb-vodx-play {
  background: rgba(126, 2, 43, .94); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8), var(--bb-ring);
}
html #rb-pidyon-tikun .rb-pt-play {
  background: rgba(126, 2, 43, .95); color: #fff;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .75), var(--bb-ring);
}
html #rb-pidyon-tikun .rb-pt-lazy:focus-visible { outline-color: #c9a24a; }
html #rb-player .rbp-play {
  background: var(--bb-bord) !important; color: #fff !important;
  box-shadow: 0 6px 16px -6px rgba(126, 2, 43, .8), var(--bb-ring);
}
/* the home page cards' play buttons (lesson, Rambam, Heichal Maran, chizuk), on hover */
html #rb-daily-rambam .rb-rs-thumb-playable:hover .rb-rs-play-btn,
html .widget_vod_sidebar .rb-rs-thumb-playable:hover .rb-rs-play-btn,
html #rb-heichal-maran .rb-hm-big-card:hover .rb-hm-play-btn,
html #rb-daily-chizuk .rb-dc-media:hover .rb-dc-play {
  background: var(--bb-bord); border-color: rgba(201, 162, 74, .6);
}
/* the listen button on an article ("האזנה") */
html .rbp-listen {
  background: var(--bb-soft); border-color: rgba(126, 2, 43, .45);
}
html .rbp-listen:hover, html .rbp-listen:focus-visible {
  background: var(--bb-soft-2); border-color: var(--bb-bord);
}
html .rbp-listen .rbp-listen-ic { color: var(--bb-bord); }

/* the pages' secondary button (pages.css .rbp-btn--ghost): pages.css paints every .rbp-btn with the page gradient
   after the ghost rule, so it showed pink-orange; it is a burgundy outline on a clear ground */
html .rbp-btn.rbp-btn--ghost,
html .rbp .rbp-btn.rbp-btn--ghost {
  background: transparent; background-image: none; color: #7e022b; border: 2px solid #7e022b; box-shadow: none;
}
html .rbp-btn.rbp-btn--ghost:hover { background: rgba(126, 2, 43, .08); color: #5c011f; }
/* on the dark navy cards (offer, call to action, the hero tier) burgundy would not read: a light outline there */
html :is(.rbp-offer, .rbp-cta, .rbp-tier--hero) .rbp-btn.rbp-btn--ghost {
  background: transparent; background-image: none; color: #fff; border: 2px solid rgba(255, 255, 255, .6); box-shadow: none;
}
html :is(.rbp-offer, .rbp-cta, .rbp-tier--hero) .rbp-btn.rbp-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
