/* PRM shared public header search: component-level styles, no global header resets. */
.prm-global-search-slot {
  display: flex; align-items:center; flex:0 1 244px; width:clamp(146px,17vw,244px);
  max-width:244px; min-width:0; align-self:center; box-sizing:border-box;
  font-family:'Plus Jakarta Sans',Arial,sans-serif; position:relative; z-index:1;
}
.prm-global-search-slot *, .prm-global-search-slot *::before { box-sizing:border-box; }
.prm-global-search-slot .prm-global-search-launch {
  width:100%; min-height:42px; height:42px; padding:5px 8px 5px 12px;
  border-radius:12px !important; gap:8px; line-height:1.2; white-space:nowrap;
}
.prm-global-search-slot .prm-global-search-launch > svg { flex:0 0 18px; width:18px; height:18px; }
.prm-global-search-slot .prm-search-launch__arrow {
  width:24px; height:24px; flex-basis:24px; font-size:14px;
}
.prm-global-search-slot .prm-global-search-launch > span:not(.prm-search-launch__arrow) {
  flex:1 1 auto; font-weight:650; font-size:12px; line-height:1.2;
}
.prm-global-search-slot .prm-global-search-launch:focus-visible { outline:3px solid #e6b64a !important; outline-offset:2px; }
.prm-global-search-slot .prm-global-search-launch:active { transform:translateY(0);box-shadow:0 2px 6px rgba(16,69,34,.09); }
.prm-global-search-slot .prm-global-search-launch svg { pointer-events:none; }
@media(max-width:1250px) {
  .prm-global-search-slot { width:42px; min-width:42px; max-width:42px; flex:0 0 42px; }
  .prm-global-search-slot .prm-global-search-launch {
    width:42px; min-width:42px; height:42px; min-height:42px; justify-content:center;
    padding:0; border-radius:12px !important; gap:0;
  }
  .prm-global-search-slot .prm-global-search-launch > span { display:none !important; }
}
@media(max-width:480px) {
  .prm-global-search-slot { width:38px; min-width:38px; max-width:38px; flex:0 0 38px; }
  .prm-global-search-slot .prm-global-search-launch {
    width:38px; min-width:38px; height:38px; min-height:38px;
  }
  /* Only release an extra row when the header's actual controls require one. */
  .prm-site-header__inner:has(.prm-global-search-slot),
  .agenda-site-header__inner:has(.prm-global-search-slot),
  .prm-profile-header__inner:has(.prm-global-search-slot),
  .prm-info-header__inner:has(.prm-global-search-slot),
  .prm-stat-header__inner:has(.prm-global-search-slot),
  .leg-site-header__inner:has(.prm-global-search-slot) { min-width:0; }
}
@media(prefers-reduced-motion: reduce) {
 .prm-global-search-slot .prm-global-search-launch { transition:none!important; transform:none!important; }
}

/* Keep the search input's accessible label screen-reader-only on every public page.
   Standalone pages do not necessarily define a global .sr-only utility. */
.prm-search-dialog .prm-search-panel__form label.sr-only {
  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;
}
/* Header search follows its own page's native action button dimensions and colors. */
@media (max-width:1250px) {
  .prm-global-search-slot {
    width:var(--prm-global-action-size,42px)!important;
    min-width:var(--prm-global-action-size,42px)!important;
    max-width:var(--prm-global-action-size,42px)!important;
    height:var(--prm-global-action-size,42px)!important;
    flex:0 0 var(--prm-global-action-size,42px)!important;
  }
  .prm-global-search-slot .prm-global-search-launch {
    display:flex!important;
    width:100%!important;
    min-width:100%!important;
    height:100%!important;
    min-height:100%!important;
    max-height:100%!important;
    aspect-ratio:1/1;
    justify-content:center!important;
    padding:0!important;
    background:var(--prm-global-action-bg,#fff)!important;
    border:1px solid var(--prm-global-action-border,#dce8df)!important;
    border-radius:var(--prm-global-action-radius,13px)!important;
    box-shadow:var(--prm-global-action-shadow,none)!important;
    color:var(--prm-global-action-color,#22583a)!important;
  }
  .prm-global-search-slot .prm-global-search-launch > span {display:none!important;}
  .prm-global-search-slot .prm-global-search-launch > svg {
    flex:0 0 19px!important;
    width:19px!important;
    height:19px!important;
    color:currentColor!important;
  }
}
/* The search overlay must beat sticky headers, including News (z-index 2500). */
#prmSearchDialog.prm-search-dialog { z-index:6000!important; }
@media (max-width:680px) {
  #prmSearchDialog.prm-search-dialog:not([hidden]) {
    padding-top:var(--prm-global-header-clearance,86px)!important;
    padding-bottom:10px!important;
  }
  #prmSearchDialog.prm-search-dialog .prm-search-panel {
    max-height:calc(var(--prm-visible-height,100dvh) - var(--prm-global-header-clearance,86px) - 10px)!important;
  }
  #prmSearchDialog.prm-search-dialog.has-keyboard {
    padding-top:var(--prm-global-header-clearance,50px)!important;
    padding-bottom:8px!important;
  }
  #prmSearchDialog.prm-search-dialog.has-keyboard .prm-search-panel {
    max-height:calc(var(--prm-visible-height,100dvh) - var(--prm-global-header-clearance,50px) - 8px)!important;
  }
}
