/* Blog-only styles. Everything else comes from the main site's css/site.min.css */

/* Topic pills */
.cat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.cat-pills a { border: 1px solid var(--line); background: var(--surface); padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; }
.cat-pills a:hover, .cat-pills a[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-img { display: block; background: #f4f1ec; }
.post-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card-body > p { font-size: 15px; flex-grow: 1; }
.post-card-title { font-size: 21px; line-height: 1.3; margin: 6px 0 10px; }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-cat { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cta); text-decoration: none; }
.post-meta { font-size: 14px; color: var(--muted); margin: 0; }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.blog-pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; }
.blog-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Single article */
.post-header { max-width: 820px; margin: 0 auto; padding: 48px 20px 18px; }
.post-header h1 { font-size: 42px; color: var(--accent); line-height: 1.15; margin: 6px 0 12px; }
.post-hero-img { max-width: 1000px; margin: 10px auto 30px; padding: 0 20px; }
.post-hero-img img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-md); }
.post-content { max-width: 760px; margin: 0 auto; padding: 0 20px 64px; font-size: 18px; }
.post-content p, .post-content li { color: #3a3a40; }
.post-content h2 { font-size: 30px; margin: 42px 0 14px; }
.post-content h3 { font-size: 22px; margin: 30px 0 10px; font-family: var(--font-body); font-weight: 700; }
.post-content img { border-radius: var(--radius); height: auto; }
.post-content figure { margin: 28px 0; }
.post-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.post-content blockquote { border-left: 4px solid var(--cta); margin: 28px 0; padding: 6px 0 6px 20px; font-style: italic; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-content th { background: var(--accent-soft); }
.post-content a { color: var(--accent); font-weight: 600; }
.post-content ul, .post-content ol { padding-left: 1.3rem; }
.post-content .wp-block-image.aligncenter, .post-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.post-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
@media (max-width: 900px) { .post-content .alignwide { margin-left: 0; margin-right: 0; } }

/* Quote box inside articles */
.post-cta { margin: 48px 0 0; padding: 28px 30px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(43, 45, 110, .12); }
.post-cta h2 { font-size: 26px !important; margin: 0 0 8px !important; color: var(--accent); }
.post-cta p { color: var(--text); }
.post-cta .hero-buttons { justify-content: flex-start; margin-top: 14px; }
.post-cta a { font-weight: 600; }

/* Search form */
.blog-search { margin-top: 24px; }
.blog-search form { display: flex; gap: 8px; justify-content: center; }
.blog-search input[type="search"] { padding: 10px 14px; border: 1px solid #D9D6CF; border-radius: 8px; min-width: 240px; }
.blog-search input[type="submit"] { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; }

@media (max-width: 767.98px) {
  .post-header { padding-top: 30px; }
  .post-header h1 { font-size: 30px; }
  .post-content { font-size: 17px; }
  .post-content h2 { font-size: 24px; }
  .post-cta { padding: 22px 18px; }
}

/* When you are logged in, move the site menu below the WordPress admin bar */
.admin-bar .site-header .navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header .navbar { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }
