:root {
  --primary: #2563eb;
  --primary-ink: #ffffff;
  --ink: #16202c;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #e6eaf0;
  --radius: 12px;
  --container: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-size: var(--base-size, 16px);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-heading, inherit); }
/* Form controls don't inherit fonts by default — keep the site font everywhere. */
button, input, select, textarea { font-family: inherit; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.site-header {
  /* Width/style are vars so the Template screen can turn the line off (0), make
     it thicker, or switch it to dashed/dotted/double. */
  border-bottom: var(--header-border-w, 1px) var(--header-border-style, solid) var(--header-border, var(--border));
  background: var(--header-bg, rgba(255,255,255,.85));
  backdrop-filter: blur(8px);
  z-index: 10;
}
.site-header[data-sticky="true"] { position: sticky; top: 0; }
.site-header--w-full .container, .site-footer--w-full .container { max-width: none; }
.site-header .inner { display: flex; align-items: center; gap: 20px; height: var(--header-height, 64px); }
.site-header .brand { font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--header-brand, var(--ink)); display: inline-flex; align-items: center; }
.site-header .brand-logo { height: var(--logo-h, 32px); width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-nav a { color: var(--nav-link, var(--muted)); font-size: 15px; }
.site-nav a:hover { color: var(--nav-hover, var(--ink)); }
/* Header menu items: every part is a var, so an untouched header keeps the
   plain-text look and one setting is enough to turn the items into boxes.
   Scoped to the header — the columns footer reuses .site-nav. */
.site-header .site-nav { gap: var(--nav-gap, 22px); }
.site-header .site-nav a {
  display: inline-flex; align-items: center;
  font-size: var(--nav-fs, 15px);
  font-weight: var(--nav-fw, inherit);
  text-transform: var(--nav-tt, none);
  letter-spacing: var(--nav-ls, normal);
  padding: var(--nav-pad-y, 0) var(--nav-pad-x, 0);
  border-radius: var(--nav-radius, 0);
  background: var(--nav-bg, transparent);
  border: var(--nav-bw, 0) var(--nav-bs, solid) var(--nav-bc, transparent);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.site-header .site-nav a:hover {
  color: var(--nav-hover, var(--ink));
  background: var(--nav-bg-hover, var(--nav-bg, transparent));
  border-color: var(--nav-bc-hover, var(--nav-bc, transparent));
}
.site-header .site-nav a[aria-current="page"] {
  color: var(--nav-active, var(--nav-hover, var(--ink)));
  background: var(--nav-bg-active, var(--nav-bg, transparent));
  border-color: var(--nav-bc-active, var(--nav-bc, transparent));
}
.nav-ic { display: inline-flex; vertical-align: -0.15em; margin-right: 7px; }
.nav-ic svg { width: 1em; height: 1em; }
.header-ctas { display: inline-flex; align-items: center; gap: 10px; }
.header-cta {
  display: inline-block; padding: 8px 16px; font-weight: 600; font-size: 14px;
  /* Follows the theme's button radius, like .btn does — 8px only when the
     theme has not set one. */
  border-radius: var(--theme-btn-radius, 8px);
  /* Per-button override → the theme's button colour → the theme's primary.
     Without the middle step, recolouring the theme's Primary button moved the
     block buttons (.btn) but left these on the bare primary colour. */
  --btn-fill: var(--btn-bg, var(--theme-btn-bg, var(--primary)));
  --btn-ink: var(--btn-text, var(--theme-btn-text, var(--primary-ink)));
  background: var(--btn-fill); color: var(--btn-ink);
  /* Do not transition background: a gradient fill is not interpolatable and
     flickers mid-transition; swap it instantly, fade only colour and shadow. */
  transition: color .15s ease, box-shadow .15s ease;
}
/* No hover colour set → keep the resting fill/ink (no colour flip). */
.header-cta:hover { background: var(--btn-hover-bg, var(--theme-btn-hbg, var(--btn-fill))); color: var(--btn-hover-text, var(--theme-btn-htext, var(--btn-ink))); }
.header-cta.header-cta--outline { --btn-fill: transparent; --btn-ink: var(--btn-text, var(--btn-line, var(--primary))); box-shadow: inset 0 0 0 1.5px var(--btn-line, var(--primary)); }
.header-cta.header-cta--outline:hover { background: var(--btn-hover-bg, var(--btn-line, var(--primary))); color: var(--btn-hover-text, #fff); }
.header-cta.header-cta--secondary { --btn-fill: var(--btn-bg, rgba(0,0,0,.06)); --btn-ink: var(--btn-text, var(--ink)); }
/* Optional icon / stacked layout / full-height / fixed-width header buttons */
.header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-align: center; }
.hbtn-ic { display: inline-flex; }
.hbtn-ic svg { width: 1.1em; height: 1.1em; }
.header-cta--icon-top { flex-direction: column; gap: 3px; }
.header-cta--icon-top .hbtn-ic svg { width: 1.4em; height: 1.4em; }
.header-cta--v-top { align-self: flex-start; }
.header-cta--v-bottom { align-self: flex-end; }
.center-top { align-items: stretch; }
.center-top .brand { align-self: center; }
.center-slot { align-items: center; }
.header-ctas { align-self: stretch; align-items: center; }

/* Mobile nav (≤768px) */
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; align-items: center; gap: 7px; }
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--mnav-icon, var(--nav-link, var(--ink))); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle-label { font-size: 13px; font-weight: 600; color: var(--mnav-icon, var(--nav-link, var(--ink))); }
.mobile-nav, .mobile-nav-backdrop, .mobile-nav-close { display: none; }
body.nav-lock { overflow: hidden; }

/* Header variants */
.site-header--logo-left-menu-right .inner { justify-content: space-between; }
.site-header--logo-left-menu-center-cta .site-nav { margin: 0 auto; }
.site-header--logo-center .inner { flex-direction: column; justify-content: center; gap: 12px; height: auto; padding: 16px 0; }
.site-header--logo-center .site-nav { justify-content: center; }
.center-top { display: flex; align-items: center; width: 100%; }
.center-top .brand { flex: 0 0 auto; }
.center-slot { flex: 1 1 0; display: flex; align-items: center; }
.center-slot--left { justify-content: flex-start; }
.center-slot--right { justify-content: flex-end; }
/* Menu split either side of a centered logo. The minmax(0,1fr) grid is what pins
   the logo to the page's centre line: a flex row would let the heavier half
   shove it off centre, and the halves are rarely even — the right one also
   carries the buttons. The 0 floor keeps the two tracks equal even when a side
   runs out of room, so the logo never drifts; the side wraps instead, and the
   bar grows to hold it rather than clipping what spilled. */
.site-header--logo-center-menu-split .inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: auto; min-height: var(--header-height, 64px);
}
.site-header--logo-center-menu-split .brand { justify-self: center; }
/* A tighter gap than the bar's own: it is all that separates the menu from the
   buttons beside it, and those two are what run out of room first. */
.split-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Both halves align inwards, so the menu reads as one run around the logo... */
.split-side--left { justify-content: flex-end; }
.split-side--right { justify-content: flex-start; }
/* ...while the buttons leave it and sit out at the bar's right edge. */
.split-side--right .header-ctas { margin-left: auto; }

/* Page loading indicator */
.page-loader {
  position: fixed; inset: 0; z-index: 999; display: flex; flex-direction: column; gap: 22px;
  align-items: center; justify-content: center; transition: opacity .4s ease;
}
/* The fill lives in ::before so its opacity never fades the indicator itself. */
.page-loader::before {
  content: ""; position: absolute; inset: 0;
  background: var(--loader-bg, var(--bg)); opacity: var(--loader-bg-opacity, 1);
}
.page-loader > * { position: relative; z-index: 1; }
.page-loader.done { opacity: 0; pointer-events: none; }
/* Companion indicators for the logo/icon variants */
.loader-media { position: relative; width: fit-content; display: grid; place-items: center; }
.loader-media--ring { aspect-ratio: 1; padding: 18px; }
.loader-ring {
  position: absolute; inset: 0; border-radius: 999px;
  border: 3px solid color-mix(in srgb, var(--loader-accent, var(--primary)) 20%, transparent);
  border-top-color: var(--loader-accent, var(--primary));
  animation: loader-spin .9s linear infinite;
}
.loader-spinner--sm { width: 30px; height: 30px; border-width: 3px; }
.loader-dots--sm span { width: 9px; height: 9px; }
.loader-minibar { position: relative; width: 150px; height: 4px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--loader-accent, var(--primary)) 18%, transparent); }
.loader-minibar::before { content: ""; position: absolute; left: -40%; width: 40%; height: 100%; border-radius: 999px; background: var(--loader-accent, var(--primary)); animation: loader-mini 1.1s ease-in-out infinite; }
@keyframes loader-mini { to { left: 100%; } }
.loader-spinner {
  width: 46px; height: 46px; border-radius: 999px;
  border: 4px solid color-mix(in srgb, var(--loader-accent, var(--primary)) 20%, transparent);
  border-top-color: var(--loader-accent, var(--primary));
  animation: loader-spin .8s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
.loader-dots { display: flex; gap: 10px; }
.loader-dots span { width: 12px; height: 12px; border-radius: 999px; background: var(--loader-accent, var(--primary)); animation: loader-bounce 1s ease-in-out infinite; }
.loader-dots span:nth-child(2) { animation-delay: .15s; }
.loader-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes loader-bounce { 0%,100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-10px); opacity: 1; } }
.loader-logo { height: 56px; width: auto; animation: loader-pulse 1.2s ease-in-out infinite; }
.loader-icon { height: 64px; width: 64px; object-fit: contain; border-radius: 14px; animation: loader-pulse 1.2s ease-in-out infinite; }
.loader-brand { font-size: 26px; font-weight: 800; color: var(--loader-accent, var(--primary)); animation: loader-pulse 1.2s ease-in-out infinite; }
@keyframes loader-pulse { 0%,100% { opacity: .45; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
/* Bar variant: slim indeterminate bar at the very top; page stays visible. */
.page-loader-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999; overflow: hidden; transition: opacity .3s ease; }
.page-loader-bar.done { opacity: 0; pointer-events: none; }
.page-loader-bar .bar-inner { height: 100%; width: 35%; background: var(--loader-accent, var(--primary)); border-radius: 3px; animation: loader-bar 1.1s ease-in-out infinite; }
@keyframes loader-bar { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

/* Floating contact buttons + back-to-top */
.float-stack { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-stack--left { right: auto; left: 18px; }
/* ---- Sidebar rail ---- */
.site-sidebar { position: fixed; top: var(--sb-top, 64px); bottom: 0; left: 0; width: var(--sb-w, 96px); z-index: 8; overflow-y: auto; background: var(--sb-bg, var(--surface)); border-right: 1px solid var(--sb-border, var(--border)); padding: 12px 8px; display: flex; flex-direction: column; }
.sb-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sb-btns--bottom { margin-top: auto; position: sticky; bottom: -12px; padding: 10px 0 12px; background: var(--sb-bg, var(--surface)); border-top: 1px solid var(--sb-border, var(--border)); }
.sb-btn { width: 100%; padding: 9px 6px; border-radius: 9px; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.site-sidebar--right { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--sb-border, var(--border)); }
.sb-links { display: flex; flex-direction: column; gap: 4px; }
.sb-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 10px; color: var(--sb-text, var(--nav-link, var(--muted))); font-size: 12px; font-weight: 600; text-align: center; text-decoration: none; }
.sb-link:hover { color: var(--sb-hover, var(--ink)); background: rgba(127,127,127,.12); }
.sb-ic { display: inline-flex; color: var(--sb-icon, var(--primary)); }
.sb-ic svg { width: 22px; height: 22px; }
body.has-sb--left { padding-left: var(--sb-w, 96px); }
body.has-sb--right { padding-right: var(--sb-w, 96px); }
/* Header + announcement bar span the full viewport — the rail only claims the
 * area below the header, so they break out of the body's side padding. */
body.has-sb--left .site-header, body.has-sb--left .announce-bar { margin-left: calc(var(--sb-w, 96px) * -1); }
body.has-sb--right .site-header, body.has-sb--right .announce-bar { margin-right: calc(var(--sb-w, 96px) * -1); }
.float-btn { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; color: #fff; border: 0; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.28); transition: transform .15s ease; }
.float-btn:hover { transform: translateY(-2px); }
.float-btn svg { width: 22px; height: 22px; }
.back-top { background: var(--surface); color: var(--ink); border: 1px solid var(--border); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .15s ease; }
.back-top.show { opacity: 1; pointer-events: auto; }

/* Announcement bar (above the header) */
.announce-bar { background: var(--primary); color: var(--primary-ink); font-size: 13px; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; text-align: center; }
.announce-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.site-footer { border-top: 1px solid var(--footer-border, var(--border)); color: var(--footer-color, var(--muted)); background: var(--footer-bg, transparent); font-size: 14px; }
.site-footer .inner { padding: var(--footer-pad, 28px) 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.site-footer .footer-copy { color: var(--footer-color, var(--muted)); }

/* Rich footer (brand + columns + payments + bottom bar) */
.site-footer--rich { padding: var(--footer-pad, 48px) 0 0; }
/* auto-fit can't be combined with an fr track (invalid CSS, the whole rule is
   dropped) — the renderer passes the real column count instead. */
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(var(--footer-cols, 3), minmax(0, 1fr)); gap: 36px; padding-bottom: 32px; }
.footer-grid--no-cols { grid-template-columns: 1fr; }
.footer-logo { height: 40px; width: auto; }
.footer-name { font-weight: 700; font-size: 18px; color: var(--ink); }
.footer-desc { margin: 12px 0 0; font-size: 13px; line-height: 1.6; max-width: 320px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--footer-border, var(--border)); color: var(--footer-color, var(--muted)); transition: color .15s ease, border-color .15s ease; }
.footer-social:hover { color: var(--primary); border-color: var(--primary); }
.footer-social svg { width: 15px; height: 15px; }
.footer-col-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  background: none; border: 0; padding: 0; text-align: left; cursor: default;
  font-weight: 700; font-size: 14px; color: var(--footer-col-title, var(--footer-heading, var(--ink))); margin-bottom: 12px;
}
.footer-col-title .fc-chev { width: 16px; height: 16px; display: none; transition: transform .25s ease; }
.footer-col-links { display: grid; gap: 8px; }
.footer-col-links a { color: var(--footer-col-link, var(--nav-link, var(--muted))); font-size: 13px; }
.footer-col-links a:hover { color: var(--footer-col-hover, var(--nav-hover, var(--ink))); }
.footer-payments { border-top: 1px solid var(--footer-border, var(--border)); padding: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.footer-payments-title { font-size: 12px; }
.footer-payments-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-payment { height: 26px; width: auto; border-radius: 999px; }
.footer-responsible { border-top: 1px solid var(--footer-border, var(--border)); padding: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.footer-responsible-title { font-size: 12px; }
.footer-responsible-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-responsible-logo { height: 26px; width: auto; }
/* The bottom-bar note, with its optional icon sitting on the text baseline. */
.footer-note { display: inline-flex; align-items: center; gap: 6px; }
.footer-note-ic { display: inline-flex; flex: none; }
.footer-note-ic svg { width: 18px; height: 18px; }
/* Icon on the right: reverse the row rather than move it in the markup, so the
   text still comes first for a screen reader. */
.footer-note--ic-right { flex-direction: row-reverse; }

/* --- The two footer logo rows: alignment, size and treatment, chosen per site
   in Template → Footer. Both rows share these so they behave identically. --- */
.frow--left { justify-content: flex-start; }
.frow--center { justify-content: center; }
.frow--right { justify-content: flex-end; }
.ftitle--left { text-align: left; }
.ftitle--center { text-align: center; }
.ftitle--right { text-align: right; }
.fimg--sm { height: 20px; }
.fimg--md { height: 26px; }
.fimg--lg { height: 34px; }
/* content-box keeps the logo itself at the chosen height while the tile grows. */
.fimg--card {
  box-sizing: content-box; padding: 5px 9px; border-radius: 10px;
  background: var(--footer-logo-tile, rgba(255, 255, 255, .07));
  border: 1px solid var(--footer-border, var(--border));
}
.fimg--mono { filter: grayscale(1); opacity: .68; transition: filter .2s ease, opacity .2s ease; }
.fimg--mono:hover { filter: none; opacity: 1; }
.footer-bottom { border-top: 1px solid var(--footer-border, var(--border)); padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }
@media (max-width: 768px) {

  /* --- Header: desktop nav hides; hamburger shows --- */
  .site-nav, .site-header .header-ctas { display: none; }
  .nav-toggle { display: flex; }
  .site-header--logo-center .inner { flex-direction: row; justify-content: flex-start; gap: 12px; height: var(--header-height, 60px); padding: 0; }
  /* The split header folds back to a plain bar: display:contents dissolves the
     two wrappers so the brand, the (kept) buttons and the toggle lay themselves
     out exactly like every other variant's. */
  .site-header--logo-center-menu-split .inner { display: flex; gap: 12px; }
  .site-header--logo-center-menu-split .split-side { display: contents; }
  .site-header--logo-center-menu-split .header-ctas { margin-left: 0; }

  .mobile-nav { display: block; }
  .mobile-nav-links { display: grid; }
  .mobile-nav-links a { padding: 13px 24px; font-size: 15px; color: var(--mnav-text, var(--nav-link, var(--ink))); border-bottom: 1px solid var(--mnav-border, var(--header-border, var(--border))); }
  .mobile-nav-links a:hover, .mobile-nav-links a:active { color: var(--mnav-text-hover, var(--mnav-text, var(--nav-hover, var(--ink)))); }
  .mobile-nav-ctas { display: grid; gap: 10px; padding: 16px 24px 20px; }
  .mobile-nav-ctas .header-cta { text-align: center; }

  /* Slide-down: expands beneath the header */
  .mobile-nav--dropdown { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--mnav-bg, var(--header-bg, var(--bg))); backdrop-filter: blur(8px); }
  .mobile-nav--dropdown.open { max-height: 80vh; overflow-y: auto; }

  /* Drawer: slides in from the right over a backdrop */
  .mobile-nav--drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(78vw, 320px); background: var(--mnav-bg, var(--bg)); transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; padding-top: 52px; box-shadow: -18px 0 50px rgba(0,0,0,.25); }
  .mobile-nav--drawer.open { transform: none; }

  /* Fullscreen overlay */
  .mobile-nav--fullscreen { position: fixed; inset: 0; z-index: 120; background: var(--mnav-bg, var(--bg)); opacity: 0; pointer-events: none; transition: opacity .25s ease; display: flex; flex-direction: column; justify-content: center; }
  .mobile-nav--fullscreen.open { opacity: 1; pointer-events: auto; }
  .mobile-nav--fullscreen .mobile-nav-links a { border: 0; text-align: center; font-size: 20px; font-weight: 600; padding: 14px 24px; }
  .mobile-nav--fullscreen .mobile-nav-ctas { padding: 22px 40px; }

  .mobile-nav-backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .mobile-nav-backdrop.show { opacity: 1; pointer-events: auto; }
  .mobile-nav-close { display: flex; position: absolute; top: 10px; right: 12px; z-index: 1; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--mnav-text, var(--nav-link, var(--ink))); font-size: 18px; cursor: pointer; }

  /* Site logo repeated at the top of an overlay menu (drawer/fullscreen) */
  .mobile-nav-brand { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 56px 8px 24px; font-size: 17px; font-weight: 700; color: var(--mnav-text, var(--nav-link, var(--ink))); border-bottom: 1px solid var(--mnav-border, var(--header-border, var(--border))); }
  .mobile-nav-brand img { height: var(--logo-h, 32px); width: auto; max-width: 100%; display: block; }
  .mobile-nav--drawer.mobile-nav--brand { padding-top: 0; }
  .mobile-nav--fullscreen .mobile-nav-brand { position: absolute; top: 0; left: 0; right: 0; justify-content: center; padding: 8px 56px; }

  /* The footer's text repeated at the bottom of an overlay menu */
  .mobile-nav-note { margin: 0; padding: 14px 24px 20px; font-size: 12px; line-height: 1.5; text-align: center; color: var(--mnav-text, var(--nav-link, var(--ink))); opacity: .7; }
  .mobile-nav--drawer .mobile-nav-note { border-top: 1px solid var(--mnav-border, var(--header-border, var(--border))); margin-top: 8px; }
  .mobile-nav--fullscreen .mobile-nav-note { position: absolute; left: 0; right: 0; bottom: 0; }


  /* --- Footer mobile layouts --- */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc { max-width: none; }

  .site-footer--m-stacked .footer-grid { grid-template-columns: 1fr; }

  .site-footer--m-compact .footer-col { display: none; }
  .site-footer--m-compact .footer-grid { grid-template-columns: 1fr; padding-bottom: 8px; }

  .site-footer--m-accordion .footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 20px; }
  .site-footer--m-accordion .footer-col { border-top: 1px solid var(--footer-border, var(--border)); }
  .site-footer--m-accordion .footer-col-title { margin: 0; padding: 14px 0; cursor: pointer; }
  .site-footer--m-accordion .footer-col-title .fc-chev { display: block; }
  .site-footer--m-accordion .footer-col.open .footer-col-title .fc-chev { transform: rotate(180deg); }
  .site-footer--m-accordion .footer-col-links { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .site-footer--m-accordion .footer-col.open .footer-col-links { max-height: 420px; padding-bottom: 14px; }
  .site-footer--m-accordion .footer-brand { padding-bottom: 20px; }

  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .container { padding: 0 12px; }
}
/* Footer variants */
.site-footer--columns .inner { align-items: flex-start; }
.site-footer--columns .site-nav { display: block; columns: 3; column-gap: 40px; width: 100%; }
.site-footer--columns .site-nav a { display: block; margin-bottom: 8px; }
.site-footer--minimal .inner { padding: 18px 0; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--theme-btn-radius, 10px);
  background: var(--theme-btn-bg, var(--primary)); color: var(--theme-btn-text, var(--primary-ink)); font-weight: 600;
}
.btn .btn-ic { display: inline-flex; align-items: center; margin-right: 8px; vertical-align: -0.18em; }
.btn .btn-ic svg { width: 1.1em; height: 1.1em; }
.btn:hover {
  filter: brightness(.97);
  background: var(--theme-btn-hbg, var(--theme-btn-bg, var(--primary)));
  color: var(--theme-btn-htext, var(--theme-btn-text, var(--primary-ink)));
}
.btn--secondary { background: rgba(0,0,0,.06); color: var(--ink); }
.btn--outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-buttons .btn { transition: color .15s ease, box-shadow .15s ease; }
/* Per-button hover (only when a hover colour is set); others keep the default. */
.cta-buttons .btn[data-hover]:hover { background: var(--cbtn-hbg, var(--primary)); color: var(--cbtn-htext, var(--primary-ink)); filter: none; }

/* Single image */
.block--single-image figure { margin: 0; }
.block--single-image .single-image { width: 100%; border-radius: var(--img-radius, 12px); }
.block--single-image figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Video (Single video / Video + text). The frame owns the shape so a file, an
   embed and the cover image are interchangeable inside it — the player is
   absolutely positioned, and the ratio holds the space before it loads, so
   nothing on the page moves when it does. */
.video-frame {
  position: relative; width: 100%; overflow: hidden;
  aspect-ratio: var(--video-ratio, 16 / 9);
  border-radius: var(--img-radius, 12px);
  background: #000;
}
.video-frame > video, .video-frame > iframe, .video-frame > .video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
/* contain, not cover: the frame ratio is the operator's choice and the
   video's is the file's — cropping the picture to fit is never the right
   answer, letterboxing it is. Identical when the two agree. */
.video-frame > video { object-fit: contain; background: #000; }
.block--single-video figure { margin: 0; }
.block--single-video figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
/* Cover image standing in for an embed until it is clicked. */
.video-facade {
  padding: 0; cursor: pointer; background-color: #000;
  background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
}
/* It is an <a>, so the theme's link colour would otherwise underline it. */
.video-facade, .video-facade:hover { text-decoration: none; }
.video-facade::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.28); transition: background .2s ease;
}
.video-facade:hover::after { background: rgba(0,0,0,.14); }
.video-play {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 68px; height: 48px; margin: -24px 0 0 -34px;
  border-radius: 12px; background: rgba(0,0,0,.65);
  transition: background .2s ease, transform .2s ease;
}
/* The triangle is drawn from borders — no asset, no icon dependency. */
.video-play::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  margin: -9px 0 0 -6px; border-style: solid;
  border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-play { background: var(--primary); transform: scale(1.06); }
.block--videotext .split__media { min-width: 0; }

/* Block design (generic per-block Style: width, background image, padding) */
.block-design[data-width="full"] .container { max-width: none; }
/* Per-side padding overrides the block's baked-in padding (vertical on .block,
   horizontal gutter on .container). Only the sides the user set are emitted. */
.block-design[data-pt] > .block { padding-top: var(--pt); }
.block-design[data-pb] > .block { padding-bottom: var(--pb); }
.block-design[data-pl] .container { padding-left: var(--pl); }
.block-design[data-pr] .container { padding-right: var(--pr); }
@media (max-width: 768px) {
  .block-design[data-pt-m] > .block { padding-top: var(--pt-m); }
  .block-design[data-pb-m] > .block { padding-bottom: var(--pb-m); }
  .block-design[data-pl-m] .container { padding-left: var(--pl-m); }
  .block-design[data-pr-m] .container { padding-right: var(--pr-m); }
}
/* Background image lives in a ::before overlay so its opacity never fades the
   block's content. --block-bg-opacity defaults to 1 (fully opaque). */
/* Per-block screen visibility (Setting tab). Bands meet at the stylesheet's own
   mobile breakpoint, so "mobile" here means the same 768px as everywhere else. */
@media (max-width: 768px) { .block-design[data-hide-m] { display: none; } }
@media (min-width: 769px) and (max-width: 1024px) { .block-design[data-hide-t] { display: none; } }
@media (min-width: 1025px) { .block-design[data-hide-d] { display: none; } }

.block-design[data-bg="full"] { position: relative; }
.block-design[data-bg="full"] > * { position: relative; z-index: 1; }
.block-design[data-bg="full"]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--block-bg); background-size: cover; background-position: center;
  opacity: var(--block-bg-opacity, 1);
}
.block-design[data-bg="contained"] .container { position: relative; }
.block-design[data-bg="contained"] .container > * { position: relative; z-index: 1; }
.block-design[data-bg="contained"] .container::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: 16px;
  background-image: var(--block-bg); background-size: cover; background-position: center;
  opacity: var(--block-bg-opacity, 1);
}

/* Page header (breadcrumb + title + description) */
.block--page-header { padding: 52px 0; }
.block--page-header.ph--center { text-align: center; }
.ph-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ph-crumbs a { color: inherit; transition: color .15s ease; }
.ph-crumbs a:hover { color: var(--primary); }
.ph-current { color: var(--ink); font-weight: 600; }
.ph-sep { margin: 0 9px; opacity: .55; }
.ph-title { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.ph-desc { margin: 12px 0 0; font-size: 17px; color: var(--muted); max-width: 760px; }
.ph--center .ph-desc { margin-left: auto; margin-right: auto; }

/* Section eyebrow pill (reusable) */
.section-eyebrow {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
}

/* Cards */
/* Shared by the Cards and Articles blocks */
.cards-head { text-align: center; margin-bottom: 32px; }
.cards-heading { font-size: clamp(24px, 4vw, 36px); margin: 10px 0 8px; }
.cards-sub { color: var(--muted); max-width: 640px; margin: 0 auto; }
.cards-grid { display: grid; grid-template-columns: repeat(var(--cols,3), 1fr); gap: 20px; }
.ucard { display: flex; flex-direction: column; position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
a.ucard { text-decoration: none; color: inherit; transition: transform .18s ease, border-color .18s ease; }
a.ucard:hover { transform: translateY(-3px); border-color: var(--primary); }
.ucard-badge {
  position: absolute; top: 10px; right: 10px; z-index: 1; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: var(--primary); color: var(--primary-ink);
}
.ucard-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ucard-icon { padding: 20px 16px 0; color: var(--primary); }
.ucard-icon svg { width: 40px; height: 40px; display: inline-block; }
.ucard-body { padding: 16px; }
.ucard-body h3 { margin: 0 0 6px; font-size: 17px; }
.ucard-body p { margin: 0; color: var(--muted); font-size: 14px; }
/* Media position (left / right put media beside the text) */
.ucard--left, .ucard--right { flex-direction: row; align-items: flex-start; }
.ucard--right { flex-direction: row-reverse; }
.ucard--left .ucard-img, .ucard--right .ucard-img { width: 88px; height: 88px; aspect-ratio: 1; flex: 0 0 auto; margin: 14px; border-radius: 10px; }
/* "Full image" fit — no crop; the image keeps its natural ratio and the card grows. */
.ucard-img.ucard-img--full { aspect-ratio: auto; height: auto; }
.ucard--left .ucard-img.ucard-img--full, .ucard--right .ucard-img.ucard-img--full { height: auto; aspect-ratio: auto; }
.ucard--left .ucard-icon, .ucard--right .ucard-icon { padding: 18px 0 0 18px; }
.ucard--right .ucard-icon { padding: 18px 18px 0 0; }
.ucard--left .ucard-body, .ucard--right .ucard-body { flex: 1 1 auto; }
/* Text alignment */
.block--cards[data-align="center"] .ucard-body, .block--cards[data-align="center"] .ucard-icon { text-align: center; }
.block--cards[data-align="right"] .ucard-body, .block--cards[data-align="right"] .ucard-icon { text-align: right; }
/* Shadow / glow presets */
.ucard--shadow-soft { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ucard--shadow-medium { box-shadow: 0 8px 20px -6px rgba(0,0,0,.15); }
.ucard--shadow-strong { box-shadow: 0 16px 40px -8px rgba(0,0,0,.28); }
/* Cards marquee: the same cards scrolling forever. Each card takes the same
   share of the container a grid column would, so switching layout keeps the
   sizing; the track holds two identical sets and shifts by half its width. */
.cards-marquee { overflow: hidden; }
.cards-track { display: flex; width: max-content; animation: cards-marquee linear infinite; }
.cards-set { display: flex; gap: 20px; padding-right: 20px; flex: 0 0 auto; }
/* One card = the share a grid column would get: the container's width (capped
   by the viewport minus its gutters), less the gaps, divided by the columns. */
.cards-set > * { flex: 0 0 auto; width: calc((min(var(--container, 1080px), 100vw - 48px) - (var(--cols,3) - 1) * 20px) / var(--cols,3)); }
.cards-marquee--pause .cards-track:hover { animation-play-state: paused; }
/* A visitor who asked for less motion gets a static row rather than a loop. */
@media (prefers-reduced-motion: reduce){ .cards-track { animation: none; } }
@keyframes cards-marquee { to { transform: translateX(-50%); } }

@media (max-width: 768px){ .cards-grid { grid-template-columns: repeat(var(--cols-m, 2), 1fr); gap: 14px; } }
@media (max-width: 768px){ .cards-set { gap: 14px; padding-right: 14px; } .cards-set > * { width: calc((100vw - 48px - (var(--cols-m, 2) - 1) * 14px) / var(--cols-m, 2)); } }
@media (max-width: 480px){ .cards-grid { grid-template-columns: repeat(var(--cols-m, 1), 1fr); } }

/* Step list */
.block--steps .steps-heading { text-align: center; font-size: clamp(24px, 4vw, 40px); margin: 0 0 10px; }
.block--steps .steps-sub { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 640px; }
.block--steps .steps { display: flex; gap: var(--step-gap, 14px); align-items: stretch; }
.block--steps .step {
  flex: 1 1 0; min-width: 0; position: relative; text-align: center; padding: 28px 18px;
  border: 1px solid var(--step-border, var(--border)); border-radius: 16px;
  background: var(--step-card-bg, var(--surface)); transition: border-color .3s ease, box-shadow .3s ease;
}
/* Connector: a line from this circle's centre to the next one's, behind the circles. */
.block--steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 47px; left: 50%; width: calc(100% + var(--step-gap, 14px));
  height: 2px; background: var(--step-connector, var(--border)); z-index: 0; transition: background .3s ease;
}
.block--steps .step-num {
  position: relative; z-index: 1; width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  background: var(--step-circle, var(--surface)); color: var(--step-circle-text, var(--muted));
  border: 1px solid var(--step-border, var(--border)); transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.block--steps .step-title { color: var(--step-title, var(--ink)); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.block--steps .step-text { color: var(--step-text, var(--muted)); font-size: 14px; line-height: 1.5; }
/* Active + done (progress) states */
.block--steps .step.active {
  background: var(--step-active-card-bg, var(--step-card-bg, var(--surface)));
  border-color: var(--step-active-card-border, var(--step-active, var(--primary)));
  box-shadow: 0 0 0 1px var(--step-active-card-border, var(--step-active, var(--primary))), 0 16px 40px -18px var(--step-active, var(--primary));
}
.block--steps .step.active .step-num, .block--steps .step.done .step-num {
  background: var(--step-active, var(--primary)); color: var(--step-active-text, #fff); border-color: transparent;
}
.block--steps .step.active .step-num { box-shadow: 0 0 18px -2px var(--step-active, var(--primary)); }
.block--steps .step.done::after { background: var(--step-active, var(--primary)); }
/* Pulse animation (CSS only, on the active circle) */
.block--steps .steps--anim-pulse .step.active .step-num { animation: step-pulse 1.4s ease-in-out infinite; }
@keyframes step-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
/* CTA */
.block--steps .steps-cta-wrap { text-align: center; margin-top: 32px; }
.block--steps .steps-cta { display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 700; background: var(--step-cta-bg, var(--primary)); color: var(--step-cta-text, var(--primary-ink)); transition: color .15s ease, box-shadow .15s ease; }
.block--steps .steps-cta:hover { background: var(--step-cta-hover-bg, var(--step-cta-bg, var(--primary))); color: var(--step-cta-hover-text, var(--step-cta-text, var(--primary-ink))); }
/* Style variants mirror .btn--secondary/.btn--outline; Style-tab colour vars still win. */
.block--steps .steps-cta--secondary { background: var(--step-cta-bg, rgba(0,0,0,.06)); color: var(--step-cta-text, var(--ink)); }
.block--steps .steps-cta--outline { background: var(--step-cta-bg, transparent); color: var(--step-cta-text, var(--primary)); box-shadow: inset 0 0 0 1.5px var(--step-cta-text, var(--primary)); }
.steps-cta .btn-ic { display: inline-flex; align-items: center; margin-right: 8px; vertical-align: -0.18em; }
.steps-cta .btn-ic svg { width: 1.1em; height: 1.1em; }
@media (max-width: 720px) {
  .block--steps .steps { flex-direction: column; }
  .block--steps .step:not(:last-child)::after { display: none; }
}

/* Logo strip */
.block--logo-strip { padding: 36px 0; }
.block--logo-strip h2 { font-size: 28px; text-align: center; margin: 0 0 10px; letter-spacing: -.01em; }
.block--logo-strip .block-sub { margin-bottom: 26px; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px; }
.logo-strip-img { width: auto; display: inline-block; }
.logo-strip--gray .logo-strip-img { filter: grayscale(1); opacity: .65; transition: filter .2s ease, opacity .2s ease; }
.logo-strip--gray .logo-strip-img:hover { filter: none; opacity: 1; }
.logo-strip--marquee { flex-wrap: nowrap; justify-content: flex-start; overflow: hidden; }
.logo-strip--marquee .logo-track { display: flex; width: max-content; min-width: 200%; flex: 0 0 auto; animation: logo-marquee linear infinite; }
.logo-strip--marquee .logo-set { display: flex; align-items: center; gap: 36px; padding-right: 36px; flex: 1 0 auto; }
.logo-strip--marquee .logo-set > * { flex: 0 0 auto; }
.logo-strip--pause .logo-track:hover { animation-play-state: paused; }
@keyframes logo-marquee { to { transform: translateX(-50%); } }

/* Article page + articles block */
.block--article { padding: 44px 0 80px; }
.block--article .article-back { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 22px; transition: color .15s ease; }
.block--article .article-back:hover { color: var(--primary); }
.block--article .article-title { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.block--article .article-meta { color: var(--muted); font-size: 14px; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.block--article .article-cover { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 36px; }
.article-content p { font-size: 17px; line-height: 1.85; margin: 0 0 20px; }
.article-content h2 { font-size: 27px; margin: 40px 0 14px; letter-spacing: -.01em; }
.article-content h3 { font-size: 21px; margin: 30px 0 12px; }
.article-content ul { margin: 0 0 20px; padding-left: 24px; }
.article-content li { margin-bottom: 9px; font-size: 17px; line-height: 1.75; }
.article-content .article-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin: 10px 0 22px; }
.article-content img { max-width: 100%; border-radius: var(--radius); margin: 10px 0 22px; }
.article-content blockquote { margin: 0 0 20px; padding: 6px 0 6px 18px; border-left: 3px solid var(--primary); color: var(--muted); font-size: 17px; }
.article-content a { text-decoration: underline; }
.article-content ol { margin: 0 0 20px; padding-left: 24px; }
.block--articles .article-date { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.block--articles .article-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--primary); }
/* "View all" bar: heading left, link top-right */
.articles-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.articles-bar .cards-head { margin-bottom: 0; }
.cards-head--left { text-align: left; }
.cards-head--left .cards-sub { margin: 0; }
.articles-viewall { font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; padding-bottom: 4px; }
.articles-viewall:hover { text-decoration: underline; }
/* Load more */
.art-hidden { display: none; }
.articles-more-wrap { text-align: center; margin-top: 26px; }
.articles-more {
  padding: 10px 28px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--artm-bg, var(--surface)); color: var(--artm-text, var(--ink));
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.articles-more:hover {
  border-color: var(--primary);
  background: var(--artm-hbg, var(--artm-bg, var(--surface)));
  color: var(--artm-htext, var(--artm-text, var(--primary)));
}

/* Slider (Cards slider + Images slide) */
.slider { position: relative; }
.slider-viewport { overflow: hidden; }
.slider-track { display: flex; align-items: center; transition: transform .4s ease; margin: 0 -8px; }
/* Peek (Image slider / Cards slider → Peek at the edges): each slide narrows by
   the same percent on both sides, so a sliver of the previous/next slide shows
   at the viewport's edges. 0% (unset) reduces to the original 100%/perview —
   the client script applies the matching offset (see SLIDER_JS in
   render-page.tsx), so the two must be read together if either changes. */
.slider-slide { flex: 0 0 calc((100% - 2 * var(--slider-peek, 0%)) / var(--perview,1)); box-sizing: border-box; padding: 0 8px; }
/* Natural aspect ratio — the full image, never cropped. */
.slider-slide .slide-img { width: 100%; height: auto; border-radius: var(--img-radius, 10px); display: block; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--slider-arrow-bg, #fff); color: var(--slider-arrow-color, var(--ink)); font-size: 20px; line-height: 1; cursor: pointer; z-index: 2; }
/* One value, both sides (Style tab → Arrows → Edge offset). Negative sits
   outside the frame — -6px is the original position. */
.slider-prev { left: var(--slider-arrow-offset, -6px); } .slider-next { right: var(--slider-arrow-offset, -6px); }
/* One value serves both positions (Style tab → Dots → Offset): the gap below
   the slider when Outside (the original spacing), or the distance up from the
   bottom edge when Inside. */
.slider-dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--slider-dots-offset, 12px); }
/* Base diameter (Style tab → Dots → Size: S/M/L/XL). The line/bar variants
   below are expressed relative to it, so a size choice scales whichever dot
   style is picked rather than only the round default. */
.slider-dot { width: var(--slider-dot-size, 8px); height: var(--slider-dot-size, 8px); border-radius: 999px; border: 0; background: var(--slider-dot-color, var(--border)); cursor: pointer; padding: 0; }
.slider-dot[aria-current="true"] { background: var(--slider-dot-active, var(--primary)); }

/* Arrow style variants (Style tab → Arrows → Arrow style). Compound selector
   (.slider-arrow.slider-arrow--X) so a theme's own .slider-arrow override
   (appended after this stylesheet) can never outrank them by source order. */
.slider-arrow.slider-arrow--square { border-radius: 8px; }
.slider-arrow.slider-arrow--minimal { background: transparent; border-color: transparent; }
.slider-arrow.slider-arrow--solid { background: var(--slider-arrow-bg, var(--primary)); color: var(--slider-arrow-color, #fff); border-color: transparent; }
.slider-arrow.slider-arrow--outline { background: transparent; border-width: 2px; border-color: var(--slider-arrow-color, var(--border)); color: var(--slider-arrow-color, var(--ink)); }

/* Dot style variants (Style tab → Dots → Dots style). Same compound-selector
   reasoning: descendant + modifier class already outranks the theme's plain
   .slider-dot rule, regardless of order. */
.slider-dots.slider-dots--line .slider-dot { transition: width .2s ease; }
.slider-dots.slider-dots--line .slider-dot[aria-current="true"] { width: calc(var(--slider-dot-size, 8px) * 2.75); border-radius: 999px; }
.slider-dots.slider-dots--bar .slider-dot { width: calc(var(--slider-dot-size, 8px) * 2.25); height: calc(var(--slider-dot-size, 8px) * 0.5); border-radius: 2px; }
.slider-dots.slider-dots--hollow .slider-dot { background: transparent; border: 2px solid var(--slider-dot-color, var(--border)); }
.slider-dots.slider-dots--hollow .slider-dot[aria-current="true"] { background: var(--slider-dot-active, var(--primary)); border-color: var(--slider-dot-active, var(--primary)); }

/* Dot position (Style tab → Dots → Position): Outside (default) leaves them
   below the slider, taking their own space; Inside overlaps them on the image
   itself, so .slider needs no extra height for the row. Compound selector for
   the same reason as the other slider modifiers above. */
.slider-dots.slider-dots--inside { position: absolute; left: 0; right: 0; bottom: var(--slider-dots-offset, 12px); margin-top: 0; z-index: 2; }

/* --- Ranking: numbered logo chart (Top 10 …) ------------------------------
   The rank sits behind its card as one big numeral; the card is pushed right so
   the digits stay readable. Both the numeral and the bar take their colour from
   the theme, so the same block looks native on a gold site and a blue one. */
.block--ranking { padding: 36px 0; }
.block--ranking > .container > h2 { font-size: clamp(20px, 3vw, 30px); margin: 0 0 18px; letter-spacing: -.01em; }
/* Heading bar: badge + title + the slider's prev/next, all on one pill. */
.rank-bar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding: 8px 14px; border-radius: 999px; min-height: 52px;
  background: var(--rank-bar-bg, linear-gradient(90deg, color-mix(in srgb, var(--primary) 85%, transparent), color-mix(in srgb, var(--primary) 8%, transparent)));
  color: var(--rank-bar-ink, var(--primary-ink, #fff));
}
.rank-bar-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px;
  font-size: 19px; font-weight: 900; line-height: 1;
  background: var(--rank-badge-bg, rgba(0, 0, 0, .28)); color: inherit;
}
.rank-bar-title { font-size: clamp(15px, 2vw, 20px); font-weight: 800; min-width: 0; }
.rank-bar-nav { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }
/* In the bar the arrows are part of the flow, not overlaid on the viewport. */
.rank-bar .slider-arrow {
  position: static; transform: none; width: 34px; height: 34px;
  /* The block's own bar colours are the default, but the shared slider fields
     (Style → Arrows) still win when set, so one control covers both headings. */
  background: var(--slider-arrow-bg, var(--rank-nav-bg, rgba(255, 255, 255, .14)));
  border-color: var(--rank-nav-border, rgba(255, 255, 255, .35));
  color: var(--slider-arrow-color, inherit);
}
.rank-bar .slider-arrow:hover { background: var(--rank-nav-bg-hover, rgba(255, 255, 255, .26)); }

/* Cards keep a common height so the names line up even when the artwork does
   not; the numeral is sized off the ITEM, not the viewport, so the proportion
   holds whether six or three are in view. */
.block--ranking .slider-track { align-items: stretch; }
.rank-item {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: stretch;
  container-type: inline-size;
}
/* The card sits in the right ~66%; the numeral fills the gutter and is
   overlapped by roughly its last third, as in the reference designs. */
.rank-figure { position: relative; padding-left: 34%; }
/* Anchoring the numeral's RIGHT edge to the card's left edge (right: 66% =
   100% - the figure's 34% gutter) and then nudging it 30% of its own width to
   the right fixes the overlap at exactly a third — whatever the font size, the
   digit count, or how many cards are in view. */
.rank-num {
  position: absolute; right: 66%; top: 50%; transform: translate(30%, -50%);
  white-space: nowrap;
  font-size: clamp(44px, 6vw, 104px); /* fallback where cq units are unsupported */
  /* Sized off the card, not the viewport (Style → Number → Size), so the
     proportion holds however many are in view. */
  font-size: var(--rank-num-size, 54cqw);
  font-weight: var(--rank-num-weight, 900); line-height: .78;
  font-family: var(--font-heading, inherit); pointer-events: none; z-index: 0;
}
.rank-num--outline {
  color: transparent;
  -webkit-text-stroke: var(--rank-num-stroke, 2px) var(--rank-num, color-mix(in srgb, var(--ink) 55%, transparent));
}
.rank-num--solid { color: var(--rank-num, color-mix(in srgb, var(--ink) 30%, transparent)); }
.rank-link { position: relative; z-index: 1; display: block; width: 100%; }
.rank-card { position: relative; z-index: 1; display: block; width: 100%; border-radius: var(--rank-card-radius, 16px); overflow: hidden; }
.rank-img { display: block; width: 100%; height: auto; border-radius: inherit; }
/* Placeholder while an entry has no image yet (the editor's default rows). */
.rank-img--empty { aspect-ratio: 3 / 4; background: var(--card-bg, var(--surface)); }
/* Gradient frame — a 2px sleeve of the accent behind the artwork. */
.rank-card--glow {
  padding: 2px;
  background: var(--rank-frame, linear-gradient(150deg, color-mix(in srgb, var(--primary) 90%, #fff 10%), color-mix(in srgb, var(--primary) 35%, transparent)));
}
/* The artwork's own corner follows the frame's, less the sleeve it sits in. */
.rank-card--glow .rank-img { border-radius: calc(var(--rank-card-radius, 16px) - 2px); }
.rank-card--soft {
  padding: 6px;
  background: var(--rank-frame-bg, var(--card-bg, var(--surface)));
  border: 1px solid var(--rank-frame-border, var(--card-border, var(--border)));
}
.rank-card--soft .rank-img { border-radius: calc(var(--rank-card-radius, 16px) - 5px); }
.rank-card--none { border-radius: var(--rank-card-radius, var(--img-radius, 10px)); }
.rank-name {
  position: relative; z-index: 1; display: block; width: 100%;
  /* auto pushes the name to the bottom of the (stretched) item, so a row of
     mixed-height artwork still has its names on one line. */
  margin: auto 0 0; padding-top: 10px; text-align: center;
  font-size: 13px; color: var(--rank-name, var(--muted));
}
/* ---- Cards hover motion (Style tab → Card style) ------------------------
   Same contract as the ranking below: the hovered card wins the stacking
   fight against its later siblings, and the clipping layouts (slider,
   marquee) get vertical slack so nothing is cropped mid-move. A linked card's
   built-in 3px lift stays the default; these override it when chosen. */
.cards-hover-lift .ucard,
.cards-hover-scale .ucard,
.cards-hover-tilt .ucard,
.cards-hover-glow .ucard {
  transition: transform .22s ease, box-shadow .22s ease, border-color .18s ease;
}
.cards-hover-lift .ucard:hover,
.cards-hover-scale .ucard:hover,
.cards-hover-tilt .ucard:hover,
.cards-hover-glow .ucard:hover { z-index: 3; }
.cards-hover-lift .ucard:hover { transform: translateY(-8px); }
.cards-hover-scale .ucard:hover { transform: scale(1.04); }
.cards-hover-tilt .ucard:hover { transform: rotate(-1.5deg) scale(1.03); }
.cards-hover-glow .ucard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--cards-hover-glow, var(--primary)) 65%, transparent);
}
.cards-hover-shine .ucard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
  background-size: 220% 100%; background-position: -140% 0;
}
.cards-hover-shine .ucard:hover::after {
  background-position: 240% 0;
  transition: background-position .7s ease;
}
.cards-hover-lift .slider-viewport,
.cards-hover-scale .slider-viewport,
.cards-hover-tilt .slider-viewport,
.cards-hover-glow .slider-viewport,
.cards-hover-lift .cards-marquee,
.cards-hover-scale .cards-marquee,
.cards-hover-tilt .cards-marquee,
.cards-hover-glow .cards-marquee { padding: 36px 0; margin: -36px 0; }
@media (prefers-reduced-motion: reduce) {
  .cards-hover-lift .ucard, .cards-hover-scale .ucard,
  .cards-hover-tilt .ucard, .cards-hover-glow .ucard { transition: none; }
  .cards-hover-lift .ucard:hover, .cards-hover-scale .ucard:hover,
  .cards-hover-tilt .ucard:hover, .cards-hover-glow .ucard:hover { transform: none; }
  .cards-hover-shine .ucard:hover::after { transition: none; }
}

/* ---- Ranking card hover motion (Style tab → Card style) ----------------
   Opt-in per block via rank-hover-<anim> on the section. The whole item is the
   hover target (a finger or pointer rarely lands exactly on the artwork); the
   card is what moves, sleeve and all. */
.rank-hover-lift .rank-card,
.rank-hover-scale .rank-card,
.rank-hover-tilt .rank-card,
.rank-hover-glow .rank-card {
  transition: transform .22s ease, box-shadow .22s ease;
}
/* A moving card must win two fights it otherwise loses: siblings later in the
   DOM paint over it (items are position:relative with no z-index), and the
   slider viewport's overflow:hidden crops whatever leaves the row. So the
   hovered item is raised above its neighbours, and the viewport gets vertical
   slack — padding paired with the same negative margin, which changes no
   layout and reveals nothing horizontally, where clipping is the point. */
.rank-hover-lift .rank-item:hover,
.rank-hover-scale .rank-item:hover,
.rank-hover-tilt .rank-item:hover,
.rank-hover-glow .rank-item:hover { z-index: 3; }
.rank-hover-lift .slider-viewport,
.rank-hover-scale .slider-viewport,
.rank-hover-tilt .slider-viewport,
.rank-hover-glow .slider-viewport { padding: 36px 0; margin: -36px 0; }
.rank-hover-lift .rank-item:hover .rank-card { transform: translateY(-8px); }
.rank-hover-scale .rank-item:hover .rank-card { transform: scale(1.05); }
.rank-hover-tilt .rank-item:hover .rank-card { transform: rotate(-2deg) scale(1.04); }
.rank-hover-glow .rank-item:hover .rank-card {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--rank-hover-glow, var(--primary)) 65%, transparent);
}
/* A band of light sweeping the artwork once per hover; the return trip is
   instant because the transition only exists in the hover state. */
.rank-hover-shine .rank-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
  background-size: 220% 100%; background-position: -140% 0;
}
.rank-hover-shine .rank-item:hover .rank-card::after {
  background-position: 240% 0;
  transition: background-position .7s ease;
}
@media (prefers-reduced-motion: reduce) {
  .rank-hover-lift .rank-card, .rank-hover-scale .rank-card,
  .rank-hover-tilt .rank-card, .rank-hover-glow .rank-card { transition: none; }
  .rank-hover-lift .rank-item:hover .rank-card,
  .rank-hover-scale .rank-item:hover .rank-card,
  .rank-hover-tilt .rank-item:hover .rank-card,
  .rank-hover-glow .rank-item:hover .rank-card { transform: none; }
  .rank-hover-shine .rank-item:hover .rank-card::after { transition: none; }
}

@media (max-width: 768px) {
  .rank-bar { gap: 8px; padding: 6px 10px; border-radius: 16px; }
  .rank-bar-badge { min-width: 32px; height: 32px; font-size: 16px; }
  .rank-figure { padding-left: 30%; }
  .rank-num { right: 70%; }
}

/* Blocks */
.block { padding: 48px 0; }
.block--hero { padding: 64px 0; background:
  radial-gradient(1200px 400px at 50% -10%, var(--hero-glow, color-mix(in srgb, var(--primary) 10%, transparent)), transparent); text-align: center; }
.block--hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.block--hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.block--hero img { margin: 40px auto 0; border-radius: var(--img-radius, var(--radius)); border: 1px solid var(--border); }

.block--text h2 { font-size: 28px; margin: 0 0 12px; letter-spacing: -.01em; }

/* Shared subheading under a block heading */
.block-sub { color: var(--muted); margin: 0 0 22px; max-width: 720px; }
.block-sub--center { text-align: center; margin-left: auto; margin-right: auto; max-width: 640px; }
.block--text .block-sub { margin: -2px 0 20px; }
.block--features .block-sub { margin: -28px auto 34px; }
.block--faq .block-sub { margin: -20px auto 28px; }
.block--imagetext .block-sub { margin: -4px 0 12px; }
.split-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.split-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.split-list-icon { display: inline-flex; margin-top: 2px; color: var(--primary); }
.split-list-icon svg { width: 19px; height: 19px; }
.split__body--panel { padding: 26px; border-radius: var(--radius); }
.split__body .split-btn {
  margin-top: 20px;
  background: var(--itb-bg, var(--theme-btn-bg, var(--primary)));
  color: var(--itb-text, var(--theme-btn-text, var(--primary-ink)));
  border-radius: var(--itb-radius, var(--theme-btn-radius, 10px));
  font-size: var(--itb-size, inherit);
}
.split__body .split-btn:hover {
  background: var(--itb-hbg, var(--itb-bg, var(--theme-btn-hbg, var(--theme-btn-bg, var(--primary)))));
  color: var(--itb-htext, var(--itb-text, var(--theme-btn-htext, var(--theme-btn-text, var(--primary-ink)))));
}
.block--text p { font-size: 17px; color: var(--muted); max-width: 720px; }

.block--cta { }
.block--cta .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; text-align: center;
}
.block--cta h2 { font-size: 26px; margin: 0 0 8px; }
.block--cta p { color: var(--muted); margin: 0 0 24px; }

.container--narrow { max-width: 760px; }

/* Feature grid */
.block--features h2 { font-size: 28px; text-align: center; margin: 0 0 40px; letter-spacing: -.01em; }
.block--features .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.block--features .feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.block--features .feature h3 { margin: 0 0 8px; font-size: 18px; }
.block--features .feature p { margin: 0; color: var(--muted); }

/* Image + text */
.block--imagetext .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.block--imagetext .split--reverse .split__media { order: 2; }
.block--imagetext .split__media img { border-radius: var(--img-radius, var(--radius)); border: 1px solid var(--border); width: 100%; }
.block--imagetext h2 { font-size: 28px; margin: 0 0 12px; letter-spacing: -.01em; }
.block--imagetext p { color: var(--muted); font-size: 17px; margin: 0; }
@media (max-width: 720px) { .block--imagetext .split { grid-template-columns: 1fr; } .block--imagetext .split--reverse .split__media { order: 0; } }

/* Gallery */
.block--gallery h2 { font-size: 28px; text-align: center; margin: 0 0 32px; }
.block--gallery .gallery-sub { text-align: center; color: var(--muted); max-width: 640px; margin: -24px auto 28px; }
/* Gallery tag tabs. Colours are vars (Cards → Style → Tags: Tab colour / Active
   fill / Active text) with the original tokens as fallback, so an untouched
   block — Gallery included, which never sets these — looks exactly as before. */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.gallery-tab {
  padding: 6px 16px; border-radius: 999px; border: 1px solid var(--tab-color, var(--border)); background: transparent;
  color: var(--tab-color, var(--muted)); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
/* Hover previews the active look, whatever it currently resolves to. */
.gallery-tab:hover { color: var(--tab-active-bg, var(--primary)); border-color: var(--tab-active-bg, var(--primary)); }
.gallery-tab.active { background: var(--tab-active-bg, var(--primary)); border-color: var(--tab-active-bg, var(--primary)); color: var(--tab-active-text, var(--primary-ink)); }
.gallery-item.tag-hide { display: none !important; }
/* While filtering, capped (show-more-hidden) items that match the tag appear. */
.block--gallery .gallery-grid.filtering .gallery-item.img-hidden:not(.tag-hide) { display: block; }
.block--gallery .gallery-grid { display: grid; grid-template-columns: repeat(var(--cols,3), 1fr); gap: 16px; align-items: start; }
.block--gallery .gallery-item { position: relative; display: block; margin: 0; }
/* Natural aspect ratio — the full image, never cropped. */
.block--gallery .gallery-item img { border-radius: var(--img-radius, var(--radius)); border: 1px solid var(--border); width: 100%; height: auto; display: block; }
.block--gallery a.gallery-item { transition: opacity .15s ease; }
.block--gallery a.gallery-item:hover { opacity: .92; }
.block--gallery .gallery-cap { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.block--gallery .img-hidden { display: none; }
/* Overlay button on the image (whole tile is the link; button is visual) */
.gallery-media { position: relative; display: block; }
.gallery-ov-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: var(--gal-ov-bg, var(--primary)); color: var(--gal-ov-text, var(--primary-ink));
  pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
/* Style variants for the on-image button; colour vars from the Style tab still win. */
.gallery-ov-btn--secondary { background: var(--gal-ov-bg, rgba(0,0,0,.55)); color: var(--gal-ov-text, #fff); }
.gallery-ov-btn--outline { background: var(--gal-ov-bg, transparent); color: var(--gal-ov-text, #fff); box-shadow: inset 0 0 0 1.5px currentColor, 0 4px 14px rgba(0,0,0,.25); }
/* Hover mode: dimming scrim over the image behind the centred button. */
.gallery-scrim {
  position: absolute; inset: 0; border-radius: var(--img-radius, var(--radius));
  background: var(--gal-scrim, #000); opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.gallery-item--ov-hover:hover .gallery-scrim { opacity: var(--gal-scrim-opacity, .45); }
.gallery-ov-ic { display: inline-flex; }
.gallery-ov-ic svg { width: 14px; height: 14px; }
.gallery-item--ov-hover .gallery-ov-btn { opacity: 0; transition: opacity .2s ease; }
.gallery-item--ov-hover:hover .gallery-ov-btn { opacity: 1; }
.gallery-item:hover .gallery-ov-btn {
  background: var(--gal-ov-hbg, var(--gal-ov-bg, var(--primary)));
  color: var(--gal-ov-htext, var(--gal-ov-text, var(--primary-ink)));
}
/* Show more */
.gallery-more-wrap { text-align: center; margin-top: 22px; }
.gallery-more {
  padding: 10px 28px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--gal-more-bg, var(--surface)); color: var(--gal-more-text, var(--ink));
  font-weight: 600; font-size: 14px; cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.gallery-more:hover {
  border-color: var(--primary);
  background: var(--gal-more-hbg, var(--gal-more-bg, var(--surface)));
  color: var(--gal-more-htext, var(--gal-more-text, var(--primary)));
}
@media (max-width: 768px){ .block--gallery .gallery-grid { grid-template-columns: repeat(var(--cols-m, 2), 1fr); gap: 12px; } }

/* FAQ */
.block--faq h2 { font-size: 28px; text-align: center; margin: 0 0 32px; }
.block--faq .faq-item { border-top: 1px solid var(--border); padding: 20px 0; }
.block--faq .faq-item h3 { margin: 0 0 6px; font-size: 17px; }
.block--faq .faq-item p { margin: 0; color: var(--muted); }

/* Footer block */

/* ---- Card star rating / per-card button / tag filter tabs ---- */
.ucard-stars { position: relative; display: inline-block; line-height: 1; font-size: 15px; letter-spacing: 2px; margin: 2px 0 4px; }
.ucard-stars .stars-bg { color: rgba(128,128,128,.35); }
.ucard-stars .stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--star-color, #f0a52c); }
.ucard-body .ucard-btn { margin-top: 10px; padding: 8px 18px; font-size: 14px; display: inline-block; }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.15); }
.gallery-tab.active .tab-count { background: rgba(255,255,255,.25); }
.cards-grid .tag-hide { display: none !important; }

/* Cards tag-tab style/layout (Style tab → Tags — shown only when the block
   uses tags). ".cards-tabs" is the second class Cards' own wrapper carries —
   Gallery's plain ".gallery-tabs" never has it, so none of this reaches
   Gallery's tabs. Compound selectors throughout so these always outrank the
   plain .gallery-tab rules above regardless of source order. */
.cards-tabs.cards-tabs--underline .gallery-tab { border-color: transparent; border-radius: 0; padding: 8px 2px; box-shadow: inset 0 -2px 0 transparent; }
.cards-tabs.cards-tabs--underline .gallery-tab:hover { border-color: transparent; box-shadow: inset 0 -2px 0 var(--tab-active-bg, var(--primary)); }
.cards-tabs.cards-tabs--underline .gallery-tab.active { background: transparent; border-color: transparent; box-shadow: inset 0 -2px 0 var(--tab-active-bg, var(--primary)); color: var(--tab-active-text, var(--tab-active-bg, var(--primary))); }

.cards-tabs.cards-tabs--boxed .gallery-tab { border-radius: 8px; background: var(--surface); }
.cards-tabs.cards-tabs--boxed .gallery-tab.active { border-radius: 8px; }

.cards-tabs.cards-tabs--minimal .gallery-tab { border-color: transparent; background: transparent; padding: 6px 10px; }
.cards-tabs.cards-tabs--minimal .gallery-tab:hover { border-color: transparent; }
.cards-tabs.cards-tabs--minimal .gallery-tab.active { background: transparent; border-color: transparent; color: var(--tab-active-text, var(--tab-active-bg, var(--primary))); font-weight: 800; }

/* Width: Full stretches each tab to share the row equally (wraps to a new row
   rather than crushing them if there isn't room); Fit (default) is the
   original size-to-content, centred row. */
.cards-tabs.cards-tabs--full .gallery-tab { flex: 1 1 120px; text-align: center; }
/* Alignment only matters for Fit — Full already fills the row. */
.cards-tabs.cards-tabs--align-left { justify-content: flex-start; }
.cards-tabs.cards-tabs--align-right { justify-content: flex-end; }
.cards-tabs.cards-tabs--no-count .tab-count { display: none; }

/* ---- Transaction feed (tx_feed) ---- */
.block--txfeed h2 { text-align: center; font-size: 28px; margin: 0 0 8px; letter-spacing: -.01em; }
.tx-updated { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.txfeed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.tx-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tx-ic { display: flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--primary); flex: 0 0 auto; }
.tx-ic svg { width: 20px; height: 20px; }
.tx-ic--bank { border: none; overflow: hidden; background: #fff; }
.tx-ic--bank img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.tx-info { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; }
.tx-member { font-weight: 600; font-size: 14px; }
.tx-amount { font-size: 13px; color: var(--muted); }
.tx-date { font-size: 12px; color: var(--muted); }
.tx-status { flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--theme-btn-bg, var(--primary)); color: var(--theme-btn-text, var(--primary-ink)); white-space: nowrap; }
.tx-status--pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
/* Feed refresh animations: whole-list fade (tx-swap) and one-by-one rotation
 * (leave from the top, enter at the bottom; FLIP glide for the rows between). */
.tx-row { opacity: 1; transition: opacity .3s ease, transform .3s ease; }
.tx-row.tx-leave { opacity: 0; transform: translateY(-10px) scale(.97); }
.tx-row.tx-enter { opacity: 0; transform: translateY(14px); transition: none; }
.txfeed-grid.tx-swap .tx-row { opacity: .25; }

/* ---- Marquee (scrolling text bar) ---- */
.block--marquee { padding: 14px 0; background: var(--mq-bg, linear-gradient(90deg, #1f2937, #0f172a)); color: var(--mq-ink, #f5f7fa); }
.mq-wrap { display: flex; align-items: center; gap: 12px; }
.mq-label { flex: 0 0 auto; font-weight: 700; }
.mq-view { overflow: hidden; flex: 1 1 auto; min-width: 0; }
.mq-track { display: flex; width: max-content; min-width: 200%; animation: mq-scroll var(--mq-dur, 25s) linear infinite; }
.mq-track--right { animation-direction: reverse; }
.mq--pause .mq-track:hover { animation-play-state: paused; }
.mq-seq { display: flex; flex: 1 0 auto; align-items: center; }
.mq-item { display: inline-flex; align-items: center; white-space: nowrap; }
.mq-link { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.mq-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mq-ic { display: inline-flex; align-items: center; margin-right: 8px; }
.mq-ic svg { width: 1em; height: 1em; }
.mq-sep { margin: 0 18px; opacity: .55; }
@keyframes mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Icon links (quick menu strip) + section heading icon ---- */
.icon-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }
.icon-links--left { justify-content: flex-start; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; color: var(--il-text, var(--ink)); text-decoration: none; font-weight: 600; font-size: 15px; }
a.icon-link:hover { color: var(--il-icon, var(--primary)); }
.icon-link-ic { display: inline-flex; color: var(--il-icon, var(--primary)); }
.icon-link-ic svg { width: 20px; height: 20px; }
.head-ic { display: inline-flex; vertical-align: -0.12em; margin-right: 10px; color: var(--primary); }
.head-ic svg { width: 1em; height: 1em; }

/* ---- Bottom bar (app-style fixed nav) ----------------------------------
   Which screens it appears on is decided in the admin and arrives as
   --no-desktop / --no-tablet / --no-mobile classes, so the rules below only
   have to hide it. Everything sizeable is a variable with the default beside
   it, so an untouched bar follows the theme. */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--bb-bg, var(--surface));
  border-top: var(--bb-bw, 1px) solid var(--bb-border, var(--border));
  color: var(--bb-text, var(--ink));
  /* Sits above the phone's home indicator rather than under it. */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottombar .bb-row {
  display: flex; align-items: stretch; justify-content: space-around;
  gap: 2px; height: var(--bb-h, 64px); max-width: var(--container, 1200px); margin: 0 auto;
}
.bb-item {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 4px; text-decoration: none; color: inherit; text-align: center;
  font-size: var(--bb-fs, 11px); line-height: 1.15;
}
.bb-item .bb-label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-ic { display: inline-flex; }
.bb-ic svg { width: var(--bb-ic, 22px); height: var(--bb-ic, 22px); }
.bb-item {
  transition: color .18s ease, background-color .18s ease, transform .18s ease, opacity .18s ease;
}
.bb-item:hover, .bb-item[aria-current="page"] {
  color: var(--bb-active, var(--primary));
  background: var(--bb-item-hover-bg, transparent);
}
/* What an ordinary item does when pointed at. Motion is opt-in, and anyone who
   asked their system for less does not get it. */
.bottombar--item-lift .bb-item:hover { transform: translateY(-3px); }
.bottombar--item-scale .bb-item:hover { transform: scale(1.12); }
.bottombar--item-fade .bb-item { opacity: .72; }
.bottombar--item-fade .bb-item:hover, .bottombar--item-fade .bb-item[aria-current="page"] { opacity: 1; }
.bottombar--item-underline .bb-item { position: relative; }
.bottombar--item-underline .bb-item::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--bb-active, var(--primary)); transition: left .18s ease, right .18s ease;
}
.bottombar--item-underline .bb-item:hover::after,
.bottombar--item-underline .bb-item[aria-current="page"]::after { left: 22%; right: 22%; }
/* The featured item keeps its own hover colours whatever the row does. */
.bb-item--featured:hover { color: var(--bb-feat-hover-text, var(--bb-feat-text, var(--primary-ink, #fff))); }
.bottombar--bar .bb-item--featured:hover,
.bottombar--pill .bb-item--featured:hover,
.bottombar--compact .bb-item--featured:hover {
  background: var(--bb-feat-hover-bg, var(--bb-feat-bg, var(--primary)));
}
.bottombar--raised .bb-item--featured:hover .bb-ic {
  background: var(--bb-feat-hover-bg, var(--bb-feat-bg, var(--primary)));
  color: var(--bb-feat-hover-text, var(--bb-feat-text, var(--primary-ink, #fff)));
}
/* Icons only — the row gets its height back. */
.bottombar--nolabels .bb-item { gap: 0; }

/* The one action the bar exists for: filled, and on the raised variant lifted
   out of the row into a circle that overlaps the top edge. */
.bb-item--featured {
  color: var(--bb-feat-text, var(--primary-ink, #fff));
  font-weight: 700;
  /* Its own size when one was set, else exactly what the row uses. */
  font-size: var(--bb-feat-fs, var(--bb-fs, 11px));
}
.bottombar--bar .bb-item--featured,
.bottombar--pill .bb-item--featured,
.bottombar--compact .bb-item--featured {
  background: var(--bb-feat-bg, var(--primary));
  border-radius: 10px; margin: 6px 2px;
}
.bottombar--raised .bb-item--featured { position: relative; }
/* The icon is lifted out of the flow, so a spacer of exactly its size keeps
   this label on the same line as its neighbours' at any height or icon size. */
.bottombar--raised .bb-item--featured::before {
  content: ""; display: block; width: var(--bb-ic, 22px); height: var(--bb-ic, 22px); flex: 0 0 auto;
}
.bottombar--raised .bb-item--featured .bb-ic {
  position: absolute; top: calc(var(--bb-h, 64px) * -0.42);
  display: flex; align-items: center; justify-content: center;
  width: calc(var(--bb-h, 64px) * 0.78); height: calc(var(--bb-h, 64px) * 0.78);
  border-radius: 999px;
  background: var(--bb-feat-bg, var(--primary));
  color: var(--bb-feat-text, var(--primary-ink, #fff));
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5);
  border: 3px solid var(--bb-feat-ring, var(--bb-bg, var(--surface)));
}
.bottombar--raised .bb-item--featured .bb-ic svg { width: calc(var(--bb-ic, 22px) * 1.15); height: calc(var(--bb-ic, 22px) * 1.15); }

/* Floating pill: detached from the edges, so the page shows through beneath. */
.bottombar--pill {
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border: var(--bb-bw, 1px) solid var(--bb-border, var(--border));
  border-radius: var(--bb-radius, 18px);
  overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
  padding-bottom: 0;
}


/* The bar covers the end of the page, so give the page its height back — and
   the floating buttons, which live in the same corner, step up over it. Both
   follow the same per-screen rules as the bar itself, so a bar hidden on
   desktop leaves the desktop layout alone. */
body:has(.bottombar) { padding-bottom: var(--bb-h, 64px); }
body:has(.bottombar) .float-stack { bottom: calc(var(--bb-h, 64px) + 18px); }
/* The pill floats 12px clear of the edge, so the stack clears that too. */
body:has(.bottombar--pill) .float-stack { bottom: calc(var(--bb-h, 64px) + 30px); }
@media (min-width: 1025px) {
  body:has(.bottombar--no-desktop) { padding-bottom: 0; }
  body:has(.bottombar--no-desktop) .float-stack { bottom: 18px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  body:has(.bottombar--no-tablet) { padding-bottom: 0; }
  body:has(.bottombar--no-tablet) .float-stack { bottom: 18px; }
}
@media (max-width: 768px) {
  body:has(.bottombar--no-mobile) { padding-bottom: 0; }
  body:has(.bottombar--no-mobile) .float-stack { bottom: 18px; }
}

@media (min-width: 1025px) { .bottombar--no-desktop { display: none; } }
@media (min-width: 769px) and (max-width: 1024px) { .bottombar--no-tablet { display: none; } }
@media (max-width: 768px) { .bottombar--no-mobile { display: none; } }

/* Light spilling up off the top edge. Placed after the pill so it replaces
   that variant's drop shadow rather than fighting it. */
.bottombar.bottombar--glow {
  box-shadow: 0 -2px var(--bb-glow-size, 18px) 0 var(--bb-glow, var(--primary));
}

/* Logo above the bar: a wrapper so the backdrop styles have something to paint,
   and three positions because the featured item is not always in the middle. */
.bb-logo {
  /* --bb-logo-offset nudges it up (positive) or down (negative) from where it
     rests on the bar's top edge. */
  position: absolute; bottom: calc(var(--bb-h, 64px) - 4px + var(--bb-logo-offset, 0px));
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 60%; pointer-events: none;
}
.bb-logo img { height: var(--bb-logo-h, 46px); width: auto; max-width: 100%; display: block; }
.bb-logo--center { left: 50%; transform: translateX(-50%); }
.bb-logo--left { left: 14px; }
.bb-logo--right { right: 14px; }
.bb-logo--circle {
  padding: 8px; border-radius: 999px;
  background: var(--bb-logo-bg, var(--bb-bg, var(--surface)));
  border: 2px solid var(--bb-logo-border, var(--bb-border, var(--border)));
}
.bb-logo--card {
  padding: 6px 12px; border-radius: 12px;
  background: var(--bb-logo-bg, var(--bb-bg, var(--surface)));
  border: 1px solid var(--bb-logo-border, var(--bb-border, var(--border)));
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55);
}
.bb-logo--glow { filter: drop-shadow(0 0 10px var(--bb-logo-border, var(--bb-feat-bg, var(--primary)))); }

/* Motion. Every one of these is off unless it was chosen in the admin. */
@keyframes bb-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes bb-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
@keyframes bb-bounce { 0%, 100% { translate: 0 0; } 40% { translate: 0 -7px; } 60% { translate: 0 -3px; } }
@keyframes bb-glow {
  0%, 100% { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
  50% { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5), 0 0 0 8px color-mix(in srgb, var(--bb-feat-bg, var(--primary)) 30%, transparent); }
}
@keyframes bb-sheen { 0% { background-position: -140% 0; } 60%, 100% { background-position: 240% 0; } }

.bb-logo--float { animation: bb-float 3.2s ease-in-out infinite; }
.bb-logo--pulse { animation: bb-pulse 2.4s ease-in-out infinite; }
/* A band of light travelling across the logo, masked to the image itself. */
.bb-logo--sheen { position: absolute; overflow: hidden; }
.bb-logo--sheen::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: bb-sheen 3.6s ease-in-out infinite;
}

.bottombar--feat-pulse .bb-item--featured { animation: bb-pulse 2s ease-in-out infinite; }
.bottombar--feat-bounce .bb-item--featured { animation: bb-bounce 2.4s ease-in-out infinite; }
/* The glow belongs on the circle when there is one, else on the whole item. */
.bottombar--feat-glow.bottombar--raised .bb-item--featured .bb-ic { animation: bb-glow 2.2s ease-in-out infinite; }
.bottombar--feat-glow:not(.bottombar--raised) .bb-item--featured {
  animation: bb-glow 2.2s ease-in-out infinite; border-radius: 10px;
}
.bottombar--feat-shine .bb-item--featured { position: relative; overflow: hidden; }
.bottombar--feat-shine .bb-item--featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: bb-sheen 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .bb-logo--float, .bb-logo--pulse, .bb-logo--sheen::after,
  .bottombar--feat-pulse .bb-item--featured,
  .bottombar--feat-bounce .bb-item--featured,
  .bottombar--feat-glow .bb-item--featured,
  .bottombar--feat-glow .bb-item--featured .bb-ic,
  .bottombar--feat-shine .bb-item--featured::before { animation: none; }
  .bb-item, .bottombar--item-underline .bb-item::after { transition: none; }
  .bottombar--item-lift .bb-item:hover, .bottombar--item-scale .bb-item:hover { transform: none; }
}

/* ---- Mobile overrides (kept LAST so they beat the base rules above) ---- */
@media (max-width: 768px) {
  body.has-sb--left .site-header, body.has-sb--left .announce-bar { margin-left: 0; }
  body.has-sb--right .site-header, body.has-sb--right .announce-bar { margin-right: 0; }
  .site-sidebar { display: none; }
  body.has-sb--left { padding-left: 0; }
  body.has-sb--right { padding-right: 0; }
  .center-slot { display: none; }
  .center-top { width: auto; }
  [data-fs-m] { font-size: var(--fs-m) !important; }
  [data-fw-m] { font-weight: var(--fw-m) !important; }
  .txfeed-grid { grid-template-columns: 1fr; }
  .block--marquee { padding: 10px 0; }
  /* --- General mobile polish --- */
  .announce-inner { font-size: 12px; padding-top: 6px; padding-bottom: 6px; }
  .block { padding: 24px 0; }
  .block--hero { padding: 32px 0; }
  .block--page-header { padding: 36px 0; }

  /* --- Per-block mobile tuning --- */
  .block--hero p { font-size: 16px; }
  .block--text h2 { font-size: 23px; }
  .block--cta .card { padding: 30px 20px; }
  .block--cta h2 { font-size: 22px; }
  .block--features h2 { font-size: 23px; margin-bottom: 26px; }
  .block--features .feature { padding: 20px; }
  .block--imagetext .split { gap: 26px; }
  .split__body--panel { padding: 18px; }
  .block--steps .step { padding: 20px 16px; }
  .logo-strip { gap: 22px; }
  .logo-strip--marquee .logo-set { gap: 22px; padding-right: 22px; }
  .articles-bar { flex-wrap: wrap; align-items: flex-start; margin-bottom: 20px; }
  .cards-head { margin-bottom: 22px; }
  .btn { padding: 11px 20px; font-size: 14.5px; }
  .cta-buttons { gap: 10px; }
  .steps-cta { padding: 12px 26px; }
}

/* ===== SA theme ===== */
:root{
  --primary:#3c6f66; --primary-ink:#ffffff;
  --ink:#f5f5f5; --muted:#999999;
  --bg:#181818; --surface:#1f1f1f; --border:#3a3a3a; --radius:14px;
}
.block--marquee{ --mq-bg:linear-gradient(90deg,#143f36,#103f47); --mq-ink:#e9b75e; }
body{ background:radial-gradient(1200px 600px at 50% -15%, #1e3a34 0%, #181818 55%) no-repeat, #181818; }
.site-header{ background:var(--header-bg, rgba(0,0,0,.95)); border-bottom:var(--header-border-w, 1px) var(--header-border-style, solid) var(--header-border, var(--border)); backdrop-filter:blur(10px); }
.site-header .brand{ color:var(--header-brand, #e9b75e); }
.site-nav a{ color:var(--nav-link, #cccccc); } .site-nav a:hover{ color:var(--nav-hover, #e9b75e); }
.header-cta{ --btn-fill:var(--btn-bg, var(--theme-btn-bg, linear-gradient(180deg,#4a8378,#2f5b53))); --btn-ink:var(--btn-text, var(--theme-btn-text, #ffffff)); }
/* Gold is this base's voice: the headings carry it, not the body text. */
h1,h2,h3{ color:#d1a46b; }
a{ color:#be9a5c; }
.btn{ background:var(--theme-btn-bg, linear-gradient(180deg,#4a8378,#2f5b53)); box-shadow:0 6px 18px rgba(60,111,102,.38); }
.btn--secondary{ background:linear-gradient(180deg,#e9b75e,#be9a5c); color:#241a08; }
.btn--outline{ background:transparent; color:#e9b75e; box-shadow:inset 0 0 0 1.5px #be9a5c; }
.card,.ucard,.feature,.block--cta .card{ background:linear-gradient(180deg,#262626,#1f1f1f); border:1px solid var(--border); border-radius:var(--radius); }
.ucard-body p,.feature p,.faq-item p{ color:#cccccc; }
/* Article body must stay readable even when the theme text token is dark. */
.article-content,.article-content p,.article-content li{ color:#dcdcdc; }
.ph-current{ color:#f5f5f5; }
.block--faq .faq-item{ border-top:1px solid var(--border); }
.site-footer{ border-top:1px solid var(--footer-border, var(--border)); color:var(--footer-color, #999999); background:var(--footer-bg, transparent); }
.site-footer .footer-copy{ color:var(--footer-color, #999999); }
.slider-arrow{ background:var(--slider-arrow-bg, #262626); border-color:var(--border); color:var(--slider-arrow-color, #e9b75e); }
.slider-dot{ background:var(--slider-dot-color, #494949); } .slider-dot[aria-current="true"]{ background:var(--slider-dot-active, #e9b75e); }
.gallery-tab{ background:#262626; border-color:#3a3a3a; color:#cccccc; }
.gallery-tab.active{ background:linear-gradient(180deg,#3c6f66,#143f36); border-color:#3c6f66; color:#ffffff; }
.ucard-stars .stars-fill{ color:var(--star-color, #e9b75e); }

:root{--primary:#3c6f66;--primary-ink:#ffffff;--ink:#f5f5f5;--bg:#181818;--surface:#1f1f1f;--muted:#999999;--border:#3a3a3a;--radius:14px;--container:1140px;--base-size:16px;--font-body:Kanit,ui-sans-serif,system-ui,sans-serif;--font-heading:Kanit,ui-sans-serif,system-ui,sans-serif;--theme-btn-radius:10px}

.btn.btn--gold{background:linear-gradient(180deg,#e9b75e,#be9a5c);color:#241a08;box-shadow:none}
.btn.btn--gold:hover{background:linear-gradient(180deg,#f2c877,#cba968);color:#241a08}
.header-cta.header-cta--gold{--btn-fill:var(--btn-bg, linear-gradient(180deg,#e9b75e,#be9a5c));--btn-ink:var(--btn-text, #241a08);box-shadow:none}
.header-cta.header-cta--gold:hover{background:var(--btn-hover-bg, linear-gradient(180deg,#f2c877,#cba968));color:var(--btn-hover-text, #241a08)}
