/* people-accordion.css - the people listings as drop-down bios (lab/people-03, proposed 2026-10-04).

   Lifted from the DarusSalam Seminary faculty page (darussalam.org/seminary/faculty/, the client's
   reference): a bordered bar with only the name and a plus; click it and the bar fills with the
   brand colour, the plus becomes a minus, and the bio slides down beneath it, indented behind a
   3px rule. Measured there: 2px #e2e2e2 border, 5px radius, 20px padding, 16px between bars,
   300ms slide with jQuery's "swing" easing, bio 20px in from the bar with a 30px gap above it.
   Two columns, each its own accordion: opening a bar closes the open one in the same column.
   Their gold becomes our crest red; Jost becomes the site's DM Sans.

   Works with no script: each bar is a <details>, so it opens and closes natively.
   assets/js/people-accordion.js only adds the slide and the one-open-per-column rule. */

.pa-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start;
  max-width: 980px;
}
@media (max-width: 760px) { .pa-cols { grid-template-columns: 1fr; } }
.pa-col { min-width: 0; }

.pa-item { margin: 0 0 16px; }
.pa-head {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border: 2px solid rgba(52, 35, 26, .12); border-radius: 5px;
  background: var(--pd-card, #FFFDF9); color: var(--ink);
  font: 500 18px/1.3 "DM Sans", Inter, sans-serif;
  transition: background-color .3s ease-in-out, border-color .3s ease-in-out, color .3s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}
.pa-head::-webkit-details-marker { display: none; }
.pa-head::marker { content: ""; }
.pa-head:hover { background: #F3ECE2; }
.pa-head:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.pa-name { min-width: 0; }
.pa-name--tbc { color: var(--ink-soft); }
.pa-tbc {
  margin-left: 8px; font-size: 14px; color: var(--terracotta);
}

/* the plus: two thin bars; open, the upright one is gone (the reference swaps + for - outright) */
.pa-icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.pa-icon::before, .pa-icon::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px;   /* whole pixels: a 1.5px bar dropped out at some offsets */
  background: currentColor; border-radius: 1px;
}
.pa-icon::after { transform: rotate(90deg); }

/* open: the bar fills. .is-open is set by the script on click (so the bar empties the moment you
   close it, while the bio is still sliding up); [open] covers every page where people-accordion.js
   is not running (it sets .pa-ready on <html>), including when only that file fails to load. */
.pa-item.is-open > .pa-head,
html:not(.pa-ready) .pa-item[open] > .pa-head {
  background: var(--terracotta); border-color: var(--terracotta); color: var(--cream);
}
.pa-item.is-open > .pa-head .pa-name--tbc,
.pa-item.is-open > .pa-head .pa-tbc,
html:not(.pa-ready) .pa-item[open] > .pa-head .pa-tbc { color: var(--cream); }
.pa-item.is-open > .pa-head .pa-icon::after,
html:not(.pa-ready) .pa-item[open] > .pa-head .pa-icon::after { display: none; }

/* the bio */
.pa-body { overflow: hidden; }
.pa-bio {
  margin: 0 0 0 20px; padding: 26px 0 6px;   /* the gap above the rule, then the rule */
  font: 400 16px/1.7 "DM Sans", Inter, sans-serif; color: var(--ink-soft);
}
.pa-bio-in { border-left: 3px solid var(--terracotta); padding: 0 20px 0 18px; }
.pa-bio p { margin: 0 0 14px; }
.pa-bio p:last-child { margin-bottom: 0; }
.pa-role {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta);
}
.pa-bio .pd-ask { display: block; margin: 0 0 14px; font-size: 13.5px; }   /* block: a <strong> inside it must not become its own column */
.pa-bio .pd-ask::before { margin-right: 6px; }
.pa-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pa-links a { color: var(--terracotta-deep); font-weight: 600; overflow-wrap: anywhere; }   /* a long email wraps instead of being cut on a 320px phone */
/* "bio to come": the school has sent no biographies yet. Red, like every other to-confirm flag. */
.pa-need { color: var(--terracotta); font-size: 14px; }
.pa-need b { font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .pa-head { transition: none; } }
