/*
 * Monster Presents!™ brand rules, for anybody editing this file.
 *
 *   Red is #ED2124. Hover is #E02B20. There is no second red.
 *   Corners are sharp. --mpr-radius is 0 and border-radius is 0.
 *   PAGKAKI is the H1 face and only the H1 face.
 *   Never set a colour without setting the ground it sits on. A rule that
 *   declares one and not the other is how a badge becomes dark text on a dark
 *   card the moment Monster Skin repaints the admin.
 */

/**
 * Monster Search — public styles.
 *
 * ── Tokens are declared on the block, not on :root ───────────────────────────
 *
 * These shortcodes go on arbitrary pages, so they cannot rely on a token
 * declared by another component's container. A var() that resolves to nothing
 * does not fall back, it invalidates the whole declaration -- which is how the
 * City Trials block once rendered black on black on a page that happened not to
 * contain .mpr-event. Every token this file uses is declared here.
 *
 * ── Black, red and white, sharp corners ──────────────────────────────────────
 *
 * Poppins for everything, Pagkaki for the h1 only, per the site rule that the
 * display face is reserved for top-level headings.
 */

/*
 * Everything here is scoped under .mps-search.
 *
 * It was not: fifty-eight selectors began with .mpr- and applied wherever they
 * matched, and six of those names -- .mpr-btn, .mpr-btn-primary,
 * .mpr-btn-quiet, .mpr-field, .mpr-profile-bio, .mpr-profile-cta -- are
 * Monster HQ's. This stylesheet only loads on pages carrying a Search
 * shortcode, so nothing had gone wrong yet; the day somebody put a cast grid
 * or a profile block on one of those pages, HQ's CTA would have picked up a
 * max-width meant for a paragraph. The prefix is a legacy of the extraction
 * from Monster HQ, so the names stay and the scope is stated instead.
 */

.mps-search {
	--ms-black:   #000000;
	--ms-panel:   #111114;
	--ms-panel-2: #17171b;
	--ms-line:    rgba( 255, 255, 255, 0.14 );
	--ms-white:   #ffffff;
	--ms-off:     #ddd8d1;
	--ms-dim:     #b8b8bf;
	--ms-red:     #ED2124;
	--ms-red-2:   #ff6b6e;
	--ms-radius:  0;
	--ms-gap:     24px;

	--ms-display: 'PAGKAKI', 'PAGKAKI Regular', 'Poppins', system-ui, sans-serif;
	--ms-body:    'Poppins', system-ui, -apple-system, sans-serif;

	background: var( --ms-black );
	color: var( --ms-off );
	font-family: var( --ms-body );
	font-size: 16px;
	line-height: 1.6;
	padding: 32px 20px 48px;
}

.mps-search *,
.mps-search *::before,
.mps-search *::after { box-sizing: border-box; }

.mps-search a { color: var( --ms-red-2 ); }
.mps-search a:hover { color: var( --ms-white ); }

/* ── Type ──────────────────────────────────────────────────────────────── */

.mps-search-title {
	font-family: var( --ms-display );
	color: var( --ms-white );
	font-size: clamp( 32px, 7vw, 60px );
	line-height: 1.05;
	margin: 0 0 12px;
}

.mps-search-h2 {
	font-family: var( --ms-body );
	color: var( --ms-white );
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.mps-search-sub { color: var( --ms-dim ); margin: 0 0 24px; }
.mps-search-lede { font-size: 17px; max-width: 62ch; }
.mps-search-prose { max-width: 68ch; }
.mps-search-fine { color: var( --ms-dim ); font-size: 13px; line-height: 1.6; }
.mps-search-empty { color: var( --ms-dim ); padding: 24px 0; }

/* ── Phase band ────────────────────────────────────────────────────────── */

.mps-search-phase {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 12px;
	border: 1px solid var( --ms-line );
	background: var( --ms-panel );
	color: var( --ms-dim );
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.mps-search-phase.is-open      { border-color: var( --ms-red ); color: var( --ms-white ); background: var( --ms-red ); }
.mps-search-phase.is-upcoming  { border-color: var( --ms-red ); color: var( --ms-red-2 ); }
.mps-search-phase.is-judging,
.mps-search-phase.is-closed    { color: var( --ms-off ); }
.mps-search-phase.is-completed { border-color: var( --ms-white ); color: var( --ms-white ); }
.mps-search-phase.is-draft     { border-style: dashed; }

/* ── Blocks ────────────────────────────────────────────────────────────── */

.mps-search-hero { margin-bottom: 40px; }
.mps-search-block { margin: 0 0 40px; padding-top: 28px; border-top: 1px solid var( --ms-line ); }
.mps-search-where { color: var( --ms-dim ); }

.mps-search-dates { display: grid; gap: 12px; margin: 0; grid-template-columns: repeat( auto-fit, minmax( 200px, 1fr ) ); }
.mps-search-dates > div { background: var( --ms-panel ); border: 1px solid var( --ms-line ); padding: 14px 16px; }
.mps-search-dates dt { color: var( --ms-dim ); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mps-search-dates dd { margin: 6px 0 0; color: var( --ms-white ); }

.mps-search-prizes,
.mps-search-rubric { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.mps-search-prizes li,
.mps-search-rubric li {
	background: var( --ms-panel );
	border: 1px solid var( --ms-line );
	border-left: 3px solid var( --ms-red );
	padding: 14px 16px;
}

.mps-search .mpr-prize-place { display: block; color: var( --ms-white ); font-weight: 700; }
.mps-search .mpr-prize-value { display: block; color: var( --ms-red-2 ); font-size: 22px; font-weight: 700; }
.mps-search .mpr-prize-detail { display: block; color: var( --ms-dim ); font-size: 14px; }

.mps-search-rubric strong { color: var( --ms-white ); }
.mps-search-rubric span { color: var( --ms-red-2 ); font-weight: 700; margin-left: 8px; }
.mps-search-rubric em { display: block; color: var( --ms-dim ); font-size: 13px; font-style: normal; margin-top: 6px; }

.mps-search-rules { margin: 14px 0; }
.mps-search-rules summary { cursor: pointer; color: var( --ms-red-2 ); font-weight: 600; }

.mps-search-scope ul { color: var( --ms-dim ); padding-left: 20px; }
.mps-search-scope li { margin-bottom: 6px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.mps-search .mpr-btn {
	display: inline-block;
	padding: 13px 22px;
	border: 1px solid var( --ms-line );
	border-radius: var( --ms-radius );
	background: var( --ms-panel-2 );
	color: var( --ms-white );
	font-family: var( --ms-body );
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease;
}

.mps-search .mpr-btn:hover { border-color: var( --ms-red ); color: var( --ms-white ); }

.mps-search .mpr-btn-primary { background: var( --ms-red ); border-color: var( --ms-red ); }
.mps-search .mpr-btn-primary:hover,
.mps-search .mpr-btn-primary:focus { background: #E02B20; color: var( --ms-white ); }
.mps-search .mpr-btn-quiet { background: transparent; }
.mps-search .mpr-btn:disabled { opacity: .55; cursor: default; }

.mps-search .mpr-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	color: var( --ms-red-2 );
	font-family: var( --ms-body );
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.mps-search-cta { margin: 24px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.mps-search-when { color: var( --ms-white ); font-weight: 600; }

/* ── Cards and grid ────────────────────────────────────────────────────── */

.mps-search-grid {
	display: grid;
	gap: var( --ms-gap );
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
}

.mps-search-card { background: var( --ms-panel ); border: 1px solid var( --ms-line ); }
.mps-search-card-link { display: block; text-decoration: none; color: inherit; }
.mps-search-card-link:hover { color: inherit; }
.mps-search-card:hover { border-color: var( --ms-red ); }

.mps-search-card-art { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var( --ms-panel-2 ); }
.mps-search-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mps-search-card-noart { display: block; width: 100%; height: 100%; }

.mps-search-card-body { display: block; padding: 14px 16px 16px; }
.mps-search-card-name { display: block; color: var( --ms-white ); font-size: 18px; font-weight: 700; line-height: 1.25; }
.mps-search-card-where { display: block; color: var( --ms-dim ); font-size: 13px; margin-top: 4px; }
.mps-search-card-style { display: block; color: var( --ms-off ); font-size: 13px; margin-top: 2px; }

.mps-search-badge {
	display: inline-block;
	margin-top: 10px;
	padding: 4px 9px;
	border: 1px solid var( --ms-line );
	background: var( --ms-panel-2 );
	color: var( --ms-dim );
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.mps-search-badge.is-placed { border-color: var( --ms-red ); background: var( --ms-red ); color: var( --ms-white ); }

.mps-search-more { margin-top: 24px; }

/* ── Directory ─────────────────────────────────────────────────────────── */

.mps-search-dirhead { margin-bottom: 20px; }
.mps-search-count { color: var( --ms-dim ); margin: 0; }

.mps-search-filters {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat( auto-fit, minmax( 170px, 1fr ) );
	align-items: end;
	margin: 0 0 28px;
	padding: 18px;
	background: var( --ms-panel );
	border: 1px solid var( --ms-line );
}

.mps-search-clear { margin-left: 10px; font-size: 13px; }
.mps-search .mpr-field-actions { display: flex; align-items: center; }

.mps-search-pager { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.mps-search-pager .page-numbers {
	display: inline-block;
	padding: 8px 13px;
	border: 1px solid var( --ms-line );
	color: var( --ms-off );
	text-decoration: none;
}
.mps-search-pager .page-numbers.current { background: var( --ms-red ); border-color: var( --ms-red ); color: var( --ms-white ); }

/* ── Forms ─────────────────────────────────────────────────────────────── */

.mps-search .mpr-set {
	border: 1px solid var( --ms-line );
	background: var( --ms-panel );
	padding: 20px;
	margin: 0 0 24px;
}

.mps-search .mpr-set legend {
	padding: 0 8px;
	color: var( --ms-white );
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.mps-search .mpr-field { margin: 0 0 16px; }

.mps-search .mpr-field label,
.mps-search .mpr-check label { display: block; color: var( --ms-white ); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.mps-search .mpr-check label { font-weight: 400; color: var( --ms-off ); line-height: 1.55; }

.mps-search input[type="text"],
.mps-search input[type="email"],
.mps-search input[type="password"],
.mps-search input[type="url"],
.mps-search input[type="search"],
.mps-search input[type="file"],
.mps-search select,
.mps-search textarea {
	width: 100%;
	padding: 11px 12px;
	background: var( --ms-panel-2 );
	border: 1px solid var( --ms-line );
	border-radius: var( --ms-radius );
	color: var( --ms-white );
	font-family: var( --ms-body );
	font-size: 15px;
}

.mps-search input:focus,
.mps-search select:focus,
.mps-search textarea:focus {
	outline: 2px solid var( --ms-red );
	outline-offset: 1px;
	border-color: var( --ms-red );
}

.mps-search input:disabled,
.mps-search select:disabled,
.mps-search textarea:disabled { opacity: .6; }

.mps-search .mpr-req { color: var( --ms-red-2 ); }
.mps-search .mpr-hint { display: block; color: var( --ms-dim ); font-size: 13px; margin-top: 5px; line-height: 1.5; }

.mps-search .mpr-cols { display: grid; gap: 14px; grid-template-columns: repeat( auto-fit, minmax( 200px, 1fr ) ); }

.mps-search .mpr-check { margin: 0 0 14px; }
.mps-search .mpr-check input { margin-right: 8px; }

.mps-search .mpr-set-consent { border-left: 3px solid var( --ms-red ); }

.mps-search .mpr-photo-list { display: grid; gap: 14px; }
.mps-search .mpr-photo-row {
	display: grid;
	gap: 12px;
	grid-template-columns: 90px 1fr;
	align-items: start;
	padding: 12px;
	background: var( --ms-panel-2 );
	border: 1px solid var( --ms-line );
}
.mps-search .mpr-photo-row img { width: 90px; height: auto; display: block; }

/* ── Steps ─────────────────────────────────────────────────────────────── */

.mps-search .mpr-steps {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	counter-reset: step;
}

.mps-search .mpr-steps li {
	counter-increment: step;
	padding: 8px 14px;
	border: 1px solid var( --ms-line );
	color: var( --ms-dim );
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.mps-search .mpr-steps li::before { content: counter( step ) '. '; }
.mps-search .mpr-steps li.is-now { border-color: var( --ms-red ); background: var( --ms-red ); color: var( --ms-white ); }
.mps-search .mpr-steps li.is-done { color: var( --ms-off ); }

/* ── Notices ───────────────────────────────────────────────────────────── */

.mps-search-notice {
	padding: 14px 16px;
	margin: 0 0 22px;
	border: 1px solid var( --ms-line );
	border-left: 3px solid var( --ms-red );
	background: var( --ms-panel );
	color: var( --ms-white );
}

.mps-search-notice.is-good { border-left-color: #2ecc71; }
.mps-search-notice.is-bad  { border-left-color: var( --ms-red ); }
.mps-search-notice p { margin: 6px 0 0; color: var( --ms-off ); }

/* ── Entrant profile ───────────────────────────────────────────────────
 *
 * The page wears Monster HQ's profile markup (mp-hero, mp-section, mp-file,
 * mp-gallery) and, where Monster HQ is installed, Monster HQ's stylesheet with
 * it -- so a Creature of the Year profile and a cast profile are the same page
 * with different words in it. What is below is only the parts a cast profile
 * does not have: the vote panel, the share row, the entrant badge.
 *
 * Nothing here restates HQ's layout. entrant.css does that, and loads only
 * when Monster HQ is not there.
 */

.mps-search.mps-entrant { padding: 0 0 24px; }

.mps-search.mps-entrant .mp-designation.is-placed {
	color: var( --ms-white );
	background: var( --ms-red );
	padding: 4px 10px;
	display: inline-block;
}

.mps-search.mps-entrant .mps-portrait-credit { margin: 0 0 24px; }

/* The vote panel. The one thing on this page a cast profile has no version of,
   so it is the one thing here allowed to look like a card. */

.mps-search.mps-entrant .mps-vote {
	border: 1px solid var( --ms-red );
	border-left-width: 3px;
	background: var( --ms-panel );
	padding: 20px;
}

.mps-search.mps-entrant .mp-rail .mp-section.mps-vote { padding: 20px; }

.mps-search.mps-entrant .mps-vote h2 { margin-top: 0; }
.mps-search.mps-entrant .mps-vote-lead { margin: 0 0 14px; }

.mps-search.mps-entrant .mpr-vote-label {
	display: block;
	color: var( --ms-white );
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.mps-search.mps-entrant .mpr-vote-email,
.mps-search.mps-entrant .mpr-vote-code {
	width: 100%;
	padding: 12px;
	margin-bottom: 10px;
	background: var( --ms-panel-2 );
	border: 1px solid var( --ms-line );
	color: var( --ms-white );
	font-family: var( --ms-body );
	font-size: 15px;
}

.mps-search.mps-entrant .mpr-vote-code { font-size: 22px; letter-spacing: 0; text-align: center; }

.mps-search.mps-entrant .mpr-vote-request-btn,
.mps-search.mps-entrant .mpr-vote-confirm-btn { width: 100%; }

.mps-search.mps-entrant .mpr-vote-message { color: var( --ms-red-2 ); min-height: 1.4em; margin: 10px 0 0; }
.mps-search.mps-entrant .mpr-vote-message.is-good { color: #7fe0a0; }

/* Share. A field and a row of buttons, not a wall of network logos. */

.mps-search.mps-entrant .mps-share-cta { color: var( --ms-white ); font-size: 17px; max-width: 56ch; }
.mps-search .mpr-share-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.mps-search .mpr-share-url {
	flex: 1 1 240px;
	min-width: 0;
	padding: 12px;
	background: var( --ms-panel-2 );
	border: 1px solid var( --ms-line );
	color: var( --ms-white );
	font-family: var( --ms-body );
	font-size: 13px;
}
.mps-search.mps-entrant .mps-share-links { display: flex; gap: 8px; flex-wrap: wrap; }

.mps-search.mps-entrant .mp-social-word { font-size: 13px; font-weight: 700; }

.mps-search.mps-entrant .mps-entrant-foot { color: var( --ms-dim ); border-top: 1px solid var( --ms-line ); }

/* Buttons, when Monster HQ's stylesheet is not the one drawing them. The
   selectors are ours and the names are HQ's, so a page with HQ present is
   styled by HQ and a page without it still has a button. */

.mps-search .mp-btn {
	display: inline-block;
	padding: 13px 22px;
	border: 1px solid var( --ms-line );
	border-radius: var( --ms-radius );
	background: var( --ms-panel-2 );
	color: var( --ms-white );
	font-family: var( --ms-body );
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.mps-search a.mp-btn,
.mps-search a.mp-btn:link,
.mps-search a.mp-btn:visited { color: var( --ms-white ); text-decoration: none; }

.mps-search .mp-btn-primary,
.mps-search a.mp-btn-primary:link,
.mps-search a.mp-btn-primary:visited { background: var( --ms-red ); border-color: var( --ms-red ); color: var( --ms-white ); }

.mps-search .mp-btn-primary:hover,
.mps-search .mp-btn-primary:focus { background: #E02B20; }
.mps-search .mp-btn:disabled { opacity: .55; cursor: default; }

/* ── Entrant dashboard ─────────────────────────────────────────────────── */

.mps-search .mpr-status-grid { display: grid; gap: 12px; grid-template-columns: repeat( auto-fit, minmax( 180px, 1fr ) ); margin: 0 0 26px; }
.mps-search .mpr-status-grid > div { background: var( --ms-panel ); border: 1px solid var( --ms-line ); padding: 14px 16px; }
.mps-search .mpr-status-grid dt { color: var( --ms-dim ); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mps-search .mpr-status-grid dd { margin: 6px 0 0; color: var( --ms-white ); font-size: 17px; }

.mps-search-remove { margin-top: 20px; }
.mps-search-beforepay { padding: 20px; background: var( --ms-panel ); border: 1px solid var( --ms-line ); margin-bottom: 24px; }
.mps-search-pay { padding: 22px; border: 1px solid var( --ms-red ); background: var( --ms-panel ); }
.mps-search .mpr-pay-message { color: var( --ms-red-2 ); min-height: 1.4em; margin: 10px 0 0; }

/* ── Small screens ─────────────────────────────────────────────────────── */

@media ( max-width: 640px ) {
	.mps-search { padding: 24px 16px 40px; }
	.mps-search .mpr-photo-row { grid-template-columns: 64px 1fr; }
	.mps-search .mpr-photo-row img { width: 64px; }
	.mps-search .mpr-btn { width: 100%; text-align: center; }
	.mps-search-cta { flex-direction: column; }
}

@media ( prefers-reduced-motion: reduce ) {
	.mps-search * { transition: none !important; }
}

/*
 * Interactive states at a weight that lands, and a keyboard outline.
 *
 * Same bug as Monster Live had: a button that sets a background and leaves its
 * text colour to the theme renders red on red the moment the theme colours
 * links. Naming the element -- a.mpr-btn rather than .mpr-btn -- outranks a
 * bare `a` rule without reaching for !important.
 */
.mps-search a.mpr-btn,
.mps-search a.mpr-btn:link,
.mps-search a.mpr-btn:visited { color: var( --ms-white ); text-decoration: none; }

.mps-search a.mpr-btn-primary,
.mps-search a.mpr-btn-primary:link,
.mps-search a.mpr-btn-primary:visited { background: var( --ms-red ); color: var( --ms-white ); }

.mps-search a.mpr-btn-primary:hover,
.mps-search a.mpr-btn-primary:focus { background: #E02B20; color: var( --ms-white ); }

.mps-search a:focus-visible,
.mps-search button:focus-visible,
.mps-search a.mpr-btn:focus-visible {
	outline: 2px solid var( --ms-white );
	outline-offset: 2px;
}

.mps-search-card { transition: border-color .15s ease, background-color .15s ease; }
.mps-search-card:focus-within { border-color: var( --ms-red ); }


/* ─── No tracking on the public site ──────────────────────────────────────
   See Monster HQ's tokens.css: the same rule, deliberately worded the same
   way. Every label in this file set its own positive letter-spacing and every
   one of those declarations is gone; this stops a theme or builder rule from
   putting it back inside our block. */

.mps-search,
.mps-search * {
	letter-spacing: 0;
}

/* Sign-up on the entry page. */
.mps-search .mps-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mps-search .mps-signup-form { max-width: 520px; }
.mps-search .mps-signin-alt { color: var( --ms-off ); font-size: 14px; }
.mps-search .mps-signin-alt a { color: var( --ms-white ); text-decoration: underline; }

/* ── The entry form ───────────────────────────────────────────────────────
 *
 * Somebody is paying $10 at the end of this, on a phone, probably at 1am after
 * a show. So: one column, a readable measure, the section headings doing the
 * work of telling them where they are, and the two things they can press --
 * Save, and Pay -- never further away than the bottom of the screen.
 *
 * Everything below is a later rule than the generic form styles above, on
 * purpose: those still dress the directory filters and the sign-up form, and
 * this is the entry form's own treatment on top of them.
 */

.mps-search-entry {
	max-width: 900px;
	margin: 0 auto;
}

.mps-search-entry .mps-search-title { margin-bottom: 20px; }

/* Steps: where you are, in four words. */

.mps-search .mpr-steps {
	gap: 0;
	margin: 0 0 32px;
	border: 1px solid var( --ms-line );
}

.mps-search .mpr-steps li {
	flex: 1 1 auto;
	border: 0;
	border-right: 1px solid var( --ms-line );
	padding: 12px 14px;
	font-size: 11px;
	text-align: center;
	background: var( --ms-panel );
}

.mps-search .mpr-steps li:last-child { border-right: 0; }
.mps-search .mpr-steps li.is-done { color: var( --ms-red-2 ); background: var( --ms-panel-2 ); }

/* Sections: a panel with its name in the accent, not a boxed legend. */

.mps-search-entry .mpr-set {
	padding: 26px 24px 10px;
	margin: 0 0 20px;
}

.mps-search-entry .mpr-set legend {
	padding: 0;
	margin-bottom: 4px;
	color: var( --ms-red-2 );
	font-size: 11px;
}

.mps-search-entry .mpr-set > .mpr-hint:first-of-type { margin-bottom: 18px; }

.mps-search-entry .mpr-field { margin: 0 0 20px; }

.mps-search-entry .mpr-field label,
.mps-search-entry .mpr-check label {
	font-size: 12px;
	text-transform: uppercase;
	color: var( --ms-off );
	margin-bottom: 8px;
}

.mps-search-entry .mpr-check label { text-transform: none; font-size: 15px; }

.mps-search-entry input[type="text"],
.mps-search-entry input[type="email"],
.mps-search-entry input[type="url"],
.mps-search-entry select,
.mps-search-entry textarea {
	padding: 14px;
	font-size: 16px; /* 16 exactly: anything smaller and iOS zooms the page on focus. */
}

.mps-search-entry textarea { min-height: 150px; line-height: 1.6; resize: vertical; }
.mps-search-entry ::placeholder { color: #6f6f78; }

.mps-search-entry .mpr-cols { gap: 18px; }

/* The photographs. The part of this form people actually care about. */

.mps-search-entry .mpr-photo-row {
	grid-template-columns: 120px 1fr;
	padding: 14px;
	align-items: start;
}

.mps-search-entry .mpr-photo-row img {
	width: 120px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border: 1px solid var( --ms-line );
}

.mps-search-entry input[type="file"] {
	padding: 18px;
	border: 1px dashed var( --ms-line );
	background: var( --ms-panel-2 );
	cursor: pointer;
}

.mps-search-entry input[type="file"]:hover { border-color: var( --ms-red ); }

/* Consent: the one block that is a legal record, so it reads as one. */

.mps-search-entry .mpr-set-consent { border-left-width: 3px; }
.mps-search-entry .mpr-check { margin: 0 0 16px; display: flex; gap: 10px; align-items: flex-start; }
.mps-search-entry .mpr-check input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var( --ms-red ); flex: 0 0 auto; }
.mps-search-entry .mpr-check label { margin: 0; }

/* Save: at the bottom of the screen, not at the bottom of the form. */

.mps-search-entry .mps-search-cta {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin: 0 0 24px;
	padding: 14px 16px;
	background: var( --ms-panel );
	border: 1px solid var( --ms-line );
	border-left: 3px solid var( --ms-red );
	box-shadow: 0 -10px 24px rgba( 0, 0, 0, 0.9 );
}

.mps-search-entry .mps-search-cta .mpr-btn { min-width: 220px; text-align: center; }

/* Before you pay, and paying. */

.mps-search-beforepay { padding: 24px; }
.mps-search-beforepay .mps-search-prose { margin-bottom: 0; }

.mps-search-pay {
	padding: 26px 24px;
	border-left-width: 3px;
}

.mps-search-pay .mps-search-cta {
	position: static;
	padding: 0;
	background: none;
	margin: 18px 0 0;
}

.mps-search-pay .mpr-pay-btn { font-size: 16px; padding: 16px 30px; }

@media ( max-width: 640px ) {
	.mps-search-entry .mpr-set { padding: 20px 16px 6px; }
	.mps-search .mpr-steps li { flex: 1 1 50%; border-bottom: 1px solid var( --ms-line ); }
	.mps-search-entry .mpr-photo-row { grid-template-columns: 84px 1fr; }
	.mps-search-entry .mpr-photo-row img { width: 84px; }
	.mps-search-entry .mps-search-cta .mpr-btn { width: 100%; }
}

/* ── The sign-in and sign-up page ─────────────────────────────────────────
 *
 * Same treatment, narrower: three fields and a button should not be stretched
 * across a 1200px page.
 */

.mps-search-signin { max-width: 560px; margin: 0 auto; }
.mps-search-signin .mpr-field label { font-size: 12px; text-transform: uppercase; color: var( --ms-off ); }
.mps-search-signin input { padding: 14px; font-size: 16px; }
.mps-search-signin .mps-search-cta .mpr-btn { width: 100%; text-align: center; }

/* The photo rows: a thumbnail, its two fields beside it, and one way out. */

.mps-search-entry .mpr-photo-fields { display: grid; gap: 0; }
.mps-search-entry .mpr-photo-fields .mpr-field { margin-bottom: 12px; }
.mps-search .mpr-photo-remove { color: var( --ms-red-2 ); }

/* ── Check it over ────────────────────────────────────────────────────────
 *
 * The entry as it reads, above the form it was typed into. Same panel
 * treatment as everything else on the page, one size quieter, because it is
 * something to read rather than something to fill in.
 */

.mps-search-review {
	padding: 26px 24px;
	margin: 0 0 28px;
	background: var( --ms-panel );
	border: 1px solid var( --ms-line );
	border-left: 3px solid var( --ms-red );
}

.mps-search-review .mps-search-sub { margin-bottom: 20px; }

.mps-search .mps-review-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: minmax( 0, 300px ) minmax( 0, 1fr );
	align-items: start;
}

.mps-search .mps-review-shots { display: grid; gap: 10px; grid-template-columns: repeat( auto-fit, minmax( 90px, 1fr ) ); }
.mps-search .mps-review-shots figure { margin: 0; }
.mps-search .mps-review-shots img { width: 100%; height: auto; display: block; border: 1px solid var( --ms-line ); }
.mps-search .mps-review-shots figcaption { margin-top: 5px; color: var( --ms-dim ); font-size: 12px; }
.mps-search .mps-review-noshots { color: var( --ms-red-2 ); margin: 0; }

.mps-search .mps-review-facts { display: grid; gap: 10px; margin: 0; }
.mps-search .mps-review-facts > div {
	display: grid;
	gap: 2px 14px;
	grid-template-columns: 130px minmax( 0, 1fr );
	padding-bottom: 8px;
	border-bottom: 1px solid var( --ms-line );
}
.mps-search .mps-review-facts dt { color: var( --ms-dim ); font-size: 11px; font-weight: 700; text-transform: uppercase; padding-top: 3px; }
.mps-search .mps-review-facts dd { margin: 0; color: var( --ms-white ); }

.mps-search .mps-review-bio { margin-top: 22px; }
.mps-search .mps-review-bio p { color: var( --ms-off ); }
.mps-search .mps-review-back { position: static; padding: 0; margin: 22px 0 0; background: none; border: 0; box-shadow: none; }

.mps-search .mps-pay-back { margin-top: 14px; }

@media ( max-width: 700px ) {
	.mps-search .mps-review-grid { grid-template-columns: minmax( 0, 1fr ); }
	.mps-search .mps-review-facts > div { grid-template-columns: minmax( 0, 1fr ); }
	.mps-search-review { padding: 20px 16px; }
}

/* ── The entrant rail ─────────────────────────────────────────────────────
 *
 * One row of the directory's own cards, scrolling sideways with snap points.
 * No library and no autoplay: a carousel that moves on its own moves off
 * whichever face somebody was looking at.
 */

.mps-search-rail { padding-left: 0; padding-right: 0; }

.mps-search .mps-carousel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.mps-search .mps-carousel-head .mps-search-h2 { margin: 0; }

.mps-search .mps-carousel-nav { display: flex; gap: 8px; }

.mps-search .mps-carousel-btn {
	width: 42px;
	height: 42px;
	padding: 0;
	background: var( --ms-panel );
	border: 1px solid var( --ms-line );
	border-radius: var( --ms-radius );
	color: var( --ms-white );
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.mps-search .mps-carousel-btn:hover { border-color: var( --ms-red ); background: var( --ms-red ); }

.mps-search .mps-carousel-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax( 230px, 260px );
	gap: var( --ms-gap );
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 2px;
	padding: 2px 2px 14px;
	/* A scrollbar under a row of faces is noise; the arrows and the shadow of
	   the next card already say it moves. */
	scrollbar-width: none;
}

.mps-search .mps-carousel-rail::-webkit-scrollbar { display: none; }
.mps-search .mps-carousel-rail > .mps-search-card { scroll-snap-align: start; }
.mps-search .mps-carousel-rail:focus-visible { outline: 2px solid var( --ms-white ); outline-offset: 2px; }

@media ( max-width: 640px ) {
	.mps-search .mps-carousel-rail { grid-auto-columns: minmax( 200px, 76% ); }
	.mps-search .mps-carousel-nav { display: none; } /* A finger is the control here. */
}

@media ( prefers-reduced-motion: reduce ) {
	.mps-search .mps-carousel-rail { scroll-behavior: auto; }
}

/* The creature's own section, and what is still missing before paying. */

.mps-search-entry .mps-transformation { margin: 4px 0 18px; }
.mps-search-entry .mps-transformation-shot { margin: 0 0 14px; }
.mps-search-entry .mps-transformation-shot img { max-width: 260px; height: auto; display: block; border: 1px solid var( --ms-line ); }
.mps-search .mps-missing { margin: 8px 0 12px; padding-left: 20px; color: var( --ms-off ); }
.mps-search .mps-missing li { margin-bottom: 4px; }
.mps-search .mps-review-gap { color: var( --ms-red-2 ); }

/* The transformation, on a profile: one picture, given room. */

.mps-search.mps-entrant .mps-transformation-figure { margin: 0; }
.mps-search.mps-entrant .mps-transformation-figure img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var( --ms-line );
}

/* ═════════════════════════════════════════════════════════════════════════
 * Launch pass (2026-11-11): the phone pages, at 390 px.
 *
 * Same tokens as the shared public kit (charcoal ground, one red behind white
 * text, 16 px text, 44 px and taller targets, square corners, Poppins), written
 * here so the pages look right without it. Later than everything above on
 * purpose: it wins by order, not by !important.
 * ═════════════════════════════════════════════════════════════════════════ */

.mps-search {
	--ms-black:   #121016;
	--ms-panel:   #1c1a22;
	--ms-panel-2: #26232e;
	--ms-line:    transparent;
	--ms-red:     #ED2124;
	--ms-red-fill: #D91F22;
	--ms-red-hi:  #C21A1D;
	--ms-red-2:   #ff7a7c;
	--ms-dim:     #b4b4be;
	--ms-tap:     48px;
	font-size: 16px;
	overflow-wrap: anywhere;
	max-width: 100%;
}

/* Nothing sideways: pictures, frames and the profile portrait never outgrow the screen. */
.mps-search img,
.mps-search iframe,
.mps-search video { max-width: 100%; height: auto; }
.mps-search.mps-entrant { overflow-x: hidden; }
.mps-search.mps-entrant .mp-hero { grid-template-columns: minmax( 0, 1fr ); max-width: 100%; }
.mps-search.mps-entrant .mp-hero-portrait,
.mps-search.mps-entrant .mp-hero-text,
.mps-search.mps-entrant .mp-body,
.mps-search.mps-entrant .mp-main,
.mps-search.mps-entrant .mp-rail { min-width: 0; max-width: 100%; }
.mps-search.mps-entrant .mp-hero-portrait { width: 100%; max-width: 100%; overflow: hidden; }
.mps-search.mps-entrant .mp-portrait-img { width: 100%; height: auto; max-width: 100%; display: block; }
.mps-search.mps-entrant .mp-portrait-empty { display: flex; align-items: center; justify-content: center; min-height: 120px; }
.mps-search.mps-entrant .mp-video-frame { max-width: 100%; }
.mps-search.mps-entrant .mp-video-frame iframe { width: 100%; }

/* Text: 16 px for anything read; 14 px only for fine print and captions. */
.mps-search-fine,
.mps-search .mpr-hint,
.mps-search-card-where,
.mps-search-card-style { font-size: 14px; }
.mps-search .mpr-field label,
.mps-search .mpr-check label { font-size: 16px; text-transform: none; }
.mps-search-entry .mpr-field label,
.mps-search-entry .mpr-check label { font-size: 16px; text-transform: none; }
.mps-search-dates dt,
.mps-search .mpr-status-grid dt,
.mps-search-phase,
.mps-search-badge { font-size: 14px; }
.mps-search-h2 { font-size: 16px; }

/* Fields: 48 px tall, 16 px text (so a phone does not zoom in), no outline, a fill. */
.mps-search input[type="text"],
.mps-search input[type="email"],
.mps-search input[type="password"],
.mps-search input[type="url"],
.mps-search input[type="search"],
.mps-search input[type="number"],
.mps-search select,
.mps-search textarea,
.mps-search .mpr-vote-email,
.mps-search .mpr-vote-code,
.mps-search-entry input[type="text"],
.mps-search-entry input[type="email"],
.mps-search-entry input[type="url"],
.mps-search-entry select,
.mps-search-entry textarea {
	min-height: var( --ms-tap );
	font-size: 16px;
	border: 0;
	border-radius: 0;
	background: var( --ms-panel-2 );
	color: #fff;
}
.mps-search textarea { min-height: 150px; }
.mps-search input[type="file"] { min-height: var( --ms-tap ); border: 0; background: var( --ms-panel-2 ); }
.mps-search-entry input[type="file"] { border: 0; }
.mps-search .mpr-set,
.mps-search-notice,
.mps-search-dates > div,
.mps-search .mpr-status-grid > div,
.mps-search-card,
.mps-search-beforepay,
.mps-search-pay { border: 0; }
.mps-search-notice { border-left: 4px solid var( --ms-red-fill ); }
.mps-search-notice.is-good { border-left-color: #2fbf71; }
.mps-search-pay { background: var( --ms-panel ); border-left: 4px solid var( --ms-red-fill ); }

/* The keyboard ring is the only outline there is. */
.mps-search input:focus,
.mps-search select:focus,
.mps-search textarea:focus { outline: 0; box-shadow: inset 0 -3px 0 var( --ms-red ); }
.mps-search :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Buttons: one red, white text, 48 px, square, no border. Everything else is a quiet fill. */
.mps-search .mpr-btn,
.mps-search .mp-btn,
.mps-search a.mpr-btn,
.mps-search a.mp-btn {
	min-height: var( --ms-tap );
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 0;
	border-radius: 0;
	background: var( --ms-panel-2 );
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}
.mps-search .mpr-btn-primary,
.mps-search .mp-btn-primary,
.mps-search a.mpr-btn-primary,
.mps-search a.mp-btn-primary,
.mps-search a.mpr-btn-primary:link,
.mps-search a.mpr-btn-primary:visited,
.mps-search a.mp-btn-primary:link,
.mps-search a.mp-btn-primary:visited { background: var( --ms-red-fill ); color: #fff; border: 0; }
.mps-search .mpr-btn-primary:hover,
.mps-search .mpr-btn-primary:focus,
.mps-search .mp-btn-primary:hover,
.mps-search .mp-btn-primary:focus,
.mps-search a.mpr-btn-primary:hover,
.mps-search a.mp-btn-primary:hover { background: var( --ms-red-hi ); color: #fff; }
.mps-search .mpr-btn:hover,
.mps-search .mp-btn:hover { color: #fff; }
.mps-search .mpr-linkbtn,
.mps-search-clear,
.mps-search .mpr-field-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.mps-search a { color: var( --ms-red-2 ); }

/* Tick boxes: a target a thumb can hit. */
.mps-search .mpr-check { gap: 12px; }
.mps-search .mpr-check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; }
.mps-search .mpr-check label { min-height: 44px; }

/* Inline errors, under the field they are about. */
.mps-search .mpr-error { display: block; margin-top: 6px; padding: 8px 12px; background: rgba( 237, 33, 36, .14 ); color: #ffb3b4; font-size: 14px; line-height: 1.4; }
.mps-search [aria-invalid="true"] { box-shadow: inset 4px 0 0 var( --ms-red ); }

/* Where am I in the entry: "Step 2 of 4" and a bar. */
.mps-stepof { margin: 0 0 8px; color: #fff; font-weight: 600; font-size: 16px; }
.mps-progress { height: 6px; margin: 0 0 16px; background: var( --ms-panel-2 ); }
.mps-progress > span { display: block; height: 100%; background: var( --ms-red-fill ); }
.mps-search .mpr-steps { border: 0; }
.mps-search .mpr-steps li { border: 0; font-size: 14px; }

/* The vote panel and the share row. */
.mps-search.mps-entrant .mps-vote { border: 0; border-left: 4px solid var( --ms-red-fill ); }
.mps-search.mps-entrant .mpr-vote-label { font-size: 16px; text-transform: none; }
.mps-search.mps-entrant .mpr-vote-message { font-size: 16px; }
.mps-search .mpr-share-url { min-height: var( --ms-tap ); border: 0; font-size: 16px; }

/* Entrants list: an empty state worth looking at, and filters that stack. */
.mps-search-emptystate { padding: 28px 20px; background: var( --ms-panel ); border-left: 4px solid var( --ms-red-fill ); max-width: 560px; }
.mps-search-emptystate .mps-search-h2 { font-size: 20px; text-transform: none; }
.mps-search-filters { border: 0; grid-template-columns: minmax( 0, 1fr ); }
.mps-search-card-name { font-size: 18px; }

/* The fine print: links to the rules, privacy, refunds, prize terms and a contact. Each row is 44 px tall. */
.mps-legal { margin: 28px 0 0; padding-top: 16px; }
.mps-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.mps-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var( --ms-dim ); text-decoration: underline; }
.mps-legal a:hover { color: #fff; }

.mps-search-closed { max-width: 560px; margin: 0 auto; }

@media ( max-width: 640px ) {
	.mps-search { padding: 20px 16px 32px; }
	.mps-search .mpr-btn,
	.mps-search .mp-btn { width: 100%; }
	.mps-search-entry .mpr-set { padding: 20px 16px 8px; }
	.mps-search .mpr-cols { grid-template-columns: minmax( 0, 1fr ); }
	.mps-search .mpr-photo-row,
	.mps-search-entry .mpr-photo-row { grid-template-columns: 72px minmax( 0, 1fr ); }
	.mps-search-entry .mpr-photo-row img { width: 72px; }

	/* The next step is always under the thumb: the Save button and the Pay button stay at the bottom of the screen. */
	.mps-search-entry .mps-search-cta,
	.mps-search-pay .mps-search-cta {
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin: 0 -16px 16px;
		padding: 12px 16px calc( 12px + env( safe-area-inset-bottom, 0px ) );
		background: var( --ms-panel );
		border: 0;
		box-shadow: 0 -8px 20px rgba( 0, 0, 0, .6 );
	}
	.mps-search-entry .mps-search-cta .mpr-btn,
	.mps-search-pay .mps-search-cta .mpr-btn { width: 100%; min-width: 0; }
}

@media ( min-width: 641px ) {
	.mps-search-pay .mps-search-cta { position: sticky; bottom: 0; background: var( --ms-panel ); padding: 12px 0; }
}
.mps-search input[type="number"] { width: 100%; }
