/* =========================================================
   300 Cash Loans — global styles
   Design tokens are exposed as CSS variables so every custom
   block can reuse them (var(--cl-purple), var(--cl-yellow) ...).
   ========================================================= */

:root {
  /* Brand colours (sampled from the Figma mockup) */
  --cl-purple:   #490B66;
  --cl-dark:     #170442;
  --cl-heading:  #3E0061;
  --cl-yellow:   #F1C500;
  --cl-yellow-h: #FFD21A;
  --cl-gold:     #E6A300;
  --cl-lavender: #F0F0F8;
  --cl-green:    #015A3C;
  --cl-white:    #FFFFFF;
  --cl-text:     #222222;
  --cl-muted:    #6B6B6B;
  --cl-mist:     #C0BFD0;

  /* Layout */
  --cl-container: 1200px;
  --cl-gutter: 20px;
  --cl-header-h: 96px;

  /* Type scale (relative to 16px root) */
  --fs-h1: 4rem;      /* 64px */
  --fs-h2: 2.5rem;    /* 40px */
  --fs-h3: 1.5rem;    /* 24px */
  --fs-h4: 1.25rem;   /* 20px */
  --fs-body: 1.125rem;  /* 18px */
  --fs-small: 0.875rem;  /* 14px */
  --fs-xsmall: 0.75rem;  /* 12px */

  --cl-radius: 16px;
  --cl-radius-pill: 999px;
}

/* ---------- Reset-ish base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--cl-text);
  background: var(--cl-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--cl-heading);
}
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 8vw, var(--fs-h1)); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { margin: 0 0 1em; }

:where(a) { color: var(--cl-gold); }
a { text-decoration: none; }
:where(a):hover { color: var(--cl-purple); }




/* Full-bleed sections use 100vw, which includes the scrollbar width and can
   push the page a few pixels wider than the viewport. Clip that at the root so
   the page never gains a horizontal scrollbar. */
body { max-width: 100%; overflow-x: clip; }

/* ---------- Layout helpers ---------- */
.cl-container {
  width: 100%;
  max-width: var(--cl-container);
  margin-inline: auto;
}
/* Side gutters only until the screen is wide enough that the centred container
   already leaves a gutter's worth of margin on each side (1200 + 2×20 = 1240).
   Above that — wide desktop — the container needs no side padding. */
@media (max-width: 1240px) {
  .cl-container { padding-inline: var(--cl-gutter); }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Reserve room under the fixed header, EXCEPT when the page opens with the
   full-bleed Hero block (then it sits flush and the header overlaps it). */
.site-content { min-height: 40vh; padding-top: calc(var(--cl-header-h) + 24px); }
body.cl-hero-top .site-content { padding-top: 0; }
.site-content > :first-child { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: var(--cl-radius-pill);
  padding: 16px 30px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--cl-yellow); color: var(--cl-dark); }
.btn--primary:hover { background: var(--cl-yellow-h); color: var(--cl-dark); }
.btn--ghost { background: var(--cl-white); color: var(--cl-dark); }
.btn--ghost:hover { background: var(--cl-lavender); color: var(--cl-dark); }

/* =========================================================
   Glass "smart" header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px var(--cl-gutter);
  transition: transform .35s ease;
  will-change: transform;
}
.site-header.is-hidden { transform: translateY(-140%); }

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
  max-width: var(--cl-container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 22px;
  border-radius: var(--cl-radius-pill);
  /* White glass with slight transparency */
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 28px rgba(22, 4, 66, 0.10);
}
/* Graceful fallback if the browser has no backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header__inner { background: rgba(255, 255, 255, 0.94); }
}

/* Over dark sections (e.g. the hero photo) the pill turns lighter and more
   opaque (~#F0F0F8) so the logo stays crisp rather than looking washed out. */
.site-header.is-over-dark .site-header__inner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-over-dark .site-header__inner { background: #ffffff; }
}

/* On the plain dark page hero the pill reads as frosted glass — more
   translucent so the hero colour shows softly through, instead of the opaque
   treatment used over busy hero photos. */
body.cl-phero-top .site-header.is-over-dark .site-header__inner {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.cl-phero-top .site-header.is-over-dark .site-header__inner { background: rgba(255, 255, 255, 0.94); }
}

/* Brand / logo */
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand__mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--cl-purple);
  color: var(--cl-gold);
  font-weight: 700;
}
.site-brand__text { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.site-brand__text .b-300,
.site-brand__text .b-loans { color: var(--cl-purple); }
.site-brand__text .b-cash { color: var(--cl-gold); }
.site-brand img { max-height: 40px; width: auto; }

/* Primary nav */
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.site-nav a {
  color: var(--cl-dark);
  font-weight: 500;
  font-size: var(--fs-body);
}
.site-nav a:hover { color: var(--cl-purple); }

.site-header__cta { flex: 0 0 auto; }

/* Mobile menu toggle (wired up properly during the responsive pass) */
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-nav, .site-header__cta { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: transparent; color: var(--cl-dark); cursor: pointer; margin-left: auto;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--cl-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 72px 0 40px;
  font-size: var(--fs-small);
}
.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: var(--cl-yellow); }

.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.site-footer__brand .site-brand__text .b-300,
.site-footer__brand .site-brand__text .b-loans { color: var(--cl-white); }
.site-footer__brand .site-brand__text .b-cash { color: var(--cl-gold); }
.site-footer__brand .site-brand__mark { border-color: var(--cl-white); }
.footer-tagline { margin: 20px 0 18px; max-width: 320px; color: rgba(255, 255, 255, 0.82); }
.footer-store-link { color: var(--cl-gold); font-weight: 600; font-size: var(--fs-body); }
.footer-store-link:hover { color: var(--cl-yellow); }

.footer-col h3 { color: var(--cl-white); font-size: var(--fs-h4); font-weight: 600; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.site-footer__rule { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); margin: 48px 0; }

.site-footer__disclaimer { color: rgba(255, 255, 255, 0.55); font-size: var(--fs-small); line-height: 1.7; }
.site-footer__disclaimer p { margin: 0 0 14px; }

.site-footer__copy { text-align: center; color: rgba(255, 255, 255, 0.7); margin-top: 40px; }

@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* =========================================================
   Icon chips
   Icons use currentColor, so their colour comes from the chip
   variant below. Change a variant here to recolour every icon
   that uses it — one place, site-wide.
   ========================================================= */
.cl-icon { width: 24px; height: 24px; display: block; }

.cl-icon-chip {
  width: 48px; height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.cl-icon-chip > svg,
.cl-icon-chip > i { display: block; margin: 0; }
.cl-icon-chip.is-yellow  { background: #FFF037; color: #835E00; }
.cl-icon-chip.is-purple  { background: #D7A5F0; color: #4E2E78; }
.cl-icon-chip.is-green   { background: #5ADD89; color: #015A3C; }
.cl-icon-chip.is-orange  { background: #FFA04B; color: #733700; }
.cl-icon-chip.is-pink    { background: #FF96FA; color: #64244B; }
.cl-icon-chip.is-blue    { background: #6FB6FF; color: #0B3A6B; }
.cl-icon-chip.is-teal    { background: #4FE0CE; color: #05564C; }
.cl-icon-chip.is-red     { background: #FF8C8C; color: #7A1620; }
.cl-icon-chip.is-indigo  { background: #A9A0F7; color: #2A2270; }
.cl-icon-chip.is-lime    { background: #C9F45C; color: #445C00; }
.cl-icon-chip.is-sky     { background: #79D8F5; color: #0A4A5E; }
.cl-icon-chip.is-dark    { background: var(--cl-dark); color: #ffffff; }
.cl-icon-chip.is-white   { background: #ffffff; color: var(--cl-purple); }

/* Font Awesome glyphs sit in the same chips and inherit the chip colour */
.cl-icon-chip i.cl-icon { font-size: 22px; line-height: 1; width: auto; height: auto; }
.cl-icon-chip svg { width: 24px; height: 24px; display: block; }

/* Alternative footer logo image */
.footer-logo-img { max-height: 44px; width: auto; height: auto; }

/* =========================================================
   Core Table block — styled to match "Costs and Fees"
   ========================================================= */
/* Full-width, borderless table — only a heavy purple header underline and
   light row separators. The extra `.wp-block-table table` specificity overrides
   the core block's default 1px (black) cell borders regardless of load order. */
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 24px; }
.wp-block-table table {
  width: 100%;
  min-width: 560px;            /* keeps columns readable → horizontal scroll on mobile */
  border-collapse: collapse;
  border: 0;
  background: transparent;
}
.wp-block-table table th,
.wp-block-table table td {
  border: 0;                   /* remove the default black cell border */
  text-align: left;
  padding: 15px 24px;
  vertical-align: middle;
  color: var(--cl-text);
}
.wp-block-table table th:first-child,
.wp-block-table table td:first-child { padding-left: 0; }

/* Header: purple text + 3px purple underline */
.wp-block-table table thead { border-bottom: 0; }
.wp-block-table table thead th {
  color: #490B66;
  font-weight: 600;
  border-bottom: 3px solid #490B66;
}

/* Row separators: 1px light lavender */
.wp-block-table table tbody td { border-bottom: 1px solid #F0F0F8; }

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--cl-lavender); }

/* "Soft stripes (bordered)" — a rounded spec card: muted labels on the left,
   bold purple values on the right, a soft zebra, and a highlighted last row. */
.wp-block-table.is-style-cl-soft-stripes { margin-top: 32px; }
.wp-block-table.is-style-cl-soft-stripes table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ECECF2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(20, 4, 66, 0.05);
}
.wp-block-table.is-style-cl-soft-stripes th,
.wp-block-table.is-style-cl-soft-stripes td {
  border: 0;
  border-bottom: 1px solid #F0F0F5;
  padding: 17px 26px;
  vertical-align: middle;
  line-height: 1.35;
}
/* Soft zebra on the data rows. */
.wp-block-table.is-style-cl-soft-stripes tbody tr:nth-child(odd) td { background: #F8F8FB; }
/* First column = black label (with its own left padding so it isn't flush to
   the edge), last column = bold purple value, right-aligned. */
.wp-block-table.is-style-cl-soft-stripes th:first-child,
.wp-block-table.is-style-cl-soft-stripes td:first-child {
  color: var(--cl-dark);
  font-weight: 400;
  padding-left: 26px;
}
.wp-block-table.is-style-cl-soft-stripes th:last-child,
.wp-block-table.is-style-cl-soft-stripes td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--cl-heading);
}
/* The final row is highlighted and its value gets a stronger purple. */
.wp-block-table.is-style-cl-soft-stripes tbody tr:last-child td {
  background: var(--cl-lavender);
  border-bottom: 0;
}
.wp-block-table.is-style-cl-soft-stripes tbody tr:last-child td:last-child { color: var(--cl-purple); }
.wp-block-table figcaption {
  text-align: center;
  color: var(--cl-muted);
  font-size: var(--fs-small);
  margin-top: 10px;
}

/* =========================================================
   List block — "Checklist" style (purple check bullets)
   ========================================================= */
.wp-block-list.is-style-checklist { list-style: none; margin: 20px 0 0; padding: 0; }
.wp-block-list.is-style-checklist li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
}
.wp-block-list.is-style-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 18px;
  border-radius: 10px;
  background: var(--cl-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}

/* =========================================================
   Side pattern (decoration) — attach to a block, centered on a side
   ========================================================= */
/* The pattern never leaves its own block: a corner patch is a square of the
   chosen size, so on a short block it would otherwise spill onto the next one.
   "Extend beyond edge" raises this allowance to the amount you set. */
.cl-has-pattern,
.cl-has-pattern.cl-has-pattern {
  position: relative;
  isolation: isolate;
  /* Doubling the class raises the weight so a block's own styles cannot
     re-open the overflow and let the pattern escape. */
  overflow: clip;
  overflow-clip-margin: 0px;
}
.cl-has-pattern > * { position: relative; z-index: 1; }
.cl-has-pattern::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    var(--cl-pattern-color, var(--cl-purple)) 0 12px,
    transparent 12px 26px
  );
  background-repeat: repeat;
  opacity: 0.9;
}
/* The pattern spans the FULL block on the long axis (covering padding too);
   the size controls the thickness on the short axis (relative units). */
.cl-pattern-left::before   { top: 0; bottom: 0; left: 0;   width: var(--cl-pattern-size, 12rem); }
.cl-pattern-right::before  { top: 0; bottom: 0; right: 0;  width: var(--cl-pattern-size, 12rem); }
.cl-pattern-top::before    { left: 0; right: 0; top: 0;    height: var(--cl-pattern-size, 12rem); }
.cl-pattern-bottom::before { left: 0; right: 0; bottom: 0; height: var(--cl-pattern-size, 12rem); }

/* Without a bleed the patch is capped by the block, so a short block cannot
   let a large corner pattern spill over its neighbours. */
.cl-has-pattern:not(.cl-pattern-bleed)::before {
  max-width: 100%;
  max-height: 100%;
}

/* Corners: a square patch tucked into one corner instead of a full side. */
.cl-pattern-top-left::before {
  top: 0; left: 0;
  width: var(--cl-pattern-size, 12rem); height: var(--cl-pattern-size, 12rem);
}
.cl-pattern-top-right::before {
  top: 0; right: 0;
  width: var(--cl-pattern-size, 12rem); height: var(--cl-pattern-size, 12rem);
}
.cl-pattern-bottom-left::before {
  bottom: 0; left: 0;
  width: var(--cl-pattern-size, 12rem); height: var(--cl-pattern-size, 12rem);
}
.cl-pattern-bottom-right::before {
  bottom: 0; right: 0;
  width: var(--cl-pattern-size, 12rem); height: var(--cl-pattern-size, 12rem);
}

/* Extend the pattern partly beyond the block edge; clip the overflow to that
   amount so it can't spread onto neighbouring blocks. */
/* Left and right may spill into the empty space beside the block. */
.cl-has-pattern.cl-pattern-bleed.cl-pattern-left,
.cl-has-pattern.cl-pattern-bleed.cl-pattern-right {
  overflow: clip;
  overflow-clip-margin: var(--cl-pattern-offset, 0px);
}
/* Top and bottom are clipped at the block edge — anything past it would land
   on the neighbouring section. The offset still shifts what is on show. */
.cl-has-pattern.cl-pattern-bleed.cl-pattern-top,
.cl-has-pattern.cl-pattern-bleed.cl-pattern-bottom {
  overflow: clip;
  overflow-clip-margin: 0;
}
.cl-pattern-bleed.cl-pattern-left::before   { left: calc(-1 * var(--cl-pattern-offset, 0px)); }
.cl-pattern-bleed.cl-pattern-right::before  { right: calc(-1 * var(--cl-pattern-offset, 0px)); }
.cl-pattern-bleed.cl-pattern-top::before    { top: calc(-1 * var(--cl-pattern-offset, 0px)); }
.cl-pattern-bleed.cl-pattern-bottom::before { bottom: calc(-1 * var(--cl-pattern-offset, 0px)); }

.cl-has-pattern.cl-pattern-bleed.cl-pattern-top-left,
.cl-has-pattern.cl-pattern-bleed.cl-pattern-top-right,
.cl-has-pattern.cl-pattern-bleed.cl-pattern-bottom-left,
.cl-has-pattern.cl-pattern-bleed.cl-pattern-bottom-right {
  overflow: clip;
  overflow-clip-margin: var(--cl-pattern-offset, 0px);
}
.cl-pattern-bleed.cl-pattern-top-left::before     { top: calc(-1 * var(--cl-pattern-offset, 0px)); left: calc(-1 * var(--cl-pattern-offset, 0px)); }
.cl-pattern-bleed.cl-pattern-top-right::before    { top: calc(-1 * var(--cl-pattern-offset, 0px)); right: calc(-1 * var(--cl-pattern-offset, 0px)); }
.cl-pattern-bleed.cl-pattern-bottom-left::before  { bottom: calc(-1 * var(--cl-pattern-offset, 0px)); left: calc(-1 * var(--cl-pattern-offset, 0px)); }
.cl-pattern-bleed.cl-pattern-bottom-right::before { bottom: calc(-1 * var(--cl-pattern-offset, 0px)); right: calc(-1 * var(--cl-pattern-offset, 0px)); }

/* Custom image pattern (added manually) fills that strip. */
.cl-has-pattern.cl-pattern--image::before {
  background-image: var(--cl-pattern-image);
  background-repeat: no-repeat;
  background-position: center;
  /* Contain by default, so shrinking the strip scales the image down rather
     than cropping it. Switch to cover in the block settings to fill. */
  background-size: var(--cl-pattern-fit, contain);
  opacity: 1;
}

/* Mobile state — override side / size / image below 782px. */
@media (max-width: 781px) {
  .cl-pattern-left::before,
  .cl-pattern-right::before  { width: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); }
  .cl-pattern-top::before,
  .cl-pattern-bottom::before { height: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); }

  .cl-pattern-m-left::before   { top: 0; bottom: 0; left: 0; right: auto; width: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); height: auto; }
  .cl-pattern-m-right::before  { top: 0; bottom: 0; right: 0; left: auto; width: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); height: auto; }
  .cl-pattern-m-top::before    { left: 0; right: 0; top: 0; bottom: auto; height: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); width: auto; }
  .cl-pattern-m-bottom::before { left: 0; right: 0; bottom: 0; top: auto; height: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); width: auto; }

  .cl-pattern-top-left::before,
  .cl-pattern-top-right::before,
  .cl-pattern-bottom-left::before,
  .cl-pattern-bottom-right::before {
    width: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem));
    height: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem));
  }
  .cl-pattern-m-top-left::before     { top: 0; left: 0; right: auto; bottom: auto; width: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); height: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); }
  .cl-pattern-m-top-right::before    { top: 0; right: 0; left: auto; bottom: auto; width: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); height: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); }
  .cl-pattern-m-bottom-left::before  { bottom: 0; left: 0; right: auto; top: auto; width: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); height: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); }
  .cl-pattern-m-bottom-right::before { bottom: 0; right: 0; left: auto; top: auto; width: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); height: var(--cl-pattern-size-mobile, var(--cl-pattern-size, 12rem)); }

  .cl-has-pattern.cl-pattern--image::before { background-image: var(--cl-pattern-image-mobile, var(--cl-pattern-image)); }
  .cl-has-pattern.cl-pattern-m--image::before {
    background-image: var(--cl-pattern-image-mobile, var(--cl-pattern-image));
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--cl-pattern-fit, contain);
    -webkit-mask: none;
    mask: none;
    opacity: 1;
  }
}

/* =========================================================
   Button variants (used by the Hero buttons and .btn helpers)
   ========================================================= */
.btn--white   { background: #fff; color: var(--cl-heading); box-shadow: 0 6px 18px rgba(22, 4, 66, 0.12); }
.btn--white:hover { background: var(--cl-lavender); color: var(--cl-heading); }
.btn--outline { background: transparent; color: var(--cl-purple); box-shadow: inset 0 0 0 2px var(--cl-purple); }
.btn--outline:hover { background: var(--cl-purple); color: #fff; }
.btn--purple  { background: var(--cl-purple); color: #fff; }
.btn--purple:hover { background: var(--cl-heading); color: #fff; }
.btn--soft    { background: var(--cl-lavender); color: var(--cl-heading); }
.btn--soft:hover { background: #E6E6F2; color: var(--cl-heading); }

.cl-btnwrap { display: flex; }
.cl-btnwrap.is-align-left   { justify-content: flex-start; }
.cl-btnwrap.is-align-center { justify-content: center; }
.cl-btnwrap.is-align-right  { justify-content: flex-end; }

/* =========================================================
   Core Button block styles (brand variants)
   ========================================================= */
.wp-block-button[class*="is-style-cl-"] .wp-block-button__link {
  border-radius: 999px;
  padding: 16px 34px;
  font-weight: 600;
  border: 0;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-button.is-style-cl-yellow .wp-block-button__link  { background: var(--cl-yellow); color: var(--cl-dark); }
.wp-block-button.is-style-cl-yellow .wp-block-button__link:hover { background: var(--cl-gold); color: var(--cl-dark); }
.wp-block-button.is-style-cl-white .wp-block-button__link   { background: #fff; color: var(--cl-heading); box-shadow: 0 6px 18px rgba(22, 4, 66, 0.12); }
.wp-block-button.is-style-cl-white .wp-block-button__link:hover { background: var(--cl-lavender); color: var(--cl-heading); }
.wp-block-button.is-style-cl-outline .wp-block-button__link { background: transparent; color: var(--cl-purple); box-shadow: inset 0 0 0 2px var(--cl-purple); }
.wp-block-button.is-style-cl-outline .wp-block-button__link:hover { background: var(--cl-purple); color: #fff; }
.wp-block-button.is-style-cl-purple .wp-block-button__link  { background: var(--cl-purple); color: #fff; }
.wp-block-button.is-style-cl-purple .wp-block-button__link:hover { background: var(--cl-heading); color: #fff; }
.wp-block-button.is-style-cl-soft .wp-block-button__link    { background: var(--cl-lavender); color: var(--cl-heading); }
.wp-block-button.is-style-cl-soft .wp-block-button__link:hover { background: #E6E6F2; color: var(--cl-heading); }

/* =========================================================
   Generic carousel (Reviews, Loan Types)
   ========================================================= */
.cl-carousel { position: relative; }
.cl-carousel__viewport { overflow: hidden; }
.cl-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.cl-carousel__track::-webkit-scrollbar { display: none; }
.cl-carousel__track.is-dragging { scroll-behavior: auto; cursor: grabbing; scroll-snap-type: none; }
.cl-carousel__card {
  flex: 0 0 clamp(280px, 32%, 380px);
  scroll-snap-align: start;
  box-sizing: border-box;
}
.cl-carousel__dots {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  width: max-content; margin: 18px auto 0; padding: 9px 13px;
  border-radius: 999px;
  background: rgba(73, 11, 102, 0.08);
  border: 1px solid rgba(73, 11, 102, 0.12);
}
.cl-carousel--on-dark .cl-carousel__dots {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cl-carousel__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(73, 11, 102, 0.30); cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.cl-carousel--on-dark .cl-carousel__dot { background: rgba(255, 255, 255, 0.45); }
.cl-carousel__dot.is-active { width: 22px; border-radius: 5px; background: var(--cl-purple); }
.cl-carousel--on-dark .cl-carousel__dot.is-active { background: #fff; }
@media (max-width: 781px) {
  .cl-carousel__card { flex-basis: 84%; }
}

/* =========================================================
   Full-screen map page (template-full-map.php)
   ========================================================= */
body.cl-map-page .site-header__inner {
  /* The header already has its own 20px padding, so no extra inset here —
     that is what the map panel lines up with. */
  max-width: none;
  margin-inline: 0;
}
body.cl-map-page .site-content {
  padding: 0;
  min-height: 100dvh;
}
/* Nothing follows the map, so the page must not scroll past it. */
body.cl-map-page { overflow-y: hidden; }

@media (max-width: 900px) {
  /* On a phone the list sits under the map, so the page scrolls again. */
  body.cl-map-page { overflow-y: auto; }
  body.cl-map-page .site-header__inner { margin-inline: 0; }
}
