/* The legacy mobile content wrapper must not become the sticky scroll container. */
.content:has(> .tk-code > .mcf-search){overflow:visible!important}
.tk-code .mcf-search,.tk-code .mcf-search *{font-family:Arial,sans-serif;letter-spacing:normal;box-sizing:border-box}
.tk-code .mcf-search{position:sticky;top:0;z-index:100;max-width:100%;padding:5px 6px;margin:0 0 18px;background:#f3f5fa;border:1px solid #dce2eb;border-radius:7px;box-shadow:0 3px 12px #203b5a12;color:#243a50;font-size:14px;line-height:1.4;text-align:left;text-indent:0;font-weight:400;overflow-anchor:none}
body.admin-bar .tk-code .mcf-search{top:32px}
.tk-code .mcf-form{display:flex;align-items:center;gap:8px;margin:0;padding:0}
.tk-code .mcf-query-row{display:flex;align-items:center;gap:4px;flex:1;min-width:0;padding:2px 4px;background:#fff;border:1px solid #d7dfe9;border-radius:24px}
.tk-code .mcf-search input[type=search]{flex:1;width:0;min-width:0;max-width:100%;height:30px;margin:0;border:0;border-radius:0;background:transparent;color:#172b3d;padding:3px 2px;font:14px/1.4 Arial,sans-serif;box-shadow:none;appearance:none}
.tk-code .mcf-search input[type=search]::-webkit-search-cancel-button{display:none}
.tk-code .mcf-search button{font:13px/1.4 Arial,sans-serif;font-weight:400;cursor:pointer;padding:5px 8px;border:1px solid #a8bdd0;border-radius:4px;background:#fff;color:#405779;min-width:0;white-space:normal;text-transform:none;letter-spacing:normal;box-shadow:none}
.tk-code .mcf-search button:hover,.tk-code .mcf-search button[aria-current=true]{background:#e5f0fb;border-color:#2168a7}
.tk-code .mcf-search button:focus-visible,.tk-code .mcf-search input[type=checkbox]:focus-visible,.tk-code .mcf-search summary:focus-visible{outline:2px solid #2168a7;outline-offset:1px}
.tk-code .mcf-search input[type=search]:focus{outline:none;border:0;box-shadow:none}
.tk-code .mcf-search button:disabled{opacity:.35;cursor:default}
.tk-code .mcf-search .mcf-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;padding:4px;border:0;border-radius:50%;background:transparent}
.tk-code .mcf-icon svg{display:block;width:20px;height:20px;flex:none}
.tk-code .mcf-search #mcf-clear{flex-basis:24px;width:24px;height:24px;padding:4px;color:#6b7c95}
.tk-code .mcf-search #mcf-clear svg{width:16px;height:16px}
.tk-code .mcf-navigation{display:flex;align-items:center;gap:2px;flex:0 0 auto;padding:1px 2px 1px 8px;background:#f3f5fa;border-radius:20px}
.tk-code .mcf-navigation .mcf-icon{color:#e74855;background:#fff}
.tk-code #mcf-counter{font-size:12px;color:#5c7092;white-space:nowrap;text-align:center;min-width:0;margin-right:3px}
.tk-code #mcf-counter:empty{display:none}
.tk-code #mcf-counter.mcf-empty{color:#a32222}
.tk-code #mcf-body{padding:10px 6px 5px}
.tk-code .mcf-search .mcf-scope{display:flex;align-items:center;gap:7px;margin:0;font-size:14px;line-height:1.4;font-weight:400}
.tk-code .mcf-search input[type=checkbox]{appearance:auto;width:16px;height:16px;margin:0;accent-color:#2168a7}
.tk-code #mcf-status,.tk-code #mcf-compact-info{font:13px/1.5 Arial,sans-serif;color:#51657b;margin:8px 0 0;text-indent:0;text-align:left;overflow-wrap:anywhere}
.tk-code #mcf-status.mcf-error,.tk-code #mcf-compact-info{color:#a32222}
.tk-code #mcf-compact-info{padding:0 6px 3px}
.tk-code .mcf-has-error{border-color:#b86b6b}
.tk-code #mcf-results{margin-top:8px}
.tk-code #mcf-body[hidden],.tk-code #mcf-results[hidden],.tk-code #mcf-compact-info[hidden],.tk-code .mcf-search .mcf-pages[hidden]{display:none}
.tk-code #mcf-results summary{display:inline-flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:5px 8px;border:1px solid #c6d4e4;border-radius:5px;background:#fff;color:#174d7b;font-size:14px;font-weight:600;line-height:1.4}
.tk-code #mcf-results summary::-webkit-details-marker{display:none}
.tk-code #mcf-results summary::marker{content:""}
.tk-code #mcf-results summary::before{content:"";display:block;flex:0 0 7px;width:7px;height:7px;margin-right:2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.tk-code #mcf-results[open] summary::before{transform:rotate(45deg)}
.tk-code #mcf-results summary:hover{background:#e5f0fb;border-color:#8fa9c2}
.tk-code #mcf-list{max-height:min(280px,34vh);overflow:auto;list-style:none;margin:10px 0;padding:0}
.tk-code #mcf-list li{font:14px/1.5 Arial,sans-serif;margin:0 0 6px;padding:0;list-style:none}
.tk-code .mcf-search .mcf-result{width:100%;display:block;text-align:left;padding:9px 10px}
.tk-code .mcf-location{display:block;font-size:13px;font-weight:600;margin-bottom:4px}
.tk-code .mcf-excerpt{display:block;color:#263c50;overflow-wrap:anywhere}
.tk-code .mcf-search mark,.tk-code mark[data-mcf-hit]{background:#bfefff!important;color:inherit!important;font:inherit;letter-spacing:inherit;padding:0}
::highlight(miko-codex-match){background-color:#bfefff;color:inherit}
.tk-code .mcf-current{outline:none}
.tk-code .tk-source-content [id],.tk-code .tk-source-content [data-source]{scroll-margin-top:var(--mcf-scroll-top,100px)!important}
.tk-code .mcf-pages{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;font-size:12px}
.tk-code .mcf-search .mcf-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:782px){body.admin-bar .tk-code .mcf-search{top:46px}}
@media(max-width:600px){body.admin-bar .tk-code .mcf-search{top:0}}
/* Keep the existing fixed mobile site menu accessible, with no gap below it. */
@media(max-width:959px){body:has(#SlideMenu .nav-button) .tk-code .mcf-search{top:50px}}
@media(max-width:600px){.tk-code .mcf-form{gap:3px}.tk-code .mcf-search{padding:4px}.tk-code .mcf-query-row{gap:1px;padding:2px}.tk-code .mcf-search .mcf-icon{flex-basis:24px;width:24px;height:24px;padding:3px}.tk-code .mcf-search input[type=search]{font-size:16px}.tk-code .mcf-navigation{gap:1px;padding-left:5px}.tk-code #mcf-counter{font-size:11px;margin-right:1px}.tk-code .mcf-pages button{font-size:12px;padding:5px}.tk-code #mcf-list{max-height:24vh}}
