/* =========================================================================
   Fence Guides – "Blueprint" styles (v3)
   Colours, fonts and spacing come from theme.json (var(--wp--preset--…)).
   ========================================================================= */

:root {
	--fg-navy: var(--wp--preset--color--navy, #0E3A66);
	--fg-navy-dark: var(--wp--preset--color--navy-dark, #0A2A4A);
	--fg-ink: var(--wp--preset--color--ink, #0F2133);
	--fg-sky: var(--wp--preset--color--sky, #8EC5FF);
	--fg-sky-pale: var(--wp--preset--color--sky-pale, #C9DDF2);
	--fg-orange: var(--wp--preset--color--orange, #E4521F);
	--fg-orange-dark: var(--wp--preset--color--orange-dark, #C2410C);
	--fg-price: var(--wp--preset--color--price, #D9480F);
	--fg-paper: var(--wp--preset--color--paper, #F4F7FA);
	--fg-mist: var(--wp--preset--color--mist, #E8F0F8);
	--fg-rule: var(--wp--preset--color--rule, #D3DEE9);
	--fg-muted: var(--wp--preset--color--muted, #5B6B7B);
	--fg-mono: var(--wp--preset--font-family--mono, ui-monospace, Menlo, Consolas, monospace);
	--fg-radius: 14px;
	--fg-lift: 0 6px 20px rgba(14, 58, 102, .12);
	/* white blueprint grid for navy surfaces */
	--fg-grid-navy:
		linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
}

body { -webkit-font-smoothing: antialiased; }
/* No default block gap between header, main and footer */
.wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
img { height: auto; max-width: 100%; }
:where(a):focus-visible { outline: 3px solid var(--fg-orange); outline-offset: 2px; border-radius: 3px; }
:where(body) { font-variant-numeric: tabular-nums; }

.fg-kicker {
	font-size: .8125rem !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-muted);
	margin: 0;
}

/* ---------- Header (navy bar) ---------- */
.fg-site-header { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.fg-brand { min-width: 0; }
.fg-logo-mark { display: inline-flex; flex: none; line-height: 0; }
.fg-site-header .wp-block-site-title { white-space: nowrap; }
.fg-site-header .wp-block-site-title a { color: #fff; }
.fg-main-nav .wp-block-navigation-item__content { text-decoration: none; color: #fff; opacity: .88; }
.fg-main-nav .wp-block-navigation-item__content:hover { opacity: 1; color: var(--fg-sky); }
.fg-main-nav .wp-block-navigation__responsive-container-open,
.fg-main-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.fg-main-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--fg-navy);
	background-image: var(--fg-grid-navy);
	background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
	color: #fff;
	padding: 24px;
}
.fg-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.35rem; padding: .35em 0; opacity: 1; }
@media (max-width: 599px) {
	.fg-header-cta { display: none; }
}

/* ---------- Buttons ---------- */
.fg-btn,
.fg-btn:visited {
	display: inline-block;
	background: var(--fg-orange);
	color: #fff !important;
	font-weight: 700;
	font-size: 1.1875rem;
	line-height: 1.2;
	padding: .7em 1.35em;
	border-radius: 999px;
	text-decoration: none !important;
	text-align: center;
	transition: background-color .12s ease;
}
.fg-btn:hover { background: var(--fg-orange-dark); }
.fg-header-cta .wp-block-button__link { font-size: 1.1875rem; }
.wp-block-button.is-style-fg-ghost > .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, .6);
}
.wp-block-button.is-style-fg-ghost > .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: #fff; color: var(--fg-navy); border: 1.5px solid var(--fg-navy); }
.wp-block-button.is-style-fg-text > .wp-block-button__link { background: none; color: var(--fg-navy); padding-left: 0; padding-right: 0; }

/* ---------- Layout with sidebar ---------- */
.fg-breadcrumbs { font-size: .8125rem; color: var(--fg-muted); margin-bottom: .25rem; }
.fg-breadcrumbs a { color: var(--fg-muted); text-decoration: none; }
.fg-breadcrumbs a:hover { text-decoration: underline; }
.fg-breadcrumbs .fg-sep { margin: 0 .35em; opacity: .6; }
.fg-article-meta { margin-top: .5rem !important; }
.fg-article-meta p { margin: 0; font-size: .8125rem; color: var(--fg-muted); }
.fg-featured img { border-radius: var(--fg-radius); }
@media (min-width: 782px) {
	.fg-layout__aside .fg-sidebar { position: sticky; top: 24px; }
	.admin-bar .fg-layout__aside .fg-sidebar { top: 56px; }
}

/* ---------- Sidebar ---------- */
.fg-side-quote {
	background: #fff;
	border: 1px solid var(--fg-rule);
	border-top: 5px solid var(--fg-orange);
	border-radius: 16px;
	padding: 22px;
}
.fg-side-quote h2 { margin: 0; }
.fg-side-nav {
	background: #fff;
	border: 1px solid var(--fg-rule);
	border-radius: 16px;
	padding: 20px 22px 14px;
}
.fg-side-nav h2 { margin: 0; }
.fg-side-nav .wp-block-page-list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.fg-side-nav .wp-block-page-list li { border-top: 1px solid var(--fg-mist); }
.fg-side-nav .wp-block-page-list li:first-child { border-top: 0; }
.fg-side-nav .wp-block-page-list a { display: block; padding: .45em 0; text-decoration: none; color: var(--fg-ink); }
.fg-side-nav .wp-block-page-list a:hover { color: var(--fg-navy); text-decoration: underline; }
.fg-side-nav .current-menu-item > a { color: var(--fg-navy); font-weight: 700; }
.fg-side-nav .current-menu-item > a::before { content: "▸ "; color: var(--fg-orange); }
.fg-side-more { font-size: .875rem; color: var(--fg-muted); }

/* ---------- Block styles ---------- */
.is-style-fg-card {
	background: #fff;
	border: 1px solid var(--fg-rule);
	border-radius: 16px;
	padding: clamp(18px, 3vw, 26px);
}

.is-style-fg-paper,
.is-style-fg-cta-dark {
	background-color: var(--fg-navy);
	background-image: var(--fg-grid-navy);
	background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
	color: #fff;
}
.is-style-fg-cta-dark { border-radius: 16px; padding: clamp(20px, 3.5vw, 36px); }
.is-style-fg-paper :where(h1, h2, h3, h4),
.is-style-fg-cta-dark :where(h1, h2, h3, h4) { color: #fff; }
.is-style-fg-paper a:not(.wp-block-button__link),
.is-style-fg-cta-dark a:not(.wp-block-button__link) { color: var(--fg-sky); }
.is-style-fg-cta-dark p { margin: .35em 0 0; color: var(--fg-sky-pale); }

.is-style-fg-info {
	background: var(--fg-mist);
	border-radius: 12px;
	padding: 18px 22px;
	gap: 14px;
}
.is-style-fg-info p { margin: 0; }

.is-style-fg-warning {
	background: var(--wp--preset--color--warning-bg, #FFF4E5);
	color: var(--wp--preset--color--warning-ink, #7A3A0A);
	border-left: 5px solid var(--fg-orange);
	border-radius: 8px;
	padding: 16px 20px;
}

/* Price box: navy blueprint panel – big price, project total, button */
.is-style-fg-price-box {
	background-color: var(--fg-navy);
	background-image:
		linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 16px 16px;
	color: #fff;
	border-radius: 16px;
	padding: 22px 24px !important;
	margin-block: 1.75rem 2rem;
}
.is-style-fg-price-box > * { margin: 0; }
.fg-price-head {
	font-size: .75rem !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-sky);
	margin: 0 0 6px !important;
}
.fg-price-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}
.fg-price-body > * { margin: 0 !important; }
.fg-price-range {
	font-size: clamp(2.2rem, 6vw, 2.9rem);
	font-weight: 800;
	line-height: 1;
	color: #fff;
	letter-spacing: -.02em;
}
.fg-price-range span {
	display: block;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fg-sky);
	margin-top: 8px;
}
.fg-price-project { color: var(--fg-sky-pale); font-size: 1rem; line-height: 1.45; flex: 1 1 180px; }
.fg-price-project strong { color: #fff; font-size: 1.35rem; }
.fg-price-actions { margin: 0; }
.fg-price-note { font-size: .8125rem; color: var(--fg-sky-pale); margin-top: 14px !important; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); }
.is-style-fg-price-box a:not(.wp-block-button__link):not(.fg-btn) { color: var(--fg-sky); }

/* Checklist */
.is-style-fg-checklist { list-style: none; padding-left: 0; }
.is-style-fg-checklist li { position: relative; padding-left: 1.7em; margin: .35em 0; }
.is-style-fg-checklist li::before {
	content: "";
	position: absolute;
	left: .15em;
	top: .4em;
	width: .5em;
	height: .9em;
	border: solid var(--fg-orange);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
.is-style-fg-cta-dark .is-style-fg-checklist li::before { border-color: var(--fg-sky); }

/* ---------- Tables ---------- */
.wp-block-table,
.fg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 1.5rem; }
.fg-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	font-size: .975rem;
	border: 1px solid var(--fg-rule) !important;
	border-radius: 12px;
	overflow: hidden;
}
.fg-content td,
.fg-content th,
.wp-block-table td,
.wp-block-table th {
	border: 0 !important;
	border-bottom: 1px solid #E3EAF1 !important;
	padding: .7em .9em;
	vertical-align: top;
	text-align: left;
}
.fg-content tr:last-child td,
.wp-block-table tr:last-child td { border-bottom: 0 !important; }
.fg-content th,
.wp-block-table thead th { background: var(--fg-mist) !important; color: var(--fg-navy) !important; font-weight: 700; }
.is-style-fg-cost td:nth-child(2) { font-weight: 700; color: var(--fg-navy); white-space: nowrap; }
.wp-block-table figcaption { font-size: .8125rem; color: var(--fg-muted); margin-top: .5rem; }

/* Old Classic tables used inline brown/tan colours – map them onto the blueprint palette. */
.fg-content tr[style*="796421"],
.fg-content td[style*="796421"],
.fg-content tr[style*="584818"],
.fg-content td[style*="584818"] {
	background-color: var(--fg-mist) !important;
	color: var(--fg-navy) !important;
	font-weight: 700;
	border-color: var(--fg-rule) !important;
}
.fg-content td[style*="584818"],
.fg-content tr[style*="796421"]:first-child td[colspan],
.fg-content tr:first-child > td[style*="796421"][colspan] {
	background-color: var(--fg-navy) !important;
	color: #fff !important;
	text-align: center !important;
}
.fg-content td[style*="584818"] *,
.fg-content tr[style*="796421"]:first-child td[colspan] *,
.fg-content tr:first-child > td[style*="796421"][colspan] * { color: #fff !important; }
.fg-content tr[style*="796421"] td { background-color: transparent !important; }
.fg-content tr[style*="796421"] span[style*="ffffff"],
.fg-content td[style*="796421"] span[style*="ffffff"] { color: inherit !important; }
.fg-content table[style*="ecdfb7"],
.fg-content table[style*="ebdeb6"],
.fg-content tr[style*="ecdfb7"],
.fg-content td[style*="ecdfb7"],
.fg-content td[style*="ebdeb6"] { background-color: #fff !important; }
.fg-content table span[style*="796421"],
.fg-content table span[style*="333333"] { color: inherit !important; }
.fg-content table[style*="height"] { height: auto !important; }
.fg-content table img { margin: 0 auto .35rem; border-radius: 8px; }

/* ---------- Classic content ---------- */
.fg-content > * + * { margin-top: 1.1em; }
.fg-content p[style*="justify"],
.fg-content h2[style*="justify"] { text-align: left !important; }
.fg-content h2 { margin-top: 2em; }
.fg-content h3 { margin-top: 1.6em; }
.fg-content h2 strong { font-weight: inherit; }
.fg-content hr { border: 0; border-top: 1px solid var(--fg-rule); margin: 2rem 0; height: 0; background: none; }
.fg-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 45%; }
.fg-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 45%; }
.fg-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.fg-content img { border-radius: 10px; }
.fg-content::after { content: ""; display: table; clear: both; }
@media (max-width: 599px) {
	.fg-content .alignright,
	.fg-content .alignleft { float: none; max-width: 100%; margin: 1em auto; display: block; }
}
.fg-content .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 1.5rem; }
.fg-content .gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fg-content .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fg-content .gallery-item { margin: 0; }
.fg-content .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0 !important; }
.fg-content .gallery br { display: none; }
@media (max-width: 599px) { .fg-content .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Old "We can arrange free quotes" banners (#quote-banner) – hidden before, now a quote box. */
.fg-content #quote-banner,
.fg-inline-cta {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	width: auto;
	background: #fff;
	border: 1px solid var(--fg-rule);
	border-left: 5px solid var(--fg-orange);
	border-radius: 12px;
	padding: 18px 22px;
	margin-block: 1.75rem;
	color: var(--fg-navy);
	font-size: 1.1rem;
	font-weight: 700;
	overflow: visible;
}
.fg-content #quote-banner #text { float: none; width: auto; flex: 1 1 260px; margin: 0; text-align: left; }
.fg-content #quote-banner #button { float: none; width: auto; margin: 0; padding: 0; background: none; border: 0; display: block; }
.fg-content #quote-banner #button a,
.fg-content #quote-banner #button a:hover {
	display: inline-block;
	background: var(--fg-orange);
	color: #fff;
	font-size: 1.1875rem;
	font-weight: 700;
	padding: .65em 1.35em;
	margin: 0;
	border-radius: 999px;
	text-decoration: none;
}
.fg-content #quote-banner #button a:hover { background: var(--fg-orange-dark); }
.fg-inline-cta p { margin: 0; }
.fg-inline-cta__small { font-size: .85rem; font-weight: 400; color: var(--fg-muted); }

.fg-networx { margin-block: 1.5rem; }
.fg-networx iframe { max-width: 100%; }

.fg-content .pt-cv-wrapper a { text-decoration: none; }
.fg-content .pt-cv-title a { color: var(--fg-navy); font-weight: 700; }

/* FAQ / details */
.wp-block-details { background: #fff; border: 1px solid var(--fg-rule); border-radius: 12px; padding: 14px 18px; }
.wp-block-details + .wp-block-details { margin-top: 10px; }
.wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--fg-navy); }
.wp-block-details[open] summary { margin-bottom: .5rem; }

.fg-two-col-list { columns: 2 16rem; column-gap: 2rem; padding-left: 1.1rem; }
.fg-two-col-list li { break-inside: avoid; margin: .25em 0; }

/* ---------- Homepage hero (navy blueprint) ---------- */
.fg-hero {
	background-color: var(--fg-navy);
	background-image: var(--fg-grid-navy);
	background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
	color: #fff;
	overflow: hidden;
}
.fg-hero .fg-kicker { color: var(--fg-sky); }
.fg-hero__title {
	color: #fff !important;
	margin: .7rem 0 0 !important;
	font-size: clamp(1.9rem, 4.2vw, 2.75rem) !important;
	line-height: 1.1 !important;
}
.fg-lead { font-size: var(--wp--preset--font-size--large); color: var(--fg-muted); max-width: 40rem; }
.fg-hero .fg-lead { color: var(--fg-sky-pale); margin-top: 1rem; }
.fg-hero-drawing { color: var(--fg-sky-pale); }
.fg-dim {
	display: flex;
	align-items: center;
	gap: 8px;
	font: 600 .8125rem/1 var(--fg-mono);
	color: var(--fg-sky);
	margin: 0 0 10px;
}
.fg-dim::before,
.fg-dim::after { content: ""; flex: 1; height: 1px; background: var(--fg-sky); opacity: .7; }
.fg-hero-svg { width: 100%; height: auto; display: block; }
@media (max-width: 781px) { .fg-hero__art { display: none; } }

.fg-section-head h2 { margin: 0; }
.fg-section-link { margin: 0; font-weight: 700; }
.fg-section-link a { text-decoration: none; color: var(--fg-navy); }
.fg-section-link a:hover { text-decoration: underline; }
.fg-small-note { font-size: .875rem; color: var(--fg-muted); margin-top: 1rem; }

/* Material tiles */
.fg-tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
	gap: 14px;
	margin-top: 22px;
}
.fg-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #fff;
	border: 1px solid var(--fg-rule);
	border-radius: var(--fg-radius);
	padding: 16px;
	color: var(--fg-ink);
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.fg-tile:hover { border-color: var(--fg-navy); box-shadow: var(--fg-lift); color: var(--fg-ink); }
.fg-fence-icon {
	width: 100%;
	height: 56px;
	margin-bottom: 12px;
	padding: 4px 0;
	color: var(--fg-navy);
	border-radius: 8px;
	background:
		linear-gradient(var(--fg-mist) 1px, transparent 1px) 0 0 / 8px 8px,
		linear-gradient(90deg, var(--fg-mist) 1px, transparent 1px) 0 0 / 8px 8px;
}
.fg-tile-name { font-weight: 700; font-size: 1rem; }
.fg-tile-price { font-size: 1.2rem; font-weight: 800; color: var(--fg-price); }
.fg-tile-price small { font-size: .75rem; color: var(--fg-muted); font-weight: 600; }

.fg-front-content .fg-content { background: #fff; border: 1px solid var(--fg-rule); border-radius: 16px; padding: clamp(18px, 4vw, 40px); }

/* ---------- Post cards ---------- */
.fg-post-card { background: #fff; border: 1px solid var(--fg-rule); border-radius: var(--fg-radius); overflow: hidden; height: 100%; transition: box-shadow .15s ease, border-color .15s ease; }
.fg-post-card:hover { border-color: var(--fg-navy); box-shadow: var(--fg-lift); }
.fg-post-card .wp-block-post-featured-image { margin: 0; }
.fg-post-card .wp-block-post-featured-image img { border-radius: 0; }
.fg-post-card-body { padding: 16px 18px 20px; }
.fg-post-card-body > * + * { margin-top: .5rem; }
.fg-post-card .wp-block-post-title { font-size: 1.125rem; }
.fg-post-card .wp-block-post-title a { text-decoration: none; color: var(--fg-navy); }
.fg-post-card .wp-block-post-excerpt { font-size: .95rem; color: var(--fg-muted); }

/* ---------- Footer ---------- */
.fg-site-footer a { color: #fff; }
.fg-site-footer .wp-block-site-title a { color: #fff; }
.fg-footer-heading {
	font-size: .75rem !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-sky) !important;
}
.fg-footer-list { list-style: none; padding: 0; margin: 0; }
.fg-footer-list li { margin: .4em 0; }
.fg-footer-list a { text-decoration: none; }
.fg-footer-list a:hover { text-decoration: underline; }
.fg-footer-legal { border-top: 1px solid rgba(201, 221, 242, .2); font-size: .85rem; color: var(--fg-sky-pale); }
.fg-footer-legal p { margin: 0; }

/* ---------- Sticky mobile quote button ---------- */
.fg-sticky-cta { display: none; }
@media (max-width: 781px) {
	.fg-sticky-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99;
		padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
		background: rgba(14, 58, 102, .97);
		box-shadow: 0 -4px 16px rgba(14, 58, 102, .2);
	}
	.fg-sticky-cta .fg-btn { display: block; width: 100%; }
	body.has-fg-sticky-cta { padding-bottom: 80px; }
}

/* ---------- Search ---------- */
.wp-block-search__input { border: 1px solid var(--fg-rule); border-radius: 999px; padding: .6em 1em; background: #fff; }
.wp-block-search__button { border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
	.fg-tile, .fg-post-card, .fg-btn { transition: none; }
}

/* ---------- "On this page" menu (built from H2s) – v3.3.0 ---------- */
.fg-toc { margin: 0 0 1.75rem; z-index: 40; }
.fg-toc.is-js { position: sticky; top: 0; }
.admin-bar .fg-toc.is-js { top: 32px; }
@media (max-width: 782px) { .admin-bar .fg-toc.is-js { top: 0; } }
.fg-toc__box {
	background-color: var(--fg-navy);
	background-image:
		linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 16px 16px;
	border-radius: 12px;
	color: #fff;
	box-shadow: 0 6px 18px rgba(10, 42, 74, .18);
}
.fg-toc__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
	list-style: none;
}
.fg-toc__bar::-webkit-details-marker { display: none; }
.fg-toc__label {
	flex: none;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-sky);
}
.fg-toc__current {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	font-size: .9375rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	visibility: hidden;
}
.fg-toc.is-stuck .fg-toc__current { visibility: visible; }
.fg-toc__toggle {
	flex: none;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: .35em .85em;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 700;
}
.fg-toc__toggle svg { transition: transform .15s ease; }
.fg-toc__box[open] .fg-toc__toggle svg { transform: rotate(180deg); }
.fg-toc__bar:hover .fg-toc__toggle { background: rgba(255, 255, 255, .12); }
.fg-toc__list {
	list-style: none;
	counter-reset: fgtoc;
	margin: 0;
	padding: 4px 16px 16px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 20px;
	max-height: min(60vh, 520px);
	overflow-y: auto;
	border-top: 1px solid rgba(255, 255, 255, .15);
	padding-top: 12px;
}
.fg-toc__list li { counter-increment: fgtoc; margin: 0; }
.fg-toc__list a {
	display: flex;
	gap: 10px;
	padding: .45em .6em;
	border-radius: 8px;
	color: #fff;
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}
.fg-toc__list a::before {
	content: counter(fgtoc);
	flex: none;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: var(--fg-sky);
	font-size: .75rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.fg-toc__list a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.fg-toc__list a[aria-current="true"] { background: #fff; color: var(--fg-navy); }
.fg-toc__list a[aria-current="true"]::before { background: var(--fg-navy); color: #fff; }
.fg-content h2[id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }
@media (max-width: 599px) {
	.fg-toc { margin-inline: -16px; }
	.fg-toc__box { border-radius: 0; }
	.fg-toc__list { grid-template-columns: 1fr; }
	.fg-toc.is-stuck .fg-toc__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .fg-toc__toggle svg { transition: none; } }

/* Tiles are links: never underline their text */
a.fg-tile,
a.fg-tile * { text-decoration: none !important; }

/* Homepage: wide cards for the calculator and the page's own content */
.fg-front .fg-calc-card,
.fg-front-content .fg-content { max-width: var(--wp--style--global--wide-size, 1200px) !important; box-sizing: border-box; }
.fg-front-content .fg-content > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.fg-front-content .fg-content > .fg-table-wrap,
.fg-front-content .fg-content > table { max-width: 100%; }
.fg-front .fg-calc-card { box-sizing: border-box; background: #fff; border: 1px solid var(--fg-rule); border-radius: 16px; padding: clamp(18px, 4vw, 40px); }
.fg-front .fg-calc-card > * { max-width: 860px; margin-left: auto; margin-right: auto; }

/* ---------- Old content leftovers ---------- */
/* Doubled / stray dividers left where old widgets were removed */
.fg-content > hr:first-child,
.fg-content > hr:last-child,
.fg-content > hr + hr { display: none; }
/* Tan highlight spans inside old tables */
.fg-content table span[style*="background-color"] { background-color: transparent !important; }
.fg-content td[style*="e4d29c"] { background-color: #fff !important; }
.fg-content td span[style*="796421"] { color: inherit !important; }
/* Old wide banner images at the top of posts */
.fg-content > p:first-child > img.aligncenter,
.fg-content > img:first-child { border-radius: 14px; }

/* ---------- Old tables: drop every inline text colour (v3.1.1) ---------- */
.fg-content table span[style*="color"],
.fg-content table font[color] { color: inherit !important; }
.fg-content table td,
.fg-content table th { color: var(--fg-ink); }
.fg-content table a,
.fg-content table a[style*="color"] {
	color: var(--fg-navy) !important;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--fg-rule);
	text-underline-offset: 3px;
}
.fg-content table a:hover { text-decoration-color: currentColor; }
.fg-content table strong,
.fg-content table b { color: var(--fg-navy); }
/* keep white text on the navy title rows */
.fg-content td[style*="584818"],
.fg-content td[style*="584818"] *,
.fg-content tr[style*="796421"]:first-child td[colspan],
.fg-content tr[style*="796421"]:first-child td[colspan] *,
.fg-content tr:first-child > td[style*="796421"][colspan],
.fg-content tr:first-child > td[style*="796421"][colspan] * { color: #fff !important; }
/* header rows (pale blue) */
.fg-content tr[style*="796421"] td,
.fg-content td[style*="796421"]:not([colspan]),
.fg-content tr[style*="796421"] td *,
.fg-content td[style*="796421"]:not([colspan]) * { color: var(--fg-navy) !important; }
/* table notes row */
.fg-content table em { color: var(--fg-muted); font-size: .875rem; }

/* Underlined non-link text looks like a link: remove it */
.fg-content span[style*="underline"],
.fg-content u { text-decoration: none !important; }
/* "Table 1:" style labels become small caps captions */
.fg-content p > strong:first-child > u,
.fg-content p > span[style*="underline"]:first-child > strong { color: var(--fg-navy); }


/* =========================================================================
   Quote page (/about-us/fence-estimates/, "Tool page" template) – v3.2.0
   ========================================================================= */
.fg-tool-content > .alignfull { margin-top: 0; }
.fg-qh {
	background-color: var(--fg-navy);
	background-image: var(--fg-grid-navy);
	background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
	color: #fff;
	padding: clamp(32px, 6vw, 64px) max(16px, calc(50vw - 600px));
}
.fg-qh__in {
	display: grid;
	grid-template-columns: 1fr minmax(0, 520px);
	gap: clamp(24px, 5vw, 56px);
	align-items: start;
}
.fg-qh h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; margin: .6rem 0 0; }
.fg-qh .fg-kicker { color: var(--fg-sky); }
.fg-qh__lead { color: var(--fg-sky-pale); font-size: 1.1875rem; margin: 1rem 0 0; max-width: 34rem; }
.fg-qh__ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.fg-qh__ticks li { position: relative; padding-left: 1.8em; color: #fff; font-weight: 600; }
.fg-qh__ticks li::before {
	content: ""; position: absolute; left: .2em; top: .3em; width: .5em; height: .9em;
	border: solid var(--fg-sky); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.fg-qh__card {
	min-width: 0;
	background: #fff;
	color: var(--fg-ink);
	border-radius: 16px;
	border-top: 5px solid var(--fg-orange);
	padding: 20px 20px 16px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}
.fg-qh__card-title { font-weight: 800; color: var(--fg-navy); font-size: 1.15rem; margin: 0 0 8px; }
.fg-qh__card .fg-networx { margin: 0; }
.fg-qh__card #nx_form { min-height: 435px; }
.fg-qh__card p:empty { display: none; }
.fg-qh__disc { font-size: .8125rem; color: var(--fg-muted); margin: 10px 0 0; line-height: 1.5; }
.fg-qsteps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	counter-reset: fgstep;
	margin-top: clamp(32px, 5vw, 56px) !important;
	padding: 0 max(16px, calc(50vw - 600px));
}
.fg-qsteps > div { background: #fff; border: 1px solid var(--fg-rule); border-radius: 14px; padding: 20px; counter-increment: fgstep; }
.fg-qsteps > div::before {
	content: counter(fgstep);
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--fg-navy); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.fg-qsteps h2 { font-size: 1.1rem; margin: 0 0 .3rem; }
.fg-qsteps p { margin: 0; color: var(--fg-muted); font-size: .95rem; }
.fg-qcalc { margin-top: clamp(32px, 5vw, 56px) !important; padding: 0 max(16px, calc(50vw - 600px)); }
.fg-qcalc__card { background: #fff; border: 1px solid var(--fg-rule); border-radius: 16px; padding: clamp(18px, 4vw, 40px); }
.fg-qcalc__card > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.fg-qfoot { margin: 24px 0 56px !important; padding: 0 max(16px, calc(50vw - 600px)); font-size: .875rem; color: var(--fg-muted); }
@media (max-width: 860px) {
	.fg-qh__in, .fg-qsteps { grid-template-columns: 1fr; }
}

/* =========================================================================
   Calculator skin – IC Cost Calculators ([ic_calculator]) – v3.3.0
   Same layout as improvementcalc.com, in FenceGuides colours.
   ========================================================================= */
.ic-calc [hidden] { display: none !important; }
.ic-calc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
	grid-template-areas:
		"title result"
		"intro result"
		"form  result"
		"form  cta"
		"form  ."
		"lead  lead"
		"tools tools"
		"checker checker"
		"report report";
	grid-template-rows: auto auto auto auto 1fr;
	column-gap: 28px;
	align-items: start;
	background: #fff;
	border: 1px solid var(--fg-rule);
	border-top: 4px solid var(--fg-navy);
	border-radius: 16px;
	padding: 24px 24px 20px;
	margin-block: 2rem;
	color: var(--fg-ink);
	font-size: 1rem;
	box-shadow: 0 2px 10px rgba(14, 58, 102, .05);
}
.fg-qcalc__card .ic-calc,
.fg-calc-card .ic-calc { margin-block: 0; }
.ic-calc > * { margin: 0; min-width: 0; }
.ic-calc .ic-calc__title { grid-area: title; color: var(--fg-navy) !important; font-size: 1.45rem; line-height: 1.2; margin: 0 0 4px !important; }
.ic-calc__intro { grid-area: intro; color: var(--fg-muted); font-size: .9375rem; margin: 0 0 14px !important; }

/* inputs: one per row */
.ic-calc__form { grid-area: form; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ic-calc__field { margin: 0; }
.ic-calc__label { display: block; font-size: .875rem; font-weight: 700; color: var(--fg-ink); margin-bottom: 6px; }
.ic-calc .ic-calc__control {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--fg-ink);
	background: #fff;
	border: 1px solid #B9C9DA;
	border-radius: 8px;
	padding: .6em .8em;
	min-height: 44px;
	transition: border-color .12s ease, box-shadow .12s ease;
}
.ic-calc select.ic-calc__control {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.2em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E3A66' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .8em center;
}
.ic-calc .ic-calc__control:focus { outline: none; border-color: var(--fg-navy); box-shadow: 0 0 0 3px rgba(14, 58, 102, .15); }
.ic-calc__number { display: flex; align-items: center; gap: 10px; }
.ic-calc__number .ic-calc__control { flex: 1; }
.ic-calc__unit { flex: none; color: var(--fg-muted); font-size: .875rem; }
.ic-calc__number .ic-calc__unit:first-child { order: 0; }
.ic-calc .ic-calc__zip { max-width: 170px; }
.ic-calc__help,
.ic-calc__option-help { margin: 6px 0 0; font-size: .8125rem; color: var(--fg-muted); line-height: 1.4; }
.ic-calc__field-error { margin: 6px 0 0; font-size: .8125rem; color: #B42318; font-weight: 600; }
.ic-calc__toggle,
.ic-calc__option,
.ic-calc__consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.ic-calc__toggle .ic-calc__label { margin: 0; }
.ic-calc input[type="checkbox"].ic-calc__control,
.ic-calc input[type="radio"].ic-calc__control {
	width: 20px; height: 20px; min-height: 0; flex: none; padding: 0; margin: 1px 0 0;
	accent-color: var(--fg-navy);
}
.ic-calc__optional { font-weight: 400; color: var(--fg-muted); }

/* result card (result + CTA share one tinted card) */
.ic-calc__result,
.ic-calc__cta { background: #EEF4FA; border: 1px solid #9DB7D3; }
.ic-calc__result {
	grid-area: result;
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	padding: 20px 20px 4px;
}
.ic-calc__cta {
	grid-area: cta;
	border-top: 0;
	border-radius: 0 0 12px 12px;
	padding: 16px 20px 20px;
	position: relative;
}
.ic-calc__cta::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; border-top: 1px solid #C9D8E7; }
.ic-calc__headline { font-size: .8125rem !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-navy); margin: 0; }
.ic-calc__range { font-size: clamp(1.8rem, 4vw, 2.25rem); font-weight: 800; line-height: 1.1; color: var(--fg-navy); margin: 6px 0 0; letter-spacing: -.01em; }
.ic-calc__typical { margin: 8px 0 0; font-size: .95rem; }
.ic-calc__typical strong { color: var(--fg-ink); }
.ic-calc__region { margin: 6px 0 0; font-size: .8125rem; color: var(--fg-muted); padding-bottom: 12px; border-bottom: 1px solid #C9D8E7; }
.ic-calc__breakdown { list-style: none; padding: 0; margin: 8px 0 0; }
.ic-calc__line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #C9D8E7; font-size: .9375rem; }
.ic-calc__line:first-child { border-top: 0; }
.ic-calc__line-value { font-weight: 700; white-space: nowrap; }
.ic-calc__advisories { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ic-calc__advisory { background: #fff; border-radius: 10px; padding: 10px 12px; margin: 0; font-size: .875rem; color: var(--fg-ink); line-height: 1.45; }
.ic-calc__error { color: #B42318; font-weight: 600; }

/* buttons */
.ic-calc__cta-button,
.ic-calc__submit,
.ic-calc__panel-submit,
.ic-calc__verdict-quotes,
.ic-calc__optin-send {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 999px;
	background: var(--fg-orange);
	color: #fff;
	font: inherit;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.25;
	padding: .75em 1.2em;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(228, 82, 31, .25);
	transition: background-color .12s ease;
}
.ic-calc__cta-button:hover,
.ic-calc__submit:hover,
.ic-calc__panel-submit:hover,
.ic-calc__verdict-quotes:hover,
.ic-calc__optin-send:hover { background: var(--fg-orange-dark); }
.ic-calc__cta-button[aria-expanded="true"] { background: var(--fg-navy); box-shadow: none; }

/* lead form (opens from the CTA) */
.ic-calc__lead { grid-area: lead; margin-top: 20px !important; background: var(--fg-paper); border: 1px solid var(--fg-rule); border-top: 4px solid var(--fg-orange); border-radius: 12px; padding: 20px; }
.ic-calc .ic-calc__lead-title { font-size: 1.25rem; margin: 0 0 4px; }
.ic-calc__lead-intro { margin: 0 0 14px; color: var(--fg-muted); font-size: .95rem; }
.ic-calc__lead-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ic-calc__lead-field--notes { grid-column: 1 / -1; }
.ic-calc__lead-field--consent { margin: 14px 0; }
.ic-calc__consent-text { font-size: .75rem; color: var(--fg-muted); line-height: 1.5; }
.ic-calc__hp { position: absolute !important; left: -9999px !important; }
.ic-calc__errors { background: #FEF3F2; color: #B42318; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-weight: 600; }
.ic-calc__success { background: #ECFDF3; border-radius: 12px; padding: 16px; color: #05603A; font-weight: 600; }

/* "Had a quote?" / "Already have a quote?" cards */
.ic-calc__price-tools {
	grid-area: tools;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px !important;
	padding-top: 20px;
	border-top: 1px solid var(--fg-rule);
}
.ic-calc__tool-button {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	text-align: left;
	background: #F7F9FC;
	border: 1px solid #B9C9DA;
	border-radius: 10px;
	padding: 12px 36px 12px 12px;
	font: inherit;
	color: var(--fg-ink);
	cursor: pointer;
	transition: border-color .12s ease, background-color .12s ease;
}
.ic-calc__tool-button::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 7px;
	height: 7px;
	border: solid var(--fg-muted);
	border-width: 2px 2px 0 0;
	transform: translateY(-50%) rotate(45deg);
}
.ic-calc__tool-button[aria-expanded="true"]::after { transform: translateY(-75%) rotate(135deg); }
.ic-calc__tool-button:hover,
.ic-calc__tool-button[aria-expanded="true"] { border-color: var(--fg-navy); background: #fff; }
.ic-calc__tool-icon { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 8px; background: var(--fg-mist); color: var(--fg-navy); display: flex; align-items: center; justify-content: center; }
.ic-calc__tool-icon svg { width: 20px; height: 20px; }
.ic-calc__tool-title { font-weight: 700; color: var(--fg-ink); font-size: .9375rem; }
.ic-calc__tool-text { font-size: .8125rem; color: var(--fg-muted); }

/* checker + share panels */
.ic-calc__checker { grid-area: checker; }
.ic-calc__report { grid-area: report; }
.ic-calc__checker,
.ic-calc__report { margin-top: 16px !important; padding: 20px; border: 1px solid var(--fg-rule); border-radius: 12px; background: var(--fg-paper); }
.ic-calc .ic-calc__panel-title { font-size: 1.2rem; margin: 0 0 4px; }
.ic-calc__panel-intro,
.ic-calc__report-summary { margin: 0 0 14px; color: var(--fg-muted); font-size: .95rem; }
.ic-calc__panel-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 16px; }
.ic-calc__panel-field--includes,
.ic-calc__panel-field--type,
.ic-calc__panel-field--note,
.ic-calc__panel-field--consent { grid-column: 1 / -1; }
.ic-calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ic-calc__checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.ic-calc__checks legend { margin-bottom: 6px; }
.ic-calc__options { display: grid; gap: 8px; }
.ic-calc__month { display: flex; gap: 8px; }
.ic-calc__verdict { margin-top: 16px; background: #fff; border: 1px solid var(--fg-rule); border-radius: 12px; padding: 16px; }
.ic-calc__verdict-title { font-weight: 800; color: var(--fg-navy); font-size: 1.1rem; margin: 0; }
.ic-calc__verdict-bar { position: relative; height: 10px; background: var(--fg-mist); border-radius: 999px; margin: 14px 0 22px; }
.ic-calc__verdict-range { position: absolute; top: 0; bottom: 0; background: var(--fg-sky); border-radius: 999px; }
.ic-calc__verdict-marker { position: absolute; top: -4px; width: 4px; height: 18px; background: var(--fg-orange); border-radius: 2px; }
.ic-calc__verdict-low,
.ic-calc__verdict-high { position: absolute; top: 14px; font-size: .75rem; color: var(--fg-muted); }
.ic-calc__verdict-note { font-size: .8125rem; color: var(--fg-muted); }
.ic-calc .ic-calc__verdict-heading { font-size: .95rem; margin: 14px 0 6px; }
.ic-calc__verdict-actions { display: grid; gap: 10px; margin-top: 14px; }

/* phones and narrow columns */
@media (max-width: 760px) {
	.ic-calc {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "title" "intro" "form" "result" "cta" "lead" "tools" "checker" "report";
		grid-template-rows: none;
		padding: 18px 16px 16px;
	}
	.ic-calc__result { margin-top: 22px !important; }
	.ic-calc__lead-fields,
	.ic-calc__panel-fields,
	.ic-calc__price-tools,
	.ic-calc__checks { grid-template-columns: minmax(0, 1fr); }
}

.fg-content figure.wp-block-table,
figure.wp-block-table { margin-left: 0; margin-right: 0; }

/* ===== v3.4.0 post cards: blueprint art panel instead of old photos ===== */
.fg-card-art {
	position: relative; display: flex; align-items: center; justify-content: center;
	aspect-ratio: 16 / 8; padding: 22px 28px 18px; text-decoration: none !important;
	background-color: var(--wp--preset--color--navy, #0E3A66);
	background-image:
		linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
	color: #C9DDF2; transition: color .15s ease, background-color .15s ease;
}
.fg-card-art__svg { width: 72%; max-width: 230px; height: auto; }
.fg-card-art__kicker {
	position: absolute; top: 12px; left: 14px; font-size: .6875rem; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase; color: #8EC5FF;
}
.fg-post-card:hover .fg-card-art { color: #fff; background-color: #0A2A4A; }
.fg-post-card { display: flex; flex-direction: column; }
.fg-post-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.fg-post-card .wp-block-post-title { font-size: 1.125rem !important; line-height: 1.3; margin: 0; }
.fg-post-card .wp-block-post-title a { color: var(--wp--preset--color--ink, #0F2133); text-decoration: none; }
.fg-post-card:hover .wp-block-post-title a { color: var(--wp--preset--color--navy, #0E3A66); }
.fg-post-card .wp-block-post-excerpt { flex: 1; display: flex; flex-direction: column; margin-top: .5rem; }
.fg-post-card .wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--muted, #5B6B7B); font-size: .9375rem; line-height: 1.55; margin: 0; }
.fg-post-card .wp-block-post-excerpt__more-text { margin: auto 0 0; padding-top: 14px; }
.fg-post-card .wp-block-post-excerpt__more-link {
	font-weight: 700; font-size: .9375rem; color: var(--wp--preset--color--orange-dark, #C2410C); text-decoration: none;
}
.fg-post-card .wp-block-post-excerpt__more-link::after { content: " →"; }
.fg-post-card:hover .wp-block-post-excerpt__more-link { text-decoration: underline; text-underline-offset: 3px; }

/* ===== v3.5.0 byline + "About the authors" box (no photos) ===== */
.fg-byline { display: flex; flex-wrap: wrap; gap: 4px 0; margin: .5rem 0 1.5rem; font-size: .9375rem; color: #5B6B7B; }
.fg-byline > span + span::before { content: "·"; margin: 0 .55em; color: #9DB0C3; }
.fg-byline a { color: #0E3A66; font-weight: 600; text-decoration: none; }
.fg-byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fg-author {
	margin-top: var(--wp--preset--spacing--50, 40px); scroll-margin-top: 90px;
	background: #fff; border: 1px solid var(--fg-rule, #D3DEE9); border-top: 4px solid #0E3A66; border-radius: 16px; padding: 22px 24px 18px;
}
.fg-author p { margin: 0; }
.fg-author__title { font-size: 1.125rem; font-weight: 700; color: #0E3A66; }
.fg-author__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: 14px; }
.fg-author__person + .fg-author__person { border-left: 1px solid #E8F0F8; padding-left: 28px; }
.fg-author__by { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5B6B7B; }
.fg-author__name { font-size: 1.0625rem; font-weight: 700; color: #0F2133; margin-top: 2px !important; }
.fg-author__bio { color: #5B6B7B; font-size: .9375rem; line-height: 1.55; margin-top: 6px !important; }
.fg-author__note { margin-top: 16px !important; padding-top: 12px; border-top: 1px solid #E8F0F8; font-size: .8125rem; color: #5B6B7B; }
.fg-author__note a { color: #0E3A66; font-weight: 600; }
@media (max-width: 640px) {
	.fg-author__people { grid-template-columns: minmax(0, 1fr); }
	.fg-author__person + .fg-author__person { border-left: 0; padding-left: 0; border-top: 1px solid #E8F0F8; padding-top: 16px; }
}
.fg-content p:empty { display: none; }
.fg-content .fg-inline-cta { text-align: left; }

/* v3.4.1 card grid: cards always fill their grid cell (they were shrinking to content width) */
.wp-block-post-template > li.wp-block-post { display: flex; flex-direction: column; min-width: 0; width: auto; }
.wp-block-post-template > li.wp-block-post > .fg-post-card { width: 100%; flex: 1 1 auto; margin: 0; }
.fg-card-art { width: 100%; box-sizing: border-box; }
.fg-card-art__svg { display: block; flex: 0 0 auto; }
.wp-block-post-template.is-layout-grid { gap: 24px; }

/* ===== v3.6.0 "Compare other fence costs" (related cost guides) ===== */
.fg-rel { margin-top: var(--wp--preset--spacing--50, 40px); }
.fg-rel__title { font-size: 1.5rem; margin: 0; color: #0E3A66; }
.fg-rel__intro { margin: .35rem 0 0; color: #5B6B7B; font-size: .9375rem; }
.fg-rel__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin-top: 16px; }
.fg-rel__tile {
	display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
	background: #fff; border: 1px solid #D3DEE9; border-radius: 12px; padding: 10px 12px; color: #0F2133; text-decoration: none !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.fg-rel__tile:hover { border-color: #0E3A66; box-shadow: 0 8px 20px rgba(10,42,74,.10); }
.fg-rel__svg { grid-row: 1 / span 2; width: 44px; height: auto; color: #0E3A66; }
.fg-rel__name { font-weight: 700; font-size: .9375rem; line-height: 1.2; }
.fg-rel__price { font-weight: 800; font-size: .9375rem; color: #D9480F; }
.fg-rel__price small { font-size: .7rem; color: #5B6B7B; font-weight: 600; margin-left: 2px; }
.fg-rel__more { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; font-size: .9375rem; font-weight: 600; }
.fg-rel__more a { color: #0E3A66; text-decoration: none; }
.fg-rel__more a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== v3.6.1 contact box (About page) + Formidable forms in theme colours (Contact Us) ===== */
.fg-contact-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
	margin: 1.25rem 0; background: #fff; border: 1px solid #D3DEE9; border-left: 4px solid #0E3A66; border-radius: 14px; padding: 18px 22px;
}
.fg-contact-box p { margin: 0; }
.fg-contact-box__title { font-weight: 700; font-size: 1.0625rem; color: #0E3A66; }
.fg-contact-box__text { color: #5B6B7B; font-size: .9375rem; margin-top: 2px !important; }
.fg-btn--navy { background: #0E3A66 !important; }
.fg-btn--navy:hover { background: #0A2A4A !important; }

.fg-content .frm_forms.with_frm_style {
	background: #fff !important; border: 1px solid #D3DEE9 !important; border-radius: 16px !important; padding: 22px 24px !important; margin: 1.25rem 0 !important;
	--bg-color: #fff; --label-color: #0F2133; --text-color: #0F2133; --border-color: #C4D3E2; --description-color: #5B6B7B;
}
.fg-content .frm_forms.with_frm_style fieldset,
.fg-content .frm_forms.with_frm_style .frm_form_fields { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.fg-content .frm_forms.with_frm_style .frm_form_title { color: #0E3A66 !important; font-size: 1.25rem !important; font-weight: 700 !important; margin: 0 0 12px !important; }
.fg-content .frm_forms.with_frm_style .frm_primary_label,
.fg-content .frm_forms.with_frm_style legend.frm_primary_label { color: #0F2133 !important; font-weight: 600 !important; font-size: .9375rem !important; }
.fg-content .frm_forms.with_frm_style .frm_description,
.fg-content .frm_forms.with_frm_style .frm_required { color: #5B6B7B !important; font-size: .8125rem !important; }
.fg-content .frm_forms.with_frm_style input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.fg-content .frm_forms.with_frm_style select,
.fg-content .frm_forms.with_frm_style textarea {
	background: #fff !important; color: #0F2133 !important; border: 1px solid #C4D3E2 !important; border-radius: 10px !important;
	padding: 10px 12px !important; font-size: 1rem !important; box-shadow: none !important; height: auto !important;
}
.fg-content .frm_forms.with_frm_style input:focus,
.fg-content .frm_forms.with_frm_style select:focus,
.fg-content .frm_forms.with_frm_style textarea:focus { border-color: #0E3A66 !important; outline: 3px solid rgba(14,58,102,.15) !important; }
.fg-content .frm_forms.with_frm_style .frm_submit button,
.fg-content .frm_forms.with_frm_style .frm_button_submit {
	background: #E4521F !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
	padding: 12px 28px !important; font-size: 1.0625rem !important; font-weight: 700 !important; box-shadow: none !important; cursor: pointer;
}
.fg-content .frm_forms.with_frm_style .frm_submit button:hover { background: #C2410C !important; }
.fg-content .frm_forms.with_frm_style .frm_error { color: #B42318 !important; }
