/* MSTRMND design kit — the homepage's design system for inner pages.
   Load after the page's existing CSS:  <link rel="stylesheet" href="/home-assets/site.css">
   Everything is namespaced ds- and only applies inside <main class="ds">, so legacy styles elsewhere are untouched.
   Fonts come from /home-assets/chrome.css (already on every page). */

:root{
 --ds-ink:#2c2c2c;--ds-ink-2:#4a4741;--ds-soft:#9b9b9b;--ds-muted:#8a857d;
 --ds-bg:#ffffff;--ds-card:#f3f3f3;--ds-card-2:#ebebeb;--ds-line:#e6e6e6;
 --ds-orange:#f15a24;--ds-orange-d:#d8481a;--ds-orange-dd:#b9380f;--ds-peach:#ffd9c6;--ds-peach-2:#fff1ea;
 --ds-flann:#0f3b2b;--ds-flann-2:#17573f;--ds-flann-3:#1e7f4f;--ds-mint:#d9f2e2;
 --ds-r:32px;--ds-r-md:24px;--ds-r-sm:16px;
 --ds-wrap:1232px;--ds-ease:cubic-bezier(.2,.75,.15,1);--ds-out:cubic-bezier(.16,1,.3,1);
 --ds-disp:Archivo,"Helvetica Neue",Arial,sans-serif;--ds-body:Inter,system-ui,sans-serif;--ds-mono:"JetBrains Mono",ui-monospace,monospace;
 --ds-grain:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main.ds{background:var(--ds-bg);color:var(--ds-ink);font:400 17px/1.55 var(--ds-body);-webkit-font-smoothing:antialiased;padding:0}
main.ds *,main.ds *::before,main.ds *::after{box-sizing:border-box}
main.ds img{display:block;max-width:100%;height:auto}
main.ds a{color:inherit}
main.ds :focus-visible{outline:2.5px solid var(--ds-orange);outline-offset:3px;border-radius:8px}
.ds .ds-wrap{width:min(var(--ds-wrap),calc(100% - 48px));margin:0 auto}
.ds .ds-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Type ---------- */
.ds .ds-h1,.ds .ds-h2,.ds .ds-h3,.ds .ds-h4{font-family:var(--ds-disp);font-weight:600;font-stretch:96%;color:var(--ds-ink);margin:0}
.ds .ds-h1{font-size:clamp(40px,5.56vw,80px);line-height:.95;letter-spacing:-.04em}
.ds .ds-h2{font-size:clamp(34px,4.45vw,64px);line-height:1;letter-spacing:-.03em}
.ds .ds-h3{font-size:clamp(28px,3.34vw,48px);line-height:1.02;letter-spacing:-.03em}
.ds .ds-h4{font-size:clamp(21px,1.9vw,26px);line-height:1.12;letter-spacing:-.02em}
.ds .ds-mute{color:var(--ds-soft)}
.ds .ds-accent{color:var(--ds-orange)}
.ds .ds-lede{font-size:clamp(17px,1.4vw,19px);line-height:1.5;color:var(--ds-ink-2);max-width:58ch;margin:0}
.ds .ds-tag{font:500 11px/1 var(--ds-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ds-muted)}
.ds .ds-tag.or{color:var(--ds-orange-dd)}.ds .ds-tag.gr{color:var(--ds-flann-3)}

/* ---------- Buttons ---------- */
.ds .ds-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:14px 22px;font:600 15px/1 var(--ds-body);text-decoration:none;cursor:pointer;white-space:nowrap;transition:transform .3s var(--ds-ease),background .25s,color .25s}
.ds .ds-btn:hover{transform:translateY(-1px)}
.ds .ds-btn .ar{transition:transform .3s var(--ds-ease)}.ds .ds-btn:hover .ar{transform:translateX(3px)}
.ds .ds-btn-ink{background:#1d1d1d;color:#f9f3ed}.ds .ds-btn-ink:hover{background:#000}
.ds .ds-btn-or{background:var(--ds-orange);color:#fff}.ds .ds-btn-or:hover{background:var(--ds-orange-d)}
.ds .ds-btn-white{background:#fff;color:var(--ds-ink)}
.ds .ds-btn-line{background:#fff;color:var(--ds-ink);box-shadow:inset 0 0 0 1px var(--ds-line)}
.ds .ds-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* ---------- Layout ---------- */
.ds .ds-sec{padding:clamp(64px,8vw,112px) 0}
.ds .ds-sec.tight{padding:clamp(40px,5vw,64px) 0}
.ds .ds-sec-h{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:36px}
.ds .ds-sec-h .ds-h2,.ds .ds-sec-h .ds-h3{max-width:24ch}
.ds .ds-grid{display:grid;gap:16px}
.ds .ds-grid.c2{grid-template-columns:repeat(2,1fr)}.ds .ds-grid.c3{grid-template-columns:repeat(3,1fr)}.ds .ds-grid.c4{grid-template-columns:repeat(4,1fr)}
@media(max-width:960px){.ds .ds-grid.c3,.ds .ds-grid.c4{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.ds .ds-grid.c2,.ds .ds-grid.c3,.ds .ds-grid.c4{grid-template-columns:1fr}}

/* ---------- Breadcrumb + page hero ---------- */
.ds .ds-crumb{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--ds-muted);margin-bottom:22px}
.ds .ds-crumb a{color:var(--ds-muted);text-decoration:none}.ds .ds-crumb a:hover{color:var(--ds-ink)}
.ds .ds-crumb [aria-current]{color:var(--ds-ink)}
.ds .ds-hero{padding:clamp(40px,6vw,88px) 0 clamp(32px,4vw,56px)}
.ds .ds-hero .ds-h1{max-width:16ch}
.ds .ds-hero .ds-lede{margin-top:22px}
.ds .ds-hero .ds-actions{margin-top:30px}
.ds .ds-hero.center{text-align:center}.ds .ds-hero.center .ds-h1,.ds .ds-hero.center .ds-lede{margin-left:auto;margin-right:auto}.ds .ds-hero.center .ds-actions{justify-content:center}.ds .ds-hero.center .ds-crumb{justify-content:center}
.ds .ds-hero-split{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(24px,4vw,64px);align-items:center}
@media(max-width:900px){.ds .ds-hero-split{grid-template-columns:1fr}}

/* ---------- Gradient panels (the homepage stage colours) ---------- */
.ds .ds-panel{position:relative;border-radius:var(--ds-r);overflow:hidden;isolation:isolate;padding:clamp(28px,3.6vw,52px)}
.ds .ds-panel::after{content:"";position:absolute;inset:0;background:var(--ds-grain);opacity:.13;mix-blend-mode:soft-light;pointer-events:none;z-index:0}
.ds .ds-panel>*{position:relative;z-index:1}
.ds .ds-g-orange{color:#fff;background:radial-gradient(85% 120% at 100% -6%,#fff6f0 0%,#ffe3d4 18%,rgba(255,196,165,.85) 34%,rgba(255,160,115,0) 58%),radial-gradient(60% 75% at 0% 0%,#ff8a4f 0%,rgba(255,138,79,0) 70%),radial-gradient(70% 70% at 28% 108%,#b8360d 0%,rgba(184,54,13,0) 72%),linear-gradient(100deg,#e24c16 0%,#ee5a22 36%,#f87a45 58%,#ffb48f 80%,#ffe3d4 100%)}
.ds .ds-g-green{color:#fff;background:radial-gradient(80% 100% at 100% 0%,#eaf8ef 0%,rgba(200,236,214,.85) 24%,rgba(90,180,130,0) 60%),linear-gradient(110deg,#0c3325 0%,#17573f 38%,#3f9a6c 70%,#c9ecd6 100%)}
.ds .ds-g-peach{color:var(--ds-ink);background:radial-gradient(90% 110% at 0% 100%,#ffc2a3 0%,rgba(255,194,163,0) 60%),linear-gradient(160deg,#fff4ee 0%,#ffe0cf 55%,#ffbf9e 100%)}
.ds .ds-g-light{color:var(--ds-ink);background:radial-gradient(70% 90% at 100% 0%,#ffe1d2 0%,rgba(255,225,210,0) 60%),linear-gradient(160deg,#ffffff 0%,#f4f4f4 60%,#e9e9e9 100%)}
.ds .ds-g-ink{color:#fff;background:linear-gradient(160deg,#2c2925,#151311)}
.ds .ds-g-orange .ds-h1,.ds .ds-g-orange .ds-h2,.ds .ds-g-orange .ds-h3,.ds .ds-g-orange .ds-h4,.ds .ds-g-green .ds-h1,.ds .ds-g-green .ds-h2,.ds .ds-g-green .ds-h3,.ds .ds-g-green .ds-h4,.ds .ds-g-ink .ds-h2,.ds .ds-g-ink .ds-h3,.ds .ds-g-ink .ds-h4{color:#fff}
.ds .ds-g-orange .ds-lede,.ds .ds-g-green .ds-lede,.ds .ds-g-ink .ds-lede{color:rgba(255,255,255,.9)}
.ds .ds-g-orange .ds-tag,.ds .ds-g-green .ds-tag,.ds .ds-g-ink .ds-tag{color:rgba(255,255,255,.75)}
/* mountain-M contour lines (paste the SVG from the guide inside a panel) */
.ds .ds-ml{position:absolute!important;inset:0;width:100%;height:100%;z-index:0!important;pointer-events:none}
.ds .ds-ml path{fill:none;stroke:rgba(255,255,255,.32);stroke-width:1.3;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.ds .ds-ml path.glint{stroke:rgba(255,255,255,.95);stroke-width:1.6;stroke-dasharray:70 1000;animation:dsGlint 6.5s linear infinite}
@keyframes dsGlint{from{stroke-dashoffset:1070}to{stroke-dashoffset:0}}

/* ---------- Cards ---------- */
.ds .ds-card{position:relative;border-radius:var(--ds-r-md);background:var(--ds-card);padding:24px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--ds-ink);transition:transform .45s var(--ds-ease),background .3s}
.ds a.ds-card:hover{transform:translateY(-4px)}
.ds .ds-card p{margin:0;color:var(--ds-ink-2);font-size:15.5px}
.ds .ds-card .ds-go{position:absolute;top:18px;right:18px;width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;transition:transform .4s var(--ds-ease)}
.ds a.ds-card:hover .ds-go{transform:rotate(-45deg)}
.ds .ds-card.has-go .ds-h4,.ds .ds-card.has-go p{padding-right:52px}
.ds .ds-card.white{background:#fff;box-shadow:inset 0 0 0 1px var(--ds-line)}
.ds .ds-card.peach{background:linear-gradient(160deg,#fff1ea,#ffd9c6)}
.ds .ds-card.mint{background:linear-gradient(160deg,#eaf6ef,#cfe9da)}
.ds .ds-card.ink{background:linear-gradient(160deg,#2c2925,#151311);color:#fff}.ds .ds-card.ink p{color:#d3d3d3}.ds .ds-card.ink .ds-h4{color:#fff}
.ds .ds-card.tall{min-height:240px;justify-content:flex-end}
/* hover-fill card (industries style) */
.ds .ds-fill{position:relative;overflow:hidden;isolation:isolate}
.ds .ds-fill::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(120deg,#e24c16,#f87a45 60%,#ffb48f);opacity:0;transition:opacity .45s var(--ds-ease)}
.ds .ds-fill:hover{color:#fff}.ds .ds-fill:hover::before{opacity:1}.ds .ds-fill:hover p,.ds .ds-fill:hover .ds-tag{color:rgba(255,255,255,.9)}

/* ---------- Lifecycle stage list ---------- */
.ds .ds-stages{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;counter-reset:st}
.ds .ds-stage{border-radius:var(--ds-r-sm);background:var(--ds-card);padding:22px;display:grid;gap:8px;align-content:start}
.ds .ds-stage i{font:500 11px/1 var(--ds-mono);font-style:normal;color:var(--ds-orange)}
.ds .ds-stage b{font:600 20px/1.1 var(--ds-disp);letter-spacing:-.02em}
.ds .ds-stage p{margin:0;font-size:15px;color:var(--ds-ink-2)}
.ds .ds-stage.on{background:linear-gradient(140deg,#fff1ea,#ffd3bd)}
@media(max-width:900px){.ds .ds-stages{grid-template-columns:1fr 1fr}}

/* ---------- Answer, takeaways, result ---------- */
.ds .ds-answer{border-radius:var(--ds-r-sm);background:var(--ds-peach-2);border-left:4px solid var(--ds-orange);padding:18px 22px;margin:24px 0}
.ds .ds-answer b{display:block;font:600 13px/1 var(--ds-body);color:var(--ds-orange-dd);margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em}
.ds .ds-takeaways{border-radius:var(--ds-r-md);background:var(--ds-card);padding:24px 26px;margin:0 0 28px}
.ds .ds-takeaways h2{font:600 18px/1.2 var(--ds-disp);margin:0 0 12px}
.ds .ds-takeaways ul{margin:0;padding-left:20px;display:grid;gap:6px}
.ds .ds-result{border-radius:20px;padding:22px 24px;color:#fff;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(110deg,#e24c16,#f26a30 50%,#ffa47c);display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap}
.ds .ds-result small{display:block;opacity:.9;font-size:13px}
.ds .ds-result big{display:block;font:600 clamp(36px,4vw,54px)/1 var(--ds-disp);letter-spacing:-.04em}

/* ---------- Article prose ---------- */
.ds .ds-article{display:grid;grid-template-columns:minmax(0,720px) 260px;gap:clamp(32px,5vw,72px);align-items:start}
.ds .ds-toc{position:sticky;top:96px;font-size:14px;display:grid;gap:8px;border-left:1px solid var(--ds-line);padding-left:18px}
.ds .ds-toc b{font:500 11px/1 var(--ds-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ds-muted);margin-bottom:6px}
.ds .ds-toc a{text-decoration:none;color:var(--ds-ink-2)}.ds .ds-toc a:hover{color:var(--ds-orange-d)}
@media(max-width:1000px){.ds .ds-article{grid-template-columns:1fr}.ds .ds-toc{display:none}}
.ds .ds-prose{font-size:18px;line-height:1.65;color:var(--ds-ink-2)}
.ds .ds-prose>*+*{margin-top:1.05em}
.ds .ds-prose h2{font:600 clamp(26px,2.6vw,34px)/1.1 var(--ds-disp);letter-spacing:-.025em;color:var(--ds-ink);margin-top:2em;scroll-margin-top:90px}
.ds .ds-prose h3{font:600 21px/1.2 var(--ds-disp);letter-spacing:-.015em;color:var(--ds-ink);margin-top:1.6em}
.ds .ds-prose a{color:var(--ds-orange-dd);text-underline-offset:3px}
.ds .ds-prose ul,.ds .ds-prose ol{padding-left:1.3em}.ds .ds-prose li+li{margin-top:.4em}
.ds .ds-prose blockquote{margin:1.6em 0;padding:4px 0 4px 20px;border-left:3px solid var(--ds-orange);font:500 21px/1.4 var(--ds-disp);color:var(--ds-ink)}
.ds .ds-meta{font-size:14px;color:var(--ds-muted)}

/* ---------- Table ---------- */
.ds .ds-table-wrap{overflow-x:auto;border-radius:var(--ds-r-sm);box-shadow:inset 0 0 0 1px var(--ds-line)}
.ds .ds-table{width:100%;border-collapse:collapse;font-size:15px}
.ds .ds-table th,.ds .ds-table td{padding:13px 16px;text-align:left;border-bottom:1px solid var(--ds-line);vertical-align:top}
.ds .ds-table thead th{background:var(--ds-card);font-weight:600;font-size:13px;color:var(--ds-ink-2)}
.ds .ds-table tbody tr:last-child td,.ds .ds-table tbody tr:last-child th{border-bottom:0}

/* ---------- Bar chart ---------- */
.ds .ds-bars{display:grid;gap:12px;border-radius:var(--ds-r-md);background:var(--ds-card);padding:24px}
.ds .ds-bars h3{font:600 20px/1.2 var(--ds-disp);margin:0}
.ds .ds-bars .sub{font-size:14px;color:var(--ds-muted);margin:-6px 0 6px}
.ds .ds-bar{display:grid;grid-template-columns:minmax(120px,1fr) 2fr auto;gap:14px;align-items:center;font-size:14.5px}
.ds .ds-bar .tr{height:12px;border-radius:9px;background:#e2e2e2;overflow:hidden}
.ds .ds-bar .tr i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#f15a24,#ff9a6b);width:var(--w,50%);transform-origin:left;animation:dsBar 1.2s var(--ds-out) both}
.ds .ds-bar b{font-weight:600}
.ds .ds-bars figcaption{font-size:12.5px;color:var(--ds-muted)}
@keyframes dsBar{from{transform:scaleX(0)}}
@media(max-width:600px){.ds .ds-bar{grid-template-columns:1fr auto}.ds .ds-bar .tr{grid-column:1/-1;grid-row:2}}

/* ---------- FAQ ---------- */
.ds .ds-faq{display:grid;gap:10px}
.ds .ds-faq details{border-radius:var(--ds-r-sm);background:var(--ds-card);padding:0 22px}
.ds .ds-faq summary{list-style:none;cursor:pointer;padding:20px 36px 20px 0;font:600 18px/1.3 var(--ds-disp);letter-spacing:-.01em;position:relative}
.ds .ds-faq summary::-webkit-details-marker{display:none}
.ds .ds-faq summary::after{content:"+";position:absolute;right:0;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;background:#fff;display:grid;place-items:center;font:500 18px/1 var(--ds-body);transition:transform .3s var(--ds-ease)}
.ds .ds-faq details[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.ds .ds-faq details p{margin:0 0 20px;color:var(--ds-ink-2);max-width:70ch}

/* ---------- CTA band ---------- */
.ds .ds-band{border-radius:var(--ds-r);text-align:left}
.ds .ds-band .ds-band-in{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.ds .ds-band .ds-h3{max-width:20ch}

/* ---------- Calculator skin (keeps every data-* hook of /agency-assets/planning-tools.js) ---------- */
.ds .plan-shell{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding:0;border:0;background:none}
.ds .plan-shell>div:first-child{border-radius:var(--ds-r);background:var(--ds-card);padding:clamp(22px,3vw,36px)}
.ds .plan-shell h2{font:600 24px/1.1 var(--ds-disp);letter-spacing:-.02em;margin:0 0 6px}
.ds .plan-hint{font-size:13.5px;color:var(--ds-muted)}
.ds .plan-input{display:grid;gap:6px;margin:14px 0;font-size:14.5px;font-weight:500;color:var(--ds-ink-2)}
.ds .plan-input input,.ds .plan-input select{width:100%;border:0;border-radius:12px;background:#fff;padding:13px 14px;font:500 16px/1.2 var(--ds-body);color:var(--ds-ink);box-shadow:inset 0 0 0 1px var(--ds-line)}
.ds .plan-input input:focus,.ds .plan-input select:focus{outline:0;box-shadow:inset 0 0 0 2px var(--ds-orange)}
.ds .plan-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.ds .plan-actions button{border:0;border-radius:999px;padding:11px 16px;font:600 14px/1 var(--ds-body);background:#fff;color:var(--ds-ink);box-shadow:inset 0 0 0 1px var(--ds-line);cursor:pointer}
.ds .plan-actions button:hover{background:#1d1d1d;color:#fff}
.ds .plan-results{border-radius:var(--ds-r);padding:clamp(22px,3vw,36px);color:#fff;position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(85% 120% at 100% -6%,#fff6f0 0%,#ffe3d4 18%,rgba(255,196,165,.85) 34%,rgba(255,160,115,0) 58%),linear-gradient(100deg,#e24c16 0%,#ee5a22 36%,#f87a45 58%,#ffb48f 80%,#ffe3d4 100%)}
.ds .plan-results .plan-hint{color:rgba(255,255,255,.85)}
.ds .plan-chart{background:rgba(255,255,255,.95);color:var(--ds-ink);border-radius:var(--ds-r-sm);padding:18px;margin:18px 0 0}
.ds .plan-chart .plan-hint{color:var(--ds-muted)}
@media(max-width:900px){.ds .plan-shell{grid-template-columns:1fr}}

/* ============ Legacy page re-skin ============
   Inner pages shipped with the lib-* class system. Re-skin them so they match the homepage,
   without rewriting every file. Scoped by body and legacy class names that only exist on inner pages. */
body{font-family:Inter,system-ui,sans-serif;color:#2c2c2c;background:#fff}
body .lib-hero,body .page-hero{padding:clamp(56px,7vw,108px) 0 clamp(32px,4vw,56px);background:none;border-bottom:0}
body .lib-hero h1,body .page-hero h1{font:600 clamp(40px,5.56vw,80px)/.95 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.04em;color:#2c2c2c;max-width:18ch;margin:0 0 18px}
body .lib-hero .lib-lead,body .page-hero .lead{font:400 clamp(17px,1.4vw,19px)/1.5 Inter,system-ui,sans-serif;color:#4a4741;max-width:58ch}
body .lib-crumb,body .breadcrumb{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:#8a857d;margin:0 0 22px}
body .lib-crumb a,body .breadcrumb a{color:#8a857d;text-decoration:none}
body .lib-crumb a:hover,body .breadcrumb a:hover{color:#2c2c2c}
body .lib-section,body .content-block{padding:clamp(48px,6vw,88px) 0;max-width:min(1232px,calc(100% - 48px));margin:0 auto}
body .lib-section>h2,body .content-block>h2{font:600 clamp(28px,3.34vw,42px)/1.04 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.025em;color:#2c2c2c;margin:0 0 32px;max-width:24ch}
body .lib-prose,body .prose{font:400 17px/1.6 Inter,system-ui,sans-serif;color:#4a4741;max-width:68ch}
body .lib-prose>*+*,body .prose>*+*{margin-top:1em}
body .lib-prose h3,body .prose h3{font:600 20px/1.2 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;color:#2c2c2c;margin:1.8em 0 .4em}
body .lib-prose a,body .prose a{color:#b9380f;text-underline-offset:3px}
body .lib-prose ol.lib-steps,body .prose ol.lib-steps{list-style:none;counter-reset:st;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:14px;max-width:none}
body .lib-prose ol.lib-steps li,body .prose ol.lib-steps li{counter-increment:st;position:relative;background:#f3f3f3;border-radius:16px;padding:22px 24px 22px 68px;margin:0}
body .lib-prose ol.lib-steps li::before,body .prose ol.lib-steps li::before{content:"0"counter(st);position:absolute;left:22px;top:22px;font:500 11px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;color:#b9380f}
body .lib-prose ol.lib-steps h3,body .prose ol.lib-steps h3{margin:0 0 6px;font-size:18px}
body .lib-prose ol.lib-steps p,body .prose ol.lib-steps p{margin:0;font-size:15.5px}
body .lib-prose .deliverable,body .prose .deliverable{background:#f3f3f3;border-radius:16px;padding:22px 24px;margin:0 0 14px}
body .lib-prose .deliverable h3,body .prose .deliverable h3{margin:0 0 6px}
body .lib-prose .deliverable p,body .prose .deliverable p{margin:0;font-size:15.5px}
body .lib-prose .list-links,body .prose .list-links{display:flex;flex-wrap:wrap;gap:10px}
body .lib-prose .list-links a,body .prose .list-links a{display:inline-flex;align-items:center;gap:8px;background:#fff;border-radius:999px;padding:11px 18px;font-weight:600;font-size:14.5px;text-decoration:none;color:#2c2c2c;box-shadow:inset 0 0 0 1px #e6e6e6;transition:background .2s,color .2s}
body .lib-prose .list-links a:hover,body .prose .list-links a:hover{background:#2c2c2c;color:#fff}
body .lib-prose .lib-related,body .prose .lib-related{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
body .lib-prose .lib-related a,body .prose .lib-related a{display:inline-flex;align-items:center;gap:8px;background:#fff;border-radius:999px;padding:9px 16px;font-size:14px;font-weight:500;text-decoration:none;color:#2c2c2c;box-shadow:inset 0 0 0 1px #e6e6e6}
body .lib-prose .lib-related a:hover,body .prose .lib-related a:hover{background:#ffe3d4;color:#b9380f}
body .lib-prose .short-answer,body .prose .short-answer{background:#fff1ea;border-left:0;border-radius:16px;padding:18px 22px;font-size:17px;color:#2c2c2c;margin:28px 0}
body .lib-prose .short-answer strong,body .prose .short-answer strong{display:block;font:600 12px/1 Inter,sans-serif;color:#b9380f;margin-bottom:6px;letter-spacing:.04em;text-transform:uppercase}
body .lib-prose details.lib-faq,body .prose details.lib-faq{border-radius:16px;background:#f3f3f3;padding:0 22px;margin:0 0 10px;max-width:none}
body .lib-prose details.lib-faq summary,body .prose details.lib-faq summary{list-style:none;cursor:pointer;padding:20px 36px 20px 0;font:600 18px/1.3 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.01em;color:#2c2c2c;position:relative}
body .lib-prose details.lib-faq summary::-webkit-details-marker,body .prose details.lib-faq summary::-webkit-details-marker{display:none}
body .lib-prose details.lib-faq summary::after,body .prose details.lib-faq summary::after{content:"+";position:absolute;right:0;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;background:#fff;display:grid;place-items:center;font:500 18px/1 Inter,sans-serif;transition:transform .3s}
body .lib-prose details.lib-faq[open] summary::after,body .prose details.lib-faq[open] summary::after{transform:translateY(-50%) rotate(45deg)}
body .lib-prose details.lib-faq p,body .prose details.lib-faq p{margin:0 0 20px;color:#4a4741;max-width:70ch}

/* CTA aside: full-width orange band */
body aside.lib-cta{position:relative;overflow:hidden;isolation:isolate;border-radius:32px;max-width:min(1232px,calc(100% - 48px));margin:clamp(48px,6vw,88px) auto;padding:clamp(40px,5vw,72px);color:#fff;display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center;background:radial-gradient(85% 120% at 100% -6%,#fff6f0 0%,#ffe3d4 18%,rgba(255,196,165,.85) 34%,rgba(255,160,115,0) 58%),radial-gradient(60% 75% at 0% 0%,#ff8a4f 0%,rgba(255,138,79,0) 70%),linear-gradient(100deg,#e24c16 0%,#ee5a22 36%,#f87a45 58%,#ffb48f 80%,#ffe3d4 100%)}
body aside.lib-cta h2{color:#fff;font:600 clamp(26px,3vw,38px)/1.05 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.025em;margin:0 0 10px;max-width:24ch}
body aside.lib-cta p{color:rgba(255,255,255,.92);font:400 17px/1.5 Inter,sans-serif;margin:0;max-width:52ch}
body aside.lib-cta .lib-button,body .lib-button,body a.pill.orange{display:inline-flex;align-items:center;gap:8px;background:#1d1d1d;color:#f9f3ed;border:0;border-radius:999px;padding:14px 22px;font:600 15px/1 Inter,system-ui,sans-serif;text-decoration:none;white-space:nowrap;transition:background .25s,transform .3s}
body aside.lib-cta .lib-button{background:#fff;color:#2c2c2c}
body aside.lib-cta .lib-button:hover{background:#1d1d1d;color:#f9f3ed}
body a.pill.orange{background:#f15a24;color:#fff}body a.pill.orange:hover{background:#d8481a;color:#fff}
@media(max-width:800px){body aside.lib-cta{grid-template-columns:1fr}}
@media(max-width:700px){body .lib-prose ol.lib-steps,body .prose ol.lib-steps{grid-template-columns:1fr}}

/* Resource library grids and insight pages */
body .lib-wide{padding:clamp(48px,6vw,88px) 0;max-width:min(1232px,calc(100% - 48px));margin:0 auto}
body .lib-wide>h2{font:600 clamp(28px,3.34vw,42px)/1.04 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.025em;color:#2c2c2c;margin:0 0 24px}
body article.lib-source{display:grid;grid-template-columns:1fr auto;gap:14px 32px;align-items:start;padding:28px 0;border-top:1px solid #e6e6e6}
body article.lib-source h3{font:600 20px/1.25 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;color:#2c2c2c;margin:4px 0 8px}
body article.lib-source h3 a{color:#2c2c2c;text-decoration:none}
body article.lib-source h3 a:hover{color:#b9380f}
body article.lib-source p{color:#4a4741;max-width:70ch;margin:0 0 6px}
body article.lib-source .lib-meta{font:500 11px/1.4 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:#8a857d;margin:0}
body article.lib-source .lib-source-links{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
body article.lib-source .lib-source-links a{font-size:14px;color:#2c2c2c;text-decoration:none;font-weight:500}
body article.lib-source .lib-source-links a:hover{color:#b9380f}
@media(max-width:700px){body article.lib-source{grid-template-columns:1fr}body article.lib-source .lib-source-links{align-items:flex-start}}

/* Insight article pages */
body .insight-main,body main.insight-main{padding:0;max-width:none}
body .insight-article{padding:clamp(48px,6vw,80px) 0}
body .insight-article>*{max-width:min(760px,calc(100% - 48px));margin-left:auto;margin-right:auto}
body .editorial-label{font:500 11px/1.4 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;color:#b9380f;margin:0 auto 14px;max-width:min(760px,calc(100% - 48px))}
body .insight-article h1{font:600 clamp(36px,4.8vw,64px)/1.02 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.035em;color:#2c2c2c;margin-bottom:18px}
body .insight-article .article-deck{font:400 19px/1.5 Inter,sans-serif;color:#4a4741;margin-bottom:12px}
body .insight-article .article-byline{font-size:13px;color:#8a857d;margin-bottom:34px}
body .article-copy,body .article-grid{font:400 17px/1.7 Inter,sans-serif;color:#2c2c2c}
body .article-copy p,body .article-grid p{margin:0 0 1.1em;color:#2c2c2c}
body .article-copy h2,body .article-grid h2{font:600 clamp(24px,2.5vw,32px)/1.15 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.025em;margin:2em 0 .6em;color:#2c2c2c}
body .article-copy h3,body .article-grid h3{font:600 20px/1.25 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;margin:1.5em 0 .5em;color:#2c2c2c}
body .article-copy a,body .article-grid a{color:#b9380f;text-underline-offset:3px}
body section.key-takeaways{background:#f3f3f3;border-radius:16px;padding:24px 28px;margin:0 auto 32px;max-width:min(760px,calc(100% - 48px))}
body section.key-takeaways h2{font:600 18px/1.2 Archivo,"Helvetica Neue",Arial,sans-serif;margin:0 0 12px}
body section.key-takeaways ul{margin:0;padding-left:20px;display:grid;gap:6px;color:#2c2c2c}
body aside.mid-article-cta{background:linear-gradient(100deg,#2c2925,#151311);color:#fff;border-radius:20px;padding:26px 30px;margin:36px auto;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;max-width:min(760px,calc(100% - 48px))}
body aside.mid-article-cta h3{color:#fff;font:600 22px/1.15 Archivo,"Helvetica Neue",Arial,sans-serif;margin:0 0 6px}
body aside.mid-article-cta p{color:rgba(255,255,255,.85);margin:0;font-size:15.5px}
body aside.mid-article-cta a.pill.orange{background:#f15a24;color:#fff}
@media(max-width:700px){body aside.mid-article-cta{grid-template-columns:1fr}}
body section.research-lead{background:#f3f3f3;border-radius:20px;padding:28px;margin:28px auto;max-width:min(760px,calc(100% - 48px))}
body section.research-lead h3{font:600 22px/1.2 Archivo,"Helvetica Neue",Arial,sans-serif;margin:0 0 6px}
body .viz-bars{display:grid;gap:12px;margin-top:16px}
body .viz-row{display:grid;grid-template-columns:minmax(120px,1fr) 2fr auto;gap:14px;align-items:center;font-size:14.5px}
body .viz-track{height:12px;border-radius:9px;background:#fff;overflow:hidden}
body .viz-track span{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#f15a24,#ff9a6b)}
body .viz-value{font:600 15px/1 Inter,sans-serif}
body .viz-axis{display:flex;justify-content:space-between;font-size:12px;color:#8a857d;margin-top:4px}
body .viz-kicker,body .viz-subtitle{font:500 11px/1.4 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:#8a857d;margin:0 0 6px}
body figure.research-figure{margin:0}
body section.editorial-method{background:#f3f3f3;border-radius:20px;padding:28px;margin:28px auto;max-width:min(760px,calc(100% - 48px))}
body section.editorial-method h2{font:600 22px/1.2 Archivo,"Helvetica Neue",Arial,sans-serif;margin:0 0 10px}
body section.article-cta{background:linear-gradient(100deg,#e24c16,#ee5a22 50%,#f87a45);color:#fff;border-radius:20px;padding:28px;margin:28px auto;max-width:min(760px,calc(100% - 48px))}
body section.article-cta h2{color:#fff;font:600 22px/1.15 Archivo,"Helvetica Neue",Arial,sans-serif;margin:0 0 10px}
body section.article-cta p{color:rgba(255,255,255,.9)}
body section.article-cta a{background:#1d1d1d;color:#f9f3ed;border-radius:999px;padding:13px 20px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:600;margin-top:12px}

/* Resource library cards */
body .lib-catalog{padding:clamp(48px,6vw,80px) 0;max-width:min(1232px,calc(100% - 48px));margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
body .lib-catalog article{background:#f3f3f3;border-radius:16px;padding:22px}
body .lib-catalog article h3{font:600 19px/1.2 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;margin:4px 0 8px}
body .lib-catalog article h3 a{color:#2c2c2c;text-decoration:none}
body .lib-catalog article h3 a:hover{color:#b9380f}
body .lib-catalog article p{color:#4a4741;font-size:14.5px;margin:0}
body .lib-catalog .lib-meta,body .lib-catalog article span{font:500 11px/1.4 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:#8a857d}

/* Service hero visual */
body .page-hero.has-service-visual{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;max-width:min(1232px,calc(100% - 48px));margin:0 auto}
body .service-hero-visual{border-radius:24px;overflow:hidden;background:#f3f3f3;margin:0}
body .service-hero-visual img{width:100%;height:auto;display:block}
body .service-hero-visual figcaption{font:500 11px/1.4 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:#8a857d;padding:12px 18px;background:#fff}
@media(max-width:900px){body .page-hero.has-service-visual{grid-template-columns:1fr}}

/* Resource and sitemap plain pages: tighten max width */
body main>*{box-sizing:border-box}

/* Remove dim/beige legacy backgrounds that break the new white-first look */
body .lib-cta{background:none}
body main.insight-main{background:#fff}

/* Loyalty platform page and compare pages - leave bodies as they are; only ensure nav+footer don't look bad */

/* ============ Calculator (plan-shell) re-skin — readable, mobile-friendly ============ */
body main.ds .plan-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:0 auto clamp(40px,5vw,72px);max-width:min(1232px,calc(100% - 48px));padding:0;border:0;background:none}
body main.ds .plan-shell>div{min-width:0;border-radius:24px}
body main.ds .plan-shell>div:first-child{background:#fff;padding:clamp(24px,3vw,40px);box-shadow:inset 0 0 0 1px #e6e6e6}
body main.ds .plan-shell h2{font:600 clamp(24px,2.2vw,30px)/1.1 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;color:#2c2c2c;margin:0 0 8px}
body main.ds .plan-shell .plan-hint{font-size:14px;color:#6b665e;line-height:1.5;margin:0 0 20px}
body main.ds .plan-shell form{display:grid;gap:14px;margin:0}
body main.ds .plan-input{display:grid;gap:8px;margin:0;font-size:14.5px;font-weight:500;color:#2c2c2c}
body main.ds .plan-input span{color:#2c2c2c;font-size:14.5px}
body main.ds .plan-input em{font-style:normal;color:#6b665e;font-weight:400;font-size:13px}
body main.ds .plan-input input,body main.ds .plan-input select{width:100%;border:0;border-radius:12px;background:#f4f4f4;padding:14px 16px;font:500 16px/1.2 Inter,system-ui,sans-serif;color:#2c2c2c;box-shadow:inset 0 0 0 1px #e6e6e6;min-height:48px}
body main.ds .plan-input input:focus,body main.ds .plan-input select:focus{outline:0;box-shadow:inset 0 0 0 2px #f15a24;background:#fff}
body main.ds .plan-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
body main.ds .plan-actions button{border:0;border-radius:999px;padding:12px 18px;font:600 14px/1 Inter,sans-serif;background:#fff;color:#2c2c2c;box-shadow:inset 0 0 0 1px #e6e6e6;cursor:pointer;min-height:44px;transition:background .25s,color .25s,transform .2s}
body main.ds .plan-actions button:hover{background:#1d1d1d;color:#f9f3ed}
body main.ds .plan-actions button:active{transform:translateY(1px)}
body main.ds .plan-status{font-size:13px;color:#4a4741;margin:6px 0 0;min-height:1.2em}

body main.ds .plan-results{background:radial-gradient(85% 120% at 100% -6%,#fff6f0 0%,#ffe3d4 18%,rgba(255,196,165,.85) 34%,rgba(255,160,115,0) 58%),linear-gradient(100deg,#e24c16 0%,#ee5a22 36%,#f87a45 58%,#ffb48f 80%);color:#fff;padding:clamp(24px,3vw,40px);position:relative;overflow:hidden;isolation:isolate;border-radius:24px}
body main.ds .plan-results .lib-meta{font:500 11px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.8);margin:0 0 14px}
body main.ds .plan-results [data-results]{display:grid;gap:12px}
body main.ds .plan-results [data-results] .plan-metric,body main.ds .plan-results [data-results]>div{background:rgba(255,255,255,.14);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.22);border-radius:16px;padding:16px 18px}
body main.ds .plan-results [data-results] b,body main.ds .plan-results [data-results] strong{color:#fff;font:600 clamp(26px,2.4vw,32px)/1 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;display:block;margin:4px 0 2px}
body main.ds .plan-results [data-results] small,body main.ds .plan-results [data-results] span{color:rgba(255,255,255,.88);font-size:13px;line-height:1.4}
body main.ds .plan-chart{background:rgba(255,255,255,.95);color:#2c2c2c;border-radius:16px;padding:20px;margin:16px 0 0}
body main.ds .plan-chart h3{font:600 17px/1.2 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;color:#2c2c2c;margin:0 0 6px}
body main.ds .plan-chart .plan-hint{color:#6b665e;font-size:13px;margin:0 0 14px}
body main.ds .plan-chart figcaption{color:#6b665e;font-size:12px;margin-top:10px}
body main.ds .plan-chart [data-sensitivity]{display:grid;gap:8px}
body main.ds .plan-chart [data-sensitivity] button,body main.ds .plan-chart [data-sensitivity]>div{display:grid;grid-template-columns:minmax(60px,auto) 1fr auto;gap:8px 12px;align-items:center;background:transparent;border:0;padding:4px 0;cursor:pointer;color:inherit;font:inherit;text-align:left;width:100%}
body main.ds .plan-chart [data-sensitivity] button:hover{color:#b9380f}

@media(max-width:960px){body main.ds .plan-shell{grid-template-columns:1fr;gap:14px}body main.ds .plan-results{order:2}}
@media(max-width:480px){body main.ds .plan-shell>div:first-child,body main.ds .plan-results{padding:22px;border-radius:20px}}

/* Calculator page hero/sections — breathing room, nav offset */
body main.ds .lib-hero{padding:clamp(40px,5vw,72px) 0 clamp(24px,3vw,40px);max-width:min(1232px,calc(100% - 48px));margin:0 auto}
body main.ds .lib-hero .lib-crumb{margin:0 0 20px}
body main.ds .lib-hero h1{max-width:20ch;margin:0 0 16px}
body main.ds .lib-hero .lib-lead{max-width:60ch}

/* Space CTA pills and inline buttons */
body .lib-prose .list-links,body .prose .list-links{gap:12px}
body .lib-prose .lib-related,body .prose .lib-related{gap:12px}
body .lib-prose a.pill,body .prose a.pill,body .lib-prose a.lib-button,body .prose a.lib-button{margin:16px 12px 0 0}

/* "Discuss a UK project / Canadian project" style button rows */
body .prose .pill+.pill,body .lib-prose .pill+.pill{margin-left:12px}
body main.ds .prose p>a.pill,body main.ds .lib-prose p>a.pill{margin-right:12px;margin-top:8px}

/* Mobile menu — tap targets and spacing */
@media(max-width:1000px){body .mx-mnav a{font-size:20px;padding:16px 4px}body .mx-mnav .mx-btn{padding:16px 24px;min-height:52px}}

/* ============ Calculator (plan-shell) re-skin — readable, mobile-friendly ============ */
body main.ds .plan-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:0 auto clamp(40px,5vw,72px);max-width:min(1232px,calc(100% - 48px));padding:0;border:0;background:none}
body main.ds .plan-shell>div{min-width:0;border-radius:24px}
body main.ds .plan-shell>div:first-child{background:#fff;padding:clamp(24px,3vw,40px);box-shadow:inset 0 0 0 1px #e6e6e6}
body main.ds .plan-shell h2{font:600 clamp(24px,2.2vw,30px)/1.1 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;color:#2c2c2c;margin:0 0 8px}
body main.ds .plan-shell .plan-hint{font-size:14px;color:#6b665e;line-height:1.5;margin:0 0 20px}
body main.ds .plan-shell form{display:grid;gap:14px;margin:0}
body main.ds .plan-input{display:grid;gap:8px;margin:0;font-size:14.5px;font-weight:500;color:#2c2c2c}
body main.ds .plan-input span{color:#2c2c2c;font-size:14.5px}
body main.ds .plan-input em{font-style:normal;color:#6b665e;font-weight:400;font-size:13px}
body main.ds .plan-input input,body main.ds .plan-input select{width:100%;border:0;border-radius:12px;background:#f4f4f4;padding:14px 16px;font:500 16px/1.2 Inter,system-ui,sans-serif;color:#2c2c2c;box-shadow:inset 0 0 0 1px #e6e6e6;min-height:48px}
body main.ds .plan-input input:focus,body main.ds .plan-input select:focus{outline:0;box-shadow:inset 0 0 0 2px #f15a24;background:#fff}
body main.ds .plan-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
body main.ds .plan-actions button{border:0;border-radius:999px;padding:12px 18px;font:600 14px/1 Inter,sans-serif;background:#fff;color:#2c2c2c;box-shadow:inset 0 0 0 1px #e6e6e6;cursor:pointer;min-height:44px;transition:background .25s,color .25s}
body main.ds .plan-actions button:hover{background:#1d1d1d;color:#f9f3ed}
body main.ds .plan-status{font-size:13px;color:#4a4741;margin:6px 0 0;min-height:1.2em}

body main.ds .plan-results{background:radial-gradient(85% 120% at 100% -6%,#fff6f0 0%,#ffe3d4 18%,rgba(255,196,165,.85) 34%,rgba(255,160,115,0) 58%),linear-gradient(100deg,#e24c16 0%,#ee5a22 36%,#f87a45 58%,#ffb48f 80%);color:#fff;padding:clamp(24px,3vw,40px);position:relative;overflow:hidden;isolation:isolate;border-radius:24px}
body main.ds .plan-results .lib-meta{font:500 11px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.85);margin:0 0 14px}
body main.ds .plan-results [data-results]{display:grid;gap:12px}
body main.ds .plan-results [data-results] b,body main.ds .plan-results [data-results] strong{color:#fff;font:600 clamp(26px,2.4vw,32px)/1 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;display:block;margin:4px 0 2px}
body main.ds .plan-results [data-results] small,body main.ds .plan-results [data-results] span{color:rgba(255,255,255,.92);font-size:13px;line-height:1.4}
body main.ds .plan-chart{background:rgba(255,255,255,.96);color:#2c2c2c;border-radius:16px;padding:20px;margin:16px 0 0}
body main.ds .plan-chart h3{font:600 17px/1.2 Archivo,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.02em;color:#2c2c2c;margin:0 0 6px}
body main.ds .plan-chart .plan-hint{color:#6b665e;font-size:13px;margin:0 0 14px}
body main.ds .plan-chart figcaption{color:#6b665e;font-size:12px;margin-top:10px}

@media(max-width:960px){body main.ds .plan-shell{grid-template-columns:1fr;gap:14px}body main.ds .plan-results{order:2}}
@media(max-width:480px){body main.ds .plan-shell>div:first-child,body main.ds .plan-results{padding:22px;border-radius:20px}}

/* Calc page hero with nav offset */
body main.ds .lib-hero{padding:clamp(40px,5vw,72px) 0 clamp(24px,3vw,40px);max-width:min(1232px,calc(100% - 48px));margin:0 auto}
body main.ds .lib-hero h1{max-width:20ch;margin:0 0 16px}

/* Button breathing room everywhere */
body .lib-prose a.pill,body .prose a.pill,body .lib-prose a.lib-button,body .prose a.lib-button,body .lib-cta .lib-button,body .wk-cta-band a{margin:0 4px}
body .prose p>a.pill,body .lib-prose p>a.pill{margin-right:14px;margin-top:10px;display:inline-flex;gap:8px}

/* Mobile menu tap targets */
@media(max-width:1000px){body .mx-mnav a{font-size:20px;padding:16px 4px}body .mx-mnav .mx-btn{padding:16px 24px;min-height:52px}}
/* Repair: catalogue containers and editorial measure */
/* A catalogue containing filters and a grid is a block; only its cards form columns. */
body .lib-catalog:has(> .lib-grid){display:block;min-width:0}
body .lib-catalog > .lib-grid{width:100%;min-width:0}
body .lib-catalog .lib-filter{width:100%;min-width:0}
body .lib-catalog .lib-filter :is(input,select){min-width:0;max-width:100%}
body .lib-catalog [data-library-count]{margin-block:0 20px}
body.mst-tools-page #main .tool-feature{box-sizing:border-box;width:calc(100% - 48px);max-width:1232px;margin-inline:auto}
body .lib-catalog .lib-meta{font:600 12px/1.5 Inter,system-ui,sans-serif;letter-spacing:.035em}
/* Keep the reading measure on prose, rather than the prose-and-sidebar wrapper. */
body.reading-page .insight-article{box-sizing:border-box;width:min(1232px,calc(100% - 48px));max-width:none;padding:48px 0 64px}
body .insight-article > :is(.breadcrumb,.article-grid,.article-byline){max-width:none;margin-inline:0}
body .insight-article > :is(h1,.editorial-label,.article-deck){max-width:860px;margin-inline:0}
body .insight-article .article-grid{grid-template-columns:minmax(0,1fr) 250px;gap:clamp(32px,4vw,64px)}
body .insight-article .article-copy{max-width:none;min-width:0}
body .insight-article .article-copy > :is(.research-lead,.key-takeaways,.editorial-method,.article-cta,.mid-article-cta){box-sizing:border-box;width:100%;max-width:none;margin-inline:0}
body .insight-article .article-copy .research-lead{padding:0;background:none;border-radius:0}
body .insight-article :is(.research-figure,.evidence-figure){box-sizing:border-box;background:#f3f3f3;border:1px solid #e6e6e6;border-radius:20px;padding:24px;color:#2c2c2c}
body .insight-article .research-figure h3{font:600 clamp(23px,2.3vw,32px)/1.2 Archivo,Arial,sans-serif;margin:0 0 14px}
body .insight-article .research-figure .viz-subtitle{font:500 14px/1.5 Inter,sans-serif;letter-spacing:0;text-transform:none;color:#555}
body .insight-article .viz-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1.5fr) auto;gap:12px;font-size:15px}
body .insight-article .viz-track{height:16px;border:0;background:#e4e4e4;border-radius:5px}
body .insight-article .viz-track span{background:#f15a24;border-radius:5px}
body .insight-article .viz-value{white-space:normal;text-align:end;font-size:14px;line-height:1.4}
body .insight-article .chart-controls{border-color:#dedede;color:#555;font-size:14px;flex-wrap:wrap}
body .insight-article .chart-replay{background:#fff;border:1px solid #d5d5d5;border-radius:999px;min-height:44px;color:#2c2c2c}
body .insight-article .chart-readout{background:#fff1ea;border-color:#c94112;border-radius:8px;font-size:14px;color:#2c2c2c}
body .insight-article .viz-row.is-active{background:#fff1ea}
body .insight-article .research-figure figcaption{font-size:14px;line-height:1.55;border-color:#dedede;color:#555}
body .insight-article .viz-data{font-size:14px}
body .insight-article .viz-framework{background:#e6e6e6;border-color:#e6e6e6}
body .insight-article .viz-framework > div{background:#fff}
body .insight-article .article-side{position:sticky;top:92px}
body .insight-article :is(h2,h3){scroll-margin-top:92px}
@media(max-width:1000px){
 body .insight-article .article-grid{grid-template-columns:minmax(0,1fr)}
 body .insight-article .article-side{position:static}
}
@media(max-width:650px){
 body.reading-page .insight-article{width:calc(100% - 40px);padding-top:28px}
 body .insight-article .research-figure{padding:18px}
 body .insight-article .viz-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 body .insight-article .viz-name{grid-column:1;grid-row:1}
 body .insight-article .viz-value{grid-column:2;grid-row:1}
 body .insight-article .viz-track{grid-column:1/-1;grid-row:2}
 body .insight-article .viz-axis{margin:0}
}
