/**
 * Pronatalism Australia – Custom CSS (Phase 1)
 *
 * Minimal helpers that cannot be expressed in theme.json.
 * Keep this file lean; prefer theme.json for all design tokens.
 */

/* ========================================================================
   1. Gold italic emphasis utility
   ======================================================================== */

.pa-emphasis {
	font-style: italic;
	color: var(--wp--preset--color--gold);
}

/* ========================================================================
   2. Checklist (green check marks via CSS)
   ======================================================================== */

.pa-checklist {
	list-style: none;
	padding-left: 0;
}

.pa-checklist li {
	position: relative;
	padding-left: 1.75em;
}

.pa-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--green);
	font-weight: 700;
}

/* ========================================================================
   3. Fertility-gap comparison bars
   Uses core Group blocks. The inner bar width is set inline via
   flexSize in the pattern; these styles handle the track appearance.
   ======================================================================== */

.pa-bar {
	display: flex;
	height: 0.75rem;
	overflow: hidden;
}

.pa-bar > .wp-block-group {
	height: 100%;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* ========================================================================
   4. FAQ accordion (<details> / <summary>)
   ======================================================================== */

.pa-faq-item {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.pa-faq-item summary {
	cursor: pointer;
	padding: 1.25em 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.35;
	list-style: none;            /* hide default marker */
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.pa-faq-item summary::-webkit-details-marker {
	display: none;
}

.pa-faq-item summary::after {
	content: "+";
	flex-shrink: 0;
	margin-left: 1em;
	font-size: 1.25em;
	line-height: 1;
	color: var(--wp--preset--color--muted);
	transition: transform 0.2s ease;
}

.pa-faq-item[open] summary::after {
	content: "−";
}

.pa-faq-item summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--green);
	outline-offset: 2px;
	border-radius: 3px;
}

.pa-faq-answer {
	padding-bottom: 1.25em;
}

.pa-faq-answer p {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.65;
	margin: 0;
}

/* ========================================================================
   5. Card hover lift (subtle)
   ======================================================================== */

.pa-card {
	border-radius: 4px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pa-card:hover {
	box-shadow: 0 4px 20px rgba(26, 26, 26, 0.06);
	transform: translateY(-2px);
}

/* ========================================================================
   6. Footer navigation — remove bullets, clean spacing
   ======================================================================== */

.pa-footer-nav {
	list-style: none;
	padding-left: 0;
}

.pa-footer-nav li {
	padding: 0.15em 0;
}

.pa-footer-nav a {
	text-decoration: none;
	color: var(--wp--preset--color--text);
}

.pa-footer-nav a:hover,
.pa-footer-nav a:focus {
	color: var(--wp--preset--color--green);
}

/* ========================================================================
   7. Responsive adjustments
   ======================================================================== */

@media (max-width: 782px) {
	/* Reduce hero padding on mobile */
	.wp-block-group.alignfull {
		/* let individual patterns handle their own mobile padding;
		   this is a safety net for overly tall hero sections */
	}

	/* Stack stat numbers smaller on mobile */
	.has-hero-font-size {
		font-size: clamp(2rem, 8vw, 2.625rem);
	}
}
