/* Artisty: additions the PHP port needs that the static site did not.
 *
 * Kept separate from assets/css/style.css, which is the original stylesheet
 * carried over byte-for-byte. Anything in here exists because markup moved from
 * JavaScript into PHP and something had to change shape; adding it to style.css
 * would make every future diff against the original unreadable.
 *
 * Loads after style.css, so these win at equal specificity.
 */

/* Content visibility -------------------------------------------------------
 * The shared reveal styles hide server-rendered copy until main.js and an
 * IntersectionObserver finish. Keep it readable on the first paint, including
 * when scripts are blocked, fail, or never receive an observer callback.
 * Match the completed-state selectors too so adding .in cannot hide it again.
 */

.rv,
.rv.in {
	opacity: 1;
	transform: none;
	transition: none;
}

.split .w > span,
.split.in .w > span {
	transform: none;
	transition: none;
}

.hero h1 .the-work,
.hero h1.in .the-work {
	opacity: 1;
	transform: none;
	transition: none;
}

/* Leave room for the floating support launcher below the reCAPTCHA badge. */
.grecaptcha-badge {
	bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Pager -------------------------------------------------------------------
 *
 * pages.js built the pager from <button> elements and toggled the boundary
 * state with the `disabled` attribute, which style.css styles via
 * .pg-btn:disabled. The server-rendered pager uses links so that paging works
 * without JavaScript and every page has a URL — and a link cannot be :disabled,
 * so the same visual state needs a class.
 */

.pg-btn.is-disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

.pg-btn.is-disabled:hover {
	border-color: var(--line-2);
}

/* The opportunities pager is driven by an API total, which can be in the
 * hundreds. Rendering a button per page would wrap the row over several lines,
 * so beyond seven pages pages.js prints first, last and the current page's
 * neighbours, and marks each break with .pg-gap. Sized to a .pg-n so the
 * numbers either side keep their spacing.
 */

.pg-gap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--muted);
	font-size: 14px;
	user-select: none;
}

/* Reel captions ------------------------------------------------------------
 *
 * A reel card used to carry a one-line title written into home.js. It now
 * carries the Instagram caption, which is free text of whatever length the
 * account posted. .reel .bot is absolutely positioned at the foot of a
 * fixed-ratio card, so an unclamped caption would grow upwards through the
 * play button and out of the frame. Three lines is what fits above it.
 *
 * style.css has no rule for .t at all, so nothing here is overriding it.
 */

.reel .bot .t {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

/* Reel thumbnails -----------------------------------------------------------
 *
 * style.css shows the thumbnails desaturated at rest — grayscale(1) with
 * brightness(.7) — and only partly brings the colour back on hover. That was
 * written for the stock stand-ins the track used to hold. These are now the
 * account's own reels, where the thumbnail is what tells one card from another,
 * so it is shown in full colour from the start. The hover rule is restated
 * because style.css sets a filter there too; without it, hovering would dim
 * every card the moment the pointer crossed it. The hover zoom is untouched.
 */

.reel img,
.reel:hover img {
	filter: none;
}

/* FTII seminar landing ------------------------------------------------------
 * The event uses a light hero below the shared fixed header. Give that page's
 * header its own dark surface so the logo and navigation remain legible. */

body[data-event="seminar"] .site-header,
body[data-event="seminar"] .site-header.is-light {
	background: rgba(18, 4, 48, .96);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}

body[data-event="seminar"] .site-header .nav-link {
	opacity: .96;
}

/* Event gallery modal -------------------------------------------------------
 *
 * The Film Expo India 2026 gallery, ported from the live theme's stylesheet
 * (.event-gallery* in artisty-live/.../css/styles.css). The markup is built by
 * pages.js with the live class names, so these rules apply as written apart
 * from four substitutions:
 *
 *   --primary            -> --green  (#9ae334)
 *   --primary-foreground -> --ink    (#0a0a0a)
 *   --font-display       -> --display ("Outfit")
 *   z-index 130          -> 400
 *
 * The live theme had nothing above the modal at 130. Here .site-header is 100,
 * a pill tooltip 200 and .kchat 300, so 130 would let the KalaAI chat bubble
 * sit on top of the lightbox. A modal dialog belongs above all of them.
 */

.event-gallery {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0.75rem, 3vw, 2rem);
}

.event-gallery[hidden] {
	display: none;
}

.event-gallery__scrim {
	position: absolute;
	inset: 0;
	background: rgba(6, 6, 12, 0.78);
	backdrop-filter: blur(10px);
}

.event-gallery__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(72rem, 100%);
	/* Fixed height keeps the modal (and the day tabs) from shifting when a
	   tab with fewer/more photos changes the grid's scroll height. */
	height: min(90vh, 60rem);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1.75rem;
	background: #0c0c10;
	box-shadow: 0 48px 140px rgba(0, 0, 0, 0.55);
	animation: event-gallery-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes event-gallery-in {
	from {
		opacity: 0;
		transform: translateY(1.25rem) scale(0.97);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.event-gallery__dialog {
		animation: none;
	}
}

.event-gallery__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 1.5rem 1rem;
}

@media (min-width: 640px) {
	.event-gallery__header {
		padding: 2rem 2rem 1.25rem;
	}
}

.event-gallery__eyebrow {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--green);
}

.event-gallery__title {
	margin: 0.4rem 0 0;
	font-family: var(--display);
	font-size: clamp(1.5rem, 3.4vw, 2.15rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #fff;
}

.event-gallery__meta {
	margin: 0.45rem 0 0;
	font-size: 0.9rem;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.6);
}

.event-gallery__close,
.event-gallery__lb-close {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.event-gallery__close:hover,
.event-gallery__lb-close:hover {
	background: #fff;
	border-color: #fff;
	color: #0c0c10;
}

.event-gallery__close:focus-visible,
.event-gallery__tab:focus-visible,
.event-gallery__item:focus-visible,
.event-gallery__lb-close:focus-visible,
.event-gallery__lb-nav:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}

.event-gallery__tabs {
	display: flex;
	gap: 0.4rem;
	padding: 0 1.5rem 1.1rem;
	overflow-x: auto;
	scrollbar-width: none;
}

@media (min-width: 640px) {
	.event-gallery__tabs {
		padding: 0 2rem 1.25rem;
	}
}

.event-gallery__tabs::-webkit-scrollbar {
	display: none;
}

.event-gallery__tab {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	padding: 0.42rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.event-gallery__tab:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.event-gallery__tab.is-active {
	background: var(--green);
	border-color: var(--green);
	color: var(--ink);
}

.event-gallery__tab-count {
	font-size: 0.7rem;
	opacity: 0.65;
}

.event-gallery__scroll {
	flex: 1;
	padding: 0 1.5rem 1.5rem;
	overflow-y: auto;
	/* Reserves scrollbar space so the grid doesn't shift horizontally when a
	   day tab changes whether the content overflows. */
	scrollbar-gutter: stable;
}

@media (min-width: 640px) {
	.event-gallery__scroll {
		padding: 0 2rem 2rem;
	}
}

.event-gallery__grid {
	column-gap: 0.7rem;
	columns: 2;
}

@media (min-width: 640px) {
	.event-gallery__grid {
		columns: 3;
	}
}

@media (min-width: 1100px) {
	.event-gallery__grid {
		columns: 4;
	}
}

.event-gallery__item {
	position: relative;
	margin: 0 0 0.7rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.9rem;
	background: #14141a;
	break-inside: avoid;
	cursor: zoom-in;
}

.event-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.45s ease;
}

.event-gallery__item:hover img,
.event-gallery__item:focus-visible img {
	transform: scale(1.045);
}

.event-gallery__item-tag {
	position: absolute;
	bottom: 0.55rem;
	left: 0.55rem;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(0, 0, 0, 0.5);
	padding: 0.22rem 0.6rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0;
	transition: opacity 0.2s;
	backdrop-filter: blur(8px);
}

.event-gallery__item:hover .event-gallery__item-tag,
.event-gallery__item:focus-visible .event-gallery__item-tag {
	opacity: 1;
}

/* Event gallery lightbox */
.event-gallery__lightbox {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(3.5rem, 7vw, 4.5rem) clamp(3.5rem, 7vw, 5rem);
	background: rgba(5, 5, 10, 0.94);
}

.event-gallery__lightbox[hidden] {
	display: none;
}

.event-gallery__lb-figure {
	display: flex;
	max-width: 100%;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
	margin: 0;
}

.event-gallery__lb-figure img {
	max-width: min(64rem, 100%);
	max-height: 72vh;
	border-radius: 1rem;
	object-fit: contain;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.event-gallery__lb-caption {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.85rem;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.7);
}

.event-gallery__lb-day {
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--green);
}

.event-gallery__lb-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.event-gallery__lb-nav {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.event-gallery__lb-nav:hover {
	background: var(--green);
	border-color: var(--green);
	color: var(--ink);
}

.event-gallery__lb-nav--prev {
	left: clamp(0.5rem, 2vw, 1.5rem);
}

.event-gallery__lb-nav--next {
	right: clamp(0.5rem, 2vw, 1.5rem);
}

@media (max-width: 480px) {
	.event-gallery__lb-nav {
		width: 2.3rem;
		height: 2.3rem;
	}
}

/* Card gallery preview ------------------------------------------------------
 *
 * style.css owns the grid (.ev .gal) — a 4-up row of 4:3 boxes with the images
 * under a grayscale filter — and that is left alone except for the two rules
 * below.
 *
 * The ratio override is not cosmetic. These are not raw photographs: the
 * gallery is 23 pre-designed 1080x1350 social cards, each carrying the Artisty
 * and Film Expo India logos above a "Snippets from day N" title. Covering a 4:5
 * card into a 4:3 box crops 270px off the top and bottom, which cuts the title
 * in half mid-glyph. 4:5 lets the whole card through, as the modal shows it.
 *
 * The filter is cleared for the same reason: grayscale was written for the
 * stock stand-ins this grid used to hold, and on the real cards it desaturates
 * the green Artisty and Film Expo branding that makes them readable as event
 * recaps. Same specificity as style.css, won by load order.
 *
 * pages.js also turns .gal into a second trigger for the modal, so the preview
 * is a control and has to look and behave like one.
 */

.ev .gal > div {
	aspect-ratio: 4 / 5;
}

.ev .gal img {
	filter: none;
}

.ev .gal[data-gallery-trigger] {
	cursor: pointer;
}

.ev .gal[data-gallery-trigger]:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 3px;
}

/* Multi-select filters -----------------------------------------------------
 *
 * The Department and City filters on /open-opportunities/ send several values at
 * once, which a native <select multiple> can only express with ctrl-click and
 * cannot be styled at all. So they are a button and a panel of checkboxes; the
 * button restates the pill from .fb-row .select select in style.css rather than
 * borrowing .select, and the reason is the chevron.
 *
 * .select::after draws the pill's chevron, positioned against the nearest
 * positioned ancestor. At phone width the panel is deliberately anchored to the
 * whole .fb-row instead of to the control — a half-width control leaves a panel
 * too narrow for a department name, and which half it lands in depends on where
 * the row wraps. That needs .ms to stop being a positioning context, and moving
 * the chevron to .ms-btn (which keeps its own) is what lets it. The markup is
 * .ms with no .select for the same reason: two chevrons otherwise.
 *
 * Nothing here sets `display` on .ms itself: pages.js hides a filter that has no
 * options by setting the `hidden` property, which only wins while the UA rule
 * for [hidden] is unopposed.
 */

.ms {
	position: relative;
}

.ms-btn {
	position: relative;
	display: flex;
	align-items: center;
	height: 44px;
	max-width: 100%;
	padding: 0 44px 0 18px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 14.5px;
	text-align: left;
	cursor: pointer;
	transition: border-color .3s;
}

.ms-btn:hover {
	border-color: var(--ink);
}

.ms.open .ms-btn {
	border-color: var(--green-ink);
}

.ms-btn:focus-visible {
	outline: 2px solid var(--green-ink);
	outline-offset: 2px;
}

/* Same geometry as .select::after, on the button so it cannot follow the panel
   when .ms stops being the positioning context on small screens. */

.ms-btn::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--ink);
	border-bottom: 1.5px solid var(--ink);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .3s var(--ease);
	pointer-events: none;
}

.ms.open .ms-btn::after {
	transform: translateY(-30%) rotate(-135deg);
}

.ms-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ms-panel {
	display: none;
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	max-width: min(340px, calc(100vw - 32px));
	max-height: min(300px, 60vh);
	overflow: hidden;
	overscroll-behavior: contain;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: 0 18px 40px rgba(10, 10, 10, .13);
}

/* The panel is a column: search box, scrolling rows, Clear. The rows scroll
   rather than the panel so the search box and Clear stay put — with every
   Indian city in the list, scrolling the box out of reach is the one thing
   that would make it useless. */

.ms.open .ms-panel {
	display: flex;
	flex-direction: column;
}

.ms-opts {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ms-search {
	flex: 0 0 auto;
	width: 100%;
	margin: 0 0 6px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}

.ms-search:focus {
	outline: 2px solid var(--green-ink);
	outline-offset: -2px;
	background: #fff;
}

.ms-none {
	padding: 14px 10px;
	color: var(--muted);
	font-size: 13.5px;
}

.ms-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: var(--r-sm);
	font-size: 14px;
	cursor: pointer;
	transition: background .2s;
}

.ms-opt:hover {
	background: var(--paper);
}

.ms-opt input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	accent-color: var(--green-ink);
	cursor: pointer;
}

.ms-opt span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ms-clear {
	width: 100%;
	margin-top: 6px;
	padding: 9px 10px 3px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	text-align: left;
	transition: color .2s;
}

.ms-clear:hover {
	color: var(--ink);
}

.ms-clear:focus-visible {
	outline: 2px solid var(--green-ink);
	outline-offset: -2px;
	border-radius: var(--r-sm);
}

/* Phone width: the row wraps to two controls per line, so the panel is anchored
   to the row itself and spans it. .fb-row is the positioning context here and
   .ms gives it up — see the note at the top. It is also the case where a panel
   opening downwards has the least room, hence the vh cap. */

@media (max-width: 680px) {
	.fb-row {
		position: relative;
	}

	.ms {
		position: static;
		flex: 1 1 calc(50% - 12px);
	}

	.ms-panel {
		left: 14px;
		right: 14px;
		min-width: 0;
		max-width: none;
	}
}

/* Public opportunity job descriptions: supplied opportunity-details design. */
body.opportunity-dialog-open {
	overflow: hidden;
}

.opportunity-dialog {
	--opportunity-muted: #6b6b66;
	--opportunity-line: rgba(10, 10, 10, .1);
	width: min(560px, calc(100% - 32px));
	max-width: none;
	height: min(860px, calc(100vh - 48px));
	height: min(860px, calc(100dvh - 48px));
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 24px;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
	font-family: "DM Sans", var(--body);
}

.opportunity-dialog[open] { display: flex; flex-direction: column; }
.opportunity-dialog [hidden] { display: none; }
.opportunity-dialog svg { display: block; flex: none; }
.opportunity-dialog::backdrop { background: rgba(8, 8, 8, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.opportunity-dialog__header {
	position: relative;
	flex: 0 0 auto;
	padding: 28px 28px 24px;
	background:
		radial-gradient(ellipse 90% 120% at 92% 8%, rgba(154, 227, 52, .45), transparent 52%),
		radial-gradient(ellipse 50% 80% at 100% 40%, rgba(154, 227, 52, .18), transparent 55%),
		linear-gradient(145deg, #0c0c0c 0%, #151515 55%, #101010 100%);
	color: #fff;
	overflow: hidden;
}

.opportunity-dialog__header::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -60px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(154, 227, 52, .35), transparent 68%);
	filter: blur(8px);
	pointer-events: none;
}

.opportunity-dialog__eyebrow { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0 40px 14px 0; color: var(--green); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.opportunity-dialog__eyebrow::before { content: ""; flex: none; width: 3px; height: 14px; border-radius: 2px; background: var(--green); box-shadow: 0 0 10px var(--green-glow); }
.opportunity-dialog__header h2 { position: relative; z-index: 1; margin: 0 40px 18px 0; color: #fff; font-family: var(--display); font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.opportunity-dialog__meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.opportunity-dialog__tag { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 34px; padding: 6px 12px 6px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 500; line-height: 1.4; }
.opportunity-dialog__tag > span { min-width: 0; overflow-wrap: anywhere; }
.opportunity-dialog__tag svg { width: 15px; height: 15px; color: var(--green); }
.opportunity-dialog__close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 4px; border: 4px solid transparent; border-radius: 50%; background: rgba(255, 255, 255, .08); background-clip: padding-box; color: rgba(255, 255, 255, .85); cursor: pointer; transition: background-color .25s, color .25s; }
.opportunity-dialog__close::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: inherit; pointer-events: none; }
.opportunity-dialog__close svg { width: 14px; height: 14px; }
.opportunity-dialog__close:hover { color: #fff; background-color: rgba(255, 255, 255, .16); }
.opportunity-dialog__close:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.opp-card .opp-details:focus-visible,
.opp-card .register:focus-visible,
.opportunity-dialog__retry:focus-visible,
.opportunity-dialog__apply:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 4px; }

.opportunity-dialog__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 28px 12px; background: #fff; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(10, 10, 10, .28) transparent; }
.opportunity-dialog__scroll::-webkit-scrollbar { width: 8px; }
.opportunity-dialog__scroll::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.opportunity-dialog__scroll::-webkit-scrollbar-thumb { background: rgba(10, 10, 10, .22); border-radius: 999px; border: 2px solid #fff; }
.opportunity-dialog__scroll::-webkit-scrollbar-thumb:hover { background: rgba(10, 10, 10, .38); }
.opportunity-dialog__scroll:focus-visible { outline: 2px solid var(--green-ink); outline-offset: -3px; }
.opportunity-dialog__status { margin: 22px 0 0; color: var(--opportunity-muted); font-size: 14.5px; line-height: 1.55; }
.opportunity-dialog__status.is-loading::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--line-2); border-top-color: var(--green-ink); border-radius: 50%; animation: opportunity-loading .8s linear infinite; }
.opportunity-dialog__retry { min-height: 44px; margin-top: 16px; }
.opportunity-dialog__section { padding: 22px 0; border-bottom: 1px solid var(--opportunity-line); }
.opportunity-dialog__section:last-child { padding-bottom: 28px; border-bottom: 0; }
.opportunity-dialog__section-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.opportunity-dialog__section-heading svg { width: 18px; height: 18px; color: var(--green-ink); }
.opportunity-dialog__section-heading h3 { margin: 0; color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.opportunity-dialog__description { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.opportunity-dialog__description > .opportunity-dialog__copy,
.opportunity-dialog__description > .opportunity-dialog__checklist { margin: 22px 0; }
.opportunity-dialog__copy { margin: 0; color: var(--opportunity-muted); white-space: pre-wrap; }
.opportunity-dialog__copy + .opportunity-dialog__copy { margin-top: 12px; }
.opportunity-dialog__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.opportunity-dialog__copy + .opportunity-dialog__fields { margin-top: 20px; }
.opportunity-dialog__fields > div { min-width: 0; }
.opportunity-dialog__field--wide { grid-column: 1 / -1; }
.opportunity-dialog__fields dt { margin-bottom: 6px; color: var(--opportunity-muted); font-size: 12px; font-weight: 600; }
.opportunity-dialog__field-label { display: flex; align-items: center; gap: 6px; }
.opportunity-dialog__field-label svg { width: 14px; height: 14px; color: var(--green-ink); }
.opportunity-dialog__field-label span { min-width: 0; }
.opportunity-dialog__fields dd { margin: 0; }
.opportunity-dialog__fields dd > .opportunity-dialog__copy { color: var(--ink-2); }
.opportunity-dialog__skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.opportunity-dialog__skills li { display: inline-flex; align-items: center; max-width: 100%; min-height: 34px; padding: 8px 14px; border-radius: 999px; background: var(--paper-2); color: #101010; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.opportunity-dialog__checklist { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0 0 0 10px; list-style: none; }
.opportunity-dialog__checklist > li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.opportunity-dialog__checklist > li > div { min-width: 0; }
.opportunity-dialog__checklist > li > svg { width: 16px; height: 16px; margin-top: 2px; padding: 2px; border-radius: 50%; background: var(--paper-2); color: var(--green-ink); }
.opportunity-dialog__checklist .opportunity-dialog__copy { color: inherit; }

.opportunity-dialog__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; padding: 16px 22px 18px; border-top: 1px solid var(--opportunity-line); background: var(--paper-2); }
.opportunity-dialog__note { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; color: var(--opportunity-muted); font-size: 13px; line-height: 1.35; }
.opportunity-dialog__note-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1.5px solid var(--green); border-radius: 10px; color: var(--green-ink); }
.opportunity-dialog__note-icon svg { width: 16px; height: 16px; }
.opportunity-dialog__apply { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-height: 46px; padding: 10px 20px; border-radius: 999px; background: var(--green); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; line-height: 1.4; text-align: center; text-decoration: none; box-shadow: 0 10px 28px -10px var(--green-glow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.opportunity-dialog__apply:hover { background: var(--green-2); transform: translateY(-1px); box-shadow: 0 14px 32px -10px var(--green-glow); }
.opportunity-dialog__apply > span { font-weight: 500; opacity: .85; }

@keyframes opportunity-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.opportunity-dialog__status.is-loading::before { animation: none; }
	.opportunity-dialog__close, .opportunity-dialog__apply { transition: none; }
	.opportunity-dialog__apply:hover { transform: none; }
}
@media (max-width: 560px) {
	.opportunity-dialog { height: min(920px, calc(100vh - 24px)); height: min(920px, calc(100dvh - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
	.opportunity-dialog__header { padding: 24px 20px 20px; }
	.opportunity-dialog__header h2 { margin-right: 36px; font-size: 28px; }
	.opportunity-dialog__scroll { padding: 4px 20px 12px; }
	.opportunity-dialog__fields { grid-template-columns: minmax(0, 1fr); }
	.opportunity-dialog__footer { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
	.opportunity-dialog__apply { width: 100%; }
}

.opp-card {
	container-type: inline-size;
}

.opp-card .foot {
	flex-wrap: wrap;
	justify-content: center;
}

.opp-card .opp-details {
	display: inline-flex;
	border-radius: 999px;
}

/* The card opens details, while each visible button has its own hover state. */
.opp-card .opp-details::after {
	content: "";
	position: absolute;
	inset: 0;
}

.opp-card .foot .apply {
	position: relative;
	z-index: 1;
	gap: 8px;
}

.opp-card .opp-details .apply,
.opp-card .apply.register:hover {
	background: var(--green);
	color: var(--ink);
}

.opp-card .apply.register,
.opp-card .opp-details .apply:hover {
	background: #000;
	color: #fff;
}

@container (max-width: 270px) {
	.opp-card .foot { gap: 6px; }
	.opp-card .foot .apply { gap: 4px; padding-inline: 7px; font-size: 13px; }
}

/* Opportunity skeletons ----------------------------------------------------
 *
 * The listing is fetched, so its first paint was an empty grid. pages.js now
 * paints placeholder cards into it, and they are built from .lcard itself —
 * the box, border, padding and gap are the real card's, so the grid holds the
 * exact height the results will take and nothing moves when they arrive. Only
 * the contents are drawn here.
 *
 * A sweeping highlight rather than a pulsing opacity: these sit on white, and a
 * pulse reads as a rendering fault at the same frequency as a real glitch.
 */

.opp-card.is-skeleton {
	cursor: default;
	pointer-events: none;
}

.sk {
	/* Named because .lcard .facts span sets the `background` shorthand, which
	   resets background-image — the chip bar below has to put the sweep back. */
	--sk-sweep: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%);
	display: block;
	border-radius: 6px;
	background-color: var(--line);
	background-image: var(--sk-sweep);
	background-size: 220% 100%;
	background-repeat: no-repeat;
	animation: sk-sweep 1.3s linear infinite;
}

@keyframes sk-sweep {
	from { background-position: 160% 0; }
	to { background-position: -60% 0; }
}

/* Sized to the real elements they stand in for: the kind pill, the department
   label, the timestamp and the two title lines. */
.sk-pill { width: 62px; height: 24px; border-radius: 999px; }
.sk-dept { width: 46px; height: 11px; }
.sk-when { width: 42px; height: 10px; }
.sk-title { width: 78%; height: 15px; margin-top: 2px; }
.sk-short { width: 52%; }
.sk-apply { width: 76px; height: 34px; border-radius: 999px; }

/* The fact chips. More specific than both .sk and .lcard .facts span on
   purpose: that rule's `background` shorthand resets the size and repeat as
   well as the image, so all four have to be restored here — the chip keeps its
   own dimensions and gets the sweep back. */
.opp-card .facts span.sk {
	width: 64px;
	padding: 0;
	border-radius: 999px;
	background-color: var(--paper-2);
	background-image: var(--sk-sweep);
	background-size: 220% 100%;
	background-repeat: no-repeat;
}

#results .opp-card {
	transition: opacity .18s, border-color .4s, box-shadow .5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
	.sk {
		animation: none;
	}

	#results .opp-card {
		transition: none;
	}
}

/* The home hero's placeholders -------------------------------------------------
 *
 * home.js paints these before its first request answers, for the same reason as
 * the grid above — but .pcard is a dark translucent card, so the bars are drawn
 * light instead of in --line, and the sweep is a pale highlight over them.
 */

.pcard.is-skeleton {
	cursor: default;
	pointer-events: none;
}

.pcard.is-skeleton .sk {
	background-color: rgba(255, 255, 255, .12);
	--sk-sweep: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%);
}

.sk-h1 { width: 68%; height: 13px; }
.sk-h2 { width: 42%; height: 10px; }
.sk-h3 { width: 56%; height: 10px; }


/* Articles imported from the live site ----------------------------------------
 *
 * A WXR import brings Word-pasted bodies: no ids on the <h2>s, so
 * artisty_article_toc() finds nothing, and an empty first grid column would
 * squeeze .prose into 160–200px. The template adds .no-toc in exactly that
 * case. The rule sits in a min-width query so the two mobile breakpoints in
 * style.css — which already collapse the grid — keep winning at small widths.
 *
 * Those bodies also carry images with no width attribute, which would
 * otherwise render at their full upload size and overflow the 680px column.
 */
.prose img {
	max-width: 100%;
	height: auto;
}

@media (min-width:1101px) {
	.article-grid.no-toc {
		/* Same 680px cap as the three-column grid, so the article and the CTA
		   card stay one gap apart instead of a track apart. */
		grid-template-columns: minmax(0, 680px) minmax(220px, 260px);
	}
}


/* Creatives panel screenshots -------------------------------------------------
 *
 * Each #creatives tab shows the product screen for its own feature, captured
 * from the app rather than rebuilt in markup. On desktop the screen sits in a
 * browser-window frame that runs off the panel's right edge: a dark chrome bar
 * with three dots, the panel's own radius on the left corners, and the shot
 * filling the frame's height instead of leaving a band of ink underneath it.
 *
 * Verification is the one tab that keeps its badge: the panel is there to say
 * "cleared", so the Artisty Verified banner sits above the assessment screen
 * instead of being left to the caption.
 */
.cp-shot {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--r-xl);
}

.badge-big + .cp-shot {
	margin-top: 18px;
}

@media (min-width:1101px) {
	/* Give the screen a little more of the panel than the text column. */
	#creatives .cpanel {
		grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	}

	/* The window runs to the panel's right edge — no padding on that side. */
	#creatives .cp-stage {
		width: calc(100% + clamp(18px, 3vw, 40px));
		margin-right: calc(-1 * clamp(18px, 3vw, 40px));
	}

	/*
	 * The screenshot is framed as a browser window: a dark, slightly
	 * translucent body with a chrome bar carrying three dots. Its left corners
	 * take the panel's own radius; the right corners are square and clipped by
	 * the panel's edge, so the window goes right off the side.
	 */
	.cp-stage {
		--cp-chrome: 34px;
		border-radius: var(--r-xl) 0 0 var(--r-xl);
		overflow: hidden;
		background: rgba(10, 10, 10, .55);
	}

	.cp-stage::before {
		content: "";
		position: absolute;
		inset: 0 0 auto;
		height: var(--cp-chrome);
		z-index: 3;
		background-color: rgba(0, 0, 0, .3);
		background-image:
			radial-gradient(circle at 18px 50%, rgba(255, 255, 255, .3) 4px, transparent 4.4px),
			radial-gradient(circle at 38px 50%, rgba(255, 255, 255, .2) 4px, transparent 4.4px),
			radial-gradient(circle at 58px 50%, rgba(255, 255, 255, .13) 4px, transparent 4.4px);
	}

	/*
	 * The text column is taller than a screenshot at the column's own width,
	 * so the stage used to reserve its height and leave a band of empty ink
	 * under the shot. The scene fills the stage below the chrome instead, and
	 * the shot takes the height that is left — cropping from the right or
	 * bottom when cover has to, with the top-left of the screen kept in frame.
	 */
	.cp-stage > .cp-scene.on {
		position: absolute;
		inset: var(--cp-chrome) 0 0 0;
		display: flex;
		flex-direction: column;
	}

	.cp-stage > .cp-scene.on > .cp-shot {
		flex: 1 1 auto;
		height: 0;
		min-height: 0;
		border-radius: 0;
		object-fit: cover;
		object-position: top left;
	}

	.cp-stage > .cp-scene.on > .badge-big {
		flex: none;
		margin: 16px 16px 0;
	}
}

/*
 * Below 1101px the panel is one column, so the stage has no spare height to
 * fill — it should simply be as tall as the shot. Drop the fixed 380–480px
 * floors that used to reserve empty space underneath it.
 */
@media (max-width:1100px) {
	.cp-stage {
		min-height: 0;
	}
}


/* Reel player ----------------------------------------------------------------
 *
 * Native video plays within the original card size. The toolbar overlays its
 * top edge; the browser's playback controls remain accessible at the bottom.
 */
#reelTrack {
	align-items: flex-start;
}

.reel-trigger {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.reel-trigger:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: -4px;
}

.reel .ph-note {
	display: block;
}

.reel.is-playing {
	transform: none;
}

.reel-player {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #0c0c10;
}

.reel-player[hidden],
.reel-trigger[hidden],
.reel-frame video[hidden],
.reel-error[hidden] {
	display: none;
}

.reel-frame,
.reel-frame video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
	object-fit: contain;
}

.reel-error {
	position: absolute;
	inset: 42px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 20px;
	text-align: center;
	font-size: 14px;
}

.reel-player-tools {
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-left: 14px;
	color: #fff;
	background: linear-gradient(rgba(0, 0, 0, .8), transparent);
}

.reel-player-tools a {
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.reel-stop {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.reel-stop:hover {
	background: rgba(255, 255, 255, .15);
}

.reel-stop:focus-visible {
	outline-offset: -4px;
}
body[data-event="seminar"] #event-seminar .hero {
  display: block;
  height: auto;
  min-height: 0;
  align-items: initial;
  padding: 90px 0 56px;
}

body[data-event="seminar"] #event-seminar .hero .wrap {
  position: relative;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  flex: initial;
  width: auto;
  min-height: 0;
}

@media (max-width: 1080px) {
  body[data-event="seminar"] #event-seminar .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}
