.organization-section { padding: 80px 0; background: #fff; }
.organization-container { width: min(100% - 40px, 1200px); margin: 0 auto; }
.organization-section-heading { max-width: 740px; margin: 0 auto 28px; text-align: center; }
.organization-eyebrow { color: #27704b; font-size: 11px; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; }
.organization-section-heading h2 { margin: 13px 0; color: #173b2b; font-size: clamp(26px, 3vw, 36px); font-weight: 750; line-height: 1.22; letter-spacing: -.9px; }
.organization-section-heading p { max-width: 620px; margin: 0 auto; color: #768279; font-size: 13px; line-height: 1.8; }
.organization-term { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; color: #68766c; font-size: 11px; }
.organization-term i { color: #a58a4b; }
.organization-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0 0 24px; padding: 7px; border: 1px solid #e5ebe7; border-radius: 15px; background: #f6f8f6; }
#pengurus .organization-filters .btn-filter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; color: #647269; background: transparent; font-size: 11px; font-weight: 600; line-height: 1.5; }
#pengurus .organization-filters .btn-filter[aria-pressed="true"] { color: #fff; border-color: #1f5f43; background: #1f5f43; box-shadow: 0 3px 8px #18432d18; }
.organization-filter-count { min-width: 19px; padding: 1px 5px; border-radius: 5px; font-size: 10px; line-height: 1.6; background: #e8eeea; color: #78857d; font-variant-numeric: tabular-nums; }
[aria-pressed="true"] > .organization-filter-count { color: #e4efe8; background: #ffffff20; }
@media (max-width: 560px) {
    .organization-section { padding: 56px 0; }
    .organization-container { width: calc(100% - 24px); }
    .organization-section-heading { padding: 0 8px; }
    .organization-filters { gap: 3px; padding: 5px; }
    #pengurus .organization-filters .btn-filter { padding: 8px; font-size: 10px; }
}
.organization-layout {
    --org-line: #bdd1c5;
    --org-green: rgb(var(--ansor-green));
    --org-gold: rgb(var(--ansor-gold));
    min-width: 0;
    overflow-x: auto;
    padding: 34px 26px 40px;
    border: 1px solid #e0e9e3;
    border-radius: 24px;
    background: radial-gradient(#d9e4dd80 .65px, transparent .65px) 0 0 / 22px 22px, #f7faf8;
    scrollbar-width: thin;
    scrollbar-color: #a5bfb0 #eaf1ec;
}
.org-chart { min-width: 0; max-width: 1080px; margin: 0 auto; }
.org-stage { position: relative; min-width: 0; }
.org-stage + .org-stage { margin-top: 30px; }
.org-stage + .org-stage::before { content: ''; position: absolute; left: 50%; top: -30px; height: 30px; width: 2px; background: var(--org-line); transform: translateX(-50%); }
/* Every position uses one panel; group headings belong to that panel. */
.org-board-heading { width: min(100%, 320px); margin: 0 auto; padding: 16px 18px; color: #315a42; background: #edf4ef; border: 1px solid #dce6df; border-radius: 16px; font-size: 11px; font-weight: 700; line-height: 1.65; text-align: center; white-space: pre-line; letter-spacing: .45px; overflow-wrap: anywhere; }
.org-node { position: relative; min-width: 0; width: min(100%, 320px); margin-left: auto; margin-right: auto; border: 1px solid #dce6df; border-radius: 16px; background: #fff; box-shadow: 0 5px 16px #163b2910; transition: box-shadow .22s, border-color .22s; }
.org-node:hover { border-color: #b1cbbb; box-shadow: 0 10px 25px #173f2c10; }
.org-node-heading { display: flex; justify-content: flex-start; align-items: center; min-height: 58px; width: 100%; margin: 0; padding: 14px 18px; border: 0; border-bottom: 1px solid #dce6df; border-radius: 15px 15px 0 0; background: #f0f6f2; color: #315a42; font-size: 11px; line-height: 1.65; font-weight: 700; text-align: left; letter-spacing: .25px; white-space: pre-line; overflow-wrap: anywhere; }
.org-node-heading:only-child { border-bottom: 0; border-radius: 14px; }
.org-members { display: flex; flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
.org-member { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 120px; width: 100%; max-width: 320px; padding: 20px; border: 1px solid #dce6df; border-radius: 16px; text-align: left; background: #fff; box-shadow: 0 5px 16px #163b2910; }
.org-node .org-member { max-width: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.org-node .org-member + .org-member { border-top: 1px solid #e7eee9; }
.org-member-photo { flex: 0 0 72px; width: 72px; height: 72px; padding: 3px; border: 1px solid #dce6df; border-radius: 16px; background: #f1f5f2; overflow: hidden; }
.org-member-copy { min-width: 0; flex: 1; }
.org-member h4 { margin: 0; font-size: 15px; color: #18392a; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.org-member-role { margin: 5px 0 0; color: #617468; font-size: 11px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.org-node-ketua { background: linear-gradient(125deg, #123e2f, #1e6147); border-color: #245b43; border-top: 3px solid var(--org-gold); }
.org-node-ketua .org-member h4 { color: #fff; }
.org-node-ketua .org-member-role { color: #dfebe3; }
.org-node-ketua .org-member-photo { border-color: #ffffff38; background: #ffffff15; }
.org-member-unassigned h4 { color: #7c8c82; font-size: 13px; font-weight: 500; }
.org-member-unassigned .org-member-photo { opacity: .55; }
/* Keep the contents attached to their heading while the existing reveal animation runs. */
#pengurus .org-node .org-member.ansor-card:hover { transform: none; box-shadow: none; border-color: #e7eee9; }
.org-node > .org-heading-accessible { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.org-branches { display: grid; gap: 30px; padding-top: 26px; }
.org-branches::after { content: ''; position: absolute; top: 0; height: 2px; background: var(--org-line); }
.org-executive { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 740px; margin-left: auto; margin-right: auto; padding-bottom: 28px; }
.org-executive::after { left: calc(25% - 7.5px); right: calc(25% - 7.5px); }
.org-executive > .org-column { display: grid; grid-template-rows: 1fr auto; }
.org-column { position: relative; min-width: 0; }
.org-column::before { content: ''; position: absolute; left: 50%; top: -26px; width: 2px; height: 26px; background: var(--org-line); transform: translateX(-50%); }
.org-column > .org-node + .org-node { margin-top: 28px; }
.org-column > .org-node + .org-node::before { content: ''; position: absolute; top: -29px; left: 50%; width: 2px; height: 28px; background: var(--org-line); transform: translateX(-50%); }
.org-merge { position: absolute; left: calc(25% - 7.5px); right: calc(25% - 7.5px); height: 2px; bottom: 0; background: var(--org-line); }
.org-merge::before, .org-merge::after { content: ''; position: absolute; bottom: 0; height: 28px; width: 2px; background: var(--org-line); }
.org-merge::before { left: 0; }
.org-merge::after { right: 0; }
.org-units { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.org-units::after { left: calc(16.6667% - 10px); right: calc(16.6667% - 10px); }
.org-extras { margin-top: 32px; padding-top: 22px; border-top: 1px solid #d9e5dc; }
.org-advisors > summary { cursor: pointer; width: max-content; max-width: 100%; margin: 0 auto; color: #42654d; font-size: 13px; padding: 11px 18px; border: 1px solid #d1e0d6; border-radius: 12px; background: #fff; }
.org-advisors[open] > summary { margin-bottom: 20px; }
.org-advisors > summary:focus-visible { outline: 2px solid var(--org-green); outline-offset: 4px; }
.org-chart[data-filtered="true"] { min-width: 0; }
.org-chart[data-filtered="true"] .org-stage + .org-stage { margin-top: 24px; }
.org-chart[data-filtered="true"] .org-branches { display: block; max-width: none; padding-top: 0; }
.org-chart[data-filtered="true"] .org-column + .org-column { margin-top: 24px; }
.org-chart[data-filtered="true"] :is(.org-stage, .org-column, .org-node)::before,
.org-chart[data-filtered="true"] .org-branches::after,
.org-chart[data-filtered="true"] .org-column::after,
.org-chart[data-filtered="true"] .org-merge { display: none; }
.org-chart[data-filtered="true"] .org-executive { padding-bottom: 0; }
.org-chart[data-filtered="true"] .org-executive > .org-column { display: block; }
.org-chart[data-filtered="true"] .org-extras { margin-top: 0; padding-top: 0; border: 0; }
.org-chart[data-filtered="true"] .org-advisors > summary { display: none; }
.organization-layout [hidden], .organization-layout .org-member.hidden { display: none !important; }
@media (max-width: 900px) {
    .organization-layout { padding: 28px 18px; overflow-x: visible; }
    .org-chart { max-width: 640px; }
    .org-chart:not([data-filtered="true"]) .org-units { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 440px; margin-left: auto; margin-right: auto; padding-left: 20px; }
    .org-chart:not([data-filtered="true"]) .org-units::after { left: 0; right: 50%; }
    .org-chart:not([data-filtered="true"]) .org-units > .org-column::before { left: -20px; top: -26px; height: calc(100% + 50px); transform: none; }
    .org-chart:not([data-filtered="true"]) .org-units > .org-column:last-child::before { height: 55px; }
    .org-chart:not([data-filtered="true"]) .org-units > .org-column::after { content: ''; position: absolute; left: -20px; top: 29px; width: 20px; height: 2px; background: var(--org-line); }
    .org-chart:not([data-filtered="true"]) .org-units .org-node { width: 100%; }
    .org-chart[data-filtered="true"] .org-units { padding-left: 0; }
}
@media (max-width: 560px) {
    .organization-layout { padding: 24px 12px 30px; border-radius: 18px; }
    .org-executive { gap: 16px; }
    .org-executive::after, .org-merge { left: calc(25% - 4px); right: calc(25% - 4px); }
    .org-chart:not([data-filtered="true"]) .org-executive .org-member { flex-direction: column; text-align: center; gap: 10px; padding: 16px 10px; }
    .org-chart:not([data-filtered="true"]) .org-executive .org-member-photo { flex-basis: 58px; width: 58px; height: 58px; border-radius: 14px; }
    .org-chart:not([data-filtered="true"]) .org-executive .org-member h4 { font-size: 12px; }
    .org-chart:not([data-filtered="true"]) .org-executive .org-member-role { font-size: 10px; }
    .org-member { padding: 17px; gap: 12px; }
    .org-member h4 { font-size: 14px; }
    .org-member-photo { flex-basis: 64px; width: 64px; height: 64px; }
    .org-node-heading { padding: 13px 16px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .org-member, .org-node { transition: none; } }
.organization-division-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 740px; margin: 0 auto 28px; }
.organization-division-tabs a { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border: 1px solid #d7e3db; border-radius: 16px; background: #f5f8f6; color: #476451; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .2s, box-shadow .2s; }
.organization-division-tabs a > :last-child { margin-left: auto; font-size: 20px; }
.organization-division-tabs a[aria-selected="true"] { background: #174b35; color: #fff; border-color: #174b35; box-shadow: 0 6px 20px #174b3520; }
.organization-division-count { font-size: 11px; padding: 3px 7px; border: 1px solid currentColor; border-radius: 6px; opacity: .75; }
.organization-division-tabs a:focus-visible, [data-division-panel]:focus-visible { outline: 3px solid #a58a4b; outline-offset: 4px; }
[data-division-panel][hidden] { display: none !important; }
[data-division-panel] + [data-division-panel] { margin-top: 28px; }
[data-division-tabs][role="tablist"] + #pengurus-grid [data-division-panel] { margin-top: 0; }
.organization-division-heading { text-align: center; margin: 0 0 24px; color: #386147; font-size: 13px; font-weight: 650; white-space: pre-line; line-height: 1.7; }
.org-unit-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 740px; margin-left: auto; margin-right: auto; }
.org-unit-count-2::after { left: calc(25% - 7.5px); right: calc(25% - 7.5px); }
.banser-group { padding: 12px; background: #edf3ef; border: 1px solid #dce6df; border-radius: 20px; }
.banser-group-heading { padding: 4px 8px 16px; font-size: 11px; font-weight: 750; color: #315a42; text-align: center; letter-spacing: .4px; }
.banser-group .org-node { width: 100%; box-shadow: none; }
.banser-group .org-node + .org-node { margin-top: 10px; }
.banser-group .org-node-heading { min-height: 48px; font-size: 10px; }
.banser-group .org-member { padding: 14px 12px; gap: 10px; min-height: 100px; }
.banser-group .org-member h4 { font-size: 13px; }
.banser-group .org-member-photo { flex-basis: 54px; width: 54px; height: 54px; border-radius: 12px; }
.org-banser-branches { padding-bottom: 28px; }
.org-banser-branches > .org-column { display: flex; flex-direction: column; }
.org-banser-branches > .org-column::after { content: ''; display: block; flex: 1; min-height: 0; width: 2px; background: var(--org-line); margin: 0 auto; }
.org-banser-branches .org-merge { left: calc(16.6667% - 10px); right: calc(16.6667% - 10px); }
.org-banser-branches .org-merge::before { left: 50%; }
@media (max-width: 900px) {
    .org-chart:not([data-filtered="true"]) .org-banser-branches { padding-bottom: 0; }
    .org-banser-branches .org-merge { display: none; }
    .org-chart:not([data-filtered="true"]) .org-banser-branches > .org-column::after { flex: none; min-height: 0; margin: 0; }
}
@media (max-width: 560px) {
    .organization-division-tabs { gap: 8px; margin-bottom: 18px; }
    .organization-division-tabs a { gap: 7px; padding: 15px 12px; font-size: 12px; border-radius: 12px; }
    .organization-division-tabs a > :last-child { display: none; }
    .organization-division-count { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .organization-division-tabs a { transition: none; } }
.organization-division-tabs { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.organization-division-tabs a { padding: 18px 16px; font-size: 13px; }
.organization-unit-directory { display: grid; gap: 14px; }
.organization-unit { border: 1px solid #dce7df; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 4px 16px #153c2810; }
.organization-unit > summary { list-style: none; display: flex; align-items: center; gap: 18px; padding: 22px 26px; cursor: pointer; transition: background .2s; }
.organization-unit > summary::-webkit-details-marker { display: none; }
.organization-unit > summary:hover, .organization-unit[open] > summary { background: #f0f6f2; }
.organization-unit > summary:focus-visible { outline: 3px solid #a58a4b; outline-offset: -4px; }
.organization-unit-symbol { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid #d9e5dd; border-radius: 13px; background: #eaf2ed; color: #2b6142; }
.organization-unit-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.organization-unit-name small { font-size: 9px; font-weight: 700; letter-spacing: 1.3px; color: #7a8a80; }
.organization-unit-name strong { color: #274b36; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.organization-unit-count { margin-left: auto; flex-shrink: 0; font-size: 11px; color: #718078; }
.organization-unit-chevron { color: #3b644a; font-size: 22px; transition: transform .2s; }
.organization-unit[open] .organization-unit-chevron { transform: rotate(180deg); }
.organization-unit-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border: 0; border-top: 1px solid #dce7df; border-radius: 0; padding: 28px; }
.organization-unit-role .org-node { width: 100%; }
.organization-unit-leader { grid-column: 1 / -1; width: min(100%, 360px); margin: 0 auto; }
.organization-unit-empty { grid-column: 1 / -1; padding: 26px 16px; text-align: center; font-size: 13px; color: #7b8880; }
@media (max-width: 900px) { .organization-division-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .organization-unit > summary { gap: 10px; padding: 17px 14px; }
    .organization-unit-symbol { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
    .organization-unit-name strong { font-size: 13px; }
    .organization-unit-name small { font-size: 8px; letter-spacing: .5px; }
    .organization-unit-count { font-size: 9px; }
    .organization-unit-content { grid-template-columns: minmax(0, 1fr); padding: 18px 12px; gap: 14px; }
    .organization-unit-leader { width: 100%; }
    .organization-division-tabs a { font-size: 11px; padding: 14px 11px; }
}
@media (prefers-reduced-motion: reduce) { .organization-unit > summary, .organization-unit-chevron { transition: none; } }

.banser-branch-tail { position: absolute; bottom: -28px; left: 50%; width: 2px; height: 28px; background: var(--org-line); }
.org-banser-branches .org-merge::before, .org-banser-branches .org-merge::after { display: none; }
@media (max-width: 900px) { .banser-branch-tail { display: none; } }
