/* Launch Resource Pages: native-block page rhythm and USDA dialog. */
.hcfb-launch-resource-intro,
.hcfb-resource-section,
.hcfb-editor-guidance,
.hcfb-newsletter-card,
.hcfb-faq-draft {
	box-sizing: border-box;
}

.hcfb-launch-resource-intro {
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	line-height: 1.65;
	max-width: 48rem;
}

.hcfb-resource-section,
.hcfb-editor-guidance,
.hcfb-newsletter-card,
.hcfb-faq-draft {
	border: 1px solid var(--wp--preset--color--hcfb-border);
	border-radius: 0.75rem;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.hcfb-resource-section + .hcfb-resource-section,
.hcfb-editor-guidance + .hcfb-newsletter-card,
.hcfb-faq-draft .wp-block-details + .wp-block-details {
	margin-block-start: 1.5rem;
}

.hcfb-editor-guidance {
	background: var(--wp--preset--color--hcfb-cream);
	border-style: dashed;
}

.hcfb-newsletter-card {
	background: #fff;
}

.hcfb-newsletter-card .wp-block-image:empty {
	display: block;
	min-height: 10rem;
	background: var(--wp--preset--color--hcfb-cream);
	border: 1px dashed var(--wp--preset--color--hcfb-border);
}

.hcfb-faq-draft .wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	min-height: 44px;
	display: flex;
	align-items: center;
}

.hcfb-usda-dialog {
	width: min(52rem, calc(100vw - 2rem));
	max-height: min(86vh, 56rem);
	padding: 0;
	border: 0;
	border-radius: 0.8rem;
	color: var(--wp--preset--color--hcfb-text);
	background: #fff;
	box-shadow: 0 1.25rem 4rem rgba(20, 29, 56, 0.32);
}

.hcfb-usda-dialog::backdrop {
	background: rgba(16, 25, 51, 0.72);
}

.hcfb-usda-dialog:not([open]) {
	display: none;
}

.hcfb-usda-dialog__surface {
	padding: clamp(1rem, 3vw, 2rem);
}

.hcfb-usda-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	position: sticky;
	top: 0;
	background: #fff;
	padding-block-end: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--hcfb-border);
}

.hcfb-usda-dialog__header h2 {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 2rem);
}

.hcfb-usda-dialog__close {
	min-width: 44px;
	min-height: 44px;
	border: 2px solid var(--wp--preset--color--hcfb-navy);
	border-radius: 999px;
	background: var(--wp--preset--color--hcfb-navy);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.hcfb-usda-dialog__close:focus-visible {
	outline: 3px solid var(--wp--preset--color--hcfb-orange);
	outline-offset: 3px;
}

.hcfb-usda-dialog__content {
	overflow: auto;
	max-height: calc(86vh - 7rem);
	padding-block-start: 1rem;
	line-height: 1.65;
}

@media (max-width: 480px) {
	.hcfb-usda-dialog {
		width: calc(100vw - 1rem);
		max-height: calc(100vh - 1rem);
	}
	.hcfb-usda-dialog__content {
		max-height: calc(100vh - 8rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hcfb-usda-dialog,
	.hcfb-usda-dialog::backdrop {
		scroll-behavior: auto;
	}
}

@media print {
	.hcfb-usda-dialog,
	.hcfb-usda-dialog[open] {
		display: none !important;
	}
}
