        * {
            box-sizing: border-box;
        }

        html,
        body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            font-family: 'Kanit', sans-serif;
            background: #1A211C;
            color: #FFFFFF;
        }

        body {
            min-height: 100vh;
        }

        /* Apply Kanit to every DOM element, including rich-text content and
           elements injected after page load. Keep icon-font elements exempt. */
        html,
        body,
        body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fat):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
            font-family: 'Kanit', sans-serif !important;
        }

        body *::placeholder,
        body *::file-selector-button {
            font-family: 'Kanit', sans-serif !important;
        }

        [x-cloak] {
            display: none !important;
        }

        .music-controls {
            position: fixed;
            right: max(1rem, env(safe-area-inset-right));
            bottom: max(1rem, env(safe-area-inset-bottom));
            z-index: 90;
            display: inline-flex;
            align-items: center;
            gap: .4rem;
        }

        .music-stop-button,
        .music-volume-level {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 3.25rem;
            border: 1px solid rgba(244, 176, 69, .75);
            background: rgba(21, 27, 22, .96);
            box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 0 4px rgba(244, 176, 69, .14);
            color: #fff;
            font-family: inherit;
            font-size: 1rem;
            font-weight: 700;
        }

        .music-stop-button,
        .music-next-button {
            width: 2.8rem;
            min-height: 2.8rem;
            padding: .6rem;
            border-radius: 999px;
            cursor: pointer;
            transition: transform .2s ease, background .2s ease, color .2s ease;
        }

        .music-next-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.45rem;
            min-height: 2.45rem;
            padding: .5rem;
            border: 1px solid rgba(244, 176, 69, .58);
            border-radius: 999px;
            background: rgba(21, 27, 22, .96);
            color: #F4B045;
            cursor: pointer;
            transition: transform .2s ease, background .2s ease, color .2s ease;
        }

        .music-next-button:hover,
        .music-next-button:focus-visible {
            transform: translateY(-2px);
            background: #F4B045;
            color: #151B16;
            outline: none;
        }

        .music-track-title {
            min-width: 0;
            max-width: 0;
            overflow: hidden;
            padding: .4rem 0;
            color: #fff;
            font-size: .82rem;
            font-weight: 700;
            line-height: 1.2;
            opacity: 0;
            text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 2px 7px rgba(0, 0, 0, .9);
            text-overflow: ellipsis;
            white-space: nowrap;
            transition: max-width .24s ease, padding .24s ease, opacity .16s ease;
        }

        .music-controls:hover .music-track-title,
        .music-controls:focus-within .music-track-title,
        .music-track-title--intro {
            max-width: min(13rem, 42vw);
            padding-inline: .1rem;
            opacity: 1;
        }

        .music-volume-panel {
            display: flex;
            align-items: center;
            gap: .3rem;
            width: 0;
            min-height: 2.35rem;
            overflow: hidden;
            padding: 0;
            border: 0 solid rgba(244, 176, 69, .75);
            border-radius: 999px;
            background: rgba(21, 27, 22, 0);
            color: #fff;
            opacity: 0;
            pointer-events: none;
            transition: width .22s ease, padding .22s ease, border-width .22s ease, opacity .16s ease, background .22s ease;
        }

        .music-volume-level {
            flex: 0 0 2.15rem;
            min-height: 0;
            padding: 0;
            border: 0;
            background: transparent;
            box-shadow: none;
            font-size: .72rem;
            white-space: nowrap;
        }

        .music-volume-panel input[type="range"] {
            width: 4.5rem;
            accent-color: #F4B045;
            cursor: pointer;
        }

        .music-controls:hover .music-volume-panel,
        .music-controls:focus-within .music-volume-panel {
            width: 8.9rem;
            padding: .4rem .55rem;
            border-width: 1px;
            background: rgba(21, 27, 22, .96);
            box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
            opacity: 1;
            pointer-events: auto;
        }

        .music-stop-button:hover,
        .music-stop-button:focus-visible {
            transform: translateY(-2px);
            background: #F4B045;
            color: #151B16;
            outline: none;
        }

        @media (max-width: 639px) {
            .music-track-title { font-size: .75rem; }
            .music-controls:hover .music-track-title,
            .music-controls:focus-within .music-track-title,
            .music-track-title--intro { max-width: 8.5rem; }
        }

        .news-detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
        .news-detail-gallery__item { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; background: #151B16; }
        .news-detail-gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
        .news-detail-gallery__link { position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; overflow: hidden; }
        .news-detail-gallery__link::after { content: '\f00e'; position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: rgba(21,27,22,.82); color: #F4B045; font-family: 'Font Awesome 6 Free'; font-weight: 900; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
        .news-detail-gallery__link:hover::after, .news-detail-gallery__link:focus-visible::after { opacity: 1; transform: translateY(0); }
        .news-detail-gallery__image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
        .news-detail-gallery__link:hover .news-detail-gallery__image { transform: scale(1.035); }
        .news-detail-image-shell { position: relative; isolation: isolate; background: #151B16; }
        .news-detail-image-shell .news-detail-image-backdrop,
        .news-detail-image-shell .news-detail-image { position: absolute; inset: 0; width: 100%; height: 100%; }
        .news-detail-image-shell .news-detail-image-backdrop { z-index: 0; object-fit: cover; filter: blur(18px); opacity: .62; transform: scale(1.12); }
        .news-detail-image-shell .news-detail-image { z-index: 1; object-fit: contain; transition: transform .35s ease; }
        .news-detail-image-shell:hover .news-detail-image { transform: scale(1.035); }
        @media (min-width: 768px) { .news-detail-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } .news-detail-gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }

        .announcement-detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 100%; }
        .announcement-detail-gallery a { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; background: #151B16; }
        .announcement-detail-gallery img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
        .announcement-detail-gallery a:hover img { transform: scale(1.025); }
        .announcement-detail-image-shell { position: relative; isolation: isolate; overflow: hidden; background: #151B16; }
        .announcement-detail-image-shell .announcement-detail-image-backdrop,
        .announcement-detail-image-shell .announcement-detail-image { position: absolute; inset: 0; width: 100%; height: 100%; }
        .announcement-detail-image-shell .announcement-detail-image-backdrop { z-index: 0; object-fit: cover; filter: blur(18px); opacity: .62; transform: scale(1.12); }
        .announcement-detail-image-shell .announcement-detail-image { z-index: 1; object-fit: contain; transition: transform .3s; }
        .announcement-detail-image-shell:hover .announcement-detail-image { transform: scale(1.025); }
        .announcement-detail-article > .announcement-detail-image-shell { height: min(360px, 44vw); min-height: 150px; }
        .announcement-attachment { display: flex; align-items: center; gap: 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(255,255,255,.04); padding: 1rem; transition: background .2s; }
        .announcement-attachment:hover { background: rgba(244,176,69,.1); }
        .announcement-attachment__icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; flex: none; border-radius: .8rem; background: rgba(244,176,69,.15); color: #F4B045; }
        .announcement-attachment__name { min-width: 0; overflow-wrap: anywhere; }
        .announcement-attachment__meta { font-size: .8rem; color: rgba(255,255,255,.55); }
        .announcement-rich-text { overflow-wrap: anywhere; }
        .announcement-rich-text p { margin: .7em 0; }
        .announcement-rich-text h2 { margin: 1.1em 0 .45em; font-size: 1.6em; font-weight: 800; line-height: 1.35; }
        .announcement-rich-text h3 { margin: 1em 0 .4em; font-size: 1.3em; font-weight: 700; line-height: 1.4; }
        .announcement-rich-text blockquote { margin: 1em 0; padding: .55em 1em; border-left: 4px solid #F4B045; background: rgba(244,176,69,.08); border-radius: 0 .6rem .6rem 0; }
        .announcement-rich-text ul, .announcement-rich-text ol { margin: .75em 0; padding-left: 1.75em; }
        .announcement-rich-text ul { list-style: disc; }
        .announcement-rich-text ol { list-style: decimal; }
        .announcement-rich-text a { color: #80c7ff; text-decoration: underline; text-underline-offset: 3px; }
        .announcement-rich-title p, .announcement-rich-title h2, .announcement-rich-title h3 { display: inline; margin: 0; font: inherit; }
        .announcement-rich-summary p:first-child { margin-top: 0; }
        .announcement-rich-summary p:last-child { margin-bottom: 0; }
        @media (min-width: 768px) { .announcement-detail-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; } }

        /* Keep the cover image compact while preserving the full artwork. */
        @media (min-width: 768px) {
            .announcement-detail-article > .announcement-detail-image-shell,
            .announcement-detail-article > template + .announcement-detail-image-shell {
                height: min(360px, 36vw);
                max-height: 360px;
            }
        }

        /* Readable article proportions shared by both detail routes. */
        .detail-content-card {
            overflow-wrap: anywhere;
        }

        .detail-page-shell .detail-article__title {
            max-width: 46rem;
            font-size: 1.45rem !important;
            font-weight: 800;
            line-height: 1.42;
            letter-spacing: -.012em;
            overflow-wrap: anywhere;
        }

        .detail-article__summary {
            max-width: 46rem;
            font-size: 1rem;
            line-height: 1.75;
        }

        .detail-article__body {
            max-width: 46rem;
            font-size: 1rem;
            line-height: 1.85;
        }

        .detail-page-shell h2 {
            font-size: 1.2rem !important;
            line-height: 1.45;
        }

        .announcement-detail-article .detail-article__body h2 {
            margin: 1.1rem 0 .55rem;
            font-size: 1.3rem !important;
            line-height: 1.45 !important;
            letter-spacing: 0;
        }

        .announcement-detail-article > template + a,
        .announcement-detail-article > a {
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .detail-page-shell .detail-article__title {
                font-size: 2rem !important;
                line-height: 1.38;
            }

            .detail-article__summary {
                font-size: 1.05rem;
                line-height: 1.8;
            }

            .detail-article__body {
                font-size: 1.05rem;
                line-height: 1.9;
            }

            .announcement-detail-article .detail-article__body h2 {
                font-size: 1.4rem !important;
            }
        }

        .spa-detail-enter-start { opacity: 0; transform: translate3d(0, 18px, 0); }
        .spa-detail-enter-end { opacity: 1; transform: translate3d(0, 0, 0); }
        .spa-detail-enter { transition: opacity .42s cubic-bezier(.22, 1, .36, 1), transform .42s cubic-bezier(.22, 1, .36, 1); }
        .spa-detail-leave { transition: opacity .2s ease, transform .2s ease; }
        .spa-detail-leave-start { opacity: 1; transform: translate3d(0, 0, 0); }
        .spa-detail-leave-end { opacity: 0; transform: translate3d(0, 10px, 0); }
        @media (prefers-reduced-motion: reduce) {
            .spa-detail-enter, .spa-detail-leave { transition: none; }
        }

        .site-loading-overlay {
            background: #090E0A;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .site-loader-transition { transition: opacity .22s ease, visibility .22s ease; }
        .site-loader-hidden { opacity: 0; visibility: hidden; }
        .site-loader-visible { opacity: 1; visibility: visible; }

        .site-loading-panel {
            display: flex;
            min-width: 12rem;
            flex-direction: column;
            align-items: center;
            padding: 1.5rem 2rem;
            border: 1px solid rgba(244, 176, 69, .3);
            border-radius: 1.5rem;
            background: rgba(21, 27, 22, .94);
            box-shadow: 0 24px 70px rgba(0, 0, 0, .48), 0 0 30px rgba(244, 176, 69, .08);
        }

        .site-loading-mark {
            position: relative;
            display: grid;
            width: 4.75rem;
            height: 4.75rem;
            place-items: center;
        }

        .site-loading-ring {
            position: absolute;
            inset: 0;
            border: 3px solid rgba(244, 176, 69, .16);
            border-top-color: #F4B045;
            border-right-color: rgba(244, 176, 69, .65);
            border-radius: 999px;
            animation: site-loading-spin .9s linear infinite;
        }

        .site-loading-logo {
            width: 3.15rem;
            height: 3.15rem;
            object-fit: contain;
            animation: site-loading-pulse 1.35s ease-in-out infinite;
        }

        .site-loading-title { margin-top: .85rem; color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: .02em; }
        .site-loading-dots { display: flex; gap: .3rem; margin-top: .55rem; }
        .site-loading-dots span { width: .35rem; height: .35rem; border-radius: 999px; background: #F4B045; animation: site-loading-dot 1.1s ease-in-out infinite; }
        .site-loading-dots span:nth-child(2) { animation-delay: .14s; }
        .site-loading-dots span:nth-child(3) { animation-delay: .28s; }

        @keyframes site-loading-spin { to { transform: rotate(360deg); } }
        @keyframes site-loading-pulse { 50% { transform: scale(.9); opacity: .72; } }
        @keyframes site-loading-dot { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-4px); opacity: 1; } }

        @media (prefers-reduced-motion: reduce) {
            .site-loader-transition { transition: none; }
            .site-loading-ring, .site-loading-logo, .site-loading-dots span { animation: none; }
        }

        @media (max-width: 1023px) {
            .hero-swiper,
            .hero-swiper .swiper-wrapper,
            .hero-swiper .swiper-slide {
                aspect-ratio: 16 / 9;
            }
        }

        .hero-swiper .swiper-slide {
            contain: layout paint;
        }

        /* ก่อน Swiper พร้อม ให้แสดงภาพแรกเป็น static fallback และไม่ซ้อนทุก slide */
        .hero-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
            display: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        html:not(.aos-enabled) [data-aos] {
            opacity: 1 !important;
            transform: none !important;
            visibility: visible !important;
        }



        .safe-container {
            width: min(100% - 32px, 1280px);
            margin-inline: auto;
        }

        .glass {
            background: rgba(21, 27, 22, .86);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-bottom: 1px solid rgba(255, 255, 255, .08);
        }

        .military-grid,
        .page:not(.home-page) {
            background-image:
                linear-gradient(rgba(244, 176, 69, .045) 1px, transparent 1px),
                linear-gradient(90deg, rgba(244, 176, 69, .045) 1px, transparent 1px);
            background-size: 34px 34px;
        }

        .gold-line {
            position: relative;
        }

        .gold-line::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -12px;
            width: 72px;
            height: 4px;
            border-radius: 999px;
            background: linear-gradient(90deg, #F4B045, transparent);
            box-shadow: 0 0 10px rgba(244, 176, 69, 0.4);
        }

        .gold-line-center {
            position: relative;
        }

        .gold-line-center::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -12px;
            width: 82px;
            height: 4px;
            border-radius: 999px;
            transform: translateX(-50%);
            background: linear-gradient(90deg, transparent, #F4B045, transparent);
            box-shadow: 0 0 10px rgba(244, 176, 69, 0.4);
        }

        .nav-link {
            position: relative;
            white-space: nowrap;
        }

        .nav-link::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: #F4B045;
            transition: width .3s ease, left .3s ease;
            box-shadow: 0 0 8px rgba(244, 176, 69, 0.6);
        }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 100%;
            left: 0;
        }

        .dropdown-panel {
            animation: dropdown .2s cubic-bezier(0.16, 1, 0.3, 1);
            transform-origin: top;
        }

        @keyframes dropdown {
            from {
                opacity: 0;
                transform: translateY(12px) scale(.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .card-hover {
            transition: all .3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .card-hover:hover {
            transform: translateY(-8px) scale(1.01);
            border-color: rgba(244, 176, 69, .5);
            box-shadow: 0 22px 45px rgba(0, 0, 0, .4), 0 0 20px rgba(244, 176, 69, 0.15);
        }

        /* Apply the news-card interaction consistently to every visual card. */
        body:not(.detail-page) main :is(a, article, div, section)[class~="bg-card"][class*="rounded"] {
            cursor: pointer;
            transition: transform .3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color .3s ease, box-shadow .3s ease;
        }

        body:not(.detail-page) main :is(a, article, div, section)[class~="bg-card"][class*="rounded"]:hover {
            transform: translateY(-8px) scale(1.01);
            border-color: rgba(244, 176, 69, .5);
            box-shadow: 0 22px 45px rgba(0, 0, 0, .4), 0 0 20px rgba(244, 176, 69, .15);
        }

        /* AOS owns transform while a card is entering the viewport. Restore the
           shared hover transform after that entrance animation has finished. */
        body:not(.detail-page) main :is(a, article, div, section)[class~="bg-card"][class*="rounded"][data-aos].aos-animate:hover {
            transform: translateY(-8px) scale(1.01);
        }

        /* Home announcements are inserted after the API response, so reveal
           them independently of AOS's initial page scan. */
        .home-announcement-card {
            opacity: 0;
            transform: translate3d(0, 100px, 0);
            transition: opacity .65s cubic-bezier(.215, .61, .355, 1), transform .65s cubic-bezier(.215, .61, .355, 1);
        }

        .home-announcement-card.is-revealed {
            opacity: 1;
            transform: translateZ(0);
            animation: home-announcement-enter .65s cubic-bezier(.215, .61, .355, 1) both;
        }

        @keyframes home-announcement-enter {
            from {
                opacity: 0;
                transform: translate3d(0, 100px, 0);
            }
            to {
                opacity: 1;
                transform: translateZ(0);
            }
        }

        .home-announcement-card.is-revealed.card-hover:hover {
            transform: translateY(-8px) scale(1.01);
        }

        /* Keep announcement artwork whole, with a blurred duplicate filling
           the unused sides, matching the Facebook-news image treatment. */
        .home-announcement-card--with-image {
            grid-template-rows: 144px minmax(0, 1fr);
        }

        @media (prefers-reduced-motion: reduce) {
            .home-announcement-card {
                opacity: 1;
                transform: none;
                transition: none;
                animation: none;
            }
        }

        .card-hover i {
            transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        .card-hover:hover i {
            transform: scale(1.2) rotate(8deg);
            color: #F4B045;
        }

        @keyframes shine {
            0% { left: -100%; }
            20% { left: 200%; }
            100% { left: 200%; }
        }

        @keyframes arrow-sweep {
            0% { transform: translateX(0); opacity: 0.5; }
            50% { transform: translateX(6px); opacity: 1; }
            100% { transform: translateX(0); opacity: 0.5; }
        }

        @keyframes pulse-glow {
            0%, 100% { filter: drop-shadow(0 0 15px rgba(244, 176, 69, 0.2)); opacity: 0.3; }
            50% { filter: drop-shadow(0 0 25px rgba(244, 176, 69, 0.6)); opacity: 0.6; }
        }

        .animate-pulse-glow {
            animation: pulse-glow 4s ease-in-out infinite;
        }

        @keyframes breathe {
            0% { transform: scale(1); filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5)); }
            50% { transform: scale(1.025); filter: drop-shadow(0 30px 70px rgba(0,0,0,0.7)); }
            100% { transform: scale(1); filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5)); }
        }

        .animate-breathe {
            animation: breathe 8s ease-in-out infinite;
        }
        
        .btn.bg-gold, button.bg-gold {
            position: relative;
            overflow: hidden;
            transition: all .3s ease;
        }
        
        .btn.bg-gold::before, button.bg-gold::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
            transform: skewX(-25deg);
            animation: shine 4s infinite;
        }
        
        .btn.bg-gold:hover, button.bg-gold:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(244, 176, 69, 0.35);
        }

        .rta-arrow-pattern {
            display: inline-flex;
            align-items: center;
        }

        .rta-arrow-pattern::after {
            content: "";
            display: inline-block;
            width: 1.5rem;
            height: 1.5rem;
            margin-left: 0.5rem;
            background-color: currentColor;
            opacity: 0.6;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 L30,50 L0,80 L15,80 L45,50 L15,20 Z'/%3E%3Cpath d='M25,20 L55,50 L25,80 L40,80 L70,50 L40,20 Z'/%3E%3Cpath d='M50,20 L80,50 L50,80 L65,80 L95,50 L65,20 Z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 L30,50 L0,80 L15,80 L45,50 L15,20 Z'/%3E%3Cpath d='M25,20 L55,50 L25,80 L40,80 L70,50 L40,20 Z'/%3E%3Cpath d='M50,20 L80,50 L50,80 L65,80 L95,50 L65,20 Z'/%3E%3C/svg%3E");
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
            animation: arrow-sweep 2.5s ease-in-out infinite;
        }

        .clip-chevron-left {
            clip-path: polygon(100% 0, 100% 100%, 25% 100%, 0 50%, 25% 0);
        }

        .swiper-button-next,
        .swiper-button-prev {
            color: #F4B045 !important;
            width: 42px !important;
            height: 42px !important;
            background: rgba(21, 27, 22, .62);
            border-radius: 999px;
            border: 1px solid rgba(244, 176, 69, .28);
        }

        .swiper-button-next::after,
        .swiper-button-prev::after {
            font-size: 16px !important;
            font-weight: 800;
        }

        .swiper-pagination-bullet {
            background: rgba(255, 255, 255, .75) !important;
            opacity: 1 !important;
        }

        .swiper-pagination-bullet-active {
            width: 26px !important;
            border-radius: 999px !important;
            background: #F4B045 !important;
        }

        .page {
            min-height: 60vh;
        }

        /* Keep hash-routed pages compact and consistent. */
        .page {
            padding-block: 2rem !important;
        }

        .home-page {
            padding-block: 0 !important;
        }

        .page > .safe-container > [data-aos="fade-up"] {
            margin-bottom: 2rem !important;
        }

        .page h1 {
            line-height: 1.15;
        }

        .page h1 + p {
            margin-top: 1.25rem !important;
            line-height: 1.6;
        }

        /* Responsive single-line UI text for every hash-routed page. */
        .page h1,
        .page h2,
        .page h3,
        .page .badge,
        .page button {
            max-width: 100%;
        }

        .page h1 {
            font-size: clamp(1.15rem, 4vw, 3rem) !important;
        }

        .page h2 {
            font-size: clamp(1rem, 3vw, 2.25rem) !important;
        }

        .page h3 {
            font-size: clamp(.85rem, 2vw, 1.35rem) !important;
        }

        /* Compact titles for the two utility links beneath the hero banner. */
        #recruitment-website-title,
        #engineer-knowledge-test-title {
            font-size: clamp(1rem, 2vw, 1.5rem) !important;
        }

        /* Smoothly fade the active page while Alpine swaps sections. */
        .page-transition-host {
            transition: opacity .22s ease, transform .22s ease;
            will-change: opacity, transform;
        }

        .page-transition-host.page-is-transitioning {
            opacity: 0;
            transform: translateY(10px);
            pointer-events: none;
        }

        @media (prefers-reduced-motion: reduce) {
            .page-transition-host {
                transition: none;
            }

            .home-modal,
            .home-modal-panel,
            .home-modal-image-transition {
                transition: none;
            }
        }

        /* Engineer Department commanders: hierarchy 1–2–2–3 */
        /* Home announcement modal: keeps the artwork fully visible within the viewport. */
        body.home-modal-open {
            overflow: hidden;
        }

        .home-modal {
            opacity: 0;
            pointer-events: none;
            background: rgba(5, 8, 6, .74);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: opacity .34s ease;
            will-change: opacity;
        }

        .home-modal.home-modal-is-visible {
            opacity: 1;
            pointer-events: auto;
        }

        .home-modal-backdrop {
            background: rgba(5, 8, 6, .62);
        }

        .home-modal-panel {
            opacity: 0;
            transform: translateY(12px) scale(.975);
            max-height: calc(100vh - 24px);
            border: 1px solid rgba(244, 176, 69, .35);
            background: #151B16;
            box-shadow: 0 28px 90px rgba(0, 0, 0, .65), 0 0 30px rgba(244, 176, 69, .12);
            transition: opacity .34s cubic-bezier(.22, 1, .36, 1), transform .34s cubic-bezier(.22, 1, .36, 1);
            will-change: opacity, transform;
        }

        .home-modal-is-visible .home-modal-panel {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .home-modal-image-wrap {
            position: relative;
            width: 100%;
            aspect-ratio: 1672 / 941;
            max-height: calc(100vh - 126px);
            min-height: 0;
            overflow: hidden;
        }

        .home-modal-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            max-height: none;
            object-fit: contain;
            object-position: center;
        }

        .home-modal-image-transition {
            transition: opacity .36s cubic-bezier(.22, 1, .36, 1), transform .36s cubic-bezier(.22, 1, .36, 1);
            will-change: opacity, transform;
        }

        .home-modal-image-start {
            opacity: 0;
            transform: scale(1.015);
        }

        .home-modal-image-end {
            opacity: 1;
            transform: scale(1);
        }

        @supports (height: 100dvh) {
            .home-modal-panel {
                max-height: calc(100dvh - 24px);
            }

            .home-modal-image {
                max-height: none;
            }
        }

        @media (max-width: 639px) {
            .home-modal-nav-arrows {
                display: none !important;
            }

            .home-modal-image-wrap {
                padding: .5rem;
            }

            .home-modal-image {
                max-height: none;
            }
        }

        #ed-commanders {
            scroll-margin-top: 96px;
        }

        .ed-commanders-grid {
            width: min(100%, 1120px);
            margin-inline: auto;
            display: grid;
            gap: clamp(1.5rem, 3vw, 2.75rem);
        }

        .ed-commanders-row {
            display: grid;
            gap: clamp(1rem, 2.5vw, 2rem);
            align-items: stretch;
        }

        .ed-commanders-row--lead {
            grid-template-columns: minmax(0, 360px);
            justify-content: center;
        }

        .ed-commanders-row--two {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .ed-commanders-row--three {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .ed-commander-card {
            width: min(100%, 309px);
            justify-self: center;
            overflow: hidden;
            /* Let text scale from the width of its own card. */
            container-type: inline-size;
            border: 1px solid rgba(244, 176, 69, .3);
            border-radius: 1.25rem;
            background: #222B24;
            box-shadow: 0 16px 32px rgba(0, 0, 0, .24);
        }

        .ed-commander-card--lead {
            width: min(100%, 343px);
            border-color: rgba(244, 176, 69, .58);
        }

        .ed-commander-image-shell {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            aspect-ratio: 3 / 4;
            overflow: hidden;
            padding: 0;
            background:
                radial-gradient(circle at 50% 20%, rgba(244, 176, 69, .16), transparent 48%),
                #151B16;
        }

        .ed-commander-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
        }

        .ed-commander-info {
            min-height: 6.25rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: .35rem;
            padding: .85rem .4rem .95rem;
            text-align: center;
            color: #fff;
            background: linear-gradient(180deg, #17150f, #0d0d0b);
            border-top: 2px solid #F4B045;
        }

        .ed-commander-info h2 {
            margin: 0;
            min-width: 0;
            color: #fff;
            /* JavaScript reduces this only when a specific name needs more room. */
            font-size: 1.25rem !important;
            font-weight: 700;
            line-height: 1.35;
            white-space: nowrap;
        }

        .ed-commander-info p {
            margin: 0;
            min-width: 0;
            color: #F4B045;
            font-size: 1rem;
            font-weight: 700;
            line-height: 1.4;
            white-space: nowrap;
        }

        @media (max-width: 767px) {
            .ed-commanders-grid {
                gap: 1.25rem;
            }

            .ed-commanders-row,
            .ed-commanders-row--lead,
            .ed-commanders-row--two,
            .ed-commanders-row--three {
                grid-template-columns: minmax(0, 320px);
                justify-content: center;
                gap: 1.25rem;
            }

            .ed-commander-card,
            .ed-commander-card--lead {
                width: 100%;
            }

            .ed-commander-image-shell {
                padding: 0;
            }
        }

        @media (min-width: 768px) and (max-width: 1023px) {
            .ed-commanders-row--three {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        /* Home commander cards: keep tablet layouts readable instead of leaving
           the fixed desktop image column with a very narrow text column. */
        @media (min-width: 768px) and (max-width: 1199px) {
            .home-commander-card-body {
                /* Preserve the desktop left-image/right-copy composition,
                   while giving the copy enough room on iPad widths. */
                grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important;
            }

            .home-commander-image img {
                width: 100%;
                height: 100%;
                aspect-ratio: 1829 / 2560;
                object-fit: cover;
                object-position: top;
            }

            .home-commander-card-body > div:last-child {
                min-width: 0;
                overflow: hidden;
            }

            .home-commander-card-body > div:last-child > * {
                max-width: 100%;
                overflow-wrap: normal;
                word-break: normal;
                white-space: normal;
            }

            .home-commander-card-body > div:last-child button {
                width: fit-content !important;
                max-width: 100%;
                padding: .5rem .7rem;
                font-size: .75rem;
                line-height: 1.2;
            }
        }

        @media (max-width: 767px) {
            .home-commanders-grid {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .line-clamp-3 {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-card {
            cursor: pointer;
        }

        /* Shared archive typography and spacing for #news and #announce. */
        .archive-page__header {
            max-width: 880px;
            margin-inline: auto;
        }

        .news-page .archive-page__title,
        .announcement-page .archive-page__title {
            font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
            line-height: 1.25;
            letter-spacing: -.015em;
        }

        .archive-page__subtitle {
            font-size: .95rem;
            line-height: 1.75;
        }

        .archive-card__body {
            display: flex;
            min-width: 0;
            min-height: 0;
            flex-direction: column;
        }

        .archive-card__meta {
            font-size: .75rem;
            line-height: 1.4;
        }

        .news-page .archive-card__title,
        .announcement-page .archive-card__title {
            display: -webkit-box;
            overflow: hidden;
            font-size: 1.1rem !important;
            font-weight: 700;
            line-height: 1.45;
            letter-spacing: 0;
            overflow-wrap: anywhere;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .archive-card__summary {
            display: -webkit-box;
            overflow: hidden;
            font-size: .875rem;
            line-height: 1.65;
            overflow-wrap: anywhere;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .archive-card__cta {
            flex-shrink: 0;
            margin-top: auto !important;
            padding-top: .85rem;
            font-size: .8rem;
            line-height: 1.4;
        }

        .archive-announcement-card:not(.announcement-card--with-image) .archive-card__body {
            min-height: 200px;
        }

        .archive-announcement-card.announcement-card--with-image {
            grid-template-rows: 180px auto;
        }

        .archive-announcement-card.announcement-card--with-image .news-image-shell img {
            height: 100%;
            min-height: 0;
        }

        /* Home Facebook cards share one fixed footprint; the foreground image is contained
           and the blurred duplicate fills any unused space without cropping the original. */
        .facebook-news-card {
            grid-template-rows: 150px minmax(0, 1fr);
            height: 300px;
        }

        .facebook-news-card--full {
            grid-template-rows: 150px auto;
            height: auto;
        }

        .facebook-news-card > div:last-child {
            min-height: 0;
            overflow: hidden;
        }

        .facebook-news-image-shell {
            position: relative;
            isolation: isolate;
            min-height: 0;
        }

        .facebook-news-image-backdrop,
        .facebook-news-image {
            position: absolute;
            inset: 0;
            display: block;
            width: 100%;
            height: 100%;
        }

        .facebook-news-image-backdrop {
            z-index: 0;
            object-fit: cover;
            filter: blur(18px);
            opacity: .62;
            transform: scale(1.12);
        }

        .facebook-news-image {
            z-index: 1;
            object-fit: contain;
        }

        @media (min-width: 768px) {
            .home-announcement-card--with-image {
                grid-template-rows: none;
                min-height: 140px;
            }

            .archive-page__subtitle {
                font-size: 1rem;
            }

            .news-page .archive-card__title,
            .announcement-page .archive-card__title {
                font-size: 1.25rem !important;
                line-height: 1.4;
            }

            .archive-card__summary {
                font-size: .925rem;
                line-height: 1.65;
            }

            .archive-card__cta {
                font-size: .85rem;
            }

            .archive-announcement-card:not(.announcement-card--with-image) .archive-card__body {
                min-height: 200px;
            }

            .archive-announcement-card:not(.announcement-card--with-image) {
                height: 224px;
            }

            .archive-announcement-card.announcement-card--with-image {
                grid-template-columns: 250px minmax(0, 1fr);
                grid-template-rows: none;
                min-height: 220px;
            }

            .facebook-news-card {
                grid-template-columns: 220px minmax(0, 1fr);
                grid-template-rows: none;
                height: 220px;
            }

            .facebook-news-card--full {
                grid-template-columns: 270px minmax(0, 1fr);
                grid-template-rows: none;
                height: 240px;
            }
        }

        .news-card:focus-visible {
            outline: 3px solid #F4B045;
            outline-offset: 4px;
        }

        .news-image-shell {
            min-width: 0;
            overflow: hidden;
            background:
                radial-gradient(circle at center, rgba(244, 176, 69, .16), transparent 48%),
                #151B16;
        }

        .news-loading-card {
            position: relative;
            overflow: hidden;
            background:
                linear-gradient(135deg, rgba(34, 43, 36, .96), rgba(21, 27, 22, .92)),
                #222B24;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
        }

        .news-loading-card::before {
            content: "";
            position: absolute;
            inset: 0;
            transform: translateX(-100%);
            background: linear-gradient(90deg, transparent, rgba(244, 176, 69, .12), transparent);
            animation: news-loading-sweep 1.8s ease-in-out infinite;
            pointer-events: none;
        }

        .news-loading-spinner {
            width: 42px;
            height: 42px;
            flex: 0 0 auto;
            border: 3px solid rgba(244, 176, 69, .18);
            border-top-color: #F4B045;
            border-radius: 999px;
            animation: news-loading-spin .8s linear infinite;
        }

        .news-loading-dot {
            width: 5px;
            height: 5px;
            border-radius: 999px;
            background: #F4B045;
            animation: news-loading-dot 1.2s ease-in-out infinite;
        }

        .news-loading-dot:nth-child(3) {
            animation-delay: .16s;
        }

        .news-loading-dot:nth-child(4) {
            animation-delay: .32s;
        }

        .news-loading-progress {
            position: relative;
            height: 3px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(255, 255, 255, .08);
        }

        .news-loading-progress::after {
            content: "";
            position: absolute;
            inset-block: 0;
            left: -45%;
            width: 45%;
            border-radius: inherit;
            background: linear-gradient(90deg, transparent, #F4B045, transparent);
            animation: news-loading-progress 1.35s ease-in-out infinite;
        }

        .news-skeleton-block {
            position: relative;
            overflow: hidden;
            background: rgba(255, 255, 255, .08);
        }

        .news-skeleton-block::after {
            content: "";
            position: absolute;
            inset: 0;
            transform: translateX(-100%);
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
            animation: news-loading 1.4s infinite;
        }

        @keyframes news-loading {
            to {
                transform: translateX(100%);
            }
        }

        @keyframes news-loading-sweep {
            to {
                transform: translateX(100%);
            }
        }

        @keyframes news-loading-spin {
            to {
                transform: rotate(360deg);
            }
        }

        @keyframes news-loading-dot {
            0%, 80%, 100% {
                transform: translateY(0);
                opacity: .35;
            }

            40% {
                transform: translateY(-4px);
                opacity: 1;
            }
        }

        @keyframes news-loading-progress {
            to {
                left: 100%;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .news-loading-card::before,
            .news-loading-spinner,
            .news-loading-dot,
            .news-loading-progress::after,
            .news-skeleton-block::after {
                animation: none;
            }
        }
        @media (max-width: 768px) {
            .swiper-button-next,
            .swiper-button-prev {
                display: none !important;
            }
        }

        /* Former commanders directory */
        .former-chiefs-page {
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(circle at 90% 2%, rgba(244, 176, 69, .13), transparent 25rem),
                radial-gradient(circle at 0 24%, rgba(14, 42, 28, .75), transparent 28rem),
                #1A211C;
        }

        .former-chiefs-hero {
            position: relative;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 2rem;
            overflow: hidden;
            padding: clamp(1.5rem, 4vw, 3.5rem);
            border: 1px solid rgba(244, 176, 69, .35);
            border-radius: 1.75rem;
            background:
                linear-gradient(105deg, rgba(8, 22, 14, .98), rgba(26, 33, 28, .93) 58%, rgba(77, 56, 25, .72)),
                #151B16;
            box-shadow: 0 24px 70px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .05);
        }

        .former-chiefs-hero::before,
        .former-chiefs-hero::after {
            position: absolute;
            content: "";
            pointer-events: none;
        }

        .former-chiefs-hero::before {
            inset: 0;
            opacity: .28;
            background-image: linear-gradient(90deg, rgba(244, 176, 69, .16) 1px, transparent 1px), linear-gradient(rgba(244, 176, 69, .16) 1px, transparent 1px);
            background-size: 26px 26px;
            mask-image: linear-gradient(90deg, #000 0%, transparent 74%);
        }

        .former-chiefs-hero::after {
            right: -6rem;
            bottom: -9rem;
            width: 23rem;
            height: 23rem;
            border: 1px solid rgba(244, 176, 69, .24);
            border-radius: 50%;
            box-shadow: 0 0 0 2.4rem rgba(244, 176, 69, .045), 0 0 0 4.8rem rgba(244, 176, 69, .03);
        }

        .former-chiefs-hero__content,
        .former-chiefs-hero__stats {
            position: relative;
            z-index: 1;
        }

        .former-chiefs-hero__content {
            max-width: 49rem;
        }

        .former-chiefs-hero__eyebrow {
            margin: 0 0 .8rem;
            color: #F4B045;
            font-size: .74rem;
            font-weight: 700;
            letter-spacing: .14em;
        }

        .former-chiefs-hero__title {
            margin: 0;
            color: #fff;
            font-size: clamp(2rem, 5vw, 4rem) !important;
            font-weight: 800;
            letter-spacing: -.025em;
            text-wrap: balance;
        }

        .former-chiefs-hero__lead {
            max-width: 43rem;
            margin: 1.15rem 0 0 !important;
            color: rgba(255, 255, 255, .76);
            font-size: clamp(.96rem, 2vw, 1.1rem);
            line-height: 1.85 !important;
        }

        .former-chiefs-hero__ornament {
            position: absolute;
            top: 1.2rem;
            right: 1.3rem;
            z-index: 1;
            display: grid;
            width: 3rem;
            height: 3rem;
            place-items: center;
            border: 1px solid rgba(244, 176, 69, .35);
            border-radius: 50%;
            color: #F4B045;
            font-size: 1.15rem;
            background: rgba(21, 27, 22, .5);
        }

        .former-chiefs-hero__stats {
            display: grid;
            grid-template-columns: repeat(2, minmax(5.2rem, 1fr));
            align-self: end;
            min-width: 15rem;
            border: 1px solid rgba(255, 255, 255, .1);
            border-radius: 1.1rem;
            overflow: hidden;
            background: rgba(9, 19, 13, .66);
            backdrop-filter: blur(8px);
        }

        .former-chiefs-hero__stats div {
            padding: 1rem .9rem;
            text-align: center;
        }

        .former-chiefs-hero__stats div + div {
            border-left: 1px solid rgba(255, 255, 255, .1);
        }

        .former-chiefs-hero__stats dt {
            color: rgba(255, 255, 255, .58);
            font-size: .72rem;
        }

        .former-chiefs-hero__stats dd {
            margin: .15rem 0 0;
            color: #F4B045;
            font-size: 1.7rem;
            font-weight: 800;
            line-height: 1;
        }

        .former-chiefs-hero__stats small {
            color: rgba(255, 255, 255, .72);
            font-size: .72rem;
            font-weight: 500;
        }

        .former-chiefs-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin: clamp(1.5rem, 3vw, 2.5rem) 0;
        }

        .former-chiefs-toolbar__label {
            margin: 0;
            color: rgba(255, 255, 255, .67);
            font-size: .88rem;
            white-space: nowrap;
        }

        .former-chiefs-toolbar__label i {
            margin-right: .35rem;
            color: #F4B045;
        }

        .former-chiefs-tabs {
            display: flex;
            gap: .45rem;
            max-width: 100%;
            padding: .35rem;
            overflow-x: auto;
            border: 1px solid rgba(255, 255, 255, .09);
            border-radius: .9rem;
            background: rgba(21, 27, 22, .76);
            scrollbar-width: thin;
        }

        .former-chiefs-tab {
            flex: 0 0 auto;
            min-height: 2.45rem;
            padding: .45rem .85rem;
            border: 0;
            border-radius: .62rem;
            color: rgba(255, 255, 255, .7);
            font-size: .82rem;
            font-weight: 600;
            background: transparent;
            transition: color .2s ease, background .2s ease, box-shadow .2s ease;
        }

        .former-chiefs-tab:hover,
        .former-chiefs-tab:focus-visible {
            color: #fff;
            background: rgba(255, 255, 255, .07);
            outline: none;
        }

        .former-chiefs-tab.is-active {
            color: #151B16;
            background: #F4B045;
            box-shadow: 0 6px 16px rgba(244, 176, 69, .2);
        }

        .former-chiefs-tab span {
            display: inline-grid;
            min-width: 1.3rem;
            height: 1.3rem;
            margin-left: .3rem;
            place-items: center;
            border-radius: 999px;
            font-size: .67rem;
            background: rgba(21, 27, 22, .17);
        }

        .former-chief-section {
            margin-top: 3.25rem;
        }

        .former-chief-section:first-of-type {
            margin-top: 0;
        }

        .former-chief-section__heading {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.4rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(244, 176, 69, .22);
        }

        .former-chief-section__mark {
            display: grid;
            width: 3.25rem;
            height: 3.25rem;
            place-items: center;
            border: 1px solid rgba(244, 176, 69, .35);
            border-radius: 1rem;
            color: #F4B045;
            background: rgba(244, 176, 69, .08);
            font-size: 1.15rem;
        }

        .former-chief-section__heading p {
            margin: 0 0 .1rem;
            color: #F4B045;
            font-size: .75rem;
            font-weight: 700;
            letter-spacing: .07em;
        }

        .former-chief-section__heading h2 {
            margin: 0;
            color: #fff;
            font-size: clamp(1.35rem, 3vw, 2rem) !important;
            font-weight: 750;
        }

        .former-chief-section__heading span {
            display: block;
            margin-top: .25rem;
            color: rgba(255, 255, 255, .57);
            font-size: .86rem;
            line-height: 1.55;
        }

        .former-chief-section__count {
            color: #F4B045;
            font-size: 1.4rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .former-chief-section__count small {
            display: inline;
            margin: 0;
            color: rgba(255, 255, 255, .58);
            font-size: .75rem;
            font-weight: 500;
        }

        .former-chief-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: clamp(.9rem, 2vw, 1.4rem);
        }

        .former-chief-card {
            position: relative;
            display: flex;
            min-width: 0;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, .11);
            border-radius: 1.15rem;
            background: linear-gradient(160deg, #29332b, #19201b);
            box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
            transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
        }

        .former-chief-card:hover {
            transform: translateY(-5px);
            border-color: rgba(244, 176, 69, .52);
            box-shadow: 0 22px 40px rgba(0, 0, 0, .32), 0 0 0 1px rgba(244, 176, 69, .08);
        }

        .former-chief-card__portrait {
            position: relative;
            display: block;
            aspect-ratio: 5 / 6;
            overflow: hidden;
            background: #111713;
        }

        .former-chief-card__portrait::after {
            position: absolute;
            content: "";
            inset: 0;
            pointer-events: none;
            background: linear-gradient(180deg, transparent 48%, rgba(10, 15, 11, .45) 100%);
        }

        .former-chief-card__portrait img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            filter: saturate(.76) contrast(1.04);
            transition: transform .45s ease, filter .45s ease;
        }

        .former-chief-card:hover .former-chief-card__portrait img {
            transform: scale(1.045);
            filter: saturate(.9) contrast(1.04);
        }

        .former-chief-card__zoom {
            position: absolute;
            z-index: 1;
            right: .75rem;
            bottom: .75rem;
            display: grid;
            width: 2.25rem;
            height: 2.25rem;
            place-items: center;
            border: 1px solid rgba(244, 176, 69, .55);
            border-radius: 50%;
            color: #F4B045;
            background: rgba(10, 17, 12, .75);
            opacity: 0;
            transform: translateY(.35rem);
            transition: opacity .2s ease, transform .2s ease;
        }

        .former-chief-card__portrait:hover .former-chief-card__zoom,
        .former-chief-card__portrait:focus-visible .former-chief-card__zoom {
            opacity: 1;
            transform: translateY(0);
        }

        .former-chief-card__portrait:focus-visible {
            outline: 2px solid #F4B045;
            outline-offset: -4px;
        }

        .former-chief-card__body {
            position: relative;
            display: flex;
            min-height: 10.3rem;
            flex: 1;
            flex-direction: column;
            padding: 1rem 1.05rem 1.1rem;
        }

        .former-chief-card__number {
            position: absolute;
            top: .72rem;
            right: .9rem;
            color: rgba(244, 176, 69, .58);
            font-size: .76rem;
            font-weight: 700;
            letter-spacing: .06em;
        }

        .former-chief-card__role {
            display: flex;
            align-items: flex-start;
            gap: .38rem;
            max-width: calc(100% - 2.4rem);
            margin: 0;
            color: #F4B045;
            font-size: .72rem;
            font-weight: 600;
            line-height: 1.45;
        }

        .former-chief-card__role i {
            margin-top: .12rem;
            font-size: .68rem;
        }

        .former-chief-card h3 {
            margin: .55rem 0 .85rem;
            color: #fff;
            font-size: 1.05rem !important;
            font-weight: 700;
            line-height: 1.45;
        }

        .former-chief-card__period {
            display: flex;
            align-items: center;
            gap: .4rem;
            margin: auto 0 0;
            padding-top: .75rem;
            border-top: 1px solid rgba(255, 255, 255, .09);
            color: rgba(255, 255, 255, .66);
            font-size: .8rem;
        }

        .former-chief-card__period i {
            color: #F4B045;
        }

        .former-chiefs-source {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: .45rem;
            max-width: 52rem;
            margin: 3rem auto 0 !important;
            color: rgba(255, 255, 255, .53);
            font-size: .8rem;
            line-height: 1.65 !important;
            text-align: center;
        }

        .former-chiefs-source i {
            margin-top: .25rem;
            color: rgba(244, 176, 69, .78);
        }

        @media (max-width: 900px) {
            .former-chiefs-hero {
                grid-template-columns: 1fr;
            }

            .former-chiefs-hero__stats {
                width: min(100%, 28rem);
                min-width: 0;
            }
        }

        @media (max-width: 640px) {
            .former-chiefs-hero {
                gap: 1.45rem;
                padding: 1.35rem;
                border-radius: 1.25rem;
            }

            .former-chiefs-hero__ornament {
                width: 2.5rem;
                height: 2.5rem;
                font-size: .95rem;
            }

            .former-chiefs-hero__content {
                padding-right: 2.2rem;
            }

            .former-chiefs-hero__title {
                font-size: 1.82rem !important;
            }

            .former-chiefs-hero__stats div {
                padding: .8rem .45rem;
            }

            .former-chiefs-hero__stats dd {
                font-size: 1.35rem;
            }

            .former-chiefs-toolbar {
                align-items: flex-start;
                flex-direction: column;
            }

            .former-chiefs-tabs {
                width: 100%;
            }

            .former-chief-section {
                margin-top: 2.5rem;
            }

            .former-chief-section__heading {
                grid-template-columns: auto minmax(0, 1fr);
                gap: .75rem;
            }

            .former-chief-section__mark {
                width: 2.65rem;
                height: 2.65rem;
                border-radius: .8rem;
            }

            .former-chief-section__count {
                grid-column: 2;
                font-size: 1.15rem;
            }

            .former-chief-section__heading span {
                font-size: .78rem;
            }

            .former-chief-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: .75rem;
            }

            .former-chief-card {
                border-radius: .9rem;
            }

            .former-chief-card__body {
                min-height: 9.65rem;
                padding: .8rem .75rem .85rem;
            }

            .former-chief-card__number {
                top: .57rem;
                right: .65rem;
                font-size: .65rem;
            }

            .former-chief-card__role {
                max-width: calc(100% - 1.9rem);
                font-size: .61rem;
            }

            .former-chief-card h3 {
                margin: .42rem 0 .65rem;
                font-size: .86rem !important;
                line-height: 1.4;
            }

            .former-chief-card__period {
                gap: .3rem;
                padding-top: .58rem;
                font-size: .67rem;
            }

            .former-chief-card__zoom {
                width: 1.9rem;
                height: 1.9rem;
                right: .5rem;
                bottom: .5rem;
                opacity: 1;
                transform: none;
                font-size: .75rem;
            }
        }

        @media (max-width: 370px) {
            .former-chief-grid {
                grid-template-columns: 1fr;
            }

            .former-chief-card__body {
                min-height: 0;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .former-chief-card,
            .former-chief-card__portrait img,
            .former-chief-card__zoom,
            .former-chiefs-tab {
                transition: none;
            }
        }
