/* CA Hub "Time-band strip" (Canada country hub + province hubs). Prefix pch-. Loads after mid.css + p-loc-hubx.css
   (front matter: extra: mid, p-loc-hubx, p-loc-ca-hub). Behaviour: p-loc-ca-hub.js (all wording from page data attributes).
   Parts: hero copy + time-band strip with band cards (and region buttons in province mode), trust row, industry app icons,
   workflow chains (mid kit E skin), solution-architecture node diagram, province cards, rules ledger with topic chips,
   seven-stage delivery rail + three-row overlap ribbon, sample app mix sheet (no prices). */
:root { --pch-ink: #082238; --pch-body: #334155; --pch-muted: #475569; --pch-line: #E2E8F0; --pch-link: #0A5C8C; --pch-paper: #F3F7F9; --pch-amber: #FFB81C; }
.pch-hero a:focus-visible, .pch-hero button:focus-visible, .pch-arch button:focus-visible, .pch-rules button:focus-visible, .pch-how button:focus-visible, .pch-provs a:focus-visible { outline: 3px solid #FFB81C; outline-offset: 2px; }

/* ---------- 1. Hero ---------- */
.pch-hero__copy { max-width: 880px; }
.pch-hero .pg-h1 { max-width: 22ch; font-size: clamp(34px, 1.1rem + 2.5vw, 56px); }
.pch-hero .pg-h1 .hp-mark { white-space: nowrap; }
.pch-hero .pg-lead { max-width: 64ch; }
.pch-hero .phx-value { max-width: 64ch; }
.pch-trust { max-width: none; }

.pch-band { margin-top: clamp(28px, 4vw, 44px); padding: clamp(16px, 2.4vw, 26px); border-radius: 28px; background: #fff; border: 1px solid var(--pch-line); box-shadow: 0 40px 80px -60px rgba(8,34,56,.7); }
.pch-band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 14px; }
.pch-band__t { margin: 0; font: 700 18px/1.3 var(--f-display); color: var(--pch-ink); }
.pch-band__hint { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--pch-muted); }
.pch-band__strip { position: relative; display: flex; gap: 4px; height: 124px; padding: 8px; border-radius: 20px; background:
  repeating-linear-gradient(0deg, transparent 0 13px, rgba(8,34,56,.05) 13px 14px), linear-gradient(180deg, #EAF4FA, #F3F7F9); }
.pch-band__b { position: relative; flex: var(--w, 1) 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; padding: 10px 10px 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #fff), color-mix(in srgb, var(--c) 22%, #fff)); color: var(--pch-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
  transition: background-color .3s, box-shadow .3s, transform .3s, color .3s; }
.pch-band__b::before { content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 4px; border-radius: 4px; background: var(--c); opacity: .7; }
.pch-band__b b { font: 800 15px/1.2 var(--f-display); letter-spacing: -.01em; }
.pch-band__b span { font: 600 12.5px/1.3 var(--f-body); color: var(--pch-muted); letter-spacing: .04em; }
.pch-band__b:hover { transform: translateY(-2px); }
.pch-band__b[aria-pressed="true"] { background: var(--c); color: #fff; box-shadow: 0 18px 30px -18px var(--c); }
.pch-band__b[aria-pressed="true"] span { color: rgba(255,255,255,.88); }
.pch-band__b[aria-pressed="true"]::before { background: #FFB81C; opacity: 1; }
.pch-band__b--thin { padding-inline: 6px; }
.pch-band__pin { position: absolute; top: 22px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border-radius: 99px; background: #082238; color: #fff; font: 700 11.5px/1.2 var(--f-body); font-style: normal; white-space: nowrap; }
.pch-band__pin i { width: 10px; height: 10px; border-radius: 50%; background: #FFB81C; box-shadow: 0 0 0 3px rgba(255,184,28,.35); }
.pch-band__cards { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pch-band.is-ready .pch-band__cards { display: block; }
.pch-card { padding: 16px 18px; border-radius: 20px; background: var(--pch-paper); border: 1px solid var(--pch-line); border-left: 6px solid var(--c, #1D3F8F); }
.pch-card[hidden] { display: none; }
.pch-band.is-ready .pch-card { animation: pchIn .35s ease both; }
.pch-band.is-ready .pch-card[hidden] { display: none; }
.pch-card__zone { margin: 0; font: 700 11.5px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pch-muted); }
.pch-card h3 { margin: 2px 0 6px; font: 700 20px/1.3 var(--f-display); color: var(--pch-ink); padding-bottom: .08em; }
.pch-card p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: var(--pch-body); }
.pch-card__time b { color: var(--pch-ink); font-variant-numeric: tabular-nums; }
.pch-card__say { color: var(--pch-ink) !important; font-weight: 600; }
.pch-card__next a { color: var(--pch-link); font-weight: 700; display: inline-flex; align-items: center; min-height: 28px; }
.pch-card__regions { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pch-card__regions button { min-height: 36px; padding: 6px 12px; border-radius: 99px; border: 1px solid #BFDDEE; background: #fff; color: var(--pch-link); font: 600 13.5px/1.3 var(--f-body); cursor: pointer; }
.pch-card__regions button[aria-pressed="true"] { background: #082238; border-color: #082238; color: #fff; }
.pch-band__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.pch-band__send { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 0; background: #082238; color: #fff; font: 700 15px/1.2 var(--f-body); cursor: pointer; transition: background-color .25s; }
.pch-band__send:hover { background: #0A3A63; }
.pch-band__status { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: var(--pch-muted); }
.pch-band__status:empty { display: none; }

/* ---------- 5. Industry app icons ---------- */
.pch-ind__apps { display: flex; gap: 8px; margin: 0 0 12px !important; }
.pch-ind__apps img { width: 28px; height: 28px; padding: 4px; box-sizing: content-box; border-radius: 10px; background: var(--pch-paper); border: 1px solid var(--pch-line); }

/* ---------- 6. Workflow chains (mid kit E) ---------- */
.pch-flow { margin-top: 30px; }
.pch-flow__t { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; font: 700 20px/1.3 var(--f-display); color: var(--pch-ink); padding-bottom: .08em; }
.pch-flow__t span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #082238; color: #FFB81C; font: 800 15px/1 var(--f-display); flex: 0 0 auto; }
.pch-flow .mk-strip { margin-top: 10px; }
.pch-chip { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0 !important; padding: 4px 10px 4px 5px; border-radius: 99px; background: #fff; border: 1px solid var(--pch-line); font: 700 12.5px/1.3 var(--f-body) !important; color: var(--pch-ink) !important; }
.pch-chip img { width: 20px; height: 20px; }

/* ---------- 7. Architecture diagram ---------- */
.pch-arch { margin-top: 26px; padding: clamp(14px, 2vw, 22px); border-radius: 26px; background: linear-gradient(135deg, #061A2E, #0A3A63 55%, #07605E); color: #fff; }
.pch-arch__stage { position: relative; aspect-ratio: 1000 / 560; }
.pch-arch__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pch-arch__lines line { stroke: rgba(159,192,216,.45); stroke-width: 2.5; stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; transition: stroke .3s, stroke-width .3s; }
.pch-arch__lines line.is-on { stroke: #FFB81C; stroke-width: 3.5; stroke-dasharray: none; }
.pch-arch__core { fill: rgba(255,255,255,.04); stroke: rgba(95,211,243,.45); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.pch-arch__corelabel { fill: #9FC0D8; font: 700 15px var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.pch-node { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 2px solid transparent; background: #fff; color: var(--pch-ink); font: 700 14.5px/1.2 var(--f-body); white-space: nowrap; cursor: pointer; box-shadow: 0 14px 26px -16px rgba(0,0,0,.7); transition: border-color .25s, transform .25s, background-color .25s; }
.pch-node img, .pch-node svg { width: 26px; height: 26px; flex: 0 0 auto; }
.pch-node svg { fill: none; stroke: #0A6FA8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pch-node--hub { background: #E6F6F4; }
.pch-node--ext { background: #F1F5F9; }
.pch-node:hover { transform: translate(-50%, -50%) translateY(-2px); }
.pch-node[aria-pressed="true"] { border-color: #FFB81C; background: #FFF8E6; }
.pch-node.is-linked { border-color: #7CC7E8; }
.pch-arch__say { margin: 14px 0 10px; font-size: 14.5px; line-height: 1.5; color: #FFE3A3; }
.pch-arch__info { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pch-arch__info > div { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.pch-arch.is-ready .pch-arch__info { display: block; }
.pch-arch.is-ready .pch-arch__info > div { animation: pchIn .3s ease both; }
.pch-arch__info > div[hidden] { display: none; }
.pch-arch__info dt { font: 700 16px/1.3 var(--f-display); color: #fff; }
.pch-arch__info dd { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: #DCEAF4; }
.pch-arch__info dd b { color: #FFD27A; }

/* ---------- 8. Province cards ---------- */
.pch-provs__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pch-prov { position: relative; display: flex; flex-direction: column; padding: 20px 18px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--pch-line); overflow: hidden; }
.pch-prov::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, var(--c) 0 10px, color-mix(in srgb, var(--c) 40%, #fff) 10px 14px); }
.pch-prov__band { margin: 0 0 8px; font: 700 11.5px/1.3 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--pch-muted); }
.pch-prov h3 { margin: 0 0 8px; font: 700 18.5px/1.3 var(--f-display); padding-bottom: .08em; }
.pch-prov h3 a { color: var(--pch-ink); text-decoration: none; background: linear-gradient(var(--c), var(--c)) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.pch-prov h3 a:hover { background-size: 100% 2px; }
.pch-prov h3 a::after { content: " →"; color: var(--c); }
.pch-prov > p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--pch-body); }
.pch-prov__cities { margin: auto 0 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.pch-prov__cities a { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: 99px; background: var(--pch-paper); border: 1px solid var(--pch-line); color: var(--pch-link); font: 600 14px/1.3 var(--f-body); text-decoration: none; }
.pch-prov__cities a:hover { border-color: #7CC7E8; background: #E8F5FC; }
.pch-provs__more { margin: 18px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--pch-body); max-width: 80ch; }
.pch-provs__more a { color: var(--pch-link); font-weight: 700; }

/* ---------- 9. Rules ledger ---------- */
.pch-led { margin-top: 24px; }
.pch-led__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pch-led__chips[hidden] { display: none; }
.pch-led__chip { min-height: 40px; padding: 8px 16px; border-radius: 99px; border: 1px solid #A7D7C5; background: #fff; color: #0B5345; font: 600 14.5px/1.3 var(--f-body); cursor: pointer; transition: background-color .25s, color .25s; }
.pch-led__chip[aria-pressed="true"] { background: #0B5345; border-color: #0B5345; color: #fff; }
.pch-led__say { margin: 0 0 12px; font-size: 14px; color: var(--pch-muted); min-height: 1.4em; }
.pch-led__say:empty { display: none; }
.pch-led__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pch-led__row { position: relative; padding: 18px 18px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--pch-line); transition: opacity .3s, transform .3s; }
.pch-led__row[hidden] { display: none; }
.pch-led__tag { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 99px; background: #E6F6F1; color: #0B5345; font: 700 12px/1.3 var(--f-body); letter-spacing: .03em; }
.pch-led__row h3 { margin: 0 0 8px; font: 700 17px/1.3 var(--f-display); color: var(--pch-ink); padding-bottom: .08em; }
.pch-led__row p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.55; color: var(--pch-body); }
.pch-led__row p b { color: var(--pch-ink); }
.pch-led__row p:last-child { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #CBD5E1; }

/* ---------- 13. Delivery rail + overlap ribbon ---------- */
.pch-stages { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; counter-reset: pchs; }
.pch-stages li { position: relative; counter-increment: pchs; padding: 46px 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--pch-line); }
.pch-stages li::before { content: counter(pchs); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #082238; color: #FFB81C; font: 800 13px/1 var(--f-display); }
.pch-stages li::after { content: ""; position: absolute; left: 44px; right: -10px; top: 24px; height: 2px; background: repeating-linear-gradient(90deg, #7CC7E8 0 6px, transparent 6px 10px); }
.pch-stages li:last-child::after { display: none; }
.pch-stages b { display: block; font: 700 15.5px/1.3 var(--f-display); color: var(--pch-ink); }
.pch-stages span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--pch-body); }

.pch-rib { margin-top: 26px; padding: clamp(16px, 2.4vw, 24px); border-radius: 24px; background: #fff; border: 1px solid var(--pch-line); }
.pch-rib__t { margin: 0 0 12px; font: 700 18px/1.3 var(--f-display); color: var(--pch-ink); }
.pch-rib__zones { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 14px; background: var(--pch-paper); width: fit-content; max-width: 100%; margin-bottom: 16px; }
.pch-rib__zones[hidden] { display: none; }
.pch-rib__zones button { min-height: 38px; padding: 6px 14px; border-radius: 10px; border: 0; background: transparent; color: var(--pch-ink); font: 600 14px/1.3 var(--f-body); cursor: pointer; }
.pch-rib__zones button[aria-pressed="true"] { background: #082238; color: #fff; }
.pch-rib { --from: 5; --to: 22; }
.pch-rib__rows { display: grid; gap: 10px; }
.pch-rib__row, .pch-rib__scale { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.pch-rib__lab { font: 700 14.5px/1.3 var(--f-body); color: var(--pch-ink); }
.pch-rib__lab small { display: block; font-weight: 500; font-size: 12.5px; color: var(--pch-muted); }
.pch-rib__track { position: relative; height: 30px; border-radius: 10px; background: repeating-linear-gradient(90deg, #F1F5F9 0 calc(100% / 17 - 1px), #E2E8F0 calc(100% / 17 - 1px) calc(100% / 17)); }
.pch-rib__bar { position: absolute; top: 3px; bottom: 3px; border-radius: 8px;
  left: calc((max(var(--s), var(--from)) - var(--from)) / (var(--to) - var(--from)) * 100%);
  width: calc((min(var(--e), var(--to)) - max(var(--s), var(--from))) / (var(--to) - var(--from)) * 100%);
  transition: left .45s ease, width .45s ease; }
.pch-rib__bar--you { background: linear-gradient(90deg, #1D3F8F, #0A6FA8); }
.pch-rib__bar--la { background: linear-gradient(90deg, #FFB81C, #F59E0B); }
.pch-rib__bar--eu { background: linear-gradient(90deg, #00807A, #3FB97A); }
.pch-rib__bar.is-off { display: none; }
.pch-rib__ticks { position: relative; height: 18px; }
.pch-rib__ticks span { position: absolute; left: calc((var(--h) - 5) / 17 * 100%); transform: translateX(-50%); font: 600 12px/1.5 var(--f-body); color: var(--pch-muted); white-space: nowrap; }
.pch-rib__say { margin: 14px 0 0; font: 600 15px/1.55 var(--f-body); color: var(--pch-ink); }

/* ---------- 14. Sample app mix sheet ---------- */
.pch-sheet { position: relative; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--pch-line); box-shadow: 0 40px 70px -50px rgba(8,34,56,.65); }
.pch-sheet::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #1D3F8F, #00A3D9, #00B2A9, #3FB97A); }
.pch-sheet__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 4px 0 8px; }
.pch-sheet__top b { font: 800 18px/1.3 var(--f-display); color: var(--pch-ink); }
.pch-sheet__top span { font: 700 12px/1.6 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--pch-muted); }
.pch-sheet__who { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--pch-body); }
.pch-sheet__lines { list-style: none; margin: 0; padding: 0; }
.pch-sheet__lines li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #CBD5E1; }
.pch-sheet__lines span { font: 600 15px/1.35 var(--f-body); color: var(--pch-ink); }
.pch-sheet__lines small { display: block; margin-top: 2px; font: 500 13.5px/1.4 var(--f-body); color: var(--pch-muted); }
.pch-sheet__lines em { flex: 0 0 auto; padding: 3px 10px; border-radius: 99px; background: var(--pch-paper); border: 1px solid var(--pch-line); font: 700 12px/1.4 var(--f-body); font-style: normal; color: var(--pch-muted); white-space: nowrap; }
.pch-sheet__alt { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #FFF8E6; border: 1px solid #FFE3A3; font-size: 14.5px; line-height: 1.55; color: var(--pch-body); }
.pch-sheet__alt b { color: var(--pch-ink); }
.pch-sheet__foot { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--pch-muted); }

@keyframes pchIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pch-provs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pch-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pch-stages li::after { display: none; }
  .pch-arch__info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pch-band__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
  .pch-band__b { min-height: 72px; padding-top: 22px; }
  .pch-band__pin { top: auto; bottom: 8px; left: auto; right: 6px; padding: 3px; font-size: 0; gap: 0; }
  .pch-band__cards { grid-template-columns: minmax(0, 1fr); }
  .pch-arch__stage { aspect-ratio: auto; display: flex; flex-wrap: wrap; gap: 8px; }
  .pch-arch__lines { display: none; }
  .pch-node { position: static; transform: none; white-space: normal; }
  .pch-node:hover { transform: none; }
  .pch-arch__info, .pch-led__grid, .pch-provs__list { grid-template-columns: minmax(0, 1fr); }
  .pch-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pch-rib__row, .pch-rib__scale { grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
  .pch-rib__lab small { display: none; }
  .pch-rib__ticks span:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pch-band__b, .pch-node, .pch-rib__bar, .pch-led__row, .pch-prov h3 a { transition: none; }
  .pch-band__b:hover, .pch-node:hover { transform: none; }
  .pch-band.is-ready .pch-card, .pch-arch.is-ready .pch-arch__info > div { animation: none; }
}
