/* Richmond Events — page template styles. Tokens from Figma:
 *   primary blue  #183DA5  (banner + table header)
 *   intro blue    #0663AA
 *   row stripe    #EFEFEF
 *   border        #CCCCCC */

/* The theme paints body { background-image: dotGrid.jpg } with background-position-y: 120px,
 * so the dot strip peeks out above sections that start right under the header. Suppress it on
 * this template — the dot pattern is reused as the intro section background instead. */
body.page-template-template-richmond-events,
body.page-template-richmond-events {
	background-image: none !important;
}

.re-banner {
	background: #183DA5;
	padding: 40px 0 40px;
	color: #fff;
	margin-top: -25px;
}
.re-banner h1 {
	font-family: 'Roboto', Arial, sans-serif;
	color: #fff;
	font-weight: 500;
	font-size: 48px;
	line-height: 1.1;
	letter-spacing: 0.01em;
	margin: 0 0 24px;
	text-transform: uppercase;
}
.re-banner .re-hero {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

/* Full-width intro section. Pattern matches the dotGrid treatment from the global body rule
 * in rlw.scss:440 (size 60%, repeat-x) so dot density looks identical to other pages
 * like /residential/Residential-Electric-Water-Heaters/. */
.re-intro-section {
	background-color: #FFF;
	background-image: url("//media.richmondwaterheaters.com/blobazrheem/media/uploads/iat/sites/3/2018/07/dotGrid.jpg");
	background-repeat: repeat-x;
	background-size: 60% auto;
	background-position: top center;
	padding: 40px 0;
}

.re-intro__heading,
.re-intro h2 {
	color: #0663AA;
	font-family: 'Roboto', Arial, sans-serif;
	font-weight: 500;
	font-size: 30px;
	line-height: 1.15;
	margin: 0 0 24px;
	text-transform: none; /* override theme h2 uppercase */
	letter-spacing: 0;
}

.re-table-card {
	margin-bottom: 24px;
}
.re-table-card__header {
	background: #183DA5;
	color: #fff;
	padding: 10px 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}
.re-table-card__header label,
.re-table-card__header .re-dropdown-label {
	color: #fff;
	font-family: 'Roboto', Arial, sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 22.5px;
	margin: 0;
	text-transform: none;
}

/* Custom month dropdown ───────────────────────────────────────────────── */
.re-dropdown {
	position: relative;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
}
.re-dropdown__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 150px;
	height: 34px;
	padding: 0 12px;
	background: #fff;
	color: #1f2937;
	border: 1px solid #CCCCCC;
	border-radius: 6px;
	font: inherit;
	white-space: nowrap;
	cursor: pointer;
	text-align: left;
}
.re-dropdown__current { white-space: nowrap; }
.re-dropdown__trigger:focus { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 1px; }
.re-dropdown__caret {
	flex-shrink: 0;
	transition: transform 0.15s ease;
	color: #1f2937;
}
.re-dropdown.is-open .re-dropdown__caret { transform: rotate(180deg); }

.re-dropdown__menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 100%;
	max-height: 314px;
	overflow-y: auto;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #CCCCCC;
	border-radius: 6px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	z-index: 20;
	color: #1f2937;
}
.re-dropdown__menu[hidden] { display: none; }
.re-dropdown__option {
	padding: 8px 14px;
	cursor: pointer;
	color: #1f2937;
	background: #fff;
	line-height: 1.4;
	white-space: nowrap;
}
.re-dropdown__option:hover,
.re-dropdown__option:focus {
	background: #337ab7;
	color: #fff;
}
.re-dropdown__option.is-selected {
	background: #337ab7;
	color: #fff;
}

.re-table {
	width: 100%;
	border-collapse: collapse;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
	background: transparent;
	border-left: 1px solid #CCCCCC;
	border-right: 1px solid #CCCCCC;
	border-bottom: 1px solid #CCCCCC;
	/* Fixed layout so columns don't reflow when switching months. */
	table-layout: fixed;
}
.re-table colgroup col:nth-child(1) { width: 10%; }  /* Date */
.re-table colgroup col:nth-child(2) { width: 15%; }  /* State */
.re-table colgroup col:nth-child(3) { width: 17%; }  /* City */
.re-table colgroup col:nth-child(4) { width: 35%; }  /* Address */
.re-table colgroup col:nth-child(5) { width: 11.5%; }  /* Start Time */
.re-table colgroup col:nth-child(6) { width: 11.5%; }  /* End Time */
.re-table td { overflow: hidden; text-overflow: ellipsis; }
/* Inner grid only — no outer table border. Each cell gets a bottom + right divider,
 * then last column / last row drop theirs to keep the outer edge flush. */
.re-table thead th {
	color: #111827;
	text-align: left;
	font-weight: 700;
	padding: 12px 16px;
	border: 0;
	border-right: 1px solid #CCCCCC;
	border-bottom: 1px solid #CCCCCC;
	white-space: nowrap;
	text-transform: none;
}
.re-table thead th:last-child { border-right: 0; }

.re-table tbody td {
	padding: 10px 16px;
	border: 0;
	border-right: 1px solid #CCCCCC;
	border-bottom: 1px solid #CCCCCC;
	color: #1f2937;
}
.re-table tbody td:last-child { border-right: 0; }
.re-table tbody tr:last-child td { border-bottom: 0; }
.re-table tbody tr:nth-child(even) td { background: #EFEFEF; }

.re-empty {
	text-align: center;
	color: #6b7280;
	padding: 32px 16px !important;
	font-style: italic;
	background: #fff !important;
	border-right: 0 !important;
}

/* Horizontal scroll wrapper for the table so it stays tabular on narrow viewports
 * (mobile shows all columns, address column scrolls horizontally — see Image #6). */
.re-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
	.re-banner { padding: 24px 0; }
	.re-banner h1 { font-size: 32px; }
	.re-intro-section { padding: 28px 0; }
	.re-intro__heading,
	.re-intro h2 { font-size: 22px; }
}

@media (max-width: 768px) {
	.re-table { min-width: 640px; }
	.re-table thead th,
	.re-table tbody td { padding: 8px 12px; font-size: 13px; }
	.re-table-card__header { padding: 8px 12px; gap: 12px; }
}
