/*
  J.P. Morgan-inspired visual system.
  This file is appended after the base stylesheet when generating /jpmorgan-style/.
*/

@font-face {
  font-family: "Test Tiempos Fine";
  src: url("assets/fonts/TestTiemposFine-Light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Test Tiempos Fine";
  src: url("assets/fonts/TestTiemposFine-LightItalic.otf") format("opentype");
  font-display: swap;
  font-style: italic;
  font-weight: 300;
}

@font-face {
  font-family: "Test Tiempos Fine";
  src: url("assets/fonts/TestTiemposFine-Regular.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Test Tiempos Fine";
  src: url("assets/fonts/TestTiemposFine-RegularItalic.otf") format("opentype");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

:root {
  --jpm-white: #ffffff;
  --jpm-paper: #f4efe7;
  --jpm-paper-soft: #faf7f2;
  --jpm-ink: #000000;
  --jpm-charcoal: #202020;
  --jpm-brown: #8f5a39;
  --jpm-brown-dark: #5a321d;
  --jpm-line: rgba(143, 90, 57, 0.36);
  --serif: "Test Tiempos Fine", "Tiempos Fine", Tiempos, Queens, Aldine, "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", serif;
  --sans: OpenSans, Swiss, Sons, -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --black: var(--jpm-white);
  --espresso: var(--jpm-white);
  --espresso-soft: var(--jpm-paper);
  --cream: var(--jpm-paper);
  --cream-warm: var(--jpm-ink);
  --line: var(--jpm-line);
  --text: var(--jpm-ink);
  --muted: #4d4037;
}

html[data-theme="dark"] {
  --jpm-white: #1d1d1c;
  --jpm-paper: #262625;
  --jpm-paper-soft: #2c2c2a;
  --jpm-ink: #ece4d6;
  --jpm-charcoal: #131312;
  --jpm-brown: #b9825c;
  --jpm-brown-dark: #d8b392;
  --jpm-line: rgba(236, 228, 214, 0.18);
  --muted: #c8bfb1;
}

body {
  background: var(--jpm-white);
  color: var(--jpm-ink);
  font-family: var(--sans);
  transition: background 560ms cubic-bezier(0.22, 1, 0.36, 1), color 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header {
  min-height: 84px;
  padding-left: clamp(28px, 3vw, 48px);
  padding-right: clamp(28px, 3vw, 48px);
  padding-top: 8px;
  border-top: 0;
  border-bottom: 1px solid #e6ded4;
  background: rgba(255, 255, 255, 0.96);
  color: var(--jpm-ink);
  backdrop-filter: blur(12px);
  transition: background 420ms cubic-bezier(0.22, 1, 0.36, 1), border-color 420ms cubic-bezier(0.22, 1, 0.36, 1), color 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 8px;
  background: var(--jpm-brown);
  transform: scaleX(0);
  transform-origin: left center;
  animation: header-bar-load 620ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
  transition: background-color 680ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

@keyframes header-bar-load {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

body.page-enter-replay .site-header::before {
  animation: header-bar-replay 620ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

@keyframes header-bar-replay {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.has-scrolled .site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(143, 90, 57, 0.26);
  box-shadow: 0 10px 28px rgba(32, 32, 32, 0.08);
  backdrop-filter: blur(22px) saturate(1.15);
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(236, 228, 214, 0.14);
  background: rgba(48, 48, 46, 0.82);
}

html[data-theme="dark"] .has-scrolled .site-header {
  background: rgba(48, 48, 46, 0.68);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.brand {
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
}

.nav {
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 300;
  gap: clamp(14px, 1.35vw, 24px);
}

.jpm-theme .desktop-nav {
  flex: 1 1 auto;
  width: auto;
}

.nav a,
.nav summary {
  opacity: 1;
  text-decoration-color: transparent;
}

.nav a:hover,
.nav summary:hover,
.nav .active {
  color: var(--jpm-brown-dark);
  text-decoration-color: currentColor;
}

.nav summary::after {
  color: var(--jpm-brown);
}

.nav-menu {
  border: 1px solid #e6ded4;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 48px rgba(32, 32, 32, 0.13);
}

html[data-theme="dark"] .nav-menu {
  border-color: rgba(185, 130, 92, 0.26);
  background: rgba(24, 18, 15, 0.98);
}

.socials {
  font-family: var(--serif);
  font-weight: 400;
  gap: 12px;
}

.linkedin-icon {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.mail-icon {
  font-size: 22px;
}

.theme-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px 0 8px;
  border: 1px solid rgba(143, 90, 57, 0.42);
  border-radius: 999px;
  background: rgba(244, 239, 231, 0.72);
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
  border-color: var(--jpm-brown);
  background: var(--jpm-brown);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--jpm-ink);
}

.theme-toggle-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--jpm-white);
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle-icon {
  display: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--jpm-brown);
}

html[data-theme="light"] .theme-toggle-icon[data-theme-icon="moon"] {
  display: inline-block;
}

html[data-theme="dark"] .theme-toggle-icon[data-theme-icon="sun"] {
  display: inline-block;
  color: var(--jpm-brown-dark);
}

.theme-toggle:hover .theme-toggle-icon,
.theme-toggle:focus .theme-toggle-icon {
  color: #ffffff;
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(185, 130, 92, 0.5);
  background: rgba(33, 24, 18, 0.78);
  color: #f8efe5;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus {
  border-color: var(--jpm-brown);
  background: var(--jpm-brown);
  color: #ffffff;
}

html[data-theme="dark"] .theme-toggle-track {
  background: var(--jpm-brown);
}

html[data-theme="dark"] .theme-toggle-dot {
  transform: translateX(14px);
  background: var(--jpm-charcoal);
}

.dark-band {
  background: var(--jpm-white);
  color: var(--jpm-ink);
  transition: background 560ms cubic-bezier(0.22, 1, 0.36, 1), color 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cream-band {
  background: var(--jpm-paper);
  color: var(--jpm-ink);
  transition: background 560ms cubic-bezier(0.22, 1, 0.36, 1), color 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.charcoal-band {
  background: #1d1d1c;
  color: #ece4d6;
  transition: background 560ms cubic-bezier(0.22, 1, 0.36, 1), color 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.charcoal-band .profile-intro {
  border-top-color: rgba(236, 228, 214, 0.18);
}

.charcoal-band .profile-intro h2 {
  color: #ece4d6;
}

.charcoal-band .profile-intro p,
.charcoal-band .progression-content p {
  color: #c8bfb1;
}

.charcoal-band .progression-marker {
  color: var(--jpm-brown-dark);
}

.charcoal-band .progression-content > span {
  color: #b9a795;
}

.charcoal-band .progression-content h3 {
  color: #ece4d6;
}

.charcoal-band .progression-content h4 {
  color: var(--jpm-brown-dark);
}

.charcoal-band .progression-item {
  border-color: rgba(236, 228, 214, 0.12);
}

.charcoal-band .progression-item:hover {
  background: rgba(236, 228, 214, 0.05);
}

.charcoal-band .progression-logo {
  border-color: rgba(236, 228, 214, 0.18);
  background: #f4efe7;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.home-hero,
.page-hero,
.report-hero {
  padding-top: 68px;
}

.home-hero h1,
.page-hero h1,
.report-hero h1,
.section-head h2,
.home-hero h2 {
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-weight: 300;
}

.home-hero h1,
.page-hero h1 {
  font-size: clamp(66px, 7vw, 104px);
}

.jpm-theme .report-group .section-head {
  border-color: var(--jpm-line);
}

.jpm-theme .report-group .section-head span,
.jpm-theme .report-card-number,
.jpm-theme .report-card-action {
  color: var(--jpm-brown);
  font-family: var(--serif);
  font-weight: 300;
}

.jpm-theme .report-group .section-head h2,
.jpm-theme .report-card-title {
  color: currentColor;
  font-family: var(--serif);
  font-weight: 300;
}

.jpm-theme .report-group .section-head p,
.jpm-theme .report-card-description {
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-family: var(--sans);
}

.report-hero h1 {
  font-size: clamp(54px, 5.1vw, 78px);
  max-width: 1160px;
}

.home-hero hr,
.page-hero hr,
.report-hero hr,
.report-copy,
.about-kicker {
  border-color: var(--jpm-line);
}

.section-head,
.home-hero {
  position: relative;
}

.section-head .wrap,
.home-hero .wrap,
.page-hero .wrap,
.report-hero .wrap {
  position: relative;
}

.section-head .wrap::before,
.home-hero .wrap::before,
.report-hero .wrap::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 24px;
  background: var(--jpm-brown);
}

.home-hero .wrap::before {
  margin-bottom: 30px;
}

.featured-intro {
  padding: clamp(42px, 5vw, 72px) 0 0;
  background: var(--jpm-white);
  color: var(--jpm-ink);
}

.featured-intro-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 0;
  align-items: end;
  padding: 0 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--jpm-line);
}

.featured-intro-block::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  width: 56px;
  height: 4px;
  margin-bottom: 30px;
  background: var(--jpm-brown);
}

.featured-intro-block h1 {
  max-width: 980px;
  margin: 0;
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-size: clamp(52px, 6.2vw, 96px);
  font-weight: 300;
  line-height: 0.98;
}

.featured-intro-block p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #3f403d;
  font-family: var(--sans);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.55;
}

.featured-intro-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: flex-end;
  width: min(100%, 560px);
  border-top: 1px solid var(--jpm-line);
  border-bottom: 1px solid var(--jpm-line);
}

.featured-intro-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 0 clamp(14px, 1.6vw, 22px);
  color: var(--jpm-ink);
  border-left: 1px solid var(--jpm-line);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 320ms cubic-bezier(0.22, 1, 0.36, 1), background-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-intro-actions a:first-child {
  border-left: 0;
}

.featured-intro-actions a::after {
  content: "";
  position: absolute;
  left: clamp(14px, 1.6vw, 22px);
  right: clamp(14px, 1.6vw, 22px);
  bottom: -1px;
  height: 3px;
  background: var(--jpm-brown);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-intro-actions span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--jpm-line);
  border-radius: 999px;
  color: var(--jpm-brown);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms cubic-bezier(0.22, 1, 0.36, 1), background-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-intro-actions a:hover,
.featured-intro-actions a:focus-visible {
  color: var(--jpm-brown-dark);
}

.featured-intro-actions a:hover::after,
.featured-intro-actions a:focus-visible::after {
  transform: scaleX(1);
}

.featured-intro-actions a:hover span,
.featured-intro-actions a:focus-visible span {
  transform: translateX(6px);
  border-color: var(--jpm-brown);
  background: rgba(143, 90, 57, 0.08);
}

.section-head p,
.home-hero p,
.report-copy p,
.about-copy p {
  color: var(--jpm-ink);
}

.section-head p,
.home-hero p {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
}

.report-tools {
  padding: 20px;
  border: 1px solid #dce0dd;
  background: var(--jpm-paper-soft);
  transition: background 560ms cubic-bezier(0.22, 1, 0.36, 1), border-color 560ms cubic-bezier(0.22, 1, 0.36, 1), color 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.report-search span,
.report-filter-label,
.report-sort span,
.report-count {
  color: #555c58;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.report-search input,
.report-sort select {
  min-height: 46px;
  border: 1px solid #cbd2ce;
  background: var(--jpm-white);
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 15px;
}

.report-search input::placeholder {
  color: #737b76;
}

.report-sort option {
  background: var(--jpm-white);
  color: var(--jpm-ink);
}

.report-search input:focus,
.report-sort select:focus {
  border-color: var(--jpm-brown);
  outline: 2px solid rgba(143, 90, 57, 0.16);
}

.report-filters button {
  border-color: #cbd2ce;
  background: var(--jpm-white);
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.report-filters button:hover,
.report-filters button:focus-visible,
.report-filters button.is-active {
  border-color: var(--jpm-brown);
  background: var(--jpm-brown);
  color: #ffffff;
}

.report-empty {
  background: var(--jpm-paper);
  color: var(--jpm-ink);
  font-family: var(--sans);
}

.featured-reports {
  background: var(--jpm-white);
  color: var(--jpm-ink);
}

.featured-carousel-copy h2 {
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-weight: 300;
}

.featured-carousel-copy {
  background: var(--jpm-white);
}

.featured-report-eyebrow,
.featured-carousel-copy p,
.featured-carousel-controls,
.featured-report-action {
  color: var(--jpm-ink);
  font-family: var(--sans);
}

.featured-report-eyebrow {
  color: var(--jpm-brown);
}

.featured-report-index {
  color: var(--jpm-brown);
  font-family: var(--serif);
  font-weight: 300;
}

.featured-carousel-media {
  background: var(--jpm-white);
  box-shadow: none;
}

.featured-carousel-copy p {
  color: #3f403d;
}

.featured-image-mark {
  background: rgba(255, 255, 255, 0.88);
  color: var(--featured-accent, var(--jpm-brown));
  font-family: var(--sans);
}

.featured-report-action {
  border-color: transparent;
  background: #b9e6fb;
  color: var(--jpm-ink);
}

html[data-theme="dark"] .featured-report-action {
  color: #0a0a0a;
}

.featured-report-action:hover,
.featured-report-action:focus-visible,
.featured-carousel-controls button:hover,
.featured-carousel-controls button:focus-visible {
  background: var(--jpm-brown);
  color: #ffffff;
  border-color: var(--jpm-brown);
}

.featured-carousel-dots button {
  color: rgba(143, 90, 57, 0.62);
}

.featured-carousel-dots button.is-active {
  color: var(--jpm-brown);
}

.featured-intro-block,
.featured-carousel-copy,
.featured-carousel-media,
.featured-intro,
.featured-reports,
.report-block,
.about-block,
.profile-block,
.report-detail-block,
.slide-gallery-block,
.report-feature-list .report-card-media::before,
.jpm-theme .report-feature-list .report-card-media::before {
  transition: background-color 680ms cubic-bezier(0.22, 1, 0.36, 1), color 680ms cubic-bezier(0.22, 1, 0.36, 1), border-color 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.theme-transition body,
html.theme-transition .site-header,
html.theme-transition .site-header::before,
html.theme-transition .mobile-panel,
html.theme-transition .featured-intro,
html.theme-transition .featured-intro-block,
html.theme-transition .featured-carousel-copy,
html.theme-transition .featured-carousel-media,
html.theme-transition .featured-reports,
html.theme-transition .report-block,
html.theme-transition .about-block,
html.theme-transition .profile-block,
html.theme-transition .report-detail-block,
html.theme-transition .slide-gallery-block,
html.theme-transition .report-feature-list .report-card-media::before {
  transition-duration: 680ms !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.report-card[data-featured="true"]::after {
  color: var(--jpm-brown);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="dark"] .report-tools {
  border-color: rgba(185, 130, 92, 0.24);
  background: var(--jpm-paper-soft);
}

html[data-theme="dark"] .report-search span,
html[data-theme="dark"] .report-sort span,
html[data-theme="dark"] .report-count {
  color: #c7bbb0;
}

html[data-theme="dark"] .report-search input,
html[data-theme="dark"] .report-sort select,
html[data-theme="dark"] .report-filters button {
  border-color: rgba(185, 130, 92, 0.28);
  background: var(--jpm-white);
  color: var(--jpm-ink);
}

html[data-theme="dark"] .report-filters button:hover,
html[data-theme="dark"] .report-filters button:focus-visible,
html[data-theme="dark"] .report-filters button.is-active {
  border-color: var(--jpm-brown);
  background: var(--jpm-brown);
  color: #ffffff;
}

html[data-theme="dark"] .report-search input::placeholder {
  color: #a4968b;
}

html[data-theme="dark"] .report-sort option {
  background: var(--jpm-paper);
  color: var(--jpm-ink);
}

.report-block {
  background: var(--jpm-paper);
}

.report-block-charcoal {
  background: #202020;
  color: #ffffff;
}

.report-block-charcoal .report-card-number,
.report-block-charcoal .report-card-action {
  color: #d8b392;
}

.report-block-charcoal .report-card-kicker,
.report-block-charcoal .report-card-description,
.report-block-charcoal .section-head p {
  color: rgba(255, 255, 255, 0.74);
}

.slide-gallery {
  background: var(--jpm-paper);
}

.report-card {
  color: var(--jpm-ink);
  border-color: var(--jpm-line);
}

.report-block-charcoal .report-card {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.report-card::before {
  background: rgba(255, 255, 255, 0.58);
}

.report-card-media,
.report-card img,
.slide-card {
  background: var(--jpm-white);
  box-shadow: 0 10px 26px rgba(32, 32, 32, 0.08);
}

.report-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.76));
  color: #ffffff;
  font-family: var(--serif);
}

.report-card-title {
  font-weight: 300;
}

.report-card-action {
  border-color: rgba(255, 255, 255, 0.56);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

html[data-theme="dark"] .report-card::before {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .report-card-media,
html[data-theme="dark"] .report-card img,
html[data-theme="dark"] .slide-card {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .report-card-overlay {
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.05), rgba(15, 12, 10, 0.84));
}

.report-card figcaption {
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.report-card-kicker {
  color: #6a625d;
  font-family: var(--sans);
  font-weight: 800;
}

.report-card:hover figcaption {
  color: var(--jpm-brown-dark);
  text-decoration: none;
}

.report-card:hover .report-card-title,
.report-card:focus-visible .report-card-title {
  color: var(--jpm-brown-dark);
}

.report-block-charcoal .report-card:hover .report-card-title,
.report-block-charcoal .report-card:focus-visible .report-card-title {
  color: #d8b392;
}

html[data-theme="dark"] .jpm-theme .report-group .section-head p,
html[data-theme="dark"] .jpm-theme .report-card-description,
html[data-theme="dark"] .report-card-kicker {
  color: #c8bfb1;
}

.about-layout {
  background: transparent;
}

.about-photo {
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(32, 32, 32, 0.12);
}

.about-kicker {
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 20px;
}

.about-kicker div:first-child {
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.08;
}

.about-copy p {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.42;
}

.about-proof-stats {
  border-color: var(--jpm-line);
}

.about-proof-stats .profile-stat {
  border-color: rgba(143, 90, 57, 0.24);
}

.about-copy .copy-passage {
  color: var(--jpm-brown-dark);
  font-weight: 400;
}

.profile-details {
  background: var(--jpm-paper);
  color: var(--jpm-ink);
}

.profile-intro,
.profile-stats,
.progression-shell,
.progression-item,
.profile-panel {
  border-color: var(--jpm-line);
}

.profile-intro h2,
.profile-stat strong,
.progression-marker,
.progression-content h3,
.profile-panel h2 {
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-weight: 300;
}

.profile-intro p,
.profile-stat span,
.progression-content > span,
.progression-content h4,
.progression-content p,
.profile-panel h3,
.profile-panel p,
.profile-panel li,
.skill-cloud span {
  color: var(--jpm-ink);
  font-family: var(--sans);
}

.profile-intro p,
.progression-content p {
  color: #3f403d;
}

.profile-stat {
  border-color: rgba(143, 90, 57, 0.24);
}

.profile-stat strong,
.progression-marker {
  color: var(--jpm-brown);
}

.progression-item {
  will-change: transform;
  transition: background-color 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progression-item.reveal.is-visible {
  transition: opacity 700ms ease var(--reveal-delay, 0ms), background-color 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progression-logo {
  border-color: rgba(143, 90, 57, 0.28);
  background: var(--jpm-white);
  color: var(--jpm-brown);
  box-shadow: 0 8px 18px rgba(32, 32, 32, 0.08);
  font-family: var(--sans);
  text-transform: uppercase;
}

.profile-mini-logo {
  border-color: rgba(143, 90, 57, 0.28);
  background: var(--jpm-white);
}

.progression-item:hover,
.progression-item:focus-within {
  background: rgba(143, 90, 57, 0.055);
  transform: translateX(10px);
}

.progression-content > span {
  color: #6a635c;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progression-content h4 {
  color: var(--jpm-brown-dark);
  font-weight: 700;
}

.profile-panel h3 {
  font-weight: 700;
}

.profile-credential-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--jpm-line);
  border-bottom: 1px solid var(--jpm-line);
}

.profile-credential-grid .profile-panel-wide {
  grid-row: auto;
}

.profile-credential-grid .profile-panel {
  display: block;
  min-width: 0;
  padding: clamp(30px, 3.4vw, 46px) 0;
  border-top: 0;
}

.profile-credential-grid .profile-panel:nth-child(odd) {
  padding-right: clamp(24px, 3.4vw, 52px);
  border-right: 1px solid var(--jpm-line);
}

.profile-credential-grid .profile-panel:nth-child(even) {
  padding-left: clamp(24px, 3.4vw, 52px);
}

.profile-credential-grid .profile-panel:nth-child(n + 3) {
  border-top: 1px solid var(--jpm-line);
}

.profile-panel-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  margin-bottom: 24px;
}

.profile-panel-heading > span {
  color: var(--jpm-brown);
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 0.9;
}

.profile-panel-heading h2 {
  margin: 0;
}

.profile-panel-body {
  display: block;
  min-width: 0;
}

.profile-credential-row,
.profile-index-row {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(143, 90, 57, 0.22);
  transition: background-color 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-credential-row {
  grid-template-columns: 48px minmax(0, 1fr);
}

.profile-index-row {
  grid-template-columns: 52px minmax(0, 1fr);
}

.profile-credential-row:first-of-type,
.profile-index-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-credential-row:hover,
.profile-credential-row:focus-within,
.profile-index-row:hover,
.profile-index-row:focus-within {
  background: rgba(143, 90, 57, 0.045);
  transform: translateX(8px);
}

.profile-mini-logo {
  width: 42px;
  height: 42px;
  align-self: start;
}

.profile-row-label {
  display: block;
  margin-bottom: 8px;
  color: var(--jpm-brown);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-index-number {
  color: var(--jpm-brown);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 300;
  line-height: 0.95;
}

.profile-credential-copy h3,
.profile-index-copy h3 {
  margin: 0;
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  line-height: 1.08;
}

.profile-credential-copy p,
.profile-index-copy p {
  margin: 8px 0 0;
  color: #3f403d;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.42;
}

.profile-credential-copy .profile-row-detail {
  color: #6a635c;
}

.skill-cloud span {
  border-color: var(--jpm-line);
  background: rgba(255, 255, 255, 0.38);
  font-weight: 700;
}

html[data-theme="dark"] .profile-details {
  background: var(--jpm-paper);
}

html[data-theme="dark"] .profile-intro p,
html[data-theme="dark"] .progression-content p,
html[data-theme="dark"] .progression-content > span {
  color: #d6c9be;
}

html[data-theme="dark"] .progression-item:hover,
html[data-theme="dark"] .progression-item:focus-within {
  background: rgba(185, 130, 92, 0.1);
}

html[data-theme="dark"] .profile-credential-grid,
html[data-theme="dark"] .profile-credential-grid .profile-panel:nth-child(n + 2),
html[data-theme="dark"] .profile-credential-grid .profile-panel:nth-child(odd),
html[data-theme="dark"] .profile-credential-row,
html[data-theme="dark"] .profile-index-row {
  border-color: rgba(216, 179, 146, 0.2);
}

html[data-theme="dark"] .profile-credential-copy p,
html[data-theme="dark"] .profile-index-copy p,
html[data-theme="dark"] .profile-credential-copy .profile-row-detail {
  color: #d6c9be;
}

html[data-theme="dark"] .profile-credential-row:hover,
html[data-theme="dark"] .profile-credential-row:focus-within,
html[data-theme="dark"] .profile-index-row:hover,
html[data-theme="dark"] .profile-index-row:focus-within {
  background: rgba(185, 130, 92, 0.08);
}

html[data-theme="dark"] .skill-cloud span {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .featured-carousel-copy p {
  color: #d6c9be;
}

html[data-theme="dark"] .featured-intro-block p {
  color: #d6c9be;
}

html[data-theme="dark"] .featured-carousel-copy {
  background: var(--jpm-white);
}

html[data-theme="dark"] .featured-image-mark {
  background: rgba(15, 12, 10, 0.78);
  color: #ffffff;
}

html[data-theme="dark"] .featured-carousel-media {
  background: var(--jpm-paper-soft);
  box-shadow: none;
}

html[data-theme="dark"] .progression-logo {
  background: var(--jpm-paper-soft);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.report-meta {
  color: var(--jpm-brown);
  font-family: var(--serif);
  font-weight: 300;
}

.report-hero-grid {
  max-width: 1220px;
}

.report-hero-grid::before {
  margin-bottom: 0;
}

.report-title-panel h1 {
  margin-bottom: 0;
}

.report-context-panel {
  padding: 24px 0 0;
  border-top: 1px solid var(--jpm-line);
}

.report-back-link {
  border-color: var(--jpm-brown);
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.report-back-link:hover,
.report-back-link:focus-visible {
  background: var(--jpm-brown);
  color: #ffffff;
}

.report-meta .small {
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
}

.report-meta {
  gap: 14px;
  font-size: clamp(24px, 3vw, 36px);
}

.report-snapshot,
.report-snapshot-item,
.report-insight,
.gallery-heading {
  border-color: var(--jpm-line);
}

.report-snapshot-item span,
.report-insight span,
.gallery-heading p {
  color: var(--jpm-brown);
  font-family: var(--sans);
}

.report-snapshot-item strong {
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 16px;
}

.report-insight p,
.gallery-heading h2 {
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-weight: 300;
}

.report-copy p {
  max-width: none;
  width: 100%;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 300;
  line-height: 1.35;
}

.report-copy .copy-passage {
  color: var(--jpm-brown-dark);
  font-weight: 400;
  background: rgba(143, 90, 57, 0.1);
}

html[data-theme="dark"] .report-copy .copy-passage {
  background: rgba(185, 130, 92, 0.16);
}

.button {
  min-height: 52px;
  border: 1.5px solid var(--jpm-brown);
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
}

html[data-theme="dark"] .button {
  color: var(--jpm-ink);
}

.button:hover {
  background: var(--jpm-brown);
  color: #ffffff;
}

.slide-card img:hover,
.slide-card img:focus {
  box-shadow: 0 18px 34px rgba(32, 32, 32, 0.18);
}

.footer {
  background: var(--jpm-charcoal);
  color: var(--jpm-white);
}

.footer h3 {
  font-family: var(--serif);
  font-weight: 300;
}

.footer .email,
.footer .socials {
  color: var(--jpm-white);
  font-family: var(--sans);
}

.lightbox {
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-btn {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(32, 32, 32, 0.82);
  color: var(--jpm-white);
  font-family: var(--sans);
}

.lightbox-btn:hover,
.lightbox-btn:focus {
  background: var(--jpm-white);
  color: var(--jpm-ink);
}

.lightbox-count {
  color: var(--jpm-white);
  font-family: var(--sans);
}

@media (max-width: 1120px) {
  :root {
    --mobile-panel-top: 84px;
  }

  .mobile-menu-button {
    color: var(--jpm-ink);
  }

  .header-linkedin,
  .header-search-button {
    color: var(--jpm-ink);
  }

  .header-linkedin:hover,
  .header-linkedin:focus-visible,
  .header-search-button:hover,
  .header-search-button:focus-visible,
  .header-search-button[aria-expanded="true"] {
    color: var(--jpm-brown-dark);
  }

  .header-mobile-socials {
    color: var(--jpm-ink);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
  }

  .header-mobile-socials a:hover,
  .header-mobile-socials a:focus-visible {
    color: var(--jpm-brown-dark);
  }

.mobile-panel {
    background: var(--jpm-white);
    border-color: #e6ded4;
    box-shadow: 0 24px 48px rgba(32, 32, 32, 0.12);
    color: var(--jpm-ink);
    font-family: var(--serif);
    backdrop-filter: blur(18px);
  }

  .mobile-panel details {
    border-color: #e6ded4;
  }

  .mobile-panel .socials {
    margin: 8px 0 0;
  }

  html[data-theme="dark"] .mobile-panel {
    border-color: rgba(185, 130, 92, 0.22);
    background: rgba(15, 12, 10, 0.98);
  }

  html[data-theme="dark"] .mobile-panel details {
    border-color: rgba(185, 130, 92, 0.22);
  }

  .report-tools {
    padding: 12px;
  }

  .report-tools .report-filter-label {
    color: #6b635b;
    font-family: var(--sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .report-tools .report-filters button {
    color: var(--jpm-ink);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .report-tools .report-filters button:hover,
  .report-tools .report-filters button:focus-visible,
  .report-tools .report-filters button.is-active {
    color: #ffffff;
  }
}

@media (max-width: 820px) {
  :root {
    --mobile-panel-top: 100px;
  }

  .site-header {
    min-height: 100px;
  }

  .theme-toggle {
    padding-right: 10px;
  }

  .theme-toggle-text {
    display: none;
  }

  .home-hero h1,
  .page-hero h1,
  .report-hero h1 {
    font-size: clamp(48px, 13vw, 66px);
  }

  .section-head h2,
  .home-hero h2 {
    font-size: 40px;
  }

  .jpm-theme .report-group .section-head h2 {
    gap: 16px;
  }

  .about-copy p,
  .report-copy p {
    font-size: clamp(18px, 5.2vw, 20px);
    line-height: 1.38;
  }

  .report-insight p,
  .report-copy p {
    max-width: 100%;
  }
}

body[data-report-slug] main::before {
  content: none;
}

body[data-report-slug="altagas"] { --report-accent: #1a5276; }
body[data-report-slug="ameritrade"] { --report-accent: #0a6a4f; }
body[data-report-slug="ashfield-industries-dungaven-acquisition"] { --report-accent: #6e3a2c; }
body[data-report-slug="btma-og-data-to-drive-commercial-decisions"] { --report-accent: #4a2566; }
body[data-report-slug="cataraqui-building-supplies"] { --report-accent: #8b572a; }
body[data-report-slug="diamond"] { --report-accent: #5b8aa0; }
body[data-report-slug="dateflow"] { --report-accent: #2a7fb8; }
body[data-report-slug="galaxyresources"] { --report-accent: #2b3961; }
body[data-report-slug="griffiths-energy-international"] { --report-accent: #b25b1e; }
body[data-report-slug="hydroone"] { --report-accent: #0b2a5b; }
body[data-report-slug="lakeshore-plumbing"] { --report-accent: #166fa3; }
body[data-report-slug="markle"] { --report-accent: #555c4f; }
body[data-report-slug="newearth"] { --report-accent: #3e6e3a; }
body[data-report-slug="nfi-group"] { --report-accent: #5a2c8c; }
body[data-report-slug="parks-capital"] { --report-accent: #1f4e4a; }
body[data-report-slug="ptarmigan"] { --report-accent: #6e7a4f; }
body[data-report-slug="quintessentially-canadian"] { --report-accent: #c0392b; }
body[data-report-slug="rogers"] { --report-accent: #c8102e; }
body[data-report-slug="sanctions"] { --report-accent: #4d4d4d; }
body[data-report-slug="sde"] { --report-accent: #1f4e2a; }
body[data-report-slug="sdeonepager"] { --report-accent: #1f4e2a; }
body[data-report-slug="sketch"] { --report-accent: #d97706; }
body[data-report-slug="techmajority"] { --report-accent: #16a085; }
body[data-report-slug="the-lehman-brothers-collapse"] { --report-accent: #8b1a1a; }
body[data-report-slug="walmart"] { --report-accent: #0071ce; }
body[data-report-slug="westmillscarpet"] { --report-accent: #6f4423; }
body[data-report-slug="weyerhaeuser-beyond-lumber"] { --report-accent: #3a5a40; }
body[data-report-slug="windfarm"] { --report-accent: #4a90b8; }
body[data-report-slug="xeqt"] { --report-accent: #1f5fa3; }

/* Alternating image/text report rows (JPM-inspired) */
.report-feature-list {
  display: grid;
  gap: clamp(30px, 4.1vw, 76px);
  padding: clamp(34px, 4.2vw, 68px) 0;
}

.report-feature-list .report-card,
.report-block .report-feature-list .report-card,
.report-block-charcoal .report-feature-list .report-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3.5vw, 60px);
  align-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
}

.report-feature-list .report-card::before,
.report-feature-list .report-card::after {
  content: none;
  display: none;
}

.report-feature-list .report-card-number {
  display: none;
}

.report-feature-list .report-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  height: clamp(300px, 26vw, 430px);
  max-height: clamp(280px, 32vw, 500px);
  overflow: hidden;
  background: transparent;
  line-height: 0;
  transform: none;
}

.report-feature-list .report-card[data-slug="dateflow"] .report-card-media {
  height: clamp(290px, 24vw, 400px);
  max-height: clamp(280px, 30vw, 460px);
}

.report-feature-list .report-card-image-wrap {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  line-height: 0;
}

.report-feature-list .report-card-image-wrap::before,
.report-feature-list .report-card-image-wrap::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.report-feature-list .report-card-image-wrap::before {
  content: "";
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  transition: opacity 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.report-feature-list .report-card-image-wrap::after {
  content: "View report  \2192";
  top: 50%;
  left: 50%;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, calc(-50% + 12px));
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.report-feature-list .report-card-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
  transform: scale(1.001);
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1), filter 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.report-feature-list .report-card-media::before {
  content: none;
  display: none;
}

.report-feature-list .report-card-body {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 18px;
  align-content: center;
  padding: clamp(8px, 2vw, 32px) 0;
}

.report-feature-list .report-card:nth-child(even) .report-card-media {
  grid-column: 1;
}

.report-feature-list .report-card:nth-child(even) .report-card-media::before {
  left: auto;
  right: 0;
}

.report-feature-list .report-card:nth-child(even) .report-card-body {
  grid-column: 2;
}

.report-feature-list .report-card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--jpm-brown);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-feature-list .report-card-title {
  display: block;
  margin: 0;
  color: var(--jpm-ink);
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 58px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.005em;
}

.report-feature-list .report-card-description {
  display: block;
  max-width: 60ch;
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.78;
}

.report-feature-list .report-card-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 6px;
  color: var(--jpm-brown);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
}

.report-feature-list .report-card-action span {
  display: inline-block;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.report-feature-list .report-card:hover .report-card-action span,
.report-feature-list .report-card:focus-visible .report-card-action span {
  transform: translateX(6px);
}

.report-feature-list .report-card:hover .report-card-media img,
.report-feature-list .report-card:focus-visible .report-card-media img {
  transform: scale(1.018);
  filter: saturate(1.05) contrast(1.03);
}

.report-feature-list .report-card:hover .report-card-image-wrap::before,
.report-feature-list .report-card:focus-visible .report-card-image-wrap::before {
  opacity: 1;
}

.report-feature-list .report-card:hover .report-card-image-wrap::after,
.report-feature-list .report-card:focus-visible .report-card-image-wrap::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.report-feature-list .report-card[data-featured="true"]::after {
  content: none;
}

.report-block-charcoal .report-feature-list .report-card-media::before,
.charcoal-band .report-feature-list .report-card-media::before {
  background-color: #1d1d1c;
}

.report-block-charcoal .report-feature-list .report-card-title,
.report-block-charcoal .report-feature-list .report-card-description,
.charcoal-band .report-feature-list .report-card-title,
.charcoal-band .report-feature-list .report-card-description {
  color: #ece4d6;
}

.report-block-charcoal .report-feature-list .report-card-kicker,
.report-block-charcoal .report-feature-list .report-card-action,
.charcoal-band .report-feature-list .report-card-kicker,
.charcoal-band .report-feature-list .report-card-action {
  color: var(--jpm-brown-dark);
}

@media (max-width: 880px) {
  .report-feature-list {
    gap: 56px;
    padding: 48px 0;
  }
  .report-block .report-feature-list .report-card,
  .report-block-charcoal .report-feature-list .report-card,
  .report-block .report-feature-list .report-card:nth-child(even),
  .report-block-charcoal .report-feature-list .report-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .report-block .report-feature-list .report-card .report-card-media,
  .report-block-charcoal .report-feature-list .report-card .report-card-media,
  .report-block .report-feature-list .report-card:nth-child(even) .report-card-media,
  .report-block-charcoal .report-feature-list .report-card:nth-child(even) .report-card-media {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    max-height: 360px;
  }
  .report-block .report-feature-list .report-card .report-card-body,
  .report-block-charcoal .report-feature-list .report-card .report-card-body,
  .report-block .report-feature-list .report-card:nth-child(even) .report-card-body,
  .report-block-charcoal .report-feature-list .report-card:nth-child(even) .report-card-body {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
  }
  .report-feature-list .report-card:nth-child(even) .report-card-media::before {
    left: 0;
    right: auto;
  }
  .report-feature-list .report-card-image-wrap {
    width: 100%;
    height: auto;
  }
  .report-feature-list .report-card-media img {
    height: auto;
  }
}

/* Contained JPM-style content blocks */
:root {
  --jpm-frame: min(1500px, calc(100% - 64px));
  --jpm-block-x: clamp(34px, 4.8vw, 70px);
  --jpm-block-y: clamp(40px, 5vw, 70px);
  --jpm-charcoal-panel: #202020;
  --jpm-charcoal-ink: #f5efe7;
  --jpm-charcoal-muted: #cfc5b8;
  --jpm-charcoal-accent: #d8b392;
}

.jpm-theme .featured-reports .wrap,
.jpm-theme .home-hero .wrap,
.jpm-theme .featured-intro-block,
.jpm-theme .report-block,
.jpm-theme .about-block,
.jpm-theme .profile-block,
.jpm-theme .report-detail-block,
.jpm-theme .slide-gallery-block {
  width: var(--jpm-frame) !important;
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
}

.jpm-theme .report-group,
.jpm-theme .featured-intro,
.jpm-theme .about-intro-section,
.jpm-theme .experience-band,
.jpm-theme .profile-details,
.jpm-theme .report-hero,
.jpm-theme .slide-gallery {
  background: var(--jpm-white);
}

.jpm-theme .report-block,
.jpm-theme .about-block,
.jpm-theme .profile-block-cream,
.jpm-theme .report-detail-block,
.jpm-theme .slide-gallery-block {
  --block-bg: var(--jpm-paper);
  background: var(--jpm-paper);
}

.jpm-theme .report-block-charcoal,
.jpm-theme .profile-block-charcoal {
  --block-bg: var(--jpm-charcoal-panel);
  background: var(--jpm-charcoal-panel);
  color: var(--jpm-charcoal-ink);
}

.jpm-theme .report-block {
  padding: var(--jpm-block-y) var(--jpm-block-x) clamp(30px, 4vw, 52px);
}

.jpm-theme .about-block.about-layout {
  padding: clamp(42px, 4.6vw, 64px) var(--jpm-block-x);
}

.jpm-theme .experience-band {
  padding: 0 0 44px;
}

.jpm-theme .profile-details {
  padding: 0 0 82px;
}

.jpm-theme .profile-block {
  padding: var(--jpm-block-y) var(--jpm-block-x);
}

.jpm-theme .report-hero {
  padding: 42px 0 44px;
}

.jpm-theme .report-detail-block.report-hero-grid {
  max-width: none;
  border-top: 12px solid var(--report-accent, var(--jpm-brown));
  padding: var(--jpm-block-y) var(--jpm-block-x);
}

.jpm-theme .slide-gallery {
  padding: 0 0 78px;
}

.jpm-theme .slide-gallery-block {
  padding: clamp(34px, 4vw, 56px) var(--jpm-block-x) var(--jpm-block-y);
}

.jpm-theme .report-block-charcoal .section-head,
.jpm-theme .profile-block-charcoal .profile-intro,
.jpm-theme .profile-block-charcoal .progression-shell,
.jpm-theme .profile-block-charcoal .progression-item {
  border-color: rgba(245, 239, 231, 0.2);
}

.jpm-theme .report-block-charcoal .section-head h2,
.jpm-theme .report-block-charcoal .report-feature-list .report-card-title,
.jpm-theme .profile-block-charcoal .profile-intro h2,
.jpm-theme .profile-block-charcoal .progression-content h3 {
  color: var(--jpm-charcoal-ink) !important;
}

.jpm-theme .report-block-charcoal .section-head p,
.jpm-theme .report-block-charcoal .report-feature-list .report-card-description,
.jpm-theme .profile-block-charcoal .profile-intro p,
.jpm-theme .profile-block-charcoal .progression-content p,
.jpm-theme .profile-block-charcoal .progression-content > span {
  color: var(--jpm-charcoal-muted) !important;
}

.jpm-theme .report-block-charcoal .section-head span,
.jpm-theme .report-block-charcoal .report-card-number,
.jpm-theme .report-block-charcoal .report-feature-list .report-card-kicker,
.jpm-theme .report-block-charcoal .report-feature-list .report-card-action,
.jpm-theme .profile-block-charcoal .progression-marker,
.jpm-theme .profile-block-charcoal .progression-content h4 {
  color: var(--jpm-charcoal-accent) !important;
}

.jpm-theme .report-block-charcoal .report-feature-list .report-card:hover .report-card-title,
.jpm-theme .report-block-charcoal .report-feature-list .report-card:focus-visible .report-card-title {
  color: var(--jpm-charcoal-accent) !important;
}

.jpm-theme .report-feature-list .report-card-media::before {
  top: auto;
  bottom: 0;
  left: 0;
  width: 1.375%;
  height: 80%;
  background-color: var(--block-bg, var(--jpm-paper));
  z-index: 4;
}

.jpm-theme .report-feature-list .report-card:nth-child(even) .report-card-media::before {
  left: auto;
  right: 0;
}

.jpm-theme .report-feature-list .report-card,
.jpm-theme .report-feature-list .report-card-body,
.jpm-theme .report-feature-list .report-card-media {
  min-width: 0;
}

.jpm-theme .report-feature-list .report-card-title,
.jpm-theme .report-feature-list .report-card-description {
  overflow-wrap: anywhere;
}

.jpm-theme .report-card-media,
.jpm-theme .report-card-media img,
.jpm-theme .slide-card,
.jpm-theme .slide-card img,
.jpm-theme .about-photo,
.jpm-theme .progression-logo,
.jpm-theme .profile-mini-logo {
  box-shadow: none !important;
}

.jpm-theme .slide-card img:hover,
.jpm-theme .slide-card img:focus {
  box-shadow: none !important;
}

.jpm-theme .report-insight {
  margin-top: 8px;
  padding: clamp(28px, 3.6vw, 48px);
  border: 0;
  background: var(--jpm-charcoal-panel);
  color: var(--jpm-charcoal-ink);
}

.jpm-theme .report-insight span {
  color: var(--jpm-charcoal-accent);
}

.jpm-theme .report-insight p {
  color: var(--jpm-charcoal-ink);
}

@media (max-width: 820px) {
  :root {
    --jpm-frame: calc(100% - 40px);
    --jpm-block-x: 24px;
    --jpm-block-y: 34px;
  }

  .jpm-theme .report-block,
  .jpm-theme .about-block.about-layout,
  .jpm-theme .profile-block,
  .jpm-theme .report-detail-block.report-hero-grid,
  .jpm-theme .slide-gallery-block {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--jpm-block-x);
    padding-right: var(--jpm-block-x);
  }

  .jpm-theme .featured-intro-block {
    padding-left: var(--jpm-block-x);
    padding-right: var(--jpm-block-x);
  }

  .jpm-theme .report-snapshot-item:first-child {
    padding-left: 0;
  }

  .profile-credential-grid {
    grid-template-columns: 1fr;
  }

  .profile-credential-grid .profile-panel,
  .profile-credential-grid .profile-panel:nth-child(odd),
  .profile-credential-grid .profile-panel:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  .profile-credential-grid .profile-panel:nth-child(n + 2) {
    border-top: 1px solid var(--jpm-line);
  }

  .profile-credential-row:hover,
  .profile-credential-row:focus-within,
  .profile-index-row:hover,
  .profile-index-row:focus-within,
  .progression-item:hover,
  .progression-item:focus-within {
    transform: translateX(6px);
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .featured-intro-block {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .featured-intro-actions {
    justify-content: flex-start;
  }

  .featured-carousel-track {
    min-height: calc(var(--featured-image-height) + 500px);
  }

  .featured-carousel-controls {
    top: auto;
    bottom: 36px;
    left: var(--featured-panel-left);
  }
}

@media (max-width: 720px) {
  .featured-intro {
    padding: 36px 0 0;
  }

  .featured-intro-block {
    grid-template-columns: 1fr;
    row-gap: 0;
    column-gap: 0;
    padding-bottom: 28px;
  }

  .featured-intro-block h1 {
    font-size: clamp(44px, 13vw, 60px);
  }

  .featured-intro-actions {
    display: none;
  }

  .featured-carousel {
    --featured-panel-top: calc(var(--featured-image-height) - clamp(48px, 15vw, 60px));
  }

  .featured-carousel-track {
    min-height: calc(var(--featured-image-height) + 430px);
  }

  .featured-carousel-copy {
    padding: 42px clamp(20px, 6vw, 28px) 38px;
    min-height: 464px;
  }

  .featured-carousel-copy > div {
    padding-top: 0;
  }

  .featured-carousel-controls {
    top: calc(var(--featured-panel-top) + 48px);
    left: auto;
    right: clamp(20px, 6vw, 28px);
    bottom: auto;
    z-index: 5;
    gap: 12px;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  :root {
    --jpm-frame: calc(100% - 24px);
    --jpm-block-x: 18px;
    --jpm-block-y: 28px;
  }

  .jpm-theme .report-feature-list .report-card-media::before {
    width: 1.65%;
  }

  .profile-panel-heading {
    gap: 12px;
    margin-bottom: 20px;
  }

  .profile-credential-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .profile-index-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .profile-mini-logo {
    width: 38px;
    height: 38px;
  }

  .jpm-theme .report-feature-list {
    gap: 46px;
  }

  .jpm-theme .report-feature-list .report-card-title {
    font-size: clamp(29px, 9.4vw, 38px);
  }

  .jpm-theme .report-feature-list .report-card-media {
    max-width: 100%;
    max-height: 320px;
  }

  .jpm-theme .report-feature-list .report-card-media img {
    max-height: 320px;
  }
}

/* JPM-style report filtering strip */
.jpm-theme .report-tools {
  display: grid;
  grid-template-columns: minmax(235px, 0.62fr) minmax(360px, 1.5fr) minmax(180px, 0.42fr);
  grid-template-areas:
    "filters search sort"
    "count search sort";
  gap: 0;
  align-items: stretch;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--jpm-line);
  border-bottom: 1px solid var(--jpm-line);
  background: transparent;
}

.jpm-theme .report-tools .report-filter-panel {
  grid-area: filters;
  gap: 12px;
  padding: 22px 28px 10px 0;
}

.jpm-theme .report-tools .report-search {
  grid-area: search;
  padding: 22px 28px;
  border-left: 1px solid var(--jpm-line);
}

.jpm-theme .report-tools .report-sort {
  grid-area: sort;
  padding: 22px 0 22px 28px;
  border-left: 1px solid var(--jpm-line);
}

.jpm-theme .report-tools .report-count {
  grid-area: count;
  align-self: end;
  padding: 0 28px 22px 0;
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.jpm-theme .report-tools .report-filter-label,
.jpm-theme .report-tools .report-search span,
.jpm-theme .report-tools .report-sort span {
  color: var(--jpm-brown);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.jpm-theme .report-tools .report-filters {
  gap: 8px;
}

.jpm-theme .report-tools .report-filters button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--jpm-line);
  background: transparent;
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.jpm-theme .report-tools .report-filters button:hover,
.jpm-theme .report-tools .report-filters button:focus-visible,
.jpm-theme .report-tools .report-filters button.is-active {
  border-color: var(--jpm-brown);
  background: var(--jpm-brown);
  color: #ffffff;
}

.jpm-theme .report-tools .report-search input,
.jpm-theme .report-tools .report-sort select {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--jpm-line);
  background: transparent;
  color: var(--jpm-ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 220ms ease, color 220ms ease;
}

.jpm-theme .report-tools .report-search input::placeholder {
  color: rgba(0, 0, 0, 0.48);
}

.jpm-theme .report-tools .report-search input:focus,
.jpm-theme .report-tools .report-sort select:focus {
  border-color: var(--jpm-brown);
  outline: 0;
}

@media (max-width: 1120px) {
  .jpm-theme .report-tools {
    grid-template-columns: 1fr;
    grid-template-areas:
      "filters"
      "search"
      "count";
    padding: 18px 0;
  }

  .jpm-theme .report-tools .report-filter-panel,
  .jpm-theme .report-tools .report-search,
  .jpm-theme .report-tools .report-count {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .jpm-theme .report-tools .report-filter-panel {
    padding-top: 0;
    padding-bottom: 0;
  }

  .jpm-theme .report-tools .report-search {
    padding-top: 16px;
    padding-bottom: 0;
  }

  .jpm-theme .report-tools .report-count {
    padding-top: 14px;
    padding-bottom: 0;
  }

  .jpm-theme .report-tools .report-sort {
    display: none;
  }

  .jpm-theme .report-tools .report-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .jpm-theme .report-tools .report-filters::-webkit-scrollbar {
    display: none;
  }
}

/* Desktop scale-down: render site at ~75-80% on large monitors so it does not overwhelm 16:9 displays */
@media (min-width: 1280px) {
  body {
    zoom: 0.85;
  }

  body.lightbox-open .lightbox {
    zoom: 1.1764705882;
  }
}

@media (min-width: 1600px) {
  body {
    zoom: 0.78;
  }

  body.lightbox-open .lightbox {
    zoom: 1.2820512821;
  }
}


/* Report slide gallery — editorial grid with featured first slide */
.slide-gallery .gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 0 0 22px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--jpm-line);
}

.slide-gallery .gallery-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--jpm-ink);
}

.slide-gallery .gallery-heading p {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jpm-brown);
}

.slides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.6vw, 30px);
  margin: 0;
  padding: 0;
  align-items: start;
}

.slides .slide-card {
  position: relative;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--jpm-line);
  overflow: hidden;
  align-self: start;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease;
}

.slides .slide-card.slide-card-feature {
  grid-column: 1 / -1;
  border-color: var(--jpm-brown);
}

.slides .slide-card::after {
  content: attr(data-slide-number);
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 9px;
  background: rgba(15, 12, 10, 0.78);
  color: #f8efe5;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: background 220ms ease;
}

.slides .slide-card.slide-card-feature::after {
  background: var(--jpm-brown);
}

.slides .slide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0) 70%, rgba(15, 12, 10, 0.18));
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.slides .slide-card:hover {
  transform: translateY(-3px);
  border-color: var(--jpm-brown);
  box-shadow: 0 22px 38px rgba(24, 22, 22, 0.14);
}

.slides .slide-card:hover::before,
.slides .slide-card:focus-within::before {
  opacity: 1;
}

.slides .slide-card img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  cursor: zoom-in;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
  margin: 0;
  padding: 0;
}

.slides .slide-card:hover img,
.slides .slide-card:focus-within img {
  transform: scale(1.04);
}

@media (max-width: 620px) {
  .slide-gallery .gallery-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .slides {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Reset any leftover slide-card image effects from base stylesheet */
.slides .slide-card img:hover,
.slides .slide-card img:focus {
  box-shadow: none;
}
