/*
 * Page shell for calendar.comc.com.
 * Reproduces the computed layout of the Carrd page (header bar, heading,
 * embed area, footer) without Carrd's builder framework. Sizes use the same
 * rem values and root font-size breakpoints so the calendar embed, whose CSS
 * is in rem, renders at the same scale as on Carrd.
 */

/* Reset (Carrd's base reset, trimmed to what this page uses) */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ol, ul, li,
article, footer, header, main, section, time, strong, em, label {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, footer, header, main, section {
	display: block;
}

ol, ul {
	list-style: none;
}

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

strong {
	color: inherit;
	font-weight: bolder;
}

em {
	font-style: italic;
}

a {
	color: inherit;
	text-decoration: underline;
	transition: color 0.25s ease;
}

html {
	font-size: 15pt;
}

body {
	-webkit-text-size-adjust: none;
	background-color: #ffffff;
	line-height: 1;
	min-width: 320px;
	overflow-x: hidden;
	word-wrap: break-word;
}

/* Layout tokens (mirroring Carrd's custom properties) */
.comc-page {
	--width: 80rem;
	--page-padding-v: 6rem;
	--header-padding-v: 2rem;
	--header-padding-h: 6rem;
	--content-padding-v: 6rem;
	--content-padding-h: 6rem;
	--spacing: 2rem;
	--footer-gap: 6rem;
	--alignment: left;

	padding-bottom: var(--page-padding-v);
	text-align: var(--alignment);
}

.comc-wrap {
	width: 100%;
	max-width: var(--width);
	margin-inline: auto;
}

/* Header bar (Carrd container06) */
.comc-header {
	background-color: #c0272d;
	border-bottom: 1px solid #e6e6e6;
}

.comc-header > .comc-wrap {
	padding: var(--header-padding-v) var(--header-padding-h);
	text-align: left;
}

.comc-logo {
	display: inline-block;
	width: 9.125rem;
	height: 4.125rem;
	overflow: hidden;
	vertical-align: top;
	line-height: 0;
	border: 1px solid #c0272d;
	text-decoration: none;
}

.comc-logo img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

.comc-logo__text {
	display: flex;
	align-items: center;
	height: 100%;
	color: #ffffff;
	font: 700 2.25rem/1 "Barlow", sans-serif;
	letter-spacing: 0.1rem;
}

/* Content area (Carrd container09) */
.comc-content {
	background-color: #ffffff;
	border-bottom: 1px solid #e6e6e6;
}

.comc-content > .comc-wrap {
	padding: var(--content-padding-v) var(--content-padding-h);
}

.comc-content > .comc-wrap > * {
	margin-top: var(--spacing);
	margin-bottom: var(--spacing);
}

.comc-content > .comc-wrap > :first-child {
	margin-top: 0;
}

.comc-content > .comc-wrap > :last-child {
	margin-bottom: 0;
}

/* "CARD SHOWS, AUCTIONS, PROMOTIONS & KEY DATES" (Carrd text style-1) */
.comc-kicker {
	width: calc(100% + 0.4rem);
	color: #202730;
	font-family: "Barlow", sans-serif;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.4rem;
	line-height: 1.25;
	text-transform: uppercase;
}

/* "COMC Calendar" (Carrd text style-2) */
.comc-title {
	width: calc(100% + 0.3rem);
	color: #c0272d;
	font-family: "Barlow", sans-serif;
	font-size: 3.875em;
	font-weight: 700;
	letter-spacing: 0.3rem;
	line-height: 1.25;
	text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
	.comc-title {
		animation: comc-fade-up 1s ease both;
	}
}

@keyframes comc-fade-up {
	from {
		opacity: 0;
		transform: translateY(0.375rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Footer (Carrd container01 / text style-4) */
.comc-footer {
	margin-top: var(--footer-gap);
	padding-inline: 3rem;
}

.comc-footer p {
	color: #202730;
	font-family: "Open Sans", sans-serif;
	font-size: 1.125em;
	font-weight: 300;
	line-height: 1.375;
	text-align: center;
}

/* Admin bar keeps the dialog backdrop below it when logged in. */
body.admin-bar .comc-calendar-dialog-backdrop {
	top: var(--wp-admin--admin-bar--height, 0px);
}

/* Breakpoints (Carrd root font sizes and mobile overrides) */
@media (max-width: 1680px) {
	html {
		font-size: 11pt;
	}
}

@media (max-width: 980px) {
	html {
		font-size: 9pt;
	}
}

@media (max-width: 736px) {
	html {
		font-size: 12pt;
	}

	.comc-page {
		--page-padding-v: 3.5rem;
		--header-padding-v: 1.25rem;
		--header-padding-h: 2rem;
		--content-padding-v: 3rem;
		--content-padding-h: 2rem;
		--footer-gap: 2.625rem;
		--alignment: center;
	}

	.comc-footer {
		padding-inline: 2rem;
	}

	.comc-logo {
		width: 11rem;
		height: 5.15625rem;
	}

	.comc-logo img {
		object-position: top;
	}

	.comc-kicker {
		width: calc(100% + 0.35rem);
		font-size: 0.75em;
		letter-spacing: 0.35rem;
	}

	.comc-title {
		width: calc(100% + 0.2625rem);
		font-size: 2.75em;
		letter-spacing: 0.2625rem;
	}
}

@media (max-width: 480px) {
	.comc-page {
		--spacing: 1.75rem;
	}

	.comc-logo {
		height: 4.125rem;
	}
}

@media (max-width: 360px) {
	.comc-page {
		--page-padding-v: 2.625rem;
		--header-padding-v: 0.9375rem;
		--header-padding-h: 1.5rem;
		--content-padding-v: 2.25rem;
		--content-padding-h: 1.5rem;
		--spacing: 1.5rem;
	}

	.comc-logo {
		height: 3.609375rem;
	}
}
