/* New Canadian Finance: Cost of Living Calculator. Loads after /assets/site.css and reuses its colours. */
#col [hidden]{display:none!important}
#col .lead{margin-bottom:18px}
.col-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:20px;align-items:start}
.col-steps{display:flex;flex-direction:column;gap:16px;min-width:0}
.col-step h2{font-size:18px;display:flex;align-items:center;gap:10px;margin-bottom:14px}
.col-step h2 i{font:700 13px "Bricolage Grotesque",sans-serif;width:26px;height:26px;border-radius:50%;background:var(--soft);color:var(--brand);display:grid;place-items:center;flex:none}
.col-step h2 small{font:500 13px "Public Sans",system-ui,sans-serif;color:var(--mute);letter-spacing:0}
.col-hint{font-size:12.5px;color:var(--mute);margin:6px 0 0;min-height:1em}
.col-hint:empty{display:none}
.col-f{margin-top:16px}
.col-f>label,.col-lab{display:block;font-size:13px;color:var(--mute);margin-bottom:6px;font-weight:500}
.col-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:4px 18px}

/* map */
.col-mapwrap{position:relative;border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,#d6e6f7,#c8ddf3);overflow:hidden}
#colMap{display:block;width:100%;aspect-ratio:1.25;touch-action:pan-y;user-select:none;-webkit-user-select:none}
#colMap.col-drag{cursor:grabbing}
#colMap.col-zoomed{touch-action:none}
.col-us{fill:#e7e3d9;stroke:#d3cdbf;stroke-width:1;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none}
.col-p{fill:#fff;stroke:#9dbbd9;stroke-width:1;stroke-linejoin:round;vector-effect:non-scaling-stroke;cursor:pointer;outline:0;transition:fill .15s}
.col-p:hover{fill:#e8f2fc}
.col-p:focus-visible{stroke:var(--brand);stroke-width:2.5}
.col-p.off{fill:#eef3f8;stroke:#b3c9df}
.col-p.off:hover{fill:#fff}
.col-p.on,.col-p.on:hover{fill:#fff;stroke:var(--brand);stroke-width:1.8}
.col-pl{fill:var(--mute);font:600 13px "Public Sans",system-ui,sans-serif;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#fff;stroke-opacity:.75;stroke-width:.2em;stroke-linejoin:round}
.col-pl.on{fill:var(--brand)}
.col-hide{display:none}
.col-dot{fill:var(--brand);stroke:#fff;stroke-width:1.2;vector-effect:non-scaling-stroke;pointer-events:none}
.col-dot.out{opacity:.38}
.col-dot.on{fill:#17477f;stroke-width:2.5}
.col-cl{fill:var(--ink);font:700 13px "Public Sans",system-ui,sans-serif;pointer-events:none;paint-order:stroke;stroke:#fff;stroke-linejoin:round}
.col-zoom{position:absolute;inset-inline-end:10px;top:10px;display:flex;flex-direction:column;gap:6px}
.col-zoom button{all:unset;box-sizing:border-box;width:36px;height:36px;border-radius:9px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);display:grid;place-items:center;cursor:pointer;color:var(--ink);font:600 19px/1 "Public Sans",system-ui,sans-serif}
.col-zoom button:hover{border-color:var(--brand);color:var(--brand)}
.col-zoom button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.col-zoom button.w{width:auto;padding:0 10px;font-size:12.5px;position:absolute;inset-inline-end:46px;top:0;white-space:nowrap}
#colTip{position:absolute;pointer-events:none;background:var(--ink);color:#fff;border-radius:8px;padding:6px 10px;font-size:12.5px;line-height:1.35;white-space:nowrap;box-shadow:0 4px 14px rgba(31,47,66,.22);z-index:2}
#colTip b{display:block;font-weight:600}
#colTip span{opacity:.82}
.col-maphint{position:absolute;inset-inline-start:12px;bottom:9px;font-size:12px;color:var(--ink);pointer-events:none;background:rgba(255,255,255,.78);padding:2px 6px;border-radius:6px}

/* controls */
#col .seg{display:flex;width:100%;max-width:520px}
#col .seg button{flex:1;padding:9px 8px;font-size:14px;line-height:1.25;border-inline-start:1px solid var(--line)}
#col .seg button:first-child{border-inline-start:0}
#col .seg button:disabled{opacity:.4;cursor:not-allowed}
#col .seg button small{display:block;font-weight:500;font-size:11.5px;opacity:.85}
#col .chips{margin:0}
#col .chips button{padding:8px 15px}
#col .chips button:disabled{opacity:.4;cursor:not-allowed;border-color:var(--line)}
.col-stp{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg)}
.col-stp button{all:unset;width:42px;height:40px;text-align:center;font-size:20px;line-height:40px;cursor:pointer;color:var(--brand);font-weight:600}
.col-stp button:hover{background:var(--soft)}
.col-stp button:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.col-stp b{min-width:38px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums}
.col-money{position:relative}
.col-money:before{content:"$";position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--mute)}
#col .col-money input{padding-left:24px}

/* results */
.col-side{position:sticky;top:20px;display:flex;flex-direction:column;gap:14px}
.col-k{color:var(--mute);font-size:13px;display:block}
#colOut .total{font:700 clamp(36px,5vw,46px)/1.1 "Bricolage Grotesque",sans-serif;color:var(--ink);margin-top:2px;font-variant-numeric:tabular-nums}
.col-sum{margin:6px 0 0;color:var(--mute);font-size:14px}
.col-sum b{color:var(--ink);font-weight:600}
#colOut .lines{gap:11px;margin-top:16px}
#colOut .lines div.l{grid-template-columns:1fr auto;gap:5px 10px;font-size:14px}
#colOut .lines .bar{grid-column:1/-1;order:3;height:8px;border-radius:4px}
#colOut .lines .bar i{border-radius:4px;min-width:4px}
#colOut .lines .v{font-variant-numeric:tabular-nums}
.col-left{margin-top:16px;padding:12px 14px}
.col-left span{display:block;font-weight:500;font-size:13px;opacity:.9}
.col-notes{margin:16px 0 0;padding-block:14px 0;padding-inline:18px 0;border-top:1px solid var(--line);color:var(--mute);font-size:12.5px;display:flex;flex-direction:column;gap:5px}
.col-empty{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.col-empty b{font:700 20px/1.25 "Bricolage Grotesque",sans-serif}
.col-empty span{color:var(--mute);font-size:14px}
#colCmpOut{margin:10px 0 0;font-size:14px;color:var(--mute)}
#colCmpOut:empty{display:none}
#colCmpOut b{color:var(--ink)}
#colBar{display:none}

/* below the tool */
.col-how{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.col-how h3{font-size:15.5px;margin-bottom:6px}
.col-how p{margin:0;color:var(--mute);font-size:14px}
.col-how ul{margin:0;padding-inline-start:18px;color:var(--mute);font-size:14px}
.col-add{margin-top:26px;display:flex;gap:14px 20px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--soft);border-color:#c5dbf2}
.col-add b{font:700 17px "Bricolage Grotesque",sans-serif;display:block}
.col-add span{color:var(--mute);font-size:14px}
.col-add a.btn{text-decoration:none;white-space:nowrap}
#col .srcs small{display:block;color:var(--mute);font-size:12.5px;margin-top:12px;max-width:80ch}

@media (max-width:1040px){
  .col-grid{grid-template-columns:minmax(0,1fr)}
  .col-side{position:static}
  #col{padding-bottom:70px}
  #colBar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(50,90,130,.12)}
  #colBar.col-seen{display:none}
  #colBar small{display:block;color:var(--mute);font-size:12px}
  #colBar b{font:700 20px "Bricolage Grotesque",sans-serif;font-variant-numeric:tabular-nums}
  #colBar .btn{padding:9px 16px}
}
@media (max-width:560px){
  #col .panel{padding:16px}
  #col .seg button{font-size:13px;padding:9px 4px}
  .col-zoom button.w{display:none}
  .col-maphint{display:none}
}
@media (prefers-reduced-motion:reduce){.col-p{transition:none}}

#pdPlanner{margin-top:20px}
#pdPlanner .pd-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;margin:16px 0}
#pdPlanner .pd-fields input{width:100%;min-width:0}
#pdPlanner .pd-delay{display:flex;align-items:center;gap:8px;cursor:pointer}
#pdPlanner .pd-delay input{width:auto}
#pdResult:not(:empty){margin-top:14px;background:var(--soft);padding:12px;border-radius:8px;font-weight:600}

/* Result box in brand plum (Nov 20, 2026): plum = your answer */
#colOut{background:radial-gradient(90% 120% at 100% 0,#6a1a6c 0,transparent 60%),linear-gradient(135deg,#49004b,#2a002c);border:0;color:#fff;box-shadow:0 10px 30px rgba(73,0,75,.25)}
#colOut .col-k{color:#e3c27f;font-weight:600}
#colOut .total{color:#fff}
#colOut p,#colOut .col-sum,#colOut .col-empty span{color:#ead9eb}
#colOut .col-sum b,#colOut .col-empty b{color:#fff}
#colOut .lines .bar{background:rgba(255,255,255,.18)}#colOut .lines .bar i{background:#c9a45c}
#colOut .col-notes{color:#d9c3da;border-top-color:rgba(255,255,255,.2)}
#colOut .alert{background:rgba(255,255,255,.1);border-color:#ff9b8f;color:#fff}
#colOut .alert.good{border-color:#7fdca4}
