/* The blog (docs/site-redesign.md, mockup approved by the owner 2026-10-22): home, post, category and author pages rendered
   by App\Blog\Renderer from the WordPress snapshot, with the chrome of resources/blog/layouts and App\Blog\Skin. Scoped to
   .ke-blog so the WordPress block styles still in the page head (they size the article bodies' blocks: images, tables,
   columns, buttons) do not reach the chrome; inside .entry-content the WordPress markup of the posts is skinned, not
   changed. Same tokens and type as ke-feature.css and the other redesign stylesheets. */
.ke-blog { --red: #b5332c; --red-dark: #8c2420; --red-soft: #fbedeb; --ink: #1c1a19; --text: #3d3936; --muted: #6f6a66; --line: #e6e1dc; --line-soft: #f0ece8; --ground: #f7f5f2; --r: 10px; --r-lg: 14px;
    --fh: "Bricolage Grotesque", "IBM Plex Sans", "Segoe UI", sans-serif; --fb: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --fm: "IBM Plex Mono", Menlo, Consolas, monospace;
    font-family: var(--fb); color: var(--text); background: #fff; font-size: 16px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; display: block; margin: 0; padding: 0; }
.ke-blog *, .ke-blog *::before, .ke-blog *::after { box-sizing: border-box; }
.ke-blog h1, .ke-blog h2, .ke-blog h3, .ke-blog h4 { font-family: var(--fh); color: var(--ink); margin: 0; letter-spacing: -0.012em; text-wrap: balance; line-height: 1.15; font-weight: 700; }
.ke-blog p { margin: 0; }
.ke-blog a { color: #1f4f8f; text-decoration: none; }
.ke-blog a:hover { color: #133565; }
.ke-blog img { max-width: 100%; height: auto; }
.ke-blog .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ke-blog .sub { font-size: 17px; color: var(--muted); }
.ke-blog .kicker { font-family: var(--fh); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; }
.ke-blog .kicker a { color: var(--muted); }
.ke-blog .kicker a:hover { color: var(--ink); }
.ke-blog .kicker span { margin: 0 6px; }
.ke-blog .kbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--r); font-weight: 600; font-size: 15.5px; text-decoration: none; background: var(--red); color: #fff; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ke-blog .kbtn:hover { background: var(--red-dark); color: #fff; }
.ke-blog .kbtn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.ke-blog .kbtn.ghost:hover { background: var(--ground); color: var(--ink); border-color: var(--ink); }
.ke-blog .kbtn.sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.ke-blog .btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ke-blog .btns.c { justify-content: center; }
/* title bands */
.ke-blog .ke-bl-title { padding: 52px 0 32px; }
.ke-blog .ke-bl-title h1 { font-size: 44px; margin-bottom: 10px; text-wrap: wrap; }
.ke-blog .ke-bl-title .sub { font-size: 18px; margin-top: 8px; }
.ke-blog .chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 0 0; border-top: 1px solid var(--line-soft); margin-top: 28px; }
.ke-blog .chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--text); background: #fff; }
.ke-blog .chip:hover { color: var(--ink); border-color: var(--ink); }
.ke-blog .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.ke-blog .ke-bl-title.author-band .who { display: flex; align-items: center; gap: 20px; }
.ke-blog .ke-bl-title.author-band h1, .ke-blog .ke-bl-title.author-band .custom-author-query-title { font-size: 34px; margin-bottom: 6px; }
.ke-blog .ke-bl-title.author-band .wp-block-avatar { flex: 0 0 72px; width: 72px; }
.ke-blog .ke-bl-title.author-band .wp-block-avatar img { width: 72px; height: 72px; max-width: none; border-radius: 50%; display: block; object-fit: cover; }
.ke-blog .ke-bl-title.author-band p, .ke-blog .ke-bl-title.author-band p.pop.lead { font-size: 16.5px; color: var(--muted); line-height: 1.6; margin: 0; }
/* post cards (the rebuilt lists, and "More from the blog") */
.ke-blog .ke-bl-list { padding: 28px 0 64px; }
.ke-blog .posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.ke-blog .post { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; }
.ke-blog .post:hover { border-color: var(--ink); }
.ke-blog .post .cat { font-family: var(--fh); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ke-blog .post .cat:hover { color: var(--ink); }
.ke-blog .post h3 { font-size: 19px; line-height: 1.3; }
.ke-blog .post h3 a { color: var(--ink); }
.ke-blog .post p { font-size: 14.5px; color: var(--text); line-height: 1.6; }
.ke-blog .post .by { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; font-size: 13.5px; color: var(--muted); }
.ke-blog .post .by a { color: var(--ink); font-weight: 600; }
.ke-blog .post .by img { width: 30px; height: 30px; max-width: none; border-radius: 50%; flex: 0 0 30px; object-fit: cover; }
.ke-blog .pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-size: 14.5px; color: var(--muted); }
/* post page */
.ke-blog.post .ke-bl-title { padding: 48px 0 28px; border-bottom: 1px solid var(--line-soft); }
.ke-blog.post .ke-bl-title h1, .ke-blog.post .ke-bl-title .wp-block-post-title { font-family: var(--fh); font-size: 38px; line-height: 1.15; margin: 10px 0 20px; color: var(--ink); font-weight: 700; text-wrap: balance; letter-spacing: -0.012em; }
.ke-blog .meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.ke-blog .meta .who { display: flex; align-items: center; gap: 10px; }
.ke-blog .meta .who > .wp-block-group, .ke-blog .meta .wp-block-avatar { flex: 0 0 40px; width: 40px; }
.ke-blog .meta .wp-block-avatar img { width: 40px; height: 40px; max-width: none; border-radius: 50%; display: block; object-fit: cover; }
.ke-blog .meta .wp-block-post-author-name { text-decoration: none !important; }
.ke-blog .meta .wp-block-post-author-name a, .ke-blog .meta a { color: var(--ink); font-weight: 600; }
.ke-blog .meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ke-blog .meta .wp-block-group, .ke-blog .meta .wp-block-post-date { display: inline; padding: 0; margin: 0; }
.ke-blog .meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--line); display: inline-block; }
.ke-blog .ke-bl-body { padding: 40px 0 56px; }
.ke-blog .docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.ke-blog .toc { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; position: sticky; top: 24px; }
.ke-blog .toc a { color: var(--muted); padding: 7px 12px; border-radius: 8px; display: block; font-size: 14.5px; line-height: 1.4; }
.ke-blog .toc a.sub { padding-left: 24px; font-size: 14px; }
.ke-blog .toc a:hover { color: var(--ink); background: var(--ground); }
.ke-blog .toc .h { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 600; padding: 0 12px 8px; }
.ke-blog .toc .rel { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
/* the article body: WordPress block markup, skinned */
.ke-blog .entry-content { min-width: 0; padding: 0; margin: 0; max-width: 760px; }   /* reading width; the posts' screenshots (mostly 1,000-1,100 px wide originals) stay closer to their own size */
.ke-blog .entry-content > * { margin-left: 0; margin-right: 0; max-width: none; }
.ke-blog .entry-content h2, .ke-blog .entry-content h2.wp-block-heading { font-size: 26px; margin: 40px 0 12px; scroll-margin-top: 100px; }
.ke-blog .entry-content > h2:first-child { margin-top: 0; }
.ke-blog .entry-content h3, .ke-blog .entry-content h3.wp-block-heading { font-size: 21px; margin: 28px 0 10px; scroll-margin-top: 100px; }
.ke-blog .entry-content h4 { font-size: 18px; margin: 22px 0 8px; }
.ke-blog .entry-content p, .ke-blog .entry-content li { font-size: 16px; line-height: 1.7; color: var(--text); }
.ke-blog .entry-content p { margin: 0 0 14px; }
.ke-blog .entry-content > p:first-child { font-size: 17.5px; color: var(--muted); font-style: italic; margin-bottom: 18px; line-height: 1.55; }
.ke-blog .entry-content ul, .ke-blog .entry-content ol { margin: 0 0 16px; padding-left: 22px; }
.ke-blog .entry-content li { margin-bottom: 8px; }
.ke-blog .entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.ke-blog .entry-content strong { font-weight: 600; color: var(--ink); }
.ke-blog .entry-content figure, .ke-blog .entry-content .wp-block-image { margin: 8px 0 20px; }
.ke-blog .entry-content figure img, .ke-blog .entry-content .wp-block-image img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(28,26,25,.05), 0 24px 48px rgba(28,26,25,.10); }
.ke-blog .entry-content figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin: 10px 0 18px; }
.ke-blog .entry-content blockquote, .ke-blog .entry-content .wp-block-quote { border-left: 3px solid var(--line); margin: 0 0 16px; padding: 4px 0 4px 18px; color: var(--muted); }
.ke-blog .entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 20px; }
.ke-blog .entry-content th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; background: var(--ground); border-bottom: 1px solid var(--line); }
.ke-blog .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ke-blog .entry-content .wp-block-table { overflow-x: auto; margin: 0 0 20px; }
.ke-blog .entry-content pre, .ke-blog .entry-content code { font-family: var(--fm); font-size: .92em; }
.ke-blog .entry-content code { background: var(--ground); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 6px; }
.ke-blog .entry-content pre { background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; overflow-x: auto; margin: 0 0 20px; }
.ke-blog .entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.ke-blog .entry-content .wp-block-buttons { margin: 8px 0 20px; }
.ke-blog .entry-content .wp-block-button__link { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--r); background: var(--red); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; }
.ke-blog .entry-content .wp-block-button__link:hover { background: var(--red-dark); color: #fff; }
.ke-blog .entry-content iframe { max-width: 100%; }
.ke-blog .author { display: flex; gap: 18px; align-items: flex-start; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin: 40px 0 0; }
.ke-blog .author > .wp-block-group, .ke-blog .author .wp-block-avatar { flex: 0 0 72px; width: 72px; }
.ke-blog .author .wp-block-avatar img { width: 72px; height: 72px; max-width: none; border-radius: 50%; display: block; object-fit: cover; }
.ke-blog .author .wp-block-group { padding: 0; margin: 0; }
.ke-blog .author .h { font-family: var(--fh); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ke-blog .author .wp-block-post-author-name { font-family: var(--fh); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.ke-blog .author .wp-block-post-author-name a { color: var(--ink); }
.ke-blog .author .wp-block-post-author-biography { font-size: 14.5px; line-height: 1.6; color: var(--text); }
.ke-blog .author .wp-block-post-author-biography a { text-decoration: underline; text-underline-offset: 3px; }
.ke-blog .more { padding: 56px 0 64px; border-top: 1px solid var(--line-soft); }
.ke-blog .more .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.ke-blog .more .head h2 { font-size: 26px; margin: 0; }
.ke-blog .more .head a { font-size: 14.5px; font-weight: 600; }
.ke-blog .final { background: var(--ink); color: #fff; padding: 64px 0; }
.ke-blog .final .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.ke-blog .final h2 { color: #fff; font-size: 32px; }
.ke-blog .final p { color: #cfc9c3; font-size: 16px; max-width: 640px; }
.ke-blog .final .kbtn { background: #fff; color: var(--ink); }
.ke-blog .final .kbtn:hover { background: var(--ground); color: var(--ink); }
.ke-blog .final .kbtn.outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.ke-blog .final .kbtn.outline:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
@media (max-width: 1000px) {
    .ke-blog .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ke-blog .docs { grid-template-columns: 1fr; gap: 28px; }
    .ke-blog .toc { flex-direction: row; flex-wrap: wrap; position: static; }
    .ke-blog .toc .h { width: 100%; }
    .ke-blog .toc .rel { width: 100%; flex-direction: row; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; }
    .ke-blog .ke-bl-title h1 { font-size: 34px; }
    .ke-blog.post .ke-bl-title h1, .ke-blog.post .ke-bl-title .wp-block-post-title { font-size: 30px; }
}
@media (max-width: 600px) {
    .ke-blog .wrap { padding: 0 16px; }
    .ke-blog .posts { grid-template-columns: 1fr; }
    .ke-blog .ke-bl-title { padding: 36px 0 24px; }
    .ke-blog .ke-bl-title h1 { font-size: 30px; }
    .ke-blog.post .ke-bl-title h1, .ke-blog.post .ke-bl-title .wp-block-post-title { font-size: 26px; }
    .ke-blog .chips { gap: 6px; }
    .ke-blog .chip { height: 32px; padding: 0 12px; font-size: 13.5px; }
    .ke-blog .author { flex-direction: column; }
    .ke-blog .ke-bl-title.author-band .who { flex-direction: column; align-items: flex-start; }
    .ke-blog .final { padding: 48px 0; }
    .ke-blog .final h2 { font-size: 26px; }
    .ke-blog .final .btns { flex-direction: column; width: 100%; }
    .ke-blog .final .kbtn { width: 100%; }
}
