/* Blog listing and article styles. Built on the same tokens as the rest of
   the site so migrated WordPress content inherits the site's typography. */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-menu);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  background: var(--tint-blue);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
  flex: 1;
}

.post-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}

.post-card__title a {
  color: var(--navy);
  text-decoration: none;
}

.post-card__title a:hover {
  text-decoration: underline;
}

.post-card__excerpt {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0;
}

.post-card__meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: auto;
  padding-top: 12px;
}

/* ---------------------------------------------------------- category chips */

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-filter a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-blue);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  text-decoration: none;
}

.category-filter a:hover,
.category-filter a[aria-current='page'] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* -------------------------------------------------------------- article body */

.post-body {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.75;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.3;
  margin: 2em 0 0.6em;
}

.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.2rem; }

.post-body p,
.post-body ul,
.post-body ol { margin: 0 0 1.15em; }

.post-body ul,
.post-body ol { padding-left: 1.3em; }

.post-body li { margin-bottom: 0.5em; }

.post-body a { color: var(--navy); }

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1.5em 0;
}

.post-body blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--cyan);
  color: var(--ink-muted);
}

.post-body figure { margin: 1.5em 0; }
.post-body figcaption {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.post-body th,
.post-body td {
  border: 1px solid var(--line-blue);
  padding: 10px 12px;
  text-align: left;
}

.post-disclaimer {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 18px 22px;
  background: var(--tint-blue);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.post-nav {
  max-width: 760px;
  margin: 36px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
