/* ============================================
   MOVING GUIDE — WHO PAGE
   Prefix: mgwho-
   Tab/toggle system for nationality categories
   ============================================ */

/* Reduce bottom gap between toggle section and panels */
.mg-section:has(.mgwho-toggle) {
  padding-bottom: var(--space-xl);
}

/* ============================================
   MGWHO-TOGGLE — Category Selector
   ============================================ */
.mgwho-toggle {
  max-width: var(--mg-content-width, 1060px);
  margin: 0 auto;
  text-align: center;
}

.mgwho-toggle__heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: var(--text-3xl);
  color: var(--mg-text, #1a1a1a);
  margin-bottom: var(--space-2xl);
}

.mgwho-toggle__bar {
  display: inline-flex;
  background: var(--mg-midnight, #0A1628);
  border-radius: var(--radius-full, 9999px);
  padding: 4px;
  gap: 4px;
}

.mgwho-toggle__btn {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  border-radius: var(--radius-full, 9999px);
  padding: var(--space-sm) var(--space-xl);
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}

.mgwho-toggle__btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.mgwho-toggle__btn.is-active {
  background: var(--mg-gold, #c4918a);
  color: var(--mg-midnight, #0A1628);
  font-weight: 700;
}

.mgwho-toggle__btn:focus-visible {
  outline: 2px solid var(--mg-aurora, #7dd3c0);
  outline-offset: 2px;
}

/* ============================================
   MGWHO-PANELS — Content Panels
   ============================================ */
.mgwho-panels {
  position: relative;
}

.mgwho-panel {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.mgwho-panel.is-active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* ============================================
   MGWHO-CATEGORY — Category Panel Content
   ============================================ */
.mgwho-category {
  max-width: var(--mg-content-width, 1060px);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl) var(--space-lg);
}

.mgwho-category__header {
  margin-bottom: var(--space-lg);
}

.mgwho-category__label {
  display: inline-block;
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mg-gold, #c4918a);
  margin-bottom: var(--space-sm);
}

.mgwho-category__title {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.mgwho-category__subtitle {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-base);
  color: var(--mg-text-secondary, #4a4a4a);
  line-height: 1.6;
}

/* Dark panel variant */
.mgwho-panel--dark {
  background: var(--mg-dark, #243D4F);
  color: var(--color-text-inverse, #faf8f5);
}

.mgwho-panel--dark .mgwho-category__title {
  color: #fff;
}

.mgwho-panel--dark .mgwho-category__subtitle {
  color: rgba(250, 248, 245, 0.75);
}

/* Cream variant */
.mgwho-panel--cream {
  background: var(--mg-cream, #F1EBE3);
}

/* ============================================
   MGWHO-CARDS — Requirement Cards Grid
   ============================================ */
.mgwho-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.mgwho-card {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-left: 3px solid var(--mg-aurora, #7dd3c0);
  border-radius: 0 var(--radius-lg, 1rem) var(--radius-lg, 1rem) 0;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mgwho-card:hover {
  transform: translateY(-2px);
}

/* Light variant cards */
.mgwho-panel--light .mgwho-card,
.mgwho-panel--cream .mgwho-card {
  background: #fff;
  border-left: 3px solid var(--mg-green, #2d6a3f);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mgwho-panel--light .mgwho-card:hover,
.mgwho-panel--cream .mgwho-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.mgwho-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(125, 211, 192, 0.12);
  border-radius: var(--radius-md, 0.75rem);
}

.mgwho-panel--light .mgwho-card__icon,
.mgwho-panel--cream .mgwho-card__icon {
  background: rgba(196, 145, 138, 0.12);
}

.mgwho-card__body {
  flex: 1;
}

.mgwho-card__title {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.mgwho-card__text {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-sm);
  line-height: 1.7;
  opacity: 0.75;
}

/* ============================================
   MGWHO-PROSE — Panel Body Text
   ============================================ */
.mgwho-prose {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-lg);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.mgwho-prose p {
  margin-bottom: var(--space-lg);
}

.mgwho-prose p:last-child {
  margin-bottom: 0;
}

.mgwho-prose a {
  color: var(--mg-green, #2d6a3f);
  text-decoration: underline;
  text-decoration-color: var(--mg-aurora, #7dd3c0);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mgwho-panel--dark .mgwho-prose {
  color: rgba(250, 248, 245, 0.85);
}

.mgwho-panel--dark .mgwho-prose a {
  color: var(--mg-aurora, #7dd3c0);
  text-decoration-color: rgba(125, 211, 192, 0.4);
}

.mgwho-panel--cream .mgwho-prose {
  color: var(--mg-text-secondary, #4a4a4a);
}

/* ============================================
   MGWHO-CHECKLIST — What You'll Need
   ============================================ */
.mgwho-checklist {
  background: var(--mg-midnight, #0A1628);
  border-radius: var(--radius-lg, 1rem);
  padding: var(--space-2xl);
}

.mgwho-panel--dark .mgwho-checklist {
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cream panel: no separate background, inherit cream surface */
.mgwho-panel--cream .mgwho-checklist {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mgwho-panel--cream .mgwho-checklist__title {
  color: var(--mg-text, #1a1a1a);
}

.mgwho-panel--cream .mgwho-checklist__item {
  color: var(--mg-text-secondary, #4a4a4a);
}

.mgwho-panel--cream .mgwho-checklist__item::before {
  background: rgba(45, 106, 63, 0.1);
  border-color: var(--mg-green, #2d6a3f);
}

.mgwho-panel--cream .mgwho-checklist__item::after {
  color: var(--mg-green, #2d6a3f);
}

/* Light panel: same treatment */
.mgwho-panel--light .mgwho-checklist {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mgwho-panel--light .mgwho-checklist__title {
  color: var(--mg-text, #1a1a1a);
}

.mgwho-panel--light .mgwho-checklist__item {
  color: var(--mg-text-secondary, #4a4a4a);
}

.mgwho-panel--light .mgwho-checklist__item::before {
  background: rgba(45, 106, 63, 0.1);
  border-color: var(--mg-green, #2d6a3f);
}

.mgwho-panel--light .mgwho-checklist__item::after {
  color: var(--mg-green, #2d6a3f);
}

.mgwho-checklist__title {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-lg);
}

.mgwho-checklist__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mgwho-checklist__item {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-base);
  color: rgba(250, 248, 245, 0.85);
  padding-left: var(--space-2xl);
  position: relative;
  line-height: 1.5;
}

.mgwho-checklist__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full, 50%);
  background: rgba(125, 211, 192, 0.15);
  border: 2px solid var(--mg-aurora, #7dd3c0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mgwho-checklist__item::after {
  content: '\2713';
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 0.75rem;
  color: var(--mg-aurora, #7dd3c0);
  line-height: 20px;
}

/* ============================================
   MGWHO-DISCLAIMER
   ============================================ */
.mgwho-disclaimer-section {
  background: var(--mg-cream, #F1EBE3);
  padding: var(--space-sm) var(--space-xl) var(--space-md);
}

.mgwho-disclaimer {
  max-width: calc(var(--mg-content-width, 1060px) - 2 * var(--space-xl));
  margin-left: auto;
  margin-right: auto;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg, 1rem);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.mgwho-disclaimer__icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--mg-text-muted, #666);
}

.mgwho-disclaimer__text {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-sm);
  color: var(--mg-text-muted, #666);
  line-height: 1.6;
}

.mgwho-disclaimer__text a {
  color: var(--mg-green, #2d6a3f);
  text-decoration: underline;
  text-decoration-color: var(--mg-aurora, #7dd3c0);
  text-underline-offset: 3px;
}

.mgwho-disclaimer__date {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--text-xs);
  color: var(--mg-text-muted, #666);
  opacity: 0.7;
  margin-top: var(--space-xs);
  display: block;
}

/* ============================================
   MGWHO-CROSS-NAV — Tighter bottom spacing
   ============================================ */
.mgwho-cross-nav-section {
  padding: var(--space-lg) 0 var(--space-2xl);
  background: var(--mg-cream, #F1EBE3);
}

.mgwho-cross-nav-section .mg-cross-nav {
  padding: 0 var(--space-xl);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .mgwho-toggle__bar {
    flex-direction: column;
    border-radius: var(--radius-lg, 1rem);
    width: 100%;
    max-width: 320px;
  }

  .mgwho-toggle__btn {
    text-align: center;
    padding: var(--space-md) var(--space-xl);
  }

  .mgwho-cards {
    grid-template-columns: 1fr;
  }

  .mgwho-disclaimer-section {
    padding: var(--space-md) var(--space-md) var(--space-sm);
  }

  .mgwho-cross-nav-section .mg-cross-nav {
    padding: 0 var(--space-md);
  }

  .mgwho-disclaimer {
    flex-direction: column;
    text-align: center;
  }

  .mgwho-category {
    padding: var(--space-xl) var(--space-md);
  }
}


