/* The faculty search component (search.js), shared by /search and the admin page's Search tab.
   Everything is scoped under .fs. Colors come from the host page's brand tokens (--panel, --line, --accent, ...),
   which search.html and admin.html both define, so the component matches either page in light and dark mode. */
.fs { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.fs-form { position: sticky; top: 16px; }
@media (max-width: 920px) { .fs { grid-template-columns: 1fr; } .fs-form { position: static; } }
.fs-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.fs h2 { font-size: 17px; margin: 0 0 10px; }
.fs h3 { font-size: 17px; margin: 0; }
.fs h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.fs a { color: var(--accent); }
.fs label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.fs label > input, .fs label > select, .fs label > textarea { display: block; width: 100%; margin-top: 3px; color: var(--text); }
.fs textarea { width: 100%; min-height: 170px; resize: vertical; line-height: 1.45; }
.fs summary:focus-visible, .fs a:focus-visible, .fs-drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fs-link { border: 0 !important; background: none !important; padding: 0 !important; min-height: 0 !important;
           color: var(--accent) !important; text-decoration: underline; cursor: pointer; }
.fs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.fs-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-grow { flex: 1 1 auto; min-width: 0; }
.fs-muted { color: var(--muted); }
.fs-small { font-size: 13px; }
.fs-hint { margin: 8px 0 0; }
.fs-drop { border: 1px dashed var(--muted); border-radius: 6px; padding: 10px; text-align: center; font-size: 14px; color: var(--muted);
           cursor: pointer; margin-bottom: 6px; }
.fs-drop.over { border-color: var(--accent); background: var(--hover); }
.fs-files { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; }
.fs-files li { display: flex; gap: 8px; align-items: center; padding: 2px 0; }
.fs-files li span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-msg { margin: 0 0 12px; font-weight: 600; }
.fs-msg:empty { display: none; }
.fs-msg.bad { color: var(--bad); } .fs-msg.warn { color: var(--warn); } .fs-msg.ok { color: var(--ok); }
.fs-summary { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 12px; }
.fs-summary .fs-grow { font-size: 15px; }
.fs-intro p { margin: 0 0 10px; }
.fs-intro ul { margin: 0 0 10px; padding-left: 20px; }
.fs-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.fs-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.fs-rank { font-weight: 700; color: var(--accent); font-size: 18px; min-width: 2ch; text-align: right; line-height: 1.35; }
.fs-score { text-align: right; min-width: 150px; }
.fs-score b { font-variant-numeric: tabular-nums; font-size: 17px; }
.fs-meter { height: 6px; background: var(--track, var(--hover)); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.fs-meter span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.fs-parts { font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.fs-evidence, .fs-papers, .fs-pubs { list-style: none; margin: 0; padding: 0; }
.fs-evidence li { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin-bottom: 8px; }
.fs-evidence q { quotes: "“" "”"; }
.fs-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
          color: var(--muted); margin-right: 6px; }
.fs-papers li { padding: 3px 0; }
.fs-pubs li { border-bottom: 1px solid var(--line); padding: 6px 0; }
.fs-pubs li:last-child { border-bottom: 0; }
.fs-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; }
.fs-details { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.fs-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 14px; margin: 6px 0; }
.fs-facts dt { color: var(--muted); }
.fs-facts dd { margin: 0; }
.fs details > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.fs details p { margin: 4px 0 0; font-size: 14px; }
.fs-skeleton { height: 120px; border-radius: 6px; margin-bottom: 12px; border: 1px solid var(--line);
               background: linear-gradient(90deg, var(--panel), var(--hover), var(--panel)); background-size: 200% 100%;
               animation: fs-shimmer 1.2s infinite linear; }
@keyframes fs-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fs-skeleton { animation: none; } }
