/* Heritage subpages — scoped presentation (does not affect /heritage landing) */

.heritage-subpage {
    --hs-gold: var(--bdf-khaki-300, #b8a36a);
    --hs-gold-light: #d4c08a;
    --hs-gold-deep: #8f7840;
    --hs-green-dark: var(--bdf-green-900, #202719);
    --hs-green-mid: var(--bdf-green-700, #2f3822);
    --hs-cream: var(--bdf-cream, #fbfaf6);
    --hs-cream-soft: var(--bdf-khaki-100, #f5f2e8);
    --hs-shadow: 0 20px 52px rgba(32, 39, 25, 0.12), 0 4px 14px rgba(32, 39, 25, 0.06);
    --hs-shadow-lifted: 0 28px 64px rgba(32, 39, 25, 0.16), 0 8px 20px rgba(184, 163, 106, 0.08);
    --hs-shadow-soft: 0 12px 32px rgba(32, 39, 25, 0.07);
    --hs-shadow-memorial: 0 36px 80px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(184, 163, 106, 0.2);
    --hs-radius: 1.125rem;
    --hs-radius-lg: 1.625rem;
    --hs-radius-xl: 2rem;
    --hs-header-offset: clamp(5.5rem, 11vh, 7rem);
    background: var(--hs-cream);
    overflow-x: clip;
}

.heritage-subpage [id] {
    scroll-margin-top: calc(var(--hs-header-offset) + 0.75rem);
}

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

/* ── Sections ── */
.hs-section {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.hs-section--cream {
    background:
        radial-gradient(circle at 88% 12%, rgba(184, 163, 106, 0.07), transparent 22%),
        linear-gradient(180deg, var(--hs-cream) 0%, var(--hs-cream-soft) 55%, var(--hs-cream) 100%);
}

.hs-section--green {
    background:
        radial-gradient(circle at 88% 12%, rgba(184, 163, 106, 0.1), transparent 24%),
        linear-gradient(180deg, #3a4a28 0%, var(--hs-green-mid) 48%, var(--hs-green-dark) 100%);
    color: rgba(255, 255, 255, 0.92);
}

.hs-section--dark {
    background:
        radial-gradient(ellipse at 15% 0%, rgba(184, 163, 106, 0.13), transparent 42%),
        linear-gradient(168deg, #161b11 0%, var(--hs-green-dark) 42%, #121610 100%);
    color: rgba(255, 255, 255, 0.92);
}

.hs-section-label {
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--hs-gold-deep);
    margin-bottom: 1rem;
}

.hs-section--dark .hs-section-label,
.hs-section--green .hs-section-label {
    color: var(--hs-gold-light);
}

.hs-section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    color: var(--hs-green-dark);
    position: relative;
    padding-bottom: 1rem;
}

.hs-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: clamp(3rem, 18%, 4.5rem);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hs-gold-deep), var(--hs-gold-light));
    opacity: 0.88;
}

.hs-section--dark .hs-section-title,
.hs-section--green .hs-section-title {
    color: #fff;
}

.hs-section-text {
    font-size: 1.0625rem;
    line-height: 1.82;
    color: var(--bdf-muted);
    margin-bottom: 0;
    text-wrap: pretty;
}

.hs-section--dark .hs-section-text,
.hs-section--green .hs-section-text {
    color: rgba(255, 255, 255, 0.82);
}

.hs-section-text + .hs-section-text {
    margin-top: 1.35rem;
}

.hs-section-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ── Shared intro / content width ── */
.hs-content-narrow {
    max-width: 56rem;
    margin-inline: auto;
}

/* ── Focus & accessibility ── */
.heritage-subpage a:focus-visible,
.heritage-subpage .btn:focus-visible {
    outline: 2px solid var(--hs-gold);
    outline-offset: 3px;
}

body.bdf-theme-military .heritage-subpage .hs-section-title {
    text-transform: none;
    letter-spacing: 0.02em;
}

/* ── Commander gallery ── */
.hs-commander-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.5vw, 1.25rem);
    align-items: stretch;
}

.hs-commander-card {
    background: #fff;
    border-radius: var(--hs-radius-xl);
    border: 1px solid rgba(184, 163, 106, 0.16);
    box-shadow: var(--hs-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hs-commander-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 163, 106, 0.36);
    box-shadow: var(--hs-shadow-lifted);
}

.hs-commander-portrait {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bdf-surface-portrait, #ece8df);
    margin: 0.85rem 0.85rem 0;
    border-radius: calc(var(--hs-radius-lg) - 0.15rem);
    box-shadow: inset 0 0 0 1px rgba(184, 163, 106, 0.2);
    flex-shrink: 0;
}

.hs-commander-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--bdf-photo-fit, cover);
    object-position: var(--bdf-photo-position, top center);
}

.hs-fsm-name-list {
    grid-column: 1 / -1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.2vw, 1rem);
}

.hs-commander-card--name {
    height: auto;
}

.hs-commander-card--name .hs-commander-body {
    padding-top: 1rem;
}

.hs-commander-profile-portrait:empty {
    display: none;
}

.hs-commander-body {
    padding: 1.25rem 1.15rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hs-commander-rank {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hs-gold-deep);
    margin-bottom: 0.55rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(184, 163, 106, 0.1);
    border: 1px solid rgba(184, 163, 106, 0.18);
}

.hs-section--green .hs-commander-rank {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(26, 26, 26, 0.12);
}

.hs-commander-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 0.45rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-wrap: balance;
}

.hs-section--green .hs-commander-name {
    color: #1a1a1a;
}

.hs-commander-years {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #333;
    margin: 0 0 0.85rem;
}

.hs-section--green .hs-commander-years {
    color: #333;
}

.hs-commander-bio {
    font-size: 0.875rem;
    line-height: 1.62;
    color: #333;
    margin: 0 0 1.15rem;
    flex: 1 1 auto;
    min-height: 4.05rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-align: center;
}

.hs-section--green .hs-commander-bio {
    color: #333;
}

.hs-commander-card .btn,
.hs-commander-card .hs-commander-profile-link {
    align-self: center;
    margin-top: auto;
    width: 100%;
    max-width: 11.5rem;
    pointer-events: none;
}

.hs-commander-card {
    cursor: pointer;
}

.hs-commander-card.is-active {
    border-color: rgba(184, 163, 106, 0.55);
    box-shadow: var(--hs-shadow-lifted);
}

.hs-commander-card:focus-visible {
    outline: 2px solid var(--hs-gold-deep, #8f7840);
    outline-offset: 3px;
}

.hs-commander-rank {
    align-self: center;
}

/* ── Detail placeholder panels ── */
.hs-detail-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(184, 163, 106, 0.22);
    border-radius: var(--hs-radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    max-width: 56rem;
    margin-inline: auto;
}

.hs-section--cream .hs-detail-panel {
    background: #fff;
    border-color: rgba(184, 163, 106, 0.18);
    box-shadow: var(--hs-shadow-soft);
}

.hs-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.hs-detail-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hs-detail-portrait,
.hs-detail-medal {
    width: min(100%, 11rem);
    aspect-ratio: 1;
    border-radius: 999px;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 55%),
        linear-gradient(160deg, #e8dcc0 0%, #c9b07a 42%, #9a8048 100%);
    box-shadow: var(--hs-shadow-soft);
    border: 1px solid rgba(184, 163, 106, 0.28);
}

.hs-commander-profile-panel.is-empty {
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-commander-profile-placeholder {
    margin: 0;
    text-align: center;
    color: var(--bdf-muted);
    font-size: 0.95rem;
}

.hs-commander-profile-layout {
    overflow: auto;
}

.hs-commander-profile-portrait.hs-detail-portrait {
    float: left;
    width: min(42%, 14rem);
    max-width: 14rem;
    aspect-ratio: 3 / 4;
    border-radius: calc(var(--hs-radius-lg) - 0.15rem);
    margin: 0 1.5rem 1rem 0;
    background: var(--bdf-surface-portrait, #ece8df);
}

.hs-commander-profile-portrait.hs-detail-portrait img {
    width: 100%;
    height: 100%;
    object-fit: var(--bdf-photo-fit, cover);
    object-position: var(--bdf-photo-position, top center);
    display: block;
}

.hs-commander-profile-copy {
    display: block;
}

.hs-commander-profile-copy .hs-detail-field-label {
    margin-top: 0.85rem;
}

.hs-commander-profile-copy .hs-detail-field-label:first-child {
    margin-top: 0;
}

.hs-commander-profile-bio p {
    margin-bottom: 0.85rem;
}

.hs-commander-profile-bio p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .hs-commander-profile-portrait.hs-detail-portrait {
        float: none;
        width: min(70%, 12rem);
        max-width: 12rem;
        margin: 0 auto 1.25rem;
    }

    .hs-commander-profile-copy {
        text-align: center;
    }

    /* Keep bio justified even when the copy column centres chrome */
    .hs-commander-profile-bio.cms-content,
    .hs-commander-profile-bio.cms-content p {
        text-align: justify;
    }
}

.hs-detail-portrait img {
    width: 100%;
    height: 100%;
    object-fit: var(--bdf-photo-fit, cover);
    object-position: var(--bdf-photo-position, top center);
    display: block;
}

.hs-detail-ribbon {
    width: min(100%, 8rem);
    height: 2.75rem;
    border-radius: 0.35rem;
    background: linear-gradient(180deg, #8f7840, #b8a36a 45%, #8f7840);
    opacity: 0.75;
}

.hs-detail-fields {
    display: grid;
    gap: 0.85rem;
}

.hs-detail-field-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hs-gold-deep);
    margin-bottom: 0.25rem;
}

.hs-section--dark .hs-detail-field-label,
.hs-section--green .hs-detail-field-label {
    color: var(--hs-gold-light);
}

.hs-detail-field-value {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--bdf-muted);
    margin: 0;
}

.hs-section--dark .hs-detail-field-value,
.hs-section--green .hs-detail-field-value {
    color: rgba(255, 255, 255, 0.78);
}

/* ── Memorial ── */
.hs-memorial-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.hs-memorial-image-wrap {
    position: relative;
    border-radius: var(--hs-radius-xl);
    overflow: hidden;
    box-shadow: var(--hs-shadow-memorial);
    width: 100%;
    height: min(420px, 48vh);
    max-height: min(420px, 48vh);
}

.hs-memorial-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: var(--bdf-photo-fit, cover);
    object-position: var(--bdf-photo-position, top center);
}

.hs-memorial-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0.2rem;
    border: 1px solid rgba(184, 163, 106, 0.22);
    border-radius: calc(var(--hs-radius-xl) - 0.2rem);
    pointer-events: none;
    z-index: 1;
}

.hs-honour-group {
    margin-bottom: 1.75rem;
}

.hs-honour-group:last-child {
    margin-bottom: 0;
}

/* Honour Roll year accordion — military theme, clear expand/collapse affordance */
.hs-honour-accordion {
    --hs-honour-header-bg: linear-gradient(105deg, rgba(61, 72, 42, 0.92) 0%, rgba(36, 44, 26, 0.88) 100%);
    --hs-honour-header-bg-hover: linear-gradient(105deg, rgba(77, 86, 57, 0.95) 0%, rgba(47, 56, 34, 0.92) 100%);
    --hs-honour-header-bg-open: linear-gradient(105deg, rgba(143, 120, 64, 0.42) 0%, rgba(61, 72, 42, 0.95) 55%, rgba(32, 39, 25, 0.98) 100%);
    --hs-honour-border: rgba(184, 163, 106, 0.38);
    --hs-honour-border-open: rgba(212, 192, 138, 0.72);
    --hs-honour-body-bg: rgba(10, 12, 8, 0.45);
    --hs-honour-toggle-border: rgba(212, 192, 138, 0.75);
    --hs-honour-toggle-bg: rgba(184, 163, 106, 0.12);
}

.hs-honour-accordion.cms-expandable,
.hs-honour-accordion.bdf-collapsible-group {
    --cms-expandable-text: #f5f2e8;
    --cms-expandable-text-muted: rgba(245, 242, 232, 0.68);
    --cms-expandable-bg: transparent;
    --cms-expandable-bg-hover: transparent;
    --cms-expandable-border: var(--hs-honour-border);
    --bs-accordion-btn-icon: none;
    --bs-accordion-btn-active-icon: none;
}

.hs-honour-accordion > .accordion-item,
.hs-honour-accordion .hs-honour-group {
    margin-bottom: 0.75rem;
    background: transparent;
    border: 1px solid var(--hs-honour-border);
    border-radius: 0.55rem;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.hs-honour-accordion > .accordion-item:last-child,
.hs-honour-accordion .hs-honour-group:last-child {
    margin-bottom: 0;
}

.hs-honour-accordion .hs-honour-group:has(.hs-honour-accordion-btn:not(.collapsed)) {
    border-color: var(--hs-honour-border-open);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(184, 163, 106, 0.18);
}

.hs-honour-accordion .hs-honour-group-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.hs-honour-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f7f3e8 !important;
    background: var(--hs-honour-header-bg) !important;
    box-shadow: none !important;
    border: 0;
    border-left: 3px solid rgba(184, 163, 106, 0.55);
    border-radius: 0;
    padding: 0.95rem 1rem 0.95rem 1.05rem;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.hs-honour-accordion-btn::after {
    display: none;
}

.hs-honour-accordion-btn:hover,
.hs-honour-accordion-btn:focus {
    background: var(--hs-honour-header-bg-hover) !important;
    color: #fff !important;
    border-left-color: var(--hs-gold-light, #d4c08a);
}

.hs-honour-accordion-btn:focus-visible {
    outline: 2px solid var(--hs-gold-light, #d4c08a);
    outline-offset: 2px;
    z-index: 2;
}

.hs-honour-accordion-btn:not(.collapsed) {
    background: var(--hs-honour-header-bg-open) !important;
    color: #fff !important;
    border-left-color: var(--hs-gold-light, #d4c08a);
    box-shadow: inset 0 -1px 0 rgba(184, 163, 106, 0.28) !important;
}

.hs-honour-accordion-btn:not(.collapsed):hover,
.hs-honour-accordion-btn:not(.collapsed):focus {
    background: var(--hs-honour-header-bg-open) !important;
    color: #fff !important;
}

.hs-honour-accordion-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}

.hs-honour-entry-count {
    font-family: var(--font-body, inherit);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 192, 138, 0.88);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 163, 106, 0.35);
    background: rgba(0, 0, 0, 0.22);
}

.hs-honour-accordion-btn:not(.collapsed) .hs-honour-entry-count {
    color: #1a1f14;
    background: rgba(212, 192, 138, 0.92);
    border-color: rgba(212, 192, 138, 0.95);
}

.hs-honour-toggle {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1.5px solid var(--hs-honour-toggle-border);
    background: var(--hs-honour-toggle-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.hs-honour-toggle-icon {
    position: relative;
    width: 0.7rem;
    height: 0.7rem;
    display: block;
}

/* Plus indicator when collapsed */
.hs-honour-toggle-icon::before,
.hs-honour-toggle-icon::after {
    content: "";
    position: absolute;
    background: var(--hs-gold-light, #d4c08a);
    transition:
        transform 0.28s ease,
        opacity 0.2s ease,
        background 0.25s ease;
}

.hs-honour-toggle-icon::before {
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
}

.hs-honour-toggle-icon::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
}

/* Minus indicator when expanded */
.hs-honour-accordion-btn:not(.collapsed) .hs-honour-toggle {
    background: rgba(212, 192, 138, 0.95);
    border-color: rgba(245, 242, 232, 0.85);
    transform: rotate(180deg);
}

.hs-honour-accordion-btn:not(.collapsed) .hs-honour-toggle-icon::before,
.hs-honour-accordion-btn:not(.collapsed) .hs-honour-toggle-icon::after {
    background: #1a1f14;
}

.hs-honour-accordion-btn:not(.collapsed) .hs-honour-toggle-icon::after {
    opacity: 0;
    transform: scaleY(0);
}

.hs-honour-accordion .accordion-collapse {
    transition: height 0.32s ease;
}

.hs-honour-accordion .accordion-body,
.hs-honour-accordion-body {
    padding: 0.85rem 1.1rem 1.05rem;
    border-top: 1px solid rgba(184, 163, 106, 0.22);
    background: #f5f2e8;
}

.hs-honour-decade-year,
.hs-honour-year-text {
    color: #fff;
}

.hs-honour-decade-s {
    color: var(--hs-gold-light, #d4c08a);
    font-size: 0.82em;
    font-variant-caps: all-small-caps;
    letter-spacing: 0.12em;
    text-transform: lowercase;
}

@media (prefers-reduced-motion: reduce) {
    .hs-honour-accordion > .accordion-item,
    .hs-honour-accordion .hs-honour-group,
    .hs-honour-accordion-btn,
    .hs-honour-toggle,
    .hs-honour-toggle-icon::before,
    .hs-honour-toggle-icon::after,
    .hs-honour-accordion .accordion-collapse {
        transition: none;
    }
}

.hs-honour-group-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(184, 163, 106, 0.18);
}

.hs-honour-group.is-filtered-out,
.hs-honour-entry.is-filtered-out {
    display: none;
}

.hs-honour-no-results {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.hs-honour-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.hs-honour-entry {
    display: grid;
    grid-template-columns: minmax(3.1rem, 0.72fr) minmax(0, 1.45fr) auto;
    gap: 0.3rem 0.55rem;
    align-items: baseline;
    padding: 0.36rem 0.08rem;
    line-height: 1.28;
}

.hs-honour-rank {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.625rem;
    color: #4d5639;
    white-space: nowrap;
    text-shadow: none;
}

.hs-honour-name {
    color: #000;
    font-weight: 500;
    font-size: 0.8rem;
    min-width: 0;
    text-shadow: none;
}

.hs-honour-year {
    color: rgba(32, 39, 25, 0.55);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

/* ── Filter placeholder ── */
.hs-filter-placeholder {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 56rem;
    margin-inline: auto;
}

.hs-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hs-filter-label {
    display: block;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hs-gold-deep);
}

.hs-filter-input {
    height: 2.75rem;
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid rgba(184, 163, 106, 0.45);
    background: rgba(255, 255, 255, 0.72);
    padding: 0 0.85rem;
    color: var(--hs-green-dark);
    font-size: 0.875rem;
    font-family: inherit;
    appearance: none;
}

.hs-filter-input::placeholder {
    color: var(--bdf-muted);
}

.hs-filter-input:focus {
    outline: 2px solid rgba(184, 163, 106, 0.55);
    outline-offset: 1px;
    border-color: rgba(184, 163, 106, 0.7);
}

select.hs-filter-input {
    background-image: linear-gradient(45deg, transparent 50%, var(--hs-gold-deep) 50%), linear-gradient(135deg, var(--hs-gold-deep) 50%, transparent 50%);
    background-position: calc(100% - 1.05rem) calc(50% - 0.15rem), calc(100% - 0.7rem) calc(50% - 0.15rem);
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
    padding-right: 1.75rem;
}

.hs-filter-note {
    grid-column: 1 / -1;
    font-size: 0.8125rem;
    color: var(--bdf-muted);
    margin: 0.35rem 0 0;
}

/* ── Medal gallery ── */
.hs-award-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.5vw, 1.25rem);
    align-items: stretch;
}

.hs-award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, #fff 0%, #faf7ef 52%, var(--hs-cream-soft) 100%);
    border: 1px solid rgba(184, 163, 106, 0.22);
    border-radius: var(--hs-radius-xl);
    box-shadow: var(--hs-shadow-soft);
    padding: 1.45rem 1.15rem 1.55rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hs-award-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hs-gold-deep), var(--hs-gold-light), var(--hs-gold-deep));
    opacity: 0.85;
}

.hs-award-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hs-shadow-lifted);
}

.hs-award-visual {
    width: 6.75rem;
    height: 6.75rem;
    margin: 0.15rem auto 1.15rem;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.78), transparent 52%),
        linear-gradient(155deg, #ecd9ad 0%, #b8a36a 38%, #8f7840 100%);
    box-shadow: 0 12px 24px rgba(122, 84, 50, 0.22);
    flex-shrink: 0;
}

.hs-award-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 55%),
        linear-gradient(160deg, #e8dcc0 0%, #c9b07a 42%, #9a8048 100%);
}

.hs-award-visual img {
    width: 100%;
    height: 100%;
    object-fit: var(--bdf-photo-fit, cover);
    object-position: var(--bdf-photo-position, top center);
}

.hs-award-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--hs-green-dark);
    margin-bottom: 0.55rem;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-wrap: balance;
}

.hs-award-desc {
    text-align: justify;
    text-justify: inter-word;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--bdf-muted);
    margin: 0;
    flex: 1 1 auto;
    width: 100%;
    min-height: 4.2rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* ── Reveal ── */
.hs-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hs-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hs-reveal--delay-1 { transition-delay: 0.08s; }
.hs-reveal--delay-2 { transition-delay: 0.14s; }

/* ── Responsive ── */
@media (max-width: 1199.98px) {
    .hs-commander-grid,
    .hs-award-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hs-memorial-feature,
    .hs-detail-grid {
        grid-template-columns: 1fr;
    }

    .hs-memorial-image-wrap {
        max-height: none;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 11;
        order: -1;
    }

    .hs-filter-placeholder {
        grid-template-columns: 1fr;
    }

    .hs-commander-name,
    .hs-award-name {
        min-height: 0;
    }

    .hs-commander-bio,
    .hs-award-desc {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .hs-commander-grid,
    .hs-award-grid,
    .hs-fsm-name-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hs-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hs-commander-card:hover,
    .hs-award-card:hover {
        transform: none;
    }
}

.hs-empty-note {
    color: rgba(32, 39, 25, 0.62);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hs-section--dark .hs-empty-note,
.hs-section--green .hs-empty-note {
    color: rgba(255, 255, 255, 0.72);
}
