/**
 * Credentials page — credibility hero + marquee banner
 * Built on top of r26-design-system.css (Prompt 12 palette)
 */

/* ── Hero height balance ──────────────────────────────────────────────────── */
.credentials-page .r26-zone-header {
  min-height: clamp(340px, 42vw, 420px);
}

/* ── Hero CTA row ─────────────────────────────────────────────────────────── */
.cred-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.cred-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-sizing: border-box;
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: var(--r26-type-btn-size, 0.9375rem);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  /* Outlined secondary button to balance the solid primary CTA */
  padding: 13px 27px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r26-radius-btn, 4px);
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cred-hero-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ── Credibility banner ──────────────────────────────────────────────────── */




/* Pause on hover */

/* ── Marquee keyframes ────────────────────────────────────────────────────── */

/* ── Body content column ──────────────────────────────────────────────────
   Match the hero's centered column (r26-zone-header__inner) so every body
   section shares one left edge with the headline above. Without this the
   sections stretch full-bleed and lose their left margin. */
.cred-validation,
.cred-team {
  max-width: var(--r26-content-max);
  margin-inline: auto;
  padding-inline: var(--r26-content-pad);
}

/* ── Enterprise delivery recommendation ───────────────────────────────────── */
/* Reuses the featured-quote card. Sits directly above Independent Validation, so
   its own bottom padding is dropped to avoid a doubled gap between the two. */
.cred-validation.cred-delivery {
  padding-bottom: 0;
}

/* Slightly stronger brand edge and a subtle ground so the delivery record reads
   ahead of the methodology endorsements below it. */

/* ── Independent Validation section ───────────────────────────────────────── */
.cred-validation {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.cred-validation__title {
  font-family: var(--font-display, 'DM Serif Display', 'DM Serif Fallback', Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.cred-validation__lead {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
  max-width: 42rem;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
}

/* ── Labels (reuses cr-eyebrow pattern) ──────────────────────────────────── */
.cred-validation__label {
  display: block;
  font-family: var(--font-body, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1.25rem;
}

/* ── Quote text ───────────────────────────────────────────────────────────── */
.cred-validation__text {
  font-family: var(--font-heading, 'DM Serif Display', 'DM Serif Fallback', Georgia, serif);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  color: #0f172a;
  margin: 0 0 1.5rem;
}

.cred-validation__text--featured {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}

/* ── Attribution metadata ─────────────────────────────────────────────────── */
.cred-validation__meta {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cred-validation__name {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0f172a;
  margin: 0;
}

.cred-validation__role {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.cred-validation__note {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
  margin: 0.35rem 0 0;
}

.cred-validation__link {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--r26-link-accent, #991b1b);
  text-decoration: none;
  margin-top: 0.15rem;
}

.cred-validation__link:hover {
  color: var(--r26-link-accent-hover, #7f1d1d);
  text-decoration: underline;
}

/* ── Featured card ────────────────────────────────────────────────────────── */
.cred-validation__featured {
  background: var(--r26-white, #ffffff);
  border: 1px solid var(--r26-border-subtle, #e2e8f0);
  border-top: 3px solid var(--r26-brand, #991b1b);
  border-radius: var(--r26-radius-card, 6px);
  padding: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

/* Featured endorsement carries the brand accent on its label too. */
.cred-validation__featured .cred-validation__label {
  color: var(--r26-brand, #991b1b);
}

/* ── Endorsement grid ─────────────────────────────────────────────────────── */
.cred-validation__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* A single perspective should read as a deliberate one, not as a row with a
   hole in it. Constrain the grid to a comfortable measure when only one card
   is present. */
.cred-validation__grid:has(> .cred-validation__card:only-child) {
  max-width: 34rem;
}

.cred-validation__card {
  background: var(--r26-white, #ffffff);
  border: 1px solid var(--r26-border-subtle, #e2e8f0);
  border-radius: var(--r26-radius-card, 6px);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.cred-validation__card:hover {
  border-color: #cbd5e1;
}

/* ── Disclaimer ───────────────────────────────────────────────────────────── */
.cred-validation__disclaimer {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 0.8125rem;
  color: #64748b;
  text-align: center;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* ── Expertise Behind Rule26 ──────────────────────────────────────────────── */
.cred-team {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.cred-team__title {
  font-family: var(--font-display, 'DM Serif Display', 'DM Serif Fallback', Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.cred-team__lead {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
  max-width: 42rem;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
}

.cred-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.cred-team__card {
  background: var(--r26-white, #ffffff);
  border: 1px solid var(--r26-border-subtle, #e2e8f0);
  border-radius: var(--r26-radius-card, 6px);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.cred-team__card:hover {
  border-color: #cbd5e1;
}

.cred-team__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}


.cred-team__name {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.cred-team__role {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.cred-team__bio {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 1.25rem;
}





.cred-team__link {
  font-family: var(--font-sans, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--r26-link-accent, #991b1b);
  text-decoration: none;
  margin-top: auto;
}

.cred-team__link:hover {
  color: var(--r26-link-accent-hover, #7f1d1d);
  text-decoration: underline;
}

/* ── YFRAI community section — align to the shared content column ──────────
   .cr-yfrai's `margin: … 0` shorthand cancels .cr-wrap's `margin: 0 auto`,
   which left-aligns the block. Restore centering and match the body column
   width/gutter so it lines up with the sections above. */
.credentials-page .cr-yfrai.cr-wrap {
  max-width: var(--r26-content-max);
  margin-inline: auto;
  padding-inline: var(--r26-content-pad);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cred-validation__grid {
    grid-template-columns: 1fr;
  }
  .cred-team__grid {
    grid-template-columns: 1fr;
  }
}


/* ── Closing CTA supporting line ──────────────────────────────────────────── */
/* The shared zone-CTA component has no sub-headline slot; this adds one for the
   Credentials page only. credentials.css is loaded solely by this page. */
.cred-cta__sub {
  font-family: var(--font-body, Inter, "Inter Fallback", system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 44rem;
  margin: 0.75rem auto 1.5rem;
}

/* ── Community-initiative note ────────────────────────────────────────────── */
/* The shared .cr-yfrai rule is a two-column image/text grid. The recruitment
   image has been removed, so this page renders it as one measured column. */
.credentials-page .cr-yfrai.cr-wrap {
  grid-template-columns: 1fr;
  max-width: 46rem;
}

/* ---------------------------------------------------------------------------
   Experience at a glance. Replaces the scrolling credibility marquee: the same
   claims, stated once, readable without motion and without repeating later.
   --------------------------------------------------------------------------- */
.cred-marks {
  background: #ffffff;
  border-bottom: 1px solid var(--r26-border, #e2e8f0);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0;
}

.cred-marks__list {
  max-width: var(--r26-container, 72rem);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.9rem);
  list-style: none;
}

.cred-marks__item {
  border-left: 2px solid rgba(153, 27, 27, 0.28);
  padding-left: clamp(0.7rem, 1.4vw, 1rem);
}

.cred-marks__figure {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.15;
  color: var(--r26-primary-dark, #0f172a);
}

.cred-marks__label {
  margin: 0;
  font-size: 0.78125rem;
  line-height: 1.5;
  color: #64748b;
}

/* ---------------------------------------------------------------------------
   Career summary. A compact ordered track rather than four prose cards.
   --------------------------------------------------------------------------- */
.cred-track {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.cred-track__item {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto;
  gap: 0.4rem clamp(0.9rem, 2vw, 1.6rem);
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--r26-border, #e2e8f0);
}

.cred-track__item:last-child { border-bottom: 1px solid var(--r26-border, #e2e8f0); }

.cred-track__org {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--r26-primary-dark, #0f172a);
}

.cred-track__note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
}

.cred-track__when {
  margin: 0;
  font-family: var(--font-mono, "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: #64748b;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Applied evidence panel. One place where GhostCite is explained.
   --------------------------------------------------------------------------- */
.cred-evidence {
  margin: clamp(2rem, 4vw, 3rem) 0;
  background: var(--r26-primary-dark, #0f172a);
  border-radius: 14px;
  padding: clamp(1.6rem, 3.5vw, 2.5rem) clamp(1.35rem, 3vw, 2.5rem);
}

.cred-evidence__inner { max-width: 46rem; }

.cred-evidence__label {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono, "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, monospace);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fca5a5;
}

.cred-evidence__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  color: #ffffff;
}

.cred-evidence__lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.cred-evidence__points {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.cred-evidence__points li {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 0.3rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.cred-evidence__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fca5a5;
}

.cred-evidence__limit {
  margin: 0 0 1.2rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(252, 165, 165, 0.45);
  font-size: 0.78125rem;
  line-height: 1.6;
  color: #94a3b8;
}

.cred-evidence__cta {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cred-evidence__cta:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------------------
   Team profiles and the secondary perspective disclosure.
   --------------------------------------------------------------------------- */
.cred-team__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.cred-team__creds li {
  font-family: var(--font-mono, "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, monospace);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--r26-link-accent, #991b1b);
  background: rgba(153, 27, 27, 0.06);
  border: 1px solid rgba(153, 27, 27, 0.18);
  border-radius: 3px;
  padding: 0.16rem 0.4rem;
}

.cred-team__aside {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #64748b;
}

.cred-validation__note-label {
  display: block;
  font-family: var(--font-mono, "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, monospace);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.cred-more {
  margin: clamp(1.1rem, 2.4vw, 1.6rem) 0 0;
}

.cred-more__summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 24px;
  padding: 0.2rem 0;
  font-family: var(--font-mono, "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, monospace);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.cred-more__summary::-webkit-details-marker { display: none; }

.cred-more__summary::after {
  content: "+";
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--r26-link-accent, #991b1b);
}

.cred-more[open] .cred-more__summary::after { content: "\2212"; }

.cred-more__summary:hover { color: var(--r26-primary-dark, #0f172a); }

.cred-more__summary:focus-visible {
  outline: 2px solid var(--r26-link-accent, #991b1b);
  outline-offset: 3px;
  border-radius: 2px;
}

.cred-more__card { margin-top: 0.8rem; max-width: 34rem; }

/* --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cred-marks__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.4rem; }
}

@media (max-width: 760px) {
  .cred-marks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-track__item { grid-template-columns: 1fr; gap: 0.25rem; }
  .cred-track__when { order: -1; }
}

@media (max-width: 420px) {
  .cred-marks__list { grid-template-columns: 1fr; }
}
