/**
 * BDF CMS — Military visual theme (reference-based)
 * Loaded after bdf-public.css. All rules scoped to body.bdf-theme-military.
 */

/* ==========================================================================
   Tokens
   ========================================================================== */
body.bdf-theme-military {
    --tm-green: #2f5d3a;
    --tm-green-dark: #1a2e1f;
    --tm-green-heading: #1f3525;
    --tm-charcoal: #2a2a2a;
    --tm-red: #a1222a;
    --tm-gold: #c8a348;
    --tm-brass: #a88b3a;
    --tm-white: #ffffff;
    --tm-cream: #f7f6f2;
    --tm-text: #3a3a38;
    --tm-text-muted: #6b6b65;
    --tm-header-h: clamp(84px, 10vh, 104px);
    --tm-header-crest-size: clamp(80px, 10vw, 104px);
    --tm-info-bar-h: clamp(72px, 9vh, 96px);
    --tm-hero-h: max(252px, calc((100svh - var(--bdf-header-offset, var(--tm-header-h)) - var(--tm-info-bar-h)) * 0.9));
    --tm-radius-btn: 3px;
    --tm-radius-card: 4px;
    --nameplate-red: #7e1013;
    --nameplate-red-deep: #5c0b0d;
    --nameplate-gold: #c8a348;
    --nameplate-border-gold: rgba(200, 163, 72, 0.72);
    --nameplate-shadow: 0 6px 18px rgba(20, 28, 22, 0.18);
    --nameplate-height: 60px;
    --nameplate-radius: 9px;
    --nameplate-emblem-opacity: 0.12;
    --nameplate-glass: rgba(16, 22, 18, 0.78);
}

@media (min-width: 1200px) {
    body.bdf-theme-military {
        --tm-header-crest-size: 104px;
        --tm-header-h: clamp(92px, 9.5vh, 108px);
    }
}

/* ==========================================================================
   Global — light institutional content, no photo filters
   ========================================================================== */
body.bdf-theme-military {
    background-color: #f3f1ea;
    background-image:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(47, 93, 58, 0.07), transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(200, 163, 72, 0.08), transparent 50%),
        repeating-linear-gradient(
            -42deg,
            transparent,
            transparent 32px,
            rgba(47, 93, 58, 0.022) 32px,
            rgba(47, 93, 58, 0.022) 33px
        );
    color: var(--tm-text);
    padding-top: 0 !important;
    margin-top: 0;
    position: relative;
}

body.bdf-theme-military > main {
    padding-top: 0 !important;
}

body.bdf-theme-military > header,
body.bdf-theme-military > main,
body.bdf-theme-military > .site-footer-wrap {
    position: relative;
    z-index: 1;
}

body.bdf-theme-military main > .hero-banner-shell:first-child {
    margin-top: 0;
    z-index: 2;
}

body.bdf-theme-military main > .internal-page-hero:first-child {
    margin-top: 0;
    z-index: 2;
}

body.bdf-theme-military h1,
body.bdf-theme-military h2,
body.bdf-theme-military h3,
body.bdf-theme-military h4,
body.bdf-theme-military h5,
body.bdf-theme-military h6 {
    color: var(--tm-green-heading);
}

body.bdf-theme-military main .bg-white,
body.bdf-theme-military main section.py-5 {
    background: #f9f7f2 !important;
    border-top: 1px solid rgba(200, 163, 72, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.bdf-theme-military main section.py-5 > .container,
body.bdf-theme-military main section:not(.hero-banner-shell) > .container {
    margin-left: auto;
    margin-right: auto;
}

body.bdf-theme-military main .bdf-theme-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

body.bdf-theme-military main .bdf-theme-section-head .bdf-theme-section-title,
body.bdf-theme-military main .bdf-theme-section-head .section-label.bdf-theme-section-title {
    margin-bottom: 0;
}

body.bdf-theme-military .hero-banner-inner.container {
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
}

body.bdf-theme-military main section.py-5:nth-of-type(even) {
    background: #f4f7f3 !important;
}

body.bdf-theme-military main section.section-camouflage {
    background: #f2f6f2 !important;
}

/* Welcome section — emblem watermark behind message column */
body.bdf-theme-military .bdf-theme-welcome-section {
    position: relative;
    overflow: hidden;
}

body.bdf-theme-military .bdf-theme-welcome-section .col-lg-8 {
    position: relative;
    isolation: isolate;
}

body.bdf-theme-military .bdf-theme-welcome-section .col-lg-8::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92%, 440px);
    height: min(100%, 460px);
    transform: translate(-50%, -50%);
    background: var(--theme-body-emblem) center / contain no-repeat;
    opacity: 0.085;
    pointer-events: none;
    z-index: 0;
}

body.bdf-theme-military .bdf-theme-welcome-section .col-lg-8 > * {
    position: relative;
    z-index: 1;
}

body.bdf-theme-military .text-muted {
    color: var(--tm-text-muted) !important;
}

/* Never tint photographs */
body.bdf-theme-military .hero-banner-image,
body.bdf-theme-military .card-bdf img,
body.bdf-theme-military .card-img-top,
body.bdf-theme-military .home-news-events-featured-image,
body.bdf-theme-military .home-news-events-additional-image,
body.bdf-theme-military .highlight-card-image,
body.bdf-theme-military .lead-command-image,
body.bdf-theme-military .hero-featured-panel-image,
body.bdf-theme-military img.img-fluid {
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* ==========================================================================
   Header
   ========================================================================== */
body.bdf-theme-military .bdf-theme-header-shell,
body.bdf-theme-military .bdf-theme-header-shell.fixed-top {
    position: static !important;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 1030;
    background: var(--tm-green-dark);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}

body.bdf-theme-military .bdf-theme-header-shell.bdf-theme-header-scrolled {
    background: #121a12;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
}

body.bdf-theme-military .bdf-theme-nav-ribbon {
    --tm-flag-notch: 4px;
    height: 3px;
    opacity: 1;
    background: linear-gradient(
        90deg,
        var(--tm-green) 0%,
        var(--tm-green) 22%,
        var(--tm-white) 22%,
        var(--tm-white) 28%,
        var(--tm-red) 28%,
        var(--tm-red) 72%,
        var(--tm-white) 72%,
        var(--tm-white) 78%,
        var(--tm-green) 78%,
        var(--tm-green) 100%
    );
    clip-path: polygon(
        0 50%,
        var(--tm-flag-notch) 0,
        calc(100% - var(--tm-flag-notch)) 0,
        100% 50%,
        calc(100% - var(--tm-flag-notch)) 100%,
        var(--tm-flag-notch) 100%
    );
}

body.bdf-theme-military .navbar-bdf {
    background: var(--tm-green-dark);
    border-bottom: 1px solid rgba(200, 163, 72, 0.45);
    box-shadow: none;
    padding: 0;
}

body.bdf-theme-military .navbar-bdf.fixed-top {
    position: static;
}

body.bdf-theme-military .navbar-bdf > .container {
    min-height: var(--tm-header-h);
    align-items: center;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

body.bdf-theme-military .navbar-bdf::after {
    display: none;
}

body.bdf-theme-military .navbar-bdf .navbar-brand {
    color: var(--tm-white) !important;
    border-right-color: rgba(200, 163, 72, 0.28);
    max-width: min(520px, 44vw);
}

body.bdf-theme-military .navbar-bdf .navbar-brand-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    align-items: center;
    animation: bdfThemeBrandFloat 7s ease-in-out infinite;
    will-change: transform;
}

body.bdf-theme-military .navbar-bdf .navbar-brand-title {
    color: var(--tm-white) !important;
    font-family: var(--font-display);
    font-size: clamp(1.24rem, 1.82vw, 1.5rem);
    letter-spacing: 0.11em;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    width: 100%;
    padding-left: 0;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

body.bdf-theme-military .navbar-bdf .navbar-brand:hover .navbar-brand-title {
    color: var(--tm-white) !important;
}

body.bdf-theme-military .navbar-bdf .navbar-brand-motto {
    color: var(--tm-gold) !important;
    letter-spacing: 0.12em;
    font-size: clamp(0.72rem, 1.05vw, 0.86rem);
    font-weight: 800;
    text-align: center;
    width: 100%;
    padding-left: 0;
    margin-top: 0.15rem;
    line-height: 1.2;
    text-shadow:
        0 1px 0 rgba(255, 250, 230, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.42),
        0 0 10px rgba(200, 163, 72, 0.22);
}

body.bdf-theme-military .navbar-bdf .navbar-brand:hover .navbar-brand-motto {
    color: #e8d49a !important;
}

@keyframes bdfThemeBrandFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -3px, 0);
    }
}

body.bdf-theme-military .bdf-theme-brand-crest {
    display: block;
    flex-shrink: 0;
    width: var(--tm-header-crest-size);
    height: var(--tm-header-crest-size);
}

body.bdf-theme-military .bdf-theme-brand-crest-ring {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(145deg, #e8d49a, var(--tm-gold), var(--tm-brass));
    box-shadow:
        0 0 16px rgba(200, 163, 72, 0.28),
        0 6px 20px rgba(0, 0, 0, 0.32);
}

body.bdf-theme-military .bdf-theme-brand-crest .bdf-header-emblem {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    background: #f8f5ee;
    padding: 4px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

body.bdf-theme-military .navbar-bdf .navbar-brand:hover .bdf-theme-brand-crest-ring {
    box-shadow:
        0 0 20px rgba(200, 163, 72, 0.38),
        0 8px 24px rgba(0, 0, 0, 0.36);
}

/* Navigation — bold dark military green, flat (active background preserved) */
body.bdf-theme-military .navbar-bdf .nav-link {
    position: relative;
    color: #2f5d3a !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.96rem;
    padding-bottom: 0.45rem;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    text-shadow: none;
    transform: none;
}

body.bdf-theme-military .navbar-bdf .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.15rem;
    width: 0;
    height: 2px;
    background: var(--bdf-khaki-300);
    transform: translateX(-50%);
    transition: width 0.28s ease;
    border-radius: 1px;
}

body.bdf-theme-military .navbar-bdf .nav-link:hover::after,
body.bdf-theme-military .navbar-bdf .nav-link:focus-visible::after {
    width: 1.6rem;
}

body.bdf-theme-military .navbar-bdf .nav-link.active::after,
body.bdf-theme-military .navbar-bdf .nav-link.is-branch-active::after {
    width: 1.9rem;
    background: var(--tm-gold);
}

/* Preserve existing active background / border / shadow from base styles */
body.bdf-theme-military .navbar-bdf .nav-link.active,
body.bdf-theme-military .navbar-bdf .nav-link.is-branch-active,
body.bdf-theme-military .navbar-bdf .nav-link.active:hover,
body.bdf-theme-military .navbar-bdf .nav-link.active:focus-visible,
body.bdf-theme-military .navbar-bdf .nav-link.is-branch-active:hover,
body.bdf-theme-military .navbar-bdf .nav-link.is-branch-active:focus-visible {
    color: var(--bdf-btn-active-color, var(--tm-white)) !important;
    background: var(--bdf-btn-active-bg) !important;
    border-color: var(--bdf-btn-active-border) !important;
    box-shadow: var(--bdf-shadow-nav-active) !important;
}

body.bdf-theme-military .navbar-bdf .nav-link:hover:not(.active):not(.is-branch-active),
body.bdf-theme-military .navbar-bdf .nav-link:focus-visible:not(.active):not(.is-branch-active) {
    color: #1a2e1f !important;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    text-shadow: none;
    transform: none;
}

body.bdf-theme-military .bdf-theme-header-shell.bdf-theme-header-scrolled .navbar-bdf .nav-link:not(.active):not(.is-branch-active) {
    color: #2f5d3a !important;
    text-shadow: none;
}

body.bdf-theme-military .bdf-theme-header-shell.bdf-theme-header-scrolled .navbar-bdf .nav-link:hover:not(.active):not(.is-branch-active),
body.bdf-theme-military .bdf-theme-header-shell.bdf-theme-header-scrolled .navbar-bdf .nav-link:focus-visible:not(.active):not(.is-branch-active) {
    color: #1a2e1f !important;
}

body.bdf-theme-military .bdf-theme-header-shell.bdf-theme-header-scrolled .navbar-bdf .nav-link.active,
body.bdf-theme-military .bdf-theme-header-shell.bdf-theme-header-scrolled .navbar-bdf .nav-link.is-branch-active {
    color: var(--tm-white) !important;
}

body.bdf-theme-military .navbar-bdf .dropdown-menu {
    background: var(--tm-green-dark);
    border-color: rgba(200, 163, 72, 0.35);
}

body.bdf-theme-military .navbar-bdf .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

body.bdf-theme-military .navbar-bdf .dropdown-item:hover {
    background: rgba(200, 163, 72, 0.12);
    color: var(--tm-white);
}

body.bdf-theme-military .navbar-bdf .search-box {
    max-width: 168px;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
    align-items: center;
    gap: 0.2rem;
    border-radius: 0;
}

body.bdf-theme-military .navbar-bdf .search-box .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(200, 163, 72, 0.18) !important;
    border-radius: 999px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.38rem 0.8rem;
    min-height: auto;
    box-shadow: none !important;
    transition: border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

body.bdf-theme-military .navbar-bdf .search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.bdf-theme-military .navbar-bdf .search-box .form-control:focus {
    background: rgba(200, 163, 72, 0.08) !important;
    border-color: rgba(200, 163, 72, 0.42) !important;
    box-shadow: none !important;
}

body.bdf-theme-military .navbar-bdf .search-box .btn-bdf.btn-sm {
    position: relative;
    width: 1.9rem !important;
    height: 1.9rem !important;
    min-width: 1.9rem !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: none !important;
    transform: none !important;
}

body.bdf-theme-military .navbar-bdf .search-box .btn-bdf.btn-sm::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.1rem;
    width: 0;
    height: 3px;
    background: var(--tm-red);
    transform: translateX(-50%);
    transition: width 0.28s ease;
    border-radius: 1px;
}

body.bdf-theme-military .navbar-bdf .search-box .btn-bdf.btn-sm:hover,
body.bdf-theme-military .navbar-bdf .search-box .btn-bdf.btn-sm:focus-visible {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--tm-white) !important;
    box-shadow: none !important;
    transform: none !important;
}

body.bdf-theme-military .navbar-bdf .search-box .btn-bdf.btn-sm:hover::after,
body.bdf-theme-military .navbar-bdf .search-box .btn-bdf.btn-sm:focus-visible::after {
    width: 1.25rem;
}

body.bdf-theme-military .navbar-bdf .search-box .btn-bdf.btn-sm:active {
    background: transparent !important;
    transform: none !important;
}

body.bdf-theme-military .navbar-bdf .navbar-toggler {
    border-color: rgba(200, 163, 72, 0.5);
}

body.bdf-theme-military .navbar-bdf .navbar-toggler-icon {
    filter: invert(1);
}

/* ==========================================================================
   Hero — compact fold, natural photos, text on scrim
   ========================================================================== */
body.bdf-theme-military .hero-banner-shell {
    position: relative;
    padding-block: 0 !important;
}

body.bdf-theme-military .hero-banner-shell > .hero-banner-container {
    padding-inline: 0;
    max-width: 100%;
}

body.bdf-theme-military .hero-banner {
    min-height: var(--tm-hero-h) !important;
    max-height: none !important;
    height: var(--tm-hero-h) !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

body.bdf-theme-military .hero-banner-text-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.32) 28%,
        rgba(0, 0, 0, 0.12) 48%,
        transparent 68%
    ) !important;
}

body.bdf-theme-military .hero-banner-scrim {
    z-index: 1;
    background: transparent !important;
}

/* Featured Panel — visible beside hero copy (was previously force-hidden). */
body.bdf-theme-military .hero-banner-layout--with-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) !important;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
}

body.bdf-theme-military .hero-featured-panel,
body.bdf-theme-military .hero-banner-layout--with-panel .hero-featured-panel {
    display: block !important;
    width: 100%;
    max-width: min(100%, 20rem);
    margin: 0;
    justify-self: end;
    align-self: center;
    border-radius: 0.35rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
    background: rgba(0, 0, 0, 0.2);
}

body.bdf-theme-military .hero-featured-panel-image {
    width: 100%;
    max-height: calc(var(--tm-hero-h) - 2.5rem);
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: var(--bdf-photo-fit, cover);
    object-position: var(--bdf-photo-position, top center);
    display: block;
}

body.bdf-theme-military .hero-banner-foreground {
    z-index: 3;
}

body.bdf-theme-military .hero-banner-inner {
    justify-content: center;
    align-items: flex-start;
    padding-top: clamp(0.75rem, 2vh, 1.25rem) !important;
    padding-bottom: clamp(1rem, 2.5vh, 1.75rem) !important;
}

body.bdf-theme-military .hero-banner-inner::before {
    flex: 0 0 0 !important;
    min-height: 0 !important;
    display: none !important;
}

body.bdf-theme-military .hero-banner-layout {
    align-items: center;
    max-height: none !important;
    width: 100%;
}

body.bdf-theme-military .hero-banner-copy {
    background: transparent !important;
    padding: 0 !important;
    max-width: 40rem;
    box-shadow: none !important;
    border: none !important;
    gap: 0.5rem;
}

body.bdf-theme-military .hero-banner-copy .hero-banner-eyebrow,
body.bdf-theme-military .hero-banner-copy .hero-banner-motto {
    color: var(--hero-subtitle-color, var(--tm-red)) !important;
    font-size: clamp(0.9rem, 1.35vw, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    margin-bottom: 0.55rem;
    line-height: 1.35;
}

body.bdf-theme-military .hero-banner-copy .hero-banner-title {
    color: var(--hero-title-color, #d8ead9) !important;
    font-size: clamp(2.22rem, 5.4vw, 3.9rem) !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.02;
    text-shadow:
        0 3px 14px rgba(0, 0, 0, 0.68),
        0 6px 28px rgba(0, 0, 0, 0.42),
        0 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.55rem;
}

body.bdf-theme-military .hero-banner-copy .hero-banner-intro {
    color: var(--hero-intro-color, rgba(255, 255, 255, 0.94)) !important;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 600;
    line-height: 1.55;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    max-width: 36rem;
}

body.bdf-theme-military .bdf-theme-hero-cta-block {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
}

body.bdf-theme-military .bdf-theme-hero-cta-block .hero-banner-actions {
    margin-top: 0;
}

body.bdf-theme-military .bdf-theme-hero-rule {
    --tm-flag-notch: 4px;
    height: 2px;
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-bottom: 0.55rem;
    opacity: 0.82;
    background: linear-gradient(
        90deg,
        rgba(47, 93, 58, 0.92) 0%,
        rgba(47, 93, 58, 0.92) 22%,
        rgba(255, 255, 255, 0.88) 22%,
        rgba(255, 255, 255, 0.88) 28%,
        rgba(161, 34, 42, 0.9) 28%,
        rgba(161, 34, 42, 0.9) 72%,
        rgba(255, 255, 255, 0.88) 72%,
        rgba(255, 255, 255, 0.88) 78%,
        rgba(47, 93, 58, 0.92) 78%,
        rgba(47, 93, 58, 0.92) 100%
    );
    clip-path: polygon(
        0 50%,
        var(--tm-flag-notch) 0,
        calc(100% - var(--tm-flag-notch)) 0,
        100% 50%,
        calc(100% - var(--tm-flag-notch)) 100%,
        var(--tm-flag-notch) 100%
    );
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

body.bdf-theme-military .hero-banner-actions {
    margin-top: 0.85rem;
    gap: 0.65rem;
}

body.bdf-theme-military .hero-banner-actions .bdf-theme-btn-primary,
body.bdf-theme-military .hero-banner-actions .btn-bdf-red.bdf-theme-btn-primary {
    background: var(--tm-green-dark) !important;
    border: 1px solid rgba(200, 163, 72, 0.55) !important;
    color: var(--tm-gold) !important;
    border-radius: var(--tm-radius-btn);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
}

body.bdf-theme-military .hero-banner-actions .bdf-theme-btn-primary:hover,
body.bdf-theme-military .hero-banner-actions .bdf-theme-btn-primary:focus-visible {
    background: var(--tm-green) !important;
    border-color: var(--tm-gold) !important;
    color: var(--tm-white) !important;
}

body.bdf-theme-military .hero-banner-actions .bdf-theme-btn-secondary,
body.bdf-theme-military .hero-banner-actions .btn-hero-news.bdf-theme-btn-secondary {
    background: var(--tm-red) !important;
    border: 1px solid var(--tm-red) !important;
    color: var(--tm-white) !important;
    border-radius: var(--tm-radius-btn);
    backdrop-filter: none;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
}

body.bdf-theme-military .hero-banner-actions .bdf-theme-btn-secondary:hover {
    background: #8a1d24 !important;
    border-color: #8a1d24 !important;
}

body.bdf-theme-military .hero-banner-actions .btn-join-us {
    background: transparent;
    border: 2px solid var(--tm-gold);
    color: var(--tm-white) !important;
    border-radius: var(--tm-radius-btn);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.bdf-theme-military .hero-banner-indicators .active {
    background-color: var(--tm-red);
}

/* ==========================================================================
   Information bar (reference)
   ========================================================================== */
body.bdf-theme-military .bdf-theme-info-bar {
    background: var(--tm-green-dark);
    border-top: 1px solid rgba(200, 163, 72, 0.35);
    border-bottom: 1px solid rgba(200, 163, 72, 0.35);
    min-height: var(--tm-info-bar-h);
}

body.bdf-theme-military .bdf-theme-info-bar-cell + .bdf-theme-info-bar-cell {
    border-left: 1px solid rgba(200, 163, 72, 0.22);
}

body.bdf-theme-military .bdf-theme-info-bar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: clamp(0.65rem, 1.5vw, 0.9rem) clamp(0.85rem, 2vw, 1.35rem);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: background 0.25s ease;
}

body.bdf-theme-military .bdf-theme-info-bar-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

body.bdf-theme-military .bdf-theme-info-bar-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--tm-white);
}

body.bdf-theme-military .bdf-theme-info-bar-icon--green {
    background: var(--tm-green);
    border: 1px solid rgba(200, 163, 72, 0.45);
}

body.bdf-theme-military .bdf-theme-info-bar-icon--red {
    background: var(--tm-red);
    border: 1px solid rgba(200, 163, 72, 0.35);
}

body.bdf-theme-military .bdf-theme-info-bar-copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

body.bdf-theme-military .bdf-theme-info-bar-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tm-white);
}

body.bdf-theme-military .bdf-theme-info-bar-summary {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

body.bdf-theme-military .bdf-theme-info-bar-cta {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tm-gold);
    margin-top: 0.15rem;
}

body.bdf-theme-military .bdf-theme-info-bar-cta .fa-chevron-right {
    font-size: 0.62rem;
    margin-left: 0.15rem;
}

/* ==========================================================================
   Section headings — red + gold signature underline (main sections only)
   ========================================================================== */
body.bdf-theme-military .section-label.bdf-theme-section-title {
    display: block;
    width: 100%;
    background: none;
    color: var(--tm-green-heading);
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.75vw, 1.9375rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0 0 0.65rem;
    margin-bottom: 1.25rem;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

body.bdf-theme-military .section-label.bdf-theme-section-title::after {
    content: "";
    display: block;
    height: 3px;
    margin-top: 0.55rem;
    border-radius: 0;
    background: linear-gradient(
        90deg,
        var(--tm-red) 0,
        var(--tm-red) 3.5rem,
        var(--tm-gold) 3.5rem,
        var(--tm-gold) 100%
    );
    max-width: 100%;
}

body.bdf-theme-military .section-label:not(.bdf-theme-section-title) {
    display: inline-block;
    width: auto;
    background: transparent;
    color: var(--tm-green-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0;
    margin-bottom: 0.75rem;
    box-shadow: none;
}

body.bdf-theme-military .section-label:not(.bdf-theme-section-title)::after {
    display: none;
}

body.bdf-theme-military .internal-page-hero .section-label,
body.bdf-theme-military .section-label.text-white-50 {
    color: var(--tm-white);
    background: transparent;
    border: none;
}

body.bdf-theme-military .home-leadership-card .section-label {
    display: inline-block;
    background: var(--tm-green-dark);
    color: var(--tm-gold);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    padding: 0.4rem 0.85rem;
    margin-bottom: 0.65rem;
    border-radius: 2px;
}

body.bdf-theme-military .bdf-theme-image-card {
    overflow: hidden;
    border-top: none;
}

body.bdf-theme-military .bdf-theme-image-card .highlight-card-image {
    height: 220px !important;
    object-fit: var(--bdf-photo-fit, cover) !important;
    object-position: var(--bdf-photo-position, top center);
    display: block;
}

body.bdf-theme-military .bdf-theme-image-card .card-body {
    position: relative;
    margin-top: -3.25rem;
    padding-top: 0;
    z-index: 2;
}

body.bdf-theme-military .bdf-theme-image-card .card-body > .section-label {
    display: block;
    width: 100%;
    background: var(--tm-green-dark);
    color: var(--tm-white);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    padding: 0.65rem 1rem;
    margin: 0 0 0.85rem;
    border-left: 3px solid var(--tm-red);
}

body.bdf-theme-military .bdf-theme-commands-summary-card .card-body {
    margin-top: 0;
    padding: 1rem 1.15rem 1.15rem;
}

body.bdf-theme-military .bdf-theme-commands-summary-card .commands-summary-list {
    margin-top: 0;
}

/* ==========================================================================
   Cards
   ========================================================================== */
body.bdf-theme-military .card-bdf {
    position: relative;
    z-index: 1;
    background: var(--tm-white);
    border: 1px solid rgba(200, 163, 72, 0.28);
    border-radius: var(--tm-radius-card);
    box-shadow: 0 8px 24px rgba(31, 53, 37, 0.07);
    color: var(--tm-text);
}

body.bdf-theme-military .card-bdf:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 163, 72, 0.55);
    box-shadow: 0 14px 32px rgba(31, 53, 37, 0.12);
}

body.bdf-theme-military .card-bdf .card-title,
body.bdf-theme-military .card-bdf h3,
body.bdf-theme-military .card-bdf h4,
body.bdf-theme-military .card-bdf h5 {
    color: var(--tm-green-heading);
}

/* ==========================================================================
   Buttons — match active header link colours (gold / white / red accent)
   ========================================================================== */
body.bdf-theme-military .btn-bdf {
    position: relative;
    background: var(--tm-green-dark);
    border: 1px solid rgba(200, 163, 72, 0.55);
    color: var(--tm-gold) !important;
    border-radius: var(--tm-radius-btn);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(26, 46, 31, 0.14);
}

body.bdf-theme-military .btn-bdf:hover,
body.bdf-theme-military .btn-bdf:focus-visible {
    background: var(--tm-green);
    border-color: var(--tm-gold);
    color: var(--tm-white) !important;
    box-shadow: 0 6px 18px rgba(26, 46, 31, 0.2);
}

body.bdf-theme-military .btn-bdf-outline {
    background: transparent;
    border: 1px solid var(--tm-green-dark);
    color: var(--tm-green-dark) !important;
    border-radius: var(--tm-radius-btn);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.bdf-theme-military .btn-bdf-outline:hover,
body.bdf-theme-military .btn-bdf-outline:focus-visible {
    background: var(--tm-green-dark);
    border-color: var(--tm-gold);
    color: var(--tm-gold) !important;
}

body.bdf-theme-military .btn-bdf-red {
    background: var(--tm-red);
    border-color: var(--tm-red);
    color: var(--tm-white) !important;
    border-radius: var(--tm-radius-btn);
}

body.bdf-theme-military .btn-bdf-red:hover {
    background: #8a1d24;
    border-color: #8a1d24;
}

body.bdf-theme-military .btn-cta,
body.bdf-theme-military .btn-join-us {
    border-radius: var(--tm-radius-btn);
}

/* ==========================================================================
   Watermarks — faint, never over readable content or photos
   ========================================================================== */
body.bdf-theme-military .home-leadership-card .bdf-portrait-circle-wrap,
body.bdf-theme-military .lead-profile-card .bdf-portrait-circle-wrap {
    position: relative;
    isolation: isolate;
}

body.bdf-theme-military .home-leadership-card .bdf-portrait-circle-wrap::before,
body.bdf-theme-military .lead-profile-card .bdf-portrait-circle-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.09;
    background-image:
        var(--theme-emblem-watermark),
        var(--theme-emblem-watermark),
        var(--theme-emblem-watermark),
        var(--theme-emblem-watermark);
    background-repeat: no-repeat;
    background-size: 28px auto, 28px auto, 28px auto, 28px auto;
    background-position: 10% 22%, 90% 22%, 12% 78%, 88% 78%;
}

body.bdf-theme-military .home-leadership-card .bdf-portrait-circle,
body.bdf-theme-military .lead-profile-card .bdf-portrait-circle {
    position: relative;
    z-index: 2;
}

/* Leadership ceremonial nameplates */
body.bdf-theme-military .lead-profile-card__nameplate-wrap {
    padding-inline: 1rem;
    margin-top: -0.35rem;
    margin-bottom: 0.15rem;
}

body.bdf-theme-military .home-leadership-card__nameplate-wrap {
    padding-inline: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.65rem;
    max-width: min(100%, 12.5rem);
    margin-left: auto;
    margin-right: auto;
}

body.bdf-theme-military .home-leadership-card .command-nameplate {
    min-height: 2.5rem;
    padding: 0.3rem 0.55rem;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(20, 28, 22, 0.14);
}

body.bdf-theme-military .home-leadership-card .rank-stars__glyph {
    font-size: 0.95rem;
}

body.bdf-theme-military .lead-commander-feature__nameplate-wrap {
    max-width: 360px;
}

body.bdf-theme-military .bdf-leadership-section .lead-commander-feature__nameplate-wrap {
    max-width: min(100%, 16.75rem);
    margin-top: 0;
    margin-bottom: 0.5rem;
    margin-left: 0;
    margin-right: auto;
}

body.bdf-theme-military .bdf-leadership-section .lead-profile-card__nameplate-wrap {
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding-inline: 0.85rem;
}

body.bdf-theme-military .bdf-leadership-section .lead-profile-card__nameplate-wrap .command-nameplate.leadership-nameplate,
body.bdf-theme-military .bdf-leadership-section .lead-commander-feature__nameplate-wrap .command-nameplate.leadership-nameplate,
body.bdf-theme-military .ceremonial-nameplate-wrap .command-nameplate.leadership-nameplate {
    min-height: 3.15rem;
    padding: 0.42rem 0.75rem 0.48rem;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(20, 28, 22, 0.15);
}

body.bdf-theme-military .bdf-leadership-section .lead-profile-card__nameplate-wrap .rank-stars__glyph,
body.bdf-theme-military .ceremonial-nameplate-wrap .rank-stars__glyph {
    color: var(--nameplate-gold);
}

body.bdf-theme-military .home-leadership-card .rank-stars {
    justify-content: space-evenly;
}

body.bdf-theme-military .home-leadership-card .rank-stars__glyph {
    color: var(--nameplate-gold);
}

body.bdf-theme-military .lead-cic-feature__nameplate-wrap {
    max-width: min(100%, 520px);
    padding-inline: 0.5rem;
}

body.bdf-theme-military .command-nameplate {
    border-color: var(--nameplate-border-gold);
    box-shadow: var(--nameplate-shadow);
}

body.bdf-theme-military .leadership-nameplate {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--nameplate-red) 92%, #ffffff 8%) 0%,
        var(--nameplate-red-deep) 100%
    );
}

body.bdf-theme-military .leadership-nameplate::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%, rgba(0, 0, 0, 0.12) 100%);
}

body.bdf-theme-military .commander-nameplate {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 38%, rgba(0, 0, 0, 0.14) 100%),
        var(--nameplate-glass);
    border-color: var(--nameplate-border-gold);
}

body.bdf-theme-military .commander-nameplate__emblem {
    opacity: var(--nameplate-emblem-opacity);
}

body.bdf-theme-military .rank-stars__glyph {
    color: var(--nameplate-gold);
}

body.bdf-theme-military .rank-title {
    color: rgba(255, 255, 255, 0.97);
}

body.bdf-theme-military .lead-cic-feature-card .commander-nameplate__name {
    color: var(--nameplate-gold);
}

body.bdf-theme-military .bdf-portrait-circle-wrap:has(img[src*="placeholders/"])::after,
body.bdf-theme-military .home-news-card-media:has(img[src*="placeholders/"])::after,
body.bdf-theme-military .home-news-events-featured-media:has(img[src*="placeholders/"])::after,
body.bdf-theme-military .home-news-events-additional-media:has(img[src*="placeholders/"])::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42%;
    height: 58%;
    max-width: 96px;
    max-height: 120px;
    background: var(--theme-emblem-watermark) center / contain no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

body.bdf-theme-military .highlight-card:has(img[src*="placeholders/"])::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 220px;
    transform: none;
    width: auto;
    max-width: none;
    max-height: none;
    background: var(--theme-emblem-watermark) center / 38% no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

body.bdf-theme-military .highlight-card:has(img[src*="placeholders/"]) {
    position: relative;
}

body.bdf-theme-military .home-news-card-media,
body.bdf-theme-military .home-news-events-featured-media,
body.bdf-theme-military .home-news-events-additional-media {
    position: relative;
}

body.bdf-theme-military .home-news-card-media:has(img[src*="placeholders/"]) img,
body.bdf-theme-military .home-news-events-featured-media:has(img[src*="placeholders/"]) img,
body.bdf-theme-military .home-news-events-additional-media:has(img[src*="placeholders/"]) img,
body.bdf-theme-military .bdf-portrait-circle-wrap:has(img[src*="placeholders/"]) .bdf-portrait-circle,
body.bdf-theme-military .highlight-card:has(img[src*="placeholders/"]) .highlight-card-image {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Footer
   ========================================================================== */
body.bdf-theme-military .site-footer-wrap {
    position: relative;
}

body.bdf-theme-military .site-footer::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--theme-footer-emblem-size, min(72%, 300px));
    height: var(--theme-footer-emblem-size, min(72%, 300px));
    z-index: 2;
    pointer-events: none;
    background: var(--theme-footer-emblem) center / contain no-repeat;
    opacity: 0.065;
}

body.bdf-theme-military .site-footer-bg {
    background-color: var(--tm-green-dark);
}

body.bdf-theme-military .site-footer-overlay {
    background: linear-gradient(180deg, rgba(20, 28, 20, 0.94), rgba(26, 46, 31, 0.9));
    z-index: 1;
}

body.bdf-theme-military .site-footer-content {
    position: relative;
    z-index: 3;
}

body.bdf-theme-military .site-footer h5 {
    color: var(--tm-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(200, 163, 72, 0.35);
    padding-bottom: 0.35rem;
}

body.bdf-theme-military .site-footer a {
    color: rgba(255, 255, 255, 0.88);
}

body.bdf-theme-military .site-footer a:hover {
    color: var(--tm-gold);
}

body.bdf-theme-military .copyright-bar {
    background: #0e140e;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(200, 163, 72, 0.28);
}

body.bdf-theme-military .bdf-flag-strip {
    height: 4px;
}

/* ==========================================================================
   Internal pages — homepage-aligned presentation
   ========================================================================== */

/* Page banners: match Heritage .heritage-hero (homepage hero unchanged) */
body.bdf-theme-military .internal-page-hero {
    position: relative;
    overflow: hidden;
    aspect-ratio: auto;
    min-height: clamp(210px, 30vh, 320px);
    height: clamp(210px, 30vh, 320px);
    max-height: none;
    margin-bottom: 0;
    border-bottom: 2px solid rgba(200, 163, 72, 0.35);
    background: var(--tm-green-dark);
}

body.bdf-theme-military .page-header {
    position: relative;
    overflow: hidden;
    min-height: clamp(210px, 30vh, 320px);
    margin-bottom: 0;
    border-bottom: 2px solid rgba(200, 163, 72, 0.35);
    background: var(--tm-green-dark);
}

body.bdf-theme-military .internal-page-hero-carousel,
body.bdf-theme-military .internal-page-hero-image {
    filter: none !important;
}

body.bdf-theme-military .internal-page-hero-image {
    object-position: var(--bdf-photo-position, top center);
    opacity: 1 !important;
}

body.bdf-theme-military .internal-page-hero-overlay {
    background: linear-gradient(
        102deg,
        rgba(26, 46, 31, 0.48) 0%,
        rgba(26, 46, 31, 0.2) 40%,
        rgba(26, 46, 31, 0.06) 68%,
        transparent 90%
    ) !important;
}

body.bdf-theme-military .internal-page-hero-content {
    padding: clamp(2rem, 4.5vh, 3rem) 0;
    min-height: clamp(210px, 30vh, 320px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.bdf-theme-military .internal-page-hero h1,
body.bdf-theme-military .page-header h1 {
    color: #fff !important;
    font-size: clamp(1.3rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
    line-height: 1.08;
}

body.bdf-theme-military .internal-page-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
}

body.bdf-theme-military .internal-page-hero .breadcrumb-bdf,
body.bdf-theme-military .internal-page-hero .breadcrumb-bdf a {
    color: var(--tm-gold);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

body.bdf-theme-military .internal-page-hero-indicators [data-bs-target] {
    border-color: rgba(255, 255, 255, 0.75);
    background-color: rgba(255, 255, 255, 0.35);
}

body.bdf-theme-military .internal-page-hero-indicators .active {
    background-color: var(--tm-gold);
}

/* Intro blocks — emblem watermark */
body.bdf-theme-military .bdf-theme-intro-block,
body.bdf-theme-military .services-intro {
    position: relative;
    overflow: hidden;
    background: #fff !important;
    border-left: 3px solid var(--tm-red) !important;
}

body.bdf-theme-military .about-bdf-strip-bg.bdf-theme-intro-block {
    background: #fff !important;
}

body.bdf-theme-military .bdf-theme-intro-block .about-bdf-intro-body {
    position: relative;
    isolation: isolate;
}

body.bdf-theme-military .bdf-theme-intro-block .about-bdf-intro-body::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(88%, 420px);
    height: min(100%, 380px);
    transform: translate(-50%, -50%);
    background: var(--theme-body-emblem) center / contain no-repeat;
    opacity: 0.085;
    pointer-events: none;
    z-index: 0;
}

body.bdf-theme-military .bdf-theme-intro-block .about-bdf-intro-body > * {
    position: relative;
    z-index: 1;
}

body.bdf-theme-military .services-intro::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(72%, 320px);
    height: min(92%, 360px);
    transform: translate(-50%, -50%);
    background: var(--theme-body-emblem) center / contain no-repeat;
    opacity: 0.085;
    pointer-events: none;
    z-index: 0;
}

body.bdf-theme-military .services-intro > * {
    position: relative;
    z-index: 1;
}

body.bdf-theme-military .bdf-theme-intro-block h2 {
    color: var(--tm-green-heading);
    font-family: var(--font-display);
    font-size: var(--bdf-internal-section);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    position: relative;
}

body.bdf-theme-military .bdf-theme-intro-block h2::after {
    content: "";
    display: block;
    height: 3px;
    margin-top: 0.55rem;
    background: linear-gradient(
        90deg,
        var(--tm-red) 0,
        var(--tm-red) 3.5rem,
        var(--tm-gold) 3.5rem,
        var(--tm-gold) 100%
    );
    max-width: 100%;
}

/* Expandable menus — Defence Council tile reference (stable text colour) */
body.bdf-theme-military .cms-expandable,
body.bdf-theme-military .bdf-collapsible-group {
    --cms-expandable-text: var(--tm-green-heading);
    --cms-expandable-text-muted: var(--tm-text-muted);
    --cms-expandable-bg: #fff;
    --cms-expandable-bg-hover: var(--tm-cream);
    --cms-expandable-border: rgba(200, 163, 72, 0.28);
    --cms-expandable-radius: var(--tm-radius-card);
    border: 1px solid var(--cms-expandable-border);
    border-radius: var(--cms-expandable-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 53, 37, 0.06);
}

body.bdf-theme-military .cms-expandable > .accordion-item,
body.bdf-theme-military .cms-expandable .bdf-collapsible-item,
body.bdf-theme-military .bdf-collapsible-group .bdf-collapsible-item,
body.bdf-theme-military .bdf-collapsible-group > .accordion-item {
    border-color: rgba(200, 163, 72, 0.18);
}

body.bdf-theme-military .cms-expandable .accordion-button,
body.bdf-theme-military .bdf-collapsible-trigger,
body.bdf-theme-military .cms-expandable .accordion-button:not(.collapsed),
body.bdf-theme-military .bdf-collapsible-trigger:not(.collapsed),
body.bdf-theme-military .cms-expandable-trigger,
body.bdf-theme-military .cms-expandable-trigger:not(.collapsed) {
    background-color: var(--cms-expandable-bg) !important;
    color: var(--cms-expandable-text) !important;
    font-weight: 700;
    box-shadow: none;
}

body.bdf-theme-military .cms-expandable .accordion-button:not(.collapsed),
body.bdf-theme-military .bdf-collapsible-trigger:not(.collapsed) {
    box-shadow: inset 0 -1px 0 rgba(200, 163, 72, 0.18);
}

body.bdf-theme-military .cms-expandable .accordion-button:hover,
body.bdf-theme-military .cms-expandable .accordion-button:focus,
body.bdf-theme-military .cms-expandable .accordion-button:not(.collapsed):hover,
body.bdf-theme-military .bdf-collapsible-trigger:hover,
body.bdf-theme-military .bdf-collapsible-trigger:focus,
body.bdf-theme-military .bdf-collapsible-trigger:not(.collapsed):hover {
    background-color: var(--cms-expandable-bg-hover) !important;
    color: var(--cms-expandable-text) !important;
}

body.bdf-theme-military .cms-expandable .accordion-button .bdf-collapsible-meta,
body.bdf-theme-military .cms-expandable .accordion-button:not(.collapsed) .bdf-collapsible-meta,
body.bdf-theme-military .cms-expandable .accordion-button .text-muted,
body.bdf-theme-military .cms-expandable .accordion-button:not(.collapsed) .text-muted,
body.bdf-theme-military .bdf-collapsible-trigger .bdf-collapsible-meta,
body.bdf-theme-military .bdf-collapsible-trigger:not(.collapsed) .bdf-collapsible-meta,
body.bdf-theme-military .bdf-collapsible-trigger .text-muted,
body.bdf-theme-military .bdf-collapsible-trigger:not(.collapsed) .text-muted {
    color: var(--cms-expandable-text-muted) !important;
}

body.bdf-theme-military .cms-expandable .accordion-body,
body.bdf-theme-military .bdf-collapsible-body {
    background: #fff;
}

/* Internal content cards */
body.bdf-theme-military .news-featured-content,
body.bdf-theme-military .news-grid-card,
body.bdf-theme-military .news-card,
body.bdf-theme-military .pub-card,
body.bdf-theme-military .about-bdf-tile,
body.bdf-theme-military .lead-command-tile,
body.bdf-theme-military .media-gallery-tile,
body.bdf-theme-military .recruit-tile {
    background: #fff;
    border-color: rgba(200, 163, 72, 0.28);
}

body.bdf-theme-military .news-featured-image,
body.bdf-theme-military .news-card-thumb,
body.bdf-theme-military .about-bdf-tile-image,
body.bdf-theme-military .lead-command-image {
    filter: none !important;
}

body.bdf-theme-military .badge-bdf {
    background: var(--tm-green-dark);
    color: var(--tm-gold);
    font-weight: 700;
    letter-spacing: 0.06em;
}

body.bdf-theme-military .about-bdf-stat {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(200, 163, 72, 0.24);
}

body.bdf-theme-military .about-bdf-stat-value {
    color: var(--tm-green-heading);
}

body.bdf-theme-military .about-bdf-tile-icon {
    background: rgba(47, 93, 58, 0.1);
    color: var(--tm-green);
}

/* Feature bands — lighter overlays so background imagery stays visible */
body.bdf-theme-military .about-bdf-glance::before,
body.bdf-theme-military .about-bdf-org-overlay,
body.bdf-theme-military .about-bdf-cta-overlay,
body.bdf-theme-military .lead-cta-overlay,
body.bdf-theme-military .lead-commander-feature-overlay,
body.bdf-theme-military .lead-cic-feature-overlay,
body.bdf-theme-military .pub-cta-overlay,
body.bdf-theme-military .contact-office-overlay,
body.bdf-theme-military .contact-map-overlay,
body.bdf-theme-military .contact-methods-overlay,
body.bdf-theme-military .recruit-cta-overlay,
body.bdf-theme-military .recruit-process-overlay,
body.bdf-theme-military .bagaka-ba-pele-hero-overlay {
    background: linear-gradient(
        110deg,
        rgba(26, 46, 31, 0.5) 0%,
        rgba(26, 46, 31, 0.26) 50%,
        rgba(26, 46, 31, 0.12) 100%
    ) !important;
}

body.bdf-theme-military .article-body {
    color: var(--tm-text);
}

body.bdf-theme-military .article-body h2,
body.bdf-theme-military .article-body h3 {
    color: var(--tm-green-heading);
}

body.bdf-theme-military .about-rank-structure-tile {
    background: #fff;
    border-color: rgba(200, 163, 72, 0.28);
    border-top: 2px solid var(--tm-red);
}

body.bdf-theme-military .about-rank-structure-tile-title {
    color: var(--tm-green-heading);
}

body.bdf-theme-military .about-rank-structure-tile-desc {
    color: var(--tm-text-muted);
}

body.bdf-theme-military .about-rank-structure-tile-image {
    filter: none !important;
    object-fit: cover;
}

body.bdf-theme-military .about-rank-structure-tile-media {
    background: rgba(26, 58, 42, 0.06);
}

body.bdf-theme-military .about-uniform-dress-tile {
    background: #fff;
    border-color: rgba(200, 163, 72, 0.28);
    border-left-color: var(--tm-red);
}

body.bdf-theme-military .about-uniform-dress-tile-title {
    color: var(--tm-green-heading);
}

body.bdf-theme-military .about-uniform-dress-tile-desc {
    color: var(--tm-text-muted);
}

body.bdf-theme-military .about-uniform-dress-tile-media {
    background: rgba(26, 58, 42, 0.06);
}

body.bdf-theme-military .about-uniform-dress-tile-image {
    filter: none !important;
}

body.bdf-theme-military .alert-bdf {
    background: var(--tm-white);
    border-color: rgba(200, 163, 72, 0.4);
    color: var(--tm-text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1199.98px) {
    body.bdf-theme-military {
        --tm-header-crest-size: clamp(76px, 11vw, 96px);
    }
}

@media (max-width: 767.98px) {
    body.bdf-theme-military {
        --tm-header-h: clamp(76px, 13vw, 92px);
        --tm-header-crest-size: clamp(64px, 16vw, 76px);
        --tm-info-bar-h: auto;
        --tm-hero-h: max(216px, calc((100svh - var(--bdf-header-offset, 76px) - 140px) * 0.9));
    }

    body.bdf-theme-military .bdf-theme-info-bar-cell + .bdf-theme-info-bar-cell {
        border-left: none;
        border-top: 1px solid rgba(200, 163, 72, 0.22);
    }

    body.bdf-theme-military .hero-banner-copy {
        max-width: 100%;
    }

    body.bdf-theme-military .hero-banner-layout--with-panel {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem;
    }

    body.bdf-theme-military .hero-featured-panel,
    body.bdf-theme-military .hero-banner-layout--with-panel .hero-featured-panel {
        max-width: min(72%, 16rem);
        justify-self: center;
        max-height: none;
    }

    body.bdf-theme-military .hero-featured-panel-image {
        max-height: 14rem;
        aspect-ratio: 16 / 10;
    }

    body.bdf-theme-military .hero-banner-actions .btn {
        width: 100%;
        justify-content: center;
    }

    body.bdf-theme-military .navbar-bdf .navbar-brand {
        max-width: min(260px, 62vw);
    }

    body.bdf-theme-military .navbar-bdf .navbar-brand-title {
        font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    }

    body.bdf-theme-military .navbar-bdf .navbar-brand-motto {
        font-size: clamp(0.72rem, 3.2vw, 0.82rem);
    }

    body.bdf-theme-military .navbar-bdf .search-box {
        max-width: 100%;
        margin-top: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.bdf-theme-military .navbar-bdf .navbar-brand-text {
        animation: none;
        will-change: auto;
    }

    body.bdf-theme-military .card-bdf,
    body.bdf-theme-military .bdf-theme-header-shell {
        animation: none;
        transition: none;
    }
}

/* ==========================================================================
   Presentation polish — hero depth & heritage section headings
   ========================================================================== */

body.bdf-theme-military .hero-banner-copy {
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.38));
}

body.bdf-theme-military .heritage-page .heritage-section-title {
    font-size: clamp(2.75rem, 5.5vw, 4.0625rem);
}

body.bdf-theme-military .heritage-subpage .hs-section-title {
    font-size: clamp(2.3125rem, 4.75vw, 3.4375rem);
}

/* ==========================================================================
   Internal pages — unified heading scale (About, Leadership, Commands)
   ~40% reduction from enlarged sizes for visual balance
   ========================================================================== */
body.bdf-theme-military {
    --bdf-internal-section: clamp(1.24rem, 2.25vw, 1.61rem);
    --bdf-internal-subsection: clamp(1.01rem, 1.65vw, 1.24rem);
    --bdf-internal-card: clamp(0.86rem, 1.35vw, 0.98rem);
}

/* About BDF — top-level section headings */
body.bdf-theme-military main .about-bdf-intro ~ .mb-3 > .section-label,
body.bdf-theme-military main .about-bdf-intro ~ .mb-4 > .section-label,
body.bdf-theme-military main .about-bdf-glance > .section-label,
body.bdf-theme-military main .about-bdf-cta .about-bdf-cta-content > .section-label {
    font-family: var(--font-display);
    font-size: var(--bdf-internal-section);
    font-weight: 800;
    letter-spacing: 0.16em;
}

/* Expandable section headings — default subsection scale */
body.bdf-theme-military .bdf-collapsible-trigger .section-label {
    display: block;
    font-family: var(--font-display);
    font-size: var(--bdf-internal-subsection);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    margin-bottom: 0 !important;
    text-transform: uppercase;
}

/* Primary accordions (Leadership, About institutional) */
body.bdf-theme-military #leadership-structure-sections .bdf-collapsible-trigger .section-label,
body.bdf-theme-military #about-institutional-sections .bdf-collapsible-trigger .section-label {
    font-size: var(--bdf-internal-section);
    letter-spacing: 0.16em;
}

/* Leadership — main section labels */
body.bdf-theme-military main .lead-cic-feature > .section-label,
body.bdf-theme-military main .bdf-leadership-section > .section-label,
body.bdf-theme-military main .lead-cta .lead-cta-content > .section-label {
    font-family: var(--font-display);
    font-size: var(--bdf-internal-section);
    font-weight: 800;
    letter-spacing: 0.16em;
}

/* Leadership — role labels within feature panels */
body.bdf-theme-military .lead-commander-feature .section-label.text-white-50 {
    font-family: var(--font-display);
    font-size: var(--bdf-internal-card);
    font-weight: 800;
    letter-spacing: 0.14em;
}

/* Commands — commander sidebar heading */
body.bdf-theme-military .command-commander-card > .section-label {
    font-family: var(--font-display);
    font-size: var(--bdf-internal-subsection);
    font-weight: 800;
    letter-spacing: 0.12em;
}

/* Leadership & Commands — card titles (override Bootstrap .h5 / .h6 utilities) */
body.bdf-theme-military .lead-command-tile .card-body > h3,
body.bdf-theme-military .lead-profile-card .card-body > h3,
body.bdf-theme-military .lead-cta .about-bdf-tile .card-body > h3,
body.bdf-theme-military .about-bdf-cta .about-bdf-tile .card-body > h3,
body.bdf-theme-military main > .container.pb-5 .card.card-bdf h4 {
    font-family: var(--font-display);
    font-size: var(--bdf-internal-card);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

/* ==========================================================================
   Leadership page — centred section headings
   ========================================================================== */

/* Tier-1 headings — expandable menus + BDF Leadership (Defence Council reference) */
body.bdf-theme-military #leadership-structure-top ~ section .bdf-leadership-tier-heading,
body.bdf-theme-military #leadership-structure-sections .bdf-collapsible-trigger .section-label,
body.bdf-theme-military #leadership-structure-sections .bdf-collapsible-trigger:not(.collapsed) .section-label {
    display: block;
    width: 100%;
    font-family: var(--font-display);
    font-size: var(--bdf-internal-section);
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--tm-green-heading);
    text-align: center;
    margin: 0 !important;
    background: transparent;
    box-shadow: none;
}

body.bdf-theme-military #leadership-structure-top ~ section .bdf-leadership-tier-heading {
    padding: 1rem 1.25rem;
}

body.bdf-theme-military #leadership-structure-sections .bdf-leadership-section {
    margin-bottom: 1rem;
    padding-top: 0;
    padding-bottom: 0;
}

body.bdf-theme-military #leadership-structure-top ~ section .lead-cic-feature > .section-label,
body.bdf-theme-military #leadership-structure-top ~ section .lead-cta .lead-cta-content > .section-label {
    display: block;
    width: 100%;
    text-align: center;
}

body.bdf-theme-military #leadership-structure-sections .bdf-collapsible-trigger-text {
    flex: 1 1 auto;
    text-align: center;
    padding-inline-end: 2rem;
}

body.bdf-theme-military #leadership-structure-sections .bdf-collapsible-trigger .section-label {
    text-align: center;
    padding: 0;
}

body.bdf-theme-military #leadership-structure-top ~ section .bdf-leadership-section .lead-commander-feature > .row > .col-md-8 > .section-label.text-white-50 {
    display: block;
    width: 100%;
    text-align: center;
}

/* News listing pager — military theme controls */
body.bdf-theme-military .news-listing-pager-status {
    color: var(--tm-green-heading, #2f3822);
}
body.bdf-theme-military .news-listing-pager-btn {
    border-color: rgba(200, 163, 72, 0.55);
}
