:root {
  --navy-950: #071427;
  --navy-900: #0b1f3a;
  --navy-800: #13305a;
  --navy-700: #1d4279;
  --red: #d52b1e;
  --red-600: #b8231a;
  --red-50: #fdf1f0;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 48px -16px rgba(11, 31, 58, .28);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.h3 { font-size: 1.3rem; }
.h4 { font-size: 1.1rem; }
.h5 { font-size: .95rem; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid rgba(213, 43, 30, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 640px; }
.center { text-align: center; }
.center .search { margin: 24px auto 0; }
.mt { margin-top: 40px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: .6em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 720px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; border-radius: 10px; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px -6px rgba(213, 43, 30, .6); }
.btn-primary:hover { background: var(--red-600); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--red-50); color: var(--red); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn[disabled] { opacity: .65; cursor: wait; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-text { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.logo-text span { color: var(--red); margin-left: 1px; }
.logo-light .logo-text { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav-toggle .icon:last-child { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px 20px; box-shadow: var(--shadow); }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { display: block; padding: 12px; }
  .site-header.open .main-nav { display: flex; }
  .site-header.open .nav-toggle .icon:first-child { display: none; }
  .site-header.open .nav-toggle .icon:last-child { display: block; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding: 88px 0 72px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(213, 43, 30, .38), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(29, 66, 121, .9), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { color: #fff; max-width: 900px; }
.hero .hl { background: linear-gradient(90deg, #ff6b5e, #ffb4ab); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255, 255, 255, .78); margin: 0 auto 32px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.9); margin-bottom: 24px; }
.pill .icon { color: #ff8a80; }
.hero-tags { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.6); align-items: center; }
.hero-tags a { color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.18); padding: 4px 12px; border-radius: 999px; }
.hero-tags a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Search */
.search { display: flex; align-items: stretch; gap: 8px; background: #fff; padding: 8px; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 820px; border: 1px solid var(--line); }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; flex: 1 1 auto; color: var(--muted); min-width: 0; }
.search-where { flex: 0 0 240px; border-left: 1px solid var(--line); }
.search input, .search select { border: 0; outline: 0; font: inherit; color: var(--ink); background: transparent; width: 100%; height: 48px; min-width: 0; }
.search select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; padding-right: 22px; }
.search .btn { padding-left: 28px; padding-right: 28px; }
.search-md { box-shadow: var(--shadow); max-width: none; }
.search-field:focus-within { color: var(--navy-700); }
@media (max-width: 720px) {
  .search { flex-direction: column; padding: 10px; }
  .search-where { flex: 1 1 auto; border-left: 0; border-top: 1px solid var(--line); }
  .search .btn { height: 48px; }
}

/* Stats */
.stats-strip { background: var(--navy-900); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 28px; padding-bottom: 28px; gap: 16px; }
.stats div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stats strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.stats span { color: rgba(255,255,255,.65); font-size: .9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

/* Sections */
.section { padding: 80px 0; }
.section-tight { padding: 40px 0; }
.section-tight + .section-tight { padding-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.prose-wrap { max-width: 820px; }
.prose { color: var(--ink-2); font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(29,66,121,.35); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* Page hero */
.page-hero { background: linear-gradient(180deg, var(--bg-alt), #fff); border-bottom: 1px solid var(--line-2); padding: 40px 0 48px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 860px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 24px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #cbd5e1; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-grid-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cat-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; scroll-margin-top: 90px; }
a.cat-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.cat-card strong { font-size: 1.02rem; }
.cat-card small, .cat-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0; }
.cat-card-static .tag-list { margin-top: 12px; }
.cat-card-static h2 { margin: 6px 0 0; }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); margin-bottom: 8px; }
.cat-icon.sm { width: 32px; height: 32px; border-radius: 8px; margin: 0; }
.cat-card:target { border-color: var(--red); box-shadow: 0 0 0 4px rgba(213,43,30,.12); }

/* Location cards */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.loc-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.loc-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); color: var(--ink); }
.loc-abbr { width: 44px; height: 44px; border-radius: 10px; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; letter-spacing: .02em; flex-shrink: 0; }
.loc-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.loc-body small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-arrow { color: #cbd5e1; transition: transform .15s, color .15s; }
.loc-card:hover .loc-arrow { color: var(--red); transform: translateX(3px); }

/* Split / steps */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checklist .icon { color: #16a34a; margin-top: 3px; }
.steps { display: grid; gap: 16px; }
.step { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step > span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-weight: 700; flex-shrink: 0; }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { width: 20px; height: 20px; position: relative; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--muted); transform: translate(-50%, -50%); transition: transform .2s; border-radius: 2px; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; border-radius: 24px; background: radial-gradient(600px 300px at 100% 0%, rgba(213,43,30,.45), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; max-width: 560px; }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; } }

/* Province page layout */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .layout-sidebar { grid-template-columns: 1fr; } }
.sidebar { display: grid; gap: 20px; position: sticky; top: 92px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.facts dl { margin: 0 0 20px; display: grid; gap: 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tag-list li { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line-2); color: var(--ink-2); }
.tag-list a { color: inherit; }
.tag-list a:hover { color: var(--red); }
.link-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 16px; font-size: .92rem; }
.link-list li { padding: 4px 0; break-inside: avoid; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-size: .92rem; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip .icon { color: var(--muted); }
.cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; font-size: .93rem; background: #fff; }
.cat-row:hover { border-color: #cbd5e1; box-shadow: var(--shadow-sm); color: var(--ink); }
.empty-state { display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px dashed #cbd5e1; border-radius: var(--radius); background: var(--bg-alt); }
.empty-state h2 { margin-bottom: 4px; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state .btn { margin-left: auto; }
.empty-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--navy-700); border: 1px solid var(--line); flex-shrink: 0; }
@media (max-width: 700px) { .empty-state { flex-direction: column; align-items: flex-start; } .empty-state .btn { margin-left: 0; } }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature .icon { color: var(--red); margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); }

/* Forms */
.card-form { padding: 32px; }
@media (max-width: 640px) { .card-form { padding: 20px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .req { color: var(--red); }
.field .opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); border: 1px solid #cfd8e3; border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(29, 66, 121, .12); }
.field .hint { color: var(--muted); font-size: .84rem; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.form-note { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .88rem; color: var(--muted); }
.cf-turnstile { margin-top: 20px; }
.form-status { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.form-status.err { background: var(--red-50); color: var(--red-600); border: 1px solid #fecaca; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #ecfdf3; color: #16a34a; margin: 0 auto 24px; }

/* Search results */
.search-results { margin-top: 32px; }
.result-group { margin-bottom: 32px; }
.result-group h2 { font-size: 1.1rem; margin-bottom: 12px; }
.result-note { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); margin-bottom: 32px; }
.result-note p { margin: 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin: 16px 0; max-width: 360px; font-size: .95rem; }
.footer-h { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.footer-mail.dark { color: var(--navy-700); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; padding-bottom: 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 560px) {
  .cat-grid:not(.cat-grid-lg) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-grid:not(.cat-grid-lg) .cat-card { padding: 16px; }
  .cat-grid:not(.cat-grid-lg) .cat-card small { display: none; }
}
