/* RTNS expert profiles (/people/<slug>/) and the /people/ directory.
   Source: templates/people/rtns-people.css, copied by build.py's
   "Expert profiles" block to <mount>rtns-people.css. Loaded only on the
   profile pages and /people/ (extra_css), after styles.css and rtns.css.

   Copy rules carried by this file: serif display type stays weight 400
   (never bold serif); every text colour below was measured against the
   background it actually renders on (see qa/2026-10-02-expert-profiles/
   REPORT.md, contrast table); every link is a block at least 44px tall;
   nothing has a fixed width that can push the page past a 390px screen. */

:root {
  --rt-ppl-disc-bg: #11120f; /* initials disc: the donor --ink */
  --rt-ppl-disc-fg: #d8ad63; /* initials: the donor --gold2, dark-surface gold */
  --rt-ppl-muted: #5c574f; /* secondary text on #fffdf8 and #f6f2ea */
  /* /people/ grid card portrait size. Alex picked v5
     (qa/2026-10-02-voices-featured/v5.html, .r2-v5 .r2-av) on 2 Oct 2026:
     96px circle left of the text, white card -- the one variable below is
     the whole "port v5" change; the rest already matched (grid: 4 columns,
     2 under 1100px, 1 under 700px; white card, 1px var(--line) border). */
  --rt-ppl-card-disc: 96px;
}

/* Alex, 2 Oct 2026: "not all caps pls" / brand names keep their exact
   casing. The donor .eyebrow and .filter classes (styles.css) are all-caps
   site-wide; this file loads ONLY on people.html and the /people/<slug>/
   profiles (extra_css above), so these overrides never reach any other
   page's eyebrow or filter pills. "PeerViews" (camel case) must render
   exactly as typed -- never retype the words, remove the transform. */
.rt-ppl-hero .eyebrow,
#voices .eyebrow,
.page-hero .eyebrow,
.page-hero .filter {
  text-transform: none;
  letter-spacing: normal;
}

.rt-ppl-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
}
.rt-ppl-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.rt-ppl-disc {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rt-ppl-disc-bg);
  color: var(--rt-ppl-disc-fg);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.04em;
}
.rt-ppl-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rt-ppl-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.rt-ppl-role {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 14px;
  color: var(--ink);
}
.rt-ppl-counts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rt-ppl-counts li {
  font-size: 12px;
  font-weight: 700;
  color: var(--rt-ppl-muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
}

.rt-ppl-groups {
  /* top and bottom only: the .shell side gutter (34px, 18px on phones) must survive */
  padding-top: 40px;
  padding-bottom: 56px;
}
.rt-ppl-group + .rt-ppl-group {
  margin-top: 40px;
}
.rt-ppl-group .section-rule h2 {
  font-weight: 400;
}
.rt-ppl-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--rt-ppl-muted);
  margin: 10px 0 0;
}
.rt-ppl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.rt-ppl-item {
  border-bottom: 1px solid var(--line);
}
.rt-ppl-link {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 44px;
  padding: 16px 0;
  color: var(--ink);
}
.rt-ppl-link.no-thumb {
  grid-template-columns: minmax(0, 1fr);
}
.rt-ppl-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.rt-ppl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rt-ppl-kind {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rt-gold-a11y, #77592a);
  margin-bottom: 6px;
}
.rt-ppl-title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.12;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.rt-ppl-dek {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rt-ppl-muted);
}
.rt-ppl-go {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.rt-ppl-link:hover .rt-ppl-title,
.rt-ppl-link:focus-visible .rt-ppl-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rt-ppl-link:focus-visible,
.rt-ppl-card:focus-visible,
.rt-ppl-back a:focus-visible {
  outline: 2px solid var(--rt-gold-a11y, #77592a);
  outline-offset: 3px;
}
.rt-ppl-back {
  margin: 36px 0 0;
}
.rt-ppl-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* /people/ search (Alex, 2 Oct 2026: "introduce search ... many more
   Voices"). Progressive enhancement: the full grid below already renders
   with no JS; rtns-people.js only toggles [hidden] on cards it has already
   matched client-side, and the UA [hidden] rule needs an explicit assist on
   .rt-ppl-dir because its own `display: grid` otherwise wins the cascade. */
.rt-ppl-search {
  max-width: 480px;
  margin: 22px 0 28px;
}
.rt-ppl-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.rt-ppl-search-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.rt-ppl-search-input:focus-visible {
  outline: 2px solid var(--rt-gold-a11y, #77592a);
  outline-offset: 2px;
}
.rt-ppl-search-count {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--rt-ppl-muted);
}
.rt-ppl-search-empty {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rt-ppl-muted);
}
.rt-ppl-search-empty a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rt-ppl-dir[hidden] {
  display: none;
}

/* /people/ directory ("Voices on RealTimes") */
.rt-ppl-dir {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.rt-ppl-card {
  display: grid;
  grid-template-columns: var(--rt-ppl-card-disc) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 44px;
  height: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.rt-ppl-card .rt-ppl-disc {
  width: var(--rt-ppl-card-disc);
  height: var(--rt-ppl-card-disc);
  font-size: 22px;
}
.rt-ppl-txt {
  min-width: 0;
}
.rt-ppl-card-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.rt-ppl-card span.rt-ppl-card-line {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--rt-ppl-muted);
}
.rt-ppl-card:hover .rt-ppl-card-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .rt-ppl-dir {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .rt-ppl-hero {
    padding: 32px 0 26px;
  }
  .rt-ppl-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .rt-ppl-disc {
    width: 96px;
    height: 96px;
    font-size: 32px;
  }
  .rt-ppl-hero h1 {
    font-size: 40px;
  }
  .rt-ppl-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .rt-ppl-thumb {
    max-width: 320px;
  }
  .rt-ppl-title {
    font-size: 21px;
  }
  .rt-ppl-dir {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Featured Voices of RealTimes (Alex approved the v2 mock, 2 Oct 2026).
   Ported 1:1 from qa/2026-10-02-voices-featured/v2.html's own <style>
   block -- same class names, so the shipped band matches what he signed
   off verbatim. .vx-chip/.vx-count are the only two shared with that mock
   that are NOT re-declared here (they carry no page-specific colour). */
.vx-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
}
.vx-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  border: 1px solid var(--rt-gold-a11y, #77592a);
  color: var(--rt-gold-a11y, #77592a);
  border-radius: 12px;
}
.vx-count {
  font-size: 12px;
  color: var(--rt-ppl-muted);
}
.v2-band {
  background: var(--dark);
  color: #fff;
  padding: 56px 0 48px;
}
.v2-band .section-title {
  color: #fff;
}
.v2-sub {
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
  margin: 10px 0 0;
}
.v2-fl {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.v2-f {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  height: 100%;
  min-height: 44px;
  padding: 22px;
  border: 1px solid #3a3d39;
  border-radius: 20px;
  color: #fff;
}
.v2-f:hover,
.v2-f:focus-visible {
  border-color: var(--gold2);
}
.v2-av {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 6px;
  flex: none;
}
.v2-av .rt-ppl-disc {
  width: 100%;
  height: 100%;
  font-size: 32px;
}
.v2-q {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 6px;
}
.v2-n {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.v2-r {
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
}
.v2-f .vx-chip {
  border-color: var(--gold2);
  color: var(--gold2);
}
.v2-f .vx-count {
  color: #fff;
}
#rt-ppl-featured[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .v2-fl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .v2-band {
    padding: 40px 0 36px;
  }
  .v2-fl {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .v2-f {
    padding: 18px;
  }
  .v2-av {
    width: 88px;
    height: 88px;
  }
  .v2-q {
    font-size: 21px;
  }
}
