/*
Theme Name: FanWire News
Theme URI: https://wordpress.org/themes/
Author: FanWire
Description: A fast, fully customizable football news & headline-aggregator theme. Red masthead, scrollable category menu, Breaking News / Most Popular carousel, time-grouped headline lists with source names and flags, boxed pagination, dark footer, ad slots everywhere, built-in RSS headline importer, squad & player profiles, and one-click setup. Every section is editable from Appearance > Customize.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fanwire
Tags: news, blog, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens (overridden by Customizer output in <head>)
   ========================================================================== */
:root {
	--fw-primary: #a50e1d;
	--fw-primary-dark: color-mix(in srgb, var(--fw-primary) 78%, #000);
	--fw-header-text: #ffffff;
	--fw-nav-bg: #ffffff;
	--fw-nav-text: #333333;
	--fw-nav-active: #a50e1d;
	--fw-body-bg: #ffffff;
	--fw-text: #1a1a1a;
	--fw-headline: #111111;
	--fw-source: #7a7a7a;
	--fw-group: #444444;
	--fw-pag: #7b7b7b;
	--fw-footer-bg: #333333;
	--fw-footer-text: #ffffff;
	--fw-border: #e3e3e3;
	--fw-soft: #f4f4f4;
	--fw-font-logo: "Roboto Slab", Georgia, serif;
	--fw-font-heading: "Roboto", Arial, sans-serif;
	--fw-font-body: "Roboto", Arial, sans-serif;
	--fw-base: 16px;
	--fw-logo-size: 46px;
	--fw-logo-img: 70px;
	--fw-hl-size: 15px;
	--fw-header-pad: 20px;
	--fw-container: 1200px;
	--fw-sidebar: 360px;
	--fw-sticky-top: 0px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--fw-body-bg);
	color: var(--fw-text);
	font-family: var(--fw-font-body);
	font-size: var(--fw-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fw-primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--fw-font-heading); color: var(--fw-headline); line-height: 1.25; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 8px; top: 8px; z-index: 100000; padding: 12px 18px;
	background: #fff; color: var(--fw-primary); font-weight: 700;
}

.fw-container { max-width: var(--fw-container); margin: 0 auto; padding: 0 20px; }
.fw-icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* ==========================================================================
   3. Top bar
   ========================================================================== */
.fw-topbar { background: #1c1c1c; color: #d9d9d9; font-size: 13px; }
.fw-topbar .fw-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.fw-topbar__left { display: flex; gap: 16px; align-items: center; }
.fw-topbar a { color: #d9d9d9; }
.fw-topbar a:hover { color: #fff; }
.fw-topbar-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   4. Masthead (red header) + sticky behaviour
   ========================================================================== */
.fw-masthead { position: relative; z-index: 100; }
.fw-sticky-header, .fw-sticky-nav, .fw-sticky-none { display: contents; }
.fw-sticky-both { position: sticky; top: var(--fw-sticky-top); }
.fw-sticky-header .fw-header,
.fw-sticky-nav .fw-nav { position: sticky; top: var(--fw-sticky-top); z-index: 100; }
body.admin-bar { --fw-sticky-top: 32px; }
@media (max-width: 782px) { body.admin-bar { --fw-sticky-top: 46px; } }
@media (max-width: 600px) { body.admin-bar { --fw-sticky-top: 0px; } }

.fw-header { background: var(--fw-primary); color: var(--fw-header-text); }
.fw-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding-top: var(--fw-header-pad); padding-bottom: var(--fw-header-pad);
	transition: padding .2s ease;
}
.fw-branding { min-width: 0; }
.fw-logo {
	margin: 0; font-family: var(--fw-font-logo); font-weight: 700;
	font-size: var(--fw-logo-size); line-height: 1.1; letter-spacing: -.005em;
	transition: font-size .2s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fw-logo a, .fw-logo a:hover { color: var(--fw-header-text); }
.fw-branding .custom-logo-link { display: inline-block; line-height: 0; }
.fw-branding .custom-logo { max-height: var(--fw-logo-img); width: auto; transition: max-height .2s ease; }
.fw-tagline { margin: 4px 0 0; font-size: 14px; opacity: .85; }
.fw-header.is-shrunk .fw-header__inner { padding-top: 8px; padding-bottom: 8px; }
.fw-header.is-shrunk .fw-logo { font-size: calc(var(--fw-logo-size) * .74); }
.fw-header.is-shrunk .custom-logo { max-height: calc(var(--fw-logo-img) * .6); }
.fw-header.is-shrunk .fw-tagline { display: none; }

.fw-header__tools { display: flex; align-items: center; gap: 6px; }
.fw-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--fw-header-text); cursor: pointer;
}
.fw-icon-btn:hover { background: rgba(255, 255, 255, .14); color: var(--fw-header-text); }
.fw-header .fw-social a { background: rgba(255, 255, 255, .12); }

.fw-search-panel { background: var(--fw-primary-dark); padding: 14px 0; }
.fw-search-panel[hidden] { display: none; }

/* ==========================================================================
   5. Primary navigation (horizontal, scrollable like the reference)
   ========================================================================== */
.fw-nav { background: var(--fw-nav-bg); border-bottom: 1px solid var(--fw-border); }
.fw-nav__wrap { display: flex; align-items: center; gap: 14px; }
.fw-nav__scroller { position: relative; flex: 1 1 auto; min-width: 0; }
.fw-nav__social { flex: 0 0 auto; }
.fw-nav__social .fw-social { flex-wrap: nowrap; gap: 6px; }
.fw-nav__social .fw-social a { width: 30px; height: 30px; }
.fw-nav__social .fw-icon { width: 15px; height: 15px; }
.fw-social-hint { font-size: 12px; color: var(--fw-source); white-space: nowrap; }
.fw-social-block .fw-social { justify-content: var(--fw-social-align, flex-start); margin: 10px 0; }
@media (max-width: 767px) {
	.fw-nav__wrap { flex-wrap: wrap; gap: 0; }
	.fw-nav__scroller { flex-basis: 100%; }
	.fw-nav__social { flex-basis: 100%; display: flex; justify-content: center; padding: 7px 0; border-top: 1px solid var(--fw-border); }
	.fw-nav__social:empty { display: none; }
}
.fw-menu {
	display: flex; list-style: none; margin: 0; padding: 0;
	overflow-x: auto; overflow-y: hidden; white-space: nowrap;
	scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.fw-menu::-webkit-scrollbar { display: none; }
.fw-menu > li { flex: 0 0 auto; }
.fw-menu a {
	display: block; padding: 0 22px; line-height: 50px;
	font-family: var(--fw-font-heading); font-size: 15px; font-weight: 500;
	color: var(--fw-nav-text);
}
.fw-menu > li:first-child > a { padding-left: 20px; }
.fw-menu a:hover,
.fw-menu .current-menu-item > a,
.fw-menu .current-menu-parent > a,
.fw-menu .current-menu-ancestor > a,
.fw-menu .current-post-ancestor > a,
.fw-menu .current-category-ancestor > a,
.fw-menu .current_page_item > a { color: var(--fw-nav-active); }
.fw-menu .sub-menu { display: none; }
.fw-nav__arrow {
	position: absolute; top: 0; bottom: 0; z-index: 2; width: 44px;
	display: none; align-items: center; border: 0; padding: 0 6px; cursor: pointer;
	color: var(--fw-nav-active); font-size: 26px; line-height: 1;
}
.fw-nav__arrow--prev { left: 0; justify-content: flex-start; background: linear-gradient(90deg, var(--fw-nav-bg) 55%, transparent); }
.fw-nav__arrow--next { right: 0; justify-content: flex-end; background: linear-gradient(270deg, var(--fw-nav-bg) 55%, transparent); }
.fw-nav.can-prev .fw-nav__arrow--prev,
.fw-nav.can-next .fw-nav__arrow--next { display: flex; }

/* ==========================================================================
   6. Advertising slots
   ========================================================================== */
.fw-ad { margin: 20px auto; text-align: center; overflow: hidden; max-width: 100%; }
.fw-ad > * { margin-left: auto; margin-right: auto; }
.fw-ad__label {
	display: block; margin-bottom: 4px; font-size: 10px; line-height: 1.2;
	letter-spacing: .1em; text-transform: uppercase; color: #9a9a9a;
}
.fw-ad--header { margin: 20px auto 26px; }
.fw-ad--sidebar_top { margin-top: 0; }
.fw-hl-ad { list-style: none; padding: 8px 0; }
.fw-ad-placeholder {
	display: flex; align-items: center; justify-content: center; min-height: 90px; padding: 12px;
	border: 2px dashed #c4c4c4; color: #7d7d7d; font-size: 13px; font-weight: 500;
	background: repeating-linear-gradient(45deg, #fafafa, #fafafa 10px, #f1f1f1 10px, #f1f1f1 20px);
}
.fw-ad--sidebar_top .fw-ad-placeholder, .fw-ad--sidebar_bottom .fw-ad-placeholder { min-height: 250px; }
@media (max-width: 767px) { .fw-ad--desktop { display: none !important; } }
@media (min-width: 768px) { .fw-ad--mobile { display: none !important; } }

.fw-sticky-ad {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
	display: flex; justify-content: center; padding: 6px 12px;
	background: rgba(255, 255, 255, .97); box-shadow: 0 -2px 12px rgba(0, 0, 0, .18);
}
.fw-sticky-ad .fw-ad { margin: 0; }
.fw-sticky-ad__close {
	position: absolute; top: -28px; right: 14px; width: 30px; height: 28px; padding: 0;
	display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
	background: #fff; color: #333; border-radius: 6px 6px 0 0; box-shadow: 0 -3px 8px rgba(0, 0, 0, .12);
}
.fw-sticky-ad__close .fw-icon { width: 16px; height: 16px; }
body.has-sticky-ad { padding-bottom: 104px; }
@media (max-width: 767px) { body.has-sticky-ad { padding-bottom: 66px; } }

/* ==========================================================================
   7. Layout
   ========================================================================== */
.fw-main { padding: 6px 0 44px; }
.fw-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--fw-sidebar); gap: 28px; align-items: start; }
.fw-layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 991px) { .fw-layout { grid-template-columns: minmax(0, 1fr); } }
.fw-primary { min-width: 0; }

.fw-sidebar { min-width: 0; align-self: stretch; }
.fw-sidebar .widget { margin-bottom: 28px; }
.fw-sidebar__sticky { position: sticky; top: calc(var(--fw-sticky-top) + 80px); }
@media (max-width: 991px) { .fw-sidebar__sticky { position: static; } }

/* ==========================================================================
   8. Breaking News / Most Popular tabs + carousel
   ========================================================================== */
.fw-carousel-block { margin-top: 30px; }
.fw-tabs { display: flex; align-items: center; flex-wrap: wrap; border-bottom: 2px solid #d4d4d4; padding: 0 0 12px; margin: 0 0 14px; }
.fw-tab {
	background: none; border: 0; margin: 0; padding: 0 16px 0 20px; cursor: pointer;
	font-family: var(--fw-font-heading); font-size: 20px; font-weight: 500; line-height: 1.2; color: var(--fw-headline);
}
.fw-tab + .fw-tab { border-left: 2px solid #555; padding-left: 16px; }
.fw-tab[aria-selected="true"] { color: var(--fw-primary); }
.fw-tab:hover { color: var(--fw-primary); }
.fw-panel[hidden] { display: none; }

.fw-carousel { position: relative; }
.fw-carousel__track {
	display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
	-webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.fw-carousel__track::-webkit-scrollbar { display: none; }
.fw-card { flex: 0 0 calc(50% - 7px); display: flex; gap: 12px; min-width: 0; scroll-snap-align: start; }
.fw-card__img { flex: 0 0 175px; height: 130px; overflow: hidden; background: #d9d9d9; display: block; }
.fw-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.fw-card:hover .fw-card__img img { transform: scale(1.04); }
.fw-card__ph {
	display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 10px; text-align: center;
	background: linear-gradient(135deg, var(--fw-primary), var(--fw-primary-dark));
	color: #fff; font-family: var(--fw-font-logo); font-weight: 700; font-size: 18px; line-height: 1.1;
}
.fw-card__title {
	margin: 0; font-family: var(--fw-font-heading); font-size: 15.5px; font-weight: 700; line-height: 1.27; letter-spacing: .045em;
	display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.fw-card__title a { color: var(--fw-headline); }
.fw-card__title a:hover { color: var(--fw-primary); }
.fw-card__meta { display: block; margin-top: 6px; font-size: 12px; color: var(--fw-source); font-weight: 500; letter-spacing: 0; }
.fw-carousel-block.is-upper .fw-card__title { text-transform: uppercase; }

.fw-scrollbar { display: flex; align-items: center; gap: 2px; height: 18px; margin-top: 12px; padding: 0 3px; background: #e2e2e2; }
.fw-scrollbar__btn { position: relative; width: 16px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; flex: 0 0 auto; }
.fw-scrollbar__btn::before {
	content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.fw-scrollbar__btn--prev::before { border-right: 9px solid var(--fw-primary); }
.fw-scrollbar__btn--next::before { border-left: 9px solid var(--fw-primary); }
.fw-scrollbar__rail { position: relative; flex: 1; height: 100%; cursor: pointer; }
.fw-scrollbar__thumb {
	position: absolute; top: 4px; bottom: 4px; left: 0; width: 30%; min-width: 30px;
	background: var(--fw-primary); border-radius: 6px; cursor: grab; touch-action: none;
}
.fw-scrollbar__thumb.is-dragging { cursor: grabbing; }
@media (max-width: 640px) {
	.fw-card { flex-basis: 88%; }
	.fw-card__img { flex-basis: 130px; height: 100px; }
	.fw-card__title { font-size: 14px; -webkit-line-clamp: 4; }
	.fw-tab { font-size: 17px; }
}

/* ==========================================================================
   9. Section titles ("LATEST BLOG POSTS" boxed label on a red rule)
   ========================================================================== */
.fw-section { margin-top: 32px; }
.fw-section-title { position: relative; margin: 0 0 16px; text-align: center; line-height: 1; }
.fw-section-title::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--fw-primary); }
.fw-section-title span {
	position: relative; display: inline-block; max-width: 90%; padding: 9px 16px;
	background: var(--fw-primary); color: #fff;
	font-family: var(--fw-font-heading); font-size: 18px; font-weight: 700; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .01em;
}
.fw-section-title span:empty,
.fw-section-title:has(> span:empty),
.widget-title:empty { display: none; }
.fw-section__more { margin: 14px 0 0; text-align: right; font-size: 14px; font-weight: 700; }
.fw-section__more a { color: var(--fw-primary); }
.fw-section__more a:hover { text-decoration: underline; }

/* ==========================================================================
   9b. YouTube latest video + Subscribe
   ========================================================================== */
.fw-yt__box {
	display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: center;
	padding: 16px; background: #181818; color: #fff;
}
.fw-yt__player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.fw-yt__thumb { position: absolute; inset: 0; display: block; }
.fw-yt__player img, .fw-yt__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.fw-yt__play {
	position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
	display: flex; align-items: center; justify-content: center; background: #ff0000; border-radius: 14px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transition: transform .15s ease, background .15s ease;
}
.fw-yt__play::before { content: ""; margin-left: 5px; border-left: 19px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.fw-yt__thumb:hover .fw-yt__play, .fw-yt__thumb:focus-visible .fw-yt__play { background: #cc0000; transform: translate(-50%, -50%) scale(1.07); }
.fw-yt__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff4e45; }
.fw-yt__label .fw-icon { width: 18px; height: 18px; }
.fw-yt__title { margin: 8px 0; font-size: 19px; line-height: 1.3; color: #fff; }
.fw-yt__title a { color: #fff; }
.fw-yt__title a:hover { color: #ff4e45; }
.fw-yt__text { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #c9c9c9; }
.fw-yt__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fw-yt__subscribe, .fw-yt__watch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 700; border-radius: 3px; }
.fw-yt__subscribe { background: #ff0000; color: #fff; }
.fw-yt__subscribe:hover { background: #cc0000; color: #fff; }
.fw-yt__subscribe .fw-icon { width: 18px; height: 18px; }
.fw-yt__watch { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.fw-yt__watch:hover { background: #fff; color: #111; }
.fw-yt--compact .fw-yt__box { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
.fw-yt--compact .fw-yt__title { font-size: 16px; }
.fw-sidebar .fw-yt { margin: 0 0 28px; }
@media (max-width: 640px) { .fw-yt__box { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; } }

/* Pages built with Elementor run full width. */
.fw-main--builder { padding: 0; }

/* ==========================================================================
   10. Headline lists (flag + bold headline + grey source)
   ========================================================================== */
.fw-group { margin: 16px 0 10px; font-family: var(--fw-font-heading); font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--fw-group); }
.fw-headlines { list-style: none; margin: 0; padding: 0; }
.fw-hl {
	display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 11px;
	padding: 4px 0 5px; font-family: var(--fw-font-heading); font-size: var(--fw-hl-size); line-height: 1.35;
}
.fw-hl__flag { padding-top: 2px; }
.fw-hl__title { font-weight: 700; color: var(--fw-headline); }
.fw-hl__title:hover { color: var(--fw-primary); text-decoration: underline; }
.fw-hl__title:visited { color: #555; }
.fw-hl__source { display: inline-block; margin-left: 5px; color: var(--fw-source); font-weight: 500; white-space: nowrap; }
.fw-hl__time { display: inline-block; margin-left: 6px; color: #9a9a9a; font-size: .85em; font-weight: 400; }

/* Flags */
.fw-flag {
	display: block; width: 20px; height: 14px; background-color: #ddd;
	background-size: 100% 100%; background-repeat: no-repeat;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 1px 1px 2px rgba(0, 0, 0, .45);
}
.fw-flag--gb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30 15h30v15zv15h-30zh-30v-15zv-15h30z'/%3E%3C/clipPath%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E"); }
.fw-flag--eng { background: linear-gradient(#ce1124, #ce1124) center / 100% 22% no-repeat, linear-gradient(#ce1124, #ce1124) center / 16% 100% no-repeat, #fff; }
.fw-flag--sco { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Cpath fill='%230065BD' d='M0 0h5v3H0z'/%3E%3Cpath stroke='%23fff' stroke-width='.6' d='M0 0l5 3M0 3l5-3'/%3E%3C/svg%3E"); }
.fw-flag--ie { background: linear-gradient(90deg, #169b62 33.3%, #fff 33.3% 66.6%, #ff883e 66.6%); }
.fw-flag--fr { background: linear-gradient(90deg, #002395 33.3%, #fff 33.3% 66.6%, #ed2939 66.6%); }
.fw-flag--it { background: linear-gradient(90deg, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); }
.fw-flag--be { background: linear-gradient(90deg, #000 33.3%, #fdda24 33.3% 66.6%, #ef3340 66.6%); }
.fw-flag--ng { background: linear-gradient(90deg, #008751 33.3%, #fff 33.3% 66.6%, #008751 66.6%); }
.fw-flag--de { background: linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.fw-flag--nl { background: linear-gradient(#ae1c28 33.3%, #fff 33.3% 66.6%, #21468b 66.6%); }
.fw-flag--es { background: linear-gradient(#aa151b 25%, #f1bf00 25% 75%, #aa151b 75%); }

/* ==========================================================================
   11. Pagination ("PAGES  <  1  2  3  4  >" on a rule)
   ========================================================================== */
.fw-pagination { position: relative; display: flex; justify-content: center; margin: 30px 0 8px; }
.fw-pagination::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #555; }
.fw-pagination ul { position: relative; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fw-pagination li > a,
.fw-pagination li > span {
	display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 6px;
	font-family: var(--fw-font-heading); font-size: 13px; font-weight: 700; line-height: 1;
	background: #fff; color: var(--fw-pag); border: 1px solid var(--fw-pag);
}
.fw-pagination .fw-pag-label { min-width: 82px; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; background: var(--fw-pag); color: #fff; }
.fw-pagination .fw-pag-arrow,
.fw-pagination .current { background: var(--fw-pag); color: #fff; }
.fw-pagination .fw-pag-arrow { font-size: 15px; }
.fw-pagination .is-disabled { opacity: .45; }
.fw-pagination a:hover { background: var(--fw-primary); border-color: var(--fw-primary); color: #fff; }
@media (max-width: 480px) {
	.fw-pagination ul { gap: 6px; }
	.fw-pagination .fw-pag-label { min-width: 60px; }
}

/* ==========================================================================
   12. Archive / search headers and card layout
   ========================================================================== */
.fw-archive-head { margin: 26px 0 10px; }
.fw-archive-head .fw-section-title { margin-bottom: 12px; }
.fw-archive-desc { max-width: 680px; margin: 0 auto 10px; text-align: center; color: #555; font-size: 15px; }
.fw-archive-desc p { margin: 0 0 .5em; }
.fw-empty { padding: 30px 0; color: #666; }

.fw-card-list .fw-post { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--fw-border); }
.fw-post__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.fw-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fw-post__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fw-primary); }
.fw-post__title { margin: 4px 0 6px; font-size: 20px; font-weight: 700; line-height: 1.25; }
.fw-post__meta { font-size: 13px; color: var(--fw-source); font-weight: 500; }
.fw-post__excerpt { margin: 8px 0 0; font-size: 15px; color: #444; }
@media (max-width: 600px) {
	.fw-card-list .fw-post { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
	.fw-post__title { font-size: 16px; }
	.fw-post__excerpt { display: none; }
}

/* ==========================================================================
   13. Single article
   ========================================================================== */
.fw-article { padding-top: 22px; }
.fw-breadcrumbs { margin: 0 0 14px; font-size: 13px; color: #777; }
.fw-breadcrumbs a { color: var(--fw-primary); }
.fw-breadcrumbs .sep { margin: 0 6px; color: #aaa; }
.fw-cat-label {
	display: inline-block; padding: 6px 9px; background: var(--fw-primary); color: #fff;
	font-family: var(--fw-font-heading); font-size: 12px; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .05em;
}
.fw-cat-label:hover { color: #fff; background: var(--fw-primary-dark); }
.fw-entry-title { margin: 12px 0 12px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.18; }
.fw-standfirst { margin: 0 0 14px; font-size: 19px; line-height: 1.5; color: #444; }
.fw-entry-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0;
	border-top: 1px solid var(--fw-border); border-bottom: 1px solid var(--fw-border);
	font-size: 14px; color: #666;
}
.fw-entry-meta img { border-radius: 50%; }
.fw-entry-meta .fw-meta-author { display: inline-flex; align-items: center; gap: 8px; }
.fw-entry-meta .fw-meta-author a { color: var(--fw-text); font-weight: 700; }
.fw-featured { margin: 20px 0; }
.fw-featured img { width: 100%; display: block; }
.fw-featured figcaption { padding: 7px 0; font-size: 13px; color: #666; border-bottom: 1px solid var(--fw-border); }

.fw-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.fw-share a, .fw-share button {
	display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 0; border-radius: 3px; cursor: pointer;
	color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.fw-share .fw-icon { width: 16px; height: 16px; }
.fw-share a:hover, .fw-share button:hover { color: #fff; filter: brightness(1.1); }
.fw-share--facebook { background: #1877f2; }
.fw-share--x { background: #000; }
.fw-share--whatsapp { background: #25d366; }
.fw-share--reddit { background: #ff4500; }
.fw-share--copy { background: #5f5f5f; }

.fw-content { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.fw-content > * { margin-top: 0; margin-bottom: 1.2em; }
.fw-content a { color: var(--fw-primary); text-decoration: underline; text-underline-offset: 2px; }
.fw-content h2 { margin: 1.6em 0 .6em; font-size: 26px; }
.fw-content h3 { margin: 1.5em 0 .5em; font-size: 22px; }
.fw-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--fw-primary); font-size: 20px; font-style: italic; color: #333; }
.fw-content figure { margin: 1.5em 0; }
.fw-content figcaption, .wp-caption-text { font-size: 13px; color: #666; padding-top: 6px; }
.fw-content ul, .fw-content ol { padding-left: 1.4em; }
.fw-content iframe, .fw-content .wp-block-embed { max-width: 100%; }
.fw-content .fw-ad { margin: 1.5em auto; }
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.fw-content::after { content: ""; display: table; clear: both; }

.fw-tags { margin: 22px 0; }
.fw-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 11px; border: 1px solid var(--fw-border); font-size: 13px; font-weight: 500; }
.fw-tags a:hover { border-color: var(--fw-primary); }
.fw-authorbox { display: flex; gap: 16px; margin: 26px 0; padding: 18px; background: var(--fw-soft); border-left: 4px solid var(--fw-primary); }
.fw-authorbox img { border-radius: 50%; flex: 0 0 auto; }
.fw-authorbox h3 { margin: 0 0 4px; font-size: 17px; }
.fw-authorbox p { margin: 0; font-size: 15px; color: #444; }
.fw-related { margin-top: 30px; }

/* Pages */
.fw-page-title { margin: 24px 0 18px; font-size: clamp(26px, 3.2vw, 36px); }

/* ==========================================================================
   14. Tables (SportsPress fixtures / league tables + content tables)
   ========================================================================== */
.fw-content table, .sp-data-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.fw-content th, .sp-data-table th { padding: 9px 8px; background: var(--fw-primary); color: #fff; text-align: left; font-weight: 700; }
.fw-content td, .sp-data-table td { padding: 9px 8px; border-bottom: 1px solid var(--fw-border); }
.fw-content tbody tr:nth-child(even), .sp-data-table tbody tr:nth-child(even) { background: #f7f7f7; }
.sp-template { margin-bottom: 30px; }
.sp-table-caption, .sp-template h4 { font-family: var(--fw-font-heading); font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.sp-table-wrapper { overflow-x: auto; }
.sp-highlight, .sp-data-table .highlighted td { background: color-mix(in srgb, var(--fw-primary) 12%, #fff) !important; font-weight: 700; }

/* ==========================================================================
   15. Squad & player profiles
   ========================================================================== */
.fw-squad { padding-top: 26px; }
.fw-squad-group { margin-bottom: 38px; }
.fw-squad-group > h2 { margin: 0 0 14px; font-size: 20px; text-transform: uppercase; border-bottom: 2px solid var(--fw-primary); padding-bottom: 6px; }
.fw-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.fw-player-card { position: relative; display: block; overflow: hidden; background: var(--fw-soft); transition: transform .2s ease, box-shadow .2s ease; }
.fw-player-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .14); color: inherit; }
.fw-player-card__img { aspect-ratio: 4 / 5; background: linear-gradient(180deg, #e9e9e9, #cfcfcf); }
.fw-player-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.fw-player-card__num { position: absolute; top: 8px; left: 10px; font-family: var(--fw-font-logo); font-size: 34px; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.fw-player-card__body { padding: 10px 12px; background: var(--fw-primary); color: #fff; }
.fw-player-card__name { margin: 0; font-size: 16px; line-height: 1.2; color: #fff; }
.fw-player-card__meta { display: block; margin-top: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }

.fw-player-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; margin: 24px 0; padding: 24px; background: var(--fw-primary); color: #fff; }
.fw-player-hero img { width: 100%; display: block; }
.fw-player-hero__num { font-family: var(--fw-font-logo); font-size: 64px; font-weight: 800; line-height: 1; opacity: .9; }
.fw-player-hero h1 { margin: 6px 0 16px; color: #fff; font-size: clamp(28px, 4vw, 42px); }
.fw-facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.fw-facts th, .fw-facts td { padding: 8px 0; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .22); vertical-align: top; }
.fw-facts th { width: 42%; font-weight: 500; opacity: .8; }
@media (max-width: 640px) { .fw-player-hero { grid-template-columns: 1fr; } }

.fw-profiles-list { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 28px; }
.fw-profiles-list li { break-inside: avoid; display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--fw-border); }
.fw-profiles-list img { width: 44px; height: 44px; object-fit: cover; object-position: top; border-radius: 50%; background: #ddd; }
.fw-profiles-list .fw-num { width: 30px; font-weight: 800; color: var(--fw-primary); font-family: var(--fw-font-logo); }
.fw-profiles-list small { display: block; color: var(--fw-source); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

/* ==========================================================================
   16. Widgets
   ========================================================================== */
.widget-title,
.fw-sidebar .widget > h2,
.fw-sidebar .wp-block-heading {
	margin: 0 0 12px; padding: 10px 14px; background: var(--fw-primary); color: #fff;
	font-family: var(--fw-font-heading); font-size: 16px; font-weight: 700; line-height: 1.2; text-transform: uppercase;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--fw-border); }
.widget .fw-headlines li { border-bottom: 0; }
.fw-popular li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 700; font-size: 15px; line-height: 1.35; }
.fw-popular__num { font-family: var(--fw-font-logo); font-size: 24px; font-weight: 800; line-height: 1; color: var(--fw-primary); }
.fw-popular a { color: var(--fw-headline); }
.fw-popular a:hover { color: var(--fw-primary); }

.fw-social { display: flex; flex-wrap: wrap; gap: 10px; }
.fw-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fw-primary); color: #fff; }
.fw-social a:hover { color: #fff; filter: brightness(1.15); }
.fw-social .fw-icon { width: 18px; height: 18px; }

/* Search form */
.fw-searchform { display: flex; max-width: 100%; }
.fw-searchform input[type="search"] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #ccc; border-right: 0; border-radius: 0; font-size: 16px; background: #fff; color: #111; }
.fw-searchform button { height: 44px; padding: 0 18px; border: 0; background: var(--fw-primary); color: #fff; font-weight: 700; cursor: pointer; }
.fw-search-panel .fw-searchform button { background: #111; }

/* Buttons */
.fw-btn, .comment-form .submit, .wp-block-button__link {
	display: inline-block; padding: 12px 22px; border: 0; border-radius: 0; cursor: pointer;
	background: var(--fw-primary); color: #fff; font-weight: 700; text-decoration: none;
}
.fw-btn:hover, .comment-form .submit:hover { background: var(--fw-primary-dark); color: #fff; }

/* ==========================================================================
   17. Comments
   ========================================================================== */
.fw-comments { margin-top: 36px; }
.fw-comments .comment-list, .fw-comments .children { list-style: none; margin: 0; padding: 0; }
.fw-comments .children { padding-left: 26px; }
.fw-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--fw-border); }
.fw-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.fw-comments .comment-author img { border-radius: 50%; }
.fw-comments .comment-metadata { font-size: 13px; color: #888; margin: 4px 0 8px; }
.fw-comments .reply a { font-size: 13px; font-weight: 700; color: var(--fw-primary); }
.comment-form label { display: block; font-weight: 500; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 0; background: #fff;
}

/* ==========================================================================
   18. Footer
   ========================================================================== */
.fw-footer-widgets { padding: 40px 0; background: var(--fw-soft); }
.fw-footer-widgets__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }

.fw-footer { background: var(--fw-footer-bg); color: var(--fw-footer-text); padding: 52px 0 60px; }
.fw-footer a { color: var(--fw-footer-text); }
.fw-footer__grid { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 330px); justify-content: space-between; gap: 40px; }
.fw-footer__about { margin: 0 0 34px; font-size: 24px; line-height: 1.3; }
.fw-footer__about p, .fw-footer__disclaimer p { margin: 0 0 .6em; }
.fw-footer__about strong { font-weight: 700; }
.fw-footer__disclaimer { font-size: 18px; line-height: 1.5; }
.fw-footer__copy { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: -.035em; line-height: 1.3; }
.fw-footer-menu { list-style: none; margin: 0; padding: 0; }
.fw-footer-menu a { display: inline-block; padding: 5px 0; font-size: 15px; font-weight: 500; }
.fw-footer-menu a:hover { color: var(--fw-footer-text); text-decoration: underline; }
.fw-footer .fw-social { margin-top: 22px; }
.fw-footer .fw-social a { background: rgba(255, 255, 255, .12); }
@media (max-width: 767px) {
	.fw-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.fw-footer__about { font-size: 20px; }
	.fw-footer__disclaimer { font-size: 16px; }
}

/* ==========================================================================
   19. 404 + misc
   ========================================================================== */
.fw-404 { padding: 40px 0; text-align: center; }
.fw-404 h1 { font-size: 80px; margin: 0; color: var(--fw-primary); font-family: var(--fw-font-logo); }
.fw-404 .fw-searchform { max-width: 480px; margin: 20px auto 40px; }
.page-links { margin: 20px 0; font-weight: 700; }
.sticky .fw-hl__title::before { content: "\2605  "; color: var(--fw-primary); }
.bypostauthor > .comment-body .fw-comment-badge { background: var(--fw-primary); }

/* ==========================================================================
   20. Responsive tweaks
   ========================================================================== */
@media (max-width: 767px) {
	:root { --fw-header-pad: 14px; }
	.fw-logo { font-size: calc(var(--fw-logo-size) * .72); }
	.fw-menu a { padding: 0 14px; line-height: 46px; font-size: 14px; }
	.fw-menu > li:first-child > a { padding-left: 14px; }
	.fw-container { padding: 0 16px; }
	.fw-section-title span { font-size: 16px; }
	.fw-content { font-size: 17px; }
}
