  /* Shared footer and content-layout corrections. */
.footer-about {
    display: inline-block;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

.footer-privacy {
    display: inline-block;
    padding-left: 0.7rem;
}

/* Shared footer layout used across the site. */
body .footer {
    background: #4A1A08 !important;
}

body .footer .footer-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(560px, 1.2fr) !important;
}

.footer-link-groups {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(300px, 1.2fr);
    gap: 0;
    min-width: 0;
}

.footer-link-group {
    min-width: 0;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.footer-link-group:first-child {
    border-right: 1px solid rgba(255, 230, 184, 0.55);
}

.footer-link-group h4 {
    margin: 0 0 1.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 230, 184, 0.3);
    color: #FFE6B8;
    font-family: Optima, Candara, "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: none;
}

.footer-link-group ul {
    width: 100%;
    max-width: 24rem;
    margin: 0;
    padding: 0 clamp(0.25rem, 1vw, 1rem);
    list-style: none;
}

.footer-link-group li {
    margin-bottom: 0.7rem;
    line-height: 1.45;
}

.footer-link-group a {
    display: inline;
    color: rgba(255, 255, 255, 0.82);
    font-family: Optima, Candara, "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
    font-size: 0.92rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-link-group a:hover,
.footer-link-group a:focus-visible {
    color: #fff;
}

@media (max-width: 900px) {
    body .footer .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .footer-link-groups {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-link-group {
        padding: 0;
    }

    .footer-link-group:first-child {
        padding-bottom: 1.75rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 230, 184, 0.55);
    }

    .footer-link-group ul {
        width: 100%;
        max-width: none;
        padding: 0;
        text-align: center;
    }

    .footer-link-group + .footer-link-group {
        padding-top: 0;
    }
}

.cookie-consent {
    position: fixed;
    z-index: 10000;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(390px, calc(100vw - 2.5rem));
    color: #3f1b0e;
    background: #fffaf0;
    border: 1px solid rgba(118, 52, 20, 0.24);
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(53, 22, 8, 0.28);
    animation: cookie-consent-in 0.35s ease-out both;
}

.cookie-consent--closing { animation: cookie-consent-out 0.25s ease-in both; }

.cookie-consent__content {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem;
}

.cookie-consent__copy { max-width: 760px; }

.cookie-consent__copy h2 {
    margin: 0 0 0.35rem;
    color: #6f2b12;
    font: 700 1rem/1.25 Optima, Candara, 'Gill Sans', 'Trebuchet MS', sans-serif;
}

.cookie-consent__copy p {
    margin: 0;
    color: #5b4439;
    font: 0.8rem/1.5 Arial, sans-serif;
}

.cookie-consent__copy a {
    color: #8c3d19;
    font-weight: 700;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    width: 100%;
    gap: 0.7rem;
}

.cookie-consent__button {
    flex: 1 1 0;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #7b3115;
    border-radius: 999px;
    cursor: pointer;
    font: 700 0.8rem/1 Arial, sans-serif;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.cookie-consent__button:hover { transform: translateY(-1px); }

.cookie-consent__button:focus-visible,
.cookie-consent__copy a:focus-visible {
    outline: 3px solid rgba(198, 116, 36, 0.45);
    outline-offset: 3px;
}

.cookie-consent__button--primary { color: #fff; background: #7b3115; }
.cookie-consent__button--primary:hover { background: #5f220e; }
.cookie-consent__button--secondary { color: #6f2b12; background: transparent; }
.cookie-consent__button--secondary:hover { background: #f4e6cf; }

@keyframes cookie-consent-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cookie-consent-out {
    to { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 720px) {
    .cookie-consent {
        right: 0.75rem;
        bottom: 0.75rem;
        width: min(360px, calc(100vw - 1.5rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent, .cookie-consent--closing { animation: none; }
    .cookie-consent__button { transition: none; }
}

@media (max-width: 768px) {
    .secondary-nav-btn.brochure-link {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        max-width: none !important;
        gap: 0;
        line-height: 1 !important;
        text-align: center;
        white-space: nowrap !important;
        font-size: 0 !important;
    }

    .secondary-nav-btn.brochure-link::before {
        content: '\21E9';
        font-size: 0.9rem;
        line-height: 1;
    }

    .brochure-mobile-line {
        display: inline;
        width: auto;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .secondary-nav {
        padding-left: 2% !important;
        padding-right: 2% !important;
    }

    .secondary-nav-btn {
        padding: 0.25rem 0.2rem !important;
        font-size: 0.58rem !important;
        letter-spacing: 0.15px !important;
    }

    .brochure-mobile-line {
        font-size: 0.58rem;
    }

    .publications-page .tool-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        gap: 0.55rem !important;
    }

    .publications-page .tool-row .filter-group {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .publications-page .tool-row .sort-select {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.78rem 0.55rem !important;
        font-size: 0.78rem !important;
    }

    .publications-page .tool-row .filter-label {
        font-size: 0.62rem !important;
        white-space: nowrap;
    }
}
