/**
 * Shared styles for all NPHI ACF blocks.
 * Per-block style.css handles block-specific rules.
 */

.nphi-block {
	overflow-wrap: break-word;
}

/* Homepage Events — green-teal background, white cards.
   Global copy so the static front-page.php path gets it too;
   per-block style.css mirrors it for the editor/block path. */
.nphi-evsec--dark {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 70% 40%, rgba(42, 163, 163, 0.18) 0%, transparent 60%),
		radial-gradient(ellipse 60% 50% at 20% 80%, rgba(232, 119, 42, 0.08) 0%, transparent 50%),
		linear-gradient(160deg, #0a2e2e 0%, #0f3d4a 48%, #155e5e 100%);
	padding: 70px 0;
}
.nphi-evsec--dark::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 0v80M0 40h80'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.nphi-evsec--dark > div {
	position: relative;
	z-index: 1;
}
.nphi-evsec--dark .nphi-sec-label {
	color: #f07a42;
}
.nphi-evsec--dark .nphi-sec-label::before {
	background: #f07a42;
}
.nphi-evsec--dark .nphi-sec-head h2 {
	color: #fff;
}
.nphi-evsec--dark .nphi-sec-head p {
	color: rgba(255, 255, 255, 0.78);
}
.nphi-evsec--dark .events-calendar-layout {
	align-items: start;
}
.nphi-evsec--dark .events-vertical-list {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.nphi-evsec--dark .event-featured {
	background: #fff;
	border: 1.5px solid #16a34a;
	box-shadow: 0 14px 30px -10px rgba(22, 163, 74, 0.4), 0 4px 14px -6px rgba(0, 0, 0, 0.3);
	padding: 30px;
	align-items: center;
}
.nphi-evsec--dark .event-featured:hover {
	transform: translateY(-3px);
	border-color: #16a34a;
	box-shadow: 0 20px 36px -12px rgba(22, 163, 74, 0.45), 0 8px 18px -8px rgba(0, 0, 0, 0.35);
}
.nphi-evsec--dark .event-featured .event-date-block {
	background: #16a34a;
	width: 84px;
	height: 92px;
}
.nphi-evsec--dark .event-featured .event-date-block .ev-day {
	font-size: 1.9rem;
}
.nphi-evsec--dark .event-featured .ev-content h4,
.nphi-evsec--dark .event-featured .ev-content h4 a {
	color: #111827;
	font-size: 1.15rem;
}
.nphi-evsec--dark .event-featured .ev-register-btn {
	background: #16a34a;
	width: 50px;
	height: 50px;
}
.nphi-evsec--dark .event-featured .ev-register-btn:hover {
	background: #15803d;
}
.ev-next-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #16a34a;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 12px;
	border-radius: 9999px;
	margin-bottom: 8px;
}
.ev-next-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
}
.nphi-evsec--dark .event-past {
	background: #f4f7f7;
	border: 1px solid #e5e7eb;
	box-shadow: 0 3px 10px -6px rgba(0, 0, 0, 0.3);
	padding: 20px 24px;
	align-items: center;
}
.nphi-evsec--dark .event-past:hover {
	background: #fff;
	border-color: #a0dede;
	transform: translateY(-2px);
}
.nphi-evsec--dark .event-past .event-date-block {
	background: #1a6b6b;
	width: 64px;
	height: 72px;
}
.nphi-evsec--dark .event-past .event-date-block .ev-day {
	font-size: 1.4rem;
}
.nphi-evsec--dark .event-past .ev-content h4,
.nphi-evsec--dark .event-past .ev-content h4 a {
	color: #374151;
	font-size: 0.95rem;
}
.nphi-evsec--dark .event-past .event-details-v {
	font-size: 0.78rem;
}
.nphi-evsec--dark .event-details-v {
	color: #6b7280;
}
.nphi-evsec--dark .event-details-v svg,
.nphi-evsec--dark .event-details-v i {
	color: #9ca3af;
}
.nphi-evsec--dark .type-webinar {
	background: #dbeafe;
	color: #2563eb;
}
.nphi-evsec--dark .type-workshop {
	background: #dcfce7;
	color: #16a34a;
}
.nphi-evsec--dark .type-conference {
	background: #fef3c7;
	color: #d97706;
}
.nphi-evsec--dark .intl-days-sidebar {
	height: 100%;
}
.nphi-evsec--dark .intl-days-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.35);
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 12px;
}
.nphi-evsec--dark .intl-days-header {
	background: #fff;
	color: #0a2e2e;
	padding: 14px 22px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid #e5e7eb;
}
.nphi-evsec--dark .intl-days-header h3 {
	margin: 0;
	font-size: 1.05rem;
	color: #0a2e2e;
}
.nphi-evsec--dark .intl-cal-icon {
	width: 44px;
	height: 44px;
	background: #d4f0f0;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #1a6b6b;
}
.nphi-evsec--dark .intl-cal-icon svg,
.nphi-evsec--dark .intl-cal-icon i {
	width: 20px;
	height: 20px;
}
.nphi-evsec--dark .intl-days-list {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 6px 0;
	background: #fff;
	min-height: 320px;
}
.nphi-evsec--dark .intl-day-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	border-bottom: 1px solid #f3f4f6;
	padding: 14px 22px;
	background: #fff;
}
.nphi-evsec--dark .intl-day-item:last-child {
	border-bottom: none;
}
.nphi-evsec--dark .intl-day-item:hover {
	background: #f9fafb;
}
.nphi-evsec--dark .intl-day-date {
	width: 62px;
	height: 68px;
	flex-shrink: 0;
	background: #1a6b6b;
	border-radius: 8px;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.nphi-evsec--dark .intl-day-date .id-day {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
}
.nphi-evsec--dark .intl-day-date .id-month {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-top: 3px;
}
.nphi-evsec--dark .intl-day-info {
	min-width: 0;
	flex: 1;
}
.nphi-evsec--dark .intl-day-info h4 {
	color: #1f2937;
	font-size: 0.92rem;
	line-height: 1.4;
	margin: 0;
}
.nphi-evsec--dark .intl-day-info .day-remaining {
	display: block;
	margin-top: 4px;
	font-size: 0.82rem;
	color: #6b7280;
}
.nphi-evsec--dark .intl-day-info .day-remaining.today {
	color: #1a6b6b;
	font-weight: 700;
}
/* Nearest day — same teal treatment, no separate highlight. */
.nphi-evsec--dark .intl-day-first {
	background: #fff;
}
.nphi-evsec--dark .intl-day-first:hover {
	background: #f9fafb;
}
.nphi-evsec--dark .intl-day-first .intl-day-info h4 {
	font-size: 0.92rem;
}
.nphi-evsec--dark .intl-day-empty {
	pointer-events: none;
}
.nphi-evsec--dark .intl-day-date--empty {
	background: #f3f4f6;
}
.nphi-evsec--dark .intl-day-empty-line {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: #f3f4f6;
	margin-top: 8px;
}
.nphi-evsec--dark .intl-day-empty-line.short {
	width: 45%;
}
@media (min-width: 1025px) and (max-height: 850px) {
	.nphi-evsec--dark {
		padding: 48px 0;
	}
	.nphi-evsec--dark .nphi-sec-head {
		margin-bottom: 28px;
	}
	.nphi-evsec--dark .event-featured {
		padding: 22px;
	}
	.nphi-evsec--dark .event-featured .event-date-block {
		width: 72px;
		height: 80px;
	}
	.nphi-evsec--dark .event-past {
		padding: 14px 20px;
	}
	.nphi-evsec--dark .intl-days-header {
		padding: 14px 20px;
	}
	.nphi-evsec--dark .intl-day-item {
		padding: 10px 20px;
	}
	.nphi-evsec--dark .intl-day-date {
		width: 54px;
		height: 60px;
	}
}
@media (max-width: 1024px) {
	.nphi-evsec--dark .events-vertical-list,
	.nphi-evsec--dark .intl-days-sidebar,
	.nphi-evsec--dark .intl-days-card {
		height: auto;
	}
}
@media (max-width: 768px) {
	.nphi-evsec--dark {
		padding: 56px 0;
	}
}

/* CTA consistency: demo fallback register buttons route to /register/.
   Solid primary treatment + visible keyboard focus on all CTAs. */
.ev-register-btn--solid {
	background: #1a6b6b;
	color: #fff;
}
.ev-register-btn--solid:hover {
	background: #115252;
	color: #fff;
}
a.ev-register-btn:focus-visible,
button.ev-register-btn:focus-visible,
.nl-form button:focus-visible,
.nphi-view-all:focus-visible,
.nphi-view-all-w:focus-visible,
.nphi-read:focus-visible,
.view-link:focus-visible {
	outline: 2px solid #1a6b6b;
	outline-offset: 2px;
}
.nl-form button.nl-submit {
	background: #1a6b6b;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.nl-form button.nl-submit:hover {
	background: #115252;
}
