/* Shared public visual language. Data, routes and interactions are unchanged. */
.fintech-site {
  --color-navy: #0b2346;
  --color-navy-soft: #14263f;
  --color-blue: #0066e6;
  --color-blue-dark: #0052b8;
  --color-text: #14263f;
  --color-muted: #52647a;
  --color-text-secondary: #52647a;
  --color-surface-alt: #f7f9fc;
  --color-border: #dce4ef;

  /* Centralized CTA & Semantic Color Tokens */
  --color-primary-action: #0b2346;
  --color-primary-action-hover: #143460;
  --color-primary-action-text: #ffffff;
  --color-secondary-action-bg: #f2f5f9;
  --color-secondary-action-hover: #e4e9f1;
  --color-secondary-action-text: #0b2346;
  --color-secondary-action-border: #dce4ef;
  --color-link: #0066e6;
  --color-link-hover: #0052b8;
  --color-positive: #167044;
  --color-positive-bg: #eafaf1;
  --color-brand-accent: #7357f6;
  --radius-pill: 999px;

  --radius-card: 16px;
  --shadow-card: 0 4px 16px rgb(20 38 63 / 6%);
  --max-content-width: 1200px;
  background: #fff;
  color: #14263f;
  line-height: 1.5;
}
.fintech-site .shell { width: min(calc(100% - 64px), 1200px); }
.fintech-site :is(a, button, summary, input, textarea):focus-visible {
  outline: 3px solid #0052b8;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}
.fintech-site :is(h1, h2, h3) { letter-spacing: -.035em; }
.fintech-site h2 { font-size: 32px; line-height: 1.2; }
.fintech-site h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
.fintech-site .eyebrow { color: #0052b8; font-size: 12px; letter-spacing: .12em; font-weight: 700; }
.fintech-site .site-header { background: #fff; backdrop-filter: none; border-color: #dce4ef; }
.fintech-site .header-inner { min-height: 80px; }
.fintech-site .wordmark { min-height: 44px; display: inline-flex; align-items: center; }
.fintech-site :is(.main-nav > a, .footer-nav a, .home-methodology__heading .text-link) { min-width: 44px; min-height: 44px; }
.fintech-site .main-nav { gap: 24px; }
.fintech-site .main-nav > a:not(.button) { color: #14263f; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.fintech-site .button {
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-pill, 999px);
  font-size: 16px; font-weight: 600; line-height: 1.25; white-space: normal;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.fintech-site :is(.button--primary, .button--nav) {
  background: var(--color-primary-action, #0b2346);
  border: 1px solid var(--color-primary-action, #0b2346);
  border-radius: var(--radius-pill, 999px);
  color: var(--color-primary-action-text, #fff);
  box-shadow: 0 4px 12px rgb(11 35 70 / 18%);
}
.fintech-site :is(.button--primary, .button--nav):hover {
  background: var(--color-primary-action-hover, #143460);
  border-color: var(--color-primary-action-hover, #143460);
  color: #fff;
  box-shadow: 0 6px 16px rgb(11 35 70 / 25%);
}
.fintech-site .button--nav {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}
.fintech-site .button--secondary {
  background: var(--color-secondary-action-bg, #f2f5f9);
  border: 1px solid var(--color-secondary-action-border, #dce4ef);
  border-radius: var(--radius-pill, 999px);
  color: var(--color-secondary-action-text, #0b2346);
  box-shadow: none;
}
.fintech-site .button--secondary:hover {
  background: var(--color-secondary-action-hover, #e4e9f1);
  border-color: #cbd5e1;
  color: var(--color-secondary-action-text, #0b2346);
}
.fintech-site .button--secondary:hover { background: #edf5ff; }
.fintech-site .site-footer { background: #edf5ff; border-top: 1px solid #dce4ef; color: #52647a; padding-block: 48px; }
.fintech-site .footer-brand p { color: #52647a; font-size: 14px; }
.fintech-site .footer-nav { gap: 8px 20px; }
.fintech-site .footer-nav a { color: #344b66; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.fintech-site .assistant-launcher { background: #0b2346; box-shadow: 0 4px 16px rgb(20 38 63 / 15%); }
.fintech-site .assistant-launcher:hover { background: #143460; }
/* Editorial mastheads keep real results and filters close to the heading. */
.fintech-site:not(.fintech-home) { background: #f7f9fc; }
.fintech-site .discovery-page-heading h1,
.fintech-site .guides-index-header h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; max-width: 24ch; }
.fintech-site .discovery-page-heading { padding-block: 32px; }
.fintech-site .fintech-masthead { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; background: #edf5ff; border: 1px solid #dce4ef; border-radius: 24px; padding: 32px; overflow: hidden; margin: 24px 0 32px; }
.fintech-masthead__copy { min-width: 0; }
.fintech-site .fintech-masthead .page-intro { max-width: 52ch; margin-bottom: 0; color: #52647a; }
.fintech-masthead__photo { height: 200px; overflow: hidden; border-radius: 16px; }
@media (min-width: 768px) { .fintech-site .discovery-page-masthead .fintech-masthead__copy { align-self: start; } }

.provincial-cards-page { padding-block: clamp(1.25rem, 3vw, 3rem); }
.provincial-cards-page .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-bottom: 1rem; overflow-x: auto; white-space: nowrap; font-size: 0.85rem; }
.provincial-cards-page .breadcrumbs a { color: #344b66; text-decoration: none; }
.provincial-cards-page .breadcrumbs a:hover { color: var(--color-blue, #0066e6); text-decoration: underline; }
.provincial-cards-page .breadcrumbs [aria-current="page"] { color: #0b2346; font-weight: 700; }
.provincial-cards-page .breadcrumbs__sep { color: #9fb0c2; }
.site-notice { margin-block: 1rem 0; padding: 0.8rem 1rem; border: 1px solid #b9e2d1; border-radius: 10px; background: #effaf6; color: #174c3b; }

/* Site flash vocabulary (shared/_flash): success · info · warning · error. Icon + hidden label, never colour alone. */
.site-flash-stack { display: grid; gap: 0.5rem; margin-block: 1rem 0; }
.site-flash { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.8rem 1rem; border: 1px solid; border-inline-start-width: 4px; border-radius: 10px; font-size: 0.95rem; }
.site-flash p { margin: 0; }
.site-flash__icon { display: inline-flex; flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.05rem; }
.site-flash__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-flash--success { border-color: #b9e2d1; background: #effaf6; color: #174c3b; }
.site-flash--info { border-color: #bfd6f5; background: #eef5ff; color: #143a6b; }
.site-flash--warning { border-color: #f0d59a; background: #fff8e6; color: #6b4d05; }
.site-flash--error { border-color: #f1b9b9; background: #fff1f1; color: #7a1f1f; }
.site-flash:focus-visible { outline: 3px solid #0052b8; outline-offset: 2px; }

/* Provincial hero: same pale gradient recipe used by the catalogue/persona heroes
   (own scoped rules, not a shared class) with a navy/electric-blue palette. */
.provincial-cards-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid #dce4ef;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #f8fbfe 0%, #eef5fc 55%, #e7f0fb 100%);
}
.provincial-cards-hero h1 { margin-block: 0.35rem 0.8rem; }
.provincial-cards-hero--detail h1 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.1; max-width: 18ch; }
.provincial-cards-hero--detail .page-intro { max-width: 56ch; margin-bottom: 0; color: #344b66; }
.provincial-cards-hero__photo-wrap { position: absolute; z-index: 0; inset: 0; overflow: hidden; border-radius: inherit; }
.provincial-cards-hero__photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(248, 251, 254, 0) 0%, rgba(238, 245, 252, 0.35) 60%, rgba(231, 240, 251, 0.6) 100%);
  pointer-events: none;
}
.provincial-cards-hero__photo-wrap .refresh-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
  filter: saturate(0.5) brightness(1.14) contrast(0.95);
  -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 90%);
  mask-image: linear-gradient(to left, #000 25%, transparent 90%);
}
@media (max-width: 61.25rem) { .provincial-cards-hero__photo-wrap { display: none; } }
.provincial-cards-hero__content { position: relative; z-index: 1; max-width: 640px; }
.provincial-cards-hero__stat { display: inline-flex; align-items: baseline; gap: 0.4rem; margin-top: 1rem; padding: 0.55rem 0.9rem; border-radius: 999px; background: #fff; border: 1px solid #dce4ef; }
.provincial-cards-hero__stat strong { font-size: 1.15rem; color: #0b2346; }
.provincial-cards-hero__stat span { color: #52647a; font-size: 0.82rem; }
.provincial-cards-hero--detail { max-width: none; }
.provincial-cards-hero--with-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 17rem); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.provincial-cards-hero__copy { min-width: 0; }
/* Jurisdiction badge: the province/territory kind plus its two-letter code, so the
   jurisdiction is named in text (and in the H1) before the map colour is read. */
.provincial-cards-hero__badge { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0.3rem 0.7rem 0.3rem 0.4rem; border: 1px solid #c5dbf7; border-radius: 999px; background: #fff; color: #0b2346; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.provincial-cards-hero__badge-icon { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: #e5f1ff; color: #1567c6; }
.provincial-cards-hero__badge-icon .card-section-icon { width: 0.95rem; height: 0.95rem; }
.provincial-cards-hero__badge-code { padding-left: 0.45rem; border-left: 1px solid #dce4ef; color: var(--color-blue-dark, #0052b8); }

/* Real-geography Canada map: one SVG, the current jurisdiction is the only
   region carrying the selected class (server-rendered, no JavaScript). */
.jurisdiction-map { margin: 0; max-width: 100%; justify-self: end; width: 100%; }
.jurisdiction-map__svg { display: block; width: 100%; max-width: 100%; height: auto; overflow: visible; }
.jurisdiction-map__region { fill: #fff; stroke: #b9c8da; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.jurisdiction-map__region--selected { fill: var(--color-blue, #0066e6); stroke: var(--color-blue-dark, #0052b8); stroke-width: 1.5; }
.jurisdiction-map__caption { margin-top: 0.5rem; color: #344b66; font-size: 0.8rem; font-weight: 700; text-align: center; }

.jurisdiction-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.jurisdiction-card { display: flex; align-items: center; gap: 0.85rem; min-height: 96px; padding: 1.1rem 1.25rem; border: 1px solid #dce4ef; border-radius: 16px; background: #fff; color: #0b1f36; text-decoration: none; box-shadow: 0 12px 28px rgb(38 55 82 / 6%); transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease; }
.jurisdiction-card:hover, .jurisdiction-card:focus-visible { border-color: #aac6ea; box-shadow: 0 16px 32px rgb(38 55 82 / 10%); transform: translateY(-2px); }
.jurisdiction-card__icon { display: grid; flex: 0 0 auto; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.7rem; background: #e5f1ff; color: #1567c6; }
.jurisdiction-card__body { display: grid; gap: 0.3rem; min-width: 0; }
.jurisdiction-card strong { font-size: 1rem; }
.jurisdiction-card__cta { display: inline-flex; align-items: center; color: #52647a; font-size: 0.85rem; }
.jurisdiction-card__arrow { color: var(--color-blue, #0066e6); transition: transform 150ms ease; }
.jurisdiction-card:hover .jurisdiction-card__arrow, .jurisdiction-card:focus-visible .jurisdiction-card__arrow { transform: translateX(3px); }

/* Filters: one compact GET form. The heading names the intent, the hint says the
   result is a pre-calculated ranking for this jurisdiction. */
.provincial-ranking-filters { margin-bottom: 1rem; padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem); border: 1px solid #dce4ef; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgb(20 38 63 / 4%); }
.provincial-ranking-filters__heading { display: grid; gap: 0.2rem; margin-bottom: 0.85rem; }
.provincial-ranking-filters__heading .eyebrow { margin: 0; }
.fintech-site .provincial-ranking-filters h2 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.provincial-ranking-filters__hint { max-width: 70ch; margin: 0; color: #52647a; font-size: 0.84rem; }
.fintech-site .provincial-ranking-filters__form { flex-wrap: wrap; justify-content: flex-start; gap: 0.85rem clamp(1rem, 3vw, 2.5rem); margin: 0; padding: 0.85rem 1rem; border: 1px solid #dce4ef; border-radius: 12px; background: #f7faff; }
.provincial-ranking-filters__usage { display: grid; flex: 1 1 15rem; min-width: min(100%, 14rem); max-width: 22rem; gap: 0.35rem; }
.provincial-ranking-filters__usage select { width: 100%; min-height: 2.75rem; padding: 0.55rem 2.25rem 0.55rem 0.75rem; border: 1px solid #b9c8da; border-radius: 0.65rem; background: #fff; color: #0b2346; font: inherit; font-size: 0.84rem; font-weight: 700; }
.provincial-ranking-filters__usage select:focus-visible { outline: 3px solid rgb(0 102 230 / 28%); outline-offset: 2px; border-color: #0066e6; }
.provincial-ranking-filters__form .spending-level-control { flex: 0 0 auto; }
.provincial-ranking-filters__form .amex-preference { flex: 0 0 auto; }

/* Top 3: the section heading names the jurisdiction; the context line names the
   filters that produced this exact published ranking. */
.provincial-strategy { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #dce4ef; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px rgb(38 55 82 / 8%); }
.provincial-strategy__heading { display: flex; justify-content: space-between; align-items: start; gap: 1.5rem; }
.provincial-strategy__heading h2 { margin-top: 0.25rem; }
.provincial-strategy__context { margin: 0.35rem 0 0; color: #52647a; font-size: 0.9rem; }
.provincial-strategy__context strong { color: #0b2346; font-weight: 750; }
.provincial-strategy__value { display: grid; flex: 0 0 auto; gap: 0.2rem; min-width: 190px; padding: 0.75rem 1rem; border-radius: 12px; background: #f2fbf6; border: 1px solid #cfe9dc; text-align: right; }
.provincial-strategy__value span { color: #52647a; font-size: 0.78rem; font-weight: 700; }
.provincial-strategy__value strong { color: var(--color-positive, #167044); font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.2; }
.provincial-strategy__explanation { max-width: 68ch; margin-block: 0.75rem 0; color: #344b66; font-size: 0.95rem; }
.provincial-strategy__recommendation { display: grid; gap: 1.25rem; margin-block: 1.25rem 0; }
.provincial-strategy__next { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.1rem 1.5rem; border: 1px solid #dce4ef; border-radius: 14px; background: #f7f9fc; }
.provincial-strategy__next .provincial-eligibility-note { margin-block: 0; }
.provincial-strategy__next .button { flex: 0 0 auto; }
.provincial-strategy__alternatives-note { max-width: 65ch; margin: 0.65rem 0 0; color: #52647a; font-size: 0.85rem; }

/* Ranked list: an <ol> keeps the published order semantic; the visible rank number
   is decorative because the rank label below repeats it in text. */
.provincial-card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; width: 100%; margin-block: 0; padding: 0; list-style: none; }
.provincial-card-list > li { display: flex; min-width: 0; }
.provincial-card-list article { display: flex; flex: 1; flex-direction: column; overflow: hidden; border: 1px solid #dce4ef; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgb(20 38 63 / 5%); transition: transform 150ms ease, box-shadow 150ms ease; }
.provincial-card-list .provincial-card-list__item--featured { border-color: #93bceb; box-shadow: 0 0 0 1px #93bceb, 0 10px 26px rgb(20 74 140 / 11%); }
.provincial-card-list article:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(20 38 63 / 9%); }
.provincial-card-list__visual { position: relative; display: grid; min-height: 8.5rem; margin: 1rem 1rem 0; padding: 0.75rem; place-items: center; border-radius: 0.85rem; background: linear-gradient(145deg, #edf5fd 0%, #f7fafd 100%); }
.provincial-card-list__visual .card-art__image, .provincial-card-list__visual .card-art__placeholder { width: min(100%, 12rem); max-height: 7.25rem; object-fit: contain; }
.provincial-card-list__rank-number { position: absolute; top: 0.6rem; left: 0.6rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: #fff; border: 1px solid #c5dbf7; color: #0b2346; font-size: 0.9rem; font-weight: 800; box-shadow: 0 2px 6px rgb(20 38 63 / 10%); }
.provincial-card-list__item--featured .provincial-card-list__rank-number { background: var(--color-blue, #0066e6); border-color: var(--color-blue-dark, #0052b8); color: #fff; }
.provincial-card-list__body { display: flex; flex: 1; flex-direction: column; gap: 0.55rem; padding: 0.85rem 1rem 1rem; }
.provincial-card-list__rank { align-self: flex-start; margin: 0; padding: 0.3rem 0.55rem; border-radius: 999px; background: #e5f1ff; color: #0052b8; font-size: 0.7rem; font-weight: 800; }
.provincial-card-list__item--featured .provincial-card-list__rank { background: #0066e6; color: #fff; }
.provincial-card-list__meta { margin: 0; color: var(--color-blue-dark, #0052b8); font-size: 0.72rem; font-weight: 750; }
.provincial-card-list h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
/* Hairline dividers are per-cell shadows clipped at the container edge, so any wrap count (3 or 4 facts) stays tidy. */
.provincial-card-list__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); margin: 0.1rem 0 0; overflow: hidden; border-block: 1px solid #dce4ef; }
.provincial-card-list__facts > div { min-width: 0; padding: 0.6rem 0.65rem; box-shadow: -1px 0 0 #dce4ef, 0 -1px 0 #dce4ef; }
.provincial-card-list__facts dt { color: #52647a; font-size: 0.72rem; font-weight: 700; }
.provincial-card-list__facts dd { margin: 0.15rem 0 0; color: #0b2346; font-size: 0.78rem; font-weight: 750; overflow-wrap: anywhere; }
.provincial-card-list__fact--value dd { color: var(--color-positive, #167044); }
.provincial-card-list__action { width: 100%; margin-top: auto; }

.provincial-eligibility-note { display: flex; align-items: flex-start; gap: 0.55rem; margin-block: 1.25rem; padding: 0.72rem 0.9rem; border: 1px solid #cfe9dc; border-left: 3px solid #39a36b; border-radius: 0.65rem; background: #f2fbf6; color: #234638; font-size: 0.85rem; line-height: 1.42; }
.provincial-eligibility-note .card-section-heading__icon { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; background: transparent; color: #278958; }

/* Why-this-province and how-it-is-ranked: two short, always-visible panels. */
.provincial-context { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin-block: 1rem 2.5rem; }
.provincial-context__panel { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.4rem; border: 1px solid #dce4ef; border-radius: 16px; background: #fff; }
.provincial-context__icon { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.65rem; background: #e5f1ff; color: #1567c6; }
.provincial-context__icon .card-section-icon { width: 1.2rem; height: 1.2rem; }
.fintech-site .provincial-context__panel h2 { margin: 0.2rem 0 0; font-size: 1.2rem; line-height: 1.3; }
.provincial-context__panel p { margin: 0; color: #344b66; font-size: 0.92rem; line-height: 1.55; }
.provincial-context__facts { margin: 0.25rem 0 0; padding-left: 1.1rem; color: #52647a; font-size: 0.85rem; }
.provincial-context__facts li + li { margin-top: 0.2rem; }
.provincial-context__link { align-self: flex-start; margin-top: auto; padding-top: 0.5rem; font-size: 0.9rem; font-weight: 700; }

.provincial-empty-state { display: grid; justify-items: center; gap: 0.65rem; max-width: 36rem; margin-inline: auto; text-align: center; }
.provincial-empty-state__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: #fffaf0; border: 1px solid #ebdfbd; color: #b27b12; }
.provincial-empty-state .button { margin-top: 0.4rem; }
.provincial-empty-state__hint { margin: 0.5rem 0 0; color: #344b66; font-weight: 700; }
.provincial-empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.provincial-empty-state__actions .button { margin-top: 0; }

.provincial-links { margin-top: 2rem; }
.provincial-links__heading { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.provincial-links__heading h2 { margin: 0; }
.provincial-links ul { display: flex; flex-wrap: wrap; gap: 0.55rem 0.7rem; padding: 0; list-style: none; }
.provincial-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0.95rem; border: 1px solid #dce4ef; border-radius: 999px; background: #fff; color: #0b2346; font-size: 0.85rem; text-decoration: none; transition: border-color 150ms ease, color 150ms ease, background 150ms ease; }
.provincial-links a:hover, .provincial-links a:focus-visible { border-color: var(--color-blue, #0066e6); color: var(--color-blue, #0066e6); background: #f2f8ff; }

.footer-jurisdiction { display: grid; gap: 0.35rem; min-width: min(100%, 290px); }
.footer-jurisdiction > label, .footer-jurisdiction small { color: #344b66; font-size: 0.78rem; }
.footer-jurisdiction > div { display: flex; gap: 0.4rem; }
.footer-jurisdiction select, .footer-jurisdiction input[type="submit"] { min-height: 40px; border: 1px solid #c8d4e3; border-radius: 8px; background: #fff; color: #0b1f36; }
.footer-jurisdiction select { min-width: 180px; padding-inline: 0.6rem; }
.footer-jurisdiction input[type="submit"] { padding-inline: 0.8rem; cursor: pointer; }

@media (max-width: 1023px) {
  .provincial-cards-hero--with-map { grid-template-columns: minmax(0, 1fr) minmax(9rem, 12rem); }
}
@media (max-width: 767px) {
  .provincial-cards-hero { padding: 1.1rem; }
  /* Mobile hero: the map sits beside the badge and H1 (small, never dominant), the intro
     spans the full width underneath, so the Top 3 stays within reach. */
  .provincial-cards-hero--with-map { grid-template-columns: minmax(0, 1fr) 6.5rem; grid-template-rows: auto auto auto; gap: 0.5rem 0.85rem; align-items: start; }
  .provincial-cards-hero__copy { display: contents; }
  .provincial-cards-hero__badge { grid-column: 1; grid-row: 1; justify-self: start; }
  .provincial-cards-hero--detail h1 { grid-column: 1; grid-row: 2; margin-block: 0.2rem 0; font-size: 1.6rem; }
  .provincial-cards-hero--detail .page-intro { grid-column: 1 / -1; grid-row: 3; margin-top: 0.35rem; font-size: 0.92rem; }
  .jurisdiction-map { grid-column: 2; grid-row: 1 / 3; align-self: start; justify-self: end; max-width: 6.5rem; }
  .jurisdiction-map__caption { margin-top: 0.3rem; font-size: 0.72rem; }
  .fintech-site .provincial-ranking-filters__form { align-items: stretch; padding: 0.75rem; }
  .provincial-ranking-filters__usage { flex: 0 0 auto; width: 100%; min-width: 0; max-width: none; }
  .provincial-strategy__heading { display: grid; }
  .provincial-strategy__value { min-width: 0; text-align: left; }
  .provincial-strategy__next { align-items: stretch; flex-direction: column; }
  .provincial-strategy__next .button { width: 100%; }
  .footer-jurisdiction > div { align-items: stretch; flex-direction: column; }
  .footer-jurisdiction select { width: 100%; }
  .provincial-card-list { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: none; }
  .provincial-empty-state__actions { flex-direction: column; align-items: stretch; width: 100%; }
}
.fintech-section-icon { display: inline-flex; color: #0066e6; padding: 12px; border: 1px solid #c5dbf7; background: #fff; border-radius: 16px; margin-bottom: 20px; }
.fintech-site .fintech-editorial-heading { background: #edf5ff; padding: 40px; border-radius: 24px; margin-block: 24px 40px; }
.fintech-site .fintech-editorial-heading p:last-child { margin-bottom: 0; max-width: 60ch; }
/* Catalogue and offers: real product photography remains authoritative. */
.fintech-site .catalogue-filters { background: #fff; border: 1px solid #dce4ef; border-radius: 16px; padding: 20px; box-shadow: 0 4px 16px rgb(20 38 63 / 4%); }
.fintech-site :is(.catalogue-card,.portfolio-owned-card) { border-color: #dce4ef; border-radius: 20px; box-shadow: 0 4px 16px rgb(20 38 63 / 4%); overflow: hidden; background: #fff; }
.fintech-site :is(.catalogue-card__visual,.portfolio-owned-card__visual) { background: #edf3fa; border-bottom: 1px solid #dce4ef; }
.fintech-site .catalogue-card__body { padding: 24px; }
.fintech-site .catalogue-card h2 { line-height: 1.3; }
.fintech-site .offers-table-section { padding: 28px; border: 1px solid #dce4ef; border-radius: 20px; background: #fff; }
.fintech-site .offers-table thead th { background: #edf5ff; color: #344b66; }
.fintech-site .offers-table__row--featured { background: #f4f8ff; }
.fintech-site .offers-table__row:hover { background: #edf5ff; }
/* Strategy choices, selected states and numeric results retain their meaning. */
.fintech-site :is(.strategy-controls,.strategy-filter-bar) { border-color: #dce4ef; background: #fff; border-radius: 16px; }
.fintech-site .persona-v4-choice { background: #fff; border: 1px solid #dce4ef; border-radius: 16px; padding: 16px; }
.fintech-site .persona-v4-choice:is(.is-active,:hover) { background: #edf5ff; border-color: #0066e6; box-shadow: inset 0 0 0 1px #0066e6; }
.fintech-site .strategy-choice-icon { background: #edf5ff; color: #0066e6; }
.fintech-site .network-policy-option input:checked + span { background: #0066e6; color: #fff; border-color: #0066e6; }
.fintech-site :is(.network-policy-option,.amex-preference__label):focus-within { outline: 3px solid #0052b8; outline-offset: 3px; }
.fintech-site .amex-preference__label input:checked + .amex-preference__indicator { background: #0066e6; border-color: #0066e6; }
.fintech-site :is(.strategy-recommendation,.persona-v4-strategy,.analysis-section,.wizard-card,.profile-summary,.personalized-result__summary) { border-color: #dce4ef; border-radius: 20px; box-shadow: 0 4px 16px rgb(20 38 63 / 4%); background: #fff; }
/* Reading layout: generous space, sharp images, comfortable text measure. */
.fintech-site .guide-card { border: 1px solid #dce4ef; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 4px 16px rgb(20 38 63 / 4%); }
.fintech-site .guide-card__image { aspect-ratio: 1200 / 630; object-fit: cover; }
.fintech-site .guide-card__content { padding: 24px; }
.fintech-site .guide-card h2 { font-size: 22px; line-height: 1.3; }
.fintech-site .guide-card .guide-meta { color: #0052b8; }
.fintech-site .guide-card .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; }
.fintech-site .guide-article { background: #fff; }
.fintech-site .guide-hero { border-radius: 20px; overflow: hidden; }
.fintech-site .guide-body { line-height: 1.85; }
.fintech-site .guide-body h2 { padding-top: 12px; }
.fintech-site :is(.guide-toc,.guide-toc-mobile) { background: #edf5ff; border-color: #dce4ef; border-radius: 16px; }
.fintech-site .guide-infographic { border-radius: 16px; overflow: hidden; }
/* Application flows and saved portfolio share the same calm surfaces. */
.fintech-site .wizard-page { background: #f7f9fc; }
.fintech-site .wizard-intro { gap: 32px; align-items: center; padding-block: 32px; }
.fintech-wizard-photo { width: 280px; height: 180px; border-radius: 20px; overflow: hidden; flex-shrink: 0; }
.fintech-site .wizard-intro h1 { font-size: clamp(30px, 3.4vw, 44px); }
.fintech-site .progress-track > span { background: #0066e6; }
.fintech-site .wizard-progress-steps .is-current .wizard-progress-steps__number { background: #0066e6; color: #fff; }
.fintech-site :is(input:not([type=radio]):not([type=checkbox]),select,textarea) { border-radius: 10px; border-color: #a9b9cc; }
.fintech-site :is(input[type=radio],input[type=checkbox]) { accent-color: #0066e6; }
.fintech-site :is(.option-card,.choice-card):has(input:checked) { background: #edf5ff; border-color: #0066e6; }
.fintech-site .portfolio-empty-state__visual { height: 390px; border-radius: 24px; overflow: hidden; background: #edf5ff; }
.fintech-site .portfolio-empty-state__visual::before,.fintech-site .portfolio-empty-state__visual::after { content: none; }
.fintech-site .portfolio-empty-state__visual .refresh-photo { position: static; }
.fintech-site .portfolio-optimize { border-radius: 20px; background: #edf5ff; border-color: #dce4ef; }
.fintech-site .alert-page-hero__mark { background: #edf5ff; color: #0066e6; border-color: #c5dbf7; }
.fintech-site .alert-page > .offer-alert-form { padding: 28px; border-radius: 20px; box-shadow: 0 4px 16px rgb(20 38 63 / 4%); }
.fintech-site .assistant-panel { border-radius: 20px; border-color: #dce4ef; }
@media (hover: hover) { .fintech-site :is(.guide-card,.catalogue-card):hover { border-color: #a6c9f5; box-shadow: 0 8px 24px rgb(20 38 63 / 9%); } }
@media (max-width: 1100px) { .fintech-site .main-nav { display: none; } .fintech-site .mobile-menu { display: block; } }
@media (max-width: 767px) {
  .fintech-site .shell { width: calc(100% - 32px); }
  .fintech-site .header-inner { min-height: 64px; }
  .fintech-site .site-footer { padding-block: 32px 80px; }
  .fintech-site .fintech-masthead { grid-template-columns: 1fr; gap: 24px; padding: 24px; margin-block: 16px 24px; border-radius: 20px; }
  .fintech-masthead__photo { height: 160px; }
  .fintech-site .fintech-editorial-heading { padding: 24px; margin-block: 16px 24px; }
  .fintech-site .guide-card__content { padding: 20px; }
  .fintech-site .offers-table-section { padding: 16px; }
  .fintech-site .catalogue-filters { padding: 16px; }
  .fintech-site .persona-v4-choice { padding: 12px; }
  .fintech-site .wizard-intro { padding-block: 20px; }
  .fintech-wizard-photo { width: 100%; height: 150px; }
  .fintech-site .portfolio-empty-state__visual { height: 250px; }
  .fintech-site .alert-page > .offer-alert-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .fintech-site *, .fintech-site *::before, .fintech-site *::after { scroll-behavior: auto; } }
.fintech-site .fintech-masthead { max-width: none; }
.fintech-site .card-page-hero { background: #edf5ff; border-bottom: 1px solid #dce4ef; padding-block: 48px; }
.fintech-site .card-page-visual { border: 1px solid #dce4ef; background: #fff; border-radius: 24px; box-shadow: 0 8px 24px rgb(20 38 63 / 6%); }
.fintech-site .card-page-summary h1 { font-size: clamp(30px, 3.3vw, 46px); }
.fintech-site .card-page-stack > section { border-color: #dce4ef; border-radius: 20px; background: #fff; }
.fintech-site .methodology-hero { background: #edf5ff; padding-block: 48px; border-bottom: 1px solid #dce4ef; }
.fintech-site .methodology-hero h1 { font-size: clamp(30px, 3.6vw, 48px); }
.fintech-site .methodology-sections > section { background: #fff; border: 1px solid #dce4ef; border-radius: 20px; padding: 28px; }
.fintech-site .personalization-pending { box-shadow: 0 8px 24px rgb(20 38 63 / 6%); }
@media (max-width: 767px) { .fintech-site .card-page-hero,.fintech-site .methodology-hero { padding-block: 28px; } }
/* Complete the shared token palette used by deeper result and form components. */
.fintech-site {
  --color-purple: #0066e6;
  --color-page-background: #f7f9fc;
  --color-section-tint: #edf5ff;
  --color-featured-surface: #edf5ff;
  --color-border-featured: #a6c9f5;
  --color-text-primary: #14263f;
  --gradient-brand: linear-gradient(135deg, #0066e6, #0052b8);
  --gradient-brand-soft: linear-gradient(135deg, #edf5ff, #f7f9fc);
  --shadow-featured: 0 8px 24px rgb(20 38 63 / 8%);
  --focus-ring: 0 0 0 3px rgb(0 102 230 / 35%);
}
.fintech-site .statement-import-card { background: #edf5ff; border-color: #c5dbf7; }
.fintech-site .assistant-panel__header { background: #edf5ff; }
.fintech-site .network-policy-option:has(input:checked) { background: #0066e6; color: #fff; box-shadow: 0 2px 6px rgb(0 102 230 / 15%); }
.fintech-site .network-policy-option input:checked + span { background: transparent; }
.fintech-site .usage-choice.is-active { background: #edf5ff; border-color: #0066e6; box-shadow: inset 0 0 0 1px #0066e6; }
.fintech-site .alert-feature { background: #edf5ff; border-color: #c5dbf7; }
.fintech-site .alert-feature__visual { color: #0066e6; background: #fff; }
.fintech-site .guide-body a { overflow-wrap: anywhere; }
.fintech-site:has(.guide-article) { background: #fff; }
.fintech-site .fintech-editorial-heading { max-width: none; }
.fintech-site .wizard-intro { background: #edf5ff; border-color: #dce4ef; }
.fintech-site .portfolio-empty-state { background: #f7f9fc; }
.fintech-site .portfolio-management { background: #f7f9fc; }
.fintech-site .wizard-profile-summary-mobile > details { border-color: #dce4ef; }
.fintech-site .methodology-sections { grid-template-columns: minmax(0, 1fr); }
.fintech-site .methodology-sections > section { min-width: 0; overflow-wrap: anywhere; }
.fintech-site .profile-strategy-card { background: #edf5ff; border-color: #c5dbf7; border-radius: 20px; }
.fintech-site .profile-strategy-card__summary { background: #fff; border-radius: 16px; box-shadow: none; }
.fintech-site .top-picks-next-step--primary { background: #edf5ff; border-color: #c5dbf7; }
.fintech-site .profile-hero { background: #edf5ff; border-bottom: 1px solid #dce4ef; }
.fintech-site .personalized-result { background: #fff; border-radius: 20px; box-shadow: 0 4px 16px rgb(20 38 63 / 4%); }
@media (max-width: 767px) { .fintech-site h2 { font-size: 28px; } .fintech-site .methodology-sections > section { padding: 20px; } }
.fintech-site .result-kicker { color: #0052b8; }
.fintech-site .card-art__placeholder .card-art__brand { color: #52647a; }

/* One offers panel: compact introduction, results count, then the actual table. */
.fintech-site .offers-overview { margin-top: 24px; border: 1px solid #dce4ef; border-radius: 20px; background: #fff; }
.fintech-site .offers-overview .fintech-masthead { grid-template-columns: minmax(0, 1fr) 176px; gap: 24px; margin: 0; padding: 24px 28px; border: 0; border-bottom: 1px solid #dce4ef; border-radius: 20px 20px 0 0; }
.fintech-site .offers-overview .fintech-masthead__photo { height: 156px; border-radius: 14px; }
.fintech-site .offers-overview .fintech-masthead__photo img { object-position: right center; }
.fintech-site .offers-overview .fintech-masthead .page-intro { max-width: 70ch; font-size: 15px; line-height: 1.6; }
.fintech-site .offers-overview .offers-table-section { padding: 20px 28px 28px; margin: 0; border: 0; border-radius: 0 0 20px 20px; }
.fintech-site .offers-results-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-bottom: 16px; }
.fintech-site .offers-results-toolbar > p { margin: 0; color: #52647a; font-size: 14px; }
.fintech-site .offers-results-toolbar .offers-methodology { margin: 0; font-size: 13px; }
.fintech-site .offers-overview > :is(.empty-state, .best-welcome-offers:not(.offers-table-section)) { margin: 0; padding: 24px 28px; }
/* Approved photograph moved from the homepage to the detailed methodology. */
.methodology-hero__layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.methodology-hero__copy { min-width: 0; }
.methodology-hero__photo { height: 260px; border-radius: 20px; overflow: hidden; }
@media (max-width: 767px) {
  .fintech-site .offers-overview { margin-top: 16px; }
  .fintech-site .offers-overview .fintech-masthead { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; padding: 20px 16px; align-items: start; }
  .fintech-site .offers-overview .fintech-masthead__copy { display: contents; }
  .fintech-site .offers-overview .fintech-masthead .eyebrow { grid-column: 1 / -1; margin: 0; }
  .fintech-site .offers-overview .fintech-masthead h1 { grid-column: 1; font-size: 26px; }
  .fintech-site .offers-overview .fintech-masthead .page-intro { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: 14px; }
  .fintech-site .offers-overview .fintech-masthead__photo { grid-column: 2; grid-row: 2; height: 96px; }
  .fintech-site .offers-overview .offers-table-section { padding: 16px; }
  .methodology-hero__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .methodology-hero__photo { height: 180px; }
}

/* ---------- Error pages (404 / 422 / 500, ErrorsController) ---------- */
.error-page { position: relative; margin-block: 3rem 4rem; padding: 2.5rem clamp(1.25rem, 4vw, 3rem); border: 1px solid #d9e3f2; border-radius: 20px; background: #fff; text-align: center; }
.error-page__code { position: absolute; inset-inline-end: 1.25rem; inset-block-start: 0.75rem; margin: 0; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; color: #93a4bd; }
.error-page__icon { display: inline-flex; width: 3.25rem; height: 3.25rem; margin-bottom: 0.75rem; border-radius: 14px; background: #eaf2ff; color: #0052b8; align-items: center; justify-content: center; }
.error-page__icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.error-page h1 { margin: 0.25rem auto 0.75rem; max-width: 22ch; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.error-page__body, .error-page__hint { margin: 0 auto 0.75rem; max-width: 52ch; color: #4d5b70; }
.error-page__hint { font-size: 0.92rem; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; }
.error-page__language { margin: 1.5rem 0 0; font-size: 0.9rem; }
@media (max-width: 640px) {
  .error-page__actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Shared secondary-state panel (empty · unavailable · stale · error) ---------- */
.state-panel { justify-items: center; gap: 0.5rem; max-width: 40rem; margin-inline: auto; }
.state-panel h2 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.state-panel > p { margin: 0; max-width: 46ch; }
.state-panel__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid #d9e3f2; background: #f4f7fb; color: #344b66; }
.state-panel__icon svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.state-panel__kind { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6b82; }
.state-panel--unavailable .state-panel__icon, .state-panel--error .state-panel__icon { border-color: #ebdfbd; background: #fffaf0; color: #b27b12; }
.state-panel--error .state-panel__icon { border-color: #f1b9b9; background: #fff1f1; color: #b42323; }
.state-panel--stale .state-panel__icon { border-color: #bfd6f5; background: #eef5ff; color: #0052b8; }
.state-panel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
@media (max-width: 640px) {
  .state-panel__actions { flex-direction: column; align-items: stretch; width: 100%; }
}

/* Fable P1.10 — province chip in the main navigation */
.main-nav__jurisdiction {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(11, 35, 70, 0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.main-nav__jurisdiction::before { content: "◎"; font-size: 0.8em; opacity: 0.7; }
.main-nav__jurisdiction.is-current { border-color: currentColor; }

/* Fable P1.8/P1.9 — factual notes on usage and provincial pages */
.usage-dashboard__note, .provincial-eligibility-summary {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid rgba(11, 35, 70, 0.35);
  background: rgba(11, 35, 70, 0.04);
  font-size: 0.95rem;
}

/* Fable P2.2 — card page key signals */
.card-key-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-4);
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}
.card-key-signals div { display: grid; gap: var(--space-1); }
.card-key-signals dt { font-size: var(--text-xs); color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.card-key-signals dd { margin: 0; font-weight: 600; }

/* Fable P2.4 — the share panel becomes a bottom sheet on narrow screens: it can never overflow the viewport */
@media (max-width: 48rem) {
  .share-menu__panel {
    position: fixed;
    inset: auto var(--space-4) var(--space-4) var(--space-4);
    top: auto;
    width: auto;
    max-height: 70vh;
    overflow: auto;
    z-index: 60;
  }
}

/* Fable P2.14 — usage selector as a horizontal, snapping strip on phones */
@media (max-width: 48rem) {
  .usage-dashboard .usage-selector-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }
  .usage-dashboard .usage-choice {
    flex: 0 0 min(78vw, 18rem);
    scroll-snap-align: start;
    min-height: 4.25rem;
  }
  .usage-dashboard .usage-choice small { display: none; }
}

/* Fable P2.5 / P2.13 / P2.15 / P2.17 — small explanatory blocks */
.strategy-why__lead { margin: 0 0 var(--space-3); font-size: var(--text-md); line-height: var(--leading-body); }
.usage-dashboard__crosslink, .provincial-strategy__crosslink { margin-top: var(--space-3); font-size: var(--text-sm); }
.portfolio-empty-state__steps { display: grid; gap: var(--space-2); margin: var(--space-4) 0; padding: 0; list-style: none; }
.portfolio-empty-state__steps li { display: flex; gap: var(--space-3); align-items: flex-start; }
.portfolio-empty-state__steps li > span:first-child {
  flex: 0 0 1.75rem; height: 1.75rem; display: inline-grid; place-items: center;
  border-radius: 50%; background: var(--color-blue); color: #fff; font-weight: 700; font-size: var(--text-sm);
}
.portfolio-empty-state__alternative { margin-top: var(--space-3); color: var(--color-muted); font-size: var(--text-sm); }
.wizard-transition__expectation { margin: var(--space-3) 0 0; color: var(--color-muted); font-size: var(--text-sm); }
.wizard-transition__steps { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin: var(--space-3) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.wizard-transition__steps li { padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--color-surface-alt); }
.wizard-next-note { margin-top: var(--space-2); }
.offer-ranking-card__open { font-size: var(--text-sm); }

/* Fable X.1 — grouped footer navigation */
.footer-nav--grouped { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.footer-nav__group { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav__group strong { margin-bottom: var(--space-1); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
@media (max-width: 48rem) { .footer-nav--grouped { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
