/* =========================================================================
   Finler Kennisbank · versie 3.0.1
   Alleen de artikelkaarten van [fkb_posts], de knop "Laad meer" en het debugpaneel.
   Hero, koppen, zoekveld en tabbladen zijn opgemaakt met native WoodMart-instellingen in de layout.
   ========================================================================= */

/* ---------- Artikelkaarten [fkb_posts] ---------- */
.fkb-posts { display: grid; gap: 24px; grid-template-columns: repeat(var(--fkb-cols, 3), minmax(0, 1fr)); }
.fkb-post { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #ece6eb; border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.fkb-post[hidden] { display: none !important; }
.fkb-post:hover { box-shadow: 0 1px 2px rgba(98, 28, 91, .06), 0 4px 16px rgba(98, 28, 91, .07); transform: translateY(-2px); }
.fkb-post:focus-within { outline: 2px solid #d40585; outline-offset: 2px; }
.fkb-post__img { line-height: 0; background: #faf7f9; }
.fkb-post__img img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.fkb-post__noimg { display: block; aspect-ratio: 12 / 5; background: linear-gradient(135deg, #d40585, #621c5b); }
.fkb-post__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.fkb-pill { align-self: flex-start; background: #d40585; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; line-height: 1.4; }
.fkb-post .fkb-post__title { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; /* lettertype: via class wd-entities-title (WoodMart) */ text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.fkb-post__title a { color: #242424; }
.fkb-post__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* hele kaart klikbaar */
.fkb-post__title a:focus-visible { outline: none; }
.fkb-post:hover .fkb-post__title a { color: #d40585; }

.fkb-loadmore { text-align: center; margin-top: 28px; }
.fkb-btn { padding: 11px 20px !important; min-height: 0 !important; border: 0; border-radius: 6px; background: #fff !important; color: #d40585 !important; box-shadow: inset 0 0 0 1.5px #f9dcec !important; font-size: 14px; font-weight: 700; line-height: 1.4 !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; }
.fkb-btn:hover { background: #fdf0f7 !important; color: #ad036b !important; }

@media (max-width: 1024px) {
	.fkb-posts { grid-template-columns: repeat(min(var(--fkb-cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.fkb-posts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.fkb-post { transition: none; }
}

/* ---------- Debugpaneel (?fkb_debug=1) ---------- */
.fkb-dbg { position: fixed; right: 14px; bottom: 14px; z-index: 99999; width: min(520px, calc(100vw - 28px)); padding: 12px; border-radius: 10px; background: #2a1028; color: #f6e9f3; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.fkb-dbg__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font: 700 13px/1.3 "Open Sans", sans-serif; }
.fkb-dbg__h button { padding: 5px 10px; min-height: 0; border: 0; border-radius: 6px; background: #d40585; color: #fff; font-size: 12px; font-weight: 700; text-transform: none; cursor: pointer; }
.fkb-dbg pre { margin: 0; max-height: 300px; overflow: auto; white-space: pre-wrap; padding: 8px; border-radius: 6px; background: rgba(0, 0, 0, .25); color: #f0d9eb; font-size: 11.5px; }
.fkb-dbg[data-min="1"] pre { display: none; }
