/*
 * WordPress-only styles. Everything else (tokens, type, layout utilities) comes from the Astro build.
 * Colors use the Astro tokens' CSS variables with the token value as fallback.
 */

/* Keep the sticky header and the mobile drawer below the admin bar when logged in. */
.admin-bar .gg-site-header { top: 32px; }
.admin-bar .gg-mobile-nav { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .gg-site-header { top: 46px; }
	.admin-bar .gg-mobile-nav { top: 46px; }
}
@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	.admin-bar .gg-site-header { top: 0; }
}

/* Header and footer links: WordPress's global styles underline every link (unlayered, so it beats Tailwind). */
.gg-site-header a,
.gg-site-footer a { text-decoration: none; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* Blog pagination (gg_pagination()). */
.gg-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem;
	padding: 0 0.875rem; border: 1px solid var(--color-line, #dde2e7); border-radius: 999px;
	font-size: 14px; font-weight: 600; color: var(--color-slate, #434d66); text-decoration: none;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.gg-pagination a.page-numbers:hover { border-color: var(--color-primary, #4064b0); color: var(--color-primary, #4064b0); }
.gg-pagination .page-numbers.current { background: var(--color-primary, #4064b0); border-color: var(--color-primary, #4064b0); color: #fff; }
.gg-pagination .page-numbers.dots { border-color: transparent; }

/* Core block/editor classes inside post content (prose handles type). */
.article-body .alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.article-body .alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.article-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.article-body img { height: auto; border-radius: 14px; }
.article-body .wp-caption-text,
.article-body figcaption { font-size: 13px; color: var(--color-muted, #5f6368); }
