/* GENERATED by data/build_public_glossary.mjs (searchCss) from css/styles.css: the app's top-bar
   search box and its dropdown, for the public EKG Dictionary (ekg-glossary/). Do not edit this
   file: change css/styles.css and run the builder again. */
.topbar-search {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 300px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid oklch(0.88 0.02 257);
    border-radius: 99vw;
    background: linear-gradient(to bottom, oklch(0.9 0.015 257), oklch(0.95 0.01 257));
    box-shadow: inset 0 1px 2px oklch(0.6 0.03 257 / 0.25), inset 0 -1px 0 #fff;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.topbar-search:hover { border-color: oklch(0.84 0.025 257); }
.topbar-search:focus-within {
    background: #ffffff;
    border-color: oklch(0.45 0.14 275 / 0.55);
    box-shadow: inset 0 1px 2px oklch(0.6 0.03 257 / 0.12), 0 0 0 3px oklch(0.53 0.17 288 / 0.16);
}
.topbar-search::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(98deg in oklab, oklch(0.8 0.1348 355.91) -5%, oklch(0.8 0.2 280), oklch(0.98 0.22 200) 160%);
    -webkit-mask: linear-gradient(166deg, transparent 50%, black);
            mask: linear-gradient(166deg, transparent 50%, black);
    transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.topbar-search:hover::before { opacity: 0.6; }
.topbar-search:focus-within::before { opacity: 0; }
.topbar-search-icon {
    position: absolute;
    left: 13px;
    z-index: 2;
    color: #98a2b0;
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.topbar-search:focus-within .topbar-search-icon { color: #26408b; }
.topbar-search-input {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0 38px 0 34px;
    border: 0;
    background: transparent;
    color: #181c1f;
    font-size: 13px;
    font-family: 'Inter', system-ui, sans-serif;
    outline: none;
    transition: padding-left 0.2s cubic-bezier(0.33, 1, 0.68, 1);
    -webkit-appearance: none;
}
.topbar-search-input::placeholder {
    color: #66717f;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.topbar-search-input::-webkit-search-decoration,
.topbar-search-input::-webkit-search-cancel-button,
.topbar-search-input::-webkit-search-results-button { display: none; }
.topbar-search-kbd {
    position: absolute;
    right: 9px;
    z-index: 2;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.12s;
}
.topbar-search-input:focus ~ .topbar-search-kbd { opacity: 0; }
.topbar-search-kbd kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 19px;
    min-width: 19px;
    padding: 0 5px;
    background: linear-gradient(to bottom, #fff, oklch(0.96 0.008 257));
    border: 1px solid oklch(0.88 0.02 257);
    border-radius: 5px;
    box-shadow: 0 1px 0 oklch(0.85 0.02 257);
    color: #8b95a3;
    font-size: 11px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}
@media (prefers-reduced-motion: reduce) {
.topbar-search,
.topbar-search::before,
.topbar-search-input { transition: none; }
}
.search-dropdown {
    position: fixed;
    top: 56px; 
    z-index: 1100;
    background: #ffffff;
    border: 1px solid #e0e3e7;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    max-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
}
.search-dropdown[hidden] { display: none; }
.sr-inner {
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain;
}
.sr-inner::-webkit-scrollbar { width: 6px; }
.sr-inner::-webkit-scrollbar-track { background: transparent; }
.sr-inner::-webkit-scrollbar-thumb { background: #d0d4da; border-radius: 3px; }
.sr-inner::-webkit-scrollbar-thumb:hover { background: #b0b5bc; }
.sr-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sr-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.12s;
    border: 1.5px solid transparent;
}
.sr-item:hover {
    background: rgba(38,64,139,0.05);
    border-color: rgba(38,64,139,0.12);
}
.sr-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 20px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.sr-open {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11.5px;
    font-weight: 600;
    color: #9aa0a8;
    flex-shrink: 0;
}
.sr-group {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 9px 12px 5px; font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase; color: #9aa0a8;
}
.sr-group-more { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: none; color: #b3b8c0; }
.sr-list + .sr-group { border-top: 1px solid #eef1f5; margin-top: 3px; }
.sr-item.sr-item-def {
    flex-direction: row; align-items: center; gap: 11px;
    text-decoration: none; color: inherit;
}
.sr-badge-def {
    text-transform: none; letter-spacing: 0.01em; font-size: 11px; font-weight: 600;
    padding: 3px 10px; white-space: nowrap;
    background: rgba(15,8,75,0.08); color: #0f084b;
}
.sr-def { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.sr-def-term { font-size: 14.5px; font-weight: 700; color: #181c1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item-def:hover .sr-open { color: #0f084b; }
.sr-item.sr-item-def { align-items: flex-start; }
.sr-item-def .sr-badge-def { margin-top: 8px; }
.sr-item-def .sr-open { margin-top: 11px; }
.sr-def-body { display: flex; flex-direction: column; min-width: 0; }
.sr-def-snip,
.sr-def-full {
    display: grid;
    grid-template-columns: minmax(0, 1fr);   
    min-width: 0;
    transition: grid-template-rows 0.34s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
}
.sr-def-snip > span,
.sr-def-full > span { display: block; min-height: 0; overflow: hidden; }
.sr-def-snip { grid-template-rows: 1fr; opacity: 1; font-size: 12px; color: #707882; }
.sr-def-snip > span { white-space: nowrap; text-overflow: ellipsis; }
.sr-def-full { grid-template-rows: 0fr; opacity: 0; font-size: 12.5px; line-height: 1.5; color: #404750; }
.sr-def-full > span { padding-top: 3px; transform: translateY(-4px); transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sr-item-def.is-expanded .sr-def-snip { grid-template-rows: 0fr; opacity: 0; }
.sr-item-def.is-expanded .sr-def-full { grid-template-rows: 1fr; opacity: 1; transition-delay: 0.04s; }
.sr-item-def.is-expanded .sr-def-full > span { transform: none; }
.sr-item-def.is-expanded .sr-def-term { white-space: normal; }
.sr-item-def.is-expanded {
    background: rgba(38,64,139,0.06);
    border-color: rgba(38,64,139,0.18);
    box-shadow: 0 8px 20px -12px rgba(15,8,75,0.35);
}
.sr-item-def.is-expanded .sr-open { color: #0f084b; }
@media (prefers-reduced-motion: reduce) {
.sr-def-snip,
.sr-def-full,
.sr-def-full > span { transition: none; }
}
.sr-empty {
    padding: 32px 16px;
    text-align: center;
    color: #9ea6b0;
    font-size: 14px;
}
.sr-empty strong {
    display: block;
    font-size: 15px;
    color: #5f6876;
    margin-bottom: 4px;
}
.sr-footer {
    padding: 8px 16px;
    font-size: 11px;
    color: #b0b5bc;
    border-top: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.sr-footer kbd {
    background: #f0f2f5;
    border: 1px solid #d8dce2;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
    color: #5f6876;
}
