/*
 * M&A Health Leadership — compiled frontend styles.
 *
 * Step 2 scope: CSS custom-property defaults + base reset + typography.
 * Component styles (header, hero, cards, sections) are added in later
 * steps. Color tokens printed by ma_health_print_css_variables() in
 * wp_head override the fallbacks defined here.
 */

/* ============================================================
 * Design tokens (fallbacks)
 * ============================================================
 * The Customizer prints a second :root block later in wp_head that
 * overrides the color values below. Non-color tokens (shadows, radii,
 * fonts, spacing) live here permanently.
 */
:root {
  /* Colors — Medical Teal defaults, overridden by Customizer */
  --ma-primary:         #005F6B;
  --ma-primary-light:   #008B8B;
  --ma-accent:          #00B4AB;
  --ma-accent-light:    #4DD9C0;
  --ma-navy:            #0A2540;
  --ma-text-primary:    #0A2540;
  --ma-text-secondary:  #3D5A6E;
  --ma-background:      #FAFCFD;
  --ma-card-bg:         #FFFFFF;
  --ma-border:          #D4E5ED;
  --ma-highlight-1:     #D4A853;
  --ma-highlight-2:     #E8715A;

  /* Derived color tokens (also printed by PHP for live preview parity) */
  --ma-ice-blue:   color-mix(in srgb, var(--ma-accent-light) 22%, #fff);
  --ma-pale-mint:  color-mix(in srgb, var(--ma-accent-light)  8%, #fff);
  --ma-dark-slate: color-mix(in srgb, var(--ma-navy)         78%, #fff);
  --ma-text-muted: color-mix(in srgb, var(--ma-text-secondary) 55%, #fff);

  /* Shadows */
  --ma-shadow-sm: 0 1px 3px   rgba(10, 37, 64, 0.06);
  --ma-shadow-md: 0 4px 16px  rgba(10, 37, 64, 0.08);
  --ma-shadow-lg: 0 8px 32px  rgba(10, 37, 64, 0.12);
  --ma-shadow-xl: 0 16px 48px rgba(10, 37, 64, 0.15);

  /* Radii */
  --ma-radius-sm:  6px;
  --ma-radius-md: 10px;
  --ma-radius-lg: 16px;
  --ma-radius-xl: 24px;

  /* Type stack — Inter body + Newsreader display, chosen for long-form legibility. */
  --ma-font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --ma-font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --ma-font-mono:    'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --ma-font-size-base: 18px;

  /* Layout */
  --ma-header-h: 64px;
  --ma-topbar-h: 36px;
  --ma-max-w: 1320px;
}

/* ============================================================
 * Reset
 * ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol, menu {
  margin: 0;
}

ul, ol { padding-inline-start: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ma-font-body);
  font-size: var(--ma-font-size-base);
  color: var(--ma-text-primary);
  background: var(--ma-background);
  line-height: 1.75;
  font-feature-settings: 'ss01', 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-optical-sizing: auto;
  font-feature-settings: 'ss01';
}

img,
svg,
video,
picture,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: var(--ma-primary); }

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul[role='list'],
ol[role='list'] { list-style: none; }

/* Screen-reader utility (WP expects this class) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #fff;
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: var(--ma-primary);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ============================================================
 * Typography
 * ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ma-font-display);
  color: var(--ma-navy);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p  { color: var(--ma-text-primary); }

code, pre, kbd, samp {
  font-family: var(--ma-font-mono);
  font-size: 0.95em;
}

/* ============================================================
 * Layout helpers
 * ============================================================ */
.container {
  max-width: var(--ma-max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
 * WordPress alignments
 * ============================================================ */
.alignleft   { float: left;  margin-right: 1.5em; }
.alignright  { float: right; margin-left:  1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide   { max-width: 1100px; margin-inline: auto; }
.alignfull   { max-width: 100vw; }

/* ============================================================
 * Top Bar
 * ============================================================ */
.topbar {
  background: var(--ma-navy);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: 0.04em;
  height: var(--ma-topbar-h);
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
}
.topbar-links ul,
.topbar-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.topbar-links a { transition: color 0.2s; }
.topbar-links a:hover { color: var(--ma-accent-light); }
.topbar-date {
  font-family: var(--ma-font-mono);
  font-size: 11px;
  opacity: 0.7;
}

/* ============================================================
 * Site Header
 * ============================================================ */
.site-header {
  background: var(--ma-card-bg);
  border-bottom: 1px solid var(--ma-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--ma-shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--ma-header-h);
  max-width: var(--ma-max-w);
  width: 100%;
}

/* Text-lockup logo (icon + site title + tagline) — fixed footprint. */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  height: 44px;
  width: 200px;
  text-decoration: none;
}

/* Photo logo (Appearance → Customize → Site Identity).
 * When a custom logo is present the wrapper relinquishes its fixed
 * text-lockup footprint so the image can scale to its natural aspect
 * ratio, capped by a sensible header height. */
.logo:has(.custom-logo-link) {
  width: auto;
  height: auto;
  max-height: 56px;
  gap: 0;
}
.logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.logo .custom-logo {
  width: auto;
  height: auto;
  max-height: 56px;
  max-width: 260px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.logo-icon {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--ma-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--ma-font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(10, 37, 64, 0.18);
}
.logo-icon::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--ma-accent);
  border-radius: 0 0 8px 8px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-family: var(--ma-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ma-navy);
  letter-spacing: -0.3px;
}
.logo-text span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ma-primary-light);
  font-weight: 600;
}

/* Primary nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ma-text-secondary);
  border-radius: var(--ma-radius-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav > li > a:hover,
.main-nav > li > a.active,
.main-nav > li.current-menu-item > a {
  color: var(--ma-primary);
  background: var(--ma-ice-blue);
}
.nav-arrow {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  box-shadow: var(--ma-shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
}
.main-nav > li:hover > .dropdown,
.main-nav > li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown > a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ma-text-secondary);
  border-radius: var(--ma-radius-sm);
  transition: background 0.15s, color 0.15s;
}
.dropdown > a:hover { background: var(--ma-ice-blue); color: var(--ma-primary); }

/* Depth-2 group (sub-sub menu opens as flyout to the right) */
.dropdown-group { position: relative; }
.dropdown-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ma-text-primary);
  border-radius: var(--ma-radius-sm);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.dropdown-group-title:hover,
.dropdown-group:focus-within > .dropdown-group-title {
  background: var(--ma-ice-blue);
  color: var(--ma-primary);
}
.nav-arrow-right {
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  border-left: 4px solid currentColor;
  border-right: 0;
}
.dropdown-group .sub-menu {
  position: absolute;
  left: calc(100% - 4px);
  top: -8px;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  box-shadow: var(--ma-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 101;
}
.dropdown-group:hover > .sub-menu,
.dropdown-group:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.dropdown-group .sub-menu li { list-style: none; }
.dropdown-group .sub-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ma-text-secondary);
  border-radius: var(--ma-radius-sm);
  transition: background 0.15s, color 0.15s;
}
.dropdown-group .sub-menu a:hover { background: var(--ma-ice-blue); color: var(--ma-primary); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-search {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ma-text-secondary);
  transition: background 0.2s, color 0.2s;
}
.btn-search:hover { background: var(--ma-ice-blue); color: var(--ma-primary); }

/* Notification bell */
.ma-notify { position: relative; }
.ma-notify-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--ma-text-secondary);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.ma-notify-btn:hover { background: var(--ma-ice-blue); color: var(--ma-primary); }
.ma-notify-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--ma-card-bg);
}
.ma-notify-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 340px;
  max-width: 92vw;
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  box-shadow: var(--ma-shadow-lg);
  overflow: hidden;
  z-index: 110;
}
.ma-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ma-border);
  font-size: 13px;
}
.ma-notify-clear {
  background: transparent;
  border: 0;
  color: var(--ma-primary);
  font-size: 12px;
  cursor: pointer;
}
.ma-notify-clear:hover { text-decoration: underline; }
.ma-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}
.ma-notify-empty {
  padding: 18px 14px;
  text-align: center;
  color: var(--ma-text-secondary);
  font-size: 12.5px;
}
.ma-notify-item { border-top: 1px solid var(--ma-border); }
.ma-notify-item:first-child { border-top: 0; }
.ma-notify-item a {
  display: block;
  padding: 10px 14px;
  color: var(--ma-text-primary);
  transition: background 0.15s;
}
.ma-notify-item a:hover { background: var(--ma-ice-blue); }
.ma-notify-item-title {
  display: block;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
}
.ma-notify-item-excerpt {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ma-text-secondary);
  line-height: 1.45;
}
.ma-notify-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--ma-border);
  background: var(--ma-ice-blue);
}
.ma-notify-enable {
  width: 100%;
  padding: 8px 10px;
  background: var(--ma-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: 0;
  border-radius: var(--ma-radius-sm);
  cursor: pointer;
}
.ma-notify-enable:hover { background: var(--ma-primary-light); }
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--ma-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--ma-radius-sm);
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-subscribe:hover {
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 95, 107, 0.35);
  transform: translateY(-1px);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.88);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  backdrop-filter: blur(6px);
}
.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.search-overlay-inner {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 24px;
}
.search-overlay-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--ma-radius-md);
  overflow: hidden;
  box-shadow: var(--ma-shadow-xl);
}
.search-overlay-input {
  flex: 1;
  padding: 18px 20px;
  font-size: 18px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ma-navy);
  font-family: var(--ma-font-body);
}
.search-overlay-input::placeholder { color: var(--ma-text-muted); }
.search-overlay-submit {
  padding: 0 20px;
  color: var(--ma-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.search-overlay-submit:hover { color: var(--ma-accent); }
.search-overlay-close {
  position: absolute;
  top: -52px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.search-overlay-close:hover { background: rgba(255, 255, 255, 0.28); }
.search-overlay-hint {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Menu toggle */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ma-text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
 * Breaking Ticker
 * ============================================================ */
.ticker {
  background: var(--ma-navy);
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.12);
}
.ticker-label {
  background: var(--ma-highlight-2);
  padding: 0 16px 0 18px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: #fff;
}
.ticker-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
  animation: ma-ticker-pulse 1.6s ease-in-out infinite;
}
.ticker-label::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--ma-highlight-2);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@keyframes ma-ticker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.ticker-scroll-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  position: relative;
  height: 100%;
  padding-left: 14px;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ma-ticker-scroll 35s linear infinite;
  will-change: transform;
  white-space: nowrap;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
  padding-inline: 26px;
  position: relative;
  transition: color 0.15s;
}
.ticker-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ma-accent);
  opacity: 0.65;
  transform: translateY(-50%);
}
.ticker-item:first-child::before { display: none; }
a.ticker-item:hover { color: #fff; }
@keyframes ma-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
 * Footer
 * ============================================================ */
.site-footer {
  background: var(--ma-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 0;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text span  { color: var(--ma-accent); }
.footer-brand .logo:has(.custom-logo-link) { max-height: 64px; }
.footer-brand .logo .custom-logo { max-height: 64px; max-width: 220px; }
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.55);
}

/* Social icons bar — sits between footer-grid and footer-bottom */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-btn svg { display: block; }
.social-btn:hover {
  background: var(--ma-primary-light);
  color: #fff;
  transform: translateY(-1px);
}

.footer-col h4 {
  font-family: var(--ma-font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--ma-accent-light); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
 * R9 — Connections & Contacts footer
 * ============================================================ */
.connections-footer .footer-brand-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.connections-footer .footer-brand-row .logo-text strong { color: #fff; }
.connections-footer .footer-brand-row .logo-text span   { color: var(--ma-accent); }
.connections-footer .footer-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 720px;
  margin: 0;
}
.connections-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.conn-col h4 {
  font-family: var(--ma-font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ma-accent);
  display: inline-block;
}
.conn-col h4 + h4 { margin-top: 22px; }

/* Action buttons column */
.conn-buttons { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.conn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--ma-radius-sm);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  width: 100%;
  max-width: 280px;
}
.conn-btn:hover {
  background: var(--ma-primary);
  border-color: var(--ma-primary);
  color: #fff;
}
.conn-btn--linkedin { background: #0A66C2; border-color: #0A66C2; }
.conn-btn--linkedin:hover { background: #084d92; border-color: #084d92; }
.conn-btn--ghost { color: rgba(255, 255, 255, 0.5); cursor: not-allowed; }
.conn-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.5); }

.conn-button-group {
  width: 100%;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--ma-radius-sm);
  overflow: hidden;
}
.conn-button-group summary {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.conn-button-group summary::-webkit-details-marker { display: none; }
.conn-button-group summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}
.conn-button-group[open] summary::after { content: "−"; }
.conn-button-group ul {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.conn-button-group li a,
.conn-button-group li span {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.conn-button-group li a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

/* Contact column */
.conn-contact-list { margin: 0 0 18px; }
.conn-contact-list dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ma-accent);
  margin-top: 12px;
}
.conn-contact-list dt:first-child { margin-top: 0; }
.conn-contact-list dd {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 4px 0 0;
  line-height: 1.5;
}
.conn-contact-list dd a { color: #fff; text-decoration: none; }
.conn-contact-list dd a:hover { color: var(--ma-accent-light); text-decoration: underline; }
.connections-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
}

/* Resources column */
.conn-list { list-style: none; margin: 0 0 4px; padding: 0; }
.conn-list li { margin-bottom: 8px; }
.conn-list a, .conn-list span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.conn-list a:hover { color: var(--ma-accent-light); }

/* Bottom strip */
.connections-footer .footer-bottom {
  padding: 18px 0 22px;
  font-size: 12px;
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-bottom-links a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-links .edition-label,
.footer-bottom-links .site-url { color: rgba(255, 255, 255, 0.4); }

@media (max-width: 1100px) {
  .connections-grid { grid-template-columns: 1fr 1fr; }
  .conn-resources   { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .connections-footer .footer-brand-row { grid-template-columns: 1fr; gap: 14px; }
  .connections-grid { grid-template-columns: 1fr; gap: 28px; }
  .conn-btn, .conn-button-group { max-width: 100%; }
  .connections-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
 * Responsive — header/footer
 * ============================================================ */
/* Burger menu kicks in at <=1400px so 1366×768 laptops also collapse. */
@media (max-width: 1400px) {
  .topbar { display: none; }
  .menu-toggle { display: flex; }
  .primary-nav { position: static; flex: 0; }
  .main-nav {
    display: none;
    position: fixed;
    top: var(--ma-header-h);
    inset-inline: 0;
    bottom: 0;
    background: var(--ma-card-bg);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    overflow-y: auto;
    border-top: 1px solid var(--ma-border);
    z-index: 999; /* just below sticky header */
  }
  body.ma-nav-open .main-nav { display: flex; }
  body.ma-nav-open { overflow: hidden; }
  .main-nav > li { width: 100%; }
  .main-nav > li > a {
    padding: 14px 12px;
    font-size: 15px;
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--ma-pale-mint);
    margin: 0 0 8px;
  }
  .dropdown-group .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    margin: 0;
  }
  .dropdown-group-title { padding-left: 14px; }
  .nav-arrow-right { display: none; }
}

/* True-mobile layout shifts (footer collapse, logo constraint). */
@media (max-width: 900px) {
  .logo { width: auto; max-width: calc(100vw - 120px); }
  .logo:has(.custom-logo-link) { max-height: 44px; }
  .logo .custom-logo-link { max-width: 160px; }
  .logo .custom-logo { max-height: 44px; max-width: 160px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-socials { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: flex-start; }
  .btn-subscribe { display: none; }
  /* On very small screens hide the ticker to prevent horizontal scroll */
  .ticker { overflow: hidden; }
}

/* ============================================================
 * Card — Brief (Industry Brief grid)
 * ============================================================ */
.brief-card {
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.brief-card:hover {
  box-shadow: var(--ma-shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}
.brief-card-img {
  display: block;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--ma-pale-mint);
}
.brief-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.brief-card:hover .brief-card-img img { transform: scale(1.06); }
/* Category badge — always visible, not hover-only (issue #1) */
.brief-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  background: color-mix(in srgb, var(--ma-primary) 92%, transparent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  /* Defensive: ensure badge is never hidden by an opacity or visibility rule */
  opacity: 1;
  visibility: visible;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.brief-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.brief-card-body h4 {
  font-family: var(--ma-font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ma-navy);
  margin: 0;
}
.brief-card-body h4 a { color: inherit; }
.brief-card-body h4 a:hover { color: var(--ma-primary); }
.brief-card-body p {
  font-size: 13.5px;
  color: var(--ma-text-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brief-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ma-text-muted);
  margin-top: auto;
  padding-top: 4px;
}
.read-time { font-weight: 600; color: var(--ma-primary-light); }

/* ============================================================
 * Card — Article (standard)
 * ============================================================ */
.article-card {
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.article-card:hover {
  box-shadow: var(--ma-shadow-md);
  transform: translateY(-2px);
}
.article-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--ma-pale-mint);
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.article-card-body h3 {
  font-family: var(--ma-font-display);
  font-size: 19px;
  line-height: 1.3;
  color: var(--ma-navy);
  margin: 0;
}
.article-card-body h3 a:hover { color: var(--ma-primary); }
.article-card-excerpt {
  font-size: 14px;
  color: var(--ma-text-secondary);
  line-height: 1.55;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ma-text-muted);
  flex-wrap: wrap;
}
.article-card-author { font-weight: 600; color: var(--ma-text-secondary); }
.hero-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ============================================================
 * Card — Horizontal (case card)
 * ============================================================ */
.case-card {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ma-border);
  transition: padding-inline-start 0.2s;
}
.case-card:hover { padding-inline-start: 8px; }
.case-card:last-child { border-bottom: none; }
.case-card-img {
  width: 110px;
  height: 80px;
  border-radius: var(--ma-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ma-pale-mint);
}
.case-card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-body { min-width: 0; }
.case-card-body h5 {
  font-family: var(--ma-font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--ma-navy);
}
.case-card:hover .case-card-body h5 { color: var(--ma-primary); }
.case-card-body p {
  font-size: 12.5px;
  color: var(--ma-text-muted);
  line-height: 1.5;
  margin: 0;
}
.case-card-org {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ma-primary-light);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
 * Card — Deal (sidebar + deal tracker list)
 * ============================================================ */
.deal-item {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ma-border);
  transition: background 0.15s;
}
.deal-item:last-child { border-bottom: none; }
.deal-item:hover { background: var(--ma-pale-mint); }
.deal-parties {
  font-size: 14px;
  font-weight: 600;
  color: var(--ma-navy);
  margin-bottom: 4px;
}
.deal-details {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ma-text-muted);
  flex-wrap: wrap;
}
.deal-value { font-family: var(--ma-font-mono); font-weight: 600; color: var(--ma-navy); }
.deal-type  { font-style: italic; }
.deal-badge {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.deal-badge.completed { background: #D1FAE5; color: #065F46; }
.deal-badge.pending   { background: #FEF3C7; color: #92400E; }
.deal-badge.announced { background: #DBEAFE; color: #1E40AF; }
.deal-badge.cancelled { background: #FEE2E2; color: #991B1B; }

/* ============================================================
 * Card — Job (sidebar + jobs list)
 * ============================================================ */
.job-item {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ma-border);
  transition: background 0.15s;
}
.job-item:last-child { border-bottom: none; }
.job-item:hover { background: var(--ma-pale-mint); }
.job-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ma-navy);
  margin-bottom: 3px;
}
.job-org {
  font-size: 12px;
  color: var(--ma-primary-light);
  font-weight: 500;
  margin-bottom: 4px;
}
.job-loc { font-size: 11.5px; color: var(--ma-text-muted); }

/* ============================================================
 * Card — Media (video / podcast)
 * ============================================================ */
.media-card {
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.media-card:hover {
  box-shadow: var(--ma-shadow-lg);
  transform: translateY(-2px);
}
.media-thumb {
  display: block;
  height: 190px;
  position: relative;
  overflow: hidden;
  background: var(--ma-navy);
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s, opacity 0.2s;
}
.media-card:hover .media-thumb img { transform: scale(1.04); opacity: 1; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: color-mix(in srgb, var(--ma-primary) 90%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.3s, transform 0.3s;
}
.media-card:hover .play-btn {
  background: var(--ma-accent);
  transform: translate(-50%, -50%) scale(1.1);
}
.play-icon {
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #fff;
  margin-inline-start: 3px;
}
.media-duration {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  font-family: var(--ma-font-mono);
  border-radius: 3px;
}
.media-body { padding: 16px; }
.media-type-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  margin-bottom: 8px;
}
.badge-video   { background: #FEE2E2; color: #991B1B; }
.badge-podcast { background: #E0E7FF; color: #3730A3; }
.media-body h4 {
  font-family: var(--ma-font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ma-navy);
  margin: 0 0 6px;
}
.media-body h4 a:hover { color: var(--ma-primary); }
.media-body p { font-size: 12.5px; color: var(--ma-text-muted); margin: 0; }

/* ============================================================
 * Card — Marketplace / Partner
 * ============================================================ */
.mp-card {
  display: flex;
  gap: 20px;
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
  padding: 28px;
  transition: box-shadow 0.3s, border-color 0.3s;
  color: inherit;
}
.mp-card:hover {
  box-shadow: var(--ma-shadow-lg);
  border-color: var(--ma-accent);
}
.mp-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--ma-radius-md);
  background: var(--ma-ice-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--ma-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ma-primary);
  overflow: hidden;
}
.mp-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.mp-info h4 {
  font-family: var(--ma-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ma-navy);
  margin: 0 0 4px;
}
.mp-info .mp-type {
  display: block;
  font-size: 12px;
  color: var(--ma-primary-light);
  font-weight: 600;
  margin-bottom: 6px;
}
.mp-info p {
  font-size: 13px;
  color: var(--ma-text-muted);
  line-height: 1.5;
  margin: 0 0 10px;
}
.mp-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ma-primary);
}
a.mp-card:hover .mp-cta { color: var(--ma-accent); }

/* ============================================================
 * Single Featured Business page (R8d)
 * ============================================================ */
.business-single { padding: 16px 0 64px; }
.business-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin: 16px 0 32px;
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
}
.business-hero-logo {
  width: 120px;
  height: 120px;
  border-radius: var(--ma-radius-md);
  background: var(--ma-ice-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ma-font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--ma-primary);
  overflow: hidden;
}
.business-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.business-hero-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ma-primary);
  margin-bottom: 6px;
}
.business-hero-title {
  font-family: var(--ma-font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--ma-navy);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.business-hero-excerpt {
  font-size: 15px;
  color: var(--ma-text-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 700px;
}
.business-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.business-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--ma-radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.business-hero-actions .btn-primary {
  background: var(--ma-primary);
  color: #fff;
  border: 1px solid var(--ma-primary);
}
.business-hero-actions .btn-primary:hover { background: var(--ma-accent); border-color: var(--ma-accent); }
.business-hero-actions .btn-outline {
  background: transparent;
  color: var(--ma-primary);
  border: 1px solid var(--ma-primary);
}
.business-hero-actions .btn-outline:hover { background: var(--ma-primary); color: #fff; }

.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
}
.business-main > section { margin-bottom: 32px; }
.business-main h2 {
  font-family: var(--ma-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ma-navy);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ma-primary);
  display: inline-block;
}
.business-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
}
.business-services-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ma-text-primary);
}
.business-services-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ma-primary);
  font-weight: 800;
}
.business-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.business-gallery-item {
  display: block;
  border-radius: var(--ma-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.business-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.business-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.business-contact-card {
  position: sticky;
  top: 92px;
  padding: 22px;
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
}
.business-contact-card h3 {
  font-family: var(--ma-font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ma-primary);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ma-border);
}
.business-contact-card dl { margin: 0; }
.business-contact-card dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ma-text-muted);
  margin-top: 12px;
}
.business-contact-card dt:first-child { margin-top: 0; }
.business-contact-card dd {
  font-size: 14px;
  color: var(--ma-text-primary);
  margin: 4px 0 0;
}
.business-contact-card a { color: var(--ma-primary); text-decoration: none; }
.business-contact-card a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .business-grid          { grid-template-columns: 1fr; }
  .business-related-grid  { grid-template-columns: repeat(2, 1fr); }
  .business-contact-card  { position: static; }
}
@media (max-width: 640px) {
  .business-hero          { grid-template-columns: 1fr; padding: 22px; gap: 18px; text-align: left; }
  .business-services-list { grid-template-columns: 1fr; }
  .business-gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .business-related-grid  { grid-template-columns: 1fr; }
}

/* ============================================================
 * Responsive — cards
 * ============================================================ */
@media (max-width: 1100px) {
  .brief-card-img { height: 160px; }
  .media-thumb    { height: 170px; }
}
@media (max-width: 768px) {
  .mp-card { padding: 20px; gap: 14px; }
  .media-thumb { height: 200px; }
}
@media (max-width: 480px) {
  .case-card { flex-direction: column; }
  .case-card-img { width: 100%; height: 180px; }
}

/* ============================================================
 * Section header (shared)
 * ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ma-border);
  gap: 16px;
}
.section-title {
  font-family: var(--ma-font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ma-navy);
  position: relative;
  padding-inline-start: 16px;
  line-height: 1.2;
  margin: 0;
}
.section-title::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--ma-primary);
  border-radius: 2px;
}
.section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--ma-primary-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s, color 0.2s;
  white-space: nowrap;
}
.section-more:hover { gap: 9px; color: var(--ma-primary); }

/* ============================================================
 * Hero — Cover Stories
 * ============================================================ */
.hero { padding: 24px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.hero-grid--single {
  grid-template-columns: 1fr;
}
.hero-main {
  position: relative;
  border-radius: var(--ma-radius-lg);
  overflow: hidden;
  min-height: 520px;
  background: var(--ma-navy);
  isolation: isolate;
}
.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: brightness(0.55);
  z-index: 0;
}
.hero-main-content {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(10, 37, 64, 0.95));
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ma-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  margin-bottom: 14px;
}
.hero-tag--gold  { background: var(--ma-highlight-1); }
.hero-tag--coral { background: var(--ma-highlight-2); }
.hero-main-content h1 {
  font-family: var(--ma-font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
}
.hero-main-content h1 a { color: inherit; }
.hero-main-content p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 14px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}
.hero-meta .hero-meta-dot { background: rgba(255, 255, 255, 0.35); opacity: 1; }

/* Hero slider: stacked slides, fade between */
.hero-slider { outline: none; }
.hero-slider:focus-visible { box-shadow: 0 0 0 3px var(--ma-accent); }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: brightness(0.55);
  z-index: 0;
}
.hero-slide-content {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(10, 37, 64, 0.95));
  z-index: 1;
}
.hero-slide-content h1 {
  font-family: var(--ma-font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
}
.hero-slide-content h1 a { color: inherit; }
.hero-slide-content p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 14px;
}

/* Arrow nav */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
}
.hero-slider:hover .hero-nav,
.hero-slider:focus-within .hero-nav { opacity: 1; }
.hero-nav:hover { background: rgba(0, 0, 0, 0.6); }
.hero-nav--prev { left: 14px; }
.hero-nav--next { right: 14px; }

/* Dot indicators — positioned inside the slider, bottom-left */
.story-indicators {
  position: absolute;
  left: 40px;
  bottom: 18px;
  display: flex;
  gap: 6px;
  z-index: 3;
  margin: 0;
}
.story-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.3s;
}
.story-dot.active {
  background: var(--ma-accent-light);
  width: 22px;
  border-radius: 999px;
}

.hero-side {
  position: relative;
  border-radius: var(--ma-radius-lg);
  overflow: hidden;
  min-height: 248px;
  background: var(--ma-dark-slate);
  isolation: isolate;
}
.hero-side-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  z-index: 0;
}
.hero-side-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(10, 37, 64, 0.9));
  z-index: 1;
}
.hero-side-content h3 {
  font-family: var(--ma-font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 8px;
}
.hero-side-content h3 a { color: inherit; }
.hero-side-content .hero-meta { color: rgba(255, 255, 255, 0.55); }

/* ------------------------------------------------------------
 * Hero Databases sidebar (R4 — top 4 from Search Databases)
 * ------------------------------------------------------------ */
.hero-databases {
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.hero-databases-title {
  font-family: var(--ma-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ma-primary);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ma-primary);
}
.hero-databases-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.hero-databases-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--ma-radius-md);
  background: var(--ma-background);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ma-text-primary);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.hero-databases-item:hover,
.hero-databases-item:focus-visible {
  background: #fff;
  border-color: var(--ma-primary);
  transform: translateX(2px);
}
.hero-databases-label {
  display: block;
  font-family: var(--ma-font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  color: var(--ma-text-primary);
}
.hero-databases-desc {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ma-text-secondary);
  margin-top: 2px;
}
.hero-databases-arrow {
  color: var(--ma-primary);
  display: inline-flex;
  align-items: center;
}

.hero-tag--cover {
  background: var(--ma-accent);
  color: #fff;
}

/* ============================================================
 * Top Articles row (R4 — under hero, 4 cards)
 * ============================================================ */
.top-articles { padding: 28px 0 12px; }
.top-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.top-articles-grid .article-card {
  display: flex;
  flex-direction: column;
}

/* ============================================================
 * Industry Brief section wrapper
 * ============================================================ */
.industry-brief { padding: 48px 0; }
.brief-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================================================
 * Analysis & Deep Dive — redesigned editorial layout
 * ============================================================ */
.analysis-section {
  padding: 12px 0 56px;
  background: var(--ma-background);
}

/* Two-column grid: feature left (wider), cases right */
.dive-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
  overflow: hidden;
  background: var(--ma-card-bg);
  box-shadow: var(--ma-shadow-md);
}

/* ── Featured article (left) ── */
.dive-feature {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ma-border);
}
.dive-feature-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
.dive-feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.dive-feature:hover .dive-feature-img-wrap img { transform: scale(1.04); }
.dive-feature-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--ma-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--ma-radius-sm);
}
.dive-feature-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 32px 28px;
}
.dive-inline-badge {
  display: inline-block;
  background: var(--ma-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--ma-radius-sm);
  margin-bottom: 14px;
}
.dive-feature-title {
  font-family: var(--ma-font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ma-navy);
}
.dive-feature-title a { color: inherit; }
.dive-feature-title a:hover { color: var(--ma-primary); }
.dive-feature-excerpt {
  font-size: 15px;
  color: var(--ma-text-secondary);
  line-height: 1.72;
  margin: 0 0 20px;
  flex: 1;
}
.dive-feature-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ma-text-muted);
  margin-bottom: 20px;
}
.dive-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ma-text-muted);
  display: inline-block;
}
.dive-feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--ma-border);
}
.dive-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dive-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ma-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.dive-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.dive-author-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ma-navy);
}
.dive-author-role {
  font-size: 11.5px;
  color: var(--ma-text-muted);
}
.dive-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ma-primary);
  white-space: nowrap;
  transition: gap 0.18s, color 0.18s;
}
.dive-cta:hover { gap: 10px; color: var(--ma-primary-light); }

/* ── Case studies column (right) ── */
.dive-cases {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 20px;
}
.dive-cases-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ma-primary);
}
.dive-cases-title {
  font-family: var(--ma-font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ma-navy);
  margin: 0;
}
.dive-cases-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--ma-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.dive-cases-more:hover { gap: 7px; }
.dive-cases-list {
  flex: 1;
}
.dive-cases-empty {
  font-size: 14px;
  color: var(--ma-text-muted);
  padding: 16px 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .dive-feature-body { padding: 22px 24px 22px; }
  .dive-cases         { padding: 22px 20px 16px; }
}
@media (max-width: 768px) {
  .dive-grid                 { grid-template-columns: 1fr; }
  .dive-feature              { border-right: none; border-bottom: 1px solid var(--ma-border); }
  .dive-feature-img-wrap     { aspect-ratio: 16 / 8; }
}
@media (max-width: 480px) {
  .dive-feature-body         { padding: 20px; }
  .dive-cases                { padding: 20px; }
  .dive-feature-footer       { flex-direction: column; align-items: flex-start; }
}

/* Keep old author-avatar/author-info classes working (used in deep-dive-author elsewhere) */
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ma-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.author-info { display: flex; flex-direction: column; line-height: 1.25; }
.author-info .author-name { font-size: 14px; font-weight: 600; color: var(--ma-navy); }
.author-info .author-role { font-size: 12px; color: var(--ma-text-muted); }

.case-studies { margin-top: 28px; }
.case-studies-header { margin-top: 0; }

/* ============================================================
 * Databases section (dark bg)
 * ============================================================ */
.database-section {
  padding: 56px 0;
  background: var(--ma-navy);
  color: #fff;
}
.database-section .section-header { border-bottom-color: rgba(255, 255, 255, 0.12); }
.database-section .section-title { color: #fff; }
.database-section .section-title::before {
  background: var(--ma-accent);
}
.database-section .section-more { color: var(--ma-accent-light); }
.database-section .section-more:hover { color: #fff; }

.db-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 4px;
}
.db-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.db-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--ma-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.db-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.db-card:hover::after { transform: scaleY(1); transform-origin: top; }

.db-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ma-accent);
  margin-bottom: 18px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.db-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.db-icon-text {
  font-family: var(--ma-font-mono);
  font-size: 18px;
  font-weight: 700;
  color: inherit;
}
.db-card:hover .db-icon {
  background: var(--ma-accent);
  color: var(--ma-navy);
  transform: scale(1.05);
}

.db-card h4 {
  font-family: var(--ma-font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.db-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}
.db-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ma-font-mono);
  font-size: 11.5px;
  color: var(--ma-accent);
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.db-count::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ma-accent);
}

/* ============================================================
 * Multimedia section
 * ============================================================ */
.multimedia-section { padding: 56px 0; }
.media-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--ma-ice-blue);
  border-radius: var(--ma-radius-sm);
  padding: 4px;
}
.media-tab {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ma-text-muted);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 0;
  background: transparent;
}
.media-tab.active {
  background: var(--ma-card-bg);
  color: var(--ma-primary);
  box-shadow: var(--ma-shadow-sm);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
 * Marketplace + Partners + Newsletter
 * ============================================================ */
.marketplace-section { padding: 56px 0; background: var(--ma-pale-mint); }
.mp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.partners-section {
  padding: 36px 0;
  border-top: 1px solid var(--ma-border);
  border-bottom: 1px solid var(--ma-border);
}
.partners-label {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ma-text-muted);
  font-weight: 600;
  margin: 0 0 20px;
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 42px;
  background: var(--ma-border);
  border-radius: var(--ma-radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--ma-text-muted);
  letter-spacing: 0.05em;
  opacity: 0.65;
  transition: opacity 0.3s;
}
.partner-logo:hover { opacity: 1; color: var(--ma-primary); }
.partner-logo img { max-height: 30px; width: auto; }

.newsletter-section {
  padding: 64px 0;
  background: var(--ma-primary);
  color: #fff;
  text-align: center;
}
.newsletter-section h2 {
  font-family: var(--ma-font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}
.newsletter-section p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto 28px;
  max-width: 480px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--ma-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(6px);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-input:focus { border-color: rgba(255, 255, 255, 0.7); }
.newsletter-btn {
  padding: 12px 28px;
  background: #fff;
  color: var(--ma-primary);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--ma-radius-sm);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.newsletter-btn:hover {
  background: var(--ma-ice-blue);
  transform: translateY(-1px);
}

/* ============================================================
 * Ad banner + placeholder
 * ============================================================ */
.ad-banner { padding: 12px 0; text-align: center; }
.ad-slot   { display: block; }
.ad-slot img { max-width: 100%; height: auto; border-radius: var(--ma-radius-md); }

.ad-placeholder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  background: var(--ma-pale-mint);
  border: 1px dashed var(--ma-border);
  border-radius: var(--ma-radius-md);
  padding: 10px 16px;
  color: var(--ma-text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}
.ad-placeholder-label {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ma-primary);
}
.ad-placeholder-spot {
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
}
.ad-placeholder-size {
  font-family: var(--ma-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.75);
  border-radius: 99px;
  border: 1px solid var(--ma-border);
}

.widget-ad .ad-placeholder { font-size: 11px; padding: 14px 12px; }

/* ============================================================
 * Sidebar home — bulletin / deals / jobs
 * ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.bulletin-card {
  background: var(--ma-navy);
  border-radius: var(--ma-radius-lg);
  padding: 28px;
  color: #fff;
  text-align: center;
}
.bulletin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--ma-radius-md);
  margin-bottom: 16px;
  color: var(--ma-accent);
}
.bulletin-card h3 {
  font-family: var(--ma-font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.bulletin-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 18px;
  line-height: 1.5;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--ma-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--ma-radius-sm);
  transition: background 0.2s, color 0.2s;
}
.btn-download:hover {
  background: var(--ma-accent-light);
  color: var(--ma-navy);
}

.deals-card,
.jobs-card {
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
  overflow: hidden;
}
.deals-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--ma-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.deals-header h3 {
  font-family: var(--ma-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ma-navy);
  margin: 0;
}

/* ============================================================
 * Homepage responsive
 * ============================================================ */
@media (max-width: 1100px) {
  .hero-grid          { grid-template-columns: 1.6fr 1fr; }
  .brief-grid         { grid-template-columns: repeat(2, 1fr); }
  .top-articles-grid  { grid-template-columns: repeat(2, 1fr); }
  /* analysis-layout removed (dive-grid handles responsive) */
  .db-grid            { grid-template-columns: repeat(2, 1fr); }
  .media-grid         { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid         { grid-template-columns: 1fr; }
  .hero-main         { min-height: 400px; }
  .hero-main-content { padding: 24px; }
  .hero-slide-content { padding: 24px 24px 50px; }
  .story-indicators { left: 24px; bottom: 16px; }
  .hero-nav { display: none; }
  .hero-databases    { padding: 16px; }
  .sidebar           { margin-top: 16px; }
  .mp-grid           { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brief-grid        { grid-template-columns: 1fr; }
  .top-articles-grid { grid-template-columns: 1fr; }
  .db-grid           { grid-template-columns: 1fr; }
  .media-grid        { grid-template-columns: 1fr; }
  .deep-dive-hero    { height: 220px; }
  .deep-dive-body    { padding: 22px; }
  .newsletter-form   { flex-direction: column; }

  .hero              { padding-top: 20px; }
  .hero-grid         { gap: 14px; }
  .hero-main         { min-height: 340px; border-radius: var(--ma-radius-md); }
  .hero-slide-content,
  .hero-main-content { padding: 20px 18px 44px; }
  .hero-slide-content h1,
  .hero-main-content h1 {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .hero-slide-content p,
  .hero-main-content p {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-meta         { font-size: 11px; gap: 8px; }
  .hero-tag          { font-size: 10px; padding: 3px 9px; margin-bottom: 10px; }
  .story-indicators  { left: 18px; bottom: 14px; }
  .hero-side         { min-height: 200px; border-radius: var(--ma-radius-md); }
  .hero-side-content { padding: 16px; }
  .hero-side-content h3 { font-size: 15px; }
}

/* ============================================================
 * R11 — Above-the-fold compactness on short viewports.
 * Targets the common 1366×768 / browser-chrome scenario where the
 * cover story + databases sidebar must be visible without scrolling.
 * ============================================================ */
@media (min-width: 901px) and (max-height: 820px) {
  .topbar           { padding: 4px 0; font-size: 11px; }
  .topbar-date      { font-size: 11px; }
  .header           { min-height: 60px; }
  .ticker           { height: 34px; }
  .ad-banner        { padding: 6px 0; }
  .ad-placeholder   { padding: 6px 14px; font-size: 11px; }
  .hero             { padding-top: 14px; }
  .hero-grid        { gap: 16px; }
  .hero-main        { min-height: 380px; }
  .hero-slide-content { padding: 22px 22px 38px; }
  .hero-slide-content h1 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
  .hero-slide-content p  { margin-bottom: 8px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-databases   { padding: 14px; }
  .hero-databases-title { margin-bottom: 10px; padding-bottom: 8px; font-size: 12px; }
  .hero-databases-item  { padding: 9px 12px; }
  .hero-databases-desc  { display: none; }
  .top-articles     { padding: 18px 0 8px; }
}

/* ============================================================
 * Breadcrumbs
 * ============================================================ */
.breadcrumbs {
  padding: 20px 0 12px;
  font-size: 12.5px;
  color: var(--ma-text-muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: '/';
  color: var(--ma-border);
  margin-inline-end: 2px;
}
.breadcrumbs a { color: var(--ma-text-secondary); transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--ma-primary); }
.breadcrumbs [aria-current='page'] { color: var(--ma-navy); font-weight: 600; }

/* ============================================================
 * Single — Article
 * ============================================================ */
.single-article .container,
.single-casestudy .container,
.single-deal .container,
.single-job .container {
  max-width: 860px;
  padding-block: 8px 64px;
}
.article-body { margin-top: 8px; }
.article-header { margin-bottom: 28px; }
.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ma-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--ma-font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ma-navy);
  margin: 0 0 14px;
}
.article-dek {
  font-size: 18px;
  color: var(--ma-text-secondary);
  line-height: 1.55;
  margin: 0 0 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ma-text-muted);
  margin-bottom: 16px;
}
.article-meta-sep { opacity: 0.5; }
.article-author { display: inline-flex; align-items: center; gap: 10px; }
.article-author-name { display: block; font-weight: 600; color: var(--ma-navy); font-size: 13.5px; }
.article-author-role { display: block; font-size: 11.5px; color: var(--ma-text-muted); }

.article-featured {
  margin: 24px 0 28px;
  border-radius: var(--ma-radius-lg);
  overflow: hidden;
}
.article-featured img { width: 100%; height: auto; display: block; }
.article-featured figcaption {
  padding: 10px 4px 0;
  font-size: 12.5px;
  color: var(--ma-text-muted);
  font-style: italic;
}

/* Prose */
.article-content {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ma-text-primary);
}
.article-content > * + * { margin-top: 1.2em; }
.article-content h2 {
  font-family: var(--ma-font-display);
  font-size: 28px;
  margin-top: 1.8em;
  color: var(--ma-navy);
}
.article-content h3 {
  font-family: var(--ma-font-display);
  font-size: 22px;
  margin-top: 1.5em;
  color: var(--ma-navy);
}
.article-content p { color: var(--ma-text-primary); }
.article-content blockquote {
  border-inline-start: 4px solid var(--ma-accent);
  padding: 8px 20px;
  margin: 1.6em 0;
  color: var(--ma-text-secondary);
  font-size: 1.05em;
  font-style: italic;
  background: var(--ma-pale-mint);
  border-radius: 0 var(--ma-radius-sm) var(--ma-radius-sm) 0;
}
.article-content a { color: var(--ma-primary); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--ma-primary-light); }
.article-content img { border-radius: var(--ma-radius-md); }
.article-content ul,
.article-content ol { padding-inline-start: 1.4em; }
.article-content li + li { margin-top: 0.4em; }

.stats-bar {
  display: flex;
  gap: 24px;
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--ma-border);
  border-bottom: 1px solid var(--ma-border);
  flex-wrap: wrap;
}
.stat-item { flex: 1; min-width: 130px; text-align: center; }
.stat-num {
  font-family: var(--ma-font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ma-primary);
}
.stat-label {
  font-size: 11px;
  color: var(--ma-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Share */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ma-text-muted);
  margin-right: 4px;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ma-background);
  border: 1px solid var(--ma-border);
  color: var(--ma-text-secondary);
  text-decoration: none;
  font-size: 0;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  cursor: pointer;
}
.share-btn svg { display: block; }
.share-btn:hover { transform: translateY(-2px); border-color: transparent; }
.share-btn--facebook:hover { background: #1877F2; color: #fff; }
.share-btn--twitter:hover  { background: #000;    color: #fff; }
.share-btn--linkedin:hover { background: #0A66C2; color: #fff; }
.share-btn--whatsapp:hover { background: #25D366; color: #fff; }
.share-btn--copy:hover { background: var(--ma-primary); color: #fff; border-color: transparent; }
.share-btn--copy.is-copied { background: var(--ma-accent); color: #fff; border-color: transparent; }

/* Tags + author box */
.article-tags {
  margin: 24px 0;
  font-size: 12px;
  color: var(--ma-text-muted);
}
.article-tags a {
  display: inline-block;
  padding: 3px 10px;
  margin: 0 4px 4px 0;
  background: var(--ma-ice-blue);
  color: var(--ma-primary);
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}
.article-tags a:hover { background: var(--ma-primary); color: #fff; }

.author-box {
  display: flex;
  gap: 16px;
  padding: 24px;
  margin-top: 32px;
  background: var(--ma-pale-mint);
  border-radius: var(--ma-radius-md);
  border: 1px solid var(--ma-border);
}
.author-box-avatar { border-radius: 50%; }
.author-box h3 {
  font-family: var(--ma-font-display);
  font-size: 18px;
  color: var(--ma-navy);
  margin: 0 0 6px;
}
.author-box p { font-size: 14px; color: var(--ma-text-secondary); margin: 0 0 8px; line-height: 1.55; }
.author-box-link { font-size: 13px; font-weight: 600; color: var(--ma-primary); }
.author-box-link:hover { color: var(--ma-primary-light); }

.article-footer { margin-top: 28px; }

.related-posts { margin-top: 56px; }

/* Comments */
.article-comments { margin-top: 56px; }
.comments-area { padding-top: 16px; border-top: 1px solid var(--ma-border); }
.comments-title {
  font-family: var(--ma-font-display);
  font-size: 22px;
  color: var(--ma-navy);
  margin-bottom: 16px;
}
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--ma-border); }

/* ============================================================
 * Single — Deal
 * ============================================================ */
.deal-header { margin-bottom: 20px; }
.deal-title {
  font-family: var(--ma-font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--ma-navy);
  margin: 10px 0 6px;
  line-height: 1.15;
}
.deal-parties-headline {
  font-size: 17px;
  color: var(--ma-text-secondary);
  font-weight: 500;
  margin: 0 0 14px;
}
.deal-details-grid,
.job-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
  padding: 20px;
  background: var(--ma-pale-mint);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
}
.deal-details-grid dt,
.job-details-grid dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ma-text-muted);
  margin-bottom: 4px;
}
.deal-details-grid dd,
.job-details-grid dd {
  margin: 0;
  font-size: 14px;
  color: var(--ma-navy);
  font-weight: 600;
}
.deal-value-large {
  font-family: var(--ma-font-display) !important;
  font-size: 22px !important;
  color: var(--ma-primary) !important;
}
.deal-content,
.job-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ma-text-primary);
}
.deal-content > * + *,
.job-content > * + * { margin-top: 1.1em; }
.deal-source { margin-top: 20px; font-size: 13px; }
.deal-source a { color: var(--ma-primary); font-weight: 600; }

/* ============================================================
 * Single — Job
 * ============================================================ */
.job-header { margin-bottom: 16px; }
.job-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ma-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  margin-bottom: 14px;
}
.job-title-large {
  font-family: var(--ma-font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--ma-navy);
  margin: 0 0 8px;
}
.job-org-headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--ma-primary-light);
  margin: 0 0 16px;
}
.job-apply-wrap { margin-top: 28px; }

/* ============================================================
 * Case study headline
 * ============================================================ */
.case-org-headline {
  font-size: 15px;
  color: var(--ma-primary-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

/* ============================================================
 * Sidebar — generic fallback
 * ============================================================ */
.sidebar-newsletter {
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  padding: 24px;
}
.sidebar-newsletter h3 {
  font-family: var(--ma-font-display);
  font-size: 18px;
  color: var(--ma-navy);
  margin: 0 0 6px;
}
.sidebar-newsletter p {
  font-size: 13.5px;
  color: var(--ma-text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}
.newsletter-form--compact { max-width: 100%; flex-direction: column; gap: 8px; }
.newsletter-form--compact .newsletter-input {
  background: var(--ma-pale-mint);
  border-color: var(--ma-border);
  color: var(--ma-text-primary);
}
.newsletter-form--compact .newsletter-input::placeholder { color: var(--ma-text-muted); }
.newsletter-form--compact .newsletter-btn {
  background: var(--ma-primary);
  color: #fff;
}
.newsletter-form--compact .newsletter-btn:hover { background: var(--ma-primary-light); }

/* ============================================================
 * Responsive — single
 * ============================================================ */
@media (max-width: 900px) {
  .deal-details-grid,
  .job-details-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .article-content { font-size: 16.5px; }
  .stats-bar { gap: 12px; }
  .stat-num { font-size: 22px; }
  .author-box { flex-direction: column; text-align: center; }
}

/* ============================================================
 * Archive layout
 * ============================================================ */
.archive-page { padding-bottom: 64px; }
.archive-hero { margin: 16px 0 32px; }
.archive-title {
  font-family: var(--ma-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ma-navy);
  margin: 6px 0 10px;
}
.archive-description {
  font-size: 16px;
  color: var(--ma-text-secondary);
  line-height: 1.55;
  max-width: 700px;
}

.archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.archive-main { min-width: 0; }

/* R7 — landing-page article grid (12 per page) */
.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) {
  .archive-layout { grid-template-columns: 1fr; }
  .landing-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .landing-grid   { grid-template-columns: 1fr; }
}

/* R7 — Sub-topic filter bar */
.archive-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  margin-bottom: 24px;
}
.archive-subtopics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.archive-subtopic {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ma-text-secondary);
  background: var(--ma-background);
  border: 1px solid var(--ma-border);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.archive-subtopic:hover { color: var(--ma-primary); border-color: var(--ma-primary); }
.archive-subtopic.is-active {
  background: var(--ma-primary);
  border-color: var(--ma-primary);
  color: #fff;
}
.archive-sort { display: inline-flex; align-items: center; gap: 8px; }
.archive-sort-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ma-text-muted);
}
.archive-sort select {
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-sm);
  font-size: 13px;
  background: var(--ma-background);
  color: var(--ma-text-primary);
  cursor: pointer;
}
.archive-sort select:focus { outline: 2px solid var(--ma-primary); outline-offset: 1px; }

.archive-results { min-height: 120px; }
.archive-empty {
  padding: 40px 24px;
  text-align: center;
  background: var(--ma-pale-mint);
  color: var(--ma-text-secondary);
  border: 1px dashed var(--ma-border);
  border-radius: var(--ma-radius-md);
  font-size: 14px;
}
.archive-summary {
  font-size: 13px;
  color: var(--ma-text-muted);
  margin: 16px 0;
}
.archive-summary .archive-count { font-weight: 700; color: var(--ma-navy); }

.archive-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  margin: 0 4px;
  border-radius: var(--ma-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ma-text-secondary);
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  transition: background 0.2s, color 0.2s;
}
.archive-pagination .page-numbers.current {
  background: var(--ma-primary);
  color: #fff;
  border-color: var(--ma-primary);
}
.archive-pagination .page-numbers:hover:not(.current) {
  background: var(--ma-ice-blue);
  color: var(--ma-primary);
}

/* ============================================================
 * Archive filter bar
 * ============================================================ */
.archive-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 18px;
  padding: 20px;
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  margin-bottom: 24px;
  align-items: end;
  transition: opacity 0.2s;
}
.archive-filters.is-loading { opacity: 0.6; pointer-events: none; }
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ma-text-muted);
}
.filter-group input,
.filter-group select {
  padding: 10px 12px;
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-sm);
  font-size: 14px;
  background: var(--ma-pale-mint);
  color: var(--ma-text-primary);
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--ma-primary);
  background: #fff;
}
.filter-group--search { grid-column: 1 / -1; }
.filter-group--range .filter-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}
.btn-reset {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ma-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-reset:hover { background: var(--ma-ice-blue); color: var(--ma-primary); }

/* Archive search form (search.php) */
.archive-search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.archive-search-form input[type='search'] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-sm);
  font-size: 15px;
  background: var(--ma-card-bg);
}
.archive-search-form input[type='search']:focus { outline: none; border-color: var(--ma-primary); }

/* Load more */
.btn-load-more {
  display: block;
  margin: 32px auto 0;
  padding: 12px 28px;
  background: var(--ma-card-bg);
  color: var(--ma-primary);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-load-more:hover {
  background: var(--ma-primary);
  color: #fff;
  border-color: var(--ma-primary);
}
.btn-load-more[hidden] { display: none; }

/* ============================================================
 * Archive responsive
 * ============================================================ */
@media (max-width: 560px) {
  .archive-filters { padding: 16px; grid-template-columns: 1fr; }
  .filter-group--range .filter-range { grid-template-columns: 1fr 1fr; }
  .filter-actions { flex-direction: column; align-items: stretch; }
  .btn-reset, .filter-actions .btn-subscribe { width: 100%; justify-content: center; }
}

/* ============================================================
 * Page templates
 * ============================================================ */
.single-page .container { max-width: 860px; padding-block: 8px 64px; }
.page-title {
  font-family: var(--ma-font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ma-navy);
  margin: 18px 0 22px;
}
.page-featured { margin: 0 0 28px; border-radius: var(--ma-radius-lg); overflow: hidden; }
.page-content { font-size: 17px; }

/* ============================================================
 * Hub pages — hero + grids
 * ============================================================ */
.hub-page { padding-bottom: 72px; }
.hub-hero { margin: 16px 0 40px; max-width: 840px; }
.hub-title {
  font-family: var(--ma-font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ma-navy);
  margin: 8px 0 14px;
  line-height: 1.1;
}
.hub-description {
  font-size: 17px;
  color: var(--ma-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.hub-description p { margin: 0 0 10px; }

.hub-hero--dark {
  max-width: 100%;
  padding: 48px 40px;
  border-radius: var(--ma-radius-lg);
  background: var(--ma-navy);
  color: #fff;
  margin-bottom: 32px;
}
.hub-hero--dark .hub-title { color: #fff; }
.hub-hero--dark .hub-description { color: rgba(255, 255, 255, 0.72); }

.hub-search {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  max-width: 640px;
}
.hub-search input[type='search'] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-sm);
  font-size: 15px;
  background: var(--ma-card-bg);
  color: var(--ma-text-primary);
}
.hub-hero--dark .hub-search input[type='search'] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.hub-hero--dark .hub-search input[type='search']::placeholder { color: rgba(255, 255, 255, 0.5); }
.hub-search input[type='search']:focus { outline: none; border-color: var(--ma-accent); }

.db-grid--hub {
  grid-template-columns: repeat(3, 1fr);
  color: var(--ma-navy);
}
.db-grid--hub .db-card {
  background: var(--ma-card-bg);
  border-color: var(--ma-border);
  color: var(--ma-navy);
  backdrop-filter: none;
}
.db-grid--hub .db-card:hover {
  background: var(--ma-card-bg);
  border-color: var(--ma-accent);
  box-shadow: var(--ma-shadow-lg);
}
.db-grid--hub .db-card h3 {
  font-family: var(--ma-font-display);
  font-size: 19px;
  color: var(--ma-navy);
  margin: 0 0 8px;
}
.db-grid--hub .db-card p { color: var(--ma-text-secondary); }
.db-grid--hub .db-card::after { background: var(--ma-primary); }
.db-grid--hub .db-icon {
  background: var(--ma-ice-blue);
  border-color: transparent;
  color: var(--ma-primary);
}
.db-grid--hub .db-card:hover .db-icon {
  background: var(--ma-primary);
  color: #fff;
}
.db-grid--hub .db-count {
  color: var(--ma-primary);
  background: var(--ma-ice-blue);
}
.db-grid--hub .db-count::before { background: var(--ma-primary); }

/* ============================================================
 * Marketplace hub filter chips
 * ============================================================ */
.mp-chips {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--ma-ice-blue);
  border-radius: 999px;
  margin-top: 16px;
}
.mp-chip {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ma-text-muted);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mp-chip.active {
  background: var(--ma-card-bg);
  color: var(--ma-primary);
  box-shadow: var(--ma-shadow-sm);
}
.mp-grid--hub { grid-template-columns: repeat(3, 1fr); }
.mp-card-wrap { display: block; }
.mp-card-wrap[hidden] { display: none !important; }

/* ============================================================
 * Bulletin archive
 * ============================================================ */
.bulletin-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 28px;
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
  margin-bottom: 40px;
}
.bulletin-featured-cover {
  aspect-ratio: 210 / 297;
  border-radius: var(--ma-radius-md);
  overflow: hidden;
  background: var(--ma-primary);
  position: relative;
}
.bulletin-featured-cover img { width: 100%; height: 100%; object-fit: cover; }

/* PDF preview (page 1 rendered via PDF.js) */
.bulletin-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f8;
  overflow: hidden;
}
.bulletin-preview--ready { background: #fff; }
.bulletin-preview--failed { background: var(--ma-ice-blue); }
.bulletin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bulletin-preview-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.bulletin-preview--featured .bulletin-preview-canvas {
  border-radius: var(--ma-radius-sm);
}
.bulletin-preview--tile {
  align-items: flex-start;
  justify-content: center;
}
.bulletin-preview--tile .bulletin-preview-canvas {
  width: 100%;
  height: auto;
  box-shadow: none;
  border-radius: 0;
}
.bulletin-preview--single {
  min-height: 480px;
  padding: 20px;
  background: linear-gradient(180deg, #eef2f5 0%, #e3e8ec 100%);
}
.bulletin-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ma-text-muted);
  font-size: 13px;
  background: inherit;
}
.bulletin-preview-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 95, 107, 0.2);
  border-top-color: var(--ma-primary);
  animation: ma-spin 0.9s linear infinite;
}
@keyframes ma-spin { to { transform: rotate(360deg); } }

/* Single-bulletin layout */
.single-bulletin .bulletin-article {
  margin: 24px 0 40px;
}
.bulletin-article-head {
  margin-bottom: 24px;
}
.bulletin-article-head h1 {
  font-family: var(--ma-font-display);
  font-size: 36px;
  line-height: 1.15;
  color: var(--ma-navy);
  margin: 6px 0 12px;
}
.bulletin-article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
.bulletin-article-preview {
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
  overflow: hidden;
  min-height: 520px;
}
.bulletin-article-aside {
  position: sticky;
  top: calc(var(--ma-header-h, 72px) + 16px);
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
  padding: 20px;
}
.bulletin-article-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ma-text-secondary);
  margin: 0 0 14px;
}
.bulletin-article-aside .btn-download { width: 100%; justify-content: center; }
.bulletin-article-notes {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ma-text-secondary);
}
.bulletin-article-nopdf {
  padding: 12px;
  background: var(--ma-ice-blue);
  border-radius: var(--ma-radius-sm);
  color: var(--ma-text-secondary);
  font-size: 13px;
}

@media (max-width: 860px) {
  .bulletin-article-body { grid-template-columns: 1fr; }
  .bulletin-article-aside { position: static; }
  .bulletin-preview--single { min-height: 380px; }
}
.bulletin-featured-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ma-font-display);
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.04em;
}
.bulletin-featured-body h2 {
  font-family: var(--ma-font-display);
  font-size: 26px;
  color: var(--ma-navy);
  margin: 10px 0 8px;
}
.bulletin-featured-body p {
  font-size: 14.5px;
  color: var(--ma-text-secondary);
  line-height: 1.6;
  margin: 10px 0 18px;
}
.bulletin-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ma-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.bulletin-tile {
  background: var(--ma-card-bg);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.bulletin-tile:hover { box-shadow: var(--ma-shadow-lg); transform: translateY(-2px); }
.bulletin-tile-cover {
  position: relative;
  display: block;
  aspect-ratio: 210 / 150;
  overflow: hidden;
  background: var(--ma-primary);
}
.bulletin-tile-cover img { width: 100%; height: 100%; object-fit: cover; }
.bulletin-tile-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bulletin-tile-body h3 {
  font-family: var(--ma-font-display);
  font-size: 16px;
  color: var(--ma-navy);
  line-height: 1.35;
  margin: 0;
}
.bulletin-tile-body h3 a:hover { color: var(--ma-primary); }
.bulletin-download {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ma-primary);
  transition: color 0.15s;
}
.bulletin-download:hover { color: var(--ma-primary-light); }

@media (max-width: 900px) {
  .db-grid--hub    { grid-template-columns: repeat(2, 1fr); }
  .mp-grid--hub    { grid-template-columns: repeat(2, 1fr); }
  .bulletin-grid   { grid-template-columns: repeat(2, 1fr); }
  .bulletin-featured { grid-template-columns: 1fr; text-align: center; }
  .bulletin-featured-cover { max-width: 260px; margin: 0 auto; aspect-ratio: 210 / 297; }
  .hub-hero--dark { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .db-grid--hub,
  .mp-grid--hub,
  .bulletin-grid { grid-template-columns: 1fr; }
  .hub-search { flex-direction: column; }
}

/* ============================================================
 * Reading progress + back-to-top + popup
 * ============================================================ */
#ma-reading-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--ma-accent);
  z-index: 1200;
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.12s linear;
  pointer-events: none;
}

.ma-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ma-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.25);
  border: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  z-index: 998;
}
.ma-fab.is-visible { opacity: 1; transform: translateY(0); }
.ma-fab:hover      { background: var(--ma-primary-light); }
.ma-fab--top       { bottom: 28px; }

/* Popup overlay — shared base */
.ma-popup {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1500;
  backdrop-filter: blur(4px);
}
.ma-popup.is-visible { display: flex; }
.ma-popup-inner {
  position: relative;
  background: var(--ma-card-bg);
  border-radius: var(--ma-radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--ma-shadow-xl);
  animation: ma-pop-in 0.25s ease;
  overflow: hidden;
}
@keyframes ma-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ma-popup-inner img {
  width: 100%;
  display: block;
  border-radius: var(--ma-radius-md);
}
.ma-popup-inner a { display: block; }
.ma-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 37, 64, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}
.ma-popup-close:hover { background: var(--ma-primary); color: #fff; }
body.ma-popup-open { overflow: hidden; }

/* Portrait / vertical popup — narrow card, tall image */
.ma-popup--portrait .ma-popup-inner {
  max-width: 360px;
  padding: 0;
  border-radius: var(--ma-radius-lg);
  overflow: hidden;
}
.ma-popup--portrait .ma-popup-inner img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  border-radius: 0;
}
.ma-popup--portrait .ma-popup-close {
  top: 10px;
  right: 10px;
  background: rgba(10, 37, 64, 0.65);
}
/* On very small screens, portrait popup scales to viewport width */
@media (max-width: 400px) {
  .ma-popup--portrait .ma-popup-inner { max-width: calc(100vw - 32px); }
}

/* Responsive popup — small viewports */
@media (max-width: 640px) {
  .ma-popup              { padding: 12px; }
  .ma-popup-inner        { padding: 20px; max-width: calc(100vw - 24px); }
  .ma-popup-inner img    { max-height: 70vh; object-fit: contain; }
  .ma-popup-close        { width: 36px; height: 36px; top: 8px; right: 8px; font-size: 20px; }
}
@media (max-width: 360px) {
  .ma-popup-inner        { padding: 16px; border-radius: var(--ma-radius-md); }
}
/* Reduce motion: skip the pop-in animation */
@media (prefers-reduced-motion: reduce) {
  .ma-popup-inner { animation: none; }
}

/* Newsletter status note */
.newsletter-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ma-text-muted);
}
.newsletter-note.is-success { color: var(--ma-accent); }
.newsletter-note.is-error   { color: var(--ma-highlight-2); }
.newsletter-btn.is-loading  { opacity: 0.6; cursor: wait; }

/* ============================================================
 * Author archive page
 * ============================================================ */
.author-page-header {
  background: var(--ma-card-bg);
  border-bottom: 1px solid var(--ma-border);
  padding: 48px 0 40px;
}
.author-page-profile {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.author-page-avatar-wrap { flex-shrink: 0; }
.author-page-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ma-border);
}
.author-page-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--ma-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ma-font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.author-page-meta { padding-top: 4px; }
.author-page-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ma-primary);
  margin: 0 0 6px;
}
.author-page-name {
  font-family: var(--ma-font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--ma-navy);
  margin: 0 0 6px;
  line-height: 1.2;
}
.author-page-count {
  font-size: 13px;
  color: var(--ma-text-secondary);
  margin: 0 0 14px;
}
.author-page-bio {
  font-size: 15px;
  color: var(--ma-text-secondary);
  margin: 0;
  line-height: 1.65;
  max-width: 600px;
}
.author-page-posts { padding: 40px 0 64px; }
.author-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}
.author-page-empty {
  color: var(--ma-text-secondary);
  font-size: 15px;
  padding: 32px 0;
}
@media (max-width: 900px) {
  .author-page-profile { flex-direction: column; gap: 20px; }
  .author-posts-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .author-page-header  { padding: 32px 0 28px; }
  .author-posts-grid   { grid-template-columns: 1fr; }
  .author-page-avatar, .author-page-avatar-placeholder { width: 80px; height: 80px; }
}

/* ============================================================
 * Subscribe modal
 * ============================================================ */
.subscribe-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1400;
  backdrop-filter: blur(4px);
}
.subscribe-modal.is-open { display: flex; }
.subscribe-modal-inner {
  position: relative;
  background: var(--ma-card-bg);
  border-radius: var(--ma-radius-lg);
  padding: 48px 40px 36px;
  width: 100%;
  max-width: 460px;
  margin: 20px;
  text-align: center;
  box-shadow: var(--ma-shadow-xl);
  animation: subscribe-modal-in 0.22s ease-out both;
}
@keyframes subscribe-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.subscribe-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--ma-text-secondary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.subscribe-modal-close:hover { background: var(--ma-primary); color: #fff; }
.subscribe-modal-icon {
  width: 52px;
  height: 52px;
  background: var(--ma-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.subscribe-modal-title {
  font-family: var(--ma-font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--ma-navy);
  margin: 0 0 10px;
  line-height: 1.3;
}
.subscribe-modal-desc {
  font-size: 0.9rem;
  color: var(--ma-text-secondary);
  margin: 0 0 24px;
  line-height: 1.6;
}
.subscribe-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subscribe-modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  font-size: 0.95rem;
  font-family: var(--ma-font-body);
  color: var(--ma-text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.subscribe-modal-input:focus { border-color: var(--ma-primary); }
.subscribe-modal-btn {
  width: 100%;
  padding: 13px;
  background: var(--ma-primary);
  color: #fff;
  border: none;
  border-radius: var(--ma-radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--ma-font-body);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.15s;
}
.subscribe-modal-btn:hover { background: var(--ma-primary-light); transform: translateY(-1px); }
@media (max-width: 560px) {
  .subscribe-modal-inner { padding: 40px 24px 28px; }
}

/* ============================================================
 * Single Media Post (single-ma_media.php)
 * ============================================================ */
.single-media .container { max-width: 860px; }

.media-single-header {
  padding: 36px 0 28px;
}
.media-single-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.media-series-badge,
.media-episode-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ma-ice-blue);
  color: var(--ma-primary);
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.media-single-title {
  font-family: var(--ma-font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ma-navy);
  margin: 0 0 12px;
}
.media-single-dek {
  font-size: 1.05rem;
  color: var(--ma-text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
}
.media-single-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ma-text-muted);
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.media-meta-author { font-weight: 600; color: var(--ma-text-secondary); }
.media-meta-duration {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Responsive video/audio embed container */
.media-single-player {
  margin: 0 0 32px;
}
.media-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--ma-radius-md);
  background: #000;
}
.media-embed-wrap iframe,
.media-embed-wrap video,
.media-embed-wrap embed,
.media-embed-wrap object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Handle wp_oembed_get() wrapping <div> */
.media-embed-wrap > div {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.media-embed-wrap > div iframe { position: static; width: 100%; height: 100%; }
/* Audio player gets a flat non-absolute layout */
.media-embed-wrap:has(audio) {
  padding-bottom: 0;
  height: auto;
  background: var(--ma-card-bg);
  padding: 24px;
}
.media-embed-wrap audio,
.media-audio-player {
  width: 100%;
  display: block;
}

.media-single-poster {
  margin: 0 0 32px;
  border-radius: var(--ma-radius-md);
  overflow: hidden;
}
.media-single-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.media-single-content {
  margin: 32px 0;
}

/* Transcript accordion */
.media-transcript {
  margin: 32px 0;
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  overflow: hidden;
}
.media-transcript-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ma-text-primary);
  cursor: pointer;
  list-style: none;
  background: var(--ma-pale-mint);
  user-select: none;
}
.media-transcript-toggle::-webkit-details-marker { display: none; }
.media-transcript-toggle::after {
  content: '+';
  font-size: 20px;
  line-height: 1;
  color: var(--ma-primary);
}
.media-transcript[open] .media-transcript-toggle::after {
  content: '−';
}
.media-transcript-body {
  padding: 24px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ma-text-secondary);
}

@media (max-width: 768px) {
  .single-media .container { padding-inline: 16px; }
  .media-single-title { font-size: 1.5rem; }
}

/* ============================================================
 * WhatsApp floating contact widget
 * ============================================================ */
.ma-wa {
  position: fixed;
  bottom: 20px;
  z-index: 9000;
  font-family: var(--ma-font-body, system-ui, sans-serif);
}
.ma-wa--right { right: 20px; }
.ma-wa--left  { left: 20px;  }
.ma-wa--vis-mobile  { display: none; }
.ma-wa--vis-desktop { display: block; }

@media (max-width: 900px) {
  .ma-wa--vis-mobile  { display: block; }
  .ma-wa--vis-desktop { display: none;  }
}

.ma-wa-launcher {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.ma-wa-launcher:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
}
.ma-wa-launcher:active { transform: scale(0.96); }
.ma-wa-launcher-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* A subtle pulse when the widget first teases the user */
.ma-wa--tease .ma-wa-launcher::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: ma-wa-pulse 1.6s ease-out infinite;
}
@keyframes ma-wa-pulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  100% { transform: scale(1.8);  opacity: 0;   }
}

/* Expanding panel */
.ma-wa-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: ma-wa-in 0.22s ease-out;
}
.ma-wa--right .ma-wa-panel { right: 0; }
.ma-wa--left  .ma-wa-panel { left: 0;  }

@keyframes ma-wa-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.ma-wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #075e54; /* WhatsApp dark green */
  color: #fff;
}
.ma-wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.ma-wa-who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}
.ma-wa-who strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.ma-wa-who span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
}
.ma-wa-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.ma-wa-close:hover { background: rgba(255, 255, 255, 0.15); }

.ma-wa-body {
  padding: 16px 16px 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    #e5ddd5; /* WhatsApp chat background */
}
.ma-wa-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ma-text-primary);
  margin: 0 0 4px;
}
.ma-wa-subtitle {
  font-size: 12.5px;
  color: var(--ma-text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}
.ma-wa-bubble {
  background: #fff;
  border-radius: 10px;
  border-top-left-radius: 2px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ma-text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  position: relative;
  max-width: 85%;
}
.ma-wa-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -6px;
  width: 0;
  height: 0;
  border-top: 6px solid #fff;
  border-left: 6px solid transparent;
}
.ma-wa-field { display: block; }
.ma-wa-field > span {
  display: block;
  font-size: 11.5px;
  color: var(--ma-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ma-wa-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ma-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  background: #fff;
  color: var(--ma-text-primary);
}
.ma-wa-field textarea:focus {
  outline: none;
  border-color: var(--ma-primary);
  box-shadow: 0 0 0 3px rgba(0, 95, 107, 0.12);
}

.ma-wa-foot {
  padding: 12px 16px 14px;
  background: #fff;
  border-top: 1px solid var(--ma-border);
}
.ma-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: #25D366;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}
.ma-wa-cta:hover {
  background: #1ebe5b;
  color: #fff;
  transform: translateY(-1px);
}
.ma-wa-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--ma-text-muted);
  text-align: center;
}

@media (max-width: 480px) {
  .ma-wa { bottom: 16px; }
  .ma-wa--right { right: 16px; }
  .ma-wa--left  { left: 16px;  }
  .ma-wa-launcher { width: 52px; height: 52px; }
  .ma-wa-panel { width: calc(100vw - 32px); }
}
