/* =============================================================================
   Digital Canada Portal — GovTech Trust shell + wallet dashboard
   Stack: structural layout, skeleton shimmer, vault UI, toasts, official footer
   ============================================================================= */

:root {
  --bg: #f8fafc;
  --bg-elevated: #f1f5f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #dc2626;
  --focus: #2563eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 24px -8px rgba(15, 23, 42, 0.18);
  --radius: 12px;
  --radius-wallet: 20px;
  --sidebar-width: 260px;
  --masthead-height: 64px;
  /* Set by script.js from #site-header height (fallback until measured) */
  --site-header-offset: 7.5rem;
  /* Canada.ca / WET-inspired tokens */
  --gc-navy: #26374a;
  --gc-navy-dark: #1c2b3a;
  --gc-red: #af3c43;
  --gc-accent-banner: #d3081c;
  /* Text links: near-black (not browser blue), hover tint + red underline */
  --gc-link: #252525;
  --gc-link-hover: #0d0d0d;
  --gc-interactive: #26374a;
  --gc-link-visited: #252525;
  --gc-link-decoration: rgba(37, 37, 37, 0.42);
  --gc-link-hover-bg: rgba(211, 8, 28, 0.1);
  --gc-link-hover-underline: #b30718;
  --gc-most-link: #252525;
  --gc-most-link-hover: #0d0d0d;
  --gc-most-link-visited: #252525;
  --gc-text: #333333;
  --gc-muted: #555555;
  --gc-band: #f8f8f8;
  --gc-border: #e0e0e0;
  --gc-max: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-gc: "Noto Sans", "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --max-width: 1200px;
  --footer-bg: #1e293b;
  --footer-ink: #94a3b8;
  --footer-border: #334155;
  --shimmer-base: #e2e8f0;
  --shimmer-highlight: #f8fafc;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --bp-tablet: 960px;
  --bp-wide: 900px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

/* Public marketing pages — closer to Canada.ca typography and background */
body.app-body--gc {
  font-family: var(--font-gc);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--gc-text);
  background: #ffffff;
}

body.app-body--gc .main--public {
  background: #ffffff;
}

body.app-body--gc .main:not(.main--public) {
  max-width: var(--gc-max);
  font-family: var(--font-gc);
  color: var(--gc-text);
  background: transparent;
}

body.app-body--gc .app {
  background: #ffffff;
}

/* Site-wide GC text links: dark default, soft red hover highlight */
body.app-body--gc .app a[href]:where(
  :not(.gc-header__sig):not(.gc-header__lang):not(.gc-header__signin--nav):not(.gc-header__menu-toggle):not(.gc-header__search-submit):not(.gc-mega__rail-btn):not(.masthead__signout):not(.masthead__nav-toggle):not(.skip-link):not(.sidebar__link):not(.btn):not(.btn-link):not(.canada-btn-outline):not(.official-footer__link):not(.canada-home-footer__link):not(.gc-site-footer-meta__link):not(.cra-signin__btn):not(.portal-profile__btn)
) {
  color: var(--gc-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--gc-link-decoration);
  text-decoration-skip-ink: auto;
  transition:
    color 0.12s ease,
    background-color 0.12s ease,
    text-decoration-color 0.12s ease,
    box-shadow 0.12s ease;
}

body.app-body--gc .app a[href]:where(
  :not(.gc-header__sig):not(.gc-header__lang):not(.gc-header__signin--nav):not(.gc-header__menu-toggle):not(.gc-header__search-submit):not(.gc-mega__rail-btn):not(.masthead__signout):not(.masthead__nav-toggle):not(.skip-link):not(.sidebar__link):not(.btn):not(.btn-link):not(.canada-btn-outline):not(.official-footer__link):not(.canada-home-footer__link):not(.gc-site-footer-meta__link):not(.cra-signin__btn):not(.portal-profile__btn)
):hover {
  color: var(--gc-link-hover);
  background-color: var(--gc-link-hover-bg);
  text-decoration-color: var(--gc-link-hover-underline);
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.app-body--gc .app a[href]:where(
  :not(.gc-header__sig):not(.gc-header__lang):not(.gc-header__signin--nav):not(.gc-header__menu-toggle):not(.gc-header__search-submit):not(.gc-mega__rail-btn):not(.masthead__signout):not(.masthead__nav-toggle):not(.skip-link):not(.sidebar__link):not(.btn):not(.btn-link):not(.canada-btn-outline):not(.official-footer__link):not(.canada-home-footer__link):not(.gc-site-footer-meta__link):not(.cra-signin__btn):not(.portal-profile__btn)
):visited {
  color: var(--gc-link);
  text-decoration-color: var(--gc-link-decoration);
}

body.app-body--gc .app a[href]:where(
  :not(.gc-header__sig):not(.gc-header__lang):not(.gc-header__signin--nav):not(.gc-header__menu-toggle):not(.gc-header__search-submit):not(.gc-mega__rail-btn):not(.masthead__signout):not(.masthead__nav-toggle):not(.skip-link):not(.sidebar__link):not(.btn):not(.btn-link):not(.canada-btn-outline):not(.official-footer__link):not(.canada-home-footer__link):not(.gc-site-footer-meta__link):not(.cra-signin__btn):not(.portal-profile__btn)
):focus-visible {
  outline: 2px solid var(--gc-navy);
  outline-offset: 2px;
}

body.app-body--gc .canada-home-footer .canada-home-footer__link:link,
body.app-body--gc .canada-home-footer .canada-home-footer__link:visited {
  color: rgba(255, 255, 255, 0.96);
  text-decoration-color: rgba(255, 255, 255, 0.45);
  background-color: transparent;
}

body.app-body--gc .canada-home-footer .canada-home-footer__link:hover,
body.app-body--gc .canada-home-footer .canada-home-footer__link:visited:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  text-decoration-color: #ffd6d6;
}

body.app-body--gc .canada-home-footer .canada-home-footer__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

body.app-body--gc .link {
  color: var(--gc-link);
}

body.app-body--gc .link:hover {
  color: var(--gc-link-hover);
  background-color: var(--gc-link-hover-bg);
  border-radius: 3px;
}

body.app-body--gc .task-list__label {
  color: var(--gc-navy);
}

h1,
h2,
.page-header__title,
.wallet-card__title,
.card__title,
.official-footer__wordmark {
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* -----------------------------------------------------------------------------
   App frame
   ----------------------------------------------------------------------------- */

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app__shell {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

.app__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right, 0px)) max(2rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
}

@media (min-width: 480px) {
  .main {
    padding: 1.25rem max(1.25rem, env(safe-area-inset-right, 0px)) 2.5rem max(1.25rem, env(safe-area-inset-left, 0px));
  }
}

/* -----------------------------------------------------------------------------
   Sticky site header (Canada.ca chrome + alerts + masthead)
   ----------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

/* -----------------------------------------------------------------------------
   Canada.ca–style global header (main menu + Sign in)
   ----------------------------------------------------------------------------- */

.gc-header {
  background: #ffffff;
  border-bottom: none;
  font-family: var(--font-gc);
}

.gc-header__ribbon {
  height: 5px;
  background: var(--gc-red);
}

.gc-header__topbar {
  background: #ffffff;
  color: var(--gc-text);
  font-size: 0.9375rem;
  border-bottom: 1px solid #e1e4e7;
}

.gc-header__topbar-inner {
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 0.75rem max(1rem, env(safe-area-inset-right, 0px)) 0.75rem max(1rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.gc-header__sig {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #333333;
  min-width: 0;
}

.gc-header__sig:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gc-header__sig:hover .gc-header__sig-img {
  opacity: 0.92;
}

.gc-header__sig-img {
  display: block;
  height: 2.625rem;
  width: auto;
  max-width: min(100%, 22rem);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .gc-header__sig-img {
    height: 2.875rem;
  }
}

.gc-header__topbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex: 1 1 16rem;
  max-width: 28rem;
  min-width: min(100%, 17.5rem);
}

.gc-header__search {
  display: flex;
  align-items: stretch;
  border: 1px solid #d0d7de;
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  max-width: 28rem;
  background: #ffffff;
}

.gc-header__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
  color: #333333;
  background: #ffffff;
}

.gc-header__search-input::placeholder {
  color: #6f6f6f;
}

.gc-header__search-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #26374a;
}

.gc-header__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.875rem;
  min-width: 2.875rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #26374a;
  color: #ffffff;
  cursor: pointer;
}

.gc-header__search-submit:hover {
  background: var(--gc-navy-dark);
}

.gc-header__search-submit:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.gc-header__lang {
  color: #2b4380;
  text-decoration: underline;
  text-decoration-color: rgba(43, 67, 128, 0.45);
  text-underline-offset: 0.2em;
  font-weight: 400;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 2px;
  transition: color 0.12s ease, text-decoration-color 0.12s ease;
}

.gc-header__lang:hover {
  color: #0535d2;
  text-decoration-color: rgba(5, 53, 210, 0.55);
  background-color: transparent;
}

.gc-header__lang:visited {
  color: #2b4380;
  text-decoration-color: rgba(43, 67, 128, 0.45);
}

.gc-header__menu-row {
  background: #ffffff;
  border-bottom: 1px solid #e1e4e7;
}

.gc-header__menu-row-inner {
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 0.4rem max(1rem, env(safe-area-inset-right, 0px)) 0.4rem max(1rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  min-height: 2.875rem;
}

.gc-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.35rem 0.25rem 0;
  margin-left: -0.15rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #333333;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.gc-header__menu-toggle:hover {
  background: transparent;
  color: #000000;
}

.gc-header__menu-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.gc-header__menu-label {
  text-transform: uppercase;
}

.gc-header__menu-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  line-height: 0;
  margin-top: 1px;
}

.gc-header__menu-chevron-svg {
  display: block;
}

.gc-header__signin--nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.35rem;
  border-radius: 0;
  background: #26374a;
  color: #ffffff !important;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
  position: static;
  transform: none;
  flex-shrink: 0;
}

.gc-header__signin--nav:hover {
  background: #1c2b3a;
  color: #ffffff !important;
}

.gc-header__signin--nav:visited {
  color: #ffffff !important;
  background: #26374a;
}

.gc-header__signin--nav:visited:hover {
  background: #1c2b3a;
  color: #ffffff !important;
}

.gc-header__account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.85rem;
  flex: 1;
  min-width: 0;
}

.gc-header__account-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #26374a;
  text-decoration: none;
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-header__account-name:hover {
  text-decoration: underline;
  color: #1e293b;
}

.gc-header__account-code {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.07em;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  line-height: 1.25;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.gc-header__account-logout {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gc-header__account-logout:hover {
  color: #0f172a;
}

@media (max-width: 520px) {
  .gc-header__account {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .gc-header__topbar-inner {
    align-items: flex-start;
  }

  .gc-header__topbar-actions {
    width: 100%;
    max-width: none;
  }

  .gc-header__search {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .gc-header__menu-row-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .gc-header__signin--nav {
    align-self: stretch;
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .gc-header__menu-toggle {
    align-self: flex-start;
  }
}

/* GC mega menu (CRA-style rail + flyout, all in-app links) */
.gc-mega[hidden] {
  display: none !important;
}

.gc-mega:not([hidden]) {
  position: fixed;
  z-index: 55;
  left: 0;
  right: 0;
  top: var(--site-header-offset, 120px);
  bottom: 0;
  display: block;
}

.gc-mega__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  position: relative;
}

.gc-mega__panel {
  font-family: var(--font-gc);
  display: flex;
  flex-direction: row;
  flex: 0 1 auto;
  width: 100%;
  max-width: min(1320px, calc(100vw - 2.5rem));
  min-height: min(82vh, 720px);
  max-height: calc(100dvh - var(--site-header-offset, 120px) - 0.75rem);
  background: #ffffff;
  box-shadow:
    0 12px 48px rgba(15, 23, 42, 0.12),
    0 4px 16px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

/* Canada.ca–style menu: white theme rail + red accent on active */
.gc-mega__rail {
  flex: 0 0 min(20rem, 32vw);
  max-width: 22rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #ffffff 100%);
  border-right: 1px solid var(--gc-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gc-mega__rail-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.35rem 1rem 1.25rem;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  color: var(--gc-text);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  cursor: pointer;
  line-height: 1.35;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.gc-mega__rail-btn:hover {
  background: rgba(38, 55, 74, 0.055);
}

.gc-mega__rail-btn.is-active {
  background: #ffffff;
  color: var(--gc-navy);
  font-weight: 700;
  box-shadow: inset 4px 0 0 0 var(--gc-accent-banner);
}

.gc-mega__rail-btn:focus-visible {
  outline: 2px solid var(--gc-navy);
  outline-offset: -2px;
}

.gc-mega__body {
  flex: 1 1 18rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.gc-mega__flyout {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2rem 2.5rem 1.75rem;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.gc-mega__pane[hidden] {
  display: none !important;
}

.gc-mega__pane-title {
  margin: 0 0 1.35rem;
  padding-bottom: 0.85rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--gc-navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  border-bottom: 3px solid var(--gc-accent-banner);
}

.gc-mega__columns {
  display: grid;
  grid-template-columns: 1fr minmax(14rem, 36%);
  gap: 2rem 2.75rem;
  align-items: start;
}

.gc-mega__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gc-mega__links li {
  margin-bottom: 0.35rem;
}

.gc-mega__links a {
  display: inline-block;
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.45;
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  margin-left: -0.35rem;
  border-radius: 4px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}

.gc-mega__links a:hover {
  background: rgba(175, 60, 67, 0.08);
  text-decoration-color: var(--gc-link-hover);
}

.gc-mega__most-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
}

.gc-mega__most-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #333333;
  font-size: 1rem;
  line-height: 1.5;
}

.gc-mega__most-list a {
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.45;
  padding: 0.2rem 0;
  border-radius: 3px;
}

.gc-mega__most-list a:hover {
  background: rgba(175, 60, 67, 0.07);
}

.gc-mega__service {
  flex-shrink: 0;
  margin: 0;
  padding: 1.35rem 2.25rem 1.6rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef4 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.gc-mega__service-heading {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #333333;
}

.gc-mega__service-intro {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  color: var(--gc-muted);
  line-height: 1.45;
}

.gc-mega__service-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #333333;
}

.gc-mega__service-link {
  font-weight: 400;
  font-size: 1.0625rem;
}

.gc-mega__service-link--highlight {
  font-weight: 700;
}

.gc-mega__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  flex: none;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.gc-mega__backdrop:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

@media (max-width: 720px) {
  .gc-mega__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .gc-mega__panel {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    max-height: 85dvh;
    border-radius: 0;
  }

  .gc-mega__body {
    flex: 1 1 auto;
    min-height: 0;
  }

  .gc-mega__rail {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gc-border);
  }

  .gc-mega__rail-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--gc-border);
  }

  .gc-mega__rail-btn.is-active {
    box-shadow: inset 0 -4px 0 0 var(--gc-accent-banner);
  }

  .gc-mega__columns {
    grid-template-columns: 1fr;
  }

  .gc-mega__service {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gc-mega__backdrop {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }
}

.app__shell--public {
  flex: 0 1 auto;
  flex-direction: column;
  min-height: 0;
}

.app__content--public {
  flex: 0 1 auto;
  background: #ffffff;
}

.main--public {
  flex: 0 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.canada-crumb {
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 0.75rem max(1rem, env(safe-area-inset-right, 0px)) 0 max(1rem, env(safe-area-inset-left, 0px));
  font-size: 0.9375rem;
  font-family: var(--font-gc);
}

.canada-crumb__link {
  color: var(--gc-link);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--gc-link-decoration);
  transition:
    color 0.12s ease,
    background-color 0.12s ease,
    text-decoration-color 0.12s ease;
}

.canada-crumb__link:hover {
  color: var(--gc-link-hover);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gc-link-hover-underline);
  background-color: var(--gc-link-hover-bg);
  border-radius: 3px;
}

/* -----------------------------------------------------------------------------
   Canada.ca–style home & sign-in (public pages)
   ----------------------------------------------------------------------------- */

.canada-home--wet {
  font-family: var(--font-gc);
  color: var(--gc-text);
}

.canada-home__band--muted {
  background: var(--gc-band);
  border-top: 1px solid var(--gc-border);
  border-bottom: 1px solid var(--gc-border);
}

.canada-home__band--most-requested {
  border-top: none;
}

.canada-home__container--most-requested {
  padding-top: 1.5rem;
  padding-bottom: 2.25rem;
}

.canada-section--most-requested {
  margin: 0;
}

.canada-section__h--most {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gc-text);
}

.canada-home__band--yourgov {
  margin-top: 0;
}

.canada-home__notice,
.canada-signin__notice {
  font-size: 0.875rem;
  color: var(--gc-muted);
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--gc-border);
  border-left: 4px solid var(--gc-navy);
  line-height: 1.5;
}

.canada-signin__notice-note {
  font-size: 0.8125rem;
  color: var(--gc-muted);
  margin: 1.5rem 0 0;
  max-width: 48rem;
  line-height: 1.55;
}

.canada-home__container {
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 2.25rem max(1rem, env(safe-area-inset-right, 0px)) 2.75rem max(1rem, env(safe-area-inset-left, 0px));
}

.canada-home__container--flush-top {
  padding-top: 1.75rem;
}

.canada-home__lang-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gc-border);
  font-size: 0.9375rem;
}

.canada-home__lang-heading {
  font-weight: 700;
  color: var(--gc-text);
}

.canada-home__lang-link {
  color: var(--gc-link);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.canada-home__lang-link:hover {
  color: var(--gc-link-hover);
  text-decoration-thickness: 1px;
}

.canada-section--tight {
  margin-bottom: 0;
}

.canada-hero {
  position: relative;
  min-height: clamp(240px, 38vw, 420px);
  max-height: 440px;
  overflow: hidden;
}

/* Canada.ca–style hero: Canadian flag proportions + maple leaf (vector) */
.canada-hero__media {
  position: absolute;
  inset: 0;
  background-color: #d3081c;
  overflow: hidden;
}

.canada-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/canada-hero-flag-bg.svg") center/cover no-repeat;
}

.canada-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(20, 10, 30, 0.07) 0%,
    transparent 35%,
    transparent 65%,
    rgba(60, 10, 20, 0.08) 100%
  );
  pointer-events: none;
}

.canada-hero__overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  align-items: center;
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) 1.5rem max(1rem, env(safe-area-inset-left, 0px));
}

.canada-hero__inner {
  max-width: 28rem;
  padding: 1.5rem 1.75rem;
  background: rgba(38, 55, 74, 0.9);
  color: #ffffff;
  margin: 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.canada-hero__title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.canada-hero__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.45rem;
  background: var(--gc-accent-banner);
}

.canada-hero__subtitle {
  margin: 0.65rem 0 0;
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 400;
  opacity: 0.98;
}

.canada-section__h {
  margin: 0 0 1.25rem;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--gc-text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.canada-section__h--access {
  margin-bottom: 0.35rem;
}

.canada-section__subh {
  margin: 0 0 1.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gc-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.canada-services-hub__h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gc-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.canada-services-hub__h1--accent-prefix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.25rem;
}

.canada-services-hub__h1-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 3px solid var(--gc-accent-banner, #af3c43);
}

.canada-services-hub__h1-rest {
  font-weight: inherit;
}

.canada-home__container--services-intro {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.canada-crumb--services-hub {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gc-muted);
}

.canada-crumb__you {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: var(--gc-text);
}

.canada-crumb__list--inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: baseline;
}

.canada-crumb__list--inline .canada-crumb__item {
  display: inline;
}

.canada-crumb__current {
  font-weight: 400;
  color: var(--gc-text);
}

.canada-home__skip-wrap {
  margin: 0 0 1rem;
}

.canada-home__skip-topic {
  font-size: 1rem;
  font-weight: 400;
}

.canada-home__notice--after-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.canada-topic-block:focus {
  outline: none;
}

.canada-topic-block:focus-visible {
  outline: 3px solid var(--gc-navy);
  outline-offset: 4px;
}

.canada-most-grid {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.75rem;
}

@media (min-width: 768px) {
  .canada-most-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 1.5rem;
  }
}

.canada-most-grid__link {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
}

.canada-most-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.75rem;
}

@media (min-width: 768px) {
  .canada-most-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 1.5rem;
  }

  .canada-most-list--life-events {
    grid-template-columns: repeat(3, 1fr);
  }

  .canada-most-list--3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.canada-home__band--directory {
  margin: 0;
}

.canada-home__container--directory-band {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.canada-section--directory-band {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .canada-services__card--full {
    grid-column: 1 / -1;
  }
}

.canada-most-list__link {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
}

.canada-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .canada-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.canada-services__card {
  padding-bottom: 0;
  border-bottom: none;
}

.canada-services__title {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.canada-services__title a {
  font-size: inherit;
  font-weight: inherit;
  color: var(--gc-most-link, #284162);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.canada-services__title a:visited {
  color: var(--gc-most-link, #284162);
}

.canada-services__title a:hover {
  color: var(--gc-most-link-hover, #0535d2);
}

.canada-services__summary {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gc-muted);
  line-height: 1.55;
}

.canada-features {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.canada-features .canada-section__h {
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.canada-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .canada-features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.75rem;
  }
}

.canada-features__card {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(38, 55, 74, 0.12);
  background: var(--gc-band);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.06),
    0 12px 28px rgba(15, 23, 42, 0.1);
  min-height: 17.5rem;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.canada-features__card:hover {
  box-shadow:
    0 8px 16px rgba(15, 23, 42, 0.08),
    0 20px 44px rgba(15, 23, 42, 0.14);
  transform: translateY(-3px);
}

.canada-features__card:focus-within {
  outline: 3px solid var(--gc-navy, #26374a);
  outline-offset: 3px;
}

.canada-features__card-hit {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 17.5rem;
  padding: 0;
  margin: 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

.canada-features__card-hit-inner {
  display: block;
  padding: 1.35rem 1.5rem 1.45rem;
  position: relative;
  z-index: 2;
}

.canada-features__card-hit:hover .canada-features__cta-icon {
  transform: translateX(4px);
}

.canada-features__card-hit:focus {
  outline: none;
}

.canada-features__title {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.canada-features__summary {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.canada-features__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.canada-features__cta-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  font-weight: 400;
}

/* Photo cards: light top, readable bottom band */
.canada-features__card--theme-economy,
.canada-features__card--theme-balance {
  border: none;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
}

.canada-features__card--theme-economy::before,
.canada-features__card--theme-balance::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.1) 0%,
    rgba(15, 23, 42, 0.05) 35%,
    rgba(15, 23, 42, 0.55) 65%,
    rgba(15, 23, 42, 0.88) 100%
  );
}

.canada-features__card--theme-economy {
  background-image: url("../assets/feature-economy.jpg");
}

.canada-features__card--theme-balance {
  background-image: url("../assets/feature-balance.jpg");
}

.canada-features__card--theme-economy:hover::before,
.canada-features__card--theme-balance:hover::before {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(15, 23, 42, 0.04) 32%,
    rgba(15, 23, 42, 0.5) 62%,
    rgba(15, 23, 42, 0.82) 100%
  );
}

.canada-features__card--theme-economy .canada-features__cta,
.canada-features__card--theme-balance .canada-features__cta {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 0.85rem;
  margin-top: 0.1rem;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .canada-features__card,
  .canada-features__cta-icon {
    transition: none;
  }

  .canada-features__card:hover {
    transform: none;
  }

  .canada-features__card-hit:hover .canada-features__cta-icon {
    transform: none;
  }
}

.canada-focus {
  margin-top: 0.5rem;
}

.canada-focus__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
}

@media (min-width: 700px) {
  .canada-focus__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.canada-focus__card {
  padding: 1.25rem 1.35rem;
  background: #ffffff;
  border: 1px solid var(--gc-border);
  border-radius: 2px;
  border-top: 4px solid var(--gc-navy);
}

.canada-focus__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.canada-focus__title a {
  font-size: inherit;
  font-weight: inherit;
}

.canada-focus__summary {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gc-muted);
  line-height: 1.55;
}

.canada-home-footer {
  background: var(--gc-navy);
  color: #e8eef3;
  border-top: 4px solid var(--gc-red);
  font-family: var(--font-gc);
  margin-top: 0;
}

.canada-home-footer--site-wide {
  margin-top: 2.5rem;
}

.gc-site-footer-wrap {
  width: 100%;
}

.gc-site-footer-meta {
  background: #0f172a;
  color: #cbd5e1;
  font-family: var(--font-gc);
  padding: 1.15rem max(1rem, env(safe-area-inset-right, 0px)) 1.35rem max(1rem, env(safe-area-inset-left, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gc-site-footer-meta__inner {
  max-width: var(--gc-max);
  margin: 0 auto;
  text-align: center;
}

.gc-site-footer-meta__disclaimer {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8;
}

.gc-site-footer-meta__legal {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.gc-site-footer-meta__link:link,
.gc-site-footer-meta__link:visited {
  color: #f1f5f9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(241, 245, 249, 0.55);
}

.gc-site-footer-meta__link:hover,
.gc-site-footer-meta__link:visited:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.gc-site-footer-meta__link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.gc-site-footer-meta__sep {
  margin: 0 0.35rem;
  color: #64748b;
  user-select: none;
}

.gc-site-footer-meta__build {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
}

.canada-home-footer__inner {
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 1.25rem max(1rem, env(safe-area-inset-right, 0px)) 1.35rem max(1rem, env(safe-area-inset-left, 0px));
}

.canada-home-footer__h {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.3;
}

/* Three horizontal bands: (1) CRA | GC, (2) themes in 3 equal columns, (3) corporate + symbol */
.canada-home-footer__stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.canada-home-footer__row--1 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  align-items: start;
}

.canada-home-footer__row--1.canada-home-footer__row--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 22rem;
}

.canada-home-footer__row--2 {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.canada-home-footer__subh--row-title {
  margin: 0 0 0.65rem;
  padding: 0;
}

.canada-home-footer__row--3 {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 720px) {
  .canada-home-footer__row--3 {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .canada-home-footer__row--3 .canada-home-footer__row3-corp {
    justify-self: start;
    min-width: 0;
  }

  .canada-home-footer__row--3 .canada-home-footer__symbol {
    justify-self: end;
  }
}

.canada-home-footer__row3-corp .canada-home-footer__subh {
  margin-bottom: 0.4rem;
}

@media (max-width: 699px) {
  .canada-home-footer__row--1 {
    grid-template-columns: 1fr;
  }

  .canada-home-footer__row--1.canada-home-footer__row--solo {
    max-width: none;
  }
}

.canada-home-footer__subh {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.canada-home-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.canada-home-footer__list .canada-home-footer__link {
  font-weight: 400;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.canada-home-footer__list--multi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.32rem 1.25rem;
  align-items: start;
}

.canada-home-footer__list--multi li {
  break-inside: avoid;
}

@media (min-width: 640px) {
  .canada-home-footer__list--multi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.canada-home-footer__list--inline {
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 0.35rem;
  row-gap: 0.35rem;
}

.canada-home-footer__list--inline li {
  display: inline-flex;
  align-items: center;
}

.canada-home-footer__list--inline li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  vertical-align: middle;
}

.canada-home-footer__symbol {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: none;
}

.canada-home-footer__symbol--wordmark {
  justify-content: flex-end;
}

.canada-home-footer__wordmark {
  display: block;
  width: min(290px, 78vw);
  height: auto;
  max-height: 2.25rem;
  object-fit: contain;
  object-position: right center;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.canada-home-footer__row--3 .canada-home-footer__symbol {
  flex-wrap: wrap;
}

.canada-home__cta-wrap {
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
}

.canada-btn-outline {
  display: inline-block;
  padding: 0.6rem 1.35rem;
  border: 1px solid #333333;
  border-radius: 2px;
  background: #ffffff;
  color: var(--gc-text);
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
}

.canada-btn-outline:hover {
  background: #f2f2f2;
}

.canada-your-gov__grid {
  display: grid;
  grid-template-columns: 1fr minmax(14rem, 40%);
  gap: 1.75rem 2.5rem;
  align-items: start;
  padding-top: 0.25rem;
}

.canada-your-gov__intro {
  margin: 0 0 1rem;
  color: var(--gc-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.canada-link-columns {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
}

.canada-link-columns li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.canada-link-columns a {
  color: var(--gc-interactive);
  font-weight: 400;
  text-decoration: none;
  font-size: 1rem;
}

.canada-link-columns a:visited {
  color: var(--gc-interactive);
}

.canada-link-columns a:hover {
  color: var(--gc-interactive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.canada-your-gov__figure {
  margin: 0;
  align-self: stretch;
}

.canada-your-gov__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 340px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.canada-your-gov__visual {
  min-height: 220px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(38, 55, 74, 0.15) 0%, transparent 40%),
    linear-gradient(125deg, #64748b 0%, #94a3b8 25%, #cbd5e1 50%, #94a3b8 75%, #475569 100%);
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

@media (max-width: 720px) {
  .canada-your-gov__grid {
    grid-template-columns: 1fr;
  }

  .canada-link-columns {
    columns: 1;
  }
}

.canada-signin__container {
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 1.75rem max(1rem, env(safe-area-inset-right, 0px)) 3rem max(1rem, env(safe-area-inset-left, 0px));
  font-family: var(--font-gc);
}

.canada-signin-most {
  margin: 0 0 2.5rem;
}

.canada-signin-most__h2 {
  margin: 0 0 1rem;
}

.canada-signin-most__panel {
  background: #ffffff;
  border: 1px solid #d1d8de;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.canada-signin-most__panel .canada-signin__list {
  border-top: 0;
}

.canada-signin__h2--methods {
  margin-top: 0.25rem;
}

.canada-signin__methods-lede {
  margin: 0 0 1rem;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gc-text);
}

.canada-signin__methods {
  margin-bottom: 0.5rem;
}

.canada-signin__notice-h2 {
  margin-top: 2rem;
}

.canada-signin__notice-hint {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.canada-signin__h2 {
  margin: 0 0 0.85rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gc-text);
  letter-spacing: -0.02em;
}

.canada-signin__list {
  border-top: 1px solid #e0e0e0;
}

.canada-signin-row {
  display: grid;
  grid-template-columns: minmax(10rem, 28%) 1fr;
  gap: 1rem 1.5rem;
  padding: 1.25rem max(1rem, env(safe-area-inset-right, 0px)) 1.25rem max(1rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid #e8e8e8;
}

.canada-signin-row--alt {
  background: #f5f5f5;
}

.canada-signin-row__dept {
  font-weight: 700;
  font-size: 0.95rem;
  color: #333333;
}

.canada-signin-row__title {
  margin: 0 0 0.35rem;
}

.canada-signin-row__title a {
  color: var(--gc-most-link);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
}

.canada-signin-row__title a:visited {
  color: var(--gc-most-link-visited);
}

.canada-signin-row__title a:hover {
  color: var(--gc-most-link-hover);
  text-decoration-thickness: 1px;
}

.canada-signin-row__bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: #333333;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .canada-signin-row {
    grid-template-columns: 1fr;
  }
}

.canada-signin-row__title--stacked {
  margin: 0 0 0.65rem;
}

.canada-signin-row__title--stacked:last-child {
  margin-bottom: 0;
}

.canada-signin-row__includes {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
}

.canada-signin-row__bullets--detail {
  list-style: disc;
}

.canada-signin-row__bullet-head {
  display: block;
  font-weight: 700;
  color: #333333;
}

.canada-signin-row__bullet-text {
  display: block;
  margin: 0.15rem 0 0.5rem;
  font-weight: 400;
  color: #333333;
}

.canada-signin-row__extra {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  list-style: disc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.canada-signin-row__extra a {
  color: var(--gc-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.canada-signin-row__extra a:hover {
  color: var(--gc-link-hover);
  text-decoration-thickness: 1px;
}

.canada-signin-row__extra--plain {
  list-style: none;
  padding-left: 0;
}

.canada-signin-row__note {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333333;
}

.canada-signin__h2--registry {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.canada-signin-registry {
  padding: 1.75rem 1.5rem 0.5rem;
  margin: 0 0 1rem;
  background: #fafbfc;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.canada-signin-registry .canada-signin__h2 {
  font-size: 1.5rem;
}

.canada-signin-registry__intro {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.55;
}

.canada-signin-registry__filter {
  margin-bottom: 0.75rem;
  max-width: 28rem;
}

.canada-signin-registry__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gc-text);
}

.canada-signin-registry__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  font-size: 1rem;
  font-family: var(--font-gc);
  border: 1px solid var(--gc-border);
  border-radius: 2px;
}

.canada-signin-registry__count {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--gc-muted);
}

.canada-signin-registry__table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid #d1d8de;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.canada-signin-registry__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.canada-signin-registry__table th,
.canada-signin-registry__table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e4e7eb;
}

.canada-signin-registry__table th {
  background: #f5f5f5;
  font-weight: 700;
  color: #333333;
}

.canada-signin-registry__table tbody tr:nth-child(even) {
  background: #f5f7f9;
}

.canada-signin-registry__table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.canada-signin-registry__table tbody tr[hidden] {
  display: none;
}

.canada-signin-registry__table td a {
  color: var(--gc-most-link);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
}

.canada-signin-registry__table td a:visited {
  color: var(--gc-most-link-visited);
}

.canada-signin-registry__table td a:hover {
  color: var(--gc-most-link-hover);
  text-decoration-thickness: 1px;
}

/* -----------------------------------------------------------------------------
   In-app search + CRA sign-in (public)
   ----------------------------------------------------------------------------- */

.search-page__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) 3rem max(1rem, env(safe-area-inset-left, 0px));
}

.search-page__h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  border-bottom: 3px solid #af3c43;
  padding-bottom: 0.5rem;
  max-width: 28rem;
}

.search-page__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.search-page__field-wrap {
  position: relative;
  flex: 1 1 14rem;
  min-width: 0;
}

.search-page__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  font: inherit;
}

.search-page__suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: min(22rem, 55vh);
  overflow-y: auto;
}

.search-page__suggest-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.search-page__suggest-item {
  margin: 0;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid #eee;
}

.search-page__suggest-item:last-child {
  border-bottom: 0;
}

.search-page__suggest-item:hover,
.search-page__suggest-item:focus-within,
.search-page__suggest-item--active {
  background: #f5f7f9;
}

.search-page__suggest-link {
  display: block;
  font-weight: 700;
  color: var(--gc-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.search-page__suggest-link:hover {
  color: var(--gc-link-hover);
}

.search-page__suggest-link:visited {
  color: var(--gc-link);
}

.search-page__suggest-group {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gc-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.search-page__suggest-snippet {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--gc-muted);
}

.search-page__submit {
  padding: 0.5rem 1.25rem;
  background: #26374a;
  color: #fff;
  border: 1px solid #26374a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.search-page__meta,
.search-page__hint {
  color: var(--gc-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.search-page__results {
  margin-top: 1.25rem;
}

.search-page__results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-page__results-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gc-border);
}

.search-page__results-item:last-child {
  border-bottom: 0;
}

.search-page__results-link {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gc-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.search-page__results-link:hover {
  color: var(--gc-link-hover);
}

.search-page__results-link:visited {
  color: var(--gc-link);
}

.search-page__results-badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gc-muted);
  vertical-align: middle;
}

.search-page__results-snippet {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gc-muted);
}

.cra-signin__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right, 0px)) 3rem max(1rem, env(safe-area-inset-left, 0px));
}

.cra-signin__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: #555;
}

.cra-signin__crumb {
  color: #284162;
  font-weight: 600;
}

.cra-signin__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1rem;
}

.cra-signin__brand {
  font-weight: 700;
  font-size: 1.05rem;
}

.cra-signin__mini-signin {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: #26374a;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  border-radius: 2px;
}

.cra-signin__details {
  border: 1px solid #ccc;
  border-radius: 2px;
  margin-bottom: 1rem;
  padding: 0;
  background: #fafafa;
}

.cra-signin__details--inline {
  margin-top: 0.75rem;
}

.cra-signin__summary {
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #284162;
  list-style: none;
}

.cra-signin__summary::-webkit-details-marker {
  display: none;
}

.cra-signin__details-body {
  margin: 0;
  padding: 0 1rem 0.85rem;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

.cra-signin__alert {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid #269abc;
  background: #f2f8fb;
}

.cra-signin__alert-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #269abc;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cra-signin__alert-title {
  display: block;
  margin-bottom: 0.25rem;
}

.cra-signin__alert-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.cra-signin__alert-text a {
  color: var(--gc-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.cra-signin__alert--error {
  border-left-color: #af3c43;
  background: #fdf2f2;
}

.cra-signin__alert--error .cra-signin__alert-icon {
  background: #af3c43;
}

.cra-signin__lede {
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cra-signin__card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 1px solid #ddd;
  background: #fff;
  margin-bottom: 2rem;
}

.cra-signin__card--narrow {
  grid-template-columns: 1fr;
  max-width: 28rem;
  padding: 1.25rem 1.5rem;
}

.cra-signin__half {
  padding: 1.25rem 1.5rem;
}

.cra-signin__h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.cra-signin__sub {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  color: #555;
}

.cra-signin__or {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 3rem;
  background: linear-gradient(#ddd, #ddd) center/1px 100% no-repeat;
}

.cra-signin__or span {
  background: #fff;
  padding: 0.25rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #555;
}

.cra-signin__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cra-signin__btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  background: #26374a;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #1c2b3a;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s var(--ease-out, ease),
    border-color 0.2s var(--ease-out, ease),
    box-shadow 0.2s var(--ease-out, ease),
    transform 0.2s var(--ease-out, ease);
}

.cra-signin__btn:hover {
  background: #1e3245;
  border-color: #152433;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.cra-signin__btn:active {
  background: #1a2d3f;
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.cra-signin__btn:focus-visible {
  outline: 3px solid #335075;
  outline-offset: 3px;
}

.cra-signin__btn:visited {
  color: #fff !important;
}

.cra-signin__btn--secondary {
  background: linear-gradient(180deg, #f4f6f8 0%, #eaecee 100%);
  color: #284162 !important;
  border-color: #c5cdd6;
  margin-top: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.cra-signin__btn--secondary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f0f3f6 100%);
  border-color: #26374a;
  color: #1c2b3a !important;
  box-shadow: 0 4px 12px rgba(38, 55, 74, 0.12);
  transform: translateY(-1px);
}

.cra-signin__btn--secondary:active {
  background: #e2e8ef;
  transform: translateY(0);
}

.cra-signin__btn--secondary:focus-visible {
  outline: 3px solid #335075;
  outline-offset: 3px;
}

.cra-signin__btn--secondary:visited {
  color: #284162 !important;
}

@media (prefers-reduced-motion: reduce) {
  .cra-signin__btn,
  .cra-signin__btn--secondary {
    transition: none;
  }

  .cra-signin__btn:hover,
  .cra-signin__btn:active,
  .cra-signin__btn--secondary:hover,
  .cra-signin__btn--secondary:active {
    transform: none;
  }
}

/* CRA account sign-in page: dark utility bar under GC header */
.app-body--cra-signin .gc-header__menu-row {
  background: #26374a;
  border-bottom: 1px solid #1c2b3a;
}

.app-body--cra-signin .gc-header__menu-toggle {
  color: #ffffff;
}

.app-body--cra-signin .gc-header__menu-chevron,
.app-body--cra-signin .gc-header__menu-chevron-svg {
  color: #ffffff;
}

.app-body--cra-signin .gc-header__menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.app-body--cra-signin .gc-header__signin--nav {
  background: #ffffff;
  color: #26374a !important;
  border: none;
}

.app-body--cra-signin .gc-header__signin--nav:hover {
  background: #f2f4f6;
  color: #26374a !important;
}

.cra-signin__methods-intro {
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #333;
}

.cra-signin__inline-link {
  color: #284162;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cra-signin__inline-link:hover {
  color: #1e3d5c;
}

.cra-signin__methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.cra-signin__method {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cra-signin__method-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #26374a;
}

.cra-signin__method-body {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
  flex: 1;
}

.cra-signin__btn--method {
  margin-top: auto;
  font-size: 0.875rem;
  padding: 0.65rem 0.75rem;
}

.cra-signin__help-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.cra-signin__help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

@media (max-width: 720px) {
  .cra-signin__card {
    grid-template-columns: 1fr;
  }

  .cra-signin__or {
    width: 100%;
    min-height: 2.5rem;
    background: linear-gradient(#ddd, #ddd) center/100% 1px no-repeat;
  }
}

.cra-signin--full .cra-signin__container,
.cra-subpage .cra-signin__container {
  max-width: var(--gc-max);
  font-family: var(--font-gc);
}

.cra-signin__breadcrumb {
  margin: 0 0 0.75rem;
}

.cra-signin__breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.9375rem;
}

.cra-signin__breadcrumb-sep {
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
  transform: rotate(-45deg);
  opacity: 0.7;
}

.cra-signin__crumb-current {
  color: #333333;
  font-weight: 400;
}

.cra-signin__h1 {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 4px solid #af3c43;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #333333;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cra-subpage__h1 {
  max-width: 42rem;
}

.cra-signin__section-h {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
}

.cra-signin__info-alerts {
  margin-bottom: 1.5rem;
}

.cra-signin__details--prominent {
  margin-bottom: 1rem;
  background: #fffef5;
  border-color: #e8e0c8;
}

.cra-signin__help-sub {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #333333;
}

.cra-signin__common-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: #333333;
}

.cra-signin__common-list a {
  color: var(--gc-navy);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
}

.cra-signin__common-list a:hover {
  color: var(--gc-navy-dark);
  text-decoration-thickness: 1px;
}

.cra-signin__about-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cra-signin__about-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cra-signin__about-card {
  padding: 1rem 1.15rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fafafa;
}

.cra-signin__about-link {
  font-weight: 700;
  color: var(--gc-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
  font-size: 1rem;
}

.cra-signin__about-link:hover {
  color: var(--gc-navy-dark);
  text-decoration-thickness: 1px;
}

.cra-signin__about-sum {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

.cra-subpage__intro {
  max-width: 40rem;
  font-size: 1.0625rem;
}

.cra-subpage__body {
  max-width: 40rem;
}

.cra-subpage__p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

.cra-subpage__related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.cra-signin__notice {
  margin: 2rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gc-muted);
  background: #fff;
  border: 1px solid var(--gc-border);
  border-left: 4px solid #26374a;
}

.canada-home-footer--cra {
  margin-top: 0;
}

/* -----------------------------------------------------------------------------
   Masthead
   ----------------------------------------------------------------------------- */

.masthead {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.masthead--gc {
  font-family: var(--font-gc);
  background: #ffffff;
  border-bottom: 1px solid var(--gc-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.masthead--gc .masthead__title {
  color: var(--gc-navy);
  font-size: clamp(0.78rem, 2vw, 0.875rem);
  line-height: 1.25;
  white-space: normal;
}

.masthead--gc .masthead__subtitle {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gc-text);
}

.masthead__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  min-height: var(--masthead-height);
  padding: 0.35rem max(0.5rem, env(safe-area-inset-right, 0px)) 0.35rem max(0.5rem, env(safe-area-inset-left, 0px));
}

.masthead__nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.masthead__nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.masthead__nav-toggle-bar {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
}

.masthead__nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .masthead__nav-toggle {
    display: none;
  }
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 0;
  max-width: 100%;
}

.masthead__titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.masthead__title {
  font-size: clamp(0.88rem, 2.8vw, 0.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead__subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 400px) {
  .masthead__title,
  .masthead__subtitle {
    white-space: normal;
    line-height: 1.25;
  }
}

.masthead__user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.masthead__user-name {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.masthead__badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(220, 38, 38, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
}

.masthead__signout {
  margin-left: 0.25rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--gc-interactive);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.masthead__signout:hover {
  color: var(--gc-link-hover);
}

.content-link {
  color: var(--gc-interactive);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.content-link:hover {
  color: var(--gc-link-hover);
}

/* Topic hub narrative (public explainer pages) */
.topic-hub__h1 {
  margin-bottom: 0.5rem;
}

.topic-hub__lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 48rem;
  margin: 0 0 1.75rem;
  color: var(--gc-text);
}

.public-signin-cta {
  max-width: 48rem;
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid #d1d8de;
  border-left: 4px solid var(--gc-link, #284162);
  background: #f8fafc;
  border-radius: 2px;
}

.public-signin-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gc-text);
  font-family: var(--font-gc);
}

.public-signin-cta__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gc-text);
}

.public-signin-cta__link {
  font-weight: 600;
  color: var(--gc-link);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.public-signin-cta__link:hover {
  color: #a62a1e;
}

.public-signin-cta__link--account {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cra-signin--full .cra-signin__container--portal-account {
  max-width: min(36rem, 92vw);
}

.cra-signin--full .cra-signin__container--portal-wide {
  max-width: min(56rem, 94vw);
}

/* Portal account — profile hero */
.portal-profile {
  margin: 0 0 1.75rem;
}

.portal-profile__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(38, 55, 74, 0.12);
  background: linear-gradient(155deg, #ffffff 0%, #f8fafc 40%, #eef2f7 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 32px rgba(15, 23, 42, 0.07);
}

.portal-profile__identity {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.portal-profile__avatar {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(145deg, #af3c43 0%, #26374a 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.portal-profile__text {
  min-width: 0;
}

.portal-profile__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.portal-profile__name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.portal-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}

.portal-profile__pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: rgba(38, 55, 74, 0.08);
  border: 1px solid rgba(38, 55, 74, 0.1);
}

.portal-profile__code-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #334155;
}

.portal-profile__code {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  letter-spacing: 0.1em;
  text-transform: none;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 2px solid #64748b;
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  line-height: 1.3;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 14px -4px rgba(15, 23, 42, 0.12);
}

.portal-profile__phone-line {
  margin: 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.portal-profile__phone {
  font-variant-numeric: tabular-nums;
}

.portal-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.portal-profile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.portal-profile__btn--ghost {
  color: #334155;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.portal-profile__btn--ghost:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.portal-profile__btn--primary {
  color: #fff;
  border: 1px solid #1e293b;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
}

.portal-profile__btn--primary:hover {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
}

.portal-profile__note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94a3b8;
  text-align: center;
}

/* Portal account hub — service grid */
.portal-hub {
  margin: 0 0 1.25rem;
}

.portal-hub__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.portal-hub__intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.portal-hub__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 36rem) {
  .portal-hub__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .portal-hub__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

.portal-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1rem 1rem 1rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(38, 55, 74, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 8px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.portal-hub-card:hover {
  border-color: rgba(38, 55, 74, 0.22);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.portal-hub-card__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #26374a 0%, #1e293b 100%);
  color: #f8fafc;
}

.portal-hub-card__icon-img {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.portal-hub-card__svg {
  display: block;
}

.portal-hub-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-hub-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.portal-hub-card__blurb {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.portal-hub-card__chev {
  flex-shrink: 0;
  align-self: center;
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 400;
}

/* SIN page — code hero */
.sin-page {
  margin: 0;
}

.sin-hero {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 2rem 1rem 2.25rem;
  border-radius: 0;
}

@media (min-width: 48rem) {
  .sin-hero {
    padding: 2.5rem 1.5rem 2.75rem;
  }
}

.sin-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% -20%, rgba(175, 60, 67, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 50%, rgba(38, 55, 74, 0.12), transparent 50%),
    linear-gradient(165deg, #e8edf3 0%, #f1f5f9 45%, #ffffff 100%);
  border-bottom: 1px solid rgba(38, 55, 74, 0.1);
}

.sin-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}

.sin-code-card {
  background: #fff;
  border: 1px solid rgba(38, 55, 74, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sin-code-card__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.sin-code-display {
  margin: 0 0 0.25rem;
  padding: 0.35rem 0 0;
}

.sin-code-display__value {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #26374a;
}

.sin-code-display__value--masked {
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #334155;
}

.sin-code-display__value--full {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.sin-code-reveal {
  margin: 0 0 1rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid rgba(38, 55, 74, 0.1);
}

.sin-code-reveal__summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #26374a;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sin-code-reveal__summary:hover {
  color: #1e293b;
}

.sin-code-reveal__summary:focus-visible {
  outline: 2px solid var(--gc-navy, #26374a);
  outline-offset: 2px;
  border-radius: 2px;
}

.sin-code-reveal__panel {
  margin-top: 0.5rem;
}

.sin-code-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #334155;
}

.sin-code-card__pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sin-code-card__pill--ok {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.25);
}

.sin-code-card__issuer {
  font-weight: 600;
  color: #26374a;
}

.sin-code-card__fineprint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.text-doc--sin-body {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem 2rem;
}

.sin-mask-inline {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.03em;
}

.cra-auth-panel--portal-account-summary .cra-auth-panel__message--phone {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.cra-auth-panel__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.cra-auth-panel__value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.topic-hub__section {
  margin: 0 0 1.75rem;
  padding: 0;
  max-width: 48rem;
}

.topic-hub__h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--gc-text);
  font-family: var(--font-gc);
}

.topic-hub__p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--gc-text);
}

.topic-hub__p:last-child {
  margin-bottom: 0;
}

.topic-hub__figure {
  margin: 0 0 1.1rem;
  max-width: 48rem;
}

.topic-hub__figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #d1d8de;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.info-page .topic-hub__figure-img {
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.topic-hub__figcap {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a5568;
}

.topic-hub__note {
  max-width: 48rem;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: #4a5568;
}

body.app-body--gc .main:not(.main--public) {
  font-family: var(--font-gc);
  background: linear-gradient(180deg, #f4f6f8 0%, #eef1f4 45%, #e8ecf0 100%);
}

body.app-body--gc .main:not(.main--public) .page-header__title {
  letter-spacing: -0.02em;
}

body.app-body--gc .main:not(.main--public) .card-hover:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

body.app-body--gc .btn-link {
  color: var(--gc-link);
  border-color: var(--gc-border);
  box-shadow: none;
  text-decoration: none;
  transition:
    color 0.12s ease,
    background-color 0.12s ease,
    border-color 0.12s ease;
}

body.app-body--gc .btn-link:hover {
  color: var(--gc-link-hover);
  background-color: var(--gc-link-hover-bg);
  border-color: var(--gc-border);
}

/* -----------------------------------------------------------------------------
   Sidebar
   ----------------------------------------------------------------------------- */

.sidebar {
  position: fixed;
  z-index: 50;
  top: var(--site-header-offset);
  left: 0;
  width: min(var(--sidebar-width), calc(100vw - 2.75rem));
  max-width: 100vw;
  height: calc(100vh - var(--site-header-offset));
  height: calc(100dvh - var(--site-header-offset));
  max-height: calc(100dvh - var(--site-header-offset));
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.sidebar.is-open {
  transform: translateX(0);
}

@media (min-width: 960px) {
  .sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: var(--sidebar-width);
    height: auto;
    max-height: none;
    transform: none;
    box-shadow: none;
    flex-shrink: 0;
  }
}

.sidebar__nav {
  flex: 1;
  overflow: auto;
  padding: 1rem 0.75rem;
}

.sidebar__section-label {
  margin: 0 0 0.5rem 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s var(--ease-out);
  min-height: 2.75rem;
}

.sidebar__link:hover {
  background: var(--bg);
}

.sidebar__item.is-active .sidebar__link {
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px var(--border);
}

.sidebar__link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .sidebar__section--flyout {
    position: relative;
  }

  .sidebar__section--flyout .sidebar__list {
    display: none;
    position: absolute;
    left: calc(100% + 6px);
    top: 0;
    z-index: 80;
    min-width: 220px;
    max-width: min(320px, 70vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.4rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    flex-direction: column;
    gap: 0.15rem;
  }

  .sidebar__section--flyout.sidebar__section--has-active .sidebar__list,
  .sidebar__section--flyout:hover .sidebar__list,
  .sidebar__section--flyout:focus-within .sidebar__list {
    display: flex;
  }

  .sidebar__section--flyout .sidebar__section-label {
    cursor: default;
    border-radius: 6px;
    padding: 0.35rem 0.45rem;
    margin-left: 0.25rem;
  }

  .sidebar__section--flyout:hover .sidebar__section-label {
    background: var(--bg);
  }
}

@media (max-width: 959px) {
  .sidebar__section--flyout .sidebar__list {
    display: flex !important;
    position: static !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
  }
}

.sidebar__footer {
  padding: 0.75rem max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  flex-shrink: 0;
}

.sidebar__hint {
  margin: 0;
}

.backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--site-header-offset);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 45;
}

.backdrop[hidden] {
  display: none;
}

@media (min-width: 960px) {
  .backdrop {
    display: none !important;
  }
}

/* -----------------------------------------------------------------------------
   Dashboard root + skeleton overlay
   ----------------------------------------------------------------------------- */

.dash-root {
  position: relative;
  min-height: min(72vh, 920px);
}

.skeleton-stage--overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  min-height: calc(100dvh - var(--site-header-offset) - 4rem);
  z-index: 5;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.skeleton-stage--overlay.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skeleton-block {
  border-radius: 10px;
  background: linear-gradient(
    110deg,
    var(--shimmer-base) 0%,
    var(--shimmer-base) 42%,
    var(--shimmer-highlight) 50%,
    var(--shimmer-base) 58%,
    var(--shimmer-base) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.skeleton-block--title {
  height: 1.75rem;
  max-width: 16rem;
  margin-bottom: 0.65rem;
}

.skeleton-block--lede {
  height: 0.95rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.skeleton-block--chip {
  height: 1.5rem;
  width: 4rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.skeleton-block--line-lg {
  height: 1.1rem;
  width: 70%;
  margin-bottom: 0.5rem;
}

.skeleton-block--line-md {
  height: 0.85rem;
  width: 55%;
  margin-bottom: 0.5rem;
}

.skeleton-block--line-sm {
  height: 0.75rem;
  width: 40%;
  margin-bottom: 1rem;
}

.skeleton-block--cta {
  height: 2.5rem;
  width: 100%;
  max-width: 8rem;
  border-radius: 999px;
  margin-top: auto;
}

.skeleton-doc-card {
  background: var(--surface);
  border-radius: var(--radius-wallet);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  animation: skeleton-pulse 2s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.12);
  }
}

.doc-wallet--grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .doc-wallet--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
  }
}

.skeleton-grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .skeleton-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.skeleton-panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.skeleton-panel--wide {
  margin-top: 0.25rem;
}

.skeleton-kv {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.skeleton-block--kv-key {
  height: 0.75rem;
}

.skeleton-block--kv-val {
  height: 0.75rem;
}

.skeleton-block--table-row {
  height: 2.25rem;
  margin-top: 0.5rem;
}

.dash-live {
  position: relative;
  z-index: 1;
}

/* -----------------------------------------------------------------------------
   Wallet cards + hover micro-interactions
   ----------------------------------------------------------------------------- */

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

@media (hover: none) and (pointer: coarse) {
  .card-hover:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .card-hover:active {
    transform: scale(0.992);
  }
}

.wallet-card {
  background: var(--surface);
  border-radius: var(--radius-wallet);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

@media (max-width: 479px) {
  .wallet-card {
    padding: 1.15rem 1.1rem;
    border-radius: calc(var(--radius-wallet) - 4px);
  }
}

.wallet-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.wallet-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--border);
}

.wallet-card__titles {
  flex: 1;
  min-width: 0;
}

.wallet-card__title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.wallet-card__issuer {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.wallet-card__badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #86efac;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
}

.wallet-card__badge--neutral {
  text-transform: capitalize;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg-elevated);
  border-color: var(--border);
}

.wallet-card__body--split {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 420px) {
  .wallet-card__body--split {
    grid-template-columns: auto 1fr;
  }
}

.wallet-card__photo {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
  border: 1px solid var(--border);
}

.wallet-dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.wallet-dl dt {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
}

.wallet-dl dd {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 550;
}

.wallet-dl--inline {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 419px) {
  .wallet-dl--inline {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------------------------
   Sensitive vault (SIN) + spinner
   ----------------------------------------------------------------------------- */

.vault {
  position: relative;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1rem 1.05rem;
  overflow: hidden;
}

.vault__label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.vault__value {
  margin: 0;
}

.vault__mono {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: opacity 0.35s ease;
  word-break: break-all;
}

.vault--busy .vault__mono {
  opacity: 0.12;
}

.vault__busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  animation: vault-fade-in 0.25s ease;
}

@keyframes vault-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.vault__busy[hidden] {
  display: none !important;
}

.vault__busy-text {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  max-width: 12rem;
  line-height: 1.35;
}

.spinner {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.vault__reveal {
  margin-top: 0.85rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.vault__reveal:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.vault__reveal:disabled {
  opacity: 0.65;
  cursor: wait;
}

.vault__reveal:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.vault__mono--reveal {
  animation: reveal-number 0.45s var(--ease-out);
}

@keyframes reveal-number {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    filter: none;
    transform: translateY(0);
  }
}

/* -----------------------------------------------------------------------------
   Page fragments (dashboard tables, etc.)
   ----------------------------------------------------------------------------- */

.page-header {
  margin-bottom: 1.35rem;
}

.page-header__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 4.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.page-header__lede {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.page-header__lede-extra {
  display: block;
  margin-top: 0.65rem;
  color: var(--ink);
  font-weight: 550;
}

.page-header--dash {
  margin-bottom: 0;
}

/* Dashboard main column: consistent space between sections */
.dash-live {
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3.8vw, 2rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Plain text pages (e.g. Notice of Assessment) — no cards or side columns */
.main--public .text-doc--gc {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.5rem 0 2.5rem;
  font-family: var(--font-gc);
  color: var(--gc-text);
}

.text-doc__h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--gc-text);
}

.text-doc__h2 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gc-text);
}

.text-doc__h2:first-of-type {
  margin-top: 1rem;
}

.text-doc__p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gc-text);
}

.text-doc__links {
  margin-top: 1.25rem;
}

.text-doc__sep::before {
  content: "·";
  padding: 0 0.35rem;
  color: var(--gc-muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
}

@media (max-width: 479px) {
  .card:not(.card--flush) {
    padding: 1rem 1.05rem;
  }
}

.card--flush {
  padding: 0;
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0;
}

.card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.kv {
  margin: 0;
}

.kv__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 520px) {
  .kv__row {
    grid-template-columns: minmax(7rem, 32%) 1fr;
    align-items: baseline;
  }
}

.kv__row:last-child {
  border-bottom: none;
}

.kv__key {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.kv__val {
  margin: 0;
  font-weight: 550;
  word-break: break-word;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0 1.25rem 1.15rem;
}

.card:not(.card--flush) .table-wrap {
  padding: 0;
}

.table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

@media (min-width: 960px) {
  .table {
    min-width: 0;
  }
}

.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-elevated);
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  text-transform: lowercase;
}

.pill--verified {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.pill--pending_review {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.pill--in_progress {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.pill--not_started {
  background: #f8fafc;
  color: var(--muted);
}

.pill--rejected,
.pill--expired {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.link {
  color: var(--focus);
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

/* -----------------------------------------------------------------------------
   Toast notifications
   ----------------------------------------------------------------------------- */

.toast-host {
  position: fixed;
  z-index: 200;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  pointer-events: none;
}

@media (max-width: 540px) {
  .toast-host {
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    max-width: none;
  }
}

.toast {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: toast-in 0.45s var(--ease-out);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast--out {
  animation: toast-out 0.35s ease forwards;
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.toast__text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.45;
}

.toast__meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* -----------------------------------------------------------------------------
   Official footer
   ----------------------------------------------------------------------------- */

.official-footer {
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-ink);
}

.official-footer--gc {
  background: var(--gc-navy);
  border-top: 4px solid var(--gc-red);
  color: #e8eef3;
  font-family: var(--font-gc);
}

.official-footer--gc .official-footer__inner {
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 0.65rem max(1rem, env(safe-area-inset-right, 0px)) 0.75rem max(1rem, env(safe-area-inset-left, 0px));
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1fr;
}

.official-footer--gc .official-footer__wordmark {
  color: #cfd8e0;
  font-size: 0.8125rem;
}

.official-footer--gc .official-footer__link {
  min-height: unset;
  padding: 0;
}

.official-footer--gc .official-footer__link:link,
.official-footer--gc .official-footer__link:visited {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 0.15em;
  background-color: transparent;
}

.official-footer--gc .official-footer__link:hover,
.official-footer--gc .official-footer__link:visited:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration-color: #ffc9c9;
  border-radius: 2px;
}

.official-footer--gc .official-footer__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.official-footer--gc .official-footer__sep {
  color: rgba(255, 255, 255, 0.4);
}

.official-footer--gc .official-footer__links {
  font-size: 0.8125rem;
  gap: 0.2rem 0.45rem;
}

.official-footer--gc .official-footer__build,
.official-footer--gc .official-footer__disclaimer {
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

.official-footer--gc .official-footer__build {
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}

.official-footer--gc .official-footer__disclaimer {
  font-size: 0.6875rem;
  line-height: 1.35;
  max-width: 42rem;
}

.official-footer--slim-home .official-footer__brand {
  display: none;
}

.official-footer--slim-home .official-footer__inner {
  padding-top: 0.55rem;
  padding-bottom: 0.65rem;
  gap: 0.3rem;
}

.official-footer--gc.official-footer--slim-home .official-footer__inner {
  padding-top: 0.5rem;
  padding-bottom: 0.6rem;
}

@media (min-width: 720px) {
  .official-footer--slim-home .official-footer__inner {
    grid-template-columns: 1fr;
  }

  .official-footer--slim-home .official-footer__links {
    grid-column: 1;
  }

  .official-footer--gc .official-footer__inner {
    grid-template-columns: 1fr;
  }
}

.official-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem max(1.25rem, env(safe-area-inset-right, 0px)) max(2.25rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .official-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.official-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.official-footer__svg {
  display: block;
  width: 140px;
  height: auto;
  border-radius: 6px;
}

.official-footer__wordmark {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #cbd5e1;
  letter-spacing: 0.01em;
  max-width: 22rem;
}

.official-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.75rem;
}

.official-footer__link:link,
.official-footer__link:visited {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.15rem 0;
}

.official-footer__link:hover,
.official-footer__link:visited:hover {
  text-decoration: underline;
  color: #ffffff;
}

.official-footer__sep {
  color: #64748b;
  user-select: none;
}

.official-footer__build {
  margin: 0;
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.official-footer__disclaimer {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 40rem;
}

/* -----------------------------------------------------------------------------
   DigitalCanada.js — toast, skeleton handoff, vault value reveal
   ----------------------------------------------------------------------------- */

.dc-toast {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dc-toast--out {
  opacity: 0;
  transform: translateY(-8px);
}

.dc-toast--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(240, 253, 244, 0.95);
}

.dc-toast__text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.45;
}

.skeleton-stage.dc-skeleton--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dc-skeleton-reveal {
  animation: dcRevealContent 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dcRevealContent {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dc-vault-value--revealed {
  animation: dcVaultReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dcVaultReveal {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    filter: none;
    transform: translateY(0);
  }
}

.legal-prose {
  padding: 0 1.25rem 1.25rem;
  max-width: 52rem;
}

.legal-prose h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--focus);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn-link:hover {
  background: var(--bg-elevated);
  text-decoration: none;
}

/* -----------------------------------------------------------------------------
   Government-style shell: federal bar, alerts, breadcrumb, dashboard widgets
   ----------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.federal-bar {
  background: #26374a;
  color: #e8eef4;
  font-size: 0.8125rem;
  border-bottom: 1px solid #1c2530;
}

.federal-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.35rem max(1rem, env(safe-area-inset-right, 0px)) 0.35rem max(1rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.federal-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #94a3b8;
}

.federal-bar__flag {
  width: 14px;
  height: 10px;
  border-radius: 1px;
  background: linear-gradient(180deg, #ff0000 0%, #ff0000 50%, #ffffff 50%, #ffffff 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.federal-bar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.federal-bar__link {
  color: #b3d9f5;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.2rem 0;
}

.federal-bar__link:hover {
  color: #ffffff;
}

@media (max-width: 380px) {
  .federal-bar__tag {
    display: none;
  }

  .federal-bar__inner {
    justify-content: center;
  }

  .federal-bar__links {
    justify-content: center;
  }
}

.portal-alert {
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.portal-alert__inner {
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 0.65rem max(1.25rem, env(safe-area-inset-right, 0px)) 0.65rem max(1.25rem, env(safe-area-inset-left, 0px));
  font-family: var(--font-gc);
}

.portal-alert--info {
  background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
  color: #1e3a5f;
}

.portal-alert--warning {
  background: linear-gradient(90deg, #fffbeb 0%, #fffbf5 100%);
  color: #78350f;
}

.portal-alert__title {
  display: block;
  font-size: 0.88rem;
  margin: 0 0 0.2rem;
}

.portal-alert__body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.95;
}

.masthead__meta {
  display: none;
  align-items: center;
  margin-left: auto;
  margin-right: 0.5rem;
}

@media (min-width: 720px) {
  .masthead__meta {
    display: flex;
  }
}

.masthead__sync {
  font-size: 0.72rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead__sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(0.92);
  }
}

.breadcrumb {
  margin: -0.25rem 0 1.25rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb__link {
  color: var(--focus);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

.breadcrumb__item--sep {
  color: var(--border);
  user-select: none;
}

.breadcrumb__current {
  color: var(--ink);
  font-weight: 650;
}

body.app-body--gc .breadcrumb {
  font-family: var(--font-gc);
  border-bottom-color: var(--gc-border);
}

body.app-body--gc .breadcrumb__link {
  color: var(--gc-link);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--gc-link-decoration);
  text-underline-offset: 0.18em;
  transition:
    color 0.12s ease,
    background-color 0.12s ease,
    text-decoration-color 0.12s ease;
}

body.app-body--gc .breadcrumb__link:hover {
  color: var(--gc-link-hover);
  background-color: var(--gc-link-hover-bg);
  text-decoration-color: var(--gc-link-hover-underline);
  border-radius: 3px;
}

body.app-body--gc .breadcrumb__current {
  color: var(--gc-text);
  font-weight: 700;
}

body.app-body--gc .sidebar {
  font-family: var(--font-gc);
}

.sidebar__section--spaced {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card--compact {
  padding: 0.9rem 1.1rem;
}

.service-health.card--compact {
  padding: 1.15rem 1.35rem;
}

.card__lede {
  margin: 0.15rem 0 1.05rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.dash-metrics {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .dash-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.metric-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
}

.metric-tile__label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.metric-tile__value {
  margin: 0.2rem 0;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.metric-tile__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.service-health__title {
  margin-bottom: 0.85rem;
}

.service-health__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-health__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  row-gap: 0.15rem;
  font-size: 0.88rem;
}

.service-health__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  grid-row: 1 / span 2;
  align-self: center;
}

.service-health__dot--operational {
  background: #22c55e;
}

.service-health__dot--degraded {
  background: #f59e0b;
}

.service-health__dot--outage {
  background: #dc2626;
}

.service-health__name {
  font-weight: 650;
  color: var(--ink);
}

.service-health__detail {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-note-disclaimer {
  margin: 0;
  padding: 1rem 1.2rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.task-list__link {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.task-list__link:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.task-list__label {
  display: block;
  font-weight: 650;
  color: var(--focus);
  font-size: 0.92rem;
}

.task-list__desc {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.activity-list__item {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.activity-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-list__event {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: capitalize;
}

.activity-list__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.dash-announcements {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
}

@media (min-width: 720px) {
  .dash-announcements {
    gap: 1.45rem;
  }
}

.announcement-card {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.announcement-card--info {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.announcement-card--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #fff 100%);
  border-color: #fcd34d;
}

.announcement-card__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.announcement-card__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--muted);
}

/* Extra gutter between paired dashboard columns (tasks / activity, account / verification) */
.dash-live .grid.grid--2 {
  gap: clamp(1.25rem, 3.5vw, 2rem);
}

@media (min-width: 900px) {
  .dash-live .grid.grid--2 {
    gap: 1.85rem;
  }
}

.dash-live .page-actions {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .skeleton-block {
    animation: none;
    background: var(--shimmer-base);
  }

  .skeleton-doc-card {
    animation: none;
  }

  .masthead__sync-dot {
    animation: none;
  }
}

/* -------------------------------------------------------------------------- */
/* CRA sign-in: disabled methods + multi-step portal login + admin            */
/* -------------------------------------------------------------------------- */

.cra-signin__btn--disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: not-allowed;
  background: linear-gradient(180deg, #f1f3f5 0%, #e8ecf0 100%) !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.92;
}

.cra-signin__btn--disabled.cra-signin__btn--secondary {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%) !important;
  color: #64748b !important;
}

.cra-signin__btn-hint {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: #64748b;
  max-width: 100%;
}

.portal-login-wizard {
  margin-bottom: 2rem;
}

.portal-login-wizard__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: 42rem;
}

.portal-login-wizard__steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.portal-login-wizard__steps li span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #e2e8f0;
  font-weight: 700;
  font-size: 0.8rem;
  color: #475569;
}

.portal-login-wizard__steps li.is-active span:first-child {
  background: #26374a;
  color: #fff;
}

.portal-login-wizard__steps li.is-done span:first-child {
  background: #15803d;
  color: #fff;
}

.portal-login-wizard__form {
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-login-wizard__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #26374a;
}

.portal-login-wizard__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: var(--font-gc);
}

.portal-login-wizard__input:focus {
  outline: 3px solid rgba(38, 55, 74, 0.25);
  border-color: #26374a;
}

.portal-login-wizard__hint {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.portal-login-wizard__submit {
  margin-top: 0.35rem;
}

.portal-login-wizard__alert {
  max-width: 42rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.portal-login-wizard__alert--err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.portal-login-wizard__demo {
  max-width: 42rem;
  padding: 0.65rem 0.85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portal-login-wizard__demo code {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.portal-admin__h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: #26374a;
}

.portal-admin__sms-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #475569;
}

.portal-admin__sms-code {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.portal-admin__table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.portal-admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.portal-admin__table th,
.portal-admin__table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.portal-admin__table th {
  background: #f8fafc;
  font-weight: 600;
}

/* =============================================================================
   Auth flow — partner, provincial, register, CRA wizard, admin, account-login
   ============================================================================= */

.cra-signin--auth-flow {
  position: relative;
  background:
    radial-gradient(1200px 480px at 50% -10%, rgba(175, 60, 67, 0.07), transparent 55%),
    linear-gradient(180deg, #f1f5f9 0%, #f8fafc 38%, #ffffff 100%);
}

.cra-signin--auth-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='1' cy='1' r='1' fill='%2394a3b8' fill-opacity='0.12'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.65;
}

.cra-signin--auth-flow .cra-signin__container {
  position: relative;
  z-index: 1;
}

.cra-signin__container--auth {
  max-width: 28rem;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.cra-auth-page-head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.cra-auth-page-head--compact {
  margin-bottom: 1.25rem;
}

.cra-auth-page-head__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.cra-auth-page-head__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.03em;
  border-bottom: none;
  padding-bottom: 0;
}

.cra-auth-page-head__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #af3c43 0%, #d3081c 50%, #26374a 100%);
}

.cra-auth-page-head__lede {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cra-auth-panel {
  background: linear-gradient(165deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(38, 55, 74, 0.12);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px -12px rgba(15, 23, 42, 0.12);
  padding: 1.75rem 1.5rem 1.85rem;
  margin: 0 auto 1rem;
}

.cra-auth-panel--wizard {
  padding-top: 1.5rem;
}

/* CRA user ID / passport — centered column, soft page tint */
.cra-signin--passport-page.cra-signin--full {
  background: linear-gradient(165deg, #eef2f6 0%, #ffffff 42%, #f8fafc 100%);
}

.cra-signin--passport-page.cra-signin--full .cra-signin__container--auth {
  max-width: min(40rem, 92vw);
}

.cra-signin--passport-page .cra-auth-flash {
  max-width: none;
}

.cra-auth-panel--passport {
  padding: 1.45rem 1.35rem 1.55rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #fff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid rgba(38, 55, 74, 0.11);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 36px rgba(15, 23, 42, 0.08);
}

.cra-auth-panel--admin {
  max-width: none;
  margin-bottom: 2rem;
}

.cra-auth-panel--standalone {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 2rem 1.75rem 1.75rem;
}

.cra-auth-panel--message {
  text-align: center;
  padding: 1.35rem 1.25rem;
}

.cra-auth-panel__message {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.cra-auth-form.portal-login-wizard__form {
  max-width: none;
  gap: 0.85rem;
}

.cra-signin--auth-flow .portal-login-wizard__label,
.cra-auth-panel--standalone .portal-login-wizard__label {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
}

.cra-signin--auth-flow .portal-login-wizard__input,
.cra-auth-panel--standalone .portal-login-wizard__input {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cra-signin--auth-flow .portal-login-wizard__input:hover,
.cra-auth-panel--standalone .portal-login-wizard__input:hover {
  border-color: #94a3b8;
}

.cra-signin--auth-flow .portal-login-wizard__input:focus,
.cra-auth-panel--standalone .portal-login-wizard__input:focus {
  outline: none;
  border-color: #26374a;
  box-shadow:
    0 0 0 3px rgba(38, 55, 74, 0.18),
    inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cra-signin__btn--auth {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.cra-signin__btn--auth.cra-signin__btn--secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #1e293b !important;
  border-color: #cbd5e1;
}

.cra-signin__btn--auth.cra-signin__btn--secondary:hover {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #94a3b8;
  color: #0f172a !important;
}

.cra-auth-flash {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  margin: 0 auto 1.15rem;
  max-width: 28rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.cra-auth-flash__text {
  margin: 0;
  flex: 1;
  color: #334155;
}

.cra-auth-flash__text a {
  color: #1e3a5f;
  font-weight: 600;
}

.cra-auth-flash__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.cra-auth-flash--error {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border-color: #fecaca;
  color: #7f1d1d;
}

.cra-auth-flash--error .cra-auth-flash__icon {
  background: linear-gradient(145deg, #dc2626, #991b1b);
}

.cra-auth-flash--error .cra-auth-flash__icon::before {
  content: "!";
}

.cra-auth-flash--warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
  border-color: #fde68a;
}

.cra-auth-flash--warn .cra-auth-flash__icon {
  background: linear-gradient(145deg, #eab308, #ca8a04);
}

.cra-auth-flash--warn .cra-auth-flash__icon::before {
  content: "i";
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.cra-auth-flash--success {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
}

.cra-auth-flash--success .cra-auth-flash__icon {
  background: linear-gradient(145deg, #22c55e, #15803d);
}

.cra-auth-flash--success .cra-auth-flash__icon::before {
  content: "✓";
  font-size: 0.75rem;
}

.cra-auth-back {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.cra-signin--auth-flow .portal-login-wizard__steps {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  max-width: none;
  margin: 0 0 1.35rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid rgba(38, 55, 74, 0.1);
}

.cra-signin--auth-flow .portal-login-wizard__steps li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.cra-signin--auth-flow .portal-login-wizard__steps li span:first-child {
  width: 2rem;
  height: 2rem;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.cra-signin--auth-flow .portal-login-wizard__steps li.is-active {
  color: #26374a;
}

.cra-signin--auth-flow .portal-login-wizard__steps li.is-done {
  color: #15803d;
}

.portal-login-wizard--passport.cra-signin--auth-flow .portal-login-wizard__steps {
  margin: 0 -0.35rem 1.45rem;
  padding: 0.65rem 0.5rem 1.2rem;
  border-radius: 10px;
  border-bottom: 1px solid rgba(38, 55, 74, 0.12);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.75) 0%, transparent 100%);
}

.cra-signin--auth-flow .portal-login-wizard__demo {
  border-radius: 10px;
  max-width: none;
}

.portal-admin.cra-signin--auth-flow .portal-admin__h2 {
  margin-top: 0.25rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #334155;
}

.portal-admin.cra-signin--auth-flow .portal-admin__table-wrap {
  border-radius: 12px;
  border: 1px solid rgba(38, 55, 74, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.portal-admin.cra-signin--auth-flow .portal-admin__table th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.cra-auth-standalone {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-gc, "Noto Sans", system-ui, sans-serif);
  background:
    radial-gradient(900px 400px at 80% 10%, rgba(175, 60, 67, 0.09), transparent 50%),
    linear-gradient(165deg, #e2e8f0 0%, #f8fafc 45%, #ffffff 100%);
}

.cra-auth-standalone__shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  box-sizing: border-box;
}

.cra-auth-standalone__foot {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

/* Sign-In Partner / Provincial partner — picker grids (demo UI) */

.cra-signin__container--picker {
  max-width: 52rem;
}

.si-picker__hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
}

.si-picker {
  padding: 1.5rem 1.35rem 1.75rem;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.si-picker__search-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 0.35rem;
}

.si-picker__search {
  margin-bottom: 0.35rem;
}

.si-picker__search-hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.si-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.25rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: min(52vh, 24rem);
  overflow-y: auto;
  padding: 0.35rem 0.15rem 0.15rem;
  scrollbar-gutter: stable;
}

.si-picker__grid--prov {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  max-height: none;
  overflow: visible;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.1rem 0;
}

.si-picker--provincial .si-picker__region-tabs {
  margin-bottom: 0.9rem;
}

/* Sign-In Partner banks — no search field; show full grid with logo-forward cards */
.si-picker--banks {
  padding-top: 1.25rem;
}

.si-picker__grid--banks {
  max-height: none;
  overflow: visible;
  margin-bottom: 1.05rem;
  padding: 0.15rem 0;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.8rem;
}

.si-picker__card--bank .si-picker__logo {
  height: 3.6rem;
  min-height: 3.6rem;
  padding: 0.45rem 0.55rem;
  background: linear-gradient(165deg, #fff 0%, #f4f7fb 100%);
  border: 1px solid rgba(38, 55, 74, 0.08);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(38, 55, 74, 0.04);
}

.si-picker__card--bank .si-picker__logo-img {
  max-height: 3.1rem;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.06));
}

.si-picker__card--bank .si-picker__name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1e293b;
}

.si-picker__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.85rem 0.55rem 0.75rem;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    background 0.2s ease;
}

.si-picker__card:hover {
  border-color: #cbd5e1;
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: translateY(-2px);
}

.si-picker__card.is-selected {
  border-color: #26374a;
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  box-shadow:
    0 0 0 2px rgba(38, 55, 74, 0.28),
    0 8px 24px rgba(38, 55, 74, 0.12);
  transform: translateY(-2px);
}

.si-picker__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.35rem;
  min-height: 3.35rem;
  border-radius: 11px;
  background: linear-gradient(160deg, #fff 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0.5rem;
  overflow: hidden;
}

.si-picker__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 2.75rem;
  object-fit: contain;
  object-position: center;
}

.si-picker__logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background: var(--si-brand, #26374a);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  padding: 0.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.si-picker__name {
  font-size: 0.74rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.si-picker__card--prov {
  position: relative;
  align-items: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.si-picker__prov-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 8rem;
  max-height: 12rem;
  overflow: hidden;
  background: linear-gradient(160deg, #e8edf2 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.si-picker__prov-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.si-picker__prov-visual .si-picker__prov-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  font-weight: 800;
  background: var(--si-brand, #26374a);
  color: #fff;
}

.si-picker__card--prov .si-picker__name {
  padding: 0.65rem 0.75rem 0.15rem;
  margin: 0;
  -webkit-line-clamp: 2;
}

.si-picker__card--prov .si-picker__blurb {
  padding: 0 0.75rem 0.75rem;
  margin: 0;
  margin-top: 0;
}

.si-picker__card--prov .si-picker__badge {
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.si-picker__badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.si-picker__blurb {
  font-size: 0.68rem;
  line-height: 1.35;
  color: #64748b;
  margin-top: auto;
}

.si-picker__region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.si-picker__tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.si-picker__tab:hover {
  border-color: #cbd5e1;
}

.si-picker__tab.is-active {
  background: #26374a;
  border-color: #26374a;
  color: #fff;
}

.si-picker__legal {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #94a3b8;
}

.si-picker__actions {
  display: flex;
  justify-content: center;
}

.si-picker__next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.si-picker__connecting {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
}

.si-picker__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid #e2e8f0;
  border-top-color: #26374a;
  border-radius: 50%;
  animation: si-picker-spin 0.75s linear infinite;
}

@keyframes si-picker-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .si-picker__spinner {
    animation: none;
    border-top-color: #e2e8f0;
  }
}

.si-picker__connecting-text {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #0f172a;
}

.si-picker__connecting-sub {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.si-picker__selected-banner {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 55%, #e8eef5 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.si-picker__selected-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4.25rem;
  height: 3rem;
  border-radius: 11px;
  background: linear-gradient(160deg, #fff 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.35rem 0.45rem;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
}

.si-picker__selected-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 2.35rem;
  object-fit: contain;
  object-position: center;
}

.si-picker__selected-img--prov {
  max-height: 3.25rem;
  width: auto;
  max-width: 5.5rem;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.si-picker__selected-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.si-picker__selected-name {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.si-picker__change {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  padding: 0.25rem;
}

.si-picker__change:hover {
  color: #1d4ed8;
}

.si-picker__fid {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.si-picker__form-wrap {
  padding-top: 0.25rem;
}
