/* wg21.org About page.
   Brand/banner tokens + the .banner* block live in masthead.css (shared with
   landing.css); navbar + base tokens come from shared-vars.css. This file adds
   only the About-page layout (breadcrumb, header, two-column body, cards). */
@import "shared-vars.css";
@import "masthead.css";
@import "_standards_track.css";

html, body { margin: 0; padding: 0; overflow-x: hidden; }
body.about-page {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Content type scale shared across the About-family pages (About, Contributing,
   WG21.org — the latter two reach this via @import "about.css").
   --copy: body text · --title: card/step titles · --lead: lead paragraphs. */
body.about-page,
body.contributing-page,
body.about-site-page,
body.community-page { --copy: 16px; --title: 18px; --lead: 20px; }

/* Bare `a` (low specificity) like landing — must not outrank component link
   colors such as .nav-signin (white on blue), .contrib-link, or .about-section a. */
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Navbar shell: match landing's wide shell, overriding navbar.css's 1280/0.75rem
   (interior pages keep the narrower navbar). */
.navbar-inner {
  max-width: var(--wrap);
  padding: 0 var(--pad-x);
}

/* ──────── Page scaffold ──────── */
.about { padding-bottom: 80px; }

.about-section-centered,
.about-head,
.about-grid,
.about-track-section,
.about-process-section {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* The About- and Community-section subnavs now render via the shared
   templates/_subnav.html.j2 (.subnav* in shared-vars.css); the old
   .about-breadcrumb* styles were removed. */

/* Page header. */
.about-head { padding-top: 56px; padding-bottom: 36px; }
.about-eyebrow,
.section-label,
.about-card-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* --ink-soft resolves to #5b6675 here (shared-vars overrides masthead); pin the
   eyebrow to the intended #57606a without disturbing the global token. */
.about-eyebrow { color: #57606a; font-weight: 400; }
.about-eyebrow .slash,
.section-label .slash,
.about-card-label .slash { color: var(--accent-blue); }
.about-eyebrow .dot { color: var(--ink-faint, #8b95a6); }

/* Section labels carry a 1px rule trailing off to the right of the text,
   site-wide. Drawn with ::after so no markup span is needed on each label. */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
/* When a label shares its row with a trailing link (.section-head), that link
   takes the space instead — no rule. */
.section-head .section-label::after { content: none; }
/* Shared page H1 (about, contributing, community, events, about_site). */
.page-title {
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
}
.about-lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Two-column body. */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 56px;
}
.about-card {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
  padding: 24px;
}
.about-card-label { margin-bottom: 26px; }
.about-section + .about-section { margin-top: 26px; }
.about-section-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.about-section p {
  margin: 0;
  font-size: var(--copy);
  line-height: 1.65;
  color: var(--ink);
}
.about-section a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 2px; }

/* Right rail. */
.about-rail { display: flex; flex-direction: column; gap: 20px; }
.stat-card {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
  padding: 24px;
}
.stat-card-label {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.stat-list { margin: 0; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 14px;
}
.stat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-row dt { color: var(--ink-soft); }
.stat-row dd { margin: 0; color: var(--ink); text-align: right; }

.contrib-card {
  border: 1px solid #d4def0;
  border-radius: 10px;
  background: #f6f7f9;
  padding: 24px;
}
.contrib-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
.contrib-body { margin: 0 0 16px; font-size: var(--copy); line-height: 1.6; color: var(--ink); }
.contrib-link {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
}
.contrib-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Standards track. The chips + caption come from the shared _standards_track.css
   partial (same .track markup as the landing Overview); only the section's
   bottom spacing is About-specific. */
.about-track-section { padding-bottom: 56px; }

/* Consensus model. */
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: var(--card);
}
.step-card {
  position: relative;
  padding: 22px 20px;
  border-left: 1px solid var(--line-soft);
}
.step-card:first-child { border-left: 0; }
/* Circled arrow straddling the divider between consecutive steps, aligned to
   the icon row. Hidden once the grid wraps (see responsive block below). */
.step-card:not(:first-child)::after {
  content: "→";
  position: absolute;
  left: 0;
  top: 73px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1;
  z-index: 1;
}
.step-num {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent-blue);
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  background: #eaeef2;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
}
.step-icon svg { width: 24px; height: 24px; }
.step-title {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.step-body { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

.process-note {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--bg-soft, #f6f7f9);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.process-note-label { color: var(--accent-blue); font-weight: 600; margin-right: 4px; }

/* ──────── Responsive (banner/gutter breakpoints live in masthead.css) ──────── */
@media (max-width: 1100px) {
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 16px var(--pad-x); gap: 12px; }
  .nav-links { flex-wrap: wrap; row-gap: 4px; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .step-card:nth-child(4) { border-left: 0; }
  .step-card:nth-child(n + 4) { border-top: 1px solid var(--line-soft); }
  .step-card::after { display: none; }
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .navbar-inner { padding: 12px var(--pad-x); gap: 6px; }
  .about-head { padding-top: 36px; }
  .page-title { font-size: 28px; }
  .about-lead { font-size: 17px; }
  .process-grid { grid-template-columns: 1fr; }
  .step-card { border-left: 0; border-top: 1px solid var(--line-soft); }
  .step-card:first-child { border-top: 0; }
  /* Connector rotates to a circled down-arrow centered on the horizontal
     divider between stacked steps. */
  .step-card:not(:first-child)::after { display: flex; content: "↓"; left: 50%; top: 0; }
}
