/* ═══════════════════════════════════════════════════════════════════════
   Blocks & Bricks – Minecraft-subtle Bootstrap 5 theme
   ═══════════════════════════════════════════════════════════════════════ */

/* Brand palette is defined in brand.css (shared with PDF templates). */
@import url("brand.css");

/* ── Functional variables (site-only) ───────────────────────────────── */
:root {
  --bb-primary: var(--bb-green);
  --bb-card-radius: 6px;
  --bb-card-border: 1px solid rgba(0, 0, 0, 0.1);
  --bb-panel-border-width: 4px;
}

/* Dark-mode override for site-only variables (palette overrides live in brand.css) */
[data-bs-theme="dark"] {
  --bb-card-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Typography ─────────────────────────────────────────────────────── */
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* ── Links – Minecraft green throughout ─────────────────────────────── */
a {
  color: var(--bb-green);
}

a:hover,
a:focus,
a:active {
  color: var(--bb-green-dark);
}

[data-bs-theme="dark"] a {
/*  color: var(--bb-green-light);*/
}

[data-bs-theme="dark"] a.bb-video-link:hover,
[data-bs-theme="dark"] a.bb-video-link:focus,
[data-bs-theme="dark"] a.bb-video-link:active {
  color:#fff;
}

[data-bs-theme="dark"] a:hover,
[data-bs-theme="dark"] a:focus,
[data-bs-theme="dark"] a:active {
  color: var(--bb-green);
}

/* ── Navbar ──────────────────────────────────────────────────────────── */
.bb-navbar {
  background-color: var(--bb-green-dark) !important;
}

.bb-navbar .navbar-brand {
  margin-right:2rem;
}

.bb-navbar .navbar-brand,
.bb-navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Hover changes colour and underlines only: making it bold too would widen
   the link and push the ones after it sideways. Bold is kept for the
   current page, which doesn't change on hover. */
.bb-navbar .nav-link:hover {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.bb-navbar .nav-link.active {
  color: #fff !important;
  font-weight: 700;
}

.bb-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.bb-navbar .navbar-toggler-icon {
  filter: invert(1);
}

#darkModeToggle {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

#darkModeToggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── Hero Section ───────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--bb-green-dark);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.7;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-overlay .lead {
  font-size: 1.3rem;
}

.hero-overlay .btn {
  text-shadow: none;
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 280px;
  }
  .hero-overlay h1 {
    font-size: 2rem;
  }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary,
.btn-bb {
  background-color: var(--bb-green);
  border-color: var(--bb-green);
  color: #fff !important;
  /* Keep the disabled state on-brand too — by default Bootstrap 5.3 uses
     its own blue for these tokens, which leaks through when the button is
     disabled (e.g. while a form submit is in flight). */
  --bs-btn-disabled-bg: var(--bb-green);
  --bs-btn-disabled-border-color: var(--bb-green);
  --bs-btn-disabled-color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-bb:hover,
.btn-bb:focus,
.btn-bb:active {
  background-color: var(--bb-green-dark) !important;
  border-color: var(--bb-green-dark) !important;
  color: #fff !important;
}

/* Outline buttons themed green */
.btn-outline-secondary {
  color: var(--bb-green);
  border-color: var(--bb-green);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--bb-green) !important;
  border-color: var(--bb-green) !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {
  color: var(--bb-green-light);
  border-color: var(--bb-green-light);
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus,
[data-bs-theme="dark"] .btn-outline-secondary:active {
  background-color: var(--bb-green) !important;
  border-color: var(--bb-green) !important;
  color: #fff !important;
}

/* ── Cards (general) ────────────────────────────────────────────────── */
.card {
  border: var(--bb-card-border);
  border-radius: var(--bb-card-radius);
}

/* Long card text cut short behind a "Read more" button (about.html,
   technical.html). The button is the <label> of a Bootstrap .btn-check
   checkbox placed before the text, so opening and closing needs no JS.
   web/js/main.js → initReadMore only adds .read-more-fits, which hides the
   button and the fade when the text isn't cut off at the current width. */
.read-more-text {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent);
}
.read-more-text > :last-child {
  margin-bottom: 0;
}
/* Match the neighbouring card: when the cards sit side by side, height 0
   plus flex-grow lets the neighbour set the row height and the text fills
   whatever space that leaves. Stacked on small screens there is no
   neighbour, so a fixed height of about five lines is used instead. */
.read-more-match {
  flex-grow: 1;
  height: 7.5rem;
}
@media (min-width: 768px) {
  .read-more-match { height: 0; }
}
/* Fixed card height: every .read-more-card is at least 425px tall, and
   height 0 plus flex-grow makes its text take whatever space the heading
   and button leave. */
.read-more-card {
  min-height: 425px;
}
.read-more-fill {
  flex-grow: 1;
  height: 0;
}
.read-more-toggle:checked ~ .read-more-text,
.read-more-text.read-more-fits {
  height: auto;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.read-more-fits ~ .btn {
  display: none;
}
.read-more-toggle:checked ~ label .read-more-closed,
.read-more-toggle:not(:checked) ~ label .read-more-open {
  display: none;
}
/* Bootstrap only styles the focus ring when the label directly follows the checkbox */
.read-more-toggle:focus-visible ~ .btn {
  border-color: var(--bs-btn-hover-border-color);
  outline: 0;
  box-shadow: var(--bs-btn-focus-box-shadow);
}

/* Community page links land here (session.html); clear the sticky navbar */
#community-suggestions {
  scroll-margin-top: 4.5rem;
}

/* ── Session Panels ─────────────────────────────────────────────────── */
.session-panel {
  border-left: var(--bb-panel-border-width) solid var(--bb-stone-light);
  transition: box-shadow 0.2s ease;
}

.session-panel:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.session-panel .card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Panel accent colours */
.panel-bible    { border-left-color: var(--bb-sky); }
.panel-lectionary { border-left-color: var(--bb-sky); }

/* Lectionary Readings panel: label above each reading */
.lectionary-readings dt { font-weight: 600; font-size: 0.85rem; margin-top: 0.6rem; }
.lectionary-readings dt:first-child { margin-top: 0; }
.lectionary-readings dd { margin-bottom: 0; }
.panel-blocks   { border-left-color: var(--bb-green); }
.panel-bricks   { border-left-color: var(--bb-brown); }
.panel-prayer   { border-left-color: var(--bb-gold); }
.panel-context  { border-left-color: var(--bb-stone); }
.panel-gallery  { border-left-color: var(--bb-green-light); }
.panel-community { border-left-color: var(--bb-brown-light); }
.panel-suggestions { border-left-color: var(--bb-stone-light); }

/* ── Community contribution cards ───────────────────────────────────── */
/* Cards sit inside .panel-suggestions, so they have to opt out of the panel's
   own border-left accent and card-title sizing. */
.contribution-card {
  border-left: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

a:hover > .contribution-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contribution-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--bb-stone-light);
}

.session-panel .contribution-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.contribution-card .card-footer {
  padding-top: 0;
}

/* ── Session Two-Column Layout ──────────────────────────────────────── */
.session-panels {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .session-panels {
    grid-template-columns: 1fr 1fr;
  }

  .session-panels .panel-full-width {
    grid-column: 1 / -1;
  }
}

.session-panels .card {
  margin-bottom: 0 !important;
}

/* ── Session embedded html styling ──────────────────────────────────────── */

img.blocks-150, img.bricks-150 {
    
    width: 150px;
    float:right;
}


/* Season badge colours live in brand.css (shared with PDF templates). */

/* ── Accordion – green focus instead of blue ────────────────────────── */
.accordion-button:not(.collapsed) {
  background-color: rgba(143, 188, 90, 0.15);
  color: var(--bb-green-dark);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--bb-green-light);
  box-shadow: 0 0 0 0.25rem rgba(91, 140, 62, 0.25);
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: rgba(111, 168, 79, 0.15);
  color: var(--bb-green-light);
}

[data-bs-theme="dark"] .accordion-button:focus {
  border-color: var(--bb-green);
  box-shadow: 0 0 0 0.25rem rgba(111, 168, 79, 0.25);
}

/* ── Calendar View ──────────────────────────────────────────────────── */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-header h3 {
  margin: 0;
  min-width: 200px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--bb-stone);
  padding: 0.5rem 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--bb-card-radius);
  font-size: 0.9rem;
  position: relative;
  padding: 4px;
  cursor: default;
  background: var(--bs-body-bg);
  border: 1px solid transparent;
}

.calendar-day.empty {
  background: transparent;
}

.calendar-day.has-session {
  background-color: var(--bb-green-light);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.calendar-day.has-session:hover {
  background-color: var(--bb-green);
  color: #fff;
  transform: scale(1.05);
  transition: all 0.15s ease;
}

[data-bs-theme="dark"] .calendar-day.has-session {
  background-color: var(--bb-green-dark);
}

[data-bs-theme="dark"] .calendar-day.has-session:hover {
  background-color: var(--bb-green);
}

.calendar-day.has-date-only {
  border: 1px dashed var(--bb-stone-light);
  color: var(--bb-stone);
}

.calendar-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.calendar-legend .legend-swatch {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.4em;
  border-radius: 3px;
  vertical-align: -0.1em;
}
.calendar-legend .legend-session { background: var(--bb-green-light); }
[data-bs-theme="dark"] .calendar-legend .legend-session { background: var(--bb-green-dark); }
.calendar-legend .legend-date-only { border: 1px dashed var(--bb-stone-light); }
/* A day with several session plans: the day is a button opening a menu */
.calendar-day-multi { position: relative; }
.calendar-day-multi .calendar-day-button {
  width: 100%;
  font-family: inherit;   /* not "font: inherit": that would override .calendar-day's size */
  font-weight: 700;
  border: 1px solid transparent;
}
/* Underline the date like the link on single-session days */
.calendar-day-multi .calendar-day-button span { text-decoration: underline; }
.calendar-day-multi .calendar-day-button[aria-expanded="true"] {
  background-color: var(--bb-green);
}
.calendar-day-multi .dropdown-menu { min-width: 14rem; font-size: 0.9rem; }
.calendar-day-multi .dropdown-item { white-space: normal; }

.calendar-day.today {
  outline: 2px solid var(--bb-sky);
  outline-offset: -1px;
}

/* Calendar layout: grid left, sessions panel right */
.calendar-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.calendar-wrapper {
  flex: 0 0 380px;
}

.calendar-side-panel {
  flex: 1;
  min-width: 0;
}

.upcoming-section {
  margin-bottom: 1.5rem;
}

.calendar-month-sessions h5 {
  margin-top: 0;
}

@media (max-width: 700px) {
  .calendar-layout {
    flex-direction: column;
  }
  .calendar-wrapper {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .calendar-day {
    font-size: 0.75rem;
    padding: 2px;
  }
}

/* ── Explore Tab Styling ────────────────────────────────────────────── */
.nav-pills .nav-link {
  color: var(--bb-green-dark);
  border-radius: var(--bb-card-radius);
}

.nav-pills .nav-link.active {
  background-color: var(--bb-green);
  color: #fff;
}

[data-bs-theme="dark"] .nav-pills .nav-link {
  color: var(--bb-green-light);
}
[data-bs-theme="dark"] .nav-pills .nav-link.active {
  color: #fff;
}

/* Second-level tabs (e.g. Community > Session Plans): same pills, at the
   small button size used by the Year A/B/C selector */
.nav-pills-sm .nav-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--bb-green);
}

/* Year selector */
.year-selector .btn-check:checked + .btn {
  background-color: var(--bb-green);
  border-color: var(--bb-green);
  color: #fff;
}

/* Lectionary list */
.lectionary-item {
  transition: background-color 0.15s ease;
}

.lectionary-item:hover {
  background-color: rgba(91, 140, 62, 0.05);
}

.lectionary-item.no-session {
  opacity: 0.6;
}

/* ── Getting Started Cards ──────────────────────────────────────────── */
.getting-started-card {
  border-top: 3px solid var(--bb-green);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.getting-started-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ── Showcase ───────────────────────────────────────────────────────── */
.showcase-img {
  border-radius: var(--bb-card-radius);
  transition: transform 0.2s ease;
}

.showcase-img:hover {
  transform: scale(1.02);
}

/* ── Gallery Video Overlay ──────────────────────────────────────────── */
.gallery-video {
  position: relative;
  display: block;
}

.gallery-video::after {
  content: "\F4F4"; /* bi-play-circle-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.bb-footer {
  background-color: var(--bb-green-dark);
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto !important;
}

.bb-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.bb-footer a:hover {
  color: #fff;
}

[data-bs-theme="light"] footer .text-body-secondary {
  color: rgba(222, 226, 230, 0.75) !important;
}

/* ── Utilities ──────────────────────────────────────────────────────── */
code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.95em;
}

[data-bs-theme="dark"] code {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Progressive Enhancement: no-JS / JS toggle ─────────────── */

/* Hide tab pills when JS hasn't loaded (they don't work without it) */
.no-js #exploreTabs { display: none; }

/* Section headings shown only without JS (tabs replace them) */
.js .js-only-hidden { display: none; }

/* Stack sections with spacing when shown as plain sections (no-JS) */
.no-js #viewSections > section { margin-bottom: 2rem; }

/* Hide per-tab year selectors without JS (non-functional without it) */
.no-js .tab-year-selector { display: none; }

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ── Downloads page – booklet cards ────────────────────────────────── */
.booklet-card {
  border: 1px solid var(--bb-card-border, rgba(0,0,0,0.1));
  border-radius: var(--bb-card-radius);
  overflow: hidden;
  background: var(--bs-body-bg);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  max-width: 250px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

a.booklet-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.booklet-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.booklet-label {
  padding: 0.35em 0.5em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bb-green);
  background: var(--bs-body-bg);
  text-align: center;
}

.booklet-soon {
  justify-content: center;
  align-items: center;
  border-style: dashed;
  aspect-ratio: 3/4;
}

.booklet-future {
  justify-content: center;
  align-items: center;
  border-color: transparent;
  background: transparent;
  aspect-ratio: 3/4;
}

.booklet-placeholder {
  font-size: 0.75rem;
  color: var(--bb-stone-light);
  text-align: center;
  padding: 0.5em;
}

/* Theming for accordion icons */

[data-bs-theme=dark] .accordion-button::after {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea87e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea87e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Terms-snippet popover (web/js/main.js → initTermsPopovers) */
.terms-popover-content {
  max-width: 420px;
}
.terms-popover-content .popover-body section { margin-bottom: 0 !important; }
.terms-popover-content .popover-body p:last-child { margin-bottom: 0; }

/* ── FilePond invalid state (mirrors Bootstrap's .was-validated red border) ── */
.filepond--root.is-invalid {
  outline: 2px solid #dc3545;
  outline-offset: 0;
  border-radius: 0.5em;
}

/* ── FilePond grid layout (verbatim from the FilePond docs) ──────────
   pqina.nl/filepond/docs/api/style/#grid-layout — set item width here,
   FilePond does the positioning. Item heights stay uniform thanks to
   styleItemPanelAspectRatio in upload.html. */
.filepond--item { width: calc(50% - 0.5em); }
@media (min-width: 576px) { .filepond--item { width: calc(33.333% - 0.5em); } }
@media (min-width: 768px) { .filepond--item { width: calc(25% - 0.5em); } }
@media (min-width: 992px) { .filepond--item { width: calc(20% - 0.5em); } }


/* ── External link marker ───────────────────────────────────────────── */
/* Adds the Bootstrap Icons "box-arrow-up-right" symbol after every link
   that leaves the site. Done in CSS rather than per link so it also covers
   links that come from the spreadsheets (session text, contributor
   Copyright cells) and links built by JavaScript. Skipped for links that
   already carry the icon in their markup, and for links that are just a
   thumbnail image. */
a[href^="http"]:not([href*="blocks-and-bricks.org"]):not(:has(.bi-box-arrow-up-right)):not(:has(> img))::after {
  content: "\f1c5";
  content: "\f1c5" / " (external link)";   /* spoken text; browsers without this syntax keep the line above */
  display: inline-block;
  margin-left: 0.25em;
  font-family: bootstrap-icons;
  font-size: 0.75em;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  vertical-align: 0.05em;
  text-decoration: none;
}

/* ── Community: Showcase Gallery ────────────────────────────────────── */
.showcase-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--bb-stone-light);
}
.showcase-figure .showcase-title { font-weight: 600; }

/* ── Mailing list sign-up (Brevo form on contact.html) ──────────────── */
/* Replaces Brevo's own look (grey box, Roboto, dark button) so the form
   sits inside the card in the site's fonts and colours, in both themes. */
.bb-signup.sib-form {
  padding: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
}
.bb-signup #sib-container {
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
}
.bb-signup .sib-form-block { padding: 0 0 0.75rem; }
.bb-signup .entry__label { font-weight: 600; margin-bottom: 0.25rem; color: inherit; }
.bb-signup .entry__label::after { content: none; }
.bb-signup .entry__field {
  display: flex;
  width: 100%;
  margin: 0;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}
.bb-signup .entry__field:focus-within {
  border-color: var(--bb-green);
  box-shadow: 0 0 0 0.2rem rgba(91, 140, 62, 0.25);
}
.bb-signup .input {
  width: 100%;
  padding: 0.375rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--bs-body-color);
  font: inherit;
  outline: none;
}
.bb-signup .input::placeholder { color: var(--bs-secondary-color); }
.bb-signup .entry__error { font-size: 0.875rem; color: var(--bs-danger-text-emphasis); }
.bb-signup .sib-form-block__button {
  background-color: var(--bb-green);
  border-color: var(--bb-green);
  color: #fff;
  font-weight: 600;
}
.bb-signup .sib-form-block__button:hover,
.bb-signup .sib-form-block__button:focus { background-color: var(--bb-green-dark); border-color: var(--bb-green-dark); }
.bb-signup .sib-form-block__button .icon { width: 1em; height: 1em; fill: currentColor; margin-right: 0.35em; }
/* Brevo's stylesheet makes every link in its form area light blue */
.bb-signup .sib-form-container a { color: var(--bb-green); }
.bb-signup .sib-form-container a:hover { color: var(--bb-green-dark); }
.bb-signup .sib-form-message-panel {
  max-width: none;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--bs-border-radius);
  font-size: 0.95rem;
}
.bb-signup #success-message { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); border: 1px solid var(--bs-success-border-subtle); }
.bb-signup #error-message { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); border: 1px solid var(--bs-danger-border-subtle); }

/* ── Terms and Privacy page ─────────────────────────────────────────── */
.terms-toc { max-width: 32rem; }
.terms-toc ol { padding-left: 1.25rem; }
.terms-declaration {
  border-left: var(--bb-panel-border-width, 4px) solid var(--bb-green);
  background: var(--bs-tertiary-bg);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-style: italic;
}
