/*
Theme Name: Cotton Bowl Info
Description: Child theme of Neve for cottonbowlinfo.com. Navy, cream and red palette, readable tables, breadcrumb, an On this page list, a game card on the home page and a footer line that states the site is independent. No JavaScript.
Author: M Muktadir
Template: neve
Version: 1.2.7
License: GPL-2.0-or-later
Text Domain: cotton-bowl-info
*/

/* Palette. These override the colors Neve prints from the Customizer. */
:root {
	--nv-primary-accent: #10243f;
	--nv-secondary-accent: #b3261e;
	--nv-site-bg: #f8f5ee;
	--nv-light-bg: #ffffff;
	--nv-dark-bg: #10243f;
	--nv-text-color: #1b2430;
	--nv-text-dark-bg: #ffffff;
	--nv-c-1: #b3261e;
	--nv-c-2: #d9dee5;
	--cbi-navy: #10243f;
	--cbi-red: #b3261e;
	--cbi-cream: #f8f5ee;
	--cbi-line: #d9dee5;
	--cbi-muted: #5b6573;
}

body {
	background-color: var(--cbi-cream);
	color: #1b2430;
}

/* Header: navy bar, white links. */
.hfg_header .header--row {
	--bgcolor: var(--cbi-navy);
	--color: #ffffff;
	background-color: var(--cbi-navy);
	color: #ffffff;
}

.hfg_header .header--row .site-title,
.hfg_header .header--row .site-title a,
.hfg_header .header--row .site-logo a,
.hfg_header .header--row .site-logo p,
.hfg_header .header--row .nav-ul li > a,
.hfg_header .header--row .nav-ul li > .wrap > a {
	color: #ffffff;
}

.hfg_header .header--row .nav-ul li > a:hover,
.hfg_header .header--row .nav-ul li.current-menu-item > a,
.hfg_header .header--row .nav-ul li > .wrap > a:hover,
.hfg_header .header--row .nav-ul li.current-menu-item > .wrap > a {
	color: #ffd9d4;
}

.hfg_header .header--row .navbar-toggle,
.hfg_header .header--row .navbar-toggle .icon-bar {
	color: #ffffff;
	border-color: #ffffff;
}

/* Logo: sized by height, so the wide lockup stays readable. */
.hfg_header .builder-item--logo .site-logo img.neve-site-logo {
	max-width: none;
	width: auto;
	height: 30px;
}

@media (min-width: 960px) {
	.hfg_header .builder-item--logo .site-logo img.neve-site-logo {
		height: 40px;
	}
}

/* Title block: centered, with less empty space above and below. */
.nv-page-title-wrap {
	margin-top: 2rem;
}

.nv-page-title-wrap .nv-page-title,
.nv-single-post-wrap .entry-header {
	--textalign: center;
	text-align: center;
}

.nv-page-title-wrap .nv-page-title h1,
.nv-single-post-wrap .entry-header .title {
	margin: 0 auto 1.4rem;
	text-wrap: balance;
}

/* Desktop: keep the title on one line when it fits. */
@media (min-width: 960px) {
	.nv-page-title-wrap .nv-page-title h1,
	.nv-single-post-wrap .entry-header .title {
		font-size: 2.25rem;
		text-wrap: pretty;
	}
}

.nv-single-post-wrap .entry-header:first-child {
	margin-top: 2rem;
	margin-bottom: 0;
}

.cbi-breadcrumb ol {
	justify-content: center;
}

@media (max-width: 600px) {
	.nv-page-title-wrap,
	.nv-single-post-wrap .entry-header:first-child {
		margin-top: 1.4rem;
	}

	.nv-page-title-wrap .nv-page-title h1,
	.nv-single-post-wrap .entry-header .title {
		margin-bottom: 1.1rem;
	}
}

/* The page card: white column on the cream background. */
.single-page-container .nv-content-wrap,
.nv-single-post-wrap .nv-content-wrap {
	background: #ffffff;
	border: 1px solid var(--cbi-line);
	border-radius: 10px;
	padding: 1.5rem 1.25rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 960px) {
	.single-page-container .nv-content-wrap,
	.nv-single-post-wrap .nv-content-wrap {
		padding: 2.25rem 2.5rem;
	}
}

/* Type. */
h1,
h2,
h3,
.nv-page-title h1,
.entry-title {
	color: var(--cbi-navy);
	line-height: 1.25;
}

.nv-content-wrap h2 {
	margin-top: 2.25rem;
	padding-top: 1.25rem;
	border-top: 2px solid var(--cbi-line);
}

.nv-content-wrap p,
.nv-content-wrap li {
	line-height: 1.7;
}

.nv-content-wrap a {
	color: var(--cbi-red);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nv-content-wrap a:hover {
	color: var(--cbi-navy);
}

.nv-content-wrap .has-small-font-size {
	color: var(--cbi-muted);
	font-size: 0.85rem;
}

/* Tables. */
.nv-content-wrap .wp-block-table {
	margin: 0 0 1.5rem;
	overflow-x: auto;
}

.nv-content-wrap .wp-block-table table,
.nv-content-wrap table.cbh-facts {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	font-size: 0.95rem;
}

.nv-content-wrap .wp-block-table th,
.nv-content-wrap .wp-block-table td,
.nv-content-wrap table.cbh-facts th,
.nv-content-wrap table.cbh-facts td {
	border: 1px solid var(--cbi-line);
	padding: 0.6rem 0.8rem;
	text-align: left;
	vertical-align: top;
}

.nv-content-wrap .wp-block-table thead th {
	background: var(--cbi-navy);
	color: #ffffff;
	font-weight: 700;
}

.nv-content-wrap .wp-block-table tbody tr:nth-child(even) td {
	background: #fbfaf6;
}

/* Two-column quick-facts tables: the label column. */
.nv-content-wrap .wp-block-table tbody td:first-child strong {
	color: var(--cbi-navy);
}

/* Lists. */
.nv-content-wrap ul,
.nv-content-wrap ol {
	padding-left: 1.3rem;
}

.nv-content-wrap li {
	margin-bottom: 0.4rem;
}

/* Rank Math FAQ block. */
.nv-content-wrap .rank-math-faq-item,
.nv-content-wrap .rank-math-list-item {
	border: 1px solid var(--cbi-line);
	border-radius: 8px;
	padding: 0.9rem 1.1rem;
	margin: 0 0 0.75rem;
	background: #fbfaf6;
}

.nv-content-wrap .rank-math-faq-item .rank-math-question,
.nv-content-wrap .rank-math-list-item .rank-math-question {
	font-size: 1.05rem;
	margin: 0 0 0.35rem;
	padding: 0;
	border: 0;
}

.nv-content-wrap .rank-math-faq-item .rank-math-answer,
.nv-content-wrap .rank-math-list-item .rank-math-answer {
	margin: 0;
}

/* Footer. */
.site-footer {
	background: var(--cbi-navy);
	color: #ffffff;
}

.site-footer .footer--row {
	--bgcolor: var(--cbi-navy);
	--color: #ffffff;
	background-color: var(--cbi-navy);
	color: #ffffff;
}

.site-footer a,
.site-footer .nav-ul li > a {
	color: #ffffff;
}

.site-footer a:hover,
.site-footer .nav-ul li > a:hover {
	color: #ffd9d4;
}

/* Footer: one centered block printed by the child theme (logo, links,
   independence line, copyright). */
.site-footer .footer-bottom-inner .row {
	grid-template-columns: 1fr;
	padding: 0;
}

.site-footer .footer-bottom-inner .hfg-slot {
	justify-content: center;
	text-align: center;
}

.site-footer .footer-bottom-inner .hfg-slot:empty,
.site-footer .hfg-slot:has(> .builder-item > .builder-item--footer-menu),
.site-footer .builder-item--footer-menu {
	display: none;
}

.site-footer .builder-item.cr,
.site-footer .builder-item.cr .item--inner,
.site-footer .builder-item.cr .component-wrap {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.site-footer .builder-item.cr .component-wrap {
	justify-content: center;
}

.site-footer .builder-item.cr .component-wrap > div {
	width: 100%;
}

.cbi-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.1rem;
	padding: 2.5rem 0 2rem;
	text-align: center;
}

.cbi-footer-logo img {
	display: block;
	width: auto;
	height: 28px;
}

.cbi-footer-name {
	font-weight: 800;
	font-size: 1.1rem;
	text-decoration: none;
}

.cbi-footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1.5rem;
	font-size: 0.92rem;
}

.site-footer .builder-item.cr .cbi-footer-nav a {
	color: #ffffff;
	text-decoration: none;
}

.site-footer .builder-item.cr .cbi-footer-nav a:hover {
	color: #ffd9d4;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cbi-footer p {
	margin: 0;
}

.cbi-footer .cbi-footer-note {
	max-width: 600px;
	padding-top: 1.1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8rem;
	line-height: 1.6;
	color: #b4c0d0;
}

.cbi-footer .cbi-footer-copy {
	font-size: 0.78rem;
	color: #8a9bb2;
}

@media (max-width: 600px) {
	.cbi-footer {
		padding: 2rem 1rem 1.5rem;
	}

	.cbi-footer-nav {
		gap: 0.5rem 0.9rem;
		font-size: 0.86rem;
	}
}

/* FAQ answers: no trailing gap inside the card. */
.nv-content-wrap .rank-math-answer p:last-child {
	margin-bottom: 0;
}

/* Phones: tighter tables so more columns fit, and no floating button over the text. */
@media (max-width: 600px) {
	.nv-content-wrap .wp-block-table th,
	.nv-content-wrap .wp-block-table td {
		font-size: 0.8rem;
		line-height: 1.4;
		padding: 0.5rem 0.5rem;
	}

	.nv-content-wrap .wp-block-table {
		margin-left: -0.35rem;
		margin-right: -0.35rem;
	}

	.scroll-to-top {
		display: none !important;
	}
}

/* Single posts: the plugin prints the byline, so hide Neve's own meta line. */
.single-post .nv-post-cover .nv-meta-list,
.single-post .entry-header .nv-meta-list,
.single-post .nv-title-meta-wrap .nv-meta-list {
	display: none;
}

/* ------------------------------------------------------------------
 * 1.1.0
 * ---------------------------------------------------------------- */

/* Keyboard focus: a clear ring on every link, button and summary. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
	outline: 3px solid var(--cbi-red);
	outline-offset: 2px;
	border-radius: 2px;
}

.hfg_header a:focus-visible,
.hfg_header button:focus-visible,
.site-footer a:focus-visible,
.cbi-hero a:focus-visible {
	outline-color: #ffffff;
}

/* Jumps from the On this page list land below the top edge. */
.nv-content-wrap h2[id] {
	scroll-margin-top: 1rem;
}

/* Breadcrumb above the title. */
.cbi-breadcrumb {
	margin: 0 0 0.6rem;
	font-size: 0.85rem;
	color: var(--cbi-muted);
}

.cbi-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cbi-breadcrumb li + li::before {
	content: "\203A";
	margin-right: 0.35rem;
	color: #9aa3ae;
}

.cbi-breadcrumb a {
	color: var(--cbi-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cbi-breadcrumb a:hover {
	color: var(--cbi-red);
}

.cbi-breadcrumb [aria-current="page"] {
	color: var(--cbi-navy);
}

/* On this page list. */
.cbi-toc {
	margin: 0 0 1.75rem;
	border: 1px solid var(--cbi-line);
	border-left: 4px solid var(--cbi-navy);
	border-radius: 8px;
	background: #fbfaf6;
}

.cbi-toc summary {
	cursor: pointer;
	padding: 0.8rem 1rem;
	font-weight: 700;
	color: var(--cbi-navy);
	list-style: none;
}

.cbi-toc summary::-webkit-details-marker {
	display: none;
}

.cbi-toc summary::after {
	content: "+";
	float: right;
	font-weight: 700;
	color: var(--cbi-red);
}

.cbi-toc[open] summary::after {
	content: "\2212";
}

.cbi-toc-count {
	margin-left: 0.35rem;
	font-weight: 400;
	font-size: 0.85rem;
	color: var(--cbi-muted);
}

.nv-content-wrap .cbi-toc ol {
	margin: 0;
	padding: 0 1rem 0.9rem 2.3rem;
}

.nv-content-wrap .cbi-toc li {
	margin: 0 0 0.3rem;
	line-height: 1.5;
}

.nv-content-wrap .cbi-toc a {
	color: var(--cbi-navy);
	text-decoration: none;
}

.nv-content-wrap .cbi-toc a:hover {
	color: var(--cbi-red);
	text-decoration: underline;
}

/* Game card on the home page. */
.cbi-hero {
	position: relative;
	margin: 0.25rem 0 1.75rem;
	padding: 1.4rem 1.25rem 1.25rem;
	border-radius: 10px;
	background: linear-gradient(135deg, #10243f 0%, #1b3a63 100%);
	color: #ffffff;
	overflow: hidden;
}

.cbi-hero::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: var(--cbi-red);
}

.nv-content-wrap .cbi-hero p {
	margin: 0;
	line-height: 1.35;
}

.nv-content-wrap .cbi-hero .cbi-hero-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #c9d3e1;
}

.nv-content-wrap .cbi-hero .cbi-hero-date {
	margin-top: 0.5rem;
	font-size: clamp(1.55rem, 4.5vw, 2.3rem);
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
}

.nv-content-wrap .cbi-hero .cbi-hero-venue {
	margin-top: 0.3rem;
	font-size: 1.02rem;
	color: #e6ebf2;
}

.cbi-hero-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.6rem;
	margin: 1rem 0;
}

.cbi-hero-facts div {
	padding: 0.6rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
}

.cbi-hero-facts dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #c9d3e1;
}

.nv-content-wrap .cbi-hero-facts dd {
	margin: 0.15rem 0 0;
	padding: 0;
	font-weight: 600;
	color: #ffffff;
}

.cbi-hero .cbh-countdown {
	margin: 0 0 1rem;
	border-color: rgba(255, 255, 255, 0.18);
	border-left-color: var(--cbi-red);
	background: #ffffff;
	color: var(--cbi-navy);
}

.cbi-hero .cbh-countdown-text {
	color: #1b2430;
}

.cbi-hero-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nv-content-wrap .cbi-hero-links a {
	display: inline-block;
	padding: 0.5rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	color: #ffffff;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
}

.nv-content-wrap .cbi-hero-links a:hover {
	background: #ffffff;
	color: var(--cbi-navy);
}

@media (min-width: 960px) {
	.cbi-hero {
		padding: 1.75rem 2rem 1.6rem;
	}
}

/* Wide tables on phones: the first column stays in view, and tables with
   5 or more columns say they scroll. */
@media (max-width: 600px) {
	.nv-content-wrap .wp-block-table:has(tr > :nth-child(4)) tr > :first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		background: #ffffff;
		box-shadow: inset -2px 0 0 var(--cbi-line);
	}

	.nv-content-wrap .wp-block-table:has(tr > :nth-child(4)) tbody tr:nth-child(even) > :first-child {
		background: #fbfaf6;
	}

	.nv-content-wrap .wp-block-table:has(tr > :nth-child(4)) thead tr > :first-child {
		background: var(--cbi-navy);
	}

	.nv-content-wrap .wp-block-table:has(tr > :nth-child(5))::after {
		content: "If a column is cut off, swipe the table sideways \2192";
		display: block;
		padding: 0.4rem 0.1rem 0;
		font-size: 0.78rem;
		color: var(--cbi-muted);
	}
}

@media print {
	.hfg_header,
	.site-footer,
	.cbi-breadcrumb,
	.cbi-toc,
	.cbi-hero-links {
		display: none;
	}
}

/* FAQ accordion (1.2.7): white cards with a round plus button, in the site colors. */
.nv-content-wrap .rank-math-list-item.cbi-faq-item {
	background: #ffffff;
	border: 1px solid var(--cbi-line);
	border-radius: 10px;
	padding: 0;
	margin: 0 0 0.7rem;
	box-shadow: 0 1px 2px rgba(16, 36, 63, 0.05);
	transition: border-color 0.15s ease;
}

.nv-content-wrap .cbi-faq-item[open] {
	border-color: #b9c3d1;
	box-shadow: 0 4px 14px rgba(16, 36, 63, 0.07);
}

.nv-content-wrap .cbi-faq-item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	cursor: pointer;
	list-style: none;
	border-radius: 10px;
}

.nv-content-wrap .cbi-faq-item > summary::-webkit-details-marker {
	display: none;
}

.nv-content-wrap .cbi-faq-item > summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--cbi-cream);
	color: var(--cbi-navy);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nv-content-wrap .cbi-faq-item > summary:hover::after {
	background: #ece5d6;
}

.nv-content-wrap .cbi-faq-item[open] > summary::after {
	content: "\2212";
	background: var(--cbi-navy);
	color: #ffffff;
}

.nv-content-wrap .cbi-faq-item > summary:focus-visible {
	outline: 2px solid var(--cbi-red);
	outline-offset: 2px;
}

.nv-content-wrap .cbi-faq-item .rank-math-question {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.4;
	color: var(--cbi-navy);
}

.nv-content-wrap .cbi-faq-item .rank-math-answer {
	padding: 0 1.15rem 1.1rem;
	margin: 0;
}

@media (max-width: 600px) {
	.nv-content-wrap .cbi-faq-item > summary {
		padding: 0.9rem 1rem;
	}

	.nv-content-wrap .cbi-faq-item .rank-math-question {
		font-size: 1rem;
	}

	.nv-content-wrap .cbi-faq-item .rank-math-answer {
		padding: 0 1rem 1rem;
	}
}
