/* =========================================
   FPLF Single Form page ([fplf_single_form], inc/single-form.php)
   Approved prototype: prototypes/single-form-v2 (2026-11-02).
   Base breadcrumb and free-download note styles: migration module 04 (the breadcrumb look is set below); GeneratePress
   wrappers ≤ 779 px: module 08 (its #content gutter is cancelled by module 09's ≤ 1119 px reset, so this wrapper sets
   the page gutter at every width).
========================================= */

/* Wrapper – the geometry of the previous GenerateBlocks wrapper (gb-element-179a33dc). */
body.single-forms .fplf-sf {
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding: 40px 24px 80px;
	background-color: #fff;
	text-align: left; /* the theme centres article text; every block of the previous template reset it */
}

/* Header → breadcrumb: the wrapper alone sets it – 40px, 32px ≤ 1024px, 24px ≤ 779px (below) –, the same top spacing as
   the category pages. GeneratePress's one-container #content padding (40px) used to add to it above 779px (module 08
   already cancels it below). */
body.single-forms.one-container #content.site-content {
	padding-top: 0;
}

@media (max-width: 1024px) {
	body.single-forms .fplf-sf {
		padding-top: 32px;
	}
}

/* From 1120px GeneratePress applies its 1200px container: drop its side paddings and let the wrapper set a 30px gutter,
   so the page shares the 1140px edge of the header, footer and category pages (category-landing.css). */
@media (min-width: 1120px) {
	body.single-forms #page.site.grid-container,
	body.single-forms.one-container #content.site-content {
		padding-left: 0;
		padding-right: 0;
	}

	body.single-forms .fplf-sf {
		max-width: 1200px;
		padding-left: 30px;
		padding-right: 30px;
	}
}

/* Breadcrumb – one look for every journey (default, search, category), taken from the category pages' breadcrumb
   (module 09, "FPLF CATEGORY - RANK MATH BREADCRUMBS"): type, colours, " › " separator, inline wrapping. */
.fplf-sf .fplf-breadcrumbs {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #64748b;
}

.fplf-sf .fplf-breadcrumbs ol {
	display: block;
}

.fplf-sf .fplf-breadcrumbs li {
	display: inline;
}

.fplf-sf .fplf-breadcrumbs li:not(:last-child)::after {
	content: " › ";
	margin: 0;
	color: #64748b;
}

.fplf-sf .fplf-breadcrumbs a {
	color: #35516f;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.fplf-sf .fplf-breadcrumbs a:hover,
.fplf-sf .fplf-breadcrumbs a:focus-visible {
	color: #2f6fdd;
	text-decoration: none;
}

.fplf-sf .fplf-breadcrumbs [aria-current="page"] {
	color: #64748b;
}

body.single-forms .fplf-sf *,
body.single-forms .fplf-sf *::before,
body.single-forms .fplf-sf *::after {
	box-sizing: border-box;
}

/* Desktop: document on the left, Download → state switcher (where there is one) → File details on the right. */
.fplf-sf-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-areas:
		"head side"
		"notice side"
		"preview side"
		"back side";
	grid-template-rows: auto auto auto 1fr;
	column-gap: 48px;
	align-items: start;
}

.fplf-sf-head { grid-area: head; min-width: 0; }
.fplf-sf-notice { grid-area: notice; min-width: 0; }
.fplf-sf-preview { grid-area: preview; min-width: 0; margin-top: 40px; }
.fplf-sf-back { grid-area: back; margin-top: 32px; }
.fplf-sf-side { grid-area: side; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.fplf-sf .fplf-sf-title {
	margin: 0 0 20px;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.15;
	color: #000;
	text-align: left;
}

.fplf-sf .fplf-sf-desc {
	max-width: 720px;
	margin: 0 0 24px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #000;
}

/* Legal notice (unchanged text). */
.fplf-sf-notice-box {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 16px 18px;
	background-color: #eef5fb;
	border-radius: 8px;
}

.fplf-sf-notice-icon {
	flex: 0 0 22px;
	align-self: flex-start;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	background-color: #2f6fb3;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.fplf-sf .fplf-sf-notice-text {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #334e68;
}

/* PDF preview: the existing iframe ([fplf_pdf_preview]) in the previous frame. */
.fplf-sf .fplf-sf-h2 {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #0b2545;
}

.fplf-sf-preview-box {
	width: 100%;
	overflow: hidden;
	background-color: #f5f7fa;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
}

.fplf-sf-preview-box iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

/* Phones often cannot show a PDF inside a page: a plain link opens it in the browser's viewer. */
.fplf-sf .fplf-sf-open-pdf {
	display: none;
	margin: -6px 0 12px;
	font-size: 14px;
	line-height: 1.5;
}

.fplf-sf-open-pdf a {
	color: #2f6fb3;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fplf-sf-no-viewer-note {
	display: none;
}

/* Browsers without a built-in PDF viewer (navigator.pdfViewerEnabled false, set by nav-context.js – e.g. Chrome on
   Android) would show an empty frame: show a note and an "Open the PDF" button instead. */
.fplf-sf-preview--no-viewer .fplf-sf-preview-box {
	display: none;
}

.fplf-sf .fplf-sf-preview--no-viewer .fplf-sf-open-pdf {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 18px;
	background-color: #f5f7fa;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	color: #486581;
}

.fplf-sf-preview--no-viewer .fplf-sf-no-viewer-note {
	display: block;
}

.fplf-sf .fplf-sf-preview--no-viewer .fplf-sf-open-pdf a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 47px;
	padding: 12px 14px;
	background-color: #fff;
	border: 1px solid #2f6fb3;
	border-radius: 6px;
	text-decoration: none;
}

/* Sidebar cards. */
.fplf-sf-card {
	min-width: 0;
	padding: 24px;
	background-color: #fff;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
}

.fplf-sf .fplf-sf-card-title {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: #0b2545;
	text-align: left;
}

.fplf-sf-dl {
	margin: 0;
}

.fplf-sf-row {
	display: grid;
	gap: 2px;
	padding: 12px 0;
	border-bottom: 1px solid #e6ecf2;
}

.fplf-sf-row:first-child { padding-top: 0; }
.fplf-sf-row:last-child { padding-bottom: 0; border-bottom: 0; }

.fplf-sf-row dt {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: #243b53;
}

.fplf-sf-row dd {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: #486581;
	overflow-wrap: anywhere;
}

.fplf-sf-sizes {
	display: grid;
	gap: 2px;
}

/* Download buttons (colours of the previous gb-text-d04012f9 / gb-text-6c6a2f08). */
.fplf-sf-dl-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fplf-sf .fplf-sf-dl-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	width: 100%;
	min-height: 47px;
	padding: 12px 14px;
	background-color: #fff;
	border: 1px solid #d9e2ec;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	text-decoration: none;
}

.fplf-sf .fplf-sf-dl-btn svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
}

.fplf-sf .fplf-sf-dl-btn--pdf { color: #d14343; }
.fplf-sf .fplf-sf-dl-btn--word { color: #2f6fb3; }

.fplf-sf .fplf-sf-dl-btn--pdf:hover,
.fplf-sf .fplf-sf-dl-btn--pdf:focus {
	color: #d14343;
	background-color: #fff5f5;
	border-color: #d14343;
}

.fplf-sf .fplf-sf-dl-btn--word:hover,
.fplf-sf .fplf-sf-dl-btn--word:focus {
	color: #245a91;
	background-color: #f2f7ff;
	border-color: #2f6fb3;
}

.fplf-sf .fplf-free-download-text {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Find this form in another state. */
.fplf-sf .fplf-sf-state-text {
	margin: -6px 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #486581;
}

.fplf-sf-state-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: #243b53;
}

.fplf-sf .fplf-sf-state-select {
	width: 100%;
	height: 46px;
	padding: 0 40px 0 14px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232f6fb3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	border: 1px solid #d9e2ec;
	border-radius: 6px;
	color: #243b53;
	font: 500 14px/1.2 -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.fplf-sf .fplf-sf-state-go {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 47px;
	margin-top: 12px;
	padding: 12px 14px;
	background-color: #fff;
	border: 1px solid #2f6fb3;
	border-radius: 6px;
	color: #2f6fb3;
	font: 600 14px/1.5 -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
	cursor: pointer;
}

.fplf-sf .fplf-sf-state-go:hover:not([disabled]) {
	background-color: #f2f7ff;
	color: #245a91;
}

.fplf-sf .fplf-sf-state-go[disabled] {
	border-color: #d9e2ec;
	color: #8a9bb0;
	cursor: not-allowed;
}

.fplf-sf-state-links {
	margin: 0;
	padding: 0 0 0 18px;
	font-size: 14px;
	line-height: 1.7;
}

/* Back link (style of the previous gb-text-b583934c). */
.fplf-sf .fplf-sf-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 20px;
	background-color: #fff;
	border: 1px solid #2f6fb3;
	border-radius: 6px;
	color: #2f6fb3;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.fplf-sf .fplf-sf-back-btn:hover,
.fplf-sf .fplf-sf-back-btn:focus {
	background-color: #f2f7ff;
	color: #245a91;
	border-color: #245a91;
}

.fplf-sf .fplf-sf-dl-btn:focus-visible,
.fplf-sf .fplf-sf-state-go:focus-visible,
.fplf-sf .fplf-sf-state-select:focus-visible,
.fplf-sf .fplf-sf-back-btn:focus-visible,
.fplf-sf .fplf-sf-open-pdf a:focus-visible {
	outline: 2px solid #2f6fb3;
	outline-offset: 2px;
}

/* Tablet (below 1024 px the PDF column would get too narrow beside the sidebar): one column in the mobile order –
   document, the sidebar cards two per row in their order (Download | state switcher, then File details across both
   columns; without a switcher Download | File details), preview, legal notice, Back. */
@media (max-width: 1023px) {
	.fplf-sf-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "side" "preview" "notice" "back";
		grid-template-rows: none;
	}

	.fplf-sf .fplf-sf-title { font-size: 26px; }
	.fplf-sf .fplf-sf-desc { margin-bottom: 0; }

	.fplf-sf-side {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		margin-top: 24px;
	}

	.fplf-sf-side > .fplf-single-download-card + .fplf-sf-states + .fplf-sf-details { grid-column: 1 / -1; }
	.fplf-sf-preview { margin-top: 32px; }
	.fplf-sf .fplf-sf-h2 { font-size: 20px; }
	.fplf-sf-notice { margin-top: 24px; }
	.fplf-sf-back { margin-top: 24px; }
}

/* Mobile: one column of full-width cards, compact rhythm (breadcrumb 16 · title 12 · description 20 · cards 16 ·
   preview 28 · notice 24 · Back 20). */
@media (max-width: 779px) {
	body.single-forms .fplf-sf {
		padding-top: 24px;
		padding-bottom: 48px;
	}

	.fplf-sf .fplf-breadcrumbs { margin-bottom: 16px; }

	.fplf-sf .fplf-sf-title {
		margin-bottom: 12px;
		font-size: 22px;
		line-height: 1.25;
		overflow-wrap: break-word;
	}

	.fplf-sf .fplf-sf-desc {
		font-size: 15px;
		line-height: 1.6;
	}

	.fplf-sf-side {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		margin-top: 20px;
	}

	.fplf-sf-card { padding: 20px; }
	.fplf-sf .fplf-sf-card-title { margin-bottom: 14px; font-size: 17px; }
	.fplf-sf-row { padding: 10px 0; }

	.fplf-sf-preview { margin-top: 28px; }
	.fplf-sf .fplf-sf-h2 { margin-bottom: 12px; font-size: 18px; }
	.fplf-sf .fplf-sf-open-pdf { display: block; margin: -4px 0 12px; }

	/* The preview frame ([fplf_pdf_preview] sets 760px inline): shorter than the screen, so the page keeps scrolling
	   around it and the viewer's own toolbar and scrolling stay inside the frame. */
	.fplf-sf .fplf-sf-preview-box iframe {
		height: 520px !important;
		height: min(520px, 72svh) !important;
	}

	.fplf-sf-notice { margin-top: 24px; }
	.fplf-sf .fplf-sf-notice-box { padding: 14px 16px; }
	.fplf-sf .fplf-sf-notice-text { font-size: 13px; }
	.fplf-sf-back { margin-top: 20px; }

	.fplf-sf .fplf-sf-back-btn {
		justify-content: center;
		width: 100%;
		min-height: 47px;
	}
}

/* Phones: the category pages' 20px gutter (24px above 767px). */
@media (max-width: 767px) {
	body.single-forms .fplf-sf {
		padding-left: 20px;
		padding-right: 20px;
	}

	.fplf-sf .fplf-breadcrumbs { font-size: 13px; }
}

/* Narrow phones (≤ 389px). */
@media (max-width: 389px) {
	.fplf-sf .fplf-sf-title { font-size: 21px; }
	.fplf-sf-card { padding: 18px 16px; }
}
