/* search1 (review2, 28-10-2026, point 11 of the site review): the club's search (templates/components/search.html,
   static/js/search.js). The magnifier sits next to BASC Radio in the header; the box opens over the page. */
.qs-btn { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; margin-right: 8px; padding: 0;
    border-radius: 50%; cursor: pointer; color: #dbeafe; background: rgba(0,0,0,0.25); border: 1px solid var(--navy-line);
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.3s; }
.qs-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.qs-btn:hover, .qs-btn:focus-visible { color: #fff; background: rgba(0,0,0,0.45); border-color: rgba(0,221,235,0.55); box-shadow: 0 0 16px rgba(0,221,235,0.25); }
@media (max-width: 1100px) {
    .nav .qs-btn { margin-left: auto; }
    .nav .qs-btn ~ .rdock { margin-left: 0; }
}
@media (max-width: 600px) { .qs-btn { margin-right: 6px; } }
@media (max-width: 480px) {      /* no room left next to the brand, the record and Login: the search is first in the ☰ menu */
    .nav .qs-btn { display: none; }
    .nav .qs-btn ~ .rdock { margin-left: auto; }
}
.drawer .drawer-search { display: flex; align-items: center; gap: 10px; width: 100%; margin: 2px 0 8px; padding: 12px 14px; border-radius: 12px; font: inherit;
    font-size: 0.95rem; font-weight: 600; color: var(--muted); text-align: left; cursor: pointer; background: rgba(0,0,0,0.3); border: 1px solid var(--line-strong);
    transition: border-color 0.2s, color 0.2s; }
.drawer .drawer-search:hover, .drawer .drawer-search:focus-visible { color: #fff; border-color: rgba(0,221,235,0.55); }
.drawer-search svg { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; }

html.qs-open { overflow: hidden; }
.qs { position: fixed; inset: 0; z-index: 1200; display: grid; justify-items: center; align-items: start; padding: 11vh 20px 20px; }
.qs[hidden] { display: none; }
.qs-scrim { position: absolute; inset: 0; background: rgba(4,1,12,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity 0.18s; }
.qs-box { position: relative; display: flex; flex-direction: column; width: min(680px, 100%); max-height: min(640px, 80vh); overflow: hidden;
    border-radius: 22px; background: linear-gradient(180deg, #170838, #0c0520 70%); border: 1px solid rgba(0,221,235,0.32);
    box-shadow: 0 30px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 60px rgba(0,221,235,0.12);
    opacity: 0; transform: translateY(-10px) scale(0.985); transition: opacity 0.18s, transform 0.22s cubic-bezier(.2,.9,.3,1.2); }
.qs-box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), #d946ef, var(--orange)); }
.qs.is-open .qs-scrim { opacity: 1; }
.qs.is-open .qs-box { opacity: 1; transform: none; }

.qs-field { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.qs-glass { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; }
.qs-field input { flex: 1; min-width: 0; padding: 6px 0; font: inherit; font-size: 1.12rem; font-weight: 600; color: #fff; background: none; border: 0; outline: 0; }
.qs-field input::placeholder { color: rgba(165,180,204,0.7); font-weight: 500; }
.qs-spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.12); border-top-color: var(--cyan);
    opacity: 0; transition: opacity 0.15s; animation: qs-spin 0.8s linear infinite; }
.qs.is-loading .qs-spin { opacity: 1; }
@keyframes qs-spin { to { transform: rotate(360deg); } }
.qs kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; font-family: inherit; font-size: 0.75rem; font-weight: 700; line-height: 1;
    color: #cbd5e1; background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong); border-bottom-width: 2px; }
.qs-x { display: none; flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; color: #cbd5e1; cursor: pointer;
    background: rgba(255,255,255,0.06); border: 1px solid var(--line); }

.qs-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 12px; scrollbar-width: thin; }
.qs-body h3, .qs-group { margin: 12px 10px 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.qs-group:first-child { margin-top: 6px; }
.qs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 10px 8px; }
.qs-chip { padding: 8px 14px; border-radius: 99px; font: inherit; font-size: 0.86rem; font-weight: 700; color: #e2e8f0; cursor: pointer;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.qs-chip b { color: var(--cyan); }
.qs-chip:hover, .qs-chip:focus-visible { color: #fff; background: rgba(0,221,235,0.12); border-color: rgba(0,221,235,0.5); }
.qs-list { margin: 0; padding: 0; list-style: none; }
.qs-row { margin: 0; }
.qs-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; color: #fff; border: 1px solid transparent;
    transition: background 0.12s, border-color 0.12s; }
.qs-link.is-on { background: linear-gradient(90deg, rgba(0,221,235,0.14), rgba(217,70,239,0.08)); border-color: rgba(0,221,235,0.38); }
.qs-pic { --qc: var(--line-strong); position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden;
    border-radius: 12px; font-weight: 900; font-size: 1.05rem; color: #fff; background: rgba(255,255,255,0.06); border: 1px solid var(--qc); }
.qs-pic.is-round { border-radius: 50%; }
.qs-pic.is-page { color: var(--cyan); background: rgba(0,221,235,0.08); border-color: rgba(0,221,235,0.3); }
.qs-pic.is-empty:not(.is-page) { background: linear-gradient(135deg, #3b1a7a, #0e4a6a); }
.qs-pic img { width: 100%; height: 100%; object-fit: cover; }
.qs-text { display: grid; flex: 1; min-width: 0; gap: 1px; }
.qs-text b, .qs-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.qs-text b { font-size: 0.96rem; font-weight: 800; }
.qs-text small { font-size: 0.8rem; color: var(--muted); }
.qs-tag { --qc: var(--cyan); flex: none; padding: 3px 9px; border-radius: 99px; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase;
    color: #fff; background: color-mix(in srgb, var(--qc) 24%, transparent); border: 1px solid color-mix(in srgb, var(--qc) 60%, transparent); }
.qs-go { flex: none; width: 18px; text-align: center; font-weight: 800; color: var(--muted); opacity: 0; transition: opacity 0.12s, transform 0.12s; }
.qs-link.is-on .qs-go { opacity: 1; color: var(--cyan); transform: translateX(2px); }
.qs-none { margin: 22px 14px; font-size: 0.94rem; color: #cbd5e1; line-height: 1.5; }
.qs-none b { color: #fff; }
.qs-foot { display: flex; gap: 18px; padding: 10px 20px; font-size: 0.76rem; color: var(--muted); border-top: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.qs-foot span { display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 640px) {
    .qs { padding: 0; align-items: stretch; }
    .qs-box { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
    .qs-field { padding: calc(12px + env(safe-area-inset-top)) 12px 12px 16px; }
    .qs-field input { font-size: 1.05rem; }      /* 16 px or more: iOS does not zoom in */
    .qs .qs-esc, .qs-foot { display: none; }
    .qs-x { display: inline-grid; place-items: center; }
    .qs-body { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .qs-box, .qs-scrim, .qs-go { transition: none; }
    .qs-spin { animation-duration: 2s; }
}
