/* ========================================================================== 
   HDE CORE | Version 1.1 | 03 December 2026
   Global design tokens and minimal site-wide foundations.
   /wp-content/uploads/1-HDE-Custom/css/hde-core.css
   Keep this file lean. Kadence owns native typography and layout.
   ========================================================================== */

/* ========================================================================== 
   C1 - COLOUR AND DESIGN TOKENS
   Kadence Palette 1 is the source of truth; fallbacks match the HDE setup.
   Palette positions verified against live HDE Kadence CSS on 03 December 2026.
   ========================================================================== */
:root {
    --hde-accent: var(--global-palette1, #B94A3D);
    --hde-accent-hover: var(--global-palette2, #963B31);
    --hde-petrol: var(--global-palette3, #174A50);
    --hde-text: var(--global-palette4, #242D32);
    --hde-muted: var(--global-palette5, #46555A);
    --hde-teal: var(--global-palette7, #E3EFED);
    --hde-ivory: var(--global-palette8, #F8F5EF);
    --hde-white: var(--global-palette9, #FFFFFF);
    --hde-border: #C4D3D0;
    --hde-radius: 8px;
    --hde-content-width: 800px;
    --hde-wide-width: 1200px;
    --hde-gap: 1rem;
}

/* ========================================================================== 
   C2 - GLOBAL LAYOUT (custom HDE content only)
   ========================================================================== */
.hde-content,
.hde-content *,
.hde-content *::before,
.hde-content *::after {
    box-sizing: border-box;
}

/* ========================================================================== 
   C3 - TYPOGRAPHY
   Inherit Lexend Deca and responsive sizes from Kadence.
   ========================================================================== */
.hde-content {
    color: var(--hde-text);
    overflow-wrap: break-word;
}

/* ========================================================================== 
   C4 - WIDTH UTILITIES
   Use within native Kadence content spacing; do not add duplicate gutters.
   ========================================================================== */
.hde-container {
    width: 100%;
    max-width: var(--hde-content-width);
    margin-inline: auto;
}

.hde-container--wide {
    max-width: var(--hde-wide-width);
}

/* ========================================================================== 
   C5 - TEXT COLOUR UTILITIES
   ========================================================================== */
.hde-text-petrol { color: var(--hde-petrol); }
.hde-text-muted { color: var(--hde-muted); }

/* ========================================================================== 
   C6 - BACKGROUND UTILITIES
   ========================================================================== */
.hde-bg-teal { background-color: var(--hde-teal); }
.hde-bg-ivory { background-color: var(--hde-ivory); }
.hde-bg-white { background-color: var(--hde-white); }

/* ========================================================================== 
   C7 - ACCESSIBILITY
   Preserve native keyboard operation; scope the focus ring to HDE content.
   ========================================================================== */
.hde-content :focus-visible {
    outline: 3px solid var(--hde-petrol);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fff;
}
