/*
Theme Name: AED Studio
Theme URI: https://aedstudio.bg/
Author: AED Studio
Author URI: https://aedstudio.bg/
Description: A responsive bilingual architecture studio theme with light navy/sage and dark copper modes, responsive dropdown navigation, service and project content types, and an architecture-focused homepage.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Update URI: false
Text Domain: aed-studio
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: architecture, portfolio, custom-logo, custom-menu, featured-images, translation-ready, two-columns, dark-mode, responsive-layout
*/

/* ==========================================================================
   AED Studio — Global Stylesheet
   Front-page-only presentation is in assets/css/home.css.
   ========================================================================== */

/* Local variable fonts. Keep text readable while the font loads, and use the
 * same bundled version on every device rather than an installed local copy. */
@font-face {
    font-family: "Inter";
    src: url("assets/fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("assets/fonts/InterVariable-Italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

/* --------------------------------------------------------------------------
 * Design tokens and colour themes
 * -------------------------------------------------------------------------- */
:root {
	--header-background: var(--navy-950);
	--header-border-color: #667f69;
    --navy-950: #102b3c;
    --navy-900: #17384e;
    --navy-800: #204b65;
    --sage-700: #667f69;
    --sage-600: #78917b;
    --sage-100: #e8eee7;
    --copper-700: #a75e31;
    --copper-600: #c27a47;
    --copper-500: #d18c58;
    --ink: #173147;
    --muted: #5a6874;
    --surface: #ffffff;
    --surface-soft: #f5f4f0;
    --line: rgba(23, 49, 71, .14);
    --shadow: 0 18px 50px rgba(20, 42, 59, .12);
    --radius: 18px;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    color-scheme: light;
}

html[data-theme="dark"] {
	--header-background: #181a1a;
	--header-border-color: #4b4b4b;
    --ink: #f7f3ed;
    --muted: #c8c1b8;
    --surface: #0c0f10;
    --surface-soft: #111516;
    --line: rgba(210, 139, 86, .24);
    --shadow: 0 18px 60px rgba(0, 0, 0, .42);
    color-scheme: dark;
}

/* --------------------------------------------------------------------------
 * Reset and global elements
 * -------------------------------------------------------------------------- */
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    transition: background .25s, color .25s
}

img {
    max-width: 100%;
    height: auto
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
textarea,
select {
    font: inherit
}

.site-shell {
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto
}

.screen-reader-text {
    position: absolute!important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.skip-link:focus {
    position: fixed!important;
    clip: auto;
    width: auto;
    height: auto;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    background: #fff;
    color: #000;
    z-index: 9999
}

/* --------------------------------------------------------------------------
 * Utility bar
 * -------------------------------------------------------------------------- */
.utility-bar {
    background: var(--header-background);
    color: #fff;
    font-size: 13px;
	border-bottom: 2px solid var(--header-border-color);
}

.utility-inner {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.utility-items {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0
}

.utility-items a,
.utility-items>span {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap
}

.utility-items i {
    color: #dce6eb
}

.theme-toggle {
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 999px;
    padding: 5px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer
}

/*
 * Display exactly one theme icon at a time.
 * The extra selector specificity prevents Font Awesome's own display rules
 * from revealing both icons when the mobile toggle uses grid layout.
 */
.theme-toggle .theme-icon-light {
    display: inline-block;
}

.theme-toggle .theme-icon-dark {
    display: none;
}

html[data-theme="dark"] .theme-toggle .theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-toggle .theme-icon-dark {
    display: inline-block;
}

/* --------------------------------------------------------------------------
 * Main header and navigation
 * -------------------------------------------------------------------------- */
.main-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 40
}

.main-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px
}

.site-brand {
    display: flex;
    align-items: center
}

.site-logo-image {
    display: block;
    width: 205px;
    max-height: 64px;
    object-fit: contain;
    object-position: left center
}

.primary-navigation {
    margin-left: auto
}

.aed-menu {
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    padding: 0;
    margin: 0
}

.aed-menu>.menu-item {
    position: relative
}

.aed-menu>.menu-item>a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 22px 16px;
    border-bottom: 3px solid transparent;
    font-weight: 650;
    font-size: 15px
}

.aed-menu>.current-menu-item>a,
.aed-menu>.menu-item>a:hover, .aed-menu>.menu-item>a:focus {
    color: var(--sage-700);
    border-bottom-color: var(--sage-600)
}

html[data-theme="dark"] .aed-menu>.current-menu-item>a,
html[data-theme="dark"] .aed-menu>.menu-item>a:hover, html[data-theme="dark"] .aed-menu>.menu-item>a:focus {
    color: var(--copper-500);
    border-bottom-color: var(--copper-600)
}

.sub-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    min-width: 300px;
    padding: 10px;
    list-style: none;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s;
    z-index: 50
}

.sub-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px
}

.sub-menu li a:hover, .sub-menu li a:focus {
    background: var(--sage-100);
    color: var(--navy-950)
}

html[data-theme="dark"] .sub-menu li a:hover, html[data-theme="dark"] .sub-menu li a:focus {
    background: rgba(194, 122, 71, .14);
    color: var(--copper-500)
}

.menu-item-has-children:hover>.sub-menu,
.menu-item-has-children:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 26px;
    cursor: pointer
}

.eyebrow {
    margin: 0 0 10px;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 800;
    color: var(--sage-700)
}

html[data-theme="dark"] .eyebrow {
    color: var(--copper-500)
}

.section-rule {
    display: block;
    width: 62px;
    height: 3px;
    background: var(--sage-600);
    margin: 24px 0;
    border-radius: 2px
}

html[data-theme="dark"] .section-rule {
    background: var(--copper-600)
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 7px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: .2s
}

.button:hover {
    transform: translateY(-2px)
}

.button-primary {
    background: var(--sage-700);
    color: #fff
}

.button-outline {
    border-color: var(--sage-700);
    background: transparent;
    color: var(--ink)
}

html[data-theme="dark"] .button-primary {
    background: linear-gradient(135deg, var(--copper-500), var(--copper-700));
    color: #fff
}

html[data-theme="dark"] .button-outline {
    border-color: var(--copper-600)
}

/* --------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-950);
    color: #fff
}

.footer-main {
    display: grid;
    grid-template-columns: 1.15fr .75fr 1fr;
    gap: 52px;
    padding: 48px 0
}

.footer-main>div+div {
    border-left: 1px solid rgba(255, 255, 255, .2);
    padding-left: 52px
}

.footer-logo {
    width: 240px;
    height: 86px;
    object-fit: contain;
    object-position: left center
}

.footer-brand p {
    max-width: 410px;
    color: #d7e0e5;
    margin: 14px 0 0
}

.footer-column h2 {
    font-size: 13px;
    letter-spacing: .12em;
    color: #9eb59d;
    margin: 7px 0 14px
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 7px
}

.footer-links a,
.footer-links span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eef3f5
}

.footer-links i {
    width: 18px;
    color: #fff
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .18)
}

.footer-bottom-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 13px
}

.legal-links {
    position: absolute;
    right: 0;
    display: flex;
    gap: 12px
}

.site-footer a:hover {
    color: #b8cbb7
}

html[data-theme="dark"] .site-footer {
    background: #090b0c;
    border-top: 1px solid rgba(194, 122, 71, .3)
}

html[data-theme="dark"] .footer-column h2 {
    color: var(--copper-500)
}

html[data-theme="dark"] .footer-links i {
    color: var(--copper-500)
}

html[data-theme="dark"] .site-footer a:hover {
    color: var(--copper-500)
}

/* --------------------------------------------------------------------------
 * General content, archives and posts
 * -------------------------------------------------------------------------- */
.content-area {
    padding: 72px 0;
    background: var(--surface-soft);
    min-height: 60vh
}

.content-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 42px;
    box-shadow: var(--shadow)
}

.narrow-shell {
    max-width: 980px
}

.archive-header,
.entry-header {
    text-align: center;
    margin-bottom: 34px
}

.archive-header h1,
.entry-header h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;
    margin: 0
}

.entry-featured {
    margin: 0 0 34px
}

.entry-featured img {
    border-radius: 16px;
    width: 100%
}

.entry-content {
    font-size: 18px
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.post-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface)
}

.post-thumbnail {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.post-card-content {
    padding: 22px
}

.post-card-content h2 {
    margin: 0 0 10px
}

.text-link {
    font-weight: 700;
    color: var(--sage-700)
}

html[data-theme="dark"] .text-link {
    color: var(--copper-500)
}

.empty-state {
    text-align: center;
    padding: 70px 20px
}

.empty-state h1,
.empty-state h2 {
    font-size: 42px;
    margin: 0 0 12px
}

/* --------------------------------------------------------------------------
 * Responsive layouts
 * -------------------------------------------------------------------------- */
@media (max-width:1180px) {
    .utility-items {
        gap: 14px;
        font-size: 12px
    }

    .aed-menu>.menu-item>a {
        padding-inline: 10px
    }

}

@media (max-width:920px) {
    .site-shell {
        width: min(100% - 28px, 720px)
    }

    .utility-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 10px 0
    }

    .utility-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px 14px
    }

    .main-header-inner {
        min-height: 76px
    }

    .site-logo-image {
        width: 190px;
        max-height: 65px
    }

    .menu-toggle {
        display: block
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s
    }

    .primary-navigation.is-open {
        max-height: 78vh;
        overflow: auto
    }

    .aed-menu {
        display: block;
        padding: 10px 18px 20px
    }

    .aed-menu>.menu-item>a {
        padding: 14px 8px;
        border-bottom: 1px solid var(--line)
    }

    .sub-menu {
        position: static;
        min-width: 0;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0 0 0 34px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        transition: max-height .3s
    }

    .footer-main {
        grid-template-columns: 1fr 1fr
    }

    .footer-brand {
        grid-column: 1/-1
    }

    .footer-main>div+div {
        border-left: 0;
        padding-left: 0
    }

    .footer-main>.footer-column:last-child {
        border-left: 1px solid rgba(255, 255, 255, .2);
        padding-left: 32px
    }

    .footer-bottom-inner {
        justify-content: flex-start
    }

    .legal-links {
        right: 0
    }

    .post-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:620px) {
    .site-shell {
        width: min(100% - 22px, 520px)
    }

    .utility-items {
        grid-template-columns: 1fr;
        font-size: 11px
    }

    .utility-items a,
    .utility-items>span {
        white-space: normal
    }

    .main-header-inner {
        min-height: 70px
    }

    .site-logo-image {
        width: 168px
    }

    .hero-actions {
        display: grid
    }

    .post-grid {
        grid-template-columns: 1fr
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding: 38px 0;
        gap: 30px
    }

    .footer-brand {
        grid-column: auto
    }

    .footer-main>.footer-column:last-child {
        border-left: 0;
        padding-left: 0
    }

    .footer-bottom-inner {
        min-height: 76px;
        display: grid;
        gap: 4px;
        padding: 12px 0
    }

    .legal-links {
        position: static;
        flex-wrap: wrap
    }

    .content-shell {
        padding: 25px
    }

    .entry-content {
        font-size: 16px
    }
}

/* --------------------------------------------------------------------------
 * Polylang language switcher
 * -------------------------------------------------------------------------- */
.polylang-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    margin-left: 0.25rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/*
 * Custom downward chevron.
 */
.polylang-language-switcher::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.55rem;
    width: 0.35rem;
    height: 0.35rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
 * Navigation icons
 * -------------------------------------------------------------------------- */
.primary-navigation .aed-menu > li > a,
.footer-links a {
    align-items: center;
    gap: 0.55rem;
}

.primary-navigation .aed-menu > li > a {
    display: flex;
}

.footer-links a {
    display: inline-flex;
}

/*
 * Shared Font Awesome setup for the menu icons.
 */
.home-link > a > .aed-menu-icon,
.about-link > a > .aed-menu-icon,
.services-link > a > .aed-menu-icon,
.projects-link > a > .aed-menu-icon,
.contacts-link > a > .aed-menu-icon,
.single-design-link > a > .aed-menu-icon,
.apartment-link > a > .aed-menu-icon,
.interior-design-link > a > .aed-menu-icon,
.spatial-planning-link > a > .aed-menu-icon,
.scanning-link > a > .aed-menu-icon,
.technical-surveys-link > a > .aed-menu-icon,
.energy-assessments-link > a > .aed-menu-icon {
    display: inline-block;
    flex: 0 0 1rem;
    width: 1rem;
    font-family: "Font Awesome 6 Free";
    font-size: 0.9em;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
        color 0.25s ease,
        opacity 0.2s ease,
        transform 0.25s ease;
}

.primary-navigation .aed-menu > .menu-item-has-children > a > .aed-menu-chevron {
    display: inline-block;
    margin-left: 0.2rem;
    font-family: "Font Awesome 6 Free";
    font-size: 0.7em;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.2s ease;
	text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Rotate the arrow when the mobile submenu is open. */

.primary-navigation .aed-menu > li > a > .aed-menu-icon {
    opacity: 0.8;
}

.primary-navigation .aed-menu > li > a:hover > .aed-menu-icon,
.primary-navigation .aed-menu > li > a:focus-visible > .aed-menu-icon,
.primary-navigation .aed-menu > li.current-menu-item > a > .aed-menu-icon,
.primary-navigation .aed-menu > li.current-menu-ancestor > a > .aed-menu-icon {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
}

/* ========================================================================== 
   Improved AED Studio header — compact dimensions
   ========================================================================== */

/* Desktop utility bar ------------------------------------------------------ */
.site-header {
    position: relative;
    z-index: 100;
}

.utility-bar {
    min-height: 48px;
    background: var(--header-background);
}

.utility-inner {
    min-height: 48px;
    padding-left: 330px;
}

.utility-items {
    justify-content: center;
    flex: 1 1 auto;
    gap: clamp(14px, 2vw, 30px);
}

.utility-item {
    font-size: 13px;
    line-height: 1.2;
}

.utility-item i {
    font-size: 14px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    min-height: 38px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #ffffff;
    transition: background-color .2s ease, border-color .2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .12);
}

/* Main desktop header ------------------------------------------------------ */
.main-header {
    min-height: 78px;
    overflow: visible;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.main-header-inner {
    min-height: 78px;
    gap: 34px;
    padding-left: 360px;
    position: relative;
}

.brand-panel {
    position: absolute;
    top: -48px;
    bottom: 0;
    left: 0;
    width: 330px;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 36px;
    background:
        linear-gradient(
            to right,
            transparent 0 3.9%,
            var(--header-background) 3.9% 96.1%,
            transparent 96.1% 100%
        )
        0 45px / 100% 4px no-repeat;
    clip-path: none;
    filter: drop-shadow(0 8px 15px rgba(16, 43, 60, .14));
    isolation: isolate;
    z-index: 3;
}

/*
 * Outer polygon creates the 2px border around the clipped brand panel.
 */
.brand-panel::before {
    content: "";
    position: absolute;
    top: 48px;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--header-border-color);
    clip-path: polygon(4.57% 0, 95.43% 0, 88% 100%, 12% 100%);
    pointer-events: none;
    z-index: 0;
}

/*
 * Inner polygon reveals the outer layer along the two angled sides
 * and the bottom edge.
 */
.brand-panel::after {
    content: "";
    position: absolute;
    top: 48px;
    right: 2px;
    bottom: 2px;
    left: 2px;
    background: var(--header-background);
    clip-path: polygon(4.57% 0, 95.43% 0, 88% 100%, 12% 100%);
    pointer-events: none;
    z-index: 1;
}

.brand-panel .site-brand {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-brand {
    width: 100%;
    min-width: 0;
    justify-content: center;
}

.site-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 110px;
    object-fit: contain;
    object-position: center;
}

.site-logo-image-mobile {
    display: none;
}

.site-title-text {
    display: block;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-align: center;
}

.primary-navigation {
    margin-left: auto;
}

.aed-menu {
    gap: clamp(2px, .65vw, 10px);
}

.aed-menu > .menu-item > a {
    position: relative;
    padding: 17px clamp(10px, 1.05vw, 18px);
    border-bottom: 0;
    font-size: clamp(15px, 1.05vw, 18px);
    font-weight: 700;
    line-height: 1;
}

.aed-menu > .menu-item > a::after {
    bottom: 8px;
}

.aed-menu > .current-menu-item > a,
.aed-menu > .current-menu-ancestor > a,
.aed-menu > .menu-item > a:hover,
.aed-menu > .menu-item > a:focus {
    border-bottom-color: transparent;
}

.aed-menu > .current-menu-item > a > .aed-menu-icon,
.aed-menu > .current-menu-ancestor > a > .aed-menu-icon {
    opacity: 1;
}

.aed-menu > .current-menu-item > a::after,
.aed-menu > .current-menu-ancestor > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--sage-600);
    border: 0;
    transform: none;
}

.aed-menu > .current-menu-ancestor > a::after {
	border-radius: 1rem;
}

html[data-theme="light"] .aed-menu > .current-menu-ancestor > a::after {
    background: var(--sage-600);
}

html[data-theme="dark"] .aed-menu > .current-menu-item > a::after,
html[data-theme="dark"] .aed-menu > .current-menu-ancestor > a::after {
    background: var(--copper-600);
}

/* Keep the Font Awesome submenu chevron when an item is active. */
.primary-navigation .aed-menu > .menu-item-has-children > a > .aed-menu-chevron {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    margin-left: .35rem;
    transform: none;
}

/*
 * Desktop only: when the submenu parent is the page currently being viewed,
 * keep its chevron neutral. Ancestor items continue to inherit the active
 * sage/copper colour so they still identify the current submenu section.
 */
@media (min-width: 921px) {
    .primary-navigation .aed-menu > .menu-item-has-children.current-menu-item:not(.current-menu-ancestor) > a > .aed-menu-chevron {
        background: transparent;
        color: var(--ink);
    }
}

.primary-navigation .aed-menu > .menu-item-has-children.current-menu-item > a,
.primary-navigation .aed-menu > .menu-item-has-children.current-menu-ancestor > a {
    box-shadow: inset 0 -3px 0 var(--sage-600);
}

html[data-theme="dark"] .primary-navigation .aed-menu > .menu-item-has-children.current-menu-item > a,
html[data-theme="dark"] .primary-navigation .aed-menu > .menu-item-has-children.current-menu-ancestor > a {
    box-shadow: inset 0 -3px 0 var(--copper-600);
}

.sub-menu {
    top: 100%;
}

/* Give both languages enough room just above the mobile breakpoint. */
@media (min-width: 921px) and (max-width: 1100px) {
    .site-header {
        --compact-brand-width: clamp(260px, calc(40vw - 108px), 330px);
    }

    .site-header .brand-panel {
        width: var(--compact-brand-width);
        padding-inline: 24px;
    }

    .site-header .brand-panel .site-logo-image-desktop {
        max-width: min(250px, 100%);
    }

    .site-header .main-header-inner {
        padding-left: calc(var(--compact-brand-width) + 20px);
    }

    .site-header .utility-inner {
        padding-left: var(--compact-brand-width);
    }

    .site-header .primary-navigation-desktop .aed-menu {
        gap: 4px;
    }

    .site-header .primary-navigation-desktop .aed-menu > .menu-item > a {
        padding-inline: 8px;
        white-space: nowrap;
    }
}

/* Tablet and mobile header ------------------------------------------------ */
@media (max-width: 920px) {
    .utility-bar {
        display: none;
    }

    .main-header {
        min-height: 66px;
        overflow: visible;
    }

    .main-header-inner {
        width: min(100% - 24px, 720px);
        min-height: 66px;
        padding-left: 0;
        gap: 16px;
    }

    .brand-panel {
        position: static;
        width: auto;
        min-width: 0;
        height: auto;
        padding: 0;
        background: transparent;
        clip-path: none;
        filter: none;
        isolation: auto;
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .brand-panel::before,
    .brand-panel::after {
        display: none;
    }

    .brand-panel .site-brand,
    .site-brand {
        width: auto;
        height: auto;
        justify-content: flex-start;
        overflow: visible;
    }

    .site-title-text {
        color: var(--ink);
        font-size: 1.2rem;
        text-align: left;
    }

    .site-logo-image {
        width: auto;
        height: auto;
        max-width: 110px;
        max-height: 58px;
        object-position: left center;
    }

    .brand-panel .site-logo-image-desktop {
        display: none;
    }

    .brand-panel .site-logo-image-mobile {
        display: block;
    }

    .theme-toggle-icon-only,
    .menu-toggle {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        display: inline-grid;
        place-items: center;
        border-radius: 10px;
    }

    .theme-toggle-icon-only {
        border: 1px solid var(--line);
        background: var(--surface);
        color: var(--ink);
    }

    .menu-toggle {
		border-color: var(--header-background);
		background: var(--header-background);
        color: #ffffff;
        font-size: 22px;
    }

    .polylang-language-switcher {
        height: 44px;
        min-height: 44px;
        margin: 0;
        padding-left: 11px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--surface);
        color: var(--ink);
    }

    .polylang-language-switcher::after {
        right: 10px;
    }

    .primary-navigation {
        top: 100%;
        z-index: 100;
    }

    .aed-menu > .menu-item > a {
        padding: 15px 10px;
        font-size: 16px;
        line-height: 1.25;
        border-bottom: 1px solid var(--line);
        box-shadow: none !important;
    }

    .aed-menu > .current-menu-item > a::after,
    .aed-menu > .current-menu-ancestor > a::after {
        display: none;
    }

    .primary-navigation .aed-menu > .menu-item-has-children > a > .aed-menu-chevron {
        margin-left: auto;
    }
}

@media (max-width: 620px) {
    .main-header,
    .main-header-inner {
        min-height: 60px;
    }

    .site-logo-image {
        width: auto;
        max-width: 100px;
        max-height: 52px;
    }
}

@media (max-width: 520px) {
    .main-header-inner {
        width: calc(100% - 20px);
        gap: 8px;
    }

    .site-logo-image {
        width: auto;
        max-width: 92px;
        max-height: 48px;
    }

    .theme-toggle-icon-only,
    .menu-toggle {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    .polylang-language-switcher {
        height: 40px;
        min-height: 40px;
        padding-left: 9px;
    }
}

@media (max-width: 390px) {
    .site-logo-image {
        width: auto;
        max-width: 84px;
        max-height: 44px;
    }

    .polylang-language-switcher > i {
        display: none;
    }

    .polylang-language-switcher {
        padding-left: 4px;
    }
}

/* ==========================================================================
   Header controls — natural desktop/mobile document order
   ========================================================================== */

/*
 * Desktop and mobile controls are rendered in separate containers so the
 * keyboard sequence follows the natural document order at each breakpoint.
 * The desktop controls remain visually positioned in the utility row, while
 * the mobile controls stay beside the logo in the main header.
 */
.utility-inner {
	position: relative;
}

.header-actions {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 120;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 3rem;
	transform: translateY(-50%);
	pointer-events: auto;
}

.header-actions-mobile {
	display: none;
}

.header-actions .theme-toggle,
.header-actions .polylang-language-switcher,
.header-actions .menu-toggle {
	position: relative;
	z-index: 121;
	pointer-events: auto;
}

.header-actions .menu-toggle {
	display: none;
}

/*
 * Keep the desktop navigation clear of the controls positioned above it.
 */
@media (min-width: 57.5625rem) {
	.utility-inner {
		padding-right: 12.5rem;
	}

	.header-actions .theme-toggle-label {
		display: inline;
	}

	/*
	 * Allow unusually long Customizer values to shrink inside the space that
	 * remains between the desktop logo panel and the header controls.
	 */
	.utility-items {
		min-width: 0;
	}

	.utility-item {
		min-width: 0;
		flex: 0 1 auto;
	}

	.utility-item-text {
		display: block;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

/*
 * Compact intermediate desktop layout.
 *
 * The controls are absolutely positioned over the utility bar and therefore
 * do not participate in its flex layout. Between 921px and 1280px, reserve a
 * smaller but sufficient controls area, hide the optional labels, and allow
 * the four information values to share the remaining width without overlap.
 */
@media (min-width: 57.5625rem) and (max-width: 80rem) {
	.utility-inner {
		padding-right: 7.75rem;
	}

	.utility-items {
		justify-content: space-between;
		gap: clamp(0.375rem, 1vw, 0.75rem);
	}

	.utility-item {
		font-size: 0.75rem;
	}

	.utility-item i {
		font-size: 0.8125rem;
	}

	.utility-item-label {
		display: none;
	}

	.header-actions {
		gap: 0.4rem;
	}

	.header-actions .theme-toggle {
		display: inline-grid;
		place-items: center;
		width: 2.375rem;
		height: 2.375rem;
		min-height: 2.375rem;
		padding: 0;
	}

	.header-actions .theme-toggle-label {
		position: absolute !important;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.header-actions .polylang-language-switcher {
		margin-left: 0;
		padding-left: 0.375rem;
	}
}

/* Tablet and mobile header controls --------------------------------------- */
@media (max-width: 57.5rem) {
	.header-actions-desktop {
		display: none;
	}

	.header-actions-mobile {
		display: flex;
	}

	.header-actions {
		position: relative;
		top: auto;
		right: auto;
		z-index: 120;
		flex: 0 0 auto;
		margin-left: auto;
		gap: 0.5rem;
		min-height: 0;
		transform: none;
	}

	.header-actions .menu-toggle {
		display: inline-grid;
	}

	.header-actions .theme-toggle-label {
		position: absolute !important;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.header-actions .theme-toggle {
		display: inline-grid;
		place-items: center;
		width: 2.75rem;
		height: 2.75rem;
		min-height: 2.75rem;
		padding: 0;
		border: 1px solid var(--line);
		border-radius: 0.625rem;
		background: var(--surface);
		color: var(--ink);
	}

	.header-actions .polylang-language-switcher {
		display: inline-flex;
		align-items: center;
		height: 2.75rem;
		min-height: 2.75rem;
		margin: 0;
		padding-left: 0.6875rem;
		border: 1px solid var(--line);
		border-radius: 0.625rem;
		background: var(--surface);
		color: var(--ink);
	}

	.header-actions .polylang-language-switcher::after {
		right: 0.625rem;
	}

	.header-actions .menu-toggle {
		width: 2.75rem;
		height: 2.75rem;
		min-height: 2.75rem;
		padding: 0;
		border: 1px solid var(--header-background);
		border-radius: 0.625rem;
		background: var(--header-background);
		color: #ffffff;
	}

	}

@media (max-width: 32.5rem) {
	.header-actions {
		gap: 0.375rem;
	}

	.header-actions .theme-toggle,
	.header-actions .menu-toggle {
		width: 2.5rem;
		height: 2.5rem;
		min-height: 2.5rem;
	}

	.header-actions .polylang-language-switcher {
		height: 2.5rem;
		min-height: 2.5rem;
		padding-left: 0.5625rem;
	}
}

@media (max-width: 24.375rem) {
	.header-actions .polylang-language-switcher > i {
		display: none;
	}

	.header-actions .polylang-language-switcher {
		padding-left: 0.25rem;
	}
}

/* ==========================================================================
   Polylang control colour correction
   ========================================================================== */

/*
 * Desktop: the controls are visually positioned over the dark utility bar,
 * although they remain inside the main-header markup. Force the language
 * icon, selected text and chevron to use white.
 */
@media (min-width: 57.5625rem) {
	.header-actions .polylang-language-switcher {
		color: #ffffff;
	}

	.header-actions .polylang-language-switcher > i,
.header-actions .polylang-language-switcher::after {
		color: #ffffff;
	}
}

/*
 * Mobile: the control sits on the light or dark main-header surface, so use
 * the active theme text colour instead of the desktop white colour.
 */
@media (max-width: 57.5rem) {
	.header-actions .polylang-language-switcher,
.header-actions .polylang-language-switcher > i,
.header-actions .polylang-language-switcher::after {
		color: var(--ink);
	}
}

/* ==========================================================================
   Polylang desktop contrast — final specificity override
   ========================================================================== */

/*
 * Polylang's generated select can inherit the main-header text colour.
 * These declarations intentionally use higher specificity and !important so
 * the control remains white over the dark desktop utility bar in light mode.
 */
@media (min-width: 57.5625rem) {
	html[data-theme="light"]
		.site-header
		.header-actions
		.polylang-language-switcher,
	html[data-theme="light"]
		.site-header
		.header-actions
		.polylang-language-switcher > i,
	html[data-theme="light"]
		.site-header
		.header-actions
		.polylang-language-switcher::after {
		color: #ffffff !important;
	}
}

/* ========================================================================== 
   Mobile sticky header and scroll-to-top control
   ========================================================================== */

:root {
	--mobile-sticky-border: rgba(102, 127, 105, 0.42);
	--mobile-sticky-shadow: 0 10px 30px rgba(16, 43, 60, 0.16);
	--mobile-scroll-top-background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
	--mobile-scroll-top-border: rgba(255, 255, 255, 0.22);
	--mobile-scroll-top-colour: #ffffff;
	--mobile-scroll-top-shadow: 0 12px 30px rgba(16, 43, 60, 0.3);
	--mobile-scroll-top-focus: var(--sage-600);
}

html[data-theme="dark"] {
	--mobile-sticky-border: rgba(209, 140, 88, 0.42);
	--mobile-sticky-shadow: 0 12px 34px rgba(0, 0, 0, 0.52);
	--mobile-scroll-top-background: linear-gradient(135deg, var(--copper-500), var(--copper-700));
	--mobile-scroll-top-border: rgba(255, 255, 255, 0.2);
	--mobile-scroll-top-colour: #ffffff;
	--mobile-scroll-top-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
	--mobile-scroll-top-focus: var(--copper-500);
}

.mobile-scroll-to-top {
	display: none;
}

@media (max-width: 57.5rem) {
	.site-header.mobile-sticky-header-enabled {
		position: sticky;
		top: 0;
		z-index: 1000;
	}

	.site-header.mobile-sticky-header-enabled .main-header {
		transition:
			border-color 0.22s ease,
			box-shadow 0.22s ease,
			background-color 0.22s ease;
	}

	.site-header.mobile-sticky-header-enabled.is-scrolled .main-header {
		border-bottom-color: var(--mobile-sticky-border);
		box-shadow: var(--mobile-sticky-shadow);
	}

	.mobile-scroll-to-top {
		position: fixed;
		right: calc(1rem + env(safe-area-inset-right, 0px));
		bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
		z-index: 980;
		display: inline-grid;
		place-items: center;
		width: 3rem;
		height: 3rem;
		padding: 0;
		border: 1px solid var(--mobile-scroll-top-border);
		border-radius: 50%;
		background: var(--mobile-scroll-top-background);
		box-shadow: var(--mobile-scroll-top-shadow);
		color: var(--mobile-scroll-top-colour);
		font-size: 1rem;
		line-height: 1;
		opacity: 0;
		visibility: hidden;
		transform: translateY(0.75rem) scale(0.94);
		pointer-events: none;
		cursor: pointer;
		transition:
			opacity 0.2s ease,
			visibility 0.2s ease,
			transform 0.2s ease,
			box-shadow 0.2s ease;
		-webkit-tap-highlight-color: transparent;
	}

	.mobile-scroll-to-top.is-visible {
		opacity: 1;
		visibility: visible;
		transform: translateY(0) scale(1);
		pointer-events: auto;
	}

	.mobile-scroll-to-top:hover {
		transform: translateY(-0.125rem) scale(1.02);
		box-shadow: 0 16px 36px rgba(16, 43, 60, 0.34);
	}

	html[data-theme="dark"] .mobile-scroll-to-top:hover {
		box-shadow: 0 18px 38px rgba(0, 0, 0, 0.56);
	}

	.mobile-scroll-to-top:active {
		transform: translateY(0) scale(0.97);
	}

	.mobile-scroll-to-top:focus-visible {
		outline: 3px solid var(--mobile-scroll-top-focus);
		outline-offset: 3px;
	}
}

/* Account for the fixed WordPress admin toolbar while previewing the site. */
@media (min-width: 48.9375rem) and (max-width: 57.5rem) {
	body.admin-bar .site-header.mobile-sticky-header-enabled {
		top: 2rem;
	}
}

@media (min-width: 37.5625rem) and (max-width: 48.875rem) {
	body.admin-bar .site-header.mobile-sticky-header-enabled {
		top: 2.875rem;
	}
}

@media (max-width: 32.5rem) {
	.mobile-scroll-to-top {
		right: calc(0.875rem + env(safe-area-inset-right, 0px));
		bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
		width: 2.75rem;
		height: 2.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header.mobile-sticky-header-enabled .main-header,
	.mobile-scroll-to-top {
		transition: none;
	}
}

/* ========================================================================== 
   Bilingual header labels and expandable mobile information panel
   ========================================================================== */

:root {
	--mobile-info-accent: var(--sage-700);
	--mobile-info-accent-strong: var(--navy-900);
	--mobile-info-button-background: var(--surface);
	--mobile-info-button-active: var(--sage-100);
	--mobile-info-button-border: rgba(102, 127, 105, 0.48);
	--mobile-info-panel-background: rgba(255, 255, 255, 0.985);
	--mobile-info-panel-border: rgba(23, 49, 71, 0.14);
	--mobile-info-panel-shadow: 0 22px 48px rgba(16, 43, 60, 0.18);
	--mobile-info-card-background: linear-gradient(145deg, #ffffff, #f5f7f4);
	--mobile-info-card-border: rgba(102, 127, 105, 0.25);
	--mobile-info-card-shadow: 0 8px 22px rgba(16, 43, 60, 0.07);
	--mobile-info-icon-background: rgba(102, 127, 105, 0.11);
	--mobile-info-label-colour: var(--navy-900);
	--mobile-info-value-colour: var(--ink);
	--mobile-info-cta-background: linear-gradient(135deg, #455f4a, #526d57);
	--mobile-info-cta-colour: #ffffff;
	--mobile-info-cta-shadow: 0 10px 24px rgba(16, 43, 60, 0.18);
}

html[data-theme="dark"] {
	--mobile-info-accent: var(--copper-500);
	--mobile-info-accent-strong: var(--copper-500);
	--mobile-info-button-background: #111516;
	--mobile-info-button-active: rgba(194, 122, 71, 0.14);
	--mobile-info-button-border: rgba(209, 140, 88, 0.48);
	--mobile-info-panel-background: rgba(12, 15, 16, 0.985);
	--mobile-info-panel-border: rgba(209, 140, 88, 0.27);
	--mobile-info-panel-shadow: 0 24px 52px rgba(0, 0, 0, 0.56);
	--mobile-info-card-background: linear-gradient(145deg, #15191a, #101314);
	--mobile-info-card-border: rgba(209, 140, 88, 0.25);
	--mobile-info-card-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
	--mobile-info-icon-background: rgba(194, 122, 71, 0.1);
	--mobile-info-label-colour: var(--copper-500);
	--mobile-info-value-colour: #f7f3ed;
	--mobile-info-cta-background: linear-gradient(135deg, #c98754, var(--copper-700));
	--mobile-info-cta-colour: #ffffff;
	--mobile-info-cta-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

/* Desktop label formatting: icon, label, colon, then the existing value. */
.utility-item-label {
	display: inline-flex;
	align-items: baseline;
	font-weight: 750;
	color: #ffffff;
}

.utility-item-colon {
	margin-left: 0.0625rem;
}

.utility-item-text {
	min-width: 0;
}

/* Keep clickable header contact values visually consistent with plain text. */
.utility-items .utility-item-link,
.mobile-header-info-link {
	color: inherit;
	text-decoration: none;
}

.utility-items .utility-item-link {
	display: inline;
}

.utility-items .utility-item-link:hover,
.utility-items .utility-item-link:focus-visible,
.mobile-header-info-link:hover,
.mobile-header-info-link:focus-visible {
	color: currentColor;
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.mobile-header-info-link:focus-visible,
.utility-items .utility-item-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 0.125rem;
}

.mobile-header-info-toggle,
.mobile-header-info-panel {
	display: none;
}

@media (max-width: 57.5rem) {
	/*
	 * Keep the brand at the left and group all mobile controls together at the
	 * right. The information toggle now uses the same dimensions, surface,
	 * border radius and visual language as the theme and language controls.
	 */
	.site-header .main-header-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: clamp(0.5rem, 1.7vw, 0.875rem);
	}

	.site-header .brand-panel {
		min-width: 0;
		max-width: 100%;
		flex: 1 1 auto;
		justify-self: auto;
	}

	.site-header .header-actions {
		flex: 0 0 auto;
		justify-self: auto;
		margin-left: auto;
	}

	.mobile-header-info-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.45rem;
		width: 3.5rem;
		height: 2.75rem;
		min-height: 2.75rem;
		padding: 0 0.65rem;
		border: 1px solid var(--line);
		border-radius: 0.625rem;
		background: var(--surface);
		box-shadow: none;
		color: var(--ink);
		font-size: 1rem;
		line-height: 1;
		cursor: pointer;
		transition:
			background-color 0.2s ease,
			border-color 0.2s ease,
			box-shadow 0.2s ease,
			color 0.2s ease,
			transform 0.2s ease;
		-webkit-tap-highlight-color: transparent;
	}

	.mobile-header-info-toggle:hover,
	.mobile-header-info-toggle:focus-visible,
	.mobile-header-info-toggle[aria-expanded="true"] {
		border-color: var(--mobile-info-accent);
		background: var(--mobile-info-button-active);
		color: var(--mobile-info-accent);
	}

	.mobile-header-info-toggle:hover {
		transform: translateY(-0.0625rem);
	}

	.mobile-header-info-toggle:active {
		transform: translateY(0) scale(0.98);
	}

	.mobile-header-info-toggle:focus-visible {
		outline: 3px solid rgba(102, 127, 105, 0.38);
		outline-offset: 2px;
	}

	html[data-theme="dark"] .mobile-header-info-toggle:focus-visible {
		outline-color: rgba(209, 140, 88, 0.42);
	}

	.mobile-header-info-toggle-main {
		display: inline-grid;
		place-items: center;
		width: 1.2rem;
		height: 1.2rem;
		font-size: 1rem;
	}

	.mobile-header-info-toggle-chevron {
		font-size: 0.68rem;
		transition: transform 0.24s ease;
	}

	.mobile-header-info-toggle[aria-expanded="true"] .mobile-header-info-toggle-chevron {
		transform: rotate(180deg);
	}

	.mobile-header-info-panel {
		position: relative;
		z-index: 95;
		display: block;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		border-bottom: 1px solid transparent;
		background: var(--mobile-info-panel-background);
		box-shadow: none;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-0.5rem);
		pointer-events: none;
		transition:
			max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
			opacity 0.22s ease,
			visibility 0.22s ease,
			transform 0.28s ease,
			border-color 0.22s ease,
			box-shadow 0.22s ease;
	}

	.mobile-header-info-panel::before {
		content: "";
		position: absolute;
		top: 0;
		left: var(--mobile-info-pointer-x, 50%);
		width: 1.1rem;
		height: 1.1rem;
		background: var(--mobile-info-panel-background);
		border-top: 1px solid var(--mobile-info-panel-border);
		border-left: 1px solid var(--mobile-info-panel-border);
		transform: translate(-50%, -50%) rotate(45deg);
		pointer-events: none;
	}

	.mobile-header-info-panel-scroll {
		position: relative;
		padding: clamp(1rem, 3vw, 1.5rem) 0;
	}

	.mobile-header-info-inner {
		width: min(100% - 1.5rem, 45rem);
	}

	.mobile-header-info-grid {
		--mobile-header-info-grid-gap: clamp(0.75rem, 2.5vw, 1.25rem);

		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--mobile-header-info-grid-gap);
	}

	.mobile-header-info-card {
		flex: 0 1 calc((100% - var(--mobile-header-info-grid-gap)) / 2);
		width: calc((100% - var(--mobile-header-info-grid-gap)) / 2);
		max-width: calc((100% - var(--mobile-header-info-grid-gap)) / 2);
		display: grid;
		align-content: center;
		justify-items: center;
		min-width: 0;
		min-height: clamp(8.5rem, 25vw, 10rem);
		padding: clamp(0.875rem, 3vw, 1.4rem);
		border: 1px solid var(--mobile-info-card-border);
		border-radius: 1rem;
		background: var(--mobile-info-card-background);
		box-shadow: var(--mobile-info-card-shadow);
		text-align: center;
	}

	.mobile-header-info-icon {
		display: grid;
		place-items: center;
		width: 3rem;
		height: 3rem;
		margin-bottom: 0.75rem;
		border-radius: 50%;
		background: var(--mobile-info-icon-background);
		color: var(--mobile-info-accent);
		font-size: 1.65rem;
	}

	.mobile-header-info-copy {
		display: grid;
		justify-items: center;
		gap: 0.35rem;
		min-width: 0;
		width: 100%;
	}

	.mobile-header-info-label {
		color: var(--mobile-info-label-colour);
		font-size: clamp(0.68rem, 2.2vw, 0.78rem);
		font-weight: 800;
		line-height: 1.2;
		letter-spacing: 0.13em;
		text-transform: uppercase;
	}

	.mobile-header-info-value {
		max-width: 100%;
		color: var(--mobile-info-value-colour);
		font-size: clamp(0.82rem, 2.7vw, 1rem);
		font-weight: 520;
		line-height: 1.4;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.mobile-header-info-cta-wrap {
		display: flex;
		justify-content: center;
		padding-top: clamp(0.9rem, 2.8vw, 1.25rem);
	}

	.mobile-header-info-cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.75rem;
		width: min(100%, 25rem);
		min-height: 3.15rem;
		padding: 0.8rem 1.35rem;
		border: 1px solid transparent;
		border-radius: 0.75rem;
		background: var(--mobile-info-cta-background);
		box-shadow: var(--mobile-info-cta-shadow);
		color: var(--mobile-info-cta-colour);
		font-size: 0.95rem;
		font-weight: 800;
		line-height: 1.2;
		letter-spacing: 0.02em;
		text-align: center;
		transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	}

	.mobile-header-info-cta i {
		font-size: 0.85rem;
		transition: transform 0.2s ease;
	}

	.mobile-header-info-cta:hover {
		filter: brightness(1.06);
		transform: translateY(-0.125rem);
	}

	.mobile-header-info-cta:hover i {
		transform: translateX(0.2rem);
	}

	.mobile-header-info-cta:active {
		transform: translateY(0) scale(0.99);
	}

	.mobile-header-info-cta:focus-visible {
		outline: 3px solid rgba(102, 127, 105, 0.4);
		outline-offset: 3px;
	}

	html[data-theme="dark"] .mobile-header-info-cta:focus-visible {
		outline-color: rgba(209, 140, 88, 0.45);
	}

	.site-header.mobile-info-open .main-header {
		border-bottom-color: var(--mobile-info-panel-border);
	}
}

@media (max-width: 32.5rem) {
	.site-header .main-header-inner {
		gap: 0.375rem;
	}

	.site-header .brand-panel .site-logo-image {
		max-width: 5.25rem;
		max-height: 2.9rem;
	}

	.mobile-header-info-toggle {
		width: 3.1rem;
		height: 2.5rem;
		min-height: 2.5rem;
		gap: 0.35rem;
		padding: 0 0.5rem;
	}

	.mobile-header-info-toggle-main {
		font-size: 1rem;
	}

	.mobile-header-info-toggle-chevron {
		font-size: 0.65rem;
	}

	.mobile-header-info-inner {
		width: calc(100% - 1rem);
	}

	.mobile-header-info-grid {
		--mobile-header-info-grid-gap: 0.625rem;
	}

	.mobile-header-info-card {
		min-height: 8.25rem;
		padding: 0.75rem 0.55rem;
		border-radius: 0.75rem;
	}

	.mobile-header-info-icon {
		width: 2.5rem;
		height: 2.5rem;
		margin-bottom: 0.55rem;
		font-size: 1.35rem;
	}

	.mobile-header-info-label {
		font-size: 0.62rem;
		letter-spacing: 0.1em;
	}

	.mobile-header-info-value {
		font-size: clamp(0.74rem, 3.45vw, 0.88rem);
	}
}

@media (max-width: 21.25rem) {
	.site-header .main-header-inner {
		gap: 0.25rem;
	}

	.site-header .brand-panel .site-logo-image {
		max-width: 4.5rem;
		max-height: 2.65rem;
	}

	.mobile-header-info-toggle {
		width: 2.7rem;
		height: 2.25rem;
		min-height: 2.25rem;
		padding: 0 0.3rem;
	}

	.site-header .header-actions {
		gap: 0.25rem;
	}

	.site-header .header-actions .theme-toggle,
	.site-header .header-actions .menu-toggle {
		width: 2.25rem;
		height: 2.25rem;
		min-height: 2.25rem;
	}

	.site-header .header-actions .polylang-language-switcher {
		height: 2.25rem;
		min-height: 2.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mobile-header-info-toggle,
	.mobile-header-info-toggle-chevron,
	.mobile-header-info-panel,
	.mobile-header-info-cta,
	.mobile-header-info-cta i {
		transition: none;
	}
}

/* ========================================================================== 
   Configurable footer redesign
   ========================================================================== */
.site-footer {
    --footer-background: linear-gradient(145deg, #edf2ef 0%, #f8f7f3 100%);
    --footer-surface: rgba(255, 255, 255, .5);
    --footer-text: var(--navy-950);
    --footer-muted: #566873;
    --footer-accent: var(--sage-700);
    --footer-accent-strong: var(--sage-600);
    --footer-line: rgba(23, 49, 71, .15);
    --footer-icon-background: rgba(102, 127, 105, .12);
    --footer-hover-background: rgba(102, 127, 105, .08);
    position: relative;
    overflow: hidden;
    background: var(--footer-background);
    color: var(--footer-text);
    border-top: 1px solid rgba(102, 127, 105, .36);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 15%, rgba(102, 127, 105, .10), transparent 30%),
        linear-gradient(120deg, transparent 0 72%, rgba(32, 75, 101, .04) 72% 100%);
    pointer-events: none;
}

html[data-theme="dark"] .site-footer {
    --footer-background: linear-gradient(145deg, #0b0e0f 0%, #111516 58%, #0a0c0d 100%);
    --footer-surface: rgba(255, 255, 255, .025);
    --footer-text: #f7f3ed;
    --footer-muted: #c2bab1;
    --footer-accent: var(--copper-500);
    --footer-accent-strong: var(--copper-600);
    --footer-line: rgba(210, 139, 86, .24);
    --footer-icon-background: rgba(194, 122, 71, .12);
    --footer-hover-background: rgba(194, 122, 71, .09);
    background: var(--footer-background);
    color: var(--footer-text);
    border-top-color: rgba(194, 122, 71, .34);
}

html[data-theme="dark"] .site-footer::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(194, 122, 71, .09), transparent 31%),
        linear-gradient(120deg, transparent 0 72%, rgba(194, 122, 71, .025) 72% 100%);
}

.footer-top,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    align-items: start;
    gap: clamp(38px, 5vw, 76px);
    padding: clamp(54px, 7vw, 82px) 0 clamp(50px, 6vw, 72px);
}

.footer-main.footer-columns-3 {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .82fr) minmax(0, 1fr);
}

/*
 * Keep each footer column's intended width when its position is changed.
 * These rules apply only to the three-column desktop layout; responsive
 * tablet and mobile layouts continue to use their existing grid rules.
 */
@media (min-width: 921px) {
    .footer-main.footer-columns-3.footer-order-brand-contact-quick_links {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .82fr);
    }

    .footer-main.footer-columns-3.footer-order-quick_links-brand-contact {
        grid-template-columns: minmax(0, .82fr) minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .footer-main.footer-columns-3.footer-order-quick_links-contact-brand {
        grid-template-columns: minmax(0, .82fr) minmax(0, 1fr) minmax(0, 1.15fr);
    }

    .footer-main.footer-columns-3.footer-order-contact-brand-quick_links {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .82fr);
    }

    .footer-main.footer-columns-3.footer-order-contact-quick_links-brand {
        grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) minmax(0, 1.15fr);
    }
}

.footer-main.footer-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-main.footer-columns-1 {
    grid-template-columns: minmax(0, 760px);
}

.footer-main > div + div,
.footer-main > section + section,
.footer-main > .footer-column:last-child {
    padding-left: 0;
    border-left: 0;
}

.footer-column {
    min-width: 0;
}

.footer-column .footer-heading,
html[data-theme="dark"] .footer-column .footer-heading {
    margin: 0 0 24px;
    color: var(--footer-text);
    font-family: var(--font-sans);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.02em;
    text-transform: none;
}

.footer-heading::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 15px;
    background: linear-gradient(
        to right,
        var(--footer-accent-strong) 0 70px,
        var(--footer-line) 70px 100%
    );
}

.footer-brand .footer-heading,
#footer-brand-heading {
    width: 100%;
    text-align: center;
}

.footer-brand-excerpt {
    max-width: 44ch;
    margin: 0;
    color: var(--footer-muted);
    font-size: 15px;
    line-height: 1.78;
    text-align: center;
}

.footer-logo-wrap {
    margin-top: 26px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.footer-logo.site-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(245px, 100%);
    max-height: 92px;
    object-fit: contain;
    object-position: left center;
}

.footer-site-title {
    display: inline-block;
    color: var(--footer-text);
    font-size: 1.45rem;
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin: 0;
}

.site-footer .footer-links a,
.site-footer .footer-links > li > span {
    color: var(--footer-text);
}

.footer-quick-links .footer-links a {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    gap: 10px;
    padding: 7px 10px;
    margin-left: -10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 620;
    line-height: 1.4;
    transition:
        color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.footer-quick-links .footer-links a:hover,
.footer-quick-links .footer-links a:focus-visible {
    color: var(--footer-accent);
    background: var(--footer-hover-background);
    transform: translateX(3px);
}

.footer-quick-links #footer-navigation-menu a > .aed-menu-icon {
    color: var(--footer-accent);
    opacity: .95;
}

.footer-menu-icons-hidden #footer-navigation-menu a > .aed-menu-icon {
    display: none;
}

.footer-contact-list {
    gap: 8px;
}

.footer-contact-item {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px !important;
    width: 100%;
    min-height: 44px;
    padding: 5px 7px;
    margin-left: -7px;
    border-radius: 10px;
    color: var(--footer-text) !important;
    transition:
        color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.footer-contact-item[href]:hover,
.footer-contact-item[href]:focus-visible {
    color: var(--footer-accent) !important;
    background: var(--footer-hover-background);
    transform: translateX(3px);
}

.footer-contact-item-no-icon {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
    margin-left: 0;
}

.footer-contact-icon {
    display: inline-grid !important;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--footer-line);
    border-radius: 50%;
    background: var(--footer-icon-background);
    color: var(--footer-accent);
    flex: none;
}

.footer-contact-icon i,
html[data-theme="dark"] .footer-contact-icon i {
    width: auto;
    color: inherit;
    font-size: 14px;
}

.footer-contact-text {
    display: block !important;
    min-width: 0;
    color: inherit !important;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.footer-bottom {
    border-top: 1px solid var(--footer-line);
    background: rgba(16, 43, 60, .035);
}

html[data-theme="dark"] .footer-bottom {
    background: rgba(0, 0, 0, .16);
    border-top-color: var(--footer-line);
}

.footer-bottom-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    padding-block: 13px;
    color: var(--footer-muted);
    font-size: 13px;
}

.footer-copyright {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.footer-copyright-name {
    color: var(--footer-text);
    font-weight: 700;
}

.legal-links {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.legal-links a {
    position: relative;
    color: var(--footer-muted);
    font-weight: 600;
    transition: color .2s ease;
}

.legal-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -3px;
    height: 1px;
    background: var(--footer-accent);
    transition: right .2s ease;
}

.site-footer .legal-links a:hover,
.site-footer .legal-links a:focus-visible {
    color: var(--footer-accent);
}

.legal-links a:hover::after,
.legal-links a:focus-visible::after {
    right: 0;
}

.site-footer a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 3px;
}

/* A small inset below the headings when footer columns sit side by side. */
@media (min-width: 621px) {
    .footer-quick-links .footer-links,
    .footer-contact-list {
        padding-inline-start: 12px;
    }
}

@media (max-width: 920px) {
    .footer-main.footer-columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main.footer-columns-3 .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-main.footer-columns-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main > .footer-column:last-child {
        padding-left: 0;
        border-left: 0;
    }

    .footer-brand-excerpt {
        max-width: 62ch;
    }

    .footer-bottom-inner {
        justify-content: space-between;
    }

    .legal-links {
        position: static;
        right: auto;
    }
}

@media (max-width: 620px) {
    .footer-main,
    .footer-main.footer-columns-3,
    .footer-main.footer-columns-2,
    .footer-main.footer-columns-1 {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding: 46px 0 44px;
    }

    .footer-main.footer-columns-3 .footer-brand {
        grid-column: auto;
    }

    .footer-column .footer-heading {
        margin-bottom: 20px;
        font-size: 21px;
    }

    .footer-heading::after {
        margin-top: 12px;
        background: linear-gradient(
            to right,
            var(--footer-accent-strong) 0 58px,
            var(--footer-line) 58px 100%
        );
    }

    .footer-logo.site-logo-image {
        width: auto;
        max-width: min(220px, 100%);
        max-height: 82px;
    }

    .footer-bottom-inner {
        min-height: 0;
        display: grid;
        justify-items: start;
        gap: 8px;
        padding: 18px 0;
    }

    .legal-links {
        justify-content: flex-start;
        gap: 7px 18px;
    }
}

/* ========================================================================== 
   Footer alignment refinement — centred mobile sections and legal row
   ========================================================================== */

/*
 * Keep the copyright visually centred on desktop/tablet while the legal
 * navigation remains aligned to the right edge of the footer shell.
 */
.footer-bottom-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

.footer-copyright {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    text-align: center;
}

.legal-links {
    grid-column: 3;
    justify-self: end;
}

/* Vertical divider between the legal links. */
.legal-links a + a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -11px;
    width: 1px;
    height: 1em;
    background: var(--footer-line);
    transform: translateY(-50%);
    pointer-events: none;
}

@media (max-width: 620px) {
    /*
     * Present every enabled footer column as a centred mobile section.
     * The full-width rules separate sections, while the short accent below
     * each heading preserves the architectural visual language.
     */
    .footer-main,
    .footer-main.footer-columns-3,
    .footer-main.footer-columns-2,
    .footer-main.footer-columns-1 {
        gap: 0;
        padding: 38px 0 40px;
    }

    .footer-column {
        position: relative;
        width: 100%;
        padding: 31px 0 35px;
        text-align: center;
    }

    .footer-column:first-child {
        padding-top: 0;
    }

    .footer-column:last-child {
        padding-bottom: 0;
    }

    .footer-column + .footer-column {
        border-top: 1px solid var(--footer-line);
    }

    .footer-column .footer-heading,
    html[data-theme="light"] .footer-column .footer-heading,
    html[data-theme="dark"] .footer-column .footer-heading {
        margin: 0 0 20px;
        padding: 0;
        font-size: 21px;
        font-weight: 750;
        line-height: 1.18;
        letter-spacing: -.02em;
        text-align: center;
    }

    .footer-heading::after {
        width: min(240px, 72vw);
        height: 3px;
        margin: 14px auto 0;
        background: linear-gradient(
            to right,
            transparent 0 calc(50% - 48px),
            var(--footer-accent-strong) calc(50% - 48px) calc(50% + 48px),
            transparent calc(50% + 48px) 100%
        );
    }

    .footer-brand-excerpt {
        max-width: 48ch;
        margin-inline: auto;
        text-align: center;
    }

    .footer-logo-wrap {
        display: flex;
        justify-content: center;
    }

    .footer-logo-link {
        justify-content: center;
    }

    .footer-logo.site-logo-image {
        object-position: center;
    }

    /* Only the stacked footer centers its lists as compact blocks.
     * Side-by-side tablet/desktop columns retain their original alignment. */
    .footer-quick-links .footer-links,
    .footer-contact-list {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        width: fit-content;
        max-width: 100%;
        gap: 6px;
        margin-inline: auto;
        text-align: left;
    }

    .footer-quick-links .footer-links {
        max-width: min(100%, 20rem);
    }

    .footer-quick-links .footer-links a {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        text-align: left;
        overflow-wrap: anywhere;
        transition: color .2s ease, background-color .2s ease;
    }

    .footer-quick-links #footer-navigation-menu a > .aed-menu-icon {
        flex: 0 0 1.125rem;
        width: 1.125rem;
        text-align: center;
    }

    /* Keep custom links without icons aligned with the other link labels. */
    .footer-quick-links:not(.footer-menu-icons-hidden) #footer-navigation-menu a:not(:has(> .aed-menu-icon))::before {
        content: "";
        flex: 0 0 1.125rem;
    }

    .footer-contact-list {
        max-width: min(100%, 26rem);
    }

    .footer-contact-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px !important;
        min-width: 0;
        margin: 0;
        text-align: left;
        transition: color .2s ease, background-color .2s ease;
    }

    .footer-contact-item-no-icon {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 7px;
    }

    .footer-quick-links .footer-links a:hover,
    .footer-quick-links .footer-links a:focus-visible,
    .footer-contact-item[href]:hover,
    .footer-contact-item[href]:focus-visible {
        transform: none;
    }

    /*
     * Stack the copyright and legal navigation in the same centred order as
     * the supplied reference, retaining the divider between legal links.
     */
    .footer-bottom-inner {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 17px 0 19px;
        text-align: center;
    }

    .footer-copyright {
        justify-content: center;
        width: 100%;
    }

    .legal-links {
        justify-content: center;
        justify-self: auto;
        width: 100%;
        gap: 7px 22px;
    }
}

/* ========================================================================== 
   Mobile footer brand excerpt centring correction
   ========================================================================== */
@media (max-width: 620px) {
    /*
     * This selector intentionally outranks the legacy `.footer-brand p` rule,
     * whose left/right zero margins prevented the excerpt block from centring.
     */
    .footer-brand p.footer-brand-excerpt {
        width: min(100%, 48ch);
        max-width: 48ch;
        margin: 0 auto;
        text-align: center;
    }
}

/* ========================================================================== 
   Desktop footer brand logo alignment and sizing
   ========================================================================== */
@media (min-width: 921px) {
    .footer-brand .footer-logo-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-brand .footer-logo-link {
        display: inline-flex;
        justify-content: center;
        max-width: 100%;
    }

    .footer-brand .footer-logo.site-logo-image {
        width: auto;
        height: auto;
        max-width: min(285px, 100%);
        max-height: 108px;
        margin-inline: auto;
        object-position: center;
    }
}

/* ========================================================================== 
   Light-theme footer colour refinement
   ========================================================================== */
html[data-theme="light"] .site-footer {
    --footer-background: var(--header-background);
    --footer-surface: rgba(255, 255, 255, .045);
    --footer-text: #f7fafb;
    --footer-muted: #d2dde2;
    --footer-accent: #b8cbb7;
    --footer-accent-strong: #9eb59d;
    --footer-line: rgba(255, 255, 255, .18);
    --footer-icon-background: rgba(255, 255, 255, .075);
    --footer-hover-background: rgba(255, 255, 255, .08);
    background: var(--header-background);
    color: var(--footer-text);
    border-top-color: var(--header-border-color);
}

/* Match the light-theme top footer to the desktop utility-header colour. */
html[data-theme="light"] .footer-top {
    background: var(--header-background);
}

html[data-theme="light"] .site-footer::before {
    background:
        radial-gradient(circle at 10% 12%, rgba(158, 181, 157, .12), transparent 31%),
        linear-gradient(120deg, transparent 0 72%, rgba(255, 255, 255, .025) 72% 100%);
}

html[data-theme="light"] .footer-heading,
html[data-theme="light"] .footer-site-title,
html[data-theme="light"] .footer-copyright-name,
html[data-theme="light"] .site-footer .footer-links a,
html[data-theme="light"] .site-footer .footer-links > li > span,
html[data-theme="light"] .footer-contact-item,
html[data-theme="light"] .footer-contact-text {
    color: var(--footer-text) !important;
}

html[data-theme="light"] .footer-brand-excerpt,
html[data-theme="light"] .footer-bottom-inner,
html[data-theme="light"] .legal-links a {
    color: var(--footer-muted);
}

html[data-theme="light"] .footer-quick-links #footer-navigation-menu a > .aed-menu-icon,
html[data-theme="light"] .footer-contact-icon {
    color: var(--footer-accent);
}

html[data-theme="light"] .footer-contact-icon {
    border-color: rgba(184, 203, 183, .34);
    background: var(--footer-icon-background);
}

html[data-theme="light"] .footer-quick-links .footer-links a:hover,
html[data-theme="light"] .footer-quick-links .footer-links a:focus-visible,
html[data-theme="light"] .footer-contact-item[href]:hover,
html[data-theme="light"] .footer-contact-item[href]:focus-visible,
html[data-theme="light"] .site-footer .legal-links a:hover,
html[data-theme="light"] .site-footer .legal-links a:focus-visible {
    color: #ffffff !important;
}

html[data-theme="light"] .footer-quick-links .footer-links a:hover,
html[data-theme="light"] .footer-quick-links .footer-links a:focus-visible,
html[data-theme="light"] .footer-contact-item[href]:hover,
html[data-theme="light"] .footer-contact-item[href]:focus-visible {
    background: var(--footer-hover-background);
}

/* Use the dark-theme header colour for the light-theme legal/copyright row. */
html[data-theme="light"] .footer-bottom {
    background: #181a1a;
    border-top-color: rgba(158, 181, 157, .28);
}

html[data-theme="light"] .footer-bottom-inner {
    color: #c6cecf;
}

html[data-theme="light"] .footer-bottom .footer-copyright-name {
    color: #c6cecf !important;
}

html[data-theme="dark"] .footer-bottom .footer-copyright-name {
    color: #c2bab1 !important;
}

html[data-theme="light"] .footer-bottom .legal-links a {
    color: #c6cecf;
}

html[data-theme="light"] .footer-bottom .legal-links a:hover,
html[data-theme="light"] .footer-bottom .legal-links a:focus-visible {
    color: var(--footer-accent) !important;
}

html[data-theme="light"] .footer-bottom .legal-links a + a::before {
    background: rgba(255, 255, 255, .24);
}

/* ========================================================================== 
   Subtle architectural footer outline
   Updated so the light asset stays visible on navy backgrounds.
   ========================================================================== */

.footer-top {
    position: relative;
    overflow: hidden;
}

.footer-top::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("assets/images/decor/footer-building-outline-light.svg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;

    /*
     * Chrome needs a stronger value than Firefox, but .66 makes the
     * anti-aliased strokes appear too heavy. This reduced value is half of .38 and keeps the
     * outline lighter in Chrome light mode.
     */
    opacity: .12;
}

html[data-theme="dark"] .footer-top::after {
    background-image: url("assets/images/decor/footer-building-outline-dark.svg");
    opacity: .12;
}

/*
 * Firefox-specific correction.
 * @-moz-document is evaluated by Firefox only. Do not use an @supports
 * test with -moz-appearance here because Chromium may also accept it.
 */
@-moz-document url-prefix() {
    .footer-top::after {
        opacity: .12;
    }
}

.footer-main {
    position: relative;
    z-index: 1;
}

/* ========================================================================== 
   Mobile main-menu toggle interaction states
   ========================================================================== */

@media (max-width: 57.5rem) {
    .site-header .header-actions button.menu-toggle {
        transition:
            background-color .2s ease,
            border-color .2s ease,
            box-shadow .2s ease,
            color .2s ease,
            transform .2s ease;
    }

    /* Light theme: make hover and keyboard focus clearly visible. */
    html[data-theme="light"] .site-header .header-actions button.menu-toggle:not([aria-expanded="true"]) {
        border-color: rgba(16, 43, 60, .78);
        background: var(--header-background);
        box-shadow:
            0 3px 10px rgba(16, 43, 60, .18),
            inset 0 1px 0 rgba(255, 255, 255, .1);
        color: #ffffff;
    }

    html[data-theme="light"] .site-header .header-actions button.menu-toggle:not([aria-expanded="true"]):hover,
    html[data-theme="light"] .site-header .header-actions button.menu-toggle:not([aria-expanded="true"]):focus-visible {
        border-color: var(--sage-700);
        background: linear-gradient(135deg, var(--sage-700), var(--sage-600));
        box-shadow:
            0 0 0 1px rgba(102, 127, 105, .16),
            0 8px 20px rgba(16, 43, 60, .28),
            inset 0 1px 0 rgba(255, 255, 255, .18);
        color: #ffffff;
        transform: translateY(-1px);
    }

    html[data-theme="light"] .site-header .header-actions button.menu-toggle:focus-visible {
        outline: 3px solid rgba(102, 127, 105, .42);
        outline-offset: 2px;
    }

    html[data-theme="light"] .site-header .header-actions button.menu-toggle[aria-expanded="true"] {
        border-color: var(--sage-700);
        background: linear-gradient(135deg, var(--sage-700), var(--sage-600));
        box-shadow:
            0 8px 22px rgba(16, 43, 60, .3),
            inset 0 1px 0 rgba(255, 255, 255, .18);
        color: #ffffff;
    }

    /* Dark theme: keep the closed state neutral instead of pre-highlighted. */
    html[data-theme="dark"] .site-header .header-actions button.menu-toggle:not([aria-expanded="true"]) {
        border-color: rgba(255, 255, 255, .18);
        background: #181a1a;
        box-shadow:
            0 3px 10px rgba(0, 0, 0, .26),
            inset 0 1px 0 rgba(255, 255, 255, .045);
        color: #f3eee8;
    }

    html[data-theme="dark"] .site-header .header-actions button.menu-toggle i {
        filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45));
    }

    html[data-theme="dark"] .site-header .header-actions button.menu-toggle:not([aria-expanded="true"]):hover,
    html[data-theme="dark"] .site-header .header-actions button.menu-toggle:not([aria-expanded="true"]):focus-visible {
        border-color: var(--copper-500);
        background: linear-gradient(
            145deg,
            rgba(209, 140, 88, .2),
            rgba(167, 94, 49, .12)
        );
        box-shadow:
            0 0 0 1px rgba(209, 140, 88, .12),
            0 8px 20px rgba(0, 0, 0, .4),
            inset 0 1px 0 rgba(255, 255, 255, .08);
        color: #f2ad79;
        transform: translateY(-1px);
    }

    html[data-theme="dark"] .site-header .header-actions button.menu-toggle:focus-visible {
        outline: 3px solid rgba(209, 140, 88, .42);
        outline-offset: 2px;
    }

    .site-header .header-actions button.menu-toggle:active {
        transform: translateY(0) scale(.97);
    }

    html[data-theme="dark"] .site-header .header-actions button.menu-toggle[aria-expanded="true"] {
        border-color: var(--copper-500);
        background: linear-gradient(135deg, var(--copper-500), var(--copper-700));
        box-shadow:
            0 8px 22px rgba(0, 0, 0, .46),
            inset 0 1px 0 rgba(255, 255, 255, .14);
        color: #ffffff;
    }
}

/* --------------------------------------------------------------------------
 * Separate mobile parent links from submenu toggle buttons
 * -------------------------------------------------------------------------- */
.submenu-toggle {
    display: none;
}

@media (max-width: 920px) {
    .primary-navigation .menu-item-has-children {
        position: relative;
    }

    .primary-navigation .menu-item-has-children > a {
        padding-right: 60px;
    }

    /* The desktop chevron is part of the link; mobile uses a real button. */
    .primary-navigation .aed-menu > .menu-item-has-children > a > .aed-menu-chevron {
        display: none;
    }

    .primary-navigation .submenu-toggle {
        position: absolute;
        top: 5px;
        right: 6px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 42px;
        padding: 0;
        border: 0;
        border-left: 1px solid var(--line);
        border-radius: 8px;
        background: transparent;
        color: var(--ink);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .primary-navigation .submenu-toggle:hover,
    .primary-navigation .submenu-toggle:focus-visible,
    .primary-navigation .submenu-toggle[aria-expanded="true"] {
        background: var(--sage-100);
        color: var(--sage-700);
    }

    html[data-theme="dark"] .primary-navigation .submenu-toggle:hover,
    html[data-theme="dark"] .primary-navigation .submenu-toggle:focus-visible,
    html[data-theme="dark"] .primary-navigation .submenu-toggle[aria-expanded="true"] {
        background: rgba(194, 122, 71, .14);
        color: var(--copper-500);
    }

    .primary-navigation .submenu-toggle:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: -3px;
    }

    .primary-navigation .sub-menu .submenu-toggle {
        top: 1px;
        height: 38px;
    }

    .primary-navigation .submenu-toggle i {
        font-size: 12px;
        transition: transform .2s ease;
    }

    .primary-navigation .submenu-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }
}

/* ========================================================================== 
   Main-menu current submenu states and keyboard order refinements
   ========================================================================== */

/*
 * Submenu links use the same flex-based icon alignment as top-level links.
 * This adds comfortable separation for either pseudo-element icons or icons
 * inserted directly inside the anchor by a menu/icon plugin.
 */
.primary-navigation .sub-menu li > a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.primary-navigation .sub-menu li > a > .aed-menu-icon,
.primary-navigation .sub-menu li > a > i,
.primary-navigation .sub-menu li > a > svg {
    flex: 0 0 1.05rem;
    width: 1.05rem;
    margin: 0;
    text-align: center;
}

/*
 * WordPress adds these classes to the active submenu item and to any nested
 * submenu ancestor. Styling the list item also keeps Font Awesome icons that
 * are generated on the <li> inside the active background.
 */
.primary-navigation .sub-menu .current-menu-item,
.primary-navigation .sub-menu .current-menu-ancestor,
.primary-navigation .sub-menu .current-menu-parent,
.primary-navigation .sub-menu .current_page_item,
.primary-navigation .sub-menu .current_page_parent,
.primary-navigation .sub-menu .current_page_ancestor {
    border-radius: 8px;
    background: var(--sage-100);
    box-shadow: inset 3px 0 0 var(--sage-600);
}

.primary-navigation .sub-menu .current-menu-item > a,
.primary-navigation .sub-menu .current-menu-ancestor > a,
.primary-navigation .sub-menu .current-menu-parent > a,
.primary-navigation .sub-menu .current_page_item > a,
.primary-navigation .sub-menu .current_page_parent > a,
.primary-navigation .sub-menu .current_page_ancestor > a,
.primary-navigation .sub-menu a[aria-current="page"] {
    background: transparent;
    color: var(--navy-950);
    font-weight: 750;
}

html[data-theme="dark"] .primary-navigation .sub-menu .current-menu-item,
html[data-theme="dark"] .primary-navigation .sub-menu .current-menu-ancestor,
html[data-theme="dark"] .primary-navigation .sub-menu .current-menu-parent,
html[data-theme="dark"] .primary-navigation .sub-menu .current_page_item,
html[data-theme="dark"] .primary-navigation .sub-menu .current_page_parent,
html[data-theme="dark"] .primary-navigation .sub-menu .current_page_ancestor {
    background: rgba(194, 122, 71, 0.16);
    box-shadow: inset 3px 0 0 var(--copper-600);
}

html[data-theme="dark"] .primary-navigation .sub-menu .current-menu-item > a,
html[data-theme="dark"] .primary-navigation .sub-menu .current-menu-ancestor > a,
html[data-theme="dark"] .primary-navigation .sub-menu .current-menu-parent > a,
html[data-theme="dark"] .primary-navigation .sub-menu .current_page_item > a,
html[data-theme="dark"] .primary-navigation .sub-menu .current_page_parent > a,
html[data-theme="dark"] .primary-navigation .sub-menu .current_page_ancestor > a,
html[data-theme="dark"] .primary-navigation .sub-menu a[aria-current="page"] {
    background: transparent;
    color: var(--copper-500);
}

@media (max-width: 920px) {
    /*
     * The mobile header controls follow their visual order in the markup:
     * theme, language, information and main-menu toggle. The navigation is
     * rendered after those controls and is removed from the tab order while
     * collapsed by theme.js.
     */

    /*
     * Give both manually expanded parents and the current page's ancestor a
     * clear active state. This remains visible even before JavaScript expands
     * the current submenu branch.
     */
    .primary-navigation .menu-item-has-children.current-menu-ancestor > a,
.primary-navigation .menu-item-has-children.current-menu-parent > a,
.primary-navigation .menu-item-has-children.current_page_ancestor > a,
.primary-navigation .menu-item-has-children.current_page_parent > a {
        border-radius: 8px;
        box-shadow: inset 3px 0 0 var(--sage-600);
        color: var(--sage-700);
        font-weight: 750;
    }

    html[data-theme="dark"] .primary-navigation .menu-item-has-children.current-menu-ancestor > a,
html[data-theme="dark"] .primary-navigation .menu-item-has-children.current-menu-parent > a,
html[data-theme="dark"] .primary-navigation .menu-item-has-children.current_page_ancestor > a,
html[data-theme="dark"] .primary-navigation .menu-item-has-children.current_page_parent > a {
        box-shadow: inset 3px 0 0 var(--copper-600);
        color: var(--copper-500);
    }

    /* Match the chevron button to the active current-page branch. */
    .primary-navigation .menu-item-has-children.current-menu-ancestor > .submenu-toggle,
    .primary-navigation .menu-item-has-children.current-menu-parent > .submenu-toggle,
    .primary-navigation .menu-item-has-children.current_page_ancestor > .submenu-toggle,
    .primary-navigation .menu-item-has-children.current_page_parent > .submenu-toggle {
        background: var(--sage-100);
        color: var(--sage-700);
    }

    html[data-theme="dark"] .primary-navigation .menu-item-has-children.current-menu-ancestor > .submenu-toggle,
    html[data-theme="dark"] .primary-navigation .menu-item-has-children.current-menu-parent > .submenu-toggle,
    html[data-theme="dark"] .primary-navigation .menu-item-has-children.current_page_ancestor > .submenu-toggle,
    html[data-theme="dark"] .primary-navigation .menu-item-has-children.current_page_parent > .submenu-toggle {
        background: rgba(194, 122, 71, 0.14);
        color: var(--copper-500);
    }

    /* Keep current submenu items visually distinct inside the indented list. */
    .primary-navigation .sub-menu .current-menu-item,
    .primary-navigation .sub-menu .current-menu-ancestor,
    .primary-navigation .sub-menu .current-menu-parent,
    .primary-navigation .sub-menu .current_page_item,
    .primary-navigation .sub-menu .current_page_parent,
    .primary-navigation .sub-menu .current_page_ancestor {
        margin-block: 3px;
    }
}

/* ========================================================================== 
   Unified mobile header-control interaction states
   ========================================================================== */

@media (max-width: 57.5rem) {
    /*
     * Match the theme and language controls to the information toggle's
     * sage/copper hover and keyboard-focus treatment. The select keeps its
     * native keyboard behaviour while the visible focus ring is drawn on the
     * complete language control rather than only around its text field.
     */
    .site-header .header-actions .theme-toggle,
    .site-header .header-actions .polylang-language-switcher {
        box-shadow: none;
        transition:
            background-color .2s ease,
            border-color .2s ease,
            box-shadow .2s ease,
            color .2s ease,
            transform .2s ease;
    }

    .site-header .header-actions .theme-toggle:hover,
    .site-header .header-actions .theme-toggle:focus-visible,
    .site-header .header-actions .polylang-language-switcher:hover,
    .site-header .header-actions .polylang-language-switcher:focus-within {
        border-color: var(--mobile-info-accent);
        background: var(--mobile-info-button-active);
        color: var(--mobile-info-accent);
        transform: translateY(-.0625rem);
    }

    .site-header .header-actions .theme-toggle:focus-visible,
    .site-header .header-actions .polylang-language-switcher:focus-within {
        outline: 3px solid rgba(102, 127, 105, .38);
        outline-offset: 2px;
    }

    html[data-theme="dark"] .site-header .header-actions .theme-toggle:focus-visible,
    html[data-theme="dark"] .site-header .header-actions .polylang-language-switcher:focus-within {
        outline-color: rgba(209, 140, 88, .42);
    }

    .site-header .header-actions .theme-toggle:active,
    .site-header .header-actions .polylang-language-switcher:active {
        transform: translateY(0) scale(.98);
    }

    .site-header .header-actions .polylang-language-switcher:hover > i,
.site-header .header-actions .polylang-language-switcher:hover::after,
    .site-header .header-actions .polylang-language-switcher:focus-within > i,
    .site-header .header-actions .polylang-language-switcher:focus-within::after {
        color: var(--mobile-info-accent);
        -webkit-text-fill-color: var(--mobile-info-accent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .header-actions .theme-toggle,
    .site-header .header-actions .polylang-language-switcher {
        transition: none;
    }
}

/* ========================================================================== 
   Polylang control dimensions and interaction
   ========================================================================== */

/*
 * Shared dimensions and interaction styling for the language control.
 * The native details/summary rules below provide its link-based dropdown.
 */
.site-header .header-actions .polylang-language-switcher {
    position: relative;
    isolation: isolate;
    width: 5.25rem;
    min-width: 5.25rem;
    padding: 0;
    overflow: visible;
    cursor: pointer;
}

.site-header .header-actions .polylang-language-switcher > i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.site-header .header-actions .polylang-language-switcher::after {
    z-index: 4;
    pointer-events: none;
}

/* Desktop button surface, hover and full-control keyboard focus. */
@media (min-width: 57.5625rem) {
    .site-header .header-actions .polylang-language-switcher {
        height: 2.375rem;
        min-height: 2.375rem;
        margin-left: 0;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 0.625rem;
        background: rgba(255, 255, 255, 0.055);
        color: #ffffff;
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
    }

    .site-header .header-actions .polylang-language-switcher:hover,
    .site-header .header-actions .polylang-language-switcher:focus-within {
        border-color: rgba(168, 197, 172, 0.95);
        background: rgba(102, 127, 105, 0.32);
        box-shadow: 0 0 0 3px rgba(120, 145, 123, 0.25);
        transform: translateY(-0.0625rem);
    }

    .site-header .header-actions .polylang-language-switcher:focus-within {
        outline: 2px solid rgba(218, 232, 220, 0.95);
        outline-offset: 2px;
    }

    .site-header .header-actions .polylang-language-switcher:active {
        transform: translateY(0) scale(0.98);
    }

    html[data-theme="dark"] .site-header .header-actions .polylang-language-switcher:hover,
    html[data-theme="dark"] .site-header .header-actions .polylang-language-switcher:focus-within {
        border-color: var(--copper-500);
        background: rgba(194, 122, 71, 0.18);
        box-shadow: 0 0 0 3px rgba(209, 140, 88, 0.22);
    }

    html[data-theme="dark"] .site-header .header-actions .polylang-language-switcher:focus-within {
        outline-color: rgba(209, 140, 88, 0.92);
    }

    /* Override the earlier desktop contrast rule during interaction. */
    html[data-theme="light"] .site-header .header-actions .polylang-language-switcher:hover > i,
html[data-theme="light"] .site-header .header-actions .polylang-language-switcher:hover::after,
    html[data-theme="light"] .site-header .header-actions .polylang-language-switcher:focus-within > i,
    html[data-theme="light"] .site-header .header-actions .polylang-language-switcher:focus-within::after {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html[data-theme="dark"] .site-header .header-actions .polylang-language-switcher:hover > i,
html[data-theme="dark"] .site-header .header-actions .polylang-language-switcher:hover::after,
    html[data-theme="dark"] .site-header .header-actions .polylang-language-switcher:focus-within > i,
    html[data-theme="dark"] .site-header .header-actions .polylang-language-switcher:focus-within::after {
        color: var(--copper-500) !important;
        -webkit-text-fill-color: var(--copper-500) !important;
    }
}

/* Preserve the existing compact mobile proportions while expanding the hit area. */
@media (max-width: 57.5rem) {
    .site-header .header-actions .polylang-language-switcher {
        width: 5.25rem;
        min-width: 5.25rem;
        padding: 0;
    }
}

@media (max-width: 32.5rem) {
    .site-header .header-actions .polylang-language-switcher {
        width: 4.75rem;
        min-width: 4.75rem;
    }

    .site-header .header-actions .polylang-language-switcher > i {
        left: 0.625rem;
    }
}

@media (max-width: 24.375rem) {
    .site-header .header-actions .polylang-language-switcher {
        width: 3.5rem;
        min-width: 3.5rem;
        padding: 0;
    }
}

@media (max-width: 21.25rem) {
    .site-header .header-actions .polylang-language-switcher {
        width: 3rem;
        min-width: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .header-actions .polylang-language-switcher {
        transition: none;
    }
}

/* ========================================================================== 
   Polylang native details language disclosure
   ========================================================================== */

/*
 * The compact header surface remains visually consistent with the previous
 * select control, while details/summary supplies native disclosure behaviour
 * and the language destinations remain ordinary links.
 */
.site-header .header-actions .language-disclosure {
    overflow: visible;
}

.site-header .header-actions .language-disclosure > summary {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    margin: 0;
    padding: 0 1.55rem 0 2.15rem;
    border: 0;
    border-radius: inherit;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
    box-sizing: border-box;
}

.site-header .header-actions .language-disclosure > summary::-webkit-details-marker {
    display: none;
}

.site-header .header-actions .language-disclosure > summary::marker {
    content: "";
}

.site-header .header-actions .language-disclosure > summary > i {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.site-header .header-actions .language-disclosure-current-code {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header .header-actions .language-disclosure[open]::after {
    transform: translateY(-25%) rotate(225deg);
}

.site-header .header-actions .language-disclosure-list {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 1000;
    display: grid;
    gap: 0.15rem;
    width: max-content;
    min-width: 11rem;
    max-width: min(18rem, calc(100vw - 1.5rem));
    max-height: min(24rem, 65vh);
    margin: 0;
    padding: 0.35rem;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 0.625rem;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 0.75rem 2rem rgba(9, 18, 23, 0.22);
    list-style: none;
    text-align: left;
}

.site-header .header-actions .language-disclosure-item {
    margin: 0;
    padding: 0;
}

.site-header .header-actions .language-disclosure-option {
    display: grid;
    grid-template-columns: minmax(2.6rem, auto) minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.45rem;
    color: inherit;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    line-height: 1.25;
    text-decoration: none;
    box-sizing: border-box;
}

.site-header .header-actions a.language-disclosure-option:hover,
.site-header .header-actions a.language-disclosure-option:focus-visible {
    background: rgba(102, 127, 105, 0.16);
    color: var(--sage-700);
    outline: 2px solid var(--sage-700);
    outline-offset: -2px;
}

.site-header .header-actions .language-disclosure-item.is-current .language-disclosure-option {
    background: rgba(102, 127, 105, 0.12);
    color: var(--sage-700);
    font-weight: 750;
}

.site-header .header-actions .language-disclosure-option-code {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header .header-actions .language-disclosure-option-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

html[data-theme="dark"] .site-header .header-actions .language-disclosure-list {
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .site-header .header-actions a.language-disclosure-option:hover,
html[data-theme="dark"] .site-header .header-actions a.language-disclosure-option:focus-visible {
    background: rgba(194, 122, 71, 0.18);
    color: var(--copper-500);
    outline-color: var(--copper-500);
}

html[data-theme="dark"] .site-header .header-actions .language-disclosure-item.is-current .language-disclosure-option {
    background: rgba(194, 122, 71, 0.14);
    color: var(--copper-500);
}

@media (min-width: 57.5625rem) {
    html[data-theme="light"] .site-header .header-actions .language-disclosure > summary {
        color: #ffffff;
    }

    html[data-theme="dark"] .site-header .header-actions .language-disclosure:hover > summary,
    html[data-theme="dark"] .site-header .header-actions .language-disclosure:focus-within > summary {
        color: var(--copper-500);
    }
}

@media (max-width: 57.5rem) {
    .site-header .header-actions .language-disclosure > summary {
        color: var(--ink);
    }
}

@media (max-width: 32.5rem) {
    .site-header .header-actions .language-disclosure > summary {
        padding: 0 1.35rem 0 1.85rem;
        font-size: 0.65rem;
    }

    .site-header .header-actions .language-disclosure > summary > i {
        left: 0.625rem;
    }
}

@media (max-width: 24.375rem) {
    .site-header .header-actions .language-disclosure > summary {
        padding: 0 1.25rem 0 0.55rem;
    }

    .site-header .header-actions .language-disclosure > summary > i {
        display: none;
    }
}

@media (max-width: 21.25rem) {
    .site-header .header-actions .language-disclosure > summary {
        padding-right: 1.05rem;
        padding-left: 0.4rem;
        font-size: 0.6rem;
    }
}

/* ========================================================================== 
   Bottom footer legal alignment — tablet and mobile
   ========================================================================== */
@media (max-width: 920px) {
    .footer-bottom-inner {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 17px 0 19px;
        text-align: center;
    }

    .footer-copyright {
        justify-content: center;
        width: 100%;
    }

    .legal-links {
        position: static;
        right: auto;
        justify-content: center;
        justify-self: auto;
        width: 100%;
        gap: 7px 22px;
    }
}

/* ========================================================================== 
   Footer brand alignment — wrapped tablet layout
   ========================================================================== */
@media (min-width: 621px) and (max-width: 920px) {
    .footer-main.footer-columns-3 .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand .footer-logo-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-brand .footer-logo-link {
        display: inline-flex;
        justify-content: center;
        max-width: 100%;
    }

    .footer-brand .footer-logo.site-logo-image {
        margin-inline: auto;
        object-position: center;
    }

    .footer-brand p.footer-brand-excerpt {
        width: min(100%, 62ch);
        max-width: 62ch;
        margin: 14px auto 0;
        text-align: center;
    }
}

/*
 * Keep the decorative rule centred beneath the globally centred brand heading
 * on tablet and desktop. The existing mobile footer treatment remains intact.
 */
@media (min-width: 621px) {
    .footer-brand .footer-heading::after,
    #footer-brand-heading::after {
        width: min(240px, 100%);
        height: 2px;
        margin: 15px auto 0;
        background: linear-gradient(
            to right,
            var(--footer-line) 0 calc(50% - 48px),
            var(--footer-accent-strong) calc(50% - 48px) calc(50% + 48px),
            var(--footer-line) calc(50% + 48px) 100%
        );
    }
}

/* ========================================================================== 
   Unified desktop theme/language control interaction states
   ========================================================================== */

@media (min-width: 57.5625rem) {
    /*
     * The language control already uses the intended sage/copper interaction
     * treatment. Apply the same hover, keyboard-focus, shadow and movement
     * effects to the theme control without changing either control's desktop
     * dimensions or the existing mobile styling.
     */
    .site-header .header-actions .theme-toggle {
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
    }

    html[data-theme="light"] .site-header .header-actions .theme-toggle:hover,
    html[data-theme="light"] .site-header .header-actions .theme-toggle:focus,
    html[data-theme="light"] .site-header .header-actions .theme-toggle:focus-visible {
        border-color: rgba(168, 197, 172, 0.95);
        background: rgba(102, 127, 105, 0.32);
        box-shadow: 0 0 0 3px rgba(120, 145, 123, 0.25);
        color: #ffffff;
        transform: translateY(-0.0625rem);
    }

    html[data-theme="dark"] .site-header .header-actions .theme-toggle:hover,
    html[data-theme="dark"] .site-header .header-actions .theme-toggle:focus,
    html[data-theme="dark"] .site-header .header-actions .theme-toggle:focus-visible {
        border-color: var(--copper-500);
        background: rgba(194, 122, 71, 0.18);
        box-shadow: 0 0 0 3px rgba(209, 140, 88, 0.22);
        color: var(--copper-500);
        transform: translateY(-0.0625rem);
    }

    html[data-theme="light"] .site-header .header-actions .theme-toggle:focus,
    html[data-theme="light"] .site-header .header-actions .theme-toggle:focus-visible {
        outline: 2px solid rgba(218, 232, 220, 0.95);
        outline-offset: 2px;
    }

    html[data-theme="dark"] .site-header .header-actions .theme-toggle:focus,
    html[data-theme="dark"] .site-header .header-actions .theme-toggle:focus-visible {
        outline: 2px solid rgba(209, 140, 88, 0.92);
        outline-offset: 2px;
    }

    .site-header .header-actions .theme-toggle:active {
        transform: translateY(0) scale(0.98);
    }
}

/* ========================================================================== 
   One-time home-page header entrance
   ========================================================================== */

/*
 * header.php adds this marker before the stylesheet loads only when:
 * 1. WordPress is rendering the front page; and
 * 2. the reveal has not already played during the current browser session.
 *
 * The sequence affects header elements only and uses transforms/opacity so it
 * does not change the header's dimensions or cause content layout shifts.
 */
@keyframes aedHeaderUtilityReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, -1rem, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes aedHeaderElementReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 0.75rem, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes aedHeaderBrandReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }

    /* Approach the final position from above so the clipped desktop panel
       never moves below the utility-bar edge and exposes a temporary seam. */
    78% {
        opacity: 1;
        transform: translate3d(0, -0.15rem, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Animate independently of the desktop controls' translateY(-50%) centering. */
@keyframes aedHeaderActionsReveal {
    from { opacity: 0; translate: 0 0.75rem; }
    to { opacity: 1; translate: 0 0; }
}

html.aed-header-intro-pending .site-header .utility-bar {
    animation: aedHeaderUtilityReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
    will-change: opacity, transform;
}

html.aed-header-intro-pending .site-header .utility-item {
    animation: aedHeaderElementReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
}

html.aed-header-intro-pending .site-header .utility-item:nth-child(1) {
    animation-delay: 0.15s;
}

html.aed-header-intro-pending .site-header .utility-item:nth-child(2) {
    animation-delay: 0.21s;
}

html.aed-header-intro-pending .site-header .utility-item:nth-child(3) {
    animation-delay: 0.27s;
}

html.aed-header-intro-pending .site-header .utility-item:nth-child(4) {
    animation-delay: 0.33s;
}

html.aed-header-intro-pending .site-header .utility-item:nth-child(5) {
    animation-delay: 0.39s;
}

html.aed-header-intro-pending .site-header .utility-item:nth-child(6) {
    animation-delay: 0.45s;
}

html.aed-header-intro-pending .site-header .brand-panel {
    animation: aedHeaderBrandReveal 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
    backface-visibility: hidden;
    will-change: opacity, transform;
}

html.aed-header-intro-pending .site-header .header-actions {
    animation: aedHeaderActionsReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
    will-change: opacity, translate;
}

/* Stagger the visible desktop navigation without animating dropdown entries. */
@media (min-width: 921px) {
    html.aed-header-intro-pending .site-header .aed-menu > .menu-item {
        animation: aedHeaderElementReveal 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
        will-change: opacity, transform;
    }

    html.aed-header-intro-pending .site-header .aed-menu > .menu-item:nth-child(1) {
        animation-delay: 0.34s;
    }

    html.aed-header-intro-pending .site-header .aed-menu > .menu-item:nth-child(2) {
        animation-delay: 0.40s;
    }

    html.aed-header-intro-pending .site-header .aed-menu > .menu-item:nth-child(3) {
        animation-delay: 0.46s;
    }

    html.aed-header-intro-pending .site-header .aed-menu > .menu-item:nth-child(4) {
        animation-delay: 0.52s;
    }

    html.aed-header-intro-pending .site-header .aed-menu > .menu-item:nth-child(5) {
        animation-delay: 0.58s;
    }

    html.aed-header-intro-pending .site-header .aed-menu > .menu-item:nth-child(6) {
        animation-delay: 0.64s;
    }

    html.aed-header-intro-pending .site-header .aed-menu > .menu-item:nth-child(7) {
        animation-delay: 0.70s;
    }

    html.aed-header-intro-pending .site-header .aed-menu > .menu-item:nth-child(8) {
        animation-delay: 0.76s;
    }
}

/* Keep the same concept on mobile, where the utility row and menu are hidden. */
@media (max-width: 920px) {
    html.aed-header-intro-pending .site-header .brand-panel {
        animation-delay: 0.06s;
    }

    html.aed-header-intro-pending .site-header .header-actions {
        animation-delay: 0.24s;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.aed-header-intro-pending .site-header .utility-bar,
    html.aed-header-intro-pending .site-header .utility-item,
    html.aed-header-intro-pending .site-header .brand-panel,
    html.aed-header-intro-pending .site-header .aed-menu > .menu-item {
        animation: none !important;
        opacity: 1;
        transform: none;
        will-change: auto;
    }

    html.aed-header-intro-pending .site-header .header-actions {
        animation: none !important;
        opacity: 1;
        translate: none;
        will-change: auto;
    }
}

/* ==========================================================================
   AED Studio content typography, archive polish and hero refresh
   ========================================================================== */

:root {
    --content-measure: 72ch;
    --content-shell-pad: 42px;
}

.content-shell {
    --content-shell-pad: 42px;
    padding: var(--content-shell-pad);
}

/* --------------------------------------------------------------------------
 * Refined editorial content system
 * -------------------------------------------------------------------------- */
.entry-content {
    font-size: 18px;
    line-height: 1.75;
    color: var(--ink);
}

.entry-content > * {
    margin-top: 0;
    margin-bottom: 0;
}

.entry-content > * + * {
    margin-top: 1.35rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content dl,
.entry-content blockquote,
.entry-content pre,
.entry-content table,
.entry-content hr,
.entry-content details,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > .wp-block-heading,
.entry-content > .wp-block-list,
.entry-content > .wp-block-paragraph,
.entry-content > .wp-block-quote,
.entry-content > .wp-block-pullquote,
.entry-content > .wp-block-table,
.entry-content > .wp-block-preformatted,
.entry-content > .wp-block-code,
.entry-content > .wp-block-details,
.entry-content > .wp-block-separator,
.entry-content > .wp-block-file,
.entry-content > .wp-block-buttons:not(.alignwide):not(.alignfull),
.entry-content > .wp-block-group:not(.alignwide):not(.alignfull):not(.has-background),
.entry-content > .wp-block-columns:not(.alignwide):not(.alignfull) {
    max-width: var(--content-measure);
    margin-left: auto;
    margin-right: auto;
}

.entry-content p,
.entry-content li,
.entry-content dd,
.entry-content figcaption,
.entry-content cite,
.entry-content .wp-block-image figcaption,
.entry-content .wp-block-embed figcaption,
.entry-content .wp-element-caption {
    color: var(--muted);
}

.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > .wp-block-heading {
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 620;

    margin-top: 2.4rem;
}

.entry-content > h2,
.entry-content > .wp-block-heading.has-2-font-size,
.entry-content > .wp-block-heading.is-style-heading-2,
.entry-content h2 {
    font-size: clamp(1.8rem, 2vw, 2.5rem);
}

.entry-content > h3,
.entry-content h3 {
    font-size: clamp(1.45rem, 1.6vw, 2rem);
}

.entry-content > h4,
.entry-content h4 {
    font-size: clamp(1.2rem, 1.35vw, 1.55rem);
}

.entry-content h5,
.entry-content h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.entry-content strong,
.entry-content b {
    color: var(--ink);
    font-weight: 700;
}

.entry-content em,
.entry-content i {
    font-style: italic;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.3rem;
}

.entry-content li + li {
    margin-top: .5rem;
}

.entry-content li > ul,
.entry-content li > ol {
    margin-top: .55rem;
}

.entry-content a:not(.button):not(.wp-block-button__link):not(.text-link) {
    color: var(--sage-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s, text-decoration-color .2s;
}

.entry-content a:not(.button):not(.wp-block-button__link):not(.text-link):hover,
.entry-content a:not(.button):not(.wp-block-button__link):not(.text-link):focus-visible {
    color: var(--navy-800);
    text-decoration-color: currentColor;
}

html[data-theme="dark"] .entry-content a:not(.button):not(.wp-block-button__link):not(.text-link) {
    color: var(--copper-500);
}

html[data-theme="dark"] .entry-content a:not(.button):not(.wp-block-button__link):not(.text-link):hover,
html[data-theme="dark"] .entry-content a:not(.button):not(.wp-block-button__link):not(.text-link):focus-visible {
    color: #efb07d;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
    position: relative;
    padding: 1.35rem 1.45rem 1.35rem 1.6rem;
    border-left: 4px solid var(--sage-600);
    border-radius: 0 16px 16px 0;
    background: rgba(120, 145, 123, .08);
}

.entry-content blockquote p,
.entry-content .wp-block-quote p,
.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
    max-width: none;
}

.entry-content blockquote::before,
.entry-content .wp-block-quote::before {
    content: "“";
    position: absolute;
    left: .9rem;
    top: .15rem;
    font-size: 2.7rem;
    line-height: 1;
    color: rgba(102, 127, 105, .3);
}

html[data-theme="dark"] .entry-content blockquote,
html[data-theme="dark"] .entry-content .wp-block-quote {
    border-left-color: var(--copper-600);
    background: rgba(209, 140, 88, .08);
}

html[data-theme="dark"] .entry-content blockquote::before,
html[data-theme="dark"] .entry-content .wp-block-quote::before {
    color: rgba(209, 140, 88, .28);
}

.entry-content .wp-block-pullquote {
    padding: 2rem 1.6rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
    border: 0;
    background: transparent;
    padding: 0;
}

.entry-content code,
.entry-content kbd,
.entry-content samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .9em;
}

.entry-content :not(pre) > code,
.entry-content kbd,
.entry-content samp {
    padding: .18em .45em;
    border-radius: 8px;
    background: rgba(16, 43, 60, .07);
    color: var(--ink);
}

.entry-content pre,
.entry-content .wp-block-code,
.entry-content .wp-block-preformatted {
    overflow-x: auto;
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    background: #13212d;
    color: #eef3f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.entry-content pre code,
.entry-content .wp-block-code code {
    background: transparent;
    color: inherit;
    padding: 0;
}

html[data-theme="dark"] .entry-content :not(pre) > code,
html[data-theme="dark"] .entry-content kbd,
html[data-theme="dark"] .entry-content samp {
    background: rgba(255, 255, 255, .06);
    color: var(--ink);
}

.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-gallery,
.entry-content .wp-block-embed,
.entry-content .wp-block-media-text,
.entry-content .wp-block-cover,
.entry-content .wp-block-group.has-background,
.entry-content .wp-block-columns,
.entry-content .wp-block-table,
.entry-content .wp-block-separator,
.entry-content .wp-block-buttons,
.entry-content .wp-block-file,
.entry-content .alignwide,
.entry-content .alignfull {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-gallery,
.entry-content .wp-block-embed,
.entry-content .wp-block-cover,
.entry-content .wp-block-table,
.entry-content .wp-block-media-text,
.entry-content .wp-block-group.has-background,
.entry-content .wp-block-columns,
.entry-content .alignwide,
.entry-content .alignfull {
    max-width: 100%;
}

.entry-content img,
.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img,
.entry-content .wp-block-cover,
.entry-content iframe,
.entry-content video {
    border-radius: 16px;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
    margin-top: .85rem;
    font-size: .92rem;
    text-align: center;
}

.entry-content table,
.entry-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: .98rem;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.entry-content table th,
.entry-content table td,
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
    padding: .95rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.entry-content table th,
.entry-content .wp-block-table th {
    color: var(--ink);
    font-weight: 650;
    background: rgba(102, 127, 105, .1);
}

html[data-theme="dark"] .entry-content table,
html[data-theme="dark"] .entry-content .wp-block-table table {
    background: rgba(255, 255, 255, .02);
}

html[data-theme="dark"] .entry-content table th,
html[data-theme="dark"] .entry-content .wp-block-table th {
    background: rgba(209, 140, 88, .12);
}

.entry-content hr,
.entry-content .wp-block-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.entry-content .wp-block-group.has-background,
.entry-content .wp-block-cover,
.entry-content .wp-block-media-text {
    border-radius: 20px;
    overflow: hidden;
}

.entry-content .wp-block-group.has-background {
    padding: 1.5rem;
    border: 1px solid var(--line);
}

.entry-content .wp-block-columns {
    gap: 1.7rem;
}

.entry-content .wp-block-buttons {
    gap: .85rem;
}

.entry-content .wp-block-button__link {
    padding: .9rem 1.25rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    background: var(--sage-700);
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 43, 60, .12);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--ink);
    border-color: var(--sage-700);
    box-shadow: none;
}

html[data-theme="dark"] .entry-content .wp-block-button__link {
    background: linear-gradient(135deg, var(--copper-500), var(--copper-700));
}

html[data-theme="dark"] .entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    color: var(--ink);
    border-color: var(--copper-600);
}

.entry-content .alignleft {
    float: left;
    margin-right: 1.6rem;
    margin-bottom: 1rem;
    max-width: min(48%, 360px);
}

.entry-content .alignright {
    float: right;
    margin-left: 1.6rem;
    margin-bottom: 1rem;
    max-width: min(48%, 360px);
}

.entry-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignwide,
.entry-content .alignfull {
    width: 100%;
}

.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* --------------------------------------------------------------------------
 * Archive / cards / pagination
 * -------------------------------------------------------------------------- */
.archive-header,
.entry-header {
    text-align: center;
    margin-bottom: 2.3rem;
}

.archive-header .eyebrow,
.entry-header .eyebrow {
    margin-bottom: .65rem;
}

.archive-description {
    max-width: 58ch;
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.post-grid {
    gap: 28px;
}

.post-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,244,240,.9));
    box-shadow: 0 14px 34px rgba(16, 43, 60, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.post-card:hover,
.post-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(16, 43, 60, .12);
    border-color: rgba(102, 127, 105, .45);
}

html[data-theme="dark"] .post-card {
    background: linear-gradient(180deg, rgba(20, 25, 27, .98), rgba(12, 15, 16, .98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .post-card:hover,
html[data-theme="dark"] .post-card:focus-within {
    border-color: rgba(209, 140, 88, .35);
    box-shadow: 0 24px 52px rgba(0, 0, 0, .38);
}

.post-thumbnail {
    background: var(--surface-soft);
}

.post-thumbnail img {
    transition: transform .45s ease;
}

.post-card:hover .post-thumbnail img,
.post-card:focus-within .post-thumbnail img {
    transform: scale(1.04);
}

.post-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .85rem;
    padding: 24px;
}

.post-card-content h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.post-card-content h2 a {
    color: var(--ink);
    transition: color .2s ease;
}

.post-card-content h2 a:hover,
.post-card-content h2 a:focus-visible {
    color: var(--sage-700);
}

html[data-theme="dark"] .post-card-content h2 a:hover,
html[data-theme="dark"] .post-card-content h2 a:focus-visible {
    color: var(--copper-500);
}

.post-card-content p {
    margin: 0;
    color: var(--muted);
}

.post-card .wp-post-image {
    border-radius: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: auto;
    font-size: .95rem;
    letter-spacing: .02em;
}

.pagination,
.posts-navigation,
.post-navigation {
    margin-top: 2.4rem;
}

.pagination .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .65rem;
}

.pagination .page-numbers,
.posts-navigation a,
.post-navigation a,
.post-navigation span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .7rem .95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 650;
    transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.pagination .page-numbers.current {
    background: var(--sage-700);
    border-color: var(--sage-700);
    color: #fff;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus-visible,
.posts-navigation a:hover,
.posts-navigation a:focus-visible,
.post-navigation a:hover,
.post-navigation a:focus-visible {
    transform: translateY(-2px);
    border-color: var(--sage-700);
    color: var(--sage-700);
}

html[data-theme="dark"] .pagination .page-numbers,
html[data-theme="dark"] .posts-navigation a,
html[data-theme="dark"] .post-navigation a,
html[data-theme="dark"] .post-navigation span {
    background: var(--surface-soft);
}

html[data-theme="dark"] .pagination .page-numbers.current {
    background: var(--copper-600);
    border-color: var(--copper-600);
    color: #fff;
}

html[data-theme="dark"] .pagination .page-numbers:hover,
html[data-theme="dark"] .pagination .page-numbers:focus-visible,
html[data-theme="dark"] .posts-navigation a:hover,
html[data-theme="dark"] .posts-navigation a:focus-visible,
html[data-theme="dark"] .post-navigation a:hover,
html[data-theme="dark"] .post-navigation a:focus-visible {
    border-color: var(--copper-600);
    color: var(--copper-500);
}

.hero-actions {
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 620px) {
    .content-area {
        padding: 46px 0;
    }

    .content-area .site-shell {
        width: min(100% - 32px, 520px);
    }

    .content-shell {
        --content-shell-pad: 25px;
    }

    .archive-header h1,
    .entry-header h1 {
        font-size: clamp(31px, 9vw, 38px);
        line-height: 1.08;
    }

    .entry-content {
        font-size: 16px;
        line-height: 1.72;
    }

    .entry-content > h2,
    .entry-content > .wp-block-heading.has-2-font-size,
    .entry-content > .wp-block-heading.is-style-heading-2,
    .entry-content h2 {
        font-size: clamp(1.55rem, 6vw, 2rem);
    }

    .entry-content > h3,
    .entry-content h3 {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
    }

    .entry-content blockquote,
    .entry-content .wp-block-quote {
        padding: 1.15rem 1rem 1.15rem 1.2rem;
    }

    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========================================================================== 
   Native mobile navigation disclosures
   ========================================================================== */

/*
 * The mobile menu uses native details/summary elements so its essential
 * navigation remains available without JavaScript. The rules below reproduce
 * the original button, panel, link and submenu presentation as closely as
 * possible while mapping the former aria-expanded/submenu-open states to the
 * native [open] state.
 */
.mobile-menu-disclosure,
.primary-navigation-mobile {
    display: none;
}

@media (max-width: 57.5rem) {
    .primary-navigation-desktop {
        display: none;
    }

    /* The full-width menu panel is positioned from .main-header, exactly as
     * the former JavaScript-controlled navigation was. */
    .site-header .header-actions-mobile {
        position: static;
    }

    .mobile-menu-disclosure {
        position: static;
        display: block;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .mobile-menu-disclosure > summary,
    .mobile-submenu-disclosure > summary {
        list-style: none;
        -webkit-appearance: none;
        appearance: none;
    }

    .mobile-menu-disclosure > summary::-webkit-details-marker,
    .mobile-submenu-disclosure > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu-disclosure > summary::marker,
    .mobile-submenu-disclosure > summary::marker {
        content: "";
    }

    /* Keep the replacement bars/xmark icons in the exact same grid cell so
     * changing the native disclosure state never shifts the button contents. */
    .mobile-menu-disclosure > .menu-toggle > i {
        grid-area: 1 / 1;
        margin: 0;
    }

    .mobile-menu-disclosure .mobile-menu-icon-close {
        display: none;
    }

    .mobile-menu-disclosure[open] .mobile-menu-icon-open {
        display: none;
    }

    .mobile-menu-disclosure[open] .mobile-menu-icon-close {
        display: inline-block;
    }

    /* Reproduce the former mobile navigation panel geometry and styling. */
    .mobile-menu-disclosure > .primary-navigation-mobile {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        display: block;
        max-height: 78vh;
        margin-left: 0;
        overflow: auto;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        border-radius: 0.2rem 0.2rem 0.625rem 0.625rem;
    }

    .primary-navigation-mobile .aed-menu {
        display: block;
        padding: 10px 18px 20px;
    }

    .primary-navigation-mobile .aed-menu > .menu-item > a {
        padding: 15px 10px;
        border-bottom: 1px solid var(--line);
    }

    /* Reset the native wrapper so it adds no new spacing or decoration. */
    .primary-navigation-mobile .mobile-submenu-disclosure {
        position: static;
        display: block;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    /* Match the former expanded submenu box exactly. Closed native details
     * remain removed from rendering and the accessibility tree by the browser. */
    .primary-navigation-mobile .mobile-submenu-disclosure > .sub-menu {
        position: static;
        min-width: 0;
        max-height: none;
        padding: 0 0 0 34px;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* Reproduce the original submenu-toggle expanded state. */
    .primary-navigation-mobile .mobile-submenu-disclosure[open] > .submenu-toggle {
        background: var(--sage-100);
        color: var(--sage-700);
    }

    html[data-theme="dark"] .primary-navigation-mobile .mobile-submenu-disclosure[open] > .submenu-toggle {
        background: rgba(194, 122, 71, .14);
        color: var(--copper-500);
    }

    .primary-navigation-mobile .mobile-submenu-disclosure[open] > .submenu-toggle i {
        transform: rotate(180deg);
    }

    /* Match the former .submenu-open parent-link treatment. */
    .primary-navigation-mobile .menu-item-has-children:has(> .mobile-submenu-disclosure[open]) > a {
        border-radius: 8px;
        box-shadow: inset 3px 0 0 var(--sage-600);
        color: var(--sage-700);
        font-weight: 750;
    }

    html[data-theme="dark"] .primary-navigation-mobile .menu-item-has-children:has(> .mobile-submenu-disclosure[open]) > a {
        box-shadow: inset 3px 0 0 var(--copper-600);
        color: var(--copper-500);
    }

    /* The current-page branch used to style a direct-child button. Map the
     * same appearance through the new details wrapper. */
    .primary-navigation-mobile .menu-item-has-children.current-menu-ancestor > .mobile-submenu-disclosure > .submenu-toggle,
    .primary-navigation-mobile .menu-item-has-children.current-menu-parent > .mobile-submenu-disclosure > .submenu-toggle,
    .primary-navigation-mobile .menu-item-has-children.current_page_ancestor > .mobile-submenu-disclosure > .submenu-toggle,
    .primary-navigation-mobile .menu-item-has-children.current_page_parent > .mobile-submenu-disclosure > .submenu-toggle {
        background: var(--sage-100);
        color: var(--sage-700);
    }

    html[data-theme="dark"] .primary-navigation-mobile .menu-item-has-children.current-menu-ancestor > .mobile-submenu-disclosure > .submenu-toggle,
    html[data-theme="dark"] .primary-navigation-mobile .menu-item-has-children.current-menu-parent > .mobile-submenu-disclosure > .submenu-toggle,
    html[data-theme="dark"] .primary-navigation-mobile .menu-item-has-children.current_page_ancestor > .mobile-submenu-disclosure > .submenu-toggle,
    html[data-theme="dark"] .primary-navigation-mobile .menu-item-has-children.current_page_parent > .mobile-submenu-disclosure > .submenu-toggle {
        background: rgba(194, 122, 71, .14);
        color: var(--copper-500);
    }

    /* ----------------------------------------------------------------------
     * Original mobile menu-button interaction states, mapped to <summary>.
     * ---------------------------------------------------------------------- */
    .site-header .mobile-menu-disclosure > .menu-toggle {
        line-height: 1;
        text-align: center;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        transition:
            background-color .2s ease,
            border-color .2s ease,
            box-shadow .2s ease,
            color .2s ease,
            transform .2s ease;
    }

    /* Light theme closed state. */
    html[data-theme="light"] .site-header .mobile-menu-disclosure:not([open]) > .menu-toggle {
        border-color: rgba(16, 43, 60, .78);
        background-color: var(--header-background);
        background-image: none;
        box-shadow:
            0 3px 10px rgba(16, 43, 60, .18),
            inset 0 1px 0 rgba(255, 255, 255, .1);
        color: #ffffff;
    }

    /* Light theme closed hover and keyboard focus. */
    html[data-theme="light"] .site-header .mobile-menu-disclosure:not([open]) > .menu-toggle:hover,
    html[data-theme="light"] .site-header .mobile-menu-disclosure:not([open]) > .menu-toggle:focus-visible {
        border-color: var(--sage-700);
        background-color: var(--sage-700);
        background-image: linear-gradient(135deg, var(--sage-700), var(--sage-600));
        box-shadow:
            0 0 0 1px rgba(102, 127, 105, .16),
            0 8px 20px rgba(16, 43, 60, .28),
            inset 0 1px 0 rgba(255, 255, 255, .18);
        color: #ffffff;
        transform: translateY(-1px);
    }

    html[data-theme="light"] .site-header .mobile-menu-disclosure > .menu-toggle:focus-visible {
        outline: 3px solid rgba(102, 127, 105, .42);
        outline-offset: 2px;
    }

    /* Light theme expanded state. Hover/focus deliberately retain this exact
     * appearance, matching the former aria-expanded=true button. */
    html[data-theme="light"] .site-header .mobile-menu-disclosure[open] > .menu-toggle,
    html[data-theme="light"] .site-header .mobile-menu-disclosure[open] > .menu-toggle:hover,
    html[data-theme="light"] .site-header .mobile-menu-disclosure[open] > .menu-toggle:focus-visible {
        border-color: var(--sage-700);
        background-color: var(--sage-700);
        background-image: linear-gradient(135deg, var(--sage-700), var(--sage-600));
        box-shadow:
            0 8px 22px rgba(16, 43, 60, .3),
            inset 0 1px 0 rgba(255, 255, 255, .18);
        color: #ffffff;
        transform: none;
    }

    /* Dark theme closed state. */
    html[data-theme="dark"] .site-header .mobile-menu-disclosure:not([open]) > .menu-toggle {
        border-color: rgba(255, 255, 255, .18);
        background: #181a1a;
        box-shadow:
            0 3px 10px rgba(0, 0, 0, .26),
            inset 0 1px 0 rgba(255, 255, 255, .045);
        color: #f3eee8;
    }

    html[data-theme="dark"] .site-header .mobile-menu-disclosure > .menu-toggle i {
        filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45));
    }

    /* Dark theme closed hover and keyboard focus. */
    html[data-theme="dark"] .site-header .mobile-menu-disclosure:not([open]) > .menu-toggle:hover,
    html[data-theme="dark"] .site-header .mobile-menu-disclosure:not([open]) > .menu-toggle:focus-visible {
        border-color: var(--copper-500);
        background: linear-gradient(
            145deg,
            rgba(209, 140, 88, .2),
            rgba(167, 94, 49, .12)
        );
        box-shadow:
            0 0 0 1px rgba(209, 140, 88, .12),
            0 8px 20px rgba(0, 0, 0, .4),
            inset 0 1px 0 rgba(255, 255, 255, .08);
        color: #f2ad79;
        transform: translateY(-1px);
    }

    html[data-theme="dark"] .site-header .mobile-menu-disclosure > .menu-toggle:focus-visible {
        outline: 3px solid rgba(209, 140, 88, .42);
        outline-offset: 2px;
    }

    /* Dark theme expanded state. */
    html[data-theme="dark"] .site-header .mobile-menu-disclosure[open] > .menu-toggle,
    html[data-theme="dark"] .site-header .mobile-menu-disclosure[open] > .menu-toggle:hover,
    html[data-theme="dark"] .site-header .mobile-menu-disclosure[open] > .menu-toggle:focus-visible {
        border-color: var(--copper-500);
        background: linear-gradient(135deg, var(--copper-500), var(--copper-700));
        box-shadow:
            0 8px 22px rgba(0, 0, 0, .46),
            inset 0 1px 0 rgba(255, 255, 255, .14);
        color: #ffffff;
        transform: none;
    }

    .site-header .mobile-menu-disclosure > .menu-toggle:active {
        transform: translateY(0) scale(.97);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .mobile-menu-disclosure > .menu-toggle,
    .mobile-menu-disclosure > .primary-navigation-mobile,
    .primary-navigation-mobile .mobile-submenu-disclosure > .sub-menu {
        transition: none;
    }
}

/* ========================================================================== 
   Native mobile contact-information disclosure
   ========================================================================== */

/*
 * The contact-information panel now uses a native details/summary disclosure.
 * Its essential open/close behavior therefore remains available without
 * JavaScript. These rules preserve the former button, panel, cards and CTA
 * presentation while allowing the expanded panel to remain in normal flow.
 */
.mobile-header-info-disclosure {
	display: none;
}

@media (max-width: 57.5rem) {
	/* Keep the contact disclosure in normal document flow while positioning
	 * only the compact header controls over its first-row space. This preserves
	 * the original header height and lets the expanded panel push page content
	 * down exactly as it did before the native conversion. */
	.site-header .main-header-inner {
		--mobile-header-row-height: 4.125rem;
		--mobile-header-control-gap: 0.5rem;
		--mobile-info-toggle-width: 3.5rem;
		--mobile-info-toggle-half-width: 1.75rem;
		--mobile-menu-toggle-width: 2.75rem;
		--mobile-shell-side-gap: 0.875rem;

		position: relative;
		display: block;
		min-height: var(--mobile-header-row-height);
	}

	.site-header .brand-panel {
		position: absolute;
		top: 0;
		bottom: auto;
		left: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		height: var(--mobile-header-row-height);
		min-height: 0;
		max-height: var(--mobile-header-row-height);
		margin: 0;
	}

	.site-header .header-actions-mobile {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 120;
		display: flex;
		align-items: center;
		height: var(--mobile-header-row-height);
		margin: 0;
		gap: var(--mobile-header-control-gap);
	}

	.site-header .main-header-inner:has(> .mobile-header-info-disclosure) > .header-actions-mobile {
		right: calc(var(--mobile-info-toggle-width) + var(--mobile-header-control-gap));
	}

	.site-header .main-header-inner:has(> .mobile-menu-disclosure) > .header-actions-mobile {
		right: calc(var(--mobile-menu-toggle-width) + var(--mobile-header-control-gap));
	}

	.site-header .main-header-inner:has(> .mobile-header-info-disclosure):has(> .mobile-menu-disclosure) > .header-actions-mobile {
		right: calc(
			var(--mobile-info-toggle-width) +
			var(--mobile-menu-toggle-width) +
			(2 * var(--mobile-header-control-gap))
		);
	}

	.mobile-header-info-disclosure {
		position: relative;
		display: block;
		width: 100%;
		min-height: var(--mobile-header-row-height);
		margin: 0;
		padding: var(--mobile-header-row-height) 0 0;
		border: 0;
	}

	.mobile-header-info-disclosure > .mobile-header-info-toggle {
		position: absolute;
		top: calc((var(--mobile-header-row-height) - 2.75rem) / 2);
		right: 0;
		z-index: 3;
		list-style: none;
		-webkit-appearance: none;
		appearance: none;
		line-height: 1;
		text-align: center;
		text-decoration: none;
		user-select: none;
	}

	.site-header .main-header-inner:has(> .mobile-menu-disclosure) > .mobile-header-info-disclosure > .mobile-header-info-toggle {
		right: calc(var(--mobile-menu-toggle-width) + var(--mobile-header-control-gap));
	}

	.mobile-header-info-disclosure > .mobile-header-info-toggle::-webkit-details-marker {
		display: none;
	}

	.mobile-header-info-disclosure > .mobile-header-info-toggle::marker {
		content: "";
	}

	.site-header .main-header-inner > .mobile-menu-disclosure {
		position: static;
		display: block;
		width: 0;
		height: 0;
		margin: 0;
		padding: 0;
		border: 0;
	}

	.site-header .main-header-inner > .mobile-menu-disclosure > .menu-toggle {
		position: absolute;
		top: calc((var(--mobile-header-row-height) - 2.75rem) / 2);
		right: 0;
		z-index: 4;
	}

	.site-header .main-header-inner > .mobile-menu-disclosure > .primary-navigation-mobile {
		top: var(--mobile-header-row-height);
	}

	.mobile-header-info-disclosure > .mobile-header-info-panel {
		--mobile-info-pointer-x: calc(
			100% - var(--mobile-shell-side-gap) - var(--mobile-info-toggle-half-width)
		);

		width: 100vw;
		max-width: none;
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - 50vw);
	}

	.site-header .main-header-inner:has(> .mobile-menu-disclosure)
		> .mobile-header-info-disclosure
		> .mobile-header-info-panel {
		--mobile-info-pointer-x: calc(
			100% - var(--mobile-shell-side-gap)
			- var(--mobile-menu-toggle-width)
			- var(--mobile-header-control-gap)
			- var(--mobile-info-toggle-half-width)
		);
	}

	/* Map the former aria-expanded button state to the native details state. */
	.mobile-header-info-disclosure[open] > .mobile-header-info-toggle {
		border-color: var(--mobile-info-accent);
		background: var(--mobile-info-button-active);
		color: var(--mobile-info-accent);
	}

	.mobile-header-info-disclosure[open] > .mobile-header-info-toggle .mobile-header-info-toggle-chevron {
		transform: rotate(180deg);
	}

	/* Native disclosure state, with or without JavaScript. */
	.mobile-header-info-disclosure[open] > .mobile-header-info-panel {
		max-height: min(72vh, 42rem);
		overflow-y: auto;
		border-top-color: var(--mobile-info-panel-border);
		border-bottom-color: var(--mobile-info-panel-border);
		box-shadow: var(--mobile-info-panel-shadow);
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.mobile-header-info-disclosure > .mobile-header-info-panel {
		border-top: 1px solid transparent;
	}

	/* The panel now sits inside .main-header. Move the original separator to the
	 * panel's top edge and keep only the panel's bottom edge at the end. */
	.site-header .main-header:has(.mobile-header-info-disclosure[open]),
	.site-header.mobile-info-open .main-header {
		border-bottom-color: transparent;
	}
}

@media (max-width: 38.75rem) {
	.site-header .main-header-inner {
		--mobile-header-row-height: 3.75rem;
		--mobile-shell-side-gap: 0.6875rem;
	}
}

@media (max-width: 32.5rem) {
	.site-header .main-header-inner {
		--mobile-header-control-gap: 0.375rem;
		--mobile-info-toggle-width: 3.1rem;
		--mobile-info-toggle-half-width: 1.55rem;
		--mobile-menu-toggle-width: 2.5rem;
	}

	.mobile-header-info-disclosure > .mobile-header-info-toggle {
		top: calc((var(--mobile-header-row-height) - 2.5rem) / 2);
	}

	.site-header .main-header-inner > .mobile-menu-disclosure > .menu-toggle {
		top: calc((var(--mobile-header-row-height) - 2.5rem) / 2);
	}
}

@media (max-width: 21.25rem) {
	.site-header .main-header-inner {
		--mobile-header-control-gap: 0.25rem;
		--mobile-info-toggle-width: 2.7rem;
		--mobile-info-toggle-half-width: 1.35rem;
		--mobile-menu-toggle-width: 2.25rem;
	}

	.mobile-header-info-disclosure > .mobile-header-info-toggle {
		top: calc((var(--mobile-header-row-height) - 2.25rem) / 2);
	}

	.site-header .main-header-inner > .mobile-menu-disclosure > .menu-toggle {
		top: calc((var(--mobile-header-row-height) - 2.25rem) / 2);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mobile-header-info-disclosure > .mobile-header-info-toggle,
	.mobile-header-info-disclosure > .mobile-header-info-panel {
		transition: none;
	}
}

/* Theme-aware logo switching ----------------------------------------------
 * Both Customizer-selected variants are rendered in the document. The active
 * html[data-theme] value controls visibility, so the logos remain correct even
 * if the main theme JavaScript does not load.
 */
.brand-panel .site-logo-image-desktop,
.brand-panel .site-logo-image-mobile,
.footer-logo-link .footer-logo {
    display: none;
}

html[data-theme="light"] .brand-panel .site-logo-image-desktop.site-logo-image-light,
html[data-theme="dark"] .brand-panel .site-logo-image-desktop.site-logo-image-dark,
html[data-theme="light"] .footer-logo-link .footer-logo.site-logo-image-light,
html[data-theme="dark"] .footer-logo-link .footer-logo.site-logo-image-dark {
    display: block;
}

@media (max-width: 920px) {
    html[data-theme="light"] .brand-panel .site-logo-image-desktop.site-logo-image-light,
    html[data-theme="dark"] .brand-panel .site-logo-image-desktop.site-logo-image-dark {
        display: none;
    }

    html[data-theme="light"] .brand-panel .site-logo-image-mobile.site-logo-image-light,
    html[data-theme="dark"] .brand-panel .site-logo-image-mobile.site-logo-image-dark {
        display: block;
    }
}

/* ---------------------------------------------------------
   No-JavaScript control fallbacks
   --------------------------------------------------------- */
html.no-js .theme-toggle,
html.no-js .mobile-scroll-to-top {
	display: none !important;
}

/* Accessibility refinements: keep the resting layout and artwork unchanged. */
:root { --aed-focus: #17384e; --aed-focus-halo: #fff; --aed-link-green: #526b56; }
html[data-theme="dark"] { --aed-focus: #e5af82; --aed-focus-halo: #101718; }
/* The former arrow pseudo-element is now a decorative span. */
.primary-navigation .aed-menu > .menu-item-has-children > a::after { content: none; }
html:not([data-theme="dark"]) .primary-navigation :is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a,
html:not([data-theme="dark"]) .primary-navigation a:is(:hover, :focus-visible),
html:not([data-theme="dark"]) .site-header .language-disclosure-item.is-current .language-disclosure-option { color: var(--aed-link-green); }
/* A dark inner ring and contrasting outer halo work on pale and filled controls. */
body :is(a, button, summary, input:not([type="hidden"]), textarea, select, [tabindex="0"]):not(#wpadminbar *):focus-visible {
    outline: 3px solid var(--aed-focus) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px var(--aed-focus-halo) !important;
}
/* Prevent clipped inset navigation rings and keep sticky headers clear of focus. */
.primary-navigation :is(a, summary):focus-visible { outline-offset: -3px !important; box-shadow: none !important; }
@media (min-width: 921px) {
    .primary-navigation-desktop .menu-item-has-children:focus-within > .sub-menu { transition: none; }
    .primary-navigation-desktop .menu-item-has-children.submenu-dismissed > .sub-menu {
        opacity: 0; visibility: hidden; pointer-events: none; transition: none;
    }
}
@media (max-width: 920px) {
    body:has(.mobile-sticky-header-enabled) :is(a, button, summary, input, textarea, select) { scroll-margin-block: 6rem 1.5rem; }

}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
    body :is(a, button, summary, input, textarea, select):focus-visible { outline-color: Highlight !important; box-shadow: none !important; }
}

/* Header disclosures: native state, CSS-only motion.
 * Unsupported browsers keep the fully functional native open/close behavior.
 * No scripts, timers or measured heights are needed for these transitions. */
@media (max-width: 920px) {
    .mobile-menu-disclosure > .primary-navigation-mobile {
        border: 1px solid var(--line);
        border-color: color-mix(in srgb, var(--line) 72%, var(--sage-700) 28%);
        border-top-color: var(--line);
        border-radius: 0.2rem 0.2rem 0.625rem 0.625rem;
        box-shadow: 0 12px 28px rgba(23, 40, 34, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    html[data-theme="dark"] .mobile-menu-disclosure > .primary-navigation-mobile {
        border-color: color-mix(in srgb, var(--line) 72%, var(--copper-500) 28%);
        border-top-color: var(--line);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
}

@supports selector(details::details-content) and (transition-behavior: allow-discrete) {
    @media (prefers-reduced-motion: no-preference) {
        /* This also covers the desktop language selector. Keep the popup out
         * of the header's layout, and preserve its existing width and styling. */
        .site-header .language-disclosure::details-content {
            --header-disclosure-duration: 240ms;
            position: absolute;
            top: calc(100% + 0.45rem);
            right: 0;
            z-index: 1000;
            opacity: 0;
            transform: translateY(-0.5rem) scale(0.97);
            transform-origin: top right;
            transition:
                opacity var(--header-disclosure-duration) ease,
                transform var(--header-disclosure-duration) cubic-bezier(0.22, 1, 0.36, 1),
                content-visibility var(--header-disclosure-duration) allow-discrete;
        }

        .site-header .header-actions .language-disclosure-list {
            position: relative;
            top: auto;
            right: auto;
        }

        .site-header .language-disclosure[open]::details-content {
            opacity: 1;
            transform: none;
        }

        @media (max-width: 920px) {
            /* The opening travels from the menu button's top-right corner.
             * Reveal the surface without shrinking or stretching its text. */
            .site-header .mobile-menu-disclosure::details-content {
                --header-disclosure-duration: 320ms;
                position: absolute;
                top: var(--mobile-header-row-height);
                right: 0;
                left: 0;
                z-index: 100;
                opacity: 0;
                clip-path: inset(0 0 100% 100%);
                transform: translateY(-0.4rem);
                transform-origin: top right;
                transition:
                    clip-path var(--header-disclosure-duration) cubic-bezier(0.22, 1, 0.36, 1),
                    opacity var(--header-disclosure-duration) ease,
                    transform var(--header-disclosure-duration) cubic-bezier(0.22, 1, 0.36, 1),
                    content-visibility var(--header-disclosure-duration) allow-discrete;
            }

            .site-header .main-header-inner > .mobile-menu-disclosure > .primary-navigation-mobile {
                position: relative;
                top: auto;
                right: auto;
                left: auto;
            }

            .site-header .mobile-menu-disclosure[open]::details-content {
                opacity: 1;
                clip-path: inset(-1rem -2rem -3rem -2rem);
                transform: none;
            }

            /* The contact panel and nested navigation expand to their real
             * content height. Grid interpolation avoids arbitrary height caps. */
            .site-header :is(.mobile-header-info-disclosure, .mobile-submenu-disclosure)::details-content {
                --header-disclosure-duration: 300ms;
                display: grid;
                grid-template-rows: 0fr;
                overflow: clip;
                opacity: 0;
                transition:
                    grid-template-rows var(--header-disclosure-duration) cubic-bezier(0.22, 1, 0.36, 1),
                    opacity var(--header-disclosure-duration) ease,
                    content-visibility var(--header-disclosure-duration) allow-discrete;
            }

            .site-header :is(.mobile-header-info-disclosure, .mobile-submenu-disclosure)[open]::details-content {
                grid-template-rows: 1fr;
                opacity: 1;
            }

            .site-header .mobile-header-info-disclosure::details-content {
                width: 100vw;
                margin-inline: calc(50% - 50vw);
            }

            .site-header .mobile-header-info-disclosure > .mobile-header-info-panel {
                min-height: 0;
                width: 100%;
                max-height: none;
                margin-inline: 0;
                overflow: hidden;
                border-color: var(--mobile-info-panel-border);
                opacity: 1;
                visibility: visible;
                transform: none;
                transition: none;
            }

            /* Keep scrolling independent of the animated grid height. The
             * outer panel clips the reveal; its inner content only scrolls
             * when it exceeds the fully open panel's viewport height limit.
             * This prevents a temporary scrollbar from changing card widths. */
            .site-header .mobile-header-info-disclosure > .mobile-header-info-panel > .mobile-header-info-panel-scroll {
                max-height: calc(min(72vh, 42rem) - 2px);
                overflow-x: hidden;
                overflow-y: auto;
            }

            .site-header .mobile-header-info-disclosure > .mobile-header-info-panel .mobile-header-info-panel-scroll,
            .site-header .mobile-submenu-disclosure > .sub-menu {
                transform: translateY(-0.65rem);
                transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
            }

            .site-header .mobile-submenu-disclosure > .sub-menu {
                min-height: 0;
                overflow: hidden;
            }

            .site-header .mobile-header-info-disclosure[open] > .mobile-header-info-panel .mobile-header-info-panel-scroll,
            .site-header .mobile-submenu-disclosure[open] > .sub-menu {
                transform: none;
            }
        }

        /* A closing panel may still be painted, but must not accept clicks,
         * keyboard focus or screen-reader navigation during the exit motion. */
        .site-header :is(.language-disclosure, .mobile-menu-disclosure, .mobile-header-info-disclosure, .mobile-submenu-disclosure):not([open])::details-content {
            pointer-events: none;
            interactivity: inert;
        }

        /* Without CSS inertness, close immediately instead of temporarily
         * leaving visually exiting controls in the keyboard tab order. */
        @supports not (interactivity: inert) {
            .site-header :is(.language-disclosure, .mobile-menu-disclosure, .mobile-header-info-disclosure, .mobile-submenu-disclosure):not([open])::details-content {
                transition: none;
            }
        }

        /* Keyboard users get content immediately; pointer focus alone should
         * not suppress the animation, as the former :focus-within rule did. */
        .site-header :is(.language-disclosure, .mobile-menu-disclosure, .mobile-header-info-disclosure, .mobile-submenu-disclosure):has(:focus-visible)::details-content,
        .site-header .mobile-header-info-disclosure:has(:focus-visible) .mobile-header-info-panel-scroll,
        .site-header .mobile-submenu-disclosure:has(:focus-visible) > .sub-menu {
            transition: none;
        }
    }
}

@media (forced-colors: active) and (max-width: 920px) {
    .site-header .mobile-menu-disclosure > .primary-navigation-mobile {
        border-color: CanvasText;
        box-shadow: none;
    }
}
