/* Canada SME outlook series (V5.105): series box, key-number strip, figures, tables, callouts, citations, sources and the calculators.
   Everything is scoped to .ec, the wrapper around each article body (content/articles/econ/). Based on wc.css (V5.99). */
.ec{--ec-navy:#0b2545;--ec-teal:#0e7f78;--ec-ink:#1d2733;--ec-mute:#5b6676;--ec-line:#dde3ea;--ec-bg:#f6f8fb;--ec-red:#c8553d}
.ec .lead{font-size:1.12em;color:var(--body,#3F4A5C)}
.ec .ec-series{border:1px solid var(--ec-line);border-radius:10px;padding:16px 20px;background:var(--ec-bg);margin:0 0 26px}
.ec .ec-series p{margin:0 0 8px;font-weight:600;color:var(--ec-navy)}
.ec .ec-series ol{margin:0;padding-left:22px}.ec .ec-series li{margin:3px 0;font-size:15.5px}
.ec .ec-series li.cur{font-weight:700}
.ec .fig{margin:28px 0;width:100%}
.ec .fig-body{border:1px solid var(--ec-line);border-radius:10px;padding:14px;background:#fff}
.ec .fig svg{width:100%;height:auto;display:block}
.ec figcaption{font-size:14.5px;color:var(--ec-mute);margin-top:8px}
.ec .tbl{margin:26px 0;width:100%;overflow-x:auto}
.ec .tbl table{display:table;width:100%;border-collapse:collapse;font-size:15px}
.ec .tcap{font-size:14.5px;color:var(--ec-mute);caption-side:top;text-align:left;padding-bottom:6px;font-weight:400}
.ec .tbl th{background:var(--ec-navy);color:#fff;text-align:left;font-weight:600;padding:9px 12px}
.ec .tbl td{padding:8px 12px;border-bottom:1px solid var(--ec-line);vertical-align:top;background:#fff}
.ec .tbl td.num,.ec .tbl th.num{text-align:right;white-space:nowrap}
.ec .tbl tbody tr:nth-child(even) td{background:#fafbfd}
.ec .tbl tr.total td{font-weight:700;border-top:2px solid var(--ec-navy);background:#eef6f5}
.ec .tnote{font-size:13.5px;color:var(--ec-mute);margin:6px 0 0}
.ec .where{font-size:15px;color:var(--ec-mute);margin-top:-6px}
.ec .callout{border-radius:10px;padding:14px 18px;margin:24px 0;border:1px solid}
.ec .callout .ct{font-weight:700;margin:0 0 6px}.ec .callout p:last-child{margin-bottom:0}
.ec .callout.key{background:#eef8f7;border-color:#bfe3df}.ec .callout.key .ct{color:var(--ec-teal)}
.ec .callout.warn{background:#fff6ec;border-color:#f3d4a8}.ec .callout.warn .ct{color:#9a5a00}
.ec .callout.note{background:#f2f5fa;border-color:#d5deea}.ec .callout.note .ct{color:var(--ec-navy)}
.ec .calc{border:2px solid var(--ec-teal);border-radius:12px;padding:20px 22px;margin:30px 0;background:linear-gradient(180deg,#f3fbfa,#fff)}
.ec .calc-t{font-size:20px;font-weight:700;color:var(--ec-navy);margin:0 0 4px;font-family:var(--font-head,inherit)}
.ec .calc-i{font-size:15px;color:var(--ec-mute);margin:0 0 12px}
.ec .presets{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:14px;margin-bottom:14px}
.ec .presets button{font:inherit;font-size:13.5px;border:1px solid var(--ec-teal);background:#fff;color:var(--ec-teal);border-radius:999px;padding:5px 12px;cursor:pointer}
.ec .presets button.on{background:var(--ec-teal);color:#fff}
@media (hover:hover){.ec .presets button:hover{background:var(--ec-teal);color:#fff}}
.ec .calc-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}
.ec .sl{display:grid;grid-template-columns:1fr auto;gap:2px 10px;margin-bottom:12px}
.ec .sl label{font-size:14.5px;font-weight:600}
.ec .sl output{grid-row:1;grid-column:2;font-size:14.5px;font-weight:700;color:var(--ec-navy);text-align:right;white-space:nowrap}
.ec .sl input{grid-column:1/3;width:100%;accent-color:var(--ec-teal)}
.ec .calc-out{display:grid;gap:10px;align-content:start}
.ec .kpi{background:#fff;border:1px solid var(--ec-line);border-radius:10px;padding:10px 14px}
.ec .kl{display:block;font-size:13px;color:var(--ec-mute)}
.ec .kv{display:block;font-size:23px;font-weight:700;color:var(--ec-navy);line-height:1.25}
.ec .ks{display:block;font-size:12.5px;color:var(--ec-mute)}
.ec .kpi.good .kv{color:var(--ec-teal)}.ec .kpi.bad .kv{color:var(--ec-red)}
.ec .ec-next{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-top:1px solid var(--line-2,#D9D5CA);padding-top:16px;margin-top:36px;font-weight:600}
.ec .ec-next .ec-fwd{margin-left:auto;text-align:right}
.ec .ec-note{font-size:14px;color:var(--ec-mute)}
@media (max-width:980px){.ec .calc-grid{grid-template-columns:1fr}}
@media (max-width:600px){.ec .tbl th{white-space:normal}.ec .tbl.prose td:not(.num){min-width:11em}
 .ec .fig-body{overflow-x:auto}.ec .fig svg{min-width:600px}
 .ec .fig-body::after{content:'Scroll sideways to see the full figure';display:block;font-size:12px;color:var(--ec-mute);margin-top:6px}}
/* key-number strip */
.ec .ec-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0 30px}
.ec .ec-stats .st{background:var(--ec-bg);border:1px solid var(--ec-line);border-radius:10px;padding:12px 14px}
.ec .ec-stats .sv{display:block;font-size:26px;font-weight:700;color:var(--ec-navy);line-height:1.15;font-family:var(--font-head,inherit)}
.ec .ec-stats .sl2{display:block;font-size:14px;font-weight:600;color:var(--ec-ink);margin-top:2px}
.ec .ec-stats .sn{display:block;font-size:12.5px;color:var(--ec-mute)}
/* citations and sources */
.ec sup.cite{font-size:.68em;line-height:0;margin-left:1px}.ec sup.cite a{text-decoration:none;font-weight:600}
.ec .tcap sup.cite,.ec figcaption sup.cite{font-size:.75em}
.ec .asof{background:var(--ec-bg);border:1px solid var(--ec-line);border-radius:10px;padding:12px 16px;margin:0 0 14px;font-size:14.5px}
.ec .asof p{margin:0}
.ec ol.ec-src{font-size:14px;padding-left:24px;color:var(--ec-mute)}.ec ol.ec-src li{margin:4px 0;word-break:break-word}
.ec ol.ec-src li:target{background:#fff6d6;border-radius:4px}
@media (max-width:700px){.ec .ec-stats{grid-template-columns:repeat(2,1fr)}.ec .ec-stats .sv{font-size:22px}}
/* Part 4 sector heatmap */
.ec .hm-fig .fig-body{padding:14px 14px 10px}
.ec .hm-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;margin-bottom:12px}
.ec .hm-filter button{font:inherit;font-size:13.5px;border:1px solid var(--ec-teal);background:#fff;color:var(--ec-teal);border-radius:999px;padding:5px 12px;cursor:pointer}
.ec .hm-filter button.on{background:var(--ec-teal);color:#fff}
.ec .hm-hint{color:var(--ec-mute);font-size:13px;margin-left:auto}
.ec .hm-wrap{overflow-x:auto}
.ec table.hm{width:100%;border-collapse:separate;border-spacing:3px;font-size:13.5px;min-width:620px}
.ec table.hm th{background:var(--ec-navy);color:#fff;font-weight:600;padding:7px 8px;text-align:left;border-radius:4px;vertical-align:bottom}
.ec table.hm tbody th{background:#f3f5f8;color:var(--ec-ink);font-weight:600;width:38%;vertical-align:top}
.ec .hm-sub{display:block;font-weight:400;font-size:12.5px;color:var(--ec-mute);line-height:1.4;margin-top:3px}
.ec .hm-sort{font:inherit;color:#fff;background:none;border:0;padding:0;cursor:pointer;text-align:left;text-decoration:underline dotted;text-underline-offset:3px}
.ec .hm-sort.on::after{content:' ↕'}
.ec td.hc{text-align:center;font-weight:600;border-radius:4px;padding:7px 4px;white-space:nowrap;width:11%}
.ec td.hc.neg.lH{background:#a9442f;color:#fff}.ec td.hc.neg.lM{background:#f2c4b8;color:#6b2414}
.ec td.hc.pos.lH{background:#0e7f78;color:#fff}.ec td.hc.pos.lM{background:#bfe3df;color:#0a4f4a}
.ec td.hc.mix.lH{background:#e9a23b;color:#3d2600}.ec td.hc.mix.lM{background:#f8deb0;color:#5c3a00}
.ec td.hc.low,.ec td.hc.na{background:#eef1f5;color:#5b6676;font-weight:500}
.ec td.hm-net{font-weight:700;white-space:nowrap;padding:7px 8px}
.ec td.hm-net.fav{color:#0a6a64}.ec td.hm-net.adv{color:#a6402b}.ec td.hm-net.mix{color:#8a5a00}
.ec td.hm-note{color:var(--ec-mute);font-size:13px;padding:7px 8px;line-height:1.4}
.ec .hm-key{font-size:13px;color:var(--ec-mute);margin:10px 0 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ec .hm-key .k{display:inline-block;padding:2px 8px;border-radius:4px;font-weight:600}
.ec .hm-key .k.pos{background:#0e7f78;color:#fff}.ec .hm-key .k.mix{background:#e9a23b;color:#3d2600}.ec .hm-key .k.neg{background:#a9442f;color:#fff}.ec .hm-key .k.low{background:#eef1f5;color:#5b6676}
@media (max-width:600px){.ec .hm-fig .fig-body svg{min-width:0}.ec .hm-hint{margin-left:0}}
