/*
Theme Name: NFL Playoffs Child
Theme URI: https://nflplayoffs.net/
Description: Kadence child theme for nflplayoffs.net. Bracket hero homepage, season settings in the Customizer, answer-first page styles.
Author: NFL Playoffs
Template: kadence
Version: 1.2.0
Requires PHP: 7.4
Text Domain: nfl-playoffs-child
*/

/* ---------- Tokens ---------- */
html:root {
	--npc-night: #0E1B2E;
	--npc-night-2: #16273F;
	--npc-red: #C8102E;
	--npc-red-dark: #9E0C24;
	--npc-steel: #5B6B80;
	--npc-ice: #E6ECF3;
	--npc-chalk: #F2F5F9;
	--npc-mist: #AFC0D6;
	--npc-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
	--npc-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* Kadence global palette */
	--global-palette1: #C8102E;
	--global-palette2: #9E0C24;
	--global-palette3: #0E1B2E;
	--global-palette4: #1D2B40;
	--global-palette5: #3E4C60;
	--global-palette6: #5B6B80;
	--global-palette7: #E6ECF3;
	--global-palette8: #F2F5F9;
	--global-palette9: #FFFFFF;
	--global-body-font-family: var(--npc-body);
	--global-heading-font-family: var(--npc-display);
}

html body { font-family: var(--npc-body); color: #1D2B40; }
html body h1, html body h2, html body h3, html body h4,
html body .site-title, html body .entry-title {
	font-family: var(--npc-display);
	font-weight: 800;
	letter-spacing: 0.005em;
	color: var(--npc-night);
}
html body h1 { line-height: 1; }
html body h2 { line-height: 1.1; }

a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 3px solid var(--npc-red);
	outline-offset: 2px;
}

/* ---------- Header and footer ---------- */
#masthead .site-header-row-container-inner {
	background: var(--npc-night);
}
#masthead .site-main-header-wrap {
	border-bottom: 3px solid var(--npc-red);
}
#masthead .site-title,
#masthead .site-branding a.brand {
	color: #fff;
	font-size: 1.75rem;
	text-decoration: none;
}
#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a {
	color: #DCE4EE;
	font-weight: 600;
}
#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
#masthead .main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a {
	color: #fff;
}
#masthead .mobile-toggle-open-container .menu-toggle-open,
#masthead .mobile-toggle-open-container .menu-toggle-open:hover {
	color: #fff;
}
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner {
	background: var(--npc-night);
	color: var(--npc-mist);
}
.site-footer a { color: #fff; }

/* ---------- Shared layout ---------- */
.npc-front *, .npc-front *::before, .npc-front *::after { box-sizing: border-box; }
.npc-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 1.25rem;
}
.npc-section { padding: 3.5rem 0; }
.npc-section + .npc-section { border-top: 1px solid var(--npc-ice); }
.npc-prose { max-width: 46rem; }
.npc-prose p { font-size: 1.0625rem; line-height: 1.65; }
.npc-section h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); margin: 0 0 1rem; }
.npc-more { font-weight: 700; }

/* ---------- Hero ---------- */
.npc-hero {
	background: var(--npc-night);
	color: #fff;
	padding: 3rem 0 3.5rem;
}
.npc-hero h1 {
	color: #fff;
	font-size: clamp(2.75rem, 8vw, 5.75rem);
	margin: 0 0 1rem;
}
.npc-hero-answer {
	max-width: 44rem;
	font-size: 1.125rem;
	line-height: 1.6;
	color: #D6DEE9;
	margin: 0 0 1.25rem;
}
.npc-countdown {
	margin: 0;
	font-size: 1rem;
	color: var(--npc-mist);
}
.npc-countdown strong { color: #fff; font-weight: 700; }

/* ---------- Bracket ---------- */
.npc-bracket {
	margin-top: 2.5rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}
.npc-round { display: flex; flex-direction: column; }
.npc-round-name {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--npc-mist);
	margin: 0 0 0.75rem;
}
.npc-afc .npc-round-name { text-align: left; }
.npc-nfc .npc-round-name { text-align: right; }
.npc-sb .npc-round-name { text-align: center; color: #fff; }
.npc-round-games {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	gap: 0.75rem;
}
.npc-game {
	position: relative;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.npc-afc .npc-game::after,
.npc-nfc .npc-game::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.npc-afc .npc-game::after { right: -1.25rem; }
.npc-nfc .npc-game::after { left: -1.25rem; }
.npc-team {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.65rem;
	font-size: 0.875rem;
	line-height: 1.3;
	color: var(--npc-night);
}
.npc-team + .npc-team { border-top: 1px solid var(--npc-ice); }
.npc-seed {
	font-family: var(--npc-display);
	font-weight: 800;
	font-size: 1rem;
	color: var(--npc-red);
	min-width: 1.25rem;
	text-align: center;
}
.npc-tbd { color: var(--npc-steel); }
.npc-bye .npc-team { font-weight: 600; }
.npc-bye-note {
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--npc-steel);
}
.npc-sb .npc-round-games { justify-content: center; }
.npc-sb .npc-game { border: 2px solid var(--npc-red); }
.npc-sb-meta {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	text-align: center;
	color: var(--npc-mist);
}

@media (max-width: 1099px) {
	.npc-bracket { grid-template-columns: 1fr; gap: 1.5rem; }
	.npc-afc .npc-round-name, .npc-nfc .npc-round-name, .npc-sb .npc-round-name { text-align: left; }
	.npc-round-games { flex-direction: row; flex-wrap: wrap; }
	.npc-game { flex: 1 1 15rem; }
	.npc-afc .npc-game::after, .npc-nfc .npc-game::after { display: none; }
	.npc-sb .npc-round-games { justify-content: flex-start; }
	.npc-sb-meta { text-align: left; }
	.npc-r-afc-wc { order: 1; }
	.npc-r-afc-div { order: 2; }
	.npc-r-afc-conf { order: 3; }
	.npc-r-nfc-wc { order: 4; }
	.npc-r-nfc-div { order: 5; }
	.npc-r-nfc-conf { order: 6; }
	.npc-r-sb { order: 7; }
}

/* ---------- Tables (front page and content) ---------- */
.npc-table-wrap { overflow-x: auto; margin: 1.5rem 0 0; }
.npc-table,
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	background: #fff;
}
.npc-table th, .npc-table td,
.entry-content table th, .entry-content table td {
	text-align: left;
	padding: 0.8rem 1rem;
	border-bottom: 1px solid var(--npc-ice);
	vertical-align: top;
}
.npc-table thead th,
.entry-content table thead th {
	background: var(--npc-night);
	color: #fff;
	font-weight: 600;
	border-bottom: 3px solid var(--npc-red);
}
.npc-table tbody th { font-weight: 700; color: var(--npc-night); white-space: nowrap; }
.npc-table td:nth-child(2) { white-space: nowrap; }

/* ---------- Explore ---------- */
.npc-explore {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 2.5rem;
}
.npc-explore li { border-top: 1px solid #CFD8E3; }
.npc-explore a {
	display: block;
	padding: 1rem 0 1.1rem;
	text-decoration: none;
	color: inherit;
}
.npc-explore-title {
	display: block;
	font-family: var(--npc-display);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--npc-night);
}
.npc-explore-desc { display: block; color: var(--npc-steel); margin-top: 0.15rem; }
.npc-explore a:hover .npc-explore-title,
.npc-explore a:focus-visible .npc-explore-title {
	color: var(--npc-red);
	text-decoration: underline;
	text-underline-offset: 4px;
}
@media (max-width: 700px) {
	.npc-explore { grid-template-columns: 1fr; }
}

/* ---------- Answer-first content helpers ---------- */
.npc-updated {
	font-size: 0.875rem;
	color: var(--npc-steel);
	margin: 0 0 1.25rem;
}
.entry-content .npc-answer,
.npc-answer {
	background: #fff;
	border-left: 4px solid var(--npc-red);
	padding: 1rem 1.25rem;
	font-size: 1.125rem;
	line-height: 1.6;
	margin: 0 0 1.75rem;
}
.npc-front-content { padding: 3.5rem 0; border-top: 1px solid var(--npc-ice); }

@media print {
	.npc-hero { background: #fff; color: #000; }
	.npc-hero h1, .npc-hero-answer { color: #000; }
}

/* ---------- Schedule table on phones: stacked rows ---------- */
@media (max-width: 600px) {
	.npc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.npc-table, .npc-table tbody, .npc-table tr, .npc-table th, .npc-table td { display: block; width: 100%; }
	.npc-table tr { padding: 0.85rem 1rem; border-bottom: 1px solid var(--npc-ice); border-left: 3px solid var(--npc-red); margin-bottom: 0.5rem; }
	.npc-table tbody th, .npc-table td { padding: 0; border: 0; white-space: normal; }
	.npc-table td:nth-child(2) { font-weight: 600; margin: 0.15rem 0; }
	.npc-table td:last-child { color: var(--npc-steel); }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
	html:root {
		--npc-chalk: #0B1526;
		--npc-ice: #2A3B55;
		--global-palette1: #FF5A6E;
		--global-palette2: #FF8595;
		--global-palette3: #F2F5F9;
		--global-palette4: #E6ECF3;
		--global-palette5: #C5CFDD;
		--global-palette6: #AFC0D6;
		--global-palette7: #2A3B55;
		--global-palette8: #0B1526;
		--global-palette9: #16273F;
	}
	html body { color: #E6ECF3; background: #0B1526; }
	html body h1, html body h2, html body h3, html body h4, html body .entry-title { color: #F2F5F9; }
	html body a { color: #FF8595; }
	.npc-hero { background: #08111F; }
	.npc-section + .npc-section, .npc-front-content { border-color: #2A3B55; }
	.npc-table, .entry-content table, .npc-answer, .entry-content .npc-answer, .npc-game { background: #16273F; color: #E6ECF3; }
	.npc-table th, .npc-table td, .entry-content table th, .entry-content table td { border-color: #2A3B55; }
	.npc-table thead th, .entry-content table thead th { background: #08111F; }
	.npc-table tbody th, .npc-explore-title, .npc-team { color: #F2F5F9; }
	.npc-team + .npc-team { border-color: #2A3B55; }
	.npc-tbd, .npc-bye-note, .npc-explore-desc, .npc-updated, .npc-steel { color: #AFC0D6; }
	.npc-explore li { border-color: #2A3B55; }
	#masthead .site-header-row-container-inner, .site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { background: #08111F; }
	.nph-bracket .nph-meta { border-color: #2A3B55; color: #AFC0D6; }
	.nph-bracket .nph-lost, .nph-bracket .nph-lost .npc-seed { color: #8A98AD; }
	@media (max-width: 600px) { .npc-table tr { border-color: #2A3B55; } }
}

/* ---------- Typography polish ---------- */
html body { font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html body h1 { letter-spacing: 0.01em; }
html body h2 { letter-spacing: 0.01em; }
.entry-content > h2 { margin-top: 2.25rem; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.3rem; }
.npc-table tbody tr:nth-child(even) td, .entry-content table tbody tr:nth-child(even) td { background: rgba(0, 0, 0, 0.015); }
@media (prefers-color-scheme: dark) { .npc-table tbody tr:nth-child(even) td, .entry-content table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); } }
