/* YDF Fest v0.7.5 — 1200px profile width, 1440px main page, refined controls.
 * Scoped to plugin components; no Elementor/Code Snippets dependency.
 */

/* Use the same full-bleed frame as the plugin-owned Speakers main page.
 * The regular theme header/footer are retained by the single-speaker template. */
.ydfm-single-template{
  position:relative;
  width:100vw!important;
  max-width:100vw!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  overflow-x:clip;
}
.ydfm-single-template .ydfm-profile{
  width:100%;
  max-width:none!important;
}
.ydfm-single-template .ydfm-profile__wrap,
.ydfm-admin-preview .ydfm-profile__wrap{
  width:calc(100% - 48px);
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
}
.ydfm-single-template .ydfm-profile__intro h1,
.ydfm-admin-preview .ydfm-profile__intro h1{
  font-weight:700!important;
  letter-spacing:-.045em!important;
  line-height:1.12!important;
}
/* Keep the approved lilac profile hero balanced inside 1200px. */
.ydfm-single-template .ydfm-profile--classic .ydfm-profile__hero-grid{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:clamp(36px,5.5vw,88px);
}
.ydfm-single-template .ydfm-profile--classic .ydfm-profile__image-shell{
  width:100%;
  max-width:510px;
}
.ydfm-single-template .ydfm-profile__related-grid{
  gap:clamp(13px,1.4vw,21px);
}

/* Compact, consistent search input. Explicit height prevents theme form rules
 * from creating an oversized 70px+ field. */
.ydfm.ydfm-directory .ydfm-directory__controls{
  gap:17px;
  margin-bottom:21px;
}
.ydfm.ydfm-directory .ydfm-directory__controls-top{
  align-items:center;
  row-gap:18px;
}
.ydfm.ydfm-directory label.ydfm-search{
  display:flex!important;
  align-items:center!important;
  gap:11px;
  box-sizing:border-box!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  width:min(100%,365px);
  padding:0 15px!important;
  margin:0!important;
  border:1px solid #e1d6e4;
  border-radius:10px;
  background:#faf7fa;
  box-shadow:none;
}
.ydfm.ydfm-directory .ydfm-search .ydfm-icon{
  width:18px;
  height:18px;
  flex-shrink:0;
}
.ydfm.ydfm-directory label.ydfm-search .screen-reader-text{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  border:0!important;
}
.ydfm.ydfm-directory label.ydfm-search input[type=search]{
  display:block!important;
  flex:1 1 auto;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  min-height:0!important;
  max-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font:500 14px/1.35 Raleway,Arial,sans-serif!important;
  -webkit-appearance:none;
  appearance:none;
}
.ydfm.ydfm-directory label.ydfm-search:focus-within{
  border-color:#600073;
  box-shadow:0 0 0 3px rgba(96,0,115,.08);
}
.ydfm.ydfm-directory label.ydfm-search input[type=search]:focus-visible{
  outline:none!important;
}

/* The previous reference CSS removed top padding, making the ALL pill touch
 * the upper rule. Keep the alphabet vertically centered between two rules. */
.ydfm.ydfm-directory nav.ydfm-alphabet{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  column-gap:5px;
  row-gap:7px;
  padding:12px 0!important;
  margin:2px 0 0!important;
  border-top:1px solid #e8dfe9;
  border-bottom:1px solid #e8dfe9;
}
.ydfm.ydfm-directory nav.ydfm-alphabet button{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  box-sizing:border-box;
  height:34px;
  min-height:34px;
  min-width:32px;
  padding:7px 9px;
  margin:0!important;
  border-radius:7px;
  line-height:1!important;
  font-weight:700;
  transition:background-color .18s ease,color .18s ease;
}
.ydfm.ydfm-directory nav.ydfm-alphabet button[data-ydfm-letter=all]{
  min-width:51px;
  margin-right:6px!important;
}
.ydfm.ydfm-directory nav.ydfm-alphabet button.is-active{
  background:#600073;
  color:#fff;
}
.ydfm.ydfm-directory .ydfm-directory__results{
  min-height:20px;
  margin:0 0 22px;
}

@media(max-width:820px){
  .ydfm-single-template .ydfm-profile--classic .ydfm-profile__hero-grid{
    grid-template-columns:minmax(0,1fr);
    gap:32px;
  }
  .ydfm-single-template .ydfm-profile--classic .ydfm-profile__image-shell{
    max-width:450px;
    margin:0 auto;
  }
}
@media(max-width:600px){
  .ydfm-single-template .ydfm-profile__wrap,
  .ydfm-admin-preview .ydfm-profile__wrap{
    width:calc(100% - 32px);
  }
  .ydfm.ydfm-directory .ydfm-directory__controls-top{
    align-items:stretch;
  }
  .ydfm.ydfm-directory label.ydfm-search{
    width:100%;
  }
  .ydfm.ydfm-directory nav.ydfm-alphabet{
    column-gap:3px;
    row-gap:5px;
    padding:11px 0!important;
  }
  .ydfm.ydfm-directory nav.ydfm-alphabet button{
    min-width:29px;
    height:32px;
    min-height:32px;
    padding:6px 7px;
  }
  .ydfm.ydfm-directory nav.ydfm-alphabet button[data-ydfm-letter=all]{
    min-width:46px;
    margin-right:3px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .ydfm.ydfm-directory nav.ydfm-alphabet button{
    transition:none!important;
  }
}
