/* MASTER-SPORTS — neutral, mobile-first base. Brand identity arrives via CSS custom properties
   (--smn-primary, --smn-secondary, --smn-accent, --smn-bg, --smn-text, --smn-font-heading,
   --smn-font-body) printed by inc/setup.php. Dark mode: prefers-color-scheme or [data-theme]. */

:root {
	--smn-primary: #0b3d91;
	--smn-secondary: #1e1e1e;
	--smn-accent: #f2b705;
	--smn-bg: #ffffff;
	--smn-text: #111111;
	--smn-surface: #f5f6f8;
	--smn-border: rgba(0, 0, 0, 0.12);
	--smn-muted: #5f6368;
	--smn-font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--smn-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--smn-radius: 12px;
	--smn-container: 1200px;
	--smn-gutter: 16px;
	color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--smn-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--smn-text);
	background: var(--smn-bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--smn-primary); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--smn-font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.375rem, 1.2vw + 1rem, 1.9rem); }
h3 { font-size: 1.125rem; }
button, input { font: inherit; }
.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: 0.5rem 1rem; background: var(--smn-primary); color: #fff; }
.container { width: 100%; max-width: var(--smn-container); margin: 0 auto; padding: 0 var(--smn-gutter); }
.ratio-16-9 { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--smn-radius); background: var(--smn-surface); }
.ratio-16-9 img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--smn-primary), var(--smn-secondary)); opacity: 0.25; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--smn-bg); border-bottom: 1px solid var(--smn-border); }
.site-header__row { display: flex; align-items: center; gap: 0.75rem; min-height: 60px; }
.site-branding { flex: 1 1 auto; min-width: 0; }
.site-title { font-family: var(--smn-font-heading); font-weight: 900; font-size: 1.35rem; color: var(--smn-primary); white-space: nowrap; }
.custom-logo { max-height: 44px; width: auto; }
.nav-toggle { order: 3; width: 44px; height: 44px; border: 1px solid var(--smn-border); border-radius: 8px; background: transparent; color: var(--smn-text); position: relative; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: currentColor; content: ""; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -6px; left: 0; }
.nav-toggle__bar::after { top: 6px; left: 0; }
.theme-toggle { order: 2; width: 44px; height: 44px; border: 0; background: transparent; color: var(--smn-text); font-size: 1.25rem; cursor: pointer; }
.primary-nav { display: none; width: 100%; order: 4; padding: 0.5rem 0 1rem; }
body.nav-open .primary-nav { display: block; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.menu a { display: block; padding: 0.6rem 0.25rem; font-weight: 700; color: var(--smn-text); border-bottom: 1px solid var(--smn-border); }
.menu .sub-menu { list-style: none; padding-left: 1rem; margin: 0; }
.nav-search { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.nav-search input, .search-form input { flex: 1 1 auto; min-width: 0; padding: 0.55rem 0.75rem; border: 1px solid var(--smn-border); border-radius: 8px; background: var(--smn-surface); color: var(--smn-text); }
.nav-search button, .search-form button, .button { padding: 0.55rem 1rem; border: 0; border-radius: 8px; background: var(--smn-primary); color: #fff; font-weight: 700; cursor: pointer; }
.search-form { display: flex; gap: 0.5rem; max-width: 520px; }

/* Layout */
.site-main { padding: 1.25rem var(--smn-gutter) 2rem; }
.layout { display: grid; gap: 2rem; }
.layout__main { min-width: 0; }
.layout__main--narrow { max-width: 760px; margin: 0 auto; }
.layout__sidebar { min-width: 0; }
.section { margin: 0 0 2rem; }
.section__header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; border-bottom: 3px solid var(--smn-primary); }
.section__title { margin: 0; padding-bottom: 0.35rem; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; }
.section__title a { color: inherit; }
.section__more { font-size: 0.875rem; font-weight: 700; white-space: nowrap; }

/* Hero */
.hero { display: grid; gap: 1rem; }
.hero__lead .hero__media { margin-bottom: 0.75rem; }
.hero__title { font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.4rem); margin: 0.25rem 0; }
.hero__title a, .card__title a, .hero__item-title a { color: var(--smn-text); }
.hero__excerpt { margin: 0; color: var(--smn-muted); }
.hero__list { display: grid; gap: 0.75rem; }
.hero__item { display: grid; grid-template-columns: 112px 1fr; gap: 0.75rem; align-items: start; }
.hero__thumb { border-radius: 8px; }
.hero__item-title { font-size: 1rem; margin: 0.15rem 0 0; }

/* Cards */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; gap: 0.6rem; }
.card--small { gap: 0.4rem; }
.card__kicker { display: inline-block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--smn-primary); }
.card__title { font-size: 1.125rem; margin: 0.2rem 0; }
.card--small .card__title { font-size: 1rem; }
.card__excerpt { margin: 0; color: var(--smn-muted); font-size: 0.95rem; }
.card__time { font-size: 0.75rem; color: var(--smn-muted); }

/* Entry */
.entry-meta { font-size: 0.8rem; color: var(--smn-muted); margin: 0 0 0.5rem; }
.entry-meta__cat { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.entry-lead { font-size: 1.15rem; color: var(--smn-muted); margin: 0 0 0.75rem; }
.entry-byline { font-size: 0.85rem; color: var(--smn-muted); }
.entry-hero { margin: 1rem 0 1.5rem; }
.entry-hero figcaption { font-size: 0.8rem; color: var(--smn-muted); padding-top: 0.35rem; }
.entry-content { font-size: 1.0625rem; max-width: 760px; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 4px solid var(--smn-accent); font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th, .entry-content td { padding: 0.5rem; border-bottom: 1px solid var(--smn-border); text-align: left; }
.entry-footer { margin: 1.5rem 0; }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share__btn { padding: 0.5rem 0.9rem; border: 1px solid var(--smn-border); border-radius: 999px; background: var(--smn-surface); color: var(--smn-text); font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.share__btn--whatsapp { border-color: #25d366; }
.share__btn.is-copied { background: var(--smn-accent); }
.entry-tags a { display: inline-block; margin: 0 0.35rem 0.35rem 0; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--smn-surface); font-size: 0.8rem; }
.pagination { margin: 2rem 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers { padding: 0.5rem 0.9rem; border: 1px solid var(--smn-border); border-radius: 8px; }
.pagination .current { background: var(--smn-primary); color: #fff; border-color: var(--smn-primary); }

/* Sidebar */
.widget { margin-bottom: 1.5rem; padding: 1rem; border: 1px solid var(--smn-border); border-radius: var(--smn-radius); background: var(--smn-surface); }
.widget-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.list-posts { margin: 0; padding-left: 1.25rem; }
.list-posts li { margin-bottom: 0.5rem; font-weight: 600; }
.list-posts a { color: var(--smn-text); }

/* Match centre */
.match-center { display: grid; gap: 1rem; }

/* Compliance + footer */
.compliance-strip { background: var(--smn-surface); border-top: 1px solid var(--smn-border); font-size: 0.8rem; color: var(--smn-muted); }
.compliance-strip__row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; padding: 0.6rem var(--smn-gutter); }
.smn-age-badge { display: inline-block; border: 1px solid currentColor; border-radius: 4px; padding: 0 0.3em; font-weight: 800; }
.site-footer { background: var(--smn-secondary); color: #e8eaed; padding: 2rem 0 1rem; }
.site-footer a { color: inherit; }
.site-footer__grid { display: grid; gap: 1.5rem; }
.site-footer .widget { background: transparent; border-color: rgba(255, 255, 255, 0.15); }
.site-footer__legal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.8rem; }
.menu--inline { flex-direction: row; flex-wrap: wrap; gap: 0 1rem; }
.menu--inline a, .site-footer .menu a { border: 0; padding: 0.25rem 0; }
.site-footer__rights { margin: 0.5rem 0 0; opacity: 0.8; }
.notfound { text-align: center; padding: 3rem 0; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--smn-bg: #0f1115;
		--smn-text: #e8eaed;
		--smn-surface: #171a21;
		--smn-border: rgba(255, 255, 255, 0.12);
		--smn-muted: #9aa0a6;
	}
}
:root[data-theme="dark"] {
	--smn-bg: #0f1115;
	--smn-text: #e8eaed;
	--smn-surface: #171a21;
	--smn-border: rgba(255, 255, 255, 0.12);
	--smn-muted: #9aa0a6;
}

/* Tablet + desktop */
@media (min-width: 768px) {
	.card-grid, .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.card-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.hero { grid-template-columns: 1.6fr 1fr; align-items: start; }
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.match-center { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
	.site-header__row { flex-wrap: nowrap; }
	.nav-toggle { display: none; }
	.primary-nav { display: flex; align-items: center; gap: 1.5rem; width: auto; order: 1; padding: 0; flex: 1 1 auto; }
	.menu { flex-direction: row; gap: 0; }
	.menu a { border: 0; padding: 1rem 0.75rem; }
	.menu .sub-menu { display: none; position: absolute; background: var(--smn-bg); border: 1px solid var(--smn-border); border-radius: 8px; padding: 0.5rem; min-width: 180px; }
	.menu li { position: relative; }
	.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; }
	.nav-search { margin: 0; margin-left: auto; }
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
	.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.site-footer__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- promo landing (template-promo.php) ---- */
.btn { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 10px; font-weight: 800; text-decoration: none; border: 2px solid transparent; }
.btn--primary { background: var(--smn-accent); color: var(--smn-text); }
.btn--primary:hover, .btn--primary:focus { filter: brightness(1.08); text-decoration: none; }
.btn--secondary { background: transparent; color: var(--smn-primary); border-color: var(--smn-primary); }
.btn--xl { padding: 1rem 1.6rem; font-size: 1.15rem; }
.promo__hero { background: var(--smn-primary); color: #fff; padding: 3rem 0; }
.promo__hero--off { background: var(--smn-surface); color: var(--smn-text); }
.promo__hero-inner { display: grid; gap: 1rem; max-width: 760px; }
.promo__age { justify-self: start; align-self: start; }
.promo__title { font-size: clamp(1.8rem, 3vw + 1rem, 3rem); line-height: 1.1; margin: 0; }
.promo__sub { font-size: 1.15rem; margin: 0; opacity: 0.95; }
.promo__bonus { font-size: 1.3rem; font-weight: 800; margin: 0; }
.promo__cta { justify-self: start; }
.promo__fineprint { font-size: 0.85rem; opacity: 0.85; margin: 0; }
.promo__steps, .promo__match, .promo__body { padding: 2rem 0; }
.promo__list { display: grid; gap: 0.75rem; padding-left: 1.4rem; font-size: 1.05rem; }
.promo__terms { border: 1px solid var(--smn-border); border-radius: 10px; padding: 1rem; font-size: 0.95rem; background: var(--smn-surface); }
.promo__faq-item { border-bottom: 1px solid var(--smn-border); padding: 0.6rem 0; }
.promo__faq-item summary { cursor: pointer; font-weight: 700; }
.promo__cta-row { text-align: center; margin: 2rem 0; }
.promo__independent { font-size: 0.9rem; color: var(--smn-muted); }
