/* ICF Nexus component styles. Load tokens/tokens.css first.
   Values match icfnexus.com as measured at 1280px wide (October 2026). */

/* Base */
.icfn,
.icfn-section {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-leading);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
.icfn a,
.icfn-section a { color: var(--accent); text-underline-offset: 3px; }
.icfn a:hover,
.icfn-section a:hover { color: var(--fg-heading); }
.icfn-section p { margin: 0 0 1em; }
.icfn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo */
.icfn-logo { display: block; height: auto; max-width: 100%; }

/* Sections: white and Mist alternate; Navy for the footer and dark heroes */
.icfn-section { padding-block: var(--space-12); }
.icfn-section--white { background: var(--paper); }
.icfn-section--mist { background: var(--mist); }
.icfn-section--navy { background: var(--navy); }
.icfn-section__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}
@media (min-width: 768px) { .icfn-section { padding-block: var(--space-section); } }

/* Typography */
.icfn-h {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-heading);
  text-wrap: balance;
  margin: 0 0 0.4em;
}
.icfn-h1 { font-size: clamp(40px, 5.4vw, 69px); line-height: var(--text-h1-leading); }
.icfn-h2 { font-size: clamp(32px, 3.75vw, 48px); line-height: var(--text-h2-leading); }
.icfn-h3 { font-size: clamp(24px, 2.65vw, 34px); line-height: var(--text-h3-leading); }
.icfn-label { margin: 0 0 12px; }
.icfn-label--eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg-heading);
}
.icfn-label--caps {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.icfn-lead { font-size: var(--text-lead-size); line-height: var(--text-lead-leading); }
.icfn-measure { max-width: 640px; }

/* Layout helpers */
.icfn-grid-2, .icfn-grid-3 { display: grid; gap: var(--space-8); }
@media (min-width: 768px) {
  .icfn-grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-12); }
  .icfn-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Buttons */
.icfn-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: 0.01em;
  padding: 14px 22px; border-radius: var(--radius-md); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icfn-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icfn-btn--primary { background: var(--button-bg); color: var(--button-fg); }
.icfn-btn--primary:hover { background: var(--accent); color: #fff; }
.icfn-btn--secondary { background: transparent; color: var(--fg-heading); border-color: var(--fg-heading); }
.icfn-btn--secondary:hover { background: var(--bg-raised); }
.icfn-btn--quiet { background: transparent; color: var(--accent); padding-inline: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Header (matches icfnexus.com) */
.icfn-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  min-height: 86px; padding-inline: clamp(16px, 3vw, 40px); background: var(--paper);
}
.icfn-header__home { display: inline-flex; }
.icfn-header__nav { display: flex; align-items: center; gap: var(--space-6); font-family: var(--font-body); font-size: 17px; }
.icfn-header__nav a { color: var(--ink); text-decoration: none; }
.icfn-header__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.icfn-header__nav a:hover { color: var(--navy); }
.icfn-header__contact {
  border: 1px solid var(--navy); border-radius: 7px; padding: 7px 20px;
  font-size: 15px; color: var(--navy) !important;
}
@media (max-width: 640px) {
  .icfn-header .icfn-logo { height: 44px; width: auto; }
  .icfn-header__nav { gap: var(--space-4); font-size: 15px; }
  .icfn-header__nav a:not(.icfn-header__contact) { display: none; }
}

/* Cards */
.icfn-card { background: var(--bg-raised); border-radius: var(--radius-md); padding: var(--space-6); border: 1px solid transparent; }
.icfn-card--onwhite { background: var(--bg); border-color: var(--border); }
.icfn-card--lift { box-shadow: var(--shadow-card); }
.icfn-card__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--fg-heading); margin: 0 0 8px; }

/* Tier */
.icfn-tier .icfn-h3 { margin-bottom: 0.5em; }
.icfn-tier__long { font-weight: 600; margin: 0 0 0.6em; }
.icfn-tier__audience { margin: 0 0 0.6em; }
.icfn-tier__status { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 2px 10px; }

/* Status pill (registry) */
.icfn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.2;
  padding: 4px 10px 4px 8px; border-radius: var(--radius-pill); border: 1.5px solid currentColor;
}
.icfn-pill svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icfn-pill--active { color: var(--success); }
.icfn-pill--expiring { color: var(--warning); }
.icfn-pill--lapsed { color: var(--danger); }

/* Credential card (registry) */
.icfn-cred { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.icfn-cred__mark { width: 48px; height: 48px; object-fit: contain; }
.icfn-cred__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg-heading); margin: 0; }
.icfn-cred__level { font-size: 14px; color: var(--fg); margin: 2px 0 0; }
.icfn-cred__id { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--fg-muted); font-variant-numeric: tabular-nums; margin-top: var(--space-2); }
.icfn-cred__status { margin-top: 10px; }

/* Data table (documents) */
.icfn-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.icfn-table caption { text-align: left; font-weight: 600; color: var(--fg-heading); padding-bottom: 8px; }
.icfn-table th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; padding: 10px 12px; }
.icfn-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.icfn-table tr:nth-child(even) td { background: var(--bg-raised); }
.icfn-table td.num, .icfn-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.icfn-table tr.hl td { background: var(--gold-tint); color: var(--navy); font-weight: 600; }

/* Coverage table (the skill proficiency matrix on /credential) */
.icfn-coverage { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 17px; line-height: 1.4; color: var(--fg-heading); }
.icfn-coverage th, .icfn-coverage td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; font-weight: 400; }
.icfn-coverage thead th { font-weight: 700; font-size: 16px; border-bottom: 2px solid var(--navy); }
.icfn-coverage tbody tr:nth-child(even) { background: var(--mist); }
.icfn-coverage .c { text-align: center; width: 140px; white-space: nowrap; }
.icfn-yes { display: inline-block; background: var(--navy); color: #fff; border-radius: var(--radius-pill); padding: 3px 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 640px) {
  .icfn-coverage { font-size: 15px; }
  .icfn-coverage th, .icfn-coverage td { padding: 12px 10px; }
  .icfn-coverage .c { width: auto; }
}

/* Footer (Navy) */
.icfn-foot { background: var(--navy); color: #e8eef5; font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
.icfn-foot__inner { max-width: var(--content-max); margin-inline: auto; padding: var(--space-12) clamp(16px, 3vw, 40px); }
.icfn-foot__logo { width: 200px; height: auto; margin-bottom: var(--space-8); }
.icfn-foot__cols { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .icfn-foot__cols { grid-template-columns: 1fr 1.4fr; gap: var(--space-12); } }
.icfn-foot strong { color: #fff; font-weight: 600; }
.icfn-foot a { color: #fff; }
.icfn-foot small { display: block; font-size: 14px; color: #e8eef5; margin-top: var(--space-3); }
