/*
 * Find my match — only what Meridian lacks: the hero band's inner layout (as
 * page-properties.php sets it inline), answer tiles, the progress strip and
 * the phone bar. Everything else is .mrd components and theme tokens.
 */

.ncm-hero { padding: clamp(42px, 7vw, 96px) 20px clamp(34px, 5vw, 64px); text-align: center; border-bottom: 1px solid var(--line); position: relative; }
.ncm-hero__fade { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at center, transparent 0%, var(--paper) 80%), linear-gradient(180deg, transparent 50%, var(--paper) 100%); }
.ncm-hero__in { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.ncm-hero__eyebrow { font-family: var(--font-secondary, 'Open Sans'), sans-serif; font-size: 11px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: 2px; }
.ncm-hero__h1 { font-family: var(--font-heading, 'Montserrat'), sans-serif; font-size: clamp(27px, 4.6vw, 44px); font-weight: 700; color: var(--ink); margin: 14px 0 16px; letter-spacing: -1px; line-height: 1.12; text-wrap: balance; text-shadow: 0 0 40px #fff; }
.ncm-hero__lede { font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-2); max-width: 62ch; margin: 0 auto; line-height: 1.55; }

.ncm-sec { background: var(--surface); padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 96px); }
.mrd .ncm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.mrd .ncm-card { padding: clamp(20px, 3vw, 36px); }
.mrd .ncm-aside { position: sticky; top: 96px; }

.mrd .ncm-prog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mrd .ncm-prog span { height: 4px; border-radius: 2px; background: var(--line); }
.mrd .ncm-prog span.on { background: var(--brand); }
.mrd .ncm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 28px; font-size: 12.5px; color: var(--ink-3); }
.mrd .ncm-steps .cur { color: var(--ink); font-weight: 600; }
.mrd .ncm-q, .mrd .ncm-form-wrap h2 { color: var(--ink); }
.mrd .ncm-q { margin-bottom: 8px; }
.mrd .ncm-qs { margin-bottom: 22px; max-width: 62ch; font-size: 15px; line-height: 1.5; }
.mrd .ncm-lb { font-size: 13px; font-weight: 600; margin-bottom: 10px; }

.mrd .ncm-tiles { display: grid; gap: 12px; }
.mrd .ncm-tiles.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mrd .ncm-tiles.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mrd .ncm-tiles.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mrd .ncm-tile, .mrd .ncm-any {
	display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start;
	padding: 16px; min-height: 64px; border-radius: var(--r-card); border: 1px solid var(--line-2);
	background: var(--surface); color: var(--ink); cursor: pointer; font: inherit;
	transition: border-color .16s, background-color .16s, box-shadow .16s;
}
.mrd .ncm-tile:hover, .mrd .ncm-any:hover { border-color: var(--ink-3); }
.mrd .ncm-tile.on, .mrd .ncm-any.on { background: var(--brand-tint); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.mrd .ncm-tile:focus-visible, .mrd .ncm-any:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--brand-tint), inset 0 0 0 1px var(--brand); }
.mrd .ncm-tile__l { font-family: "Noto Sans", "Noto Sans Hebrew", ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 1.02rem; letter-spacing: -.015em; line-height: 1.25; }
.mrd .ncm-tile__s { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.mrd .ncm-tile__s b { color: var(--ink); font-weight: 600; }
.mrd .ncm-any { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; margin-top: 12px; font-weight: 600; }
.mrd .ncm-any b { font-weight: 500; font-size: 13px; color: var(--ink-2); }

.mrd .ncm-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.mrd .ncm-nav .btn-pri { min-width: 160px; }

.mrd .ncm-bar-track { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 18px 0; }
.mrd .ncm-bar-track span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 3px; transition: width .3s ease; }
.mrd .ncm-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mrd .ncm-kv b { color: var(--ink); font-weight: 600; }
.mrd .ncm-few { margin: 14px 0 0; color: var(--ink); }
.mrd .ncm-note { margin: 14px 0 0; color: var(--ink-3); }

.mrd .ncm-mbar { display: none; }

/* ---------- result ---------- */
.mrd .ncm-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.mrd .ncm-link, .mrd .ncm-form a { background: none; border: 0; padding: 0 4px; color: var(--brand); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.mrd .ncm-rgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.mrd .ncm-form-wrap { padding: clamp(20px, 3vw, 32px); }
.mrd .ncm-exline { margin-bottom: 14px; }
.mrd .ncm-exlist { display: flex; flex-direction: column; gap: 12px; }
/* Meridian stacks .pc--row under 1200px; these examples stay compact rows at every width. */
.mrd .ncm-exlist .ncm-ex { flex-direction: row; }
.mrd .ncm-exlist .ncm-ex > .ph { flex: 0 0 168px; aspect-ratio: auto; min-height: 120px; }
.mrd .ncm-ex .pc__price { font-size: 1.3rem; margin-top: 2px; }
.mrd .ncm-ex .pc__name { margin-top: 6px; }
.mrd .ncm-err { color: var(--risk); font-size: 13px; margin: 0 0 10px; }
.mrd .ncm-err:empty { display: none; }
.mrd .ncm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 980px) {
	.mrd .ncm-grid, .mrd .ncm-rgrid { grid-template-columns: 1fr; }
	.mrd .ncm-aside { display: none; }
	.mrd .ncm-tiles.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mrd .ncm-tiles.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mrd .ncm-nav .btn-pri { display: none; }
	.mrd .ncm-mbar {
		display: flex; justify-content: space-between; align-items: center; gap: 12px;
		position: fixed; inset-inline: 0; bottom: 0; z-index: 9990; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16, 22, 23, .08);
	}
	.mrd .ncm-mbar b { display: block; font-size: 17px; }
	.mrd .ncm-mbar .btn { min-width: 140px; }
	.ncm-sec { padding-bottom: 120px; }
	.mrd .ncm-steps { font-size: 11px; }
}
@media (max-width: 520px) {
	.mrd .ncm-tiles.c2, .mrd .ncm-tiles.c3 { grid-template-columns: 1fr; }
	.mrd .ncm-exlist .ncm-ex > .ph { flex-basis: 112px; min-height: 100px; }
	.mrd .ncm-ex .pc__b { padding: 12px 14px; }
	.mrd .wrap-md { padding-inline: 16px; }
}
/* The advisor launcher sits above the phone bar while the quiz is open. */
@media (max-width: 980px) { body .ncya { --ncya-bottom: 88px !important; } }

.mrd .ncm-opt { font-weight: 400; color: var(--ink-3); }
