/**
 * Theme additions for WordPress-generated markup and functional behaviour.
 * Visual source rules live in app.css.
 */

[hidden] {
	display: none !important;
}

.scroll-progress {
	transform: scaleX(0);
}

/* Reveal animations */
.theme-reveal:not(.is-revealed) {
	opacity: 0;
	transform: translateY(28px);
}
.theme-reveal {
	transition: opacity 0.65s ease, transform 0.65s ease;
}
.theme-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

.theme-reveal-hero:not(.is-revealed) {
	opacity: 0;
	transform: translateY(20px);
}
.theme-reveal-hero {
	transition: opacity 0.9s ease, transform 0.9s ease;
}
.theme-reveal-hero.is-revealed {
	opacity: 1;
	transform: none;
}

.theme-reveal-media:not(.is-revealed) {
	opacity: 0;
	transform: translateY(24px);
}
.theme-reveal-media {
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.theme-reveal-media.is-revealed {
	opacity: 1;
	transform: none;
}

.theme-reveal-ribbon:not(.is-revealed) {
	opacity: 0;
	transform: translateX(-12px) rotate(0deg);
}
.theme-reveal-ribbon {
	transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}
.theme-reveal-ribbon.is-revealed {
	opacity: 1;
	transform: translateX(0) rotate(-5deg);
}

.theme-reveal-card:not(.is-revealed) {
	opacity: 0;
	transform: translateY(32px);
}
.theme-reveal-card {
	transition: opacity 0.55s ease, transform 0.55s ease;
}
.theme-reveal-card.is-revealed {
	opacity: 1;
}
.theme-reveal-card.is-revealed:hover {
	transition: transform 0.35s ease;
}

body.is-customizer .theme-reveal,
body.is-customizer .theme-reveal-hero,
body.is-customizer .theme-reveal-media,
body.is-customizer .theme-reveal-card {
	opacity: 1 !important;
	transform: none !important;
}
body.is-customizer .theme-reveal-ribbon {
	opacity: 1 !important;
	transform: translateX(0) rotate(-5deg) !important;
}

/* Anchors used in place of the source buttons keep the source metrics. */
.hero-actions a {
	min-height: 56px;
	padding: 16px 26px;
}
.hero-actions a:nth-child(2) {
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary-foreground) / 0.7);
}
.hero-actions a:nth-child(2):hover {
	background: hsl(var(--primary-foreground));
	color: hsl(var(--foreground));
}

.service-item > a {
	justify-content: flex-start;
	white-space: normal;
	height: auto;
	padding: 0;
	color: hsl(var(--accent));
	text-align: left;
	margin-top: 15px;
}

.contact-reader-note a {
	padding-left: 0;
	color: hsl(var(--accent));
}

.leadership-heading a {
	white-space: normal;
	height: auto;
	text-align: left;
	justify-content: flex-start;
}

@media (prefers-reduced-motion: no-preference) {
	.hero-actions a svg:last-child {
		transition: transform 0.3s ease;
	}
	.hero-actions a:hover svg:last-child {
		transform: translateX(5px);
	}
}

.footer-socials a {
	color: hsl(var(--background));
	border-color: hsl(var(--background) / 0.25);
}

.mobile-menu a {
	display: flex;
	justify-content: flex-start;
	width: 100%;
	font-size: 19px;
}
.mobile-menu a.mobile-sub {
	padding-left: 30px;
	color: hsl(var(--muted-foreground));
}

/* Site identity */
.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}
.site-logo-text {
	line-height: var(--logo-height);
	display: block;
}

/* Admin bar offset for the fixed header */
body.admin-bar .site-header {
	top: 32px;
}
body.admin-bar .article-dialog > .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
	body.admin-bar .article-dialog > .site-header {
		top: 46px;
	}
}

/* Inner pages */
.theme-inner-main {
	padding-top: 106px;
}
@media (max-width: 767px) {
	.theme-inner-main {
		padding-top: 90px;
	}
}

.theme-page-title {
	font-family: var(--font-display);
	font-size: 54px;
	line-height: 1.02;
	font-weight: 700;
	margin-bottom: 24px;
}
@media (max-width: 767px) {
	.theme-page-title {
		font-size: 44px;
	}
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	line-height: 1.02;
	font-weight: 700;
	margin: 30px 0 16px;
}
.entry-content h1 {
	font-size: 54px;
}
.entry-content h2 {
	font-size: 44px;
}
.entry-content h3 {
	font-size: 34px;
}
.entry-content h4 {
	font-size: 28px;
}
.entry-content p {
	margin-bottom: 20px;
}
.entry-content a {
	color: hsl(var(--primary));
	text-decoration: underline;
	text-underline-offset: 4px;
}
.entry-content ul,
.entry-content ol {
	padding-left: 24px;
	margin: 20px 0 30px;
}
.entry-content ul {
	list-style: disc;
}
.entry-content ol {
	list-style: decimal;
}
.entry-content li {
	margin-bottom: 12px;
}
.entry-content img {
	max-width: 100%;
	height: auto;
}
.entry-content blockquote {
	border-left: 3px solid hsl(var(--primary));
	padding-left: 20px;
	margin: 24px 0;
	font-style: italic;
}

.theme-post-list {
	display: grid;
	gap: 40px;
}
.theme-post-title {
	font-family: var(--font-display);
	font-size: 34px;
	line-height: 1.1;
	font-weight: 700;
	margin-bottom: 12px;
}
.theme-post-title a {
	color: hsl(var(--foreground));
}
.theme-text-link {
	color: hsl(var(--primary));
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* WordPress screen reader text */
.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;
}
.screen-reader-text:focus {
	background-color: hsl(var(--background));
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: hsl(var(--foreground));
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* AJAX form state */
.theme-btn-loading {
	opacity: 0.6;
	pointer-events: none;
	cursor: wait;
}

/* Article dialog */
body.theme-dialog-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.newsletter-grid > a {
		justify-self: start;
	}
}
