/* Partner Portal, editorial (25 Nov 2026). Minhaj: "I'm really liking the WEF editorial look here so go ahead
   and apply that throughout the entire partners.drinkwell.com site including the menu bars, the side bars and
   everything." Tokens are the board pack's (intranet/board-site/portal.html, "Board pack, editorial"):
   white page, navy bands with light white titles, small-caps blue eyebrows over a 2px rule, hairlines instead
   of shadowed cards, one blue. Linked LAST in every page's <head>; each page's <html data-ed="…"> scopes its
   own section below. The header tabs (#xnav) are styled by renderPortalNav in js/funder-auth.js.
   board.html is generated from board-site and is not touched here. */
:root{--w-ink:#0B1F33;--w-navy:#0A2240;--w-blue:#0060A8;--w-sky:#EAF2F9;--w-rule:#D9DFE6;--w-mute:#5B6B7C;--w-faint:#8A97A6;
  --w-over:#8FB8DE;--w-lede:#C9D6E3;--w-band:#F5F8FB;
  --q-strong:#1F7A4D;--q-mixed:#B7791F;--q-weak:#B42318;
  --w-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Helvetica,Arial,sans-serif}

/* ── page tokens: every page's own variables point at the editorial palette ── */
html[data-ed]{--ink:var(--w-ink);--ink2:var(--w-mute);--ink3:var(--w-faint);--hair:var(--w-rule);--line:var(--w-rule);
  --blue:var(--w-blue);--font:var(--w-font);color-scheme:light}
html[data-ed] body{font-family:var(--w-font);background:#fff;color:var(--w-ink);letter-spacing:-.011em}

/* ── shared header (white, 1px rule, no blur) ── */
html[data-ed] body>header:not(.wp-header),html[data-ed] .topbar{position:sticky;top:0;z-index:60;height:52px;min-height:52px;
  display:flex;align-items:center;gap:18px;padding-top:0;padding-bottom:0;background:#fff;color:var(--w-ink);
  backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--w-rule);box-shadow:none}
html[data-ed] body>header:not(.wp-header){padding-left:24px;padding-right:24px}
html[data-ed] body>header .t{white-space:nowrap}
html[data-ed] body>header .sp{flex:1 1 0;min-width:8px}
html[data-ed] body>header #xnav{flex:0 1 auto;min-width:0}
html[data-ed] body>header img,html[data-ed] .topbar img{height:22px;filter:none}
html[data-ed] body>header .t,html[data-ed] .topbar .page-title{font-size:14px;font-weight:600;letter-spacing:-.005em;color:var(--w-ink);
  padding-left:16px;border-left:1px solid var(--w-rule);line-height:22px}
html[data-ed] body>header #who,html[data-ed] .topbar .date-chip{font-size:12px;color:var(--w-mute);opacity:1}
html[data-ed] body>header button,html[data-ed] .topbar .out,html[data-ed] .topbar .btn-out{background:#fff;color:var(--w-ink);
  border:1px solid var(--w-rule);border-radius:4px;padding:6px 12px;font:500 12px/1.2 var(--w-font);letter-spacing:0;cursor:pointer;text-decoration:none;white-space:nowrap}
html[data-ed] body>header button:hover,html[data-ed] .topbar .out:hover,html[data-ed] .topbar .btn-out:hover{border-color:var(--w-ink);background:#fff}
html[data-ed=briefing] #signout{background:#fff;color:var(--w-ink);border:1px solid var(--w-rule);border-radius:4px;padding:6px 12px;font-size:12px;font-weight:500}
html[data-ed=briefing] #signout:hover{background:#fff;border-color:var(--w-ink)}
html[data-ed] .topbar .back{font-size:12px;font-weight:500;color:var(--w-blue);text-decoration:none}

/* ── shared pieces ── */
.ed-over{font-size:12.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--w-over)}
html[data-ed] a{color:var(--w-blue)}
html[data-ed] .gate,html[data-ed] #loading{color:var(--w-mute)}
html[data-ed] input[type=text],html[data-ed] input[type=email],html[data-ed] input[type=date],html[data-ed] input[type=number],
html[data-ed] input[type=search],html[data-ed] select,html[data-ed] textarea{border:1px solid var(--w-rule);border-radius:4px;font-family:var(--w-font);color:var(--w-ink);background:#fff}
html[data-ed] input:focus,html[data-ed] select:focus,html[data-ed] textarea:focus{outline:0;border-color:var(--w-blue);box-shadow:inset 0 0 0 1px var(--w-blue)}
html[data-ed] input[type=checkbox],html[data-ed] input[type=range]{accent-color:var(--w-blue)}
/* navy hero band, full bleed from inside a centred column (no markup wrapper needed) */
html[data-ed] .ed-band{background:var(--w-navy);color:#fff;box-shadow:0 0 0 100vmax var(--w-navy);clip-path:inset(0 -100vmax)}
html[data-ed] .ed-band h1{color:#fff;font-weight:300;letter-spacing:-.03em;line-height:1.04;margin-top:16px}
html[data-ed] .ed-band p{color:var(--w-lede)}
/* eyebrow: 12px caps blue over a 2px blue rule */
.ed-eye{display:block;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--w-blue);
  padding-top:12px;border-top:2px solid var(--w-blue);width:max-content;max-width:100%}

/* ═════ index.html — sign-in ═════ */
html[data-ed=index] body{background:var(--w-navy);font-family:var(--w-font);overflow:auto}
html[data-ed=index] body::before,html[data-ed=index] body::after{display:none}
html[data-ed=index] .card{border-radius:4px;box-shadow:none;text-align:left;padding:44px 44px 36px;max-width:460px;border-top:4px solid var(--w-blue)}
html[data-ed=index] .login-logo{width:140px;margin:0 0 30px}
html[data-ed=index] .one-badge{display:block;width:max-content;font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--w-blue);
  padding-top:12px;border-top:2px solid var(--w-blue);margin-bottom:18px}
html[data-ed=index] .tagline{font-size:15px;color:var(--w-mute);line-height:1.6;margin-bottom:26px}
html[data-ed=index] .tagline strong{font-size:28px;font-weight:300;letter-spacing:-.025em;line-height:1.15;color:var(--w-ink);margin-bottom:12px}
html[data-ed=index] .email-input{border:1px solid var(--w-rule);border-radius:4px;font-family:var(--w-font);font-size:15px;color:var(--w-ink);padding:12px 14px}
html[data-ed=index] .email-input:focus{border-color:var(--w-blue);box-shadow:inset 0 0 0 1px var(--w-blue)}
html[data-ed=index] .btn-send{background:var(--w-navy);border-radius:4px;font-family:var(--w-font);font-size:14px;font-weight:600;letter-spacing:.01em;padding:13px 18px}
html[data-ed=index] .btn-send:hover{background:var(--w-blue)}
html[data-ed=index] .btn-send:disabled{background:#8A97A6}
html[data-ed=index] .msg{border-radius:0;border-left:3px solid currentColor;font-size:13px}
html[data-ed=index] .msg.error{background:#FBEDEC;color:var(--q-weak)}
html[data-ed=index] .msg.success{background:#EAF4EE;color:var(--q-strong)}
html[data-ed=index] .msg.info{background:var(--w-sky);color:var(--w-blue)}
html[data-ed=index] .footer-note{margin-top:28px;padding-top:16px;border-top:1px solid var(--w-rule);font-size:12px;color:var(--w-mute)}
html[data-ed=index] .footer-note a{color:var(--w-blue);font-weight:500}
@media(max-width:520px){html[data-ed=index] .card{padding:32px 22px 26px}html[data-ed=index] .tagline strong{font-size:24px}}

/* ═════ access.html — superadmin access list ═════ */
html[data-ed=access] main{padding-top:0}
html[data-ed=access] .ed-hero{padding:56px 0 52px}
html[data-ed=access] .ed-hero h1{font-size:clamp(34px,4.4vw,56px);margin:0 0 14px}
html[data-ed=access] .ed-hero .sub{font-size:17px;line-height:1.6;color:var(--w-lede);margin:0;max-width:72ch}
html[data-ed=access] .card{border:0;border-top:1px solid var(--w-rule);border-radius:0;box-shadow:none;margin:0;padding-top:30px}
html[data-ed=access] .card:first-of-type{margin-top:36px}
html[data-ed=access] .card h2{font-size:22px;font-weight:600;letter-spacing:-.02em;padding:0 0 4px}
html[data-ed=access] .card .hint{padding:0 0 14px;color:var(--w-mute);font-size:14px}
html[data-ed=access] .add,html[data-ed=access] .tools{padding-left:0;padding-right:0}
html[data-ed=access] .card{padding-bottom:22px}
html[data-ed=access] .btn{background:var(--w-navy);border-radius:4px;font-weight:600;padding:8px 18px}
html[data-ed=access] .btn:hover{background:var(--w-blue)}
html[data-ed=access] .btn.ghost{background:#fff;color:var(--q-weak);border:1px solid var(--w-rule)}
html[data-ed=access] th{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--w-mute);border-top:0;border-bottom:1px solid var(--w-ink);padding:10px}
html[data-ed=access] td{border-top:1px solid var(--w-rule)}
html[data-ed=access] tbody tr:hover td{background:var(--w-sky)}
html[data-ed=access] #toast{border-radius:4px;background:var(--w-navy)}
html[data-ed=access] #toast.err{background:var(--q-weak)}

/* ═════ dataroom.html ═════ */
html[data-ed=dataroom] main{padding-top:0}
html[data-ed=dataroom] .hero{padding:60px 0 56px}
html[data-ed=dataroom] .hero h1{font-size:clamp(38px,5vw,68px)}
html[data-ed=dataroom] .hero p{font-size:clamp(16px,1.5vw,19px);line-height:1.6;max-width:680px;margin-top:6px}
html[data-ed=dataroom] .room{margin-top:64px}
html[data-ed=dataroom] .room>h2{font-size:clamp(26px,3vw,36px);font-weight:600;letter-spacing:-.022em;line-height:1.15;display:flex;flex-direction:column-reverse;align-items:flex-start;gap:16px}
html[data-ed=dataroom] .chip{margin:0;padding:12px 0 0;border:0;border-top:2px solid var(--w-blue);border-radius:0;background:none;
  font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--w-blue);vertical-align:baseline}
html[data-ed=dataroom] .room>.note{font-size:16px;line-height:1.6;color:var(--w-mute);margin:10px 0 26px;max-width:72ch}
html[data-ed=dataroom] .card{background:#fff;border:0;border-top:1px solid var(--w-ink);border-radius:0;box-shadow:none;margin-bottom:34px;overflow:visible}
html[data-ed=dataroom] .card h3{font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--w-ink);padding:14px 0 4px}
html[data-ed=dataroom] .card .cn{padding:0 0 10px;color:var(--w-mute)}
html[data-ed=dataroom] .item{padding:14px 10px 14px 0;border-top:1px solid var(--w-rule)}
html[data-ed=dataroom] a.item:hover{background:var(--w-sky);box-shadow:-10px 0 0 var(--w-sky)}
html[data-ed=dataroom] a.item:hover .tt{color:var(--w-blue)}
html[data-ed=dataroom] .item .ic{flex:0 0 40px;height:auto;border-radius:0;background:none;justify-content:flex-start;font-size:10.5px;font-weight:600;letter-spacing:.08em;color:var(--w-blue)}
html[data-ed=dataroom] .item .tt{font-weight:500;font-size:15.5px;color:var(--w-ink)}
html[data-ed=dataroom] .item .ds{color:var(--w-mute)}
html[data-ed=dataroom] .item .dt{color:var(--w-faint);font-variant-numeric:tabular-nums}
html[data-ed=dataroom] .item .go{color:var(--w-blue);font-weight:600;font-size:13px}
html[data-ed=dataroom] .item.pending .go{color:var(--w-faint)}
html[data-ed=dataroom] .foot{color:var(--w-mute);border-top:1px solid var(--w-rule);padding-top:16px;margin-top:56px}

/* ═════ meet.html — board meeting times ═════ */
html[data-ed=meet] .hero{padding:56px 0 52px;margin-bottom:36px}
html[data-ed=meet] .hero h1{font-size:clamp(34px,4.6vw,58px)}
html[data-ed=meet] .hero p{font-size:17px;line-height:1.6;max-width:640px;margin-top:6px}
html[data-ed=meet] .tz{background:none;border-radius:0;padding:0;margin:0 0 14px;color:var(--w-mute)}
html[data-ed=meet] .chosen{background:var(--w-sky);color:var(--w-ink);border-radius:0;box-shadow:inset 3px 0 0 var(--w-blue);padding:16px 20px}
html[data-ed=meet] .slots{border:0;border-top:1px solid var(--w-ink);border-bottom:1px solid var(--w-rule);border-radius:0;box-shadow:none}
html[data-ed=meet] .slot{padding:18px 4px;border-top:1px solid var(--w-rule)}
html[data-ed=meet] .slot.best{background:var(--w-sky);box-shadow:inset 2px 0 0 var(--w-blue);padding-left:16px}
html[data-ed=meet] .when .d{font-size:16px}
html[data-ed=meet] .when .h{color:var(--w-ink)}
html[data-ed=meet] .tag{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--w-blue)}
html[data-ed=meet] .seg{background:#fff;border:1px solid var(--w-rule);border-radius:4px;padding:2px;gap:2px}
html[data-ed=meet] .seg button{border-radius:3px;color:var(--w-mute);font-weight:500}
html[data-ed=meet] .seg button:hover{color:var(--w-ink);background:var(--w-sky)}
html[data-ed=meet] .seg button.on{background:var(--w-navy);color:#fff;box-shadow:none}
html[data-ed=meet] .seg button.on.y{background:var(--q-strong);color:#fff}
html[data-ed=meet] .seg button.on.n{background:var(--q-weak);color:#fff}
html[data-ed=meet] label.nl{color:var(--w-mute)}
html[data-ed=meet] textarea{border-radius:4px}
html[data-ed=meet] .btn{background:var(--w-navy);border-radius:4px;font-size:14px;font-weight:600;padding:11px 22px}
html[data-ed=meet] .btn:hover:not(:disabled){background:var(--w-blue)}
html[data-ed=meet] .who{margin-top:48px}
html[data-ed=meet] .who h2{display:block;width:max-content;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--w-blue);padding-top:12px;border-top:2px solid var(--w-blue);margin-bottom:12px}
html[data-ed=meet] .who li{border-top:1px solid var(--w-rule);color:var(--w-ink)}
@media(max-width:640px){html[data-ed=meet] .hero{padding:40px 0 36px}}

/* ═════ equity.html — stock ledger ═════ */
html[data-ed=equity] .hero{padding:52px 0 48px;margin-bottom:28px}
html[data-ed=equity] .hero h1{font-size:clamp(32px,4.4vw,54px)}
html[data-ed=equity] .hero p{font-size:16px;line-height:1.6;max-width:760px;margin-top:6px}
html[data-ed=equity] .draft{background:#FBF5EA;border:0;border-radius:0;box-shadow:inset 3px 0 0 var(--q-mixed);color:#6B4A12;padding:14px 18px}
html[data-ed=equity] .kpis{gap:0;border-top:1px solid var(--w-rule);border-bottom:1px solid var(--w-rule);margin:4px 0 26px}
html[data-ed=equity] .kpi{background:none;border:0;border-radius:0;box-shadow:none;padding:18px 20px}
html[data-ed=equity] .kpi+.kpi{border-left:1px solid var(--w-rule)}
html[data-ed=equity] .kpi .l{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--w-mute)}
html[data-ed=equity] .kpi .v{font-size:clamp(24px,2.4vw,32px);font-weight:300;letter-spacing:-.03em;margin-top:6px;color:var(--w-ink)}
html[data-ed=equity] .kpi .s{color:var(--w-mute)}
html[data-ed=equity] #tabs{background:none;border-radius:0;padding:0;gap:26px;border-bottom:1px solid var(--w-rule);flex-wrap:nowrap;overflow-x:auto;max-width:100%}
html[data-ed=equity] #tabs button{background:none;border-radius:0;box-shadow:none;padding:10px 0 12px;margin-bottom:-1px;border-bottom:2px solid transparent;
  font-size:14.5px;font-weight:600;color:var(--w-mute)}
html[data-ed=equity] #tabs button.on{background:none;box-shadow:none;color:var(--w-ink);border-bottom-color:var(--w-blue)}
html[data-ed=equity] .seg:not(#tabs){background:#fff;border:1px solid var(--w-rule);border-radius:4px;padding:2px;gap:2px}
html[data-ed=equity] .seg:not(#tabs) button{border-radius:3px;font-size:12.5px;padding:6px 12px;color:var(--w-mute)}
html[data-ed=equity] .seg:not(#tabs) button.on{background:var(--w-navy);color:#fff;box-shadow:none;font-weight:600}
html[data-ed=equity] .btn{background:var(--w-navy);border-radius:4px;font-weight:600}
html[data-ed=equity] .btn.g{background:#fff;color:var(--w-ink);border:1px solid var(--w-rule);font-weight:500}
html[data-ed=equity] .btn.g:hover{border-color:var(--w-ink)}
html[data-ed=equity] .card{border:0;border-top:1px solid var(--w-ink);border-radius:0;box-shadow:none;background:#fff}
html[data-ed=equity] .card h2{font-size:20px;letter-spacing:-.02em;padding:18px 0 4px}
html[data-ed=equity] .card .sub{padding:0 0 12px;color:var(--w-mute)}
html[data-ed=equity] .pf{padding:6px 0 14px}
html[data-ed=equity] th{background:#fff;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--w-mute);border-bottom:1px solid var(--w-rule)}
html[data-ed=equity] tr.tot td{background:var(--w-sky)}
html[data-ed=equity] tr.click:hover td{background:var(--w-sky)}
html[data-ed=equity] .pill{border-radius:3px;font-size:10.5px;letter-spacing:.04em}
html[data-ed=equity] .p-outstanding{background:var(--w-sky);color:var(--w-blue)}
html[data-ed=equity] .drawer{box-shadow:-1px 0 0 var(--w-rule),-16px 0 40px rgba(10,34,64,.12);border-top:4px solid var(--w-navy)}
html[data-ed=equity] .drawer h3{font-weight:600;letter-spacing:-.015em}
html[data-ed=equity] .drawer select,html[data-ed=equity] .drawer textarea,html[data-ed=equity] .pf input{border-radius:4px}

/* ═════ projects.html — client project status ═════ */
html[data-ed=projects] body{background:#fff}
html[data-ed=projects] .topbar{padding:0 22px}
html[data-ed=projects] .topbar img{height:22px}
html[data-ed=projects] .topbar>div:not(.xnav){padding-left:16px;border-left:1px solid var(--w-rule);line-height:1.2}
html[data-ed=projects] .topbar .tb-org{font-family:var(--w-font);font-size:14px;font-weight:600;color:var(--w-ink)}
html[data-ed=projects] .topbar .tb-sub{font-size:10.5px;letter-spacing:.12em;font-weight:600;color:var(--w-mute)}
html[data-ed=projects] .btn-out{margin-left:0}
html[data-ed=projects] #xnav{margin-left:auto}
html[data-ed=projects] .wrap{padding-top:44px}
html[data-ed=projects] .welcome{background:var(--w-sky);border:0;border-radius:0;box-shadow:inset 3px 0 0 var(--w-blue);color:var(--w-ink);font-size:14px}
html[data-ed=projects] .loading,html[data-ed=projects] .empty{color:var(--w-mute);font-size:14px}
html[data-ed=projects] .proj{border:0;border-top:1px solid var(--w-ink);border-radius:0;box-shadow:none;padding:22px 0 30px;margin-bottom:28px}
html[data-ed=projects] .proj-name{font-family:var(--w-font);font-size:clamp(22px,2.4vw,28px);font-weight:600;letter-spacing:-.02em;color:var(--w-ink)}
html[data-ed=projects] .light{border-radius:3px;font-size:10.5px;font-weight:700;letter-spacing:.12em;padding:4px 10px}
html[data-ed=projects] .proj-meta{font-size:13px;color:var(--w-mute)}
html[data-ed=projects] .pct-bar{height:6px;border-radius:0;background:#EDF1F5}
html[data-ed=projects] .pct-fill{border-radius:0;background:var(--w-blue)}
html[data-ed=projects] .pct-line{font-size:12px;color:var(--w-mute)}
html[data-ed=projects] .pct-line span:last-child{font-size:20px;font-weight:300;letter-spacing:-.02em;color:var(--w-ink)}
html[data-ed=projects] .status-box{background:var(--w-sky);border:0;border-radius:0;box-shadow:inset 3px 0 0 var(--w-blue);font-size:14px;color:var(--w-ink)}
html[data-ed=projects] .status-box .sb-label,html[data-ed=projects] .sec-label{font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--w-blue)}
html[data-ed=projects] .sec-label{display:block;width:max-content;padding-top:10px;border-top:2px solid var(--w-blue);margin-top:26px}
html[data-ed=projects] .site{border:0;border-top:1px solid var(--w-rule);border-radius:0;padding:14px 0;margin:0}
html[data-ed=projects] .site-name{font-weight:600;font-size:14.5px}
html[data-ed=projects] .chip{border-radius:3px;background:#EDF1F5;color:var(--w-mute);letter-spacing:.04em}
html[data-ed=projects] .chip.ok{background:#EAF4EE;color:var(--q-strong)}
html[data-ed=projects] .asset{border-left:2px solid var(--w-rule)}
html[data-ed=projects] .links a{border:0;border-radius:0;background:none;padding:0;color:var(--w-blue);font-weight:600;font-size:13px}
html[data-ed=projects] .links a:hover{background:none;text-decoration:underline}
html[data-ed=projects] .foot{border-top:1px solid var(--w-rule);padding-top:18px;color:var(--w-mute);font-size:12px}
@media(max-width:700px){html[data-ed=projects] .topbar .tb-sub{display:none}}

/* ═════ briefing.html — advisor briefing ═════ */
html[data-ed=briefing]{--navy:var(--w-navy);--muted:var(--w-faint);--page:#fff;--panel:#fff;--grid:#EDF1F5}
html[data-ed=briefing] body{background:#fff}
html[data-ed=briefing] #progress{top:51px;height:2px;background:var(--w-blue)}
html[data-ed=briefing] header{padding:0 24px}
html[data-ed=briefing] header .t{font-size:14px;letter-spacing:-.005em}
html[data-ed=briefing] header .t span{opacity:1;color:var(--w-mute);font-weight:400}
html[data-ed=briefing] .layout{gap:56px;padding-top:0}
/* side rail = the board pack's menu */
html[data-ed=briefing] nav.toc{top:52px;padding:30px 0 30px;font-size:14px;max-height:calc(100vh - 52px);overflow-y:auto}
html[data-ed=briefing] nav.toc .h{font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--w-blue);padding:0 0 12px 8px;margin-bottom:6px;border-bottom:1px solid var(--w-rule)}
html[data-ed=briefing] nav.toc a{gap:12px;color:var(--w-mute);padding:7px 8px;border-left:0;border-radius:4px;line-height:1.3}
html[data-ed=briefing] nav.toc a .n{flex:0 0 22px;font-size:12px;font-weight:600;color:var(--w-blue);font-variant-numeric:tabular-nums}
html[data-ed=briefing] nav.toc a:hover{background:var(--w-sky);color:var(--w-ink)}
html[data-ed=briefing] nav.toc a.active{color:var(--w-blue);font-weight:600;background:var(--w-sky);border-radius:0;box-shadow:inset 2px 0 0 var(--w-blue)}
/* sections: white with hairlines; the first is the navy cover */
html[data-ed=briefing] section.card{border:0;border-top:1px solid var(--w-rule);border-radius:0;box-shadow:none;padding:56px 0 60px;margin:0;scroll-margin-top:60px}
html[data-ed=briefing] main>section.card:first-child{background:var(--w-navy);color:#fff;border-top:0;padding:64px 48px 56px;margin:0 0 0}
html[data-ed=briefing] main>section.card:first-child .kicker{color:var(--w-over);border-top:0;padding-top:0;font-size:12.5px;letter-spacing:.16em}
html[data-ed=briefing] main>section.card:first-child h1{color:#fff}
html[data-ed=briefing] main>section.card:first-child .sub{color:var(--w-lede);font-size:16px}
html[data-ed=briefing] main>section.card:first-child .cover-kpis{border-top:1px solid rgba(255,255,255,.18)}
html[data-ed=briefing] main>section.card:first-child .cover-kpis .k{border-color:rgba(255,255,255,.18)}
html[data-ed=briefing] main>section.card:first-child .cover-kpis .k .v{color:#fff}
html[data-ed=briefing] main>section.card:first-child .cover-kpis .k .l{color:var(--w-over)}
html[data-ed=briefing] .kicker{display:block;width:max-content;max-width:100%;font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--w-blue);padding-top:12px;border-top:2px solid var(--w-blue);margin-bottom:16px}
html[data-ed=briefing] h1{font-size:clamp(34px,4.4vw,56px);font-weight:300;letter-spacing:-.03em;line-height:1.05;margin-bottom:14px}
html[data-ed=briefing] h2{font-size:clamp(24px,2.6vw,32px);font-weight:600;letter-spacing:-.022em;line-height:1.15;margin-bottom:10px}
html[data-ed=briefing] .sub{font-size:15px;line-height:1.6;color:var(--w-mute);max-width:780px}
html[data-ed=briefing] .cover-kpis{gap:0;margin-top:34px}
html[data-ed=briefing] .cover-kpis .k{background:none;border:0;border-left:1px solid var(--w-rule);border-radius:0;padding:16px 24px 4px;min-width:0;flex:1 1 150px}
html[data-ed=briefing] .cover-kpis .k:first-child{border-left:0;padding-left:0}
html[data-ed=briefing] .cover-kpis .k .v{font-size:clamp(28px,3vw,40px);font-weight:300;letter-spacing:-.03em}
html[data-ed=briefing] .cover-kpis .k .l{font-size:11px;font-weight:600;letter-spacing:.12em;margin-top:6px}
html[data-ed=briefing] ul.bullets li::before{border-radius:0;width:6px;height:6px;background:var(--w-blue)}
html[data-ed=briefing] table.data th{font-size:11px;font-weight:600;letter-spacing:.12em;color:var(--w-mute);border-bottom:1px solid var(--w-ink)}
html[data-ed=briefing] table.data tr.total td{background:var(--w-sky);border-top:1px solid var(--w-ink)}
html[data-ed=briefing] svg.chart text{font-family:var(--w-font)}
html[data-ed=briefing] .zone-lab{font-weight:600;letter-spacing:.14em}
html[data-ed=briefing] #tip{background:var(--w-navy);border-radius:4px;box-shadow:0 4px 14px rgba(10,34,64,.2)}
html[data-ed=briefing] details.tbl summary{color:var(--w-blue)}
html[data-ed=briefing] .viewtog{border:1px solid var(--w-rule);border-radius:4px;padding:2px;gap:2px}
html[data-ed=briefing] .viewtog .vt{border-radius:3px;font-weight:600;color:var(--w-mute)}
html[data-ed=briefing] .viewtog .vt.on{background:var(--w-navy);color:#fff}
html[data-ed=briefing] .scen-badge{border-radius:3px;background:var(--w-sky);color:var(--w-blue);font-weight:600;letter-spacing:.02em}
html[data-ed=briefing] .econ-card{border:0;border-top:1px solid var(--w-ink);border-radius:0;padding:16px 0 4px}
html[data-ed=briefing] .gmchip{border-radius:3px;background:var(--w-sky)}
html[data-ed=briefing] .eng-head{font-size:11px;font-weight:600;letter-spacing:.12em;color:var(--w-mute);border-bottom:1px solid var(--w-ink)}
html[data-ed=briefing] .eng-name{border-radius:2px;font-weight:600}
html[data-ed=briefing] .hbars .bar{border-radius:0}
html[data-ed=briefing] .facts{background:var(--w-sky);border:0;border-radius:0;box-shadow:inset 3px 0 0 var(--w-blue)}
html[data-ed=briefing] .mixbar{border-radius:2px}
html[data-ed=briefing] .mixbar .seg{font-weight:600}
html[data-ed=briefing] .foot-note{color:var(--w-mute);border-top:1px solid var(--w-rule)}
html[data-ed=briefing] .src a{color:var(--w-blue)}
html[data-ed=briefing] .appx .it b{letter-spacing:.02em}
@media(max-width:860px){html[data-ed=briefing] .eng-row{border-radius:0;border:0;border-top:1px solid var(--w-rule)}}
@media(max-width:900px){html[data-ed=briefing] .layout{padding:0 0 80px}html[data-ed=briefing] section.card{padding:44px 18px 48px}
  html[data-ed=briefing] main>section.card:first-child{padding:48px 18px 44px}}
@media(max-width:700px){html[data-ed=briefing] header .t span,html[data-ed=briefing] #who{display:none}html[data-ed=briefing] header{padding:0 16px;gap:12px}}

/* ═════ diligence.html — the SFFH room (js/wiki.css: Wikipedia chrome → editorial) ═════ */
html[data-ed=diligence] body{font-size:15px;line-height:1.6}
html[data-ed=diligence] a,html[data-ed=diligence] a:visited,html[data-ed=diligence] a.external:visited{color:var(--w-blue)}
html[data-ed=diligence] .wp-header{border-bottom:1px solid var(--w-rule);height:52px}
html[data-ed=diligence] .wp-header-inner{height:52px;max-width:none;padding:0 20px}
html[data-ed=diligence] .wp-menu{width:40px;height:34px;border-radius:6px;gap:5px}
html[data-ed=diligence] .wp-menu span{height:1.5px;background:var(--w-ink)}
html[data-ed=diligence] .wp-menu:hover{background:var(--w-sky)}
html[data-ed=diligence] .wp-logo-img{height:22px}
html[data-ed=diligence] .wp-wordmark{padding-left:14px;border-left:1px solid var(--w-rule)}
html[data-ed=diligence] .wp-wordmark .wm{font-family:var(--w-font);font-size:14px;font-weight:600;color:var(--w-ink);letter-spacing:-.005em}
html[data-ed=diligence] .wp-wordmark .tag{font-family:var(--w-font);font-size:11px;color:var(--w-mute)}
html[data-ed=diligence] .wp-search input{border:1px solid var(--w-rule);border-radius:4px 0 0 4px;font-size:14px}
html[data-ed=diligence] .wp-search button{border:1px solid var(--w-navy);border-radius:0 4px 4px 0;background:var(--w-navy);color:#fff;font-weight:600;font-family:var(--w-font)}
html[data-ed=diligence] .wp-search button:hover{background:var(--w-blue);border-color:var(--w-blue)}
html[data-ed=diligence] .wp-user-name{color:var(--w-mute);font-size:12px}
html[data-ed=diligence] .wp-user a{border:1px solid var(--w-rule);border-radius:4px;padding:6px 12px;font-size:12px;font-weight:500;color:var(--w-ink)}
html[data-ed=diligence] .wp-user a:hover{border-color:var(--w-ink);text-decoration:none}
/* contents rail = the board pack's menu */
html[data-ed=diligence] .wp-page{max-width:1320px;grid-template-columns:17rem minmax(0,1fr);gap:0 48px;padding:0 24px}
html[data-ed=diligence] .wp-toc{top:52px;max-height:calc(100vh - 52px);padding:28px 0 30px;font-size:14px}
html[data-ed=diligence] .toc-head{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--w-blue);padding:0 0 12px 8px;margin-bottom:6px;border-bottom:1px solid var(--w-rule)}
html[data-ed=diligence] .toc-hidebtn{color:var(--w-mute);letter-spacing:0;text-transform:none;font-size:12px}
html[data-ed=diligence] .toc-list li>a{color:var(--w-mute);border-left:0;padding:7px 26px 7px 8px;border-radius:4px;line-height:1.3}
html[data-ed=diligence] .toc-list li>a:hover{background:var(--w-sky);color:var(--w-ink);text-decoration:none}
html[data-ed=diligence] .toc-list li.active>a{color:var(--w-blue);font-weight:600;background:var(--w-sky);border-radius:0;box-shadow:inset 2px 0 0 var(--w-blue)}
html[data-ed=diligence] .toc-sub li.active>a{color:var(--w-blue);box-shadow:none;background:none}
html[data-ed=diligence] .tocnumber,html[data-ed=diligence] .toc-item.active>a .tocnumber{display:inline-block;min-width:24px;font-size:12px;font-weight:600;color:var(--w-blue);font-variant-numeric:tabular-nums}
html[data-ed=diligence] .toc-sub li>a{font-size:13px}
/* article */
html[data-ed=diligence] .wp-content{padding:28px 0 56px;max-width:68rem}
html[data-ed=diligence] .wp-tabs{border-bottom:1px solid var(--w-rule);font-size:14px}
html[data-ed=diligence] .wp-tabs ul{gap:24px}
html[data-ed=diligence] .wp-tabs li a{color:var(--w-mute);font-weight:600;padding:8px 0 10px}
html[data-ed=diligence] .wp-tabs li.selected a{color:var(--w-ink);border-bottom-color:var(--w-blue)}
html[data-ed=diligence] .wp-tabs li a:hover{color:var(--w-ink);border-bottom-color:var(--w-rule)}
html[data-ed=diligence] h1.firstHeading{font-family:var(--w-font);font-size:clamp(40px,5vw,64px);font-weight:300;letter-spacing:-.03em;line-height:1.05;border-bottom:0;margin:40px 0 8px}
html[data-ed=diligence] .siteSub{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--w-blue);margin-bottom:24px}
html[data-ed=diligence] .mw-body-content{font-size:15px;line-height:1.65;color:var(--w-ink)}
html[data-ed=diligence] .hatnote{color:var(--w-mute);padding:12px 16px;background:var(--w-sky);box-shadow:inset 3px 0 0 var(--w-blue);font-style:normal}
html[data-ed=diligence] .hatnote a{font-style:normal}
html[data-ed=diligence] h2{font-family:var(--w-font);font-size:clamp(24px,2.6vw,32px);font-weight:600;letter-spacing:-.022em;line-height:1.15;border-bottom:0;border-top:1px solid var(--w-rule);padding-top:40px;margin:44px 0 12px}
html[data-ed=diligence] h3{font-size:17px;font-weight:600;letter-spacing:-.01em}
html[data-ed=diligence] .kpis{gap:0;border-top:1px solid var(--w-rule);border-bottom:1px solid var(--w-rule);margin:20px 0}
html[data-ed=diligence] .kpi{background:none;border:0;border-left:1px solid var(--w-rule);padding:16px 18px}
html[data-ed=diligence] .kpi:first-child{border-left:0;padding-left:0}
html[data-ed=diligence] .kpi .v{font-family:var(--w-font);font-size:clamp(24px,2.4vw,32px);font-weight:300;letter-spacing:-.03em;color:var(--w-ink)}
html[data-ed=diligence] .kpi .l{font-size:12.5px;color:var(--w-mute)}
html[data-ed=diligence] table.infobox{border:0;border-top:2px solid var(--w-navy);background:#fff;border-spacing:0;font-size:13px}
html[data-ed=diligence] table.infobox .ib-title{font-size:15px;font-weight:600;padding:10px 4px;text-align:left}
html[data-ed=diligence] table.infobox th,html[data-ed=diligence] table.infobox td{border-top:1px solid var(--w-rule);padding:7px 6px}
html[data-ed=diligence] table.infobox th[scope=row]{font-weight:600;color:var(--w-mute)}
html[data-ed=diligence] table.infobox .ib-header{background:var(--w-sky);color:var(--w-ink);font-size:11px;letter-spacing:.12em;text-transform:uppercase}
html[data-ed=diligence] table.wikitable{background:#fff;border:0;border-top:1px solid var(--w-ink);font-size:13.5px}
html[data-ed=diligence] table.wikitable th,html[data-ed=diligence] table.wikitable td{border:0;border-bottom:1px solid var(--w-rule);padding:8px 10px}
html[data-ed=diligence] table.wikitable th{background:#fff;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--w-mute);text-align:left}
html[data-ed=diligence] table.wikitable tr.row-total td,html[data-ed=diligence] table.wikitable tr.row-head td{background:var(--w-sky)}
html[data-ed=diligence] table.wikitable caption{font-size:14px;font-weight:600;padding:0 0 8px}
html[data-ed=diligence] .catlinks{background:#fff;border:0;border-top:1px solid var(--w-rule);padding:14px 0;color:var(--w-mute)}
html[data-ed=diligence] .wp-footer{border-top:1px solid var(--w-rule);color:var(--w-mute);padding:24px 24px 40px}
html[data-ed=diligence] .search-hit{background:var(--w-sky);box-shadow:0 0 0 2px var(--w-sky)}
html[data-ed=diligence] .loading{font-style:normal;color:var(--w-mute)}
@media(max-width:900px){html[data-ed=diligence] .wp-page{display:block;padding:0 16px}
  html[data-ed=diligence] .wp-wordmark{padding-left:10px}
  html[data-ed=diligence] .toc-box{background:#fff;border:0;border-top:2px solid var(--w-blue);padding:10px 0;width:100%}
  html[data-ed=diligence] .toc-box summary{text-align:left;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--w-blue)}
  html[data-ed=diligence] .kpi{border-left:0;padding-left:0;border-top:1px solid var(--w-rule)}}

/* ═════ memo.html + factory.html — sealed pages (shell written by scripts/dataroom_admin.py seal) ═════ */
html[data-ed=memo],html[data-ed=factory]{--alt:var(--w-band);--ground:#fff;--card:#fff;--field:#fff;--panel:var(--w-band);--pale:var(--w-sky);--pale2:var(--w-band);
  --acc:var(--w-blue);--accent:var(--w-blue);--navy:var(--w-navy);--gray:var(--w-mute);--charcoal:#33475B;--slate:var(--w-faint);--slate-pale:var(--w-band);
  --ink-2:var(--w-mute);--ink-3:var(--w-faint);--hairline:var(--w-rule);--bg-alt:var(--w-band);--in:var(--w-blue);--topbar:#fff;
  --bar-cap:#D9DFE6;--bar-dom:var(--w-blue);--bar-exp:#8FB8DE}
html[data-ed=memo] .topbar,html[data-ed=factory] .topbar{gap:16px}
html[data-ed=memo] #progress{top:51px}
html[data-ed=memo] #progress::before{background:var(--w-blue)}
/* section tabs under the header: text tabs with a blue underline */
html[data-ed=memo] .subnav{top:52px;height:46px;gap:22px;background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--w-rule);align-items:stretch}
html[data-ed=memo] .subnav a{display:flex;align-items:center;padding:0;border-radius:0;font-size:13px;font-weight:500;color:var(--w-mute);box-shadow:inset 0 -2px 0 transparent}
html[data-ed=memo] .subnav a:hover{color:var(--w-ink)}
html[data-ed=memo] .subnav a.on{background:none;color:var(--w-ink);font-weight:600;box-shadow:inset 0 -2px 0 var(--w-blue)}
html[data-ed=memo] .subnav select{align-self:center;border-radius:4px}
html[data-ed=factory] .sumbar{top:52px;background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--w-mute);border-bottom:1px solid var(--w-rule)}
html[data-ed=factory] .sumbar b{font-weight:600;color:var(--w-ink)}
/* bands, eyebrows, type */
:is(html[data-ed=memo],html[data-ed=factory]) .band{border-top:1px solid var(--w-rule)}
:is(html[data-ed=memo],html[data-ed=factory]) .eyebrow{display:block;width:max-content;max-width:100%;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--w-blue);padding-top:12px;border-top:2px solid var(--w-blue);margin-bottom:18px}
html[data-ed=memo] .eyebrow .q{color:var(--w-mute);font-weight:500;letter-spacing:.02em;text-transform:none;margin-top:6px}
:is(html[data-ed=memo],html[data-ed=factory]) h1{font-weight:300;letter-spacing:-.032em;line-height:1.04;color:var(--w-ink)}
:is(html[data-ed=memo],html[data-ed=factory]) h2.t{font-weight:600;letter-spacing:-.024em;color:var(--w-ink)}
:is(html[data-ed=memo],html[data-ed=factory]) h3{font-weight:600;letter-spacing:-.018em}
:is(html[data-ed=memo],html[data-ed=factory]) .lede{color:var(--w-mute)}
html[data-ed=memo] .band>.lede:first-of-type,html[data-ed=memo] h1+.lede{color:var(--w-ink)}
:is(html[data-ed=memo],html[data-ed=factory]) .take{border-top:2px solid var(--w-ink)}
/* chapter openers: navy, left-aligned, light title, sky overline */
html[data-ed=memo] .part-cover{background:var(--w-navy);text-align:left;padding:96px max(22px,calc((100% - var(--wrap))/2)) 88px}
html[data-ed=memo] .part-cover .k{font-size:12.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--w-over)}
html[data-ed=memo] .part-cover h2{font-weight:300;letter-spacing:-.03em;line-height:1.04;margin:0;max-width:20ch;font-size:clamp(40px,5.4vw,72px)}
html[data-ed=memo] .part-cover p{margin:22px 0 0;color:var(--w-lede);max-width:62ch}
/* cards → hairline panels */
:is(html[data-ed=memo],html[data-ed=factory]) :is(.panel,.stat,.gear,.rung,.layer,.kpi,.glass,.trl-row,.jstep,.s10c,.pcard,.gcard,.jcard,.quad,.cmap-panel,.engine-wrap,.mapwrap,.photo,.yt,.persona .av,.grave,.racecard,.chart,.distrust,.glass-flow>div,.trl-item,.cmrow,.jcard .jphoto,.demo canvas,.cmap svg,.pcard .photo.pair img.inset){border-radius:4px}
:is(html[data-ed=memo],html[data-ed=factory]) .panel{box-shadow:none}
html[data-ed=factory] .panel{border-color:var(--w-rule)}
html[data-ed=factory] .band:not(.alt) .panel{background:var(--w-band);border-color:transparent}
:is(html[data-ed=memo],html[data-ed=factory]) .panel .k,:is(html[data-ed=memo],html[data-ed=factory]) .stat .k,:is(html[data-ed=memo],html[data-ed=factory]) .kpi .k,
html[data-ed=memo] .layer .k,html[data-ed=memo] .cmap-panel .k,html[data-ed=memo] .glass-flow .k,html[data-ed=memo] .persona dt{letter-spacing:.12em;color:var(--w-mute)}
/* numbers: large and light */
html[data-ed=memo] .stats{gap:0;border-top:1px solid var(--w-rule);border-bottom:1px solid var(--w-rule)}
html[data-ed=memo] .stat{background:none !important;border-radius:0;padding:22px 22px 20px}
html[data-ed=memo] .stat+.stat{border-left:1px solid var(--w-rule)}
html[data-ed=memo] .stat .v{font-weight:300;letter-spacing:-.035em;color:var(--w-ink)}
html[data-ed=memo] .stat .v .fig{font-weight:300}
html[data-ed=memo] .stat.dark{background:var(--w-navy) !important}
html[data-ed=memo] .stat.dark .k{color:var(--w-over)}
html[data-ed=memo] .stat.dark .d{color:var(--w-lede)}
:is(html[data-ed=memo],html[data-ed=factory]) .kpi .v{font-weight:300;letter-spacing:-.03em}
:is(html[data-ed=memo],html[data-ed=factory]) .kpi.dark{background:var(--w-navy);color:#fff}
html[data-ed=factory] .kpi.dark .k{color:var(--w-over)}
html[data-ed=factory] .kpi.dark .v2,html[data-ed=factory] .kpi.dark .d{color:var(--w-lede)}
html[data-ed=memo] .cmap-panel .big,html[data-ed=memo] .glass-flow b,html[data-ed=memo] .trl-n,html[data-ed=memo] .rung .n,html[data-ed=memo] .quad .qk{font-weight:300}
/* dark cards → navy */
:is(html[data-ed=memo],html[data-ed=factory]) :is(.grave,.distrust,.racecard){background:var(--w-navy)}
html[data-ed=factory] .distrust .k{color:var(--w-over)}
html[data-ed=memo] .grave .k{color:var(--w-over)}
html[data-ed=memo] .layer.base{background:var(--w-navy)}
html[data-ed=memo] .layer.base .k{color:var(--w-over)}
html[data-ed=memo] .jstep .jn,html[data-ed=memo] .rpill{background:var(--w-navy)}
/* pills → small square tags */
:is(html[data-ed=memo],html[data-ed=factory]) :is(.cite,.src-pill,.pt,.layer .it,.live,.gear .pill,.fm-st,.tchip,.rpill,.rolep,.was,.check .s,.tag,.flag,.chipx,.pcard .photo.pair .yr){border-radius:3px}
:is(html[data-ed=memo],html[data-ed=factory]) :is(.cite,.src-pill){background:var(--w-sky);color:var(--w-blue)}
html[data-ed=memo] .fig{border-bottom-color:rgba(0,96,168,.5)}
/* buttons: rectangles */
:is(html[data-ed=memo],html[data-ed=factory]) :is(.btn,.demo-btn,.cmap .pills button,.cmap-tools button,.cmap .cmlink,.fmap .cmlink,.fmap .seg,.fmap .seg button){border-radius:4px}
:is(html[data-ed=memo],html[data-ed=factory]) :is(.btn.pri,.demo-btn){background:var(--w-navy);border-color:var(--w-navy)}
:is(html[data-ed=memo],html[data-ed=factory]) :is(.btn.pri,.demo-btn):hover{background:var(--w-blue)}
html[data-ed=memo] .cmap .pills button.on{background:var(--w-navy);border-color:var(--w-navy)}
html[data-ed=memo] .fmap .seg{background:#fff;border:1px solid var(--w-rule);padding:2px}
html[data-ed=memo] .fmap .seg button.on{background:var(--w-navy);color:#fff;box-shadow:none}
/* in-page tabs: text with a blue underline */
html[data-ed=memo] .tabs,html[data-ed=memo] .band:nth-of-type(even) .tabs{display:flex;flex-wrap:wrap;gap:0 24px;background:none;border-radius:0;padding:0;border-bottom:1px solid var(--w-rule)}
html[data-ed=memo] .tabs button{border-radius:0;background:none;padding:10px 0 12px;margin-bottom:-1px;border-bottom:2px solid transparent;font-weight:600;color:var(--w-mute)}
html[data-ed=memo] .tabs button.on{background:none;color:var(--w-ink);border-bottom-color:var(--w-blue)}
/* no rotating decoration */
html[data-ed=memo] .gear .g,html[data-ed=memo] .gear .g span,html[data-ed=memo] .gear-spin{animation:none}
html[data-ed=memo] .s10c:hover{transform:none;box-shadow:inset 0 0 0 1px var(--w-blue)}
html[data-ed=memo] .s10c .go{color:var(--w-blue)}
html[data-ed=memo] details.qa summary::before{color:var(--w-blue)}
html[data-ed=memo] .tl div::before{background:var(--w-blue)}
:is(html[data-ed=memo],html[data-ed=factory]) table.tb th{letter-spacing:.1em;color:var(--w-mute);border-bottom:1px solid var(--w-ink)}
:is(html[data-ed=memo],html[data-ed=factory]) table.tb tr.tot td{border-top:1px solid var(--w-ink)}
html[data-ed=factory] table.tb td.hi{background:var(--w-sky)}
html[data-ed=factory] .chart{border-color:var(--w-rule)}
html[data-ed=factory] .band:not(.alt) .chart{border-color:transparent}
@media(max-width:760px){html[data-ed=memo] .stat+.stat{border-left:0;border-top:1px solid var(--w-rule)}
  html[data-ed=memo] .part-cover{padding:64px 18px 56px}html[data-ed=memo] .part-cover h2{font-size:36px}}
@media(max-width:700px){:is(html[data-ed=memo],html[data-ed=factory]) .topbar .page-title{border-left:0;padding-left:0}}
