/**
 * Little Sparrows Technologies — WordPress-only styles:
 * admin bar, Contact Form 7 inside the theme's .form grid, blog listing and posts.
 */

/* Sticky header below the admin bar */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 0; } }

/* Elements that slide in sideways (GSAP) must not cause horizontal scroll on mobile */
main { overflow-x: clip; }

/* Contact Form 7 within .form */
.form .wpcf7-form-control-wrap { display: block; }
.form .wpcf7-form-control-wrap input,
.form .wpcf7-form-control-wrap select,
.form .wpcf7-form-control-wrap textarea { width: 100%; }
.form input.btn { min-height: 50px; padding: 0 26px; font: 600 15px/1 var(--font-body); border: 1.5px solid var(--mint-600); background: var(--mint-600); color: #fff; cursor: pointer; }
.form input.btn:hover { background: var(--ink-900); border-color: var(--ink-900); }
.form .wpcf7-spinner { margin: 0 0 0 12px; align-self: center; }
.form .wpcf7-response-output { grid-column: 1 / -1; margin: 0 !important; padding: 10px 14px !important; border-radius: 12px; font-size: 14px; }
.form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12.5px; }
.form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.form .wpcf7-acceptance label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.form .wpcf7-acceptance input { width: 18px; height: 18px; min-height: 0; margin-top: 1px; padding: 0; accent-color: var(--mint-600); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--mint-600); }

/* Narrow column for posts and generic pages */
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); }

/* News listing */
.news-list { display: grid; gap: 20px; }
@media (min-width: 700px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-list { grid-template-columns: repeat(3, 1fr); } }
.npost h3 a { color: inherit; }
.npost h3 a:hover { color: var(--mint-600); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 50px; font-weight: 600; }
.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* Single post */
.single .rhero__title { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.15; }
.single .rhero .npost__tag { margin-bottom: 14px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; font-size: 14px; color: #8a9093; }
.post-meta a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #0a66c2; }
.post-meta svg { width: 16px; height: 16px; }
.post-cover { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; }
.post-cover img { width: 100%; height: auto; }
.post-back { margin-top: 48px; }

/* Editor content */
.prose { font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font: 700 clamp(24px, 2.4vw, 30px)/1.2 var(--font-head); color: var(--ink-900); }
.prose h3 { margin-top: 1.6em; font: 700 21px/1.3 var(--font-head); color: var(--ink-900); }
.prose a { color: var(--mint-600); text-decoration: underline; text-underline-offset: 3px; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { height: auto; border-radius: 14px; }
.prose blockquote { padding-left: 20px; border-left: 3px solid var(--mint); font-style: italic; }
.prose .wp-caption-text,
.prose figcaption { margin-top: 8px; font-size: 14px; color: #8a9093; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }

/* Accessibility helper used by WordPress core */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Mobile menu: the burger opens the main nav as a panel below the header */
@media (max-width: 1023px) {
	.header.is-open .nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(38, 48, 46, .45); }
	.header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.header.is-open .nav a::after { display: none; }
	.header.is-open .burger span { background: transparent; }
	.header.is-open .burger span::before { top: 0; transform: rotate(45deg); }
	.header.is-open .burger span::after { top: 0; transform: rotate(-45deg); }
}
