/* Values measured off Figma's `04. Nossa pesquisa` frame (node 638:2964),
 * the "Em andamento"/"Concluídas" bands. No card shell: each study is a
 * plain column, so the slide doesn't carry the shared `.move-card` class.
 */
:root {
	--move-study-bg: var(--move-color-surface-subtle, #f8fafd);
	--move-study-text: var(--move-color-text, #475c76);
	--move-study-text-muted: var(--move-color-text-muted, #627995);
	--move-study-title: var(--move-color-text-title, #061b33);
	--move-study-link: var(--move-color-focus, #315179);

	/* feedback/warning + feedback/success pairs, local here since neither
	   exists in tokens.css and this is the design's only use of a feedback
	   colour. Ongoing pair passes as-is (8.04:1). Completed pair's Figma
	   green (#429c5a, 3.13:1) fails AA at 12px — darkened to #2f7343
	   (5.25:1), the smallest change that clears it. */
	--move-study-status-ongoing-bg: #f2b566;
	--move-study-status-ongoing-text: #3f2200;
	--move-study-status-done-bg: #2f7343;
	--move-study-status-done-text: #e2fbe6;

	--move-study-tag-border: var(--move-color-placeholder-image, #c6d9f2);
	--move-study-tag-text: #1e3f68; /* text/label — no token; used only here and by the hero's own button pair */

	/* Figma-named scale (tokens.css). */
	--move-study-font-heading: var(--move-font-size-3xl, 2rem);        /* 32px */
	--move-study-font-status: var(--move-font-size-xs, 0.75rem);       /* 12px */
	--move-study-font-title: var(--move-font-size-xl, 1.5rem);         /* 24px */
	--move-study-font-description: var(--move-font-size-base, 1rem);   /* 16px */
	--move-study-font-tag: var(--move-font-size-xs, 0.75rem);          /* 12px */
	--move-study-font-external: var(--move-font-size-base, 1rem);      /* 16px */
}

.move-study-carousel {
	container-type: inline-size;
	container-name: move-study-carousel;
	width: 100%;
	background: var(--move-study-bg);
	color: var(--move-study-text);
	font-family: var(--move-font-base);
	font-size: 1rem;
	font-weight: 400;
	--move-strong-weight: var(--move-font-weight-bold, 700);
	/* Clears the sticky sub-nav bar on jump-to-anchor; main.js syncs the
	   custom property with the bar's measured height. */
	scroll-margin-top: var(--move-subnav-sticky-height, 2.5rem);
}
/* The design alternates the two bands so adjacent carousels read apart. */
.move-study-carousel--bg-white {
	background: var(--move-color-surface, #ffffff);
}

.move-study-carousel__container {
	max-width: var(--move-container-max, 1312px);
	margin-inline: auto;
	/* espacing/grid/vertical (80px): band padding for every listing section
	   on this page. */
	padding: 5rem var(--move-container-gutter, 2rem);
}

/* Subtitles/Subtitle-32-equivalent: 32px Regular, -0.64px (-0.02em) at 1.3. */
.move-study-carousel__heading {
	margin: 0 0 var(--move-space-lg, 3rem);
	font-size: var(--move-study-font-heading);
	font-weight: var(--move-font-weight-regular, 400);
	letter-spacing: var(--move-letter-spacing-tighter, -0.02em);
	line-height: var(--move-line-snug, 1.3);
	color: var(--move-study-title);
}

/* Control row: dots left, arrows right, below the track — not beside the
 * heading, where this block used to put the arrows.
 */
.move-study-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--move-space-sm, 1rem);
	margin-top: var(--move-space-32, 2rem);
}
.move-study-carousel__arrows {
	display: flex;
	gap: 1.1875rem; /* 19px, measured */
}
/* Box model/border/focus ring come from shared .move-carousel-arrow
   (tokens.css); this sets size/colour — 48px square, #c6d9f2 border, 12px
   radius, replacing the prototype's 28px disc. */
.move-study-carousel__arrow {
	--move-carousel-arrow-size: 3rem;
	--move-carousel-arrow-radius: var(--move-radius, 0.75rem);
	--move-carousel-arrow-border: var(--move-study-tag-border);
	color: var(--move-study-link);
}
.move-study-carousel__arrow svg {
	width: 1.5rem;
	height: 1.5rem;
}
.move-study-carousel__arrow:hover {
	border-color: var(--move-study-link);
}

/* Pagination sits at the left of the control row, so the shared class's own
   centring and top margin are cancelled here. Active bullet is a 24x8 accent
   pill; the rest are 8px accent-subtle dots. */
.move-study-carousel__pagination {
	margin-top: 0;
	width: auto;
	text-align: left;
}
.move-study-carousel__pagination .swiper-pagination-bullet {
	width: 0.5rem;
	height: 0.5rem;
	background: var(--move-color-accent-subtle, #a4c6ec);
	border-radius: 99px;
	opacity: 1;
	transition: width 0.2s ease;
}
.move-study-carousel__pagination .swiper-pagination-bullet-active {
	width: 1.5rem;
	background: var(--move-color-accent, #689fdf);
	opacity: 1;
}

/* Fallback for before Swiper initialises (or if it fails to load): `.swiper`
 * is `overflow: hidden`, so without this, slides after the first would be
 * clipped and unreachable. Stops applying once .swiper-initialized lands.
 */
.move-study-carousel__swiper:not(.swiper-initialized) {
	overflow-x: auto;
}
.move-study-carousel__swiper:not(.swiper-initialized) .move-study-card {
	min-width: min(100%, 22rem);
}

/* The card: no background/border/radius, a plain column on the band —
 * 16px stack for status/title/summary, 24px out to tags and external link.
 *
 * Compounded with `.swiper-slide` deliberately: Swiper's own stylesheet sets
 * `display: block` on that class at equal specificity and loads after this
 * one, so a single-class rule here would silently lose. Same trap as Team
 * Grid's mobile carousel vs. .move-card-grid.
 */
.swiper-slide.move-study-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--move-space-sm, 1rem);
	padding-bottom: var(--move-space-32, 2rem);
	/* Overrides Swiper's inline height so slides stretch to the tallest
	   in the row. */
	height: auto;
}

/* Square chip, not a pill — the design gives this one no radius, unlike the
   topic tags below it. */
.move-study-card__status {
	margin: 0;
	padding: var(--move-space-xs, 0.5rem);
	font-size: var(--move-study-font-status);
	font-weight: var(--move-font-weight-regular, 400);
	text-transform: uppercase;
	letter-spacing: var(--move-letter-spacing-loose, 0.05em);
	line-height: 1;
	background: var(--move-study-status-ongoing-bg);
	color: var(--move-study-status-ongoing-text);
}
.move-study-card--completed .move-study-card__status {
	background: var(--move-study-status-done-bg);
	color: var(--move-study-status-done-text);
}

/* The card's own gap is the group's 16px; the tags row and the external link
   sit 24px out from it, so they each add the 8px difference. */
.move-study-card__tags,
.move-study-card__external {
	margin-top: var(--move-space-xs, 0.5rem);
}

.move-study-card__title {
	margin: 0;
	font-size: var(--move-study-font-title);
	font-weight: var(--move-font-weight-regular, 400);
	/* -1.44px at 24px; neither named tracking token resolves to this. */
	letter-spacing: -0.06em;
	line-height: var(--move-line-snug, 1.3);
	color: var(--move-study-title);
}
.move-study-card__title a {
	color: inherit;
	text-decoration: none;
}
.move-study-card__title a:hover {
	text-decoration: underline;
}

.move-study-card__description {
	font-size: var(--move-study-font-description);
	font-weight: var(--move-font-weight-light, 300);
	line-height: var(--move-line-normal, 1.4);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	color: var(--move-study-text);
}
.move-study-card__description p:first-child {
	margin-top: 0;
}
.move-study-card__description p:last-child {
	margin-bottom: 0;
}

.move-study-carousel__empty {
	color: var(--move-study-text-muted);
}

/* Topic tags: outlined pills, unlike the square status chip above. */
.move-study-card__tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--move-space-xs, 0.5rem);
	margin: 0;
	padding: 0;
}
.move-study-card__tags li {
	border: var(--move-border-width, 1px) solid var(--move-study-tag-border);
	border-radius: 99px;
	padding: var(--move-space-xs, 0.5rem) var(--move-space-sm, 1rem);
	font-size: var(--move-study-font-tag);
	text-transform: uppercase;
	letter-spacing: var(--move-letter-spacing-loose, 0.05em);
	line-height: 1;
	color: var(--move-study-tag-text);
}

/* Shared TextLink component (656:298): 16px regular, 14px arrow, no
   underline in Default state — the rule draws as a separate zero-width bar. */
.move-study-card__external {
	display: inline-flex;
	align-items: center;
	gap: var(--move-space-xs, 0.5rem);
	min-height: var(--move-target-min, 24px);
	font-size: var(--move-study-font-external);
	font-weight: var(--move-font-weight-regular, 400);
	color: var(--move-study-link);
	text-decoration: none;
}
.move-study-card__external svg {
	width: 0.875rem;
	height: 0.875rem;
	flex: none;
}
.move-study-card__external:focus-visible,
.move-study-card__title a:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}

/* Slides-per-view is Swiper's job (main.js, breakpointsBase: 'container' so
   breakpoints read the carousel's own width, not the viewport). Its 768px
   threshold matches every @container rule here. */
