/* ==========================================================================
   BumblePlus — user.css (Cassiopeia child template)
   ==========================================================================

   CONTENTS

   1    Base ............. page shell, site grid, headings, links, focus, motion
   2    Header ........... layout, notice bar, brand, menu, hamburger, mobile
   3    Footer ........... layout, brand, links, navigation, copyright bar
   4    Banner & top ..... banner wrapper, hero, badges, photo pair, top-a, top-b
   5    Articles ......... wrapper, page title, lead, rows, research links
   6    Home tiles ....... <nav> link grid on the home page
   7    Beneficiaries .... numbered <ol class="row"> grid
   8    Cards ............ partner link cards, team cards
   9    Previous / next .. .pagenavigation
   10   Sitemap page ..... .bumbleplus-sitemap
   11   Privacy page ..... .bumbleplus-privacy

   Order matters in a few places: section 6 (tiles) must stay before
   section 8 (cards), since both style the tile <a class="card">.

   ========================================================================== */


/* ==========================================================================
   1. Base
   ========================================================================== */

html { min-height: 100%; background-color: var(--body-bg); }
body { overflow-x: clip; }

/* --- Sticky footer: the grid grows, the footer sits at the bottom --------- */
body.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body.site > .site-grid { flex: 1 0 auto; }
body.site > footer { flex-shrink: 0; margin-top: auto; }

/* --- Skip link ------------------------------------------------------------- */
.skip-link {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 10000;
  box-sizing: border-box;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem 1rem;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand-deep);
  text-decoration: none;
  background: #fff;
}
.skip-link:hover,
.skip-link:focus-visible {
  text-decoration: underline;
  background: var(--brand-tint);
}

/* --- Site grid: 1152px content column -------------------------------------- */
@supports (display: grid) {
  .site-grid {
    grid-template-columns:
      [full-start] minmax(0, 1fr)
      [main-start] repeat(4, minmax(0, 18rem))
      [main-end] minmax(0, 1fr)
      [full-end];
    grid-gap: 0;
  }
  .site-grid > [class*=" container-"] { max-width: 1152px; }
  .site-grid > [class*=" container-"],
  .site-grid > .full-width {
    padding-inline: max(1rem, calc((100% - 1152px) / 2));
  }
}

.grid-child {
  display: flex;
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
}

/* --- Headings -------------------------------------------------------------- */
h1, .h1, h2, .h2, h3, .h3,
h4, .h4, h5, .h5, h6, .h6 { line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h6, .h6 { font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--cassiopeia-color-hover); }

/* --- Links ----------------------------------------------------------------- */
a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
abbr[title] { text-underline-offset: 3px; }

/* --- Focus: 2px gold ring with a 6px halo, visible on light and dark ------- */
:focus-visible,
.btn:focus-visible,
.container-header .navbar-toggler:focus-visible {
  outline: 2px solid #e7c86b;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--heading-color);
}
/* On dark backgrounds */
.container-topbar :focus-visible,
.text-bg-primary :focus-visible {
  outline-color: var(--on-dark);
  box-shadow: 0 0 0 6px var(--brand-deep);
}
[tabindex="-1"]:focus-visible { outline: 0; box-shadow: none; }

/* --- Reduced motion (covers every transition on the site) ------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* ==========================================================================
   2. Header — .container-header
   Light header: bee mark on the left, menu on the right with an underline.
   ========================================================================== */

/* --- Layout: brand in the left 30%, menu in the right 70% ------------------ */
.container-header {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--page-gutter), 1fr)
    [content-start] minmax(0, calc(42rem * 0.3))
    minmax(0, calc(102rem * 0.7))
    [content-end] minmax(var(--page-gutter), 1fr)
    [full-end];
  align-items: center;
  padding: 0;
  color: var(--body-color);
  background: var(--body-bg);
  border-bottom: var(--border-rule);
  box-shadow: none;
}

.container-header > .grid-child {
  grid-column: 2 / 3;
  grid-row: 1;
  justify-self: stretch;
  min-width: 0;
  padding: 0.75rem 0;
}

.container-header > .grid-child.container-nav {
  grid-column: 3 / 4;
  grid-row: 1;
  justify-content: flex-end;
  justify-self: stretch;
  min-width: 0;
}

.container-header .container-nav > .navbar { justify-content: flex-end; width: 100%; padding: 0; }
.container-header .navbar-collapse { justify-content: flex-end; }

/* --- Notice bar: Custom module in the "topbar" position -------------------- */
.container-header > .container-topbar,
.container-header > .container-below-top {
  grid-column: full-start / full-end;
  padding: 0.625rem max(var(--page-gutter), (100% - var(--content-width)) / 2);
  font-size: 0.875rem;
  color: var(--on-dark);
  background: var(--brand-deep);
}
.container-topbar p { margin: 0; }
.container-topbar strong {
  margin-right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Brand: bee mark + site name ------------------------------------------- */
.container-header .navbar-brand { margin: 0; padding: 0; font-size: inherit; }

.container-header .navbar-brand .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 43px;
  padding: 5px 10px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--heading-color);
  text-decoration: none;
}
.container-header .navbar-brand span { height: 36px; line-height: 2.5rem; }

.container-header .navbar-brand .brand-logo::before {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  background: url("/media/templates/site/cassiopeia_bumbleplus/images/svgs/bee.svg") center / contain no-repeat;
}

/* --- Main menu ------------------------------------------------------------- */
.container-header .mod-menu {
  display: flex;
  flex: 0 1 auto;
  flex-flow: row wrap;
  gap: 0 0.25rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--body-color);
}
.container-header .mod-menu > li,
.container-header .mod-menu > li + li { margin: 0; padding: 0 0 0.25em; }
.container-header .mod-menu > li::after { content: none; }

.container-header .mod-menu > li > a,
.container-header .mod-menu > li.active > a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;                               /* WCAG 2.5.5 target size */
  margin: 0 0.125rem;
  padding: 0 0.625rem;
  font-weight: 600;
  color: var(--body-color);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

/* Underline bar: transparent until hovered or current.
   Keep these three rules in this order. */
.container-header .mod-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0.25rem;
  right: 0.25rem;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.container-header .mod-menu > li > a[aria-current="page"]::after,
.container-header .mod-menu > li.active > a::after { background: var(--cassiopeia-color-primary); }
.container-header .mod-menu > li > a:hover::after { background: var(--brand-accent); }
.container-header .mod-menu > li.active > a:hover::after { background: var(--cassiopeia-color-primary); }

/* --- Hamburger button states (button styles are in the mobile block) ------- */
@media (hover: hover) {
  .container-header .navbar-toggler:hover { background: var(--brand-tint); }
}
.container-header .navbar-toggler[aria-expanded="true"] { background: var(--brand-tint); }   /* menu open */
.container-header .navbar-toggler:active { transform: translateY(1px) scale(0.96); background: var(--brand-tint); }
.container-header .navbar-toggler:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .container-header .navbar-toggler:active { transform: none; }
}


/* --- Small screens (below Cassiopeia's 768px collapse point) --------------- */
@media (max-width: 767.98px) {
  .container-header > .grid-child:not(.container-nav) {
    position: relative;
    z-index: 1;
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: start;
    justify-self: start;
  }

  .container-header > .grid-child.container-nav {
    z-index: 99;
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: start;
    justify-self: stretch;
    margin: 0;
    padding: 0.75rem 0;
  }

  .container-header .container-nav > .navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .container-header .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0.5rem;
    border: 0;
    border-radius: 0;
    color: var(--heading-color);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 120ms ease, transform 80ms ease;
  }

  .container-header .navbar-collapse { flex-basis: 100%; width: 100%; }

  .container-header .mod-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.75rem;
  }

  .container-header .mod-menu > li > a { display: flex; margin: 0; }
}


/* ==========================================================================
   3. Footer — .container-footer.footer
   Project information, horizontal navigation and copyright bar.
   ========================================================================== */

.container-footer.footer {
  color: var(--on-dark);
  background: var(--brand-deep);
  border-top: var(--border-rule);
}

/* --- Layout ---------------------------------------------------------------- */
.footer .grid-child {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding: 2.25rem var(--page-gutter) 1.25rem;
}
.footer .footer-top { display: block; padding-bottom: 1.375rem; }

/* --- Project information --------------------------------------------------- */
.footer .footer-about { max-width: 40rem; }
.footer .mod-custom p { margin: 0; margin-top:1rem; font-size: 0.9375rem; line-height: 1.7; }
.footer .mod-custom p:first-child { margin-bottom: 1rem; }

/* --- Links (must stay before the menu rules) ------------------------------- */
.footer .grid-child.footer-inner a,
.footer .grid-child.footer-inner button { color: var(--on-dark); text-underline-offset: 0.25em; }
.footer .grid-child.footer-inner button:hover,
.footer .grid-child.footer-inner a:hover { color: var(--brand-accent);}

/* --- Brand: white bee + site name ------------------------------------------ */
.footer .footer-about .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 43px;
  margin: 0;
  padding: 5px 10px;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--brand-accent);
  text-decoration: none;
}
.container-footer .brand-logo::before {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  background: url("/media/templates/site/cassiopeia_bumbleplus/images/svgs/bee-white.svg") center / contain no-repeat;
}
.container-footer .brand-logo span { color: #e7c86b; }

/* --- Menus: shared by the navigation and the copyright bar ----------------- */
.footer .mod-menu {
  display: flex;
  flex-flow: row wrap;
  gap: 0 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer .mod-menu > li { margin: 0; padding: 0; }
.footer .mod-menu a,
.footer .footer-bottom .mod-menu button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  line-height: 1.4;
  color: currentColor;
}

/* --- Main footer navigation ------------------------------------------------ */
.footer .footer-navigation { margin-top: 1.125rem; }

.footer .footer-navigation .mod-menu a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.footer .footer-navigation .mod-menu a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0.25rem;
  right: 0.25rem;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.footer .footer-navigation .mod-menu a:hover::after,
.footer .footer-navigation .mod-menu a:focus-visible::after { background: #fff; }
.footer .footer-navigation .mod-menu a[aria-current="page"] { color: var(--brand-accent); }
.footer .footer-navigation .mod-menu a[aria-current="page"]::after { background: var(--brand-accent); }

/* --- Copyright and Sitemap bar --------------------------------------------- */
.footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.625rem 1.5rem;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 28%, transparent);
}

.footer .mod-footer {
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.65;
}
footer.footer .mod-footer a { font-size: inherit; font-weight: inherit; text-decoration: underline; }
.footer .mod-footer .footer2 { margin-top: 0.25rem; }

.footer .footer-bottom .mod-menu a,
.footer .footer-bottom .mod-menu button {
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: underline;
  border-radius: 0;
}
.footer .btn:first-child:active { border-color: transparent; }

/* --- Small screens --------------------------------------------------------- */
@media (max-width: 440px) {
  .footer .grid-child { padding-top: 1.75rem; }
  .footer .mod-menu { column-gap: 1.375rem; }
}


/* ==========================================================================
   4. Banner & top positions
   Banner: one Custom module in Cassiopeia's full-width "banner" position.
   Each block is a full-width <div> with Bootstrap's .container inside.
   ========================================================================== */

/* --- Banner wrapper -------------------------------------------------------- */
.container-banner.full-width {
  box-sizing: border-box;
  margin-bottom: 0;
  padding-inline: max(1rem, calc((100% - 1152px) / 2));
  border-bottom: var(--border-rule);
}
.container-banner .text-container {
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  padding-inline: var(--page-gutter);
}

/* --- Hero: badges, <h1 class="display-1">, <p class="lead"> -------------- */
.container-top-b .mod-custom,
.container-banner .mod-custom > div > .bumbleplus-title:first-child {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 3rem);
}
.container-banner .display-1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 11vw, 8.75rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.container-banner .display-1 + .lead {
  max-width: 45rem;
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading-color);
}

/* --- Badges: tinted, square ------------------------------------------------ */
.container-banner .badge {
  --badge-color: var(--brand-dark);
  padding: 3px 10px;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: normal;
  background-color: var(--brand-tint);
}
.container-banner .badge.text-bg-light {
  color: var(--tag-neutral-color) !important;
  background-color: var(--tag-neutral-bg) !important;
}

/* --- Photo pair -----------------------------------------------------------
   <div class="row g-0"> of <figure class="figure col-md-8 / col-md-4">.
   Captions sit in their own ruled row under the photos (subgrid). */
.container-banner .row:has(> .figure) { margin: 0; }
.container-banner .row > .figure { display: block; margin: 0; padding: 0; }
.container-banner .row > .figure + .figure { border-top: var(--border-rule); }
.container-banner .figure-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
  background: var(--brand-surface);
}
.container-banner .figure-caption {
  margin: 0;
  padding: 0.875rem 0 1.125rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--body-color);
  border-top: 1px solid var(--border-color);
}
.container-banner .figure-caption strong { font-weight: 700; color: var(--heading-color); }

@media (min-width: 768px) {
  .container-banner .row:has(> .figure) {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .container-banner .row > .figure { display: grid; grid-template-rows: subgrid; grid-row: span 2; width: auto; }
  .container-banner .row > .figure + .figure { border-top: 0; border-left: var(--border-rule); }
  .container-banner .row > .figure:first-child .figure-caption { padding-right: 1.25rem; }
  .container-banner .row > .figure + .figure .figure-caption { padding-left: 1.25rem; }
  .container-banner .figure-img { height: 100%; }
}

/* --- Top-a: figures in Custom module 114 ----------------------------------- */
.container-top-a > #mod-custom114 { display: flex; margin: 0; }
.container-top-a > #mod-custom114 .figure { margin: 0; }

/* --- Top-b: green band (.text-bg-primary) ---------------------------------- */
.text-bg-primary {
  color: #fff !important;
  background-color: color-mix(in srgb, var(--cassiopeia-color-primary) 85%, transparent) !important;
}
.container-top-b.text-bg-primary :is(h2, .display-4) {
  max-width: 60rem;
  margin: 0;
  font-size: clamp(2.125rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: inherit;
}


/* ==========================================================================
   5. Articles — .com-content-article (every page's main content)
   ========================================================================== */

.com-content-article { padding-block: clamp(2.5rem, 5vw, 3.5rem) 0; }
.com-content-article ul { overflow: visible; }
.com-content-article__body img { max-width: 100%; height: auto; }

/* --- Page title: Joomla's own article title (Show Title: Show) ------------- */
.com-content-article .page-header { margin: 0 0 1.25rem; }
.com-content-article .page-header :is(h1, h2) {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

/* --- Lead paragraph (page intros, "About the research") -------------------- */
.com-content-article .lead { max-width: 62ch; font-size: 1.1875rem; font-weight: 400; line-height: 1.55; }
.com-content-article .lead.fw-semibold { font-size: 1.3125rem; line-height: 1.45; color: var(--heading-color); }

/* --- Rows: top-level rows keep their rules flush with header and footer ---- */
.com-content-article__body > .row:not(ol, .g-0) { --gutter-x: 3rem; margin-inline: 0; }
.com-content-article__body > .row:not(ol, .g-0) > :first-child { padding-left: 0; }
.com-content-article__body > .row:not(ol, .g-0) > :last-child { padding-right: 0; }
@media (max-width: 991.98px) {
  .com-content-article__body > :not(ol, .g-0) > * { padding-inline: 0; }
}

/* Two-column rows: question/answer, team groups etc. */
.com-content-article__body .row > h2,
.com-content-article__body .row > h3 { margin-bottom: 1.5rem; }
.com-content-article__body .row > .col-lg-8 { max-width: 45rem; }

/* A .col.full-width spans both columns of a .row-cols-md-2 row */
@media (min-width: 768px) {
  .row-cols-md-2 > .col.full-width { flex: none; width: 100%; }
}

/* --- Research links: ruled list of links ----------------------------------- */
.bumbleplus-research-links {
  margin-block: 1.5rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  list-style: none;
  border-left: 3px solid var(--cassiopeia-color-primary);
}
.bumbleplus-research-links li + li { margin-top: 0.75rem; }
.bumbleplus-research-links a {
  display: inline-block;
  margin-left: -5px;
  padding: 5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.bumbleplus-research-links a:hover { text-decoration-thickness: 2px; }


/* ==========================================================================
   6. Home tiles
   <nav> > <ul class="list-unstyled row …"> > <li class="col"> > <a class="card">
   1 column, 2 from 576px, 4 from 992px. The lines between tiles are the
   cards' own borders; the first tile drops its left border.
   ========================================================================== */

.com-content-article__body nav.pagenavigation .row {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  overflow: visible;
}
.com-content-article__body nav.pagenavigation .row > li { width: auto; padding: 0; background: var(--body-bg); }

@media (min-width: 576px) {
  .com-content-article__body nav.pagenavigation .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .com-content-article__body nav.pagenavigation .row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.com-content-article__body nav.pagenavigation .card {
  --card-border-width: 0;
  --card-bg: transparent;
  color: var(--heading-color);
  text-decoration: none;
  border-top: var(--border-width) var(--border-style) var(--border-color);
  border-bottom: var(--border-width) var(--border-style) var(--border-color);
  border-left: var(--border-width) var(--border-style) var(--border-color);
  border-radius: 0;
}
.com-content-article__body nav.pagenavigation > ul > li:first-child > .card { border-left: 0; }

.com-content-article__body nav.pagenavigation .card:hover,
.com-content-article__body nav.pagenavigation .card:focus-visible {
  z-index: 999;
  color: var(--heading-color);
  background: var(--brand-tint);
}

.com-content-article__body nav.pagenavigation .card-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.75rem 2rem 2rem;
}

/* Title with an arrow that nudges right on hover/focus */
.com-content-article__body nav.pagenavigation .card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}
.com-content-article__body nav.pagenavigation .card-title::after {
  content: "➞";                /* fallback for browsers without alt text */
  content: "➞" / "";           /* hidden from screen readers */
  display: inline-block;
  margin-left: 0.35em;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.com-content-article__body nav.pagenavigation .card:hover .card-title::after,
.com-content-article__body nav.pagenavigation a:focus-visible .card-title::after { transform: translateX(0.3em); }

.com-content-article__body nav.pagenavigation .card-text { margin-top: auto; font-size: 0.9375rem; color: var(--body-color); }


/* ==========================================================================
   7. Beneficiaries — numbered grid from <ol class="list-unstyled row …">
   Numbers come from a CSS counter; the lines are the list background
   showing through a 2px grid gap.
   ========================================================================== */

.com-content-article__body ol.row {
  counter-reset: item;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
  background: var(--border-color);
}
@media (min-width: 768px) {
  .com-content-article__body ol.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.com-content-article__body ol.row > li {
  counter-increment: item;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: auto;
  margin: 0;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--body-bg);
}
.com-content-article__body ol.row > li::before {
  content: counter(item, decimal-leading-zero);           /* fallback */
  content: counter(item, decimal-leading-zero) / "";      /* hidden from screen readers */
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cassiopeia-color-primary);
}
.com-content-article__body ol.row > li > :is(h2, h3) { margin: 0; font-size: 1.5rem; }
.com-content-article__body ol.row > li > p { margin: 0; }


/* ==========================================================================
   8. Cards — partners (link cards) and team (article cards)
   ========================================================================== */

.com-content-article__body .card {
  --card-border-color: var(--border-color);
  --card-border-width: 2px;
  --card-bg: var(--body-bg);
  color: var(--heading-color);
}

/* --- Link cards: logo on white, name and ↗ underneath ---------------------- */
.com-content-article__body a.card { text-decoration: none; border-radius: 0; }
.com-content-article__body a.card:hover {
  color: var(--heading-color);
  background: var(--brand-tint);
  border-color: var(--cassiopeia-color-primary);
}
.com-content-article__body a.card .card-img-top { height: 110px; padding: 1.25rem; object-fit: contain; }
.com-content-article__body a.card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1.25rem;
  padding: 0.75rem 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: transparent;
  border-top: 1px solid var(--border-color);
}

/* --- Team cards: tinted panel, no border ----------------------------------- */
.com-content-article__body article.card { --card-bg: var(--brand-surface); color: var(--body-color); border-radius: 0; }
.com-content-article__body article.card .card-body { display: flex; flex-direction: column; gap: 0.625rem; padding: 1.5rem; }
.com-content-article__body article.card .card-subtitle { margin: 0; font-weight: 600; }
.com-content-article__body article.card .card-title { margin: 0; font-size: 1.3125rem; }
.com-content-article__body article.card .card-text { margin: 0; font-size: 0.9375rem; line-height: 1.6; }

.com-content-article__body article.card .card-footer {
  margin: 0 1.5rem;
  padding: 0.875rem 0 1.5rem;
  background: transparent;
  border-top: 1px solid var(--border-color);
}
.com-content-article__body article.card .card-footer h4 { margin-bottom: 0.625rem; color: var(--heading-color); }
.com-content-article__body article.card .card-footer .list-unstyled { padding-left: 0; }
.com-content-article__body article.card .card-footer li { margin-bottom: 0.75rem; font-size: 0.875rem; line-height: 1.55; }
.com-content-article__body article.card .card-footer li:last-child { margin-bottom: 0; }


/* ==========================================================================
   9. Previous / next — .pagenavigation (Content - Page Navigation plugin)
   ========================================================================== */

.pagenavigation {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  margin-inline: -16px;
  border-top: var(--border-rule);
}
.pagenavigation .pagination { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }

.pagenavigation .btn {
  --btn-color: var(--heading-color);
  --btn-bg: transparent;
  --btn-border-color: transparent;
  --btn-hover-color: var(--heading-color);
  --btn-hover-bg: var(--brand-tint);
  --btn-hover-border-color: transparent;
  --btn-active-bg: var(--brand-tint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 1.5rem 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 0;
}
.pagenavigation .previous { grid-column: 1; justify-content: flex-start; }
.pagenavigation .next { grid-column: 2; justify-content: flex-end; border-left: var(--border-rule); }
.pagenavigation .next:only-child { margin-left: 0; }


/* ==========================================================================
   10. Sitemap page — .bumbleplus-sitemap
   ========================================================================== */

.bumbleplus-sitemap { max-width: 48rem; }

.bumbleplus-sitemap ul {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  overflow: visible;
}
.bumbleplus-sitemap li { padding: 1.25rem 0; }
.bumbleplus-sitemap li + li { border-top: 1px solid #d5e4df; }

.bumbleplus-sitemap li a {
  display: inline-block;
  margin-left: -5px;
  padding: 5px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.bumbleplus-sitemap li p { margin: 0.4rem 0 0; }


/* ==========================================================================
   11. Privacy page — .bumbleplus-privacy
   ========================================================================== */

.bumbleplus-privacy h2 { margin-block: 2rem 0.75rem; }
.bumbleplus-privacy p { margin-bottom: 1rem; }

/* --- Cookie table ---------------------------------------------------------- */
.bumbleplus-privacy table {
  width: 100%;
  margin-block: 1.5rem;
  border-collapse: collapse;
  table-layout: fixed;
}
.bumbleplus-privacy th,
.bumbleplus-privacy td {
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dce5df;
  overflow-wrap: anywhere;
}
.bumbleplus-privacy th {
  font-weight: 700;
  color: #fff;
  background: var(--cassiopeia-color-primary);
}
.bumbleplus-privacy td code {
  color: #a3184f;
  background: #ffeff0;
  padding: .1rem .3rem .2rem;
  border-radius: .2rem;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
  
.bumbleplus-privacy th:first-child { width: 40%; }
.bumbleplus-privacy th:last-child { width: 20%; }
.bumbleplus-privacy tbody tr:nth-child(even) { background: #f3f7f4; }

/* Replace Bootstrap's pink <code> styling */


@media (max-width: 575.98px) {
  .bumbleplus-privacy th,
  .bumbleplus-privacy td { padding: 0.625rem 0.5rem; font-size: 0.875rem; }
}