/* The Library (page 13, /knowledgebase/) as native blocks.
   The page used to be one raw HTML block with its own <style> element and inline styles. It is now
   ordinary blocks inside a <main class="acg-p-library"> group. The old <style> rules (kb-grid, kb-card,
   kb-feat) live here, scoped under the page class; each former inline style is one class with
   !important, because an inline style beat every rule. Restyle the page here, never by putting
   <style> or style="" back into the content. */

/* former <style> element */
.acg-p-library .kb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin-top:6px}
.acg-p-library .kb-card{background:var(--surface);border:1px solid var(--hairline);border-radius:12px;padding:22px;border-top:4px solid}
.acg-p-library .kb-card h3{font-size:18px;margin-bottom:8px}
.acg-p-library .kb-card p{font-size:14.5px;color:var(--muted);margin:0 0 14px}
.acg-p-library .kb-card .more{font-weight:600;font-size:14px;text-decoration:none}
.acg-p-library .kb-feat{display:grid;gap:14px;max-width:820px;margin:6px auto 0}
.acg-p-library .kb-feat .row{background:var(--surface);border:1px solid var(--hairline);border-radius:10px;padding:16px 20px}
.acg-p-library .kb-feat .row h3{font-size:16.5px;margin-bottom:4px}
.acg-p-library .kb-feat .row p{font-size:14.5px;color:var(--muted);margin:0 0 8px}
.acg-p-library .kb-feat .row .more{font-weight:600;font-size:13.5px;text-decoration:none}

/* former inline styles, one class each */
.acg-p-library .kb-red{border-top-color:var(--red) !important}
.acg-p-library .kb-gold{border-top-color:var(--gold) !important}
.acg-p-library .kb-green{border-top-color:var(--green) !important}
.acg-p-library .kb-cyan{border-top-color:var(--cyan) !important}
.acg-p-library .kb-blue{border-top-color:var(--blue) !important}
.acg-p-library .kb-blue-d{border-top-color:var(--blue-d) !important}
.acg-p-library .kb-magenta{border-top-color:var(--magenta) !important}
.acg-p-library .quiet-center{text-align:center !important;color:var(--muted) !important}
.acg-p-library .kb-grid.kb-grid-narrow{grid-template-columns:repeat(auto-fit,minmax(226px,1fr)) !important}

/* "Read it" link: the link was bare inside the card; it now sits in its own paragraph with no extra space. */
.acg-p-library .kb-card p.more-line,.acg-p-library .kb-feat .row p.more-line{margin:0}

/* Buttons block: shared look in style.css (0.17.0); only this page's top margin here. */
.acg-p-library .wp-block-buttons.actions{margin-top:8px}

/* WordPress's first/last-child margin rules outweigh a few theme rules here; restate them. */
.acg-p-library .sec-head h2:last-child{margin-bottom:14px}

/* Shelf photos (0.18.1): a 3:2 band across the top of each of the five shelf cards, edge to edge under the
   colour bar; the title and text stay below it. Files in assets/shelf/ (900x600 WebP, Eric's picks 2026-11-16).
   Decorative (alt=""): the card's own title names the shelf. */
.acg-p-library .kb-card figure.shelf-photo{margin:-22px -22px 18px;aspect-ratio:3/2;overflow:hidden;background:var(--paper-deep)}
.acg-p-library .kb-card figure.shelf-photo img{width:100%;height:100%;object-fit:cover;display:block}

/* Restated against the last-child reset: the 'see everything' line keeps no bottom margin, and the Explore links keep their old line height. */
.acg-p-library p.kb-all{margin:26px 0 0}
.acg-p-library .kb-card p.more-line{line-height:1.6}
