/* Shared house style for VoltLogic and Ampflow Energy.
   Light and friendly: lots of white, one green action colour, large rounded surfaces without shadows,
   short texts and always the same main button. */

:root {
  --b-green: var(--wp--preset--color--green);
  --b-green-dark: var(--wp--preset--color--green-dark);
  --b-ink: var(--wp--preset--color--ink);
  --b-mint: var(--wp--preset--color--mint);
  --b-sun: var(--wp--preset--color--sun);
  --b-stone: var(--wp--preset--color--stone);
  --b-line: var(--wp--preset--color--line);
  --b-radius-lg: 32px;
  --b-radius: 24px;
  --b-section-y: clamp(3.5rem, 8vw, 6rem);
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--b-ink); outline-offset: 3px; border-radius: 4px;
}

/* ---------- header ---------- */
.site-header {
  position: relative; isolation: isolate;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--b-line);
  padding-block: 0.8rem;
}
/* Blur on a separate layer: backdrop-filter on the header itself makes the header the containing block
   for position:fixed, which trapped the mobile menu inside the header. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px); pointer-events: none; }

/* ---------- mobile menu (overlay) ---------- */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
  position: fixed; inset: 0; z-index: 100000; height: 100vh; height: 100dvh; overflow-y: auto;
  background: var(--wp--preset--color--white, #fff) !important; color: var(--wp--preset--color--ink, #0E1714) !important;
  padding: 1.25rem 1.5rem 2rem; animation: none !important; opacity: 1 !important;
  --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; --navigation-layout-align: flex-start;
}
.site-header .is-menu-open .wp-block-navigation-item, .site-header .is-menu-open .wp-block-navigation-item__content { justify-content: flex-start !important; align-items: flex-start !important; text-align: left !important; }
.site-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 3.5rem; gap: 0 !important; width: 100%; }
.site-header .is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important; width: 100%; }
.site-header .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--b-line); }
.site-header .is-menu-open .wp-block-navigation-item__content { display: block; padding: 1rem 0 !important; font-size: 1.35rem; font-weight: 700; color: inherit !important; }
.site-header .wp-block-navigation__responsive-container-close { top: 1.1rem; right: 1.25rem; color: inherit; }
.site-header .wp-block-navigation__responsive-container-close svg,
.site-header .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.site-header .wp-block-navigation__responsive-container-open { color: var(--b-ink); padding: .25rem; }
html.has-modal-open { overflow: hidden; }
/* Stays on top while scrolling. WordPress puts the header in its own <header> wrapper,
   so that wrapper has to be sticky (sticky on the inner block does not work). */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child:has(.site-header) {
  position: sticky; top: 0; z-index: 100; margin-block-start: 0;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } } /* the admin bar scrolls along there */
html { scroll-padding-top: 6rem; }   /* anchor links (#plannen) must not end up under the bar */
.site-brand { gap: 0.6rem; align-items: center; }
.site-brand .wp-block-site-title a { color: var(--b-ink); text-decoration: none; }
.site-actions { gap: 1.5rem; align-items: center; }
.site-actions .wp-block-navigation a { color: var(--b-ink); text-decoration: none; }
.site-actions .wp-block-navigation a:hover { color: var(--b-green-dark); }
.site-header__cta .wp-block-button__link { padding: 0.65em 1.25em; font-size: 1rem; }
/* Mobile: the button stays (main action), but compact on one line */
.site-header .site-header__cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 781px) {
  .site-header .site-actions { gap: 0.9rem; }
  .site-header .site-header__cta .wp-block-button__link { padding: 0.55em 1em; font-size: 0.92rem; }
}
@media (max-width: 380px) { .site-header .site-brand .wp-block-site-title { display: none; } }
/* VoltLogic: no cart or account in the bar (safety net next to the filter in functions.php) */
.vl-brand-voltlogic .site-header .wp-block-woocommerce-mini-cart,
.vl-brand-voltlogic .site-header .wp-block-woocommerce-customer-account { display: none !important; }

/* ---------- buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--b-ink); border: 2px solid var(--b-line);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--b-ink); background: transparent; color: var(--b-ink); }

/* ---------- hero ---------- */
.vl-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.vl-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.vl-hero__lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; max-width: 42ch; color: #2E4A40; }
.vl-hero .wp-block-buttons { margin-top: 1.75rem; gap: 0.75rem; }
.vl-hero__art { margin: 0; }
.vl-hero__art img {
  width: 100%; display: block; background: var(--b-mint); border-radius: var(--b-radius-lg);
  padding: clamp(1rem, 3vw, 2rem); box-sizing: border-box;
}

/* tick list (USPs in the hero and elsewhere) */
.vl-usp { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.vl-usp li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; font-size: 1.0625rem; }
.vl-usp li::before {
  content: ""; width: 1.5rem; height: 1.5rem; border-radius: 50%; margin-top: 0.05rem;
  background: var(--b-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- tab bar below the hero ---------- */
.vl-tabs {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  padding: 0.4rem; background: var(--b-mint); border-radius: 999px; width: max-content; max-width: 100%;
}
.vl-tabs::-webkit-scrollbar { display: none; }
.vl-tabs a {
  flex: none; padding: 0.6rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: 0.975rem;
  color: var(--b-ink); text-decoration: none; white-space: nowrap;
}
.vl-tabs a:hover { background: #fff; }

/* ---------- sections ---------- */
.vl-section { padding-block: var(--b-section-y); }
.vl-section--mint { background: var(--b-mint); }
.vl-section > h2:first-child, .vl-section > .wp-block-heading:first-child { margin-top: 0; }
.vl-intro { font-size: var(--wp--preset--font-size--large); color: #2E4A40; max-width: 52ch; }
.vl-note { font-size: var(--wp--preset--font-size--small); color: var(--b-stone); max-width: 64ch; }
.is-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: #2E4A40; }
.vl-note { font-size: .85rem; opacity: .85; margin-top: 2rem; }
.vl-tag-test { display: inline-block; margin-left: .4rem; padding: .15rem .6rem; border-radius: 999px; background: var(--b-sun, #FFC83D); color: #0F2A22; font-size: .8rem; font-weight: 700; vertical-align: middle; letter-spacing: .02em; }
.vl-section--mint .vls, .vl-section--mint .vl-waitlist input { background: var(--vl-surface, #fff); }

/* ---------- cards ---------- */
.vl-cards { gap: 1.25rem; margin-top: 2rem; }
.vl-card { background: var(--b-mint); border-radius: var(--b-radius); padding: 1.75rem; }
.vl-section--mint .vl-card { background: #fff; }
.vl-card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.vl-card p { margin: 0; color: #2E4A40; }
.vl-card .wp-block-image { margin: -0.25rem -0.25rem 1.25rem; }
.vl-card .wp-block-image img { width: 100%; border-radius: calc(var(--b-radius) - 6px); display: block; }
.vl-card h3 a { color: var(--b-ink); text-decoration: none; }
.vl-card h3 a:hover { color: var(--b-green-dark); text-decoration: underline; text-underline-offset: 0.2em; }

/* image + text side by side */
.vl-media img { width: 100%; display: block; background: var(--b-mint); border-radius: var(--b-radius-lg); padding: clamp(1rem, 3vw, 2rem); box-sizing: border-box; }
.vl-section--mint .vl-media img { background: #fff; }

/* ---------- steps (only for real sequences) ---------- */
.vl-steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.vl-steps li { counter-increment: step; background: #fff; border-radius: var(--b-radius); padding: 1.6rem; }
.vl-section:not(.vl-section--mint) .vl-steps li { background: var(--b-mint); }
.vl-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--b-sun); color: var(--b-ink); font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}
.vl-steps strong { display: block; font-size: 1.15rem; margin-bottom: 0.3rem; }
.vl-steps--list { grid-template-columns: 1fr; gap: 0.75rem; }
.vl-steps--list li { display: grid; grid-template-columns: 3.25rem 1fr; align-items: start; padding: 1.25rem 1.5rem; }
.vl-steps--list li::before { margin: 0; grid-column: 1; grid-row: 1 / span 2; }
.vl-steps--list li > strong { grid-column: 2; }   /* the loose text after the heading then lands in column 2, row 2 */

/* ---------- prices ---------- */
.vl-prices { gap: 1.25rem; margin-top: 2rem; }
.vl-price { background: #fff; border: 2px solid var(--b-line); border-radius: var(--b-radius); padding: 2rem; }
.vl-price--extra { border-color: var(--b-sun); background: #FFFBEF; }
.vl-price h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.vl-price__amount { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1; color: var(--b-green-dark); margin: 0 0 1rem; font-variant-numeric: tabular-nums; }
.vl-price__amount small { font-size: .38em; font-weight: 700; letter-spacing: 0; vertical-align: .35em; margin-right: .1em; }
.vl-price p:last-child { color: #2E4A40; margin-bottom: 0; }

/* ---------- tables ---------- */
.vl-table table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.vl-table th, .vl-table td { border: 0; border-bottom: 1px solid var(--b-line); padding: 1rem 1rem 1rem 0; text-align: left; vertical-align: top; }
.vl-table thead th { font-size: var(--wp--preset--font-size--small); color: var(--b-stone); font-weight: 600; border-bottom: 2px solid var(--b-ink); }
.vl-table tbody td:first-child { font-weight: 700; }
.vl-table--sum td:last-child { text-align: right; white-space: nowrap; }
.vl-table--sum tr:last-child td { border-bottom: 3px solid var(--b-green); font-size: 1.15rem; }
.vl-table--duo tbody td:first-child { font-weight: 400; }
.vl-table--duo th, .vl-table--duo td { width: 50%; }
@media (max-width: 600px) { .vl-table--duo th, .vl-table--duo td { font-size: 0.9rem; padding-right: 0.6rem; } }
.vl-table figcaption { color: var(--b-stone); font-size: 0.875rem; }

/* ---------- questions ---------- */
.vl-faq { background: #fff; border-radius: 18px; padding: 1.1rem 1.4rem; margin-block: 0.6rem; }
.vl-section:not(.vl-section--mint) .vl-faq, .page-main .vl-faq { background: var(--b-mint); }
.vl-faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.vl-faq summary::-webkit-details-marker { display: none; }
.vl-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--b-green-dark); }
.vl-faq[open] summary::after { content: "–"; }
.vl-faq p { margin: 0.75rem 0 0; color: #2E4A40; }

/* ---------- closing call to action ---------- */
.vl-cta { background: var(--b-green); color: #fff; border-radius: var(--b-radius-lg); padding: clamp(2rem, 5vw, 3.5rem); }
.vl-cta h2 { color: #fff; margin-top: 0; max-width: 20ch; }
.vl-cta p { color: #E4F6EC; max-width: 48ch; }
.vl-cta .wp-block-button__link { background: #fff; color: var(--b-green-dark); }
.vl-cta .wp-block-button__link:hover { background: var(--b-ink); color: #fff; }
.vl-cta-wrap { padding-block: var(--b-section-y); }

/* ---------- pages ---------- */
.page-main { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--b-section-y); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.page-cta { margin-top: 2.5rem; }
.vl-contact { font-size: var(--wp--preset--font-size--large); line-height: 1.7; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img { border-radius: 20px; background: var(--b-mint); }
.woocommerce ul.products li.product .price,
.wc-block-components-product-price { color: var(--b-ink); font-weight: 800; }
.woocommerce span.onsale { background: var(--b-sun); color: var(--b-ink); }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
  border-radius: 999px; background: var(--b-green); color: #fff; font-weight: 700;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--b-green-dark); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--b-ink); color: #B9CEC4; padding-block: 3.5rem 2rem; }
.site-footer .wp-block-site-title a { color: #fff; text-decoration: none; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin-block: 0.35rem; }
.site-footer__blurb { max-width: 36ch; margin-top: 1rem !important; }
.site-footer__head { font-size: var(--wp--preset--font-size--small); color: #7FA293; font-weight: 600; letter-spacing: 0; }
.site-footer .vl-contact { font-size: 1rem; }
.site-footer .wp-block-site-logo img { background: #fff; border-radius: 10px; padding: 3px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; }
.vl-legal { font-size: 0.875rem; color: #7FA293; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (min-width: 782px) { html { scroll-behavior: smooth; scroll-padding-top: 6rem; } }

/* ---------- alignment: everything in sections on the wide edge, text limited to a readable line length ---------- */
.site-header__bar { justify-content: space-between; }
.vl-hero.is-layout-constrained > :not(.alignfull),
.vl-section.is-layout-constrained > :not(.alignfull) { max-width: var(--wp--style--global--wide-size, 1200px); }
.vl-section > p, .vl-section > .wp-block-paragraph { max-width: 62ch; }
.vl-tabs { width: 100%; margin-top: clamp(2rem, 4vw, 3rem) !important; border-radius: 999px; }
.vl-cta.is-layout-constrained > *,
.site-footer__legal.is-layout-constrained > * { margin-left: 0 !important; }
.site-footer__legal.is-layout-constrained > * { max-width: none; }

/* never break headings in the middle of a word; rather a bit smaller on narrow screens */
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.vl-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); }
@media (max-width: 420px) { .vl-hero h1 { font-size: 2.1rem; } }

/* =====================================================================
   Dark mode — follows the visitor's system setting automatically.
   The colour variables are switched; places with fixed colours separately.
   ===================================================================== */
:root { color-scheme: light dark; }

@media (prefers-color-scheme: dark) {
  /* higher specificity than WordPress' own :root/body variables, whatever the load order */
  html:root, html body {
    --wp--preset--color--white: #0E1714;      /* background */
    --wp--preset--color--ink: #E6F0EB;        /* text */
    --wp--preset--color--mint: #15231E;       /* soft surfaces */
    --wp--preset--color--line: #2A3B34;
    --wp--preset--color--stone: #9DB2A8;
    --wp--preset--color--green: #1FA572;
    --wp--preset--color--green-dark: #5ED3A0; /* links: light enough on dark */
    --vl-text-soft: #B6CBC1;
    --vl-surface: #111D19;                    /* cards on a soft surface */
  }

  body { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }

  /* header */
  .site-header { background: rgba(14, 23, 20, .92); border-bottom-color: var(--b-line); }
  .site-header .wp-block-site-logo img { background: #E6F0EB; border-radius: 10px; padding: 3px; }

  /* softer text colour that was dark green */
  .vl-hero__lead, .vl-intro, .is-lead, .vl-card p, .vl-faq p, .vl-price p:last-child { color: var(--vl-text-soft); }

  /* surfaces that were white */
  .vl-section--mint .vl-card, .vl-steps li, .vl-faq,
  .vl-section--mint .vl-media img, .vl-tabs a:hover { background: var(--vl-surface); }
  .vl-section:not(.vl-section--mint) .vl-steps li,
  .vl-section:not(.vl-section--mint) .vl-faq, .page-main .vl-faq { background: var(--b-mint); }
  .vl-price { background: var(--vl-surface); border-color: var(--b-line); }
  .vl-price--extra { background: #262010; border-color: var(--b-sun); }
  .vl-price__amount { color: var(--b-green-dark); }

  /* dark text on yellow stays dark */
  .vl-steps li::before, .af-price__vat { color: #0F2A22; }
  .af-price__vat { border-color: #0F2A22; }
  .af-price__key { border-color: var(--b-ink); }

  /* buttons */
  .wp-block-button.is-style-outline .wp-block-button__link { color: var(--b-ink); border-color: var(--b-line); }
  .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--b-ink); color: var(--b-ink); }
  .vl-cta { background: #137A55; }
  .vl-cta .wp-block-button__link { background: #FFFFFF; color: #0E7550; }
  .vl-cta .wp-block-button__link:hover { background: #0E1714; color: #FFFFFF; }

  /* footer stays dark, slightly deeper than the page */
  .site-footer { background: #08110E; border-top: 1px solid var(--b-line); }

  /* table and calculation example */
  .vl-table thead th { border-bottom-color: var(--b-ink); }

  /* WooCommerce and Amelia: input fields follow color-scheme; product images on a light surface */
  .woocommerce ul.products li.product a img, .wc-block-components-product-image img { background: #E8F5EE; }

  /* Checkout and cart: WooCommerce sets white fields and light notices itself */
  html body {
    --wc-form-color-background: var(--vl-surface);
    --wc-form-color-text: var(--b-ink);
    --wc-form-border-color: var(--b-line);
    --wc-form-color-border: var(--b-line);
    --wc-subtle: #9DB2A8;
    --wc-highlight: var(--b-green-dark);
  }
  .woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea,
  .woocommerce-page form .form-row .input-text, .woocommerce-page form .form-row select, .woocommerce-page form .form-row textarea,
  .woocommerce form input[type=text], .woocommerce form input[type=email], .woocommerce form input[type=tel],
  .woocommerce form input[type=password], .woocommerce form input[type=number], .woocommerce form textarea,
  .woocommerce .quantity .qty, .woocommerce #coupon_code, .woocommerce-form-coupon .input-text,
  .select2-container--default .select2-selection--single, .select2-dropdown, .select2-search--dropdown .select2-search__field,
  .wc-block-components-text-input input, .wc-block-components-textarea, .wc-block-components-combobox .components-form-token-field__input,
  .wc-blocks-components-select .wc-blocks-components-select__select {
    background-color: var(--vl-surface) !important; color: var(--b-ink) !important; border-color: var(--b-line) !important;
  }
  .woocommerce form ::placeholder, .wc-block-components-text-input input::placeholder { color: #8FA59B; opacity: 1; }
  .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--b-ink); }
  .select2-container--default .select2-results__option--highlighted[aria-selected],
  .select2-container--default .select2-results__option[aria-selected=true] { background: #1F3A30; color: #fff; }
  .wc-block-components-text-input label, .wc-blocks-components-select label { color: #9DB2A8; }
  /* notices (classic and blocks) */
  .woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews, p.no-comments,
  .wc-block-components-notice-banner {
    background-color: var(--b-mint) !important; color: var(--b-ink) !important;
  }
  .wc-block-components-notice-banner.is-info { border-color: #3B8FD0; }
  .wc-block-components-notice-banner.is-success { border-color: var(--b-green); }
  .wc-block-components-notice-banner.is-error { border-color: #E06A5C; }
  .wc-block-components-notice-banner > svg { fill: currentColor; background-color: #3B8FD0; }
  .wc-block-components-notice-banner.is-success > svg { background-color: var(--b-green); }
  .wc-block-components-notice-banner.is-error > svg { background-color: #E06A5C; }
  .woocommerce-info::before { color: #6DB3E8; }
  .woocommerce-message::before { color: var(--b-green-dark); }
  .wc-block-components-notice-banner a, .woocommerce-info a, .woocommerce-message a { color: var(--b-green-dark); }
  /* order and payment methods */
  .woocommerce-checkout #payment, .woocommerce-cart #payment, #add_payment_method #payment { background: var(--b-mint) !important; color: var(--b-ink); }
  .woocommerce-checkout #payment div.payment_box, #add_payment_method #payment div.payment_box { background: var(--vl-surface) !important; color: var(--b-ink) !important; }
  .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--vl-surface) !important; }
  .woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--b-line); }
  .woocommerce table.shop_table, .woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--b-line) !important; color: var(--b-ink); }
  .woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { border-color: var(--b-line); }
  .woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper, .woocommerce-terms-and-conditions { color: var(--b-ink); background: transparent; }
  .woocommerce-terms-and-conditions { background: var(--vl-surface) !important; }
  .woocommerce form .form-row .required { color: #F08A7E; }
  .woocommerce form .form-row.woocommerce-invalid .input-text { border-color: #E06A5C !important; }
  .woocommerce form .form-row.woocommerce-validated .input-text { border-color: var(--b-green) !important; }
  .blockUI.blockOverlay { background: #0E1714 !important; }

  /* Deed of Assignment: the signature box stays white, so the signature is clearly visible */
  .af-deed { background: var(--b-mint); }
  .af-deed__text { background: var(--vl-surface); color: var(--b-ink); }
}

/* ---------- news ---------- */
.vl-overview.is-layout-constrained > :not(.alignfull) { max-width: var(--wp--style--global--wide-size, 1200px); }
.vl-overview .page-title { margin-bottom: .4rem; }
.vl-cats { list-style: none; padding: 0; margin: 1.25rem 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.vl-cats li a { display: inline-block; padding: .3rem .9rem; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.vl-news .wp-block-post-template { gap: 1.25rem; margin: 0; padding: 0; }
.vl-news .wp-block-post-template > li { margin: 0; display: flex; }
.vl-news .vl-news__card { display: flex; flex-direction: column; width: 100%; box-sizing: border-box; margin: 0;
  padding: 1.5rem 1.6rem !important; background: var(--b-mint); border-radius: var(--b-radius, 18px); }
.vl-news__card > * { margin-top: 0; margin-bottom: 0; max-width: none; }
.vl-news__card .wp-block-post-title { font-size: 1.15rem; line-height: 1.3; margin: .5rem 0 .6rem; }
.vl-news__card .wp-block-post-title a { text-decoration: none; color: inherit; }
.vl-news__card .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.vl-news__card .wp-block-post-excerpt { flex: 1; display: flex; flex-direction: column; font-size: .95rem; line-height: 1.55; margin: 0; }
.vl-news__card .wp-block-post-excerpt__excerpt { margin: 0 0 1rem; opacity: .85; }
.vl-news__card .wp-block-post-excerpt__more-text { margin: auto 0 0; }
.vl-news__card .wp-block-post-excerpt__more-link { font-weight: 700; font-size: .95rem; text-decoration: none; }
.vl-news__card .wp-block-post-excerpt__more-link:hover { text-decoration: underline; }
.vl-meta { gap: .2rem .75rem; align-items: baseline; flex-wrap: wrap; margin: 0; }
.vl-date { font-size: .85rem; opacity: .7; margin: 0; }
.vl-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.vl-cat a { text-decoration: none; }
.vl-section--mint .vl-news .vl-news__card { background: var(--wp--preset--color--white, #fff); }
.vl-news .wp-block-query-pagination { margin-top: 2rem; }
@media (max-width: 960px) { .vl-news .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px) { .vl-news .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; } }
/* dossiers above the overview */
.vl-dossiers:empty, .vl-dossiers:not(:has(.vl-dossier)) { display: none; }
.vl-dossiers { margin-top: 1.5rem; }
.vl-dossiers .wp-block-columns { gap: 1.25rem; margin: 0; }
.vl-dossier { border: 1px solid currentColor; border-radius: var(--b-radius, 18px); padding: 1.25rem 1.5rem; }
.vl-dossier > * { margin: 0; }
.vl-dossier h3 { font-size: 1.15rem; margin: .35rem 0 .4rem; }
.vl-dossier h3 a { text-decoration: none; color: inherit; }
.vl-dossier h3 a:hover { text-decoration: underline; }
.vl-dossier p:last-child { font-size: .95rem; opacity: .85; }
/* article */
.vl-back { font-size: .95rem; margin: 0 0 1rem; }
.vl-back a { text-decoration: none; }
.vl-article .vl-back:last-child { margin-top: 2.5rem; }
.vl-article .vl-meta { margin-bottom: 1.5rem; }
.vl-update { border-left: 4px solid currentColor; padding: .7rem 1rem; background: var(--b-mint); border-radius: 0 10px 10px 0; }
/* ---------- benefit (first what you keep, then what it costs) ---------- */
.vl-benefit { background: var(--b-mint); border-radius: var(--b-radius); padding: clamp(1.25rem, 3vw, 2rem); margin-block: 0 2rem; }
.vl-section--mint .vl-benefit { background: var(--wp--preset--color--white, #fff); }
.vl-benefit > * { max-width: none !important; margin-left: 0 !important; }
.vl-benefit__head { font-weight: 700; margin: 0 0 1rem; }
.vl-benefit__sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; font-variant-numeric: tabular-nums; }
.vl-benefit__sum > div { display: flex; flex-direction: column; gap: .2rem; }
.vl-benefit__sum span { font-size: .95rem; opacity: .8; }
.vl-benefit__sum strong { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; line-height: 1.1; }
.vl-benefit__left strong { color: var(--b-green-dark); font-size: clamp(2rem, 5vw, 2.8rem); }
.vl-benefit__miss { margin: 1.25rem 0 .5rem; }
.vl-benefit__note { font-size: .85rem; opacity: .8; margin: 0; }
.vl-price__net { font-weight: 700; color: var(--b-green-dark); margin: -.4rem 0 1rem; }
@media (max-width: 640px) { .vl-benefit__sum { grid-template-columns: 1fr; } .vl-benefit__sum > div { flex-direction: row; justify-content: space-between; align-items: baseline; } .vl-benefit__left { border-top: 2px solid currentColor; padding-top: .6rem; } }
.vl-table--compare td:not(:first-child), .vl-table--compare th:not(:first-child) { text-align: right; white-space: nowrap; }
.vl-table--compare tr:last-child td { border-bottom: 0; border-top: 2px solid currentColor; }
.vl-table--compare tr:last-child td:last-child { color: var(--b-green-dark); font-size: 1.15rem; }
.vl-sample-invoice { max-width: 420px; margin: 1rem 0; }
.vl-sample-invoice img { border: 1px solid var(--b-line); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.12); background: #fff; }
.vl-sample-invoice figcaption { font-size: .85rem; opacity: .8; }
/* Language menu [vl_lang]: current language as a small button, the others in a dropdown (no JavaScript needed). */
.vl-lang { position: relative; font-size: .85rem; font-weight: 700; }
.vl-lang > summary { list-style: none; display: flex; align-items: center; gap: .3rem; cursor: pointer; padding: .35rem .5rem; border-radius: 999px; border: 1.5px solid currentColor; opacity: .75; line-height: 1; }
.vl-lang > summary::-webkit-details-marker { display: none; }
.vl-lang > summary:hover, .vl-lang[open] > summary, .vl-lang > summary:focus-visible { opacity: 1; }
.vl-lang ul { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 100; list-style: none; margin: 0; padding: .35rem; min-width: 9.5rem; background: var(--wp--preset--color--white, #fff); color: var(--b-ink, #0F2A22); border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 42, 34, .18); }
.vl-lang li a, .vl-lang li span { display: block; padding: .5rem .75rem; border-radius: 10px; text-decoration: none; color: inherit; font-weight: 600; }
.vl-lang li a:hover, .vl-lang li a:focus-visible { background: var(--wp--preset--color--mint, #E8F5EE); }
.vl-lang li span[aria-current] { color: var(--b-green-dark); }
.vl-lang li span[aria-current]::after { content: " ✓"; }
.site-actions > p:has(.vl-lang) { margin: 0; }
@media (max-width: 600px) { .vl-lang { font-size: .8rem; } .vl-lang > summary { padding: .3rem .4rem; } }
@media (prefers-color-scheme: dark) { .vl-lang ul { background: #16241F; color: #E8F5EE; } .vl-lang li a:hover, .vl-lang li a:focus-visible { background: #0F1A16; } }
.vl-version { opacity: .6; font-size: .8em; margin-left: .35rem; white-space: nowrap; }
