/* Holinex Internship Manager — front end
   The typeface is inherited from the theme on purpose; colour, rhythm and
   structure are set here. Override any variable below in your theme CSS. */

.him-wrap,
.him-badge,
.him-stats {
	--him-ink: #0e1a2b;
	--him-ink-soft: #16243a;
	--him-brand: #d81f2a;
	--him-brand-dark: #ac1620;
	--him-slate: #55677d;
	--him-line: #dde5ee;
	--him-line-soft: #eaeff5;
	--him-tint: #f4f7fa;
	--him-open: #0d6b48;
	--him-open-bg: #e6f3ec;
	--him-soon: #8a5606;
	--him-soon-bg: #fdf2e0;
	--him-off: #5d6b7d;
	--him-off-bg: #eef1f5;
	--him-radius: 3px;
}

.him-wrap {
	color: var(--him-ink);
	line-height: 1.65;
	max-width: 1080px;
	margin-inline: auto;
}

.him-wrap,
.him-wrap *,
.him-wrap *::before,
.him-wrap *::after {
	box-sizing: border-box;
}

.him-wrap p {
	margin: 0 0 1rem;
}

.him-wrap a:not(.him-btn) {
	color: var(--him-brand);
}

.him-small {
	font-size: .875rem;
	color: var(--him-slate);
	margin: 0;
}

.him-lead {
	max-width: 68ch;
	color: var(--him-slate);
}

/* ------------------------------------------------------------------ Hero */

.him-hero {
	background: transparent;
	color: var(--him-ink);
	padding: 0 0 clamp(1.5rem, 3vw, 2.25rem);
	border-bottom: 1px solid var(--him-line);
}

.him-hero__state {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin: 0 0 1.25rem;
}

.him-hero__org {
	font-size: .85rem;
	color: var(--him-slate);
}

.him-hero__title {
	margin: 0 0 .5rem;
	font-size: clamp(1.6rem, 3.4vw, 2.5rem);
	line-height: 1.12;
	color: var(--him-ink);
	max-width: 22ch;
}

.him-hero__tagline {
	margin: 0 0 1.25rem;
	color: var(--him-brand);
	font-weight: 600;
	font-size: 1rem;
}

.him-hero__intro {
	margin: 0 0 1.75rem;
	max-width: 62ch;
	color: var(--him-slate);
	font-size: 1.02rem;
}

.him-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0;
	margin: 0 0 1.75rem;
	border: 1px solid var(--him-line);
	border-radius: var(--him-radius);
	overflow: hidden;
}

.him-facts > div {
	background: transparent;
	padding: .95rem 1.1rem;
	border-right: 1px solid var(--him-line);
}

.him-facts > div:last-child {
	border-right: 0;
}

.him-facts dt {
	font-size: .78rem;
	color: var(--him-slate);
	margin: 0 0 .2rem;
}

.him-facts dd {
	margin: 0;
	font-weight: 600;
	font-size: .98rem;
	color: var(--him-ink);
}

.him-promise {
	margin: 0 0 1.75rem;
	padding: 0 0 0 1.1rem;
	border-left: 3px solid var(--him-brand);
	color: var(--him-ink);
	font-size: 1.02rem;
	max-width: 64ch;
	font-style: normal;
}

.him-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
	margin: 0;
}

.him-wrap .him-hero .him-link {
	color: var(--him-slate);
	font-size: .92rem;
}

/* --------------------------------------------------------- Status pills */

.him-pill {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .3rem .7rem;
	border-radius: 100px;
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	background: var(--him-off-bg);
	color: var(--him-off);
}

.him-pill--open {
	background: var(--him-open-bg);
	color: var(--him-open);
}

.him-pill--soon {
	background: var(--him-soon-bg);
	color: var(--him-soon);
}

.him-pill .him-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

/* ---------------------------------------------------------- Section shell */

.him-section {
	padding: clamp(1.75rem, 4vw, 2.75rem) 0;
	border-bottom: 1px solid var(--him-line-soft);
}

.him-section:last-child {
	border-bottom: 0;
}

.him-h {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.25rem;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	line-height: 1.25;
	color: var(--him-ink);
}

.him-h::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--him-line);
}

.him-h4 {
	margin: 2rem 0 .85rem;
	font-size: 1.05rem;
}

.him-section--two {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem 3rem;
}

.him-split {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
	gap: 1.5rem 2.5rem;
	align-items: start;
}

.him-aside {
	background: var(--him-tint);
	border-left: 3px solid var(--him-ink);
	padding: 1.1rem 1.25rem;
}

.him-aside p {
	margin: 0;
	font-size: .93rem;
	color: var(--him-slate);
}

/* ---------------------------------------------------------------- Lists */

.him-ticks {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 1;
}

.him-ticks li {
	position: relative;
	padding: 0 0 .55rem 1.6rem;
	margin: 0;
}

.him-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5rem;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 2px solid var(--him-brand);
}

.him-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: .75rem 0 0;
}

.him-tag {
	font-size: .8rem;
	padding: .22rem .6rem;
	border: 1px solid var(--him-line);
	border-radius: 100px;
	color: var(--him-slate);
	background: transparent;
}

.him-defs {
	margin: 0;
	display: grid;
	gap: .9rem;
}

.him-defs > div {
	border-left: 2px solid var(--him-line);
	padding-left: 1rem;
}

.him-defs dt {
	font-weight: 600;
	margin-bottom: .15rem;
}

.him-defs dd {
	margin: 0;
	color: var(--him-slate);
	font-size: .95rem;
}

/* --------------------------------------------------------------- Stages */

.him-stages {
	list-style: none;
	counter-reset: him-stage;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}

.him-stage {
	border: 1px solid var(--him-line);
	border-top: 3px solid var(--him-ink);
	padding: 1.35rem 1.5rem;
	margin: 0;
}

.him-stage__period {
	margin: 0 0 .2rem;
	font-size: .85rem;
	font-weight: 600;
	color: var(--him-brand);
}

.him-stage__title {
	margin: 0 0 .85rem;
	font-size: 1.08rem;
}

.him-stage ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.him-stage li {
	padding: 0 0 .5rem 1.1rem;
	position: relative;
	font-size: .95rem;
	color: var(--him-slate);
}

.him-stage li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62rem;
	width: 5px;
	height: 5px;
	background: var(--him-line);
	border-radius: 50%;
}

/* -------------------------------------------------------------- Stipend */

.him-stipend {
	border: 1px solid var(--him-line);
	background: rgba(255, 255, 255, .55);
	margin-bottom: 1rem;
}

.him-stipend__row {
	display: grid;
	grid-template-columns: 140px 230px minmax(0, 1fr);
	gap: .5rem 1.5rem;
	padding: 1.1rem 1.35rem;
	align-items: baseline;
	border-bottom: 1px solid var(--him-line-soft);
}

.him-stipend__row:last-child {
	border-bottom: 0;
}

.him-stipend__period {
	font-weight: 600;
}

.him-stipend__amount {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--him-ink);
}

.him-stipend__note {
	color: var(--him-slate);
	font-size: .92rem;
}

.him-callout {
	margin-top: 1.5rem;
	border: 1px solid var(--him-line);
	border-left: 3px solid var(--him-brand);
	background: var(--him-tint);
	padding: 1.25rem 1.4rem;
}

.him-callout h4 {
	margin: 0 0 .4rem;
	font-size: 1rem;
}

.him-callout p {
	margin: 0;
	color: var(--him-slate);
	max-width: 70ch;
}

/* ----------------------------------------------------------- Evaluation */

.him-weights {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.him-weights th,
.him-weights td {
	border: 0;
	padding: .5rem .75rem .5rem 0;
	text-align: left;
	vertical-align: middle;
	background: none;
}

.him-weights th {
	font-weight: 500;
	width: 42%;
}

.him-weights__bar {
	width: 45%;
}

.him-weights__bar span {
	display: block;
	height: 8px;
	background: var(--him-ink);
	border-radius: 100px;
	min-width: 4px;
}

.him-weights__num {
	width: 13%;
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Steps */

.him-steps {
	list-style: none;
	counter-reset: him-step;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1.25rem;
}

.him-steps li {
	counter-increment: him-step;
	margin: 0;
	padding-top: 2.6rem;
	position: relative;
	border-top: 1px solid var(--him-line);
}

.him-steps li::before {
	content: counter(him-step, decimal-leading-zero);
	position: absolute;
	top: .9rem;
	left: 0;
	font-weight: 700;
	font-size: .85rem;
	color: var(--him-brand);
}

.him-steps h4 {
	margin: 0 0 .3rem;
	font-size: 1rem;
}

.him-steps p {
	margin: 0;
	font-size: .93rem;
	color: var(--him-slate);
}

/* ------------------------------------------------------------ Positions */

.him-positions__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: .5rem 1.5rem;
}

.him-positions__head .him-h {
	flex: 1 1 200px;
}

.him-dept {
	margin-top: 1.75rem;
}

.him-dept__name {
	margin: 0 0 .75rem;
	font-size: .95rem;
	font-weight: 700;
	color: var(--him-slate);
}

.him-roles {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--him-line);
	background: rgba(255, 255, 255, .55);
}

.him-role {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	justify-content: space-between;
	align-items: flex-start;
	padding: 1.25rem 1.4rem;
	border-bottom: 1px solid var(--him-line-soft);
	border-left: 3px solid transparent;
	margin: 0;
}

.him-role:last-child {
	border-bottom: 0;
}

.him-role--open {
	border-left-color: var(--him-brand);
}

.him-role--closed .him-role__title,
.him-role--closed .him-role__summary {
	color: var(--him-slate);
}

.him-role__main {
	flex: 1 1 340px;
	min-width: 0;
}

.him-role__title {
	margin: 0 0 .3rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.him-role__summary {
	margin: 0 0 .5rem;
	color: var(--him-slate);
	font-size: .95rem;
	max-width: 62ch;
}

.him-role__more {
	margin: .5rem 0;
	font-size: .93rem;
}

.him-role__more summary {
	cursor: pointer;
	color: var(--him-brand);
	font-weight: 600;
}

.him-role__more > div {
	padding-top: .5rem;
	color: var(--him-slate);
}

.him-role__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1.25rem;
	margin: .6rem 0 0;
	font-size: .85rem;
	color: var(--him-slate);
}

.him-role__side {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .6rem;
	text-align: right;
}

/* ----------------------------------------------------------------- Form */

.him-apply {
	scroll-margin-top: 90px;
}

.him-apply__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: .5rem 1.5rem;
}

.him-apply__head .him-h {
	flex: 1 1 200px;
}

.him-form {
	border: 1px solid var(--him-line);
	background: #fff;
}

.him-fieldset {
	border: 0;
	border-bottom: 1px solid var(--him-line-soft);
	margin: 0;
	padding: 1.5rem clamp(1.1rem, 3vw, 1.9rem);
}

.him-fieldset:last-of-type {
	border-bottom: 0;
}

.him-fieldset > legend {
	display: block;
	float: none;
	padding: 0;
	margin: 0 0 1.1rem;
	font-weight: 700;
	font-size: .95rem;
	color: var(--him-ink);
}

.him-fieldset--confirm {
	padding-top: 1.5rem;
}

.him-fieldset--confirm .him-checks {
	background: var(--him-tint);
	border: 1px solid var(--him-line-soft);
	padding: 1.1rem 1.25rem;
}

.him-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.him-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1.1rem 1.5rem;
	clear: both;
}

.him-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.him-field--full {
	grid-column: 1 / -1;
}

.him-field > label {
	font-weight: 600;
	font-size: .9rem;
	margin-bottom: .35rem;
}

.him-req {
	color: var(--him-brand);
}

.him-form input[type="text"],
.him-form input[type="email"],
.him-form input[type="url"],
.him-form input[type="file"],
.him-form select,
.him-form textarea,
.him-notify input[type="email"] {
	width: 100%;
	max-width: 100%;
	padding: .65rem .75rem;
	border: 1px solid #c9d4e0;
	border-radius: var(--him-radius);
	background: #fff;
	color: var(--him-ink);
	font: inherit;
	font-size: .96rem;
}

.him-form textarea {
	resize: vertical;
}

.him-form input:focus,
.him-form select:focus,
.him-form textarea:focus,
.him-notify input:focus,
.him-btn:focus-visible,
.him-role__more summary:focus-visible {
	outline: 2px solid var(--him-brand);
	outline-offset: 1px;
	border-color: var(--him-brand);
}

.him-hint {
	font-size: .82rem;
	color: var(--him-slate);
	margin-top: .35rem;
}

.him-check {
	margin: 0 0 .85rem;
	font-size: .94rem;
}

.him-check:last-of-type {
	margin-bottom: 0;
}

.him-check label {
	display: flex;
	gap: .65rem;
	align-items: flex-start;
	cursor: pointer;
}

.him-check input {
	margin: .3rem 0 0;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	accent-color: var(--him-brand);
}

.him-submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
	margin: 0;
	padding: 1.35rem clamp(1.1rem, 3vw, 1.9rem);
	border-top: 1px solid var(--him-line);
}

.him-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

/* -------------------------------------------------------------- Buttons */
/* The a.him-btn selectors are deliberately specific: themes usually colour
   links with a:link, which would otherwise win over a plain class. */

.him-wrap .him-btn,
.him-wrap a.him-btn:link,
.him-wrap a.him-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .7rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--him-radius);
	font: inherit;
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.him-wrap .him-btn--primary,
.him-wrap a.him-btn--primary:link,
.him-wrap a.him-btn--primary:visited {
	background: var(--him-brand);
	border-color: var(--him-brand);
	color: #fff;
}

.him-wrap .him-btn--primary:hover,
.him-wrap .him-btn--primary:focus,
.him-wrap a.him-btn--primary:hover,
.him-wrap a.him-btn--primary:focus {
	background: var(--him-brand-dark);
	border-color: var(--him-brand-dark);
	color: #fff;
}

.him-wrap .him-btn--ghost,
.him-wrap a.him-btn--ghost:link,
.him-wrap a.him-btn--ghost:visited {
	background: transparent;
	border-color: var(--him-ink);
	color: var(--him-ink);
}

.him-wrap .him-btn--ghost:hover,
.him-wrap a.him-btn--ghost:hover,
.him-wrap a.him-btn--ghost:focus {
	background: var(--him-ink);
	border-color: var(--him-ink);
	color: #fff;
}

.him-wrap .him-btn--small,
.him-wrap a.him-btn--small:link,
.him-wrap a.him-btn--small:visited {
	padding: .5rem 1.15rem;
	font-size: .88rem;
	background: var(--him-ink);
	border-color: var(--him-ink);
	color: #fff;
}

.him-wrap .him-btn--small:hover,
.him-wrap a.him-btn--small:hover,
.him-wrap a.him-btn--small:focus {
	background: var(--him-brand);
	border-color: var(--him-brand);
	color: #fff;
}

.him-wrap .him-btn--wide {
	min-width: 220px;
}

/* --------------------------------------------------------- Closed state */

.him-closed {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
	gap: 1.5rem 3rem;
	align-items: start;
	margin-top: 2rem;
	padding: clamp(1.35rem, 3vw, 2rem);
	border: 1px solid var(--him-line);
	border-left: 3px solid var(--him-ink);
	background: var(--him-tint);
	scroll-margin-top: 90px;
}

.him-closed__title {
	margin: 0 0 .5rem;
	font-size: 1.25rem;
}

.him-closed__message {
	margin: 0 0 .5rem;
	color: var(--him-slate);
	max-width: 60ch;
}

.him-closed__next {
	margin: 0;
	font-weight: 600;
}

.him-notify__label {
	display: block;
	font-weight: 600;
	font-size: .92rem;
	margin-bottom: .45rem;
}

.him-notify__row {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin-bottom: .5rem;
}

.him-notify__row input {
	flex: 1 1 190px;
}

/* -------------------------------------------------------------- Notices */

.him-notice {
	border: 1px solid var(--him-line);
	border-left: 3px solid var(--him-open);
	background: var(--him-open-bg);
	padding: 1.1rem 1.25rem;
	margin: 2rem 0 0;
}

.him-notice p {
	margin: 0 0 .4rem;
}

.him-notice p:last-child,
.him-notice ul:last-child {
	margin-bottom: 0;
}

.him-notice--error {
	border-left-color: var(--him-brand);
	background: #fdf0f1;
}

.him-notice ul {
	margin: .25rem 0 0 1.15rem;
}

.him-code {
	font-size: .95rem;
}

/* ------------------------------------------------- Standalone shortcodes */

.him-badge {
	display: inline-flex;
	align-items: center;
	padding: .28rem .7rem;
	border-radius: 100px;
	font-size: .85rem;
	font-weight: 600;
	background: var(--him-off-bg);
	color: var(--him-off);
}

.him-badge--open {
	background: var(--him-open-bg);
	color: var(--him-open);
}

.him-stats {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin: 1rem 0;
	padding: 0;
}

.him-stats li {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.him-stats strong {
	font-size: 2rem;
	line-height: 1.1;
	color: var(--him-ink);
}

.him-stats span {
	font-size: .85rem;
	color: var(--him-slate);
}

/* ----------------------------------------------------------- Responsive */

@media (max-width: 900px) {
	/* Many themes drop their container padding on small screens, which would
	   leave this content flush against the edge. Keep a safe margin. */
	.him-wrap {
		padding-inline: 16px;
	}
}

@media (max-width: 782px) {
	.him-split,
	.him-closed {
		grid-template-columns: 1fr;
	}

	.him-stipend__row {
		grid-template-columns: 1fr;
		gap: .25rem;
	}

	.him-facts > div:nth-child(-n+2) {
		border-bottom: 1px solid var(--him-line);
	}

	.him-role {
		flex-direction: column;
	}

	.him-role__main {
		flex: 0 0 auto;
		width: 100%;
	}

	.him-role__side {
		flex-direction: row;
		align-items: center;
		text-align: left;
		width: 100%;
		justify-content: space-between;
	}

	.him-weights th {
		width: 55%;
	}

	.him-weights__bar {
		display: none;
	}

	.him-weights__num {
		width: 45%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.him-btn {
		transition: none;
	}
}
