/* ==== SINGLE TEAM MEMBER CONTENT STYLES ==== */
/* Follows site-grid-rails.css layout system and performance checklist */
/* Performance: Optimized for Core Web Vitals - LCP ≤ 2.0s, CLS ≤ 0.05, INP ≤ 200ms */

/* Performance: Use CSS @layer for proper scoping */
@layer components {
  /* ===== CONTENT SECTION ===== */
  .single-team-content {
    background-color: white;
    padding: 4rem 0;
    /* Performance: Prevent layout shifts */
    contain: layout style;
  }

  /* ===== CONTENT MAIN ===== */
  .single-team-content__main {
    max-width: 800px;
    margin: 0 auto;
  }

  /* ===== TYPOGRAPHY ===== */
  .single-team-content__title {
    font-family: var(--font-heading, "ivypresto-display", "Bodoni Moda", Georgia, serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--ica-green-deep, #1E312F);
    margin: 0 0 2rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
  }

  .single-team-content__text {
    font-family: var(--font-body, "roboto-condensed", system-ui, sans-serif);
    font-size: 20px; /* 20px for desktop */
    line-height: 1.7;
    color: var(--ica-green-deep, #1E312F);
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
  }

  .single-team-content__text p {
    margin-bottom: 1.5rem;
  }

  .single-team-content__text p:last-child {
    margin-bottom: 0;
  }

  .single-team-content__text h3,
  .single-team-content__text h4,
  .single-team-content__text h5,
  .single-team-content__text h6 {
    font-family: var(--font-ui, "Termina", "Arial Black", sans-serif);
    color: var(--ica-green-deep, #1E312F);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
  }

  .single-team-content__text h3 {
    font-size: 1.5rem;
  }

  .single-team-content__text h4 {
    font-size: 1.25rem;
  }

  .single-team-content__text ul,
  .single-team-content__text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
  }

  .single-team-content__text li {
    margin-bottom: 0.5rem;
  }

  .single-team-content__text a {
    color: var(--ica-teal, #17968C);
    text-decoration: none;
    transition: color var(--ease, 250ms cubic-bezier(.2,.7,.2,1));
  }

  .single-team-content__text a:hover {
    color: var(--ica-green-deep, #1E312F);
    text-decoration: underline;
  }

  /* ===== RESPONSIVE DESIGN ===== */
  @media (max-width: 1024px) {
    .single-team-content {
      padding: 3rem 0;
    }

    .single-team-content__main {
      max-width: 700px;
    }
  }

  @media (max-width: 768px) {
    .single-team-content {
      padding: 2.5rem 0;
    }

    .single-team-content__main {
      max-width: 100%;
    }

    .single-team-content__title {
      font-size: clamp(1.75rem, 6vw, 2.5rem);
      margin-bottom: 1.5rem;
    }

    .single-team-content__text {
      font-size: 18px; /* 18px for tablet */
      line-height: 1.6;
    }

    .single-team-content__text h3 {
      font-size: 1.25rem;
    }

    .single-team-content__text h4 {
      font-size: 1.125rem;
    }
  }

  @media (max-width: 480px) {
    .single-team-content {
      padding: 2rem 0;
    }

    .single-team-content__title {
      margin-bottom: 1.25rem;
    }

    .single-team-content__text {
      font-size: 16px; /* 16px for mobile */
    }
  }

  /* ===== FADE-IN ANIMATIONS ===== */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== ACCESSIBILITY ===== */
  @media (prefers-reduced-motion: reduce) {
    .single-team-content__text a {
      transition: none;
    }
    
    .single-team-content__title,
    .single-team-content__text {
      animation: none;
      opacity: 1;
    }
  }

  /* ===== PRINT STYLES ===== */
  @media print {
    .single-team-content {
      background-color: transparent;
      padding: 1rem 0;
    }

    .single-team-content__title,
    .single-team-content__text {
      color: #000;
    }
  }
}
