/* Global search (js/18.js, 11 Oct 2026): a modal list over the page, the guide's dark panels and mint highlight. */
.gs{width:min(640px,calc(100vw - 32px));max-height:min(72vh,620px);margin:12vh auto auto;padding:0;border:1px solid var(--gn-line);border-radius:16px;
 background:var(--gn-panel);color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.6);overflow:hidden}
.gs::backdrop{background:rgba(4,8,12,.62);backdrop-filter:blur(2px)}
.gs-box{display:flex;flex-direction:column;max-height:inherit}
.gs svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.gs-field{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--gn-line);color:var(--gn-soft)}
.gs-field input{all:unset;flex:1;min-width:0;font:500 17px/1.3 inherit;color:var(--text)}
.gs-field input::placeholder{color:#7f93a2}
.gs-field input::-webkit-search-cancel-button{display:none}
.gs kbd{font:600 11px/1 inherit;padding:3px 6px;border-radius:5px;border:1px solid var(--gn-line);background:#0d161d;color:var(--gn-soft)}
.gs-list{list-style:none;margin:0;padding:6px;overflow-y:auto;overscroll-behavior:contain}
.gs-list li[role=option]{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;cursor:pointer}
.gs-list li[aria-selected=true]{background:linear-gradient(90deg,rgba(162,221,192,.18),rgba(240,215,122,.12))}
.gs-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.gs-title mark{background:none;color:var(--gn-mint);text-decoration:underline;text-underline-offset:3px}
.gs-list small{color:#9fb3c1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.gs-kind{justify-self:start;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 7px;border-radius:999px;background:#13212a;color:var(--gn-soft)}
.gs-kind.gs-matchup{background:#123224;color:#9ee6bd}
.gs-kind.gs-card{background:#2b2612;color:var(--gn-gold)}
.gs-kind.gs-concept{background:#1c2140;color:#b9c3ff}
.gs-head{padding:6px 10px 4px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7f93a2}
.gs-empty{padding:16px 12px;color:#9fb3c1;font-size:14px}
.gs-hint{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:10px 16px;border-top:1px solid var(--gn-line);font-size:12px;color:#7f93a2}
.gs-hint span{display:inline-flex;align-items:center;gap:4px}
/* Sidebar button under the guide's name, and the phone bar's icon button. */
.gs-open{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;margin-top:4px;padding:7px 10px;border-radius:10px;
 border:1px solid var(--gn-line);background:#0d161d;color:var(--gn-soft);font-size:13px;cursor:pointer}
.gs-open svg,.gs-open-icon svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.gs-open span{flex:1}
.gs-open kbd{font:600 11px/1 inherit;padding:3px 6px;border-radius:5px;border:1px solid var(--gn-line);color:#7f93a2}
.gs-open:focus-visible,.gs-open-icon:focus-visible{outline:2px solid var(--gn-mint);outline-offset:2px}
.gs-open-icon{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border-radius:12px;
 color:var(--gn-soft);background:var(--gn-panel);border:1px solid var(--gn-line);cursor:pointer}
.gs-open-icon svg{width:18px;height:18px}
@media (hover:hover) and (pointer:fine){.gs-open:hover,.gs-open-icon:hover{color:var(--text);border-color:#3c6a52}}
/* Where a result lands: a short mint glow. */
.gs-flash{animation:gs-flash 2.2s ease-out;border-radius:6px}
@keyframes gs-flash{0%,35%{box-shadow:0 0 0 3px rgba(162,221,192,.55);background-color:rgba(162,221,192,.10)}100%{box-shadow:0 0 0 3px rgba(162,221,192,0);background-color:transparent}}
@media (prefers-reduced-motion:reduce){.gs-flash{animation:none;outline:2px solid var(--gn-mint);outline-offset:2px}}
html.motion-off .gs-flash{animation:none;outline:2px solid var(--gn-mint);outline-offset:2px}
@media (max-width:600px){.gs{margin-top:8px;max-height:calc(100dvh - 16px)}.gs-list li[role=option]{grid-template-columns:64px minmax(0,1fr)}.gs-list small{grid-column:2;max-width:none}.gs-hint{display:none}}

/* Result snippet (14 Oct 2026): one line under the title so results with the same title can be told apart. */
.gs-main{display:grid;min-width:0;gap:2px}
.gs-snip{color:var(--muted);font-size:12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Floating table header (js/table-head.js): a pinned copy of a long table's <thead>. */
.th-float{position:fixed;z-index:35;overflow:hidden;pointer-events:none;background:var(--bg);box-shadow:0 6px 14px rgba(0,0,0,.45)}
.th-float[hidden]{display:none}
.th-float>table{margin:0;table-layout:fixed}
