/* Editable organization chart: reusable card design with full-screen detail modal. */
body.atorg-modal-open{overflow:hidden;}
.atorg-chart{max-width:var(--at-width,1160px);margin:24px auto 42px;min-width:0;color:var(--at-text,#26353d);}
.atorg-chart *{box-sizing:border-box;min-width:0;}
.atorg-tier{position:relative;max-width:100%;margin:0 auto 26px;}
.atorg-tier-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;max-width:100%;align-items:stretch;}
.atorg-tier-grid>.atorg-card{flex:0 1 264px;width:264px;max-width:100%;}
.atorg-tier--root .atorg-tier-grid{max-width:560px;margin-inline:auto;}
.atorg-tier--root{margin-bottom:0;}
.atorg-tier--root:after{content:"";display:block;width:2px;height:28px;margin:0 auto;background:var(--at-accent,#146c69);opacity:.42;}
.atorg-tier--root .atorg-card{flex-basis:390px;width:390px;}
.atorg-card{border:1px solid #d9e7e7;background:#fff;border-radius:var(--at-radius,12px);box-shadow:0 6px 22px rgba(20,61,65,.055);overflow-wrap:anywhere;padding:18px 18px 16px;transition:border-color .16s ease,box-shadow .16s ease;min-width:0;text-align:right;height:100%;display:flex;flex-direction:column;}
.atorg-card:hover,.atorg-card:focus-within{border-color:var(--at-accent,#146c69);box-shadow:0 8px 26px rgba(20,61,65,.1);}
.atorg-card--governance{background:#f0f7f5;border-top:4px solid var(--at-accent,#146c69);}
.atorg-card--executive{border-top:4px solid #8f6348;}
.atorg-card--committee{border-top:4px solid #af925b;background:#fffdf9;}
.atorg-card--department{border-top:4px solid #76a6a3;}
.atorg-card-label{display:inline-block;font-size:.76rem;font-weight:650;line-height:1.5;background:#edf4f3;color:#245962;border-radius:999px;padding:3px 10px;margin-bottom:9px;}
.atorg-card-heading{font-size:clamp(1.05rem,2vw,1.27rem);line-height:1.65;margin:0 0 8px;font-weight:750;color:#213f47;}
.atorg-parent{font-size:.84rem;color:#49656c;line-height:1.7;margin:4px 0 10px;}
.atorg-parent span{font-weight:700;}
.atorg-card-goal{font-size:.94rem;line-height:1.8;margin:0 0 11px;color:var(--at-text,#26353d);}
.atorg-card-actions{margin-top:auto;padding-top:10px;border-top:1px solid #e0eaea;}
.atorg-card-open-modal{appearance:none;border:0;background:none;color:var(--at-accent,#146c69);font-size:.92rem;font-weight:700;line-height:1.8;cursor:pointer;padding:0;}
.atorg-card-open-modal:hover{text-decoration:underline;}
.atorg-card-open-modal:focus-visible{outline:3px solid var(--at-accent,#146c69);outline-offset:4px;border-radius:6px;}
.atorg-empty{border-radius:12px;background:#f2f8f7;padding:18px;}

/* Governance spine with committees split around the board card */
.atorg-governance-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(320px,390px) minmax(220px,280px);grid-template-areas:"right spine left";gap:20px;align-items:start;justify-content:center;margin:0 auto 12px;max-width:100%;}
.atorg-governance-layout:not(.atorg-governance-layout--with-committees){grid-template-columns:minmax(320px,390px);grid-template-areas:"spine";}
.atorg-main-spine{grid-area:spine;display:flex;flex-direction:column;align-items:center;min-width:0;}
.atorg-spine-node{width:100%;max-width:360px;position:relative;}
.atorg-spine-node+.atorg-spine-node{margin-top:32px;}
.atorg-spine-node+.atorg-spine-node:before{content:"";height:32px;width:2px;position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:var(--at-accent,#146c69);opacity:.5;}
.atorg-spine-node>.atorg-card{height:auto;}
.atorg-committee-panel{position:relative;align-self:start;min-width:0;padding-top:74px;}
.atorg-committee-panel--right{grid-area:right;}
.atorg-committee-panel--left{grid-area:left;}
.atorg-committee-panel:before{content:"";position:absolute;top:118px;height:2px;width:22px;border-top:2px dashed #b1945f;opacity:.8;}
.atorg-committee-panel--right:before{left:100%;}
.atorg-committee-panel--left:before{right:100%;}
.atorg-committee-heading{text-align:center;font-size:.85rem;line-height:1.6;color:#79613b;margin:0 0 10px;font-weight:700;}
.atorg-committee-cards{display:flex;flex-direction:column;gap:12px;align-items:stretch;}
.atorg-committee-cards>.atorg-card{width:100%;}
.atorg-tier--departments{margin-top:0;}
.atorg-tier--departments:before{content:"";display:block;height:24px;width:2px;margin:0 auto 12px;background:var(--at-accent,#146c69);opacity:.42;}
.atorg-extra-units{margin-top:30px;padding-top:18px;border-top:1px solid #dce6e4;}
.atorg-extra-units>h3{text-align:center;font-size:1.05rem;}
.atorg-tier--additional,.atorg-tier[class*="atorg-tier--fallback-"]{margin-bottom:20px;}

/* Full-page modal */
.atorg-modal-shell[hidden]{display:none !important;}
.atorg-modal-shell{position:fixed;inset:0;z-index:999999;display:flex;align-items:stretch;justify-content:center;}
.atorg-modal-overlay{position:absolute;inset:0;background:rgba(12,28,32,.54);backdrop-filter:blur(2px);}
.atorg-modal-dialog{position:relative;z-index:1;width:100vw;height:100vh;height:100dvh;margin:0;background:#fff;border-radius:0;box-shadow:0 24px 80px rgba(0,0,0,.2);overflow:hidden;display:flex;flex-direction:column;}
.atorg-modal-close{position:absolute;top:14px;left:14px;width:42px;height:42px;border:0;border-radius:999px;background:#edf4f3;color:#1f4d54;font-size:1.6rem;line-height:1;cursor:pointer;z-index:2;}
.atorg-modal-close:hover{background:#dfeceb;}
.atorg-modal-close:focus-visible{outline:3px solid var(--at-accent,#146c69);outline-offset:2px;}
.atorg-modal-scroll{overflow:auto;height:100%;padding:28px;}
.atorg-modal-content{max-width:920px;margin:0 auto;}
.atorg-modal-article{border:1px solid #d9e7e7;border-top:4px solid var(--at-accent,#146c69);border-radius:18px;padding:28px;background:#fff;}
.atorg-modal-article--executive{border-top-color:#8f6348;}
.atorg-modal-article--committee{border-top-color:#af925b;background:#fffdf9;}
.atorg-modal-article--department{border-top-color:#76a6a3;}
.atorg-modal-title{font-size:clamp(1.45rem,3vw,2rem);line-height:1.5;margin:0 0 10px;color:#203f47;}
.atorg-modal-summary{font-size:1.02rem;line-height:1.95;margin:0 0 16px;color:#304851;}
.atorg-modal-body{font-size:1rem;line-height:1.95;color:#334f58;}
.atorg-modal-body h3{font-size:1.08rem;line-height:1.8;margin:18px 0 8px;color:#204650;}
.atorg-modal-body p{margin:8px 0;}
.atorg-modal-body ul{padding-inline-start:22px;margin:8px 0;}
.atorg-modal-body li{margin-bottom:8px;}

@media(max-width:920px){
 .atorg-governance-layout,.atorg-governance-layout:not(.atorg-governance-layout--with-committees){display:flex;flex-direction:column;align-items:stretch;gap:0;}
 .atorg-main-spine{width:100%;order:0;}
 .atorg-spine-node{max-width:390px;}
 .atorg-committee-panel{width:100%;margin:18px auto 0;max-width:740px;padding-top:0;}
 .atorg-committee-panel--right{order:1;}
 .atorg-committee-panel--left{order:2;}
 .atorg-committee-panel:before{display:none;}
 .atorg-committee-heading{margin-bottom:12px;}
 .atorg-committee-cards{flex-direction:row;flex-wrap:wrap;justify-content:center;}
 .atorg-committee-cards>.atorg-card{flex:1 1 220px;max-width:320px;}
 .atorg-modal-dialog{width:calc(100vw - 18px);height:calc(100vh - 18px);}
 .atorg-modal-scroll{padding:22px 18px;}
 .atorg-modal-article{padding:22px 18px;}
}
@media(max-width:640px){
 .atorg-chart{margin:14px auto 26px;}
 .atorg-tier{margin-bottom:17px;}
 .atorg-tier--root{margin-bottom:0;}
 .atorg-tier-grid{gap:12px;}
 .atorg-tier-grid>.atorg-card{flex:1 1 100%;width:100%;}
 .atorg-card{padding:16px 14px;}
 .atorg-committee-cards{flex-direction:column;gap:10px;}
 .atorg-committee-cards>.atorg-card{max-width:none;}
 .atorg-spine-node+.atorg-spine-node{margin-top:25px;}
 .atorg-spine-node+.atorg-spine-node:before{height:25px;}
 .atorg-modal-dialog{width:100vw;height:100vh;max-width:none;border-radius:0;}
 .atorg-modal-scroll{padding:20px 14px 18px;}
 .atorg-modal-close{top:10px;left:10px;}
 .atorg-modal-article{padding:18px 14px;}
}
@media(prefers-reduced-motion:reduce){.atorg-card,.atorg-modal-overlay,.atorg-modal-dialog{transition:none;}}
