/**
 * ForkliftCompare theme.
 *
 * Design tokens first: the plugin's component stylesheet reads these, so
 * changing the accent here recolours every comparison table and button.
 */

:root {
	--fc-accent: #0b5fff;
	--fc-accent-ink: #ffffff;
	--fc-ink: #14181f;
	--fc-ink-2: #4a5361;
	--fc-ink-3: #7a8494;
	--fc-line: #e3e7ee;
	--fc-surface: #ffffff;
	--fc-surface-2: #f5f7fa;
	--fc-best: #e6f6ea;
	--fc-best-ink: #0f6b2f;
	--fc-warn: #fff6e0;
	--fc-radius: 8px;
	--fc-dark: #14181f;
	--fc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fc-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--fc-font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--fc-ink);
	background: var(--fc-surface);
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--fc-accent);
}

h1, h2, h3, h4 {
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.15rem;
}

p {
	margin: 0 0 1em;
}

table {
	border-collapse: collapse;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	margin: 0;
	clip: auto;
	background: var(--fc-ink);
	color: #fff;
	border-radius: 6px;
}

:focus-visible {
	outline: 2px solid var(--fc-accent);
	outline-offset: 2px;
}

.fc-narrow {
	max-width: 760px;
}

/* ---------- Header ---------- */

.fc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--fc-surface);
	border-bottom: 1px solid var(--fc-line);
}

.fc-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	min-height: 62px;
}

.fc-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fc-ink);
	font-weight: 800;
	font-size: 1.1rem;
	letter-spacing: -0.02em;
	text-decoration: none;
	white-space: nowrap;
}

.fc-logo__mark {
	color: var(--fc-accent);
}

.fc-nav {
	display: none;
}

.fc-nav__list {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fc-nav__list a {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	color: var(--fc-ink-2);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.fc-nav__list a:hover {
	background: var(--fc-surface-2);
	color: var(--fc-ink);
}

.fc-header__search {
	display: none;
	margin-left: auto;
	width: 280px;
}

.fc-nav-toggle {
	position: relative;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: 1px solid var(--fc-line);
	border-radius: 6px;
	background: none;
	cursor: pointer;
}

.fc-nav-toggle__bar,
.fc-nav-toggle__bar::before,
.fc-nav-toggle__bar::after {
	position: absolute;
	left: 12px;
	width: 18px;
	height: 2px;
	background: var(--fc-ink);
	border-radius: 1px;
	transition: transform 0.2s, opacity 0.2s;
}

.fc-nav-toggle__bar {
	top: 21px;
}

.fc-nav-toggle__bar::before,
.fc-nav-toggle__bar::after {
	content: "";
	left: 0;
}

.fc-nav-toggle__bar::before { top: -6px; }
.fc-nav-toggle__bar::after { top: 6px; }

.fc-nav-toggle[aria-expanded="true"] .fc-nav-toggle__bar { background: transparent; }
.fc-nav-toggle[aria-expanded="true"] .fc-nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.fc-nav-toggle[aria-expanded="true"] .fc-nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
	.fc-nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 12px 20px 20px;
		background: var(--fc-surface);
		border-bottom: 1px solid var(--fc-line);
		box-shadow: 0 12px 32px rgba(20, 24, 31, 0.1);
	}
	.fc-nav.is-open .fc-nav__list {
		flex-direction: column;
	}
	.fc-nav.is-open .fc-nav__list a {
		padding: 12px;
		font-size: 1.05rem;
	}
}

@media (min-width: 900px) {
	.fc-nav {
		display: block;
	}
	.fc-nav-toggle {
		display: none;
	}
	.fc-header__search {
		display: block;
	}
}

/* ---------- Hero ---------- */

.fc-hero {
	background: var(--fc-dark);
	color: #fff;
	padding: 56px 20px 48px;
}

@media (min-width: 900px) {
	.fc-hero {
		padding: 84px 20px 72px;
	}
}

.fc-hero__inner {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}

.fc-hero__title {
	margin: 0 0 16px;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.fc-hero__lead {
	max-width: 60ch;
	margin: 0 auto 28px;
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.75);
}

.fc-hero__search {
	max-width: 640px;
	margin: 0 auto 20px;
}

.fc-hero__search .ec-search__input {
	border-color: transparent;
}

.fc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.fc-hero__actions .ec-button {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.fc-hero__actions .ec-button--primary {
	background: var(--fc-accent);
	border-color: var(--fc-accent);
}

.fc-hero__stats {
	margin: 24px 0 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

/* ---------- Sections ---------- */

.fc-main--home .ec-container {
	padding-top: 16px;
}

.fc-section {
	margin: 48px 0;
}

.fc-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.fc-section__head h2 {
	margin: 0;
}

.fc-section__head a {
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	white-space: nowrap;
}

.fc-compare-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fc-compare-list a {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius);
	color: var(--fc-ink);
	font-weight: 600;
	text-decoration: none;
}

.fc-compare-list a:hover {
	border-color: var(--fc-accent);
}

.fc-compare-list em {
	font-style: normal;
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--fc-ink-3);
}

.fc-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.fc-category-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px;
	border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius);
	color: var(--fc-ink);
	text-decoration: none;
	background: var(--fc-surface);
}

.fc-category-card:hover {
	border-color: var(--fc-accent);
	background: var(--fc-surface-2);
}

.fc-category-card__name {
	font-weight: 700;
}

.fc-category-card__count {
	font-size: 0.85rem;
	color: var(--fc-ink-3);
}

.fc-guide-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}

.fc-guide-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius);
	color: var(--fc-ink);
	text-decoration: none;
}

.fc-guide-card:hover {
	border-color: var(--fc-accent);
}

.fc-guide-card__title {
	font-weight: 700;
	font-size: 1.05rem;
}

.fc-guide-card__excerpt {
	font-size: 0.9rem;
	color: var(--fc-ink-2);
}

.fc-section--about {
	padding: 32px;
	background: var(--fc-surface-2);
	border-radius: var(--fc-radius);
}

.fc-section--about h2 {
	margin: 0 0 20px;
}

.fc-about-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.fc-about-grid h3 {
	margin: 0 0 6px;
	font-size: 1rem;
}

.fc-about-grid p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--fc-ink-2);
}

/* ---------- Articles / guides ---------- */

.fc-article__header {
	margin-bottom: 24px;
}

.fc-article__header h1 {
	margin: 0 0 10px;
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.fc-article__lead {
	font-size: 1.15rem;
	color: var(--fc-ink-2);
}

.fc-article__meta {
	font-size: 0.85rem;
	color: var(--fc-ink-3);
}

.fc-article__thumb {
	margin: 0 0 24px;
}

.fc-article__thumb img {
	border-radius: var(--fc-radius);
}

.fc-article__body {
	font-size: 1.05rem;
	max-width: 72ch;
}

.fc-article__body h2 {
	margin: 2em 0 0.6em;
	font-size: 1.5rem;
}

.fc-article__body h3 {
	margin: 1.6em 0 0.5em;
}

.fc-article__body table {
	width: 100%;
	margin: 1.5em 0;
	font-size: 0.95rem;
}

.fc-article__body th,
.fc-article__body td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--fc-line);
	text-align: left;
}

.fc-article__body th {
	background: var(--fc-surface-2);
}

.fc-article__body blockquote {
	margin: 1.5em 0;
	padding: 12px 20px;
	border-left: 3px solid var(--fc-accent);
	background: var(--fc-surface-2);
	color: var(--fc-ink-2);
}

.fc-article__body figure {
	margin: 1.5em 0;
}

.fc-article__body figcaption {
	font-size: 0.85rem;
	color: var(--fc-ink-3);
}

.fc-article__body .wp-block-table {
	overflow-x: auto;
}

.fc-404__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

/* ---------- Footer ---------- */

.fc-footer {
	margin-top: 64px;
	padding: 48px 20px 24px;
	background: var(--fc-dark);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}

.fc-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.fc-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 32px;
	margin-bottom: 32px;
}

.fc-footer__col--brand {
	grid-column: span 2;
}

.fc-footer h2 {
	margin: 0 0 12px;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.45);
}

.fc-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fc-footer li {
	margin-bottom: 6px;
}

.fc-footer a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.fc-footer a:hover {
	color: #fff;
}

.fc-logo--footer {
	color: #fff;
	font-size: 1.2rem;
	margin-bottom: 8px;
}

.fc-footer__tagline {
	max-width: 40ch;
	color: rgba(255, 255, 255, 0.55);
}

.fc-footer__legal {
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.45);
}

.fc-footer__legal p {
	margin: 0;
	max-width: 100ch;
}

/* ---------- Print ---------- */

@media print {
	.fc-header,
	.fc-footer,
	.ec-ad,
	.ec-layout__sidebar,
	.ec-filters,
	.fc-nav-toggle {
		display: none !important;
	}
	.ec-layout {
		grid-template-columns: 1fr !important;
	}
	a {
		color: inherit;
		text-decoration: none;
	}
}
