/* Asymmetric editorial layout. Loaded after the existing component styles. */
:root {
  --asym-ink: #003e59;
  --asym-paper: #f5f4ef;
  --asym-rule: #dcded7;
}
body.light-theme { --bg-page: var(--asym-paper); --text-muted: #5b6b76; }
body.dark-theme { --asym-paper: #081624; --asym-ink: #c8ecff; --asym-rule: #25435a; }
.main-content { max-width: 1440px !important; padding: 36px 40px 72px !important; }
.main-content > * { min-width: 0; }
header#mainHeader.brand-header { height: 72px !important; padding-inline: 32px !important; box-shadow: none !important; }
.sub-header-nav-inner { max-width: 1360px; margin-inline: auto; }
.top-nav-item { min-height: 52px; }
.top-nav-item.on { color: var(--navy) !important; border-bottom-color: var(--gold) !important; background: var(--navy-light) !important; }
.asym-hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, .8fr); gap: 48px; padding-block: 12px 36px; border-bottom: 1px solid var(--asym-rule); margin-bottom: 28px; }
.asym-eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 18px; }
.asym-hero h2 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.15; font-weight: 900; letter-spacing: -1.8px; color: var(--asym-ink); margin-bottom: 18px; }
.asym-hero h2 span { color: #a56105; }
body.dark-theme .asym-hero h2 span { color: var(--gold); }
.asym-hero-copy > p { max-width: 540px; font-size: 15px; color: var(--text-muted); line-height: 1.9; }
.asym-date { display: block; font-size: 12px; color: var(--text-muted); margin-top: 20px; }
.asym-hero-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; padding-inline-start: 32px; border-inline-start: 1px solid var(--asym-rule); gap: 10px; }
.asym-section-number { color: var(--text-muted); font-size: 12px; margin-bottom: auto; padding-bottom: 24px; }
.asym-hero-actions .btn { justify-content: space-between; padding: 13px 18px; min-height: 48px; border-radius: 9px; }
.asym-hero-actions p { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.8; }
.asym-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.asym-section-heading h3 { font-size: 18px; color: var(--asym-ink); }
.asym-section-heading > span { font-size: 12px; color: var(--text-muted); }
.asym-metrics.stats-grid-3 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; gap: 16px !important; }
.asym-metrics > .stat-card { grid-column: span 4; min-height: 156px; border-radius: 14px !important; padding: 24px !important; box-shadow: none !important; }
.asym-metrics > .stat-card:first-child { grid-column: span 7; grid-row: span 2; background: #003e59 !important; border-color: #003e59 !important; padding: 32px !important; min-height: 320px; }
.asym-metrics > .stat-card:nth-child(2), .asym-metrics > .stat-card:nth-child(3) { grid-column: span 5; }
.asym-metrics > .stat-card:first-child > div { height: 100%; }
.asym-metrics > .stat-card:first-child > div > div:first-child { display: flex; flex-direction: column; height: 100%; flex: 1; }
.asym-metrics > .stat-card:first-child .stat-card-label,
.asym-metrics > .stat-card:first-child .stat-big-number,
.asym-metrics > .stat-card:first-child .stat-big-number span { color: #fff !important; }
.asym-metrics > .stat-card:first-child .stat-big-number { margin-block: auto 18px !important; font-size: clamp(56px, 6vw, 84px) !important; }
.asym-metrics > .stat-card:first-child > div > div:first-child > div:last-child { color: #c8e0eb !important; }
.asym-metrics > .stat-card:first-child .stat-icon-wrapper { background: #ffffff18 !important; color: #ffd38e !important; flex-shrink: 0; }
.asym-metrics > .stat-card:first-child .trend-badge { background: #ffffff18; color: #b8f3d7; }
.asym-metrics .stat-card > div { gap: 12px; }
.asym-metrics .stat-card > div > div:first-child { min-width: 0; flex: 1; }
.asym-metrics .stat-card-label { line-height: 1.6; }
.asym-metrics .stat-icon-wrapper { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.asym-metrics .trend-badge { white-space: nowrap; }
.asym-metrics > .stat-card:hover { transform: translateY(-3px) !important; }
.asym-lower { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); gap: 20px; align-items: stretch; }
.asym-lower .fintech-analytics-card { margin: 0 !important; box-shadow: none !important; border-radius: 14px !important; min-width: 0; padding: 28px !important; }
.asym-lower .fintech-analytics-card > div:first-child { align-items: flex-start !important; flex-wrap: wrap; gap: 16px; }
.asym-lower .bar-chart-container { height: 210px; gap: 10px; }
.asym-lower .chart-label { white-space: normal; font-size: 11px; text-align: center; }
.asym-workbench { background: var(--gold-light); border: 1px solid var(--gold-border); padding: 28px; border-radius: 14px; }
.asym-workbench .asym-eyebrow { color: var(--text-muted); margin-bottom: 6px; }
.asym-workbench h3 { font-size: 25px; color: var(--asym-ink); margin-bottom: 20px; }
.asym-workbench > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px; color: var(--asym-ink); border-top: 1px solid var(--gold-border); }
.asym-workbench > a b { display: block; font-size: 14px; }
.asym-workbench > a small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.asym-workbench > a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.asym-workbench-note { margin-top: 18px; color: var(--text-muted); font-size: 12px; }
.page-header { padding: 12px 0 28px; margin-bottom: 24px; border-bottom: 1px solid var(--asym-rule); gap: 28px; align-items: flex-end; }
.page-header > div:first-child { flex: 1 1 55%; max-width: 760px; border-inline-start: 4px solid var(--gold); padding-inline-start: 20px; }
.page-header h2 { font-size: clamp(26px, 3vw, 40px) !important; color: var(--asym-ink); line-height: 1.4; }
.page-header p { margin-top: 10px; line-height: 1.8; }
.page-header > div:last-child { flex-wrap: wrap; }
.filter-bar { border-radius: 12px; box-shadow: none; padding: 16px; background: var(--bg-card); }
.carbon-search-box { min-width: min(280px, 100%); }
.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; align-items: stretch !important; gap: 20px !important; }
.cards-grid-3 > * { min-width: 0; border-radius: 14px !important; }
/* Equal borders on all cards */
.asym-login.login-wrapper { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); max-width: 1120px; text-align: start; padding: 0; overflow: hidden; border: 0; box-shadow: var(--shadow-card); margin: 24px auto; }
.asym-login-story { background: #003e59; color: #fff; padding: 54px 40px; display: flex; flex-direction: column; align-items: flex-start; }
.asym-login-story .asym-eyebrow { color: #c8e0eb; }
.asym-login-story h1 { font-size: clamp(32px, 3.7vw, 52px); font-weight: 900; line-height: 1.4; margin: 10px 0 24px; }
.asym-login-story h1 span { color: #ffd38e; }
.asym-login-story p { color: #c8e0eb; line-height: 1.9; max-width: 320px; font-size: 15px; }
.asym-login-index { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid #ffffff35; padding-top: 20px; margin-top: auto; font-size: 11px; color: #d6e9f1; }
.asym-login .login-card { padding: 44px 32px; text-align: start; display: flex; flex-direction: column; justify-content: center; min-width: 0; background: var(--bg-card); }
.asym-login .login-logo { height: 60px; max-width: 180px; object-position: right; margin-bottom: 24px; }
.asym-login .login-card h2 { line-height: 1.6; font-size: 23px; }
.asym-login .login-card p { margin-bottom: 16px; }
a:focus-visible, button:focus-visible, [role="link"]:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 4px; }
@media (max-width: 1050px) {
  .main-content { padding-inline: 24px !important; }
  .asym-lower { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); }
  .asym-metrics > .stat-card { padding: 20px !important; }
  .asym-metrics .trend-badge { display: none; }
  .cards-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cards-grid-3 > :nth-child(3n + 1) { border-top-width: 1px !important; }
  /* Equal borders */
}
@media (max-width: 760px) {
  header#mainHeader.brand-header { height: auto !important; min-height: 72px; padding: 12px 16px !important; flex-wrap: wrap; gap: 12px; }
  .brand-box { flex: 1; min-width: 0; }
  .header-search-wrapper { order: 3; flex-basis: 100%; margin: 0; }
  .header-actions { gap: 6px; flex-wrap: wrap; }
  .user-info { display: none; }
  .main-content { padding: 24px 16px 64px !important; }
  .asym-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .asym-hero-actions { border-inline-start: 0; padding-inline-start: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .asym-hero-actions .btn { padding: 12px; justify-content: center; font-size: 13px; }
  .asym-hero-actions .asym-section-number, .asym-hero-actions p { display: none; }
  .asym-metrics.stats-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .asym-metrics > .stat-card:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 240px; padding: 26px !important; }
  .asym-metrics > .stat-card { grid-column: auto !important; min-height: 155px; padding: 18px !important; }
  .asym-metrics > .stat-card:first-child { grid-column: 1 / -1 !important; }
  .asym-metrics > .stat-card:nth-child(2) { grid-column: 1 / -1 !important; min-height: 130px; }
  .asym-metrics .stat-icon-wrapper { display: none; }
  .asym-metrics .stat-big-number { font-size: 28px !important; }
  .asym-metrics .stat-big-number span { font-size: 12px !important; }
  .asym-lower { grid-template-columns: minmax(0, 1fr); }
  .asym-lower .fintech-analytics-card { padding: 20px 14px !important; }
  .asym-lower .bar-chart-container { gap: 6px; }
  .asym-lower .chart-label { font-size: 10px; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header > div:first-child { flex-basis: auto; }
  .page-header > div:last-child { flex-wrap: wrap; }
  .filter-bar { flex-wrap: wrap; }
  .filter-bar .carbon-search-box { flex-basis: 100% !important; max-width: none !important; }
  .cards-grid-3 { grid-template-columns: minmax(0, 1fr) !important; }
  .asym-login.login-wrapper { grid-template-columns: minmax(0, 1fr); margin-block: 0; }
  .asym-login-story { padding: 32px 24px; }
  .asym-login-story h1 { font-size: 34px; line-height: 1.25; margin-bottom: 14px; }
  .asym-login-index { margin-top: 12px; }
  .asym-login .login-card { padding: 28px 24px; }
  .footer-inner { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
