/* NeoYug Mentors — front end (1.23 design)
   Port of the approved HTML preview. Every rule is scoped under .nym so the theme
   (Twenty Twenty + Elementor globals) cannot restyle it, and the theme's own
   defaults for links, buttons, headings and blockquotes are neutralised inside.
   Palette from the Figma file "External Website Design".
--------------------------------------------------------------------------- */
.nym {
	--nym-purple: #8D22C3; --nym-purple-2: #821EB2; --nym-purple-press: #741AA3;
	--nym-black: #040507; --nym-deep: #261A48;
	--nym-pill-a: #F4A433; --nym-pill-b: #F48037; --nym-accent: #FF551D;
	--nym-peach: #FFD4C6; --nym-blush: #FDF1ED;
	--nym-ink: #15192C; --nym-muted: #5E5A6E;
	--nym-glass: rgba(255,255,255,.10);
	--nym-hair-d: rgba(255,255,255,.14); --nym-hair-l: rgba(21,25,44,.10);
	--nym-f-ui: inherit; /* site global font, same approach as the program catalog */
	--nym-f-alt: inherit;
	--nym-r-card: 20px;
	/* Height of the site's fixed overlay header; measured at runtime by mentors-public.js. */
	--nym-hh: 101px;
	display: block;
	font-family: inherit;
	color: var(--nym-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: normal;
}
@media (max-width: 767px) { .nym { --nym-hh: 80px; } }
.nym *, .nym *::before, .nym *::after { box-sizing: border-box; }
.nym img { display: block; max-width: 100%; height: auto; margin: 0; border: 0; box-shadow: none; }

/* --- theme neutralisers --------------------------------------------------
   Zero-specificity (:where) on purpose: they beat the theme's bare element rules
   (loaded earlier) but never outrank a class, so the Program Hub rail embedded
   in this page keeps its own styles exactly. */
:where(.nym) :where(h1, h2, h3, p, ul, li, blockquote, figure) { margin: 0; padding: 0; }
:where(.nym) :where(h1, h2, h3) { font-family: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
:where(.nym) ul { list-style: none; }
:where(.nym) blockquote { border: 0; quotes: none; font-size: inherit; color: inherit; }
:where(.nym) blockquote::before, :where(.nym) blockquote::after { content: none; }
:where(.nym) a { color: inherit; text-decoration: none; box-shadow: none; }
.nym a, .nym a:hover, .nym a:focus, .nym a:active, .nym button, .nym button:hover, .nym button:focus { text-decoration: none; }
.nym :focus-visible { outline: 2px solid var(--nym-peach); outline-offset: 3px; border-radius: 8px; }

.nym .nym-lhero__title, .nym .nym-lgrid__title, .nym .nym-card__name, .nym .nym-dhero__name,
.nym .nym-story h2, .nym .nym-practices h3 {
	font-family: inherit; text-transform: none; font-style: normal;
}
.nym .nym-card__name, .nym .nym-practices h3 { letter-spacing: normal; }

/* The Program Hub rail sizes two lines in rem; Twenty Twenty sets the root font to
   62.5%, which would shrink them. Pin those two to the px the rail is designed at. */
.nym .nyh-up__title { font-size: clamp(25.6px, calc(18.4px + 1.9vw), 38.4px); }
.nym .nyh-up__lead { font-size: clamp(15.7px, calc(15px + .2vw), 17px); }

.nym-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* --- buttons (label never loses legibility) ------------------------------ */
.nym .nym-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 50px; padding: 0 26px; border-radius: 999px;
	font: 500 15px/1 var(--nym-f-ui); text-decoration: none; cursor: pointer;
	text-transform: none; letter-spacing: normal; box-shadow: none;
	transition: background .2s, border-color .2s, color .2s;
}
.nym .nym-btn:hover, .nym .nym-btn:focus { text-decoration: none; }
.nym .nym-btn--solid, .nym .nym-btn--solid:link, .nym .nym-btn--solid:visited,
.nym .nym-btn--solid:hover, .nym .nym-btn--solid:focus { background: var(--nym-purple); color: #fff; border: 0; }
.nym .nym-btn--solid:hover { background: var(--nym-purple-press); }
.nym .nym-btn--glass, .nym .nym-btn--glass:link, .nym .nym-btn--glass:visited, .nym .nym-btn--glass:hover, .nym .nym-btn--glass:focus { color: #fff; }
.nym .nym-btn--glass { background: var(--nym-glass); border: 1px solid rgba(255,255,255,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nym .nym-btn--glass:hover { background: rgba(255,255,255,.2); border-color: #fff; }

/* =========================================================================
   LISTING
   ========================================================================= */
.nym-lhero {
	position: relative; overflow: hidden; color: #fff; text-align: center; padding: 0; margin: 0; width: 100%;
	background: linear-gradient(180deg, var(--nym-purple-2) 0%, var(--nym-black) 100%);
}
.nym-lhero::before {
	content: ""; position: absolute; inset: 0; opacity: .85; pointer-events: none;
	background: var(--nym-hero-bg, none) center top / cover no-repeat;
	filter: contrast(1.2) brightness(1.12) saturate(1.05);
}
.nym-lhero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
	background: linear-gradient(transparent, var(--nym-black));
}
.nym-lhero__in { position: relative; z-index: 2; padding-top: calc(var(--nym-hh) + clamp(0px, .6vw, 8px)); }
.nym .nym-lhero__title { font-weight: 700; font-size: clamp(38px, 5.4vw, 78px); line-height: 1; letter-spacing: .5px; margin: 0 auto 16px; color: #fff; }
.nym .nym-lhero__sub { font-weight: 300; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; color: rgba(255,255,255,.88); margin: 0 auto 28px; }
@media (min-width: 900px) { .nym .nym-lhero__title, .nym .nym-lhero__sub { white-space: nowrap; } }
.nym-lhero__figure { display: flex; justify-content: center; margin: clamp(18px, 2vw, 26px) auto 0; padding: 0 clamp(12px, 3vw, 40px); filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
/* Sized by HEIGHT with a wide cap, so any shape sits well: a wide mentor collage
   fills the banner, a squarer group photo keeps its presence. Edges fade softly
   into the purple so a collage never ends in a hard cut. */
.nym .nym-lhero__figure img {
	width: auto; height: auto;
	max-height: clamp(200px, 25vw, 380px);
	max-width: min(1120px, 100%);
	object-fit: contain;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* Phones: a wide collage (flagged .is-wide by the script) keeps real height and lets its
   outer edges fade off-screen, instead of shrinking into a thin strip. */
@media (max-width: 600px) {
	.nym-lhero__figure.is-wide {
		overflow: hidden; padding: 0; margin-left: calc(-1 * clamp(20px, 4vw, 40px)); margin-right: calc(-1 * clamp(20px, 4vw, 40px));
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
	}
	.nym .nym-lhero__figure.is-wide img {
		max-width: none; max-height: none; height: clamp(130px, 38vw, 170px); width: auto;
		-webkit-mask-image: none; mask-image: none;
	}
}

.nym-ribbon {
	position: relative; z-index: 3; overflow: hidden;
	border-top: 1px solid var(--nym-hair-d); border-bottom: 1px solid var(--nym-hair-d);
	background: rgba(4,5,7,.55);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.nym-ribbon__track { display: inline-flex; align-items: center; white-space: nowrap; padding: 18px 0; animation: nym-drift 60s linear infinite; }
.nym-ribbon__item { font-size: 15px; letter-spacing: .02em; color: var(--nym-peach); }
.nym-ribbon__orn { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; margin: 0 28px; transform: rotate(45deg); background: linear-gradient(135deg, var(--nym-pill-a), var(--nym-pill-b)); }
@keyframes nym-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nym-ribbon__track { animation: none; } }

.nym-lgrid { margin: 0; width: 100%; position: relative; background: var(--nym-black); color: #fff; padding: clamp(36px, 3.6vw, 52px) 0 clamp(72px, 7vw, 104px); }
.nym .nym-lgrid__title { font-weight: 300; font-size: clamp(30px, 3.3vw, 46px); letter-spacing: -.015em; line-height: 1.1; margin: 0 0 26px; color: #fff; }

.nym-filters {
	display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 0 40px; padding: 2px 0;
	overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.nym-filters::-webkit-scrollbar { display: none; }
.nym-filters.is-overflow { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.nym-filters.is-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
.nym .nym-pill {
	flex: 0 0 auto; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 500px; white-space: nowrap;
	font: 500 13.5px/1 var(--nym-f-ui); color: #fff; background: var(--nym-glass); border: 1px solid rgba(255,255,255,.10);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	cursor: pointer; scroll-snap-align: start; box-shadow: none;
	text-transform: none; letter-spacing: normal; text-decoration: none; margin: 0; -webkit-appearance: none; appearance: none;
	transition: background .2s, color .2s, border-color .2s;
}
.nym .nym-pill:hover { border-color: rgba(255,255,255,.5); background: var(--nym-glass); color: #fff; }
.nym .nym-pill[aria-pressed="true"], .nym .nym-pill[aria-pressed="true"]:hover { background: #fff; color: var(--nym-ink); border-color: #fff; }

/* Column counts are set so a card is never narrower than ~260px, which is what
   keeps the one-line role honest at every width (the old 1100/820 breakpoints
   squeezed the last few pixels before each step down). */
.nym-mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px) clamp(16px, 2vw, 26px); }
@media (max-width: 1199px) { .nym-mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .nym-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .nym-mgrid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
/* Phones drop to one card per row. Two-up would leave a ~165px column, where no
   readable size fits a 34-character role on one line, so the card takes the full
   width instead and the 4:5 portrait is kept. */
.nym .nym-card, .nym .nym-card:link, .nym .nym-card:visited, .nym .nym-card:hover { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: #fff; }
.nym .nym-card.is-hidden { display: none; }
.nym-card__frame {
	position: relative; aspect-ratio: 4 / 5; border-radius: var(--nym-r-card); overflow: hidden;
	background: transparent; border: 0;
}
.nym-card__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .6s ease; }
.nym .nym-card:hover .nym-card__frame img { transform: scale(1.035); }
.nym-monogram {
	position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit;
	background: linear-gradient(165deg, var(--nym-purple-2), #2a0f3d 60%, var(--nym-black));
	font-weight: 300; font-size: clamp(44px, 5vw, 70px); letter-spacing: .06em; color: rgba(255,255,255,.9);
}
.nym-monogram::before {
	content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(233,111,70,.35), transparent 70%);
}
.nym .nym-card__name { font-weight: 500; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.3; margin: 16px 0 4px; color: #fff; }
/* Roles are a single line, always. The grid breakpoints below guarantee a card
   column of at least ~260px, which holds the 34-character role budget at this
   size with room to spare, so the ellipsis is a safety net that should never
   fire. Keep roles at or under 34 characters (admin counts them for you). */
.nym .nym-card__role {
	font-size: 13.5px; line-height: 1.45; color: var(--nym-peach); opacity: .85; margin: 0 0 16px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nym-card__link {
	margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
	background: var(--nym-purple); border: 1px solid var(--nym-purple); font-size: 14px; font-weight: 500; line-height: 1; color: #fff;
	transition: background .2s, border-color .2s;
}
.nym .nym-card:hover .nym-card__link, .nym .nym-card:focus-visible .nym-card__link { background: var(--nym-purple-press); border-color: var(--nym-purple-press); color: #fff; }
.nym-empty { color: var(--nym-peach); }

/* pagination (only if a page cap is ever set via the neoyug_mentors_per_page filter) */
.nym-lgrid .navigation, .nym-lgrid .pagination { margin-top: 44px; text-align: center; }
.nym-lgrid .page-numbers { display: inline-block; min-width: 40px; padding: 9px 12px; margin: 0 3px; border-radius: 999px; border: 1px solid var(--nym-hair-d); color: #fff; }
.nym-lgrid .page-numbers.current { background: #fff; color: var(--nym-ink); }

/* =========================================================================
   DETAIL
   ========================================================================= */
.nym-dhero {
	position: relative; overflow: hidden; color: #fff; padding: 0; margin: 0; width: 100%;
	background:
		radial-gradient(60% 80% at 80% 35%, rgba(233,111,70,.28), transparent 60%),
		linear-gradient(170deg, var(--nym-purple-2) 0%, #3b0d57 38%, var(--nym-black) 100%);
}
.nym-dhero__grid {
	display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center;
	padding-top: calc(var(--nym-hh) + 32px); padding-bottom: 64px;
}
.nym-crumbs { font-size: 13px; color: var(--nym-peach); margin: 0 0 28px; }
.nym .nym-crumbs a { color: var(--nym-peach); }
.nym .nym-crumbs a:hover { color: #fff; }
.nym-crumbs i { font-style: normal; margin: 0 10px; opacity: .5; }
.nym-crumbs [aria-current] { color: #fff; }
.nym .nym-dhero__name { font-weight: 300; font-size: clamp(44px, 5.8vw, 84px); line-height: 1; letter-spacing: -.03em; margin: 0 0 18px; color: #fff; }
.nym .nym-dhero__role { font-weight: 300; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; letter-spacing: .005em; color: var(--nym-peach); margin: -2px 0 30px; }
.nym .nym-dhero__quote {
	position: relative; font-family: var(--nym-f-alt); font-style: italic; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5;
	margin: 0 0 16px; padding: 0 0 0 1.5em; max-width: 36ch; border: 0; color: #fff;
}
/* Hanging quote mark: level with the first line, text wraps cleanly beneath the words. */
.nym .nym-dhero__quote::before {
	content: "\201C"; position: absolute; left: 0; top: .08em;
	font-family: Georgia, "Times New Roman", serif; font-style: normal; font-size: 2.1em; line-height: .8; color: var(--nym-accent);
}
.nym-dhero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.nym-facts { display: flex; gap: clamp(22px, 3vw, 44px); margin-top: 0; padding-top: 12px; border-top: 1px solid var(--nym-hair-d); }
.nym-fact b { display: block; font-weight: 300; font-size: 28px; letter-spacing: -.01em; line-height: 1.15; }
.nym-fact span { font-size: 13px; color: var(--nym-peach); }
.nym-dhero__figure { position: relative; justify-self: end; width: min(100%, 380px); }
.nym-dhero__figure::before {
	content: ""; position: absolute; inset: -12px; border-radius: calc(var(--nym-r-card) + 10px);
	border: 1px solid rgba(255,212,198,.3); pointer-events: none;
}
.nym-dhero__frame {
	position: relative; aspect-ratio: 4 / 5; border-radius: var(--nym-r-card); overflow: hidden;
	background: transparent;
	box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.nym-dhero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
@media (max-width: 900px) {
	.nym-dhero__grid { grid-template-columns: 1fr; padding-top: calc(var(--nym-hh) + 16px); padding-bottom: 48px; }
	.nym-dhero__figure { justify-self: center; order: -1; width: min(70%, 300px); margin-bottom: 8px; }
	.nym-dhero__actions { flex-wrap: nowrap; gap: 8px; margin-top: 26px; }
	.nym .nym-dhero__actions .nym-btn { padding: 0 18px; font-size: 14px; height: 46px; }
	.nym-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.nym-fact b { font-size: 21px; }
	.nym-fact span { font-size: 12px; line-height: 1.35; display: block; margin-top: 4px; }
}

/* about + practices */
.nym-story { margin: 0; width: 100%; background: var(--nym-blush); padding: clamp(56px, 6vw, 84px) 0; }
.nym-story__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); }
.nym-story__grid--single { grid-template-columns: minmax(0, 760px); }
.nym .nym-story h2 { font-weight: 300; font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -.015em; line-height: 1.2; margin: 0 0 20px; color: var(--nym-deep); }
.nym .nym-story__about p { font-size: 16.5px; line-height: 1.75; margin: 0 0 16px; max-width: 62ch; color: var(--nym-ink); }
.nym-practices { align-self: start; background: #fff; border-radius: var(--nym-r-card); padding: 28px 30px; box-shadow: 0 20px 50px -34px rgba(38,26,72,.45); }
.nym .nym-practices h3 { font-weight: 500; font-size: 18px; line-height: 1.4; margin: 0 0 6px; color: var(--nym-deep); }
.nym .nym-plist { margin: 0; padding: 0; list-style: none; }
.nym .nym-plist li { list-style: none; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 15px 0; margin: 0; border-bottom: 1px solid var(--nym-hair-l); }
.nym .nym-plist li:last-child { border-bottom: 0; padding-bottom: 0; }
.nym-plist i { display: block; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--nym-purple); }
.nym-plist b { display: block; font-weight: 500; font-size: 15.5px; line-height: 1.4; color: var(--nym-deep); }
.nym-plist span { font-size: 14.5px; line-height: 1.55; color: var(--nym-muted); }
@media (max-width: 900px) { .nym-story__grid { grid-template-columns: 1fr; } }

/* programs + events rail: the Program Hub's own rail (upsell.css) inside a white band */
.nym-work { background: #fff; }
.nym-back-row { text-align: center; margin-top: 36px; }
.nym-backonly { background: #fff; text-align: center; padding: 48px 20px 72px; }
.nym .nym-back-link, .nym .nym-back-link:visited {
	display: inline-block; font: 500 15px/1 var(--nym-f-ui); color: var(--nym-purple);
	padding: 12px 4px; border: 0; transition: color .2s;
}
.nym .nym-back-link:hover, .nym .nym-back-link:focus { color: var(--nym-purple-press); }

/* =========================================================================
   Preview-mode badge (admins only)
   ========================================================================= */
.ny-preview-badge { position: fixed; left: 16px; bottom: 16px; z-index: 99999; max-width: 340px; background: #261A48; color: #fff; font-family: inherit; font-size: 13px; line-height: 1.5; padding: 12px 15px; border-radius: 12px; box-shadow: 0 10px 30px rgba(38,26,72,.35); }
.ny-preview-badge strong { color: #fff; font-weight: 600; }
.ny-preview-badge a, .ny-preview-badge a:hover { color: #FFD4C6; text-decoration: none; font-weight: 600; }
