/*
  Market Forecast redesign stylesheet.
  Source of truth: latest design CSS from Hans (Trello card "Pages: Study Detail", 2026-10-07),
  which adds the Bootstrap theme overrides (--bs-primary, .btn-primary, .nav-link, forms, ...)
  and the study detail styles. The theme overrides apply to every page using _LayoutNew.cshtml.
  Keep this file in sync with MarketForecast.Redesign/assets/css/marketforecast.css.
*/

/* ==========================================================================
   Market Forecast Theme
   Bootstrap 5.3 + Font Awesome
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  --mf-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mf-font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mf-font-display: Georgia, "Times New Roman", serif;

  /* Market Forecast brand palette */
  --mf-navy: #1e3763;
  --mf-blue: #245e96;
  --mf-blue-light: #a5b6c8;
  --mf-gold: #cd9b3f;
  --mf-navy-dark: #072d4a;
  --mf-cyan: #50a9dd;
  --mf-slate: #536579;
  --mf-text: #162638;
  --mf-muted: #6b7d90;
  --mf-border: #dbe6ef;
  --mf-bg-soft: #f5f9fc;
  --mf-white: #ffffff;
  --mf-radius: .25rem;

  /* Bootstrap theme overrides */
  --bs-primary: var(--mf-navy);
  --bs-primary-rgb: 30, 55, 99;

  --bs-secondary: var(--mf-slate);
  --bs-secondary-rgb: 83, 101, 121;

  --bs-info: var(--mf-blue);
  --bs-info-rgb: 36, 94, 150;

  --bs-warning: var(--mf-gold);
  --bs-warning-rgb: 205, 155, 63;

  --bs-light: var(--mf-bg-soft);
  --bs-light-rgb: 245, 249, 252;

  --bs-dark: var(--mf-navy-dark);
  --bs-dark-rgb: 7, 45, 74;

  --bs-body-color: var(--mf-text);
  --bs-body-color-rgb: 22, 38, 56;

  --bs-secondary-color: var(--mf-muted);
  --bs-border-color: var(--mf-border);

  --bs-link-color: var(--mf-blue);
  --bs-link-color-rgb: 36, 94, 150;
  --bs-link-hover-color: var(--mf-navy);
  --bs-link-hover-color-rgb: 30, 55, 99;

  --bs-border-radius: var(--mf-radius);
  --bs-border-radius-sm: .2rem;
  --bs-border-radius-lg: .35rem;
  --bs-border-radius-xl: .5rem;
  --bs-border-radius-xxl: .75rem;
}

.btn-primary {
  --bs-btn-bg: var(--mf-navy);
  --bs-btn-border-color: var(--mf-navy);
  --bs-btn-hover-bg: var(--mf-navy-dark);
  --bs-btn-hover-border-color: var(--mf-navy-dark);
  --bs-btn-active-bg: var(--mf-navy-dark);
  --bs-btn-active-border-color: var(--mf-navy-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

.btn-outline-primary {
  --bs-btn-color: var(--mf-navy);
  --bs-btn-border-color: var(--mf-navy);
  --bs-btn-hover-bg: var(--mf-navy);
  --bs-btn-hover-border-color: var(--mf-navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--mf-navy);
  --bs-btn-active-border-color: var(--mf-navy);
}

.nav-pills {
  --bs-nav-pills-border-radius: var(--mf-radius);
  --bs-nav-pills-link-active-bg: var(--mf-navy);
}

.nav-link {
  --bs-nav-link-color: var(--mf-navy);
  --bs-nav-link-hover-color: var(--mf-blue);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--mf-navy);
  --bs-dropdown-link-active-color: #fff;
}

.form-control,
.form-select {
  border-color: var(--mf-border);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--mf-blue);
  box-shadow: 0 0 0 .2rem rgba(36, 94, 150, .18);
}

.list-group {
  --bs-list-group-active-bg: var(--mf-navy);
  --bs-list-group-active-border-color: var(--mf-navy);
}

.accordion {
  --bs-accordion-active-bg: rgba(36, 94, 150, .08);
  --bs-accordion-active-color: var(--mf-navy);
  --bs-accordion-btn-focus-border-color: var(--mf-blue);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(36, 94, 150, .18);
}


/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

html {
  scroll-padding-top: 6rem;
}

body {
  color: var(--mf-text);
  font-family: var(--mf-font-body);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn,
.mf-stat strong {
  font-family: var(--mf-font-heading);
}

a {
  color: var(--mf-blue);
}

a:hover {
  color: var(--mf-navy);
}

.mf-display-title,
.mf-brochure-title {
  font-family: var(--mf-font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .01em;
}

/* --------------------------------------------------------------------------
   3. Bootstrap overrides and utilities
   -------------------------------------------------------------------------- */

.py-lg-6 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.bg-light {
  background-color: var(--mf-bg-soft) !important;
}

.text-white-75 {
  color: rgba(255, 255, 255, .75);
}

.text-white-60 {
  color: rgba(255, 255, 255, .60);
}

.rounded-4 {
  border-radius: var(--mf-radius) !important;
}

.btn-primary,
.mf-btn-primary {
  --bs-btn-bg: var(--mf-navy);
  --bs-btn-border-color: var(--mf-navy);
  --bs-btn-hover-bg: var(--mf-blue);
  --bs-btn-hover-border-color: var(--mf-blue);
  --bs-btn-active-bg: var(--mf-navy-dark);
  --bs-btn-active-border-color: var(--mf-navy-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--mf-navy);
  --bs-btn-border-color: var(--mf-navy);
  --bs-btn-hover-bg: var(--mf-navy);
  --bs-btn-hover-border-color: var(--mf-navy);
}

.btn-light {
  --bs-btn-color: var(--mf-navy);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--mf-blue);
  box-shadow: 0 0 0 .25rem rgba(18, 103, 166, .14);
}

/* --------------------------------------------------------------------------
   4. Header and navigation
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  z-index: 10000;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--mf-navy);
  border-radius: .5rem;
}

.mf-topbar {
  /* Keep the logged-in user menu above the sticky navbar (z-index 1020) */
  position: relative;
  z-index: 1030;
  color: #d8e9f7;
  background: var(--mf-navy-dark);
}

.mf-topbar-link {
  color: #d8e9f7;
  text-decoration: none;
}

.mf-topbar-link:hover {
  color: #fff;
}

.mf-navbar {
  --bs-navbar-padding-y: .65rem;
  backdrop-filter: blur(16px);
}

.mf-brand {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.mf-logo-img {
  display: block;
  width: auto;
  height: 70px;
}

.navbar .nav-link {
  color: #21374d;
  font-weight: 650;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active,
.navbar .show > .nav-link {
  color: var(--mf-blue);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--mf-blue-light);
  --bs-dropdown-link-active-color: var(--mf-navy);
  --bs-dropdown-link-hover-bg: var(--mf-blue-light);
}

.dropdown-item {
  font-weight: 550;
}

/* --------------------------------------------------------------------------
   5. Hero sections
   -------------------------------------------------------------------------- */

.mf-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .95) 40%, rgba(245, 249, 252, .72) 70%, rgba(245, 249, 252, .35) 100%),
    url("../img/brand/mf-network-blue.jpg") right center / auto 100% no-repeat,
    #fff;
}

.mf-hero::after {
  content: "";
  position: absolute;
  inset: auto -12rem -18rem auto;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(18, 103, 166, .12), transparent 65%);
  pointer-events: none;
}

.mf-page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  color: #fff;
  background:
    url("../img/brand/mf-network-dark.jpg") right center / cover no-repeat,
    var(--mf-navy);
}

.mf-page-hero .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45);
  --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .65);
}

.mf-page-hero .breadcrumb a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Shared components
   -------------------------------------------------------------------------- */

.mf-section-kicker {
  display: inline-block;
  margin-bottom: .75rem;
  padding-left: .75rem;
  color: var(--mf-blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-left: .28rem solid var(--mf-blue);
}

.mf-badge-soft {
  color: var(--mf-navy);
  background: var(--mf-blue-light);
  border: 1px solid var(--mf-border);
}

.mf-badge-dark-soft {
  color: #d8e9f7;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}

.mf-card,
.mf-study-card,
.mf-price-card,
.mf-person-card,
.mf-news-card {
  border: 1px solid var(--mf-border);
  border-left: .28rem solid var(--mf-blue);
  border-radius: var(--mf-radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mf-card:hover,
.mf-study-card:hover,
.mf-price-card:hover,
.mf-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 103, 166, .35);
  box-shadow: 0 1rem 2rem rgba(7, 45, 74, .08);
}

.mf-icon,
.mf-icon-sm {
  display: inline-grid;
  place-items: center;
  color: var(--mf-navy);
  background: var(--mf-blue-light);
  border-radius: var(--mf-radius);
}

.mf-icon {
  width: 3.5rem;
  height: 3.5rem;
}

.mf-icon i {
  font-size: 1.5rem;
}

.mf-icon-sm {
  width: 2.5rem;
  height: 2.5rem;
}

.mf-link {
  color: var(--mf-navy);
  font-weight: 700;
  text-decoration: none;
}

.mf-link:hover {
  color: var(--mf-blue);
}

.mf-screenshot-placeholder {
  display: grid;
  min-height: 22rem;
  padding: 3rem;
  color: var(--mf-slate);
  text-align: center;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 63, 111, .06), rgba(80, 169, 221, .1)),
    #fff;
  border: 1px dashed rgba(18, 103, 166, .35);
  border-left: .28rem solid var(--mf-blue);
  border-radius: var(--mf-radius);
}

.mf-screenshot-placeholder i {
  display: block;
  margin-bottom: 1rem;
  color: var(--mf-blue);
  font-size: 4rem;
}

/* --------------------------------------------------------------------------
   7. Stats and proof points
   -------------------------------------------------------------------------- */

.mf-stat {
  padding: 1rem;
  border-right: 1px solid var(--mf-border);
}

.mf-stat strong {
  display: block;
  color: var(--mf-navy);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
}

.mf-stat span {
  color: var(--mf-slate);
  font-size: .95rem;
}

/* --------------------------------------------------------------------------
   8. Platform preview and brochure collage
   -------------------------------------------------------------------------- */

.mf-platform-preview {
  overflow: hidden;
  background: var(--mf-white);
  border: 1px solid rgba(0, 63, 111, .12);
  border-left: .28rem solid var(--mf-blue);
  border-radius: var(--mf-radius);
}

.mf-preview-header {
  padding: 1rem 1.25rem;
  background: var(--mf-navy);
}

.mf-preview-body {
  padding: 1.25rem;
  background: #f8fbfd;
}

.mf-dot {
  display: inline-block;
  width: .65rem;
  height: .65rem;
  background: rgba(255, 255, 255, .5);
  border-radius: 50%;
}

.mf-preview-tile {
  min-height: 9rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
}

.mf-preview-tile i {
  margin-bottom: .75rem;
  color: var(--mf-blue);
  font-size: 2rem;
}

.mf-preview-tile strong,
.mf-preview-tile span {
  display: block;
}

.mf-preview-tile span {
  color: var(--mf-slate);
  font-size: .9rem;
}

.mf-chart-placeholder {
  display: flex;
  align-items: end;
  height: 9rem;
  gap: .75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
}

.mf-chart-placeholder span {
  display: block;
  flex: 1;
  background: linear-gradient(180deg, var(--mf-cyan), var(--mf-navy));
  border-radius: .5rem .5rem 0 0;
}

.mf-brochure-collage {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: 11rem 11rem 11rem;
  gap: .35rem;
}
.mf-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  background: var(--mf-navy-dark);
  z-index: 2;
}

.mf-image-panel img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: .99;
  mix-blend-mode: normal;
  transition: transform .25s ease, opacity .25s ease;
  z-index: 1;
}

.mf-image-panel:hover img {
  transform: scale(1.03);
  opacity: .90;
}


.mf-image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
}

.mf-image-label {
  position: absolute;
  right: 1rem;
  bottom: .85rem;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  text-shadow: 0 .35rem 1rem rgba(0, 0, 0, .35);
  text-transform: uppercase;
}

.mf-brochure-collage .mf-image-panel {
  min-height: auto;
}

.mf-brochure-collage .mf-image-panel {
  min-height: auto;
  border-left-width: .35rem;
  border-left-style: solid;
}
/* Analysis */
.mf-brochure-collage .mf-image-panel:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  border-left: .35rem solid var(--mf-blue);
  background: var(--mf-blue);
}

.mf-brochure-collage .mf-image-panel:nth-child(1)::after {
  background: var(--mf-blue);
}

/* Intelligence */
.mf-brochure-collage .mf-image-panel:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  border-left: .35rem solid var(--mf-navy);
  background: var(--mf-navy);
}

.mf-brochure-collage .mf-image-panel:nth-child(2)::after {
  background: var(--mf-navy);
}

/* Research */
.mf-brochure-collage .mf-image-panel:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  border-left: .35rem solid var(--mf-blue-light);
  background: var(--mf-blue-light);
}

.mf-brochure-collage .mf-image-panel:nth-child(3)::after {
  background: var(--mf-blue-light);
}

/* Data */
.mf-brochure-collage .mf-image-panel:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  border-left: .35rem solid var(--mf-gold);
  background: var(--mf-gold);
}

.mf-brochure-collage .mf-image-panel:nth-child(4)::after {
  background: var(--mf-gold);
}

/* --------------------------------------------------------------------------
   9. Cards, filters and tab pills
   -------------------------------------------------------------------------- */

.mf-filter-card {
  background: #fff;
  border: 1px solid var(--mf-border);
  border-left: .28rem solid var(--mf-blue);
  border-radius: var(--mf-radius);
}

.mf-pills {
  gap: .5rem;
}

.mf-pills .nav-link {
  color: var(--mf-navy);
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--mf-border);
}

.mf-pills .nav-link.active {
  background: var(--mf-navy);
  border-color: var(--mf-navy);
}

/* --------------------------------------------------------------------------
   10. Study cards
   -------------------------------------------------------------------------- */

.mf-study-card {
  overflow: hidden;
  background: #fff;
}

.mf-study-image-link,
.mf-study-square-link,
.mf-study-square-top {
  display: block;
  background: var(--mf-navy-dark);
}

.mf-study-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform .25s ease, opacity .25s ease;
}

.mf-study-card:hover .mf-study-image {
  transform: scale(1.035);
  opacity: .92;
}

.mf-study-square-link {
  height: 100%;
  min-height: 100%;
}

.mf-study-square-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
 /* filter: grayscale(100%); */
}

.mf-study-square-top-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  filter: grayscale(100%);
}

.mf-study-title {
  display: -webkit-box;
  margin-bottom: .75rem;
  line-height: 1.25;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mf-study-title a {
  color: var(--mf-text);
  text-decoration: none;
}

.mf-study-title a:hover {
  color: var(--mf-blue);
}

.mf-study-tabs {
  gap: .5rem;
  --bs-nav-link-color: var(--mf-navy);
  --bs-nav-link-hover-color: var(--mf-blue);
  --bs-nav-pills-link-active-bg: var(--mf-navy);
}

.mf-study-tabs .nav-link {
  color: var(--mf-navy);
  font-weight: 700;
  border: 1px solid var(--mf-border);
  background: #fff;
}

.mf-study-tabs .nav-link:hover,
.mf-study-tabs .nav-link:focus {
  color: var(--mf-blue);
  border-color: var(--mf-blue-light);
  background: var(--mf-bg-soft);
}

.mf-study-tabs .nav-link.active {
  color: #fff;
  background: var(--mf-navy);
  border-color: var(--mf-navy);
}

.mf-study-description {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.mf-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.mf-study-meta span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .6rem;
  color: var(--mf-slate);
  font-size: .78rem;
  line-height: 1.2;
  background: var(--mf-bg-soft);
  border: 1px solid var(--mf-border);
}

.mf-study-card-compact {
  overflow: hidden;
}

.mf-study-card-compact .mf-study-title {
  margin-bottom: .65rem;
  line-height: 1.25;
}

.mf-study-card-compact .mf-study-description {
  font-size: .95rem;
  -webkit-line-clamp: 4;
}

.mf-study-card-compact .mf-study-meta span {
  padding: .25rem .5rem;
  font-size: .75rem;
}

.mf-cover-accent {
  border-left: .35rem solid var(--mf-gold) !important;
}

.mf-study-cover-hero {
  border-left: .35rem solid var(--mf-gold) !important;
}

.mf-sample-form .form-control,
.mf-sample-form .form-select {
  background-color: var(--mf-bg-soft);
}

.mf-sample-form .form-control:focus,
.mf-sample-form .form-select:focus {
  background-color: #fff;
}


/* --------------------------------------------------------------------------
   11. News and insights
   -------------------------------------------------------------------------- */

.mf-news-card {
  overflow: hidden;
  background: #fff;
}

.mf-news-image-link {
  display: block;
  background: var(--mf-navy-dark);
}

.mf-news-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

.mf-news-card:hover .mf-news-image {
  transform: scale(1.03);
  opacity: .92;
}

.mf-news-title {
  margin-bottom: .75rem;
  line-height: 1.3;
}

.mf-news-title a {
  color: var(--mf-text);
  text-decoration: none;
}

.mf-news-title a:hover {
  color: var(--mf-blue);
}

.mf-news-description {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.mf-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  color: var(--mf-muted);
  font-size: .92rem;
}

.mf-news-meta span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.mf-news-list {
  border-top: 1px solid var(--mf-border);
}

.mf-news-list-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--mf-border);
}

.mf-news-thumb-link {
  display: block;
  width: 76px;
  height: 76px;
  padding: .25rem;
  background: #fff;
  border: 1px solid var(--mf-border);
}

.mf-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.mf-news-list-title {
  margin-bottom: .75rem;
  line-height: 1.25;
}

.mf-news-list-title a {
  color: var(--mf-text);
  text-decoration: none;
}

.mf-news-list-title a:hover {
  color: var(--mf-blue);
}

.mf-news-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  color: var(--mf-muted);
  font-size: .95rem;
}

.mf-news-heading-link {
  color: var(--mf-blue);
  font-size: 1.75rem;
  line-height: 1;
}

.mf-news-heading-link:hover {
  color: var(--mf-navy);
}

/* --------------------------------------------------------------------------
   12. Methodology, timeline and market cards
   -------------------------------------------------------------------------- */

.mf-market-card {
  height: 100%;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(145deg, var(--mf-navy), var(--mf-blue));
  border-radius: var(--mf-radius);
}

.mf-market-card i {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, .85);
  font-size: 2rem;
}

.mf-market-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .76);
}

.mf-methodology {
  background:
    linear-gradient(135deg, rgba(7, 45, 74, .96), rgba(0, 63, 111, .96)),
    var(--mf-navy);
}

.mf-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 10rem;
  gap: .75rem;
  padding: 1rem;
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--mf-radius);
}

.mf-step span {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  color: var(--mf-navy);
  font-weight: 800;
  background: #fff;
  border-radius: 50%;
  place-items: center;
}

.mf-step i {
  color: rgba(255, 255, 255, .82);
  font-size: 2rem;
}

.mf-timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 3rem;
}

.mf-timeline-item::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 0;
  left: .95rem;
  width: 2px;
  background: var(--mf-border);
}

.mf-timeline-item:last-child::before {
  display: none;
}

.mf-timeline-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  color: #fff;
  font-weight: 800;
  background: var(--mf-navy);
  border-radius: 50%;
  place-items: center;
}

/* --------------------------------------------------------------------------
   13. Forms, tables and content helpers
   -------------------------------------------------------------------------- */

.mf-detail-sidebar {
  position: sticky;
  top: 7rem;
}

.mf-purchase-card {
  border: 1px solid var(--mf-border) !important;
}

.mf-license-option {
  cursor: pointer;
}

.mf-license-option:hover {
  background: var(--mf-bg-soft);
}

.mf-license-option .form-check-input:checked {
  background-color: var(--mf-gold);
  border-color: var(--mf-gold);
}

.mf-license-option:has(.form-check-input:checked),
.mf-license-option.is-selected {
  color: var(--mf-navy);
  background: rgba(205, 155, 63, .12);
  border-color: var(--mf-gold);
}

.mf-license-price {
  color: var(--mf-text);
  font-weight: 700;
  white-space: nowrap;
}

.mf-currency-select {
  min-width: 5.5rem;
}

.mf-check-list {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.mf-check-list li {
  display: flex;
  gap: .75rem;
  margin-bottom: .85rem;
}

.mf-check-list i {
  margin-top: .25rem;
  color: var(--mf-blue);
}

.mf-form-card {
  background: #fff;
  border: 1px solid var(--mf-border);
  border-left: .28rem solid var(--mf-blue);
  border-radius: var(--mf-radius);
  box-shadow: 0 1rem 2rem rgba(7, 45, 74, .06);
}

.mf-price {
  color: var(--mf-navy);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.mf-table {
  --bs-table-border-color: var(--mf-border);
  border-left: .28rem solid var(--mf-blue);
}

.mf-table thead th {
  color: var(--mf-navy);
  background: var(--mf-blue-light);
}

.mf-table-accent,
.mf-bordered-title {
  border-left: .35rem solid var(--mf-navy);
}

.mf-bordered-title {
  padding-left: 1rem;
}

.mf-border-start-blue {
  border-left: .28rem solid var(--mf-blue) !important;
}

.mf-source-note {
  background: var(--mf-blue-light);
  border-left: .28rem solid var(--mf-blue);
}

/* --------------------------------------------------------------------------
   14. CTA and footer
   -------------------------------------------------------------------------- */

.mf-cta {
  background:
    radial-gradient(circle at 95% 0%, rgba(80, 169, 221, .45), transparent 20rem),
    linear-gradient(135deg, var(--mf-navy), var(--mf-navy-dark));
  border-radius: var(--mf-radius);
}

.mf-footer {
  background: var(--mf-navy-dark);
}

.mf-footer-links li {
  margin: .55rem 0;
}

.mf-footer-links a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
}

.mf-footer-links a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   15. Responsive rules
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .mf-hero,
  .mf-page-hero {
    padding: 4rem 0;
  }

  .mf-stat {
    border-right: 0;
  }

  .mf-detail-sidebar {
    position: static;
  }

  .mf-brochure-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 12rem 12rem;
  }

  .mf-brochure-collage .mf-image-panel:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 575.98px) {
  .mf-logo-img {
    height: 50px;
  }

  .mf-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .9)),
      url("../img/brand/mf-network-blue.jpg") right top / auto 65% no-repeat,
      #fff;
  }

  .mf-brochure-collage {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 11rem);
  }

  .mf-image-label {
    font-size: 1.35rem;
  }

  .mf-study-card-compact .row {
    display: block;
  }

  .mf-study-square-link {
    height: auto;
  }

  .mf-study-square-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .mf-news-list-item {
    grid-template-columns: 56px 1fr;
    gap: .85rem;
  }

  .mf-news-thumb-link {
    width: 56px;
    height: 56px;
  }

  .mf-news-list-meta {
    gap: .85rem;
    font-size: .9rem;
  }
}

/* --------------------------------------------------------------------------
   16. New classes
   -------------------------------------------------------------------------- */

.mf-product-shot {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mf-border);
  border-left: .35rem solid var(--mf-blue);
  box-shadow: 0 1.25rem 2.5rem rgba(7, 45, 74, .10);
}

.mf-product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Text blocks edited in the Admin (privacy policy, terms and conditions, ...) */
.mf-text-block {
  max-width: 52rem;
  color: var(--mf-text);
  line-height: 1.7;
}

.mf-text-block strong {
  color: var(--mf-navy);
}

.mf-text-block ul,
.mf-text-block ol {
  margin: .75rem 0 1.25rem;
  padding-left: 1.25rem;
}

.mf-text-block li {
  margin-bottom: .5rem;
}

.mf-text-block a {
  color: var(--mf-blue);
}

/* Account pages: one-time PIN input */
.mf-pin-input {
  font-family: var(--bs-font-monospace);
  font-size: 1.75rem;
  letter-spacing: .6em;
  text-align: center;
  max-width: 18rem;
}

/* Featured studies: two cards on desktop, one on smaller screens. */
.mf-featured-shell { position: relative; }
.mf-featured-track {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.mf-featured-track::-webkit-scrollbar { display: none; }
.mf-featured-item {
  flex: 0 0 calc((100% - 1.5rem) / 2);
  scroll-snap-align: start;
}
.mf-featured-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 .25rem 1rem rgba(7, 45, 74, .15);
}
.mf-featured-arrow-prev { left: -1.25rem; }
.mf-featured-arrow-next { right: -1.25rem; }
@media (min-width: 1200px) {
  .mf-featured-arrow-prev { left: -3.25rem; }
  .mf-featured-arrow-next { right: -3.25rem; }
}
@media (max-width: 991.98px) {
  .mf-featured-item { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-featured-track { scroll-behavior: auto; }
}
