/* Format, the help center hub (/help). Loads after site.css and guide.css and
   draws with their tokens: the search sits on the hero's dots as one raised
   field, results drop under it as a card, and the Popular row reuses the
   related cards' surface. public/help.js runs the search. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.help-find { width: 100%; max-width: 640px; margin-top: 26px; text-align: left; }
.help-search { display: flex; gap: 10px; }
.help-search input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-raised); color: var(--text); font: 17px/1.4 var(--sans); box-shadow: var(--shadow-card);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.help-search input::placeholder { color: var(--text-faint); opacity: 1; }
.help-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-card); }
.help-search .btn { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 10px; flex: none; cursor: pointer; }
.help-status { min-height: 1.5em; margin-top: 8px; font-size: 14.5px; color: var(--text-dim); text-align: center; }

.help-results {
  list-style: none; margin: 4px 0 0; padding: 6px; background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.help-results a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); color: var(--text); text-decoration: none; }
.help-results a:hover, .help-results a:focus-visible { background: var(--bg-hover); }
.help-results .hr-k { font: 600 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.help-results .hr-t { font-weight: 650; }
.help-results .hr-d { font-size: 14.5px; color: var(--text-dim); }

.help-popular { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.help-popular a {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  color: var(--text); text-decoration: none; transition: border-color var(--dur);
}
.help-popular a:hover { border-color: var(--line-strong); }
.help-popular .rel-k { font: 600 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.help-popular h3 { font-size: 17px; }
.help-popular p { color: var(--text-dim); font-size: 14.5px; }

@media (max-width: 720px) {
  .help-popular { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .help-search { gap: 8px; }
  .help-search input { padding: 0 12px; font-size: 16px; }
  .help-search .btn { padding: 0 16px; }
}
