.hps-advocate-portal,
.hps-advocate-application {
	--hps-ink: #17221d;
	--hps-green: #135f45;
	--hps-green-dark: #0b4934;
	--hps-mint: #e9f7f1;
	--hps-border: #a9c4b8;
	--hps-warning: #fff7dd;
	box-sizing: border-box;
	color: var(--hps-ink);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 72rem;
	margin: 0 auto;
	padding: 1rem;
}

.hps-advocate-portal *,
.hps-advocate-application * {
	box-sizing: border-box;
}

.hps-advocate-hero {
	background: var(--hps-mint);
	border-radius: 1rem;
	padding: clamp(1.25rem, 4vw, 3rem);
}

.hps-advocate-eyebrow {
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.hps-advocate-tabs {
	display: flex;
	gap: .5rem;
	overflow-x: auto;
	padding: .75rem 0;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
	-webkit-overflow-scrolling: touch;
}

.hps-advocate-tabs a,
.hps-button,
.hps-advocate-portal button,
.hps-advocate-application button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: .65rem 1rem;
	border: 2px solid var(--hps-green);
	border-radius: .5rem;
	background: #fff;
	color: var(--hps-green-dark);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.hps-advocate-tabs a[aria-current="page"],
.hps-advocate-portal button:hover,
.hps-advocate-application button:hover,
.hps-button:hover {
	background: var(--hps-green);
	color: #fff;
}

.hps-advocate-tabs a:focus-visible,
.hps-button:focus-visible,
.hps-advocate-portal button:focus-visible,
.hps-advocate-application button:focus-visible,
.hps-advocate-portal a:focus-visible,
.hps-advocate-portal input:focus-visible,
.hps-advocate-portal select:focus-visible,
.hps-advocate-portal textarea:focus-visible,
.hps-advocate-application input:focus-visible,
.hps-advocate-application select:focus-visible,
.hps-advocate-application textarea:focus-visible,
.hps-advocate-application summary:focus-visible {
	outline: 3px solid #f1ad2f;
	outline-offset: 2px;
}

.hps-advocate-portal section {
	scroll-margin-top: 5rem;
	padding: 1.5rem 0;
}

.hps-advocate-cards,
.hps-content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
}

.hps-advocate-cards article,
.hps-advocate-notice,
.hps-advocate-course-list li,
.hps-tool-card,
.hps-content-grid article,
.hps-agreement,
.hps-advocate-boundary,
.hps-advocate-activity,
.hps-knowledge-checks fieldset,
.hps-assessment-form fieldset {
	border: 1px solid var(--hps-border);
	border-radius: .75rem;
	padding: 1rem;
}

.hps-advocate-notice,
.hps-advocate-boundary,
.hps-advocate-activity {
	background: var(--hps-warning);
	margin: 1rem 0;
}

.hps-advocate-course-list {
	list-style-position: inside;
	padding: 0;
}

.hps-advocate-course-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	margin: .75rem 0;
}

.hps-advocate-course-list li > div:last-child {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .75rem;
}

.hps-status {
	display: inline-block;
	padding: .25rem .6rem;
	border-radius: 99px;
	background: #eceff1;
	font-weight: 700;
}

.hps-status-completed {
	background: var(--hps-mint);
	color: var(--hps-green-dark);
}

.hps-status-locked {
	color: #50575e;
}

.hps-advocate-application label,
.hps-advocate-application legend,
.hps-advocate-portal label,
.hps-advocate-portal legend {
	display: block;
	font-weight: 700;
	margin: .5rem 0;
}

.hps-knowledge-checks label,
.hps-assessment-form label,
.hps-advocate-application fieldset label,
.hps-advocate-action label {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-weight: 400;
}

.hps-advocate-portal input[type="text"],
.hps-advocate-portal input[type="search"],
.hps-advocate-portal select,
.hps-advocate-portal textarea,
.hps-advocate-application input[type="text"],
.hps-advocate-application input[type="email"],
.hps-advocate-application textarea {
	width: 100%;
	min-height: 44px;
	padding: .65rem;
	border: 2px solid var(--hps-border);
	border-radius: .4rem;
	background: #fff;
	color: var(--hps-ink);
	font: inherit;
}

.hps-advocate-portal textarea,
.hps-advocate-application textarea {
	min-height: 9rem;
}

.hps-content-filter {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	align-items: end;
	margin: 1rem 0;
}

.hps-content-filter button {
	margin-bottom: 1rem;
}

.hps-content-body,
.hps-tool-card code {
	overflow-wrap: anywhere;
}

.hps-tool-card code {
	display: block;
	margin: .75rem 0;
	padding: .75rem;
	background: #f6f7f7;
}

.hps-lesson-nav,
.hps-advocate-action {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: space-between;
	margin-top: 1.25rem;
}

.hps-agreement pre {
	max-height: 28rem;
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-word;
}

.hps-table-wrap {
	overflow-x: auto;
	margin-top: 1rem;
}

.hps-table-wrap table {
	width: 100%;
	min-width: 42rem;
	border-collapse: collapse;
}

.hps-table-wrap th,
.hps-table-wrap td {
	padding: .75rem;
	border-bottom: 1px solid var(--hps-border);
	text-align: left;
	vertical-align: top;
}

@media (max-width: 768px) {
	.hps-content-filter,
	.hps-advocate-course-list li {
		grid-template-columns: 1fr;
	}

	.hps-advocate-course-list li > div:last-child {
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.hps-advocate-portal,
	.hps-advocate-application {
		padding: .75rem;
	}

	.hps-advocate-tabs {
		margin-inline: -.75rem;
		padding-inline: .75rem;
	}

	.hps-lesson-nav,
	.hps-advocate-action {
		flex-direction: column;
	}

	.hps-button,
	.hps-advocate-action button,
	.hps-assessment-form button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hps-advocate-portal *,
	.hps-advocate-application * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
