/*
Theme Name: LineupFor Light
Theme URI: https://lineupfor.info
Author: LineupFor
Author URI: https://lineupfor.info
Description: A clean, fast, light theme for sports, news and entertainment sites. Fully customisable from the Customizer: colours, fonts, top bar with trending ticker, header and menu styles, homepage featured grid, card layouts, post extras (breadcrumbs, share, related posts, reading progress), widget areas, footer columns and labelled ad placements. No jQuery, no page builder required.
Version: 1.0.0
Requires at least: 6.3
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: lineupfor-light
Tags: blog, news, entertainment, sports, one-column, two-columns, left-sidebar, right-sidebar, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready, theme-options, accessibility-ready, light
*/

/* ==========================================================================
   Variables (fallbacks – Customizer values are printed inline and override these)
   ========================================================================== */
:root {
	--lfl-primary: #0b7a4b;
	--lfl-primary-dark: #086039;
	--lfl-primary-rgb: 11, 122, 75;
	--lfl-accent: #f97316;
	--lfl-accent-rgb: 249, 115, 22;
	--lfl-btn-text: #ffffff;
	--lfl-bg: #f5f7fa;
	--lfl-surface: #ffffff;
	--lfl-text: #1f2937;
	--lfl-muted: #64748b;
	--lfl-border: #e5e7eb;
	--lfl-link: #0b7a4b;
	--lfl-link-hover: #086039;
	--lfl-topbar-bg: #ecf6f0;
	--lfl-topbar-text: #25523d;
	--lfl-header-bg: #ffffff;
	--lfl-header-text: #111827;
	--lfl-footer-bg: #eef2f6;
	--lfl-footer-text: #475569;
	--lfl-footer-heading: #111827;
	--lfl-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--lfl-font-head: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--lfl-hw: 700;
	--lfl-size: 16px;
	--lfl-lh: 1.7;
	--lfl-width: 1200px;
	--lfl-sidebar-w: 320px;
	--lfl-radius: 12px;
	--lfl-logo-h: 48px;
	--lfl-gap: 28px;
	--lfl-sticky-top: 0px;
}

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

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

body {
	margin: 0;
	background: var(--lfl-bg);
	color: var(--lfl-text);
	font-family: var(--lfl-font-body);
	font-size: var(--lfl-size);
	line-height: var(--lfl-lh);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

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

a { color: var(--lfl-link); text-underline-offset: 3px; }
a:hover { color: var(--lfl-link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid rgba(var(--lfl-primary-rgb), .45);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lfl-font-head);
	font-weight: var(--lfl-hw);
	line-height: 1.25;
	margin: 0 0 .6em;
	color: var(--lfl-text);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }

hr { border: 0; border-top: 1px solid var(--lfl-border); margin: 2em 0; }

button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto;
	margin: 0; left: 12px; top: 12px; z-index: 1000;
	background: var(--lfl-surface); color: var(--lfl-text);
	padding: 12px 18px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.2);
}

.container {
	width: 100%;
	max-width: var(--lfl-width);
	margin-inline: auto;
	padding-inline: 20px;
}

.button, .search-submit, .comment-form .submit, button.share-copy {
	display: inline-block;
	background: var(--lfl-primary);
	color: var(--lfl-btn-text);
	border: 0;
	border-radius: 999px;
	padding: .65em 1.3em;
	font-weight: 600;
	font-size: .92rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.button:hover, .search-submit:hover, .comment-form .submit:hover {
	background: var(--lfl-primary-dark);
	color: var(--lfl-btn-text);
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
	background: var(--lfl-topbar-bg);
	color: var(--lfl-topbar-text);
	font-size: .82rem;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 38px;
}
.topbar-date { white-space: nowrap; font-weight: 500; }
.topbar-ticker {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ticker-label {
	flex: none;
	background: var(--lfl-accent);
	color: #fff;
	font-weight: 700;
	font-size: .7rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 2px 9px;
	border-radius: 999px;
}
.ticker-items { position: relative; flex: 1; min-width: 0; height: 1.6em; overflow: hidden; }
.ticker-item {
	position: absolute; inset: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	opacity: 0; transform: translateY(10px); pointer-events: none;
	transition: opacity .4s, transform .4s;
}
.ticker-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar-menu { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }

.social-links { display: flex; gap: 6px; }
.social-links a {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 28px; height: 28px; padding: 0 6px;
	border-radius: 999px;
	background: rgba(var(--lfl-primary-rgb), .1);
	color: var(--lfl-primary);
	font-size: .7rem; font-weight: 700; letter-spacing: .02em;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--lfl-primary); color: var(--lfl-btn-text); }
.social-links.is-large a { min-width: 40px; height: 40px; font-size: .8rem; }

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 100;
	background: var(--lfl-header-bg);
	color: var(--lfl-header-text);
	border-bottom: 1px solid var(--lfl-border);
}
.lfl-header-shadow .site-header { box-shadow: 0 2px 14px rgba(15, 23, 42, .06); }
.lfl-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.lfl-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.lfl-sticky-header .site-header { top: 46px; } }

.header-inner { display: flex; align-items: center; gap: 22px; min-height: 72px; }

.site-branding { flex: none; display: flex; flex-direction: column; justify-content: center; }
.site-title { margin: 0; font-family: var(--lfl-font-head); font-weight: 800; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.01em; }
.site-title a { color: var(--lfl-header-text); text-decoration: none; }
.site-title a::first-letter { color: var(--lfl-primary); }
.site-tagline { font-size: .78rem; color: var(--lfl-muted); }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { height: var(--lfl-logo-h); width: auto; max-width: 260px; object-fit: contain; }

.main-nav { flex: 1; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.main-nav .menu-item { position: relative; }
.main-nav a {
	display: block; position: relative;
	padding: 10px 13px;
	color: var(--lfl-header-text);
	font-weight: 600; font-size: .93rem;
	text-decoration: none;
	border-radius: 8px;
	transition: color .2s, background .2s;
}
.main-nav .menu > .menu-item-has-children > a::after {
	content: ""; display: inline-block; margin-left: 7px;
	width: 6px; height: 6px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .55;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_item > a { color: var(--lfl-primary); }

/* menu hover styles */
.lfl-menu-underline .main-nav .menu > li > a::before {
	content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
	background: var(--lfl-primary); border-radius: 2px;
	transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.lfl-menu-underline .main-nav .menu > li:hover > a::before,
.lfl-menu-underline .main-nav .menu > .current-menu-item > a::before,
.lfl-menu-underline .main-nav .menu > .current-menu-ancestor > a::before,
.lfl-menu-underline .main-nav .menu > .current_page_item > a::before { transform: scaleX(1); }
.lfl-menu-pill .main-nav .menu > li > a:hover { background: rgba(var(--lfl-primary-rgb), .1); }
.lfl-menu-pill .main-nav .menu > .current-menu-item > a,
.lfl-menu-pill .main-nav .menu > .current-menu-ancestor > a,
.lfl-menu-pill .main-nav .menu > .current_page_item > a { background: var(--lfl-primary); color: var(--lfl-btn-text); }

/* dropdowns */
.main-nav .sub-menu {
	position: absolute; left: 0; top: 100%;
	min-width: 230px;
	padding: 8px;
	background: var(--lfl-surface);
	border: 1px solid var(--lfl-border);
	border-radius: var(--lfl-radius);
	box-shadow: 0 14px 36px rgba(15, 23, 42, .14);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 60;
}
.main-nav .sub-menu a { padding: 9px 12px; font-weight: 500; }
.main-nav .sub-menu a:hover { background: rgba(var(--lfl-primary-rgb), .08); }
.main-nav .sub-menu .sub-menu { left: 100%; top: -9px; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu,
.main-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.submenu-toggle { display: none; }

.header-actions { flex: none; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-toggle, .menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	background: transparent; border: 1px solid var(--lfl-border);
	border-radius: 999px; color: var(--lfl-header-text); cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.search-toggle:hover { background: var(--lfl-primary); border-color: var(--lfl-primary); color: var(--lfl-btn-text); }
.menu-toggle { display: none; }
.menu-toggle-bars { display: grid; gap: 4px; }
.menu-toggle-bars i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-search { border-top: 1px solid var(--lfl-border); background: var(--lfl-surface); padding: 14px 0; }
.header-search[hidden] { display: none; }

/* centred header layout */
.lfl-header-center .header-inner { flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding-block: 12px 6px; }
.lfl-header-center .site-branding { flex: 1 0 100%; align-items: center; text-align: center; }
.lfl-header-center .main-nav { flex: 0 1 auto; }
.lfl-header-center .header-actions { margin-left: 0; }

/* search form */
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-field {
	flex: 1; min-width: 0;
	padding: .7em 1.1em;
	background: var(--lfl-surface); border: 1px solid var(--lfl-border);
	border-radius: 999px;
}
.search-field:focus { border-color: var(--lfl-primary); }

/* ads */
.header-ad, .header-banner { padding-top: 18px; }
.lfl-ad { margin: 1.6em 0; text-align: center; }
.header-ad .lfl-ad { margin: 0; }
.lfl-ad-label {
	display: block; margin-bottom: 6px;
	font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--lfl-muted);
}
.lfl-ad-inner { min-height: 1px; overflow: hidden; }
.widget .lfl-ad { margin: 0; }

/* ==========================================================================
   Layout
   ========================================================================== */
.site-content { padding-block: var(--lfl-gap) 56px; }
.site-content.has-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--lfl-sidebar-w);
	gap: 32px;
}
.site-content.sidebar-left { grid-template-columns: var(--lfl-sidebar-w) minmax(0, 1fr); }
.site-content.sidebar-left .widget-area { order: -1; }
.site-main { min-width: 0; }

.lfl-sticky-sidebar .sidebar-inner { position: sticky; top: calc(var(--lfl-sticky-top) + 20px); }
.lfl-sticky-sidebar.lfl-sticky-header { --lfl-sticky-top: 76px; }
.admin-bar.lfl-sticky-sidebar .sidebar-inner { margin-top: 0; }

.section-title {
	font-size: 1.25rem;
	margin: 0 0 18px;
	padding-left: 12px;
	border-left: 4px solid var(--lfl-primary);
}
.archive-title { font-size: 1.7rem; margin-bottom: .3em; }
.archive-description { color: var(--lfl-muted); margin-bottom: 1.6em; }

.home-intro { margin-bottom: 26px; }
.home-heading { font-size: 1.8rem; margin-bottom: .35em; }
.home-text { color: var(--lfl-muted); max-width: 70ch; }
.home-text p:last-child { margin-bottom: 0; }
.home-widgets { margin-bottom: 26px; }

/* ==========================================================================
   Featured grid
   ========================================================================== */
.lfl-hero { padding-top: var(--lfl-gap); }
.hero-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(150px, 1fr));
	gap: 14px;
	min-height: 440px;
}
.hero-item { position: relative; border-radius: var(--lfl-radius); overflow: hidden; background: var(--lfl-surface); }
.hero-item.is-main { grid-row: 1 / 3; }
/* fewer than 5 featured posts: keep the grid free of holes */
.hero-grid.hero-count-1 { grid-template-columns: 1fr; grid-template-rows: minmax(320px, 1fr); }
.hero-grid.hero-count-1 .hero-item.is-main { grid-row: auto; }
.hero-grid.hero-count-2 { grid-template-columns: 2fr 1fr; grid-template-rows: minmax(320px, 1fr); }
.hero-grid.hero-count-2 .hero-item.is-main { grid-row: auto; }
.hero-grid.hero-count-3 { grid-template-columns: 2fr 1fr; }
.hero-grid.hero-count-4 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, minmax(120px, 1fr)); }
.hero-grid.hero-count-4 .hero-item.is-main { grid-row: 1 / 4; }
.hero-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.hero-img, .hero-item .thumb-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-link:hover .hero-img { transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 30, .82) 0%, rgba(10, 18, 30, .25) 55%, rgba(10, 18, 30, 0) 100%); }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero-title { font-family: var(--lfl-font-head); font-weight: var(--lfl-hw); font-size: .98rem; line-height: 1.3; text-shadow: 0 1px 8px rgba(0,0,0,.4); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-item.is-main .hero-title { font-size: 1.65rem; }
.hero-meta { font-size: .76rem; opacity: .85; }
.hero-body .cat-badge { position: static; }

/* ==========================================================================
   Cards
   ========================================================================== */
.posts-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lfl-blog-grid-3 .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lfl-blog-list .posts-grid { grid-template-columns: 1fr; }

.card {
	display: flex; flex-direction: column;
	background: var(--lfl-surface);
	border: 1px solid var(--lfl-border);
	border-radius: var(--lfl-radius);
	overflow: hidden;
	transition: transform .25s, box-shadow .25s;
}
.lfl-card-shadow .card, .lfl-card-shadow .widget-card { box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15, 23, 42, .1); }
.card-media { position: relative; }
.card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(var(--lfl-primary-rgb), .06); }
.lfl-ratio-3-2 .card-thumb { aspect-ratio: 3 / 2; }
.lfl-ratio-4-3 .card-thumb { aspect-ratio: 4 / 3; }
.lfl-ratio-1-1 .card-thumb { aspect-ratio: 1 / 1; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card-thumb img { transform: scale(1.045); }

.thumb-placeholder {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, rgba(var(--lfl-primary-rgb), .2), rgba(var(--lfl-accent-rgb), .2));
	color: var(--lfl-primary);
	font-family: var(--lfl-font-head); font-weight: 800; font-size: 1.6rem; letter-spacing: .06em;
}

.cat-badge {
	display: inline-block;
	background: var(--lfl-accent); color: #fff;
	font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px;
	text-decoration: none; line-height: 1.3;
}
a.cat-badge:hover { color: #fff; filter: brightness(.92); }
.card-media .cat-badge { position: absolute; left: 12px; top: 12px; }

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-title { font-size: 1.08rem; margin: 0; line-height: 1.35; }
.card-title a { color: var(--lfl-text); text-decoration: none; }
.card-title a:hover { color: var(--lfl-primary); }
.card-meta, .entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .8rem; color: var(--lfl-muted); }
.card-meta a, .entry-meta a { color: inherit; text-decoration: none; }
.card-meta a:hover, .entry-meta a:hover { color: var(--lfl-primary); }
.meta-sep { opacity: .5; font-size: .7em; }
.card-excerpt { color: var(--lfl-muted); font-size: .92rem; }
.card-excerpt p { margin: 0; }
.card-more { margin-top: auto; align-self: flex-start; font-size: .86rem; font-weight: 600; color: var(--lfl-primary); text-decoration: none; }
.card-more:hover { text-decoration: underline; }

.lfl-blog-list .card { flex-direction: row; }
.lfl-blog-list .card-media { flex: 0 0 38%; max-width: 340px; }
.lfl-blog-list .card-thumb { height: 100%; min-height: 160px; aspect-ratio: auto; }

/* pagination */
.pagination .nav-links, .posts-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	background: var(--lfl-surface); border: 1px solid var(--lfl-border);
	border-radius: 999px; color: var(--lfl-text); font-weight: 600; font-size: .9rem; text-decoration: none;
	transition: background .2s, color .2s;
}
a.page-numbers:hover { border-color: var(--lfl-primary); color: var(--lfl-primary); }
.page-numbers.current { background: var(--lfl-primary); border-color: var(--lfl-primary); color: var(--lfl-btn-text); }
.page-numbers.dots { border: 0; background: none; }
.posts-navigation .nav-links a { padding: .65em 1.3em; border-radius: 999px; background: var(--lfl-surface); border: 1px solid var(--lfl-border); text-decoration: none; font-weight: 600; }

/* ==========================================================================
   Single post / page
   ========================================================================== */
.single-entry {
	background: var(--lfl-surface);
	border: 1px solid var(--lfl-border);
	border-radius: var(--lfl-radius);
	padding: clamp(18px, 4vw, 36px);
}
.lfl-card-shadow .single-entry { box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.entry-header { margin-bottom: 20px; }
.entry-header .cat-badge { margin-bottom: 12px; }
.entry-title { font-size: clamp(1.6rem, 3.6vw, 2.35rem); margin-bottom: .45em; letter-spacing: -.01em; }
.entry-thumb { margin: 0 0 24px; border-radius: calc(var(--lfl-radius) - 2px); overflow: hidden; }
.entry-thumb img { width: 100%; }
.entry-thumb figcaption { font-size: .82rem; color: var(--lfl-muted); padding: 8px 2px 0; }

.breadcrumbs { margin-bottom: 14px; font-size: .8rem; color: var(--lfl-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; opacity: .45; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--lfl-primary); text-decoration: underline; }

.lfl-notice {
	margin: 0 0 22px; padding: 12px 16px;
	background: rgba(var(--lfl-accent-rgb), .1);
	border-left: 4px solid var(--lfl-accent);
	border-radius: 0 10px 10px 0;
	font-size: .9rem;
}
.lfl-notice p:last-child { margin-bottom: 0; }

.entry-content { font-size: 1.04rem; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--lfl-primary); }
.entry-content img { border-radius: 10px; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 14px 20px;
	background: rgba(var(--lfl-primary-rgb), .06);
	border-left: 4px solid var(--lfl-primary);
	border-radius: 0 10px 10px 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre, .entry-content code { font-size: .88em; background: #f1f5f9; border-radius: 6px; }
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 14px 16px; overflow: auto; }

/* tables (match lineups, standings, fixtures) */
.table-wrap, .wp-block-table { overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--lfl-surface); }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--lfl-border); text-align: left; }
.entry-content th { background: rgba(var(--lfl-primary-rgb), .08); font-weight: 700; white-space: nowrap; }
.entry-content tbody tr:hover { background: rgba(var(--lfl-primary-rgb), .04); }

.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, figcaption { font-size: .82rem; color: var(--lfl-muted); }
.page-links { margin-top: 1.5em; font-weight: 600; }
.page-links a, .page-links > span:not(.page-links-title) { display: inline-block; padding: 2px 10px; margin-left: 4px; border: 1px solid var(--lfl-border); border-radius: 8px; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.entry-tags a {
	background: rgba(var(--lfl-primary-rgb), .08); color: var(--lfl-primary);
	padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none;
}
.entry-tags a:hover { background: var(--lfl-primary); color: var(--lfl-btn-text); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--lfl-border); }
.share-label { font-weight: 700; font-size: .88rem; margin-right: 4px; }
.share a, .share button {
	padding: .45em 1em; border: 1px solid var(--lfl-border); border-radius: 999px;
	background: var(--lfl-surface); color: var(--lfl-text);
	font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: all .2s;
}
.share a:hover, .share button:hover { background: var(--lfl-primary); border-color: var(--lfl-primary); color: var(--lfl-btn-text); }

.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 18px; background: var(--lfl-bg); border-radius: var(--lfl-radius); }
.author-box img { border-radius: 50%; flex: none; }
.author-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lfl-muted); }
.author-name { font-family: var(--lfl-font-head); font-weight: var(--lfl-hw); color: var(--lfl-text); text-decoration: none; font-size: 1.05rem; }
.author-bio { margin: 6px 0 0; font-size: .9rem; color: var(--lfl-muted); }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.post-navigation a { display: block; padding: 14px 16px; border: 1px solid var(--lfl-border); border-radius: var(--lfl-radius); text-decoration: none; color: var(--lfl-text); transition: border-color .2s; }
.post-navigation a:hover { border-color: var(--lfl-primary); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-sub { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lfl-muted); }
.nav-title { display: block; font-weight: 600; font-size: .92rem; line-height: 1.35; }

.content-after-widgets { margin-top: 24px; }

.related-posts { margin-top: 36px; }
.related-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.related-item { background: var(--lfl-surface); border: 1px solid var(--lfl-border); border-radius: var(--lfl-radius); overflow: hidden; }
.related-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-title { font-size: .95rem; line-height: 1.35; margin: 12px 14px 4px; }
.related-title a { color: var(--lfl-text); text-decoration: none; }
.related-title a:hover { color: var(--lfl-primary); }
.related-date { display: block; margin: 0 14px 14px; font-size: .76rem; color: var(--lfl-muted); }

.lfl-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999; background: transparent; }
.admin-bar .lfl-progress { top: 32px; }
.lfl-progress span { display: block; height: 100%; width: 0; background: var(--lfl-accent); transition: width .1s linear; }

/* comments */
.comments-area { margin-top: 32px; background: var(--lfl-surface); border: 1px solid var(--lfl-border); border-radius: var(--lfl-radius); padding: clamp(18px, 4vw, 32px); }
.comment-list, .comment-list ol { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--lfl-border); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .84rem; margin-bottom: 8px; }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 10px; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-metadata a { color: var(--lfl-muted); text-decoration: none; }
.reply a { font-size: .82rem; font-weight: 600; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .7em 1em; background: var(--lfl-bg); border: 1px solid var(--lfl-border); border-radius: 10px;
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* 404, no results */
.error-404, .no-results { text-align: center; padding: 56px 20px; background: var(--lfl-surface); border: 1px solid var(--lfl-border); border-radius: var(--lfl-radius); }
.error-404 .search-form, .no-results .search-form { margin: 22px auto; }
.error-code { font-family: var(--lfl-font-head); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; margin: 0; color: var(--lfl-primary); opacity: .9; }
.no-results .section-title { border: 0; padding: 0; }

/* ==========================================================================
   Widgets
   ========================================================================== */
.widget { margin-bottom: 24px; }
.widget-area .widget, .content-after-widgets .widget, .home-widgets .widget { margin-bottom: 22px; }
.lfl-widget-card .widget-area .widget,
.lfl-widget-card .content-after-widgets .widget,
.lfl-widget-card .home-widgets .widget {
	background: var(--lfl-surface);
	border: 1px solid var(--lfl-border);
	border-radius: var(--lfl-radius);
	padding: 20px;
}
.lfl-widget-card.lfl-card-shadow .widget-area .widget { box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.widget-title { font-size: 1.05rem; margin: 0 0 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 0; }
.widget a { color: var(--lfl-text); text-decoration: none; }
.widget a:hover { color: var(--lfl-primary); }
.widget_categories li, .widget_archive li, .widget_nav_menu li, .widget_pages li, .widget_meta li, .widget_recent_entries li, .widget_recent_comments li {
	padding: 8px 0; border-bottom: 1px dashed var(--lfl-border); font-size: .93rem;
}
.widget li:last-child { border-bottom: 0; }
.widget .children, .widget .sub-menu { padding-left: 14px; }
.tagcloud a { display: inline-block; margin: 0 4px 6px 0; padding: 3px 11px; font-size: .8rem !important; background: rgba(var(--lfl-primary-rgb), .08); color: var(--lfl-primary); border-radius: 999px; }
.tagcloud a:hover { background: var(--lfl-primary); color: var(--lfl-btn-text); }
.widget .search-form { max-width: none; }
.widget .search-submit { padding-inline: 1em; }

/* widget title styles */
.lfl-wtitle-bar .widget-area .widget-title span,
.lfl-wtitle-bar .content-after-widgets .widget-title span,
.lfl-wtitle-bar .home-widgets .widget-title span { display: inline-block; border-left: 4px solid var(--lfl-primary); padding-left: 10px; }
.lfl-wtitle-underline .widget-area .widget-title,
.lfl-wtitle-underline .content-after-widgets .widget-title,
.lfl-wtitle-underline .home-widgets .widget-title { border-bottom: 2px solid var(--lfl-border); }
.lfl-wtitle-underline .widget-area .widget-title span,
.lfl-wtitle-underline .content-after-widgets .widget-title span,
.lfl-wtitle-underline .home-widgets .widget-title span { display: inline-block; padding-bottom: 10px; margin-bottom: -2px; border-bottom: 2px solid var(--lfl-primary); }
.lfl-wtitle-boxed .widget-area .widget-title span,
.lfl-wtitle-boxed .content-after-widgets .widget-title span,
.lfl-wtitle-boxed .home-widgets .widget-title span { display: block; background: var(--lfl-primary); color: var(--lfl-btn-text); padding: 9px 14px; border-radius: calc(var(--lfl-radius) / 1.6); }

/* posts-with-thumbnails widget */
.lfl-post-list { display: grid; gap: 14px; }
.lfl-post-item { display: flex; gap: 12px; align-items: center; padding: 0 !important; border: 0 !important; }
.lfl-post-thumb { flex: none; width: 76px; height: 76px; border-radius: calc(var(--lfl-radius) - 4px); overflow: hidden; display: block; }
.lfl-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lfl-post-thumb .thumb-placeholder { font-size: 1rem; }
.lfl-post-num {
	flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--lfl-primary); color: var(--lfl-btn-text); border-radius: 50%; font-weight: 700; font-size: .82rem;
}
.lfl-post-info { min-width: 0; }
.lfl-post-title { display: block; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.lfl-post-date { display: block; margin-top: 3px; font-size: .74rem; color: var(--lfl-muted); }

.lfl-about { text-align: center; }
.lfl-about-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.lfl-about-text { font-size: .93rem; color: var(--lfl-muted); }
.lfl-about-text p:last-child { margin-bottom: 0; }
.lfl-about-btn { margin-top: 14px; }
.widget .button, .widget .button:hover { color: var(--lfl-btn-text); }
.lfl-widget-social .social-links { flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--lfl-footer-bg); color: var(--lfl-footer-text); border-top: 1px solid var(--lfl-border); font-size: .93rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--lfl-primary); }
.footer-widgets { padding: 46px 0 14px; }
.footer-widgets-inner { display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-widgets-inner.cols-1 { grid-template-columns: 1fr; }
.footer-widgets-inner.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-widgets-inner.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-footer .widget-title { color: var(--lfl-footer-heading); }
.site-footer .widget-title span { display: inline-block; border: 0; padding: 0; background: none; color: inherit; }
.site-footer .widget a { color: var(--lfl-footer-text); }
.site-footer .widget a:hover { color: var(--lfl-primary); }
.site-footer .widget li { border-bottom-color: rgba(100, 116, 139, .25); }
.site-footer .lfl-post-title { color: var(--lfl-footer-heading); }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(100, 116, 139, .2); }
.footer-widgets + .footer-bottom { margin-top: 18px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer-copy p { margin: 0; }
.footer-note { margin-top: 4px !important; font-size: .82rem; opacity: .85; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }

.back-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--lfl-primary); color: var(--lfl-btn-text); border: 0; border-radius: 50%;
	box-shadow: 0 6px 18px rgba(var(--lfl-primary-rgb), .4); cursor: pointer;
	opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.back-to-top[hidden] { display: none; }
.back-to-top.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.site-content.has-sidebar, .site-content.sidebar-left { grid-template-columns: 1fr; }
	.site-content.sidebar-left .widget-area { order: 0; }
	.lfl-sticky-sidebar .sidebar-inner { position: static; }
	.lfl-blog-grid-3 .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-widgets-inner.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.header-inner { min-height: 64px; gap: 12px; }
	.main-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--lfl-surface); border-bottom: 1px solid var(--lfl-border);
		box-shadow: 0 18px 30px rgba(15, 23, 42, .12);
		max-height: calc(100vh - 80px); overflow-y: auto; padding: 8px 20px 16px;
	}
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav .menu > li > a::before { display: none; }
	.main-nav a { padding: 12px 6px; border-bottom: 1px solid var(--lfl-border); border-radius: 0; }
	.main-nav .menu > .menu-item-has-children > a::after { display: none; }
	.main-nav .menu-item { display: flex; flex-wrap: wrap; align-items: center; }
	.main-nav .menu-item > a { flex: 1; }
	.main-nav .sub-menu {
		position: static; display: none; flex: 0 0 100%;
		opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; padding: 0 0 0 14px; background: transparent; min-width: 0;
	}
	.main-nav li.is-open > .sub-menu { display: block; }
	.submenu-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 42px; height: 42px; background: none; border: 0; cursor: pointer; color: inherit;
	}
	.submenu-toggle span { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
	.menu-item.is-open > .submenu-toggle span { transform: rotate(-135deg); }
	.lfl-header-center .main-nav { flex: none; }
	.lfl-header-center .header-inner { flex-wrap: nowrap; justify-content: space-between; }
	.lfl-header-center .site-branding { flex: 1; align-items: flex-start; text-align: left; }
	.header-cta { display: none; }
}

@media (max-width: 760px) {
	.topbar-date, .topbar-menu, .topbar-text { display: none; }
	.topbar-right { margin-left: 0; }
	.hero-grid, .hero-grid[class*="hero-count-"] { grid-template-columns: 1fr 1fr; grid-template-rows: 300px repeat(2, 170px); min-height: 0; }
	.hero-item.is-main, .hero-grid[class*="hero-count-"] .hero-item.is-main { grid-column: 1 / 3; grid-row: 1; }
	.hero-item.is-main .hero-title { font-size: 1.3rem; }
	.posts-grid, .lfl-blog-grid-3 .posts-grid { grid-template-columns: 1fr; }
	.lfl-blog-list .card { flex-direction: column; }
	.lfl-blog-list .card-media { flex: none; max-width: none; }
	.lfl-blog-list .card-thumb { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
	.related-grid, .related-grid.cols-2, .related-grid.cols-4 { grid-template-columns: 1fr; }
	.related-item { display: grid; grid-template-columns: 110px 1fr; align-items: center; }
	.related-thumb { grid-row: 1 / 3; height: 100%; aspect-ratio: auto; }
	.related-title { margin: 10px 12px 2px; }
	.related-date { margin: 0 12px 10px; }
	.footer-widgets-inner, .footer-widgets-inner.cols-2, .footer-widgets-inner.cols-3, .footer-widgets-inner.cols-4 { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
	.footer-bottom-inner { flex-direction: column; align-items: flex-start; }
	.entry-content { font-size: 1rem; }
	.alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .site-footer, .widget-area, .share, .related-posts, .comments-area, .back-to-top, .lfl-ad, .lfl-progress { display: none !important; }
	body { background: #fff; }
	.single-entry { border: 0; padding: 0; }
}
