:root {
	--move-pub-text: var(--move-color-text, #2b2a28);
	--move-pub-text-muted: var(--move-color-text-muted, #5c5c57);

	/* Type — the Figma-named scale (tokens.css), not the retired prototype scale. */
	--move-pub-font-source: var(--move-font-size-xs, 0.75rem);     /* 12px */
	--move-pub-font-title: var(--move-font-size-sm, 0.875rem);     /* 14px */
	--move-pub-font-authors: var(--move-font-size-xs, 0.75rem);    /* 12px */
	--move-pub-font-linked: var(--move-font-size-xs, 0.75rem);     /* 12px */
}

.move-publication-grid {
	container-type: inline-size;
	container-name: move-publication-grid;
	width: 100%;
	/* Band is plain page surface; in card mode the beige is a rounded panel
	   inside it, not the band (see --cards rules below). */
	background: var(--move-color-surface, #ffffff);
	color: var(--move-pub-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);
}

.move-publication-grid__container {
	max-width: var(--move-container-max, 1200px);
	margin-inline: auto;
	padding: var(--move-space-lg, 2.5rem) var(--move-container-gutter, 2rem);
}

/* 32px Regular in brand-high-emphasis at -0.02em, measured. Was 18px/600. */
.move-publication-grid__heading {
	margin: 0 0 var(--move-space-32, 2rem);
	font-size: var(--move-font-size-3xl, 2rem);
	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-color-dark, #0f2a4a);
}

/* Box, border and grid gap come from the shared .move-card /
   .move-card-grid in global.css. */
.move-publication-card__source {
	font-size: var(--move-pub-font-source);
	color: var(--move-pub-text-muted);
	margin: 0 0 0.5rem;
}
.move-publication-card__title {
	font-size: var(--move-pub-font-title);
	font-weight: 600;
	line-height: var(--move-line-snug, 1.4);
	margin: 0 0 0.5rem;
}
.move-publication-card__title a {
	text-decoration: underline;
	/* SC 2.5.8: standalone block title, not inline text, so the "inline"
	   exception doesn't apply (see move-footer.css). */
	position: relative;
}
.move-publication-card__title a::after {
	content: "";
	position: absolute;
	/* -2px top/bottom: 20 + 4 = 24px exactly, kept tight against the 0.5rem
	   title margin above the authors line. */
	inset: -2px 0;
}
.move-publication-card__title a:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}
.move-publication-card__authors {
	font-size: var(--move-pub-font-authors);
	margin: 0 0 0.4rem;
}
.move-publication-card__linked {
	font-size: var(--move-pub-font-linked);
	color: var(--move-pub-text-muted);
	margin: 0;
}

/* Real button, not a text link. brand-mid-emphasis on white — 8.13:1. */
.move-publication-grid__see-more {
	margin: var(--move-space-lg, 3rem) 0 0;
	text-align: center;
}
.move-publication-grid__see-more a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--move-space-xs, 0.5rem);
	min-height: var(--move-target-min, 24px);
	padding: var(--move-space-12, 0.75rem) var(--move-space-sm, 1rem);
	border-radius: var(--move-radius, 0.75rem);
	background: var(--move-color-focus, #315179);
	color: #ffffff;
	font-size: var(--move-font-size-base, 1rem);
	font-weight: var(--move-font-weight-regular, 400);
	text-decoration: none;
}
.move-publication-grid__see-more a:hover {
	filter: brightness(0.92);
}
.move-publication-grid__see-more a:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}
.move-publication-grid__see-more svg {
	width: 0.875rem;
	height: 0.875rem;
	flex: none;
}

/* Card mode: contents sit inside a beige, 12px-rounded panel padded 48px;
 * band behind stays white. Panel is the container, so the rail's gutter
 * becomes the gap to the viewport and 48px is the panel's own padding.
 */
.move-publication-grid--cards .move-publication-grid__container {
	padding-block: 5rem;
}
.move-publication-grid--cards .move-publication-grid__panel {
	background: var(--move-color-bg, #faf7f0);
	border-radius: var(--move-radius, 0.75rem);
	/* Mobile-first: 48px panel padding leaves under 300px of content at
	   390px wide, so the step-up waits for the container. */
	padding: var(--move-space-md, 1.5rem);
}

/* Card treatment inside the panel: white, 12px radius, 24px/48px padding,
   tall enough that a short card matches a long one. */
/* 32px between cards, not the shared grid's 16px (prototype value) — scoped
   to this block's list so no other card grid moves. */
.move-publication-grid--cards .move-publication-grid__list {
	--move-card-grid-gap: var(--move-space-32, 2rem);
}
.move-publication-grid--cards .move-publication-card {
	background: var(--move-color-surface, #ffffff);
	border: 0;
	border-radius: var(--move-radius, 0.75rem);
	padding: var(--move-space-md, 1.5rem);
	min-height: 21.5rem; /* 344px, measured */
	display: flex;
	flex-direction: column;
	gap: var(--move-space-md, 1.5rem);
}
.move-publication-grid--cards .move-publication-card__source {
	margin: 0;
	font-size: var(--move-font-size-xs, 0.75rem);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: var(--move-letter-spacing-loose, 0.05em);
	color: var(--move-color-text-muted, #627995);
}
.move-publication-grid--cards .move-publication-card__title {
	margin: 0;
	font-size: var(--move-font-size-xl, 1.5rem);
	font-weight: var(--move-font-weight-regular, 400);
	letter-spacing: -0.06em; /* -1.44px at 24px */
	line-height: var(--move-line-snug, 1.3);
	color: var(--move-color-text-title, #061b33);
}
.move-publication-grid--cards .move-publication-card__title a {
	color: inherit;
	text-decoration: none;
}
.move-publication-grid--cards .move-publication-card__title a:hover {
	text-decoration: underline;
}
.move-publication-grid--cards .move-publication-card__authors {
	margin: 0;
	font-size: var(--move-font-size-base, 1rem);
	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: #1e3f68; /* text/label — see the same literal in study-carousel */
}
/* Pushed to the bottom of the card; right-aligned only once the card is wide
   enough for that to read as alignment, not a stray wrap (see below). */
.move-publication-grid--cards .move-publication-card__linked {
	margin: auto 0 0;
	font-size: var(--move-font-size-base, 1rem);
	color: var(--move-color-focus, #315179);
}
.move-publication-grid--cards .move-publication-card__linked a {
	display: inline-flex;
	align-items: center;
	gap: var(--move-space-xs, 0.5rem);
	color: inherit;
	/* TextLink component (656:298) draws no underline in Default state — the
	   rule below the label is a separate zero-width bar, not text underline. */
	text-decoration: none;
}
.move-publication-grid--cards .move-publication-card__linked svg {
	width: 0.875rem;
	height: 0.875rem;
}

@container move-publication-grid (min-width: 768px) {
	.move-publication-grid__list {
		grid-template-columns: repeat(3, 1fr);
	}
	.move-publication-grid--cards .move-publication-grid__panel {
		padding: var(--move-space-lg, 3rem);
	}
	.move-publication-grid--cards .move-publication-card {
		padding: var(--move-space-lg, 3rem) var(--move-space-md, 1.5rem);
	}
	.move-publication-grid--cards .move-publication-card__linked {
		margin-left: auto;
	}
}

.move-publication-grid__empty {
	color: var(--move-pub-text-muted, inherit);
}

/* Year-list layout: the Publications page treatment (`04.2 Nossa pesquisa |
 * Listagem`), vs. the card grid Research's "featured publications" keeps.
 * Selected per instance by the `layout` field. Values measured off 921:17701.
 */
.move-publication-grid--year-list {
	background: var(--move-color-surface-subtle, #f8fafd);
}
.move-publication-grid--year-list .move-publication-grid__container {
	/* espacing/grid/vertical (80px), not the 96px --move-section-padding the
	   narrative bands use. */
	padding-block: 5rem;
}

.move-publication-grid__rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--move-space-sm, 1rem);
}

.move-publication-row {
	display: flex;
	flex-direction: column;
	gap: var(--move-space-12, 0.75rem);
	padding: var(--move-space-20, 1.25rem);
	border-bottom: var(--move-border-width, 1px) solid var(--move-color-border-light, #eae9e6);
}

/* Tagline/tagline-16: Work Sans SemiBold, uppercase, one of the few places
   600 is still correct. Colour is --move-color-accent-text (7.89:1), not
   Figma's --move-color-accent (2.11:1, fails AA) — the theme's standing
   accent-as-small-text substitution, also used by the breadcrumb and
   language switcher. */
.move-publication-row__year {
	margin: 0;
	font-size: var(--move-font-size-base, 1rem);
	font-weight: var(--move-font-weight-semibold, 600);
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--move-color-accent-text, #315179);
}

.move-publication-row__body {
	display: flex;
	flex-direction: column;
	gap: var(--move-space-12, 0.75rem);
	min-width: 0;
}

/* Subtitles/Subtitle-20: 20px Regular, line-height 1.5. */
.move-publication-row__title {
	margin: 0;
	font-size: var(--move-font-size-lg, 1.25rem);
	font-weight: var(--move-font-weight-regular, 400);
	line-height: var(--move-line-relaxed, 1.5);
	/* -0.8px at 20px = -0.04em; a literal, since neither tracking token
	   resolves to this value at this size. */
	letter-spacing: -0.04em;
	color: var(--move-color-text-title, #061b33);
}
.move-publication-row__title a {
	color: inherit;
	text-decoration: none;
}
.move-publication-row__title a:hover {
	text-decoration: underline;
}
.move-publication-row__title a:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}

/* Text/Text-16: 16px Light. */
.move-publication-row__meta {
	margin: 0;
	font-size: var(--move-font-size-base, 1rem);
	font-weight: var(--move-font-weight-light, 300);
	line-height: var(--move-line-normal, 1.4);
	color: var(--move-color-text, #475c76);
}

/* TextLink component (656:298): 16px Regular in brand-mid-emphasis, 14px
   arrow, 8.13:1 on the #f8fafd band. No underline in Default state — the
   rule below the label is a separate zero-width bar. */
.move-publication-row__study {
	/* Row body carries the 12px title-meta gap; this adds the remaining 12px
	   to reach Figma's 24px link offset. */
	margin: var(--move-space-12, 0.75rem) 0 0;
}
.move-publication-row__study a {
	display: inline-flex;
	align-items: center;
	gap: var(--move-space-xs, 0.5rem);
	min-height: var(--move-target-min, 24px);
	font-size: var(--move-font-size-base, 1rem);
	font-weight: var(--move-font-weight-regular, 400);
	color: var(--move-color-focus, #315179);
	text-decoration: none;
}
.move-publication-row__study a:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}
.move-publication-row__study svg {
	width: 0.875rem;
	height: 0.875rem;
	flex: none;
}

/* Year filter. Not in Figma (Asana 1218754984972170, built without a design
 * on the client's go-ahead), so it borrows the listing's own values. The
 * border is text/muted, not a border token: a control's edge needs 3:1 (SC 1.4.11)
 * and neither border token reaches it on this band.
 */
.move-publication-grid__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--move-space-sm, 1rem);
	margin: 0 0 var(--move-space-32, 2rem);
}
/* No-JS submits and page links land on these fragments; clear the sticky header. */
.move-publication-grid__filter,
.move-publication-grid__results {
	scroll-margin-top: calc(var(--move-header-sticky-height, 0px) + var(--move-space-sm, 1rem));
}
.move-publication-grid__select {
	position: relative;
	display: block;
	width: 100%;
}
.move-publication-grid__select select {
	appearance: none;
	width: 100%;
	min-height: 3rem;
	margin: 0;
	padding: var(--move-space-12, 0.75rem) 3rem var(--move-space-12, 0.75rem) var(--move-space-sm, 1rem);
	border: var(--move-border-width, 1px) solid var(--move-color-text-muted, #5c738f);
	border-radius: var(--move-radius, 0.75rem);
	background: var(--move-color-surface, #ffffff);
	color: var(--move-color-text-title, #061b33);
	font: inherit;
	font-size: var(--move-font-size-base, 1rem);
	line-height: var(--move-line-normal, 1.4);
	cursor: pointer;
}
.move-publication-grid__select select:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}
.move-publication-grid__select > span {
	position: absolute;
	top: 50%;
	right: var(--move-space-sm, 1rem);
	display: flex;
	transform: translateY(-50%);
	color: var(--move-color-focus, #315179);
	pointer-events: none;
}
.move-publication-grid__select svg {
	width: 0.75rem;
	height: 0.75rem;
}
/* The shared .move-button in the "See more" colours — brand-mid-emphasis,
   8.13:1. Only visible with JS off: main.js applies the choice on change. */
.move-publication-grid__filter {
	--move-button-bg: var(--move-color-focus, #315179);
	--move-button-text: #ffffff;
}
.move-publication-grid__filter-submit {
	font-family: inherit;
	cursor: pointer;
}
.move-publication-grid__filter.is-enhanced .move-publication-grid__filter-submit {
	display: none;
}
.move-publication-grid__results[aria-busy="true"] {
	opacity: 0.6;
}

/* Pagination. Not in Figma (Asana 1218754984972170): the filter's own control
 * values; the current page in the "See more" colours, 8.13:1.
 */
/* Focused by main.js after a page change, only to move the reading position. */
.move-publication-grid__results:focus {
	outline: none;
}
.move-publication-grid__pagination {
	margin: var(--move-space-32, 2rem) 0 0;
}
.move-publication-grid__pages {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--move-space-4, 0.25rem);
}
.move-publication-grid__pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 var(--move-space-xs, 0.5rem);
	border: var(--move-border-width, 1px) solid var(--move-color-text-muted, #5c738f);
	border-radius: var(--move-radius, 0.75rem);
	background: var(--move-color-surface, #ffffff);
	color: var(--move-color-text-title, #061b33);
	font-size: var(--move-font-size-base, 1rem);
	line-height: 1;
	text-decoration: none;
}
.move-publication-grid__pages a.page-numbers:hover {
	border-color: var(--move-color-focus, #315179);
	color: var(--move-color-focus, #315179);
}
.move-publication-grid__pages a.page-numbers:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}
.move-publication-grid__pages .page-numbers.current {
	border-color: var(--move-color-focus, #315179);
	background: var(--move-color-focus, #315179);
	color: #ffffff;
}
.move-publication-grid__pages .page-numbers.dots {
	min-width: auto;
	padding-inline: var(--move-space-4, 0.25rem);
	border-color: transparent;
	background: none;
}
.move-publication-grid__pages svg {
	width: 0.75rem;
	height: 0.75rem;
	flex: none;
}

/* Two-column row (year beside body) is Figma's desktop arrangement; mobile
   stacking is the base rule's default. 30px column gap. */
@container move-publication-grid (min-width: 768px) {
	.move-publication-row {
		flex-direction: row;
		align-items: flex-start;
		gap: 1.875rem;
	}
	.move-publication-row__year {
		/* Fixed column so every title starts on the same line, year or not. */
		flex: none;
		width: 3rem;
		padding-block: 0.375rem;
	}
	.move-publication-grid__select {
		width: 20rem;
	}
	.move-publication-grid__pages {
		gap: var(--move-space-xs, 0.5rem);
	}
	.move-publication-grid__pages .page-numbers {
		min-width: 2.5rem;
		height: 2.5rem;
	}
}
