/* Shared main-site contrast, focus and touch-target rules. */
a[href], button, input:not([type="hidden"]), select, summary {
  min-height:44px;
  min-width:44px;
}
nav a, footer a, .hub-lead a, .learning-discovery a, .section-head a {
  display:inline-flex;
  align-items:center;
}
.skip-link { background:var(--h-text, #172b34); color:var(--h-bg, #f2ebdd); }
:focus-visible { outline:3px solid var(--h-gold-bright, #17494d); outline-offset:4px; }
/* The tools hub uses legacy tokens and has its own light/dark surfaces. */
.hub-body { --gold:#806335; --gold-hover:#70552c; }
html[data-theme="dark"] .hub-body { --gold:#d8c08a; --gold-hover:#e6d2a9; }
.hub-body .hub-filter-btn.is-active { color:var(--bg-color); }
.hub-body .hub-filter-btn { min-height:44px; }
.hub-body .ext-tool-mark { color:var(--gold); opacity:1; }
/* Inline links need a layout box for their minimum touch dimensions to apply. */
:where(a[href]) { display:inline-flex; align-items:center; }
.hub-body .hub-badge-local { color:var(--text-color); background:var(--panel-bg); }

/* Search hints remain separate from the input's 44px touch target. */
.search-shortcut-hint {
  display:flex;
  align-items:center;
  gap:.4rem;
  margin-block:.4rem;
  color:var(--h-text, var(--text-color, #172b34));
  font-size:.8rem;
}
.search-shortcut-hint kbd {
  border:1px solid currentColor;
  border-radius:4px;
  padding:.05rem .4rem;
  font:inherit;
}
@media (max-width:600px), (pointer:coarse) {
  .search-shortcut-hint { display:none; }
}
