/* =============================================================
   Peace Blog — additions on top of the main website stylesheet
   (colours, fonts, header and footer come from /assets/css/style.css)
   ============================================================= */

/* WordPress admin bar + sticky header */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* ---------- category chips (links) ---------- */
.filters--links a {
  font-size: .84rem; font-weight: 600; padding: 9px 16px; border: 1px solid var(--line);
  border-radius: 3px; background: #fff; color: var(--navy); transition: .2s;
}
.filters--links a:hover { border-color: var(--gold); }
.filters--links a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- pagination ---------- */
.pager { margin-top: 40px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--navy);
  font-weight: 600; font-size: .9rem; transition: .2s;
}
.pager a.page-numbers:hover { border-color: var(--gold); }
.pager .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 24px; }
.pager .ic { width: 16px; height: 16px; }

/* ---------- article content (Gutenberg blocks) ---------- */
.entry figure.entry__image { aspect-ratio: 16 / 9; }
.entry figure:not(.entry__image) { aspect-ratio: auto; overflow: visible; }
.entry figure:not(.entry__image) img { height: auto; object-fit: initial; border-radius: var(--r); }
.entry figcaption, .entry .wp-element-caption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }
.entry img { max-width: 100%; height: auto; }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry .aligncenter { margin-inline: auto; text-align: center; }
.entry table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.entry th { background: var(--sand); color: var(--navy); font-weight: 600; }
.entry .wp-block-table { overflow-x: auto; }
.entry pre, .entry code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; }
.entry pre { background: var(--sand); padding: 16px; border-radius: var(--r); overflow-x: auto; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #fff !important; text-decoration: none !important; padding: 12px 22px; border-radius: 3px; font-weight: 600; }
.entry .wp-block-button__link:hover { background: var(--gold-ink); }
.entry .wp-block-embed iframe { width: 100%; }
.entry::after { content: ""; display: table; clear: both; }

/* ---------- share + tags ---------- */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.share span { font-size: .84rem; font-weight: 600; color: var(--navy); margin-inline-end: 6px; }
.share a {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 50%; color: var(--navy); background: #fff; transition: .2s; text-decoration: none !important;
}
.share a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.share svg { width: 18px; height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: .84rem; }
.tags a { color: var(--muted) !important; text-decoration: none !important; }
.tags a:hover { color: var(--gold-ink) !important; }

/* ---------- search ---------- */
.searchform { display: flex; gap: 8px; max-width: 520px; }
.searchform input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: 3px; font: inherit; background: #fff; color: var(--navy);
}
.searchform input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.searchform .btn { height: 48px; }
.phero__search { margin-top: 22px; }
.phero__search .searchform input { border-color: transparent; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 40px 0; }
.empty h2 { font-size: clamp(1.4rem, 1.1rem + .8vw, 1.8rem); }
.empty p { color: var(--muted); margin: 10px auto 20px; }
.empty .searchform { margin: 0 auto 18px; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .entry .alignleft, .entry .alignright { float: none; margin: 1em 0; max-width: 100%; }
  .searchform { flex-direction: column; }
  .searchform .btn { width: 100%; }
}
