/**
 * MMR Careers — front-end styles.
 *
 * Every colour and face below is taken from mmrconsulting.com's own theme, not
 * invented: Cuprum for display, Raleway for body, #155692 for headings, and
 * #F79E02 for the short rule the theme draws under its own h2s. The form should
 * read as part of the site, not as a plugin that landed on it.
 *
 * SPECIFICITY NOTE. The host theme loads Bootstrap, which resets bare elements
 * hard — `legend { font-size: 21px; margin-bottom: 20px; border-bottom: 1px }`
 * being the worst of them, since grouped questions use a real <legend> for
 * accessibility. That reset rendered rating and radio questions half again the
 * size of text questions, wrecking the hierarchy.
 *
 * So: every rule here is scoped under .mmr-form / .mmr-single / .mmr-jobs, and
 * anything a theme reset is likely to touch (font-size, colour, margin, border,
 * width on legend and fieldset) is set explicitly rather than left to inherit.
 * Do not "simplify" these to bare element selectors — the theme will win.
 */

.mmr-jobs,
.mmr-single {
	/* Read from the live theme's computed styles, not picked by eye. */
	--mmr-blue: #155692;
	--mmr-blue-dark: #0f4372;
	--mmr-navy: #172f56;
	--mmr-amber: #f79e02;
	--mmr-ink: #2a3644;
	--mmr-body: #5b6875;
	/* #7b8894 was only 3.63:1 on white and this is used for hints, counters
	   and the posted date — all small text, which needs 4.65:1. */
	--mmr-muted: #697682;
	--mmr-line: #d4dae0;
	--mmr-line-soft: #e6eaee;
	--mmr-surface: #f7f9fb;
	--mmr-error: #b3261e;
	--mmr-error-surface: #fdf2f1;
	--mmr-success: #0f7b3f;
	--mmr-success-surface: #f1f9f4;
	--mmr-warning: #8a6100;
	--mmr-warning-surface: #fdf7e7;

	--mmr-radius: 4px;
	--mmr-field-gap: 1.75rem;

	--mmr-font: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mmr-display: Cuprum, var(--mmr-font);
}

/* ------------------------------------------------------------------ */
/* Listing                                                             */
/* ------------------------------------------------------------------ */

.mmr-jobs .mmr-jobs__heading {
	margin: 0 0 0.35rem;
}

.mmr-jobs .mmr-jobs__count {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	color: var(--mmr-muted);
}

.mmr-jobs__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Rows ---------------------------------------------------------------
 *
 * A list, not a grid of cards. Two cards in a wide container left most of
 * the row empty and made a short list look like an oversight; rows read the
 * same whether MMR has one opening or twenty.
 */

.mmr-jobs--list .mmr-jobs__list {
	border-top: 1px solid var(--mmr-line-soft);
}

.mmr-jobs--list .mmr-job {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 1.5rem 1.25rem 1.5rem 1rem;
	border-bottom: 1px solid var(--mmr-line-soft);
	transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.mmr-jobs--list .mmr-job::before {
	content: "";
	position: absolute;
	top: -1px;
	bottom: -1px;
	left: 0;
	width: 3px;
	background: var(--mmr-amber);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.mmr-jobs--list .mmr-job:hover {
	background: var(--mmr-surface);
	padding-left: 1.5rem;
}

.mmr-jobs--list .mmr-job:hover::before {
	opacity: 1;
}

.mmr-jobs .mmr-job__body {
	flex: 1 1 auto;
	min-width: 0;
}

.mmr-jobs .mmr-job__title {
	margin: 0 0 0.4rem;
	font-family: var(--mmr-display);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--mmr-blue);
}

/* The theme draws an amber rule under every heading; one per row is noise. */
.mmr-jobs .mmr-job__title::after,
.mmr-jobs .mmr-job__title::before {
	display: none;
}

.mmr-jobs .mmr-job__title a {
	color: inherit;
	text-decoration: none;
}

/* Makes the whole row clickable while keeping one link in the a11y tree. */
.mmr-jobs .mmr-job__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.mmr-jobs .mmr-job:hover .mmr-job__title a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mmr-jobs .mmr-job__title a:focus-visible {
	outline: 2px solid var(--mmr-blue);
	outline-offset: 3px;
}

.mmr-jobs .mmr-job__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem 0.65rem;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--mmr-body);
}

/*
 * Hairline separators between meta items, so they read as one line rather
 * than four disconnected fragments.
 *
 * Only above 820px. CSS cannot tell which item starts a wrapped line, so once
 * the meta wraps a separator dangles at the start of the new line. Below that
 * width the gap alone does the separating.
 */
@media (min-width: 820px) {
	.mmr-jobs .mmr-job__meta > * + *::before {
		content: "";
		display: inline-block;
		width: 1px;
		height: 0.8em;
		margin-right: 0.65rem;
		background: var(--mmr-line);
		vertical-align: -0.05em;
	}
}

@media (max-width: 819px) {
	.mmr-jobs .mmr-job__meta {
		gap: 0.15rem 1rem;
	}
}

.mmr-jobs .mmr-job__location {
	font-weight: 600;
	color: var(--mmr-ink);
}

.mmr-jobs .mmr-job__posted {
	color: var(--mmr-muted);
}

.mmr-jobs .mmr-job__cue {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--mmr-blue);
	background: transparent;
	border-radius: 50%;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.mmr-jobs--list .mmr-job:hover .mmr-job__cue {
	background: var(--mmr-blue);
	color: #fff;
	transform: translateX(2px);
}

/* Cards ------------------------------------------------------------- */

.mmr-jobs--cards .mmr-jobs__list {
	display: grid;
	/* auto-fit, not auto-fill: with two roles the tracks collapse and the
	   cards fill the width instead of leaving empty columns. */
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1.25rem;
}

.mmr-jobs--cards .mmr-job {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.75rem;
	background: #fff;
	border: 1px solid var(--mmr-line-soft);
	border-top: 3px solid var(--mmr-blue);
	border-radius: var(--mmr-radius);
	transition: box-shadow 0.15s ease;
}

.mmr-jobs--cards .mmr-job:hover {
	box-shadow: 0 4px 18px rgba(23, 47, 86, 0.08);
}

.mmr-jobs--cards .mmr-job__cue {
	position: absolute;
	top: 1.5rem;
	right: 1.25rem;
	width: 2rem;
	height: 2rem;
}

.mmr-jobs .mmr-job__excerpt {
	margin: 0.35rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--mmr-body);
}

/* Empty and error states -------------------------------------------- */

.mmr-jobs__empty {
	padding: 1.5rem;
	font-size: 1rem;
	color: var(--mmr-body);
	background: var(--mmr-surface);
	border-left: 3px solid var(--mmr-line);
	border-radius: var(--mmr-radius);
}

.mmr-jobs__empty--error {
	color: var(--mmr-warning);
	background: var(--mmr-warning-surface);
	border-left-color: var(--mmr-amber);
}

.mmr-single .mmr-job-card__link {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	font-family: var(--mmr-font);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	background: var(--mmr-blue);
	border-radius: var(--mmr-radius);
	transition: background-color 0.15s ease;
}

.mmr-single .mmr-job-card__link:hover,
.mmr-single .mmr-job-card__link:focus {
	background: var(--mmr-blue-dark);
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* Single posting                                                      */
/* ------------------------------------------------------------------ */

.mmr-single__inner {
	max-width: 780px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
}

.mmr-single__breadcrumb {
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
}

.mmr-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0 0 2rem;
	color: var(--mmr-muted);
}

/* Description ------------------------------------------------------- *
 *
 * The feed carries Word-pasted HTML: ~76 list items, nested lists, and
 * <b><u> used where a heading was meant. Left to the theme it rendered at
 * line-height 20px on 20px text — literally zero leading — in #999, which is
 * about 2.8:1 on white and fails WCAG AA. Everything below is set explicitly
 * because the theme's rules are what produced that.
 */

.mmr-single .mmr-single__description {
	margin-bottom: 3.5rem;
	font-family: var(--mmr-font);
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--mmr-body);
}

.mmr-single .mmr-single__description > :first-child {
	margin-top: 0;
}

.mmr-single .mmr-single__description > :last-child {
	margin-bottom: 0;
}

.mmr-single .mmr-single__description p {
	margin: 0 0 1.25em;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

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

.mmr-single .mmr-single__description ul,
.mmr-single .mmr-single__description ol {
	margin: 0 0 1.5em;
	padding-left: 1.5rem;
}

/*
 * The theme ships a bare, unscoped rule:
 *
 *   li { font-size: 20px !important; margin-left: 20px !important;
 *        line-height: 20px !important; }
 *
 * line-height equal to font-size means zero leading, and these descriptions
 * are ~76 list items, so that rule is most of the page. !important cannot be
 * beaten by specificity — only by !important — so it is used here on exactly
 * the three properties the theme forces, and nowhere else in this file.
 */
.mmr-single .mmr-single__description li {
	margin: 0 0 0.5em;
	margin-left: 0 !important;
	padding-left: 0.35rem;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit;
}

.mmr-single .mmr-single__description li::marker {
	color: var(--mmr-blue);
}

.mmr-single .mmr-single__description li:last-child {
	margin-bottom: 0;
}

/* Nested lists sit one clear step in, not another 40px. */
.mmr-single .mmr-single__description ul ul,
.mmr-single .mmr-single__description ul ol,
.mmr-single .mmr-single__description ol ul,
.mmr-single .mmr-single__description ol ol {
	margin: 0.5em 0 0.5em;
	padding-left: 1.35rem;
}

.mmr-single .mmr-single__description ul ul li::marker {
	color: var(--mmr-muted);
}

/* Headings ---------------------------------------------------------- */

.mmr-single .mmr-single__description h2,
.mmr-single .mmr-single__description h3,
.mmr-single .mmr-single__description h4 {
	margin: 2em 0 0.75em;
	font-family: var(--mmr-display);
	font-weight: 700;
	line-height: 1.3;
	color: var(--mmr-blue);
}

.mmr-single .mmr-single__description h2 {
	font-size: 1.5rem;
}

.mmr-single .mmr-single__description h3 {
	font-size: 1.3125rem;
}

.mmr-single .mmr-single__description h4 {
	font-size: 1.1875rem;
}

/*
 * Recruiters paste from Word, so section headings arrive as
 * <p><b><u>Responsibilities</u></b></p> rather than a real heading. The
 * :only-child pair matches a paragraph that contains nothing else, so an
 * inline <b><u> mid-sentence is left alone.
 */
.mmr-single .mmr-single__description p > b:only-child > u:only-child,
.mmr-single .mmr-single__description p > strong:only-child > u:only-child {
	display: block;
	margin: 0.75em 0 0.25em;
	font-family: var(--mmr-display);
	font-size: 1.3125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mmr-blue);
	/* It is a heading, not a link. */
	text-decoration: none;
}

.mmr-single .mmr-single__description p:has( > b:only-child > u:only-child ),
.mmr-single .mmr-single__description p:has( > strong:only-child > u:only-child ) {
	margin: 2em 0 0.75em;
}

/* Word also leaves standalone middot paragraphs where a list item belongs. */
.mmr-single .mmr-single__description p.mmr-desc__bullet {
	position: relative;
	margin: 0 0 0.5em;
	padding-left: 1.85rem;
}

.mmr-single .mmr-single__description p.mmr-desc__bullet::before {
	content: "•";
	position: absolute;
	left: 0.6rem;
	color: var(--mmr-blue);
}

/* Inline ------------------------------------------------------------ */

.mmr-single .mmr-single__description strong,
.mmr-single .mmr-single__description b {
	font-weight: 700;
	color: var(--mmr-ink);
}

.mmr-single .mmr-single__description a {
	color: var(--mmr-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mmr-single .mmr-single__description a:hover {
	color: var(--mmr-blue-dark);
}

.mmr-single .mmr-single__description blockquote {
	margin: 1.5em 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 3px solid var(--mmr-amber);
	color: var(--mmr-ink);
	font-style: normal;
}

.mmr-single__apply {
	padding-top: 2.5rem;
	border-top: 1px solid var(--mmr-line-soft);
}

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

/*
 * One base size for the whole form. The theme's body rule is 12px — fine for
 * its own chrome, far too small for something a candidate must read carefully
 * and type into.
 */
.mmr-form {
	max-width: 680px;
	font-family: var(--mmr-font);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--mmr-ink);
}

/* Sections ---------------------------------------------------------- */

.mmr-form .mmr-section {
	min-width: 0;
	margin: 0 0 2.5rem;
	padding: 0;
	border: 0;
}

/*
 * Deliberately quiet. The page's own h2 sits directly above this in blue
 * Cuprum with an amber rule; repeating that treatment gave two near-identical
 * headings stacked on top of each other. Cuprum keeps it distinct from the
 * Raleway question labels below without competing upward.
 */
.mmr-form .mmr-section__title {
	display: block;
	float: none;
	width: auto;
	max-width: 100%;
	margin: 0 0 1.25rem;
	padding: 0;
	font-family: var(--mmr-display);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mmr-ink);
	border: 0;
}

/* Questions --------------------------------------------------------- */

.mmr-form .mmr-field {
	margin: 0 0 var(--mmr-field-gap);
}

/* Otherwise the last question's margin stacks with the section's and the
   actions' own spacing, leaving a visible hole above the divider. */
.mmr-form .mmr-section:last-of-type,
.mmr-form .mmr-field:last-child {
	margin-bottom: 0;
}

.mmr-form .mmr-field__group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/*
 * The important rule in this file. <label> and <legend> must look identical —
 * a question is a question regardless of which control answers it. Every
 * property Bootstrap's legend reset touches is restated here.
 */
.mmr-form .mmr-field__label {
	display: block;
	float: none;
	width: auto;
	max-width: 100%;
	margin: 0 0 0.5rem;
	padding: 0;
	font-family: var(--mmr-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--mmr-ink);
	letter-spacing: normal;
	text-transform: none;
	white-space: normal;
	border: 0;
}

.mmr-form .mmr-field__required {
	margin-left: 0.15rem;
	font-weight: 700;
	color: var(--mmr-amber);
}

.mmr-form .mmr-field__error {
	margin: 0.45rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--mmr-error);
}

/* Text inputs ------------------------------------------------------- */

.mmr-form .mmr-input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.75rem 0.875rem;
	font-family: var(--mmr-font);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--mmr-ink);
	background: #fff;
	border: 1px solid var(--mmr-line);
	border-radius: var(--mmr-radius);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mmr-form .mmr-input::placeholder {
	color: var(--mmr-muted);
}

.mmr-form .mmr-input:hover {
	border-color: var(--mmr-muted);
}

.mmr-form .mmr-input:focus {
	outline: none;
	border-color: var(--mmr-blue);
	box-shadow: 0 0 0 3px rgba(21, 86, 146, 0.15);
}

.mmr-form .mmr-textarea {
	min-height: 9rem;
	resize: vertical;
}

.mmr-form .mmr-field__counter {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	text-align: right;
	color: var(--mmr-muted);
}

.mmr-form .mmr-field__counter.is-over {
	font-weight: 700;
	color: var(--mmr-error);
}

.mmr-form .mmr-field.has-error .mmr-input {
	border-color: var(--mmr-error);
}

.mmr-form .mmr-field.has-error .mmr-input:focus {
	box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15);
}

/* Radios and checkboxes --------------------------------------------- */

.mmr-form .mmr-options {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.mmr-form .mmr-option {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	/* A comfortable target on a phone, which is where many of these arrive. */
	min-height: 2.75rem;
	padding: 0.35rem 0.6rem 0.35rem 0.15rem;
	border-radius: var(--mmr-radius);
	transition: background-color 0.12s ease;
}

.mmr-form .mmr-option:hover {
	background: var(--mmr-surface);
}

.mmr-form .mmr-option input[type="radio"],
.mmr-form .mmr-option input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	background: #fff;
	border: 2px solid var(--mmr-line);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.12s ease, background-color 0.12s ease;
}

.mmr-form .mmr-option input[type="radio"] {
	border-radius: 50%;
}

.mmr-form .mmr-option input[type="checkbox"] {
	border-radius: 3px;
}

.mmr-form .mmr-option input:hover {
	border-color: var(--mmr-muted);
}

.mmr-form .mmr-option input:checked {
	background: var(--mmr-blue);
	border-color: var(--mmr-blue);
}

/* Inner dot drawn with an inset shadow, so it survives themes that reset
   ::before on form controls. */
.mmr-form .mmr-option input[type="radio"]:checked {
	box-shadow: inset 0 0 0 3px #fff;
}

.mmr-form .mmr-option input[type="checkbox"]:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.5 3.5L13 5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 90%;
}

.mmr-form .mmr-option input:focus-visible {
	outline: 2px solid var(--mmr-blue);
	outline-offset: 2px;
}

.mmr-form .mmr-option label {
	margin: 0;
	font-family: var(--mmr-font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--mmr-ink);
	cursor: pointer;
}

/* Rating ------------------------------------------------------------ */

/*
 * A joined segmented control rather than five loose boxes: it reads as one
 * scale, which is what it is.
 */
.mmr-form .mmr-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.mmr-form .mmr-rating__item {
	position: relative;
	margin: 0 0 0 -1px;
}

.mmr-form .mmr-rating__item:first-child {
	margin-left: 0;
}

.mmr-form .mmr-rating__item input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.mmr-form .mmr-rating__item label {
	display: grid;
	place-items: center;
	min-width: 3.25rem;
	height: 3.25rem;
	margin: 0;
	padding: 0 0.5rem;
	font-family: var(--mmr-font);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1;
	color: var(--mmr-body);
	background: #fff;
	border: 1px solid var(--mmr-line);
	cursor: pointer;
	transition: background-color 0.12s ease, color 0.12s ease,
		border-color 0.12s ease;
}

.mmr-form .mmr-rating__item:first-child label {
	border-radius: var(--mmr-radius) 0 0 var(--mmr-radius);
}

.mmr-form .mmr-rating__item:last-of-type label {
	border-radius: 0 var(--mmr-radius) var(--mmr-radius) 0;
}

.mmr-form .mmr-rating__item label:hover {
	color: var(--mmr-ink);
	background: var(--mmr-surface);
}

.mmr-form .mmr-rating__item input:checked + label {
	position: relative;
	z-index: 1;
	color: #fff;
	background: var(--mmr-blue);
	border-color: var(--mmr-blue);
}

.mmr-form .mmr-rating__item input:focus-visible + label {
	z-index: 2;
	outline: 2px solid var(--mmr-blue);
	outline-offset: 2px;
}

/* Pushed onto its own line, beneath the scale it describes. */
.mmr-form .mmr-rating__scale {
	flex: 1 0 100%;
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	color: var(--mmr-muted);
}

.mmr-form .mmr-rating--slider {
	flex-wrap: nowrap;
	gap: 1rem;
}

.mmr-form .mmr-range {
	flex: 1 1 auto;
	accent-color: var(--mmr-blue);
}

.mmr-form .mmr-rating__output {
	flex: 0 0 auto;
	min-width: 2.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	text-align: center;
	color: var(--mmr-blue);
}

/* Uploads ----------------------------------------------------------- */

.mmr-form .mmr-upload__input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 1.25rem;
	font-family: var(--mmr-font);
	font-size: 0.9375rem;
	color: var(--mmr-body);
	background: var(--mmr-surface);
	border: 1px dashed var(--mmr-line);
	border-radius: var(--mmr-radius);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mmr-form .mmr-upload__input:hover {
	background: #fff;
	border-color: var(--mmr-blue);
}

.mmr-form .mmr-upload__input:focus-visible {
	outline: 2px solid var(--mmr-blue);
	outline-offset: 2px;
}

.mmr-form .mmr-upload__input::file-selector-button {
	margin-right: 1rem;
	padding: 0.55rem 1.1rem;
	font-family: var(--mmr-font);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--mmr-blue);
	background: #fff;
	border: 1px solid var(--mmr-blue);
	border-radius: var(--mmr-radius);
	cursor: pointer;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.mmr-form .mmr-upload__input:hover::file-selector-button {
	color: #fff;
	background: var(--mmr-blue);
}

.mmr-form .mmr-upload__hint {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--mmr-muted);
}

.mmr-form .mmr-upload__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.mmr-form .mmr-upload__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.7rem 0.9rem;
	font-size: 0.9375rem;
	background: #fff;
	border: 1px solid var(--mmr-line-soft);
	border-left: 3px solid var(--mmr-line);
	border-radius: var(--mmr-radius);
}

.mmr-form .mmr-upload__item.is-done {
	background: var(--mmr-success-surface);
	border-left-color: var(--mmr-success);
}

.mmr-form .mmr-upload__item.is-error {
	color: var(--mmr-error);
	background: var(--mmr-error-surface);
	border-left-color: var(--mmr-error);
}

.mmr-form .mmr-upload__name {
	flex: 1 1 12rem;
	font-weight: 600;
	word-break: break-word;
}

.mmr-form .mmr-upload__status {
	font-size: 0.8125rem;
	color: var(--mmr-muted);
}

.mmr-form .mmr-upload__item.is-error .mmr-upload__status {
	font-weight: 600;
	color: var(--mmr-error);
}

.mmr-form .mmr-upload__progress {
	flex: 1 1 100%;
	height: 3px;
	overflow: hidden;
	background: var(--mmr-line-soft);
	border-radius: 2px;
}

.mmr-form .mmr-upload__progress-bar {
	display: block;
	width: 0;
	height: 100%;
	background: var(--mmr-blue);
	transition: width 0.2s ease;
}

.mmr-form .mmr-upload__remove {
	padding: 0.25rem 0.4rem;
	font-family: var(--mmr-font);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--mmr-muted);
	text-decoration: underline;
	background: none;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

.mmr-form .mmr-upload__remove:hover {
	color: var(--mmr-error);
}

.mmr-form .mmr-upload__remove:focus-visible {
	outline: 2px solid var(--mmr-blue);
	outline-offset: 1px;
}

/* Messages ---------------------------------------------------------- */

.mmr-form .mmr-form__messages {
	margin: 0 0 1.75rem;
	padding: 1rem 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--mmr-error);
	background: var(--mmr-error-surface);
	border-left: 3px solid var(--mmr-error);
	border-radius: var(--mmr-radius);
}

.mmr-form .mmr-form__messages--warning {
	color: var(--mmr-warning);
	background: var(--mmr-warning-surface);
	border-left-color: var(--mmr-amber);
}

.mmr-form .mmr-form__messages-title {
	margin: 0 0 0.4rem;
	font-weight: 700;
}

.mmr-form .mmr-form__messages ul {
	margin: 0;
	/* Themes commonly set a left margin on lists; reset both so the message
	   sits against the panel edge rather than floating in from it. */
	margin-left: 0;
	padding-left: 1.15rem;
	list-style-position: outside;
}

.mmr-form .mmr-form__messages ul:only-child {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

/* The theme puts margin-left on li, which pushed every message ~58px in from
   the panel edge. Reset it and let the ul's own padding do the indenting. */
.mmr-form .mmr-form__messages li {
	margin-left: 0;
	padding-left: 0;
}

.mmr-form .mmr-form__messages li + li {
	margin-top: 0.25rem;
}

/* Actions ----------------------------------------------------------- */

.mmr-form .mmr-form__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--mmr-line-soft);
}

/* Read the condition before the button that acts on it. */
.mmr-form .mmr-form__note {
	order: -1;
	margin: 0;
	font-size: 0.8125rem;
	color: var(--mmr-muted);
}

.mmr-form .mmr-form__submit {
	padding: 0.9rem 2rem;
	font-family: var(--mmr-font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--mmr-blue);
	border: 0;
	border-radius: var(--mmr-radius);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.mmr-form .mmr-form__submit:hover:not(:disabled) {
	background: var(--mmr-blue-dark);
}

.mmr-form .mmr-form__submit:focus-visible {
	outline: 2px solid var(--mmr-navy);
	outline-offset: 2px;
}

.mmr-form .mmr-form__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* Success and notices ----------------------------------------------- */

.mmr-single .mmr-success {
	padding: 1.75rem;
	background: var(--mmr-success-surface);
	border-left: 3px solid var(--mmr-success);
	border-radius: var(--mmr-radius);
}

.mmr-single .mmr-success h3 {
	margin-top: 0;
	color: var(--mmr-success);
}

.mmr-single .mmr-success > :last-child {
	margin-bottom: 0;
}

.mmr-single .mmr-notice {
	padding: 1rem 1.25rem;
	color: var(--mmr-body);
	background: var(--mmr-surface);
	border-left: 3px solid var(--mmr-line);
	border-radius: var(--mmr-radius);
}

.mmr-single .mmr-notice--warning {
	color: var(--mmr-warning);
	background: var(--mmr-warning-surface);
	border-left-color: var(--mmr-amber);
}

/* Fallback for themes that do not define it. */
.mmr-single .screen-reader-text,
.mmr-jobs .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

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

@media (max-width: 640px) {
	.mmr-single__inner {
		padding: 1.5rem 1rem 3rem;
	}

	.mmr-jobs--list .mmr-job {
		gap: 0.75rem;
		padding: 1.25rem 0.5rem 1.25rem 0.75rem;
	}

	/* The hover affordance is meaningless on touch and only steals width. */
	.mmr-jobs--list .mmr-job:hover {
		padding-left: 0.75rem;
	}

	.mmr-jobs .mmr-job__title {
		font-size: 1.1875rem;
	}

	.mmr-single .mmr-single__description {
		font-size: 1.0625rem;
	}

	.mmr-single .mmr-single__description ul,
	.mmr-single .mmr-single__description ol {
		padding-left: 1.15rem;
	}

	/* The row is tappable on its own, so the arrow only steals width from a
	   title that already needs three lines. */
	.mmr-jobs--list .mmr-job__cue {
		display: none;
	}

	.mmr-jobs--cards .mmr-job__cue {
		width: 1.75rem;
		height: 1.75rem;
	}

	.mmr-form .mmr-rating__item label {
		min-width: 2.75rem;
		height: 3rem;
	}

	.mmr-form .mmr-form__actions {
		align-items: stretch;
	}

	.mmr-form .mmr-form__submit {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mmr-jobs *,
	.mmr-single * {
		transition: none !important;
	}
}
