/* ============================================================================
   RIVERBEND COMMONS — original design system for the Soapbox Engage demo
   template ("soapboxengagedemo"). Hand-written from scratch, 2026-07-30.

   Palette: the Soapbox Engage color FAMILY (values only; the design itself
   is original and fictitious):
     indigo   #2D5798  structure, headings
     ink      #1B3A66  deep indigo, footer, emphasis
     purple   #7F32BF  primary CTA
     lime     #9AB800  highlighter accent
     sky      #BADEFF  tint washes
     slate    #434A54  body text
   Type: Fraunces (display serif) + Figtree (body geometric).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
  --rc-indigo: #2D5798;
  --rc-ink: #1B3A66;
  --rc-purple: #7F32BF;
  --rc-purple-deep: #5F2390;
  --rc-lime: #9AB800;
  --rc-lime-ink: #5E7100;
  --rc-sky: #BADEFF;
  --rc-sky-wash: #EFF7FF;
  --rc-slate: #434A54;
  --rc-paper: #FFFFFF;
  --rc-line: #DCE6F2;

  --rc-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --rc-font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;

  --rc-radius: 14px;
  --rc-radius-pill: 999px;
  --rc-shadow-soft: 0 2px 6px rgba(27, 58, 102, 0.06), 0 12px 32px rgba(27, 58, 102, 0.08);
  --rc-shadow-lift: 0 4px 10px rgba(27, 58, 102, 0.10), 0 18px 44px rgba(27, 58, 102, 0.14);

  --rc-header-h: 84px;   /* fixed-header height — content clearance derives from this */
  --rc-ribbon-h: 5px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body.rc-body {
  margin: 0;
  color: var(--rc-slate);
  font-family: var(--rc-font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* soft atmosphere: faint sky + lime radials over paper, no image assets */
  background:
    radial-gradient(1100px 480px at 85% -140px, rgba(186, 222, 255, 0.35), transparent 70%),
    radial-gradient(900px 420px at -10% 30%, rgba(154, 184, 0, 0.05), transparent 60%),
    var(--rc-paper);
  background-attachment: fixed;
}
.rc-page { min-height: 100vh; display: flex; flex-direction: column; }
.rc-shell { width: min(1160px, 92vw); margin: 0 auto; }

.rc-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--rc-ink); color: #fff; padding: 10px 18px; z-index: 100001;
  border-radius: 0 0 10px 0; font-weight: 600; text-decoration: none;
}
.rc-skip:focus { left: 0; }

/* ---- Brand ribbon ---- */
.rc-ribbon {
  position: fixed; top: 0; left: 0; right: 0; height: var(--rc-ribbon-h);
  background: linear-gradient(90deg, var(--rc-purple) 0%, var(--rc-indigo) 55%, var(--rc-lime) 100%);
  z-index: 99001;
}

/* ---- Header (fixed; content clearance lives in style-overrides) ---- */
.rc-header {
  position: fixed; top: var(--rc-ribbon-h); left: 0; right: 0;
  height: var(--rc-header-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rc-line);
  z-index: 99000;
}
.rc-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.rc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.rc-brand:hover { text-decoration: none; }
.rc-brand__mark { flex: 0 0 auto; }
.rc-brand__word { display: flex; flex-direction: column; line-height: 1.05; }
.rc-brand__name {
  font-family: var(--rc-font-display);
  font-weight: 700; font-size: 21px; letter-spacing: 0.1px;
  color: var(--rc-ink);
}
.rc-brand__tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rc-lime-ink); margin-top: 3px;
}

.rc-nav { margin-left: auto; }
.rc-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.rc-nav__list li { margin: 0; padding: 0; }
.rc-nav__list a {
  display: inline-block; padding: 9px 13px;
  font-weight: 600; font-size: 15px; color: var(--rc-ink);
  text-decoration: none; border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease;
}
/* hover = lime-highlighter moment */
.rc-nav__list a:hover, .rc-nav__list a:focus-visible {
  background: linear-gradient(180deg, transparent 55%, rgba(154, 184, 0, 0.35) 55%);
  color: var(--rc-purple-deep);
  text-decoration: none;
}

.rc-header__cta { display: flex; align-items: center; gap: 14px; }

/* ---- Buttons: pill, bold, hover-INVERT ---- */
.rc-btn {
  display: inline-block;
  font-family: var(--rc-font-body);
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  padding: 11px 26px;
  border-radius: var(--rc-radius-pill);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.rc-btn:active { transform: translateY(1px); }
.rc-btn--primary { background: var(--rc-purple); color: #fff; border-color: var(--rc-purple); }
.rc-btn--primary:hover, .rc-btn--primary:focus-visible {
  background: #fff; color: var(--rc-purple); border-color: var(--rc-purple);
  text-decoration: none;
}
.rc-btn--ghost { background: transparent; color: var(--rc-indigo); border-color: var(--rc-indigo); }
.rc-btn--ghost:hover { background: var(--rc-indigo); color: #fff; }

/* ---- Burger (hidden on desktop) ---- */
.rc-burger {
  display: none;
  width: 44px; height: 40px; padding: 9px 10px;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.rc-burger span {
  display: block; height: 3px; border-radius: 3px;
  background: var(--rc-ink);
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.rc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.rc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---- Mobile drawer (in DOM; .is-open toggled by the foot shim) ---- */
.rc-drawer {
  position: fixed; left: 0; right: 0;
  top: calc(var(--rc-ribbon-h) + var(--rc-header-h));
  background: #fff;
  border-bottom: 1px solid var(--rc-line);
  box-shadow: var(--rc-shadow-lift);
  transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  z-index: 98990;
}
.rc-drawer.is-open {
  transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
}
.rc-drawer__nav { display: flex; flex-direction: column; padding: 10px 6vw 22px; }
.rc-drawer__nav a {
  padding: 15px 4px; font-weight: 600; font-size: 17px; color: var(--rc-ink);
  text-decoration: none; border-bottom: 1px solid var(--rc-sky-wash);
}
.rc-drawer__nav a:hover { color: var(--rc-purple); }
.rc-drawer__donate { margin-top: 16px; text-align: center; border-bottom: 0 !important; }

/* ---- Content region ---- */
#content { flex: 1 1 auto; }

#content h1, #content h2, #content h3, #content h4,
.region-content h1, .region-content h2, .region-content h3 {
  font-family: var(--rc-font-display);
  color: var(--rc-ink);
  line-height: 1.18;
  font-weight: 600;
}
#content h1 { font-size: 40px; letter-spacing: -0.01em; }
#content h2 { font-size: 30px; }
#content h3 { font-size: 23px; }
#content a { color: var(--rc-purple-deep); }
#content a:hover { color: var(--rc-purple); }

/* lime-highlighter motif on the page's main title */
/* Title accent: a refined thin lime underline. display:inline +
   box-decoration-break so it hugs EACH LINE of text (inline-block painted a
   full-width/detached bar on wrapping or block titles — and the thick band
   read as "weird"; this is now a subtle 3px rule under the text). */
#content h1.title, #content h1.componentheading, #content h2.contentheading,
#content .component-title, #content .product-title, #content .event-title {
  display: inline;
  background: linear-gradient(180deg, transparent calc(100% - 3px), rgba(154, 184, 0, 0.75) calc(100% - 3px));
  padding: 0 2px 3px 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- Footer ---- */
.rc-footer { margin-top: 72px; background: var(--rc-ink); color: #D7E6F8; }
.rc-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding: 56px 0 44px;
}
.rc-footer__mark { margin-bottom: 14px; }
.rc-footer__mission { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; color: #C7DBF4; }
.rc-footer__legal { margin: 0; font-size: 12.5px; color: #8FAFD6; line-height: 1.7; }
.rc-footer__col h4 {
  margin: 4px 0 14px;
  font-family: var(--rc-font-body); font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--rc-lime);
}
.rc-footer__col a {
  display: block; padding: 6px 0; color: #D7E6F8; text-decoration: none;
  font-size: 15px; transition: color 0.15s ease, transform 0.15s ease;
}
.rc-footer__col a:hover { color: #fff; transform: translateX(3px); }
.rc-subfooter { background: #142C4E; }
.rc-subfooter__inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: 13px; color: #9FB9DC; flex-wrap: wrap; gap: 8px;
}
.rc-subfooter a { color: var(--rc-sky); text-decoration: none; font-weight: 600; }
.rc-subfooter a:hover { color: #fff; }

/* ---- Discreet demo navigator ---- */
.rc-demonav { position: fixed; right: 18px; bottom: 18px; z-index: 100000; }
.rc-demonav__dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27, 58, 102, 0.35); color: rgba(255, 255, 255, 0.9);
  border: 0; cursor: pointer;
  opacity: 0.25;   /* nearly invisible until you know where to look */
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.rc-demonav__dot:hover, .rc-demonav__dot:focus-visible {
  opacity: 1; background: var(--rc-ink); transform: scale(1.06);
}
.rc-demonav.is-open .rc-demonav__dot { opacity: 1; background: var(--rc-purple); }
.rc-demonav.is-hidden { display: none; }

.rc-demonav__panel {
  position: absolute; right: 0; bottom: 46px;
  width: 252px; max-height: 66vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--rc-line); border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow-lift);
  padding: 12px 14px 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.rc-demonav.is-open .rc-demonav__panel {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.rc-demonav__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px; border-bottom: 1px solid var(--rc-sky-wash);
  font-family: var(--rc-font-display); color: var(--rc-ink); font-size: 15px;
}
.rc-demonav__close {
  background: none; border: 0; font-size: 20px; line-height: 1;
  color: var(--rc-slate); cursor: pointer; padding: 0 2px;
}
.rc-demonav__close:hover { color: var(--rc-purple); }
.rc-demonav__group { padding: 8px 0 2px; }
.rc-demonav__group > span {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rc-lime-ink); margin-bottom: 2px;
}
.rc-demonav__group a {
  display: block; padding: 5px 8px; margin: 1px -8px;
  font-size: 13.5px; font-weight: 600; color: var(--rc-indigo);
  text-decoration: none; border-radius: 8px;
}
.rc-demonav__group a:hover { background: var(--rc-sky-wash); color: var(--rc-purple-deep); }
.rc-demonav__group a.is-current { background: var(--rc-ink); color: #fff; pointer-events: none; }
.rc-demonav__foot {
  padding: 8px 0 4px; font-size: 10.5px; color: #9AA7B8; text-align: center;
  border-top: 1px solid var(--rc-sky-wash); margin-top: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .rc-nav { display: none; }
  .rc-burger { display: flex; }
  :root { --rc-header-h: 72px; }
  .rc-brand__tag { display: none; }
}
@media (max-width: 767px) {
  .rc-btn--donate { display: none; }   /* the drawer carries the Donate CTA */
  .rc-footer__grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 30px; }
  .rc-subfooter__inner { flex-direction: column; text-align: center; }
  #content h1 { font-size: 30px; }
  #content h2 { font-size: 24px; }
}
