/* Site search: subtle header button + Google-style dropdown panel */
.cm-search-btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 10px 0 11px;border-radius:10px;border:1px solid rgba(171,196,241,.22);background:rgba(148,178,225,.07);color:#c4d0e8;font-size:12.5px;font-weight:600;cursor:pointer;flex:none;transition:border-color .2s,color .2s}
.cm-search-btn:hover{border-color:rgba(171,196,241,.55);color:#fff}
.cm-search-btn:focus-visible{outline:2px solid #7eaeff;outline-offset:2px}
.cm-search-btn svg,.cm-search-field svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.cm-search-btn kbd{font:600 10px/1 Inter,system-ui,sans-serif;border:1px solid rgba(171,196,241,.3);border-radius:5px;padding:3px 5px;color:#93a6c6}
@media(max-width:750px){.cm-search-btn{width:38px;padding:0;justify-content:center}.cm-search-btn span,.cm-search-btn kbd{display:none}}
.cm-search{position:fixed;inset:0;z-index:1000;display:flex;justify-content:center;align-items:flex-start;padding:calc(env(safe-area-inset-top,0px) + 12vh) max(16px,env(safe-area-inset-right,0px)) 16px max(16px,env(safe-area-inset-left,0px))}
.cm-search[hidden]{display:none}
.cm-search-scrim{position:absolute;inset:0;background:rgba(6,12,26,.55);backdrop-filter:blur(4px)}
.cm-search-box{--s-bg:#fff;--s-line:#e0e6f0;--s-text:#132139;--s-muted:#5e6f89;--s-hover:#eef3fd;--s-accent:#2f6fe4;position:relative;width:min(640px,100%);max-height:72vh;display:flex;flex-direction:column;background:var(--s-bg);color:var(--s-text);border:1px solid var(--s-line);border-radius:16px;box-shadow:0 30px 80px rgba(4,10,25,.35);overflow:hidden;animation:cmSearchIn .18s cubic-bezier(.2,.7,.2,1)}
@media (prefers-color-scheme:dark){.cm-search-box{--s-bg:#0e1727;--s-line:#223552;--s-text:#e6eeff;--s-muted:#93a6c6;--s-hover:#15233b;--s-accent:#7eaeff}}
@keyframes cmSearchIn{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cm-search-box{animation:none}}
.cm-search-field{display:flex;align-items:center;gap:10px;padding:14px 14px 14px 16px;border-bottom:1px solid var(--s-line);color:var(--s-muted)}
.cm-search-field input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--s-text);font:500 16px/1.4 Inter,system-ui,sans-serif}
.cm-search-field input::-webkit-search-cancel-button{display:none}
.cm-search-x{border:1px solid var(--s-line);background:transparent;color:var(--s-muted);border-radius:6px;font:600 11px/1 Inter,system-ui,sans-serif;padding:5px 7px;cursor:pointer}
.cm-search-label{margin:12px 16px 4px;font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--s-muted)}
.cm-search ul{list-style:none;margin:0;padding:4px 8px 10px;overflow-y:auto}
.cm-search li a{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"cat title tag" "desc desc desc";column-gap:10px;row-gap:2px;align-items:baseline;padding:10px 10px;border-radius:10px;color:inherit;text-decoration:none}
.cm-search li[aria-selected="true"] a,.cm-search li a:hover{background:var(--s-hover)}
.cm-s-cat{grid-area:cat;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--s-accent)}
.cm-search li strong{grid-area:title;font-size:14.5px;font-weight:700;min-width:0}
.cm-search li em{grid-area:tag;font-style:normal;font-size:11px;font-weight:700;color:var(--s-muted);border:1px solid var(--s-line);border-radius:999px;padding:2px 8px;white-space:nowrap}
.cm-search li small{grid-area:desc;font-size:12.5px;color:var(--s-muted);line-height:1.5}
html.cm-search-open{overflow:hidden}
/* Phones: keep the header inside the screen with the search icon added */
@media(max-width:480px){
  .site-header .nav-account-actions{gap:8px}
  .site-header .nav-account-actions .cm-search-btn{width:34px;height:34px}
  .site-header .nav-signup{padding:9px 11px;gap:0}
  .site-header .nav-signup>span[aria-hidden="true"]{display:none}
  .site-header .nav-login{font-size:12px}
}
@media(max-width:430px){
  .site-header .brand{font-size:20px;gap:7px}
  .site-header .nav-signup{font-size:11px;padding:9px 10px}
  .site-header .brand-icon{width:31px;height:31px;padding:5px}
}
@media(max-width:430px){
  .site-header .nav-signup{font-size:0}
  .site-header .nav-signup::before{content:"Try free";font-size:11.5px;font-weight:800}
}
