/* ECE Delegation Tracker · © The ECE Architects LLC. All rights reserved. */
.ecedt{
  --bg:#F5EFDF; --surface:#FBF7EC; --ink:#2E2C25; --muted:#6E6A5C;
  --navy:#1E2A4E; --royal:#283090; --terra:#B5482F; --gold:#C29A41;
  --line:rgba(46,44,37,.14); --line-strong:rgba(46,44,37,.28);
  --accent:#283090; --accent-ink:#FBF7EC; --head:#1E2A4E;
  --st-complete:#1E2A4E; --st-complete-ink:#FBF7EC;
  --st-ontrack:#283090; --st-slight:#C29A41; --st-behind:#B5482F; --st-none:#6E6A5C;
  --track:rgba(30,42,78,.10);
  --shadow:0 1px 2px rgba(30,42,78,.06),0 8px 24px rgba(30,42,78,.06);
  --serif:"EB Garamond",Garamond,"Times New Roman",serif;
  --sans:"Lato","Helvetica Neue",Arial,sans-serif;
  background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.5;text-align:left;
}
.ecedt *,.ecedt *::before,.ecedt *::after{box-sizing:border-box}
.ecedt [hidden]{display:none!important}

/* theme resets (Elementor / Hello / Kadence button and input styles) */
.ecedt button,.ecedt [type=button],.ecedt [type=submit]{
  font:inherit;color:inherit;background:none;border:0;border-radius:0;padding:0;margin:0;box-shadow:none;text-transform:none;letter-spacing:normal;line-height:1.3;cursor:pointer;min-height:0;width:auto}
.ecedt button:hover,.ecedt button:focus,.ecedt [type=button]:hover,.ecedt [type=submit]:hover{background-color:transparent;color:inherit;box-shadow:none;text-decoration:none;outline-offset:2px}
.ecedt input,.ecedt select,.ecedt textarea{font:inherit;color:var(--ink);margin:0;box-shadow:none;line-height:1.3;height:auto;max-width:100%}
.ecedt a{color:inherit}
.ecedt table{margin:0;border:0}
.ecedt th,.ecedt td{border-left:0;border-right:0;border-top:0;background:none}
.ecedt tbody>tr:nth-child(odd)>td,.ecedt tbody>tr:nth-child(odd)>th{background:none}
.ecedt p{margin:0}
.ecedt :focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.dt-wrap{max-width:1180px;margin:0 auto;padding-inline:clamp(16px,3vw,32px);padding-block:28px 40px;display:flex;flex-direction:column;gap:24px}
.ecedt h1,.ecedt h2,.ecedt h3{font-family:var(--serif);color:var(--head);margin:0;text-wrap:balance;font-weight:600;letter-spacing:.005em;text-transform:none}
.ecedt h1{font-size:clamp(28px,4vw,40px);line-height:1.1}
.ecedt h2{font-size:24px;line-height:1.2}
.ecedt .dt-eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.ecedt .dt-muted{color:var(--muted)}
.ecedt .dt-num{font-variant-numeric:tabular-nums}

/* header */
.ecedt .dt-top{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:flex-end;justify-content:space-between;border-bottom:1px solid var(--line-strong);padding-bottom:18px}
.ecedt .dt-id{display:flex;flex-direction:column;gap:6px}
.ecedt .dt-period{display:flex;flex-direction:column;gap:6px;min-width:min(100%,300px)}
.ecedt .dt-period .dt-bar{position:relative;height:6px;border-radius:3px;background:var(--track)}
.ecedt .dt-period .dt-bar i{position:absolute;inset:0 auto 0 0;border-radius:3px;background:var(--gold)}
.ecedt .dt-period .dt-row{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);gap:12px}
.ecedt .dt-rolechip{display:inline-flex;align-items:center;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:4px 10px;border:1px solid var(--line-strong);border-radius:999px;color:var(--muted)}

/* nav */
.ecedt .dt-nav{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.ecedt .dt-nav .dt-tab{padding:8px 14px;border-radius:8px;font-weight:700;font-size:15px;color:var(--muted)}
.ecedt .dt-nav .dt-tab[aria-current="page"]{background:var(--surface);color:var(--head);box-shadow:inset 0 -2px 0 var(--gold)}
.ecedt .dt-spacer{flex:1}
.ecedt .dt-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);padding:8px 14px;border-radius:8px;font-weight:700;font-size:14px;text-decoration:none}
.ecedt .dt-btn:hover{border-color:var(--gold);background:var(--surface);color:var(--ink)}
.ecedt .dt-btn.dt-primary,.ecedt .dt-btn.dt-primary:hover{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.ecedt .dt-btn.dt-danger,.ecedt .dt-btn.dt-danger:hover{color:var(--st-behind);border-color:var(--st-behind)}
.ecedt .dt-btn.dt-small{padding:5px 10px;font-size:13px}
.ecedt .dt-btn:disabled{opacity:.5;cursor:default}
.ecedt .dt-link{padding:0;color:var(--head);font-weight:700;text-align:left;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.ecedt .dt-link:hover{text-decoration-color:var(--gold);color:var(--head)}

/* panels */
.ecedt .dt-panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:16px;min-width:0}
.ecedt .dt-panel-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.ecedt .dt-grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px}
.ecedt .dt-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.ecedt .dt-kpi{background:var(--surface);padding:16px 20px;display:flex;flex-direction:column;gap:4px}
.ecedt .dt-kpi b{font-family:var(--serif);font-size:34px;font-weight:600;line-height:1;color:var(--head);font-variant-numeric:tabular-nums}
.ecedt .dt-kpi span{font-size:14px;color:var(--muted)}

/* status */
.ecedt .dt-pill{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;border:1px solid currentColor}
.ecedt .dt-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.ecedt .s-complete{background:var(--st-complete);color:var(--st-complete-ink);border-color:var(--st-complete)}
.ecedt .s-ontrack{color:var(--st-ontrack)} .ecedt .s-slight{color:var(--st-slight)} .ecedt .s-behind{color:var(--st-behind)} .ecedt .s-notstarted{color:var(--st-none)}
.ecedt .s-expired{color:var(--st-behind)} .ecedt .s-expiring{color:var(--st-slight)} .ecedt .s-valid{color:var(--st-ontrack)} .ecedt .s-noexpiry{color:var(--st-none)}
.ecedt .dt-dist{display:flex;height:14px;border-radius:7px;overflow:hidden;background:var(--track)}
.ecedt .dt-dist i{display:block;height:100%}
.ecedt .dt-legend{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:14px}
.ecedt .dt-legend span{display:inline-flex;align-items:center;gap:6px}
.ecedt .dt-legend span::before{content:"";width:10px;height:10px;border-radius:2px;background:var(--c)}

/* progress */
.ecedt .dt-prog{position:relative;height:10px;border-radius:5px;background:var(--track);min-width:120px}
.ecedt .dt-prog .dt-fill{position:absolute;inset:0 auto 0 0;border-radius:5px;background:var(--c,var(--accent))}
.ecedt .dt-prog .dt-ms{position:absolute;top:-2px;bottom:-2px;width:1px;background:var(--line-strong)}
.ecedt .dt-prog .dt-pace{position:absolute;top:-5px;bottom:-5px;width:2px;background:var(--ink);border-radius:1px}

/* tables */
.ecedt .dt-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ecedt .dt-toolbar input,.ecedt .dt-toolbar select{border:1px solid var(--line-strong);background:var(--bg);border-radius:8px;padding:8px 12px;font-size:15px;min-width:0;width:auto}
.ecedt .dt-toolbar input{flex:1 1 220px}
.ecedt .dt-tablewrap{overflow-x:auto;margin-inline:-4px}
.ecedt table.dt-table{width:100%;border-collapse:collapse;font-size:15px}
.ecedt .dt-table th{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);text-align:left;padding:8px 10px;border-bottom:1px solid var(--line-strong);white-space:nowrap}
.ecedt .dt-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle;color:var(--ink)}
.ecedt .dt-table tr:last-child td{border-bottom:0}
.ecedt .dt-table .r{text-align:right}
.ecedt .dt-sub{display:block;font-size:13px;color:var(--muted)}
.ecedt .dt-empty{padding:28px 12px;text-align:center;color:var(--muted)}
.ecedt .dt-tag{display:inline-block;font-size:12px;font-weight:700;padding:2px 8px;border-radius:4px;background:var(--track);color:var(--ink);white-space:nowrap}
.ecedt .dt-alerts{display:flex;gap:6px;flex-wrap:wrap}

/* learner */
.ecedt .dt-hero{display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center}
@media (max-width:620px){.ecedt .dt-hero{grid-template-columns:1fr;justify-items:start}}
.ecedt .dt-ring{width:170px;height:170px}
.ecedt .dt-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px 24px}
.ecedt .dt-facts div{display:flex;flex-direction:column;gap:2px}
.ecedt .dt-facts b{font-size:22px;font-family:var(--serif);font-weight:600;color:var(--head);font-variant-numeric:tabular-nums}
.ecedt .dt-facts span{font-size:13px;color:var(--muted)}
.ecedt .dt-steps{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:8px}
@media (max-width:520px){.ecedt .dt-steps{grid-template-columns:1fr 1fr}}
.ecedt .dt-step{display:flex;flex-direction:column;gap:6px;font-size:14px}
.ecedt .dt-step .dt-dot{height:8px;border-radius:4px;background:var(--track)}
.ecedt .dt-step.done .dt-dot{background:var(--gold)}
.ecedt .dt-step.cur .dt-dot{background:linear-gradient(90deg,var(--gold) var(--p),var(--track) var(--p))}
.ecedt .dt-step b{font-size:15px}
.ecedt .dt-step.done b{color:var(--head)}
.ecedt .dt-callout{border-left:3px solid var(--gold);padding:10px 14px;background:var(--bg);border-radius:0 8px 8px 0;font-size:15px}
.ecedt .dt-cats{display:flex;flex-direction:column;gap:14px}
.ecedt .dt-cat-row{display:grid;grid-template-columns:minmax(120px,1.2fr) 2fr auto;gap:12px;align-items:center;font-size:15px}
@media (max-width:520px){.ecedt .dt-cat-row{grid-template-columns:1fr auto}.ecedt .dt-cat-row .dt-prog{grid-column:1/-1;order:3}}
.ecedt .dt-chart svg{width:100%;height:auto;display:block}
.ecedt .dt-chart text{fill:var(--muted);font-size:11px;font-family:var(--sans)}

/* modal */
.ecedt.dt-layer{background:none}
.ecedt .dt-scrim{position:fixed;inset:0;background:rgba(30,42,78,.45);display:flex;align-items:flex-start;justify-content:center;padding:32px 16px;overflow-y:auto;z-index:100000}
.ecedt .dt-modal{background:var(--bg);color:var(--ink);border-radius:14px;width:min(100%,560px);padding:24px;display:flex;flex-direction:column;gap:16px;box-shadow:0 20px 60px rgba(30,42,78,.3)}
.ecedt .dt-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ecedt .dt-form .full{grid-column:1/-1}
@media (max-width:480px){.ecedt .dt-form{grid-template-columns:1fr}}
.ecedt .dt-field{display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:700;color:var(--ink);margin:0}
.ecedt .dt-field input,.ecedt .dt-field select,.ecedt .dt-field textarea{font-weight:400;font-size:16px;border:1px solid var(--line-strong);background:var(--surface);border-radius:8px;padding:9px 12px;width:100%}
.ecedt .dt-field small{font-weight:400;color:var(--muted);font-size:13px}
.ecedt .dt-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center}
.ecedt .dt-actions .dt-right{display:flex;gap:10px;margin-left:auto}
.ecedt .dt-err{color:var(--st-behind);font-size:14px}
.ecedt .dt-ok{color:var(--st-ontrack);font-size:14px}
.ecedt .dt-access{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.ecedt .dt-rowedit{display:grid;grid-template-columns:90px 1fr auto;gap:8px;align-items:center}
.ecedt .dt-rowedit.cat{grid-template-columns:1fr 110px auto}
.ecedt .dt-rowedit input{border:1px solid var(--line-strong);background:var(--bg);border-radius:8px;padding:8px 10px;width:100%;font-size:15px}
.ecedt .dt-notice{padding:14px 16px;border:1px dashed var(--line-strong);border-radius:10px;color:var(--muted);font-size:15px}
.ecedt .dt-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:20px;background:var(--navy);color:#FBF7EC;padding:10px 18px;border-radius:999px;font-weight:700;font-size:14px;z-index:100001}
.ecedt .dt-foot{font-size:12px;color:var(--muted);letter-spacing:.06em;border-top:1px solid var(--line);padding-top:14px}
@media (prefers-reduced-motion:no-preference){.ecedt .dt-prog .dt-fill,.ecedt .dt-period .dt-bar i{transition:width .5s ease}}

/* Delegation Tracker additions */
.ecedt .s-notstarted{color:var(--st-none)}
.ecedt .s-inprogress{color:var(--st-ontrack)}
.ecedt .s-completed{background:var(--st-complete);color:var(--st-complete-ink);border-color:var(--st-complete)}
.ecedt .s-needsreview{color:var(--st-slight)}
.ecedt .s-onhold{color:var(--st-behind)}
.ecedt .s-overdue{color:var(--st-behind)}
.ecedt .dt-phase{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:2px 8px;border-radius:4px;white-space:nowrap}
.ecedt .ph-foundation{background:rgba(30,42,78,.10);color:var(--navy)}
.ecedt .ph-frame{background:rgba(194,154,65,.18);color:#7a5f22}
.ecedt .ph-finish{background:rgba(181,72,47,.12);color:var(--terra)}
.ecedt .dt-inline{border:1px solid var(--line-strong);background:var(--bg);border-radius:6px;padding:5px 8px;font-size:14px;max-width:190px;width:auto}
.ecedt .dt-table tr.na td{opacity:.5}
.ecedt .dt-table td.task{min-width:220px}
.ecedt .dt-catrow td{background:var(--bg)!important;font-family:var(--serif);font-size:17px;color:var(--head);font-weight:600;padding-top:16px}
.ecedt .dt-bars{display:flex;flex-direction:column;gap:12px}
.ecedt .dt-bar-row{display:grid;grid-template-columns:minmax(140px,1.3fr) 2fr auto;gap:12px;align-items:center;font-size:15px}
@media (max-width:560px){.ecedt .dt-bar-row{grid-template-columns:1fr auto}.ecedt .dt-bar-row .dt-prog{grid-column:1/-1;order:3}}
.ecedt .dt-mycard{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.ecedt .dt-mycard .dt-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--muted);align-items:center}
.ecedt .dt-mycard textarea{border:1px solid var(--line-strong);background:var(--bg);border-radius:8px;padding:8px 10px;width:100%;font-size:15px;min-height:60px}
.ecedt .dt-mycard .dt-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ecedt .dt-seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:8px;overflow:hidden}
.ecedt .dt-seg button{padding:7px 12px;font-size:14px;font-weight:700;color:var(--muted);border-right:1px solid var(--line-strong)}
.ecedt .dt-seg button:last-child{border-right:0}
.ecedt .dt-seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.ecedt .dt-mycards{display:flex;flex-direction:column;gap:12px}
.ecedt .dt-mycard .dt-seg{display:flex;width:100%;max-width:420px}
.ecedt .dt-mycard .dt-seg button{flex:1;padding:8px 6px;text-align:center;white-space:nowrap;font-size:13px}
