/* Don't Miss — [cbco_dont_miss] (2026-09-16)
 * Flat brand-colour event tiles keyed by Event Type tag, the same palette as
 * the public events page tiles in style.css (keep the two in step), with the
 * ash C mark rising from the bottom edge. Oswald, navy #01207f, orange
 * #fa7500, pill buttons as elsewhere on the site. Server-rendered, no JS. */

.cbco-dm {
	background: #fff;
	font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
	font-weight: 300;
	letter-spacing: 1px;
	color: #3d3d3d;
}
.cbco-dm__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 60px 40px 64px;
}
.cbco-dm__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}
.cbco-dm h2.cbco-dm__title {
	margin: 0;
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: 45px !important;
	line-height: 51px !important;
	letter-spacing: -1.5px;
	text-transform: uppercase;
	color: #000;
}
.cbco-dm__intro {
	margin: 0;
	font-size: 18px;
	line-height: 26px;
	color: #3d3d3d;
}
.cbco-dm a.cbco-dm__all {
	display: inline-block;
	background: #01207f;
	color: #fff;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 13px 22px;
	border-radius: 100px;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.cbco-dm a.cbco-dm__all:hover { background: #000; color: #fff; }

/* Tiles */
.cbco-dm__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.cbco-dm a.cbco-dm__tile {
	/* defaults = untagged event: faint navy tint */
	--tile-bg: #e9eef9;
	--tile-ink: #01207f;
	--tile-badge-bg: #01207f;
	--tile-badge-ink: #fff;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 250px; /* grows with its content; the grid row stretches the others to match */
	padding: 18px;
	border-radius: 8px;
	overflow: hidden;
	isolation: isolate;
	background: var(--tile-bg);
	color: var(--tile-ink);
	text-decoration: none;
	transition: transform 0.2s ease;
}
.cbco-dm a.cbco-dm__tile:hover { color: var(--tile-ink); transform: translateY(-2px); }
/* one colour per Event Type slug — mirror of the events-page rules in style.css */
.cbco-dm a.cbco-dm__tile.cbco-tag-trivia      { --tile-bg: #01207f; --tile-ink: #fff; --tile-badge-bg: #fff; --tile-badge-ink: #01207f; } /* navy */
.cbco-dm a.cbco-dm__tile.cbco-tag-game-day    { --tile-bg: #010f52; --tile-ink: #fff; --tile-badge-bg: #fff; --tile-badge-ink: #01207f; } /* deep navy */
.cbco-dm a.cbco-dm__tile.cbco-tag-tentpoles   { --tile-bg: #0233cb; --tile-ink: #fff; --tile-badge-bg: #fff; --tile-badge-ink: #01207f; } /* bright navy */
.cbco-dm a.cbco-dm__tile.cbco-tag-off-site    { --tile-bg: #4a63c4; --tile-ink: #fff; --tile-badge-bg: #fff; --tile-badge-ink: #01207f; } /* dusk blue */
.cbco-dm a.cbco-dm__tile.cbco-tag-family      { --tile-bg: #d6e0fb; --tile-ink: #01207f; --tile-badge-bg: #01207f; --tile-badge-ink: #fff; } /* ice blue */
.cbco-dm a.cbco-dm__tile.cbco-tag-board-games { --tile-bg: #b85600; --tile-ink: #fff; --tile-badge-bg: #fff; --tile-badge-ink: #01207f; } /* ember */
.cbco-dm a.cbco-dm__tile.cbco-tag-sampling    { --tile-bg: #fa7500; --tile-ink: #01207f; --tile-badge-bg: #01207f; --tile-badge-ink: #fff; } /* orange */
.cbco-dm a.cbco-dm__tile.cbco-tag-live-music  { --tile-bg: #ff9a3c; --tile-ink: #01207f; --tile-badge-bg: #01207f; --tile-badge-ink: #fff; } /* amber */
.cbco-dm a.cbco-dm__tile.cbco-tag-workshops   { --tile-bg: #ffdcb8; --tile-ink: #01207f; --tile-badge-bg: #01207f; --tile-badge-ink: #fff; } /* peach */

/* the featured photo (2026-09-16, matching the events-page tiles): centre-cropped
 * under a fade in the tag colour — solid at the base so the type reads, a light
 * wash at the top so the photo shows through; gentle zoom on hover */
.cbco-dm__photo {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	transition: transform 0.5s ease;
}
.cbco-dm a.cbco-dm__tile--photo:hover .cbco-dm__photo { transform: scale(1.04); }
.cbco-dm__tile--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(1, 32, 127, 0.94) 0%, rgba(1, 32, 127, 0.55) 45%, rgba(1, 32, 127, 0.15) 100%);
	background: linear-gradient(to top, var(--tile-bg) 0%, color-mix(in srgb, var(--tile-bg) 62%, transparent) 45%, color-mix(in srgb, var(--tile-bg) 18%, transparent) 100%);
	pointer-events: none;
}
.cbco-dm__tile--photo::after { display: none; } /* the C mark is for flat tiles */

/* the ash C, rising from the bottom edge, tinted with the tile's ink */
.cbco-dm__tile::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -22%;
	height: 175%;
	aspect-ratio: 1655 / 3199;
	transform: translateX(-50%);
	background-color: var(--tile-ink);
	opacity: 0.2;
	-webkit-mask: url(../img/cbco-c-mark-v2.png) center / contain no-repeat;
	mask: url(../img/cbco-c-mark-v2.png) center / contain no-repeat;
	transition: bottom 0.4s ease, opacity 0.4s ease;
	pointer-events: none;
	z-index: -1;
}
.cbco-dm__tile:hover::after { bottom: -18%; opacity: 0.28; }

.cbco-dm__top, .cbco-dm__bottom { display: flex; flex-direction: column; gap: 4px; }
.cbco-dm__top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
.cbco-dm__date {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	background: var(--tile-badge-bg);
	color: var(--tile-badge-ink);
	border-radius: 6px;
	padding: 7px 10px 6px;
	line-height: 1;
}
.cbco-dm__date b { font-weight: 600; font-size: 26px; letter-spacing: -0.5px; }
.cbco-dm__date i { font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }
.cbco-dm__dow {
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: 0.85;
}
.cbco-dm__name {
	font-weight: 600;
	font-size: clamp(20px, 1.7vw, 26px);
	line-height: 1.1;
	letter-spacing: -0.3px;
	text-transform: uppercase;
}
.cbco-dm__sub { font-weight: 400; font-size: 16px; line-height: 1.2; letter-spacing: 0.3px; }
.cbco-dm__meta { font-size: 14px; line-height: 20px; letter-spacing: 0.5px; }
.cbco-dm__cta {
	align-self: flex-start;
	margin-top: 6px;
	padding-bottom: 1px;
	border-bottom: 2px solid currentColor;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.cbco-dm__none { margin: 0; font-size: 18px; }

/* Every week strip — the Today module's cream, no pattern. One line from
 * 1300px up (label + four items, spread across the width); wraps below that. */
.cbco-dm__week {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	margin-top: 20px;
	padding: 14px 20px;
	background: #efe8d6;
	border-radius: 8px;
}
.cbco-dm__week-label {
	white-space: nowrap;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #01207f;
}
.cbco-dm a.cbco-dm__week-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #3d3d3d;
	text-decoration: none;
	white-space: nowrap;
	font-size: 14px;
	line-height: 22px;
}
.cbco-dm a.cbco-dm__week-item:hover strong { text-decoration: underline; }
.cbco-dm__week-item b {
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #fff;
	background: #01207f;
	border-radius: 4px;
	padding: 3px 7px;
}
.cbco-dm__week-item strong { font-weight: 600; color: #000; }

@media (min-width: 1300px) {
	.cbco-dm__week { flex-wrap: nowrap; justify-content: space-between; }
}
@media (max-width: 1000px) {
	.cbco-dm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
	.cbco-dm__inner { padding: 36px 20px 44px; }
	.cbco-dm h2.cbco-dm__title { font-size: 33px !important; line-height: 39px !important; letter-spacing: -1px; }
	.cbco-dm__grid { grid-template-columns: 1fr; gap: 14px; }
	.cbco-dm a.cbco-dm__tile { min-height: 230px; }
	.cbco-dm__week { flex-direction: column; align-items: flex-start; gap: 10px; }
}
