/* Additions to the design system for things the mockups do not show.
   styles.css is the unchanged copy of design/styles.css; tokens and component classes come from it. */

.skip { position: absolute; left: var(--s2); top: -48px; z-index: 10; background: var(--marigold); color: var(--on-marigold); padding: var(--s2) var(--s3); border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--s2); }
.fine { font-size: 0.85rem; }
.inline-form { display: inline; margin: 0; }
.notice { background: var(--surface-2); border-radius: 8px; padding: var(--s2) var(--s4); font-size: 0.9rem; color: var(--muted); margin-top: var(--s4); }
.notice a { color: var(--text); }

/* Links styled as chips (branch filter, stream filter) */
a.chip { text-decoration: none; display: inline-block; }
a.chip:hover { color: var(--text); border-color: var(--muted); }
a.chip[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
a.chip[aria-current="true"]:hover { color: var(--bg); }
.chip.less { color: var(--down); border-color: currentColor; }
button.chip[aria-pressed="true"].less { background: transparent; color: var(--down); border-color: var(--down); font-weight: 700; }

/* Real art replaces the coloured placeholder */
.cover.has-img { padding: 0; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

/* Empty and quiet states */
.empty { border: 1px dashed var(--line); border-radius: var(--r-panel); padding: var(--s6) var(--s5); }
.empty h2, .empty h3 { margin-bottom: var(--s2); }
.empty p { color: var(--muted); }
.empty .actions { margin-top: var(--s4); }
.empty.small { padding: var(--s4); }
.empty.small p { font-size: 0.9rem; }
.panel > .empty { margin-top: var(--s2); }

/* Members index */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.member-card { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); text-decoration: none; height: 100%; }
.member-card:hover { border-color: var(--muted); color: var(--text); }
.member-card .avatar { margin: 0; width: 44px; height: 44px; border: 0; line-height: 44px; font-size: 0.85rem; }
.member-card b { display: block; line-height: 1.2; }
.member-card span { font-size: 0.83rem; color: var(--muted); }
.member-card .live-line { display: flex; gap: 6px; align-items: center; color: var(--text); }

/* Prose pages */
.prose { max-width: 68ch; padding: var(--s6) 0 0; }
.prose h1 { margin-bottom: var(--s4); }
.prose h2 { margin: var(--s6) 0 var(--s2); font-size: 1.3rem; }
.prose p, .prose ul { margin: 0 0 var(--s3); }
.prose ul { padding-left: 1.2em; }

/* Admin queue extras */
.search-results { margin-top: var(--s3); }
.match + .match, .match + .search-results { margin-top: var(--s4); }
.panel.match { margin-top: var(--s4); }

/* Framework error bar */
#blazor-error-ui { color-scheme: light only; background: #fff3cd; color: #1b1530; bottom: 0; box-shadow: 0 -1px 2px rgb(0 0 0 / 0.2); box-sizing: border-box; display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "Something on this page went wrong."; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* Admin tables: small covers beside a name */
.cover.tiny { width: 34px; font-size: 0; flex: none; }
