/*
Theme Name: Foundry Forge
Theme URI: https://theaffiliatefoundry.com/
Author: The Affiliate Foundry
Author URI: https://theaffiliatefoundry.com/
Description: An industrial "forge" block theme for The Affiliate Foundry — dark steel header and hero, molten-orange accents, and light, easy-to-read articles. Includes a rating & verdict block, automatic affiliate disclosure, automatic table of contents, review schema, and editable homepage patterns. No page builder or plugins required.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foundry-forge
Tags: blog, block-patterns, full-site-editing, block-styles, custom-logo, editor-style, wide-blocks, one-column, two-columns, custom-colors, translation-ready
*/

/* ==========================================================================
   Tokens & base
   ========================================================================== */

:root {
	--ff-black: var(--wp--preset--color--forge-black, #0E0E10);
	--ff-charcoal: var(--wp--preset--color--charcoal, #1C1C20);
	--ff-iron: var(--wp--preset--color--iron, #2A2A30);
	--ff-steel: var(--wp--preset--color--steel, #6E727A);
	--ff-pewter: var(--wp--preset--color--pewter, #9A9EA6);
	--ff-polished: var(--wp--preset--color--polished-steel, #C9CCD1);
	--ff-molten: var(--wp--preset--color--molten, #F28C1A);
	--ff-ember: var(--wp--preset--color--ember, #D9480F);
	--ff-rust: var(--wp--preset--color--rust, #B8400C);
	--ff-gold: var(--wp--preset--color--gold, #F5B53A);
	--ff-parchment: var(--wp--preset--color--parchment, #F7F6F3);
	--ff-sand: var(--wp--preset--color--sand, #EEECE7);
	--ff-slate: var(--wp--preset--color--slate, #5A5E66);
	--ff-ink: var(--wp--preset--color--ink, #1F1F23);
	--ff-line-light: #DDD9D1;
	--ff-line-dark: #34343C;
	--ff-radius: 3px;
	--ff-header-h: 84px;
	--ff-glow-line: linear-gradient(90deg, rgba(242, 140, 26, 0) 0%, rgba(242, 140, 26, 0.9) 30%, #F5B53A 50%, rgba(242, 140, 26, 0.9) 70%, rgba(242, 140, 26, 0) 100%);
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

/* Template parts and <main> sit flush against each other. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

:where(h1, h2, h3, h4, h5, h6)[id],
.ff-content [id] {
	scroll-margin-top: calc(var(--ff-header-h) + 24px);
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--ff-gold);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: var(--ff-molten);
	color: var(--ff-black);
}

img {
	height: auto;
	max-width: 100%;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ff-molten {
	background: linear-gradient(180deg, #F5B53A 0%, #F28C1A 55%, #E0631A 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Eyebrow labels (small caps, wide tracking — echoes the logo tagline) */
.ff-eyebrow {
	color: var(--ff-molten);
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.ff-eyebrow--light {
	color: var(--ff-rust);
}

.ff-arrow-link {
	font-family: var(--wp--preset--font-family--oswald);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ff-arrow-link a {
	text-decoration: none;
}

.ff-arrow-link a span {
	display: inline-block;
	transition: transform 0.2s ease;
}

.ff-arrow-link a:hover span {
	transform: translateX(4px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.ff-header-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
}

body.admin-bar .ff-header-wrap {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .ff-header-wrap {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .ff-header-wrap {
		top: 0;
	}
}

.ff-header {
	border-bottom: 1px solid var(--ff-line-dark);
	position: relative;
}

.ff-header::after {
	background: var(--ff-glow-line);
	bottom: -1px;
	content: "";
	height: 1px;
	left: 0;
	opacity: 0.65;
	position: absolute;
	right: 0;
}

.ff-brand {
	gap: 0;
	min-width: 0;
}

.ff-brand img,
.ff-brand .wp-block-site-logo img {
	display: block;
	height: 60px !important;
	max-width: none;
	object-fit: contain;
	width: auto !important;
}

.ff-brand .wp-block-image,
.ff-brand .wp-block-site-logo {
	margin: 0;
}

/* When a custom logo is set in the editor, hide the bundled one. */
.wp-custom-logo .ff-brand-fallback {
	display: none;
}

@media (max-width: 600px) {
	.ff-brand img,
	.ff-brand .wp-block-site-logo img {
		height: 44px !important;
	}
}

.ff-nav .wp-block-navigation-item__content {
	color: var(--ff-polished);
	padding: 0.35em 0;
	position: relative;
	text-decoration: none;
}

.ff-nav .wp-block-navigation-item:not(.ff-nav-cta) > .wp-block-navigation-item__content::after {
	background: var(--ff-molten);
	bottom: 0;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
	width: 100%;
}

.ff-nav .wp-block-navigation-item__content:hover,
.ff-nav .wp-block-navigation-item__content:focus,
.ff-nav .current-menu-item > .wp-block-navigation-item__content {
	color: #fff;
}

.ff-nav .wp-block-navigation-item:not(.ff-nav-cta) > .wp-block-navigation-item__content:hover::after,
.ff-nav .current-menu-item:not(.ff-nav-cta) > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

.ff-nav .ff-nav-cta > .wp-block-navigation-item__content {
	border: 2px solid var(--ff-molten);
	border-radius: var(--ff-radius);
	color: var(--ff-molten);
	padding: 0.45em 1.1em;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
}

.ff-nav .ff-nav-cta > .wp-block-navigation-item__content:hover,
.ff-nav .ff-nav-cta > .wp-block-navigation-item__content:focus {
	background: var(--ff-molten);
	box-shadow: 0 0 22px rgba(242, 140, 26, 0.45);
	color: var(--ff-black);
}

/* Mobile menu */
.ff-nav .wp-block-navigation__responsive-container-open,
.ff-nav .wp-block-navigation__responsive-container-close {
	color: var(--ff-polished);
}

.ff-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
}

.ff-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	padding-top: 3rem;
}

.ff-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.5rem;
}

.ff-nav .wp-block-navigation__responsive-container.is-menu-open .ff-nav-cta {
	margin-top: 1rem;
}

/* ==========================================================================
   Buttons & block styles
   ========================================================================== */

.wp-element-button,
.wp-block-button__link {
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
	box-shadow: 0 0 0 1px rgba(242, 140, 26, 0.35), 0 0 26px rgba(242, 140, 26, 0.45);
	transform: translateY(-1px);
}

.ff-btn-glow .wp-block-button__link {
	box-shadow: 0 0 0 1px rgba(242, 140, 26, 0.35), 0 6px 24px rgba(242, 140, 26, 0.3);
}

.wp-block-button.is-style-steel-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--ff-steel);
	box-shadow: none;
	color: inherit;
	padding-bottom: calc(0.9em - 2px);
	padding-top: calc(0.9em - 2px);
}

.wp-block-button.is-style-steel-outline .wp-block-button__link:hover,
.wp-block-button.is-style-steel-outline .wp-block-button__link:focus {
	background: transparent;
	border-color: var(--ff-molten);
	box-shadow: 0 0 18px rgba(242, 140, 26, 0.25);
	color: inherit;
}

/* Glowing metal divider */
.wp-block-separator.is-style-glow {
	background: var(--ff-glow-line) !important;
	border: 0 !important;
	height: 2px !important;
	max-width: none;
	opacity: 1;
	width: 100%;
}

.wp-block-separator.is-style-glow.has-alpha-channel-opacity {
	opacity: 1;
}

/* Steel plate panel (dark card with rivets) */
.is-style-steel-plate {
	background:
		radial-gradient(circle at 14px 14px, #6e727a 0 2.5px, transparent 3.5px),
		radial-gradient(circle at calc(100% - 14px) 14px, #6e727a 0 2.5px, transparent 3.5px),
		radial-gradient(circle at 14px calc(100% - 14px), #6e727a 0 2.5px, transparent 3.5px),
		radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #6e727a 0 2.5px, transparent 3.5px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 5px),
		linear-gradient(180deg, #2A2A30 0%, #1C1C20 100%);
	border: 1px solid #3A3A42;
	border-radius: var(--ff-radius);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 12px 30px rgba(14, 14, 16, 0.25);
	color: var(--ff-polished);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.is-style-steel-plate a:where(:not(.wp-element-button)) {
	color: var(--ff-molten);
}

.is-style-steel-plate a:where(:not(.wp-element-button)):hover {
	color: #fff;
}

/* Light callout box */
.is-style-callout {
	background: #fff;
	border: 1px solid var(--ff-line-light);
	border-left: 4px solid var(--ff-molten);
	border-radius: var(--ff-radius);
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* Check / cross lists */
.is-style-checks,
.is-style-crosses,
.ff-list {
	list-style: none;
	padding-left: 0;
}

.is-style-checks li,
.is-style-crosses li,
.ff-list li {
	margin-bottom: 0.45em;
	padding-left: 1.75em;
	position: relative;
}

.is-style-checks li::before,
.is-style-crosses li::before,
.ff-list li::before {
	font-weight: 700;
	left: 0;
	position: absolute;
	top: 0;
}

.is-style-checks li::before,
.ff-list--checks li::before {
	color: #2F8F4E;
	content: "\2714";
}

.is-style-crosses li::before,
.ff-list--crosses li::before {
	color: var(--ff-ember);
	content: "\2716";
}

/* Forge table */
.wp-block-table.is-style-forge table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table.is-style-forge thead {
	border-bottom: 0;
}

.wp-block-table.is-style-forge th {
	background: var(--ff-black);
	border: 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--oswald);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-align: left;
	text-transform: uppercase;
}

.wp-block-table.is-style-forge td {
	border: 0;
	border-bottom: 1px solid var(--ff-line-light);
}

.wp-block-table.is-style-forge tbody tr:nth-child(even) {
	background: rgba(14, 14, 16, 0.03);
}

.wp-block-table.is-style-forge td,
.wp-block-table.is-style-forge th {
	padding: 0.75em 1em;
}

/* ==========================================================================
   Hero (ember glow, CSS-only sparks)
   ========================================================================== */

.ff-hero {
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.ff-hero::before {
	background:
		radial-gradient(ellipse 70% 60% at 50% 115%, rgba(242, 140, 26, 0.38) 0%, rgba(217, 72, 15, 0.16) 40%, rgba(14, 14, 16, 0) 72%),
		radial-gradient(ellipse 40% 30% at 50% 100%, rgba(245, 181, 58, 0.25) 0%, rgba(14, 14, 16, 0) 70%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.ff-hero::after {
	animation: ff-sparks 9s linear infinite;
	background-image:
		radial-gradient(1.6px 1.6px at 12% 80%, #F5B53A 50%, transparent 100%),
		radial-gradient(1.2px 1.2px at 22% 92%, #F28C1A 50%, transparent 100%),
		radial-gradient(2px 2px at 35% 86%, #F5B53A 50%, transparent 100%),
		radial-gradient(1.2px 1.2px at 47% 95%, #F28C1A 50%, transparent 100%),
		radial-gradient(1.8px 1.8px at 58% 84%, #F5B53A 50%, transparent 100%),
		radial-gradient(1.2px 1.2px at 68% 90%, #F28C1A 50%, transparent 100%),
		radial-gradient(1.6px 1.6px at 79% 82%, #F5B53A 50%, transparent 100%),
		radial-gradient(1.2px 1.2px at 88% 94%, #F28C1A 50%, transparent 100%);
	background-repeat: repeat;
	background-size: 100% 50%;
	content: "";
	height: 200%;
	left: 0;
	opacity: 0.8;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
	z-index: -1;
}

@keyframes ff-sparks {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(-50%);
	}
}

.ff-hero__title {
	margin-top: 0.5rem;
	text-wrap: balance;
}

.ff-hero__lead {
	color: var(--ff-polished);
	line-height: 1.6;
	margin-left: auto;
	margin-right: auto;
	max-width: 46rem;
	text-wrap: pretty;
}

/* ==========================================================================
   Start Here roadmap
   ========================================================================== */

.ff-steps {
	counter-reset: none;
}

.ff-step {
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ff-step:hover {
	border-color: rgba(242, 140, 26, 0.55);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 0 0 1px rgba(242, 140, 26, 0.2), 0 16px 36px rgba(14, 14, 16, 0.35);
	transform: translateY(-3px);
}

.ff-step__num {
	-webkit-text-stroke: 1.5px var(--ff-molten);
	color: transparent;
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 3.25rem;
	font-weight: 700;
	line-height: 1;
	margin: 0 0 0.75rem;
	text-shadow: 0 0 22px rgba(242, 140, 26, 0.35);
}

.ff-step__title {
	margin-top: 0;
	text-transform: uppercase;
}

.ff-step__link {
	font-family: var(--wp--preset--font-family--oswald);
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-top: auto;
	padding-top: 0.5rem;
	text-transform: uppercase;
}

.ff-step__link a {
	text-decoration: none;
}

/* ==========================================================================
   Featured review band
   ========================================================================== */

.ff-featured {
	position: relative;
}

.ff-featured::before,
.ff-featured::after {
	background: var(--ff-glow-line);
	content: "";
	height: 1px;
	left: 0;
	opacity: 0.5;
	position: absolute;
	right: 0;
}

.ff-featured::before {
	top: 0;
}

.ff-featured::after {
	bottom: 0;
}

/* ==========================================================================
   Rating box block
   ========================================================================== */

.ff-review-box {
	background: #fff;
	border: 1px solid var(--ff-line-light);
	border-radius: var(--ff-radius);
	box-shadow: 0 8px 28px rgba(14, 14, 16, 0.08);
	color: var(--ff-ink);
	overflow: hidden;
}

.ff-review-box__head {
	background:
		radial-gradient(ellipse 60% 120% at 100% 0%, rgba(242, 140, 26, 0.22) 0%, rgba(14, 14, 16, 0) 60%),
		linear-gradient(180deg, #1C1C20 0%, #0E0E10 100%);
	border-bottom: 2px solid var(--ff-molten);
	color: var(--ff-polished);
	padding: 1.25rem 1.5rem;
}

.ff-review-box__head .ff-eyebrow {
	margin: 0 0 0.25rem;
}

.ff-review-box .ff-review-box__name {
	color: #fff;
	font-size: var(--wp--preset--font-size--x-large);
	margin: 0;
	text-transform: uppercase;
}

.ff-review-box__score {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.5rem;
}

.ff-review-box__number {
	color: #fff;
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}

.ff-review-box__outof {
	color: var(--ff-pewter);
	font-family: var(--wp--preset--font-family--oswald);
	margin-left: -0.45rem;
}

.ff-review-box__body {
	padding: 1.25rem 1.5rem 0.25rem;
}

.ff-review-box__body > :first-child {
	margin-top: 0;
}

.ff-review-box__summary {
	margin-bottom: 1rem;
}

.ff-review-box__label {
	color: var(--ff-slate);
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	margin: 0 0 0.4rem;
	text-transform: uppercase;
}

.ff-review-box__fit {
	display: grid;
	gap: 0 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.ff-review-box .ff-list {
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 1rem;
}

.ff-review-box__actions {
	gap: 0.75rem;
	padding: 0.25rem 1.5rem 1.5rem;
}

.ff-review-box__actions .wp-block-button {
	margin: 0;
}

/* Stars */
.ff-stars {
	background: linear-gradient(90deg, var(--ff-gold) var(--ff-stars, 0%), #4A4A52 var(--ff-stars, 0%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
	font-size: 1.4rem;
	letter-spacing: 0.08em;
	line-height: 1;
}

.ff-stars > span {
	color: transparent;
}

/* Compact (sidebar) */
.ff-review-box--compact .ff-review-box__head {
	padding: 1rem 1.25rem;
}

.ff-review-box--compact .ff-review-box__name {
	font-size: var(--wp--preset--font-size--large);
}

.ff-review-box--compact .ff-review-box__body {
	font-size: var(--wp--preset--font-size--small);
	padding: 1rem 1.25rem 0;
}

.ff-review-box--compact .ff-review-box__actions {
	padding: 0 1.25rem 1.25rem;
}

.ff-review-box--compact .ff-review-box__actions .wp-block-button,
.ff-review-box--compact .ff-review-box__actions .wp-block-button__link {
	width: 100%;
}

/* Featured (homepage, dark band) */
.ff-review-box--featured {
	background: linear-gradient(180deg, #2A2A30 0%, #1C1C20 100%);
	border: 1px solid #3A3A42;
	box-shadow: 0 0 0 1px rgba(242, 140, 26, 0.25), 0 0 48px rgba(242, 140, 26, 0.16), 0 20px 40px rgba(0, 0, 0, 0.35);
	color: var(--ff-polished);
}

.ff-review-box--featured .ff-review-box__head {
	padding: 1.75rem 2rem 1.25rem;
}

.ff-review-box--featured .ff-review-box__name {
	font-size: var(--wp--preset--font-size--xx-large);
}

.ff-review-box--featured .ff-review-box__body {
	padding: 1.5rem 2rem 0.25rem;
}

.ff-review-box--featured .ff-list {
	font-size: var(--wp--preset--font-size--medium);
}

.ff-review-box--featured .ff-list--checks li::before {
	color: var(--ff-molten);
}

.ff-review-box--featured .ff-review-box__actions {
	padding: 0.5rem 2rem 2rem;
}

/* ==========================================================================
   Dark title bands (posts, pages, archives)
   ========================================================================== */

.ff-band {
	position: relative;
}

.ff-band::before {
	background: radial-gradient(ellipse 55% 90% at 85% 110%, rgba(242, 140, 26, 0.18) 0%, rgba(14, 14, 16, 0) 70%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.ff-band::after {
	background: var(--ff-glow-line);
	bottom: 0;
	content: "";
	height: 2px;
	left: 0;
	opacity: 0.8;
	position: absolute;
	right: 0;
}

.ff-band > * {
	position: relative;
}

.ff-band__title {
	margin-top: 0.25rem;
	text-wrap: balance;
}

.ff-band--post .ff-band__title {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	text-transform: none;
}

.ff-band__cat a,
.ff-band .wp-block-post-terms a {
	color: var(--ff-molten);
	text-decoration: none;
}

.ff-band__cat a:hover {
	color: #fff;
}

.ff-band__desc,
.ff-meta {
	color: var(--ff-pewter);
	font-size: var(--wp--preset--font-size--small);
}

.ff-meta a {
	color: var(--ff-polished);
	text-decoration: none;
}

.ff-meta a:hover {
	color: var(--ff-molten);
}

.ff-meta > * {
	margin: 0;
}

.ff-meta__sep {
	color: var(--ff-steel);
}

.ff-band .ff-search {
	margin-top: 1.25rem;
	max-width: 32rem;
}

/* ==========================================================================
   Single posts & content
   ========================================================================== */

.ff-single-media {
	margin-bottom: var(--wp--preset--spacing--50);
}

.ff-single-media img {
	box-shadow: 0 10px 30px rgba(14, 14, 16, 0.12);
}

.ff-content > * + * {
	margin-block-start: 1.25em;
}

.ff-content :where(h2) {
	margin-block-start: 2.25em;
	padding-bottom: 0.35em;
	position: relative;
}

.ff-content :where(h2)::after {
	background: linear-gradient(90deg, var(--ff-molten) 0 56px, var(--ff-line-light) 56px 100%);
	bottom: 0;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	right: 0;
}

.ff-content :where(h2.has-text-align-center)::after {
	background: linear-gradient(90deg, transparent calc(50% - 28px), var(--ff-molten) calc(50% - 28px) calc(50% + 28px), transparent calc(50% + 28px));
}

.ff-content :where(.ff-review-box, .is-style-steel-plate, .ff-pros-cons) :where(h2)::after {
	display: none;
}

.ff-content :where(h3) {
	margin-block-start: 1.75em;
}

.ff-content li + li {
	margin-top: 0.35em;
}

.ff-content .wp-block-details {
	background: #fff;
	border: 1px solid var(--ff-line-light);
	border-radius: var(--ff-radius);
	padding: 0.9rem 1.15rem;
}

.ff-content .wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
}

.ff-content .wp-block-details[open] summary {
	margin-bottom: 0.5rem;
}

.ff-landing {
	padding-bottom: 0;
}

.ff-landing > .alignfull:first-child {
	margin-top: 0;
}

/* Affiliate disclosure */
.ff-disclosure {
	background: var(--ff-sand);
	border-left: 3px solid var(--ff-steel);
	border-radius: var(--ff-radius);
	color: var(--ff-slate);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.55;
	margin-bottom: 1.75em;
	padding: 0.75rem 1rem;
}

.ff-disclosure__label {
	color: var(--ff-ink);
	font-weight: 700;
}

.ff-disclosure a {
	color: var(--ff-rust);
}

/* Table of contents */
.ff-toc {
	background: #fff;
	border: 1px solid var(--ff-line-light);
	border-left: 4px solid var(--ff-molten);
	border-radius: var(--ff-radius);
	margin-block: 1.75em;
}

.ff-toc summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	list-style: none;
	padding: 0.85rem 1.15rem;
}

.ff-toc summary::-webkit-details-marker {
	display: none;
}

.ff-toc summary::after {
	border-bottom: 2px solid var(--ff-ink);
	border-right: 2px solid var(--ff-ink);
	content: "";
	height: 8px;
	margin-left: 1rem;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.2s ease;
	width: 8px;
}

.ff-toc details[open] summary::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.ff-toc__title {
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ff-toc__list {
	border-top: 1px solid var(--ff-line-light);
	counter-reset: ff-toc;
	font-size: var(--wp--preset--font-size--small);
	list-style: none;
	margin: 0;
	padding: 0.85rem 1.15rem 1rem;
}

.ff-toc__list > li {
	counter-increment: ff-toc;
	padding-left: 2em;
	position: relative;
}

.ff-toc__list > li::before {
	color: var(--ff-rust);
	content: counter(ff-toc, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--oswald);
	font-weight: 600;
	left: 0;
	position: absolute;
}

.ff-toc__list li + li {
	margin-top: 0.35em;
}

.ff-toc__list ol {
	list-style: none;
	margin: 0.35em 0 0;
	padding-left: 0.9em;
}

.ff-toc__list ol li::before {
	color: var(--ff-steel);
	content: "\2013\00a0";
}

.ff-toc a {
	color: var(--ff-ink);
	text-decoration: none;
}

.ff-toc a:hover {
	color: var(--ff-rust);
	text-decoration: underline;
}

/* Pros / cons */
.ff-pros-cons .wp-block-column > :first-child {
	margin-top: 0;
}

.ff-cons.is-style-callout {
	border-left-color: var(--ff-steel);
}

/* Bottom line */
.ff-bottom-line .ff-eyebrow {
	margin-bottom: 0;
}

.ff-bottom-line h3 {
	margin-top: 0.25rem;
	text-transform: uppercase;
}

/* Tags + author box */
.ff-tags {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	margin-top: var(--wp--preset--spacing--50);
	text-transform: none;
}

.ff-author-box {
	gap: 1.25rem;
	margin-top: var(--wp--preset--spacing--50);
}

.ff-author-box .ff-eyebrow {
	margin: 0;
}

.ff-author-box__name {
	font-family: var(--wp--preset--font-family--oswald);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.ff-author-box__name a {
	color: var(--ff-ink);
	text-decoration: none;
}

.ff-comments {
	margin-top: var(--wp--preset--spacing--60);
}

/* Review template: sticky sidebar */
.ff-review-main > .ff-single-media:first-child {
	margin-top: 0;
}

@media (min-width: 782px) {
	.ff-sticky {
		position: sticky;
		top: calc(var(--ff-header-h) + 24px);
	}

	body.admin-bar .ff-sticky {
		top: calc(var(--ff-header-h) + 56px);
	}
}

@media (max-width: 781px) {
	.ff-review-aside {
		order: -1;
	}

	.ff-review-aside .ff-review-box__body,
	.ff-review-aside .ff-review-box__label,
	.ff-review-aside .ff-list {
		display: none;
	}
}

/* ==========================================================================
   Post cards & grids
   ========================================================================== */

.ff-card {
	background: #fff;
	border: 1px solid var(--ff-line-light);
	border-radius: var(--ff-radius);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ff-card:hover {
	border-color: rgba(242, 140, 26, 0.55);
	box-shadow: 0 14px 34px rgba(14, 14, 16, 0.1);
	transform: translateY(-3px);
}

.ff-card__media {
	background: linear-gradient(135deg, #2A2A30, #0E0E10);
	margin: 0;
}

.ff-card__media img {
	border-radius: 0 !important;
	transition: transform 0.4s ease;
}

.ff-card:hover .ff-card__media img {
	transform: scale(1.03);
}

.ff-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem 1.35rem 1.35rem;
}

.ff-card__cat a {
	color: var(--ff-rust);
	text-decoration: none;
}

.ff-card__title {
	line-height: 1.25;
	margin: 0;
}

.ff-card__title a {
	color: var(--ff-ink);
	text-decoration: none;
}

.ff-card__title a:hover {
	color: var(--ff-rust);
	text-decoration: underline;
}

.ff-card__excerpt {
	color: var(--ff-slate);
}

.ff-card__excerpt p {
	margin: 0;
}

.ff-card__date {
	margin-top: auto;
	padding-top: 0.5rem;
}

.ff-cards .wp-block-post-template {
	margin-top: var(--wp--preset--spacing--50);
}

.ff-pagination {
	font-family: var(--wp--preset--font-family--oswald);
	gap: 0.5rem;
	letter-spacing: 0.06em;
	margin-top: var(--wp--preset--spacing--50);
	text-transform: uppercase;
}

.ff-pagination a,
.ff-pagination .page-numbers {
	border: 1px solid var(--ff-line-light);
	border-radius: var(--ff-radius);
	color: var(--ff-ink);
	padding: 0.35em 0.8em;
	text-decoration: none;
}

.ff-pagination .page-numbers.current {
	background: var(--ff-black);
	border-color: var(--ff-black);
	color: #fff;
}

.ff-pagination a:hover {
	border-color: var(--ff-molten);
}

/* Search */
.wp-block-search__input {
	border: 1px solid var(--ff-steel);
	border-radius: var(--ff-radius);
	padding: 0.7em 0.9em;
}

.ff-band .wp-block-search__input {
	background: var(--ff-charcoal);
	border-color: var(--ff-line-dark);
	color: #fff;
}

.wp-block-search__button {
	margin-left: 0.5rem;
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.ff-trust__photo img {
	border: 3px solid var(--ff-black);
	border-radius: var(--ff-radius);
	box-shadow: 0 0 0 1px var(--ff-molten), 0 12px 30px rgba(14, 14, 16, 0.2);
}

.ff-trust .ff-eyebrow {
	margin-bottom: 0;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.ff-cta-banner {
	overflow: hidden;
	position: relative;
}

.ff-cta-banner::before {
	background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(242, 140, 26, 0.3) 0%, rgba(14, 14, 16, 0) 70%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.ff-cta-banner > * {
	position: relative;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ff-footer {
	position: relative;
}

.ff-footer::before {
	background: var(--ff-glow-line);
	content: "";
	height: 2px;
	left: 0;
	opacity: 0.8;
	position: absolute;
	right: 0;
	top: 0;
}

.ff-footer-heading {
	font-size: 0.9375rem !important;
	letter-spacing: 0.18em !important;
	margin-bottom: 0.75rem;
}

.ff-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ff-footer-links li + li {
	margin-top: 0.4rem;
}

.ff-footer a {
	color: var(--ff-polished);
	text-decoration: none;
}

.ff-footer a:hover {
	color: var(--ff-molten);
	text-decoration: underline;
}

.ff-footer-logo {
	margin-bottom: 0.75rem;
}

.ff-footer-logo img {
	height: auto !important;
}

.ff-copyright {
	margin: 0;
}

/* ==========================================================================
   Small screens
   ========================================================================== */

@media (max-width: 781px) {
	:root {
		--ff-header-h: 68px;
	}

	.ff-hero .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.ff-hero .wp-block-button,
	.ff-hero .wp-block-button__link {
		text-align: center;
		width: 100%;
	}

	.ff-review-box__head,
	.ff-review-box__body,
	.ff-review-box__actions,
	.ff-review-box--featured .ff-review-box__head,
	.ff-review-box--featured .ff-review-box__body,
	.ff-review-box--featured .ff-review-box__actions {
		padding-left: 1.15rem;
		padding-right: 1.15rem;
	}

	.ff-review-box__actions .wp-block-button,
	.ff-review-box__actions .wp-block-button__link {
		width: 100%;
	}
}
