/* Build 4.0 — restore original Step 2 header behavior exactly */
.site-header{
  position:sticky !important;
  top:0 !important;
  z-index:40 !important;
  background:rgba(247,245,239,.95) !important;
  backdrop-filter:blur(14px) !important;
  border-bottom:1px solid var(--line) !important;
}
.site-header .header-inner{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  min-height:74px !important;
  gap:20px !important;
  width:min(1180px,calc(100% - 40px)) !important;
  margin:0 auto !important;
  padding:0 !important;
}
.site-header .brand{
  display:flex !important;
  align-items:center !important;
  gap:13px !important;
  min-width:0 !important;
  margin:0 !important;
  text-decoration:none !important;
  color:inherit !important;
  order:initial !important;
}
.site-header .mark{
  width:38px !important;
  height:38px !important;
  border:1px solid var(--line) !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  font-size:.72rem !important;
  color:var(--muted) !important;
  flex:0 0 38px !important;
}
.site-header .brand-copy{min-width:0 !important;}
.site-header .brand-title{
  font-weight:750 !important;
  letter-spacing:-.02em !important;
  white-space:nowrap !important;
}
.site-header .brand-sub{
  font-size:.78rem !important;
  color:var(--muted) !important;
  margin-top:1px !important;
  white-space:nowrap !important;
}
.site-header .nav{
  display:flex !important;
  gap:4px !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  justify-content:flex-end !important;
  position:static !important;
  width:auto !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  order:initial !important;
  margin-left:auto !important;
}
.site-header .nav a{
  font-size:.9rem !important;
  color:#404640 !important;
  padding:9px 10px !important;
  border-radius:9px !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.site-header .nav a:hover,
.site-header .nav a.active{
  background:var(--surface) !important;
  box-shadow:0 1px 0 rgba(0,0,0,.03) !important;
}
.site-header .nav .private-badge{
  color:#fff !important;
  background:var(--accent) !important;
  font-size:.72rem !important;
  padding:7px 9px !important;
}
.site-header .menu-btn{
  display:none !important;
  border:1px solid var(--line) !important;
  background:var(--surface) !important;
  padding:9px 11px !important;
  border-radius:10px !important;
  color:inherit !important;
  order:initial !important;
}
.site-footer .footer-inner{
  width:min(1180px,calc(100% - 40px)) !important;
  margin:0 auto !important;
  display:flex !important;
  justify-content:space-between !important;
  gap:30px !important;
  align-items:flex-start !important;
}
.site-footer .build-version{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  text-align:right !important;
}
@media (max-width:980px){
  .site-header .header-inner{position:relative !important;}
  .site-header .nav{
    display:none !important;
    position:absolute !important;
    left:20px !important;
    right:20px !important;
    top:68px !important;
    width:auto !important;
    background:var(--surface) !important;
    padding:12px !important;
    border:1px solid var(--line) !important;
    border-radius:14px !important;
    box-shadow:var(--shadow) !important;
    z-index:60 !important;
  }
  .site-header .nav.open{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .site-header .menu-btn{display:block !important;}
}
@media (max-width:640px){
  .site-header .brand-sub{display:none !important;}
  .site-footer .footer-inner{flex-direction:column !important;}
  .site-footer .build-version{text-align:left !important;}
}

/* Build 5.6.1 — navigation simplification; original header geometry preserved */
.site-header .nav-dropdown{position:relative !important;}
.site-header .nav-dropdown-btn{
  font:inherit !important;font-size:.9rem !important;color:#404640 !important;
  padding:9px 10px !important;border-radius:9px !important;border:0 !important;
  background:transparent !important;cursor:pointer !important;white-space:nowrap !important;
}
.site-header .nav-dropdown-btn:hover,
.site-header .nav-dropdown-btn.active,
.site-header .nav-dropdown.open .nav-dropdown-btn{background:var(--surface) !important;}
.site-header .nav-dropdown-menu{
  display:none !important;position:absolute !important;top:calc(100% + 7px) !important;right:0 !important;
  min-width:220px !important;background:var(--surface) !important;border:1px solid var(--line) !important;
  border-radius:12px !important;padding:7px !important;box-shadow:var(--shadow) !important;z-index:80 !important;
}
.site-header .nav-dropdown.open .nav-dropdown-menu{display:flex !important;flex-direction:column !important;}
.site-header .nav-dropdown-menu a{display:block !important;width:100% !important;}
.site-footer .footer-links{display:flex !important;gap:14px !important;flex-wrap:wrap !important;margin-top:12px !important;}
.site-footer .footer-links a{font-size:.82rem !important;color:inherit !important;text-decoration:underline !important;text-underline-offset:3px !important;}
@media (max-width:980px){
  .site-header .nav-dropdown{width:100% !important;}
  .site-header .nav-dropdown-btn{width:100% !important;text-align:left !important;}
  .site-header .nav-dropdown-menu{
    position:static !important;min-width:0 !important;margin-top:5px !important;
    box-shadow:none !important;background:rgba(0,0,0,.025) !important;
  }
}

/* Build 5.6.2 — public newsroom layer */
.news-hero{padding:64px 0 28px;background:linear-gradient(180deg,rgba(0,0,0,.025),transparent);}
.news-hero h1{max-width:850px;font-size:clamp(2.4rem,6vw,5rem);line-height:.98;letter-spacing:-.045em;margin:.18em 0;}
.news-hero .lede{max-width:820px;font-size:1.08rem;line-height:1.65;}
.section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:20px;}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.news-card{border-top:2px solid currentColor;padding:18px 0 8px;}
.news-card h3{font-size:1.35rem;line-height:1.16;margin:8px 0 10px;letter-spacing:-.02em;}
.news-card h3 a{color:inherit;text-decoration:none;}
.news-card p{line-height:1.58;}
.news-meta{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700;}
.news-read{font-weight:700;text-decoration:none;}
.featured-story{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,.75fr);gap:34px;border-top:3px solid currentColor;border-bottom:1px solid var(--line);padding:28px 0 32px;}
.featured-story h2{font-size:clamp(2rem,4vw,3.5rem);line-height:1.02;letter-spacing:-.04em;margin:10px 0 14px;max-width:900px;}
.featured-story h2 a{color:inherit;text-decoration:none;}
.featured-story p{font-size:1.04rem;line-height:1.65;max-width:800px;}
.featured-aside{border-left:1px solid var(--line);padding-left:24px;align-self:end;}
.newsroom-note{border:1px solid var(--line);padding:22px;border-radius:14px;background:var(--surface);}
@media(max-width:820px){.news-grid{grid-template-columns:1fr}.featured-story{grid-template-columns:1fr}.featured-aside{border-left:0;border-top:1px solid var(--line);padding:18px 0 0}.section-head{align-items:start;flex-direction:column}}

/* Build 5.7 — witness discovery and researcher drill-down */
.directory-tools{margin-top:22px;max-width:620px}.directory-tools input{width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font:inherit}
.directory-principle{display:flex;gap:18px;align-items:flex-start;border-top:2px solid currentColor;border-bottom:1px solid var(--line);padding:16px 0;margin-bottom:26px}.directory-principle strong{white-space:nowrap}.directory-principle span{color:var(--muted)}
.witness-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.witness-card{border:1px solid var(--line);border-radius:14px;padding:22px;background:var(--surface)}.witness-card h2{margin:5px 0 6px}.witness-card h2 a{color:inherit;text-decoration:none}.witness-meta{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}.witness-event{font-weight:700}.card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.research-link{font-weight:700;text-decoration:none}.research-link.secondary{font-weight:600}
.witness-drilldown{border-top:1px solid var(--line);padding:34px 0}.drilldown-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:18px}.drilldown-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.drilldown-grid a{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:12px;padding:16px;text-decoration:none;color:inherit;background:var(--surface)}.drilldown-grid span{font-size:.86rem;color:var(--muted);line-height:1.45}
.pipeline-strip{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--surface);font-size:.82rem;font-weight:800;letter-spacing:.04em}.pipeline-strip b{color:var(--muted)}
.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.route-table{border-top:2px solid currentColor}.route-table>div{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;padding:14px 0;border-bottom:1px solid var(--line)}.route-table span{font-weight:700}
@media(max-width:820px){.witness-grid,.status-grid,.drilldown-grid{grid-template-columns:1fr}.directory-principle,.drilldown-head{flex-direction:column;align-items:flex-start}.route-table>div{grid-template-columns:1fr;gap:4px}}

/* Build 5.7.1 — canonical article + research navigation */
.article-breadcrumbs{display:flex;gap:8px;align-items:center;padding-top:22px;font-size:.82rem;color:var(--muted)}.article-breadcrumbs a{color:inherit}
.article-hero{padding:46px 0 28px}.article-narrow{max-width:900px}.article-hero h1{font-size:clamp(2.25rem,5vw,4.4rem);line-height:1.02;letter-spacing:-.035em;margin:.15em 0}.article-deck{font-size:1.22rem;line-height:1.55;max-width:800px;color:var(--muted)}
.article-byline{display:flex;flex-wrap:wrap;gap:8px 18px;padding-top:18px;margin-top:22px;border-top:1px solid var(--line);font-size:.78rem;font-weight:700}
.article-layout{display:grid;grid-template-columns:minmax(0,760px) minmax(250px,330px);gap:54px;align-items:start;padding-top:24px;padding-bottom:54px}.article-body{font-size:1.04rem;line-height:1.75}.article-body h2{font-size:1.65rem;line-height:1.15;margin-top:2em}.article-lead{font-size:1.22rem;line-height:1.65}.claim-box{border-left:4px solid currentColor;padding:14px 18px;margin:24px 0;background:var(--surface)}
.research-rail{position:sticky;top:100px;display:grid;gap:14px}.research-rail-card{border:1px solid var(--line);border-radius:14px;padding:18px;background:var(--surface)}.research-rail-card h2{font-size:1.2rem;margin:5px 0 12px}.research-rail-card>a{display:flex;flex-direction:column;gap:3px;padding:11px 0;border-top:1px solid var(--line);text-decoration:none;color:inherit}.research-rail-card>a span{font-size:.78rem;color:var(--muted)}.research-rail-card dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:.78rem}.research-rail-card dt{font-weight:700}.research-rail-card dd{margin:0;color:var(--muted)}
.related-research{border-top:1px solid var(--line);padding:42px 0 58px}.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.related-grid a{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:12px;padding:17px;text-decoration:none;color:inherit;background:var(--surface)}.related-grid span{font-size:.84rem;line-height:1.45;color:var(--muted)}
@media(max-width:900px){.article-layout{grid-template-columns:1fr;gap:26px}.research-rail{position:static}.related-grid{grid-template-columns:1fr}.article-hero{padding-top:30px}}
/* Build 5.7.2 */
.research-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.research-hub-grid>a{display:flex;flex-direction:column;gap:7px;border:1px solid var(--line);border-radius:14px;padding:20px;text-decoration:none;color:inherit;background:var(--surface)}.research-hub-grid span,.rail-note{color:var(--muted);line-height:1.45}.witness-specific-links{padding:30px 0;border-top:1px solid var(--line)}@media(max-width:760px){.research-hub-grid{grid-template-columns:1fr}}

/* Baseline Publication Run 01 */
.baseline-counts{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:20px;font-size:.82rem}.baseline-counts strong{font-size:1rem}.directory-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.directory-filters button{border:1px solid var(--line);background:var(--surface);color:inherit;border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.directory-filters button.active{font-weight:800;border-color:currentColor}.locator-grid{display:grid;gap:14px}.locator-card h2{margin:.2em 0}.small-note{font-size:.82rem;color:var(--muted)}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{text-align:left;vertical-align:top;padding:10px;border-bottom:1px solid var(--line);font-size:.82rem}

/* Build 5.7.3 — Canonical Witness Profile */
.profile-hero{padding:44px 0 30px}.profile-hero h1{font-size:clamp(2.7rem,6vw,5rem);line-height:.98;letter-spacing:-.045em;margin:.12em 0}.profile-dek{max-width:850px;font-size:1.22rem;line-height:1.55;color:var(--muted)}.profile-context{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:20px;font-size:.8rem;font-weight:750}
.profile-section-nav{position:sticky;top:74px;z-index:18;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--bg)}.profile-section-nav .container{display:flex;gap:18px;overflow-x:auto;white-space:nowrap;padding-top:12px;padding-bottom:12px}.profile-section-nav a{text-decoration:none;color:inherit;font-size:.78rem;font-weight:750}
.profile-section{padding:50px 0;scroll-margin-top:135px}.profile-section.alt{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.section-kicker{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--muted)}.section-intro{max-width:760px;color:var(--muted)}.subsection{margin-top:44px}
.profile-grid-main{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:46px;align-items:start}.profile-side-note{border-left:3px solid currentColor;padding:4px 0 4px 18px;color:var(--muted);font-size:.88rem}.profile-side-note strong{color:var(--text)}
.profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 34px}.profile-fact{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface);min-height:92px}.profile-fact span{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:8px}.profile-fact strong{font-size:.93rem;line-height:1.35}.profile-copy{max-width:820px}.privacy-note{font-size:.8rem;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}
.encounter-grid,.observation-grid,.media-profile-grid,.passage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.encounter-card,.observation-group,.media-profile-card,.passage-card{border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--surface)}.encounter-card h3,.observation-group h3,.media-profile-card h3,.passage-card h3{margin:.3em 0}.record-status{font-size:.76rem;font-weight:750;margin:12px 0;color:var(--muted)}
.profile-timeline{display:grid;gap:0;max-width:1000px}.timeline-item{display:grid;grid-template-columns:150px 1fr;gap:24px;padding:20px 0;border-bottom:1px solid var(--line)}.timeline-date{font-size:.8rem;font-weight:800}.timeline-item h3{margin:0 0 5px}.meta-line{font-size:.78rem;font-weight:750;color:var(--muted)}
.consistency-grid,.assessment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.assessment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.consistency-card,.assessment-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--surface)}.consistency-card h3,.assessment-card h3{font-size:1rem;margin-top:0}.consistency-card ul,.assessment-card ul{padding-left:18px}.consistency-card li,.assessment-card li{margin:.4em 0;line-height:1.45}
.evidence-list{display:grid;gap:10px}.evidence-row{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--surface)}.evidence-row p{margin:.35em 0 0}.connection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.connection-card{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:12px;padding:17px;text-decoration:none;color:inherit;background:var(--surface)}.connection-card span{font-size:.8rem;color:var(--muted)}
.record-grid{display:grid;grid-template-columns:180px 1fr;gap:8px 22px;max-width:850px}.record-grid dt{font-weight:800}.record-grid dd{margin:0;color:var(--muted);overflow-wrap:anywhere}.archive-gap,.archive-gap-box{color:var(--muted);font-size:.82rem}.archive-gap-box{border:1px dashed var(--line);border-radius:12px;padding:18px}
@media(max-width:900px){.profile-grid-main{grid-template-columns:1fr}.profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.encounter-grid,.observation-grid,.media-profile-grid,.passage-grid{grid-template-columns:1fr}.consistency-grid,.assessment-grid,.connection-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.profile-facts,.consistency-grid,.assessment-grid,.connection-grid{grid-template-columns:1fr}.timeline-item{grid-template-columns:1fr;gap:5px}.record-grid{grid-template-columns:1fr;gap:3px}.record-grid dd{margin-bottom:10px}.profile-section{padding:38px 0}}

/* Build 5.7.6 — witness media UX */
.media-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:22px}.media-profile-card.media-rich{display:flex;flex-direction:column;gap:14px;padding:20px;border:1px solid var(--line,#d6d9dc);border-radius:14px;background:var(--surface,#fff)}.media-card-head{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.media-card-head h3{margin:.3rem 0}.media-state{font-size:.7rem;line-height:1.2;padding:6px 8px;border-radius:999px;background:#eef1f3;white-space:nowrap}.media-embed{width:100%;border-radius:12px;overflow:hidden;background:#111}.media-video{aspect-ratio:16/9}.media-video iframe{width:100%;height:100%;border:0;display:block}.media-audio iframe{width:100%;height:200px;border:0;display:block;background:#fff}.transcript-panel{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--line,#d6d9dc);border-radius:10px;background:rgba(0,0,0,.025)}.transcript-panel strong{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.media-meta{display:grid;grid-template-columns:max-content 1fr;gap:6px 12px;margin:0;font-size:.88rem}.media-meta dt{font-weight:700}.media-meta dd{margin:0}.media-detail-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:24px;align-items:start}.media-detail-layout .media-embed{margin-bottom:18px}@media(max-width:820px){.media-detail-layout{grid-template-columns:1fr}.media-card-head{display:block}.media-state{display:inline-block;margin-top:6px}.media-audio iframe{height:180px}}
