/* people-directory.css - the people listings on Board, Leadership and Faculty.

   The design is lab/people-01.html, Version B, chosen by the client 2026-10-02: people
   without photographs. Each person's initials sit in a crest monogram, so no card
   reads as a missing portrait; every group has one crest tone (its dot, its monograms
   and the left edge of its tiles); the lead card of a page sits on the site's own
   khatim pattern. Built by .unlazy/people-pages/make.py.

   THE FLAGS ARE PART OF THE DESIGN UNTIL THE SCHOOL ANSWERS THEM. Two kinds:
     .pd-flag  a red banner over a whole list - the principal page's "Bio coming
               soon" banner, which the client approved (crest red, cream text)
     .pd-ask   one person's own question, under their role
   Each one names the exact thing to confirm, so it can be forwarded as it stands.
   Delete a flag when its answer is in; nothing else depends on it.

   Nothing here is hidden behind a reveal: on a directory, the names are the
   content, and content visibility never waits on a script. */

.pd {
  --pd-card: #FFFDF9;
  --pd-line: rgba(52, 35, 26, .10);
  background: var(--paper);
  padding: clamp(44px, 4.5vw, 72px) 0;   /* client 2026-10-02: "so much white space" - tightened from 64-104 */
  color: var(--ink);
}
.pd-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; font-family: "DM Sans", Inter, sans-serif; }

.pd-eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terracotta); display: flex; align-items: center; gap: 8px;
}
.pd-h2 {
  margin: 0 0 14px; font-family: "Libre Caslon Display", Georgia, serif; font-weight: 400;
  font-size: clamp(40px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.02em; color: var(--ink);
}
.pd-lede { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.pd-head { margin-bottom: 28px; }

.pd-group { margin-top: 36px; --tone: var(--terracotta); --tone-ink: var(--cream); }
.pd-flag + .pd-group { margin-top: 0; }
.pd-group[data-tone="early"]  { --tone: var(--flame-o);    --tone-ink: var(--cream); }
.pd-group[data-tone="elem"]   { --tone: var(--gold);       --tone-ink: var(--ink); }
.pd-group[data-tone="middle"] { --tone: var(--taupe-deep); --tone-ink: var(--cream); }
.pd-group[data-tone="faith"]  { --tone: var(--espresso);   --tone-ink: var(--cream); }
.pd-group__head { margin-bottom: 18px; }
.pd-h3 {
  margin: 0; font-family: "Libre Caslon Display", Georgia, serif; font-weight: 400;
  font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; color: var(--ink);
  display: flex; align-items: baseline; gap: 12px;
}
.pd-count { font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.pd-story { margin: 8px 0 0; max-width: 64ch; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.pd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }

/* monogram: initials in place of a photograph */
.pd-mono {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Libre Caslon Display", Georgia, serif; font-size: 17px; letter-spacing: .04em;
  color: var(--tone-ink); background: var(--tone);
}
.pd-mono--lg { width: 64px; height: 64px; font-size: 23px; color: var(--cream); background: var(--terracotta); box-shadow: 0 0 0 5px rgba(168, 50, 38, .10); }
/* a person the sources do not name yet: an open ring, not a filled one */
.pd-mono--tbc, .pd-mono--lg.pd-mono--tbc {
  background: transparent; color: var(--terracotta); box-shadow: inset 0 0 0 2px rgba(168, 50, 38, .45);
  font-family: "DM Sans", sans-serif; font-weight: 700;
}

/* officers: the cards with the coloured left edge */
.pd-officers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.pd-officer {
  display: flex; gap: 20px; align-items: center; min-width: 0;
  background: var(--pd-card); border: 1px solid var(--pd-line); border-left: 4px solid var(--terracotta);
  border-radius: 12px; padding: 22px 24px;
}
.pd-officer__body { min-width: 0; }
.pd-officer--feature {
  position: relative; overflow: hidden; padding: 30px 28px;
  background: linear-gradient(90deg, var(--pd-card) 55%, rgba(255, 253, 249, .86)), url("/assets/img/pattern-khatim.webp") right center / 420px auto repeat;
}
.pd-officer--feature .pd-mono--lg { width: 78px; height: 78px; font-size: 28px; }
.pd-officer--feature .pd-name--lg { font-size: 32px; }
.pd-role { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); }
.pd-name { font-weight: 600; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.pd-name--lg { margin: 0; font-family: "Libre Caslon Display", Georgia, serif; font-weight: 400; font-size: 27px; line-height: 1.1; }
.pd-name--tbc { font-style: italic; color: var(--ink-soft); }
.pd-officer__links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.pd-mail, .pd-more, .pd-contact a { color: var(--terracotta-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pd-note { color: var(--ink-soft); }

/* members: tiles in a grid; 210 gives five across at desktop */
.pd-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.pd-tile {
  display: flex; gap: 14px; align-items: center; min-width: 0;
  background: var(--pd-card); border: 1px solid var(--pd-line); border-left: 3px solid var(--tone);
  border-radius: 10px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.pd-tile:hover { border-color: rgba(168, 50, 38, .35); border-left-color: var(--tone); box-shadow: 0 6px 18px rgba(52, 35, 26, .06); }
/* a group whose people mostly carry a question gets wider tiles, so the question reads in lines, not slivers */
.pd-tiles--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pd-tile__text { display: grid; gap: 2px; min-width: 0; }
.pd-tile__role { font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.pd-tile--asks { align-items: flex-start; }

/* ---- slim tiles (client 2026-10-02: the cards looked "very fat and large") -----------
   Every tile in a group is the same height: one name line, one role line, a smaller
   monogram, tighter padding. A row of 6-8 people sits 4 across, so 7 reads 4 + 3
   instead of 5 + 2. Wide (question) groups keep their roomier cards. */
.pd-tiles:not(.pd-tiles--wide) { grid-auto-rows: 1fr; gap: 10px; }
.pd-tiles:not(.pd-tiles--wide) .pd-tile { padding: 11px 14px; gap: 12px; border-radius: 8px; }
.pd-tiles:not(.pd-tiles--wide) .pd-mono { width: 38px; height: 38px; font-size: 14px; }
.pd-tiles:not(.pd-tiles--wide) .pd-name { font-size: 14.5px; line-height: 1.3; }
.pd-tiles:not(.pd-tiles--wide) .pd-tile__role { font-size: 12.5px; }
@media (min-width: 900px) {
  .pd-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pd-tile--flagged { border-color: rgba(168, 50, 38, .30); border-left-color: var(--tone); }
.pd-tile__flag { margin-left: 6px; color: var(--terracotta); font-size: 12px; vertical-align: 1px; }
.pd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* a group's questions, together under its tiles: the per-person "to confirm" note */
.pd-group-asks {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 8px;
  background: rgba(168, 50, 38, .08); color: var(--terracotta-deep);
  font-size: 13px; line-height: 1.5;
}
.pd-group-asks strong { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.pd-group-asks strong::before { content: "\2691\00a0"; }
.pd-group-asks ul { margin: 0; padding-left: 18px; }
.pd-group-asks li { margin: 2px 0; }

/* ---- "Come meet the Huda community" (Faculty; client 2026-10-02: the plain band "sucks") --
   The same words and link, now a card with a teacher-and-student photograph beside them. */
.pd-visit { background: var(--paper); padding: 0 24px clamp(48px, 5vw, 80px); }
.pd-visit__card {
  max-width: 1132px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--cream); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(52, 35, 26, .10);
}
.pd-visit__photo { margin: 0; min-height: 320px; position: relative; }
.pd-visit__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.pd-visit__body { padding: clamp(28px, 4vw, 56px); align-self: center; font-family: "DM Sans", Inter, sans-serif; }
.pd-visit__h { margin: 4px 0 14px; font-family: "Libre Caslon Display", Georgia, serif; font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.pd-visit__text { margin: 0 0 24px; max-width: 46ch; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.pd-visit__btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 4px;
  background: var(--terracotta); color: var(--cream); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background-color .2s;
}
.pd-visit__btn:hover { background: var(--terracotta-deep); }
@media (max-width: 760px) {
  .pd-visit__card { grid-template-columns: minmax(0, 1fr); }
  .pd-visit__photo { min-height: 240px; }
}

.pd-contact { margin: 36px 0 0; padding: 14px 18px; border-radius: 10px; background: var(--pd-card); border: 1px solid var(--pd-line); font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---- the flags ------------------------------------------------------------- */
.pd-flag {
  margin: 0 0 28px; padding: 16px 20px; border-radius: 10px;
  background: var(--terracotta); color: var(--cream);
  font-size: 15px; line-height: 1.6; max-width: 860px;
}
.pd-flag strong { font-weight: 700; }
.pd-flag ul { margin: 8px 0 0; padding-left: 20px; }
.pd-flag li { margin: 3px 0; }
.pd-flag--inline { margin: 14px 0 0; max-width: 620px; font-size: 14px; padding: 12px 16px; }
.pd-ask {
  display: flex; gap: 6px; align-items: flex-start;
  margin: 8px 0 0; padding: 7px 10px; border-radius: 6px;
  background: rgba(168, 50, 38, .08); color: var(--terracotta-deep);
  font-size: 12.5px; line-height: 1.45; font-weight: 500;
}
.pd-ask::before { content: "\2691"; flex: 0 0 auto; font-weight: 700; }
.pd-officer .pd-ask { font-size: 13px; }

/* ---- the principal, at the head of the Leadership listing (client 2026-10-02) ----
   One block instead of the concept's separate principal section: no outlined "01",
   the portrait in a plain square (the client did not like the arch), his words and
   links beside it. */
.pd-principal {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px);
  align-items: start; margin: 0 0 8px;
  background: var(--pd-card); border: 1px solid var(--pd-line); border-left: 4px solid var(--terracotta);
  border-radius: 12px; padding: clamp(18px, 2.4vw, 28px);
}
.pd-principal__photo { margin: 0; }
.pd-principal__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 18%;
  border-radius: 8px;
}
.pd-principal__name { margin: 0 0 4px; font-family: "Libre Caslon Display", Georgia, serif; font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.08; color: var(--ink); }
.pd-principal__text { margin: 14px 0 0; max-width: 64ch; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.pd-principal .pd-flag--inline { margin-top: 14px; }
.pd-principal .pd-officer__links { margin-top: 16px; }
@media (max-width: 640px) {
  .pd-principal { grid-template-columns: minmax(0, 1fr); }
  .pd-principal__photo { max-width: 220px; }
}

@media (max-width: 560px) {
  .pd-officer { align-items: flex-start; padding: 18px; gap: 14px; }
  .pd-officer--feature { padding: 22px 18px; }
  .pd-mono--lg, .pd-officer--feature .pd-mono--lg { width: 52px; height: 52px; font-size: 19px; }
  .pd-name--lg, .pd-officer--feature .pd-name--lg { font-size: 23px; }
  .pd-flag { padding: 14px 16px; font-size: 14px; }
}
