/* Everything8valve theme styles */

/* Header, main and footer sit flush against each other. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Keyboard focus is always visible. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.wp-element-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 3px;
}
.e8v-footer a:focus-visible {
	outline-color: var(--wp--preset--color--white);
}

/* Header */
.e8v-header .wp-block-site-title a {
	text-decoration: none;
}
.e8v-brand-mark {
	margin: 0;
	flex-shrink: 0;
}
.e8v-brand-mark img {
	display: block;
}
.e8v-header .wp-block-navigation a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}
.e8v-header .wp-block-navigation a:hover,
.e8v-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--blue);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

/* Buttons: outline style uses the logo blue. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--blue);
	border-color: var(--wp--preset--color--blue);
	background: transparent;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--blue);
}

/* Hero */
.e8v-hero-title {
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.005em;
	max-width: 14ch;
	text-wrap: balance;
}
.e8v-hero-lede {
	max-width: 34em;
	line-height: 1.55;
}
.e8v-hero-logo img {
	width: 300px !important;
	height: auto;
}
@media (max-width: 781px) {
	.e8v-hero-cols {
		flex-direction: column-reverse;
	}
	.e8v-hero-logo img {
		width: 150px !important;
	}
	.e8v-hero-logo .wp-block-image {
		text-align: left;
		margin-left: 0;
	}
}

/* ABA feature: the engine code is the visual centerpiece. */
.e8v-engine-code {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.02em;
}
.e8v-engine-code-xl {
	font-size: clamp(6rem, 16vw, 12rem);
}
.e8v-engine-code a {
	color: var(--wp--preset--color--blue);
	text-decoration: none;
}
.e8v-engine-code a:hover {
	color: var(--wp--preset--color--blue-dark);
}
.e8v-feature-code {
	padding-top: 1rem;
	border-top: 3px solid var(--wp--preset--color--blue);
}
.e8v-engine-size {
	margin-top: 0.75rem !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 500;
	color: var(--wp--preset--color--steel);
}
.e8v-feature h2 {
	margin-top: 0;
}

/* Post lists */
.e8v-post-list .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}
.e8v-post-list .wp-block-post-template > li {
	margin: 0;
	padding: 1.5rem 0;
	border-top: 1px solid var(--wp--preset--color--rule);
}
.e8v-post-list .wp-block-post-template > li:first-child {
	border-top: 0;
	padding-top: 0.5rem;
}
.e8v-post-row .wp-block-post-title {
	margin: 0;
}
.e8v-post-row .wp-block-post-excerpt,
.e8v-post-row .wp-block-post-excerpt__excerpt {
	margin: 0;
}
.e8v-post-list-wide .e8v-post-row > .wp-block-group {
	flex: 1 1 auto;
	max-width: 42rem;
}
.e8v-thumb {
	flex: 0 0 220px;
	margin: 0;
}
@media (max-width: 640px) {
	.e8v-post-list-wide .e8v-post-row {
		flex-direction: column;
	}
	.e8v-thumb {
		flex-basis: auto;
		width: 100% !important;
	}
}
.e8v-more-link {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 600;
}

/* Engine-code tags read like part labels. */
.e8v-tags a,
.e8v-kicker a {
	display: inline-block;
	padding: 0.05rem 0.45rem;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--blue);
	text-decoration: none;
}
.e8v-tags a:hover {
	border-color: var(--wp--preset--color--blue);
}
.e8v-tags .wp-block-post-terms__separator {
	display: inline-block;
	width: 0.35rem;
	font-size: 0;
}
.e8v-kicker a {
	border: 0;
	padding: 0;
	font-size: 1.125rem;
	letter-spacing: 0.02em;
}

/* Guide topics list */
.e8v-topic-list {
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	list-style: none;
}
.e8v-topic-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.7rem 0;
	border-top: 1px solid var(--wp--preset--color--rule);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3125rem;
	font-weight: 500;
	color: var(--wp--preset--color--steel);
}
.e8v-topic-list li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--rule);
}
.e8v-topic-list a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.e8v-topic-list a:hover {
	color: var(--wp--preset--color--blue);
}

/* Long-form reading: guides and build logs */
.e8v-prose > * + * {
	margin-block-start: 1.1em;
}
.e8v-prose h2 {
	margin-block-start: 1.8em;
}
.e8v-prose h3 {
	margin-block-start: 1.8em;
}
.e8v-prose ol,
.e8v-prose ul {
	padding-left: 1.4em;
}
.e8v-prose li + li {
	margin-top: 0.35em;
}
.e8v-prose code:not(pre code) {
	padding: 0.1em 0.35em;
	background: var(--wp--preset--color--mist);
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875em;
}
.wp-block-code {
	overflow-x: auto;
}

/* Tables hold tune values, pinouts and part numbers. */
.wp-block-table {
	overflow-x: auto;
}
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
	font-variant-numeric: tabular-nums;
}
.wp-block-table th,
.wp-block-table td {
	padding: 0.55rem 0.8rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	text-align: left;
	vertical-align: top;
}
.wp-block-table thead th {
	border-bottom: 2px solid var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.0625rem;
	font-weight: 600;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: var(--wp--preset--color--mist);
}

/* Single post meta */
.e8v-meta {
	margin-top: 0.75rem;
}
.e8v-meta .wp-block-post-author-name {
	margin: 0;
}
.e8v-post-nav a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1875rem;
	font-weight: 600;
	text-decoration: none;
}

/* Comments */
.e8v-comments .wp-block-comment-template {
	padding: 0;
	list-style: none;
}
.e8v-comment {
	padding: 1.25rem 0;
	border-top: 1px solid var(--wp--preset--color--rule);
}
.e8v-comments textarea,
.e8v-comments input[type="text"],
.e8v-comments input[type="email"],
.e8v-comments input[type="url"],
.e8v-search input[type="search"] {
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 2px;
	font-family: inherit;
	font-size: 1rem;
	background: var(--wp--preset--color--white);
}
.e8v-search .wp-block-search__inside-wrapper {
	max-width: 36rem;
}

/* Footer */
.e8v-footer .wp-block-navigation {
	font-size: 1.25rem;
}
.e8v-footer .wp-block-navigation a {
	text-decoration: none;
}
.e8v-footer .wp-block-navigation a:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.e8v-footer-legal {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* Archive and index headings */
.wp-block-query-title,
.e8v-page-lede {
	margin-bottom: var(--wp--preset--spacing--50);
}
.wp-block-query-title + .wp-block-term-description:empty {
	display: none;
}
.e8v-cats a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
}
.e8v-cats a:hover {
	text-decoration: underline;
}
