/*
Theme Name: FansOnlySports Skeleton 01 - Magazine Grid
Theme URI: https://fansonlysports.co.uk/
Description: Magazine Grid child theme for GeneratePress. Lightweight, fast and SEO friendly skeleton built for sports and news style publications. Edit the BRAND TOKENS block below to rebrand this theme for another website.
Author: Fans Only Sports
Author URI: https://fansonlysports.co.uk/
Template: generatepress
Version: 1.0.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fos-skeleton-01
Tags: blog, news, magazine, two-columns, right-sidebar, custom-menu, featured-images
*/

/* =========================================================================
   1. BRAND TOKENS  --  EDIT ONLY THIS BLOCK TO REBRAND FOR A NEW WEBSITE
   ========================================================================= */

:root {

	/* ---- Brand colours ---- */
	--fos-primary:        #0F2233;   /* Floodlight navy: header, footer, headings */
	--fos-primary-700:    #16334C;   /* Hover / raised navy surface */
	--fos-primary-900:    #0A1926;   /* Deepest navy: footer base */
	--fos-accent:         #F5A524;   /* Floodlight amber: badges, rules, CTAs */
	--fos-accent-600:     #D98A0B;   /* Amber hover */
	--fos-accent-soft:    #FEF3DC;   /* Amber tint background */

	/* ---- Neutral colours ---- */
	--fos-bg:             #FFFFFF;
	--fos-surface:        #F5F7F9;   /* Section / card alt background */
	--fos-surface-2:      #EDF1F5;
	--fos-text:           #1B2733;
	--fos-muted:          #5C6B7A;
	--fos-border:         #E3E8ED;
	--fos-white:          #FFFFFF;

	/* ---- Typography ---- */
	--fos-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fos-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fos-font-label: "Arial Narrow", "Helvetica Neue Condensed", var(--fos-font-heading);

	--fos-fs-base:  17px;
	--fos-fs-small: 14px;
	--fos-fs-tiny:  12px;
	--fos-fs-h1: clamp(28px, 1.4rem + 2.2vw, 42px);
	--fos-fs-h2: clamp(22px, 1.2rem + 1.1vw, 30px);
	--fos-fs-h3: clamp(19px, 1.1rem + 0.5vw, 23px);
	--fos-fs-h4: 18px;
	--fos-lh-body: 1.72;
	--fos-lh-heading: 1.22;

	/* ---- Layout ---- */
	--fos-container: 1200px;
	--fos-sidebar:   320px;
	--fos-gutter:    22px;

	/* ---- Spacing scale ---- */
	--fos-s1: 4px;
	--fos-s2: 8px;
	--fos-s3: 12px;
	--fos-s4: 16px;
	--fos-s5: 24px;
	--fos-s6: 32px;
	--fos-s7: 48px;
	--fos-s8: 64px;

	/* ---- Radius, borders, shadow ---- */
	--fos-radius:    10px;
	--fos-radius-sm: 6px;
	--fos-radius-pill: 999px;
	--fos-rule: 3px;                         /* Signature amber rule thickness */
	--fos-shadow: 0 1px 2px rgba(15, 34, 51, .06), 0 8px 24px rgba(15, 34, 51, .06);
	--fos-shadow-hover: 0 2px 6px rgba(15, 34, 51, .08), 0 14px 34px rgba(15, 34, 51, .12);

	/* ---- Logo sizing ---- */
	--fos-logo-h: 40px;
	--fos-logo-h-mobile: 32px;

	/* ---- Motion ---- */
	--fos-ease: cubic-bezier(.2, .7, .3, 1);
	--fos-speed: .22s;
}

/* =========================================================================
   2. BASE
   ========================================================================= */

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

body {
	font-family: var(--fos-font-body);
	font-size: var(--fos-fs-base);
	line-height: var(--fos-lh-body);
	color: var(--fos-text);
	background-color: var(--fos-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeSpeed;
}

img, video, svg { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--fos-primary); text-decoration: none; }
a:hover, a:focus { color: var(--fos-accent-600); }

:focus-visible {
	outline: 3px solid var(--fos-accent);
	outline-offset: 2px;
	border-radius: 3px;
}

.fos-screen-reader-text,
.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;
}

.fos-skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 9999;
	width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--fos-primary); color: #fff;
	border-radius: var(--fos-radius-sm);
}

/* =========================================================================
   3. TYPOGRAPHY
   ========================================================================= */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fos-font-heading);
	color: var(--fos-primary);
	line-height: var(--fos-lh-heading);
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 0 0 var(--fos-s4);
}

h1 { font-size: var(--fos-fs-h1); }
h2 { font-size: var(--fos-fs-h2); }
h3 { font-size: var(--fos-fs-h3); }
h4 { font-size: var(--fos-fs-h4); font-weight: 700; }
h5, h6 { font-size: 16px; font-weight: 700; }

p { margin: 0 0 var(--fos-s5); }

.fos-eyebrow {
	font-family: var(--fos-font-label);
	font-size: var(--fos-fs-tiny);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fos-muted);
}

/* Signature: amber floodlight rule under section titles */
.fos-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--fos-s4);
	margin-bottom: var(--fos-s5);
	padding-bottom: var(--fos-s3);
	border-bottom: 1px solid var(--fos-border);
	position: relative;
}

.fos-section-head::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 68px; height: var(--fos-rule);
	background: var(--fos-accent);
	border-radius: 2px;
}

.fos-section-head h2,
.fos-section-head .fos-section-title {
	margin: 0;
	font-size: clamp(20px, 1.1rem + 0.8vw, 26px);
	text-transform: uppercase;
	letter-spacing: .01em;
}

.fos-section-head .fos-section-more {
	font-size: var(--fos-fs-small);
	font-weight: 700;
	color: var(--fos-muted);
	white-space: nowrap;
}

.fos-section-head .fos-section-more:hover { color: var(--fos-accent-600); }

/* =========================================================================
   4. BUTTONS
   ========================================================================= */

.fos-btn,
.wp-block-button__link,
button, input[type="submit"], input[type="button"], .button {
	display: inline-block;
	font-family: var(--fos-font-heading);
	font-size: var(--fos-fs-small);
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
	padding: 13px 22px;
	border: 2px solid var(--fos-primary);
	border-radius: var(--fos-radius-sm);
	background: var(--fos-primary);
	color: var(--fos-white);
	cursor: pointer;
	text-align: center;
	transition: background var(--fos-speed) var(--fos-ease), border-color var(--fos-speed) var(--fos-ease), color var(--fos-speed) var(--fos-ease);
}

.fos-btn:hover, .fos-btn:focus,
button:hover, input[type="submit"]:hover, .button:hover {
	background: var(--fos-primary-700);
	border-color: var(--fos-primary-700);
	color: var(--fos-white);
}

.fos-btn--accent {
	background: var(--fos-accent);
	border-color: var(--fos-accent);
	color: var(--fos-primary);
}

.fos-btn--accent:hover, .fos-btn--accent:focus {
	background: var(--fos-accent-600);
	border-color: var(--fos-accent-600);
	color: var(--fos-primary);
}

.fos-btn--ghost {
	background: transparent;
	color: var(--fos-primary);
}

.fos-btn--ghost:hover {
	background: var(--fos-primary);
	color: var(--fos-white);
}

.fos-btn--block { display: block; width: 100%; }

/* =========================================================================
   5. LAYOUT + CONTAINER
   ========================================================================= */

.grid-container,
.fos-container {
	max-width: var(--fos-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--fos-gutter);
	padding-right: var(--fos-gutter);
	box-sizing: border-box;
}

.site-content { gap: 0; }

.separate-containers .site-main { margin: 0; }

.fos-stack > * + * { margin-top: var(--fos-s6); }

/* =========================================================================
   6. HEADER + NAVIGATION
   ========================================================================= */

.site-header {
	background-color: var(--fos-primary);
	border-bottom: var(--fos-rule) solid var(--fos-accent);
}

.site-header .inside-header {
	padding-top: var(--fos-s4);
	padding-bottom: var(--fos-s4);
	display: flex;
	align-items: center;
	gap: var(--fos-s5);
}

.site-logo img,
.site-header .header-image {
	height: var(--fos-logo-h);
	width: auto;
}

.site-branding .main-title a,
.site-title a {
	color: var(--fos-white);
	font-family: var(--fos-font-heading);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.site-description { color: rgba(255, 255, 255, .72); font-size: var(--fos-fs-small); }

/* --- Primary navigation --- */

.main-navigation {
	background-color: var(--fos-primary-900);
}

.main-navigation .inside-navigation { padding: 0; }

.main-navigation .main-nav > ul > li > a {
	font-family: var(--fos-font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .88);
	padding: 15px 16px;
	line-height: 1.2;
	position: relative;
	transition: color var(--fos-speed) var(--fos-ease);
}

.main-navigation .main-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 16px; right: 16px; bottom: 8px;
	height: var(--fos-rule);
	background: var(--fos-accent);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--fos-speed) var(--fos-ease);
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a,
.main-navigation .main-nav > ul > li.current-menu-parent > a,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a {
	color: var(--fos-white);
	background-color: transparent;
}

.main-navigation .main-nav > ul > li > a:hover::after,
.main-navigation .main-nav > ul > li.current-menu-item > a::after,
.main-navigation .main-nav > ul > li.current-menu-parent > a::after,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

/* --- Dropdowns --- */

.main-navigation ul ul {
	background-color: var(--fos-primary-700);
	box-shadow: var(--fos-shadow);
	border-top: var(--fos-rule) solid var(--fos-accent);
	width: 230px;
	border-radius: 0 0 var(--fos-radius-sm) var(--fos-radius-sm);
	overflow: hidden;
}

.main-navigation ul ul li a {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: rgba(255, 255, 255, .9);
	padding: 11px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.main-navigation ul ul li:last-child a { border-bottom: 0; }

.main-navigation ul ul li a:hover {
	background-color: var(--fos-primary-900);
	color: var(--fos-accent);
}

/* --- Nav search --- */

.main-navigation .navigation-search input[type="search"] {
	background-color: var(--fos-primary-900);
	color: var(--fos-white);
	font-size: 16px;
	height: 100%;
}

.main-navigation .navigation-search input::placeholder { color: rgba(255, 255, 255, .55); }

.main-navigation .menu-bar-items .search-item a { color: rgba(255, 255, 255, .88); }
.main-navigation .menu-bar-items .search-item a:hover { color: var(--fos-accent); }

/* --- Sticky header (CSS only, zero JS layout shift) --- */

body.fos-sticky-nav .main-navigation {
	position: sticky;
	top: 0;
	z-index: 500;
}

body.admin-bar.fos-sticky-nav .main-navigation { top: 32px; }

/* --- Mobile menu toggle --- */

.menu-toggle {
	background: transparent;
	border: 0;
	color: var(--fos-white);
	font-family: var(--fos-font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 14px 16px;
	width: 100%;
	text-align: left;
}

.menu-toggle:hover, .menu-toggle:focus { background: var(--fos-primary-700); color: var(--fos-accent); }

.main-navigation.toggled .main-nav > ul { background-color: var(--fos-primary-900); }

.main-navigation.toggled .main-nav > ul > li > a::after { display: none; }

.main-navigation.toggled .main-nav ul li a {
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	padding: 14px 16px;
}

/* =========================================================================
   7. POST CARDS (shared by homepage + all archives)
   ========================================================================= */

.fos-card {
	display: flex;
	flex-direction: column;
	background: var(--fos-bg);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
	overflow: hidden;
	height: 100%;
	transition: box-shadow var(--fos-speed) var(--fos-ease), transform var(--fos-speed) var(--fos-ease), border-color var(--fos-speed) var(--fos-ease);
}

.fos-card:hover {
	box-shadow: var(--fos-shadow-hover);
	border-color: #D6DDE4;
	transform: translateY(-2px);
}

.fos-card__media {
	position: relative;
	display: block;
	background: var(--fos-surface-2);
	overflow: hidden;
}

.fos-card__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .4s var(--fos-ease);
}

.fos-card:hover .fos-card__media img { transform: scale(1.04); }

.fos-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--fos-s2);
	padding: var(--fos-s4) var(--fos-s4) var(--fos-s5);
	flex: 1 1 auto;
}

.fos-card__title {
	font-size: 19px;
	line-height: 1.3;
	margin: 0;
	font-weight: 800;
}

.fos-card__title a { color: var(--fos-primary); }
.fos-card__title a:hover { color: var(--fos-accent-600); }

.fos-card__excerpt {
	font-size: var(--fos-fs-small);
	color: var(--fos-muted);
	margin: 0;
	line-height: 1.6;
}

.fos-card__meta {
	margin-top: auto;
	padding-top: var(--fos-s3);
	font-size: var(--fos-fs-tiny);
	color: var(--fos-muted);
	display: flex;
	align-items: center;
	gap: var(--fos-s2);
	flex-wrap: wrap;
}

.fos-card__meta a { color: var(--fos-muted); font-weight: 600; }
.fos-card__meta a:hover { color: var(--fos-accent-600); }
.fos-card__meta .fos-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fos-border); display: inline-block; }

/* --- Category badge --- */

.fos-badge {
	display: inline-block;
	font-family: var(--fos-font-label);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1;
	padding: 6px 10px;
	border-radius: var(--fos-radius-pill);
	background: var(--fos-accent-soft);
	color: var(--fos-primary);
	border: 1px solid #F3DFB4;
}

.fos-badge:hover { background: var(--fos-accent); color: var(--fos-primary); }

.fos-badge--float {
	position: absolute;
	top: var(--fos-s3);
	left: var(--fos-s3);
	background: var(--fos-primary);
	color: var(--fos-white);
	border-color: var(--fos-primary);
}

.fos-badge--float:hover { background: var(--fos-accent); color: var(--fos-primary); border-color: var(--fos-accent); }

/* --- Read more --- */

.fos-readmore,
.read-more, .entry-content .read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--fos-fs-small);
	font-weight: 700;
	color: var(--fos-primary);
}

.fos-readmore::after,
.read-more::after { content: "\2192"; transition: transform var(--fos-speed) var(--fos-ease); }
.fos-readmore:hover::after,
.read-more:hover::after { transform: translateX(3px); }

/* =========================================================================
   8. HOMEPAGE MAGAZINE GRID
   ========================================================================= */

.fos-home { padding-bottom: var(--fos-s8); }
.fos-home > section { margin-bottom: var(--fos-s8); }
.fos-home > section:last-child { margin-bottom: 0; }

/* --- Hero: 1 lead + 4 secondary --- */

.fos-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: var(--fos-s5);
	margin-top: var(--fos-s6);
}

.fos-hero__lead {
	position: relative;
	border-radius: var(--fos-radius);
	overflow: hidden;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	background: var(--fos-primary);
}

.fos-hero__lead img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fos-hero__lead::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 25, 38, 0) 30%, rgba(10, 25, 38, .82) 78%, rgba(10, 25, 38, .95) 100%);
}

.fos-hero__lead-body {
	position: relative;
	z-index: 2;
	padding: var(--fos-s6);
	color: var(--fos-white);
	width: 100%;
}

.fos-hero__lead-body .fos-badge {
	background: var(--fos-accent);
	border-color: var(--fos-accent);
	color: var(--fos-primary);
	margin-bottom: var(--fos-s3);
}

.fos-hero__lead-title {
	font-size: clamp(24px, 1.2rem + 1.9vw, 36px);
	line-height: 1.18;
	margin: 0 0 var(--fos-s3);
	color: var(--fos-white);
	max-width: 20ch;
}

.fos-hero__lead-title a { color: var(--fos-white); }
.fos-hero__lead-title a:hover { color: var(--fos-accent); }

.fos-hero__lead-meta {
	font-size: var(--fos-fs-tiny);
	color: rgba(255, 255, 255, .78);
	display: flex;
	gap: var(--fos-s2);
	align-items: center;
	flex-wrap: wrap;
}

.fos-hero__side {
	display: grid;
	grid-template-rows: repeat(4, minmax(0, 1fr));
	gap: var(--fos-s3);
}

.fos-hero__item {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: var(--fos-s3);
	align-items: center;
	background: var(--fos-surface);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius-sm);
	padding: var(--fos-s2);
	transition: border-color var(--fos-speed) var(--fos-ease), background var(--fos-speed) var(--fos-ease);
}

.fos-hero__item:hover { background: var(--fos-white); border-color: #D6DDE4; }

.fos-hero__item img {
	width: 104px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--fos-radius-sm);
}

.fos-hero__item-title {
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 4px;
	font-weight: 700;
}

.fos-hero__item-meta { font-size: 11px; color: var(--fos-muted); }

/* --- Category chip strip --- */

.fos-catstrip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--fos-s3);
}

.fos-catstrip__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
	padding: var(--fos-s4) var(--fos-s2);
	background: var(--fos-primary);
	color: var(--fos-white);
	border-radius: var(--fos-radius-sm);
	font-family: var(--fos-font-heading);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .03em;
	text-transform: uppercase;
	border-bottom: var(--fos-rule) solid transparent;
	transition: border-color var(--fos-speed) var(--fos-ease), background var(--fos-speed) var(--fos-ease);
}

.fos-catstrip__item:hover {
	background: var(--fos-primary-700);
	color: var(--fos-white);
	border-bottom-color: var(--fos-accent);
}

.fos-catstrip__count {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	color: rgba(255, 255, 255, .6);
	text-transform: none;
}

/* --- Latest grid --- */

.fos-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--fos-s5);
}

.fos-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fos-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Category block: 1 large + 3 list --- */

.fos-catblock__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: var(--fos-s5);
}

.fos-catblock__list {
	display: flex;
	flex-direction: column;
	gap: var(--fos-s4);
}

.fos-catblock__row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: var(--fos-s4);
	padding-bottom: var(--fos-s4);
	border-bottom: 1px solid var(--fos-border);
}

.fos-catblock__row:last-child { border-bottom: 0; padding-bottom: 0; }

.fos-catblock__row img {
	width: 120px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--fos-radius-sm);
}

.fos-catblock__row-title {
	font-size: 16px;
	line-height: 1.35;
	margin: 0 0 6px;
	font-weight: 700;
}

.fos-catblock__row-meta { font-size: 11px; color: var(--fos-muted); }

/* --- Newsletter / CTA band --- */

.fos-cta {
	background: var(--fos-primary);
	color: var(--fos-white);
	border-radius: var(--fos-radius);
	padding: var(--fos-s7) var(--fos-s6);
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: var(--fos-s6);
	align-items: center;
	border-left: var(--fos-rule) solid var(--fos-accent);
}

.fos-cta h2 { color: var(--fos-white); margin: 0 0 var(--fos-s2); }
.fos-cta p { color: rgba(255, 255, 255, .8); margin: 0; font-size: var(--fos-fs-small); }
.fos-cta__actions { display: flex; gap: var(--fos-s3); flex-wrap: wrap; justify-content: flex-end; }

/* --- Advertisement safe slots (fixed height = no CLS) --- */

.fos-ad {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--fos-surface);
	border: 1px dashed var(--fos-border);
	border-radius: var(--fos-radius-sm);
	color: var(--fos-muted);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	overflow: hidden;
}

.fos-ad--leaderboard { min-height: 90px; margin: var(--fos-s6) 0; }
.fos-ad--incontent   { min-height: 250px; margin: var(--fos-s6) 0; }
.fos-ad--sidebar     { min-height: 250px; }
.fos-ad:empty::before { content: "Advertisement"; }

/* =========================================================================
   9. ARCHIVES: blog, category, tag, author, date, search
   ========================================================================= */

.blog .site-main,
.archive .site-main,
.search-results .site-main {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--fos-s5);
	align-items: start;
}

.blog .site-main > .page-header,
.archive .site-main > .page-header,
.search-results .site-main > .page-header,
.blog .site-main > .paging-navigation,
.archive .site-main > .paging-navigation,
.search-results .site-main > .paging-navigation,
.search-results .site-main > .no-results,
.blog .site-main > .fos-ad,
.archive .site-main > .fos-ad {
	grid-column: 1 / -1;
}

/* Turn GeneratePress articles into cards */

.blog .site-main > article,
.archive .site-main > article,
.search-results .site-main > article {
	margin: 0 !important;
	height: 100%;
}

.blog .inside-article,
.archive .inside-article,
.search-results .inside-article {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	background: var(--fos-bg);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
	overflow: hidden;
	transition: box-shadow var(--fos-speed) var(--fos-ease), transform var(--fos-speed) var(--fos-ease);
}

.blog .inside-article:hover,
.archive .inside-article:hover,
.search-results .inside-article:hover {
	box-shadow: var(--fos-shadow-hover);
	transform: translateY(-2px);
}

.blog .post-image,
.archive .post-image,
.search-results .post-image { margin: 0; position: relative; }

.blog .post-image img,
.archive .post-image img,
.search-results .post-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.blog .entry-header,
.archive .entry-header,
.search-results .entry-header { padding: var(--fos-s4) var(--fos-s4) 0; }

.blog .entry-title,
.archive .entry-title,
.search-results .entry-title {
	font-size: 20px;
	line-height: 1.3;
	margin: var(--fos-s2) 0 var(--fos-s2);
}

.blog .entry-summary,
.archive .entry-summary,
.search-results .entry-summary {
	padding: 0 var(--fos-s4);
	font-size: var(--fos-fs-small);
	color: var(--fos-muted);
	margin: 0 0 var(--fos-s4);
}

.blog .entry-meta,
.archive .entry-meta,
.search-results .entry-meta {
	font-size: var(--fos-fs-tiny);
	color: var(--fos-muted);
	padding: 0 var(--fos-s4) var(--fos-s5);
	margin-top: auto;
}

.blog .entry-meta a,
.archive .entry-meta a { color: var(--fos-muted); font-weight: 600; }
.blog .entry-meta a:hover,
.archive .entry-meta a:hover { color: var(--fos-accent-600); }

/* Archive header */

.page-header {
	background: var(--fos-surface);
	border: 1px solid var(--fos-border);
	border-left: var(--fos-rule) solid var(--fos-accent);
	border-radius: var(--fos-radius);
	padding: var(--fos-s5) var(--fos-s6);
	margin-bottom: var(--fos-s2);
}

.page-header .page-title,
.page-header h1 { margin: 0; font-size: clamp(24px, 1.3rem + 1.2vw, 32px); }
.page-header .taxonomy-description,
.page-header .author-info { margin: var(--fos-s3) 0 0; color: var(--fos-muted); font-size: var(--fos-fs-small); }
.page-header .taxonomy-description p:last-child { margin-bottom: 0; }

.fos-archive-kicker {
	font-family: var(--fos-font-label);
	font-size: var(--fos-fs-tiny);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fos-accent-600);
	display: block;
	margin-bottom: 6px;
}

/* Author archive header extras */

.fos-author-header {
	display: flex;
	gap: var(--fos-s5);
	align-items: center;
	flex-wrap: wrap;
}

.fos-author-header img {
	width: 78px; height: 78px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--fos-white);
	box-shadow: var(--fos-shadow);
}

/* =========================================================================
   10. PAGINATION
   ========================================================================= */

.paging-navigation, .fos-pagination {
	margin-top: var(--fos-s5);
	padding-top: var(--fos-s5);
	border-top: 1px solid var(--fos-border);
}

.paging-navigation .nav-links,
.fos-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fos-s2);
	align-items: center;
	justify-content: center;
}

.paging-navigation .page-numbers,
.fos-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius-sm);
	background: var(--fos-white);
	color: var(--fos-primary);
	font-weight: 700;
	font-size: var(--fos-fs-small);
	transition: background var(--fos-speed) var(--fos-ease), color var(--fos-speed) var(--fos-ease), border-color var(--fos-speed) var(--fos-ease);
}

.paging-navigation .page-numbers:hover,
.fos-pagination .page-numbers:hover {
	background: var(--fos-primary);
	border-color: var(--fos-primary);
	color: var(--fos-white);
}

.paging-navigation .page-numbers.current,
.fos-pagination .page-numbers.current {
	background: var(--fos-accent);
	border-color: var(--fos-accent);
	color: var(--fos-primary);
}

.paging-navigation .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	min-width: 24px;
}

/* =========================================================================
   11. SINGLE POST
   ========================================================================= */

.single .inside-article,
.page .inside-article {
	background: var(--fos-bg);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
	padding: var(--fos-s6);
}

.single .entry-header, .page .entry-header { margin-bottom: var(--fos-s5); }

.single .entry-title,
.page .entry-title {
	font-size: var(--fos-fs-h1);
	line-height: 1.18;
	margin: var(--fos-s3) 0;
}

.fos-post-kicker { margin-bottom: var(--fos-s2); }

.single .entry-meta,
.fos-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--fos-s3);
	font-size: var(--fos-fs-small);
	color: var(--fos-muted);
	padding: var(--fos-s3) 0;
	border-top: 1px solid var(--fos-border);
	border-bottom: 1px solid var(--fos-border);
}

.fos-post-meta__avatar {
	width: 34px; height: 34px;
	border-radius: 50%;
	object-fit: cover;
}

.fos-post-meta a { color: var(--fos-primary); font-weight: 700; }
.fos-post-meta a:hover { color: var(--fos-accent-600); }
.fos-post-meta .fos-updated { color: var(--fos-accent-600); font-weight: 600; }

.single .post-image, .page .post-image { margin: 0 0 var(--fos-s5); }

.single .post-image img, .page .post-image img {
	width: 100%;
	border-radius: var(--fos-radius-sm);
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* --- Article content typography --- */

.entry-content { font-size: var(--fos-fs-base); }

.entry-content > h2 {
	margin-top: var(--fos-s7);
	margin-bottom: var(--fos-s4);
	padding-top: var(--fos-s4);
	border-top: 1px solid var(--fos-border);
	position: relative;
}

.entry-content > h2::before {
	content: "";
	position: absolute;
	top: -1px; left: 0;
	width: 48px; height: var(--fos-rule);
	background: var(--fos-accent);
	border-radius: 2px;
}

.entry-content > h3 { margin-top: var(--fos-s6); margin-bottom: var(--fos-s3); }

.entry-content a {
	color: var(--fos-accent-600);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(217, 138, 11, .4);
}

.entry-content a:hover {
	color: var(--fos-primary);
	text-decoration-color: var(--fos-primary);
}

.entry-content ul, .entry-content ol { margin: 0 0 var(--fos-s5); padding-left: 1.35em; }
.entry-content li { margin-bottom: var(--fos-s2); }
.entry-content ul li::marker { color: var(--fos-accent); }
.entry-content ol li::marker { color: var(--fos-accent-600); font-weight: 700; }

.entry-content blockquote {
	margin: var(--fos-s6) 0;
	padding: var(--fos-s5) var(--fos-s6);
	background: var(--fos-surface);
	border-left: var(--fos-rule) solid var(--fos-accent);
	border-radius: 0 var(--fos-radius-sm) var(--fos-radius-sm) 0;
	font-size: 18px;
	color: var(--fos-primary);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: var(--fos-s3); font-size: var(--fos-fs-small); color: var(--fos-muted); font-style: normal; }

.entry-content figure { margin: var(--fos-s6) 0; }
.entry-content img { border-radius: var(--fos-radius-sm); }
.entry-content figcaption, .wp-caption-text {
	font-size: var(--fos-fs-tiny);
	color: var(--fos-muted);
	text-align: center;
	margin-top: var(--fos-s2);
	padding: 0 var(--fos-s3);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--fos-s6) 0;
	font-size: var(--fos-fs-small);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius-sm);
	overflow: hidden;
	display: table;
}

.entry-content table th {
	background: var(--fos-primary);
	color: var(--fos-white);
	font-family: var(--fos-font-heading);
	font-weight: 700;
	text-align: left;
	padding: 12px 14px;
	font-size: var(--fos-fs-small);
}

.entry-content table td { padding: 11px 14px; border-top: 1px solid var(--fos-border); }
.entry-content table tbody tr:nth-child(even) { background: var(--fos-surface); }

.fos-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--fos-s6) 0; }
.fos-table-scroll table { margin: 0; }

.entry-content code {
	background: var(--fos-surface-2);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 15px;
}

/* --- In-article "Related Read" inline box --- */

.fos-related-read {
	display: flex;
	align-items: center;
	gap: var(--fos-s3);
	margin: var(--fos-s6) 0;
	padding: var(--fos-s4) var(--fos-s5);
	background: var(--fos-accent-soft);
	border-left: var(--fos-rule) solid var(--fos-accent);
	border-radius: 0 var(--fos-radius-sm) var(--fos-radius-sm) 0;
	font-size: var(--fos-fs-small);
}

.fos-related-read__label {
	font-family: var(--fos-font-label);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fos-accent-600);
	white-space: nowrap;
}

.fos-related-read a { font-weight: 700; color: var(--fos-primary); text-decoration: none; }
.fos-related-read a:hover { color: var(--fos-accent-600); text-decoration: underline; }

/* --- Social share --- */

.fos-share {
	display: flex;
	align-items: center;
	gap: var(--fos-s2);
	flex-wrap: wrap;
	margin: 0 0 var(--fos-s5);
	padding-bottom: var(--fos-s4);
	border-bottom: 1px solid var(--fos-border);
}

.fos-share__label {
	font-family: var(--fos-font-label);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fos-muted);
	margin-right: var(--fos-s2);
}

.fos-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius-pill);
	background: var(--fos-white);
	color: var(--fos-primary);
	font-size: var(--fos-fs-tiny);
	font-weight: 700;
	line-height: 1;
	transition: background var(--fos-speed) var(--fos-ease), color var(--fos-speed) var(--fos-ease), border-color var(--fos-speed) var(--fos-ease);
}

.fos-share__btn:hover {
	background: var(--fos-primary);
	border-color: var(--fos-primary);
	color: var(--fos-white);
}

.fos-share__btn svg { width: 15px; height: 15px; fill: currentColor; }

/* --- Post navigation (previous / next) --- */

.fos-postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--fos-s4);
	margin-top: var(--fos-s6);
}

.fos-postnav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: var(--fos-s4) var(--fos-s5);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
	background: var(--fos-white);
	transition: border-color var(--fos-speed) var(--fos-ease), background var(--fos-speed) var(--fos-ease);
}

.fos-postnav__item:hover { background: var(--fos-surface); border-color: #D6DDE4; }
.fos-postnav__item--next { text-align: right; }

.fos-postnav__label {
	font-family: var(--fos-font-label);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fos-accent-600);
}

.fos-postnav__title { font-size: 15px; font-weight: 700; color: var(--fos-primary); line-height: 1.35; }

/* --- Author box --- */

.fos-authorbox {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: var(--fos-s5);
	margin-top: var(--fos-s7);
	padding: var(--fos-s5);
	background: var(--fos-surface);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
}

.fos-authorbox__avatar {
	width: 84px; height: 84px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--fos-surface-2);
}

.fos-authorbox__name { font-size: 18px; margin: 0 0 4px; }
.fos-authorbox__name a { color: var(--fos-primary); }
.fos-authorbox__role {
	font-family: var(--fos-font-label);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fos-accent-600);
	font-weight: 700;
	display: block;
	margin-bottom: var(--fos-s2);
}
.fos-authorbox__bio { font-size: var(--fos-fs-small); color: var(--fos-muted); margin: 0 0 var(--fos-s3); }
.fos-authorbox__links { display: flex; gap: var(--fos-s4); flex-wrap: wrap; font-size: var(--fos-fs-tiny); font-weight: 700; }
.fos-authorbox__links a { color: var(--fos-primary); }
.fos-authorbox__links a:hover { color: var(--fos-accent-600); }

/* --- Related posts --- */

.fos-related { margin-top: var(--fos-s7); }
.fos-related .fos-grid { gap: var(--fos-s4); }
.fos-related .fos-card__title { font-size: 16px; }

/* =========================================================================
   12. TABLE OF CONTENTS
   ========================================================================= */

.fos-toc {
	margin: 0 0 var(--fos-s6);
	border: 1px solid var(--fos-border);
	border-left: var(--fos-rule) solid var(--fos-accent);
	border-radius: 0 var(--fos-radius) var(--fos-radius) 0;
	background: var(--fos-surface);
	overflow: hidden;
}

.fos-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fos-s3);
	width: 100%;
	padding: var(--fos-s4) var(--fos-s5);
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--fos-primary);
	font-family: var(--fos-font-heading);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-align: left;
	cursor: pointer;
}

.fos-toc__toggle:hover, .fos-toc__toggle:focus { background: var(--fos-surface-2); color: var(--fos-primary); }

.fos-toc__icon {
	flex: 0 0 auto;
	width: 12px; height: 12px;
	border-right: 2px solid var(--fos-accent-600);
	border-bottom: 2px solid var(--fos-accent-600);
	transform: rotate(45deg);
	transition: transform var(--fos-speed) var(--fos-ease);
	margin-bottom: 4px;
}

.fos-toc__toggle[aria-expanded="false"] .fos-toc__icon { transform: rotate(-45deg); margin-bottom: 0; }

.fos-toc__panel { padding: 0 var(--fos-s5) var(--fos-s5); }
.fos-toc__panel[hidden] { display: none; }

.fos-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: fostoc; }
.fos-toc__list .fos-toc__list { margin: 6px 0 6px 18px; padding-left: var(--fos-s3); border-left: 1px solid var(--fos-border); }

.fos-toc__item { margin: 0 0 8px; }
.fos-toc__item:last-child { margin-bottom: 0; }

.fos-toc__link {
	display: inline-block;
	font-size: var(--fos-fs-small);
	line-height: 1.5;
	color: var(--fos-primary);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.fos-toc__link:hover, .fos-toc__link:focus {
	color: var(--fos-accent-600);
	border-bottom-color: var(--fos-accent);
}

.fos-toc__item--h2 > .fos-toc__link::before {
	counter-increment: fostoc;
	content: counter(fostoc) ". ";
	color: var(--fos-accent-600);
	font-weight: 800;
}

.fos-toc__item--h3 > .fos-toc__link { font-weight: 500; color: var(--fos-muted); font-size: 13px; }
.fos-toc__item--h3 > .fos-toc__link:hover { color: var(--fos-accent-600); }

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 90px; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 90px; }

/* =========================================================================
   13. FAQ ACCORDION
   ========================================================================= */

.fos-faq { margin: var(--fos-s7) 0 0; }

.fos-faq__title {
	margin-top: 0 !important;
	border-top: 0 !important;
	padding-top: 0 !important;
}

.fos-faq__title::before { display: none !important; }

.fos-faq__head {
	display: flex;
	align-items: baseline;
	gap: var(--fos-s3);
	padding-bottom: var(--fos-s3);
	border-bottom: 1px solid var(--fos-border);
	margin-bottom: var(--fos-s4);
	position: relative;
}

.fos-faq__head::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 68px; height: var(--fos-rule);
	background: var(--fos-accent);
	border-radius: 2px;
}

.fos-faq__list { display: flex; flex-direction: column; gap: var(--fos-s3); }

.fos-faq__item {
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius-sm);
	background: var(--fos-white);
	overflow: hidden;
	transition: border-color var(--fos-speed) var(--fos-ease), box-shadow var(--fos-speed) var(--fos-ease);
}

.fos-faq__item:has(.fos-faq__q[aria-expanded="true"]) {
	border-color: var(--fos-accent);
	box-shadow: 0 6px 18px rgba(15, 34, 51, .07);
}

.fos-faq__q { margin: 0; font-size: inherit; }

.fos-faq__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fos-s4);
	width: 100%;
	margin: 0;
	padding: var(--fos-s4) var(--fos-s5);
	background: var(--fos-surface);
	border: 0;
	border-radius: 0;
	color: var(--fos-primary);
	font-family: var(--fos-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: background var(--fos-speed) var(--fos-ease), color var(--fos-speed) var(--fos-ease);
}

.fos-faq__btn:hover, .fos-faq__btn:focus { background: var(--fos-surface-2); color: var(--fos-primary); }
.fos-faq__btn[aria-expanded="true"] { background: var(--fos-accent-soft); }

.fos-faq__sign {
	flex: 0 0 auto;
	position: relative;
	width: 18px; height: 18px;
}

.fos-faq__sign::before, .fos-faq__sign::after {
	content: "";
	position: absolute;
	background: var(--fos-accent-600);
	border-radius: 2px;
	transition: transform var(--fos-speed) var(--fos-ease), opacity var(--fos-speed) var(--fos-ease);
}

.fos-faq__sign::before { top: 8px; left: 0; width: 18px; height: 2px; }
.fos-faq__sign::after  { top: 0; left: 8px; width: 2px; height: 18px; }

.fos-faq__btn[aria-expanded="true"] .fos-faq__sign::after { transform: scaleY(0); opacity: 0; }

.fos-faq__a { padding: var(--fos-s4) var(--fos-s5) var(--fos-s5); border-top: 1px solid var(--fos-border); }
.fos-faq__a[hidden] { display: none; }
.fos-faq__a > *:last-child { margin-bottom: 0; }
.fos-faq__a p { font-size: var(--fos-fs-small); color: var(--fos-text); }

/* No-JS safety: everything visible if JavaScript fails */
.no-js .fos-faq__a[hidden] { display: block; }
.no-js .fos-toc__panel[hidden] { display: block; }

/* =========================================================================
   14. SIDEBAR
   ========================================================================= */

.sidebar .widget,
.widget-area .widget {
	background: var(--fos-white);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
	padding: var(--fos-s5);
	margin-bottom: var(--fos-s5);
}

.sidebar .widget:last-child { margin-bottom: 0; }

.sidebar .widget-title,
.widget-area .widget-title {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--fos-primary);
	margin: 0 0 var(--fos-s4);
	padding-bottom: var(--fos-s3);
	border-bottom: 1px solid var(--fos-border);
	position: relative;
}

.sidebar .widget-title::after,
.widget-area .widget-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 48px; height: var(--fos-rule);
	background: var(--fos-accent);
	border-radius: 2px;
}

.sidebar .widget ul, .widget-area .widget ul { list-style: none; margin: 0; padding: 0; }

.sidebar .widget li, .widget-area .widget li {
	padding: 9px 0;
	border-bottom: 1px solid var(--fos-border);
	font-size: var(--fos-fs-small);
	display: flex;
	justify-content: space-between;
	gap: var(--fos-s2);
	align-items: baseline;
}

.sidebar .widget li:last-child, .widget-area .widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar .widget li a { color: var(--fos-text); font-weight: 600; }
.sidebar .widget li a:hover { color: var(--fos-accent-600); }

/* Sticky sidebar */
@media (min-width: 1025px) {
	.inside-right-sidebar { position: sticky; top: 24px; }
	body.fos-sticky-nav .inside-right-sidebar { top: 84px; }
}

/* --- Search form --- */

.search-form, .wp-block-search__inside-wrapper { display: flex; gap: var(--fos-s2); }

.search-form input[type="search"],
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="search"], input[type="number"], textarea, select {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	font-family: inherit;
	color: var(--fos-text);
	background: var(--fos-white);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius-sm);
	box-sizing: border-box;
	transition: border-color var(--fos-speed) var(--fos-ease), box-shadow var(--fos-speed) var(--fos-ease);
}

input:focus, textarea:focus, select:focus {
	border-color: var(--fos-accent);
	box-shadow: 0 0 0 3px rgba(245, 165, 36, .18);
	outline: none;
}

textarea { min-height: 150px; resize: vertical; }

/* --- About box widget --- */

.fos-aboutbox { text-align: center; }
.fos-aboutbox img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto var(--fos-s3); object-fit: cover; }
.fos-aboutbox p { font-size: var(--fos-fs-small); color: var(--fos-muted); margin-bottom: var(--fos-s4); }

/* --- Recent / popular post list --- */

.fos-minilist { display: flex; flex-direction: column; gap: var(--fos-s4); }

.fos-minilist__item {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: var(--fos-s3);
	align-items: center;
}

.fos-minilist__item img { width: 74px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--fos-radius-sm); }
.fos-minilist__title { font-size: 14px; font-weight: 700; line-height: 1.35; margin: 0 0 4px; }
.fos-minilist__title a { color: var(--fos-primary); }
.fos-minilist__title a:hover { color: var(--fos-accent-600); }
.fos-minilist__meta { font-size: 11px; color: var(--fos-muted); }

.fos-minilist--numbered { counter-reset: fosrank; }
.fos-minilist--numbered .fos-minilist__item { grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
.fos-minilist--numbered .fos-minilist__item::before {
	counter-increment: fosrank;
	content: counter(fosrank);
	font-family: var(--fos-font-heading);
	font-size: 20px;
	font-weight: 800;
	color: var(--fos-accent);
	line-height: 1.2;
}

/* --- Write for us CTA widget --- */

.fos-sidecta {
	background: var(--fos-primary);
	border-color: var(--fos-primary);
	color: var(--fos-white);
	text-align: center;
}

.sidebar .widget.fos-sidecta .widget-title { color: var(--fos-white); border-bottom-color: rgba(255, 255, 255, .18); }
.fos-sidecta p { font-size: var(--fos-fs-small); color: rgba(255, 255, 255, .82); margin-bottom: var(--fos-s4); }
.fos-sidecta .fos-btn { width: 100%; }

/* =========================================================================
   15. FOOTER
   ========================================================================= */

.site-footer { margin-top: var(--fos-s8); }

#footer-widgets, .site-footer .footer-widgets {
	background: var(--fos-primary);
	color: rgba(255, 255, 255, .78);
	border-top: var(--fos-rule) solid var(--fos-accent);
	padding: var(--fos-s8) 0 var(--fos-s7);
}

#footer-widgets .widget-title {
	color: var(--fos-white);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: var(--fos-s4);
	padding-bottom: var(--fos-s3);
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}

#footer-widgets .widget { background: transparent; border: 0; padding: 0; margin-bottom: var(--fos-s5); }
#footer-widgets ul { list-style: none; margin: 0; padding: 0; }
#footer-widgets li { padding: 7px 0; border: 0; font-size: var(--fos-fs-small); }
#footer-widgets a { color: rgba(255, 255, 255, .78); }
#footer-widgets a:hover { color: var(--fos-accent); }
#footer-widgets p { font-size: var(--fos-fs-small); }

.fos-footer-brand img { height: 38px; width: auto; margin-bottom: var(--fos-s4); }
.fos-footer-brand p { color: rgba(255, 255, 255, .7); }
.fos-footer-mail { color: var(--fos-accent) !important; font-weight: 700; }

.fos-social { display: flex; gap: var(--fos-s2); flex-wrap: wrap; margin-top: var(--fos-s4); }

.fos-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: var(--fos-white);
	transition: background var(--fos-speed) var(--fos-ease), color var(--fos-speed) var(--fos-ease);
}

.fos-social a:hover { background: var(--fos-accent); color: var(--fos-primary); }
.fos-social svg { width: 17px; height: 17px; fill: currentColor; }

.site-info {
	background: var(--fos-primary-900);
	color: rgba(255, 255, 255, .62);
	font-size: var(--fos-fs-tiny);
	padding: var(--fos-s5) 0;
	text-align: center;
}

.site-info a { color: rgba(255, 255, 255, .8); }
.site-info a:hover { color: var(--fos-accent); }

/* --- Back to top --- */

.fos-top {
	position: fixed;
	right: 18px; bottom: 18px;
	z-index: 400;
	width: 44px; height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 50%;
	background: var(--fos-primary);
	border: 2px solid var(--fos-accent);
	color: var(--fos-white);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--fos-speed) var(--fos-ease), transform var(--fos-speed) var(--fos-ease), visibility var(--fos-speed);
}

.fos-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fos-top:hover { background: var(--fos-accent); color: var(--fos-primary); }
.fos-top svg { width: 18px; height: 18px; fill: currentColor; }

/* =========================================================================
   16. STATIC PAGES (about, privacy, terms, write for us, contact)
   ========================================================================= */

.page .entry-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page .entry-content > h2:first-child::before { display: none; }

.fos-page-intro {
	font-size: 19px;
	line-height: 1.65;
	color: var(--fos-muted);
	padding-bottom: var(--fos-s5);
	border-bottom: 1px solid var(--fos-border);
	margin-bottom: var(--fos-s6);
}

.fos-legal .entry-content { font-size: 16px; }
.fos-legal .entry-content h2 { font-size: 22px; }
.fos-legal .entry-content h3 { font-size: 18px; }

.fos-contact-card {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--fos-s4);
	margin: var(--fos-s6) 0;
}

.fos-contact-card__item {
	padding: var(--fos-s5);
	background: var(--fos-surface);
	border: 1px solid var(--fos-border);
	border-left: var(--fos-rule) solid var(--fos-accent);
	border-radius: 0 var(--fos-radius-sm) var(--fos-radius-sm) 0;
}

.fos-contact-card__item strong { display: block; color: var(--fos-primary); margin-bottom: 4px; }
.fos-contact-card__item a { font-weight: 700; }

.fos-notice {
	padding: var(--fos-s4) var(--fos-s5);
	background: var(--fos-accent-soft);
	border-left: var(--fos-rule) solid var(--fos-accent);
	border-radius: 0 var(--fos-radius-sm) var(--fos-radius-sm) 0;
	font-size: var(--fos-fs-small);
	margin: var(--fos-s5) 0;
}

/* --- Forms (works with Fluent Forms, WPForms, Contact Form 7) --- */

.fos-form-wrap {
	padding: var(--fos-s6);
	background: var(--fos-surface);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
	margin: var(--fos-s6) 0;
}

.fos-form-wrap label,
.wpforms-field-label, .ff-el-input--label label, .wpcf7 label {
	display: block;
	font-size: var(--fos-fs-small);
	font-weight: 700;
	color: var(--fos-primary);
	margin-bottom: 6px;
}

.ff-el-group, .wpforms-field, .wpcf7 p { margin-bottom: var(--fos-s4); }

.ff-el-form-check label, .wpforms-field-checkbox label {
	font-weight: 500;
	font-size: var(--fos-fs-small);
	color: var(--fos-muted);
	display: inline;
}

.ff-btn-submit, .wpforms-submit, .wpcf7-submit {
	background: var(--fos-accent) !important;
	border-color: var(--fos-accent) !important;
	color: var(--fos-primary) !important;
	font-weight: 700 !important;
	border-radius: var(--fos-radius-sm) !important;
	padding: 13px 26px !important;
}

.ff-btn-submit:hover, .wpforms-submit:hover, .wpcf7-submit:hover {
	background: var(--fos-accent-600) !important;
	border-color: var(--fos-accent-600) !important;
}

.ff-message-success, .wpforms-confirmation-container-full, .wpcf7 form.sent .wpcf7-response-output {
	background: #E8F6EF !important;
	border: 1px solid #B7E3CE !important;
	border-left: var(--fos-rule) solid #17966A !important;
	color: #10603F !important;
	border-radius: 0 var(--fos-radius-sm) var(--fos-radius-sm) 0 !important;
	padding: var(--fos-s4) var(--fos-s5) !important;
}

.ff-el-is-error .text-danger, .wpforms-error, .wpcf7-not-valid-tip { color: #C2321F !important; font-size: var(--fos-fs-tiny) !important; }

/* =========================================================================
   17. 404 + EMPTY SEARCH
   ========================================================================= */

.fos-empty, .error404 .inside-article, .search-no-results .no-results {
	text-align: center;
	padding: var(--fos-s8) var(--fos-s5);
	background: var(--fos-surface);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
}

.fos-empty__code {
	font-family: var(--fos-font-heading);
	font-size: clamp(64px, 12vw, 120px);
	font-weight: 800;
	line-height: 1;
	color: var(--fos-primary);
	letter-spacing: -0.04em;
	margin-bottom: var(--fos-s3);
}

.fos-empty__code span { color: var(--fos-accent); }
.fos-empty h1, .fos-empty h2 { margin-bottom: var(--fos-s3); }
.fos-empty p { color: var(--fos-muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.fos-empty .search-form { max-width: 460px; margin: var(--fos-s5) auto; }
.fos-empty__links { display: flex; gap: var(--fos-s3); flex-wrap: wrap; justify-content: center; margin-top: var(--fos-s5); }

.search-no-results .site-main { display: block; }

/* =========================================================================
   18. RESPONSIVE
   ========================================================================= */

/* Tablet */
@media (max-width: 1024px) {
	:root { --fos-gutter: 18px; }

	.fos-hero { grid-template-columns: 1fr; }
	.fos-hero__lead { min-height: 340px; }
	.fos-hero__side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fos-catstrip { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
	.fos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fos-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fos-catblock__inner { grid-template-columns: 1fr; }
	.fos-cta { grid-template-columns: 1fr; text-align: center; }
	.fos-cta__actions { justify-content: center; }
	.single .inside-article, .page .inside-article { padding: var(--fos-s5); }
	.inside-right-sidebar { position: static; }
}

/* Mobile */
@media (max-width: 767px) {
	:root {
		--fos-fs-base: 16px;
		--fos-gutter: 16px;
		--fos-logo-h: var(--fos-logo-h-mobile);
	}

	body { line-height: 1.68; }

	.site-header .inside-header {
		flex-direction: row;
		justify-content: space-between;
		padding-top: var(--fos-s3);
		padding-bottom: var(--fos-s3);
	}

	.blog .site-main,
	.archive .site-main,
	.search-results .site-main { grid-template-columns: 1fr; gap: var(--fos-s4); }

	.fos-grid, .fos-grid--2, .fos-grid--4 { grid-template-columns: 1fr; gap: var(--fos-s4); }

	.fos-hero { margin-top: var(--fos-s5); gap: var(--fos-s4); }
	.fos-hero__lead { min-height: 260px; }
	.fos-hero__lead-body { padding: var(--fos-s4); }
	.fos-hero__side { grid-template-columns: 1fr; }
	.fos-hero__item { grid-template-columns: 88px minmax(0, 1fr); }
	.fos-hero__item img { width: 88px; }

	.fos-catstrip { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }

	.fos-catblock__row { grid-template-columns: 92px minmax(0, 1fr); gap: var(--fos-s3); }
	.fos-catblock__row img { width: 92px; }

	.fos-home > section { margin-bottom: var(--fos-s7); }

	.single .inside-article, .page .inside-article { padding: var(--fos-s4); border-left: 0; border-right: 0; border-radius: 0; }

	.fos-authorbox { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.fos-authorbox__links { justify-content: center; }

	.fos-postnav { grid-template-columns: 1fr; }
	.fos-postnav__item--next { text-align: left; }

	.fos-related-read { flex-direction: column; align-items: flex-start; gap: 6px; }

	.fos-share { gap: 6px; }
	.fos-share__btn { padding: 0 11px; }

	.page-header { padding: var(--fos-s4); }

	.fos-cta { padding: var(--fos-s5) var(--fos-s4); }

	.entry-content table { font-size: 14px; }
	.entry-content table th, .entry-content table td { padding: 9px 10px; }

	.fos-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}

/* =========================================================================
   19. ACCESSIBILITY + PRINT
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.fos-card:hover { transform: none; }
	.fos-card:hover .fos-card__media img { transform: none; }
}

@media print {
	.site-header, .main-navigation, .sidebar, .site-footer,
	.fos-share, .fos-related, .fos-postnav, .fos-top, .fos-ad, .fos-toc { display: none !important; }
	.single .inside-article { border: 0; padding: 0; }
	body { font-size: 12pt; color: #000; }
	a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* =========================================================================
   20. v1.0.1 FIXES
   ========================================================================= */

/* Footer widgets: GeneratePress outputs #footer-widgets, not .footer-widgets */
#footer-widgets {
	background: var(--fos-primary);
	color: rgba(255, 255, 255, .78);
	border-top: var(--fos-rule) solid var(--fos-accent);
	padding: var(--fos-s8) 0 var(--fos-s7);
}

#footer-widgets .widget { background: transparent; border: 0; padding: 0; margin: 0 0 var(--fos-s5); }
#footer-widgets .widget-title {
	color: var(--fos-white);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin: 0 0 var(--fos-s4);
	padding-bottom: var(--fos-s3);
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}
#footer-widgets .widget-title::after { display: none; }
#footer-widgets ul { list-style: none; margin: 0; padding: 0; }
#footer-widgets li { display: block; margin: 0; padding: 7px 0; border: 0; font-size: var(--fos-fs-small); line-height: 1.5; }
#footer-widgets p { font-size: var(--fos-fs-small); line-height: 1.6; color: rgba(255, 255, 255, .78); margin: 0 0 var(--fos-s3); }
#footer-widgets a { color: rgba(255, 255, 255, .78); }
#footer-widgets a:hover { color: var(--fos-accent); }
#footer-widgets .fos-footer-brand img { height: 38px; width: auto; margin-bottom: var(--fos-s4); }
#footer-widgets .fos-footer-mail { color: var(--fos-accent); font-weight: 700; }

/* Meta lines: keep the date, dot and reading time properly spaced */
.fos-card__meta,
.fos-hero__item-meta,
.fos-hero__lead-meta,
.fos-minilist__meta,
.fos-catblock__row-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--fos-s2);
}

.fos-dot {
	width: 3px; height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: .5;
	display: inline-block;
	flex: 0 0 auto;
}

/* Component links inside the article body should not inherit the underline style */
.entry-content .fos-related a,
.entry-content .fos-authorbox a,
.entry-content .fos-postnav a,
.entry-content .fos-share a,
.entry-content .fos-card__title a { text-decoration: none; }

.entry-content .fos-card__title a,
.entry-content .fos-postnav__title { color: var(--fos-primary); font-weight: 800; }
.entry-content .fos-card__title a:hover { color: var(--fos-accent-600); }
.entry-content .fos-authorbox a { color: var(--fos-primary); font-weight: 700; }
.entry-content .fos-share__btn { color: var(--fos-primary); }

/* Ad slots are styled in section 22 */

/* Back to top button sits in the bottom right corner */
.fos-top { right: 18px; bottom: 18px; }

@media (max-width: 767px) {
	.fos-top { right: 12px; bottom: 12px; }
}

/* =========================================================================
   21. v1.0.2 FOOTER REFINEMENTS
   ========================================================================= */

/* Tighter, better balanced footer. Removes the large dead space at the bottom. */
#footer-widgets {
	padding-top: var(--fos-s7);
	padding-bottom: var(--fos-s6);
}

#footer-widgets .inside-footer-widgets {
	align-items: start;
}

#footer-widgets .widget:last-child { margin-bottom: 0; }

#footer-widgets li { padding: 5px 0; }
#footer-widgets p { margin-bottom: var(--fos-s3); line-height: 1.55; }
#footer-widgets p:last-child { margin-bottom: 0; }

/* Brand column reads better slightly narrower */
#footer-widgets .fos-footer-brand p { max-width: 38ch; }
#footer-widgets .fos-footer-brand img { margin-bottom: var(--fos-s3); }

/* Social icons line up with the other columns */
#footer-widgets .fos-social { margin-top: 0; }

/* Footer bar: a little more breathing room around the copyright line */
.site-info { padding: var(--fos-s4) 0; }
.site-info p { margin: 0; }

@media (max-width: 767px) {
	#footer-widgets { padding-top: var(--fos-s6); padding-bottom: var(--fos-s5); }
	#footer-widgets .widget { margin-bottom: var(--fos-s5); }
	#footer-widgets .fos-social { justify-content: flex-start; }
}

/* =========================================================================
   22. ADVERTISING SLOTS
   ========================================================================= */

.fos-ad {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--fos-surface);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
	padding: var(--fos-s5);
	overflow: hidden;
}

.fos-ad__tag {
	position: absolute;
	top: 8px; left: 12px;
	font-family: var(--fos-font-label);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fos-muted);
	opacity: .7;
	pointer-events: none;
}

.fos-ad--leaderboard,
.fos-ad--homepage_mid { min-height: 130px; margin: var(--fos-s6) 0; }
.fos-ad--incontent    { min-height: 150px; margin: var(--fos-s6) 0; }
.fos-ad--sidebar      { min-height: 150px; padding: var(--fos-s4); }
.fos-ad--footer       { min-height: 120px; }

/* --- "Advertise here" panel shown while a slot is unsold --- */

.fos-ad__promo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: var(--fos-s4) var(--fos-s5);
	text-align: center;
	text-decoration: none;
	border: 1px dashed var(--fos-accent);
	border-radius: var(--fos-radius-sm);
	background: var(--fos-accent-soft);
	transition: background var(--fos-speed) var(--fos-ease), border-color var(--fos-speed) var(--fos-ease);
}

.fos-ad__promo:hover { background: #FDEAC4; border-color: var(--fos-accent-600); }

.fos-ad__label {
	font-family: var(--fos-font-label);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fos-accent-600);
}

.fos-ad__heading {
	font-family: var(--fos-font-heading);
	font-size: 17px;
	font-weight: 800;
	color: var(--fos-primary);
	line-height: 1.3;
}

.fos-ad__body {
	font-size: var(--fos-fs-small);
	color: var(--fos-muted);
	line-height: 1.5;
	max-width: 52ch;
}

.fos-ad__cta {
	display: inline-block;
	margin-top: 4px;
	padding: 8px 18px;
	border-radius: var(--fos-radius-pill);
	background: var(--fos-primary);
	color: var(--fos-white);
	font-size: var(--fos-fs-tiny);
	font-weight: 700;
	line-height: 1.2;
}

.fos-ad__promo:hover .fos-ad__cta { background: var(--fos-accent-600); color: var(--fos-primary); }

.fos-ad__size {
	font-size: 11px;
	color: var(--fos-muted);
	opacity: .8;
	letter-spacing: .04em;
}

/* Sidebar version is narrow, so it needs to be more compact */
.fos-ad--sidebar .fos-ad__promo { padding: var(--fos-s4) var(--fos-s3); }
.fos-ad--sidebar .fos-ad__heading { font-size: 15px; }
.fos-ad--sidebar .fos-ad__body { font-size: var(--fos-fs-tiny); }

/* The ad inside an article should not inherit article link styling */
.entry-content .fos-ad__promo,
.entry-content .fos-ad__promo:hover { text-decoration: none; color: inherit; }
.entry-content .fos-ad { clear: both; }

@media (max-width: 767px) {
	.fos-ad { padding: var(--fos-s3); }
	.fos-ad--leaderboard,
	.fos-ad--homepage_mid,
	.fos-ad--incontent { min-height: 0; margin: var(--fos-s5) 0; }
	.fos-ad__heading { font-size: 15px; }
	.fos-ad__body { font-size: var(--fos-fs-tiny); }
}

/* =========================================================================
   23. v1.0.4 CARD MEDIA FIX
   ========================================================================= */

/* The category badge is now a sibling of the image link, not nested inside it.
   Nested anchors are invalid HTML and browsers used to eject the badge out of
   the card, which parked it in the top left corner of the page. */
.fos-card__media { display: block; position: relative; }
.fos-card__link { display: block; line-height: 0; }
.fos-card__link img { width: 100%; }

/* Safety net: a floating badge can never escape its card again */
.fos-badge--float { position: absolute; z-index: 2; }
body > .fos-badge--float,
.site > .fos-badge--float { display: none !important; }
