/*
Theme Name: Caveman Circus
Theme URI: https://cavemancircus.com/
Author: Caveman Circus
Description: The Caveman Circus homepage: a games row with caveman pictures that fills itself from the Caveman Circus Games plugin, Yesterday's champion and Today's leaderboard from Points, then full posts up to the More tag with a sidebar. Newsprint look on warm paper, set in Rubik. Search bar and an accordion menu in the header; on phones the search bar opens from a button. Settings live in Appearance > Customize > Caveman Circus.
Version: 3.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cavemancircus
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ---------- Tokens ---------- */
:root {
	--cc-yellow: #F5E04A;
	--cc-blue: #1F5BE0;
	--cc-ink: #1A1814;
	--cc-paper: #FAF8F3;
	--cc-white: #FFFFFF;
	--cc-muted: #5C554B;
	--cc-rule: #CFC8BC;
	--cc-sand: #EFE3C8;
	--cc-soft: #F2EFE8;
	--cc-font: Rubik, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--cc-wrap: 1200px;
	--cc-gutter: 24px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--cc-paper);
	color: var(--cc-ink);
	font-family: var(--cc-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a {
	color: var(--cc-ink);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
img,
svg,
video {
	max-width: 100%;
}
img {
	height: auto;
}
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}
:focus-visible {
	outline: 3px solid var(--cc-blue);
	outline-offset: 2px;
}
[hidden] {
	display: none !important;
}
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	left: 12px;
	top: 12px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--cc-yellow);
	border: 1px solid var(--cc-ink);
	font-weight: 700;
}
.cc-wrap {
	max-width: calc(var(--cc-wrap) + var(--cc-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--cc-gutter);
}

/* ---------- Shared bits ---------- */
.cc-title {
	margin: 0;
	font-weight: 800;
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.cc-title--mark {
	display: inline;
	padding: 0 4px;
	background: linear-gradient(transparent 58%, var(--cc-yellow) 58%, var(--cc-yellow) 92%, transparent 92%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.cc-label {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cc-blue);
}
.cc-kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cc-blue);
	margin: 0;
}
.cc-button,
.entry-content .wp-block-button__link,
input[type="submit"],
.cc-comments .submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--cc-yellow);
	color: var(--cc-ink);
	border: 1px solid var(--cc-ink);
	border-radius: 0;
	padding: 11px 20px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}
.cc-button:hover,
input[type="submit"]:hover {
	background: var(--cc-ink);
	color: var(--cc-white);
	text-decoration: none;
}
.cc-card {
	border: 1px solid var(--cc-ink);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.cc-card__title {
	margin: 0;
	font-weight: 800;
	font-size: 21px;
	line-height: 1.15;
}
.cc-embed {
	min-width: 0;
}
.cc-admin-hint {
	margin: 8px 0;
	padding: 10px 12px;
	background: #FFF6C2;
	border: 1px dashed var(--cc-ink);
	color: var(--cc-ink);
	font-size: 14px;
}
.cc-svg {
	display: block;
	flex: none;
}

/* ---------- Header ---------- */
.cc-header {
	padding-top: 18px;
}
.cc-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 6px solid var(--cc-yellow);
	padding-bottom: 14px;
}
.cc-brand {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.cc-brand:hover {
	text-decoration: none;
}
.cc-brand picture {
	display: block;
}
.cc-brand__logo {
	display: block;
	width: 320px;
	max-width: 100%;
	height: auto;
}
.cc-brand__tag {
	font-style: italic;
	font-size: 14px;
	line-height: 1.3;
	color: var(--cc-muted);
}
.cc-header__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 6px;
}
.cc-search {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
}
.cc-search input[type="search"] {
	width: 280px;
	min-width: 0;
	height: 46px;
	border: 0;
	padding: 0 14px;
	font-size: 16px;
	background: var(--cc-white);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
}
.cc-search input[type="search"]:focus-visible {
	box-shadow: inset 0 0 0 3px var(--cc-blue);
}
.cc-search button {
	flex: none;
	width: 50px;
	border: 0;
	border-left: 1px solid var(--cc-ink);
	background: var(--cc-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.cc-search button .cc-svg {
	width: 20px;
	height: 20px;
}
.cc-search--mobile {
	display: none;
	margin-top: 14px;
}
.cc-search--mobile input[type="search"] {
	flex: 1;
	width: auto;
	height: 48px;
}
.cc-search--page {
	max-width: 520px;
	margin: 16px 0;
}
.cc-search--page input[type="search"] {
	flex: 1;
	width: auto;
}
.cc-iconbtn {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--cc-ink);
	border-radius: 0;
	background: var(--cc-white);
	color: var(--cc-ink);
	cursor: pointer;
}
.cc-search-toggle {
	display: none;
}
.cc-search-toggle[aria-expanded="true"] {
	background: var(--cc-yellow);
}
.cc-menu-toggle {
	background: var(--cc-yellow);
}
.cc-menu-toggle[aria-expanded="true"] {
	background: var(--cc-ink);
	color: var(--cc-white);
}
.cc-menu-toggle .cc-svg--close,
.cc-menu-toggle[aria-expanded="true"] .cc-svg--menu {
	display: none;
}
.cc-menu-toggle[aria-expanded="true"] .cc-svg--close {
	display: block;
}

/* Accordion menu */
.cc-menu {
	margin-top: 14px;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
}
.cc-menu__group {
	border-bottom: 1px solid var(--cc-ink);
}
.cc-menu__group:last-child {
	border-bottom: 0;
}
.cc-menu__head {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border: 0;
	background: var(--cc-white);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	color: var(--cc-ink);
	cursor: pointer;
	text-align: left;
}
a.cc-menu__head:hover {
	text-decoration: none;
	background: var(--cc-soft);
}
.cc-menu__group.is-open .cc-menu__head {
	background: var(--cc-sand);
}
.cc-menu__name {
	display: flex;
	align-items: center;
	gap: 12px;
}
.cc-menu__dot {
	width: 14px;
	height: 14px;
	border: 1px solid var(--cc-ink);
	flex: none;
}
.cc-menu__count {
	margin-left: auto;
	margin-right: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--cc-muted);
}
.cc-menu__head .cc-svg--chevron {
	width: 18px;
	height: 18px;
	transition: transform 0.15s ease;
}
.cc-menu__head[aria-expanded="true"] .cc-svg--chevron {
	transform: rotate(180deg);
}
.cc-menu__links {
	padding: 6px 20px 18px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px;
}
.cc-menu__group.is-open .cc-menu__links {
	background: var(--cc-sand);
}
.cc-menu__links a {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
}
.cc-menu__links a:hover {
	background: var(--cc-yellow);
	text-decoration: none;
}
.cc-menu__empty {
	margin: 0;
	padding: 16px 20px;
}

/* ---------- Games row ---------- */
.cc-games {
	margin-top: 28px;
}
.cc-games__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}
.cc-games__progress {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--cc-muted);
}
.cc-games__grid {
	margin-top: 14px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}
.cc-game {
	background: var(--g-bg, var(--cc-blue));
	color: var(--g-fg, var(--cc-white));
	padding: 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	transition: transform 0.12s ease;
}
.cc-game:hover {
	color: var(--g-fg, var(--cc-white));
	text-decoration: none;
	transform: translateY(-2px);
}
.cc-game__icon {
	width: 64px;
	height: 64px;
	border: 2px solid var(--cc-ink);
	border-radius: 14px;
	box-shadow: 3px 3px 0 var(--cc-ink);
	background: var(--cc-white);
	flex: none;
}
.cc-game__icon--letter {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 30px;
	color: var(--cc-ink);
}
.cc-game__name {
	font-weight: 700;
	font-size: 17px;
	line-height: 1.1;
}
.cc-game__status {
	font-size: 12px;
	font-weight: 600;
}
.cc-game__status:empty {
	display: none;
}
.cc-game.is-played .cc-game__status {
	font-weight: 700;
}
/* Under posts: smaller tiles. */
.cc-games--strip {
	margin: 40px 0 8px;
}
.cc-games--strip .cc-title {
	font-size: 24px;
}
.cc-games--strip .cc-games__grid {
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 8px;
}
.cc-games--strip .cc-game {
	padding: 12px;
	gap: 8px;
}
.cc-games--strip .cc-game__icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	box-shadow: 2px 2px 0 var(--cc-ink);
}
.cc-games--strip .cc-game__name {
	font-size: 15px;
}

/* ---------- Layout ---------- */
.cc-layout {
	margin-top: 44px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}
.cc-primary {
	flex: 999 1 560px;
	min-width: 0;
}
.cc-sidebar {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.cc-no-sidebar .cc-primary {
	max-width: 820px;
}
.cc-feed-title {
	display: inline-block;
	margin-bottom: 28px;
}

/* ---------- Posts ---------- */
.cc-post {
	padding-bottom: 32px;
	margin-bottom: 32px;
	border-bottom: 2px dashed var(--cc-rule);
}
.cc-post__head {
	margin-bottom: 20px;
}
.cc-post__title {
	margin: 8px 0 0;
	font-weight: 800;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.05;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
}
.cc-post__title a:hover {
	text-decoration: none;
	background: linear-gradient(transparent 70%, var(--cc-yellow) 70%);
}
.cc-byline {
	margin: 10px 0 0;
	font-size: 16px;
	color: var(--cc-muted);
}
.cc-byline a {
	color: var(--cc-muted);
	text-decoration: underline;
}
.cc-edit {
	margin-left: 6px;
	font-size: 13px;
	font-weight: 700;
	padding: 1px 6px;
	border: 1px solid var(--cc-rule);
	text-decoration: none !important;
}
.cc-post__more {
	margin-top: 22px;
}
.cc-entry__hero {
	margin: 0 0 24px;
}
.cc-entry__hero img {
	display: block;
	width: 100%;
}
.cc-entry--wide {
	max-width: none;
}
.cc-archive-head {
	margin-bottom: 32px;
}
.cc-archive-head:empty {
	display: none;
}
.cc-archive-head .cc-title {
	font-size: clamp(30px, 4vw, 42px);
}
.cc-archive-head .cc-kicker {
	display: block;
	margin-bottom: 6px;
}
.cc-archive-desc {
	margin-top: 12px;
	color: var(--cc-muted);
}
.cc-tags {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cc-tags a {
	padding: 5px 10px;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
	font-size: 13px;
	font-weight: 700;
}
.cc-tags a:hover {
	background: var(--cc-yellow);
	text-decoration: none;
}
.cc-404 {
	padding-top: 56px;
	max-width: 760px;
}

/* Post content */
.entry-content {
	font-size: 19px;
	line-height: 1.7;
	overflow-wrap: break-word;
}
.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.1em;
}
.entry-content > *:last-child {
	margin-bottom: 0;
}
.entry-content a {
	text-decoration: underline;
	text-decoration-color: var(--cc-yellow);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}
.entry-content a:hover {
	background: var(--cc-yellow);
	text-decoration-color: var(--cc-ink);
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-weight: 800;
	line-height: 1.15;
	margin-top: 1.6em;
	margin-bottom: 0.5em;
	letter-spacing: -0.01em;
}
.entry-content h2 {
	font-size: 30px;
}
.entry-content h3 {
	font-size: 24px;
}
.entry-content h4 {
	font-size: 20px;
}
.entry-content img {
	display: block;
}
.entry-content figure {
	margin-left: 0;
	margin-right: 0;
}
.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--cc-muted);
}
.entry-content .wp-caption {
	max-width: 100%;
}
.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 20px;
	border-left: 6px solid var(--cc-yellow);
	font-size: 21px;
	font-weight: 500;
}
.entry-content blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	font-style: normal;
	color: var(--cc-muted);
}
.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}
.entry-content li {
	margin-bottom: 0.35em;
}
.entry-content hr {
	border: 0;
	border-top: 2px dashed var(--cc-rule);
	margin: 2em 0;
}
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}
.entry-content th,
.entry-content td {
	border: 1px solid var(--cc-ink);
	padding: 8px 10px;
	text-align: left;
}
.entry-content th {
	background: var(--cc-sand);
}
.entry-content pre,
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
	background: var(--cc-soft);
}
.entry-content pre {
	padding: 14px;
	overflow-x: auto;
	border: 1px solid var(--cc-rule);
}
.entry-content iframe,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}
.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.2em 0.8em 0;
	max-width: 50%;
}
.entry-content .alignright {
	float: right;
	margin: 0.3em 0 0.8em 1.2em;
	max-width: 50%;
}
.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}
.entry-content::after {
	content: "";
	display: table;
	clear: both;
}
.entry-content .wp-block-image img {
	width: auto;
}
.entry-content .wp-block-embed__wrapper iframe {
	width: 100%;
}
.cc-page-links {
	margin-top: 24px;
	font-weight: 700;
}
.sticky .cc-post__title::before {
	content: "★ ";
	color: var(--cc-blue);
}

/* Post navigation */
.post-navigation {
	margin-top: 40px;
}
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}
.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
}
.post-navigation a:hover {
	background: var(--cc-yellow);
	text-decoration: none;
}
.post-navigation .nav-next a {
	text-align: right;
}
.cc-postnav__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cc-blue);
}
.cc-postnav__title {
	font-weight: 700;
	line-height: 1.3;
}

/* Pagination */
.pagination {
	margin-top: 8px;
}
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	justify-content: center;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
	font-weight: 700;
}
.pagination .page-numbers.current {
	background: var(--cc-ink);
	color: var(--cc-white);
}
.pagination a.page-numbers:hover {
	background: var(--cc-yellow);
	text-decoration: none;
}
.pagination .dots {
	border: 0;
	background: none;
}

/* ---------- Sidebar ---------- */
.cc-sidebar .widget {
	margin: 0;
	font-size: 15px;
}
.cc-sidebar .widget-title,
.cc-sidebar .wp-block-heading {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	border-bottom: 5px solid var(--cc-yellow);
	padding-bottom: 6px;
}
.cc-sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.cc-sidebar li {
	border-bottom: 1px solid var(--cc-rule);
}
.cc-sidebar li a {
	display: block;
	padding: 11px 0;
	font-weight: 600;
	line-height: 1.35;
}
.cc-sidebar li .post-date {
	display: block;
	margin: -8px 0 10px;
	font-size: 13px;
	color: var(--cc-muted);
}
.cc-sidebar .widget_text,
.cc-sidebar .widget_custom_html {
	line-height: 1.5;
}
.cc-sidebar .cc-search--page {
	margin: 0;
}
.cc-sidebar select {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
}

/* ---------- Comments ---------- */
.cc-comments {
	margin-top: 48px;
}
.cc-comments > .cc-title {
	display: inline-block;
	margin-bottom: 20px;
	font-size: 26px;
}
.cc-comment-list,
.cc-comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cc-comment-list .children {
	margin-left: 24px;
}
.cc-comment-list .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--cc-rule);
}
.cc-comment-list .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-size: 14px;
}
.cc-comment-list .avatar {
	border: 1px solid var(--cc-ink);
	vertical-align: middle;
	margin-right: 8px;
}
.cc-comment-list .fn {
	font-style: normal;
	font-weight: 700;
}
.cc-comment-list .comment-metadata a {
	color: var(--cc-muted);
}
.cc-comment-list .says {
	display: none;
}
.cc-comment-list .reply a {
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
}
.comment-respond {
	margin-top: 32px;
}
.comment-form label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 4px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
	border-radius: 0;
}
.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}
.comment-form-cookies-consent label {
	font-weight: 400;
}
.cc-muted {
	color: var(--cc-muted);
}

/* ---------- Footer ---------- */
.cc-footer {
	margin-top: 56px;
	border-top: 6px solid var(--cc-yellow);
	background: var(--cc-ink);
	padding: 26px 0;
	text-align: center;
	font-size: 14px;
	color: var(--cc-sand);
}
.cc-footer a {
	color: var(--cc-sand);
}
.cc-footer__links {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 20px;
	font-weight: 600;
}
.cc-footer__text {
	margin: 0;
}

/* ---------- Phones ---------- */
@media (max-width: 700px) {
	:root {
		--cc-gutter: 16px;
	}
	.cc-header {
		padding-top: 14px;
	}
	.cc-header__bar {
		flex-wrap: nowrap;
		align-items: center;
		gap: 12px;
		padding-bottom: 12px;
	}
	.cc-brand__logo {
		width: 220px;
	}
	.cc-brand__tag {
		font-size: 12px;
	}
	.cc-header__tools {
		padding-bottom: 0;
		gap: 8px;
		flex: none;
	}
	.cc-search--full {
		display: none;
	}
	.cc-search-toggle {
		display: flex;
	}
	.cc-search--mobile {
		display: flex;
	}
	.cc-iconbtn {
		width: 46px;
		height: 46px;
	}
	.cc-menu__head {
		font-size: 19px;
		padding: 14px 16px;
	}
	.cc-menu__links {
		padding: 6px 16px 16px;
		grid-template-columns: 1fr 1fr;
	}
	.cc-games {
		margin-top: 22px;
	}
	.cc-title {
		font-size: 26px;
	}
	.cc-games__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
	.cc-game {
		padding: 12px;
		gap: 8px;
	}
	.cc-game__icon {
		width: 52px;
		height: 52px;
		border-radius: 12px;
	}
	.cc-game__name {
		font-size: 16px;
	}
	.cc-layout {
		margin-top: 32px;
		gap: 36px;
	}
	.cc-primary {
		flex-basis: 100%;
	}
	.entry-content {
		font-size: 18px;
	}
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 0 0 1em;
		max-width: 100%;
	}
}
@media (max-width: 360px) {
	.cc-brand__logo {
		width: 170px;
	}
	.cc-brand__tag {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* Block widgets (Search, Latest Posts) in the sidebar */
.wp-block-search__inside-wrapper {
	display: flex;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
}
.wp-block-search__label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}
.wp-block-search__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	border: 0;
	padding: 0 12px;
	background: var(--cc-white);
	border-radius: 0;
}
.wp-block-search__button {
	margin: 0;
	border: 0;
	border-left: 1px solid var(--cc-ink);
	border-radius: 0;
	background: var(--cc-yellow);
	color: var(--cc-ink);
	font-weight: 700;
	padding: 0 14px;
	cursor: pointer;
}
.cc-sidebar .wp-block-group > h2,
.cc-sidebar .wp-block-group > .wp-block-group__inner-container > h2 {
	margin-bottom: 4px;
}
.cc-sidebar .wp-block-latest-comments {
	padding: 0;
}

/* ==========================================================================
   3.0: Caveman Circus Games tiles, Points blocks, header alignment
   ========================================================================== */

/* The search bar and the menu button are both exactly 50px tall and sit on one line. */
.cc-header__tools {
	align-items: center;
}
.cc-search--full {
	height: 50px;
	margin: 0;
}
.cc-search--full input[type="search"] {
	height: 100%;
}
.cc-iconbtn {
	margin: 0;
	flex: none;
}

/* Game cards with the caveman pictures. */
.cc-games__grid {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
}
.cc-game--card {
	background: var(--cc-white);
	color: var(--cc-ink);
	border: 1px solid var(--cc-ink);
	box-shadow: 4px 4px 0 var(--cc-ink);
	padding: 0;
	gap: 0;
}
.cc-game--card:hover {
	color: var(--cc-ink);
	transform: translate(-1px, -2px);
	box-shadow: 5px 6px 0 var(--cc-ink);
}
.cc-game__pic {
	display: block;
	border-bottom: 1px solid var(--cc-ink);
	line-height: 0;
}
.cc-game__art,
.cc-champ__art {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
}
.cc-game__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 12px 12px;
}
.cc-game--card .cc-game__name {
	font-weight: 800;
	font-size: 19px;
}
.cc-game--card .cc-game__status {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--g-label, var(--cc-blue));
}
.cc-games__swipe {
	display: none;
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--cc-muted);
}
.cc-games--strip .cc-game--card .cc-game__name {
	font-size: 15px;
}
.cc-games--strip .cc-game__text {
	padding: 8px 10px 10px;
}

/* Yesterday's champion. */
.cc-champ {
	background: var(--cc-white);
	border: 1px solid var(--cc-ink);
	display: flex;
	flex-direction: column;
}
.cc-champ__pic {
	display: block;
	border-bottom: 1px solid var(--cc-ink);
	line-height: 0;
}
.cc-champ__text {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.cc-champ__name {
	font-weight: 800;
	font-size: 26px;
	line-height: 1.05;
	letter-spacing: 0.02em;
}
.cc-champ__line {
	font-size: 14px;
	color: var(--cc-muted);
}
.cc-champ-mobile {
	display: none;
}

/* Today's leaderboard. */
.cc-board__head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-bottom: 5px solid var(--cc-yellow);
	padding-bottom: 6px;
}
.cc-sidebar .cc-board__head .widget-title {
	border: 0;
	padding: 0;
	margin: 0;
}
.cc-board__sub {
	font-size: 12px;
	font-weight: 600;
	color: var(--cc-muted);
}
.cc-board__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.cc-board__list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	margin: 0;
	border-bottom: 1px solid var(--cc-rule);
	font-size: 15px;
}
.cc-board__rank {
	flex: none;
	width: 26px;
	height: 26px;
	border: 1px solid var(--cc-ink);
	background: var(--cc-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 13px;
}
.cc-board__row--1 .cc-board__rank { background: var(--cc-yellow); }
.cc-board__row--2 .cc-board__rank { background: #E3E6EA; }
.cc-board__row--3 .cc-board__rank { background: #F2C29A; }
.cc-board__name {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	letter-spacing: 0.04em;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cc-board__row--1 .cc-board__name,
.cc-board__row--2 .cc-board__name,
.cc-board__row--3 .cc-board__name {
	font-weight: 700;
}
.cc-board__pts {
	font-weight: 700;
}
.cc-board__list li.cc-board__me {
	margin-top: 6px;
	padding: 9px 8px;
	background: #FFF6C2;
	border: 1px solid var(--cc-ink);
}
.cc-board__me .cc-board__name,
.cc-board__me .cc-board__pts {
	font-weight: 800;
}
.cc-board__list li.cc-board__empty {
	color: var(--cc-muted);
	border: 0;
}
.cc-board__more {
	display: inline-block;
	margin-top: 12px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: underline;
}

@media (max-width: 700px) {
	/* Games: every game on screen at once, three across. */
	.cc-games--home .cc-games__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}
	.cc-games--home .cc-game--card {
		box-shadow: 3px 3px 0 var(--cc-ink);
	}
	.cc-game--card .cc-game__name {
		font-size: 16px;
	}
	.cc-game--card .cc-game__status {
		font-size: 11px;
	}
	.cc-game__text {
		padding: 8px 10px 10px;
	}
	.cc-games--home .cc-game__text {
		padding: 6px 7px 8px;
		gap: 2px;
	}
	.cc-games--home .cc-game--card .cc-game__name {
		font-size: 13px;
		line-height: 1.15;
	}
	.cc-games--home .cc-game--card .cc-game__status {
		font-size: 9.5px;
		letter-spacing: 0.05em;
	}
	/* The champion moves up under the games, as a short strip; the sidebar copy hides. */
	.cc-champ-mobile {
		display: block;
		margin-top: 20px;
	}
	.cc-champ-mobile .cc-champ {
		flex-direction: row;
		align-items: stretch;
	}
	.cc-champ-mobile .cc-champ__pic {
		flex: 0 0 132px;
		border-bottom: 0;
		border-right: 1px solid var(--cc-ink);
	}
	.cc-champ-mobile .cc-champ__art {
		height: 100%;
		object-fit: cover;
	}
	.cc-champ-mobile .cc-champ__text {
		flex: 1;
		min-width: 0;
		padding: 10px 12px;
		justify-content: center;
		gap: 2px;
	}
	.cc-champ-mobile .cc-kicker {
		font-size: 11px;
	}
	.cc-champ-mobile .cc-champ__name {
		font-size: 20px;
	}
	.cc-champ-mobile .cc-champ__line {
		font-size: 13px;
	}
	.cc-sidebar > .cc-champ {
		display: none;
	}
}

/* Game pages use the full width so the games can switch to their wide layouts. */
.cc-game-page .cc-primary {
	max-width: none;
}
.cc-games--strip .cc-game--card {
	padding: 0;
	gap: 0;
	box-shadow: 3px 3px 0 var(--cc-ink);
}
