/* ==========================================================================
   footballpartnerships.com — main stylesheet (GeneratePress child)
   Sports-editorial: football business magazine, not a coupon blog.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base typography & rhythm
   -------------------------------------------------------------------------- */
body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--text);
	background: var(--surface);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.main-title {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: none;
	color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

/* Readable measure for article bodies */
.single .entry-content,
.page .entry-content {
	max-width: var(--content-width);
	margin-left: auto;
	margin-right: auto;
}

.entry-content a {
	color: var(--brand);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.entry-content a:hover { color: var(--brand-dark); }

/* Visible focus everywhere (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
	border-radius: 2px;
}
.fp-dark a:focus-visible,
.fp-dark button:focus-visible,
.site-header a:focus-visible,
.site-footer a:focus-visible {
	outline: var(--focus-ring-on-dark);
}

/* --------------------------------------------------------------------------
   2. Header — dark ink, magazine masthead
   -------------------------------------------------------------------------- */
.site-header,
.main-navigation {
	background-color: var(--ink);
}
.fp-logo { display: flex; align-items: center; }
.fp-logo a { display: block; line-height: 0; }
.fp-logo svg { display: block; height: 126px; width: auto; }
@media (max-width: 600px) {
	.fp-logo svg { height: 96px; }
}

.site-header .main-title a,
.site-header .main-title a:hover,
.site-header .site-title a,
.site-header .site-title a:hover {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.6rem;
	color: #FFFFFF;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.site-header .site-description { color: var(--text-on-dark-muted); }

.main-navigation .main-nav ul li a {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-on-dark);
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
	color: #FFFFFF;
	box-shadow: inset 0 -3px 0 var(--brand);
}
.main-navigation ul ul { background-color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   3. Uniform imagery treatment
   .fp-media = editorial hero/featured images: fixed ratio + dark-green
   gradient overlay so mixed stock sources read as one brand.
   NEVER applied to product images (blocks render those clean on white).
   -------------------------------------------------------------------------- */
.fp-media {
	position: relative;
	display: block;
	aspect-ratio: var(--img-ratio);
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--gray-200);
}
.fp-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fp-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--img-overlay);
	pointer-events: none;
}

/* Featured image on single posts gets the same treatment */
.single .featured-image,
.page .featured-image {
	position: relative;
	aspect-ratio: var(--img-ratio);
	overflow: hidden;
	border-radius: var(--radius);
}
.single .featured-image img,
.page .featured-image img {
	width: 100%; height: 100%; object-fit: cover;
}
.single .featured-image::after,
.page .featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--img-overlay);
	pointer-events: none;
}

/* Category label chip */
.fp-kicker {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.8rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--brand);
	background: var(--brand-tint);
	padding: 0.15em 0.6em;
	border-radius: 3px;
	margin-bottom: 0.6em;
}
.fp-dark .fp-kicker {
	color: #8FE0B0;
	background: rgba(14, 122, 61, 0.25);
}

/* --------------------------------------------------------------------------
   4. Homepage — magazine layout
   -------------------------------------------------------------------------- */
.fp-home .site-content { padding: 0; }
.fp-section {
	padding: 3.5rem 1.25rem;
}
.fp-section-inner {
	max-width: var(--wide-width);
	margin: 0 auto;
}
.fp-section-title {
	font-size: clamp(1.4rem, 2.5vw, 1.8rem);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-left: 5px solid var(--brand);
	padding-left: 0.6em;
	margin-bottom: 1.5rem;
}
.fp-section-alt { background: var(--surface-alt); }

/* Hero: featured story over dark ink */
.fp-hero {
	background: var(--ink);
	color: var(--text-on-dark);
	padding: 3rem 1.25rem 3.5rem;
}
.fp-hero-inner {
	max-width: var(--wide-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 2.5rem;
	align-items: center;
}
.fp-hero .fp-media { border-radius: var(--radius-lg); }
.fp-hero-title {
	color: #FFFFFF;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin: 0.2em 0 0.4em;
}
.fp-hero-title a { color: inherit; text-decoration: none; }
.fp-hero-title a:hover { color: #C9F2DA; }
.fp-hero-excerpt { color: var(--text-on-dark-muted); font-size: 1.05rem; }
.fp-hero-more {
	display: inline-block;
	margin-top: 1rem;
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #8FE0B0;
	text-decoration: none;
	border-bottom: 2px solid var(--brand);
}
.fp-hero-more:hover { color: #FFFFFF; }

/* Card grid: Latest Gear Guides */
.fp-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}
.fp-card {
	background: var(--surface);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fp-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(11, 18, 32, 0.12);
}
.fp-card .fp-media { border-radius: 0; }
.fp-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.fp-card-title {
	font-size: 1.15rem;
	margin: 0.35em 0 0.5em;
}
.fp-card-title a { color: var(--ink); text-decoration: none; }
.fp-card-title a:hover { color: var(--brand); }
.fp-card-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Horizontal strip: Partnership Insights */
.fp-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.fp-strip-item {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 1rem;
	align-items: start;
}
.fp-strip-item .fp-media {
	aspect-ratio: 1 / 1;
	border-radius: var(--radius);
}
.fp-strip-title { font-size: 1.02rem; margin: 0 0 0.3em; line-height: 1.3; }
.fp-strip-title a { color: var(--ink); text-decoration: none; }
.fp-strip-title a:hover { color: var(--brand); }
.fp-strip-meta { font-size: 0.8rem; color: var(--text-muted); }

/* Newsletter band — dark, sits above footer.
   Form is wired to a provider in Phase 2 (fp_newsletter_form_action filter). */
.fp-newsletter {
	background: var(--ink);
	color: var(--text-on-dark);
	text-align: center;
}
.fp-newsletter h2 { color: #FFFFFF; }
.fp-newsletter p {
	color: var(--text-on-dark-muted);
	max-width: 34em;
	margin: 0.5rem auto 1.5rem;
}
.fp-newsletter-form {
	display: flex;
	gap: 0.6rem;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 480px;
	margin: 0 auto;
}
.fp-newsletter form:not(.fp-newsletter-form) {
	max-width: 480px;
	margin: 0 auto;
}
.fp-newsletter form:not(.fp-newsletter-form) input[type="email"],
.fp-newsletter-form input[type="email"] {
	flex: 1 1 260px;
	padding: 0.75em 1em;
	border-radius: var(--radius);
	border: 1px solid var(--gray-500);
	background: var(--ink-soft);
	color: #FFFFFF;
	font-size: 1rem;
}
.fp-newsletter-form input[type="email"]::placeholder { color: var(--text-on-dark-muted); }
.fp-newsletter form:not(.fp-newsletter-form) button,
.fp-newsletter-form button {
	padding: 0.75em 1.6em;
	border: 0;
	border-radius: var(--radius);
	background: var(--brand);
	color: #FFFFFF;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}
.fp-newsletter-form button:hover { background: var(--brand-dark); }

/* Empty-state note shown until categories have content */
.fp-empty-note {
	color: var(--text-muted);
	font-style: italic;
	border: 1px dashed var(--gray-300);
	border-radius: var(--radius);
	padding: 1.5rem;
	text-align: center;
}

/* Category hubs */
.fp-hub-header { padding-bottom: 1rem; }
.fp-hub-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-left: 6px solid var(--brand);
	padding-left: 0.5em;
	margin: 0.5rem 0;
}
.fp-hub-intro {
	max-width: 46em;
	color: var(--gray-700);
	font-size: 1.05rem;
}
.fp-hub-subcats { padding-top: 0.5rem; }
.fp-subcat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
}
.fp-subcat-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	border: 1px solid var(--gray-200);
	border-top: 4px solid var(--brand);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-card);
	padding: 1.1rem 1.25rem;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fp-subcat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(11,18,32,0.12); }
.fp-subcat-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--ink);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.fp-subcat-desc { color: var(--gray-700); font-size: 0.9rem; line-height: 1.45; }
.fp-subcat-count {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brand);
	margin-top: auto;
}
.fp-pagination { margin-top: 2rem; text-align: center; }
.fp-pagination .nav-links { display: inline-flex; gap: 0.5rem; }
.fp-pagination .page-numbers {
	padding: 0.4em 0.9em;
	border: 1px solid var(--gray-200);
	border-radius: 6px;
	text-decoration: none;
	color: var(--ink);
}
.fp-pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* --------------------------------------------------------------------------
   5. Single posts: meta, breadcrumbs, TOC, author box
   -------------------------------------------------------------------------- */
.fp-breadcrumbs {
	max-width: var(--content-width);
	margin: 0 auto 1rem;
	font-size: 0.85rem;
	color: var(--text-muted);
}
.fp-breadcrumbs a { color: var(--brand); text-decoration: none; }

.fp-reading-time {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin: 0.25rem 0 0.75rem;
}

/* Sticky table of contents (only rendered on posts > 1200 words).
   Wide screens: sticky rail beside content. Narrow: collapsible box on top. */
.fp-toc {
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	background: var(--surface-alt);
	padding: 1rem 1.25rem;
	margin: 0 auto 1.75rem;
	max-width: var(--content-width);
	font-size: 0.92rem;
}
.fp-toc summary {
	font-family: var(--font-display);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	color: var(--ink);
}
.fp-toc ol { margin: 0.75rem 0 0 1.1rem; padding: 0; }
.fp-toc li { margin: 0.35rem 0; }
.fp-toc a { color: var(--gray-700); text-decoration: none; }
.fp-toc a:hover, .fp-toc a.fp-toc-active { color: var(--brand); }
.fp-toc .fp-toc-h3 { margin-left: 1rem; font-size: 0.88em; }

@media (min-width: 1280px) {
	.single .fp-has-toc-main {
		display: grid;
		grid-template-columns: 230px minmax(0, 1fr);
		gap: 2.5rem;
		max-width: calc(var(--content-width) + 230px + 2.5rem);
		margin: 0 auto;
	}
	.fp-has-toc-main .fp-toc {
		position: sticky;
		top: 90px;
		align-self: start;
		margin: 0;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}
	.fp-has-toc-main .fp-toc summary { pointer-events: none; }
	.fp-has-toc-main .fp-toc summary::-webkit-details-marker { display: none; }
	.fp-has-toc-main .fp-toc[open] summary { list-style: none; }
}

/* Author box — under every post */
.fp-author-box {
	max-width: var(--content-width);
	margin: 2.5rem auto 0;
	padding: 1.5rem;
	border: 1px solid var(--gray-200);
	border-left: 5px solid var(--brand);
	border-radius: var(--radius);
	background: var(--surface-alt);
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 1.25rem;
	align-items: start;
}
.fp-author-box img.avatar {
	border-radius: 50%;
	width: 72px;
	height: 72px;
}
.fp-author-box-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0 0 0.25em;
	color: var(--ink);
}
.fp-author-box-bio { font-size: 0.95rem; color: var(--gray-700); margin: 0; }

/* --------------------------------------------------------------------------
   6. Footer — dark ink
   -------------------------------------------------------------------------- */
.site-footer,
.site-info {
	background-color: var(--ink);
	color: var(--text-on-dark-muted);
}
.site-info { padding: 1.5rem 1.25rem; font-size: 0.85rem; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }

.fp-footer-nav {
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 2rem 1.25rem 0;
}
.fp-footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	justify-content: center;
}
.fp-footer-nav a {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.fp-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
	.fp-card-grid { grid-template-columns: 1fr 1fr; }
	.fp-strip { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.fp-card-grid { grid-template-columns: 1fr; }
	.fp-section { padding: 2.5rem 1rem; }
}
