/* Header Search button + search overlay (site_search_overlay() in includes/site/header.php, assets/site-search.js). */
.mmh-search{display:inline-flex;align-items:center;gap:8px;flex:none;height:40px;padding:0 14px 0 12px;border:1px solid #ffffff40;border-radius:22px;background:#ffffff0f;color:#fff;font:600 14px/1 var(--brand-font-body,"DM Sans",Raleway,Arial,sans-serif);cursor:pointer;transition:background .2s,border-color .2s}
.mmh-search:hover{background:#ffffff1f;border-color:#ffffffa0}
.mmh-search:focus-visible{outline:3px solid var(--brand-accent,#d9b24c);outline-offset:3px}
.mmh-search svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.mmh-search::after{content:"⌘K";margin-left:4px;padding:2px 6px;border-radius:6px;background:#ffffff1f;font-size:11px;font-weight:700;letter-spacing:.3px;opacity:.8}
@media(max-width:1180px){.mmh-search span,.mmh-search::after{display:none}.mmh-search{width:40px;padding:0;justify-content:center}}
@media(max-width:980px){.mmh-search{width:44px;height:44px}.mmh-inner:has(.mmh-search){justify-content:flex-start}.mmh-inner:has(.mmh-search) .mmh-brand{margin-right:auto}.mmh-inner:has(.mmh-search) :is(.mmh-signin,.mma){margin-left:0}}

html.mms-lock{overflow:hidden}
.mms{position:fixed;inset:0;z-index:2000;display:flex;justify-content:center;align-items:flex-start;padding:min(12vh,110px) 16px 16px;font-family:var(--brand-font-body,"DM Sans",Raleway,Arial,sans-serif)}
.mms[hidden]{display:none}
.mms-scrim{position:absolute;inset:0;background:color-mix(in srgb,var(--brand-dark,#12081d) 67.8%,transparent);backdrop-filter:blur(6px);opacity:0;transition:opacity .2s}
.mms.is-open .mms-scrim{opacity:1}
.mms-panel{position:relative;display:flex;flex-direction:column;width:min(680px,100%);max-height:min(640px,calc(100vh - 120px));border-radius:20px;background:var(--brand-bg,#fff);color:var(--brand-text,#1d1a21);box-shadow:0 40px 100px #0008;overflow:hidden;opacity:0;transform:translateY(-10px) scale(.985);transition:opacity .22s,transform .28s cubic-bezier(.22,1,.36,1)}
.mms.is-open .mms-panel{opacity:1;transform:none}
.mms-form{position:relative;display:flex;align-items:center;gap:12px;padding:0 14px 0 20px;border-bottom:1px solid var(--brand-line,#eee8f1)}
.mms-form::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,var(--brand-primary-2,#542675),var(--brand-accent,#d9b24c));transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.22,1,.36,1)}
.mms-form:focus-within::after{transform:scaleX(1)}
.mms-form>svg{width:22px;height:22px;flex:none;fill:none;stroke:var(--brand-primary-2,#542675);stroke-width:2;stroke-linecap:round}
.mms-form input{flex:1;min-width:0;height:64px;border:0;background:none;font:500 19px/1 inherit;color:var(--brand-text,#1d1a21);outline:0}
.mms-form input::-webkit-search-cancel-button{display:none}
.mms-form input::placeholder{color:#a39cab}
.mms-esc{height:26px;padding:0 8px;border:1px solid var(--brand-line,#e6e2ea);border-radius:7px;background:var(--brand-surface,#faf8fc);color:var(--brand-muted,#6b6570);font:700 11px/1 inherit;cursor:pointer}
.mms-spin{width:18px;height:18px;border:2px solid var(--brand-line,#e6e2ea);border-top-color:var(--brand-primary-2,#542675);border-radius:50%;animation:mmsSpin .7s linear infinite}
.mms-spin[hidden]{display:none}
@keyframes mmsSpin{to{transform:rotate(360deg)}}
.mms-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 10px 12px}
.mms-group{padding:6px 0}
.mms-group+.mms-group{border-top:1px solid #f1edf4}
.mms-group h3{display:flex;align-items:center;justify-content:space-between;margin:8px 10px 6px;font-size:11px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--brand-muted,#8a8390)}
.mms-group h3 a,.mms-clear{padding:0;border:0;background:none;color:var(--brand-primary-2,#542675);font:700 11.5px/1 inherit;letter-spacing:0;text-transform:none;text-decoration:none;cursor:pointer}
.mms-item{position:relative;display:flex;align-items:flex-start;gap:12px;padding:10px 12px;border-radius:12px;color:var(--brand-text,#1d1a21)!important;text-decoration:none;scroll-margin:8px}
.mms-item[aria-selected=true]{background:var(--brand-surface,#f6f0fb)}
.mms-item[aria-selected=true]::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:2px;background:var(--brand-accent,#d9b24c)}
.mms-ic{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--brand-surface,#f4f1f7);color:var(--brand-primary-2,#542675);flex:none}
.mms-ic svg,.mms-go svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mms-ic--event{background:#faf0d6;color:var(--brand-accent-ink,#8a6510)}.mms-ic--video{background:#fdecee;color:#b42333}.mms-ic--news{background:#e6eefb;color:#2a5bb8}.mms-ic--bulletin{background:#e3f3ea;color:#1f7a4a}.mms-ic--form{background:var(--brand-surface,#efe5f7);color:var(--brand-primary-2,#542675)}
.mms-t{display:grid;gap:2px;flex:1;min-width:0}
.mms-t strong{font-size:15px;font-weight:600;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mms-t small{font-size:12.5px;color:var(--brand-muted,#6b6570);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mms-t em{font-style:normal;font-size:13px;line-height:1.45;color:#4a4450;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mms-t mark,.mms-t strong mark{background:#faf0d6;color:inherit;border-radius:3px;padding:0 1px;box-shadow:0 0 0 1px var(--brand-accent-light,#f0dca9)}
.mms-go{display:grid;place-items:center;width:26px;height:34px;color:#b3acb9;opacity:0;transition:opacity .15s,transform .15s;flex:none}
.mms-item[aria-selected=true] .mms-go{opacity:1;color:var(--brand-primary-2,#542675);transform:translateX(2px)}
.mms-item--row{align-items:center}
.mms-item--all .mms-ic{background:var(--brand-primary,#241236);color:var(--brand-accent-light,#f0dca9)}
.mms-chips{display:flex;flex-wrap:wrap;gap:8px;padding:2px 10px 6px}
.mms-chips button{height:34px;padding:0 14px;border:1px solid var(--brand-line,#e6e2ea);border-radius:17px;background:var(--brand-bg,#fff);color:var(--brand-text,#1d1a21);font:500 14px/1 inherit;cursor:pointer;transition:border-color .15s,background .15s}
.mms-chips button:hover{border-color:var(--brand-primary-2,#542675);background:#faf6ff}
.mms-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:2px 6px 4px}
.mms-item--tile{flex-direction:column;align-items:flex-start;gap:8px;padding:12px;border:1px solid var(--brand-line,#eee8f1);font-size:14px;font-weight:600}
.mms-item--tile[aria-selected=true]::before{display:none}
.mms-item--tile[aria-selected=true]{border-color:var(--brand-primary-2,#542675)}
.mms-none{display:grid;justify-items:center;gap:6px;padding:40px 20px;text-align:center;color:var(--brand-muted,#6b6570)}
.mms-none svg{width:34px;height:34px;fill:none;stroke:#b3acb9;stroke-width:2;stroke-linecap:round}
.mms-none p{margin:0;color:var(--brand-text,#1d1a21);font-size:16px;font-weight:600}
.mms-none a{color:var(--brand-primary-2,#542675);font-weight:600}
.mms-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:10px 16px;border-top:1px solid var(--brand-line,#eee8f1);background:var(--brand-surface,#faf8fc);color:var(--brand-muted,#6b6570);font-size:12px}
.mms-foot kbd{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-right:3px;padding:0 5px;border:1px solid #e0d9e7;border-bottom-width:2px;border-radius:5px;background:var(--brand-bg,#fff);font:600 11px/1 inherit;color:#4a4450}
.mms-foot a{margin-left:auto;color:var(--brand-primary-2,#542675)!important;font-weight:700;text-decoration:none}
.mms-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(max-width:640px){
.mms{padding:0}
.mms-panel{width:100%;max-height:100dvh;height:100dvh;border-radius:0}
.mms-form input{font-size:17px;height:60px}
.mms-quick{grid-template-columns:1fr 1fr}
.mms-foot span{display:none}
}
@media(prefers-reduced-motion:reduce){.mms-panel,.mms-scrim,.mms-form::after{transition:none}}
