/* Scoped event page — overrides common theme conflicts */
.ntta-event-page {
	max-width: 960px;
	margin: 0 auto;
	padding: 1rem 1.25rem 2rem;
	box-sizing: border-box;
}

.ntta-event-page *,
.ntta-event-page *::before,
.ntta-event-page *::after {
	box-sizing: border-box;
}

.ntta-event-page__title {
	margin: 0 0 1rem;
	font-size: 1.75rem;
	line-height: 1.3;
}

.ntta-preview-banner {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	color: #92400e;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: 6px;
	font-weight: 600;
}

.ntta-event-tabs {
	width: 100%;
}

.ntta-event-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 1.25rem;
}

.ntta-event-tabs__tab {
	appearance: none;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 0.65rem 1rem;
	margin-bottom: -2px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	line-height: 1.4;
}

.ntta-event-tabs__tab:hover,
.ntta-event-tabs__tab:focus {
	color: var(--wp--preset--color--primary, #0f766e);
	outline: 2px solid var(--wp--preset--color--primary, #0f766e);
	outline-offset: 2px;
}

.ntta-event-tabs__tab.is-active {
	color: var(--wp--preset--color--primary, #0f766e);
	border-bottom-color: var(--wp--preset--color--primary, #0f766e);
}

.ntta-event-tabs__panel {
	display: none !important;
	visibility: hidden;
}

.ntta-event-tabs__panel.is-active {
	display: block !important;
	visibility: visible;
}

.ntta-event-details-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1rem;
	background: #fff;
}

.ntta-event-details-table th,
.ntta-event-details-table td {
	text-align: left;
	padding: 0.75rem 1rem;
	border: 1px solid #e2e8f0;
	vertical-align: top;
}

.ntta-event-details-table th {
	width: 35%;
	font-weight: 600;
	color: #334155;
	background: #f8fafc;
}

.ntta-event-details-table td {
	color: #1e293b;
}

.ntta-event-rules,
.ntta-event-schedule {
	line-height: 1.6;
}

.ntta-event-rules h3,
.ntta-event-schedule h3,
.ntta-event-rules h4,
.ntta-event-schedule h4 {
	margin: 1.25rem 0 0.75rem;
}

.ntta-schedule-table,
.ntta-results-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	font-size: 0.9rem;
}

.ntta-schedule-table th,
.ntta-schedule-table td,
.ntta-results-table th,
.ntta-results-table td {
	border: 1px solid #e2e8f0;
	padding: 0.5rem 0.65rem;
}

.ntta-results-category {
	margin-bottom: 2rem;
}

.ntta-ineligible-list {
	margin: 0;
	padding-left: 1.25rem;
	color: #64748b;
}

.ntta-cat-label {
	display: block;
	margin: 0.35rem 0;
}

.ntta-fee-preview {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1rem;
	margin: 1rem 0;
}

.ntta-enroll-gate {
	padding: 1rem;
	background: #f1f5f9;
	border-radius: 8px;
}

.ntta-history-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ntta-history-list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
	.ntta-event-tabs__tab {
		flex: 1 1 auto;
		font-size: 0.8rem;
		padding: 0.5rem 0.6rem;
	}

	.ntta-event-details-table th,
	.ntta-event-details-table td {
		display: block;
		width: 100%;
	}
}

.ntta-enroll-notice {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
}

.ntta-enroll-notice--warning {
	background: #fef3c7;
	border-color: #f59e0b;
	color: #92400e;
}

.ntta-enroll-notice--info {
	background: #f0f9ff;
	border-color: #7dd3fc;
	color: #0c4a6e;
}

.ntta-enroll-notice--error {
	background: #fef2f2;
	border-color: #f87171;
	color: #991b1b;
}

.ntta-cat-label--enrolled {
	opacity: 0.75;
}

.ntta-cat-enrolled-badge {
	font-size: 0.85em;
	color: #646970;
	font-style: italic;
}
