/* ============================================================
   brain-trust.css — shared styles for /brain-trust (index) and
   the 12 rescued Braintrust Desk essay pages at their own root
   slugs (e.g. /beyond-surveys-when-student-voice-becomes-evidence).

   WHY THIS FILE EXISTS: 13 pages share one layout system. Every
   other section on this site scopes page-specific CSS in an inline
   <style> block per page (see #nr-page in newsroom.html) — with 13
   near-identical pages that pattern would mean the same ~200 lines
   pasted 13 times. One shared file, loaded after styles.css, kept
   the section DRY without inventing a new build step. Uses only
   tokens already declared in styles.css (--blue, --coral, --t1/2/3,
   --font-display/serif/mono, --maxw, .section/.container/.card/
   .eyebrow/.grid-3/.reveal/.table-scroll).

   Generated pages: scripts/generate-brain-trust.mjs
   Source data:     scripts/data/braintrust-posts-source.json
   ============================================================ */

#bt-page{background:var(--bg)}

/* ---- shared hero (index + detail) ---- */
#bt-page .bt-hero{max-width:var(--maxw);margin:0 auto;padding:168px 40px 8px}
#bt-page .bt-back{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);
  text-decoration:none;margin-bottom:22px;transition:color .16s}
#bt-page .bt-back:hover{color:var(--coral)}
#bt-page .bt-eyebrow{margin-bottom:20px}
#bt-page .bt-hero h1{margin:0 0 20px;color:var(--t1)}
#bt-page .bt-lede{margin:0;padding-left:22px;border-left:3px solid var(--blue);
  font-size:clamp(16px,1.9vw,19px);line-height:1.65;color:rgba(10,26,50,.78);max-width:680px}

/* ---- index hero: text column + a real photo of Emma, not just copy ---- */
#bt-page .bt-hero-split{display:grid;grid-template-columns:1.15fr 1fr;gap:44px;align-items:center}
#bt-page .bt-hero-link{display:inline-flex;align-items:center;gap:8px;margin-top:24px;
  font-family:var(--font-mono);font-size:12px;font-weight:700;letter-spacing:.06em;
  color:var(--blue-deep);text-decoration:none}
#bt-page .bt-hero-link:hover{color:var(--coral)}
#bt-page .bt-hero-photo{position:relative;display:block;overflow:hidden;border-radius:20px;
  aspect-ratio:16/10;box-shadow:0 20px 44px -22px rgba(10,26,50,.35)}
#bt-page .bt-hero-photo img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 22%;transition:transform .5s var(--ease)}
#bt-page .bt-hero-photo:hover img{transform:scale(1.035)}
#bt-page .bt-hero-photo::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(10,26,50,0) 55%,rgba(10,26,50,.6) 100%)}
#bt-page .bt-hero-photo-tag{position:absolute;z-index:1;left:16px;bottom:14px;
  font-family:var(--font-mono);font-size:9.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:#fff}

/* ---- index: card grid ---- */
#bt-page .bt-grid{max-width:var(--maxw);margin:0 auto;padding:52px 40px 90px;gap:28px}
#bt-page .bt-card{overflow:hidden;display:flex;flex-direction:column;text-decoration:none;
  color:inherit;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
#bt-page .bt-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px -18px rgba(10,26,50,.28)}
#bt-page .bt-cover{position:relative;aspect-ratio:16/10;display:flex;align-items:flex-end;
  overflow:hidden}
#bt-page .bt-cover-mark{position:absolute;top:50%;left:50%;transform:translate(-50%,-58%);
  font-family:var(--font-serif);font-size:104px;line-height:1;color:rgba(255,255,255,.32);
  font-style:italic;user-select:none;pointer-events:none}
#bt-page .bt-cover-tag{position:relative;z-index:1;margin:0 16px 14px;font-family:var(--font-mono);
  font-size:9.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#fff;
  background:rgba(10,26,50,.28);padding:5px 10px;border-radius:999px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
#bt-page .bt-card-body{padding:22px 24px 26px;display:flex;flex-direction:column;gap:10px;flex:1}
#bt-page .bt-dateline{font-family:var(--font-mono);font-size:9.5px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--t3)}
#bt-page .bt-card h3{font-family:var(--font-serif);font-weight:600;font-size:19px;line-height:1.32;
  letter-spacing:-.01em;color:var(--t1);transition:color .16s}
#bt-page .bt-card:hover h3{color:var(--blue-deep)}
#bt-page .bt-excerpt{font-size:13.5px;line-height:1.62;color:var(--t2);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}
#bt-page .bt-more{margin-top:2px;font-family:var(--font-mono);font-size:11px;font-weight:700;
  letter-spacing:.06em;color:var(--blue-deep);display:inline-flex;align-items:center;gap:6px}
#bt-page .bt-more::after{content:'\2192';color:var(--coral);transition:transform .2s}
#bt-page .bt-card:hover .bt-more::after{transform:translateX(3px)}

/* four gradient cover variants, rotated by index — no stock photography,
   no invented illustrations of people, just tonal brand color. Fallback
   for any post with no recovered `local_image` (see generator IMAGES note). */
#bt-page .bt-cover.v0{background:linear-gradient(135deg,var(--blue),var(--blue-deep) 70%)}
#bt-page .bt-cover.v1{background:linear-gradient(135deg,var(--coral),var(--coral-deep) 75%)}
#bt-page .bt-cover.v2{background:linear-gradient(135deg,#1B2A42,#21304A 55%,var(--blue-deep))}
#bt-page .bt-cover.v3{background:linear-gradient(135deg,var(--amber),var(--coral-deep) 80%)}

/* real recovered photo covers — image fills the same box, a scrim keeps
   the tag/label legible over whatever's underneath */
#bt-page .bt-cover.has-photo img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center;z-index:0}
#bt-page .bt-cover.has-photo::after{content:'';position:absolute;inset:0;z-index:0;
  background:linear-gradient(180deg,rgba(10,26,50,.05) 0%,rgba(10,26,50,.55) 100%),
    linear-gradient(90deg,rgba(10,26,50,.32) 0%,rgba(10,26,50,0) 35%,
      rgba(10,26,50,0) 65%,rgba(10,26,50,.32) 100%)}

/* ---- index: intro footer note (about Emma, low-key) ---- */
#bt-page .bt-about{max-width:var(--maxw);margin:0 auto;padding:0 40px 80px}
#bt-page .bt-about-card{padding:28px 30px;display:flex;gap:20px;align-items:flex-start}
#bt-page .bt-about-card p{font-size:14px;line-height:1.7;color:var(--t2);margin:0}
#bt-page .bt-about-card strong{color:var(--t1)}

/* ---- detail: header meta row ---- */
#bt-page .bt-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:18px;
  font-family:var(--font-mono);font-size:10.5px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--t3)}
#bt-page .bt-meta .dot{opacity:.5}
#bt-page .bt-meta .bt-cat{color:var(--coral)}
#bt-page .bt-detail-hero h1{font-family:var(--font-serif);font-weight:600;
  font-size:clamp(30px,4.4vw,52px);letter-spacing:-.015em;line-height:1.14;color:var(--t1);
  margin:0 0 18px}
#bt-page .bt-byline{font-family:var(--font-mono);font-size:11px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--t2)}
#bt-page .bt-byline span{color:var(--t3);font-weight:500;text-transform:none;letter-spacing:0}

/* ---- detail: cover band (real hero-sized featured image, not a thumbnail) ----
   BUG FIXED 2026-08-23: this element also carries .bt-cover (aspect-ratio:16/10,
   see above), and used to ALSO set an explicit height here (clamp(120px,18vw,190px)).
   With both an explicit height and an aspect-ratio set, and no explicit width, a
   block box resolves its width FROM height×aspect-ratio instead of filling its
   container — so this rendered as a small ~304px-wide box (190px tall × 1.6),
   nowhere near the full ~1080px content width, looking like a thumbnail next to
   the H1. Fix: drop the explicit height and force width:100% so aspect-ratio
   governs height from the FULL content width instead — same math .bt-hero-photo
   already uses for the /brain-trust index hero and /about-emma's masthead photo,
   now consistent across all three "real photo" hero treatments on this page
   family. align-items/justify-content overrides removed too so .bt-cover's own
   align-items:flex-end (bottom-anchored label, matching the other hero photos'
   bottom-left caption convention) applies instead of the old vertically-centered
   corner tag that made sense on a short strip but not a real hero photo. */
#bt-page .bt-band{max-width:var(--maxw);margin:26px auto 0;padding:0 40px}
#bt-page .bt-band-inner{position:relative;width:100%;border-radius:20px;overflow:hidden;
  box-shadow:0 20px 44px -22px rgba(10,26,50,.35)}
#bt-page .bt-band-inner .bt-cover-mark{transform:translate(-50%,-50%);font-size:clamp(70px,10vw,150px)}
#bt-page .bt-band-label{position:relative;z-index:1;margin:0 0 20px 24px;font-family:var(--font-mono);
  font-size:10.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.9)}

/* ---- detail: article body ---- */
#bt-page .bt-article{max-width:700px;margin:0 auto;padding:48px 40px 20px}
#bt-page .bt-article p{font-size:17px;line-height:1.78;color:var(--t1);margin:0 0 24px}
#bt-page .bt-article h2{font-family:var(--font-serif);font-weight:600;
  font-size:clamp(22px,2.8vw,30px);letter-spacing:-.01em;line-height:1.28;color:var(--t1);
  margin:50px 0 18px}
#bt-page .bt-article h3{font-family:var(--font-serif);font-weight:600;font-size:20px;
  line-height:1.3;color:var(--t1);margin:34px 0 14px}
#bt-page .bt-article strong{font-weight:700;color:var(--t1)}
#bt-page .bt-article em{font-style:italic}
#bt-page .bt-article ul,#bt-page .bt-article ol{margin:0 0 24px;padding-left:1.35em}
#bt-page .bt-article li{margin-bottom:9px;line-height:1.72;font-size:17px;color:var(--t1)}
#bt-page .bt-article li>p{margin:0}
#bt-page .bt-article blockquote{margin:36px 0;padding:2px 0 2px 26px;border-left:3px solid var(--coral);
  font-family:var(--font-serif);font-style:italic;font-size:clamp(18px,2.2vw,21px);line-height:1.55;
  color:var(--t1)}
#bt-page .bt-article hr{border:none;border-top:1px solid var(--border-strong);margin:46px 0}
#bt-page .bt-article a{color:var(--blue-deep);text-decoration:underline;
  text-decoration-color:var(--border-strong);text-underline-offset:3px}
#bt-page .bt-article a:hover{text-decoration-color:var(--blue-deep)}
#bt-page .bt-article table{width:100%;border-collapse:collapse;font-size:14.5px}
#bt-page .bt-article th,#bt-page .bt-article td{padding:11px 16px;border-bottom:1px solid var(--border-strong);
  text-align:left;vertical-align:top}
#bt-page .bt-article thead th{font-family:var(--font-mono);font-size:10px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--t3);white-space:nowrap}
#bt-page .bt-emoji{font-size:1.05em;line-height:1;vertical-align:-0.08em}

/* ---- detail: footer nav (prev/next + CTA) ---- */
#bt-page .bt-footnav{max-width:700px;margin:20px auto 0;padding:34px 40px 90px;
  border-top:1px solid var(--border-strong)}
#bt-page .bt-footnav-row{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;
  align-items:center;margin-bottom:26px}
#bt-page .bt-footnav-link{font-family:var(--font-mono);font-size:12px;font-weight:700;
  letter-spacing:.04em;color:var(--blue-deep);text-decoration:none}
#bt-page .bt-footnav-link:hover{color:var(--coral)}
#bt-page .bt-cta-card{padding:24px 26px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;
  justify-content:space-between}
#bt-page .bt-cta-card p{margin:0;font-size:14.5px;color:var(--t2);max-width:44ch}
#bt-page .bt-cta-card strong{color:var(--t1)}

@media (max-width:900px){
  #bt-page .bt-hero{padding:140px 28px 6px}
  #bt-page .bt-hero-split{grid-template-columns:1fr;gap:28px}
  #bt-page .bt-hero-photo{order:-1}
  #bt-page .bt-grid{padding:44px 28px 70px}
  #bt-page .bt-about{padding:0 28px 64px}
  #bt-page .bt-band{padding:0 28px}
  #bt-page .bt-article{padding:40px 28px 10px}
  #bt-page .bt-footnav{padding:30px 28px 70px}
}

@media (max-width:640px){
  #bt-page .bt-hero{padding:118px 20px 4px}
  #bt-page .bt-grid{padding:36px 20px 56px}
  #bt-page .bt-about{padding:0 20px 56px}
  #bt-page .bt-band{padding:0 20px}
  #bt-page .bt-article{padding:32px 20px 6px}
  #bt-page .bt-article p,#bt-page .bt-article li{font-size:16px}
  #bt-page .bt-footnav{padding:26px 20px 56px}
  #bt-page .bt-cta-card{flex-direction:column;align-items:flex-start}
}

@media (prefers-reduced-motion:reduce){
  #bt-page .bt-card{transition:none}
}
