/* ========================================
   MFN HUB PAGE STYLES
   ======================================== */

/* ========================================
   WORDPRESS AUTO-P SUPPRESSION
   Prevents wpautop from breaking layouts
   ======================================== */

/* Hide all WordPress auto-inserted p tags in MFN Hub containers */
.mfn-hub-page p:empty,
.mfn-hero p:empty,
.mfn-stats-grid p,
.mfn-stat-card p:empty,
.mfn-scheme-grid p:empty,
.mfn-scheme-card p:empty,
.mfn-scheme-header p:empty,
.mfn-scheme-body p:empty,
.mfn-scheme-stats p,
.mfn-scheme-countries p,
.mfn-scheme-footer p:empty,
.mfn-article-carousel p:empty,
.mfn-carousel-track p:empty,
.mfn-article-card p:empty,
.mfn-carousel-dots p,
.mfn-tool-tabs p,
.mfn-tool-panels p:empty,
.mfn-tool-panel p:empty,
.mfn-calculator p:empty,
.mfn-calc-inputs p,
.mfn-calc-field p:empty,
.mfn-calc-result p,
.mfn-calc-breakdown p,
.mfn-map-container p:empty,
.mfn-map-info-panel p:empty,
.mfn-info-grid p,
.mfn-comparison-table-wrapper p:empty,
.mfn-comparison-table p,
.mfn-toolkit-placeholder p:empty,
.mfn-toolkit-features p,
.symap-cta-banner p:empty,
.symap-cta-row p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

/* Hide WordPress br tags in layout containers */
.mfn-stats-grid br,
.mfn-scheme-grid br,
.mfn-scheme-stats br,
.mfn-scheme-countries br,
.mfn-carousel-track br,
.mfn-tool-tabs br,
.mfn-calc-inputs br,
.mfn-calc-breakdown br,
.mfn-info-grid br,
.mfn-toolkit-features br,
.symap-cta-row br {
  display: none !important;
}

/* ========================================
   HERO SECTION
   ======================================== */

.mfn-hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.mfn-hero .symap-h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0f62fe 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mfn-hero .symap-lead {
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Stats Grid */
.mfn-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 2.5rem auto;
}

.mfn-stat-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
}

.mfn-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

.mfn-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #0f62fe;
  line-height: 1.2;
}

.mfn-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* ========================================
   SCHEME CARDS
   ======================================== */

.mfn-scheme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.mfn-scheme-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.mfn-scheme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.mfn-scheme-card.generous:hover {
  border-color: #10b981;
}

.mfn-scheme-card.globe:hover {
  border-color: #3b82f6;
}

.mfn-scheme-card.guard:hover {
  border-color: #8b5cf6;
}

.mfn-scheme-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.mfn-scheme-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.mfn-scheme-badge.medicaid {
  background: #d1fae5;
  color: #065f46;
}

.mfn-scheme-badge.partb {
  background: #dbeafe;
  color: #1e40af;
}

.mfn-scheme-badge.partd {
  background: #ede9fe;
  color: #5b21b6;
}

.mfn-scheme-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.mfn-scheme-full {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

.mfn-scheme-body {
  padding: 1.5rem;
  flex: 1;
}

.mfn-scheme-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.mfn-scheme-stat {
  text-align: center;
}

.mfn-scheme-stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.mfn-scheme-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}

.mfn-scheme-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.mfn-scheme-countries {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.mfn-scheme-countries span {
  font-size: 1.5rem;
  cursor: default;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

/* Hide flag emojis on Windows (renders as ugly 2-letter codes) */
.is-windows .mfn-scheme-countries {
  display: none;
}

.mfn-scheme-countries.compact span {
  font-size: 0.875rem;
  color: #64748b;
}

.mfn-scheme-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* ========================================
   SCHEME CAROUSEL
   ======================================== */

.mfn-scheme-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.mfn-scheme-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 0;
}

.mfn-scheme-track::-webkit-scrollbar {
  display: none;
}

.mfn-scheme-carousel .mfn-scheme-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

/* MFN Agreements Card - orange theme */
.mfn-scheme-card.mfn-agreements:hover {
  border-color: #f59e0b;
}

.mfn-scheme-badge.mfn {
  background: #fef3c7;
  color: #92400e;
}

/* Stat with tooltip (for company list) */
.mfn-stat-tooltip {
  position: relative;
  cursor: help;
}

.mfn-stat-tooltip .mfn-scheme-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mfn-stat-tooltip .mfn-info-icon {
  font-size: 9px;
  width: 12px;
  height: 12px;
}

.mfn-stat-tooltip-content {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  width: 260px;
  text-align: center;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 8px;
}

.mfn-stat-tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

.mfn-stat-tooltip:hover .mfn-stat-tooltip-content {
  display: block;
}

/* Scheme carousel dots */
.mfn-scheme-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* ========================================
   ARTICLE CAROUSEL
   ======================================== */

.mfn-article-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.mfn-carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mfn-carousel-arrow:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
}

.mfn-carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #475569;
}

.mfn-carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 0;
}

.mfn-carousel-track::-webkit-scrollbar {
  display: none;
}

.mfn-article-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.mfn-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.mfn-article-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.mfn-article-tag.strategy {
  background: #fef3c7;
  color: #92400e;
}

.mfn-article-tag.policy {
  background: #dbeafe;
  color: #1e40af;
}

.mfn-article-tag.details {
  background: #ede9fe;
  color: #5b21b6;
}

.mfn-article-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.mfn-article-excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.mfn-article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.mfn-article-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
}

.mfn-article-link:hover {
  text-decoration: underline;
}

.mfn-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.mfn-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mfn-carousel-dot:hover {
  background: #cbd5e1;
}

.mfn-carousel-dot.active {
  background: #3b82f6;
  width: 24px;
  border-radius: 5px;
}

/* ========================================
   INTERACTIVE TOOLS
   ======================================== */

.mfn-tool-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.mfn-tool-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mfn-tool-tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

.mfn-tool-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.mfn-tool-tab svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   HIDDEN TABS - Re-enable by removing these rules
   ======================================== */
.mfn-tool-tab[data-tool="sequencing"],
.mfn-tool-tab[data-tool="calculator"] {
  display: none !important;
}

.mfn-tool-panel {
  display: none;
}

.mfn-tool-panel.active {
  display: block;
}

/* Timeline Header Row */
.mfn-timeline-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mfn-timeline-header-row h3 {
  margin: 0;
}

.mfn-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #3b82f6;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mfn-fullscreen-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

.mfn-fullscreen-btn svg {
  flex-shrink: 0;
}

.mfn-tool-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #f8fafc;
  border-radius: 12px;
  color: #64748b;
}

/* Calculator */
.mfn-calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.mfn-calculator-info h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #0f172a;
}

.mfn-formula-box {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.9375rem;
}

.mfn-calculator {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.mfn-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mfn-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mfn-calc-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
}

.mfn-calc-field input {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.mfn-calc-field input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mfn-calc-hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.mfn-calc-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.mfn-calc-label {
  font-weight: 500;
}

.mfn-calc-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.mfn-calc-breakdown {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.mfn-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #64748b;
}

.mfn-calc-row.total {
  font-weight: 600;
  color: #0f172a;
  border-top: 1px solid #e2e8f0;
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* ========================================
   LAUNCH SEQUENCING TOOL (from post-652)
   ======================================== */

/* ========================================
   MFN HUB LAUNCH SEQUENCING OVERRIDES
   Uses .mfn-hub-page prefix for higher specificity
   to override post-652.css (which is also loaded)
   ======================================== */

/*
 * CRITICAL: Make bar date labels visible on MFN Hub
 * post-652.css hides all p tags inside .symap-launch-bar with !important
 * We need VERY high specificity to override since post-652.css loads AFTER this file
 * Using multiple class/attribute selectors to maximize specificity
 */

/* Override p tag hiding - use 4+ class/attribute selectors for max specificity */
.mfn-hub-page .symap-launch-sequencing .symap-launch-bars .symap-launch-bar-row .symap-launch-bar[data-country] p {
  display: inline !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Also target without the p in case WordPress doesn't wrap */
.mfn-hub-page .symap-launch-sequencing .symap-launch-bars .symap-launch-bar .symap-bar-date {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: white !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

/* Fallback: target p tags inside launch bars more broadly */
.mfn-hub-page .symap-launch-chart .symap-launch-bar p,
.mfn-hub-page .symap-launch-timeline-area .symap-launch-bar p,
.mfn-hub-page #launch-bars .symap-launch-bar p {
  display: inline !important;
  height: auto !important;
  line-height: normal !important;
  visibility: visible !important;
}

/*
 * NUCLEAR OPTION: Ensure bar date is ALWAYS visible
 * Uses ID selector for maximum specificity override
 */
.mfn-hub-page #launch-bars .symap-launch-bar > .symap-bar-date,
.mfn-hub-page #launch-bars .symap-launch-bar .symap-bar-date,
.mfn-hub-page #launch-bars .symap-bar-date,
.mfn-hub-page [id^="bar-"] .symap-bar-date,
.mfn-hub-page .symap-launch-bar-row > div > .symap-bar-date {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: white !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 5 !important;
}

/* If wrapped in p tag (WordPress wpautop), show the p */
.mfn-hub-page #launch-bars p:has(.symap-bar-date),
.mfn-hub-page .symap-launch-bar-row p:has(.symap-bar-date) {
  display: inline !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: visible !important;
}

/* Hide any empty p tags that WordPress might insert (but not ones with content) */
.mfn-hub-page .symap-launch-bar > p:empty {
  display: none !important;
}

/* MFN Hub uses 8 countries (vs 6 in post-652), so needs more height */
.mfn-hub-page .symap-launch-timeline-area {
  min-height: 500px; /* 32px top + 8 countries x 52px + 52px x-axis */
}

.mfn-hub-page .symap-launch-bars {
  bottom: 52px;
}

.mfn-hub-page .symap-capture-windows {
  bottom: 52px;
}

p.symap-launch-intro,
p.symap-results-explainer {
  display: block !important;
  height: auto !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.symap-launch-sequencing {
  margin: 0;
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.symap-launch-header {
  margin-bottom: 1.25rem;
}

.symap-launch-header h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.symap-launch-intro {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.symap-icon-drag {
  display: inline-block;
  font-size: 1rem;
  margin-right: 0.25rem;
  transform: rotate(180deg);
  animation: symap-point 1.5s ease-in-out infinite;
}

@keyframes symap-point {
  0%, 100% { transform: rotate(180deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-3px); }
}

.symap-launch-chart {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.symap-launch-y-axis {
  display: flex;
  flex-direction: column;
  width: 130px;
  min-width: 130px;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  padding-top: 32px;
}

.symap-launch-country-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 52px;
  padding: 0 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  gap: 0.125rem;
  box-sizing: border-box;
}

.symap-launch-country-label:last-child {
  border-bottom: none;
}

.symap-country-flag {
  font-size: 0.875rem;
  line-height: 1;
}

.symap-country-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
}

.symap-country-price {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 500;
}

.symap-price-input {
  width: 45px;
  padding: 2px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  text-align: right;
}

.symap-price-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.symap-capture-windows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 1;
  pointer-events: none;
}

.symap-capture-window {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.375rem;
}

.symap-capture-window.year-2 {
  left: 3.57%;
  width: 14.29%;
  background: rgba(59, 130, 246, 0.12);
  border-left: 2px dashed #3b82f6;
  border-right: 2px dashed #3b82f6;
}
.symap-capture-window.year-2 .symap-capture-label { color: #2563eb; }
.symap-capture-window.year-2 .symap-capture-dates { color: #3b82f6; }

.symap-capture-window.year-3 {
  left: 17.86%;
  width: 14.29%;
  background: rgba(139, 92, 246, 0.12);
  border-left: 2px dashed #8b5cf6;
  border-right: 2px dashed #8b5cf6;
}
.symap-capture-window.year-3 .symap-capture-label { color: #7c3aed; }
.symap-capture-window.year-3 .symap-capture-dates { color: #8b5cf6; }

.symap-capture-window.year-4 {
  left: 32.14%;
  width: 14.29%;
  background: rgba(16, 185, 129, 0.15);
  border-left: 2px dashed #10b981;
  border-right: 2px dashed #10b981;
}
.symap-capture-window.year-4 .symap-capture-label { color: #059669; }
.symap-capture-window.year-4 .symap-capture-dates { color: #10b981; }

.symap-capture-window.year-5 {
  left: 46.43%;
  width: 14.29%;
  background: rgba(249, 115, 22, 0.12);
  border-left: 2px dashed #f97316;
  border-right: 2px dashed #f97316;
}
.symap-capture-window.year-5 .symap-capture-label { color: #ea580c; }
.symap-capture-window.year-5 .symap-capture-dates { color: #f97316; }

.symap-capture-label {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.symap-capture-dates {
  font-size: 0.45rem;
  white-space: nowrap;
  font-weight: 600;
}

.symap-launch-bars {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 2;
}

.symap-launch-bar-row {
  height: 52px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.symap-launch-bar-row:last-child {
  border-bottom: none;
}

.symap-launch-bar {
  position: absolute;
  top: 9px;
  right: 0;
  height: 34px;
  min-width: 90px;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  cursor: grab;
  user-select: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.symap-launch-bar:active {
  cursor: grabbing;
}

.symap-launch-bar.included {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.symap-launch-bar.excluded {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.symap-launch-bar:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.symap-bar-handle {
  width: 26px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px 0 0 4px;
  color: white;
  flex-shrink: 0;
}

.symap-bar-handle svg {
  width: 14px;
  height: 14px;
}

.symap-launch-bar:hover .symap-bar-handle {
  background: rgba(0, 0, 0, 0.25);
}

.symap-bar-date {
  padding: 0 0.75rem 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.symap-launch-x-axis {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.symap-year-marker {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  border-left: 1px solid #e2e8f0;
  padding: 0.5rem 0;
}

.symap-year-marker:first-child {
  border-left: none;
}

.symap-launch-results {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.symap-results-header-row {
  margin-bottom: 1rem;
}

.symap-results-header-row h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.symap-results-explainer {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-style: italic;
}

.symap-year-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.symap-year-result {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.symap-year-result:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.symap-year-result.has-price {
  background: #ecfdf5;
  border-color: #10b981;
}

.symap-year-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  margin-bottom: 0.5rem;
}

.symap-year-badge {
  display: inline-block;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
}

.symap-year-result[data-year="2"] .symap-year-badge { background: #3b82f6; color: white; }
.symap-year-result[data-year="3"] .symap-year-badge { background: #8b5cf6; color: white; }
.symap-year-result[data-year="4"] .symap-year-badge { background: #10b981; color: white; }
.symap-year-result[data-year="5"] .symap-year-badge { background: #f97316; color: white; }

.symap-year-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
}

.symap-year-included {
  margin-bottom: 0.5rem;
}

.symap-included-badge {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #475569;
  background: #e2e8f0;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
}

.symap-year-result.has-price .symap-included-badge {
  background: #dcfce7;
  color: #166534;
}

.symap-price-badge {
  display: block;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 0.375rem 0.5rem;
  border-radius: 6px;
  margin-top: 0.375rem;
  border: 1px solid #a7f3d0;
  text-align: center;
}

.symap-price-badge-label {
  display: block;
  font-size: 0.5rem;
  color: #047857;
  font-weight: 500;
  margin-bottom: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.symap-price-badge-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #059669;
}

.symap-calc-badge {
  display: block;
  font-size: 0.5rem;
  color: #475569;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 0.5rem;
  border-radius: 8px;
  margin-top: 0.375rem;
  border: 1px solid #e2e8f0;
  text-align: center;
  position: relative;
  cursor: pointer;
}

.symap-calc-country {
  display: inline-block;
  font-weight: 700;
  font-size: 0.625rem;
  color: #1e293b;
  background: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  margin-bottom: 0.375rem;
}

.symap-calc-formula {
  display: block;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.625rem;
  color: #334155;
  background: #fff;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  border: 1px dashed #cbd5e1;
}

.symap-calc-formula .label {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.symap-calc-formula .value {
  color: #059669;
  font-weight: 600;
  font-size: 0.6875rem;
}

.symap-calc-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.625rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 8px;
}

.symap-calc-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

.symap-calc-badge:hover .symap-calc-tooltip {
  opacity: 1;
  visibility: visible;
}

.symap-calc-tooltip table {
  border-collapse: collapse;
  width: 100%;
}

.symap-calc-tooltip th {
  text-align: left;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #475569;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.5rem;
  text-transform: uppercase;
}

.symap-calc-tooltip td {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #334155;
}

.symap-calc-tooltip tr:last-child td {
  border-bottom: none;
}

.symap-calc-tooltip .country-name { font-weight: 500; }
.symap-calc-tooltip .net-price { color: #94a3b8; text-align: right; }
.symap-calc-tooltip .ppp-adj { color: #94a3b8; text-align: right; }
.symap-calc-tooltip .ppp-price { color: #4ade80; font-weight: 600; text-align: right; }

.symap-calc-tooltip tr.second-lowest {
  background: rgba(74, 222, 128, 0.15);
}

.symap-calc-tooltip tr.second-lowest td {
  color: #4ade80;
}

.symap-launch-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.symap-launch-reset {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.symap-launch-reset:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.symap-launch-reset svg {
  width: 14px;
  height: 14px;
}

.symap-launch-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: #92400e;
  line-height: 1.5;
}

.symap-launch-note strong {
  color: #78350f;
}

/* Map */
.mfn-map-intro,
.mfn-comparison-intro {
  margin-bottom: 1.5rem;
}

.mfn-map-intro h3,
.mfn-comparison-intro h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #0f172a;
}

/* Wrapper to position info panel over the map */
.mfn-map-wrapper {
  position: relative;
}

.mfn-map-container {
  position: relative;
  min-height: 600px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

/* Map Markers */
.mfn-map-marker {
  background: transparent !important;
  border: none !important;
}

.mfn-marker-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mfn-marker-flag:hover {
  transform: scale(1.15);
  border-color: #1d4ed8;
  box-shadow: 0 5px 12px rgba(59, 130, 246, 0.4);
}

/* Info Panel - positioned over the map */
.mfn-map-info-panel {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 300px;
  max-height: 500px;
  overflow-y: auto;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.mfn-info-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.mfn-info-close:hover {
  background: #e2e8f0;
}

.mfn-info-content {
  padding: 1.25rem;
}

.mfn-info-content h4 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: #0f172a;
}

.mfn-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mfn-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.mfn-info-label {
  font-size: 0.6875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mfn-info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

/* Info Panel Sections */
.mfn-info-section {
  margin-bottom: 1rem;
}

.mfn-info-section:last-child {
  margin-bottom: 0;
}

.mfn-info-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mfn-info-source {
  font-weight: 400;
  font-size: 0.625rem;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: normal;
}

/* Highlighted info item (PPP) */
.mfn-info-item.highlight {
  grid-column: 1 / -1;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-top: 0.25rem;
}

.mfn-info-item.highlight .mfn-info-value {
  color: #2563eb;
  font-size: 1rem;
}

/* IRP Section Styling */
.mfn-info-irp {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mfn-info-irp .mfn-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mfn-info-irp .mfn-info-row:last-child {
  border-bottom: none;
}

.mfn-info-irp .mfn-info-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: none;
  letter-spacing: normal;
}

.mfn-info-irp .mfn-info-value {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* IRP Type Badges */
.mfn-irp-yes {
  color: #059669;
  background: #d1fae5;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem !important;
}

.mfn-irp-partial {
  color: #d97706;
  background: #fef3c7;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem !important;
}

.mfn-irp-no {
  color: #64748b;
  background: #f1f5f9;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem !important;
}

/* ========================================
   MAP FILTER BUTTONS
   ======================================== */

.mfn-map-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mfn-filter-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.mfn-map-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mfn-map-filter:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.mfn-map-filter.active {
  background: white;
  color: #0f172a;
}

.mfn-map-filter.active#filter-generous {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.mfn-map-filter.active#filter-globe {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.mfn-filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.mfn-map-filter.active .mfn-filter-dot.generous {
  background: #10b981;
}

.mfn-map-filter.active .mfn-filter-dot.globe {
  background: #3b82f6;
}

.mfn-filter-count {
  font-weight: 500;
  opacity: 0.7;
}

/* ========================================
   COMPARISON TABLE FILTER BUTTONS
   ======================================== */

.mfn-comparison-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.mfn-comparison-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mfn-comparison-filter:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.mfn-comparison-filter.active {
  background: white;
  color: #0f172a;
}

.mfn-comparison-filter.active[data-scheme="generous"] {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.mfn-comparison-filter.active[data-scheme="globe"] {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.mfn-comparison-filter.active[data-scheme="guard"] {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.mfn-comparison-filter.active[data-scheme="mfn"] {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.mfn-comparison-filter .mfn-filter-dot.guard {
  background: #cbd5e1;
}

.mfn-comparison-filter.active .mfn-filter-dot.guard {
  background: #8b5cf6;
}

.mfn-comparison-filter .mfn-filter-dot.mfn {
  background: #cbd5e1;
}

.mfn-comparison-filter.active .mfn-filter-dot.mfn {
  background: #f59e0b;
}

/* Mobile hint - hidden on desktop */
.mfn-mobile-filter-hint {
  display: none;
}

/* Hidden columns in comparison table */
.mfn-comparison-table [data-scheme].hidden {
  display: none;
}

/* Model Badges in Info Panel */
.mfn-info-models {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mfn-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mfn-model-badge.generous {
  background: #d1fae5;
  color: #065f46;
}

.mfn-model-badge.globe {
  background: #dbeafe;
  color: #1e40af;
}

/* Hidden markers when filtered out */
.mfn-map-marker.filtered-out {
  display: none !important;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.mfn-comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.mfn-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.mfn-comparison-table th,
.mfn-comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.mfn-comparison-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}

.mfn-comparison-table th.generous {
  background: #d1fae5;
  color: #065f46;
}

.mfn-comparison-table th.globe {
  background: #dbeafe;
  color: #1e40af;
}

.mfn-comparison-table th.guard {
  background: #ede9fe;
  color: #5b21b6;
}

.mfn-comparison-table th.mfn {
  background: #fef3c7;
  color: #92400e;
}

.mfn-comparison-table td {
  color: #475569;
}

.mfn-comparison-table td:first-child {
  background: #f8fafc;
  color: #0f172a;
}

.mfn-comparison-table tr:hover td {
  background: #f8fafc;
}

.mfn-comparison-table tr:hover td:first-child {
  background: #f1f5f9;
}

/* ========================================
   COMPARISON TABLE TOOLTIPS
   ======================================== */

.mfn-table-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mfn-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 10px;
  font-style: normal;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: help;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mfn-table-info:hover .mfn-info-icon {
  color: #3b82f6;
  background: #dbeafe;
}

.mfn-table-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  width: 280px;
  text-align: left;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 8px;
}

.mfn-table-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

.mfn-table-info:hover .mfn-table-tooltip {
  display: block;
}

/* Ensure table cells don't clip tooltips */
.mfn-comparison-table td {
  overflow: visible;
}

/* Adjust tooltip position for edge cells */
.mfn-comparison-table td:last-child .mfn-table-tooltip {
  left: auto;
  right: 0;
  transform: none;
}

.mfn-comparison-table td:last-child .mfn-table-tooltip::after {
  left: auto;
  right: 20px;
  transform: none;
}

/* Below-positioned tooltips (for top rows) */
.mfn-table-tooltip.below {
  bottom: auto;
  top: 100%;
  margin-bottom: 0;
  margin-top: 8px;
}

.mfn-table-tooltip.below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1e293b;
}

/* ========================================
   TOOLKIT PLACEHOLDER
   ======================================== */

/* Toolkit Placeholder (Coming Soon - kept for reference) */
.mfn-toolkit-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
}

.mfn-coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.mfn-toolkit-placeholder .symap-h2 {
  margin-bottom: 1rem;
}

.mfn-toolkit-placeholder .symap-muted {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Toolkit Live Section */
.mfn-toolkit-live {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
  border-radius: 16px;
}

.mfn-live-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mfn-toolkit-live .symap-h2 {
  margin-bottom: 1rem;
  color: #065f46;
}

.mfn-toolkit-live .symap-muted {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #047857;
}

.mfn-toolkit-live .mfn-toolkit-features {
  margin-bottom: 2rem;
}

.mfn-toolkit-live .mfn-toolkit-feature svg {
  stroke: #10b981;
}

.mfn-toolkit-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mfn-toolkit-cta-row .symap-btn.primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #059669;
}

.mfn-toolkit-cta-row .symap-btn.primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.mfn-toolkit-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.mfn-toolkit-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.9375rem;
}

.mfn-toolkit-feature svg {
  width: 20px;
  height: 20px;
  stroke: #3b82f6;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.mfn-faq-accordion {
  max-width: 900px;
  margin: 2rem auto 0;
}

.mfn-faq-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

.mfn-faq-item:hover {
  border-color: #cbd5e1;
}

.mfn-faq-item.active {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mfn-faq-item:last-child {
  margin-bottom: 0;
}

/* Question button */
.mfn-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  transition: background 0.2s ease;
}

.mfn-faq-question:hover {
  background: #f8fafc;
}

.mfn-faq-question span {
  flex: 1;
}

/* Chevron icon */
.mfn-faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.3s ease;
}

.mfn-faq-item.active .mfn-faq-icon {
  transform: rotate(180deg);
  color: #3b82f6;
}

/* Answer content */
.mfn-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mfn-faq-item.active .mfn-faq-answer {
  max-height: 500px;
}

.mfn-faq-answer p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
}

/* Suppress WordPress auto-p in FAQ */
.mfn-faq-accordion p:empty,
.mfn-faq-item > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.mfn-hub-page .symap-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mfn-hub-page .symap-animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for scheme cards */
.mfn-scheme-grid .mfn-scheme-card:nth-child(1).symap-animate-on-scroll { transition-delay: 0s; }
.mfn-scheme-grid .mfn-scheme-card:nth-child(2).symap-animate-on-scroll { transition-delay: 0.15s; }
.mfn-scheme-grid .mfn-scheme-card:nth-child(3).symap-animate-on-scroll { transition-delay: 0.3s; }

/* ========================================
   BEFORE/AFTER COMPARISON SLIDER
   Note: All slider styles come from post-652.css
   which is loaded via PHP enqueue for the MFN Hub page
   ======================================== */

/* Wrapper for the comparison slider on MFN Hub page */
.mfn-comparison-wrapper {
  max-width: 900px;
  margin: 2rem auto;
}

/* Hint text above slider */
.symap-slider-hint {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.symap-icon-slider {
  display: inline-block;
  font-size: 1.25rem;
  margin-right: 0.5rem;
  animation: slider-hint 1.5s ease-in-out infinite;
}

@keyframes slider-hint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .mfn-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mfn-scheme-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .mfn-calculator-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mfn-hero {
    padding: 2rem 0;
  }

  .mfn-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .mfn-stat-value {
    font-size: 1.5rem;
  }

  .mfn-carousel-arrow {
    display: none;
  }

  .mfn-article-card {
    flex: 0 0 280px;
  }

  .mfn-tool-tabs {
    gap: 0;
  }

  .mfn-tool-tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .mfn-tool-tab svg {
    display: none;
  }

  .mfn-comparison-table {
    font-size: 0.8125rem;
  }

  .mfn-comparison-table th,
  .mfn-comparison-table td {
    padding: 0.75rem;
  }

  /* Mobile: show hint about 2-scheme limit */
  .mfn-mobile-filter-hint {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
  }

  /* Disabled state for filters when 2 are already selected */
  .mfn-comparison-filter.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
  }

  .mfn-toolkit-features {
    flex-direction: column;
    gap: 1rem;
  }

  /* Map Info Panel responsive */
  .mfn-map-info-panel {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-height: 50%;
  }

  .mfn-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .mfn-info-content {
    padding: 1rem;
  }

  .mfn-info-content h4 {
    font-size: 1rem;
  }

  /* Launch Sequencing responsive */
  .symap-launch-sequencing { padding: 1rem; }
  .symap-launch-y-axis { width: 100px; min-width: 100px; }
  .symap-country-flag { font-size: 0.75rem; }
  .symap-country-name { font-size: 0.6875rem; }
  .symap-country-price { font-size: 0.625rem; }
  .symap-launch-country-label { height: 48px; padding: 0 0.5rem; }
  .symap-launch-bar-row { height: 48px; }
  .symap-launch-bar { height: 30px; top: 9px; min-width: 70px; }
  .symap-bar-handle { width: 22px; }
  .symap-bar-handle svg { width: 12px; height: 12px; }
  .symap-bar-date { font-size: 0.625rem; padding: 0 0.5rem 0 0.375rem; }
  .mfn-hub-page .symap-launch-timeline-area { min-height: 460px; } /* 8 countries x 48px + spacing */
  .symap-capture-dates { display: none; }
  .symap-capture-label { font-size: 0.4rem; }
  .symap-year-marker { font-size: 0.5625rem; }
  .symap-year-results-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .symap-year-result { padding: 0.5rem; }
  .symap-year-badge { font-size: 0.5625rem; padding: 0.125rem 0.375rem; }
  .symap-year-label { font-size: 0.75rem; }
  .symap-price-badge-value { font-size: 0.75rem; }
}

/* ========================================
   TIMELINE VIEWER RESPONSIVE
   Desktop: show iframe, Mobile: show message
   ======================================== */

.mfn-mobile-only {
  display: none;
}

.mfn-desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .mfn-mobile-only {
    display: block;
  }

  .mfn-desktop-only {
    display: none;
  }

  /* On mobile: reorder tabs - timeline goes to end */
  .mfn-tool-tab[data-tool="timeline"] {
    order: 99;
  }

  .mfn-tool-tabs {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .mfn-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mfn-stat-card {
    padding: 1rem 0.75rem;
  }

  .mfn-article-card {
    flex: 0 0 260px;
  }

  /* Launch Sequencing small screens */
  .symap-launch-y-axis { width: 85px; min-width: 85px; }
  .symap-year-results-grid { grid-template-columns: 1fr 1fr; }
  .mfn-hub-page .symap-launch-timeline-area { min-height: 460px; }
}
