/*
 * Canada map section (.ca Locations Served page and province pages; Danny, 22 Oct 2026).
 * Markup: functions/function-locations.php tfp_ca_map_section(). Map: blocks/territory-page/map-ca.svg.
 * The map rules mirror the US map in blocks/territory-page/territory-page.css (that file is not loaded on .ca pages).
 *
 * Theme rules: no shadows or gradients, yellow never as text on light, colour fades only.
 */

.tfp-camap {
	padding-top: clamp(3rem, 6vw, 5.5rem) !important;
	padding-bottom: clamp(3rem, 6vw, 5.5rem) !important;
	background: var(--ind-n50, #F2F4F4);
}
.tfp-camap > .row { align-items: center; row-gap: 2rem; }
.tfp-camap__map { margin-bottom: 0; }

.tfp-camap__eyebrow {
	margin: 0 0 .75rem;
	font-size: 13px;
	line-height: 16px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ind-blue, #035B77);
}
.tfp-camap__title { margin: 0 0 1rem; color: var(--ind-ink, #0D3556); }
.tfp-camap__lead { margin: 0 0 1.5rem; color: var(--ind-steel, #4B5A68); }
.tfp-camap__note { margin: 0; color: var(--ind-steel, #4B5A68); }
.tfp-camap__note a,
.tfp-camap__all a { color: var(--ind-blue, #035B77); font-weight: 600; }

.tfp-camap__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .4rem 1.5rem;
	margin: 0 0 1.5rem;
	padding: 0 0 0 1rem;
	border-left: 3px solid var(--ind-yellow, #FFDE17);
	list-style: none;
}
.tfp-camap__list a { color: var(--ind-ink, #0D3556); font-weight: 600; text-decoration: none; }
.tfp-camap__list a:hover,
.tfp-camap__list a:focus-visible { color: var(--ind-blue, #035B77); text-decoration: underline; }
.tfp-camap__all { margin: 0; }

/* The territory contact (province pages) and the rep list (hub) — 22 Oct 2026. */
.tfp-camap__rep { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: #fff; border-radius: 12px; border-left: 3px solid var(--ind-yellow, #FFDE17); }
.tfp-camap--hub .tfp-camap__rep { background: var(--ind-n50, #F2F4F4); }
.tfp-camap__rep-k { margin: 0 0 .35rem; font-size: 13px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ind-blue, #035B77); }
.tfp-camap__rep-v { margin: 0; }
.tfp-camap__rep-name { display: block; font-weight: 700; color: var(--ind-ink, #0D3556); }
.tfp-camap__rep-title { display: block; font-size: .9em; color: var(--ind-steel, #4B5A68); }
.tfp-camap__tel { display: inline-block; margin-top: .35rem; font-weight: 600; color: var(--ind-blue, #035B77); white-space: nowrap; }
.tfp-camap__reps { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; gap: .9rem; }
.tfp-camap__reps li { padding: 0 0 0 1rem; border-left: 3px solid var(--ind-yellow, #FFDE17); }
.tfp-camap__reps .tfp-camap__tel { margin-top: .15rem; }
.tfp-camap__rep-areas { display: block; font-size: .9em; color: var(--ind-steel, #4B5A68); }
/* The rep's headshot beside the contact (23 Oct 2026). */
.tfp-camap__rep-card { display: flex; align-items: center; gap: .9rem; }
.tfp-camap__rep-photo { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.tfp-camap__rep-text { min-width: 0; }

/* The map */
.tfp-camap .tp-us-wrap { width: 100%; max-width: 760px; margin: 0 auto; }
.tfp-camap .tp-us { display: block; width: 100%; height: auto; }
.tfp-camap .tp-us__s { fill: #DCE3EA; stroke: #fff; stroke-width: 1; stroke-linejoin: round; transition: fill .15s ease-out; }
.tfp-camap .tp-us__link[href] .tp-us__s { fill: var(--ind-blue, #035B77); fill-opacity: .82; cursor: pointer; }
.tfp-camap .tp-us__link[href]:hover .tp-us__s,
.tfp-camap .tp-us__link[href]:focus-visible .tp-us__s { fill: var(--ind-ink, #0D3556); fill-opacity: 1; }
.tfp-camap .tp-us__link.is-current .tp-us__s { fill: var(--ind-yellow, #FFDE17) !important; fill-opacity: 1; }
.tfp-camap .tp-us__labels text { font: 600 12px/1 var(--renoun-global-font-body, sans-serif); fill: #fff; text-anchor: middle; pointer-events: none; letter-spacing: .02em; }
.tfp-camap .tp-us__labels text[data-st="NT"],
.tfp-camap .tp-us__labels text[data-st="NU"],
.tfp-camap .tp-us__labels text[data-st="YT"] { fill: var(--ind-steel, #4B5A68); }   /* on the grey, unlinked fill */
.tfp-camap .tp-us__labels .tp-us__call { fill: var(--ind-ink, #0D3556); text-anchor: start; }
.tfp-camap .tp-us__labels text.is-current { fill: var(--ind-ink, #0D3556); }
.tfp-camap .tp-us__leaders line { stroke: var(--ind-muted, #848C95); stroke-width: .75; }

/* The hub: the map is the lead, the copy sits beside it. */
.tfp-camap--hub { background: #fff; }

@media (max-width: 639px) {
	.tfp-camap .tp-us__labels text { font-size: 15px; }
	.tfp-camap__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tfp-camap .tp-us__s { transition: none; } }
