/* v9.4.1 — compact, readable navigation, registration actions and forms */

/* The section heading remains the primary visual anchor; the selected child is
   highlighted softly so users can distinguish the current page at a glance. */
html[data-site-theme] .left-rail .menu .nav-section>summary{
  background:var(--theme-soft,#e9eff6)!important;
  color:var(--theme-heading,#183653)!important;
  border-inline-start:4px solid var(--theme-primary,#315d86)!important;
  font-weight:700!important;
}
html[data-site-theme] .left-rail .menu :is(button.active,a[aria-current=page]){
  background:#f3f7fb!important;
  color:#20364d!important;
  font-weight:600!important;
  box-shadow:inset 3px 0 0 #6b8eae!important;
}
html[data-site-theme] .left-rail .menu :is(button.active,a[aria-current=page])::before{
  color:#55799b!important;
}

/* In-page template links use readable dark text on soft backgrounds. */
.gallery9326 .gallery-nav9326 a,
.gallery9326 .gallery-nav9326 a:nth-child(2),
.gallery9326 .gallery-nav9326 a:nth-child(3){
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:8px 14px;border:1px solid #d3deea;
  border-radius:9px;background:#edf3f8!important;color:#263b50!important;
  box-shadow:none;text-decoration:none!important;font-weight:650;
}
.gallery9326 .gallery-nav9326 a:nth-child(2){background:#f1f3fa!important;border-color:#d9dced}
.gallery9326 .gallery-nav9326 a:nth-child(3){background:#eef5f1!important;border-color:#d5e5db}
.gallery9326 .gallery-nav9326 a:hover,
.gallery9326 .gallery-nav9326 a:focus-visible{
  background:#e2ebf4!important;color:#172f48!important;border-color:#9db3c8;
}

/* Compact school registration toolbar: primary action, flexible search,
   and two secondary actions without oversized equal-width buttons. */
.registration-toolbar941{
  display:grid!important;
  grid-template-columns:max-content minmax(180px,1fr) max-content max-content;
  align-items:center;gap:10px;padding:14px 18px;
}
.registration-toolbar941>button{
  min-height:42px!important;width:auto!important;min-width:0!important;
  padding:9px 15px!important;white-space:nowrap;font-size:.94rem;
}
.registration-toolbar941>input{
  min-width:0;width:100%;min-height:42px;box-sizing:border-box;
}

/* Keep the label, required mark, and recommendation on one compact line;
   the input starts on the next line. This also works for form labels with
   small inline icons and avoids the star taking a full row. */
.judge-apply-section .field,
.judge-admin-form923 .field,
#orgForm9322>label:not(.cert-toggle9321),
#modalBody .cert-filters9321>label{
  position:relative;display:flex!important;flex-flow:row wrap;align-items:center;
  gap:3px 5px;margin:0!important;min-width:0;line-height:1.45;
}
.judge-apply-section .field>input,
.judge-apply-section .field>select,
.judge-apply-section .field>textarea,
.judge-admin-form923 .field>input,
.judge-admin-form923 .field>select,
.judge-admin-form923 .field>textarea,
#orgForm9322>label:not(.cert-toggle9321)>input,
#orgForm9322>label:not(.cert-toggle9321)>select,
#modalBody .cert-filters9321>label>input,
#modalBody .cert-filters9321>label>select,
#modalBody .cert-filters9321>label>textarea{
  flex:0 0 100%;width:100%;box-sizing:border-box;min-height:42px;
  margin:0;padding:9px 11px;
}
.judge-apply-section .field>textarea,
.judge-admin-form923 .field>textarea{min-height:88px}
.judge-apply-section .required-star940,
.judge-admin-form923 .required-star940,
#orgForm9322 .required-star940,
#modalBody .cert-filters9321 .required-star940{
  color:#bd1e2d!important;font-weight:800;margin:0 2px 0 0;line-height:1;
}
.judge-apply-section .recommended940,
.judge-admin-form923 .recommended940{font-size:.72em;margin:0 0 0 4px;padding:2px 7px}
.judge-admin-form923 .form-grid{gap:12px 16px!important}
.judge-admin-form923{gap:13px!important}
.judge-admin-form923 h3{margin:3px 0 0!important}
#orgForm9322.cert-filters9321{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:start}
#orgForm9322 .cert-toggle9321{grid-column:1/-1;display:flex;align-items:center;gap:8px}
#orgForm9322>button{justify-self:start;min-width:140px}
#modalBody .cert-filters9321{gap:12px 16px}

@media(max-width:760px){
  .registration-toolbar941{grid-template-columns:1fr 1fr;gap:8px;padding:12px}
  .registration-toolbar941>#search{grid-column:1/-1;grid-row:1}
  .registration-toolbar941>button{width:100%!important;white-space:normal}
  .registration-toolbar941>#newReg{grid-column:1/-1;grid-row:2}
  #orgForm9322.cert-filters9321{grid-template-columns:1fr}
  #orgForm9322 .cert-toggle9321{grid-column:auto}
  .judge-admin-form923 .form-grid{grid-template-columns:1fr!important}
}

@media(prefers-reduced-motion:reduce){.gallery9326 .gallery-nav9326 a{scroll-behavior:auto}}
