/**
 * Envirogyn Reusable Credential & Agency Information Architecture
 * Scoped strictly under .page-credential (powers /ascp and upcoming agency/credential pages).
 *
 * Strictly uses Envirogyn 2026 design tokens:
 * Surfaces: #FFFFFF, #F6F9F6, #EDF3EE, #F8F9FA, #131313, #1E1F22, #090D16
 * Inks: #0F172A, #334155, #475569, #CBD5E1, #FFFFFF
 * Accents: #006837 (Forest Green), #00522C (Hover), #8AC340 (Botanical Leaf on dark surfaces only)
 * Fonts: Outfit (Headings), Source Sans 3 (Body), IBM Plex Mono (Codes & Verification IDs)
 */

.page-credential {
  background-color: #FFFFFF;
  color: #0F172A;
}

.page-credential .evg-nav-trigger[aria-current="page"] {
  color: #006837;
}

.page-credential .cred-main {
  display: block;
  width: 100%;
  overflow-x: clip;
}

/* Shared Section Headers & Pills */
.page-credential .cred-section-head {
  max-width: 780px;
  margin: 0 0 clamp(1.85rem, 3vw, 2.5rem);
}

.page-credential .cred-section-head.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-credential .cred-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #006837;
  background-color: #E8F3EC;
  border: 1px solid rgba(0, 104, 55, 0.16);
  border-radius: 999px !important;
  padding: 0.36rem 0.95rem;
  margin-bottom: 1rem;
}

.page-credential .cred-eyebrow.is-dark {
  background-color: #193626;
  border-color: rgba(138, 195, 64, 0.25);
  color: #BBF7D0;
}

.page-credential .cred-h2 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0 0 0.75rem;
}

.page-credential .cred-h2.is-white {
  color: #FFFFFF;
}

.page-credential .cred-section-sub {
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

.page-credential .cred-section-sub.is-light {
  color: #CBD5E1;
}

.page-credential .cred-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.68rem 1.35rem;
  border-radius: 999px !important;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.16s ease;
}

.page-credential .cred-btn.is-primary {
  background-color: #006837;
  color: #FFFFFF;
  border-color: #006837;
}

.page-credential .cred-btn.is-primary:hover {
  background-color: #00522C;
  border-color: #00522C;
  transform: translateY(-1px);
}

.page-credential .cred-btn.is-outline {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
}

.page-credential .cred-btn.is-outline:hover {
  border-color: #006837;
  color: #006837;
  background-color: #F6F9F6;
}

.page-credential .cred-btn.is-dark-outline {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
}

.page-credential .cred-btn.is-dark-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #8AC340;
  color: #8AC340;
}

/* ==========================================================================
   1. HERO & VERIFIED CREDENTIAL DOSSIER CARD
   ========================================================================== */

.page-credential .cred-hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAF9 100%);
  padding: clamp(2rem, 3.8vw, 3.5rem) 0 clamp(2.75rem, 4.5vw, 4rem);
  border-bottom: 1px solid #E5E7EB;
}

.page-credential .cred-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

.page-credential .cred-breadcrumb a {
  color: #006837;
  font-weight: 600;
  text-decoration: none;
}

.page-credential .cred-breadcrumb a:hover {
  text-decoration: underline;
}

.page-credential .cred-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 3.8vw, 3.25rem);
  align-items: center;
}

.page-credential .cred-h1 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin: 0 0 1rem;
}

.page-credential .cred-hero-lead {
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: clamp(1.06rem, 1.32vw, 1.2rem);
  line-height: 1.58;
  color: #334155;
  margin: 0 0 1.4rem;
  max-width: 58ch;
}

.page-credential .cred-hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.page-credential .cred-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px !important;
  background-color: #EDF3EE;
  color: #0F172A;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 104, 55, 0.14);
}

.page-credential .cred-meta-chip strong {
  color: #006837;
}

.page-credential .cred-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Dark Dossier Card */
.page-credential .cred-dossier-card {
  background-color: #131313;
  color: #FFFFFF;
  border-radius: 24px !important;
  border: 1px solid #262930;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.page-credential .cred-dossier-media {
  position: relative;
  height: 205px;
  overflow: hidden;
  background-color: #090D16;
}

.page-credential .cred-dossier-media img.cred-dossier-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.45;
  filter: saturate(0.9) contrast(1.05);
}

.page-credential .cred-dossier-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.25) 0%, rgba(19, 19, 19, 0.92) 100%);
}

.page-credential .cred-dossier-logo-bar {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.4rem;
}

.page-credential .cred-dossier-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px !important;
  background-color: #193626;
  border: 1px solid rgba(138, 195, 64, 0.32);
  color: #BBF7D0;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-credential .cred-dossier-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-credential .cred-dossier-logo {
  height: 44px;
  width: auto;
  display: block;
}

.page-credential .cred-dossier-body {
  padding: 1.35rem 1.45rem 1.5rem;
}

.page-credential .cred-dossier-dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.page-credential .cred-dossier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-credential .cred-dossier-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-credential .cred-dossier-row dt {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  flex-shrink: 0;
}

.page-credential .cred-dossier-row dd {
  margin: 0;
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.96rem;
  font-weight: 600;
  color: #FFFFFF;
  text-align: right;
}

.page-credential .cred-dossier-row dd.is-accent {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  color: #8AC340;
}

/* ==========================================================================
   2. OVERVIEW: WHAT IS THIS CREDENTIAL? (#F6F9F6 + 4 WHITE CARDS)
   ========================================================================== */

.page-credential .cred-overview-section {
  background-color: #F6F9F6;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid #E5E7EB;
}

.page-credential .cred-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-credential .cred-fact-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px !important;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.page-credential .cred-fact-stat {
  align-self: flex-start;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #006837;
  background-color: #E8F3EC;
  border-radius: 999px !important;
  padding: 0.28rem 0.72rem;
}

.page-credential .cred-fact-card h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0F172A;
  margin: 0;
}

.page-credential .cred-fact-card p {
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.96rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   3. DARK CURRICULUM / TECHNICAL COMPETENCY SECTION (#131313 + #1E1F22)
   ========================================================================== */

.page-credential .cred-dark-section {
  background-color: #131313;
  color: #FFFFFF;
  padding: clamp(3.25rem, 5.5vw, 4.75rem) 0;
}

.page-credential .cred-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.page-credential .cred-pillar-card {
  background-color: #1E1F22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px !important;
  padding: 1.75rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.page-credential .cred-pillar-tag {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8AC340;
}

.page-credential .cred-pillar-card h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.22;
  color: #FFFFFF;
  margin: 0;
}

.page-credential .cred-pillar-card p {
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.98rem;
  line-height: 1.58;
  color: #CBD5E1;
  margin: 0;
}

.page-credential .cred-pillar-list {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.page-credential .cred-pillar-list li {
  position: relative;
  padding-left: 1rem;
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.93rem;
  line-height: 1.45;
  color: #E2E8F0;
}

.page-credential .cred-pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #8AC340;
}

/* ==========================================================================
   4. WHY IT MATTERS COMPARISON SECTION (#FFFFFF)
   ========================================================================== */

.page-credential .cred-compare-section {
  background-color: #FFFFFF;
  padding: clamp(3rem, 5.2vw, 4.5rem) 0;
  border-bottom: 1px solid #E5E7EB;
}

.page-credential .cred-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.page-credential .cred-compare-col {
  border-radius: 24px !important;
  padding: 1.75rem 1.65rem;
  border: 1px solid #E2E8F0;
  background-color: #F8F9FA;
}

.page-credential .cred-compare-col.is-envirogyn {
  background-color: #EDF3EE;
  border-color: rgba(0, 104, 55, 0.25);
}

.page-credential .cred-compare-badge {
  display: inline-flex;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.28rem 0.75rem;
  border-radius: 999px !important;
  background-color: #E2E8F0;
  color: #334155;
  margin-bottom: 0.85rem;
}

.page-credential .cred-compare-col.is-envirogyn .cred-compare-badge {
  background-color: #006837;
  color: #FFFFFF;
}

.page-credential .cred-compare-col h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 1.1rem;
}

.page-credential .cred-compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.page-credential .cred-compare-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.page-credential .cred-compare-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-credential .cred-compare-label {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.page-credential .cred-compare-col.is-envirogyn .cred-compare-label {
  color: #006837;
}

.page-credential .cred-compare-val {
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.98rem;
  line-height: 1.48;
  color: #0F172A;
  font-weight: 500;
}

/* ==========================================================================
   5. OFFICIAL VERIFICATION & FAQ ACCORDION (#F6F9F6)
   ========================================================================== */

.page-credential .cred-verify-section {
  background-color: #F6F9F6;
  padding: clamp(3rem, 5.2vw, 4.5rem) 0;
  border-bottom: 1px solid #E5E7EB;
}

.page-credential .cred-verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.2vw, 2.5rem);
  align-items: start;
}

.page-credential .cred-verify-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px !important;
  padding: 1.75rem 1.65rem;
}

.page-credential .cred-verify-card h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.38rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.65rem;
}

.page-credential .cred-verify-card p {
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.98rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 1.15rem;
}

.page-credential .cred-verify-steps {
  margin: 0 0 1.4rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.6rem;
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.96rem;
  line-height: 1.5;
  color: #1F2937;
}

.page-credential .cred-verify-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-credential .cred-faq-list {
  display: grid;
  gap: 0.85rem;
}

.page-credential .cred-faq-item {
  background-color: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px !important;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.page-credential .cred-faq-item[open] {
  border-color: #006837;
}

.page-credential .cred-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0F172A;
}

.page-credential .cred-faq-item summary::-webkit-details-marker {
  display: none;
}

.page-credential .cred-faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50% !important;
  background-color: #EDF3EE;
  color: #006837;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
}

.page-credential .cred-faq-item[open] .cred-faq-toggle::before {
  content: '−';
}

.page-credential .cred-faq-toggle::before {
  content: '+';
}

.page-credential .cred-faq-body {
  padding: 0 1.3rem 1.2rem;
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.96rem;
  line-height: 1.58;
  color: #334155;
  border-top: 1px solid #F1F5F9;
  padding-top: 0.9rem;
}

/* ==========================================================================
   6. RELATED CREDENTIALS & LABORATORY NAVIGATION (#FFFFFF)
   ========================================================================== */

.page-credential .cred-related-section {
  background-color: #FFFFFF;
  padding: clamp(2.85rem, 4.8vw, 4rem) 0;
}

.page-credential .cred-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.page-credential a.cred-related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.4rem 1.3rem;
  background-color: #F8F9FA;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px !important;
  text-decoration: none;
  color: #0F172A;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}

.page-credential a.cred-related-card:hover {
  background-color: #EDF3EE;
  border-color: rgba(0, 104, 55, 0.35);
  transform: translateY(-2px);
}

.page-credential .cred-related-tag {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #006837;
}

.page-credential .cred-related-card h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0F172A;
  margin: 0;
}

.page-credential .cred-related-card p {
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.92rem;
  line-height: 1.48;
  color: #475569;
  margin: 0;
}

.page-credential .cred-related-cta {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: #006837;
  margin-top: auto;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .page-credential .cred-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-credential .cred-facts-grid,
  .page-credential .cred-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-credential .cred-pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-credential .cred-facts-grid,
  .page-credential .cred-compare-grid,
  .page-credential .cred-verify-grid,
  .page-credential .cred-related-grid {
    grid-template-columns: 1fr;
  }

  .page-credential .cred-hero-actions,
  .page-credential .cred-verify-links {
    flex-direction: column;
    align-items: stretch;
  }

  .page-credential .cred-btn {
    width: 100%;
    text-align: center;
  }

  .page-credential .cred-dossier-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .page-credential .cred-dossier-row dd {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .page-credential .cred-dossier-media {
    height: 175px;
  }

  .page-credential .cred-dossier-logo {
    height: 36px;
  }
}
