/* Connected organization chart: natural-size nodes plus accessible overview zoom. */
#content .civic-org { --org-connector: #718fac; color: #173d65; }
#content .civic-org .civic-org__scroll-hint { margin: 0 0 18px; color: #425f7d; font-size: 15px; line-height: 1.5; text-align: left; }
#content .civic-org .civic-org__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
#content .civic-org .civic-org__controls[hidden] { display: none; }
#content .civic-org .civic-org__controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 9px 14px; border: 1px solid #adc6dc; border-radius: 8px !important; background: #fff; color: #0b3a70; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; }
#content .civic-org .civic-org__controls button:hover { background: #eaf3fb; }
#content .civic-org .civic-org__controls button[aria-pressed="true"] { background: #0b3a70; border-color: #0b3a70; color: #fff; }
#content .civic-org .civic-org__controls button:disabled { opacity: .4; cursor: default; }
#content .civic-org .civic-org__controls button:focus-visible { outline: 3px solid #b27b00; outline-offset: 3px; }
#content .civic-org .civic-org__zoom-value { display: inline-block; min-width: 58px; color: #173d65; font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 600; text-align: center; }
#content .civic-org .civic-org__zoom-hint { display: none; }
#content .civic-org.is-zoomable .civic-org__zoom-hint { display: inline; }
#content .civic-org.is-zoomable .civic-org__fallback-hint { display: none; }
#content .civic-org .civic-org__lead { position: relative; width: min(100%, 660px); margin: 0 auto; padding: 26px 30px; border-radius: 10px; background: #0b3a70; color: #fff; }
#content .civic-org .civic-org__lead::after { position: absolute; top: 100%; left: 50%; width: 0; height: 32px; border-left: 2px solid var(--org-connector); content: ""; }
#content .civic-org .civic-org__lead h2 { margin: 0 0 22px; color: #fff; font-family: "IBM Plex Sans", sans-serif; font-size: clamp(23px, 2.5vw, 30px); font-weight: 600; line-height: 1.3; }
#content .civic-org .civic-org__leadership { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
#content .civic-org .civic-org__leadership dt { margin: 0 0 5px; color: #d9eaff; font-size: 14px; font-weight: 500; line-height: 1.5; }
#content .civic-org .civic-org__leadership dd { margin: 0; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
#content .civic-org .civic-org__scroll { position: relative; width: 100%; max-width: 100%; height: clamp(340px, 65vh, 720px); overflow: auto; padding: 0; border: 1px solid #c6d9e9; border-radius: 12px; background: #f8fbfe; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: #0b3a70 #e7eff7; scroll-behavior: auto; }
#content .civic-org .civic-org__stage { position: relative; width: max-content; min-width: 100%; }
#content .civic-org .civic-org__canvas { width: max-content; padding: 24px; transform-origin: 0 0; }
#content .civic-org.is-zoomable .civic-org__stage { min-width: 0; overflow: hidden; }
#content .civic-org.is-zoomable .civic-org__canvas { position: absolute; padding: 24px; }
#content .civic-org .civic-org__scroll::-webkit-scrollbar { width: 15px; height: 15px; }
#content .civic-org .civic-org__scroll::-webkit-scrollbar-track { border-radius: 8px; background: #e7eff7; }
#content .civic-org .civic-org__scroll::-webkit-scrollbar-thumb { border: 3px solid #e7eff7; border-radius: 8px; background: #0b3a70; }
#content .civic-org .civic-org__scroll:focus-visible { outline: 3px solid #b27b00; outline-offset: 4px; }
#content .civic-org .civic-org__sectors { display: flex; width: max-content; min-width: 0; margin: 32px 0 0; padding: 0 0 12px; list-style: none; }
#content .civic-org .civic-org__sector { position: relative; flex: 0 0 220px; width: 220px; min-width: 0; margin: 0; padding: 32px 10px 0; }
/* The shared trunk connects all sectors; stems end at the sector nodes. */
#content .civic-org .civic-org__sector::before { position: absolute; top: 0; right: 0; left: 0; border-top: 2px solid var(--org-connector); content: ""; }
#content .civic-org .civic-org__sector:first-child::before { left: 50%; }
#content .civic-org .civic-org__sector:last-child::before { right: 50%; }
#content .civic-org .civic-org__sector::after { position: absolute; top: 0; left: 50%; height: 32px; border-left: 2px solid var(--org-connector); content: ""; }
#content .civic-org .civic-org__sector article { min-width: 0; }
#content .civic-org .civic-org__sector-heading { position: relative; padding: 18px 16px; border: 1px solid #adc6dc; border-radius: 9px; background: #eaf3fb; }
#content .civic-org .civic-org__sector h3 { margin: 0; font-family: "IBM Plex Sans", sans-serif; font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: 0; }
#content .civic-org .civic-org__sector h3 a { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 44px; color: #0b3a70; text-decoration: none; }
#content .civic-org .civic-org__sector h3 span { min-width: 0; overflow-wrap: anywhere; }
#content .civic-org .civic-org__sector h3 svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; }
#content .civic-org .civic-org__manager { display: grid; gap: 4px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #c5d8e9; color: #173d65; font-size: 16px; line-height: 1.5; }
#content .civic-org .civic-org__manager span { color: #48637e; font-size: 12px; font-weight: 400; }
/* Each nested branch connects the sector to its departments, including the final leaf. */
#content .civic-org .civic-org__departments { position: relative; margin: 24px 0 0 14px; padding: 0 0 0 18px; list-style: none; }
#content .civic-org .civic-org__departments li { position: relative; margin: 0; padding: 0 0 16px; }
#content .civic-org .civic-org__departments li::before { position: absolute; top: 0; bottom: 0; left: -18px; border-left: 2px solid var(--org-connector); content: ""; }
#content .civic-org .civic-org__departments li:first-child::before { top: -24px; }
#content .civic-org .civic-org__departments li:last-child::before { bottom: calc(100% - 26px); }
#content .civic-org .civic-org__departments li::after { position: absolute; top: 26px; left: -18px; width: 18px; border-top: 2px solid var(--org-connector); content: ""; }
#content .civic-org .civic-org__departments a { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 54px; padding: 14px 12px; border: 1px solid #c6d9e9; border-radius: 8px; background: #fff; color: #164b7b; font-size: 16px; font-weight: 500; line-height: 1.5; text-decoration: none; }
#content .civic-org .civic-org__departments span { min-width: 0; overflow-wrap: anywhere; }
#content .civic-org .civic-org__departments svg { display: none; }
#content .civic-org .civic-org__sector a:hover span { color: #075eae; text-decoration: underline; text-underline-offset: 4px; }
#content .civic-org a:focus-visible { outline: 3px solid #b27b00; outline-offset: 4px; }
@media (max-width: 767px) {
    /* One connected vertical tree, using exactly the same CMS hierarchy as desktop. */
    #content .civic-org .civic-org__controls,
    #content .civic-org .civic-org__scroll-hint { display: none; }
    #content .civic-org .civic-org__scroll { height: auto; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; overscroll-behavior: auto; touch-action: auto; scrollbar-gutter: auto; }
    #content .civic-org .civic-org__stage,
    #content .civic-org .civic-org__canvas { width: 100%; min-width: 0; }
    #content .civic-org .civic-org__canvas { padding: 0; }
    #content .civic-org .civic-org__lead { width: 100%; padding: 20px 18px; }
    #content .civic-org .civic-org__lead h2 { font-size: 22px; margin-bottom: 18px; }
    #content .civic-org .civic-org__leadership { grid-template-columns: 1fr; gap: 16px; }
    #content .civic-org .civic-org__leadership dd { font-size: 17px; }
    #content .civic-org .civic-org__lead::after { left: 12px; height: 24px; }
    #content .civic-org .civic-org__sectors { display: block; width: auto; margin: 24px 0 0 12px; padding: 0; }
    #content .civic-org .civic-org__sector { width: auto; padding: 0 0 24px 18px; }
    #content .civic-org .civic-org__sector::before,
    #content .civic-org .civic-org__sector:first-child::before,
    #content .civic-org .civic-org__sector:last-child::before { top: 0; bottom: 0; right: auto; left: 0; border-top: 0; border-left: 2px solid var(--org-connector); }
    #content .civic-org .civic-org__sector:last-child::before { bottom: calc(100% - 28px); }
    #content .civic-org .civic-org__sector::after { top: 28px; left: 0; width: 18px; height: 0; border-left: 0; border-top: 2px solid var(--org-connector); }
    #content .civic-org .civic-org__sector-heading { padding: 16px 14px; }
    #content .civic-org .civic-org__sector h3 { font-size: 17px; }
    #content .civic-org .civic-org__departments { margin-left: 8px; padding-left: 14px; }
    #content .civic-org .civic-org__departments li::before { left: -14px; }
    #content .civic-org .civic-org__departments li::after { left: -14px; width: 14px; }
    #content .civic-org .civic-org__departments a { padding: 12px 10px; font-size: 16px; }
}
