/*
 * Content pages (guides, city and solution pages). Loaded after site.css on those pages only.
 * Uses the site.css tokens; no inline styles anywhere (the CSP in _headers blocks them).
 */

/* ---------- Breadcrumbs ---------- */
.crumbs { margin-bottom: 20px; font-size: 0.875rem; color: var(--subtle); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--subtle); opacity: 0.7; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current='page'] { color: var(--fg-2); }
.page-hero:not(.left) .crumbs ol { justify-content: center; }

/* ---------- Article hero ---------- */
.article-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.article-hero h1 { font-size: clamp(2rem, 2.8vw + 1.1rem, 3.375rem); line-height: 1.06; letter-spacing: -0.04em; max-width: 940px; }
.article-meta { margin-top: 18px; display: flex; flex-wrap: wrap; row-gap: 2px; color: var(--subtle); font-size: 0.9375rem; }
.article-meta span:not(:last-child)::after { content: '\00b7'; margin: 0 10px; }
.article-hero .short-answer { margin-top: 28px; max-width: 860px; }
.article-body { padding-top: clamp(16px, 2vw, 32px); }
.toc .btn + .btn { margin-top: 8px; }
.toc a.btn { padding: 0 16px; text-decoration: none; }
.toc a.btn::before { content: none; counter-increment: none; }
.toc a.btn-primary { color: #fff; }

/* ---------- Short answer (what search engines and AI answers quote) ---------- */
.short-answer { padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(76, 132, 255, 0.17), rgba(47, 211, 255, 0.05)); border: 1px solid rgba(76, 132, 255, 0.42); text-align: left; }
.short-answer .answer-label { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: #9dbbff; }
.short-answer p { color: var(--fg); font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem); line-height: 1.65; }
.short-answer .answer-label + p { margin-top: 8px; }

/* ---------- Landing pages: question headings are longer than slogans, so set them smaller ---------- */
.lp .section-head .h2, .lp .spot-copy .h2, .lp .calgary .h2 { font-size: clamp(1.875rem, 2.2vw + 1rem, 2.875rem); }
.lp .row h2 { font-size: clamp(1.625rem, 1.6vw + 1rem, 2.375rem); }
.lp .offer h2 { font-size: clamp(1.875rem, 2.6vw + 1rem, 3rem); }
.prose .box-facts { margin-top: 48px; }
.prose .cta-block { margin-top: 32px; }

/* ---------- Boxes inside prose: key takeaways, key facts ---------- */
.box { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); }
.prose .box h2 { margin-top: 0; padding-top: 0; font-size: 1.125rem; letter-spacing: -0.015em; }
.prose .box .checks { padding-left: 0; margin-top: 14px; gap: 10px; }
.prose .box .checks li { line-height: 1.55; }
.box-facts { background: linear-gradient(180deg, rgba(47, 211, 255, 0.06), rgba(255, 255, 255, 0.02)); border-color: rgba(47, 211, 255, 0.28); }
.prose .checks { padding-left: 0; }

/* ---------- In-article CTA ---------- */
.cta-block { padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-lg); border: 1px solid rgba(76, 132, 255, 0.45); background: radial-gradient(90% 120% at 100% 0%, rgba(47, 91, 255, 0.32), transparent 60%), #070a14; }
.cta-block .cta-title { font-size: clamp(1.25rem, 0.8vw + 1rem, 1.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: #fff; }
.cta-block p:not(.cta-title) { margin-top: 8px; color: var(--fg-2); }
.cta-block .cta-row { margin-top: 18px; }
.prose .cta-block a.btn { text-decoration: none; }
.prose .cta-block a.btn-primary { color: #fff; }
.prose .cta-block a.btn-secondary { color: var(--fg); }

/* ---------- FAQ inside an article ---------- */
.prose .faq-list { margin-top: 20px; }
.prose .faq-list summary { padding: 18px 0; }
.prose .faq-list .ans { padding-right: 8px; }
.prose .faq-list .ans p { line-height: 1.7; }

/* ---------- Tables ---------- */
.prose table { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; }
.prose thead th { background: rgba(255, 255, 255, 0.04); font-size: 0.875rem; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose tr.total td, .prose tr.total th { color: #fff; font-weight: 700; background: rgba(76, 132, 255, 0.1); }
.table-note { font-size: 0.875rem; color: var(--subtle); }
.prose .formula { margin-top: 20px; }

/* ---------- Related guides ---------- */
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related > h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); margin: 0 0 14px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related a { display: block; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 650; text-decoration: none; line-height: 1.35; transition: border-color 0.2s, background-color 0.2s; }
.related a:hover { border-color: var(--line-2); background: var(--surface-2); }
.related a span { display: block; margin-top: 4px; color: var(--muted); font-weight: 500; font-size: 0.9375rem; }

/* ---------- Guides hub ---------- */
.hub-intro { display: grid; gap: 16px; }
@media (min-width: 900px) { .hub-intro { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 24px; } }
.hub-intro .box h2 { font-size: 1.125rem; letter-spacing: -0.015em; }
.hub-intro .checks { margin-top: 14px; }
.guide-group + .guide-group { margin-top: clamp(56px, 7vw, 88px); }
.guide-group > h2 { font-size: clamp(1.625rem, 1.6vw + 1.1rem, 2.25rem); letter-spacing: -0.03em; }
.guide-group > p { margin-top: 10px; color: var(--muted); max-width: 720px; }
.guide-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 720px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .guide-grid.three { grid-template-columns: repeat(3, 1fr); } }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--fg); transition: border-color 0.2s, background-color 0.2s, transform 0.2s; min-width: 0; }
.guide-card:hover { border-color: rgba(76, 132, 255, 0.5); background: var(--surface-2); }
.guide-card .tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.guide-card h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.guide-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.guide-card .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: #8fb3ff; font-weight: 650; font-size: 0.9375rem; }
.guide-card .more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.guide-card:hover .more svg { transform: translateX(3px); }

/* ---------- Landing pages ---------- */
.landing-hero .lead { max-width: 780px; }
.facts-band { display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; }
.facts-band li { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); font-size: 0.9375rem; line-height: 1.5; min-width: 0; }
.facts-band li b { display: block; color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
@media (min-width: 640px) { .facts-band { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .facts-band { grid-template-columns: repeat(3, 1fr); } }
.facts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.facts-head h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.facts-head span { font-size: 0.8125rem; color: var(--subtle); }
.lp-section .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.lp-prose { max-width: 820px; margin-inline: auto; }
.lp-prose.prose h2 { margin-top: 0; font-size: clamp(1.75rem, 2vw + 1.1rem, 2.5rem); }
.lp-prose.prose h3 { margin-top: 28px; }
.split { display: grid; gap: 32px; align-items: start; }
.split > *, .hub-intro > *, .spot > *, .calgary > * { min-width: 0; }
@media (min-width: 1024px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } .split > .split-head { position: sticky; top: calc(var(--nav-h) + 32px); } }
.split-head .lead { margin-top: 16px; }
.split-head h2 { font-size: clamp(1.75rem, 2vw + 1.1rem, 2.5rem); letter-spacing: -0.035em; }

/* Numbered flow */
.flow { list-style: none; counter-reset: flow; display: grid; gap: 12px; }
.flow li { counter-increment: flow; position: relative; padding: 18px 18px 18px 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.96875rem; line-height: 1.55; }
.flow li::before { content: counter(flow); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 750; font-size: 0.875rem; }
.flow li b { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }

/* Data table on landing pages */
.data-table-wrap { border-radius: var(--radius); border: 1px solid var(--line); overflow-x: auto; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.data-table tbody th { color: #fff; font-weight: 650; }
.data-table td { color: var(--muted); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table code { font-family: var(--mono); font-size: 0.8125rem; color: #cfe0ff; }

/* Location card variant (reuses .calgary-card) */
.place-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.place-list li { font-size: 0.8125rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-2); color: var(--fg-2); }
.lp-note { margin-top: 16px; font-size: 0.875rem; color: var(--subtle); }
.feature .feature-link { display: inline-block; margin-top: 12px; font-size: 0.9375rem; }
