: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 {
  border-bottom: 1px 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)); }
.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; border-radius: 8px; font-weight: 600; font-size: 14px;
  --btn-fill: var(--btn-bg, var(--primary));
  --btn-ink: var(--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(--btn-fill)); color: var(--btn-hover-text, 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; }

/* 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 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/ctas hide; 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; }

  .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; }

/* 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). */
.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); }
@media (max-width: 768px){ .cards-grid { grid-template-columns: repeat(var(--cols-m, 2), 1fr); gap: 14px; } }
@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; }
.slider-slide { flex: 0 0 calc(100% / 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; }
.slider-prev { left: -6px; } .slider-next { right: -6px; }
.slider-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.slider-dot { width: 8px; height: 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)); }

/* --- 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;
  background: var(--rank-nav-bg, rgba(255, 255, 255, .14));
  border-color: var(--rank-nav-border, rgba(255, 255, 255, .35));
  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 */
  font-size: 54cqw;
  font-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: 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: 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)));
}
.rank-card--glow .rank-img { border-radius: 14px; }
.rank-card--soft {
  padding: 6px;
  background: var(--card-bg, var(--surface));
  border: 1px solid var(--card-border, var(--border));
}
.rank-card--soft .rank-img { border-radius: 11px; }
.rank-card--none { border-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));
}
@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 */
.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(--border); background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.gallery-tab:hover { color: var(--primary); border-color: var(--primary); }
.gallery-tab.active { background: var(--primary); border-color: var(--primary); color: 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; }

/* ---- 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; }

/* ---- 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; }
}

/* ===== SBO theme ===== */
:root{
  --primary:#2f6bff; --primary-ink:#ffffff;
  --ink:#e3ebf7; --muted:#93a4bd;
  --bg:#070c1c; --surface:#0f1830; --border:#1d2b4d; --radius:14px;
}
.block--marquee{ --mq-bg:linear-gradient(90deg,#101a34,#0d1730); --mq-ink:#e3ebf7; }
body{ background:radial-gradient(1200px 600px at 50% -10%, #14224a 0%, #070c1c 55%) no-repeat, #070c1c; }
.site-header{ background:var(--header-bg, rgba(9,14,32,.9)); border-bottom:1px solid var(--header-border, var(--border)); backdrop-filter:blur(10px); }
.site-header .brand{ color:var(--header-brand, #fff); }
.site-nav a{ color:var(--nav-link, #b8c6dd); } .site-nav a:hover{ color:var(--nav-hover, #fff); }
.header-cta{ --btn-fill:var(--btn-bg, linear-gradient(180deg,#25d366,#12b357)); --btn-ink:var(--btn-text, #03210f); }
h1,h2,h3{ color:#f2f6fc; }
a{ color:#4f8bff; }
.btn{ background:var(--theme-btn-bg, linear-gradient(180deg,#3b78ff,#2f6bff)); box-shadow:0 6px 18px rgba(47,107,255,.35); }
.btn--secondary{ background:#16233f; color:#dbe6f7; }
.btn--outline{ background:transparent; color:#4f8bff; box-shadow:inset 0 0 0 1.5px #2f6bff; }
.card,.ucard,.feature,.block--cta .card{ background:linear-gradient(180deg,#101a34,#0d1730); border:1px solid var(--border); border-radius:var(--radius); }
.ucard-body p,.feature p,.faq-item p{ color:#9fb0c9; }
/* Article body must stay readable even when the theme text token is dark. */
.article-content,.article-content p,.article-content li{ color:#c9d5ea; }
.ph-current{ color:#e3ebf7; }
.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, #8497b3); background:var(--footer-bg, transparent); }
.site-footer .footer-copy{ color:var(--footer-color, #8497b3); }
.slider-arrow{ background:var(--slider-arrow-bg, #101a34); border-color:var(--border); color:var(--slider-arrow-color, #dbe6f7); }
.slider-dot{ background:var(--slider-dot-color, #26365c); } .slider-dot[aria-current="true"]{ background:var(--slider-dot-active, #2f6bff); }

:root{--primary:#2f6bff;--primary-ink:#ffffff;--ink:#e3ebf7;--bg:#070c1c;--surface:#0f1830;--muted:#93a4bd;--border:#1d2b4d;--radius:14px;--container:1080px;--base-size:16px;--font-body:Anuphan,ui-sans-serif,system-ui,sans-serif;--font-heading:Anuphan,ui-sans-serif,system-ui,sans-serif;--theme-btn-radius:10px}
