/*
Theme Name: Executive Summary RSI
Theme URI: https://executivesummaryrsi.com/
Author: Executive Summary RSI
Description: Portable custom WordPress theme based on the approved Executive Summary v3.6.0 prototype.
Version: 0.2.7
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: executive-summary-rsi
*/

.admin-bar .site-header {
  top: 32px;
}

.entry-shell {
  width: min(calc(100% - (2 * var(--page-x))), 60rem);
  margin-inline: auto;
  padding-block: var(--section-y);
}

.entry-shell__header {
  margin-bottom: var(--space-8);
}

.entry-shell__content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-shell__content > * + * {
  margin-top: 1.25em;
}

.entry-shell__content img {
  max-width: 100%;
  height: auto;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-8);
}

.post-list article {
  padding: var(--space-6);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
}

.entry-shell__meta {
  color: var(--color-text-muted, #5c6b73);
  font-size: 0.95rem;
}

.entry-shell__content > :where(ul, ol) {
  padding-inline-start: 1.5rem;
}

.entry-shell__content a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.entry-shell__featured-image {
  width: 100%;
  margin-block: var(--space-8);
  border-radius: var(--radius-lg);
}

.archive-header,
.search-header {
  margin-bottom: var(--space-10);
}

.pagination {
  margin-top: var(--space-12);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pagination .page-numbers {
  display: inline-flex;
  min-width: var(--control-height, 2.75rem);
  min-height: var(--control-height, 2.75rem);
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.pagination .current {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-dark);
}

.error-404 {
  min-height: 55vh;
  display: grid;
  align-content: center;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
