/* library-search.css — the repo-library search widget.
 * Origin: christensen-digital/ec-resources · frameworks/repo-library. Overwritten by
 * `adopt.py --update`; fix it at the origin. Colour, type and radius come only from
 * --lib-* roles, which the child's generated library-theme.css maps onto its brand
 * tokens (brand-system role names under the brand's prefix). No literal colour here. */
.rl { --lib-ease: cubic-bezier(.22, 1, .36, 1); margin: 0 0 34px; }
.rl *, .rl *::before, .rl *::after { box-sizing: border-box; }
.rl a { color: inherit; text-decoration: none; }
.rl ol { margin: 0; padding: 0; }
.rl-hidden { display: none !important; }
.rl-chip { flex-shrink: 0; }
.rl-label { display: block; font-family: var(--lib-font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lib-text-2); margin-bottom: 8px; }
.rl-bar { position: relative; display: flex; align-items: center; }
.rl-bar svg { position: absolute; left: 14px; color: var(--lib-text-muted); pointer-events: none; }
.rl-input { width: 100%; height: 46px; padding: 0 52px 0 40px; border: 0.5px solid var(--lib-border-hi); border-radius: var(--lib-radius); background: var(--lib-surface); color: var(--lib-text-bright); font-family: var(--lib-font); font-size: 15px; transition: border-color .15s var(--lib-ease), box-shadow .15s var(--lib-ease); }
.rl-input::placeholder { color: var(--lib-text-muted); }
.rl-input:focus { outline: none; border-color: var(--lib-accent-ui); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lib-accent-ui) 22%, transparent); }
.rl-input::-webkit-search-cancel-button { display: none; }
.rl-kbd { position: absolute; right: 12px; font-family: var(--lib-font-mono); font-size: 10px; color: var(--lib-text-muted); border: 0.5px solid var(--lib-border); border-radius: 4px; padding: 1px 6px; }
.rl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; font-size: 12.5px; color: var(--lib-text-2); }
.rl-filters label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.rl-filters select { height: 30px; padding: 0 8px; border: 0.5px solid var(--lib-border); border-radius: var(--lib-radius-sm); background: var(--lib-surface); color: var(--lib-text); font: inherit; font-size: 12.5px; }
.rl-filters input[type="checkbox"] { accent-color: var(--lib-accent-ui); width: 14px; height: 14px; }
.rl-meta { margin-top: 14px; font-family: var(--lib-font-mono); font-size: 11px; letter-spacing: 0.03em; color: var(--lib-text-muted); min-height: 1.6em; }
.rl-meta button { font: inherit; color: var(--lib-accent-text); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: underline; }
.rl-results { list-style: none; margin-top: 6px; }
.rl-results[hidden], .rl-more[hidden] { display: none; }
.rl-hit a { display: block; padding: 11px 12px; margin: 0 -12px; border-bottom: 0.5px solid var(--lib-border); border-radius: var(--lib-radius-sm); }
.rl-hit a:hover, .rl-hit.is-active a { background: var(--lib-panel); }
.rl-hit.is-active a { box-shadow: inset 2px 0 0 var(--lib-accent-ui); }
.rl-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.rl-title { font-size: 14.5px; font-weight: 500; color: var(--lib-text-bright); }
.rl-hit mark { background: color-mix(in srgb, var(--lib-accent-ui) 18%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.rl-date { margin-left: auto; font-family: var(--lib-font-mono); font-size: 10.5px; color: var(--lib-text-muted); white-space: nowrap; }
.rl-chip { font-family: var(--lib-font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 7px; border-radius: var(--lib-radius-full); border: 0.5px solid var(--lib-border); color: var(--lib-text-2); white-space: nowrap; }
.rl-chip.s-canon { border-color: var(--lib-accent-ui); color: var(--lib-text-bright); }
.rl-chip.s-canon::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lib-accent-ui); margin-right: 5px; vertical-align: 1px; }
.rl-chip.s-superseded, .rl-chip.s-archived { color: var(--lib-text-muted); border-style: dashed; }
.rl-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; margin-top: 5px; }
.rl-chip.t-now { background: var(--lib-accent-fill); color: var(--lib-on-accent); border-color: transparent; }
.rl-chip.t-recent { border-color: var(--lib-accent-ui); color: var(--lib-text-bright); }
.rl-chip.c-tag { text-transform: none; letter-spacing: 0.02em; font-weight: 500; }
.rl-chip.c-area { color: var(--lib-text-muted); }
.rl-date[data-age="now"] { color: var(--lib-accent-text); font-weight: 600; }
.rl-date[data-age="recent"] { color: var(--lib-text-2); }
.rl-quick { height: 30px; padding: 0 12px; border: 0.5px solid var(--lib-border); border-radius: var(--lib-radius-full); background: var(--lib-surface); color: var(--lib-text-2); font-family: var(--lib-font-mono); font-size: 10.5px; letter-spacing: 0.04em; cursor: pointer; }
.rl-quick:hover { border-color: var(--lib-accent-ui); color: var(--lib-text); }
.rl-path { margin-top: 3px; font-family: var(--lib-font-mono); font-size: 10.5px; color: var(--lib-text-muted); overflow-wrap: anywhere; }
.rl-desc { margin-top: 4px; font-size: 13px; color: var(--lib-text-2); line-height: 1.55; max-width: 76ch; }
.rl-note { margin-top: 3px; font-size: 12px; color: var(--lib-text-muted); font-style: italic; }
.rl-hit.is-retired .rl-title { color: var(--lib-text-2); }
.rl-more { margin-top: 14px; height: 32px; padding: 0 14px; border: 0.5px solid var(--lib-border); border-radius: var(--lib-radius-full); background: var(--lib-surface); color: var(--lib-text-2); font-family: var(--lib-font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.rl-more:hover { border-color: var(--lib-border-hi); color: var(--lib-text); }
