/*
 * WordPress-specific layer on top of the approved mock CSS (assets/site.css, unchanged).
 * 1. core block resets so core wrappers do not change the mock's spacing
 * 2. logged-in admin-bar offsets for the sticky header and anchor scrolling
 * 3. Fluent Forms skin matching the mock's signup form (real form, real validation)
 */

/* ---------- 1. Core wrappers ---------- */
.wp-site-blocks {
	padding: 0;
}

.wp-site-blocks > * {
	margin-block: 0;
}

/* (No blanket margin reset on .wp-block-group: theme.json sets blockGap 0, and a reset here would override the mock's own margins.) */
.wp-block-image {
	margin-block: 0;
}

.wp-block-image img {
	block-size: auto;
}

.hero-visual .wp-block-image {
	block-size: 100%;
	margin: 0;
}

.hero-visual .wp-block-image img {
	inline-size: 100%;
	block-size: 100%;
	max-inline-size: none;
}

.hero-actions p,
.hero-bottom p {
	max-inline-size: none;
}

/* The mock's header/footer markup sits directly inside the template-part element. */
.site-header.wp-block-template-part,
.site-footer.wp-block-template-part {
	margin: 0;
}

.wp-block-details > summary {
	list-style: revert;
}

/* The mock's contact label is an inline <span> sitting in a 16px/1.65 line box; as a paragraph it needs that same line height. */
.about-contact > .eyebrow {
	line-height: 2.64;
}

/* ---------- Watch: Instagram with three or more items, X posts ---------- */

/* The mock shows two cards side by side; with three the cards stack art above text in three columns. */
@media (min-width: 1024px) {
	.instagram-grid:has(> :nth-child(3)) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start; /* an opened embed must not stretch its neighbours */
	}

	.instagram-grid:has(> :nth-child(3)) .reel-card {
		display: block;
	}

	.instagram-grid:has(> :nth-child(3)) .reel-art {
		max-block-size: 220px;
	}

	.instagram-grid:has(> :nth-child(3)) .reel-art img {
		inline-size: 100%;
		aspect-ratio: 16 / 9;
		object-position: center 38%;
	}
}

.media-panel > .media-links {
	margin-block-start: 1.5rem;
}

[data-x-mount] {
	display: grid;
	gap: 1rem;
	justify-content: start;
	max-inline-size: 100%;
}

[data-x-mount]:not(:empty) {
	margin-block-start: 1.5rem;
}

/* ---------- 2. Admin bar ---------- */
.admin-bar .site-header {
	inset-block-start: var(--wp-admin--admin-bar--height, 32px);
}

.admin-bar .reading-progress {
	inset-block-start: var(--wp-admin--admin-bar--height, 32px);
}

.admin-bar {
	scroll-padding-block-start: calc(6rem + var(--wp-admin--admin-bar--height, 32px));
}

@media (max-width: 767px) {
	.admin-bar {
		scroll-padding-block-start: calc(5rem + var(--wp-admin--admin-bar--height, 46px));
	}
}

/* ---------- 3. Fluent Forms skin ---------- */
.signup-form-wrap .fluentform {
	color: var(--paper);
}

.signup-form-wrap .fluentform form.frm-fluent-form fieldset {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.1rem;
	border: 0;
	margin: 0;
	padding: 0;
	min-inline-size: 0;
}

.signup-form-wrap .fluentform form.frm-fluent-form fieldset > div:nth-of-type(n + 3) {
	grid-column: 1 / -1;
}

.signup-form-wrap .fluentform .ff-el-group {
	margin-block-end: 1.1rem;
}

.signup-form-wrap .fluentform .ff-el-input--label {
	margin: 0;
}

.signup-form-wrap .fluentform .ff-el-input--label label {
	display: block;
	font-size: 0.76rem;
	font-weight: 600;
	margin-block-end: 0.5rem;
	color: var(--paper);
}

.signup-form-wrap .fluentform .ff-el-input--label.asterisk-right label::after,
.signup-form-wrap .fluentform .ff-el-input--label.asterisk-left label::before {
	content: none;
}

.signup-form-wrap .fluentform .ff-el-form-control {
	display: block;
	inline-size: 100%;
	min-block-size: 48px;
	border: 1px solid #918f8580;
	border-radius: 0;
	background: #10100f;
	color: var(--paper);
	padding: 0.7rem 0.8rem;
	font-size: 0.9rem;
	box-shadow: none;
}

.signup-form-wrap .fluentform .ff-el-form-control:focus {
	outline: 2px solid var(--acid);
	outline-offset: 4px;
	border-color: var(--acid);
	background: #10100f;
	color: var(--paper);
}

.signup-form-wrap .fluentform .ff-el-is-error .ff-el-form-control,
.signup-form-wrap .fluentform .ff-el-form-control[aria-invalid="true"] {
	border-color: #f0a9a1;
}

.signup-form-wrap .fluentform .text-danger,
.signup-form-wrap .fluentform .error,
.signup-form-wrap .fluentform .ff-errors-in-stack,
.signup-form-wrap .fluentform .ff-el-is-error .error {
	color: #f0a9a1;
	font-size: 0.73rem;
	margin-block-start: 0.35rem;
}

/* Consent: Fluent's terms-and-conditions field */
.signup-form-wrap .fluentform .ff-el-tc label.ff_tc_label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	min-block-size: 44px;
	font-size: 0.74rem;
	cursor: pointer;
	color: var(--paper);
}

.signup-form-wrap .fluentform .ff-el-tc label.ff_tc_label > span.ff_tc_checkbox {
	flex: 0 0 19px;
	margin-block-start: 0.17rem;
}

.signup-form-wrap .fluentform .ff-el-form-check-input[type="checkbox"] {
	appearance: auto;
	accent-color: var(--acid);
	inline-size: 19px;
	block-size: 19px;
	margin: 0;
}

.signup-form-wrap .fluentform .ff_t_c {
	max-inline-size: 55ch;
}

.signup-form-wrap .fluentform .ff_t_c a {
	color: var(--paper);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.signup-form-wrap .fluentform .ff-el-group:has(.ff-el-turnstile) {
	min-block-size: 71px;
}

/* Submit: the mock's .button */
.signup-form-wrap .fluentform .ff_submit_btn_wrapper {
	margin: 0;
	text-align: start;
}

.signup-form-wrap .fluentform form.frm-fluent-form .ff-btn-submit:not(.ff_btn_no_style),
.signup-form-wrap .fluentform .ff-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-block-size: 48px;
	padding: 0.7rem 1.25rem;
	background: var(--acid);
	border: 1px solid var(--acid);
	border-radius: 0;
	color: #10100f;
	font-size: 0.88rem;
	line-height: 1.4;
	font-weight: 700;
	box-shadow: none;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.signup-form-wrap .fluentform form.frm-fluent-form .ff-btn-submit:not(.ff_btn_no_style):hover,
.signup-form-wrap .fluentform .ff-btn-submit:hover {
	background: var(--paper);
	border-color: var(--paper);
	color: #10100f;
	transform: translateY(-2px);
	opacity: 1;
}

.signup-form-wrap .fluentform .ff-btn-submit:disabled {
	cursor: wait;
	opacity: 0.65;
}

/* Confirmation and error messages */
.signup-form-wrap .fluentform .ff-message-success {
	border: 0;
	background: none;
	padding: 0;
	color: var(--acid);
	font-size: 1rem;
	box-shadow: none;
}

.signup-form-wrap .fluentform .ff-message-success p {
	max-inline-size: 55ch;
}

.signup-note {
	font-size: 0.67rem;
	color: #b5b2a9;
	margin-block-start: 1rem;
}

.signup-note a {
	color: inherit;
}

@media (max-width: 767px) {
	.signup-form-wrap .fluentform form.frm-fluent-form fieldset {
		grid-template-columns: 1fr;
	}

	.signup-form-wrap .fluentform .ff-btn-submit {
		inline-size: 100%;
	}
}
