/*
 * CS2 Pro Scene - matches and tournaments.
 *
 * Same language as the players section (cspl.css): the dark grain, lime for
 * marks on the page, blue for anything that leaves it, gold sweep on the
 * link buttons, corner brackets on sections, a streak behind the headings.
 * Prefixed cspro- so the two stylesheets can sit on one page (the homepage)
 * without fighting.
 */

body.cspro-page {
	background: #0b0d0e;
}

body.cspro-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0075' numOctaves='4' seed='11' stitchTiles='stitch' result='n'/%3E%3CfeColorMatrix in='n' type='matrix' values='0 0 0 0 .635 0 0 0 0 .776 0 0 0 0 0 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23t)' opacity='.02'/%3E%3C/svg%3E"),
		radial-gradient( 72% 56% at 84% -10%, rgba( 255, 255, 255, .05 ), transparent 62% );
	background-repeat: repeat, no-repeat;
	background-size: 900px 900px, auto;
}

.cspro {
	--g: var(--cs-green, #a2c600);
	--g-hi: var(--cs-green-hi, #b4dc0a);
	--g-glow: var(--cs-green-glow, rgba(162,198,0,.18));
	--g-line: var(--cs-green-line, rgba(162,198,0,.40));
	--amber: var(--cs-yellow, #d4a300);
	--red: #ff3b3b;

	--bg: var(--cs-bg, #0b0d0e);
	--surface: var(--cs-surface, #15191a);
	--surface-2: var(--cs-surface-2, #1a1f20);
	--line: var(--cs-line, #232829);
	--line-soft: var(--cs-line-soft, #1c2122);

	--text: var(--cs-text, #e6e8e9);
	--dim: var(--cs-text-dim, #9aa0a2);
	--faint: var(--cs-text-faint, #6b7173);

	--link: var(--csbp-link, #1e90ff);
	--link-hi: var(--cs-text, #ffffff);

	/* Named outright rather than taken from the theme variable: on these
	   pages that variable resolved to the theme's own heading face, so the
	   titles came out in Arial next to the players section in Oswald. */
	--head: 'Oswald', 'Arial Narrow', sans-serif;
	--body: Verdana, Geneva, sans-serif;
	--mono: var(--cs-font-mono, 'JetBrains Mono', 'Consolas', monospace);

	--r: var(--cs-radius, 6px);
	--r-sm: var(--cs-radius-sm, 4px);
	--ease: var(--cs-ease, cubic-bezier(.2,.6,.2,1));
	--fast: var(--cs-fast, .18s);
	--mid: var(--cs-mid, .25s);

	position: relative;
	z-index: 1;
	color: var(--text);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.7;
}

.cspro *,
.cspro *::before,
.cspro *::after {
	box-sizing: border-box;
}

.cspro a,
.cspro a:link,
.cspro a:visited {
	color: var(--link);
	text-decoration: none;
	transition: color var(--fast);
}

.cspro a:hover {
	color: var(--link-hi);
}

.cspro a:focus-visible,
.cspro button:focus-visible {
	outline: 2px solid var(--g);
	outline-offset: 3px;
	border-radius: 2px;
}

.cspro-wrap {
	max-width: var(--cs-container, 1200px);
	margin: 0 auto;
	padding: 40px var(--cs-gutter, 24px) 96px;
}

.cspro-wrap > section {
	margin-bottom: 72px;
}

@keyframes cspro-in {
	from { opacity: 0; transform: translateY( 12px ); }
	to   { opacity: 1; transform: none; }
}

.cspro-wrap > * {
	animation: cspro-in .5s var(--ease) both;
}

.cspro-wrap > *:nth-child(2) { animation-delay: .06s; }
.cspro-wrap > *:nth-child(3) { animation-delay: .12s; }
.cspro-wrap > *:nth-child(4) { animation-delay: .18s; }
.cspro-wrap > *:nth-child(n+5) { animation-delay: .24s; }

@media ( prefers-reduced-motion: reduce ) {
	.cspro *,
	.cspro *::before,
	.cspro *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* -------------------------------------------------------------------------
   Breadcrumbs, headings
   ---------------------------------------------------------------------- */

.cspro-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--faint);
	margin-bottom: 28px;
}

.cspro-crumb-sep { color: var(--line); }
.cspro-crumb-here { color: var(--text); }

.cspro-head {
	margin-bottom: 44px;
}

.cspro-h1 {
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp( 34px, 6vw, 58px );
	line-height: 1.05;
	letter-spacing: .5px;
	margin: 0 0 16px;
}

.cspro-h2 {
	position: relative;
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp( 24px, 3.2vw, 34px );
	letter-spacing: .3px;
	line-height: 1.2;
	padding-top: 16px;
	margin: 0 0 28px;
}

.cspro-h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 36px;
	height: 3px;
	background: var(--g);
	transition: width var(--mid) var(--ease);
}

.cspro-framed:hover .cspro-h2::before {
	width: 72px;
}

.cspro-h2-streak {
	isolation: isolate;
}

.cspro-h2-streak::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	right: 22%;
	top: 9px;
	bottom: -3px;
	background: linear-gradient( 90deg, rgba( 162, 198, 0, .16 ) 0%, rgba( 162, 198, 0, .05 ) 35%, transparent 100% );
	transition: right var(--mid) var(--ease);
}

.cspro-framed:hover .cspro-h2-streak::after {
	right: 6%;
}

.cspro-h3 {
	font-family: var(--head);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: .4px;
	color: var(--g);
	margin: 0 0 14px;
}

.cspro-sub {
	color: var(--dim);
	font-size: 17px;
	line-height: 1.75;
	margin: 0;
}

.cspro-muted { color: var(--faint); }

/* -------------------------------------------------------------------------
   Corner brackets
   ---------------------------------------------------------------------- */

.cspro-framed {
	position: relative;
	padding: 4px 26px 26px;
}

.cspro-framed::before,
.cspro-framed::after {
	content: "";
	position: absolute;
	width: 26px;
	height: 26px;
	pointer-events: none;
	transition: width var(--mid) var(--ease), height var(--mid) var(--ease);
}

.cspro-framed::before {
	bottom: 0;
	left: 0;
	border-bottom: 2px solid var(--g);
	border-left: 2px solid var(--g);
}

.cspro-framed::after {
	top: 0;
	right: 0;
	border-top: 2px solid var(--g);
	border-right: 2px solid var(--g);
}

.cspro-framed:hover::before,
.cspro-framed:hover::after {
	width: 42px;
	height: 42px;
}

/* -------------------------------------------------------------------------
   Notes
   ---------------------------------------------------------------------- */

.cspro-stale {
	display: inline-block;
	margin: 18px 0 0;
	padding: 8px 14px;
	font-size: 14px;
	color: var(--amber);
	border: 1px dashed rgba( 212, 163, 0, .5 );
	border-radius: var(--r-sm);
	background: rgba( 212, 163, 0, .06 );
}

.cspro-empty {
	color: var(--dim);
	margin: 0;
	padding: 28px 0;
}

.cspro-foot {
	margin: 24px 0 0;
	font-size: 14px;
	color: var(--faint);
}

/* -------------------------------------------------------------------------
   Tabs
   ---------------------------------------------------------------------- */

.cspro-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding-top: 14px;
}

.cspro .cspro-tab {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 11px 20px;
	border-radius: var(--r-sm);
	border: 1px solid var(--line);
	background: transparent;
	color: var(--dim);
	cursor: pointer;
	box-shadow: none;
	transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.cspro .cspro-tab:hover {
	color: var(--text);
	border-color: var(--g-line);
}

.cspro .cspro-tab[aria-selected="true"] {
	color: var(--g);
	border-color: var(--g);
	background: var(--g-glow);
}

.cspro-tab-n {
	font-size: 13px;
	padding: 1px 8px;
	border-radius: 10px;
	background: var(--surface-2);
	color: var(--dim);
}

.cspro .cspro-tab[aria-selected="true"] .cspro-tab-n {
	background: var(--g);
	color: #0b0d0e;
}

.cspro-pane[hidden] { display: none; }

/* -------------------------------------------------------------------------
   Match rows
   ---------------------------------------------------------------------- */

.cspro-matches {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cspro-day {
	margin: 16px 0 4px;
	font-family: var(--head);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--faint);
}

.cspro-matches .cspro-day:first-child { margin-top: 0; }

.cspro-match {
	position: relative;
	display: grid;
	grid-template-columns: minmax( 180px, 1.1fr ) minmax( 0, 2.4fr ) minmax( 120px, .8fr );
	align-items: center;
	gap: 18px;
	padding: 14px 18px;
	background: rgba( 21, 25, 26, .78 );
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	transition: border-color var(--mid), transform var(--mid), box-shadow var(--mid);
}

.cspro-match::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--line);
	transition: background var(--mid);
}

.cspro-match:hover {
	border-color: var(--g-line);
	transform: translateY( -2px );
	box-shadow: 0 14px 30px rgba( 0, 0, 0, .4 );
}

.cspro-match.is-ours::before { background: var(--g); }
.cspro-match.is-live::before { background: var(--red); }
.cspro-match.is-done { opacity: .92; }

.cspro-match.is-compact {
	grid-template-columns: minmax( 0, 1fr ) auto;
	padding: 12px 16px;
}

.cspro-match-event {
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr );
	grid-template-rows: auto auto;
	column-gap: 10px;
	align-items: center;
	min-width: 0;
}

.cspro-event-mark {
	grid-row: 1 / 3;
	width: 22px;
	height: 22px;
	object-fit: contain;
	background: #fff;
	border-radius: 4px;
	padding: 2px;
}

.cspro-match-event-name {
	font-family: var(--head);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .3px;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cspro-match-stage {
	font-size: 12.5px;
	color: var(--faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cspro-match-teams {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto minmax( 0, 1fr );
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.cspro-side {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.cspro-side-a {
	justify-content: flex-end;
	text-align: right;
}

.cspro-side-a .cspro-logo { order: 2; }

.cspro-team-name,
.cspro-team-short {
	font-family: var(--head);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .3px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cspro-team-short { display: none; }

.cspro-side.is-win .cspro-team-name,
.cspro-side.is-win .cspro-team-short { color: var(--text); }

.cspro-match.is-done .cspro-side:not(.is-win) .cspro-team-name,
.cspro-match.is-done .cspro-side:not(.is-win) .cspro-team-short { color: var(--dim); }

.cspro-side.is-tbd { color: var(--faint); }

.cspro-team-plain { color: inherit; }

/* A logo box a shade lighter than the row: PandaScore draws its PNGs for
   light pages and a few are near black. */
.cspro-logo {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	object-fit: contain;
	padding: 4px;
	border-radius: var(--r-sm);
	background: var(--surface-2);
	border: 1px solid var(--line-soft);
}

.cspro-logo-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--dim);
}

.cspro-match-mid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 72px;
}

.cspro-score {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--head);
	font-size: 26px;
	font-weight: 600;
	line-height: 1;
}

.cspro-score b { color: var(--dim); font-weight: 600; }
.cspro-score b.is-win { color: var(--g); }
.cspro-score i { font-style: normal; color: var(--faint); }
.cspro-match.is-live .cspro-score b { color: var(--text); }

.cspro-vs {
	font-family: var(--head);
	font-size: 15px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--faint);
}

.cspro-bo {
	font-size: 11.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--faint);
}

.cspro-match-when {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	text-align: right;
	font-family: var(--head);
	font-size: 16px;
	letter-spacing: .3px;
	color: var(--text);
	white-space: nowrap;
}

.cspro-match.is-compact .cspro-match-when { font-size: 15px; }

.cspro-time { color: var(--text); }
.cspro-match.is-done .cspro-time { color: var(--dim); font-size: 14px; }

.cspro-note {
	font-size: 12px;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--amber);
}

@keyframes cspro-pulse {
	0%, 100% { opacity: 1; transform: scale( 1 ); }
	50%      { opacity: .45; transform: scale( .7 ); }
}

.cspro-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--red);
}

.cspro-live i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 10px rgba( 255, 59, 59, .8 );
	animation: cspro-pulse 1.6s ease-in-out infinite;
}

.cspro a.cspro-watch,
.cspro a.cspro-watch:link,
.cspro a.cspro-watch:visited {
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--link);
}

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

.cspro-events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	/* auto-fit, so one event takes the whole row and two share it; a
	   lone card at a third of the width wrapped its own title. */
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 460px ), 1fr ) );
	gap: 16px;
}

.cspro-events.is-row {
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 360px ), 1fr ) );
}

.cspro-event {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 22px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	transition: border-color var(--mid), transform var(--mid), box-shadow var(--mid);
}

.cspro-event::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: linear-gradient( 90deg, var(--g), transparent 70% );
	opacity: .35;
	transition: opacity var(--mid);
}

.cspro-event.is-running::before { background: linear-gradient( 90deg, var(--red), transparent 70% ); opacity: .8; }
.cspro-event.is-past { opacity: .85; }

.cspro-event:hover {
	border-color: var(--g-line);
	transform: translateY( -3px );
	box-shadow: 0 18px 40px rgba( 0, 0, 0, .45 );
}

.cspro-event:hover::before { opacity: 1; }

.cspro-event-head {
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr ) auto;
	gap: 16px;
	align-items: center;
}

.cspro-event-logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
	padding: 6px;
	border-radius: var(--r-sm);
	background: #fff;
}

.cspro-event-title { min-width: 0; }

.cspro-event-title h3 {
	font-family: var(--head);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .3px;
	line-height: 1.2;
	margin: 0 0 6px;
	color: var(--text);
}

.cspro-event-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	color: var(--dim);
}

.cspro-tier {
	font-family: var(--head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	padding: 2px 8px;
	border-radius: 3px;
	border: 1px solid var(--line);
	color: var(--dim);
}

.cspro-tier-s { color: var(--amber); border-color: rgba( 212, 163, 0, .5 ); }
.cspro-tier-a { color: var(--g); border-color: var(--g-line); }
.cspro-tier-b { color: var(--link); border-color: rgba( 30, 144, 255, .45 ); }

.cspro-prize {
	text-align: right;
	white-space: nowrap;
}

.cspro-prize b {
	display: block;
	font-family: var(--head);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	color: var(--g);
}

.cspro-prize span {
	font-size: 11.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--faint);
}

.cspro-stages {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}

.cspro-stages li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 10px;
	border-radius: var(--r-sm);
	background: rgba( 255, 255, 255, .02 );
	color: var(--dim);
}

.cspro-stages li.is-running { color: var(--text); background: rgba( 162, 198, 0, .07 ); }
.cspro-stages li.is-past { opacity: .7; }
.cspro-stage-dates { white-space: nowrap; color: var(--faint); }
.cspro-stages li.is-running .cspro-stage-dates { color: var(--g); }

.cspro-event-teams {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cspro-event-teams li {
	display: inline-flex;
}

.cspro-event-teams li > a,
.cspro-event-teams li > span,
.cspro-event-teams li > img {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px 3px 3px;
	border-radius: var(--r-sm);
	border: 1px solid var(--line-soft);
	background: rgba( 255, 255, 255, .02 );
	font-family: var(--head);
	font-size: 13px;
	letter-spacing: .4px;
	color: var(--dim);
}

.cspro-event-teams li.is-ours > a {
	border-color: var(--g-line);
	color: var(--link);
}

.cspro-event-teams li.is-ours > a:hover { color: var(--link-hi); }

.cspro-event-teams .cspro-logo {
	width: 26px;
	height: 26px;
	padding: 2px;
}

.cspro-event-teams li.cspro-more {
	align-items: center;
	padding: 0 8px;
	font-size: 13px;
	color: var(--faint);
}

.cspro-event.is-compact .cspro-event-teams li > a,
.cspro-event.is-compact .cspro-event-teams li > span { padding-right: 6px; }

/* -------------------------------------------------------------------------
   Link cards with the gold sweep
   ---------------------------------------------------------------------- */

.cspro-links {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cspro a.cspro-btn-link,
.cspro a.cspro-btn-link:link,
.cspro a.cspro-btn-link:visited {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	border: 1px solid rgba( 30, 144, 255, .45 );
	border-radius: var(--r-sm);
	color: var(--link);
	overflow: hidden;
	transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.cspro a.cspro-btn-link b {
	font-family: var(--head);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: .8px;
	text-transform: uppercase;
}

.cspro a.cspro-btn-link span {
	font-size: 14px;
	color: var(--dim);
}

.cspro a.cspro-btn-link::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 55%;
	background: linear-gradient( 100deg, transparent, rgba( 212, 163, 0, .35 ), transparent );
	transform: skewX( -18deg );
	pointer-events: none;
}

.cspro a.cspro-btn-link:hover {
	color: var(--link-hi);
	border-color: var(--link);
	background: rgba( 30, 144, 255, .10 );
}

@keyframes cspro-gold {
	0%   { left: -60%; }
	100% { left: 130%; }
}

.cspro a.cspro-btn-link:hover::before {
	animation: cspro-gold 1.1s var(--ease);
}

.cspro a.cspro-btn-inline,
.cspro a.cspro-btn-inline:link,
.cspro a.cspro-btn-inline:visited {
	display: inline-flex;
	margin-top: 16px;
	padding: 12px 22px;
}

.cspro a.cspro-btn-inline b { font-size: 15px; }

/* -------------------------------------------------------------------------
   Homepage block
   ---------------------------------------------------------------------- */

.cspro-home {
	max-width: var(--cs-container, 1200px);
	margin: 0 auto;
}

.cspro-home-grid {
	display: grid;
	grid-template-columns: minmax( 0, 1.6fr ) minmax( 280px, 1fr );
	gap: 28px;
	align-items: start;
}

.cspro-home .cspro-events { grid-template-columns: 1fr; }

.cspro-counters {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.cspro-counters a,
.cspro-counters a:link,
.cspro-counters a:visited {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--g);
	border-radius: var(--r);
	background: var(--surface);
	color: var(--text);
	transition: border-color var(--mid), transform var(--mid);
}

.cspro-counters a:hover {
	border-color: var(--g-line);
	border-left-color: var(--g);
	transform: translateY( -2px );
}

.cspro-counters b {
	display: block;
	font-family: var(--head);
	font-size: 32px;
	font-weight: 600;
	line-height: 1;
	color: var(--g);
}

.cspro-counters span {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--dim);
}

/* -------------------------------------------------------------------------
   Narrow screens
   ---------------------------------------------------------------------- */

@media ( max-width: 1080px ) {
	.cspro-match {
		grid-template-columns: minmax( 0, 1fr ) auto;
	}
	.cspro-match-event {
		grid-column: 1 / -1;
		order: -1;
	}
	.cspro-home-grid { grid-template-columns: 1fr; }
}

@media ( max-width: 760px ) {
	.cspro-wrap { padding: 24px 16px 64px; }
	.cspro-wrap > section { margin-bottom: 48px; }
	.cspro-framed { padding: 4px 14px 18px; }

	.cspro-team-name { display: none; }
	.cspro-team-short { display: inline; }
	.cspro-logo { width: 32px; height: 32px; }
	.cspro-score { font-size: 22px; }
	.cspro-match-teams { gap: 8px; }

	.cspro-match {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.cspro-match-when {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	.cspro-events,
	.cspro-events.is-row { grid-template-columns: 1fr; }
	.cspro-event-head { grid-template-columns: auto minmax( 0, 1fr ); }
	.cspro-prize { grid-column: 1 / -1; text-align: left; }
	.cspro-counters { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Compact homepage block: [csbepro_pro_home]

   Event on the left, matches on the right. No headings of its own; the
   section around it has one.
   ---------------------------------------------------------------------- */

.cspro-home2 {
	max-width: var(--cs-container, 1200px);
	margin: 0 auto;
}

.cspro-home2-grid {
	display: grid;
	grid-template-columns: minmax( 300px, 2fr ) minmax( 0, 3fr );
	gap: 24px;
	align-items: start;
}

.cspro-home2 .cspro-events {
	grid-template-columns: 1fr;
}

.cspro-home2 .cspro-matches + .cspro-matches,
.cspro-home2-label {
	margin-top: 18px;
}

.cspro-home2-label {
	margin-bottom: 8px;
	font-family: var(--head);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--faint);
}

/* Event column is narrower than a page row, so the row drops to two lines
   as it does on a phone. */
.cspro-home2 .cspro-match {
	grid-template-columns: minmax( 0, 1fr ) auto;
	padding: 11px 16px;
}

.cspro-home2 .cspro-match-event {
	grid-column: 1 / -1;
	order: -1;
	grid-template-rows: auto;
	grid-template-columns: auto minmax( 0, 1fr ) auto;
}

.cspro-home2 .cspro-event-mark { grid-row: auto; width: 18px; height: 18px; }
.cspro-home2 .cspro-match-event-name { font-size: 14px; }
.cspro-home2 .cspro-match-stage { font-size: 12px; }
.cspro-home2 .cspro-team-name { font-size: 16px; }
.cspro-home2 .cspro-logo { width: 32px; height: 32px; }
.cspro-home2 .cspro-score { font-size: 22px; }

.cspro a.cspro-more-link,
.cspro a.cspro-more-link:link,
.cspro a.cspro-more-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-family: var(--head);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--link);
}

.cspro a.cspro-more-link span {
	transition: transform var(--fast);
}

.cspro a.cspro-more-link:hover {
	color: var(--link-hi);
}

.cspro a.cspro-more-link:hover span {
	transform: translateX( 4px );
}

@media ( max-width: 900px ) {
	.cspro-home2-grid { grid-template-columns: 1fr; }
}
