/*
Theme Name: MEC
Theme URI: https://www.mediationeducatie.nl
Author: Diesite
Description: Blokthema voor het Mediation Educatie Centrum, ontwerp door Malleo (2026). De blokken en contenttypes zitten in de plugin MEC Core.
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: mec
*/

/* Base, matching the design. Tokens and components: plugins/mec-core. */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; margin: 0; }
p { color: var(--muted, #5c6b71); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > main, main.wp-block-group { margin: 0; }
main > .entry-content > *,
.wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }

/* Sticky header: the top bar scrolls away, the navigation stays. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - 40px); z-index: 60; }
@media (max-width: 600px) { .wp-site-blocks > header.wp-block-template-part { top: -40px; } }

/* Long-form content (blog posts, plain pages): readable column. */
.mec-prose { max-width: 760px; margin: 0 auto; padding: 0 26px; }
.mec-prose > * + * { margin-top: 1.1rem; }
.mec-prose p, .mec-prose li { color: var(--ink); }
.mec-prose h2 { margin-top: 2.2rem; }
.mec-prose h3 { margin-top: 1.6rem; }
.mec-prose img { border-radius: var(--radius); }

.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100; background: #fff; padding: 10px 16px; left: 10px; top: 10px; }

/* Blog list (core Query Loop in parts/post-list.html), styled like the design's blog cards. */
.wp-block-post-template.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.wp-block-post-template.blog-grid > li { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; margin: 0; transition: transform .25s, box-shadow .25s; }
.wp-block-post-template.blog-grid > li:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -30px rgba(9, 78, 94, .4); }
.blog-grid .blog-date { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sand-600); margin: 0 0 10px; }
.blog-grid .blog-title { font-size: 1.2rem; line-height: 1.25; margin: 0 0 10px; }
.blog-grid .blog-title a { color: var(--petrol-900); }
.blog-grid .wp-block-post-excerpt { flex: 1; display: flex; flex-direction: column; margin: 0; }
.blog-grid .wp-block-post-excerpt__excerpt { color: var(--muted); font-size: .94rem; margin: 0 0 16px; flex: 1; }
.blog-grid .wp-block-post-excerpt__more-link { color: var(--petrol); font-weight: 600; font-size: .9rem; }
.wp-block-query-pagination { margin-top: 40px; gap: .5rem; font-weight: 600; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: .4rem .8rem; border-radius: 999px; color: var(--petrol); }
.wp-block-query-pagination .current { background: var(--petrol); color: #fff; }
.section-head .wp-block-query-title { margin: .5rem 0 0; }
@media (max-width: 860px) { .wp-block-post-template.blog-grid { grid-template-columns: 1fr; } }
