/* ============================================================
   hostme theme — WordPress-only additions on top of the shared
   design system (colors_and_type.css + site.css).
   No brand tokens are redefined here; a11y + layout polish only.
   ============================================================ */

/* Accessible hidden text (WordPress convention) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

/* Skip link — off-screen until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--bg-card);
  color: var(--fg);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

/* Visible keyboard focus for interactive elements (uses the focus-ring token) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow);
  border-radius: var(--radius-xs);
}

/* Featured-image covers fill the tile; the gradient + icon fallback needs no img */
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Pagination (the_posts_pagination) styled to match the pill system */
.pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg-card);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.pagination a.page-numbers:hover {
  color: var(--fg);
  border-color: var(--paper-4);
}
.pagination .page-numbers.current {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
