/* =========================================================
   CMS additions – styles for server-rendered features that the
   original static pages did not have (pagination, form states).
   Uses the tokens from style.css; loaded after pages.css.
   ========================================================= */

/* Category filter links (the static page used buttons with aria-pressed) */
.filter-chip { display: inline-flex; align-items: center; }
.filter-chip[aria-current="page"] { color: #fff; background: var(--grad-red); border-color: rgba(255, 197, 61, .7); box-shadow: 0 0 16px rgba(255, 40, 30, .45); }

/* Pagination */
.pager { margin-top: 36px; }
.pager__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #eadbd6;
  background: rgba(40, 5, 9, .7);
  border: 1px solid var(--line-red);
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s;
}
.pager__link svg { width: 16px; height: 16px; }
.pager__link .pager__prev { transform: rotate(180deg); }
a.pager__link:hover { color: var(--gold-light); border-color: var(--line-gold); }
.pager__link.is-current { color: #fff; background: var(--grad-red); border-color: rgba(255, 197, 61, .7); box-shadow: 0 0 16px rgba(255, 40, 30, .45); }
.pager__link.is-disabled { opacity: .4; }
.pager__gap { padding: 0 4px; color: var(--muted); }

/* Contact form: spam trap and result messages */
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status--success { background: rgba(40, 160, 90, .16); border-color: rgba(90, 210, 140, .55); }
.form__status--error { background: rgba(211, 18, 28, .22); border-color: #ff5a4f; }

/* Draft preview notice for admins */
.preview-bar { position: relative; z-index: 5; margin: 0; padding: 10px 16px; font-size: 14px; font-weight: 600; text-align: center; color: #1b0508; background: var(--grad-gold); }

/* Not found page */
.not-found__code { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: clamp(64px, 14vw, 120px); line-height: 1; }
.not-found__actions { justify-content: center; margin-top: 22px; }
