/* Main tool-page content geometry. Keep the approved copy, colors, and shield artwork. */
:is(.library-hero,.pastor-page-head,.search-hero,.directory-hero,.kjbf-ww .ww-hero) {
  box-sizing:border-box;
  height:700px;
  min-height:700px;
  padding:72px 0 0;
  text-align:left;
}
:is(.library-hero__frame,.pastor-page-head__frame,.search-hero__grid,.directory-hero__frame) {
  box-sizing:border-box;
  width:min(1180px,calc(100% - 48px));
  max-width:none;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);
  grid-template-rows:400px;
  align-items:start;
  gap:40px;
}
.kjbf-ww .ww-hero {
  display:grid;
  grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);
  grid-template-rows:400px;
  align-items:start;
  align-content:start;
  gap:40px;
  padding-inline:max(24px,calc((100% - 1180px)/2));
}
:is(.library-hero__copy,.pastor-page-head__copy,.search-hero__copy,.directory-hero__copy,.ww-hero-copy),
#kjbf-directory-root>.kjbf-directory-hero-copy {
  width:100%;
  max-width:none!important;
  min-width:0;
}
:is(.library-hero,.pastor-page-head,.search-hero,.directory-hero,.kjbf-ww .ww-hero) h1,
#kjbf-directory-root>.kjbf-directory-hero-copy h1 {
  width:100%;
  max-width:none!important;
  min-height:2.1em;
  font-size:clamp(44px,4.45vw,58px)!important;
  margin:0!important;
  text-wrap:wrap!important;
}
:is(.library-hero__copy,.pastor-page-head__copy,.search-hero__copy,.directory-hero__copy,.ww-hero-copy)>.eyebrow,
.kjbf-ww .ww-hero-copy>.ww-eyebrow,
#kjbf-directory-root>.kjbf-directory-hero-copy>.eyebrow {
  margin:0 0 12px!important;
}
.library-hero__copy>p:last-child,.pastor-page-head__copy>p:last-child,
.search-hero .hero-copy,.directory-hero .hero-copy,.kjbf-ww .ww-hero-copy>p:last-child,
#kjbf-directory-root>.kjbf-directory-hero-copy .hero-copy {
  max-width:none!important;
  margin:22px 0 0!important;
  line-height:1.58;
}
:is(.library-hero__facts,.pastor-page-head__facts,.search-hero__facts,.directory-hero__facts,.kjbf-ww .ww-confidence) {
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin:0;
  padding:0 0 0 24px;
  border:0;
  border-left:1px solid rgba(230,202,139,.38);
}
:is(.library-hero__facts,.pastor-page-head__facts,.search-hero__facts,.directory-hero__facts)>.eyebrow,
.kjbf-ww .ww-confidence>.ww-eyebrow { margin:0!important; }
:is(.library-hero,.pastor-page-head,.search-hero,.directory-hero) .hero-benefit-list,
.kjbf-ww .ww-benefit-list {
  display:grid;
  grid-auto-rows:minmax(98px,auto);
  margin:18px 0 0!important;
  padding:0!important;
  list-style:none;
}
:is(.library-hero,.pastor-page-head,.search-hero,.directory-hero) .hero-benefit-list>li,
.kjbf-ww .ww-benefit-list>li {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:start;
  gap:12px;
  margin:0;
  padding:13px 0 14px;
}
/* Panels follow the hero in normal document flow, so expanding controls cannot overlap later content. */
.reference-search--hero,.pastor-finder--hero,.search-hero__tool,.search-panel,.kjbf-ww .ww-command {
  box-sizing:border-box;
  position:relative;
  z-index:3;
  width:min(1180px,calc(100% - 48px));
  max-width:none;
  margin:-188px auto 24px!important;
}
.hero-proof,.directory-proof { padding-top:0!important; }
@media(min-width:921px) and (max-width:1100px) {
  :is(.library-hero,.pastor-page-head,.search-hero,.directory-hero) .hero-benefit-list,
  .kjbf-ww .ww-benefit-list { grid-auto-rows:minmax(120px,auto); }
}
@media(max-width:920px) {
  :is(.library-hero,.pastor-page-head,.search-hero,.directory-hero,.kjbf-ww .ww-hero) {
    height:auto;
    min-height:0;
    padding:48px 0 80px;
  }
  :is(.library-hero__frame,.pastor-page-head__frame,.search-hero__grid,.directory-hero__frame) {
    width:calc(100% - 40px);
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto;
    gap:32px;
  }
  .kjbf-ww .ww-hero {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto;
    gap:32px;
    padding-inline:20px;
  }
  :is(.library-hero,.pastor-page-head,.search-hero,.directory-hero,.kjbf-ww .ww-hero) h1,
  #kjbf-directory-root>.kjbf-directory-hero-copy h1 { min-height:0;font-size:40px!important; }
  .library-hero__copy>p:last-child,.pastor-page-head__copy>p:last-child,
  .search-hero .hero-copy,.directory-hero .hero-copy,.kjbf-ww .ww-hero-copy>p:last-child,
  #kjbf-directory-root>.kjbf-directory-hero-copy .hero-copy { line-height:1.55; }
  :is(.library-hero__facts,.pastor-page-head__facts,.search-hero__facts,.directory-hero__facts,.kjbf-ww .ww-confidence) {
    padding:24px 0 0;
    border-left:0;
    border-top:1px solid rgba(230,202,139,.38);
  }
  :is(.library-hero,.pastor-page-head,.search-hero,.directory-hero) .hero-benefit-list,
  .kjbf-ww .ww-benefit-list { grid-auto-rows:auto; }
  .reference-search--hero,.pastor-finder--hero,.search-hero__tool,.search-panel,.kjbf-ww .ww-command {
    width:calc(100% - 40px);
    margin:-40px auto 24px!important;
  }
}
