/* =========================================================================
   team-card — v1.0 (2026-04-26).
   Class-based component CSS for the Founder card on /about. Visual sibling
   of the locked Universal card (Variant B · Ledger Row, v2.0). Sources all
   color, type, spacing, and rule weights from webshield-navy.css.

   Shape: two-column grid. Left rail (identity = round photo + LinkedIn
   icon) + right column (argument = name → title → gold rule → EP3 dual
   role → credibility line). Same --ws-uc-rail-width / --ws-uc-col-gap
   rhythm as ws-uc, so a Universal card and a Team card stack visually
   on a shared baseline.

   Voice rule mirror: name + WebShield title carry the verbatim weight
   (serif + medium + deep ink). EP3 role is the gold-anchored body link,
   styled to match .ws-uc__patent-ref. Credibility line is muted-body
   metadata. The 2px gold rule between WebShield title and EP3 role is
   the same --ws-rule-anchor / --ws-accent treatment used in
   .ws-uc__footer — making the EP3 dual-role line read as the load-bearing
   proof line on this card, the same way the patent anchor is on Universals.

   Three variants explored (toggled via class on root):
     • .ws-tc                     — variant A · "inline rule" — 1px gold
                                     rule between title and EP3 role.
                                     EP3 link: gold + gold underline.
                                     Photo: muted-rule ring.
     • .ws-tc--spacing            — variant B · spacing-only separator
                                     (no rule); EP3 link: gold text + ↗
                                     external-link glyph; no underline.
                                     Photo: borderless circle.
     • .ws-tc--anchor             — variant C · 2px gold rule (matches
                                     --ws-rule-anchor / .ws-uc__footer).
                                     EP3 link styled as .ws-uc__patent-ref
                                     (body 500, gold + gold underline).
                                     Photo: thin gold ring.
                                     PRODUCTION DEFAULT.

   No new tokens. No new colors. No new font weights. All values reference
   webshield-navy.css. The component reuses --ws-uc-rail-width and
   --ws-uc-col-gap so it shares the universal-card column rhythm.

   Usage (HTML, production / variant C):
     <article class="ws-tc ws-tc--anchor">
       <div class="ws-tc__rail">
         <div class="ws-tc__photo" aria-hidden="true">
           <img src="/assets/img/team/jonathan.webp" alt="" />
         </div>
         <a class="ws-tc__linkedin" href="https://linkedin.com/…"
            aria-label="Jonathan Hare on LinkedIn">
           <svg …>…</svg>
         </a>
       </div>
       <div class="ws-tc__col">
         <h3 class="ws-tc__name">Jonathan Hare</h3>
         <div class="ws-tc__title">Co-Founder and CEO</div>
         <div class="ws-tc__rule" aria-hidden="true"></div>
         <div class="ws-tc__ep3">
           <span class="ws-tc__ep3-label">EP3 Foundation</span>
           <a class="ws-tc__ep3-role" href="https://ep3foundation.org/people/jonathan-hare">
             Chair, Board of Trustees
           </a>
         </div>
         <p class="ws-tc__credibility">Named inventor on all WebShield filings.</p>
       </div>
     </article>
   ========================================================================= */

/* ── Shared shell — mirrors .ws-uc grid rhythm ───────────────────── */
.ws-tc {
  background: var(--ws-surface);
  border: var(--ws-uc-border);
  padding: var(--ws-uc-pad-y) var(--ws-uc-pad-x);
  font-family: var(--ws-font-body);
  color: var(--ws-ink);
  display: grid;
  grid-template-columns: var(--ws-uc-rail-width) 1fr;
  gap: var(--ws-uc-col-gap);
  align-items: start;
}

/* ── Left rail — identity (photo + LinkedIn) ─────────────────────── */
.ws-tc__rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.ws-tc__photo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ws-surface-2);
  position: relative;
  flex-shrink: 0;
}

.ws-tc__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Sits above the ::before placeholder. Without a non-static position the
     absolutely-positioned ::before paints on top regardless of DOM order. */
  position: relative;
}

/* Variant A · ring in muted rule colour */
.ws-tc .ws-tc__photo {
  box-shadow: inset 0 0 0 1px var(--ws-rule);
}

/* Variant B · no ring */
.ws-tc--spacing .ws-tc__photo {
  box-shadow: none;
}

/* Variant C · thin gold ring, echoes the 2px anchor rule */
.ws-tc--anchor .ws-tc__photo {
  box-shadow: inset 0 0 0 2px var(--ws-accent);
}

/* Photo placeholder — when img is missing or has empty src.
   Renders the founder's initial in serif against surface-2.
   `data-initial` carries the letter; the rule fires when no <img> child
   has loaded. The image, when present, paints over this. */
.ws-tc__photo::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ws-font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--ws-ink-faint);
  letter-spacing: -0.02em;
}

/* LinkedIn icon — muted ink, hover to navy. No fill, no chip. */
.ws-tc__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ws-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ws-tc__linkedin:hover {
  color: var(--ws-ink);
}

.ws-tc__linkedin svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* ── Right column — argument ─────────────────────────────────────── */
.ws-tc__col {
  display: flex;
  flex-direction: column;
}

/* NAME — verbatim weight. Serif, medium, deep ink. Same family as
   .ws-uc__name, same size (--ws-fs-display = 26px). */
.ws-tc__name {
  font-family: var(--ws-font-display);
  font-size: var(--ws-fs-display);
  font-weight: 500;
  line-height: var(--ws-lh-tight);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ws-ink);
}

/* WEBSHIELD TITLE — supporting body, sans, weight 500.
   Sits directly under name; the rule (or spacing) below separates
   identity from EP3 dual-role. */
.ws-tc__title {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ws-ink);
  margin: 0 0 16px;
}

/* ── Rule between WebShield title and EP3 role ───────────────────── */

/* Variant A · 1px gold rule, hairline */
.ws-tc__rule {
  height: 0;
  border-top: var(--ws-rule-hair) solid var(--ws-accent);
  margin: 0 0 14px;
  width: 100%;
}

/* Variant B · spacing-only — collapse the rule, add breathing room */
.ws-tc--spacing .ws-tc__rule {
  display: none;
}
.ws-tc--spacing .ws-tc__title {
  margin-bottom: 22px;
}

/* Variant C · 2px gold anchor rule (matches .ws-uc__footer top rule) */
.ws-tc--anchor .ws-tc__rule {
  border-top: var(--ws-rule-anchor) solid var(--ws-accent);
  margin-bottom: 16px;
}

/* ── EP3 dual-role line ─────────────────────────────────────────── */

.ws-tc__ep3 {
  font-family: var(--ws-font-body);
  line-height: var(--ws-lh-body);
  margin: 0 0 14px;
}

/* "EP3 Foundation" label — small uppercase eyebrow, muted.
   Same treatment as .ws-uc__footer-label. */
.ws-tc__ep3-label {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-label);
  font-weight: 500;
  color: var(--ws-ink-faint);
  text-transform: uppercase;
  letter-spacing: var(--ws-tracking-label);
  margin-right: 10px;
}

/* EP3 role link — variants differ in styling */

/* Variant A · gold + gold underline (same family as .ws-uc__patent-ref
   but at body size to match the inline-with-label rhythm) */
.ws-tc__ep3-role {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body);
  font-weight: 500;
  color: var(--ws-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--ws-accent);
}

.ws-tc__ep3-role:hover {
  color: var(--ws-accent-hover);
  border-bottom-color: var(--ws-accent-hover);
}

/* Variant B · gold text + external-link glyph; no underline */
.ws-tc--spacing .ws-tc__ep3-role {
  border-bottom: none;
}
.ws-tc--spacing .ws-tc__ep3-role::after {
  content: " ↗";
  font-family: var(--ws-font-body);
  font-weight: 400;
  margin-left: 2px;
  color: var(--ws-accent);
}

/* Variant C · same as A — body 500, gold + gold underline.
   Identical to .ws-uc__patent-ref so the EP3 dual-role on this card
   reads at the same visual rank as the patent anchor on a Universal
   card. The 2px rule above carries the emphasis. */
/* (no override — inherits from .ws-tc__ep3-role base) */

/* ── Credibility line — quiet metadata ───────────────────────────── */

.ws-tc__credibility {
  font-family: var(--ws-font-body);
  font-size: var(--ws-fs-body-sm);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ws-ink-muted);
  margin: 0;
  font-style: italic;
}

/* ── Responsive — collapse to single column ──────────────────────── */
@media (max-width: 720px) {
  .ws-tc {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ws-tc__rail {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .ws-tc__photo {
    width: 88px;
    height: 88px;
  }
}
