/* Site search (Oct 28): masthead button + dialog. Brand kit colors only. */
.masthead__inner > .brand { margin-right: auto; }
.ss-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; order: 3;
  min-height: 48px; min-width: 48px; padding: 0 16px; margin-left: -8px;
  border: 2px solid var(--ink, #111); border-radius: 999px; background: var(--paper, #fff); color: var(--ink, #111);
  font: 700 17px/1 var(--sans, "Inter", Arial, sans-serif); cursor: pointer;
}
.ss-btn svg { width: 20px; height: 20px; flex: none; }
.ss-btn:hover, .ss-btn:active { background: var(--hw-gold, #FFCE00); }
.ss-btn:focus-visible { outline: 3px solid var(--hw-blue, #002A82); outline-offset: 3px; }
.ss-btn__label { display: none; } .ss-btn { padding: 0; width: 48px; }   /* Oct 29: icon only at every width; with labels the header needed 1536px but is capped at 1320px */
@media (max-width: 1180px) {
  .menu-btn { order: 1; }
  .ss-btn { order: 0; width: 56px; min-height: 56px; margin-left: 0; }
  .ss-btn svg { width: 22px; height: 22px; }
  .masthead__inner { gap: 12px; }
}
@media (max-width: 480px) { .masthead__inner { gap: 8px; } }   /* Oct 29: room for "Education Fund" on one line from 375px up */

.ss {
  width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 64px); margin: 32px auto auto; padding: 0;
  border: 2px solid var(--ink, #111); border-radius: 8px; background: var(--paper, #fff); color: var(--ink, #111);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.ss::backdrop { background: rgba(1,31,91,.55); }
html.ss-open { overflow: hidden; }
.ss[open] { display: flex; overflow: hidden; }
.ss__box { display: flex; flex-direction: column; min-height: 0; width: 100%; padding: 24px 28px 28px; box-sizing: border-box; }
.ss__results { overflow-y: auto; min-height: 0; padding: 2px 4px 4px 2px !important; margin: 0 -4px 0 -2px !important; }
.ss__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ss__title { font: 700 28px/1.15 var(--serif, Georgia, serif); color: var(--hw-navy, #011F5B); margin: 0; }
.ss__close {
  width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: #F3EEE3; color: var(--ink, #111);
  font: 400 34px/1 var(--sans, Arial, sans-serif); cursor: pointer; display: grid; place-items: center;
}
.ss__close:hover { background: var(--hw-gold, #FFCE00); }
.ss__close:focus-visible { outline: 3px solid var(--hw-blue, #002A82); outline-offset: 2px; }
.ss__label { display: block; margin: 18px 0 8px; font: 600 18px/1.3 var(--sans, Arial, sans-serif); }
.ss__field { position: relative; }
.ss__field svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: #565656; pointer-events: none; }
.ss__field input {
  width: 100%; min-height: 60px; padding: 0 16px 0 52px; box-sizing: border-box;
  border: 2px solid var(--ink, #111); border-radius: 6px; background: #fff; color: var(--ink, #111);
  font: 400 20px/1.2 var(--sans, Arial, sans-serif);
}
.ss__field input::placeholder { color: #6B6B6B; }
.ss__field input:focus { outline: 3px solid var(--hw-blue, #002A82); outline-offset: 2px; }
.ss__status { min-height: 1.4em; margin: 14px 0 6px; font: 400 17px/1.4 var(--sans, Arial, sans-serif); color: #3D3D3D; }
.ss__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ss__hit {
  display: grid; gap: 6px; padding: 14px 16px; min-height: 48px; border-radius: 6px;
  text-decoration: none; color: var(--ink, #111); border: 1px solid #E3DCCB; background: #fff;
}
.ss__hit:hover, .ss__hit:focus-visible { background: #FFF6CC; border-color: var(--hw-navy, #011F5B); box-shadow: inset 4px 0 0 var(--hw-gold, #FFCE00); outline: none; }
.ss__where { font: 700 19px/1.25 var(--serif, Georgia, serif); color: var(--hw-navy, #011F5B); }
.ss__snip { font: 400 17px/1.5 var(--sans, Arial, sans-serif); color: #333; }
.ss__snip mark { background: var(--hw-gold, #FFCE00); color: var(--ink, #111); padding: 0 2px; border-radius: 2px; }
@media (max-width: 600px) {
  .ss { margin-top: 12px; width: calc(100% - 24px); max-height: calc(100vh - 24px); }
  .ss__box { padding: 18px 16px 20px; }
  .ss__title { font-size: 24px; }
}
@media (min-width: 1181px) { .masthead__inner > .brand { flex: none; } }   /* Oct 29: the logo keeps its shape on desktop; the menu had room to spare */
