:root{--dh-navy:#092B59;--dh-orange:#F28C28;--dh-white:#F8FAFC;--dh-border:#d7dfe8}
.dh-wrap{max-width:920px;margin:22px auto;color:var(--dh-navy);font-family:Inter,system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.6}
.dh-wrap h2,.dh-wrap h3{font-family:Manrope,Inter,system-ui,sans-serif;color:var(--dh-navy);margin:0 0 14px;font-weight:750}
.dh-wrap h2{font-size:clamp(24px,3vw,31px)}.dh-wrap h3{font-size:18px}
.dh-card{padding:clamp(17px,3vw,28px);border-radius:14px;background:#fff;border:1px solid var(--dh-border);box-shadow:0 4px 16px rgba(9,43,89,.035);margin:0 0 18px}
.dh-card label{display:block;margin:14px 0 5px;font-weight:600}.dh-card input:not([type=checkbox]){width:100%;max-width:100%;box-sizing:border-box;padding:12px;border:1px solid #bdc9da;border-radius:8px;background:#fff;color:#182c47;font:inherit}
.dh-card input:focus{outline:2px solid var(--dh-orange);outline-offset:1px}.dh-button{display:inline-block;width:100%;background:var(--dh-orange);border:0;border-radius:8px;padding:13px 20px;color:#092B59;font-weight:700;font-size:16px;cursor:pointer;margin-top:16px}.dh-button:hover{filter:brightness(.96)}
.dh-consent{font-weight:400!important;display:flex!important;align-items:flex-start;gap:9px}.dh-consent input{margin-top:6px}.dh-hp{position:absolute!important;width:1px;height:1px;overflow:hidden;left:-10000px}
.dh-sponsor{padding:15px;background:#edf3fb;border-radius:9px;margin:20px 0;display:flex;flex-direction:column;gap:2px}.dh-sponsor small,.dh-muted,.dh-dashboard small{color:#64748b}.dh-sponsor strong{font-size:17px}.dh-sponsor span{font-size:13px}
.dh-alert{padding:13px;background:#fff3e4;border-left:4px solid #d88620;border-radius:7px;margin:14px 0}.dh-success{padding:13px;background:#e8f5ec;border-left:4px solid #2d8b5f;border-radius:7px;margin:14px 0}
.dh-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dh-stats .dh-card{display:flex;flex-direction:column;gap:4px}.dh-stats strong{font-size:25px}.dh-link-field{font-size:14px!important}.dh-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px;gap:10px}.dh-heading h2{margin:2px 0}.dh-active{background:#dcf6e8;color:#075f3b;font-weight:700;border-radius:30px;padding:5px 12px;font-size:13px}
.dh-positions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dh-position{padding:12px;border:1px solid var(--dh-border);border-radius:10px;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.dh-position span{font-size:13px}.dh-tree{list-style:none;margin:10px 0 12px 13px;padding-left:17px;border-left:2px solid #cbd5e1}.dh-tree li{margin:12px 0;overflow-wrap:anywhere}.dh-wrap a{color:#a75d07;text-decoration:underline}
@media(max-width:650px){.dh-stats{grid-template-columns:1fr}.dh-positions{grid-template-columns:1fr}.dh-heading{align-items:flex-start;flex-direction:column}}

/* v1.2 accessible responsive member portal. Scoped so theme and Elementor public pages are unaffected. */
.dh-portal{display:grid;grid-template-columns:235px minmax(0,1fr);gap:24px;max-width:1200px;margin:24px auto;font:15px/1.6 Inter,system-ui,sans-serif;color:#092B59;min-width:0}
.dh-portal *, .dh-portal *::before,.dh-portal *::after{box-sizing:border-box}
.dh-portal-nav{align-self:start;display:flex;flex-direction:column;gap:3px;background:#092B59;border-radius:16px;padding:22px 12px;color:#fff;position:sticky;top:30px}
.dh-portal-brand{padding:8px 15px 18px;color:#fff;font-weight:800;letter-spacing:.055em;font-size:19px}
.dh-portal-brand small{display:block;color:#bed2eb;font-size:10px;letter-spacing:.13em;font-weight:600}
.dh-portal-tab{display:block;padding:11px 15px;text-decoration:none!important;color:#fff!important;border-radius:9px;font-weight:600;font-size:13px}
.dh-portal-tab:hover,.dh-portal-tab:focus-visible,.dh-portal-tab.is-current{background:#ffffff26;color:#fff!important}
.dh-signout{margin-top:14px;border-top:1px solid #ffffff25;border-radius:0;padding-top:18px}
.dh-portal-main{min-width:0}.dh-portal-main .dh-card{margin-bottom:18px}
.dh-portal-main .dh-heading h2{font-size:clamp(22px,3vw,32px);font-weight:750;margin:0 0 4px}
.dh-profile-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #e8edf4;padding:12px 0;overflow-wrap:anywhere}
.dh-profile-row span{text-align:right}.dh-portal .dh-link-field{width:100%;min-width:0;padding:12px;border:1px solid #d7dfe8;border-radius:8px}
@media(max-width:800px){.dh-portal{grid-template-columns:1fr;gap:12px}.dh-portal-nav{position:static;flex-direction:row;flex-wrap:wrap;gap:4px;padding:12px}.dh-portal-brand{width:100%;padding:4px 10px;font-size:17px}.dh-portal-tab{padding:8px 10px;font-size:12px}.dh-signout{margin-top:0;border:0;padding-top:8px}}
@media(max-width:480px){.dh-portal-main .dh-stats{grid-template-columns:1fr}.dh-portal-main .dh-positions{grid-template-columns:1fr}.dh-profile-row{flex-direction:column;gap:4px}.dh-profile-row span{text-align:left}}

/* v1.2.1 — Expandable branches + paginated referral directory */
.dh-network{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.dh-network h4{font:700 17px/1.35 Manrope,Inter,system-ui,sans-serif;color:var(--dh-navy);margin:0 0 10px}
.dh-explore-list{list-style:none;padding:0 0 0 12px;margin:12px 0;border-left:2px solid #d6e0ed}
.dh-explore-node{margin:10px 0 10px 8px}
.dh-node-toggle{display:flex;align-items:center;gap:8px;width:100%;max-width:100%;padding:10px 12px;min-height:44px;text-align:left;border:1px solid #d7dfe8;border-radius:9px;background:white;color:#092B59;cursor:pointer;font:600 13px/1.5 Inter,system-ui,sans-serif;overflow-wrap:anywhere}
.dh-node-toggle:hover,.dh-node-toggle:focus-visible{border-color:#F28C28;outline-color:#F28C28}
.dh-node-code{flex:none;font-weight:800}.dh-node-chevron{margin-left:auto}.dh-node-toggle[aria-expanded=true] .dh-node-chevron{transform:rotate(90deg)}
.dh-branch-container{padding-left:4px}.dh-branch-container[hidden]{display:none}
.dh-network-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #d7dfe8;border-radius:10px}
.dh-network-table{width:100%;border-collapse:collapse;font:14px/1.55 Inter,system-ui,sans-serif}
.dh-network-table th,.dh-network-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #e7edf3;vertical-align:top}
.dh-network-table th{background:#eef3fa;font-weight:700;color:#092B59}.dh-network-table tr:last-child td{border-bottom:0}
.dh-network-table td span{display:block;color:#64748b;font-size:12px}
.dh-tree-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 0}
.dh-tree-page{display:inline-flex;align-items:center;padding:10px 14px;border-radius:8px;background:#092B59;color:white!important;text-decoration:none!important;font-weight:650;min-height:44px}
.dh-tree-page:hover,.dh-tree-page:focus-visible{background:#174778;color:white!important}
@media(max-width:600px){.dh-network-table th,.dh-network-table td{padding:9px 8px;font-size:12px}.dh-node-toggle{flex-wrap:wrap}}

.dh-portal h2,.dh-portal h3,.dh-portal h4{font-family:Manrope,Inter,system-ui,sans-serif}

/* v1.2.2 — International contact fields, member profile edits and copy link. */
.dh-contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 16px}
.dh-contact-fields label{min-width:0}
.dh-contact-fields label:has(input[name="dh_address"]){grid-column:1 / -1}
.dh-contact-fields select{display:block;width:100%;max-width:100%;min-height:47px;padding:10px 12px;border:1px solid #bdc9da;border-radius:8px;background:#fff;color:#182c47;font:inherit}
.dh-contact-fields select:focus-visible{outline:2px solid #F28C28}
.dh-contact-fields .dh-phone-hint{margin:0;color:#64748b;font-size:12px;align-self:end}
.dh-copy-row{display:flex;gap:9px;align-items:stretch}
.dh-copy-row input{flex:1}
.dh-copy-button{border:0;background:#092B59;color:#fff;border-radius:8px;font:600 13px/1.3 Inter,system-ui,sans-serif;white-space:nowrap;padding:9px 15px;min-height:44px;cursor:pointer}
.dh-copy-button:hover,.dh-copy-button:focus-visible{background:#174778}
.dh-copy-feedback{display:block;color:#075f3b;font-weight:600;font-size:13px;margin-top:5px;min-height:1em}
@media(max-width:650px){.dh-contact-fields{grid-template-columns:1fr}.dh-copy-row{flex-direction:column}.dh-copy-button{width:100%}}

/* v1.3 production-readiness refinement: typography, contrast, icons and protected member profiles. */
.dh-portal-tab{display:flex;align-items:center;gap:10px;min-height:44px}
.dh-portal-tab .dashicons{font-size:18px;width:19px;height:19px;flex:none;color:#dce9f9}
.dh-portal-tab.is-current .dashicons,.dh-portal-tab:hover .dashicons{color:#fff}
.dh-portal .dh-node-toggle,.dh-portal .dh-node-toggle:hover,.dh-portal .dh-node-toggle:focus-visible,.dh-portal .dh-node-toggle[aria-expanded="true"]{color:#092b59!important;background:#fff!important}
.dh-portal .dh-node-toggle:hover,.dh-portal .dh-node-toggle[aria-expanded="true"]{background:#eef4fc!important;border-color:#d8e4f2!important}
.dh-portal .dh-node-toggle:focus-visible{outline:3px solid #f28c28!important;outline-offset:2px!important}
.dh-portal .dh-node-toggle *{color:inherit!important}
.dh-edit-details summary{cursor:pointer;padding:13px 15px;border:1px solid #bdc9da;border-radius:9px;font-weight:700;min-height:44px;background:#f8fafc;color:#092b59}
.dh-edit-details summary:hover{background:#edf3fb}
.dh-edit-details summary:focus-visible{outline:3px solid #f28c28;outline-offset:2px}
.dh-edit-details[open] summary{margin-bottom:20px}
.dh-edit-details .dh-contact-fields{margin-top:10px}
.dh-check-label{display:flex!important;align-items:flex-start;gap:12px;font-weight:500!important}
.dh-check-label input{width:18px;height:18px;margin:4px 0 0;flex:none}
.dh-member-detail-trigger{display:inline-flex;text-align:left;flex-direction:column;cursor:pointer;background:transparent;color:#092b59;border:0;border-radius:5px;padding:4px 7px;min-height:40px;font:inherit}
.dh-member-detail-trigger:hover{text-decoration:underline;background:#eef4fc}
.dh-member-detail-trigger:focus-visible{outline:3px solid #f28c28;outline-offset:2px}
.dh-member-detail-small{margin:4px 0 6px 15px;min-height:38px;flex-direction:row;align-items:center;border:1px solid #d7dfe8;font-weight:600;font-size:12px}
.dh-member-dialog{color:#092b59;border:1px solid #d7dfe8;border-radius:14px;width:min(94vw,560px);max-height:85vh;padding:0;box-shadow:0 20px 65px #00152b33;font-family:Inter,system-ui,sans-serif}
.dh-member-dialog::backdrop{background:#071a33a1}
.dh-dialog-inner{padding:24px;overflow:auto;max-height:85vh}
.dh-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e3eaf2;padding-bottom:12px;margin-bottom:10px}
.dh-dialog-heading h3{margin:0;color:#092b59}
.dh-dialog-close{border:0;background:#f0f4fa;border-radius:7px;color:#092b59;cursor:pointer;width:44px;height:44px;font-size:24px}
.dh-member-profile-row{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #edf0f5;padding:11px 0;font-size:14px;overflow-wrap:anywhere}
.dh-member-profile-row span{text-align:right}
.dh-member-login{max-width:550px;margin:35px auto}.dh-login-mark{font-family:Manrope,Inter,system-ui,sans-serif;font-size:20px;font-weight:800;letter-spacing:.04em;margin-bottom:18px}.dh-login-mark small{display:block;font-size:10px;letter-spacing:.13em}
.dh-member-login #loginform{margin:0}.dh-member-login #loginform p{margin-bottom:12px}.dh-member-login #wp-submit{background:#092b59!important;color:#fff!important;border:0;border-radius:8px;min-height:44px;padding:10px 25px}
@media(max-width:800px){.dh-portal-nav{gap:5px}.dh-portal-tab{min-height:44px}}
@media(max-width:480px){.dh-portal-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.dh-portal-brand{grid-column:1/-1}.dh-portal-tab{font-size:12px;gap:6px;padding:8px}.dh-portal-tab .dashicons{width:17px;height:17px;font-size:17px}.dh-signout{margin-top:0}.dh-member-profile-row{flex-direction:column;gap:3px}.dh-member-profile-row span{text-align:left}}

.dh-position-detail{min-height:36px;padding:3px 0;font-size:13px;font-weight:600;max-width:100%;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
