/*
Theme Name: ScoopFootball
Description: Fast, clean theme for scoopfootball.com. Works with the Scoop Predictions plugin.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Author: ScoopFootball
Text Domain: scoopfootball
*/

:root {
	--ink: #111613;
	--muted: #55605A;
	--body: #3A433E;
	--ground: #F5F6F2;
	--surface: #FFFFFF;
	--line: #E2E5DF;
	--green: #0B6E3A;
	--green-dark: #07502A;
	--bright: #3DDC84;
	--nav-text: #C9D1CC;
	--display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; color: var(--ink); border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .02em; line-height: 1; }
.brand-word span { color: var(--bright); }
.custom-logo { max-height: 40px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--nav-text); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #fff; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: #fff; font-weight: 600; border-bottom-color: var(--bright); }
.nav-toggle { display: none; }

/* Page hero */
.site-main { padding: 32px 0 56px; }
.page-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-date { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.page-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 44px); line-height: 1.05; }
.hero-lede { margin: 0; color: var(--muted); max-width: 420px; }

/* Layout */
.layout { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.content-col { flex: 1 1 600px; min-width: 0; }
.sidebar { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }

/* Written content (SEO text, pages, posts) */
.entry-content { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; color: var(--body); }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.15; }
.entry-content h2 { font-size: 28px; margin: 1.4em 0 .5em; }
.entry-content h3 { font-size: 22px; margin: 1.2em 0 .4em; }
.entry-content p, .entry-content li { max-width: 72ch; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry-content .sp-list, .entry-content .sp-tabs, .entry-content .sp-chips { max-width: none; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
figure { margin: 1em 0; }

/* Prediction pages: the list sits outside the white text box */
.prediction-page .entry-content { background: transparent; border: 0; padding: 0; }
.prediction-page .entry-content > h2.wp-block-heading,
.prediction-page .entry-content > p,
.prediction-page .entry-content > ul,
.prediction-page .entry-content > ol,
.prediction-page .entry-content > h3 { background: var(--surface); margin: 0; padding: 0 28px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); max-width: none; }
.prediction-page .entry-content > h2.wp-block-heading { padding-top: 26px; border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-top: 12px; }
.prediction-page .entry-content > :is(p, ul, ol, h2, h3):last-child { padding-bottom: 26px; border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.prediction-page .entry-content > p { padding-top: 8px; padding-bottom: 8px; }

/* Posts list */
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-bottom: 16px; }
.post-card h2 { margin: 0 0 6px; font-family: var(--display); font-size: 26px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.pagination { display: flex; gap: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--nav-text); font-size: 14px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--nav-text); }
.site-footer a:hover { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
	.sidebar { max-width: none; }
	.site-header .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
	.nav-toggle { display: block; }
	.nav-toggle summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; }
	.nav-toggle summary::-webkit-details-marker { display: none; }
	.main-nav { display: none; width: 100%; }
	.nav-toggle[open] ~ .main-nav { display: block; }
	.main-nav ul { flex-direction: column; padding-bottom: 8px; }
	.main-nav a { border-bottom: 0; border-left: 2px solid transparent; }
	.main-nav .current-menu-item > a, .main-nav .current_page_item > a { border-left-color: var(--bright); }
}

@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.site-main { padding-top: 20px; }
	.entry-content { padding: 20px 18px; }
	.prediction-page .entry-content > h2.wp-block-heading,
	.prediction-page .entry-content > p,
	.prediction-page .entry-content > ul,
	.prediction-page .entry-content > ol,
	.prediction-page .entry-content > h3 { padding-left: 18px; padding-right: 18px; }
	.hero-lede { display: none; }
}
