/* ABC CPR — complements the Tailwind CDN build. */

.ecg-line {
	stroke-dasharray: 320;
	stroke-dashoffset: 320;
	animation: ecg-draw 2.6s ease-in-out infinite;
}

@keyframes ecg-draw {
	0% { stroke-dashoffset: 320; opacity: 0.45; }
	62% { stroke-dashoffset: 0; opacity: 1; }
	84% { stroke-dashoffset: 0; opacity: 1; }
	100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ecg-line { animation: none; stroke-dashoffset: 0; }
	.card-zoom { transition: none !important; }
}

@media (min-width: 1024px) {
	#site-nav .group.is-open > div { display: block; }
}

summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

.abccpr-form .wpcf7-form label,
.abccpr-form .wpcf7-form p {
	display: block;
	margin: 0 0 1rem;
}

.abccpr-form .wpcf7-form label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #5c534e;
}

.abccpr-form .wpcf7-form-control:not(.wpcf7-submit) {
	display: block;
	width: 100%;
	margin-top: 0.45rem;
	border: 1px solid #e6dbd0;
	background: #fffdfb;
	border-radius: 0.9rem;
	padding: 0.85rem 1rem;
	font: inherit;
	color: #1a1214;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.abccpr-form textarea.wpcf7-form-control {
	min-height: 8.5rem;
	resize: vertical;
}

.abccpr-form select.wpcf7-form-control {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #c4161c 50%), linear-gradient(135deg, #c4161c 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.abccpr-form .wpcf7-form-control:not(.wpcf7-submit):focus {
	outline: none;
	border-color: #c4161c;
	box-shadow: 0 0 0 4px rgba(196, 22, 28, 0.12);
}

.abccpr-form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.4rem;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	background: #c4161c;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.95rem 1.8rem;
	transition: background 0.15s ease, transform 0.15s ease;
}

.abccpr-form .wpcf7-submit:hover { background: #8e1016; }
.abccpr-form .wpcf7-submit:focus-visible {
	outline: 2px solid #1a1214;
	outline-offset: 3px;
}

.abccpr-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.35rem;
	color: #c4161c;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.abccpr-form .wpcf7-response-output {
	margin: 1rem 0 0 !important;
	border-radius: 0.9rem;
	padding: 0.8rem 1rem !important;
	border-width: 1px !important;
}

.abccpr-form .wpcf7-form > span,
.abccpr-form .wpcf7 form span[style] {
	display: block;
	margin: 0.25rem 0 1rem;
	color: #8e1016 !important;
	font-size: 0.95rem;
	line-height: 1.5;
}

.abccpr-form .wpcf7-spinner {
	margin-left: 0.75rem;
}

.site-header {
	background-color: transparent;
	background-image: linear-gradient(
		90deg,
		#ffffff 0%,
		#ffffff max(220px, calc(50% - 20rem)),
		rgba(255, 255, 255, 0.72) max(460px, calc(50% + 4rem)),
		rgba(255, 255, 255, 0.38) 100%
	);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

@media (max-width: 1023px) {
	.site-header { position: absolute; }
}

@media (min-width: 1024px) {
	.site-header { position: fixed; }

	.site-header .header-bar,
	.site-header .header-bar img,
	.site-header #site-nav > a,
	.site-header #site-nav .group > a {
		transition: padding 0.25s ease, height 0.25s ease;
	}

	.site-header.is-compact .header-bar {
		padding-top: 0.35rem;
		padding-bottom: 0.35rem;
	}

	.site-header.is-compact .header-bar img {
		height: 2.75rem;
	}

	.site-header.is-compact #site-nav > a,
	.site-header.is-compact #site-nav .group > a {
		padding-top: 0.3rem;
		padding-bottom: 0.3rem;
	}
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
	.site-header .header-bar,
	.site-header .header-bar img,
	.site-header #site-nav > a,
	.site-header #site-nav .group > a {
		transition: none;
	}
}

.abccpr-entry {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #5e564f;
}

.abccpr-entry::after {
	content: "";
	display: block;
	clear: both;
}

.abccpr-entry > * + * { margin-top: 1.15rem; }

.abccpr-entry h2,
.abccpr-entry h3,
.abccpr-entry h4 {
	font-family: Fraunces, Georgia, serif;
	color: #1a1214;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.abccpr-entry h2 { font-size: clamp(1.7rem, 2vw, 2rem); margin-top: 2rem; }
.abccpr-entry h3 { font-size: 1.45rem; margin-top: 1.75rem; }
.abccpr-entry h4 { font-size: 1.2rem; margin-top: 1.5rem; }

.abccpr-entry a {
	color: #c4161c;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(196, 22, 28, 0.3);
	text-underline-offset: 4px;
}

.abccpr-entry a:hover { text-decoration-color: #c4161c; }

.abccpr-entry ul,
.abccpr-entry ol { margin: 1.15rem 0; }

.abccpr-entry ul { list-style: none; padding-left: 0; }

.abccpr-entry ul > li {
	position: relative;
	padding-left: 1.15rem;
}

.abccpr-entry ul > li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #c4161c;
}

.abccpr-entry ol { list-style: decimal; padding-left: 1.25rem; }
.abccpr-entry li + li { margin-top: 0.6rem; }

.abccpr-entry img,
.abccpr-entry video {
	max-width: 100%;
	height: auto;
	border-radius: 1.25rem;
}

.abccpr-entry figure,
.abccpr-entry .wp-caption { margin: 1.5rem 0; }

.abccpr-entry figcaption,
.abccpr-entry .wp-caption-text {
	margin-top: 0.55rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #5e564f;
}

.abccpr-entry blockquote,
.abccpr-entry .wp-block-quote {
	margin: 1.5rem 0;
	border-left: 3px solid #c4161c;
	padding: 0.2rem 0 0.2rem 1.2rem;
	font-family: Fraunces, Georgia, serif;
	font-size: 1.35rem;
	line-height: 1.4;
	color: #1a1214;
}

.abccpr-entry blockquote p { color: inherit; }

.abccpr-entry hr,
.abccpr-entry .wp-block-separator {
	border: 0;
	border-top: 1px solid #e7dcd0;
	margin: 2rem 0;
}

.abccpr-entry table { width: 100%; border-collapse: collapse; }

.abccpr-entry th,
.abccpr-entry td {
	border-bottom: 1px solid #e7dcd0;
	padding: 0.75rem 0.4rem;
	text-align: left;
	vertical-align: top;
}

.abccpr-entry th {
	color: #1a1214;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.abccpr-entry pre {
	overflow: auto;
	border: 1px solid #e7dcd0;
	border-radius: 1rem;
	background: #f6f1eb;
	padding: 1rem 1.1rem;
	font-size: 0.9rem;
}

.abccpr-entry iframe { max-width: 100%; }

.aligncenter,
.wp-block-image.aligncenter {
	display: block;
	clear: both;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.alignleft,
img.alignleft,
a img.alignleft,
.wp-caption.alignleft,
.wp-block-image.alignleft {
	float: left;
	height: auto;
	margin: 0.35rem 1.5rem 1rem 0;
	max-width: min(50%, 22rem);
}

.alignright,
img.alignright,
a img.alignright,
.wp-caption.alignright,
.wp-block-image.alignright {
	float: right;
	height: auto;
	margin: 0.35rem 0 1rem 1.5rem;
	max-width: min(50%, 22rem);
}

.alignnone,
img.alignnone,
a img.alignnone,
.wp-caption.alignnone,
.wp-block-image.alignnone {
	float: none;
	display: block;
	clear: both;
	height: auto;
	margin: 1.25rem 0;
	max-width: 100%;
}

.alignleft img,
.alignright img,
.alignnone img,
.wp-caption img {
	display: block;
	max-width: 100%;
	height: auto;
}

@media (max-width: 640px) {
	.alignleft,
	img.alignleft,
	a img.alignleft,
	.wp-caption.alignleft,
	.wp-block-image.alignleft,
	.alignright,
	img.alignright,
	a img.alignright,
	.wp-caption.alignright,
	.wp-block-image.alignright {
		float: none;
		display: block;
		clear: both;
		max-width: 100%;
		margin: 1.25rem 0;
	}
}
.abccpr-entry .alignwide,
.abccpr-entry .alignfull { width: 100%; max-width: 100%; }

.abccpr-entry .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.75rem;
}

.abccpr-entry .wp-block-button__link,
.abccpr-entry .wp-element-button {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: #c4161c;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 0.85rem 1.5rem;
}

.abccpr-entry .wp-block-button__link:hover,
.abccpr-entry .wp-element-button:hover { background: #8e1016; }

.abccpr-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e7dcd0;
}

.abccpr-pages a,
.abccpr-pages > span {
	display: inline-flex;
	min-width: 2.25rem;
	justify-content: center;
	border-radius: 999px;
	padding: 0.35rem 0.7rem;
	font-weight: 700;
	text-decoration: none;
}

.abccpr-pages a { background: #f6f1eb; color: #1a1214; }
.abccpr-pages > span { background: #c4161c; color: #fff; }

.to-top {
	position: fixed;
	left: 50%;
	bottom: 1.35rem;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.42);
	color: #c4161c;
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	box-shadow: 0 10px 28px rgba(26, 10, 12, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.85);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 0.75rem);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.15s ease, color 0.15s ease;
}

.to-top svg { width: 1.35rem; height: 1.35rem; }

.to-top.is-on {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.to-top:hover {
	background: rgba(255, 255, 255, 0.72);
	color: #8e1016;
}

.to-top:focus-visible {
	outline: 2px solid #1a1214;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.to-top { transition: none; }
}

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
