/* static/css/landing/editorial.css
   Our Editorial Team. Same design language as about.css — Inter + Libre
   Baskerville, #274285 primary, #1b2740 ink. Scoped under `.ed`.

   The name is the loudest thing on each card on purpose: this page exists to
   say that real, credited people write the site, and a layout where the name
   is smaller than the section heading says the opposite. */

.ed {
  --ink: #1b2740; --body: #525f79; --muted: #7a879f; --soft: #94a1bc;
  --primary: #274285; --primary-2: #2f4c97; --line: #e6ebf6; --wash: #f7faff;
  font-family: "Inter", system-ui, sans-serif; color: #2b3242;
  padding-bottom: 72px;
}
.ed .container { max-width: 1000px; }

.ed-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 0; }
.ed-h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0; }

.ed-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px;
  border-radius: 12px; background: var(--primary); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; box-shadow: 0 10px 26px rgba(39,66,133,.24);
  transition: background .18s ease, transform .18s ease;
}
.ed-btn:hover { background: var(--primary-2); color: #fff; transform: translateY(-1px); }
.ed-btn.light { background: #fff; color: var(--primary); box-shadow: none; }
.ed-btn.light:hover { background: #eef2fb; color: var(--primary); }

/* ── Hero ─────────────────────────────────────────────────── */
.ed-hero { text-align: center; max-width: 740px; margin: 0 auto; padding: 72px 0 8px; }
.ed-title { font-size: clamp(2.1rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.07; letter-spacing: -.03em; color: var(--ink); margin: 18px 0 0; text-wrap: balance; }
.ed-lead { font-size: 1.12rem; line-height: 1.62; color: var(--body); margin: 22px auto 30px; max-width: 58ch; text-wrap: pretty; }

/* ── Editorial process ────────────────────────────────────── */
.ed-process { margin: 64px 0 0; }
.ed-process-head { text-align: center; margin-bottom: 34px; }
.ed-process-head .ed-h2 { margin-top: 10px; }

.ed-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ed-step {
  position: relative;
  background: var(--wash); border: 1px solid #e9eff9; border-radius: 16px;
  padding: 26px 24px 28px;
}
/* The number sits in the corner rather than above the heading: it marks the
   order without becoming the first thing read, which on a three-card row it
   would be. */
.ed-step-num {
  position: absolute; top: 18px; right: 20px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #c3cddf;
}
.ed-step h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; padding-right: 28px; }
.ed-step p { margin: 0; font-size: .88rem; line-height: 1.62; color: var(--muted); }

/* ── Role group ───────────────────────────────────────────── */
.ed-group { margin-top: 72px; }
.ed-group-head { display: flex; align-items: baseline; gap: 12px; }
.ed-count { font-size: 12px; font-weight: 700; color: var(--primary); background: #eef2fb; border-radius: 999px; padding: 3px 10px; }
.ed-group-sub { margin: 10px 0 32px; font-size: .95rem; line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* ── Person card ──────────────────────────────────────────── */
.ed-person {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 36px; margin-bottom: 22px;
  box-shadow: 0 6px 20px rgba(39,66,133,.05);
  scroll-margin-top: 90px;
}

.ed-person-head { display: grid; grid-template-columns: 108px 1fr; gap: 26px; align-items: start; }

.ed-avatar {
  position: relative; width: 108px; height: 108px; border-radius: 50%;
  overflow: hidden; background: linear-gradient(135deg, #eef2fb, #dbe4f8);
  display: grid; place-items: center; flex: none;
}
.ed-avatar img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
/* The initial sits underneath and is only visible once the image is gone —
   so a missing or broken photo degrades to a designed state rather than to a
   browser's broken-image glyph. */
.ed-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: var(--primary); opacity: 0; }
.ed-avatar.is-initial .ed-initial { opacity: 1; }

.ed-name { font-size: clamp(1.7rem, 3.2vw, 2.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); margin: 4px 0 0; }
.ed-role { font-family: "Libre Baskerville", Georgia, serif; font-style: italic; font-size: 1rem; color: var(--primary); margin: 8px 0 0; }

.ed-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ed-tag { font-size: 11.5px; font-weight: 600; color: var(--primary); background: #eef2fb; border-radius: 999px; padding: 4px 11px; }
.ed-tag.ghost { background: none; border: 1px solid var(--line); color: var(--soft); }

.ed-socials { display: flex; gap: 8px; margin-top: 14px; }
.ed-social { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; transition: all .16s ease; }
.ed-social:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.ed-bio { margin: 24px 0 0; font-size: .97rem; line-height: 1.72; color: var(--body); max-width: 74ch; }
.ed-bio p { margin: 0 0 10px; }
.ed-bio p:last-child { margin-bottom: 0; }

/* ── Their articles ───────────────────────────────────────── */
.ed-articles { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.ed-articles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ed-articles-head span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.ed-articles-head a { font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }
.ed-articles-head a:hover { text-decoration: underline; }

.ed-article-list { list-style: none; margin: 0; padding: 0; }
.ed-article-list li { border-bottom: 1px solid #f0f4fb; }
.ed-article-list li:last-child { border-bottom: 0; }
.ed-article-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 11px 0; text-decoration: none; color: var(--ink);
}
.ed-article-list a:hover .ed-article-title { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ed-article-title { font-size: .95rem; font-weight: 600; line-height: 1.45; }
.ed-article-list time { font-size: 12px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

.ed-more { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.ed-more:hover { text-decoration: underline; }
.ed-none { margin: 22px 0 0; font-size: .9rem; color: var(--muted); }

/* ── Final CTA ────────────────────────────────────────────── */
.ed-cta-wrap { margin-top: 72px; }
.ed-cta { background: linear-gradient(135deg, #274285, #3357a0); border-radius: 20px; padding: 52px 40px; text-align: center; box-shadow: 0 18px 44px rgba(39,66,133,.28); }
.ed-cta h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 0; }
.ed-cta p { font-size: 15.5px; color: rgba(255,255,255,.75); margin: 12px auto 28px; max-width: 52ch; line-height: 1.6; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .ed-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ed-person { padding: 26px 22px; }
  .ed-person-head { grid-template-columns: 1fr; gap: 16px; }
  .ed-avatar { width: 84px; height: 84px; }
  .ed-article-list a { flex-direction: column; gap: 3px; }
}