@charset "UTF-8";
/*
 * Post listing — the posts page and every post archive.
 *
 * Loaded only on those templates, via inc/enqueue.php. Every selector is
 * kf-posts- prefixed, deliberately distinct from the homepage's kf-blog-
 * section so the two cannot reach each other.
 *
 * The card is the same design that section shows, written out again here: per
 * the project rule each template owns its component CSS.
 */
.kf-posts {
  padding: 24px 0 64px;
}

/* -------------------------------------------------------------------------
 * Masthead
 * ---------------------------------------------------------------------- */
.kf-posts__masthead {
  padding: 28px 32px;
  margin-bottom: 32px;
  background: #f3f9f7;
  border-radius: 12px;
}

.kf-posts__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0c7d5f;
}

/*
 * inline-block so the box shrinks to the words and the rule below can be
 * measured from the title rather than from the panel.
 */
.kf-posts__title {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 20px;
  font-size: 32px;
  line-height: 1.15;
  color: #1f2933;
}
.kf-posts__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 14px);
  height: 2px;
  background: #0f9d78;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 157, 120, 0.35);
}

.kf-posts__intro {
  max-width: 72ch;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #5c6b73;
}
.kf-posts__intro p {
  margin: 0 0 12px;
}
.kf-posts__intro p:last-child {
  margin-bottom: 0;
}
.kf-posts__intro a {
  color: #0c7d5f;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * Grid and card
 * ---------------------------------------------------------------------- */
.kf-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.kf-posts__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8e6;
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.kf-posts__card:hover {
  border-color: #0f9d78;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.kf-posts__card:focus-visible {
  outline: 2px solid #0f9d78;
  outline-offset: 3px;
}

/*
 * No forced ratio: the picture sets the height itself, so it meets all four
 * edges exactly and is never cropped or letterboxed.
 */
.kf-posts__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f9f7;
  overflow: hidden;
}

.kf-posts__image {
  display: block;
  width: 100%;
  height: auto;
}

.kf-posts__placeholder {
  display: inline-flex;
  padding: 56px 0;
  color: #0f9d78;
  opacity: 0.5;
}

.kf-posts__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  padding: 20px;
}

.kf-posts__date {
  font-size: 13px;
  color: #5c6b73;
}

.kf-posts__heading {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2933;
}

.kf-posts__card:hover .kf-posts__heading {
  color: #0c7d5f;
}

.kf-posts__excerpt {
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  /*
   * Justified copy in a card column is 255px wide on a phone and 299px in the
   * two-up grid — five or six Dutch words a line, and words like
   * "erectiestoornissen" are a third of the measure on their own, so the
   * spaces opened into rivers. The document is `lang="nl-NL"`, so a browser
   * carrying a Dutch hyphenation dictionary puts the slack back inside the
   * words instead of between them; one that has none simply ignores this and
   * nothing is lost. Justification itself is kept — it is the house style.
   * (Not verifiable in the headless Chrome used for measurement here: it
   * ships no dictionaries, so line counts are unchanged in the probe.)
   */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  color: #5c6b73;
}

/* Pushed to the foot of the card so every card's link sits on one line. */
.kf-posts__more {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #0c7d5f;
}

/* -------------------------------------------------------------------------
 * Pagination
 * ---------------------------------------------------------------------- */
.kf-posts__pagination {
  margin-top: 32px;
}
.kf-posts__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.kf-posts__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #5c6b73;
  background: #ffffff;
  border: 1px solid #e2e8e6;
  border-radius: 8px;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.kf-posts__pagination a.page-numbers:hover {
  color: #0c7d5f;
  border-color: #0f9d78;
  box-shadow: 0 4px 10px rgba(15, 157, 120, 0.15);
}
.kf-posts__pagination .page-numbers.current {
  color: #fff;
  background: #0f9d78;
  border-color: #0f9d78;
  box-shadow: 0 2px 6px rgba(15, 157, 120, 0.25);
}

/* -------------------------------------------------------------------------
 * Empty state
 * ---------------------------------------------------------------------- */
.kf-posts__empty {
  padding: 48px 24px;
  text-align: center;
  background: #f3f9f7;
  border-radius: 12px;
}
.kf-posts__empty p {
  margin: 0 0 20px;
  font-size: 16px;
  color: #5c6b73;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  .kf-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .kf-posts__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kf-posts__masthead {
    padding: 22px 20px;
  }
  .kf-posts__title {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kf-posts *,
  .kf-posts *::before,
  .kf-posts *::after {
    transition-duration: 0.01ms !important;
  }
}
