.sfp-head { position:relative; flex:0 1 13rem; width:min(13rem,100%); min-width:0; line-height:1.4; z-index:15; text-align:start; }
.sfp-head [hidden] { display:none !important; }
.sfp-head-form { display:flex; align-items:center; margin:0; padding:0 3px 0 12px; background:#fff; color:#202020; border:1px solid #aaa; border-radius:6px; }
.sfp-head .sfp-head-form input[type=search] { width:100%; min-width:0; height:40px; margin:0; border:0; box-shadow:none; background:transparent; padding:0; font:inherit; font-size:15px; color:inherit; }
.sfp-head-form:focus-within { outline:2px solid currentColor; outline-offset:1px; }
.sfp-head .sfp-head-form button,.sfp-head .sfp-head-trigger { display:grid; place-items:center; padding:0; width:40px; height:40px; min-width:40px; background:white; color:#222; border:0; box-shadow:none; cursor:pointer; border-radius:4px; }
.sfp-head .sfp-head-trigger { border:1px solid #aaa; }
.sfp-head[data-mode=expand],.sfp-head[data-mode=modal] { width:42px; flex-basis:42px; }
.sfp-head[data-mode=expand] .sfp-head-box { position:absolute; inset-inline-end:0; top:100%; width:min(20rem,90vw); }
.sfp-head-drop { position:absolute; inset-inline-end:0; top:calc(100% + 5px); width:min(25rem,90vw); max-height:min(65vh,34rem); overflow:auto; overscroll-behavior:contain; background:#fff; border:1px solid #ccc; border-radius:6px; box-shadow:0 8px 26px #0002; padding:12px; color:#242424; }
.sfp-head-group h3 { font:600 .86rem/1.4 inherit; font-family:inherit; font-size:.88rem; margin:.2rem 0; color:#404040; }
.sfp-head-group ul { display:block; margin:0 0 .65em; padding:0; list-style:none; }
.sfp-head-group li { display:block; margin:0; padding:3px 0; border-bottom:1px solid #eee; }
.sfp-head-item,.sfp-head-article,.sfp-head-all { color:inherit; text-decoration:none; }
.sfp-head-item { display:flex; align-items:center; gap:10px; min-height:36px; font-weight:600; }
.sfp-head-item img { width:44px; height:50px; object-fit:contain; background:#f6f5f2; flex:none; }
.sfp-head-article { display:block; font-size:.87em; padding:4px 0 5px 12px; }
.sfp-head-article small { display:block; }
.sfp-head-drop a:hover,.sfp-head-drop a:focus-visible { text-decoration:underline; }
.sfp-head-all,.sfp-head-pages a { display:inline-block; padding:8px 0; font-weight:600; }
.sfp-head-dialog { padding:1.2rem; width:min(32rem,92vw); max-height:85vh; overflow:auto; border:0; border-radius:8px; margin:auto; }
.sfp-head-dialog::backdrop { background:#0008; }
.sfp-head-dialog .sfp-head-drop { position:static; width:auto; box-shadow:none; border:0; }
.sfp-head-close { margin:0 0 10px auto; display:block; }
.sfp-head-page { max-width:55rem; margin:2rem auto; padding:1rem; }
.sfp-head-pages { display:flex; gap:2rem; }
@media(max-width:767px) {
    .sfp-head[data-automatic="1"] { box-sizing:border-box; width:100%; padding:6px 12px; flex:0 0 100%; background:white; }
    .sfp-head-box { position:relative; }
    .sfp-head-drop { inset-inline:0; width:100%; max-height:55dvh; }
    .sfp-head[data-mode=expand] .sfp-head-box { inset-inline:0; width:100%; }
    .sfp-head .sfp-head-form input[type=search] { font-size:16px; }
}
