/* ── Back link (documents/ isn't the homepage, index.css has no equivalent) ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--accent); }
.icon-back { width: 14px; height: 14px; stroke-width: 2; }

/* ── Search input (index.css styles #search-input; this page uses #doc-search
   so app.js's existing element lookups don't need to change) ── */
#doc-search {
  width: 100%; background: var(--surface); border: 1px solid var(--line-input);
  padding: 0.75rem 1rem 0.75rem 2.5rem; font-size: 0.875rem; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.05); outline: none; font-family: inherit; box-sizing: border-box;
}
#doc-search:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ── External-source badge (OrthoInfo etc., hosted files have none) ── */
.ext-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 0.375rem;
}

/* ── Print: clean handout, no chrome ── */
@media print {
  .back-link, .search-wrap, footer, #ext-refs { display: none; }
}
