/*
Theme Name: RealScored
Author: RealScored
Description: A fast, mobile-friendly football theme with an automatic Football Predictions homepage, calendar, results and clean full-width match lists.
Version: 1.0.0
Requires at least: 6.0
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: realscored
Tags: custom-logo, custom-menu, featured-images, one-column, translation-ready, wide-blocks, blog
*/
:root { --rs-ink: #152b24; --rs-muted: #5b6962; --rs-green: #102d26; --rs-accent: #d4ef83; --rs-line: #e2e7df; --rs-paper: #f5f7f3; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body.realscored-site { margin: 0; background: #fff; color: var(--rs-ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: #235f43; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button, input[type="submit"], .rs-button { cursor: pointer; }
:focus-visible { outline: 3px solid #4f872b; outline-offset: 4px; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
figure { margin-inline: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin-top: 0; }
.rs-container { width: min(1060px, calc(100% - 64px)); margin-inline: auto; }
.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; white-space: nowrap; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; top: 10px; left: 10px; padding: 12px 18px; z-index: 100000; background: white; color: var(--rs-ink); }
.rs-header { background: var(--rs-green); color: white; border-bottom: 1px solid #365047; }
.rs-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 88px; }
.rs-brand { min-width: 0; }
.rs-wordmark { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-size: clamp(1.25rem, 2.7vw, 1.65rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.rs-brand-mark { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--rs-accent); color: var(--rs-green); }
.rs-brand .custom-logo-link { display: inline-flex; vertical-align: middle; }
.rs-brand .custom-logo { max-width: 230px; width: auto; max-height: 58px; object-fit: contain; }
.rs-menu, .rs-footer-menu { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.rs-navigation { flex-shrink: 0; max-width: 65%; }
.rs-menu a { display: block; padding: 10px 0; color: #e9f0eb; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.rs-menu a:hover, .rs-menu .current-menu-item > a { color: var(--rs-accent); }
.rs-menu .sub-menu { list-style: none; padding-left: 14px; margin: 0; border-left: 1px solid #547264; }
.rs-menu .sub-menu a { font-size: 0.8rem; padding: 3px 0; }
.rs-menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #547264; border-radius: 6px; color: white; background: transparent; font-size: 0.85rem; }
.rs-header :focus-visible { outline-color: var(--rs-accent); }
.rs-hero { background: var(--rs-green); color: white; overflow: hidden; }
.rs-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 46px; }
.rs-eyebrow { margin: 0 0 10px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rs-muted); }
.rs-hero .rs-eyebrow { color: var(--rs-accent); }
.rs-hero h1 { margin: 0 0 14px; max-width: 740px; font-size: clamp(2rem, 4.2vw, 3.35rem); font-weight: 800; letter-spacing: -0.055em; text-wrap: balance; }
.rs-intro { color: var(--rs-muted); max-width: 660px; }
.rs-hero .rs-intro { color: #c6d8ce; font-size: 1rem; margin: 0; }
.rs-pitch { position: relative; flex: 0 0 180px; height: 122px; border: 1px solid #668757; border-radius: 8px; background: repeating-linear-gradient(90deg, #ffffff03 0 30px, #ffffff08 30px 60px); transform: rotate(-12deg); opacity: 0.7; }
.rs-pitch::before, .rs-pitch::after { content: ""; position: absolute; width: 28px; height: 65px; top: 27px; border: 1px solid #668757; }
.rs-pitch::before { left: -1px; }
.rs-pitch::after { right: -1px; }
.rs-pitch span { position: absolute; inset-block: 0; left: 50%; border-left: 1px solid #668757; }
.rs-pitch span::after { content: ""; position: absolute; width: 46px; height: 46px; top: 37px; left: -24px; border: 1px solid #668757; border-radius: 50%; }
.rs-match-centre { padding-top: 36px; padding-bottom: 40px; scroll-margin-top: 16px; }
.rs-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.rs-section-heading h2 { margin: 0; font-size: 1.65rem; font-weight: 800; }
.rs-section-heading .rs-eyebrow { margin-bottom: 7px; }
.rs-results-link { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 700; color: var(--rs-green); text-decoration: none; }
.rs-results-link span { display: grid; place-items: center; background: var(--rs-paper); border: 1px solid var(--rs-line); width: 32px; height: 32px; border-radius: 50%; }
/* The theme provides the width, so the plugin never needs viewport breakout margins. */
body.realscored-site .fp-feed { width: 100%; max-width: none; margin-inline: 0 !important; color: var(--rs-ink); }
.realscored-site .fp-calendar, .realscored-site .fp-predictions { max-width: none; }
.realscored-site .fp-calendar { padding: 12px 4px; background: var(--rs-paper); border: 0; border-block: 1px solid var(--rs-line); }
.realscored-site .fp-day-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; min-height: 40px; color: #425c4c; font-weight: 700; text-decoration: none; }
.realscored-site .fp-day-link:last-child { justify-self: end; }
.realscored-site .fp-day-link:first-child { justify-self: start; }
.realscored-site .fp-day-text { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
.realscored-site .fp-date-form { gap: 8px; }
.realscored-site .fp-date-form input, .realscored-site .fp-date-form button { min-height: 40px; border-radius: 5px; font-size: 0.85rem; }
.realscored-site .fp-date-form input { width: 9rem; padding-inline: 8px; }
.realscored-site .fp-date-form button { background: var(--rs-green); color: white; border-color: var(--rs-green); padding-inline: 14px; }
.realscored-site .fp-prediction { padding: 18px 12px 14px; border-bottom: 1px solid var(--rs-line); }
.realscored-site .fp-prediction:nth-child(even) { background: #fafbf9; }
.realscored-site .fp-prediction:last-child { border-bottom: 1px solid var(--rs-line); }
.realscored-site .fp-match { font-size: clamp(1rem, 2vw, 1.22rem); column-gap: 10px; }
.realscored-site .fp-details { margin-top: 8px; font-size: 0.8rem; }
.realscored-site .fp-result { margin-top: 4px; font-size: 0.78rem; }
.realscored-site .fp-kickoff, .realscored-site .fp-pick-unavailable, .realscored-site .fp-result-pending { color: #627067; }
.realscored-site .fp-confidence, .realscored-site .fp-outcome-won { color: #217041; }
.realscored-site .fp-crest { height: 2.1rem; }
.realscored-site .fp-empty { padding-block: 32px; }
.rs-calendar-hint { margin: 20px 0 0; color: var(--rs-muted); font-size: 0.78rem; }
.rs-empty { padding: 28px 0; border-top: 1px solid var(--rs-line); }
.rs-empty h3 { font-size: 1.25rem; }
.rs-empty p { color: var(--rs-muted); }
.rs-footer { background: var(--rs-paper); border-top: 1px solid var(--rs-line); padding-block: 32px; }
.rs-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--rs-muted); font-size: 0.85rem; }
.rs-footer-brand { font-size: 1.2rem; font-weight: 800; color: var(--rs-green); text-decoration: none; letter-spacing: -0.04em; }
.rs-footer p { margin: 2px 0 0; }
.rs-footer small { font-size: 0.75rem; }
.rs-document { padding-block: 44px 64px; min-height: 55vh; }
.rs-document h1 { margin-top: 0; }
.rs-page-content { overflow-wrap: anywhere; }
.rs-page-content > * { max-width: 100%; }
.rs-page-content pre { overflow: auto; padding: 16px; background: var(--rs-paper); }
.rs-page-content blockquote { padding-left: 20px; margin-left: 0; border-left: 3px solid #5b7e3c; }
.rs-page-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.rs-page-content th, .rs-page-content td { padding: 8px; border: 1px solid var(--rs-line); }
.rs-page-content .aligncenter { margin-inline: auto; display: block; }
.rs-page-content .alignleft { float: left; margin-right: 20px; }
.rs-page-content .alignright { float: right; margin-left: 20px; }
.rs-page-content::after { content: ""; display: block; clear: both; }
.wp-caption-text, .gallery-caption { color: var(--rs-muted); font-size: 0.85rem; }
.rs-home-content { padding-block: 0 32px; }
.rs-featured-image { margin-bottom: 28px; border-radius: 8px; }
.rs-post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.rs-post-preview { padding-block: 24px; border-top: 1px solid var(--rs-line); overflow-wrap: anywhere; }
.rs-post-preview h2 { margin: 0 0 14px; }
.rs-post-preview h2 a { text-decoration: none; color: var(--rs-green); }
.rs-read-more { font-size: 0.85rem; font-weight: 700; }
.nav-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 30px; }
.rs-comments { border-top: 1px solid var(--rs-line); margin-top: 40px; padding-top: 20px; }
.comment-list { padding-left: 24px; }
.comment-list .children { padding-left: 16px; }
.comment-body { margin-block: 20px; overflow-wrap: anywhere; }
.bypostauthor > .comment-body { border-left: 3px solid var(--rs-accent); padding-left: 12px; }
.comment-form label, .search-form label { display: block; }
.comment-form input:not([type="checkbox"]), .comment-form textarea, .search-field, .post-password-form input[type="password"] { width: 100%; max-width: 640px; padding: 10px 12px; border: 1px solid #9baa9f; border-radius: 4px; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-form input[type="submit"], .search-submit, .rs-button, .post-password-form input[type="submit"] { display: inline-block; width: auto; background: var(--rs-green); color: white; border: 0; border-radius: 4px; padding: 10px 18px; text-decoration: none; }
.search-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
	.rs-container { width: calc(100% - 32px); }
	.rs-header-inner { min-height: 74px; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
	.rs-brand { max-width: calc(100% - 96px); }
	.rs-wordmark { font-size: 1.25rem; gap: 8px; }
	.rs-brand-mark { flex-basis: 36px; height: 36px; border-radius: 9px; }
	.rs-brand-mark svg { width: 26px; height: 26px; }
	.rs-brand .custom-logo { max-width: 180px; max-height: 46px; }
	.rs-navigation { max-width: none; width: 100%; }
	.rs-menu { gap: 8px 24px; }
	.rs-js .rs-menu-toggle { display: inline-flex; }
	.rs-js .rs-navigation { display: none; }
	.rs-js .rs-navigation.is-open { display: block; border-top: 1px solid #365047; padding-top: 8px; }
	.rs-hero-inner { padding-block: 28px 32px; }
	.rs-hero h1 { font-size: 2rem; }
	.rs-hero .rs-intro { font-size: 0.9rem; }
	.rs-pitch { display: none; }
	.rs-match-centre { padding-top: 24px; padding-bottom: 30px; }
	.rs-section-heading { margin-bottom: 18px; gap: 10px; }
	.rs-section-heading h2 { font-size: 1.4rem; }
	.rs-section-heading .rs-eyebrow { font-size: 0.58rem; }
	.rs-results-link { font-size: 0.75rem; gap: 5px; }
	.rs-results-link span { width: 25px; height: 25px; }
	.rs-footer-inner { align-items: start; flex-direction: column; gap: 20px; }
	.rs-document { padding-block: 30px 40px; }
	.rs-post-list { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
	.rs-match-centre, .rs-document { width: calc(100% - 20px); }
	.rs-section-heading { padding-inline: 4px; }
	body.realscored-site .fp-calendar { grid-template-columns: 40px minmax(0, 1fr) 40px; padding: 6px 0; gap: 0; }
	.realscored-site .fp-day-text { display: none; }
	body.realscored-site .fp-date-form input { width: 8.5rem; }
	body.realscored-site .fp-date-form button { padding-inline: 10px; }
	.realscored-site .fp-prediction { padding: 12px 4px 10px; }
	.realscored-site .fp-match { column-gap: 3px; grid-template-columns: minmax(0, 1fr) 1.8rem 1.25rem 1.8rem minmax(0, 1fr); }
	.realscored-site .fp-crest { width: 1.8rem; height: 1.8rem; line-height: 1.8rem; }
	.realscored-site .fp-details { font-size: 0.72rem; gap: 5px; }
	.rs-calendar-hint { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
