/* Header and footer used by every page template. */


.site-header { position: relative; z-index: 2; background: #fbfbf9; }
.header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    min-height: 4.82rem;
    padding: .4rem 0 .4rem 1.62rem;
    width: min(97%, 91rem);
}
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: .88rem; color: var(--ink); text-decoration: none; }
.site-nav { flex: 0 1 auto; }
.navigation { display: flex; align-items: center; justify-content: flex-end; gap: 1.35rem; }
.navigation ul { display: flex; align-items: center; gap: clamp(.55rem, 1.65vw, 1.15rem); padding: 0; list-style: none; }
.navigation li a { display: flex; align-items: center; min-height: 2.05rem; padding: .16rem .07rem; color: var(--ink); font-size: .72rem; text-decoration: none; }
.navigation li a:hover, .navigation li a[aria-current] { color: var(--green-dark); text-decoration: underline; }
.header-contact { min-height: 1.78rem; white-space: nowrap; padding-inline: .85rem; }
.menu-toggle { align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .7rem; color: var(--green-dark); background: #fff; border: 1px solid var(--green); border-radius: .28rem; font-weight: 700; }
.menu-toggle svg { width: 1.15rem; }

.site-footer { padding-block: 1.16rem 1.05rem; background: var(--paper); }
.footer-layout { display: grid; grid-template-columns: .89fr 1.08fr .86fr .82fr; }
.footer-layout > div { min-width: 0; padding: .11rem .65rem .12rem 1.93rem; border-left: 1px solid #c7c9bd; }
.footer-layout > div:nth-child(2) { padding-left: 2.64rem; }
.footer-layout h2 { margin-bottom: .46rem; font-size: .82rem; letter-spacing: 0; }
.footer-layout p, .registration { font-size: .68rem; line-height: 1.46; }
.footer-brand { align-self: start; justify-self: start; flex-direction: column; align-items: center; gap: .35rem; padding: .18rem .2rem .1rem .85rem; text-align: center; }
.footer-brand .brand-wordmark { font-size: 1.05rem; }
.footer-brand small { font-size: .72rem; }
.footer-brand .brand-custom { max-width: 11rem; max-height: 6rem; }
.contact-list { display: grid; gap: .17rem; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: baseline; gap: .51rem; overflow-wrap: anywhere; }
.contact-list svg { position: relative; top: .15em; width: 1em; height: 1em; color: var(--green); }
.contact-list a { padding-block: .1em; }
.site-footer .contact-list, .footer-links { font-size: .66rem; }
.site-footer .contact-list a { color: inherit; text-decoration: none; }
.site-footer .contact-list a:hover { text-decoration: underline; }
.registration div { display: flex; flex-wrap: wrap; gap: .3em; }
.registration dt::after { content: ':'; }
.registration dd { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .24rem .55rem; padding: .35rem 0 0; list-style: none; }
@media (max-width: 60em) {
    .header-layout { width: 93%; flex-wrap: wrap; min-height: 4.1rem; padding-left: 0; }
    .header-contact { min-height: 2.75rem; }
    .menu-toggle:not([hidden]) { display: inline-flex; }
    .site-nav:has(.menu-toggle[hidden]) { flex: 1 0 100%; }
    .navigation { display: block; }
    .menu-toggle:not([hidden]) + .navigation {
        position: absolute;
        inset: 100% 0 auto;
        padding: .5rem 3.5% 1rem;
        max-height: min(70vh, 30rem);
        overflow-y: auto;
        background: #fbfbf9;
        border-block: 1px solid var(--line);
        box-shadow: 0 .55rem 1rem #19221621;
    }
    .navigation ul { display: grid; gap: 0; padding-bottom: .35rem; }
    .navigation li a { min-height: 2.75rem; font-size: .92rem; border-bottom: 1px solid var(--line); }
    .footer-layout { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .footer-layout > div, .footer-layout > div:nth-child(2) { padding-left: 0; border-left: 0; }
    .footer-brand { padding-left: 0; }
    .footer-layout h2 { font-size: 1rem; }
    .footer-layout p, .registration, .site-footer .contact-list, .footer-links { font-size: .81rem; }
}
@media (max-width: 28em) {
    .brand { gap: .45rem; }
    .header-layout { gap: .27rem; }
    .menu-toggle { gap: .3rem; padding-inline: .42rem; font-size: .83rem; }
    .menu-toggle svg { width: 1rem; }
    .footer-layout { grid-template-columns: minmax(0, 1fr); }
    .footer-layout > div { padding-top: .55rem; border-top: 1px solid var(--line); }
}
@media (max-width: 18em) {
    .header-layout { align-items: flex-start; }
    .brand { flex-shrink: 1; }
}
.footer-links a { display: inline-flex; align-items: center; min-height: 24px; }
.site-footer .social-links { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }
.site-footer .social-links a { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.site-footer .social-links a svg { width: .9rem; height: .9rem; }
.header-layout { width: min(96%, 91rem); margin-inline: auto; padding: .4rem 0 .4rem clamp(0rem, 2vw, 1.62rem); }
.site-header { border-bottom: 1px solid #e8e8df; }
.header-layout .brand { min-width: 0; gap: .8rem; }
.navigation li a { font-size: .79rem; }
.header-contact { min-height: 1.9rem; }
.site-footer { padding-block: 1.16rem 1.05rem; }
.footer-layout { width: min(94.4%, var(--shell)); }
.footer-layout h2 { font-size: .87rem; }
.footer-layout p, .registration { font-size: .72rem; }
.site-footer .contact-list, .footer-links { font-size: .72rem; }
.site-footer .contact-list a { text-decoration: underline; }

@media (max-width: 60em) {
    .header-layout { width: 93%; padding-inline: 0; }
    .header-layout .brand { gap: .5rem; }
    .site-footer .footer-layout { width: 93%; }
    .site-footer .footer-layout h2, .footer-layout p, .registration, .site-footer .contact-list, .footer-links { font-size: .83rem; }
}
.site-header, .site-footer { font: .81rem/1.45 var(--body); }
.site-header .header-contact { min-height: max(44px, 1.9rem); }
.site-footer { border-top: 1px solid #e8e8df; }

.brand-mark { width: 5.2rem; }
.brand-wordmark { display: block; font: 700 1.36rem/1.08 var(--heading); }
.brand-wordmark small { display: block; margin-top: .13rem; font-size: .84rem; font-weight: 400; }
.brand-custom { width: auto; max-width: 17rem; height: auto; max-height: 4rem; object-fit: contain; }
@media (max-width: 60em) {
.brand-mark { width: 4.15rem; }
.brand-wordmark { font-size: 1.18rem; }
.brand-wordmark small { font-size: .73rem; }
}
@media (max-width: 28em) {
.brand-mark { width: 3rem; }
.brand-wordmark { font-size: 1rem; }
.brand-wordmark small { font-size: .64rem; }
.brand-custom { max-width: 11rem; max-height: 3.3rem; }
}
.site-header .header-contact {
    font: 600 .72rem/1.3 var(--body);
    background-color: var(--green);
    background-image: linear-gradient(110deg, #405632 20%, #4d653c 49%, #354d2a 76%);
    background-size: 210% 100%;
    background-position: left;
    box-shadow: none;
    transform: none;
}
.site-header .header-contact:hover, .site-header .header-contact:focus-visible {
    background-position: right;
    transform: none;
}
@media (prefers-reduced-motion: no-preference) {
    .site-header .header-contact { transition: background-position .44s ease; }
}
.site-header .header-contact:focus-visible { box-shadow: 0 0 0 5px #4c3216; }
