/* same column width as the rest of the site (the page wrapper sets it) */
.posts_main, .post_main { width: 100%; margin: 0 auto; padding: 0 16px 60px; box-sizing: border-box; color: #222; }
/* breadcrumbs stay under the fixed header (41px) while the page scrolls */
.posts_crumbs { position: sticky; top: 41px; z-index: 3; background: #fff; font-size: 13px; color: #888; margin: 0 -16px 10px; padding: 10px 16px; border-bottom: 1px solid #eee; }
.posts_crumbs a { color: #666; }
.posts_main h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.5px; }
.posts_lead { color: #555; margin: 0 0 16px; line-height: 1.5; }
.posts_filter { margin: 0 0 20px; }
.posts_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px; }

.post_badges { display: flex; flex-wrap: wrap; gap: 6px; }
.post_badge { display: inline-flex; align-items: center; height: auto; line-height: 1.4; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-decoration: none; text-transform: none; }
.post_badge_all { background: #f0f0f0; color: #333; }

.post_card { position: relative; background: #fff; border: 1px solid #e3e3e3; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.06); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.post_card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.post_card_link { position: absolute; inset: 0; z-index: 1; }
.post_card .post_badge { position: relative; z-index: 2; }
.post_card_img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #f2f2f2; }
.post_card_noimg { display: flex; align-items: center; justify-content: center; font-size: 54px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #4bd517, #1b9e8c 60%, #3a4bd6); }
.post_card_body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.post_card h2 { font-size: 18px; line-height: 1.25; margin: 0; letter-spacing: 0; text-transform: none; padding: 0; }
.post_card p { margin: 0; color: #555; font-size: 14px; line-height: 1.45; }
.post_meta { color: #888; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 14px; }

.post_head h1 { font-size: 36px; line-height: 1.15; margin: 12px 0 10px; letter-spacing: -0.5px; }
.post figure { margin: 22px 0; }
.post figure img { width: 100%; height: auto; border-radius: 14px; display: block; border: 1px solid #eee; }
.post figcaption { color: #888; font-size: 13px; margin-top: 6px; text-align: center; }
.post p, .post li { font-size: 18px; line-height: 1.65; color: #2a2a2a; }
.post p { margin: 0 0 16px; }
.post ul { padding-left: 22px; margin: 0 0 16px; }
.post li { margin: 6px 0; }
.post a { color: #2f7d12; }
.post h2 { font-size: 21px; line-height: 1.3; margin: 34px 0 12px; letter-spacing: 0.4px; text-transform: uppercase; padding: 0; scroll-margin-top: 100px; }
.post_intro p { font-size: 20px; color: #333; }
.post_toc { background: #f7f7f7; border-radius: 14px; padding: 14px 18px; margin: 20px 0; }
.post_toc ol { margin: 8px 0 0; padding-left: 20px; }
.post_toc li { font-size: 16px; margin: 4px 0; }
.post_toc a { color: #333; }
.post_cta { margin: 36px 0; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #effbe9, #e6f6f6); text-align: center; }
.post_cta b { font-size: 20px; }
.post_cta p { color: #444; margin: 8px 0 14px; }
.post_cta a { display: inline-block; background: #4bd517; color: #fff; font-weight: 700; padding: 11px 22px; border-radius: 12px; text-decoration: none; }
.post_related h2 { font-size: 22px; text-transform: none; padding: 0; letter-spacing: 0; }
@media (max-width: 600px) { .post_head h1 { font-size: 28px; } .post p, .post li { font-size: 17px; } .post_intro p { font-size: 18px; } }

.post_mini_list { display: flex; flex-direction: column; gap: 10px; }
.post_mini { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid #eee; text-decoration: none; color: #222; }
.post_mini:hover { background: #fafafa; }
.post_mini img, .post_mini_noimg { flex: 0 0 96px; width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.post_mini_noimg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, #4bd517, #3a4bd6); }
.post_mini_text { display: flex; flex-direction: column; gap: 3px; }
.post_mini_text b { font-size: 15px; line-height: 1.3; }
.post_mini_text small { color: #888; font-size: 12px; }

.post_num_inline { color: inherit; font-weight: inherit; }
