/**
 * News page template (news-page.php) — "The Latest" all-news grid.
 * Layers on aia-directory.css: the .aia-dir shell, controls bar, pager, and
 * empty state come from there. This file adds the entry-content slot, the
 * red eyebrow, the 4-up grid override, and the news card. Mirrors
 * mockups/news-all.
 */

.aia-news {
  padding-top: 56px;
}

/* ---- entry content: the page's own editor content, above the eyebrow ----
   House block rhythm (.entry-content > *) applies inside; the article itself
   carries the style-guide section gap down to "The Latest" — 100px desktop,
   75px mobile via the :root --block-spacing swap at ≤768px. */
.aia-news__page {
  margin-bottom: var(--block-spacing, 100px);
}

/* ---- eyebrow ---- */
.aia-news .aia-dir__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aia-red);
  margin: 0 0 24px;
}

/* ---- grid: four-up (the shared grid is three-up) ---- */
.aia-dir-grid--news {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1200px) {
  .aia-dir-grid--news {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .aia-dir-grid--news {
    grid-template-columns: 1fr;
  }
}

/* ---- news card: sharp corners, hard-shadow hover ---- */
.aia-dir-card--news {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--aia-line);
  border-radius: 0;
  background: var(--aia-paper);
  overflow: hidden;
  margin: 0;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.aia-dir-card--news:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 0 #000;
}
.aia-dir-card--news:hover .aia-dir-card__name a {
  color: var(--aia-red);
}
.aia-dir-card--news[hidden] {
  display: none !important;
}
.aia-dir-card--news .aia-dir-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--aia-line);
  background: var(--aia-mist);
}
.aia-dir-card--news .aia-dir-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.aia-dir-card--news .aia-dir-card__title {
  padding: 16px 18px 0;
}
.aia-dir-card--news .aia-dir-card__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.aia-dir-card--news .aia-dir-card__name a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--aia-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}
.aia-dir-card--news .aia-dir-card__name a:hover {
  color: var(--aia-red);
  text-decoration-color: var(--aia-red);
}
.ncard__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aia-slate);
}

/* ---- meta footer: date left, bookmark opposite ---- */
.ncard__foot {
  margin: auto 0 0;
  padding: 13px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ncard__date {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aia-slate);
}
.ncard__bm {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--aia-line);
  border-radius: 0;
  background: transparent;
  color: var(--aia-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.ncard__bm svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.ncard__bm:hover {
  color: var(--aia-red);
  border-color: var(--aia-red);
}
.ncard__bm[aria-pressed="true"] {
  color: var(--aia-red);
  border-color: var(--aia-red);
}
.ncard__bm[aria-pressed="true"] svg {
  fill: var(--aia-red);
  stroke: var(--aia-red);
}
