/* ==========================================================================
   WordPress integration — admin bar, core helper classes, single-column
   pages and the post list. Loaded after main.css (and pages.css).
   ========================================================================== */

/* ---- Admin bar (logged-in users only) ---------------------------------- */
.admin-bar .site-header,
.admin-bar .mobile-menu {
  top: var(--wp-admin--admin-bar--height, 32px);
}
.admin-bar [id] {
  scroll-margin-top: calc(var(--header-offset) + var(--wp-admin--admin-bar--height, 32px) + 1rem);
}
@media (min-width: 1024px) {
  .admin-bar .legal-aside {
    top: calc(var(--header-offset, var(--header-h)) + var(--wp-admin--admin-bar--height, 32px) + 2.5rem);
  }
}
/* Below 600px core lets the admin bar scroll away, so our fixed header pins to the top. */
@media screen and (max-width: 600px) {
  .admin-bar .site-header,
  .admin-bar .mobile-menu { top: 0; }
}

/* ---- Core helper classes ---------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption,
.wp-block-image figcaption,
.gallery-caption {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ---- Pages without enough headings for a contents list ---------------- */
@media (min-width: 1024px) {
  .legal-layout--single { grid-template-columns: minmax(0, 1fr); }
  .legal-layout--single .legal-article { max-width: 48rem; }
}

/* ---- Post list (index.php) -------------------------------------------- */
.post-list__item {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.post-list__item:last-child { border-bottom: 1px solid var(--line); }
.post-list__date {
  margin: 0 0 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}
.prose .post-list__title { margin: 0 0 0.5rem; }
.post-list__title a { color: var(--text); text-decoration: none; }
.post-list__title a:hover { color: var(--gold-light); }
.post-list__excerpt { margin: 0; }

.pagination .nav-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: var(--fs-sm);
}
.pagination .page-numbers.current { color: var(--gold); }
