/*
Theme Name: D04
Theme URI: 
Author: District 04
Author URI: https://www.district04cnca.org
Description: D04 is District 04's Wordpress theme. It is based on Twenty Twenty-Four.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: d04
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

html,
body,
.wp-site-blocks {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.line-clamp-3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
}

main:first-of-type {
	/* display: flex; */
	flex: 1 0 auto;
	margin-block-start: 0;
	margin-block-end: 0;
}

h1 a,
h2 a,
h3 a,
.wp-block-quote a {
	font-family: var(--wp--preset--font-family--heading);
}

.tw-stretched-link {
}

header:has(> .is-position-sticky) {
	position: sticky;
	top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
	z-index: 100;
}

/*
Navigation
*/
.wp-block-navigation__container {
	gap: 0.25em;
}

.wp-block-navigation-item__content {
	border-radius: 0.25em;
	padding: 0.25em 0.5em;
}

.wp-block-navigation-item__content:hover,
.wp-block-navigation-item__content:focus {
	text-decoration: none;
	background: var(--wp--preset--color--custom-black-005);
}

.current-menu-item .wp-block-navigation-item__content {
	background: var(--wp--preset--color--contrast-2);
	/* background: var(--wp--preset--color--accent-2); */
}
.current-menu-item .wp-block-navigation-item__label {
	color: var(--wp--preset--color--base-2);
}
.current-menu-ancestor .wp-block-navigation-item__content {
	background: var(--wp--preset--color--custom-black-010);
	background: red;
}
.current-menu-ancestor .wp-block-navigation-item__label {
	color: var(--wp--preset--color--contrast);
}
