/*
 * Additions for the static rebuild. Everything here fills a gap left by a
 * WordPress plugin whose stylesheet we intentionally do not ship, or fixes a
 * defect carried over from the original site. Loaded last.
 */

/* ---------------------------------------------------------------------------
 * Sticky header backdrop
 *
 * The theme only paints .nav white when the header sticks, leaving the 13px
 * strip above it and the gap beside the Join button transparent — page content
 * scrolled through those gaps. Paint the whole bar instead.
 * ------------------------------------------------------------------------ */
.header.is-sticky {
	background-color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	top: 0;
	transition: background-color 0.5s ease-in-out;
}

.header.is-sticky .header_row {
	padding: 8px 0;
}

/* ---------------------------------------------------------------------------
 * Form layout
 *
 * Gravity Forms supplied the field grid; the theme only tweaked it. Since the
 * plugin is gone, lay the fields out here. Class names match the theme's
 * selectors so its own rules still apply on top.
 * ------------------------------------------------------------------------ */

/* Honeypot — hidden from people, filled in by bots. */
.era-botcheck {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.era-form-status {
	margin-top: 16px;
	font-size: 16px;
	min-height: 1.4em;
}

.era-form-status.is-error {
	color: #c0392b;
}

.era-form-status.is-success {
	color: #1e7e34;
}

/* --- Join page form: labels above full-width inputs --- */
.join_form_page .gform_fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.join_form_page .gfield {
	display: flex;
	flex-direction: column;
}

.join_form_page .gfield_label {
	display: block;
	margin-bottom: 7px;
	color: #303e4d;
	font-family: 'Barlow', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.join_form_page .gfield_required {
	margin-left: 3px;
	color: #f48120;
}

.join_form_page .gfield input,
.join_form_page .gfield select {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1px solid #d9d9d9;
	border-radius: 10px;
	background: #fff;
	color: #303e4d;
	font-family: 'Barlow', sans-serif;
	font-size: 16px;
	outline: 0;
	transition: border-color 0.2s ease-in-out;
}

.join_form_page .gfield select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23303E4D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 42px;
}

.join_form_page .gfield input:focus,
.join_form_page .gfield select:focus {
	border-color: #f48120;
}

.join_form_page .gfield input::placeholder {
	color: #9aa3ad;
}

.join_form_page .gform_footer {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

/* --- Contact form: phone and email share a row, as the theme intends --- */
.contact_data .gform_wrapper.gravity-theme .gform_fields .gfield.half {
	width: calc(50% - 10px);
}

.contact_data .gform_wrapper.gravity-theme .gform_fields .gfield.half + .gfield.half {
	margin-left: auto !important;
}

@media screen and (max-width: 576px) {
	.contact_data .gform_wrapper.gravity-theme .gform_fields .gfield.half {
		width: 100%;
	}

	.contact_data .gform_wrapper.gravity-theme .gform_fields .gfield.half + .gfield.half {
		margin-left: 0 !important;
	}
}

/* --- Contact: the one public address, alongside the form --- */
.contact .contact_email {
	color: #fff;
	font-size: 20px;
	line-height: 150%;
	margin-top: 25px;
}

.contact .contact_email a {
	color: #fff;
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Subpage headings
 *
 * Join, Privacy and Terms opened with an <h2> and had no <h1> at all — a page
 * with no top-level heading tells a crawler nothing about what it is. The
 * heading is now an <h1>, and the theme's h1 (white, 68-82px, written for the
 * hero banner) would be wrong there, so these rules restate the h2 treatment.
 * Sizes match style.css h2 and its 991px step exactly, so nothing moved.
 * ------------------------------------------------------------------------ */
.block_head h1 {
	color: #303e4d;
	font-family: 'Barlow', sans-serif;
	font-size: 55px;
	font-style: normal;
	font-weight: 600;
	line-height: 117.5%;
}

@media screen and (max-width: 991px) {
	.block_head h1 {
		font-size: 35px;
	}
}

/* The join page shrank its heading; keep that (overrides.css does it for h2). */
.join_form_page .block_head h1 {
	font-size: 30px;
}

/* The theme's 404 heading was orange; the rule above would have made it navy. */
.page_not_found .block_head h1 {
	color: #f48120;
}

/*
 * The theme's 404 rule pads the button element itself, and .commen_btn already
 * pads the span inside it — together they draw a box inside a box. Drop the
 * outer padding so the button matches every other button on the site.
 */
section.page_not_found a.commen_btn {
	padding: 0;
}

/* ---------------------------------------------------------------------------
 * Legal pages: nested list numbering
 *
 * Privacy and Terms are Markdown now, so their nested lists come out as plain
 * <ol>. The WordPress originals used type="a" and type="i" — restore that
 * numbering here rather than putting raw HTML back into the content files.
 * ------------------------------------------------------------------------ */
.default_template_page ol {
	list-style-type: lower-alpha;
	padding-left: 24px;
}

.default_template_page ol ol {
	list-style-type: lower-roman;
	margin-top: 8px;
}

.default_template_page ol li {
	margin-bottom: 8px;
}
