/* Contrast corrections and leadership hierarchy */
html[data-theme="dark"] .check-list li,
html[data-theme="dark"] .check-list li span,
html[data-theme="dark"] .process-card h3,
html[data-theme="dark"] .process-card p,
html[data-theme="dark"] .benefit-card h3,
html[data-theme="dark"] .benefit-card p,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .value-card h3,
html[data-theme="dark"] .value-card p,
html[data-theme="dark"] .division-card-body p,
html[data-theme="dark"] .contact-card p,
html[data-theme="dark"] .news-card p,
html[data-theme="dark"] .notice-card p,
html[data-theme="dark"] .requirements-grid p,
html[data-theme="dark"] .editorial-copy p,
html[data-theme="dark"] .history-copy p,
html[data-theme="dark"] .headquarters-card p,
html[data-theme="dark"] .faq-item p {
    color: #b7c7d5 !important;
}

html[data-theme="dark"] .check-list li {
    color: #e3edf4 !important;
    background: #0d2434 !important;
    border-color: #284359 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

html[data-theme="dark"] .check-list .icon { color: #4ed095 !important; }
html[data-theme="dark"] .process-card strong,
html[data-theme="dark"] .benefit-card small,
html[data-theme="dark"] .service-card small,
html[data-theme="dark"] .card-meta span { color: #73b5e2 !important; }
html[data-theme="dark"] .process-card > span { color: #f0d37d; background: #102d43; outline-color: #47647a; }
html[data-theme="dark"] .section-heading > p { color: #9fb3c4; }
html[data-theme="dark"] .filter-form label { color: #a9bbc9; }
html[data-theme="dark"] .filter-form select,
html[data-theme="dark"] .admin-form input,
html[data-theme="dark"] .admin-form select,
html[data-theme="dark"] .admin-form textarea { color: #e4edf4; }
html[data-theme="dark"] .service-number { color: #2a4357; }
html[data-theme="dark"] .results-head { color: #9eb0c0; }

.leadership-teaser {
    position: relative;
    overflow: hidden;
    padding-block: 72px;
    color: white;
    background:
        radial-gradient(circle at 88% 0%, rgba(42, 116, 170, .62), transparent 22rem),
        linear-gradient(125deg, #051521, #092d4b);
}
.leadership-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .2;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 64px 64px;
}
.leadership-teaser-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.leadership-teaser-mark { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(224,196,110,.4); border-radius: 22px; color: var(--gold-400); background: rgba(255,255,255,.06); }
.leadership-teaser-mark .icon { width: 36px; height: 36px; }
.leadership-teaser h2 { margin: 0 0 8px; color: #fff; font-size: 2.35rem; }
.leadership-teaser p { max-width: 720px; margin: 0; color: #b9cad8; }

.leadership-hero { background: radial-gradient(circle at 80% 12%, #205f8e, transparent 24rem), linear-gradient(125deg, #030f19, #082743 60%, #0b3456); }
.hierarchy-section { position: relative; overflow: hidden; }
.hierarchy-section::before { content: ''; position: absolute; top: 0; left: 50%; width: min(1000px, 100%); height: 500px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(circle, var(--modern-glow), transparent 70%); opacity: .55; }
.hierarchy-section > .container { position: relative; }
.hierarchy-intro { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 60px; margin-bottom: 75px; }
.hierarchy-intro h2 { margin: 0; }
.hierarchy-intro > p { margin: 0 0 7px; font-size: 1rem; }
.hierarchy-tree { --tree-line: color-mix(in srgb, var(--gold-500) 62%, var(--line)); width: 100%; max-width: 1120px; display: grid; justify-items: center; margin-inline: auto; }
.hierarchy-level { position: relative; width: 100%; display: flex; justify-content: center; gap: 24px; padding-top: 37px; }
.hierarchy-level-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 5px 12px; border: 1px solid color-mix(in srgb, var(--gold-500) 35%, var(--modern-border)); border-radius: 30px; color: var(--blue-500); background: var(--modern-surface-solid); font-size: .6rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.hierarchy-chief { padding-top: 42px; }
.hierarchy-connector { position: relative; height: 86px; }
.hierarchy-connector::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--tree-line), color-mix(in srgb, var(--tree-line) 50%, transparent)); }
.hierarchy-connector i { position: absolute; left: 50%; bottom: 0; width: 10px; height: 10px; transform: translate(-50%, 50%) rotate(45deg); border: 2px solid var(--gold-500); background: var(--paper); }
.hierarchy-branches { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; justify-items: center; gap: 24px; padding-top: 68px; }
.hierarchy-branches.has-branches::before { content: ''; position: absolute; top: 36px; right: calc(50% / var(--branch-count, 3)); left: calc(50% / var(--branch-count, 3)); height: 2px; background: var(--tree-line); }
.hierarchy-branches .hierarchy-node::before { content: ''; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 32px; transform: translateX(-50%); background: var(--tree-line); }
.command-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.hierarchy-node {
    position: relative;
    width: 100%;
    max-width: 350px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--modern-border);
    border-radius: 20px;
    background: var(--modern-surface-solid);
    box-shadow: var(--modern-shadow);
    text-align: center;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hierarchy-node:hover { z-index: 2; transform: translateY(-6px); border-color: color-mix(in srgb, var(--gold-500) 55%, var(--modern-border)); box-shadow: var(--modern-shadow-hover); }
.hierarchy-node.primary { max-width: 420px; border-color: color-mix(in srgb, var(--gold-500) 48%, var(--modern-border)); }
.hierarchy-node.primary::after { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, #9c7627, #ebcf77, #9c7627); }
.hierarchy-photo { display: grid; place-items: center; height: 205px; overflow: hidden; color: var(--gold-500); background: radial-gradient(circle at 50% 120%, #225f89, #08223a 68%, #061723); }
.hierarchy-node.primary .hierarchy-photo { height: 245px; }
.hierarchy-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hierarchy-photo .icon { width: 72px; height: 72px; opacity: .72; }
.hierarchy-node-copy { padding: 24px; }
.hierarchy-node-copy > span { display: block; color: var(--blue-500); font-size: .63rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.hierarchy-node-copy h2 { margin: 8px 0 10px; font-size: 1.55rem; }
.hierarchy-node.primary .hierarchy-node-copy h2 { font-size: 1.9rem; }
.hierarchy-node-copy p { margin: 0; font-size: .83rem; }
.hierarchy-note { display: flex; align-items: center; gap: 18px; max-width: 820px; margin: 70px auto 0; padding: 24px 28px; border: 1px solid var(--modern-border); border-radius: 17px; background: var(--modern-surface-soft); }
.hierarchy-note > .icon { width: 38px; height: 38px; color: var(--gold-500); }
.hierarchy-note strong { color: var(--navy-900); }
.hierarchy-note p { margin: 3px 0 0; font-size: .82rem; }

html[data-theme="dark"] .hierarchy-level-label { color: #7cb8df; background: #0b1b29; }
html[data-theme="dark"] .hierarchy-connector i { background: #07131f; }
html[data-theme="dark"] .hierarchy-node { background: #0b1d2b; }
html[data-theme="dark"] .hierarchy-node-copy h2,
html[data-theme="dark"] .hierarchy-note strong { color: #e8f0f6; }
html[data-theme="dark"] .hierarchy-node-copy p,
html[data-theme="dark"] .hierarchy-note p { color: #a9bbc9; }
html[data-theme="dark"] .hierarchy-node-copy > span { color: #78b8e2; }
html[data-theme="dark"] .hierarchy-note { background: #0c2030; }

@media (max-width: 980px) {
    .leadership-teaser-inner { grid-template-columns: auto 1fr; }
    .leadership-teaser-inner > .button { grid-column: 2; justify-self: start; }
    .hierarchy-intro { grid-template-columns: 1fr; gap: 18px; }
    .hierarchy-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hierarchy-branches.has-branches::before { right: 25%; left: 25%; }
}

@media (max-width: 700px) {
    .leadership-teaser-inner { grid-template-columns: 1fr; text-align: center; }
    .leadership-teaser-mark { margin-inline: auto; }
    .leadership-teaser .eyebrow { justify-content: center; }
    .leadership-teaser-inner > .button { grid-column: auto; justify-self: center; }
    .hierarchy-intro { margin-bottom: 55px; }
    .hierarchy-branches { display: flex; flex-direction: column; align-items: center; padding-top: 50px; }
    .hierarchy-branches.has-branches::before { display: none; }
    .hierarchy-branches .hierarchy-node::before { height: 24px; }
    .hierarchy-node { max-width: 420px; }
    .hierarchy-connector { height: 65px; }
    .hierarchy-note { align-items: flex-start; }
}

@media (max-width: 480px) {
    .hierarchy-photo, .hierarchy-node.primary .hierarchy-photo { height: 215px; }
    .hierarchy-node-copy { padding: 21px 17px; }
    .hierarchy-note { padding: 20px; }
}

