/* Fast Fashion Brands — component styles the block editor can't handle natively */

/* Category tag (used on core pages and blog posts) */
.ffb-category-tag {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #C17817;
	margin-bottom: 14px;
}

/* Breadcrumbs */
.ffb-breadcrumbs {
	font-size: 13px;
	color: #6b6b6b;
	margin-bottom: 18px;
}
.ffb-breadcrumbs a {
	color: #6b6b6b;
	text-decoration: none;
}
.ffb-breadcrumbs a:hover {
	color: #3D5A80;
}

/* Byline row */
.ffb-byline {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13.5px;
	color: #6b6b6b;
	border-bottom: 1px solid #E0DCD4;
	padding-bottom: 24px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

/* Stats bar numbers */
.ffb-stat-number {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 36px;
	color: #C17817;
	line-height: 1.2;
}
.ffb-stat-label {
	font-size: 15px;
	font-weight: 500;
	color: #1A1A1A;
}
.ffb-stat-source {
	font-size: 12px;
	color: #6b6b6b;
}

/* Read-more callout box */
.ffb-callout-box {
	background: #EDEAE3;
	border-radius: 4px;
	padding: 28px 30px;
	margin-bottom: 40px;
}
.ffb-callout-box p {
	font-size: 14.5px;
	line-height: 1.7;
	margin: 0;
}
.ffb-callout-box a {
	font-weight: 600;
	color: #3D5A80;
}

/* Author box */
.ffb-author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	border-top: 1px solid #E0DCD4;
	padding-top: 28px;
	margin-bottom: 40px;
}
.ffb-author-avatar {
	width: 56px;
	height: 56px;
	min-width: 56px;
	border-radius: 50%;
	background: #3D5A80;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 20px;
	flex-shrink: 0;
}
.ffb-author-name {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
}
.ffb-author-bio {
	font-size: 14px;
	color: #6b6b6b;
	margin: 0;
}

/* Related reading cards */
.ffb-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ffb-related-card {
	border: 1px solid #E0DCD4;
	border-radius: 4px;
	padding: 22px 24px;
	background: #fff;
}
.ffb-related-card a.ffb-read-more {
	color: #3D5A80;
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none;
}

/* Greenwashing / alert callout */
.ffb-alert-callout {
	border-top: 3px solid #A0522D;
	background: #fff;
	padding: 22px 26px;
	border-radius: 4px;
	margin-bottom: 40px;
}
.ffb-alert-callout h4 {
	font-size: 15px;
	font-weight: 600;
	color: #A0522D;
	margin: 0 0 10px;
	font-family: 'Inter', sans-serif;
}
.ffb-alert-callout p {
	font-size: 14.5px;
	color: #2a2a2a;
	line-height: 1.65;
	margin: 0;
}

/* Definition box */
.ffb-definition-box {
	border-left: 3px solid #3D5A80;
	background: #EDEAE3;
	padding: 24px 28px;
	border-radius: 4px;
	margin-bottom: 40px;
}
.ffb-definition-box p {
	font-family: 'Playfair Display', serif;
	color: #3D5A80;
	margin: 0;
}

/* Timeline */
.ffb-timeline {
	border-left: 2px solid #E0DCD4;
	padding-left: 28px;
	margin-left: 12px;
}
.ffb-timeline-era {
	position: relative;
	margin-bottom: 36px;
}
.ffb-timeline-era::before {
	content: '';
	position: absolute;
	left: -35px;
	top: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #C17817;
}
.ffb-timeline-label {
	font-weight: 600;
	color: #C17817;
	font-size: 14px;
	margin-bottom: 6px;
}

/* 2x2 concept grid */
.ffb-concept-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}
.ffb-concept-card {
	background: #EDEAE3;
	border: 1px solid #E0DCD4;
	border-radius: 4px;
	padding: 22px;
}
.ffb-concept-card h4 {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px;
}
.ffb-concept-card p {
	font-size: 14.5px;
	color: #4a4a4a;
	margin: 0;
}

/* Checklist */
.ffb-checklist {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}
.ffb-checklist li {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #E0DCD4;
}
.ffb-checklist li:last-child {
	border-bottom: none;
}
.ffb-checklist .ffb-check-mark {
	color: #3D5A80;
	font-weight: 700;
	flex-shrink: 0;
}

/* Chip row */
.ffb-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}
.ffb-chip {
	padding: 6px 16px;
	border: 1px solid #E0DCD4;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	background: #fff;
	display: inline-block;
}

/* Headline stat strip */
.ffb-stat-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-bottom: 48px;
	text-align: center;
}

/* Inline pull-stat */
.ffb-inline-stat {
	display: inline-block;
	text-align: center;
	margin: 12px 24px 12px 0;
}
.ffb-inline-stat .ffb-stat-number {
	font-size: 30px;
}
.ffb-inline-stat .ffb-stat-caption {
	font-size: 13px;
	color: #6b6b6b;
	display: block;
	margin-top: 4px;
}

/* Scale reference grid */
.ffb-scale-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	background: #EDEAE3;
	padding: 48px 32px;
	border-radius: 4px;
	margin-bottom: 48px;
}
.ffb-scale-grid .ffb-scale-item {
	text-align: center;
}

/* Dark synthesis section */
.ffb-dark-synthesis {
	background: #1A1A1A;
	color: #fff;
	padding: 80px 24px;
}
.ffb-dark-synthesis h2 {
	font-family: 'Playfair Display', serif;
	color: #fff;
}
.ffb-dark-synthesis p {
	color: rgba(255,255,255,0.85);
}

/* Two-column contrast */
.ffb-two-col {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	margin-bottom: 48px;
}

/* Certification grid */
.ffb-cert-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}
.ffb-cert-card {
	background: #EDEAE3;
	border: 1px solid #E0DCD4;
	border-radius: 4px;
	padding: 22px 24px;
}
.ffb-cert-card h4 {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
}

/* Brand repair profiles / brand verdict cards */
.ffb-brand-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 32px;
}
.ffb-brand-card {
	background: #EDEAE3;
	border: 1px solid #E0DCD4;
	border-radius: 4px;
	padding: 20px;
}
.ffb-brand-card .ffb-brand-name {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 16px;
	margin: 0 0 8px;
}
.ffb-brand-card p {
	font-size: 14px;
	color: #4a4a4a;
}

/* Highlighted country card */
.ffb-country-card {
	background: #EDEAE3;
	border: 1px solid #E0DCD4;
	border-radius: 4px;
	padding: 32px;
	margin-bottom: 40px;
}

/* Wear-test callout */
.ffb-wear-test-callout {
	border: 2px solid #3D5A80;
	border-radius: 4px;
	padding: 32px;
	text-align: center;
	margin-bottom: 40px;
}

/* Featured blog post card */
.ffb-featured-post {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 32px;
	background: #EDEAE3;
	border: 1px solid #E0DCD4;
	border-radius: 4px;
	padding: 28px;
	margin-bottom: 48px;
	align-items: center;
}

/* Blog archive grid */
.ffb-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ffb-archive-card {
	border: 1px solid #E0DCD4;
	border-radius: 4px;
	padding: 22px;
	background: #fff;
}
.ffb-archive-card .ffb-stat-visual {
	background: #EDEAE3;
	border-radius: 4px;
	padding: 24px;
	text-align: center;
	margin-bottom: 16px;
}

/* Brand tier section */
.ffb-tier-card {
	border-radius: 4px;
	padding: 28px;
	margin-bottom: 24px;
}
.ffb-tier-brand-entry {
	border-bottom: 1px solid #E0DCD4;
	padding: 16px 0;
}
.ffb-tier-brand-entry:last-child {
	border-bottom: none;
}
.ffb-tier-brand-entry .ffb-brand-name {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 15px;
}
.ffb-tier-brand-meta {
	font-size: 12.5px;
	color: #6b6b6b;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Newsletter CTA (bottom, full-width blue band -- the only embedded
   newsletter form left; the header's top bar / embedded form was removed
   since Fluent Forms shortcodes inside a template part are unreliable). */
.ffb-newsletter-cta {
	text-align: center;
}
.ffb-newsletter-cta .fluentform,
.ffb-newsletter-cta form {
	margin-top: 8px;
}

/* Embedded Fluent Forms fields. Targeted by input/button type rather than
   Fluent Forms' own classes, so this doesn't depend on guessing their
   exact markup. */
.ffb-newsletter-cta .fluentform,
.ffb-newsletter-cta form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 12px;
}
.ffb-newsletter-cta .fluentform .ff-el-group {
	margin: 0 !important;
}
.ffb-newsletter-cta input[type="email"],
.ffb-newsletter-cta input[type="text"] {
	flex: 1 1 220px;
	min-width: 180px;
	min-height: 44px;
	padding: 10px 16px !important;
	font-size: 14px;
	border-radius: 3px;
	border: 1px solid #E0DCD4;
	box-sizing: border-box;
}
.ffb-newsletter-cta button[type="submit"],
.ffb-newsletter-cta input[type="submit"] {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 28px !important;
	font-size: 14px;
	font-weight: 600;
	border-radius: 3px;
	white-space: nowrap;
	background: #C17817;
	color: #fff;
	border: none;
}

/* Subscribe button in the header nav (replaces the old top bar) */
.ffb-nav-subscribe {
	margin-left: 8px;
}

/* Automatic content + TOC layout (templates/page.html, templates/single.html).
   The [ffb_toc] shortcode is placed BEFORE post-content in source order, so
   it's simply the left column in normal flex flow -- no flex-direction
   trick needed (that fought WordPress's own generated .is-layout-flex CSS
   and lost). The layout never squashes when there's no TOC: an empty
   shortcode renders nothing, so post-content is the only flex child and
   takes the full width automatically. */
.ffb-content-with-toc {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
}
.ffb-content-with-toc > .wp-block-post-content {
	flex: 1 1 0;
	min-width: 0;
}

/* Sticky TOC sidebar (auto-generated for all pages/posts except the front page).
   Kept deliberately narrow so post-content gets most of the row. */
.ffb-toc-sidebar {
	flex: 0 0 200px;
	width: 200px;
	position: sticky;
	top: 90px;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	padding: 20px 20px 20px 0;
	border-right: 2px solid #E0DCD4;
	font-size: 14px;
}
.ffb-toc-sidebar h4 {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1A1A1A;
	margin: 0 0 10px;
}
.ffb-toc-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ffb-toc-sidebar a {
	display: block;
	padding: 6px 0;
	color: #6b6b6b;
	text-decoration: none;
	transition: color 0.2s;
}
.ffb-toc-sidebar a:hover,
.ffb-toc-sidebar a.active {
	color: #3D5A80;
	font-weight: 600;
}

/* Site header / navigation */
.ffb-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #F7F5F0;
	border-bottom: 1px solid #E0DCD4;
}
.ffb-logo-text {
	font-family: 'Playfair Display', serif;
	font-weight: 800;
	font-size: 20px;
}
.ffb-logo-text .ffb-logo-accent {
	color: #C17817;
}
.ffb-main-nav a {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 15px;
	color: #1A1A1A;
}
.ffb-main-nav a.ffb-nav-blog {
	color: #3D5A80;
	font-weight: 600;
}

/* Site footer */
.ffb-site-footer {
	background: #1A1A1A;
	color: #a8a8a8;
	padding: 64px 24px 0;
}
.ffb-site-footer h4 {
	color: #fff;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.05em;
	font-family: 'Inter', sans-serif;
}
.ffb-site-footer a {
	color: #a8a8a8;
	text-decoration: none;
}
.ffb-site-footer a:hover {
	color: #fff;
}
.ffb-footer-bottom {
	border-top: 1px solid #333;
	margin-top: 48px;
	padding: 24px;
	text-align: center;
	font-size: 12.5px;
}

/* Responsive */
@media (max-width: 900px) {
	.ffb-related-grid,
	.ffb-concept-grid,
	.ffb-cert-grid,
	.ffb-two-col,
	.ffb-scale-grid,
	.ffb-brand-grid-3,
	.ffb-archive-grid {
		grid-template-columns: 1fr;
	}
	.ffb-stat-strip {
		grid-template-columns: repeat(2, 1fr);
	}
	.ffb-featured-post {
		grid-template-columns: 1fr;
	}
	.ffb-byline {
		flex-wrap: wrap;
		gap: 10px;
	}
	.ffb-main-nav {
		display: none;
	}
	.ffb-toc-sidebar {
		position: static;
		border-right: none;
		border-bottom: 2px solid #E0DCD4;
		width: auto;
		flex-basis: auto;
		max-height: none;
	}
	.ffb-content-with-toc {
		flex-direction: column;
	}
}

/* Known Gutenberg/block-theme bug: the site wrapper sets overflow-x: clip
   (to contain alignfull negative-margin bleed), and any non-visible
   overflow on an ancestor -- even on one axis -- silently disables
   position: sticky on descendants in most browsers. Restore vertical
   overflow so the TOC sidebar above can actually stick while scrolling. */
html,
body,
.wp-site-blocks {
	overflow-y: visible !important;
}
