/* Surveylet UI V9: three focused changes applied after V8. */

/* On Home, lead with independently verifiable institutional references.
   The normal Research & evidence panel continues to contain the study cards. */
body[data-route="/"] main .fluent-prototype .cal-home-featured-institutions {
  display:block !important;
  margin:24px auto 20px !important;
  padding:clamp(24px,3vw,42px) !important;
  max-width:none !important;
  background:#fff !important;
  border:0 !important;
  border-bottom:1px solid #e4edf4 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  color:#243d56 !important;
}
body[data-route="/"] main .fluent-prototype .cal-home-featured-institutions :is(h2,h3) { color:#203953 !important; }
body[data-route="/"] main .fluent-prototype .cal-home-featured-institutions p { color:#53677a !important; }
body[data-route="/"] main .fluent-prototype .cal-home-featured-institutions .cal-home-institution-card {
  background:#fff !important;
  border:1px solid #dbe5ee !important;
  box-shadow:none !important;
}
body[data-route="/"] main .fluent-prototype .cal-home-featured-institutions a { color:#0f6cbd !important; }

/* Nonmedical References has its own filters. No additional dark horizontal
   jump navigation or horizontal scrollbar competing with those controls. */
body[data-route="/nonmedical-references"] main .fluent-unified-anchorbar,
body[data-route="/blog"] main .fluent-unified-anchorbar { display:none !important; }
body[data-route="/nonmedical-references"] main .references-filter {
  top:calc(var(--ds-nav-h,68px) + 8px) !important;
}

/* Blog: retain only native light category filters, not generated dark tabs. */
body[data-route="/blog"] main .fluent-unified-tabs-shell { display:none !important; }

/* Plan a Delphi Study: continuous reading, with normal (non-sticky) headings.
   The section titles already say Step 1, Step 2, etc. The decorative, huge
   01–13 chapter numerals and left heading column are unnecessary. */
body[data-route="/plan-delphi-study"] main .cal-practical-article .cal-wrap {
  max-width:1150px !important;
  width:100% !important;
  margin-inline:auto !important;
  padding-inline:clamp(20px,4vw,58px) !important;
}
body[data-route="/plan-delphi-study"] main .cal-practical-article :is(
  section[data-layout="chapter"], section[data-layout="intro"], section[data-layout="comparison"]
) {
  display:block !important;
  grid-template-columns:none !important;
  background:#fff !important;
  border:0 !important;
  border-bottom:1px solid #e3eaf0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  margin:0 auto !important;
  padding:clamp(28px,3.6vw,46px) 0 !important;
  max-width:1020px !important;
  width:100% !important;
}
body[data-route="/plan-delphi-study"] main .cal-practical-article section[data-chapter]::before {
  content:none !important;
  display:none !important;
}
body[data-route="/plan-delphi-study"] main .cal-practical-article :is(
 section[data-layout="chapter"], section[data-layout="intro"], section[data-layout="comparison"]
) > h2 {
  position:static !important;
  inset:auto !important;
  display:block !important;
  grid-column:auto !important;
  grid-row:auto !important;
  max-width:none !important;
  padding:0 !important;
  margin:0 0 18px !important;
  border:0 !important;
  color:#203953 !important;
  font-size:clamp(24px,2.5vw,32px) !important;
  line-height:1.24 !important;
}
body[data-route="/plan-delphi-study"] main .cal-practical-article :is(
 section[data-layout="chapter"], section[data-layout="intro"], section[data-layout="comparison"]
) > h2::before { content:none !important; display:none !important; }
body[data-route="/plan-delphi-study"] main .cal-practical-article :is(
 section[data-layout="chapter"], section[data-layout="intro"], section[data-layout="comparison"]
) > :not(h2) {
  grid-column:auto !important;
  grid-row:auto !important;
  max-width:100% !important;
}
body[data-route="/plan-delphi-study"] main .cal-practical-article .cal-intro {
  max-width:940px !important;
  font-size:17px !important;
  line-height:1.72 !important;
  color:#52677a !important;
}
body[data-route="/plan-delphi-study"] main .cal-practical-article [data-layout="chapter"] .design-grid {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px !important;
  margin-block:24px !important;
}
body[data-route="/plan-delphi-study"] main .cal-practical-article .design-card {
  border:1px solid #e1e9f0 !important;
  background:#fbfdff !important;
  border-radius:10px !important;
  box-shadow:none !important;
}
@media (max-width:720px) {
  body[data-route="/plan-delphi-study"] main .cal-practical-article [data-layout="chapter"] .design-grid {
    grid-template-columns:1fr !important;
  }
  body[data-route="/"] main .fluent-prototype .cal-home-featured-institutions {
    padding:22px 18px !important;
  }
}
