/* ==========================================================================
   TABLE OF CONTENTS
   1.  Variables (single :root)
   2.  Bootstrap 5 overrides
   3.  Base, layout, header / navigation / menus
   4.  Sponsoring / Supporters Club redesign
   5.  Side menus, anchors, TinyMCE accordion
   6.  Legacy 2017/2018 pages (home, sponsors, partners)
   7.  Accessibility (links, colours)
   8.  Joomla theme (brand, Cassiopeia hero, timeline, languages, shooting stars)
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
  /* Sponsoring / light theme */
  --ink: #14233f;
  --ink-soft: #1c3f66;
  --ink-dark: #0c1424;
  --ink-dark-rgb: 12, 20, 36;
  --ink-2: #414f6b;
  --ink-2-rgb: 65, 79, 107;
  --paper: #faf6ef;
  --paper-dim: #f1ead9;
  --paper-dim-rgb: 241, 234, 217;
  --paper-line: rgba(20, 35, 63, 0.12);
  --ember-soft: #bd3d0e;
  --ember: #99300b;
  --ember-strong: #8a2e0a;
  --leaf: #2e9e6e;
  --sky: #2e6da4;
  --gold: #f2b134;
  --bronze: #a5672e;
  --silver: #647383;
  --platinum: #5f7285;
  --diamond: #127a9c;
  --ivory-rgb: 250, 246, 239;
  --line-dark: rgba(var(--ivory-rgb), 0.16);
  --radius: 14px;

  /* Characters per line (WCAG 1.4.8). */
  --measure-sm: 45ch;          /* Narrow columns, captions, or sidebars */
  --measure: 65ch;             /* Standard body copy (optimal readability) */
  --measure-lg: 75ch;          /* Wide prose, documentation, or intros */
  --measure-heading-sm: 15ch;  /* Short punchy titles, hero headlines */
  --measure-heading: 30ch;     /* Standard section headings (h1, h2) */
  --measure-heading-lg: 42ch;  /* Long descriptive titles or subheadings */
  --measure-lede: 60ch;        /* Hero lede */

  --wrap: 1320px;
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-system-mono: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --font-monospace: var(--joomla-font-family-mono);
  --font-mono-letter-spacing: var(--joomla-font-mono-letter-spacing);
  --bg-radial-ink: radial-gradient(120% 140% at 50% -10%, #232a45 0%, var(--ink) 55%, #0f1322 100%);

  /* Semantic colours (the dark palette below swaps these) */
  --bg: var(--paper);               /* page / section background */
  --surface: #fff;                /* cards */
  --surface-alt: var(--paper-dim);  /* alternate bands, chips, hovers */
  --surface-strong: var(--ink);     /* emphasised dark surfaces */
  --fg: var(--ink);                 /* text */
  --fg-2: var(--ink-2);             /* secondary text */
  --line: var(--paper-line);        /* borders */
  --accent-2: var(--ember);           /* accent text (eyebrows, prices) */
  --accent-2-dark: var(--ember-strong); /* accent text (eyebrows, prices) on alt background */
  --accent-2-link: var(--ember-strong); /* accent colour for links, >= 7:1 on --bg */
  --community-grad: linear-gradient(120deg, #eaf4ee, #f1ead9 65%);
  --focus-ring: #2e6da440;
  --box-shadow: var(--ink-dark-rgb);

  /* Jorg Colours */
  --jorg-accent-color: #fec34d;

  /* Menus */
  --menu-active-bg: #1a3867;
  --border-color-translucent: rgba(0, 0, 0, 0.175);
}

.dropdown-menu {
  --dropdown-bg: var(--body-bg);
  --dropdown-link-active-color: #0f151d;
  --dropdown-box-shadow: var(--ink-dark-rgb);
  --dropdown-divider-bg: var(--line);
  padding: .5rem 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark palette, navy-based: page #0c1424, surfaces #14233f.
       The hero keeps its own navy radial background in both modes. */
    --bg: var(--ink-dark);
    --surface: var(--ink);
    --surface-alt: #101b31;
    --surface-strong: #1c3358;
    --fg: var(--paper);
    --fg-2: rgba(var(--ivory-rgb), .72);
    --line: rgba(var(--ivory-rgb), .12);
    --accent-2: #ff8a5c;
    --accent-2-dark: #ff8352; /* accent text (eyebrows, prices) on alt background */
    --accent-2-link: var(--accent-2);
    --community-grad: linear-gradient(120deg, #11322f, var(--ink) 65%);
    --box-shadow: var(--paper-dim-rgb);
  }
  .dropdown-menu {
    --dropdown-bg: var(--ink);
    --dropdown-link-active-color: var(--paper);
    --dropdown-box-shadow: var(--paper-dim-rgb);
  }
}

:root {
  --joomla-font-letter-spacing: .012em;
  --joomla-font-word-spacing: .04em;
  --joomla-font-mono-letter-spacing: .105em;
  --cassiopeia-font-weight-headings: 700;
  --cassiopeia-font-weight-normal: 400;
}

/* Body text (Atkinson Hyperlegible) */
body {
  font-family: var(--cassiopeia-font-family-body);
  font-size: clamp(1.0625rem, 1vw + 0.85rem, 1.1875rem); /* fluid 17px to 19px */
  line-height: 1.6;
  font-feature-settings: "ss02" 1; /* Disambiguation without slashed zero: ss04 */
  word-spacing: var(--joomla-font-word-spacing);
}

/* Headings (Inter Variable) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--cassiopeia-font-family-headings);
  font-optical-sizing: auto;
  font-feature-settings: "ss02" 1; /* Disambiguation without slashed zero: ss04 */
  line-height: 1.25;
  letter-spacing: var(--joomla-font-letter-spacing);
  max-width: var(--measure-heading-lg);
}

body > nav,
body > header {
  font-family: var(--joomla-font-family-ui);
  font-size: 1rem;
  font-optical-sizing: auto;
  font-feature-settings: "ss02" 1; /* Disambiguation without slashed zero: ss04 */
  line-height: 1.25;
  letter-spacing: var(--joomla-font-letter-spacing);
}

nav, button, .btn {
  font-family: var(--joomla-font-family-ui);
  font-optical-sizing: auto;
  font-feature-settings: "ss02" 1; /* Disambiguation without slashed zero: ss04 */
  line-height: 1.25;
  letter-spacing: var(--joomla-font-letter-spacing);
}
.ff-atkinson {
  font-family: 'AtkinsonHyperlegibleNextVF';
  font-optical-sizing: auto;
  line-height: inherit;
  letter-spacing: 0;
  word-spacing: .04em;
}
.ff-inter {
  font-family: 'Inter Local';
  font-optical-sizing: auto;
  font-feature-settings: "ss02" 1; /* Disambiguation without slashed zero: ss04 */
  line-height: inherit;
  letter-spacing: .012em;
  word-spacing: 0;
}
.zero {
  font-family: 'AtkinsonHyperlegibleNextVF';
  font-optical-sizing: auto;
  line-height: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
}

/* ==========================================================================
   2. BOOTSTRAP 5 OVERRIDES
   Rules that only restyle Bootstrap 5 classes or variables, site-wide.
   This file must load after Bootstrap's CSS.
   (The mega-menu / header rules that depend on source order stay in
   section 3: .navbar a.dropdown-item, the mobile overlay, etc.)
   ========================================================================== */

/* --- Theme variables --- */
body {
  --body-color: var(--ink);
  --body-bg: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root {
    --highlight-color: #000;
  }
  body {
    --body-color: var(--paper);
    --body-bg: var(--ink-dark); /* #0c1424 */
  }
}

/* --- Containers and grid --- */
/* Single definition for the whole site, aligned on the Bootstrap 5
   breakpoints (replaces the former wrap class). */
:root {
  --container-pad: 1.5rem;
  --border-radius: var(--radius);
}
@media (max-width: 575.98px) {
  :root { --container-pad: 20px; }
}
body.wrapper-static .site-grid {
/*  grid-gap: 0 1.3125em; */
  grid-gap: 0 1.25em;
}
body.wrapper-fluid .site-grid {
  grid-gap: 0;
}

/* .container, .container-component { */
body.wrapper-fluid .container {
  padding-inline: var(--container-pad);
}
.container, body.wrapper-static .site-grid {
  width: 100%;
  margin-inline: auto;
}
@media (min-width: 576px)  { .container, body.wrapper-static .site-grid { max-width: 100%; } }
@media (min-width: 768px)  { .container, body.wrapper-static .site-grid { max-width: 720px; } }
@media (min-width: 992px)  { .container, body.wrapper-static .site-grid { max-width: 960px; } }
@media (min-width: 1200px) { .container, body.wrapper-static .site-grid { max-width: 1140px; } }
@media (min-width: 1400px) { .container, body.wrapper-static .site-grid { max-width: 1320px; } }


/* Widen the gap between main content and sidebars on desktop */
@media (min-width: 992px) {
  /* If using a Right Sidebar */
  body.has-sidebar-right .container-component {
    padding-right: 2rem; /* Adds 32px to Cassiopeia's default gap = ~48px total */
  }

  /* If using a Left Sidebar */
  body.has-sidebar-left .container-component {
    padding-left: 2rem;
  }

  /* If using both Left Sidebar and Right sidebar, no extra padding */
  body.has-sidebar-left.has-sidebar-right .container-component {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (min-width: 1200px) {
  /* If using a Right Sidebar */
  body.has-sidebar-right .container-component {
    padding-right: 4.5rem; /* Adds 72px to Cassiopeia's default gap = ~88px total */
  }

  /* If using a Left Sidebar */
  body.has-sidebar-left .container-component {
    padding-left: 4.5rem;
  }

  /* If using both Left Sidebar and Right sidebar, no extra padding */
  body.has-sidebar-left.has-sidebar-right .container-component {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Make bottom-a and bottom-b full width, even in "static" mode */
body.wrapper-static .container-bottom-a,
body.wrapper-static .container-bottom-b {
    grid-column: full-start / full-end;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
}

/* 100vw includes the scrollbar width; this prevents a horizontal scrollbar */
body.wrapper-static {
    overflow-x: clip;
}

.row {
  --gutter-x: 1.5em;
}

.container-fluid > .row,
main .row {
  --gutter-x: 0;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .flex-lg-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .container-lg, .container-md, .container-sm {
    max-width: 100%;
  }
}

.container-top-a > *, .container-top-b > *, .container-bottom-a > *, .container-bottom-b > * {
  margin: 0;
}

.wrapper-static .com-content-article.item-page,
.wrapper-static .com-content-article__body p,
p {
  max-width: var(--measure-lg);
}

/* Module */
.moduletable.card {
  margin: 1.5rem auto;
}

/* --- Link colours ---
   Target: >= 7:1 (WCAG AAA) on every page, card and band background
   (worst cases: #f1ead9 / #ececec in light mode, #25304f in dark mode).
   Bootstrap 5.3 builds `a { color }` from --link-color-rgb and swaps it
   to --link-hover-color-rgb on :hover. */
:root, [data-bs-theme="light"] {
  --link-color-rgb: 10, 60, 191;         /* #0a3cbf   7.3:1 to  8.7:1 */
  --link-hover-color-rgb: 0, 31, 128;    /* #001f80  11.6:1 to 13.9:1 */
  --link-visited-color-rgb: 106, 31, 168;   /* #6a1fa8   7.4:1 to  8.8:1 */
  /* Hex versions: .nav-link, .btn-link, .page-link… read these, not the -rgb ones */
  --link-color: rgb(var(--link-color-rgb));
  --link-hover-color: rgb(var(--link-hover-color-rgb));
  --btn-color: #002fa7;
  --border-color: #dee2e6;

  --border-radius-xl: .875rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --link-color-rgb: 165, 200, 255;       /* #a5c8ff  7.4:1 to 10.8:1 */
    --link-hover-color-rgb: 208, 226, 255; /* #d0e2ff  9.6:1 to 14.0:1 */
    --link-visited-color-rgb: 212, 184, 255;  /* #d4b8ff  7.3:1 to 10.6:1 */
    --link-color: rgb(var(--link-color-rgb));
    --link-hover-color: rgb(var(--link-hover-color-rgb));
    --btn-color: #a5c8ff;
    --border-color: #495057;
  }
}

.hero a {
  --link-color-rgb: 165, 200, 255;       /* #a5c8ff  7.4:1 to 10.8:1 */
  --link-hover-color-rgb: 208, 226, 255; /* #d0e2ff  9.6:1 to 14.0:1 */
  --link-visited-color-rgb: 212, 184, 255;  /* #d4b8ff  7.3:1 to 10.6:1 */
  --link-color: rgb(var(--link-color-rgb));
  --link-hover-color: rgb(var(--link-hover-color-rgb));
  --btn-color: #a5c8ff;
}

.border {
  border: var(--border-width) var(--border-style) var(--border-color) !important;
}

/* Stop a font icon from flashing raw text or empty squares before it loads */
/*
.icon-fw {
  display: inline-block;
  width: 1.25em;
  line-height: inherit;
  overflow: hidden;
  vertical-align: middle;
}
*/
.icon-fw, .fa-fw {
  display: inline-block;
  width: 1.3125em;
  height: 1.1875em;
  line-height: 1;
  overflow: hidden;
  vertical-align: middle;
}
.fa-fw {
  width: 1.5em;
}

@media (prefers-reduced-motion: no-preference) {
  /* Hide without removing from document flow */
  .icon-joomla, [class^="icon-"], [class*=" icon-"], [class^="fa-"], [class*=" fa-"] {
    opacity: 0;
    visibility: hidden;
  }

  /* Reveal smoothly once fonts are ready */
  .fonts-loaded .icon-joomla,
  .fonts-loaded [class^="icon-"],
  .fonts-loaded [class*=" icon-"],
  .fonts-loaded [class^="fa-"],
  .fonts-loaded [class*=" fa-"] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease-in;
  }
}


/* --- Buttons --- */
/* Default horizontal padding: 1rem instead of Bootstrap's .75rem.
   --btn-padding-x is declared on .btn itself, so a :root value would be
   ignored; it has to be set on .btn. :where() keeps the specificity at (0,1,0):
   the size variants (.btn-sm, .btn-lg, .btn-group-sm > .btn, and the custom
   .btn-lg / .btn-xl defined later) keep their own padding. */
.btn:where(:not(.btn-sm, .btn-lg)) {
  --btn-padding-x: 1rem;
}
.btn:focus-visible {
  outline: 2px solid rgb(var(--link-color-rgb));
  outline-offset: 3px;
  box-shadow: none;
}

.btn-outline-primary {
  --btn-color: #002fa7;
  --btn-border-color: #002fa7;
  --btn-hover-color: var(--paper);
  --btn-hover-bg: #002fa7;
  --btn-hover-border-color: #002fa7;
  --btn-focus-shadow-rgb: 165,200,255;
  --btn-active-color: var(--paper);
  --btn-active-bg: #002fa7;
  --btn-active-border-color: #002fa7;
  --btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --btn-disabled-color: #002fa7;
  --btn-disabled-bg: transparent;
  --btn-disabled-border-color: #002fa7;
  --gradient: none;
}
@media (prefers-color-scheme: dark) {
  .btn-outline-primary {
    --btn-color: #a5c8ff;
    --btn-border-color: #a5c8ff;
    --btn-hover-color: var(--ink);
    --btn-hover-bg: #a5c8ff;
    --btn-hover-border-color: #a5c8ff;
    --btn-focus-shadow-rgb: 165,200,255;
    --btn-active-color: var(--ink);
    --btn-active-bg: #a5c8ff;
    --btn-active-border-color: #a5c8ff;
    --btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --btn-disabled-color: #a5c8ff;
    --btn-disabled-bg: transparent;
    --btn-disabled-border-color: #a5c8ff;
    --gradient: none;
  }
}
/* Link states (hover / focus / active / visited).
   Only needed in the main content (articles, blog lists…), i.e. between the
   header (portal menu + site menu) and the footer, so they are scoped to
   <main> / #content. Menus, sidebars and footer keep their own styles.
   - hover / focus / active only swap the Bootstrap variable, so classed links
     (.btn, .nav-link, .dropdown-item…) keep their own colours.
   - :visited can't be changed through a custom property, so it sets `color`
     directly and is limited to links without a class attribute.
   :where() keeps the specificity unchanged. */
:where(main, #content) a:is(:hover, :focus-visible, :active) {
  --link-color-rgb: var(--link-hover-color-rgb);
  text-decoration-thickness: 2px;
}
:where(main, #content) a:not([class]):visited {
  color: rgb(var(--link-visited-color-rgb));
}
:where(main, #content) a:not([class]):visited:is(:hover, :focus-visible, :active) {
  color: rgb(var(--link-hover-color-rgb));
}
:where(main, #content) a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.lead {
  font-weight: 400;
}

/* --- Navbar and dropdowns --- */
.navbar-toggler {
  color: var(--body-color);
}

.navbar-nav .dropdown-menu {
  position: absolute;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--dropdown-bg);
  border-radius: .875rem;
  box-shadow: 0 18px 40px rgba(var(--dropdown-box-shadow), .08);
}
.navbar-nav a.btn {
  margin: 0 .75rem;
  text-wrap: nowrap;
}

.navbar a:not(.btn) {
  font-weight: 400;
  color: #dee2e6;
  text-decoration: none;
}
.navbar a:not(.btn):focus,
.navbar a:not(.btn):hover {
  color: #fff;
  text-decoration: none;
}

.dropdown-item {
  padding: .5rem 1.875rem;
}
.dropdown-item:focus,
.dropdown-item:hover {
  background-color: var(--paper-dim);
}
.dropdown-menu {
  border: var(--dropdown-border-width) solid var(--border-color);
}
@media (min-width: 992px) {
  .dropdown-menu {
    padding-bottom: .875rem;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  --breadcrumb-margin-bottom: 1.5rem;
  --breadcrumb-font-size: 1rem;
  --breadcrumb-item-active-color: var(--fg-2);
  --breadcrumb-divider-color: rgba(var(--fg-2-rgb), .8);
  background-color: transparent;
  padding: 8px 15px 8px 0;
}
.hero .breadcrumb {
  --breadcrumb-item-active-color: var(--paper-dim);
  --breadcrumb-divider-color: rgba(var(--ivory-rgb), .8);
}

/* --- Tables --- */
@media (max-width: 320px) {
  .table th,
  .table td {
    padding: 4px;
  }
}


/* ==========================================================================
   3. BASE, LAYOUT, HEADER / NAVIGATION
   ========================================================================== */
@media (min-width: 576px) {
  html {
    /* Prevents vertical rubber-banding at the page boundaries */
    overscroll-behavior-y: none;
  }
}

body {
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.body {
  padding-top: 0;
  overscroll-behavior: none;
}

.body > .container {
  padding-top: 1rem;
}
/*
@media (min-width: 576px) {
  .body > .container {
    padding-top: 2.5rem;
  }
}
*/

a:not(.btn) {
  text-underline-offset: 4px;
}

/* Only target raw URLs, wrap to prevent long URLs from overflowing their containers. */
a[href^="http"]:not(.btn),
a[href^="www"]:not(.btn) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.container-xxxl {
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
}

.com-content-article.item-page {
  font-size: 1.125rem;
}
.blog-items:not(.items-leading) .item-content p {
  font-size: 1rem;
}
/* Prevent :focus-visible outline to be cut on border */
.blog-item {
  overflow: unset;
}
.footer {
  margin-top: 0;
  padding-top: 2.5rem;
}

footer {
  font-size: 1rem;
}

/* --- Sub-navigation bar --- */
.moduletable._menu {
  width: 100%;
}
.subnav-wrapper .subnav a:not(.btn):focus-visible {
  outline: unset;
  box-shadow: 0 0 0 .25rem rgba(117, 190, 233, .5);
  border-radius: .25rem;
}
.subnav-wrapper .subnav button:focus-visible {
  outline: .25rem solid rgb(117 190 233 / 0.5);
  border-radius: .25rem;
  box-shadow: none;
}
.subnav-wrapper .subnav {
  --navbar-color: var(--ink);
  color: #fff;
  background-color: #1a3867;
  background-image: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 1px rgba(0,0,0,.2), 0 1px 0 #2f89d3 inset, 0 -1px 0 #368ad8 inset;
}
.subnav-wrapper .subnav .container-xxxl {
  padding: 0 .75rem;
}
.subnav-wrapper .subnav .navbar {
  --navbar-padding-x: .125rem;
  --navbar-padding-y: .125rem;
  --navbar-color: var(--ink);
}
@media (min-width: 576px) {
  .subnav-wrapper .subnav .navbar {
    --navbar-padding-x: .5rem;
    --navbar-padding-y: .5rem;
  }
  .subnav-wrapper .subnav .container-xxxl {
    padding: 0 .5rem;
  }
}
.subnav-wrapper .subnav .navbar ul {
  padding: 0;
}
.subnav-wrapper .subnav .navbar a:not(.navbar-brand) {
  padding: .5rem .75rem;
}
.subnav-wrapper .subnav .navbar a:hover
/*
,
.mod-finder-modal__toggle:hover .mod-finder-button-label
*/
 {
/*  color: var(--fg); */
  text-decoration: underline;
  text-decoration-color: #f9a541;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.subnav .navbar .navbar-toggler {
  width: 48px;
  height: 44px;
  padding: var(--navbar-toggler-padding-y) var(--navbar-toggler-padding-x);
  font-size: var(--navbar-toggler-font-size);
  line-height: 1;
  color: #dee2e6;
  background-color: transparent;
  border: var(--border-width) solid transparent;
  border-radius: .5rem;
  transition: var(--navbar-toggler-transition);
}
.subnav .navbar .navbar-toggler:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.subnav .navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 1px;
}
.subnav .navbar .navbar-toggler:focus-visible {
  box-shadow: none;
}

/* --- Main Portal menu --- */
.navigation {
  --joomla-top-nav-bg: #152845;
  background-color: var(--joomla-top-nav-bg);
}
@media (min-width: 576px) {
  .navigation {
    position: sticky;
    top: 0;
    z-index: 1001;
  }
}
.navigation #mega-menu {
  padding-top: 0;
  padding-bottom: 0;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .navigation #mega-menu .navbar-nav > li > button {
    --btn-font-size: 1rem;
  }
}

.navigation #mega-menu .navbar-nav > li {
  border-right: 1px solid #1e3b63;
  box-shadow: 1px 0 0 #1e3b63 inset, -1px 0 0 rgba(0,0,0,.4) inset;
}

.navigation #mega-menu .dropdown .btn {
  --btn-border-radius: 0;
}

/* Hamburger icon: only the colour is overridden. The glyph itself comes from
   Joomla's icon font (.icon-menu::before). Do NOT set an empty content here,
   it hides the icon. If you used a custom glyph, set it with an escape,
   e.g. content: "\f0c9"; */
.navbar-toggler .icon-menu::before {
  display: inline-block;
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .navbar-toggler .icon-menu::before {
    transition: transform .2s ease;
  }
}

.navbar-toggler[aria-expanded="true"] .icon-menu::before {
  content: "\f00d";
  transform: rotate(90deg);
}

#primaryMenu.navbar .navbar-nav {
  margin: 0;
  padding: 0;
  flex-direction: row;
}
.navigation #mega-menu #nav-joomla .navbar-expand-md .navbar-nav {
  flex-direction: row;
}
#primaryMenu,
.navigation #mega-menu #nav-joomla {
  margin: 0;
  padding: 0;
}
#nav-joomla .navbar-nav > li > button {
  --btn-font-size: 1rem;
}

#primaryMenu a.nav-link {
  padding: .75rem 1.4375rem .75rem .75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
}
#primaryMenu a.nav-link:focus {
  border: 1px solid #fff;
}
#primaryMenu a.nav-link:hover,
#nav-joomla li:not(.nav-header, .dropdown-col):focus,
#nav-joomla li:not(.nav-header, .dropdown-col):hover {
  background-color: rgba(var(--ivory-rgb), .08);
}
#primaryMenu a .icon-download {
  padding-right: .5rem;
  font-size: 1rem;
  text-decoration: none !important;
}
#primaryMenu a.btn.btn-primary,
#primaryMenu a.btn.btn-outline-primary {
  text-wrap: nowrap;
  margin: 0 .5rem 0 .75rem;
}

.navigation #mega-menu .navbar-nav > li > button {
  --btn-padding-y: .75rem;
  font-weight: 500;
  color: #dee2e6;
}
.navigation #mega-menu .navbar-nav > li:first-child > button.btn {
  padding-left: 1.1875rem;
}
.navigation #mega-menu .navbar-nav > li > button:hover {
  color: var(--paper);
}
.navigation #mega-menu .navbar-nav > li.current > button {
  color: #fff;
  background: var(--menu-active-bg);
}

.metismenu.mod-menu.jorg-sitemenu .metismenu-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: .5rem .75rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* --- Dropdowns --- */
.dropdown-item-home {
  font-weight: inherit;
}
.dropdown-item.nav-header:hover {
  background: transparent;
}
.dropdown-fullscreen-close {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.navbar a.dropdown-item {
  color: var(--ink);
  text-decoration: none;
}
.navbar a.dropdown-item:not(.btn):focus,
.navbar a.dropdown-item:not(.btn):hover {
  color: var(--ink);
}

.navigation .nav-header {
  padding: .5rem 1rem;
  font-family: var(--font-monospace);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: inherit;
  line-height: 1.6;
  color: var(--ember);
}

.text-muted {
  color: var(--fg-2) !important;
}

/* Desktop */
@media (min-width: 992px) {
  #primaryMenu.navbar {
    overflow: visible;
  }
  .dropdown-menu.show.dropdown-menu-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 2fr));
    gap: 0;
  }
  .dropdown-menu-cols .dropdown-col-full {
    grid-column: 1 / -1;
  }
  .dropdown-menu-cols .dropdown-col {
    border-left: none;
    padding-left: 0;
    margin-top: .25rem;
  }
  .dropdown-menu-cols .dropdown-col li a {
    text-wrap: wrap;
  }
  .dropdown-menu-cols .dropdown-col ~ .dropdown-col {
    border-left: 1px solid var(--dropdown-divider-bg);
  }
  .dropdown-menu-cols .dropdown-divider {
    margin: .5rem .75rem;
  }
  .dropdown-item-home {
    font-weight: 600;
  }
  .metismenu.mod-menu.jorg-sitemenu .metismenu-item {
    padding: 0;
    font-size: 1rem;
  }
}

/* Mobile: scrollable bar + open menu as a full-screen overlay.
   The menu is moved to be a direct child of <body> by the JS. */
@media (max-width: 991.98px) {
  #mega-menu {
    overflow-x: hidden;
    width: 100%;
  }
  #primaryMenu.navbar {
    overflow-x: scroll;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap !important;
  }

  /* Separator between groups (replaces the columns' left border) */
  body > .dropdown-menu-cols.show .dropdown-col:not(:first-child) {
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--dropdown-divider-bg);
  }

  .dropdown-item:focus,
  .dropdown-item:hover {
    border-radius: .5rem;
  }
  .dropdown-toggle::after {
    display: none;
  }

  body > .dropdown-menu.show {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 1rem;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    z-index: 3000;
    color: var(--ink);
    background: var(--paper);
    display: flex;
    flex-direction: column;
  }
  body > .dropdown-menu.show .dropdown-header {
    --dropdown-header-color: var(--ink);
    padding: 0 0 .5rem;
  }
  body > .dropdown-menu.show .dropdown-header .icon-joomla {
    width: 2rem;
    text-align: center;
  }
  body > .dropdown-menu.show .dropdown-item {
    font-size: 1.125rem;
    padding: .5rem .75rem .5rem 2.25rem;
    text-wrap: wrap;
  }
  body > .dropdown-menu.show .dropdown-item:active {
    color: var(--dropdown-link-active-color);
  }
  body > .dropdown-menu.show .dropdown-item.nav-header {
    padding-left: 1.125rem;
    font-family: var(--font-monospace);
    letter-spacing: .14em;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ember);
  }

  body > .dropdown-menu.show .dropdown-fullscreen-close {
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    width: 44px;   /* min. touch target (WCAG 2.5.5) */
    height: 44px;
    margin-bottom: .5rem;
    cursor: pointer;
    color: inherit;
  }
  body > .dropdown-menu.show .dropdown-fullscreen-close:focus {
    outline: none;
    box-shadow: none;
  }
  body > .dropdown-menu.show .dropdown-fullscreen-close.show-focus-ring:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  /* Prevents the page from scrolling behind the overlay */
  body.dropdown-fullscreen-open {
    overflow: hidden;
  }

  @media (prefers-color-scheme: dark) {
    body > .dropdown-menu.show {
      color: var(--paper);
      background: var(--dropdown-bg);
    }
    body > .dropdown-menu.show .dropdown-header {
      --dropdown-header-color: var(--paper);
    }
    body > .dropdown-menu.show .dropdown-item {
      color: var(--paper);
    }
    body > .dropdown-menu.show .dropdown-item.nav-header {
      color: var(--gold);
    }
  }
}

/* Dark mode (global) */
@media (prefers-color-scheme: dark) {
  .navbar a.dropdown-item {
    color: var(--paper);
  }
  .navbar a.dropdown-item:not(.btn):focus,
  .navbar a.dropdown-item:not(.btn):hover {
    color: #fff;
  }
  .dropdown-item:not(.nav-header):focus,
  .dropdown-item:not(.nav-header):hover {
    color: var(--paper);
    background-color: rgba(var(--ivory-rgb), .08);
  }
  .navigation .nav-header {
    color: var(--gold);
  }
  .awesomplete > ul {
    background: linear-gradient(to bottom right, #212529, #1c2127);
    border: 1px solid #495057;
  }
  .awesomplete > ul::before {
    background: #212529;
  }
}

/* --- Sticky wrapper + shrink on scroll --- */
.site-header {
  position: sticky;
  top: -1px;
  z-index: 999; /* stays below Bootstrap dropdowns (--dropdown-zindex: 1000) */
  background: var(--body-bg, #fff);
  transition: box-shadow .3s ease;
}
.subnav-wrapper .mod-finder-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  height: 60px;
  transition: height .3s ease;
}

@media (min-width: 576px) {
  .site-header {
    top: 46px;
  }
  .subnav-wrapper .navbar {
    transition: padding .3s ease;
  }
  .subnav-wrapper .navbar-brand img {
    height: 46px;
    width: auto;
    transition: height .3s ease;
  }
  .subnav-wrapper .mod-finder-container {
    height: 72px;
    margin-top: 0;
  }

  .site-header.is-shrunk {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  }
  .site-header.is-shrunk .navbar {
    padding-top: 0;
    padding-bottom: 0;
  }
  .site-header.is-shrunk .navbar-brand img {
    height: 34px;
  }
  .site-header.is-shrunk .mod-finder-container {
    height: 44px;
  }
  .site-header.is-shrunk .subnav .navbar .navbar-toggler:not(:focus-visible) {
    border-radius: 0;
  }
}

@media (min-width: 576px) and (prefers-reduced-motion: reduce) {
  .subnav-wrapper,
  .subnav-wrapper .navbar,
  .subnav-wrapper .navbar-brand img {
    transition: none;
  }
}

@media (max-width: 991.98px) {
  .subnav-wrapper .subnav .navbar ul {
    padding-bottom: 1rem;
  }
}

.card {
  --card-border-color: var(--line);
}

.container-sidebar-right {
  font-size: 1rem;
}

.nav.nav-tabs {
  padding: 1rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 1px var(--surface-alt),0 2px 3px -3px var(--surface-alt),inset 0 -4px var(--surface-alt);
}

/* ==========================================================================
   4. SPONSORING / SUPPORTERS CLUB REDESIGN
   ========================================================================== */
/* Quick links: 3x3 grid on desktop, swipeable pills on mobile.
   Expected markup:
   <nav class="quick-links" aria-label="Core features sections">
     <ul class="quick-links__list">
       <li><a class="quick-links__item" href="#core-functionality">
         <span class="quick-links__icon" aria-hidden="true"><!-- icon --></span>
         <span class="quick-links__label">Core Functionality</span>
       </a></li>
       ...
     </ul>
   </nav> */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.label {
  font-family: var(--font-monospace);
  font-size: .875rem;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: .875rem;
  display: block;
}

/* Colours follow the cards (--surface, --fg, --line). All icons share a single
   colour (--ql-icon-bg), since the links are navigation, not categories.
   Inside the hero the original "ghost" look is kept (see .hero .quick-links). */
.quick-links {
  --ql-bg: var(--surface);
  --ql-fg: var(--fg);
  --ql-border: var(--line);
  --ql-hover-bg: var(--surface-alt);
  --ql-hover-border: var(--fg-2);
  --ql-focus: rgb(var(--link-color-rgb));
  --ql-icon-bg: var(--ink-soft);
  --ql-icon-fg: #fff;
  --ql-icon-flat: var(--fg); /* icon colour once the circle is removed (mobile pills) */
  margin: 2rem 0;
}

/* Hero: keep the current style */
.hero .quick-links {
  --ql-bg: transparent;
  --ql-fg: var(--paper);
  --ql-border: rgba(var(--ivory-rgb), .45);
  --ql-hover-bg: rgba(var(--ivory-rgb), .08);
  --ql-hover-border: rgba(var(--ivory-rgb), .4);
  --ql-focus: #85b7eb;
  --ql-icon-fg: #85b7eb;
  --ql-icon-flat: #85b7eb;
}

ul.quick-links__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: unset;
}

.quick-links__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  box-sizing: border-box;
  background: var(--ql-bg);
  border: 1px solid var(--ql-border);
  border-radius: 12px;
  color: var(--ql-fg);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.quick-links__item:hover {
  background: var(--ql-hover-bg);
  border-color: var(--ql-hover-border);
}

.quick-links__item:focus-visible {
  background-color: var(--surface-alt);
  outline: 2px solid var(--ql-focus);
  outline-offset: 2px;
}

.quick-links__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ql-icon-bg);
  color: var(--ql-icon-fg);
  font-size: 20px;
}

.quick-links__icon > * {
  margin: auto;
}

.quick-links__icon svg {
  width: 22px;
  height: 22px;
}

.quick-links__label {
  font-size: .9375rem;
  text-align: center;
}

/* Tablet: 2 columns */
@media (min-width: 576px) and (max-width: 991.98px) {
  .quick-links__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 576px) {
  .quick-links__label {
    font-size: 1.125rem;
  }
  .width-lg .quick-links__label {
    font-size: 1rem;
  }
}
@media (min-width: 992px) {
  .quick-links__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  } 
  .quick-links__item {
    flex-direction: row;
  }
  .quick-links__label {
    font-size: 1.25rem;
    text-align: left;
  }
  .width-lg .quick-links__label {
    font-size: 1.125rem;
  }
}

.width-lg {
  max-width: 960px;
}

/* Mobile: one swipeable row of pills */
/*
@media (max-width: 575px) {
  .quick-links__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
*/
    /* Bleed to the screen edges so pills are not cut at the container padding,
       then give the first / last pill the same inset back. */
/*    margin-inline: calc(-1 * var(--container-pad));
    padding: 6px var(--container-pad) 12px;
*/
            /* 6px top: room for the focus ring */
/*
    scroll-padding-inline: var(--container-pad);
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
*/
                          /* no browser back-swipe when reaching an edge */
    /* Keep a thin, visible scrollbar: it is the scroll affordance for mouse users */
/*
    scrollbar-width: thin;
    scrollbar-color: var(--ql-hover-border) transparent;
  }

  .quick-links__list li {
    flex: none;
    scroll-snap-align: start;
*/
    /* A pill never gets wider than the screen: a label that is too long wraps
       onto two lines instead of forcing a horizontal scroll to read it
       (WCAG 1.4.10 Reflow). Short labels stay on one line. */
/*
    max-width: calc(100vw - 2 * var(--container-pad));
  }

  .quick-links__item {
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 1rem;
  }

  .quick-links__icon {
    width: auto;
    height: auto;
    background: none;
    color: var(--ql-icon-flat);
    font-size: 16px;
  }

  .quick-links__icon svg {
    width: 16px;
    height: 16px;
  }
}
*/

/* Keep anchored sections clear of a sticky header (adjust the value) */
[id] {
  scroll-margin-top: 80px;
}

.itemid-1710 .body {
  background: var(--bg);
  color: var(--fg);
}

/* mod_banners */
.bannerheader {
  font-size: .875rem;
  color: var(--fg-2);
}

/* Same vertical padding for every redesigned section.
   :where() keeps the specificity at 0, so a block can still override it
   (see .hero and .how-sponsoring). */
:where(.hero, .callout-section, .ledger, .packages, .supporters-club, .how, .content-section, .partners, .cta-section, .section-ink) {
  padding: 80px 0 96px;
}
@media (min-width: 992px) {
  :where(.hero, .callout-section, .ledger, .packages, .supporters-club, .how, .content-section, .partners, .cta-section, .section-ink) {
    padding: 96px 0 120px;
  }
}

.eyebrow {
  font-family: var(--font-monospace);
  letter-spacing: var(--font-mono-letter-spacing, .14em);
  font-size: 1rem;
  font-weight: 500;
}

/* Standard badge / tag.
   Colour variants (add next to .tag): .tag-bronze, .tag-silver, .tag-gold,
   .tag-platinum. Example: <span class="tag tag-gold">Gold</span> */
.tag {
  font-family: var(--font-monospace);
  font-size: .875rem;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--fg-2); /* 6.9:1 in light mode, fallback */
  color: color-mix(in srgb, var(--fg-2) 85%, var(--fg)); /* >= 7:1 */
  background: var(--surface-alt);
  padding: .375em 1em;
  border-radius: 50rem;
}

/* Text colours tuned to >= 7:1 (WCAG AAA) on their own background */
.tag-bronze   { background: #f4e3d3; color: #713d17; } /* 7.0:1 */
.tag-silver   { background: #e9ebee; color: #474e59; } /* 7.0:1 */
.tag-gold     { background: #faedcd; color: #664a0f; } /* 7.1:1 */
.tag-platinum { background: var(--gold); color: #3a2a05; } /* 7.3:1 */

.hero .tag {
  text-wrap: nowrap;
}

/* Generic element styles (images, headings, links, buttons, selection…)
   are limited to the redesigned blocks listed below, so they don't leak
   site-wide. Add any new redesigned block to this list. */
/* :is(.hero, .callout-section, .ledger, .packages, .supporters-club, .how, .content-section, .partners, .cta-section, .section-head, .section-ink) { */
/*
  & img {
    max-width: 100%;
    display: block;
  }
*/
/*
  & h1,
  & h2,
  & h3 {
    margin: 0;
    letter-spacing: -.01em;
  }
*/
/*
  & a:not(.btn) {
    color: inherit;
  }
*/
/*  & */
  .callout-section blockquote {
    padding-left: 0;
    border-left: none;
  }

/*  & */
  ::selection {
    background: var(--fg);
    color: var(--bg);
  }

  @media (prefers-reduced-motion: reduce) {
/*    & */
    * {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
      scroll-behavior: auto !important;
    }
  }
/* } */

/* Selection colour on dark blocks */
.hero ::selection,
.cta-section ::selection,
.section-ink ::selection,
.badge-preview ::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--bg-radial-ink);
  color: var(--paper);
  overflow: hidden;
  padding-top: 1em;
}
.hero.no-eyebrow {
  padding-top: 5.25rem;
}
/*
@media (min-width: 576px) {
  .hero {
    padding-top: 2.5rem;
  }
}
*/
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-inner {
  max-width: 768px;
}
.hero .eyebrow {
  color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero p.lede {
  font-size: 1.25rem;
  color: rgba(var(--ivory-rgb), .8);
  max-width: var(--measure);
  margin: 26px 0 40px;
}
/* Row of call-to-action buttons (stacked on small screens).
   Shared by the hero and .cta-section. */
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.cta-item-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: inherit;
  opacity: .8;
}
@media (max-width: 575px) {
  .cta-item,
  .cta-item .btn {
    width: 100%;
  }
}

/* Small note next to or under call-to-action buttons.
   Shared by the hero, .cta-section and .callout-section.
   No margin by default, so it can sit inside .cta-actions next to a button;
   when it follows the .cta-actions block, space is added above it. */
.cta-note {
  font-size: 1rem;
  color: rgba(var(--ivory-rgb), .72);
  margin: 0;
}
.cta-actions + .cta-note {
  margin-top: 1.125rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 32px;
  margin-top: 76px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  max-width: 760px;
}
.corporate-sponsorship .hero-stats {
  grid-template-columns: repeat(3, 1fr);
}
.hero-stats div strong {
  display: block;
  font-size: 1.875rem;
  color: #fff;
  font-weight: 600;
}
.hero-stats div span {
  display: block;
  font-size: 1.125rem;
  color: rgba(var(--ivory-rgb), .72);
}

@media (max-width: 767.98px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .corporate-sponsorship .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- CALLOUT SECTION (generic) ----------
   A highlighted message with a left accent bar. Same design as the former
   leader section, usable for a leader quote, an announcement or an action
   (newsletter sign-up…). Every part is optional except the container:
   <section class="callout-section">
     <div class="container">
       <p class="eyebrow">…</p>
       <blockquote class="callout-quote">“…”<cite>Name, role</cite></blockquote>
       or <p class="callout-text">…</p>
       <div class="cta-actions"><a class="btn btn-accent" href="…">…</a><small class="cta-note">…</small></div>
     </div>
   </section>
   Compact version: add the Bootstrap utility py-4 on the section. */
.callout-section {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.callout-section .container {
  border-left: 3px solid var(--sky);
  padding-left: 40px;
  max-width: 820px;
}
.callout-section .eyebrow {
  color: var(--accent-2);
  margin-bottom: 18px;
  display: block;
}

.callout-quote,
.callout-text,
.ledger-quote {
/*  font-style: italic; */
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--fg);
}
.callout-quote cite,
.callout-text cite,
.ledger-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-monospace);
  font-style: normal;
  font-size: .875rem;
  color: var(--fg-2);
}
.callout-text {
  font-style: normal; /* same size and weight as the quote, without the italic */
}
/* Call-to-action row under the quote / message / eyebrow */
.callout-section .cta-actions {
  align-items: center;
}
/* The callout background follows the colour mode: use the semantic text colour */
.callout-section .cta-note {
  color: var(--fg-2);
}
.callout-quote + .cta-actions,
.callout-text + .cta-actions {
  margin-top: 1.5rem;
}

/* ---------- LEDGER (where the funds go) ---------- */
.ledger {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.ledger .container {
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.ledger h2 {
  color: #fff;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.15;
}
.ledger .eyebrow {
  color: var(--gold);
  margin-bottom: 16px;
}
.ledger p:not(.eyebrow) {
  color: rgba(var(--ivory-rgb), .72);
  margin-top: 1.25rem;
  font-size: 1.25rem;
}
.ledger-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  border-top: 1px solid var(--line-dark);
}
.ledger-list div {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.0625rem;
  color: rgba(var(--ivory-rgb), .88);
}
.ledger-list div::before {
  content: "✓";
  color: #34a878;
  font-weight: 600;
  flex: none;
}
.ledger-quote {
  grid-column: 1 / -1;
  margin-top: 36px;
  padding-top: 28px;
  padding-left: 0;   /* prevents the blockquote left padding / border */
  border-left: none; /* coming from Bootstrap or the template */
  border-top: 1px solid var(--line-dark);
  font-size: clamp(20px, 2.6vw, 26px);
  color: #fff;
  max-width: 640px;
}
.ledger-quote cite {
  color: rgba(var(--ivory-rgb), .72);
}

/* ---------- PACKAGES ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.tier-card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(21, 26, 46, .1);
}
.tier-recommend {
  position: absolute;
  top: 0;
  right: 22px;
  transform: translateY(-50%);
  background: var(--ember);
  color: #fff;
  font-family: var(--font-monospace);
  font-size: .875rem;
  letter-spacing: .06em;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.tier-note {
  max-width: 100%;
  text-align: center;
  margin: 20px 0 0;
  font-size: 1rem;
  color: var(--fg-2);
}
/* Badge inside a tier card: spacing below, don't stretch it (flex column) */
.tier-card .tag {
  margin-bottom: 1.25rem;
  width: fit-content;
}
.tier-price {
  font-family: sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: .25rem;
}
.tier-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-2);
}
.tier-card ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 1.125rem;
  color: var(--fg-2);
  flex: 1;
}
.tier-card li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.tier-card li:first-child {
  border-top: none;
}

.tier-platinum {
  background: var(--surface-strong);
  color: var(--paper);
  border-color: var(--surface-strong);
}
.tier-platinum .tier-price        { color: #fff; }
.tier-platinum .tier-price span   { color: rgba(var(--ivory-rgb), .6); }
.tier-platinum ul                 { color: rgba(var(--ivory-rgb), .75); }
.tier-platinum li                 { border-top: 1px solid var(--line-dark); }
.tier-platinum:hover              { box-shadow: 0 22px 48px rgba(21, 26, 46, .35); }

.community-band {
  margin-top: 22px;
  border-radius: var(--radius);
  background: var(--community-grad);
  border: 1px solid var(--line);
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.community-band h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: .375rem;
  color: var(--fg);
}
.community-band p {
  margin: 0;
  color: var(--fg-2);
  font-size: 1.125rem;
  max-width: var(--measure);
}
.community-price {
  font-family: sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
}

/* ---------- SECTION HEAD (generic: eyebrow + title + lede) ---------- */
.section-head {
  max-width: var(--measure);
  margin-bottom: 4rem;
}
.section-head .eyebrow {
  color: var(--accent-2);
  margin-bottom: .875rem;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  color: var(--fg);
}
.section-head p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 1.25rem;
}

/* ---------- CONTENT SECTION (generic layout) ----------
   One section layout for cards, brands, teams, events, logos…
   <section class="content-section">    modifiers: section-alt, section-center, section-ink
     <div class="container">
       <div class="section-head">…eyebrow, h2, lede…</div>

       Cards (optional: style="--cards-cols: 4"; add cards-compact for denser cards):
       <div class="cards-grid">
         <article class="cards-item">
           <div class="cards-icon"><svg>…</svg></div>                       (optional)
           <span class="tag tag-gold">Badge</span>                           (optional)
           <h3>Title</h3>
           or <div class="cards-name"><span class="dot dot-gold"></span>Name</div>
           or <img class="cards-media" src="…" alt="Name">
           <p>Text</p>  or  <div class="cards-sub">Secondary text</div>
         </article>
       </div>

       Logo wall (logos only, centred, wraps):
       <div class="logo-list"><a class="logo-link" href="…"><img …></a></div>

       <div class="cta-actions">…buttons…</div>                              (optional)
     </div>
   </section>
   The section padding comes from the shared rule above. */
/* Plain sections get a divider; alternate / navy bands already stand out. */
.content-section:not(.section-alt, .section-ink) {
  border-bottom: 1px solid var(--line);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(var(--cards-cols, 3), 1fr);
  gap: 28px;
  position: relative;
}
.cards-item {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  position: relative;
  padding: 2.25rem 1.875rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cards-item:hover {
  transform: none;
  box-shadow: 0 18px 40px rgba(var(--box-shadow), .08);
}
@media (prefers-color-scheme: dark) {
  .cards-item:hover {
    transform: none;
    box-shadow: 0 18px 40px rgba(var(--box-shadow), .08);
  }
}
a.cards-item:hover,
.cards-item.is-stretched:hover {
  transform: translateY(-4px);
}

/* Whole card is a link: <a class="cards-item" href="…"> */
a.cards-item {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.cards-item:focus-visible {
  background-color: var(--surface-alt);
  outline: 2px solid rgb(var(--link-color-rgb));
  outline-offset: 3px;
}
.cards-item .h3 {
  font-size: calc(1.3rem + .6vw);
}
.cards-item.card-image {
  padding: 0;
  overflow: hidden;
}
.cards-image img {
  width: auto;
  max-width: 100%;
  height: auto;
}
.cards-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #fff;
  font-size: 1.25rem; /* icon fonts (Font Awesome…); svg icons are sized below */
  line-height: 1;
}
.cards-icon svg {
  width: 21px;
  height: 21px;
}
/* Icon colours repeat every 3 cards */
.cards-item:nth-child(3n+1) .cards-icon { background: var(--ink-soft); }
.cards-item:nth-child(3n+2) .cards-icon { background: var(--ember); }
.cards-item:nth-child(3n+3) .cards-icon { background: var(--bronze); }

.cards-icon-lg {
  margin-bottom: 1.5rem;
  font-size: 2rem;  /* icon fonts (Font Awesome…); svg icons are sized below */
  color: var(--fg);
}
.cards-icon-lg svg {
  width:  40px;
  height: 40px;
}

.cards-item h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}
.cards-item p {
  color: var(--fg-2);
  font-size: 1.125rem;
  margin: 0;
}

.hero .cards-bar {
  margin: 5.25rem auto;
}
/* Cards bar */
.cards-bar {
  background-color: var(--bg);
  border: 1px solid var(--paper-line);
}
.cards-bar h1, .cards-bar h2, .cards-bar h3, .cards-bar h4, .cards-bar h5, .cards-bar h6 {
  --heading-color: var(--fg);
}

/* Cards bar item hover effect */
.cards-bar .cards-item {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cards-bar .cards-item:hover {
  background-color: var(--surface-alt);
  transform: translateY(-3px);
}


/* ---------- SUPPORTERS CLUB ---------- */
.supporters-club {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sc-head {
  max-width: 680px;
  margin-bottom: 20px;
}
.sc-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-monospace);
  font-size: .875rem;
  letter-spacing: .1em;
  font-weight: 600;
  color: #fff;
  background: var(--surface-strong);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.sc-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  color: var(--fg);
}
.sc-head p {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 1.125rem;
  max-width: 600px;
}
.sc-anchor {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-2);
}
.sc-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}
.sc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sc-col-label {
  font-family: var(--font-monospace);
  font-size: .875rem;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: 1.125rem;
  display: block;
}
.sc-tier {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.sc-tier:first-of-type {
  border-top: none;
}
.sc-tier-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}
.sc-tier-perk {
  margin: 5px 0 0 22px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-2);
  line-height: 1.4;
}
.sc-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: none;
  background: var(--fg-2);
}
.sc-swatch--bronze   { background: var(--bronze); }
.sc-swatch--silver   { background: var(--silver); }
.sc-swatch--gold     { background: var(--gold); }
.sc-swatch--platinum { background: var(--platinum); }
.sc-swatch--diamond  { background: var(--diamond); }
.sc-tier-price {
  font-family: var(--font-monospace);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--fg-2);
  padding-top: .175rem;
  white-space: nowrap;
}

.sc-social-proof {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-2);
  margin: 14px 0 0;
}
/* ⚠ Inactive: the green dot only shows if .sc-social-proof is
   display:flex (with align-items:center; gap:8px). */
.sc-social-proof::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  flex: none;
}

.badge-preview {
  background: var(--surface-strong);
  border-radius: 18px;
  padding: 36px 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.badge-seal {
  width: 96px;
  height: 96px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border-radius: 50%;
  padding: 5px;
}
.badge-seal::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--surface-strong);
}
.badge-seal span {
  position: relative;
  z-index: 2;
  font-weight: 600;
  font-size: .875rem;
}
.badge-preview .lvl {
  font-family: var(--font-monospace);
  letter-spacing: .12em;
  font-size: 1.125rem;
  color: var(--gold);
  font-weight: 600;
}
.badge-preview p {
  margin: 0;
  font-size: 1rem;
  color: rgba(var(--ivory-rgb), .75);
  max-width: 280px;
}

.sc-notes {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.sc-note {
  font-size: 1rem;
  color: var(--fg-2);
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}
.sc-note strong {
  display: block;
  color: var(--fg);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

/* ---------- HOW IT WORKS ---------- */
.how-sponsoring {
  padding-top: 0;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}
.how-step {
  padding: 34px 30px;
  border-left: 1px solid var(--line);
}
.how-step:first-child {
  border-left: none;
}
.how-step .num {
  font-family: var(--font-monospace);
  font-size: 1rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.how-step h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--fg);
}
.how-step p {
  margin: 0;
  color: var(--fg-2);
  font-size: 1.125rem;
}

/* ---------- SECTION MODIFIERS ----------
   Combine with a section class (.content-section…):
   .section-alt           alternate background (--surface-alt)
   .section-center        centred head (eyebrow, title, lede) and centred .cta-actions
   .section-head-compact  tighter space under the head (e.g. before a logo wall)
   (.section-ink, navy background, is defined after the CTA section) */
.section-alt {
  background: var(--surface-alt);
}
.section-alt .section-head  .eyebrow {
  color: var(--accent-2-dark);
}
.section-center .section-head {
  text-align: center;
  margin-inline: auto;
}
.section-center .section-head .eyebrow {
  display: flex;
  justify-content: center;
}
.section-center .cta-actions {
  justify-content: center;
}
.section-head-compact {
  margin-bottom: 36px;
}

/* ---------- CARDS: COMPACT VARIANT + IDENTITY PARTS ----------
   See "CONTENT SECTION" above for the markup. .cards-compact is for dense,
   non-interactive cards (sponsors, team, events): badge on top, identity at the
   bottom, 4 columns by default (--cards-cols), 2 on tablets, 1 on phones. */
.cards-compact {
  --cards-cols: 4;
  gap: 18px;
}
.cards-compact .cards-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 150px;
  padding: 26px 22px;
  border-radius: 12px;
}
.cards-compact .cards-item:hover {
  transform: none;
  box-shadow: none;
}
.cards-item .tag {
  align-self: flex-start; /* don't stretch the badge to the card width */
}
.cards-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: .5625rem;
  margin-bottom: .625rem;
}
.dot {
  width: .5em;
  height: .5em;
/*  margin-top: .25em; */
  border-radius: .125em;
  display: inline-block;
  flex: none;
  background: var(--fg-2);
}
.dot-platinum { background: var(--platinum); }
.dot-silver   { background: var(--silver); }
.dot-gold     { background: var(--gold); }
.dot-bronze   { background: var(--bronze); }
.cards-sub {
  font-size: .875rem;
  letter-spacing: .08em;
  color: var(--fg-2);
  font-weight: 600;
}
.cards-media {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 3rem;
}

/* Logo wall (flex, centred, wraps: 1 / 2 / 5 per row) */
.logo-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.logo-link {
  display: flex;
  justify-content: center; /* flex items ignore text-align: keep the logo centred */
  align-items: center;
  width: 75%;
  min-height: 80px;
  text-align: center;
  padding: .5rem;
}
@media (min-width: 576px) {
  .logo-link {
    width: 50%;
    min-height: auto;
    padding: 1rem .25rem;
  }
}
@media (min-width: 992px) {
  .logo-link {
    width: 20%;
    margin: .5rem 0rem;
  }
}
.logo-link img {
  width: 85%;
  transform: scale(1);
  transition: all .2s ease-in 0s;
}
.logo-link img:hover {
  transform: scale(1.1);
}
@media (prefers-reduced-motion: reduce) {
  .logo-link img:hover {
    transform: none;
  }
}

/* ---------- PARTNERS (filterable) ---------- */
.partners-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 56px;
  align-items: start;
}
nav.partner-filter {
  position: sticky;
  top: 128px;
}
.partner-filter .label {
  font-family: var(--font-monospace);
  font-size: .75rem;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: 14px;
  display: block;
}
.partner-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: unset;
}
.partner-filter button {
  all: unset;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-2);
  padding: 10px 14px;
  border-radius: 8px;
  display: block;
  width: 100%;
  transition: background .15s ease, color .15s ease;
}
.partner-filter button:hover {
  background: var(--surface-alt);
  color: var(--fg);
}
.partner-filter button.active {
  background: var(--surface-strong);
  color: #fff;
}
/*
.partner-filter button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ink);
}
*/

.partner-group {
  margin-bottom: 52px;
}
.partner-group:last-child {
  margin-bottom: 0;
}
.partner-group h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1.375rem;
  color: var(--fg);
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
/*
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(21, 26, 46, .08);
}
*/
/* Badge inside a partner card: don't stretch it to the card width (flex column) */
.partner-card .tag {
  align-self: flex-start;
}
.partner-logo {
  font-weight: 800;
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.partner-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--fg-2);
  flex: 1;
}
/*
.partner-card .btn-small {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: .625rem .5rem;
  border-radius: 2rem;
  border: 1.5px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.partner-card .btn-small:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
*/
.partner-card.become-placeholder {
  background: transparent;
  border: 1.5px dashed var(--line);
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--fg-2);
  min-height: 150px;
  gap: 6px;
}
.partner-card.become-placeholder a {
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--fg-2);
}
.partner-card.become-placeholder a:hover {
  color: var(--accent-2-link);
}
.partner-card.become-placeholder .plus {
  font-family: sans-serif;
  font-size: 1.5rem;
  color: var(--accent-2);
}

/* ---------- CTA SECTION (generic: dark band with title, lede and actions) ----------
   <section class="cta-section">
     <div class="cta-inner">
       <h2>…</h2>
       <p class="cta-lede">…</p>
       <div class="cta-actions">
         <a class="btn btn-primary" href="…">…</a>
       </div>
       <p class="cta-note">…</p>          (any other <p> is left untouched)
     </div>
   </section>
   The section padding comes from the shared rule above. */
.cta-section {
  position: relative;
  text-align: center;
  color: #fff;
  background: var(--bg-radial-ink);
  overflow: hidden;
}
.cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  z-index: 2;
}
.cta-section h2 {
  margin-bottom: 1.125rem;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
}
.cta-lede {
  margin-bottom: 2.25rem;
  font-size: 1.25rem;
  color: rgba(var(--ivory-rgb), .75);
}

/* ---------- INK SECTION (modifier) ----------
   Navy background (--bg-radial-ink, same as the hero) in light AND dark mode,
   for a section at the bottom of the page. Add it next to the content class:
   <section class="content-section section-ink">
   It redefines the semantic colour variables, so cards, tags, links and quick
   links placed inside adapt on their own. Surfaces are darker than the
   background (not lighter) to keep text at >= 7:1 on the whole gradient. */
.section-ink {
  background: var(--bg-radial-ink);
  color: var(--paper);

  --bg: var(--ink);
  --surface: rgba(8, 13, 26, .35);
  --surface-alt: rgba(8, 13, 26, .55);
  --surface-strong: rgba(8, 13, 26, .70);
  --fg: var(--paper);
  --fg-2: rgba(250, 246, 239, .72);
  --line: rgba(250, 246, 239, .12);
  --accent-2: var(--gold);
  --accent-2-link: var(--gold);

  /* Links: same palette as the dark mode (>= 7:1 on the gradient) */
  --link-color-rgb: 165, 200, 255;
  --link-hover-color-rgb: 208, 226, 255;
  --link-visited-color-rgb: 212, 184, 255;
  --link-color: rgb(var(--link-color-rgb));
  --link-hover-color: rgb(var(--link-hover-color-rgb));
}

/* ---------- FOOTER ---------- */
.support-joomla-footer {
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--fg-2);
  font-size: 1rem;
  background: var(--bg);
}
.support-joomla-footer a {
  color: var(--accent-2-link);
  font-weight: 600;
  text-decoration: none;
}
.support-joomla-footer a:hover {
  text-decoration: underline;
}

/* ---------- RESPONSIVE (single set of breakpoints) ---------- */
@media (max-width: 1199.98px) {
  .partners-layout {
    grid-template-columns: 1fr;
  }
  nav.partner-filter {
    position: static;
    margin-inline: calc(-1 * var(--container-pad));
    /* The filter is a grid item: it must be a scroll container itself
       (min-width: auto => 0), otherwise the nowrap buttons stretch the
       grid track and the whole page overflows instead of the filter. */
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .partner-filter .label {
    padding-left: var(--container-pad);
  }
/*
  .partner-filter ul {
    flex-direction: row;
    gap: .5rem;
    padding-inline: var(--container-pad);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fg-2) var(--surface-alt);
    padding-bottom: .5rem;
  }
*/
  .partner-filter ul {
    display: flex;
    flex-direction: row;
    gap: .5rem;
    padding-inline: var(--container-pad);
    padding-bottom: .5rem;
    overflow-x: auto;
    
    /* Keeps your custom styling on Mac/Desktop */
    scrollbar-width: thin;
    scrollbar-color: var(--fg-2) var(--surface-alt);

    /* Adds a subtle fade on the right edge to hint at horizontal scrolling */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black var(--container-pad),
      black calc(100% - var(--container-pad)),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black var(--container-pad),
      black calc(100% - var(--container-pad)),
      transparent 100%
    );
  }

  .partner-filter button {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 991.98px) {
  .cards-grid,
  .how-grid,
  .sc-layout,
  .ledger-list,
  .ledger .container {
    grid-template-columns: 1fr;
  }
  .ledger .container {
    gap: 32px;
  }
  .tier-grid,
  .cards-compact,
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }
  .how-step {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .how-step:first-child {
    border-top: none;
  }
}

@media (max-width: 575.98px) {
  .callout-section .container {
    padding-left: 22px;
  }
  /* Buttons stay on one line and wrap when needed, like above 576px.
     Only .btn-xl is full width (see .btn-xl below), so it takes a line of its
     own. The alignment follows the section content. */
  :is(.cta-section, .text-center) .cta-actions {
    justify-content: center;
  }
  .text-start .cta-actions {
    justify-content: flex-start; /* explicit left alignment wins, even in .cta-section */
  }
  .hero-stats {
    gap: 24px 20px;
  }
  .tier-grid,
  .cards-compact,
  .partner-grid,
  .sc-cols {
    grid-template-columns: 1fr;
  }
  .community-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- DARK MODE EXTRAS ---------- */
@media (prefers-color-scheme: dark) {
  /* Subtle edge between the hero and the page */
  .hero {
    border-bottom: 1px solid rgba(var(--ivory-rgb), .08);
  }
}

/** END - Sponsoring / Supporters Club */


/* ==========================================================================
   5. SIDE MENUS, ANCHORS, TINYMCE ACCORDION
   ========================================================================== */

@media (min-width: 992px) {
  .container-sidebar-left .position-sticky,
  .container-sidebar-right .position-sticky {
    top: calc(94px + 3rem);
    overflow-y: auto;
    max-height: calc(100vh - 94px - 4.5rem);
    margin-bottom: 1.5rem;
  }
}

.mod-list .deeper a.nav-link {
  display: inline-block;
  width: calc(100% - 44px);
  border-right: none;
}
.mod-list .deeper .mod-menu__toggle-sub {
  display: inline-flex;
  width: 44px;
}
.mod-list li.deeper {
  border-right: var(--nav-tabs-border-width) solid var(--nav-tabs-border-color);
}
.mod-list li.active > a {
  color: var(--fg);
}

/* Scroll to anchor */
:root [id] {
  scroll-margin-top: 84px;
}

body:not(.itemid-1710) h2:not(:first-child):not(:is(.hero, .callout-section, .ledger, .packages, .supporters-club, .how, .content-section, .partners, .cta-section, .section-head, .section-ink) *) {
  margin-top: 2rem;
}

/* Article image width */
.left.item-image {
  padding-right: 0;
}

/*
   Details TinyMCE accordion
   Added by Cyril Reze - 10 September 2026
*/
details.mce-accordion {
  --accordion-color: var(--body-color);
  --accordion-bg: var(--body-bg);
  --accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
  --accordion-border-color: var(--border-color);
  --accordion-border-width: var(--border-width);
  --accordion-border-radius: var(--border-radius);
  --accordion-inner-border-radius: calc(var(--border-radius) - (var(--border-width)));
  --accordion-btn-padding-x: 1.25rem;
  --accordion-btn-padding-y: 1rem;
  --accordion-btn-color: var(--body-color);
  --accordion-btn-bg: var(--accordion-bg);
  --accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
  --accordion-btn-icon-width: 1.25rem;
  --accordion-btn-icon-transform: rotate(-180deg);
  --accordion-btn-icon-transition: transform .2s ease-in-out;
  --accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='rgb%285.2, 44, 101.2%29' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
  --accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
  --accordion-body-padding-x: 1.25rem;
  --accordion-body-padding-y: 1rem;
  --accordion-active-color: var(--primary-text-emphasis);
  --accordion-active-bg: var(--primary-bg-subtle);
  padding: var(--accordion-body-padding-y) var(--accordion-body-padding-x) 0;
  color: var(--accordion-color);
  background-color: var(--accordion-bg);
  border: var(--accordion-border-width) solid var(--accordion-border-color);
  overflow: visible; /* keeps the box-shadow from being clipped when closed */
}
details.mce-accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% + var(--accordion-body-padding-x) + var(--accordion-body-padding-x));
  margin: calc(-1 * var(--accordion-body-padding-y)) calc(-1 * var(--accordion-body-padding-x)) 0 calc(-1 * var(--accordion-body-padding-x));
  padding: var(--accordion-body-padding-y) var(--accordion-body-padding-x);
  font-size: 1rem;
  font-weight: bold;
  color: var(--accordion-btn-color);
  text-align: left;
  background-color: var(--accordion-btn-bg);
  border: 0;
  overflow-anchor: none;
}
details.mce-accordion summary::after {
  flex-shrink: 0;
  width: var(--accordion-btn-icon-width);
  height: var(--accordion-btn-icon-width);
  margin-left: auto;
  content: "";
  background-image: var(--accordion-btn-icon);
  background-repeat: no-repeat;
  background-size: var(--accordion-btn-icon-width);
}
details.mce-accordion summary:hover {
  z-index: 2;
}
details.mce-accordion summary:focus,
details.mce-accordion[open] > summary:focus {
  z-index: 3;
  outline: 0;
  box-shadow: var(--accordion-btn-focus-box-shadow);
}
details.mce-accordion[open] {
  padding-bottom: var(--accordion-body-padding-y);
}
details.mce-accordion[open] > summary {
  margin-bottom: var(--accordion-body-padding-y);
  color: var(--accordion-active-color);
  background-color: var(--accordion-active-bg);
  box-shadow: inset 0 calc(-1 * var(--accordion-border-width)) 0 var(--accordion-border-color);
}
details.mce-accordion[open] > summary::after {
  background-image: var(--accordion-btn-active-icon);
  transform: var(--accordion-btn-icon-transform);
}
details + details.mce-accordion:not(:first-of-type) {
  border-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
  details.mce-accordion summary {
    transition: var(--accordion-transition), margin .25s ease-in;
  }
  details.mce-accordion[open] > summary {
    transition: var(--accordion-transition), margin .25s ease-out;
  }
  details.mce-accordion summary::after {
    transition: var(--accordion-btn-icon-transition);
  }
  details.mce-accordion::details-content {
    display: block;
    opacity: 0;
    transition: opacity .5s ease, display .5s ease;
    transition-behavior: allow-discrete;
  }
  details.mce-accordion[open]::details-content {
    opacity: 1;
  }
}

@media (prefers-color-scheme: dark) {
  details.mce-accordion summary::after {
    --accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgb%28109.8, 168, 253.8%29'%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");
    --accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgb%28109.8, 168, 253.8%29'%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");
  }
}


/* ==========================================================================
   6. LEGACY 2017 / 2018 PAGES
   ========================================================================== */

/* ---------- AcyMailing ---------- */
.acyreceive input {
  float: left;
  margin-right: 5px;
}
.acy input {
  width: 90%;
}
.acyconsent input[type="checkbox"] {
  float: left;
  margin-right: 10px;
  margin-top: 2px;
}

/* Sponsor RSForm */
.sponsor-application {
  width: 60%;
  margin: 0 auto;
}
.sponsor-application .rsform-block {
  margin: 15px 0;
}
.sponsor-application .rsform-block.rsform-block-package {
  margin-bottom: 1.5rem;
}
.sponsor-application h2 {
  border-bottom: 1px solid #5091cd;
  margin: 2rem auto;
  padding: 1rem 0;
  text-transform: uppercase;
}
.sponsor-application input[type="text"],
.sponsor-application select {
  width: 65%;
}
.form2LinesLayout .formField label {
  float: left;
  text-align: left;
  width: 30%;
  margin-right: 5%;
}
.form2LinesLayout .rsform-block-message label {
  width: auto;
}
/* Consent: auto-width label, error on a new line */
.form2LinesLayout .formField.rsform-block-requestconsent label {
  width: auto;
}
.form2LinesLayout .formField.rsform-block-requestconsent .form-check-inline {
  width: 100%;
}
.com_rsform .formError,
.com_rsform .formRed {
  color: var(--danger);
}
.com_rsform .rsform-block-hcaptcha .formBody {
  float: none;
}

/* ---------- RESPONSIVE (legacy) ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .sponsor-application {
    width: 80%;
  }
}


@media (min-width: 576px) and (max-width: 767.98px) {
  .sponsor-application {
    width: 100%;
  }
  .sponsor-application textarea {
    width: 90%;
  }
  .form2LinesLayout .formField label {
    font-size: 100%;
    width: 25%;
  }
}

@media (max-width: 575.98px) {
  .sponsor-application {
    width: 100%;
  }
  .sponsor-application input[type="text"],
  .sponsor-application select,
  .sponsor-application textarea,
  #package {
    width: 90%;
    margin: 0;
  }
  .form2LinesLayout .formField label {
    float: none;
    width: 100%;
  }
  .sponsor-application .btngreensponsor {
    font-size: 14px;
    font-weight: bold;
    padding: 15px 7px;
  }
}


/* ==========================================================================
   8. JOOMLA THEME (brand, Cassiopeia hero, timeline, languages, shooting stars)
   ========================================================================== */

/* joomla-tab styles */

/* ---------- view="accordion" ---------- */
joomla-tab[view="accordion"] {
  border-radius: 0;
  box-shadow: none;
}
joomla-tab[view="accordion"] button {
  border-bottom: 1px solid var(--line);
}
joomla-tab[view="accordion"] > button {
  background-color: transparent;
  color: var(--fg);
}
joomla-tab[view="accordion"] > button:focus,
joomla-tab[view="accordion"] > button[aria-expanded="true"] {
  background-color: var(--surface-alt);
}
joomla-tab[view="accordion"] joomla-tab-element[active] {
  border-bottom: 1px solid var(--fg);
}

/* ---------- view="tabs" ---------- */
joomla-tab[view="tabs"] > div[role="tablist"] {
  background-color: transparent !important;
  border: 1px solid transparent; /* also resets border-image */
  border-bottom: 0;
  border-image: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 1.5rem;
  /* 4px padding keeps the focus ring from being clipped by overflow-y: hidden;
     the margin is reduced by the same 4px, so the layout is unchanged */
  margin: calc(1.5rem - 4px) 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
  white-space: nowrap;
}
joomla-tab button[role="tab"] {
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: .75rem;
}
joomla-tab button[role="tab"][aria-expanded="true"],
joomla-tab button[role="tab"][aria-selected="true"] {
  background-color: var(--surface-alt);
  background-image: none;
  border: 1px solid var(--fg);
  border-radius: .75rem;
  box-shadow: none;
}
joomla-tab button[role="tab"][aria-selected="false"]:hover,
joomla-tab button[role="tab"][aria-selected="false"]:focus {
  color: #fff;
  background-color: var(--surface-strong);
}
joomla-tab button[aria-expanded="true"]::after,
joomla-tab button[aria-selected="true"]::after {
  display: none;
}

/* ---------- panels (both views) ---------- */
joomla-tab > joomla-tab-element {
  background-color: transparent !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: none; /* the active panel is shown by joomla-tab-element[active] */
  padding: 0;
  position: relative;
}

/* ---------- tabs: edge-to-edge horizontal scroll on phones ----------
   Same principle as .partner-filter: the tab list bleeds to the screen edges
   (the container is full width below 768px) and gets its padding back, so the
   first / last tab line up with the content while the others scroll under the edges. */
@media (max-width: 991.98px) {
  joomla-tab[view="tabs"] > div[role="tablist"] {
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
    scroll-padding-inline: var(--container-pad);
    overscroll-behavior-x: contain; /* no browser back-swipe when reaching an edge */

    /* thin visible scrollbar: the scroll affordance for mouse users */
    scrollbar-width: thin;
    scrollbar-color: var(--fg-2) var(--surface-alt);

    /* subtle fade on both edges, inside the padding, to hint at the scroll */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black var(--container-pad),
      black calc(100% - var(--container-pad)),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black var(--container-pad),
      black calc(100% - var(--container-pad)),
      transparent 100%
    );
  }

  joomla-tab[view="tabs"] > div[role="tablist"] > button[role="tab"] {
    flex: none; /* tabs keep their width, the list scrolls instead of squeezing them */
  }
}

/* Container header */
.container-header {
  box-shadow: 0 2px 4px -2px #25304f;
}

/* --- Buttons --- */
.btn:not(.dropdown-toggle) {
  border-radius: 50rem;
}

.btn-lg {
  --btn-padding-x: 1rem;
  --btn-padding-y: .5rem;
  --btn-font-size: 1.125rem;
  --btn-font-weight: 500;
}
@media (min-width: 992px) {
  .btn-lg {
    --btn-padding-x: 1.5rem;
    --btn-padding-y: .75rem;
  }
}
.btn-xl {
  --btn-padding-x: 1.25rem;
  --btn-padding-y: 1rem;
  --btn-font-size: 1.25rem;
  --btn-font-weight: 500;
  border: 2px solid;
  border-color: inherit;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-xl {
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  }
  .btn-xl:hover {
    transform: translateY(-2px);
  }
}
@media (min-width: 992px) {
  .btn-xl {
    --btn-padding-x: 1.875rem;
    --btn-padding-y: 1rem;
  }
}
/* Full width on mobile: only .btn-xl */
@media (max-width: 575.98px) {
  .btn-xl {
    width: 100%;
  }
}

.btn-accent {
  --btn-font-weight: 700;
  background: var(--jorg-accent-color);
  color: #000;
  border-color: var(--jorg-accent-color);
}
.btn-accent:hover {
  background: rgb(255, 202.3, 44.2);
  color: #000;
  border-color: rgb(255, 199.2, 31.8);
}
.btn-accent.btn-xl {
  box-shadow: 0 6px 18px rgba(249, 165, 45, .28);
}
.btn-accent.btn-xl:hover {
  box-shadow: 0 10px 26px rgba(249, 165, 45, .38);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: rgba(var(--ivory-rgb), .45);
  }
  .btn-ghost:hover {
    background: rgba(var(--ivory-rgb), .08);
    border-color: rgba(var(--ivory-rgb), .4);
  }
}

.btn-ghost-dark {
  background: transparent;
  color: var(--paper);
  border-color: rgba(var(--ivory-rgb), .45);
}
.btn-ghost-dark:hover {
  background: rgba(var(--ivory-rgb), .08);
  border-color: rgba(var(--ivory-rgb), .4);
}

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-ghost-light:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ink);
  border-radius: 4px;
}

.btn {
  display: inline-block;
}
.btn:where(:not(.btn-sm, .btn-lg, .btn-xl)) {
  --btn-padding-x: .9375rem;
  --btn-padding-y: .5rem;
}
.btn-lg {
  --btn-padding-x: 1.4rem;
  --btn-padding-y: .75rem;
}

a.link-arrow::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.4em;
  vertical-align: -0.1em;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
a.button-arrow::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.4em;
  vertical-align: -0.15em;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11.25a.75.75 0 0 0 0 1.5h16v-1.5H4Z' fill='%23000' fill-opacity='.5'/%3E%3Cpath d='m14 6 6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* Only animate if the user has not requested reduced motion */
@media (prefers-reduced-motion: no-preference) {
  a.link-arrow::after,
  a.button-arrow::after {
    transition: transform 0.2s ease-out;
  }

  a.link-arrow:hover::after,
  a.link-arrow:focus-visible::after,
  a.button-arrow:hover::after,
  a.button-arrow:focus-visible::after {
    transform: translateX(0.3em);
  }
}

/* Horizontal list ul with dot separator */
.dot-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dot-list-start { justify-content: flex-start; }
.dot-list-end   { justify-content: flex-end; }

.dot-list li {
  display: flex;
  align-items: center;
}
  .dot-list.dot-list-compact {
    gap: 0.5rem 0;
  }
.dot-list-xl {
    gap: 0.5rem 1rem;
}
 .dot-list.dot-list-compact li::after {
    content: "";
    flex: none;
    width: 4px;
    height: 4px;
    margin-inline: .125rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
 }
@media only screen and (min-width: 390px) {
  .dot-list.dot-list-compact li::after {
    margin-inline: .25rem;
  }
}
@media (min-width: 992px) {
  .dot-list {
    gap: 0.5rem 0;
  }

  .dot-list li::after {
    content: "";
    flex: none;
    width: 4px;
    height: 4px;
    margin-inline: 1rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
  }
  .dot-list-xl li::after {
    width: 0;
    height: 0;
    margin-inline: .5rem;
}

  .dot-list.dot-list-compact li::after {
    margin-inline: .5rem;
  }
}
@media (min-width: 1200px) {
  .dot-list-xl li::after {
    width: 4px;
    height: 4px;
  }
}
.dot-list li:last-child::after {
    width: 0;
    height: 0;
}

.hero .dot-list {
  font-size: 1.125rem;
}

@media (max-width: 575px) {
  .hero.no-eyebrow {
    padding-top: 2.5rem;
  }
}

.breadcrumb {
  margin-bottom: var(--breadcrumb-margin-bottom);
}
.hero-inner {
  max-width: 100%;
}
.hero h1 {
  max-width: var(--measure-heading-sm);
}
.hero p.lede {
  max-width: var(--measure-lede);
}

@media (min-width: 992px) {
  .quick-links__label {
    text-wrap: nowrap;
  }
}

/* Smart Search - Finder */
:root {
  --cassiopeia-color-primary: #1c3358;
  --cassiopeia-color-hover: #101b31;
}
.mod-finder-modal__toggle {
  display: flex;
  gap: .5rem;
  font-size: inherit;
  background: none;
  border: 0;
  padding: .8125rem .9375rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  border: 1px solid transparent;
}
.mod-finder-modal__dialog {
  width: min(92vw, 640px);
  margin: 12vh auto auto;
  padding: 1rem 1.5rem 1.5rem;
  border: 0;
  border-radius: .875rem;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .3);
  overflow: visible;
  max-height: none;
}
.mod-finder-modal__label {
  display: block;
  margin-bottom: 1rem;
  padding-right: 3.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}
.mod-finder-modal__dialog .awesomplete {
  display: block;
  flex: 1 1 auto;
  width: 1%;
}
.mod-finder-modal__dialog .awesomplete > ul {
  z-index: 10;
  max-height: 50vh;
  overflow-y: auto;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
}
.mod-finder-modal__dialog::backdrop {
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
}
.mod-finder-modal__close {
  position: absolute;
  top: .25rem;
  right: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.mod-finder-modal__dialog .awesomplete { display: block; }

.mod-finder-modal__dialog .awesomplete > input {
  max-width: none;
}

/* Rounded input + button */
.mod-finder-modal__dialog .js-finder-search-query {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2rem 0 0 2rem;
  padding-left: 1.25rem;
}
.mod-finder-modal__dialog .js-finder-search-query:focus {
  background: var(--bg);
}
.mod-finder-modal__dialog .mod-finder__search > .btn {
  border: 1px solid var(--line);
  border-radius: 0 2rem 2rem 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.mod-finder-modal__dialog .awesomplete > ul {
  border-radius: 1rem;
  margin-top: .35rem;
  padding: .5em 0;
  overflow-y: auto;
}
.mod-finder-modal__dialog .awesomplete > ul > li {
  padding: .375em 1em;
}
.awesomplete > ul {
  background: var(--bg);
}
.awesomplete > ul > li {
  letter-spacing: .075em;
}
/*
.awesomplete > ul > li:hover {
  background: var(--surface-alt);
  color: var(--fg);
}
.awesomplete > ul > li[aria-selected="true"] {
  background: hsl(205, 40%, 30%);
}
*/
.awesomplete mark {
  padding: .1875em 0 .1875em .075em;
  margin: 0 .075em 0 0;
  letter-spacing: .075em;
  background: hsl(60, 100%, 45%);
}
.awesomplete li:hover mark {
  background: hsl(68, 100%, 45%);
}

.awesomplete li[aria-selected="true"] mark {
  background: hsl(86, 100%, 21%);
  color: inherit;
}
.form-control::placeholder {
  color: var(--fg-2);
}
.form-control:focus {
  color: var(--body-color);
  background-color: var(--body-bg);
  border-color: #8893aa;
  outline: 0;
  box-shadow: 0 0 0 .25rem var(--focus-ring);
}

/* Bootstrap 5.3 colour variables, alerts, system messages and pagination in dark mode.
   Light mode is left to Cassiopeia. Uses the same switch as the rest of the stylesheet
   (prefers-color-scheme) and the semantic variables (--surface, --surface-alt, --line,
   --fg, --fg-2, --bg) and link variables defined in jorg.css. */

@media (prefers-color-scheme: dark) {

  /* ---------- 1. Subtle theme colours (alerts, .bg-*-subtle, .text-*-emphasis, list-group variants)
     Bootstrap's own dark values. Text on background: 7.2:1 to 13:1 (AAA). ---------- */
  :root {
    --primary-text-emphasis: #6ea8fe;
    --secondary-text-emphasis: #a7acb1;
    --success-text-emphasis: #75b798;
    --info-text-emphasis: #6edff6;
    --warning-text-emphasis: #ffda6a;
    --danger-text-emphasis: #ea868f;
    --light-text-emphasis: #f8f9fa;
    --dark-text-emphasis: #dee2e6;

    --primary-bg-subtle: #031633;
    --secondary-bg-subtle: #161719;
    --success-bg-subtle: #051b11;
    --info-bg-subtle: #032830;
    --warning-bg-subtle: #332701;
    --danger-bg-subtle: #2c0b0e;
    --light-bg-subtle: #343a40;
    --dark-bg-subtle: #1a1d20;

    --primary-border-subtle: #084298;
    --secondary-border-subtle: #41464b;
    --success-border-subtle: #0f5132;
    --info-border-subtle: #087990;
    --warning-border-subtle: #997404;
    --danger-border-subtle: #842029;
    --light-border-subtle: #495057;
    --dark-border-subtle: #343a40;
  }

  /* ---------- 2. Close button of dismissible alerts, modals, toasts: its icon is black by default ---------- */
  .btn-close {
    filter: var(--btn-close-white-filter, invert(1) grayscale(100%) brightness(200%));
  }

  /* ---------- 3. Pagination ---------- */
  .pagination {
    --pagination-color: rgb(var(--link-color-rgb));
    --pagination-bg: var(--surface);
    --pagination-border-color: var(--line);
    --pagination-hover-color: rgb(var(--link-hover-color-rgb));
    --pagination-hover-bg: var(--surface-alt);
    --pagination-hover-border-color: var(--line);
    --pagination-focus-color: rgb(var(--link-hover-color-rgb));
    --pagination-focus-bg: var(--surface-alt);
    --pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--link-color-rgb), .25);
    /* current page: light blue background, dark text */
    --pagination-active-color: var(--bg);
    --pagination-active-bg: rgb(var(--link-color-rgb));
    --pagination-active-border-color: rgb(var(--link-color-rgb));
    --pagination-disabled-color: var(--fg-2);
    --pagination-disabled-bg: var(--surface-alt);
    --pagination-disabled-border-color: var(--line);
  }

  /* ---------- 4. System messages (<joomla-alert>): Cassiopeia hard-codes a white background.
     Selectors follow Cassiopeia's joomla-alert.css: check them against your Joomla version. ---------- */
  #system-message-container joomla-alert[type="success"],
  #system-message-container joomla-alert[type="message"],
  #system-message-container joomla-alert[type="info"],
  #system-message-container joomla-alert[type="notice"],
  #system-message-container joomla-alert[type="warning"],
  #system-message-container joomla-alert[type="error"],
  #system-message-container joomla-alert[type="danger"] {
    background-color: var(--surface);
    color: var(--fg);
  }
  #system-message-container joomla-alert[type="success"],
  #system-message-container joomla-alert[type="message"] {
    --alert-close-button: var(--success-text-emphasis);
  }
  #system-message-container joomla-alert[type="info"],
  #system-message-container joomla-alert[type="notice"] {
    --alert-close-button: var(--info-text-emphasis);
  }
  #system-message-container joomla-alert[type="warning"] {
    --alert-close-button: var(--warning-text-emphasis);
  }
  #system-message-container joomla-alert[type="error"],
  #system-message-container joomla-alert[type="danger"] {
    --alert-close-button: var(--danger-text-emphasis);
  }
}

/* ==========================================================================
   OPTIONAL accessibility improvements (both modes). Remove the comment marks to enable.

   A. Alerts: the box boundary is almost invisible against the page (1.03:1 to 1.7:1
      depending on the type) and the type is carried by the colour only. A 4px bar in
      the text colour (>= 7:1) makes the box visible. Add it to an alert with class
      "alert-accent", e.g. <div class="alert alert-warning alert-accent">, and keep a
      word or an icon in the message ("Warning: …") so that colour is not the only cue.
*/
   .alert-accent {
     border-inline-start: 4px solid var(--alert-color);
   }
/*
   B. Pagination: the default focus ring is the link colour at 25% opacity, which is too
      faint. A solid outline is clearly visible in both modes.
*/
   .page-link:focus-visible {
     outline: 2px solid rgb(var(--link-color-rgb));
     outline-offset: 2px;
     box-shadow: none;
   }
/*
   ========================================================================== */

/* Dark mode for form fields and form controls in Cassiopeia (no "bs-" prefix),
   including the fancy select (Choices.js).
   Light mode is left to Cassiopeia. Same switch as the rest of the stylesheet
   (prefers-color-scheme) and the semantic variables of jorg.css
   (--surface, --surface-alt, --line, --fg, --fg-2).
   Cassiopeia builds its form controls from Sass values and its own variables
   (--focus, --focus-shadow, --template-bg-dark-*), so the properties are overridden
   directly instead of relying on component variables. */

@media (prefers-color-scheme: dark) {

  :root {
    color-scheme: dark; /* native parts: date picker icon, spinners, scrollbars, select popup */

    --field-bg: var(--surface);
    --field-border: #74829a;   /* 4.0:1 on the field, 4.7:1 on the page (WCAG 1.4.11 asks for 3:1) */
    --field-accent: #a5c8ff;   /* focus, checked state */
    --field-valid: #75b798;    /* 6.7:1 on the field */
    --field-invalid: #ea868f;  /* 6.2:1 on the field */

    /* Variables Cassiopeia reads for the focus state */
    --focus: var(--field-accent);
    --focus-shadow: 0 0 0 .2rem rgba(165, 200, 255, .35);
  }

  /* ---------- Text fields, selects ---------- */
  .form-control,
  .form-select {
    color: var(--fg);
    background-color: var(--field-bg);
    border-color: var(--field-border);
  }
  .form-control::placeholder {
    color: var(--fg-2);
    opacity: 1;
  }
  .form-control:focus,
  .form-select:focus {
    color: var(--fg);
    background-color: var(--field-bg);
    border-color: var(--field-accent);
    box-shadow: var(--focus-shadow);
  }
  .form-control:disabled,
  .form-control[readonly],
  .form-select:disabled {
    color: var(--fg-2);
    background-color: var(--surface-alt);
    border-color: var(--line);
    opacity: 1;
  }

  /* Select arrow: the default one is a dark grey image.
     Drawn with two gradients instead of an image (no data URI, so nothing to load or
     decode), in the secondary text colour. The second rule removes it again for
     multiple selects and lists. The "select" prefix makes the first rule more specific
     than Cassiopeia's .form-select. */
  select.form-select {
    background-image:
      linear-gradient(45deg, transparent 50%, var(--fg-2) 50%),
      linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
    background-position:
      calc(100% - 1.25rem) 50%,
      calc(100% - 1rem) 50%;
    background-size: .3rem .3rem, .3rem .3rem;
    background-repeat: no-repeat;
  }
  select.form-select[multiple],
  select.form-select[size]:not([size="1"]) {
    background-image: none;
  }

  /* File input button */
  .form-control::file-selector-button {
    color: var(--fg);
    background-color: var(--surface-alt);
    border-color: var(--field-border);
  }
  .form-control:hover:not(:disabled):not([readonly])::file-selector-button {
    background-color: var(--surface);
  }

  /* Browser autofill (yellow or blue background by default) */
  .form-control:-webkit-autofill,
  .form-select:-webkit-autofill {
    -webkit-text-fill-color: var(--fg);
    caret-color: var(--fg);
    box-shadow: 0 0 0 1000px var(--field-bg) inset;
  }
  .form-control:-webkit-autofill:focus,
  .form-select:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px var(--field-bg) inset, var(--focus-shadow);
  }

  /* ---------- Checkboxes and radios ---------- */
  .form-check-input {
    background-color: var(--field-bg);
    border-color: var(--field-border);
  }
  .form-check-input:focus {
    border-color: var(--field-accent);
    box-shadow: var(--focus-shadow);
  }
  .form-check-input:checked,
  .form-check-input[type="checkbox"]:indeterminate {
    background-color: var(--field-accent);
    border-color: var(--field-accent);
  }
  /* Marks drawn in the page colour (the default white mark has no contrast on a light accent) */
  .form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230c1424' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
  }
  .form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%230c1424'/%3e%3c/svg%3e");
  }
  .form-check-input[type="checkbox"]:indeterminate {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230c1424' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
  }

  /* Switch handle */
  .form-switch .form-check-input:not(:checked) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23adb5bd'/%3e%3c/svg%3e");
  }
  .form-switch .form-check-input:not(:checked):focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23a5c8ff'/%3e%3c/svg%3e");
  }
  .form-switch .form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%230c1424'/%3e%3c/svg%3e");
  }

  /* ---------- Range ---------- */
  .form-range::-webkit-slider-runnable-track {
    background-color: var(--field-border);
  }
  .form-range::-moz-range-track {
    background-color: var(--field-border);
  }
  .form-range::-webkit-slider-thumb {
    background-color: var(--field-accent);
  }
  .form-range::-moz-range-thumb {
    background-color: var(--field-accent);
  }

  /* ---------- Input groups, help text ---------- */
  .input-group-text {
    color: var(--fg);
    background-color: var(--surface-alt);
    border-color: var(--field-border);
  }
  .form-text {
    color: var(--fg-2);
  }

  /* ---------- Validation (Bootstrap classes and Joomla's own: .invalid, aria-invalid) ---------- */
  .valid-feedback {
    color: var(--field-valid);
  }
  .invalid-feedback {
    color: var(--field-invalid);
  }
  .form-control.is-valid,
  .form-select.is-valid,
  .was-validated .form-control:valid,
  .was-validated .form-select:valid {
    border-color: var(--field-valid);
  }
  .form-control.is-invalid,
  .form-select.is-invalid,
  .form-control.invalid,
  .form-select.invalid,
  .form-control[aria-invalid="true"],
  .form-select[aria-invalid="true"],
  .was-validated .form-control:invalid,
  .was-validated .form-select:invalid {
    border-color: var(--field-invalid);
  }
  .form-control.is-invalid:focus,
  .form-select.is-invalid:focus,
  .form-control.invalid:focus,
  .form-select.invalid:focus,
  .form-control[aria-invalid="true"]:focus,
  .form-select[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 .2rem rgba(234, 134, 143, .35);
  }
  /* Required-field asterisk of Joomla labels */
  label .star {
    color: var(--field-invalid);
  }

  /* ---------- Fancy select: <joomla-field-fancy-select>, built on Choices.js.
     Selectors cover Choices 9 (Joomla 5) and 11 (Joomla 6): ".choices__list--dropdown" and
     ".choices__list[aria-expanded]". Each one starts with ".choices" so it is more specific
     than the library's own rules. ---------- */

  /* Closed field */
  .choices .choices__inner {
    color: var(--fg);
    background-color: var(--field-bg);
    border-color: var(--field-border);
  }
  .choices.is-focused .choices__inner,
  .choices.is-open .choices__inner {
    border-color: var(--field-accent);
  }
  .choices.is-focused .choices__inner {
    box-shadow: var(--focus-shadow);
  }
  .choices .choices__input {
    color: var(--fg);
    background-color: var(--field-bg);
  }
  .choices .choices__input::placeholder {
    color: var(--fg-2);
    opacity: 1;
  }
  .choices .choices__placeholder {
    color: var(--fg-2);
    opacity: 1;
  }

  /* Arrow of the single select (dark by default) */
  .choices[data-type*="select-one"]::after {
    border-color: var(--fg-2) transparent transparent;
  }
  .choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent var(--fg-2);
  }

  /* Selected items of a multiple select (tags) */
  .choices .choices__list--multiple .choices__item {
    color: var(--fg);
    background-color: var(--surface-alt);
    border-color: var(--field-border);
  }
  .choices .choices__list--multiple .choices__item.is-highlighted {
    background-color: var(--surface-strong);
    border-color: var(--field-accent);
  }
  .choices .choices__list--multiple .choices__item .choices__button {
    border-left-color: var(--field-border);
  }
  /* Clear button of the single select: black cross at low opacity by default */
  .choices[data-type*="select-one"] .choices__button {
    filter: invert(1);
    opacity: .75;
  }

  /* Dropdown */
  .choices .choices__list--dropdown,
  .choices .choices__list[aria-expanded] {
    color: var(--fg);
    background-color: var(--field-bg);
    border-color: var(--field-border);
  }
  .choices.is-open .choices__list--dropdown,
  .choices.is-open .choices__list[aria-expanded] {
    border-color: var(--field-accent);
  }
  .choices .choices__list--dropdown .choices__item,
  .choices .choices__list[aria-expanded] .choices__item {
    color: var(--fg);
  }
  /* Hover / keyboard highlight: a lighter background and a bar, so it is not shown by colour alone */
  .choices .choices__list--dropdown .choices__item--selectable.is-highlighted,
  .choices .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    color: var(--fg);
    background-color: var(--surface-strong);
    box-shadow: inset 3px 0 0 var(--field-accent);
  }
  [dir="rtl"] .choices .choices__list--dropdown .choices__item--selectable.is-highlighted,
  [dir="rtl"] .choices .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    box-shadow: inset -3px 0 0 var(--field-accent);
  }
  .choices .choices__list--dropdown .choices__item--choice.is-selected,
  .choices .choices__list[aria-expanded] .choices__item--choice.is-selected {
    background-color: var(--surface-alt);
  }
  .choices .choices__heading {
    color: var(--fg-2);
    border-bottom-color: var(--line);
  }
  .choices .choices__notice {
    color: var(--fg-2);
  }

  /* Disabled and invalid */
  .choices.is-disabled .choices__inner,
  .choices.is-disabled .choices__input {
    color: var(--fg-2);
    background-color: var(--surface-alt);
    border-color: var(--line);
  }
  .choices.is-disabled .choices__list--multiple .choices__item {
    color: var(--fg-2);
    background-color: var(--surface-alt);
    border-color: var(--line);
  }
  .choices.is-invalid .choices__inner {
    border-color: var(--field-invalid);
  }
}

/* ==========================================================================
   OPTIONAL accessibility improvement for LIGHT mode. Remove the comment marks to enable.

   Cassiopeia's default field border is a pale tint (about 1.8:1 on white), below the
   3:1 that WCAG 1.4.11 asks for the boundary of a field. This grey is 3.7:1 on white
   and 3.4:1 on the paper background.
*/
   .form-control,
   .form-select,
   .form-check-input,
   .input-group-text {
     border-color: #7a8699;
   }
/*
   ========================================================================== */


/* ==========================================================================
   Joomla.org Portal - Menu and footer
   ========================================================================== */

/* Joomla.org Portal Footer */
body > footer {
	background-color: #0e1e36;
	background-image: linear-gradient(to bottom,#14233f,#0e1120) !important;
	color: #fff;
}
.jorg-footer {
	margin: 0 auto;
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.jorg-footer.container {
	padding: 0 var(--container-pad);
}

.jorg-footer a {
	display: inline-block;
}
.jorg-footer a:not([class]) {
	text-decoration: none;
}
.jorg-footer a:not(.btn), .footer .btn-link {
	color: #88C8EC;
}
.jorg-footer a[target="_blank"].new-window::after,
.jorg-footer .new-window::after {
	content: "";
	display: inline-block;
	padding-inline-start: .5em;
	text-decoration: none;
	font-family: "Font Awesome 6 Free";
	font-size: 14px;
	font-weight: 600;
}
.jorg-footer a.link-accent {
	color: var(--jorg-accent-color);
}
.jorg-footer a:not(.btn):hover,
.jorg-footer a:not(.btn) > span:hover{
	text-decoration: underline;
	text-decoration-color: #f9a541;
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
	color: #fff;
}
.jorg-footer a:not(.btn):focus-visible {
	outline: unset;
	margin-left: -.25rem;
	padding-left: .25rem;
	margin-right: -.25rem;
	padding-right: .25rem;
	box-shadow: 0 0 0 .25rem rgba(117,190,233,.5);
}
.jorg-footer li a {
	padding-top: .25rem;
	padding-bottom: .25rem;
}
.jorg-footer h2,
.jorg-footer h3 {
	color: #fff;
}

.jorg-footer li a .fab {
	width: 20px;
	margin-right: .25rem;
}

.jorg-footer .block-links {
	border-left: 1px solid rgba(var(--ivory-rgb), .12);
}

/* Footer columns */
.jorg-footer ul.columns-1 {
	column-count: 1;
	column-gap: 20px;
}
.jorg-footer ul.columns-2 {
	column-count: 2;
	column-gap: 20px;
}
.jorg-footer ul.columns-3 {
	column-count: 3;
	column-gap: 20px;
}
@media (min-width: 768px) {
	.jorg-footer ul.columns-md-1 {
		column-count: 1;
		column-gap: 20px;
	}
	.jorg-footer ul.columns-md-2 {
		column-count: 2;
		column-gap: 20px;
	}
	.jorg-footer ul.columns-md-3 {
		column-count: 3;
		column-gap: 20px;
	}
}
@media (min-width: 1200px) {
	.jorg-footer ul.columns-xl-1 {
		column-count: 1;
		column-gap: 20px;
	}
	.jorg-footer ul.columns-xl-2 {
		column-count: 2;
		column-gap: 20px;
	}
	.jorg-footer ul.columns-xl-3 {
		column-count: 3;
		column-gap: 20px;
	}
}

/* Container for the bottom row */
.jorg-footer .footer-bottom {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 1rem 0;
}

.jorg-footer .join-us-container {
	margin: 1.5rem -.75rem 0;
}

.jorg-footer .partner-wrap {
	border-top: 1px solid rgba(var(--ivory-rgb), .12);
	border-bottom: 1px solid rgba(var(--ivory-rgb), .12);
}
.jorg-footer .partner-banner {
	background: rgba(255, 255, 255, .03);
	padding: 1rem 2rem;
	margin-left: -1rem;
	margin-right: -1rem;
	width: calc(100% + 2rem);
}

.jorg-footer .strapline {
	max-width: var(--measure-heading-sm);
	margin-top: 3rem;
	margin-bottom: 1.5rem;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--jorg-accent-color);
}
.jorg-footer img.rochen-logo {
	width: auto;
	max-width: 100%;
	height: 40px;
}
