/* =====================================================
   GLOBAL TYPOGRAPHY BASELINE (SINGLE SOURCE OF TRUTH)
===================================================== */

.md-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

.md-content ul,
.md-content ol {
  font-size: inherit;
}


/* =====================================================
   FLEXI ORDER COMPARISON – STRATEGY GUIDE
===================================================== */

.flexi-order-guide {
  margin: 2.5rem 0;
}

.flexi-order-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Vertical divider */
.flexi-divider {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--md-default-fg-color--lighter),
    transparent
  );
}


/* =====================================================
   COLUMN LAYOUT
===================================================== */

.flexi-order-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Column titles */
.md-content h3.flexi-order-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.25rem 0;
}


/* =====================================================
   EXPLANATION BOXES
===================================================== */

.flexi-explain-box {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: inherit;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.flexi-explain-box.danger {
  background: rgba(255, 80, 80, 0.07);
  border: 1px solid rgba(255, 80, 80, 0.35);
}

.flexi-explain-box.success {
  background: rgba(0, 255, 140, 0.07);
  border: 1px solid rgba(0, 255, 140, 0.35);
}


/* =====================================================
   GIF CONTAINER
===================================================== */

.flexi-gif-wrap {
  border-radius: 16px;
  padding: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flexi-gif-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #000;
}

.flexi-gif-wrap:hover {
  transform: translateY(-2px);
}


/* =====================================================
   NEON GLOW
===================================================== */

.glow-green {
  box-shadow:
    0 0 10px rgba(0, 255, 140, 0.45),
    0 0 22px rgba(0, 255, 140, 0.25);
}

.glow-red {
  box-shadow:
    0 0 10px rgba(255, 80, 80, 0.45),
    0 0 22px rgba(255, 80, 80, 0.25);
}

[data-md-color-scheme="slate"] .glow-green {
  box-shadow:
    0 0 14px rgba(0, 255, 160, 0.6),
    0 0 30px rgba(0, 255, 160, 0.35);
}

[data-md-color-scheme="slate"] .glow-red {
  box-shadow:
    0 0 14px rgba(255, 90, 90, 0.6),
    0 0 30px rgba(255, 90, 90, 0.35);
}


/* =====================================================
   BULLET POINTS
===================================================== */

.flexi-points {
  padding-left: 1.2rem;
  font-size: inherit;
  margin-top: 0.25rem;
}

.flexi-points li {
  margin-bottom: 0.35rem;
}


/* =====================================================
   HEADING SPACING (SAFE)
===================================================== */

.md-content h2 {
  margin-bottom: 1.1rem;
}

.md-content h3 {
  margin-bottom: 0.5rem;
}

h2 + .flexi-order-guide {
  margin-top: 1rem;
}


/* =====================================================
   MOBILE FALLBACKS
===================================================== */

@media (max-width: 960px) {

  .flexi-order-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flexi-divider {
    display: none;
  }

  .flexi-order-column {
    align-items: center;
    text-align: center;
  }

  .flexi-explain-box,
  .flexi-points {
    text-align: left;
  }

  .flexi-gif-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .flexi-points {
    max-width: 420px;
    margin: 0 auto;
  }
}


/* =====================================================
   FLEXI FEATURE CARDS (WHY FLEXI MATTERS)
===================================================== */

.flexi-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.flexi-feature-card {
  position: relative;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0)
  );
  padding: 18px 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-md-color-scheme="default"] .flexi-feature-card {
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Accent line */
.flexi-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    rgba(0,255,140,0.6),
    rgba(0,255,140,0.15)
  );
}

/* Hover */
.flexi-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* Card title */
.flexi-feature-card h4 {
  margin: 6px 0 14px 0;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
}

/* Card bullets */
.flexi-feature-card ul {
  padding-left: 18px;
  margin: 0;
  font-size: inherit;
}

.flexi-feature-card li {
  margin-bottom: 8px;
  color: var(--md-default-fg-color--light);
}

[data-md-color-scheme="slate"] .flexi-feature-card li {
  color: rgba(255,255,255,0.75);
}
