/*
Theme Name:   CSF Child
Theme URI:    https://www.collegesports-fans.com
Description:  CollegeSports-Fans.com data templates, built on GeneratePress.
Author:       LJ Web Services
Template:     generatepress
Version:      2.3.0
License:      GNU General Public License v2 or later
Text Domain:  csf-child
*/

:root {
	--csf-ink: #16181d;
	--csf-quiet: #5b6472;
	--csf-line: #e2e6ec;
	--csf-tint: #f6f8fa;
	--csf-accent: #1a4f8a;
	--csf-win: #1d7a4c;
	--csf-loss: #a33a3a;
	--csf-radius: 8px;
}

/* ---------------------------------------------------------------- header */

.csf-page-head {
	border-bottom: 2px solid var(--csf-ink);
	padding-bottom: 14px;
	margin-bottom: 24px;
}

.csf-page-head h1 {
	margin: 0 0 6px;
	line-height: 1.15;
}

.csf-conference {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--csf-accent);
	text-decoration: none;
}

.csf-conference:hover {
	text-decoration: underline;
}

/* ----------------------------------------------------------- stat strip */

.csf-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 1px;
	background: var(--csf-line);
	border: 1px solid var(--csf-line);
	border-radius: var(--csf-radius);
	overflow: hidden;
	margin: 0 0 32px;
}

.csf-stat {
	background: #fff;
	padding: 14px 16px;
}

.csf-stat dt {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--csf-quiet);
	margin: 0 0 4px;
}

.csf-stat dd {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- sections */

.csf-section {
	margin: 0 0 40px;
}

.csf-section > h2 {
	font-size: 1.3rem;
	margin: 0 0 4px;
}

.csf-section-note {
	color: var(--csf-quiet);
	font-size: 0.875rem;
	margin: 0 0 16px;
}

/* ---------------------------------------------------------------- tables */

.csf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.925rem;
}

.csf-table th,
.csf-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid var(--csf-line);
	vertical-align: top;
}

.csf-table thead th {
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--csf-quiet);
	border-bottom: 2px solid var(--csf-ink);
	white-space: nowrap;
}

.csf-table tbody tr:hover {
	background: var(--csf-tint);
}

.csf-num {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.csf-result {
	font-weight: 700;
	width: 1.6em;
}

.csf-result.is-w { color: var(--csf-win); }
.csf-result.is-l { color: var(--csf-loss); }

/* --------------------------------------------------- tournament by year */

.csf-year {
	border-bottom: 1px solid var(--csf-line);
	padding: 12px 0;
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 12px;
}

.csf-year:last-child { border-bottom: 0; }

.csf-year-label {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.csf-year-seed {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--csf-quiet);
}

.csf-game {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	padding: 2px 0;
}

.csf-round {
	color: var(--csf-quiet);
	font-size: 0.8rem;
	min-width: 140px;
}

/* ---------------------------------------------------------------- forums */

.csf-forums { list-style: none; margin: 0; padding: 0; }

.csf-forum {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--csf-line);
}

.csf-bar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-variant-numeric: tabular-nums;
}

.csf-bar-track {
	width: 56px;
	height: 7px;
	border-radius: 4px;
	background: var(--csf-line);
	overflow: hidden;
}

.csf-bar-fill {
	display: block;
	height: 100%;
	background: var(--csf-accent);
}

.csf-bar-num {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--csf-quiet);
	width: 1.4em;
}

/* ---------------------------------------------------------------- credit */

.csf-credit {
	margin-top: 40px;
	padding-top: 14px;
	border-top: 1px solid var(--csf-line);
	font-size: 0.8rem;
	color: var(--csf-quiet);
}

.csf-asof {
	font-size: 0.8rem;
	color: var(--csf-quiet);
}

/* ------------------------------------------------------------- archives */

.csf-index {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 2px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.csf-index li { padding: 5px 0; border-bottom: 1px solid var(--csf-line); }

.csf-index .csf-index-meta {
	display: block;
	font-size: 0.75rem;
	color: var(--csf-quiet);
}

.csf-letter {
	margin: 28px 0 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--csf-quiet);
}

@media (max-width: 600px) {
	.csf-year { grid-template-columns: 1fr; gap: 4px; }
	.csf-round { min-width: 0; width: 100%; }
}

/* ------------------------------------------------- view cards (hub page) */

.csf-views {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
	margin: 0 0 36px;
}

.csf-view-card {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--csf-line);
	border-radius: var(--csf-radius);
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.csf-view-card:hover {
	border-color: var(--csf-accent);
	box-shadow: 0 1px 6px rgba(26, 79, 138, 0.1);
}

.csf-view-title {
	display: block;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--csf-accent);
	margin-bottom: 2px;
}

.csf-view-count {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--csf-quiet);
	margin-bottom: 7px;
	font-variant-numeric: tabular-nums;
}

.csf-view-blurb {
	display: block;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--csf-ink);
}

/* --------------------------------------------------- crumb and siblings */

.csf-crumb {
	margin: 0 0 4px;
	font-size: 0.82rem;
}

.csf-crumb a {
	color: var(--csf-quiet);
	text-decoration: none;
}

.csf-crumb a:hover { text-decoration: underline; }

.csf-siblings {
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--csf-line);
}

.csf-siblings h2 { font-size: 1rem; margin: 0 0 8px; }

.csf-siblings ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
}

.csf-siblings li { margin: 0; }

/* The sponsor-era name sits under the bowl's own name, so the link text and
   the heading stay the name the bowl is known by across its whole history. */
.csf-played-as {
	display: block;
	font-size: 0.82em;
	color: #5a5a5a;
}

/* A vacated result is still part of the record and is marked, not hidden. */
.csf-vacated {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0 0.4em;
	border: 1px solid #b23;
	border-radius: 3px;
	font-size: 0.72em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #b23;
	white-space: nowrap;
}

/* A game that was never played still sits in the bracket, so it is labelled
   rather than shown as a 0-0 score. */
.csf-no-contest {
	font-style: italic;
	color: #5a5a5a;
	white-space: nowrap;
}

/* Conference pages put several small links in one cell; they need to read as
   a group of links rather than as a sentence. */
.csf-pagelinks {
	white-space: nowrap;
	font-size: 0.9em;
}

.csf-sep {
	color: #9a9a9a;
	padding: 0 0.15em;
}

/* Band rankings are long-form: a number, a name and a paragraph about them.
   They read as entries rather than as table rows. */
.csf-band-entry {
	margin: 0 0 1.6em;
}

.csf-band-entry h3,
.csf-band-entry h4 {
	margin: 0 0 0.3em;
	font-size: 1.05em;
}

.csf-band-entry p {
	margin: 0;
}

.csf-rank {
	display: inline-block;
	min-width: 1.9em;
	color: #8a8a8a;
	font-variant-numeric: tabular-nums;
}

.csf-group {
	margin: 1.6em 0 0.8em;
	font-size: 1em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a5a5a;
}

/* ------------------------------------------------------------ home page */

.csf-hero {
	border-bottom: 2px solid var(--csf-ink);
	padding-bottom: 22px;
	margin-bottom: 28px;
}

.csf-hero h1 {
	margin: 0 0 10px;
	line-height: 1.1;
}

.csf-hero-lede {
	margin: 0 0 20px;
	max-width: 60ch;
	font-size: 1.05rem;
	color: var(--csf-quiet);
}

.csf-find {
	display: flex;
	gap: 8px;
	max-width: 480px;
}

.csf-find input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--csf-line);
	border-radius: var(--csf-radius);
	font-size: 0.95rem;
}

.csf-find input[type="search"]:focus {
	outline: 2px solid var(--csf-accent);
	outline-offset: 1px;
	border-color: var(--csf-accent);
}

.csf-find button {
	flex: 0 0 auto;
	padding: 9px 18px;
	border: 0;
	border-radius: var(--csf-radius);
	background: var(--csf-accent);
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
}

.csf-find button:hover { background: var(--csf-ink); }

/* ---------------------------------------------------------------- cards */

.csf-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.csf-card {
	border: 1px solid var(--csf-line);
	border-radius: var(--csf-radius);
	padding: 18px 18px 20px;
	background: #fff;
}

.csf-card h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
}

.csf-card h3 a { text-decoration: none; }
.csf-card h3 a:hover { text-decoration: underline; }

.csf-card p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--csf-quiet);
	line-height: 1.5;
}

/* ---------------------------------------------------------------- chips */

.csf-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.csf-chips a {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	padding: 7px 13px;
	border: 1px solid var(--csf-line);
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	color: var(--csf-ink);
}

.csf-chips a:hover {
	border-color: var(--csf-accent);
	color: var(--csf-accent);
}

.csf-chips span {
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
	color: var(--csf-quiet);
}

.csf-chips a:hover span { color: inherit; }

.csf-more {
	margin: 14px 0 0;
	font-size: 0.9rem;
}

.csf-archive-note p {
	margin: 0;
	max-width: 66ch;
	color: var(--csf-quiet);
}

/* --------------------------------------------------------------- mobile */

/* A game table is wider than a phone. Let the table scroll inside its own
   box rather than letting the whole page slide sideways. */
.csf-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
	/* Four stats in a three-wide grid leaves a dead cell showing the grid's
	   background. Two by two fills it. */
	.csf-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.csf-hero h1 { font-size: 1.9rem; }

	.csf-find {
		flex-wrap: wrap;
	}

	.csf-find input[type="search"] { flex: 1 1 100%; }
	.csf-find button { flex: 1 1 100%; }

	.csf-table { font-size: 0.875rem; }
	.csf-table th,
	.csf-table td { padding: 7px 8px; }

	.csf-year {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.csf-round { min-width: 0; }
}

/* ------------------------------------------------- bowl win streaks (home) */

.csf-streaks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
}

.csf-streak-col h3 {
	margin: 0 0 2px;
	font-size: 1rem;
}

.csf-streak-col > .csf-index-meta {
	display: block;
	margin: 0 0 10px;
}

/* The seasons column reads as a range, not a quantity, so it should not be
   forced flush right against the edge of a narrow column. */
.csf-streak-col .csf-table td:last-child,
.csf-streak-col .csf-table th:last-child {
	text-align: right;
	white-space: nowrap;
}

.csf-streak-col .csf-table td .csf-index-meta {
	display: block;
}

/* ------------------------------------------------------- band profile page */

.csf-facts {
	max-width: 440px;
}

.csf-facts th {
	width: 9.5rem;
	text-align: left;
	font-weight: 600;
	white-space: nowrap;
}
