/* Delaware Educator Path — accordion/stepper styles.
   Scoped under .ep-pathway to avoid fighting Avada global table/list styles.
   No horizontal scroll container is used anywhere in this file on purpose. */

.ep-pathway {
	--ep-navy: #0c3050;
	--ep-navy-light: #1b4a75;
	--ep-gold: #e0a72e;
	--ep-border: #d7dde3;
	--ep-bg-alt: #f4f6f8;
	max-width: 900px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.5;
}

.ep-pathway__title {
	color: var(--ep-navy);
	font-size: 1.5rem;
	margin-bottom: 0.25em;
}

.ep-pathway__intro {
	color: #333;
	margin-bottom: 1.5em;
}

/* --- Stage nav (the "1 2 3 ... 9" strip) ---
   Wraps freely — never scrolls. On narrow screens it becomes a stack of
   full-width buttons instead of staying in one row. */
.ep-pathway__nav-list {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.ep-pathway__nav-btn {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em 0.75em;
	background: var(--ep-bg-alt);
	border: 1px solid var(--ep-border);
	border-radius: 999px;
	color: var(--ep-navy);
	font-size: 0.9rem;
	cursor: pointer;
	min-height: 44px; /* touch target */
}

.ep-pathway__nav-btn:hover,
.ep-pathway__nav-btn:focus-visible {
	background: var(--ep-navy-light);
	color: #fff;
}

.ep-pathway__nav-btn.is-active {
	background: var(--ep-navy);
	color: #fff;
	font-weight: 600;
}

.ep-pathway__nav-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background: var(--ep-gold);
	color: var(--ep-navy);
	font-weight: 700;
	font-size: 0.85em;
	flex-shrink: 0;
}

/* On very narrow screens, drop the label text and rely on the number +
   aria-label-equivalent text still present for screen readers via visible
   text — kept visible here since hiding it would remove a visual affordance
   sighted low-vision users still need. Buttons simply wrap instead. */
@media (max-width: 420px) {
	.ep-pathway__nav-list {
		flex-direction: column;
	}
	.ep-pathway__nav-btn {
		width: 100%;
	}
}

/* --- Stepper controls (prev / position / next) --- */
.ep-pathway__stepper-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 1em;
	flex-wrap: wrap;
}

.ep-pathway__prev,
.ep-pathway__next {
	background: var(--ep-navy);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.6em 1em;
	font-size: 0.95rem;
	cursor: pointer;
	min-height: 44px;
}

.ep-pathway__prev:disabled,
.ep-pathway__next:disabled {
	background: var(--ep-border);
	color: #888;
	cursor: not-allowed;
}

.ep-pathway__position {
	font-weight: 600;
	color: var(--ep-navy);
}

/* --- Panels ---
   No-JS: all panels are block, stacked vertically (long page, fully readable).
   JS adds [hidden] to inactive panels — see educator-pathway.js. */
.ep-pathway__panel {
	border: 1px solid var(--ep-border);
	border-radius: 6px;
	padding: 1.25em;
	margin-bottom: 1.5em;
	background: #fff;
}

.ep-pathway__panel-heading {
	display: flex;
	align-items: center;
	gap: 0.6em;
	color: var(--ep-navy);
	font-size: 1.2rem;
	margin-top: 0;
}

.ep-pathway__panel-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8em;
	height: 1.8em;
	border-radius: 50%;
	background: var(--ep-navy);
	color: #fff;
	font-weight: 700;
	flex-shrink: 0;
}

/* --- Category disclosure --- */
.ep-pathway__category {
	border-top: 1px solid var(--ep-border);
	padding: 0.75em 0;
}

.ep-pathway__category:first-of-type {
	border-top: none;
}

.ep-pathway__category-summary {
	font-weight: 600;
	color: var(--ep-navy);
	cursor: pointer;
	min-height: 44px;
	display: flex;
	align-items: center;
}

.ep-pathway__list {
	margin: 0.5em 0 0;
	padding-left: 1.25em;
}

.ep-pathway__list li {
	margin-bottom: 0.35em;
}

.ep-pathway__cross-career {
	margin-top: 1em;
	padding-top: 0.75em;
	border-top: 1px dashed var(--ep-border);
	font-size: 0.95rem;
}

.ep-pathway__cross-career-label {
	font-weight: 600;
	color: var(--ep-navy);
}

/* --- Global blocks (entry points / policies) --- */
.ep-pathway__global-blocks {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5em;
	margin: 2em 0;
}

@media (min-width: 700px) {
	.ep-pathway__global-blocks {
		grid-template-columns: 1fr 1fr;
	}
}

.ep-pathway__entry-points,
.ep-pathway__policies {
	background: var(--ep-bg-alt);
	border-radius: 6px;
	padding: 1em 1.25em;
}

.ep-pathway__entry-points h3,
.ep-pathway__policies h3 {
	color: var(--ep-navy);
	font-size: 1.05rem;
	margin-top: 0;
}

.ep-pathway__footer {
	font-weight: 600;
	color: var(--ep-navy);
}

.ep-pathway__footnote {
	font-size: 0.85rem;
	color: #666;
}

/* Respect reduced-motion preferences if a future JS version adds panel
   transitions. */
@media (prefers-reduced-motion: reduce) {
	.ep-pathway * {
		transition: none !important;
	}
}
