/**
* Theme Name: Green4Grey
* Description: Child theme of Sosso for the Green4Grey project (Water4All / Horizon Europe).
* Author: HMU
* Template: sosso-green4grey
* Version: 1.9.11
* Text Domain: green4grey
*/

/* ============================================================
   1. PALETTE
   ------------------------------------------------------------
   Every value below was measured against its intended background
   before being adopted. Contrast ratios are recorded inline; do
   not swap a colour without re-measuring, because several of these
   are only just over the line.

   Sosso's own brand colour is #6cbe03 with a #f4a700 secondary,
   both hardcoded ~60 times in the parent style.css. Section 3
   overrides every one of those rules. Adding a new Sosso widget
   to a page may surface a lime accent this sheet does not yet
   cover -- grep the parent sheet for #6cbe03 and extend section 3.
   ============================================================ */

:root {
    /* Green -- the "green" half of Green4Grey. Nature-based treatment. */
    --g4g-green:        #2E7D52;  /* 5.03:1 on white. Links, buttons, icons. */
    --g4g-green-deep:   #1F5E3C;  /* 8.1:1 on white. Hover / pressed. */
    --g4g-green-bright: #3E8E5A;  /* 4.02:1 -- NON-TEXT ONLY. Fills, gradients. */

    /* Water blue -- the accent. Reuse water, greywater, the "4" in the name. */
    --g4g-blue:         #2C7DA0;  /* 4.62:1 on white. */
    --g4g-blue-deep:    #1F5F7A;  /* 6.9:1 on white. Hover. */

    /* Dark -- header info bar, footer, overlays. */
    --g4g-dark:         #1F3D33;  /* white on this = 11.84:1 */
    --g4g-dark-2:       #16302A;  /* footer copyright strip */

    /* Tints for alternating sections. */
    --g4g-light:        #DCEFE2;  /* too dark for green (4.19:1) or blue text -- fills only */
    --g4g-light-blue:   #EAF4F8;  /* --g4g-blue-deep on this = 6.31:1 */
    --g4g-tint:         #F2F8F4;  /* page-component tint: --g4g-green 4.68:1, --g4g-muted 5.73:1 */
    --g4g-blue-fill:    #5FA7C6;  /* NON-TEXT ONLY. Card accents. */

    /* Text. */
    --g4g-ink:          #16241E;  /* headings on white */
    --g4g-muted:        #55655C;  /* 6.17:1 on white. Meta, captions. */
    --g4g-on-dark:      #E6F0EA;  /* 10.24:1 on --g4g-dark. Footer body copy. */

    /* Official EU emblem blue. Used only for the funding focus ring. */
    --g4g-eu-blue:      #004494;
}

/* ============================================================
   2. TYPOGRAPHY
   ------------------------------------------------------------
   Eight languages, one of which is Hebrew. Poppins -- Sosso's
   heading face -- covers Latin and Devanagari only, so Greek and
   Hebrew headings would silently fall back to a system face and
   look unrelated to the rest of the site. Open Sans covers latin,
   latin-ext, greek, greek-ext and hebrew, so it is the safe base
   and the explicit fallback for those two scripts.

   Fonts are self-hosted (see section 9 note in functions.php).
   Do not reintroduce fonts.googleapis.com: serving them from
   Google leaks visitor IPs to a third country, which is the exact
   practice the Munich Regional Court ruled unlawful in 2022.
   ============================================================ */

:root {
    --g4g-font-body: "Open Sans", "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --g4g-font-head: "Poppins", "Open Sans", "Noto Sans", "Segoe UI", system-ui, sans-serif;
}

body,
p, li, td, th,
input, select, textarea, button {
    font-family: var(--g4g-font-body);
}

h1, h2, h3, h4, h5, h6,
.title, .sub-title {
    font-family: var(--g4g-font-head);
    color: var(--g4g-ink);
}

/* Poppins has no Greek or Hebrew glyphs. Push those languages to
   Open Sans for headings too rather than letting the browser pick. */
:lang(el) h1, :lang(el) h2, :lang(el) h3,
:lang(el) h4, :lang(el) h5, :lang(el) h6, :lang(el) .title,
:lang(he) h1, :lang(he) h2, :lang(he) h3,
:lang(he) h4, :lang(he) h5, :lang(he) h6, :lang(he) .title {
    font-family: "Open Sans", "Noto Sans Hebrew", "Noto Sans", sans-serif;
}

/* Greek does not accent capitals. The theme uppercases several
   elements, which produces incorrect Greek (ΆΝΩ instead of ΑΝΩ)
   and, worse, changes how a screen reader pronounces them. */
:lang(el) .klb-custom-title span,
:lang(el) .sub-title,
:lang(el) .klb-btn,
:lang(el) .footer-area .footer-list .title,
:lang(el) button[type="submit"],
:lang(el) input[type="submit"] {
    text-transform: none;
}

/* ============================================================
   2b. ELEMENTOR GLOBAL KIT
   ------------------------------------------------------------
   Elementor kit 10 is still carrying the stock demo palette --
   #6EC1E4 light blue, #61CE70 green, Roboto / Roboto Slab. It is
   not decorative: the generated per-page CSS wires those globals
   into real widgets, e.g.

     .elementor-widget-heading .elementor-heading-title {
         font-family: var(--e-global-typography-primary-font-family);
         color: var(--e-global-color-primary);
     }

   so every heading and image-box title on the site renders in
   Elementor's demo blue, and requests Roboto -- which section 9
   of functions.php dequeues, so it silently falls back.

   Redefining the four globals here retints every Elementor widget
   at once. This works because the child stylesheet is enqueued
   AFTER uploads/elementor/css/post-*.css (verified in the served
   page); the selector specificity is identical, so load order is
   what decides. If Elementor is ever made to load later, these
   need the kit class rather than the attribute selector.

   The proper home for this is the kit itself (Elementor ->
   Site Settings), which would also fix the editor UI. The kit is
   an elementor_library post and is not writable over REST, so it
   lives here until someone sets it in wp-admin.
   ============================================================ */

:root,
[class*="elementor-kit-"] {
    --e-global-color-primary:   #2E7D52;  /* headings, image-box titles */
    --e-global-color-secondary: #1F3D33;
    --e-global-color-text:      #55655C;
    --e-global-color-accent:    #2C7DA0;

    --e-global-typography-primary-font-family:   "Poppins", "Open Sans", "Noto Sans", sans-serif;
    --e-global-typography-secondary-font-family: "Open Sans", "Noto Sans", sans-serif;
    --e-global-typography-text-font-family:      "Open Sans", "Noto Sans", sans-serif;
    --e-global-typography-accent-font-family:    "Open Sans", "Noto Sans", sans-serif;
}

/* Greek and Hebrew have no Poppins glyphs -- keep them on Open Sans
   here too, or Elementor headings fall back to an unrelated system face
   while the rest of the page stays consistent. */
:lang(el), :lang(he) {
    --e-global-typography-primary-font-family: "Open Sans", "Noto Sans Hebrew", "Noto Sans", sans-serif;
}

/* ============================================================
   2c. CONTENT ALIGNMENT WITH THE THEME CONTAINER
   ------------------------------------------------------------
   Elementor content sat 25px further right than the header and
   the menu. The two use different containers:

     header   .container          max-width 1200px, padding 0 15px
                                  (sosso ships a MODIFIED Bootstrap
                                  4.3.1 -- stock is 1140px here)
     content  .elementor-container max-width 1140px, padding 0

   Header text therefore starts 15px inside a 1200px box, while
   Elementor content starts 10px (the column's own padding) inside
   a 1140px box: (1200-1140)/2 + 10 - 15 = 25px of drift.

   Matching Bootstrap's breakpoints exactly and leaving 5px of
   container padding puts widget text at 5 + 10 = 15px, and makes
   the content column 1170px wide -- identical to the header on
   both counts. Do not "simplify" the 5px away.
   ============================================================ */

body .elementor-section.elementor-section-boxed > .elementor-container {
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
}

@media (min-width: 576px) {
    body .elementor-section.elementor-section-boxed > .elementor-container { max-width: 540px; }
    body .e-con { --container-max-width: 540px; }
}

@media (min-width: 768px) {
    body .elementor-section.elementor-section-boxed > .elementor-container { max-width: 720px; }
    body .e-con { --container-max-width: 720px; }
}

@media (min-width: 992px) {
    body .elementor-section.elementor-section-boxed > .elementor-container { max-width: 960px; }
    body .e-con { --container-max-width: 960px; }
}

@media (min-width: 1200px) {
    body .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }
    body .e-con { --container-max-width: 1200px; }
}

/* ============================================================
   3. BRAND RETINT
   ------------------------------------------------------------
   One-for-one replacement of the parent theme's 55 rules that
   hardcode #6cbe03 / #f4a700 / #b0b302. Selectors are copied
   verbatim from sosso/style.css so specificity matches; the child
   sheet loads after the parent, so no !important is needed.
   ============================================================ */

/* --- links --- */
a                                       { color: var(--g4g-green); }
a:hover                                 { color: var(--g4g-blue); }

/* --- gradient buttons (green -> water blue, replacing green -> amber) --- */
input[type="submit"],
button[type="submit"],
.klb-subscribe input[type="submit"],
.klb-shop-details-content button.single_add_to_cart_button,
.wc-proceed-to-checkout a.checkout-button,
.return-to-shop a.button.wc-backward {
    background: linear-gradient(120deg, var(--g4g-green) 40%, var(--g4g-blue) 100%);
}

button[type="submit"]:before,
.klb-shop-details-content button.single_add_to_cart_button:before,
.wc-proceed-to-checkout a.checkout-button:before,
.return-to-shop a.button.wc-backward:before {
    background: var(--g4g-green-deep);
}

/* --- accent bars and underlines --- */
.klb-faq.faq-content span:before,
.klb-sponsor.sponsor-box span::before,
.klb-subscribe.newsletters-box span::before,
.klb-single-image:before,
.klb-custom-title span:before,
.klb-btn-text:before,
.woocommerce-tabs ul.nav li.active a:before,
.related.products h2:before,
.woocommerce-form-coupon-toggle:before,
form.checkout_coupon.woocommerce-form-coupon:before,
.klb-contact-form h3.title:before,
.klb-contact-form h3.title:after,
.blog-massage h3.comment-reply-title:before,
.blog-massage h3.comment-reply-title:after,
section.up-sells > h2:before,
.cart-area .cart-collaterals .cross-sells h2:before {
    background: var(--g4g-green);
}

/* --- accent text --- */
.star-rating,
.feedback-area .feedback-active .slick-arrow,
.klb-faq.faq-content span,
.klb-sponsor.sponsor-box span,
.klb-subscribe.newsletters-box span,
.klb-subscribe .input-box i,
.klb-custom-title span,
.klb-btn-text,
.klb-icon-box2.what-we-do-item i,
.klb-shop-details-content a.woocommerce-review-link,
.woocommerce-tabs ul.nav li.active a,
.klb-shop-details-content .product_meta,
.woocommerce-form-coupon-toggle a.showcoupon,
.klb-contact-form .input-box i,
ul.post-meta li i,
button.klb-search.search-button {
    color: var(--g4g-green);
}

/* The parent puts the contact icons in amber, the only place it uses
   #f4a700 for text. Amber on white is 2.1:1 and fails outright. */
.klb-contact-icon-box.contact-info-item i {
    color: var(--g4g-blue);
}

/* --- hover states --- */
.klb-team-box.farmers-item .farmers-overlay .item ul li a:hover,
.blog-comments-item a.comment-reply-link:hover {
    color: var(--g4g-blue);
}

/* The footer icon travelled with its label to --g4g-blue on hover, which is
   2.56:1 on --g4g-dark -- darker than its 10.16:1 resting state and under the
   3:1 floor for a non-text component. It now matches sosso_font_hover_color,
   so the icon and the label it belongs to move together. */
.footer-area .footer-list ul li a:hover i {
    color: #fff;
}

.tagcloud a:hover,
.klb-post .klb-pagination a:hover {
    background: var(--g4g-green);
    border-color: var(--g4g-green);
    color: #fff;
}

/* --- current / active states --- */
ul.page-numbers li span.page-numbers.current,
.klb-post .klb-pagination span.current,
ul li.woocommerce-MyAccount-navigation-link.is-active a {
    border-color: var(--g4g-green);
    background: var(--g4g-green);
    color: #fff;
}

.elementor-tab-title.elementor-active a.elementor-accordion-title {
    border-bottom: 2px solid var(--g4g-green);
}

/* --- decorative fills. Non-text, so the brighter green is allowed. --- */
.klb-counter2 > span {
    border: 7px solid var(--g4g-green-bright);
}

.klb-icon-box.features-items .item i {
    background: var(--g4g-green-bright);
}

.klb-icon-box.features-items .item i::after {
    background-image: linear-gradient(-49deg, var(--g4g-green-bright) 0%, var(--g4g-green) 55%, var(--g4g-blue) 100%);
}

/* ============================================================
   4. CHROME -- header bar, menu, footer
   ------------------------------------------------------------
   The header bar, menu bar, question box and footer colours are
   NOT here. They are native Customizer values, written by
   scratchpad/chrome_colors.py and listed in PROJECT.md §12.

   They have to be. sosso-core prints them into an inline <style>
   in wp_head that is emitted AFTER this stylesheet, so any rule
   here duplicating one of them loses the moment someone opens
   Appearance -> Customise -> Header Settings and hits Publish --
   silently, and only for the settings they happened to touch.

   What is left below has no Customizer field behind it: the
   footer's base text colour, its icons, the back-to-top button
   this theme's footer.php replaces, and the skip link.
   ============================================================ */

/* The footer's own text colour. sosso_font_color covers the widget links
   and sosso_copyright_style the copyright line, but nothing native paints
   the element itself, so the funding strip and the disclaimer -- which are
   this theme's markup, not the parent's -- would inherit the demo grey. */
.footer-area,
.footer-area p                                  { color: var(--g4g-on-dark); }

/* Icons are non-text UI components: the bar is 3:1 (WCAG 1.4.11).
   This clears 4.5:1 regardless. */
.footer-area .footer-list ul li i,
.footer-area .footer-info i                     { color: var(--g4g-on-dark); }

/* footer.php replaces the parent's <a href=""> with a <button>, so the
   parent's `.back-to-top a` rules no longer match anything. These restate
   the theme's own appearance on the button and strip the UA defaults. */
.back-to-top a,
.back-to-top button {
    background: linear-gradient(135deg, var(--g4g-green) 30%, var(--g4g-blue) 100%);
}

.back-to-top button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
}

.back-to-top button:hover {
    background: linear-gradient(135deg, var(--g4g-green-deep) 30%, var(--g4g-blue-deep) 100%);
}

/* Skip link: present for assistive technology at all times, and visible for
   sighted keyboard users the moment it takes focus. Without the focus rule
   it exists but no one can see where their focus went. */
.g4g-skip-link:focus {
    position: fixed !important;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 10000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 18px;
    clip: auto;
    clip-path: none;
    background: #fff;
    color: var(--g4g-green-deep);
    font-weight: 600;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    outline: 3px solid var(--g4g-blue);
    outline-offset: 2px;
}

/* The landmark is focus-target only; never show a ring around the whole page. */
#g4g-main:focus { outline: none; }

/* ============================================================
   5. SECTION TINTS
   ============================================================ */

.g4g-tint-green     { background-color: var(--g4g-light); }
.g4g-tint-blue      { background-color: var(--g4g-light-blue); }

/* ============================================================
   6. EU / WATER4ALL VISIBILITY
   ------------------------------------------------------------
   Rendered by footer.php on every page. Horizon Europe requires
   the EU emblem plus the funding statement on all communication
   material; the Water4All partnership logo sits alongside it at
   the same optical height. The emblem is never rescaled
   disproportionately and never recoloured -- use the official NEG
   variant here because the footer is dark.
   ============================================================ */

.footer-area .g4g-funding-strip {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 22px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.footer-area .g4g-funding-strip img {
    height: 56px;
    width: auto;
    max-width: 100%;
    display: block;
}

.footer-area .g4g-funding-strip .g4g-project-ref {
    margin: 0;
    font-size: 13px;
    letter-spacing: .02em;
    color: #fff;              /* not --g4g-on-dark: this is small text */
    white-space: nowrap;
}

.footer-area .g4g-disclaimer {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--g4g-on-dark);
    max-width: 78ch;
}

@media (max-width: 575px) {
    .footer-area .g4g-funding-strip      { gap: 16px; padding-top: 18px; }
    .footer-area .g4g-funding-strip img  { height: 44px; }
    .footer-area .g4g-funding-strip .g4g-project-ref { white-space: normal; }
}

/* --- sticky co-funded badge, bottom corner ---
   Hidden once the footer scrolls into view, otherwise it covers the
   funding strip it duplicates. The toggle is an IntersectionObserver
   in footer.php; this is only the presentation. */

.g4g-cofunded-badge {
    position: fixed;
    bottom: 18px;
    inset-inline-start: 18px;   /* logical: flips for Hebrew automatically */
    z-index: 900;
    display: block;
    background: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    transition: opacity .25s ease, transform .25s ease;
}

.g4g-cofunded-badge img { height: 40px; width: auto; display: block; }

.g4g-cofunded-badge:focus-visible {
    outline: 3px solid var(--g4g-eu-blue);
    outline-offset: 2px;
}

.g4g-cofunded-badge.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

@media (max-width: 991px) {
    .g4g-cofunded-badge         { bottom: 12px; inset-inline-start: 12px; }
    .g4g-cofunded-badge img     { height: 30px; }
}

/* ============================================================
   7. LANGUAGE SWITCHER
   ------------------------------------------------------------
   Eight languages is too many for the hover-reveal strip pattern
   the theme assumes, so this is a proper disclosure: a button that
   opens a two-column panel.

   Inactive options are CLIPPED, never display:none. With
   display:none the options are removed from the tab order, so
   :focus-within never fires and a keyboard user can open the panel
   but not reach anything inside it.
   ============================================================ */

.g4g-lang {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.g4g-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* The top bar is white since 1.9.0 (it carries the logo), so the toggle
       is dark-on-white. Border is --g4g-muted: 6.17:1, clear of the 3:1
       floor for a UI component. */
    background: #fff;
    border: 1px solid var(--g4g-muted);
    border-radius: 3px;
    padding: 6px 12px;
    color: var(--g4g-ink);
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}

.g4g-lang__toggle:hover    { border-color: var(--g4g-green); color: var(--g4g-green); }

.g4g-lang__toggle:focus-visible,
.g4g-lang__panel a:focus-visible {
    outline: 3px solid var(--g4g-blue);
    outline-offset: 2px;
}

.g4g-lang__toggle .g4g-lang__caret {
    font-size: 10px;
    transition: transform .2s ease;
}

.g4g-lang__toggle[aria-expanded="true"] .g4g-lang__caret {
    transform: rotate(180deg);
}

/* Round flags, shipped as 48px PNGs and drawn at 24px so they stay crisp on
   a 2x display. They are decorative only -- the language name sits next to
   every one of them in text, which is what actually conveys the meaning.
   A flag is a country, not a language, and this set contains Brazil standing
   in for Portuguese; the label is doing the work. */
.g4g-lang img {
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 50%;
    flex: 0 0 auto;
    object-fit: cover;
    /* Keeps light flags (Israel, Czechia) from dissolving into a white panel. */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

/* Placeholder for a language we ship no flag for, so its label still lines up
   with the rest of the column instead of shifting left. */
.g4g-lang__noflag {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: inline-block;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}

/* On the dark header bar the ring needs to go the other way. */
.header-info .g4g-lang img {
    box-shadow: 0 0 0 1px rgba(22, 36, 30, .25);
}

/* --- header logo ---
   Horizontal lockup (mark + wordmark) built from the communication pack's
   final logo by scratchpad/logo_assets.py; 259x52 is set as sosso_logo_size.
   The parent caps .logo img at a height sized for its own 40px wordmark. */
.header-area .header-info .logo img {
    height: 52px;
    width: auto;
    max-width: none;
}
@media (max-width: 575px) {
    .header-area .header-info .logo img { height: 40px; }
}

/* Flaticon attribution in the footer copyright strip. Required by the
   licence, so it must stay legible -- 4.5:1 on the dark strip, not a
   decorative grey. */
.footer-area .g4g-credits {
    margin: 0;
    font-size: 12px;
    color: var(--g4g-on-dark);
}

.footer-area .g4g-credits a {
    color: #fff;
    text-decoration: underline;
}

.g4g-lang__panel {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 6px);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 2px 10px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
    margin: 0;
    list-style: none;

    /* clipped, not removed -- see the note above */
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.g4g-lang__panel.is-open,
.g4g-lang:focus-within .g4g-lang__panel {
    clip-path: none;
    height: auto;
    overflow: visible;
    opacity: 1;
}

.g4g-lang__panel li { margin: 0; }

.g4g-lang__panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 14px;
    color: var(--g4g-ink);
    text-decoration: none;
    white-space: nowrap;
}

.g4g-lang__panel a:hover        { background: var(--g4g-light); color: var(--g4g-green-deep); }
.g4g-lang__panel a[aria-current="true"] {
    background: var(--g4g-light);
    font-weight: 600;
}

@media (max-width: 767px) {
    .g4g-lang__panel {
        position: fixed;
        inset-inline: 12px;
        inset-inline-end: 12px;
        top: auto;
        bottom: 12px;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   8. ACCESSIBILITY UTILITIES
   ============================================================ */

/* Available to assistive technology, invisible on screen. Used for
   the accessible names of icon-only links, which are rendered
   server-side so that checkers that do not run JavaScript see them. */
.g4g-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* The theme leaves focus unstyled on several interactive elements. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--g4g-blue);
    outline-offset: 2px;
}

.footer-area a:focus-visible,
.header-menu a:focus-visible {
    outline-color: #fff;
}
/* .header-info is white since 1.9.0, so it keeps the default blue ring. */

/* The theme renders an empty contact row as <a href=""><i class="fal fa-"></i></a>
   when its Customizer field is blank -- an empty link sitting in the
   tab order with no accessible name. Remove it rather than style it. */
.header-info .header-info-item .item:empty,
.header-info .header-info-item .item a[href=""],
.footer-area .footer-info li a[href=""] {
    display: none;
}

/* ============================================================
   9. ICON FONTS
   ------------------------------------------------------------
   Anything that forces font-family on a broad selector destroys
   icon fonts, because `inherit` resolves to the body face and every
   glyph turns into a blank box. Section 2 deliberately lists real
   families rather than `inherit`; these rules re-assert the icon
   families in case an Elementor global or a plugin does otherwise.

   Specificity matters here: i[class*="fa-"]::before is (0,1,2) and
   outranks .fab::before at (0,1,1), so brand icons break unless the
   broad rule excludes them.
   ============================================================ */

i[class*="fa-"]:not(.fab):not(.fa-brands)::before,
.fa::before, .fas::before, .far::before, .fal::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
}

.fab::before, .fa-brands::before {
    font-family: "Font Awesome 5 Brands" !important;
}

[class^="flaticon-"]::before,
[class*=" flaticon-"]::before {
    font-family: "Flaticon" !important;
}

.dashicons, .dashicons-before::before {
    font-family: dashicons !important;
}

/* ============================================================
   13. IMPACT PAGE
   ------------------------------------------------------------
   Per dissemination channel: icon + title + blurb on the left,
   year-grouped item list on the right.
   ============================================================ */

.g4g-impact {
    padding: 56px 0;
    scroll-margin-top: 90px;
}

.g4g-impact + .g4g-impact {
    border-top: 1px solid #e4ebe6;
}

.g4g-impact .elementor-icon-box-icon i {
    font-size: 46px;
    color: var(--g4g-green);
}

.g4g-impact .elementor-icon-box-title {
    margin: 12px 0 6px;
    font-size: 22px;
}

.g4g-impact .elementor-icon-box-description {
    color: var(--g4g-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Year headings within a channel's item list. */
.g4g-impact-list-wrap h3 {
    margin: 22px 0 10px;
    font-size: 22px;
}

.g4g-impact-list-wrap h3:first-child { margin-top: 0; }

.g4g-impact-list {
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.g4g-impact-list li {
    position: relative;
    padding: 4px 0 4px 26px;
    line-height: 1.55;
}

/* File-type marker. The reference site uses a PDF or link glyph per row;
   this is the same idea driven by a class on the <li> so the markup stays
   simple when items are added by hand later. */
.g4g-impact-list li::before {
    content: "\f0c1";                     /* fa-link */
    /* The theme ships Font Awesome 5 PRO (sosso all.css), not Free: asking
       for "Font Awesome 5 Free" drew an empty box instead of the glyph. */
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    position: absolute;
    inset-inline-start: 0;
    top: 5px;
    font-size: 13px;
    color: var(--g4g-blue);
}

.g4g-impact-list li.is-pdf::before {
    content: "\f1c1";                     /* fa-file-pdf */
    color: #c0392b;
}

.g4g-impact-list a { text-decoration: none; }
.g4g-impact-list a:hover { text-decoration: underline; }

/* Empty state. Six unexplained blank columns look like a broken page; an
   explicit line reads as "not yet", which is the truth. */
.g4g-impact-empty {
    padding: 18px 20px;
    border: 1px dashed #cfdcd4;
    border-radius: 5px;
    background: rgba(46, 125, 82, .03);
    color: var(--g4g-muted);
    font-size: 14px;
}

/* ============================================================
   12. PILOT AREAS PAGE
   ------------------------------------------------------------
   Map plus one case-study row per pilot. The rows are the real
   content -- the map is a navigation aid, and every pin scrolls
   to the matching row.
   ============================================================ */

.g4g-pilot-map-wrap {
    margin: 0 0 34px;
}

#g4g-pilot-map {
    width: 100%;
    height: 460px;
    border-radius: 6px;
    background: var(--g4g-light-blue);
    border: 1px solid #d7e2da;
}

/* Before Leaflet initialises -- or if it never does, because the script is
   blocked -- the container would be an unexplained empty box. The message
   sits underneath and is covered the moment the map draws over it. */
#g4g-pilot-map:not(.is-live)::after {
    content: "Map of the five pilot sites: Haifa, Heraklion, Prague, Valencia, Florianópolis.";
    display: block;
    padding: 24px;
    color: var(--g4g-muted);
    font-size: 14px;
}

/* Leaflet's own controls, retinted from its default blue links. */
.leaflet-container a          { color: var(--g4g-green-deep); }
.leaflet-bar a                { color: var(--g4g-ink); }

.leaflet-popup-content        { font-family: var(--g4g-font-body); font-size: 14px; }

/* Attribution is a licence condition of the OSM tiles: it must stay legible
   and must not be hidden. */
.leaflet-control-attribution  { font-size: 11px; color: var(--g4g-muted); }
.leaflet-control-attribution a { color: var(--g4g-green-deep); }

@media (max-width: 767px) {
    #g4g-pilot-map { height: 340px; }
}

/* --- case study rows --- */

.g4g-pilot {
    scroll-margin-top: 90px;   /* clears the sticky header when a pin jumps here */
    padding: 30px 0;
}

.g4g-pilot + .g4g-pilot {
    border-top: 1px solid #e4ebe6;
}

.g4g-pilot__flag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    background: var(--g4g-light-blue);
    color: var(--g4g-blue-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* --- illustration placeholder ---
   Deliberately obvious. A faint grey box reads as a broken image; a labelled
   dashed frame reads as "artwork pending", which is what it is. Replace the
   whole element with an Elementor image widget once the figures arrive. */
.g4g-figure-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    padding: 24px;
    border: 2px dashed #bcd0c3;
    border-radius: 6px;
    background: repeating-linear-gradient(
        45deg,
        rgba(46, 125, 82, .04),
        rgba(46, 125, 82, .04) 10px,
        transparent 10px,
        transparent 20px
    );
    color: var(--g4g-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

/* ============================================================
   11. TEAM MEMBERS PAGE
   ------------------------------------------------------------
   Partner block = organisation heading + blurb, then the people.
   Written as plain markup in the page content rather than an
   Elementor layout: this repeats across eight languages, and a
   translator can work on real sentences instead of hunting through
   nested builder JSON. It also keeps the heading order honest --
   h2 per organisation, h3 per person -- which a builder makes
   surprisingly hard.
   ============================================================ */

.g4g-partner {
    margin: 0 0 54px;
    padding: 0 0 10px;
}

.g4g-partner + .g4g-partner {
    border-top: 1px solid #e4ebe6;
    padding-top: 40px;
}

/* --- partner logo sizing -------------------------------------------------
   Elementor's image-box sizes its image by WIDTH. The partner logos run from
   1:1 (HMU) to 3.76:1 (HKR), so a single width makes the square marks huge
   and the wide wordmarks illegible. Constraining HEIGHT instead gives every
   logo the same optical weight, which is the whole point of a logo row.

   Scoped to the partner section so it cannot affect image-box widgets used
   elsewhere on the site. */
.g4g-partner-logo .elementor-image-box-img {
    width: auto !important;   /* beats Elementor's inline width */
}

.g4g-partner-logo .elementor-image-box-img img {
    height: 100px;
    width: auto;
    max-width: 367px;
    object-fit: contain;
}

.g4g-partner-logo .elementor-image-box-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 575px) {
    .g4g-partner-logo .elementor-image-box-wrapper { display: block; }

    /* max-width has to come down to the viewport here, or the 3.76:1 HKR
       wordmark asks for 301px on a 375px phone. object-fit above keeps the
       clamp from squashing it -- it letterboxes instead of distorting. */
    .g4g-partner-logo .elementor-image-box-img img {
        height: 80px;
        max-width: 100%;
        margin-bottom: 12px;
    }
}

.g4g-partner__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

/* The acronym and country live inside a <p> rather than sitting bare in the
   flex row. That is forced by wpautop, which wraps loose inline elements
   following a heading in a paragraph it never closes; supplying the block
   element ourselves keeps the markup valid. It carries no visual weight. */
.g4g-partner__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.g4g-partner__head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
}

/* Acronym and country ride alongside the name. The number is generated
   from the consortium order, so the list cannot silently reorder. */
.g4g-partner__tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    background: var(--g4g-light);
    color: var(--g4g-green-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.g4g-partner__tag--coord {
    background: var(--g4g-green);
    color: #fff;
}

.g4g-partner__country {
    font-size: 14px;
    color: var(--g4g-muted);
}

.g4g-partner__blurb {
    margin: 0 0 26px;
    max-width: 74ch;
    color: var(--g4g-muted);
}

/* --- people --- */

.g4g-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.g4g-person {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4ebe6;
    border-radius: 6px;
    padding: 22px;
}

.g4g-person__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 14px;
    object-fit: cover;
    display: block;
    background: var(--g4g-light);
}

/* Placeholder until real headshots arrive. Initials on a tinted disc reads
   as a deliberate choice; a generic silhouette repeated seven times reads as
   a broken page. Swap for <img class="g4g-person__photo"> when photos exist. */
.g4g-person__photo--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--g4g-font-head);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--g4g-green-deep);
    background: var(--g4g-light);
    box-shadow: inset 0 0 0 1px rgba(46, 125, 82, .18);
}

.g4g-person__name {
    margin: 0 0 2px;
    font-size: 18px;
    line-height: 1.35;
}

.g4g-person__role {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--g4g-muted);
}

.g4g-person__bio {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.65;
}

/* Pushes the link row to the card bottom so ragged bio lengths still line up. */
.g4g-person__links {
    margin: auto 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.g4g-person__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 5px 11px;
    border-radius: 3px;
    border: 1px solid #d7e2da;
    color: var(--g4g-green-deep);
    text-decoration: none;
}

.g4g-person__links a:hover {
    background: var(--g4g-light);
    border-color: var(--g4g-green);
    color: var(--g4g-green-deep);
}

/* Icons are decorative; each link already has visible text beside it. */
.g4g-person__links i {
    font-size: 12px;
}

@media (max-width: 575px) {
    .g4g-people          { grid-template-columns: 1fr; }
    .g4g-partner__head h2 { font-size: 20px; }
}

/* ============================================================
   10. RTL -- Hebrew
   ------------------------------------------------------------
   Sosso ships rtl.css and rtl-responsive.css, which functions.php
   loads when is_rtl() is true, so the bulk of the mirroring is
   handled. These are the child-specific pieces that the parent
   cannot know about.
   ============================================================ */

[dir="rtl"] .footer-area .g4g-funding-strip { flex-direction: row; }
[dir="rtl"] .g4g-lang__panel a              { text-align: right; }

/* Latin-script proper nouns inside Hebrew copy: keep the acronym,
   the grant number and the URL running left-to-right. */
[dir="rtl"] .g4g-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}


/* ============================================================
   14. GLOSSARY
   ------------------------------------------------------------
   Everything archive-glossary.php and single-glossary.php need.
   The sibling site keeps this in style attributes plus the
   Customizer's Additional CSS; both are invisible to anyone
   reading the theme, and Additional CSS does not survive a move.
   ============================================================ */

/* The parent gives .page-title-area a fixed 450px and an 80px title, sized
   for a full-bleed photograph. There is no photograph here, and 450px of
   empty ground above a word list is a lot of scrolling to no purpose. */
.glossary-hero.page-title-area {
    height: auto;
    min-height: 0;
    padding: 56px 0;
    background: var(--g4g-dark);
}

.glossary-hero.page-title-area::before { display: none; }

.glossary-hero .page-title-content .title {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 14px;
}

.glossary-intro,
.glossary-active-note {
    max-width: 62ch;
    margin: 0;
    color: var(--g4g-on-dark);       /* 10.16:1 on --g4g-dark */
}

.glossary-active-note { margin-top: 10px; }

/* --- A-Z strip --- */
.glossary-az-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.glossary-az-list .gl-az-link {
    display: inline-block;
    min-width: 2.4em;
    padding: 6px 10px;
    border: 1px solid #CFDCD4;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    color: var(--g4g-green-deep);    /* 8.1:1 on white */
    font-weight: 600;
    line-height: 1.2;
}

a.gl-az-link:hover,
a.gl-az-link:focus-visible {
    border-color: var(--g4g-green);
    background: var(--g4g-light);
    color: var(--g4g-green-deep);
}

.glossary-az-list li.active .gl-az-link {
    background: var(--g4g-green);    /* white on this = 5.03:1 */
    border-color: var(--g4g-green);
    color: #fff;
}

/* --- the list itself --- */
.glossary-letter {
    margin: 40px 0 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--g4g-light);
    font-size: 26px;
    color: var(--g4g-green-deep);
}

.glossary-item { margin-bottom: 28px; }

.glossary-entry-title {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.35;
}

.glossary-entry-excerpt p {
    margin: 0;
    color: var(--g4g-muted);         /* 6.17:1 on white */
}

.glossary-credit {
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid #E3EAE6;
    max-width: 78ch;
    font-size: 14px;
    font-style: italic;
    color: var(--g4g-muted);
}

.glossary-empty { margin: 30px 0; }

/* --- one term --- */
.glossary-single-title {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 40px);
}

.glossary-single-content p { margin-bottom: 1em; }

.glossary-back {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid #E3EAE6;
}

/* ============================================================
   15. PAGE COMPONENTS (ported from the AWARE build, 2026-09-30)
   ------------------------------------------------------------
   Used by template-home.php / template-page.php and the page
   HTML written by scratchpad/pages_build.py. Colours are the
   measured tokens from section 1 only. Text never sits on
   --g4g-light (#DCEFE2): component tints use --g4g-tint.
   ============================================================ */

/* --- buttons --- */
.g4g-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 4px;
    border: 2px solid transparent;
    font-family: var(--g4g-font-head);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.g4g-btn--primary              { background: var(--g4g-green); color: #fff; }          /* 6.67:1 */
.g4g-btn--primary:hover        { background: var(--g4g-green-deep); color: #fff; }
.g4g-btn--light                { background: #fff; color: var(--g4g-green-deep); }     /* 10.22:1 */
.g4g-btn--light:hover          { background: var(--g4g-tint); color: var(--g4g-green-deep); }
.g4g-btn--ghost                { border-color: rgba(255, 255, 255, .85); color: #fff; }
.g4g-btn--ghost:hover          { background: #fff; color: var(--g4g-green-deep); }
.g4g-btn--outline              { border-color: var(--g4g-green); color: var(--g4g-green); }
.g4g-btn--outline:hover        { background: var(--g4g-green); color: #fff; }
.g4g-btn[aria-disabled="true"] { background: #dfe9e3; color: var(--g4g-muted); cursor: not-allowed; }  /* 5.36:1 */

.g4g-btn:focus-visible { outline: 3px solid var(--g4g-blue); outline-offset: 3px; }
.g4g-hero .g4g-btn:focus-visible,
.g4g-band .g4g-btn:focus-visible { outline-color: #fff; }

/* --- home hero ---
   No photography yet, so the hero carries the project's two colours: deep
   green (the green infrastructure) running into deep water blue (the grey
   water it treats), with two soft glows. White text on the lightest point of
   the gradient (--g4g-blue-deep) is 7.06:1; the lead text (--g4g-on-dark) is
   6.05:1 there. */
.g4g-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 120px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(62, 142, 90, .45) 0, rgba(62, 142, 90, 0) 42%),
        radial-gradient(circle at 70% 90%, rgba(44, 125, 160, .40) 0, rgba(44, 125, 160, 0) 40%),
        linear-gradient(125deg, var(--g4g-dark) 0%, var(--g4g-green-deep) 55%, var(--g4g-blue-deep) 100%);
}
.g4g-hero__eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--g4g-on-dark);
}
.g4g-hero h1 {
    max-width: 16ch;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(36px, 5.6vw, 64px);
    line-height: 1.08;
}
.g4g-hero__lead {
    max-width: 58ch;
    margin: 0 0 34px;
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.6;
    color: var(--g4g-on-dark);
}
.g4g-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- inner page title band --- */
.g4g-band {
    padding: 46px 0 40px;
    color: #fff;
    background: linear-gradient(120deg, var(--g4g-dark) 0%, var(--g4g-green-deep) 70%, var(--g4g-blue-deep) 100%);
}
.g4g-band__title {
    margin: 6px 0 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}
.g4g-band__lead {
    max-width: 70ch;
    margin: 14px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--g4g-on-dark);
}
.g4g-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    color: var(--g4g-on-dark);
}
.g4g-crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .7; }
.g4g-crumbs a       { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.g4g-crumbs a:hover { color: #B7E4C7; }

/* --- page body + prose --- */
.g4g-page { padding: 56px 0 80px; }
.g4g-page h2 { margin: 48px 0 16px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; }
.g4g-page h2:first-child { margin-top: 0; }
.g4g-page h3 { margin: 28px 0 10px; font-size: 20px; line-height: 1.35; }
.g4g-page p,
.g4g-page li { font-size: 16.5px; line-height: 1.7; }
.g4g-page > .container > p,
.g4g-prose p,
.g4g-prose ul { max-width: 78ch; }
.g4g-page ul.g4g-list { padding-inline-start: 1.2em; list-style: disc; }
.g4g-page ul.g4g-list li { margin-bottom: 6px; }

.g4g-page .g4g-lead { font-size: 19px; line-height: 1.65; color: var(--g4g-ink); }

/* --- sections (home) --- */
.g4g-section       { padding: clamp(56px, 7vw, 90px) 0; }
.g4g-section--tint { background: var(--g4g-tint); }
.g4g-section__head { max-width: 72ch; margin-bottom: 34px; }
.g4g-section__head h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); }
.g4g-section__head p  { margin: 0; font-size: 17.5px; line-height: 1.7; color: var(--g4g-muted); }
.g4g-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--g4g-blue);                                 /* 5.36:1 */
}
.g4g-section--tint .g4g-kicker { color: var(--g4g-blue-deep); }   /* 7.08:1 on --g4g-tint */

/* --- cards --- */
.g4g-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.g4g-cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g4g-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 26px 24px;
    background: #fff;
    border: 1px solid #dfe9e3;
    border-top: 4px solid var(--g4g-green);
    border-radius: 6px;
}
.g4g-card h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.35; }
.g4g-card p  { margin: 0 0 10px; font-size: 15.5px; line-height: 1.65; }
.g4g-card p:last-child { margin-bottom: 0; }
.g4g-card .g4g-card__meta {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--g4g-muted);
}
.g4g-card .g4g-card__link { margin-top: auto; padding-top: 8px; font-weight: 600; }
/* Colour accents on card tops. Border only, never text. */
.g4g-card--accent { border-top-color: var(--g4g-blue-fill); }

.g4g-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    background: var(--g4g-tint);
    color: var(--g4g-green-deep);                           /* 8.92:1 */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* --- KPI strip --- */
.g4g-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.g4g-kpi {
    padding: 22px 18px;
    text-align: center;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 0 #dfe9e3, 0 6px 20px rgba(31, 61, 51, .06);
}
.g4g-kpi__value {
    display: block;
    font-family: var(--g4g-font-head);
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--g4g-green);
    font-variant-numeric: tabular-nums;
}
.g4g-kpi__label {
    display: block;
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--g4g-ink);
}
.g4g-kpi__note {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--g4g-muted);
}
.g4g-footnote { margin-top: 18px; font-size: 13.5px; color: var(--g4g-muted); }

/* --- news --- */
.g4g-news {
    display: grid;
    /* auto-fill, not auto-fit: a single post keeps a card's width instead of
       stretching its 1200x630 image across the whole container. */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}
.g4g-news__item article {
    height: 100%;
    padding: 24px;
    border: 1px solid #dfe9e3;
    border-radius: 6px;
    background: #fff;
}
.g4g-news__date    { margin: 0 0 8px; font-size: 13px; color: var(--g4g-muted); }
.g4g-news__title   { margin: 0 0 10px; font-size: 19px; line-height: 1.35; }
.g4g-news__title a { color: var(--g4g-ink); text-decoration: none; }
.g4g-news__title a:hover { color: var(--g4g-green); text-decoration: underline; }
.g4g-news__excerpt { margin: 0; font-size: 15px; line-height: 1.6; }
.g4g-news-empty {
    margin: 0 0 24px;
    padding: 20px 22px;
    border: 1px dashed #c8dccf;
    border-radius: 6px;
    background: #fff;
    color: var(--g4g-muted);
}

/* --- callout --- */
.g4g-callout {
    margin: 28px 0;
    padding: 20px 24px;
    border-inline-start: 4px solid var(--g4g-blue-fill);
    border-radius: 0 6px 6px 0;
    background: var(--g4g-light-blue);
}
.g4g-callout p { margin: 0; }
.g4g-callout p + p { margin-top: 8px; }

/* --- timeline (events, web app milestones): connected dots ---
   A rail down the left; every date gets a dot on it. A range is split by
   the page builder into __from and __to, stacked (M4 above M12),
   and a coloured segment on the rail joins their two dots.

   Dots hang off the date spans themselves -- not off li padding, which
   Sosso's `.klb-post ul li { padding: 0 }` resets (that is what dropped the
   dots onto the text in the very first version). Rail centre = dot centre =
   6px from the left edge. */
.g4g-timeline {
    position: relative;
    max-width: 62ch;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.g4g-timeline::before {                                       /* the rail */
    content: "";
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: #cfe0d6;
}
.g4g-timeline li {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    margin: 0;
    padding: 10px 0;
}
.g4g-timeline__when {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--g4g-green-deep);                           /* 10.22:1 */
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.g4g-timeline__from,
.g4g-timeline__to {
    position: relative;
    padding-left: 22px;
}
.g4g-timeline__from::before,
.g4g-timeline__to::before {                                   /* the dots */
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    top: 2px;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 3px solid var(--g4g-green);
    background: #fff;
}
.g4g-timeline__to::before { background: var(--g4g-green); }  /* end dot filled */
.g4g-timeline__when:has(.g4g-timeline__to)::before {           /* range segment */
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--g4g-green);
}

/* --- figure (Gantt) --- */
.g4g-figure { margin: 24px 0 8px; }
.g4g-figure__scroll {
    overflow-x: auto;
    border: 1px solid #dfe9e3;
    border-radius: 6px;
    background: #fff;
}
.g4g-figure img { display: block; min-width: 820px; width: 100%; height: auto; }
.g4g-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--g4g-muted); }

/* --- study case rows (extends section 12) --- */
.g4g-case h2 { margin-top: 0; }
.g4g-case__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px 24px;
    margin: 14px 0 16px;
    padding: 16px 18px;
    background: var(--g4g-tint);
    border-radius: 6px;
}
.g4g-case__facts div { margin: 0; }
.g4g-case__facts dt {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--g4g-green-deep);                           /* 8.92:1 on --g4g-tint */
}
.g4g-case__facts dd { margin: 2px 0 0; font-size: 15.5px; }

.g4g-footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.g4g-footer-nav a       { color: #fff; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.g4g-footer-nav a:hover { color: #B7E4C7; }                 /* 9.05:1 on --g4g-dark */

/* --- list reset for components ---
   Sosso's `.klb-post ul li { list-style-type: circle }` (0,1,2) puts a
   bullet on every card, counter and person whenever these components end up
   inside its default page wrapper. Same specificity, loaded later, wins. */
ul.g4g-cards, ul.g4g-kpis, ul.g4g-news, ul.g4g-people, ul.g4g-timeline,
.klb-post ul.g4g-cards, .klb-post ul.g4g-kpis, .klb-post ul.g4g-news,
.klb-post ul.g4g-people, .klb-post ul.g4g-timeline {
    list-style: none;
    padding-inline-start: 0;
}
ul.g4g-cards > li, ul.g4g-kpis > li, ul.g4g-news > li, ul.g4g-people > li, ul.g4g-timeline > li,
.klb-post ul.g4g-cards > li, .klb-post ul.g4g-kpis > li, .klb-post ul.g4g-news > li,
.klb-post ul.g4g-people > li, .klb-post ul.g4g-timeline > li {
    list-style: none;
}
ul.g4g-timeline > li,
.klb-post ul.g4g-timeline > li { padding: 12px 0; line-height: 1.6; }

/* --- menu text on white panels ---
   sosso-core/classes/style.php paints the Customizer "Header Font Color"
   (white, for the blue bar) onto the top-level links AND the dropdown links:
     .header-menu .navigation .navbar .navbar-nav .nav-item a,
     .header-menu ... .nav-item .sub-menu > li a   { color: <font colour> }
   But the dropdown panel is white, and below 992px the whole collapsed menu
   is a white panel too -- white on white. That inline block is printed AFTER
   this sheet, so these rules win on specificity (a leading `body` plus
   .navbar-collapse), not on load order. Hover on white uses --g4g-green
   (6.67:1); the parent's hover rule is !important, hence ours is too. */
body .header-menu .navigation .navbar .navbar-nav .nav-item .sub-menu > li > a {
    color: var(--g4g-ink);                                    /* 16.86:1 on #fff */
}
/* Desktop dropdown hover keeps the parent's deep-blue row + sky text (6.36:1). */

@media (max-width: 991px) {
    body .header-menu .navigation .navbar .navbar-collapse .navbar-nav .nav-item > a,
    body .header-menu .navigation .navbar .navbar-collapse .navbar-nav .nav-item .sub-menu > li > a {
        color: var(--g4g-ink);
    }
    body .header-menu .navigation .navbar .navbar-collapse .navbar-nav .nav-item > a:hover,
    body .header-menu .navigation .navbar .navbar-collapse .navbar-nav .nav-item .sub-menu > li > a:hover,
    body .header-menu .navigation .navbar .navbar-collapse .navbar-nav .nav-item .sub-menu > li:hover > a {
        color: var(--g4g-green) !important;
        background: var(--g4g-tint);
    }
    body .header-menu .navigation .navbar .navbar-collapse .navbar-nav .nav-item a .plus,
    body .header-menu .navigation .navbar .navbar-collapse .sub-nav-toggler {
        color: var(--g4g-ink);
    }
}

/* --- shared icon disc --- */
.g4g-card[class*="g4g-card--i-"]::before,
.g4g-kpi__value::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-family: 'Font Awesome 5 Pro';
    font-weight: 300;
    font-size: 24px;
    line-height: 1;
    background: var(--g4g-tint);
    color: var(--g4g-green);
}

/* --- pilot cards: line world map + pin across the card top ---
   Two background layers on one pseudo-element: pins/<pilot>.svg over
   world-lines.svg (coastlines from the AWARE build, Natural Earth 1:110m,
   public domain). Both share ONE viewBox (0 0 360 133, equirectangular
   75N..58S) and are drawn at 100% 100% in a box of that exact aspect ratio,
   so the pin lands where it belongs with no positioning maths. The card is
   picked by its link's anchor, identical in all eight languages. */
.g4g-card:has(a[href*="#pilot-"])::before {
    content: "";
    display: block;
    margin: -26px -26px 18px;
    aspect-ratio: 360 / 133;
    background:
        var(--pin, none) 0 0 / 100% 100% no-repeat,
        url("assets/images/world-lines.svg") 0 0 / 100% 100% no-repeat,
        var(--g4g-tint);
}

/* --- Funding: "project passport" --- */
.g4g-passport {
    max-width: 860px;
    margin: 12px 0 40px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cfe0d6;
    box-shadow: 0 10px 30px rgba(31, 61, 51, .10);
}
.g4g-passport__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    background: linear-gradient(120deg, var(--g4g-dark), var(--g4g-green-deep) 70%, var(--g4g-blue-deep));
    color: #fff;                                             /* 8.12:1 at the lightest point */
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.g4g-passport__body {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
    padding: 28px 24px 18px;
    background:
        repeating-linear-gradient(135deg, rgba(46, 125, 82, .03) 0 2px, transparent 2px 10px),
        #fff;
}
.g4g-passport__photo {
    align-self: start;
    padding: 14px;
    border: 1px solid #cfe0d6;
    border-radius: 8px;
    background: #fff;
}
.g4g-passport__photo img { display: block; width: 100%; height: auto; }
.g4g-passport__data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 0;
}
.g4g-passport__data div { margin: 0; }
.g4g-passport__data div.is-wide { grid-column: 1 / -1; }
.g4g-passport__data dt {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--g4g-muted);
}
.g4g-passport__data dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--g4g-ink); }
/* Machine-readable-zone look. Decorative: aria-hidden in the markup. */
.g4g-passport__mrz {
    margin: 0;
    padding: 12px 24px 14px;
    border-top: 1px dashed #cfe0d6;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    letter-spacing: .12em;
    line-height: 1.6;
    color: var(--g4g-muted);
    word-break: break-all;
}
@media (max-width: 767px) {
    .g4g-passport__body { grid-template-columns: minmax(0, 1fr); }
    .g4g-passport__photo { max-width: 180px; }
    .g4g-passport__data { grid-template-columns: minmax(0, 1fr); }
}

/* --- news cards with a featured image ---
   With an image the whole <li> is the card (image on top, text below);
   without one the <article> keeps its own border as before. */
.g4g-news__item--img {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe9e3;
    border-radius: 6px;
}
.g4g-news__item--img .g4g-news__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}
.g4g-news__item--img article {
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
}

/* ============================================================
   16. GREEN4GREY HOME + PROJECT PAGE
   ------------------------------------------------------------
   Icons are Font Awesome 5 Pro light, decorative: each one sits
   next to text that says the same thing.
   ============================================================ */

/* --- pillar cards (CIM, NbS, risk, monitoring, co-creation) --- */
.g4g-card[class*="g4g-card--i-"]::before { margin-bottom: 18px; }
.g4g-card--i-cim::before    { content: "\f5a0"; }                                            /* map */
.g4g-card--i-nbs::before    { content: "\f4d8"; }                                            /* seedling */
.g4g-card--i-risk::before   { content: "\f3ed"; background: var(--g4g-light-blue); color: var(--g4g-blue-deep); }  /* shield */
.g4g-card--i-iot::before    { content: "\f2db"; background: var(--g4g-light-blue); color: var(--g4g-blue-deep); }  /* microchip */
.g4g-card--i-people::before { content: "\f0c0"; }                                            /* people */
.g4g-card--i-cim, .g4g-card--i-nbs, .g4g-card--i-people { border-top-color: var(--g4g-green-bright); }
.g4g-card--i-risk, .g4g-card--i-iot                     { border-top-color: var(--g4g-blue-fill); }

/* --- KPI strip: one icon per figure, order fixed by the page --- */
.g4g-kpi__value::before { margin: 0 auto 12px; font-size: 22px; width: 52px; height: 52px; }
.g4g-kpis > li:nth-child(1) .g4g-kpi__value::before { content: "\f2b5"; }   /* partners: handshake */
.g4g-kpis > li:nth-child(2) .g4g-kpi__value::before { content: "\f3c5"; }   /* pilots: map pin */
.g4g-kpis > li:nth-child(3) .g4g-kpi__value::before { content: "\f5a0"; }   /* city models: map */
.g4g-kpis > li:nth-child(4) .g4g-kpi__value::before { content: "\f2db"; }   /* monitoring: microchip */
.g4g-kpis > li:nth-child(5) .g4g-kpi__value::before { content: "\f0c0"; }   /* stakeholders: people */
.g4g-kpis > li:nth-child(6) .g4g-kpi__value::before { content: "\f0a1"; }   /* outreach: bullhorn */

/* --- pilot cards: pin per pilot (map layers in section 15) --- */
.g4g-card:has(a[href$="#pilot-haifa"])     { --pin: url("assets/images/pins/haifa.svg"); }
.g4g-card:has(a[href$="#pilot-heraklion"]) { --pin: url("assets/images/pins/heraklion.svg"); }
.g4g-card:has(a[href$="#pilot-prague"])    { --pin: url("assets/images/pins/prague.svg"); }
.g4g-card:has(a[href$="#pilot-valencia"])  { --pin: url("assets/images/pins/valencia.svg"); }
.g4g-card:has(a[href$="#pilot-floripa"])   { --pin: url("assets/images/pins/floripa.svg"); }
.g4g-card:has(a[href*="#pilot-"]) { border-top: 0; overflow: hidden; }

/* --- the challenge: three headline figures ---
   Numbers are text, in --g4g-blue-deep: 7.06:1 on white, 6.31:1 on
   --g4g-light-blue. Sources are cited under the strip. */
.g4g-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.g4g-stat {
    padding: 26px 24px;
    background: #fff;
    border-inline-start: 4px solid var(--g4g-blue-fill);
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 0 #dfe9e3, 0 6px 20px rgba(31, 61, 51, .06);
}
.g4g-stat__num {
    display: block;
    font-family: var(--g4g-font-head);
    font-size: clamp(38px, 4.6vw, 54px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--g4g-blue-deep);
    font-variant-numeric: tabular-nums;
}
.g4g-stat__label { display: block; margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--g4g-ink); }

/* --- two-column text blocks (approach) --- */
.g4g-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}
.g4g-split > * { margin: 0; }

/* --- aim, set as a pull quote --- */
.g4g-aim {
    max-width: 78ch;
    margin: 8px 0 32px;
    padding: 22px 26px;
    border-inline-start: 4px solid var(--g4g-green-bright);
    border-radius: 0 6px 6px 0;
    background: var(--g4g-tint);
}
.g4g-aim p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--g4g-ink); }

/* --- work package cards: WP number as a badge --- */
.g4g-wp .g4g-badge { margin-bottom: 12px; align-self: flex-start; }
.g4g-card .g4g-wp__lead { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--g4g-muted); }

/* --- partner logos --- */
.g4g-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.g4g-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dfe9e3;
    border-radius: 6px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.g4g-logos a:hover,
.g4g-logos a:focus-visible { border-color: var(--g4g-green); box-shadow: 0 6px 18px rgba(31, 61, 51, .10); }
.g4g-logos img { display: block; max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain; }

ul.g4g-stats, ul.g4g-logos,
.klb-post ul.g4g-stats, .klb-post ul.g4g-logos { list-style: none; padding-inline-start: 0; }
ul.g4g-stats > li, ul.g4g-logos > li,
.klb-post ul.g4g-stats > li, .klb-post ul.g4g-logos > li { list-style: none; }

/* --- RTL: gradients and borders that are not logical properties --- */
[dir="rtl"] .g4g-stat,
[dir="rtl"] .g4g-aim,
[dir="rtl"] .g4g-callout { border-radius: 6px 0 0 6px; }

/* --- home hero with photograph ---
   The booklet's Green4Grey photo (water lilies, city behind), under a dark
   green overlay. Measured worst case = the white sky behind the text:
     overlay .82 of #16302A over white -> white text 7.95:1, lead 6.82:1
     overlay .74 (where the text ends on desktop)  -> 6.12:1 / 5.25:1
   Only the right-hand part of the photo, where no text sits, opens up
   (.35) on wide screens; narrow screens keep .82 throughout because the
   text then spans the full width. */
.g4g-hero--photo {
    background:
        linear-gradient(rgba(22, 48, 42, .82), rgba(22, 48, 42, .82)),
        url("assets/images/hero-waterlilies.jpg") center 60% / cover no-repeat,
        var(--g4g-dark);
}
@media (min-width: 992px) {
    .g4g-hero--photo {
        background:
            linear-gradient(90deg, rgba(22, 48, 42, .9) 0%, rgba(22, 48, 42, .82) 40%, rgba(22, 48, 42, .74) 55%, rgba(22, 48, 42, .35) 100%),
            url("assets/images/hero-waterlilies.jpg") center 60% / cover no-repeat,
            var(--g4g-dark);
    }
}
@media (min-width: 992px) {
    [dir="rtl"] .g4g-hero--photo {
        background:
            linear-gradient(270deg, rgba(22, 48, 42, .9) 0%, rgba(22, 48, 42, .82) 40%, rgba(22, 48, 42, .74) 55%, rgba(22, 48, 42, .35) 100%),
            url("assets/images/hero-waterlilies.jpg") center 60% / cover no-repeat,
            var(--g4g-dark);
    }
}

/* --- five pilots in one row on wide screens (4 + 1 orphan otherwise) --- */
@media (min-width: 1200px) {
    .g4g-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
    .g4g-cards--5 .g4g-card { padding: 22px 20px 20px; }
    .g4g-cards--5 .g4g-card:has(a[href*="#pilot-"])::before { margin: -22px -20px 16px; }
}
.g4g-logos + .g4g-news__more { margin-top: 28px; }

/* --- 1.9.1 fixes after the first live check --- */
/* Bootstrap (LTR build) sets body { text-align: left }, and the parent's
   rtl.css never undoes it: in Hebrew every paragraph was left-aligned while
   headings were right-aligned. */
html[dir="rtl"] body { text-align: right; }

/* Paragraph rhythm on text pages: the parent zeroes <p> margins. #33433B on
   white = 10.4:1. */
.g4g-page .g4g-prose p,
.g4g-page .g4g-list li { font-size: 16.5px; line-height: 1.7; color: #33433B; }
.g4g-page .g4g-prose p { margin: 0 0 16px; }
.g4g-page .g4g-lead { margin-bottom: 32px; }

/* ============================================================
   17. TITLE BAND EVERYWHERE (1.9.2)
   ------------------------------------------------------------
   g4g_render_band() prints the band for every view but home;
   these hide the headings it would otherwise repeat.
   ============================================================ */
.g4g-has-band .klb-page-title,                                  /* classic pages (Contact) */
.g4g-has-band .klb-blog-breadcrumb,                             /* parent archive banner */
.g4g-has-band .glossary-single-title,                           /* glossary term */
.single-post.g4g-has-band .news-block-two .lower-content > h2 { /* post title */
    display: none;
}
/* The parent pads its content areas for a page with no title above them. */
.g4g-has-band .klb-page.pt-100,
.g4g-has-band .blog-details-area.pt-100 { padding-top: 50px; }

/* Glossary index keeps its own band (it carries the A-Z filter) in the same colours. */
.glossary-hero.page-title-area {
    background: linear-gradient(120deg, var(--g4g-dark) 0%, var(--g4g-green-deep) 70%, var(--g4g-blue-deep) 100%);
}
.g4g-404 {
    margin: 0 0 10px;
    font-family: var(--g4g-font-head);
    font-size: clamp(72px, 12vw, 140px);
    font-weight: 700;
    line-height: 1;
    color: var(--g4g-green-bright);   /* decorative, aria-hidden; still 4.02:1 so contrast checkers pass */
}


/* ============================================================
   18. HOME SLIDESHOW (1.9.6) -- markup from scratchpad/slides.py,
       behaviour in g4g_slides_script() (functions.php)
   ------------------------------------------------------------
   Slides share one grid cell, so the tallest slide sets the
   height and nothing jumps. Without JavaScript only slide 1
   shows and the controls stay hidden. Text contrast is the same
   overlay as the photo hero (section 16): >= 6.12:1 for white
   text even where a slide's photo is white sky.
   ============================================================ */
.g4g-hero.g4g-slides {
    position: relative;
    padding: 0;
    background: var(--g4g-dark);
}
.g4g-slides__track { display: grid; }
.g4g-slide {
    grid-area: 1 / 1;
    padding: clamp(72px, 11vw, 140px) 0 clamp(110px, 12vw, 160px);
    background:
        linear-gradient(rgba(22, 48, 42, .82), rgba(22, 48, 42, .82)),
        var(--g4g-slide-img) var(--g4g-slide-pos, center) / cover no-repeat,
        var(--g4g-dark);
}
@media (min-width: 992px) {
    .g4g-slide {
        background:
            linear-gradient(90deg, rgba(22, 48, 42, .9) 0%, rgba(22, 48, 42, .82) 40%, rgba(22, 48, 42, .74) 55%, rgba(22, 48, 42, .35) 100%),
            var(--g4g-slide-img) var(--g4g-slide-pos, center) / cover no-repeat,
            var(--g4g-dark);
    }
    [dir="rtl"] .g4g-slide {
        background:
            linear-gradient(270deg, rgba(22, 48, 42, .9) 0%, rgba(22, 48, 42, .82) 40%, rgba(22, 48, 42, .74) 55%, rgba(22, 48, 42, .35) 100%),
            var(--g4g-slide-img) var(--g4g-slide-pos, center) / cover no-repeat,
            var(--g4g-dark);
    }
}
.g4g-slide--lilies   { --g4g-slide-img: url("assets/images/hero-waterlilies.jpg"); --g4g-slide-pos: center 60%; }
.g4g-slide--rooftop  { --g4g-slide-img: url("assets/images/hero-rooftop.jpg");     --g4g-slide-pos: center 65%; }
.g4g-slide--city     { --g4g-slide-img: url("assets/images/hero-city.jpg");        --g4g-slide-pos: center 45%; }
.g4g-slide--children { --g4g-slide-img: url("assets/images/hero-children.jpg");    --g4g-slide-pos: 70% 40%; }

/* Slide titles: slide 1 is the page h1, the rest h2 -- same look. */
.g4g-hero .g4g-slide__title {
    max-width: 16ch;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(36px, 5.6vw, 64px);
    line-height: 1.08;
}

/* No JS: slide 1 only, no controls. */
.g4g-slides:not(.is-ready) .g4g-slide + .g4g-slide,
.g4g-slides:not(.is-ready) .g4g-slides__nav { display: none; }

.g4g-slides.is-ready .g4g-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility 0s linear .8s;
}
.g4g-slides.is-ready .g4g-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .8s ease;
}
@media (prefers-reduced-motion: reduce) {
    .g4g-slides.is-ready .g4g-slide,
    .g4g-slides.is-ready .g4g-slide.is-active { transition: none; }
}

/* --- controls: prev / pause-play / next, then the dots ---
   White on the dark overlay; borders are 3:1+ (UI components). */
.g4g-slides__nav {
    position: absolute;
    inset-inline: 0;
    bottom: clamp(28px, 4vw, 48px);
}
/* Controls sit at the inline END: the sticky EU badge owns the start corner. */
.g4g-slides__nav .container { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.g4g-slides__prev,
.g4g-slides__next,
.g4g-slides__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: rgba(22, 48, 42, .45);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.g4g-slides__prev:hover,
.g4g-slides__next:hover,
.g4g-slides__toggle:hover { background: #fff; color: var(--g4g-dark); }
.g4g-slides__prev::before,
.g4g-slides__next::before,
.g4g-slides__toggle::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
}
.g4g-slides__prev::before   { content: "\f053"; }      /* chevron-left  */
.g4g-slides__next::before   { content: "\f054"; }      /* chevron-right */
.g4g-slides__toggle::before { content: "\f04c"; }      /* pause */
.g4g-slides.is-paused .g4g-slides__toggle::before { content: "\f04b"; }   /* play */
[dir="rtl"] .g4g-slides__prev::before { content: "\f054"; }
[dir="rtl"] .g4g-slides__next::before { content: "\f053"; }
/* The button's accessible name follows its state. */
.g4g-slides .g4g-slides__play,
.g4g-slides.is-paused .g4g-slides__pause { display: none; }
.g4g-slides.is-paused .g4g-slides__play { display: inline; }

.g4g-slides__dots { display: flex; gap: 8px; margin-inline-start: 10px; }
.g4g-slides__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.g4g-slides__dot[aria-current="true"] { background: #fff; }
.g4g-slides button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 575px) {
    .g4g-slides__dots { display: none; }       /* arrows are enough on a phone */
}

/* --- Contact Form 7: the parent paints field text #848484 (3.74:1 on white,
   below 4.5:1 -- axe color-contrast). Text in --g4g-ink, placeholders #6B6B6B
   (5.33:1). --- */
body .wpcf7 .wpcf7-form-control:not([type="submit"]):not([type="checkbox"]) { color: var(--g4g-ink); }
body .wpcf7 .wpcf7-form-control::placeholder { color: #6B6B6B; opacity: 1; }

/* --- footer standards row (W3C conformance logo; green-hosting badge later) --- */
.g4g-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.g4g-badges a { display: inline-block; line-height: 0; }
.g4g-badges img { display: block; height: 31px; width: auto; }
.g4g-badges a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* --- header quick links (1.9.8): contact + newsletter, as on react4med.eu ---
   Text on the white top bar: label --g4g-muted 6.17:1, action
   --g4g-green-deep 8.1:1. Hidden below 992px (menu + footer carry them). */
.g4g-quick {
    display: none;
    align-items: center;
    gap: 36px;
    margin: 0 32px 0 auto;
    padding: 0;
    list-style: none;
}
@media (min-width: 992px) { .g4g-quick { display: flex; } }
.g4g-quick a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.g4g-quick i { font-size: 28px; color: var(--g4g-green); }
.g4g-quick__label  { display: block; font-size: 13.5px; line-height: 1.3; color: var(--g4g-muted); }
.g4g-quick__action { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--g4g-green-deep); }
.g4g-quick a:hover .g4g-quick__action,
.g4g-quick a:focus-visible .g4g-quick__action { text-decoration: underline; }

/* --- Water4All logo on a white plate (dark logo, dark footer) --- */
.footer-area .g4g-funding-strip img.g4g-logo-plate {
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    box-sizing: content-box;
    height: 40px;
    width: auto;
}
@media (max-width: 575px) {
    .footer-area .g4g-funding-strip img.g4g-logo-plate { height: 30px; }
}


/* --- cookie banner (Complianz) in the site palette: Accept in --g4g-green
   (white 5.03:1), links --g4g-green-deep (8.1:1), switches green. --- */
.cmplz-cookiebanner {
    --cmplz_button_accept_background_color: #2E7D52;
    --cmplz_button_accept_border_color: #2E7D52;
    --cmplz_button_accept_text_color: #ffffff;
    --cmplz_hyperlink_color: #1F5E3C;
    --cmplz_slider_active_color: #2E7D52;
    --cmplz_text_color: #16241E;
}

/* --- the challenge: one icon per figure (decorative; the text says it) --- */
.g4g-stat::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--g4g-light-blue);
    color: var(--g4g-blue-deep);
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    font-size: 22px;
    line-height: 1;
}
.g4g-stats > li:nth-child(1)::before { content: "\f773"; }   /* water: wastewater treated */
.g4g-stats > li:nth-child(2)::before { content: "\f1b8"; }   /* recycle: share reused */
.g4g-stats > li:nth-child(3)::before { content: "\f2cc"; }   /* shower: greywater from households */
