/* =========================================================
   Zabardast — WordPress additions
   Styles for markup WordPress generates. The design itself
   lives in main.css (unchanged from the original site).
   ========================================================= */

/* Keep the fixed navbar below the admin toolbar when logged in */
.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .navbar { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .navbar { top: 0; }
}

/* WordPress menus output <ul><li> inside the mobile drawer */
.drawer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }

/* Skip link becomes visible on keyboard focus */
.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--yellow);
  color: #000;
  border-radius: var(--radius);
  font-weight: 700;
}

/* Form spam trap: hidden from people */
.zb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form result messages */
.form-status {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.form-status-success { background: oklch(0.95 0.06 152); color: oklch(0.35 0.1 152); }
.form-status-error { background: oklch(0.95 0.05 25); color: oklch(0.4 0.15 25); }
#zb-form { scroll-margin-top: 8rem; }

/* Content written in the block editor */
.entry-content { line-height: 1.7; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2,
.entry-content h3 { color: var(--heading); line-height: 1.25; }
.entry-content a { color: var(--link); text-decoration: underline; }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content img { height: auto; border-radius: var(--radius); }
.entry-content .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text,
.wp-element-caption { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.5rem; }

/* Blog / archive listing */
.post-list { display: grid; gap: 2rem; }
@media (min-width: 768px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card h2 { font-size: 1.5rem; margin-top: 1rem; }
.post-card h2 a { text-decoration: none; }
.post-meta { font-size: 0.875rem; color: var(--muted-fg); }
/* Pagination shares WordPress's .nav-links class with the header menu */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.pagination .nav-links .page-numbers {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  color: var(--link);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pagination .nav-links .current { background: var(--purple); color: #fff; border-color: var(--purple); }
