/* Profil Dinas: struktur organisasi dan pejabat. Tidak memengaruhi halaman lain. */
.org-section{margin:62px 0 70px;scroll-margin-top:90px}.org-section-header{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:24px}.org-section-header>div{max-width:850px}.org-section-header h2{font-size:clamp(1.65rem,2.8vw,2.35rem);margin:0 0 10px;color:#183d32}.org-section-header p{margin-bottom:0;max-width:850px;font-size:.93rem;line-height:1.8}.org-legal-link{white-space:nowrap;background:#155c49;color:white;border-radius:50px;padding:11px 18px;font-weight:800;font-size:.79rem}.org-legal-link:hover{background:#0c4134}.org-jump-links{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 26px}.org-jump-links a{border-radius:50px;padding:8px 15px;background:#f0f7f1;color:#1c604b;border:1px solid #d9e6dc;font-weight:800;font-size:.8rem}.org-jump-links a:hover{background:#e0eee3}
.org-chart{background:linear-gradient(135deg,#f5faf5 0%,#fefcf4 100%);border:1px solid #dfebdf;border-radius:23px;padding:35px 20px 30px;overflow:hidden}.org-chart-above{border-radius:10px;padding:13px 20px;max-width:305px;margin:auto;background:#e6f0e8;text-align:center;color:#265e47;font-weight:900;font-size:.85rem;letter-spacing:.06em}.org-chart-above span{display:block;font-size:.7rem;color:#687a6e;text-transform:none;letter-spacing:0;font-weight:600}.org-chart-connector{width:2px;height:25px;background:#82b19a;margin:auto}.org-top-card{max-width:360px;margin:auto;padding:21px 25px;border:2px solid #e0c57b;background:#105445;color:#fff;text-align:center;border-radius:16px;display:flex;flex-direction:column;gap:4px;box-shadow:0 9px 22px rgba(7,63,44,.13)}.org-top-card .org-top-caption{color:#e5cf8f;font-weight:900;font-size:.66rem;letter-spacing:.12em}.org-top-card>b{font-size:.91rem;letter-spacing:.07em}.org-top-card strong{font-size:1.12rem;line-height:1.3}.org-top-card>span:last-child{font-size:.71rem;color:#d5e5dd}.org-branches{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.org-branch{min-width:0;position:relative;background:#fff;border:1px solid #dfe9e3;border-top:4px solid #68a17e;padding:17px 17px 18px;border-radius:12px;display:flex;flex-direction:column;gap:7px;box-shadow:0 7px 18px rgba(15,84,62,.04)}.org-branch>span{font-weight:900;font-size:.79rem;line-height:1.4;color:#1d644f}.org-branch>strong{color:#253f37;font-size:.88rem;line-height:1.4}.org-branch>small{font-size:.72rem;color:#758579;line-height:1.45}.org-branch-secretariat{border-top-color:#e1bd5d}.org-branch-uptd{border-top-color:#81afd1}.org-chart-note{font-size:.8rem;margin:15px 0 0;color:#70817a}
.org-officers-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.org-officer-card{display:grid;grid-template-columns:108px minmax(0,1fr);gap:17px;border:1px solid #e0eae2;border-radius:15px;padding:18px;background:#fff;min-height:175px;box-shadow:0 6px 20px rgba(13,65,47,.035)}.org-officer-image{background:#eaf3eb;border-radius:11px;overflow:hidden;width:108px;height:139px}.org-officer-image img{width:100%;height:100%;object-fit:cover;display:block}.org-officer-role{font-size:.70rem;line-height:1.5;text-transform:uppercase;letter-spacing:.035em;color:#98792c;font-weight:900;margin:2px 0 6px}.org-officer-body h3{font-size:1.02rem;margin:0 0 7px;color:#154d3f}.org-officer-body>p:not(.org-officer-role){font-size:.78rem;line-height:1.7;margin:0 0 10px}.org-officer-link{color:#18745b;font-size:.75rem;font-weight:900}.org-officer-link:hover{text-decoration:underline}
.org-table-frame{width:100%;overflow-x:auto;border:1px solid #dbe8df;border-radius:16px}.org-uptd-table{border-collapse:collapse;width:100%;min-width:720px;font-size:.81rem}.org-uptd-table thead{background:#155a49;color:white}.org-uptd-table th{font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;text-align:left;padding:15px 14px}.org-uptd-table td{border-bottom:1px solid #e4ede6;padding:12px 14px;vertical-align:top}.org-uptd-table td:first-child{text-align:center;width:45px;color:#75887b}.org-uptd-table tr:nth-child(even){background:#f7fbf8}.org-uptd-table td:nth-child(2){color:#1c5a48}.org-data-note{margin:11px 0 0;font-size:.75rem;color:#6f8175}
.org-functions-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.org-functions-grid article{border:1px solid #dfeae3;padding:20px 18px;background:#fff;border-radius:14px}.org-function-icon{font-weight:900;font-size:.76rem;color:#ae8235;background:#f7efd8;width:37px;height:37px;display:grid;place-items:center;border-radius:9px;margin-bottom:14px}.org-functions-grid h3{font-size:.9rem;margin:0 0 9px;color:#195a45}.org-functions-grid p{font-size:.77rem;line-height:1.74;margin:0}.org-institution-note{background:#edf6ee;border:1px solid #daeadc;border-left:4px solid #2a8a65;border-radius:13px;padding:20px 23px;margin-top:24px}.org-institution-note strong{color:#185947}.org-institution-note p{margin:6px 0 0;font-size:.85rem}.org-sources{padding:24px 0 0}.org-sources h3{font-size:1.12rem}.org-sources p{margin:0 0 8px;font-size:.81rem}.org-sources a{color:#226a52;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1050px){.org-branches{grid-template-columns:repeat(2,minmax(0,1fr))}.org-functions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.org-section{margin:42px 0 50px}.org-section-header{display:block}.org-legal-link{display:inline-block;margin-top:17px}.org-officers-grid{grid-template-columns:1fr}.org-chart{padding:25px 14px}.org-branches{grid-template-columns:1fr}.org-top-card{padding:17px}.org-functions-grid{grid-template-columns:1fr 1fr}}
@media(max-width:450px){.org-officer-card{grid-template-columns:84px minmax(0,1fr);gap:12px;padding:12px}.org-officer-image{width:84px;height:109px}.org-officer-body h3{font-size:.93rem}.org-officer-role{font-size:.65rem}.org-officer-body>p:not(.org-officer-role){font-size:.74rem}.org-functions-grid{grid-template-columns:1fr}.org-jump-links a{font-size:.73rem;padding:7px 11px}}
@media print{.org-chart,.org-officer-card,.org-functions-grid article{break-inside:avoid}.org-jump-links,.org-legal-link{display:none}}

/* Bingkai potret seragam pada semua layar */
.org-officer-image{position:relative;background:linear-gradient(160deg,#d8e9e1,#f1f7f0 55%,#dceadf);border:1px solid #d2e4d9;box-shadow:inset 0 0 0 3px rgba(255,255,255,.55)}
.org-officer-image img{object-fit:cover;object-position:center 15%;height:100%;width:100%}
.org-photo-credit{display:block;margin-top:9px;font-size:.65rem;color:#677970;line-height:1.5}
.org-photo-credit a{color:#276e56;text-decoration:underline;text-underline-offset:2px}


/* Profil Dinas — foto kecil di kiri paragraf, teks mengalir di samping */
.profile-inline-overview{margin:12px 0 20px}
.profile-inline-photo{float:left;margin:4px 20px 10px 0;padding:10px;background:linear-gradient(180deg,#f8fbf8 0%,#eef6f0 100%);border:1px solid #dceae0;border-radius:18px;box-shadow:0 12px 26px rgba(16,74,53,.08);width:max-content}
.profile-inline-photo img{display:block;width:179px;height:155px;max-width:100%;border-radius:12px;box-shadow:0 10px 22px rgba(12,63,46,.18)}
.profile-inline-overview p{margin-top:0}
.profile-inline-clear{clear:both}
@media(max-width:640px){.profile-inline-photo{float:none;margin:0 auto 14px;display:table}.profile-inline-photo img{width:179px;height:155px}}

/* Bagan hierarki dinamis: setiap susunan dibuat dari tabel org_units. */
.org-chart-dynamic{overflow-x:auto;text-align:center;padding:30px 12px 32px}
.org-tree-item{min-width:0;display:flex;flex-direction:column;align-items:center;flex:1 1 180px;max-width:100%}
.org-tree-item>.org-node-card{width:100%;max-width:260px;min-width:150px}
.org-tree-depth-0>.org-node-card{max-width:310px;background:#e8f2ea;border-color:#c5decf}
.org-tree-depth-1>.org-node-card{max-width:345px;background:#145645;color:#fff;border-color:#145645}
.org-tree-depth-1>.org-node-card .org-node-title,.org-tree-depth-1>.org-node-card strong{color:#fff}
.org-tree-depth-2>.org-node-card{border-top:4px solid #69a47e}
.org-node-secretariat{border-top-color:#dfbd68!important}
.org-node-uptd_group{border-top-color:#83b6d7!important}
.org-node-card{box-sizing:border-box;border:1px solid #dce7df;background:#fff;border-radius:13px;padding:16px 12px;box-shadow:0 6px 17px rgba(13,67,46,.065);display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.org-node-title{font-size:.78rem;font-weight:900;line-height:1.5;color:#1c614b;text-transform:uppercase}
.org-node-card strong{font-size:.89rem;line-height:1.4;color:#30463d}
.org-node-card small{font-size:.69rem;line-height:1.5;color:#708276}
.org-tree-depth-1>.org-node-card small{color:#d6eadf}
.org-tree-children{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:13px;width:100%;margin-top:22px;padding-top:18px;border-top:2px solid #a9cbbc;position:relative}
.org-tree-children:before{content:"";position:absolute;top:-24px;left:50%;height:22px;border-left:2px solid #a9cbbc}
.org-tree-children>.org-tree-item{flex:1 1 175px}
.org-tree-depth-2 .org-tree-children{gap:8px;margin-top:14px;padding-top:13px}
.org-tree-depth-2 .org-tree-children>.org-tree-item{flex:1 1 155px}
.org-tree-depth-3 .org-node-card{background:#f8fbf9;padding:11px 8px}
.org-tree-depth-3 .org-node-title{font-size:.7rem}
.org-tree-depth-3 .org-node-card small{font-size:.64rem}
.org-tree-toggle{width:100%;margin-top:18px}
.org-tree-toggle>summary{cursor:pointer;list-style:none;background:#eaf4ef;color:#195c48;border:1px solid #cce3d3;padding:10px 15px;border-radius:12px;font-size:.78rem;font-weight:800}
.org-tree-toggle>summary::-webkit-details-marker{display:none}
.org-tree-toggle>summary:after{content:" +"}
.org-tree-toggle[open]>summary:after{content:" −"}
.org-tree-toggle .org-tree-children{margin-top:22px}
.org-tree-toggle .org-tree-item{flex:1 1 190px}
@media(max-width:650px){.org-tree-children{gap:9px}.org-tree-children>.org-tree-item{flex:1 1 145px}.org-tree-depth-2 .org-tree-children>.org-tree-item{flex:1 1 130px}.org-node-card{padding:12px 8px}.org-node-title{font-size:.72rem}.org-chart-dynamic{padding:20px 10px}}
@media print{.org-tree-toggle{display:block}.org-tree-toggle:not([open])>.org-tree-children{display:none}}


.org-node-card.has-photo{padding-top:14px}
.org-node-thumb{display:block;margin:0 auto 10px;padding:0;border:0;background:none;width:52px;height:52px;border-radius:50%;overflow:hidden;cursor:zoom-in;box-shadow:0 7px 16px rgba(9,55,40,.18)}
.org-node-thumb img{width:100%;height:100%;object-fit:cover;object-position:center 18%;display:block}
.org-officer-image{padding:0;border:0;cursor:zoom-in}
@media(max-width:720px){.org-tree-item{min-width:145px}.org-node-thumb{width:46px;height:46px}.org-node-card{min-height:unset}}
@media(max-width:520px){.org-chart-dynamic{overflow-x:visible}.org-tree-item,.org-tree-children>.org-tree-item,.org-tree-depth-2 .org-tree-children>.org-tree-item{flex:1 1 calc(50% - 8px);min-width:136px}.org-node-card{padding:12px 8px 11px;border-radius:14px}.org-node-card.has-photo{padding-top:12px}.org-node-thumb{margin-bottom:8px}.org-node-title{font-size:.7rem}.org-node-card strong{font-size:.78rem;line-height:1.35}.org-node-card small{font-size:.66rem;line-height:1.32}}
@media(max-width:390px){.org-tree-item,.org-tree-children>.org-tree-item,.org-tree-depth-2 .org-tree-children>.org-tree-item{flex:1 1 100%;min-width:0}}
