/* search: the header button, and the overlay it and "/" open */
.search-open { flex: none; gap: var(--space-2); color: var(--muted); }
.search-open[hidden] { display: none; }
.search-open kbd { border: 0; padding: 0; background: none; color: var(--faint); }
#search { position: fixed; inset: 0; z-index: 20; background: var(--scrim); }
#search .search-box { position: absolute; top: max(8px, 8vh); left: 50%; transform: translateX(-50%); width: min(680px, calc(100vw - 16px)); background: var(--raised); border: var(--hairline) solid var(--border); padding: var(--space-2); box-shadow: var(--shadow); }
#search input { width: 100%; font: var(--fw-regular) var(--text-lg) var(--sans); padding: var(--space-2) var(--space-3); border: var(--hairline) solid var(--border-strong); background: var(--bg); color: var(--fg); }
#search input:focus, #finder input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 var(--hairline) var(--accent); }
#search ol { list-style: none; margin: var(--space-1) 0 0; padding: 0; max-height: 65vh; overflow: auto; }
#search li.group { margin: var(--space-2) 0 var(--space-half); padding: var(--space-1) var(--space-2); font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--fg); background: var(--tint); border-block: var(--hairline) solid var(--border); }
#search li.group span { font: var(--fw-regular) var(--text-xs) var(--mono); color: var(--faint); margin-left: var(--space-1); }
#search li a { display: block; padding: var(--space-1) var(--space-2); color: var(--fg); }
#search li a:hover { background: var(--hover); text-decoration: none; }
#search li.sel a, #search li.sel button { background: var(--hover); box-shadow: inset 2px 0 0 var(--accent); }
#search .t, #search .m { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#search .t.mono { font-size: var(--text-sm); }
#search .m.mono { white-space: pre; }
#search .m { font-size: var(--text-xs); color: var(--muted); }
#search b { color: var(--link); font-weight: var(--fw-strong); }
#search li.more button { min-height: 0; border: 0; background: none; padding: var(--space-1) var(--space-2); width: 100%; justify-content: flex-start; color: var(--link); }
#search li.note { padding: var(--space-1) var(--space-2); font-size: var(--text-sm); color: var(--muted); }
#search .hint { margin: var(--space-2) var(--space-2) var(--space-half); font-size: var(--text-sm); color: var(--muted); }
#search .hint:empty { display: none; }
/* file finder */
#finder { position: fixed; top: 10%; left: 50%; transform: translateX(-50%); z-index: 20; width: min(640px, 94vw); background: var(--raised); border: var(--hairline) solid var(--border); padding: var(--space-2); box-shadow: var(--shadow); }
#finder input { width: 100%; font: var(--fw-regular) var(--text-md) var(--mono); padding: var(--space-2); border: var(--hairline) solid var(--border-strong); background: var(--bg); color: var(--fg); }
#finder ol { list-style: none; margin: var(--space-2) 0 0; padding: 0; max-height: 60vh; overflow: auto; }
#finder li a { display: block; padding: var(--space-1) var(--space-2); font-family: var(--mono); font-size: var(--text-sm); color: var(--fg); }
#finder li.sel a { background: var(--hover); box-shadow: inset 2px 0 0 var(--accent); }
#finder li b { color: var(--link); }
main.wrap > p.motd { margin: calc(-1 * var(--space-5)) 0 0; padding: var(--space-3) 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); color: var(--muted); }
/* Two columns: profiles and topics, then what happened; on phones one,
   recent after profiles. */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "profiles recent" "topics recent"; grid-template-rows: auto 1fr; gap: var(--space-4); align-items: start; }
.home > .panel { margin: 0; }
.home .profiles { grid-area: profiles; }
.home .topics { grid-area: topics; }
.home .recent { grid-area: recent; }
@media (max-width: 720px) {
	.home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "profiles" "recent" "topics"; grid-template-rows: none; }
}
.home .panel-head .end a { font-weight: var(--fw-medium); }
/* A profile: their avatar, the name, how many repos and when. */
.profile { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); }
.profile:hover, .profile:focus-within { background: var(--hover); }
.profile-text { display: flex; flex-direction: column; min-width: 0; }
.profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-prose); font-weight: var(--fw-strong); color: var(--fg); }
.profile-name:hover { color: var(--fg); }
.profile-name::after { content: ''; position: absolute; inset: 0; }
.profile-meta { font-size: var(--text-sm); color: var(--muted); }
.profile-meta time { font: inherit; }
/* Topics: tiles with hairlines between them; the panel's edge is the rule
   round them, so the last column's and row's own rules are cut off. */
.topics { overflow: hidden; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 calc(-1 * var(--hairline)) calc(-1 * var(--hairline)) 0; padding: 0; list-style: none; }
.topic-grid > li { position: relative; border-right: var(--hairline) solid var(--border); border-bottom: var(--hairline) solid var(--border); }
.topic-grid > li:hover, .topic-grid > li:focus-within { background: var(--hover); }
.topic-grid a { display: flex; flex-direction: column; padding: var(--space-2) var(--space-3); color: var(--fg); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.topic-grid a:hover { color: var(--fg); }
.topic-grid .n { font: var(--fw-regular) var(--text-xs) var(--mono); color: var(--faint); }
@media (max-width: 720px) {
	.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
footer.site .keyhelp { min-height: 0; background: none; border: 0; padding: 0; color: var(--muted); }
footer.site .keyhelp:hover { color: var(--fg); background: none; }
@media (pointer: coarse) and (hover: none) { footer.site .keyhelp { display: none; } }
/* keyboard shortcuts (keys.ts) */
#help { width: min(440px, 94vw); padding: 0; background: var(--raised); color: var(--fg); border: var(--hairline) solid var(--border); box-shadow: var(--shadow); }
#help:focus { outline: none; }
#help::backdrop { background: var(--scrim); }
#help > div { padding: var(--space-4) var(--space-5); }
#help h2 { margin: 0 0 var(--space-1); }
#help table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
#help td { padding: var(--space-1) 0; vertical-align: top; border-bottom: var(--hairline) solid var(--border); }
#help td:first-child { width: 1%; padding-right: var(--space-4); white-space: nowrap; }
#help kbd { color: var(--fg); }
#help p { margin: var(--space-3) 0 0; font-size: var(--text-sm); }