/* WordPress-specific additions on top of the compiled design styles. */

[hidden] { display: none !important; }

/* Keep the fixed header below the WordPress admin bar when logged in. */
.admin-bar #main-navigation { top: 32px; }
@media (max-width: 782px) { .admin-bar #main-navigation { top: 46px; } }

/* Desktop nav: panels open below the bar. */
#site-navigation { flex-wrap: wrap; }
#site-navigation .nav-panel { z-index: 50; }
#site-navigation .nav-item svg { width: 16px; height: 16px; }

/* Mobile drawer sits under the 60px header bar. */
.nav-drawer { top: 79px; max-height: calc(100vh - 79px); background: #fff; }

/* Search panel inside the fixed header. */
.inn-search-panel { box-shadow: 0 8px 16px -8px rgb(0 0 0 / .15); }

/* Placeholder for articles without an image. */
.inn-img-placeholder svg { width: 36px; height: 36px; }

/* Legacy WordPress article markup (alignment, captions, embeds, tables). */
.inn-content img { max-width: 100%; height: auto; }
.inn-content .aligncenter, .inn-content img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.inn-content .alignleft { float: left; margin: .25em 1.5em 1em 0; }
.inn-content .alignright { float: right; margin: .25em 0 1em 1.5em; }
.inn-content .wp-caption, .inn-content figure { max-width: 100%; }
.inn-content .wp-caption-text, .inn-content figcaption { font-size: 14px; line-height: 20px; color: #52525b; margin-top: .5em; }
.inn-content iframe, .inn-content video, .inn-content embed { max-width: 100%; }
.inn-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.inn-content th, .inn-content td { border: 1px solid #e4e4e7; padding: .5em .75em; text-align: left; vertical-align: top; }
.inn-content::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) {
	.inn-content .alignleft, .inn-content .alignright { float: none; margin: 1em 0; }
}

/* Article table of contents sticks below the fixed header. */
.prose { --toc-sticky-offset: 90px; }
@media (min-width: 768px) { .prose { --toc-sticky-offset: 130px; } }
h2[id] { scroll-margin-top: 140px; }

/* Default author avatar. */
.inn-avatar-default svg { width: 80%; height: 80%; }
