/*
Theme Name: The Pulse Accounting
Theme URI: https://thepulseaccounting.ca
Author: The Pulse Accounting Services Ltd.
Description: Custom block theme for The Pulse Accounting Services Ltd. Black and gold, Cabin and Source Sans 3. Includes one-click setup of the Home, About Us, Services, Contact and Blog pages (Appearance > Pulse Setup).
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-pulse
*/

/* Small extras that theme.json can't express. */

.is-style-eyebrow {
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-dark);
	margin-bottom: 0.25rem !important;
}
.has-ink-background-color .is-style-eyebrow,
.has-charcoal-background-color .is-style-eyebrow {
	color: var(--wp--preset--color--gold);
}

.wp-block-group.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: var(--wp--custom--radius);
	box-shadow: var(--wp--custom--shadow);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	height: 100%;
}
.wp-block-column > .wp-block-group.is-style-card { height: 100%; }

.wp-block-group.is-style-gold-rule {
	border-top: 3px solid var(--wp--preset--color--gold);
	padding-top: 1.25rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
}

/* Lists with gold check marks */
ul.is-style-checks { list-style: none; padding-left: 0 !important; }
ul.is-style-checks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.4rem; }
ul.is-style-checks li::before {
	content: "";
	position: absolute; left: 0; top: 0.5em;
	width: 0.95rem; height: 0.5rem;
	border-left: 2px solid var(--wp--preset--color--gold);
	border-bottom: 2px solid var(--wp--preset--color--gold);
	transform: rotate(-45deg);
}

/* Header */
.pulse-announce a { color: inherit; text-decoration: none; }
.pulse-announce a:hover { text-decoration: underline; }
.pulse-header { border-bottom: 1px solid var(--wp--preset--color--stone); }
.pulse-header .wp-block-site-logo img { max-height: 64px; width: auto; }

/* FAQ accordion */
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--wp--preset--color--ink);
	list-style: none;
	position: relative;
	padding-right: 2rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute; right: 0; top: -0.1em;
	font-size: 1.5rem; line-height: 1;
	color: var(--wp--preset--color--gold-dark);
}
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > :not(summary) { margin-top: 0.75rem; }

/* Testimonials */
.pulse-quote-mark {
	font-family: Georgia, serif;
	font-size: 3.5rem !important;
	line-height: 0.6 !important;
	color: var(--wp--preset--color--gold);
	margin: 0 0 0.5rem !important;
}

/* Footer */
.pulse-footer a { color: var(--wp--preset--color--white); text-decoration: none; }
.pulse-footer a:hover { color: var(--wp--preset--color--gold); }
.pulse-footer .wp-block-social-links .wp-social-link { background: transparent !important; border: 1px solid rgba(255,255,255,.25); }

/* Images */
.wp-block-image.is-style-rounded-soft img { border-radius: var(--wp--custom--radius); }
.pulse-hero-art img { width: 100%; height: auto; }

/* Blog cards */
.pulse-post-card { height: 100%; }
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-template.is-layout-grid > li > .wp-block-group { flex: 1; }

@media (max-width: 781px) {
	.pulse-hide-mobile { display: none !important; }
}
.pulse-plain-list { list-style: none; }
.pulse-plain-list li { margin-bottom: 0.35rem; }

/* Cards always use dark text, even inside dark sections */
.wp-block-group.is-style-card { color: var(--wp--preset--color--body-text); }
.wp-block-group.is-style-card :where(h1,h2,h3,h4) { color: var(--wp--preset--color--ink); }

/* Full-width sections sit flush against each other */
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks > footer { margin-block-start: 0 !important; }
.wp-site-blocks > main { margin-block-start: 0 !important; }

/* Blog post body headings a step smaller than page headings */
.single .wp-block-post-content h2 { font-size: var(--wp--preset--font-size--x-large); }
.single .wp-block-post-content h3 { font-size: var(--wp--preset--font-size--large); }
