/* WordPress-only additions. The site's own styles are site.css (or the copy saved in Appearance > Dignisys Next > CSS). */

/* Admin bar: the fixed header and the mobile menu sit below it */
.admin-bar .site-header,
.admin-bar .drawer,
.admin-bar .dignisys-nav { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header,
	.admin-bar .drawer,
	.admin-bar .dignisys-nav { top: 46px; }
}
@media (max-width: 600px) {
	#wpadminbar { position: fixed; }
}

/* Blog: the articles past the first three on the Insights page, and the archive pages' numbers */
.dgn-more { margin-top: clamp(56px, 7vw, 104px); }
.insights .pagination { margin-top: clamp(48px, 6vw, 80px); }
.insights .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.insights .page-numbers {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 550; color: var(--ink); transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.insights a.page-numbers:hover { border-color: var(--ink); }
.insights .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.insights .page-numbers.dots { border-color: transparent; }

/* Blog post text from the block editor, in the article column */
.prose--article figure { margin: 2em 0; }
.prose--article img { height: auto; border-radius: var(--r-md); }
.prose--article figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.prose--article .alignwide, .prose--article .alignfull { max-width: 100%; }
.prose--article .wp-block-embed iframe, .prose--article iframe, .prose--article video { width: 100%; border-radius: var(--r-md); }
.prose--article pre, .prose--article .wp-block-code {
	overflow-x: auto; padding: 20px 24px; border-radius: var(--r-sm); background: var(--navy); color: #e6ebf3;
	font-family: var(--mono); font-size: 14.5px; line-height: 1.6;
}
.prose--article :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--tint); font-family: var(--mono); font-size: 0.9em; color: var(--ink); }
.prose--article hr, .prose--article .wp-block-separator { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose--article .wp-block-quote p, .prose--article blockquote p { font-size: 1.15rem; }
.prose--article cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); }
.prose--article .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.prose--article .wp-block-button__link {
	display: inline-flex; align-items: center; height: 54px; padding: 0 26px; border-radius: 999px; background: var(--red);
	color: #fff; font-size: 15.5px; font-weight: 550; text-decoration: none; transition: background-color 0.3s var(--ease);
}
.prose--article .wp-block-button__link:hover { background: var(--red-hover); }

/* Posts, archives and pages without the HTML template (index.php): a text column below the fixed header */
.dgn-plain { padding-top: calc(var(--header) + clamp(40px, 6vw, 88px)); }
.dgn-plain .display { margin: 0 0 clamp(24px, 3vw, 40px); }
.dgn-entry + .dgn-entry { margin-top: clamp(40px, 5vw, 64px); }
.dgn-entry .h3 a:hover { color: var(--accent, currentColor); }
.dgn-plain .prose img,
.dgn-plain .prose figure { max-width: 100%; height: auto; margin: 0; }
.dgn-plain .prose a { text-decoration: underline; text-underline-offset: 0.2em; }
.dgn-plain .nav-links { display: flex; gap: 16px; margin-top: 48px; }
.wp-block-image img { border-radius: 12px; }
.aligncenter { margin-inline: auto; }

/* WordPress screen-reader text (pagination labels, comment forms) */
.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 !important; width: 1px; word-wrap: normal !important;
}
