#orr-main {
	padding-top: 0;
	font-family: 'Open Sans', 'Noto Sans JP', 'Noto Sans Thai', sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #1a1a1a;
}

/*
 * Match homepage width: Cerberus (home only) applies Bootstrap .container max-width.
 * Contribute keeps layout.css .container.responsive { width: 94% } without that cap.
 */
#orr-main.container.responsive {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 3%;
	padding-right: 3%;
}

@media (min-width: 576px) {
	#orr-main.container.responsive {
		max-width: 540px;
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

@media (min-width: 768px) {
	#orr-main.container.responsive {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	#orr-main.container.responsive {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	#orr-main.container.responsive {
		max-width: 1140px;
		padding-left: 0;
		padding-right: 0;
	}
}

#orr-main-content {
	border: none;
	box-shadow: none;
}

#orr-main-content .content-block {
	border: none;
	box-shadow: none;
}

#orr-main-content #orr-main-banner.content-block,
#orr-main-content #orr-calendar.content-block {
	margin-left: 0;
	margin-right: 0;
}

#orr-main-content #orr-main-banner.content-block {
	margin-top: 24px;
	margin-bottom: 0.5rem;
}

#orr-main-content #orr-calendar.content-block {
	margin-top: 0;
	border: 1px solid #cfcfcf;
	border-radius: 0.375rem;
	background: #ffffff;
	overflow: hidden;
}

.orr-main-banner-plain {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(0.375rem, 2vw, 1rem);
	background: #ffffff;
	background-image: none;
	border: 0;
	padding: 0;
	min-width: 0;
}

.orr-raceroster-brand-top {
	display: block;
	flex: 0 1 42%;
	min-width: 0;
	margin-left: auto;
	text-align: right;
}

.orr-raceroster-brand-top img {
	display: block;
	margin-left: auto;
	width: auto;
	height: auto;
	max-height: 48px;
	max-width: 100%;
	object-fit: contain;
	object-position: right center;
}

.orr-main-banner-heading {
	display: block;
	flex: 1 1 58%;
	min-width: 0;
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

#orr-main-banner-logo {
	display: block;
	max-width: 100%;
	margin-left: 0;
	padding-left: 0;
}

#orr-main-banner-logo img {
	display: block;
	margin-left: 0;
	width: auto;
	height: auto;
	max-height: 48px;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}

.orr-contribute-block.content-block,
#orr-main-content #orr-contribute.content-block {
	border: none;
	border-radius: 0;
	background: #ffffff;
	overflow: visible;
	box-shadow: none;
}

.orr-contribute-title {
	margin: 0;
	padding: 0.75rem 0;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: inherit;
	border-bottom: none;
	color: inherit;
}

.orr-contribute-body {
	padding: 0 0 1.25rem;
}

.orr-contribute-rr-logo {
	display: block;
	width: 340px;
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0 1.25rem;
}

.orr-contribute-text {
	margin: 0 0 1rem;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}

.orr-contribute-text:last-child {
	margin-bottom: 0;
}

.orr-contribute-text a {
	color: #036095;
	text-decoration: underline;
}

.orr-contribute-text a:hover,
.orr-contribute-text a:focus {
	color: #036095;
	filter: brightness(90%);
}

.orr-calendar-year-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0;
	/* Match Race Roster .widget_container horizontal padding (8px). */
	padding: 0.5rem 8px;
	border-bottom: 1px solid #cfcfcf;
}

.orr-calendar-frame-wrap {
	padding: 0;
}

.orr-calendar-year-label {
	flex: 0 0 auto;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	color: inherit;
	margin: 0;
}

/* Match #orr-main select + widget filter fields (orr-main.css border #acd0f7). */
#orr-main #orr-calendar .orr-form-control {
	display: block;
	box-sizing: border-box;
	width: auto;
	min-width: 6.5rem;
	max-width: 100%;
	flex: 0 1 auto;
	height: 40px;
	margin: 0;
	padding: 0 2.25rem 0 0.75rem;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: #44444d;
	background-color: #ffffff;
	background-clip: padding-box;
	border: 1px solid #acd0f7 !important;
	border-radius: 0.375rem !important;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	transition: border-color 0.2s ease-in-out;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234d4d4d' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 12px 8px;
}

#orr-main #orr-calendar .orr-form-control:hover,
#orr-main #orr-calendar .orr-form-control:focus {
	outline: 0;
	/* Match #orr-main select:focus / filter controls (orr-main.css). */
	border-color: #f78f1e !important;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

@media (max-width: 768px) {
	.orr-calendar-year-row {
		flex-direction: column;
		align-items: stretch;
	}

	.orr-calendar-year-label {
		margin: 0 0 4px;
	}

	#orr-main #orr-calendar .orr-form-control {
		width: 100%;
		min-width: 0;
		margin: 0.25rem 0 0;
	}
}

.orr-calendar-frame-wrap {
	width: 100%;
	min-height: 420px;
}

.orr-calendar-widget-host {
	width: 100%;
	min-height: 420px;
}

#orr-main #orr-calendar-widget-host [class*='data_table_wrapper'] {
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

/* Search field icon: match #orr-main input border (#acd0f7), not widget grey append. */
#orr-main #orr-calendar-widget-host [class*='input_group_append'] [class*='form_icon'] {
	border: 1px solid #acd0f7 !important;
	border-radius: 0 0.375rem 0.375rem 0 !important;
	background-color: #ffffff !important;
}

#orr-main #orr-calendar-widget-host [class*='filters__search']:focus-within [class*='form_icon'] {
	border-color: #f78f1e !important;
}

#orr-main #orr-calendar-widget-host [class*='table_logo'] {
	display: flex;
	align-items: center;
	min-width: 0;
}

/* Wide desktop: show Company column with room for logos. */
@media (min-width: 1200px) {
	#orr-main #orr-calendar-widget-host table th:nth-child(5),
	#orr-main #orr-calendar-widget-host table td:nth-child(5) {
		min-width: 200px;
		width: 200px;
	}

	#orr-main #orr-calendar-widget-host td:nth-child(5) [class*='table_logo'] {
		min-width: 180px;
	}
}

/*
 * Tablet / narrow desktop (table layout, 769px–1199px): hide Company so
 * View and Results stay on screen; mobile card layout uses <=768px.
 */
@media (min-width: 769px) and (max-width: 1199px) {
	#orr-main #orr-calendar-widget-host table th:nth-child(5),
	#orr-main #orr-calendar-widget-host table td:nth-child(5) {
		display: none !important;
	}

	#orr-main #orr-calendar-widget-host table th:nth-child(6),
	#orr-main #orr-calendar-widget-host table td:nth-child(6),
	#orr-main #orr-calendar-widget-host table th:nth-child(7),
	#orr-main #orr-calendar-widget-host table td:nth-child(7) {
		white-space: nowrap;
		width: 1%;
	}
}

#orr-main #orr-calendar-widget-host [class*='table_logo'] img[class*='association_logo'],
#orr-main #orr-calendar-widget-host img[class*='association_logo'] {
	display: block;
	max-width: 80px !important;
	max-height: 80px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	margin-right: 8px !important;
}

/* Match Race Roster calendar widget mobile layout (<= 768px). */
@media (max-width: 768px) {
	#orr-main #orr-calendar-widget-host table th:nth-child(5),
	#orr-main #orr-calendar-widget-host table td:nth-child(5) {
		display: none !important;
	}

	#orr-main #orr-calendar-widget-host img[class*='association_logo'] {
		display: none !important;
	}

	#orr-calendar.content-block,
	.orr-calendar-frame-wrap,
	#orr-main #orr-calendar-widget-host {
		overflow-x: visible;
		max-width: 100%;
	}
}

#orr-calendar-widget-host[hidden] {
	display: none !important;
}

#orr-main-content .orr-footer-copy {
	text-align: left;
	margin: 10px 0 0;
	padding: 0;
	font-family: inherit;
	font-size: 0.875rem;
	line-height: inherit;
	color: #51545d;
}

#orr-main-content .orr-footer-copy p {
	margin: 0;
}

/*
 * Race Roster widget: undo Online Race Results global #orr-main link/button
 * styles so the embed matches the standalone iframe appearance.
 */
#orr-main #orr-calendar-widget-host [class*='App_'] {
	vertical-align: baseline;
}

#orr-main #orr-calendar-widget-host button,
#orr-main #orr-calendar-widget-host input[type='button'],
#orr-main #orr-calendar-widget-host input[type='submit'] {
	margin: 0;
	font-weight: 400;
	transition: none;
}

#orr-main #orr-calendar-widget-host a:not([class*='App_table_link']):not([class*='App_btn']) {
	color: #000000 !important;
	text-decoration: underline;
}

#orr-main #orr-calendar-widget-host a:not([class*='App_table_link']):not([class*='App_btn']):hover,
#orr-main #orr-calendar-widget-host a:not([class*='App_table_link']):not([class*='App_btn']):focus {
	color: #000000 !important;
}

#orr-main #orr-calendar-widget-host a[class*='App_table_link'] {
	color: #ffffff !important;
	background-color: #0043bf !important;
	border: 1px solid #0043bf !important;
	padding: 6px 14px !important;
	text-decoration: none !important;
}

#orr-main #orr-calendar-widget-host a[class*='App_table_link']:hover,
#orr-main #orr-calendar-widget-host a[class*='App_table_link']:focus {
	color: #ffffff !important;
	background-color: #0043bf !important;
	border-color: #0043bf !important;
	filter: brightness(90%);
}

#orr-main #orr-calendar-widget-host [class*='filters__submit'] {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.5rem;
}

#orr-main #orr-calendar-widget-host .orr-widget-filter-clear {
	color: #4d4d4d !important;
	background-color: #ffffff !important;
	border: 1px solid #b3b3b3 !important;
	border-radius: 0.375rem;
	cursor: pointer;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1;
	margin: 0 !important;
	padding: 11px 15px !important;
}

#orr-main #orr-calendar-widget-host .orr-widget-filter-clear:hover,
#orr-main #orr-calendar-widget-host .orr-widget-filter-clear:focus {
	filter: brightness(90%);
	outline: 0;
	border-color: #f78f1e !important;
}

#orr-main #orr-calendar-widget-host .orr-widget-filter-clear[hidden] {
	display: none !important;
}

#orr-main #orr-calendar-widget-host [class*='App_btn_submit'] {
	color: #ffffff !important;
	background-color: #0043bf !important;
	border: 1px solid #0043bf !important;
	margin: 0 !important;
	padding: 11px 15px !important;
}

#orr-main #orr-calendar-widget-host [class*='App_btn_submit']:hover,
#orr-main #orr-calendar-widget-host [class*='App_btn_submit']:focus {
	color: #ffffff !important;
	background-color: #0043bf !important;
	border-color: #0d5ccf !important;
}

#orr-main #orr-calendar-widget-host [class*='App_pagination'] {
	display: flex !important;
}

@media (min-width: 769px) {
	#orr-main #orr-calendar-widget-host [class*='App_pagination'] {
		justify-content: flex-end !important;
	}
}

#orr-main #orr-calendar-widget-host [class*='App_pagination'] button {
	color: #4d4d4d !important;
	background-color: #ffffff !important;
	border: 1px solid #b3b3b3 !important;
	border-left-width: 0 !important;
	margin: 0 !important;
	padding: 11px 15px !important;
	font-weight: 400 !important;
	border-radius: 0 !important;
}

#orr-main #orr-calendar-widget-host [class*='App_pagination'] button:first-of-type {
	border-left-width: 1px !important;
	border-radius: 0.375rem 0 0 0.375rem !important;
}

#orr-main #orr-calendar-widget-host [class*='App_pagination'] button:last-of-type {
	border-radius: 0 0.375rem 0.375rem 0 !important;
}

#orr-main #orr-calendar-widget-host [class*='App_pagination'] button[class*='pagination__current_page'] {
	color: #ffffff !important;
	background-color: #0043bf !important;
	border-color: #0043bf !important;
}

#orr-main #orr-calendar-widget-host [class*='App_pagination'] button:disabled {
	opacity: 0.5;
	background-color: transparent !important;
	cursor: default;
}

#orr-main #orr-calendar-widget-host [class*='App_pagination'] button:hover:not(:disabled):not([class*='pagination__current_page']) {
	color: #4d4d4d !important;
	background-color: #ffffff !important;
	border-color: #b3b3b3 !important;
	filter: brightness(90%);
}

@media (max-width: 768px) {
	#orr-main #orr-calendar-widget-host [class*='App_pagination'] {
		justify-content: center !important;
		flex-wrap: wrap !important;
		width: 100%;
		max-width: 100%;
		overflow-x: visible;
		padding: 0.25rem 0;
		box-sizing: border-box;
		gap: 0.35rem;
	}

	#orr-main #orr-calendar-widget-host [class*='App_pagination'] button {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: none !important;
		min-width: 2.75rem;
		padding: 8px 12px !important;
		border-left-width: 1px !important;
		border-radius: 0.375rem !important;
		margin: 0 !important;
		box-sizing: border-box;
	}

	#orr-main #orr-calendar-widget-host [class*='App_pagination'] button[class*='pagination__current_page'] {
		width: auto !important;
		flex: 0 0 auto !important;
	}

	#orr-main #orr-calendar-widget-host [class*='App_pagination'] button:first-of-type,
	#orr-main #orr-calendar-widget-host [class*='App_pagination'] button:last-of-type {
		border-radius: 0.375rem !important;
	}
}
