/*
Theme Name:   Autopart 2025
Theme URI:    https://autopartuk.com/
Description:  autopartuk.com trade catalogue theme — a child of Twenty Twenty-Five: Autopart green frames the site, plenty of white, each brand's colour as its accent. Product data comes from the Autopart Core plugin.
Author:       Autopart
Template:     twentytwentyfive
Version:      0.8.3
Requires at least: 6.5
Requires PHP: 7.4
License:      GNU General Public License v2 or later
Text Domain:  autopart-2025
*/

/* Brand accents. Set on the body (or any block) with .brand-<slug>; templates use var(--brand). */
:root {
	--brand: var(--wp--preset--color--green);
	--brand-ink: #FFFFFF;
}
.brand-axe,
.brand-axe-forged { --brand: var(--wp--preset--color--axe); }
.brand-1av { --brand: var(--wp--preset--color--onev); }
.brand-lenso { --brand: var(--wp--preset--color--lenso); }
.brand-spartan { --brand: var(--wp--preset--color--spartan); }

body { background: #fff; }
.wp-site-blocks > * { margin-block-start: 0; }

/* Header: Autopart green frames the site */
.ap-site-header a { color: #fff; text-decoration: none; }
.ap-site-header .wp-block-navigation { gap: 1.4rem; }
.ap-site-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ap-site-header .wp-block-navigation__submenu-container { background: var(--wp--preset--color--green-dark) !important; border: 0 !important; padding: .4rem 0; min-width: 12rem !important; }
.ap-site-header .wp-block-navigation__submenu-container a { padding: .4rem 1rem !important; }
.ap-nav-wrap { gap: 1.5rem; }
.ap-portal-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; background: var(--wp--preset--color--green); border-radius: 3px; font-family: var(--wp--preset--font-family--heading); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ap-portal-btn:hover { filter: brightness(1.12); }
@media (max-width: 600px) { .ap-portal-btn { padding: .45rem .7rem; font-size: .9rem; } .ap-nav-wrap { gap: .75rem; } }

/* Footer */
.ap-site-footer a { color: #fff; }
.ap-footer-links { list-style: none; padding: 0; margin: 0; }
.ap-footer-links li { margin: .25rem 0; }
