/* Client's Brown & Green palette, 10 September 2026.
 * Disable in inc/client-palette.php to restore every original colour fallback.
 * Only UI colours change; artwork, photography and logo pixels are untouched.
 */
html:root {
    --client-primary: #34482a;
    --client-hover: #46583d;
    --client-muted: #53684c;
    --client-brown: #835937;
    --client-tan: #c4996f;
    --client-surface: #e3e3e3;
    --client-body: #46583d;
    --client-paper: #f4f4f1; /* A light neutral tint for form/content surfaces. */
    --client-sand: #e8e2d9; /* Light neutral with a small warm-tan contribution. */
    --client-rule: #c4996f;
    --client-deep: #26351f;
    --client-on-dark: #e3e3e3;
    --client-dark-accent: #e3e3e3;
    --client-dark-rule: #53684c;
    --wp--preset--color--primary: #34482a;
    --wp--preset--color--primary-dark: #26351f;
    --wp--preset--color--accent: #835937;
    --wp--preset--color--highlight: #c4996f;
    --wp--preset--color--foreground: #34482a;
    --wp--preset--color--muted: #46583d;
    --wp--preset--color--faint: #53684c;
    --wp--preset--color--border: #c4996f;
    --wp--preset--color--surface: #f4f4f1;
    --wp--preset--color--background: #e3e3e3;
    --leag-body-soft: #53684c;
    /* The child theme is loaded after some plugin assets. Explicit root
       specificity keeps its legacy token defaults from winning the cascade. */
    --leag-ink: var(--client-primary);
    --leag-ink-deep: var(--client-deep);
    --leag-maroon: var(--client-primary);
    --leag-maroon-bright: var(--client-hover);
    --leag-oxblood: var(--client-brown);
    --leag-body: var(--client-body);
    --leag-gold: var(--client-brown);
    --leag-gold-bright: var(--client-tan);
    --leag-gold-pale: var(--client-on-dark);
    --leag-canvas: var(--client-paper);
    --leag-linen: var(--client-surface);
    --leag-rule: var(--client-rule);
}

/* Inner pages only: frosted sticky chrome, with a readable opaque fallback.
   The inner bar must be transparent or it masks the header's glass layer. */
body.leag-inner-header #leag-header {
    background: var(--client-paper);
    border-bottom: 1px solid color-mix(in srgb, var(--client-brown) 18%, transparent);
    box-shadow: 0 3px 18px rgb(38 53 31 / 4%);
}
body.leag-inner-header #leag-header .leag-header__bar { background: transparent; }
@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
    body.leag-inner-header #leag-header {
        background: color-mix(in srgb, var(--client-paper) 72%, transparent);
        -webkit-backdrop-filter: blur(14px) saturate(110%);
        backdrop-filter: blur(14px) saturate(110%);
    }
}
@media (prefers-reduced-transparency: reduce) {
    body.leag-inner-header #leag-header {
        background: var(--client-paper);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* Keep the mobile header consistent across the homepage, shop and content pages. */
@media (max-width: 780px) {
    body.leag-inner-header #leag-header,
    body.leag-gallery-home #leag-header {
        background: var(--client-primary);
        border-bottom-color: var(--client-primary);
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    body #leag-header .leag-header__bar,
    body #leag-header .g-header-bar { background: transparent; }
    body #leag-header .leag-wordmark {
        justify-self: start;
        justify-content: flex-start;
    }
    body #leag-header .leag-wordmark__name,
    body #leag-header .leag-wordmark__sub,
    body #leag-header .leag-util { color: var(--client-on-dark); }
    body #leag-header .leag-util__count {
        background: var(--client-tan);
        color: var(--client-deep);
    }
}

/* Match the commissions section to the lighter FAQ surface below it. */
.g-home.g-commission { background-color: var(--client-paper); }

/* Brown assurance strip with white labels and outline icons. */
.g-home.g-assurances { background-color: var(--client-brown); color: #fff; }
.g-home.g-assurances small,
.g-home.g-assurances .leag-icon { color: #fff; }

/* Brown collection panel with white copy and navigation. */
.g-home.g-collections {
    --g-body: #fff;
    --g-rule: rgb(255 255 255 / 30%);
    background-color: var(--client-brown);
    color: #fff;
}
.g-home.g-collections :focus-visible { outline-color: #fff; }

/* Keep the texture, without allowing its old yellow ground to dictate colour. */
body { background-blend-mode: luminosity; }
.g-featured,
.leag-gallery-product .woocommerce-product-gallery__image,
body.leag-gallery-archive ul.products li.product .g-catalog-artwork {
    background-blend-mode: luminosity;
}

/* Light labels on primary actions; brown is reserved for accents on light UI. */
.leag-btn--solid, .leag-btn--gold {
    background: var(--client-primary);
    border-color: var(--client-hover);
    color: var(--client-on-dark);
}
.leag-btn--solid:hover, .leag-btn--gold:hover {
    background: var(--client-hover);
    color: var(--client-on-dark);
}
.g-button:hover,
.g-catalog-apply:hover,
.leag-cart .leag-cart__checkout:hover,
.leag-login .leag-login__panel input[type="submit"]:hover {
    background: var(--client-hover);
}

/* High contrast focus remains visible on both green and light surfaces. */
.g-craft :focus-visible, .leag-footer--gallery :focus-visible {
    outline-color: var(--client-on-dark);
}
.leag-footer.leag-footer--gallery a:hover { color: #fff; }

/* Explicit editor presets retain their existing slugs for saved content. */
.has-primary-color, .has-foreground-color { color: var(--client-primary) !important; }
.has-accent-color { color: var(--client-brown) !important; }
.has-primary-background-color { background-color: var(--client-primary) !important; }
.has-background-background-color { background-color: var(--client-surface) !important; }
