/**
 * Study single template (single-move_study.php). Not a block, so no ACF
 * block carries a :root token block the usual way — this file opens with
 * one anyway so it stays self-contained if the shared tokens sheet fails.
 *
 * Values measured off Figma's `04.1 Nossa pesquisa | Interna` (node 698:1921).
 *
 * The top band repeats the Page Header block's treatment rather than reusing
 * its classes: that stylesheet enqueues from a page's stored block list, and
 * a CPT single has no block for that scan to find. The breadcrumb needs no
 * such workaround — it's global.css's shared `.move-breadcrumb*`.
 *
 * Handle: `move-block-study-single`.
 */
:root {
	--move-study-single-bg: var(--move-color-surface, #ffffff);
	--move-study-single-text: var(--move-color-text, #475c76);
	--move-study-single-title: var(--move-color-text-title, #061b33);
	--move-study-single-link: var(--move-color-focus, #315179);
	--move-study-single-border: var(--move-color-border-light, #eae9e6);
	--move-study-single-banner-bg: var(--move-color-dark, #0f2a4a);
	--move-study-single-row-alt: var(--move-color-surface-subtle, #f8fafd);

	/* Type — the Figma-named scale (tokens.css). Mirrors the Page Header
	   block's pair exactly. Both sit at 56px where Figma measures 64px — a
	   pre-existing gap in that block, left alone: closing it belongs to all
	   six pages at once, not to this one. */
	--move-study-single-font-eyebrow: var(--move-font-size-3xl, 2rem);      /* 32px */
	--move-study-single-font-eyebrow-lg: var(--move-font-size-5xl, 3.5rem); /* 56px */
	--move-study-single-font-title: var(--move-font-size-2xl, 1.75rem);     /* 28px */
	--move-study-single-font-title-lg: var(--move-font-size-4xl, 2.5rem);   /* 40px */
	--move-study-single-font-meta: var(--move-font-size-sm, 0.875rem);      /* 14px */
	--move-study-single-font-section: var(--move-font-size-lg, 1.25rem);    /* 20px */
	--move-study-single-font-body: var(--move-font-size-base, 1rem);        /* 16px */
	--move-study-single-font-cell: var(--move-font-size-base, 1rem);        /* 16px */
	--move-study-single-font-external: var(--move-font-size-base, 1rem);    /* 16px */
	--move-study-single-font-updated: 0.8125rem;                            /* 13px, measured */
}

.move-study-single {
	container-type: inline-size;
	container-name: move-study-single;
	width: 100%;
	background: var(--move-study-single-bg);
	color: var(--move-study-single-text);
	font-family: var(--move-font-base);
	font-size: 1rem;
	font-weight: 400;
	--move-strong-weight: var(--move-font-weight-bold, 700);
}

/* Navy band, matches the Page Header block: 80px/32px padding on the shared
   rail, 64px Light title. Label is a generic "Study", not the study's own
   name — so it's a <p>, not a heading; the article's <h1> below is the
   page's only one. Figma draws the same "Animação Hero" graphic on this band
   (698:2538) as on the block's: it is emitted by Markup::render_hero_graphic()
   and the containing block and clip it needs come from `move-hero-band` in
   global.css, which this element also carries. */
.move-study-single__banner {
	background: var(--move-study-single-banner-bg);
	color: var(--move-color-text-inverse, #e3e7ec);
}
.move-study-single__banner-inner {
	max-width: var(--move-container-max, 1312px);
	margin-inline: auto;
	/* Without this the band's stacking context paints the graphic over the label. */
	position: relative;
	z-index: 1;
	padding: var(--move-space-32, 2rem) var(--move-container-gutter, 2rem);
}
.move-study-single__eyebrow {
	margin: 0;
	font-size: var(--move-study-single-font-eyebrow);
	font-weight: var(--move-font-weight-light, 300);
	line-height: var(--move-line-snug, 1.3);
	/* Absolute -1px, as the Page Header title uses — same two-size lockup. */
	letter-spacing: var(--move-letter-spacing-tighter, -0.02em);
	/* 56px Light roman stepping to 64px Medium Rosario, as Page Header does. */
	--move-em-weight: var(--move-font-weight-medium, 500);
	color: #ffffff;
}

/* One column on the shared rail, not the 65ch prose column this used to use:
   the design runs body, table and publication list to the same edge, and
   65ch would leave the table/footer narrower than the title above them. */
.move-study-single__container {
	max-width: var(--move-container-max, 1312px);
	margin-inline: auto;
	/* espacing/grid/vertical, the band padding every listing section uses. */
	padding: 5rem var(--move-container-gutter, 2rem);
	display: flex;
	flex-direction: column;
	gap: var(--move-space-lg, 3rem);
}

.move-study-single__header {
	display: flex;
	flex-direction: column;
	gap: var(--move-space-lg, 3rem);
}

/* Headings/H3 sans serif: 40px Regular, -1.6px (-0.04em) at 1.2. */
.move-study-single__title {
	margin: 0;
	font-size: var(--move-study-single-font-title);
	font-weight: var(--move-font-weight-regular, 400);
	letter-spacing: var(--move-letter-spacing-tightest, -0.04em);
	line-height: var(--move-line-tight, 1.2);
	color: var(--move-study-single-title);
}

/* Authors · date · reading time, over a hairline. The separators are drawn
   rather than typed so they never reach a screen reader as punctuation. */
.move-study-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--move-space-sm, 1rem);
	margin: 0;
	padding-bottom: var(--move-space-sm, 1rem);
	border-bottom: var(--move-border-width, 1px) solid var(--move-study-single-border);
	font-size: var(--move-study-single-font-meta);
	font-weight: var(--move-font-weight-light, 300);
	line-height: var(--move-line-normal, 1.4);
}
.move-study-single__meta-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
	flex: none;
}

.move-study-single__summary,
.move-study-single__content {
	font-size: var(--move-study-single-font-body);
	font-weight: var(--move-font-weight-light, 300);
	line-height: var(--move-line-normal, 1.4);
}
.move-study-single__summary :where(p) {
	margin: 0 0 1em;
}
.move-study-single__summary :where(p:last-child) {
	margin-bottom: 0;
}
.move-study-single__content :where(p, ul, ol) {
	margin: 0 0 1em;
}
.move-study-single__content :where(p:last-child, ul:last-child, ol:last-child) {
	margin-bottom: 0;
}
.move-study-single__content img {
	max-width: 100%;
	height: auto;
}

/* Body headings come from the editor (the_content()), styled here rather
   than by a block. Subtitle-20: 20px Regular in text/title. */
.move-study-single__content :where(h2, h3, h4) {
	margin: 2rem 0 var(--move-space-sm, 1rem);
	font-size: var(--move-study-single-font-section);
	font-weight: var(--move-font-weight-regular, 400);
	letter-spacing: var(--move-letter-spacing-tightest, -0.04em); /* -0.8px at 20px */
	line-height: var(--move-line-relaxed, 1.5);
	color: var(--move-study-single-title);
}
.move-study-single__content :where(h2:first-child, h3:first-child, h4:first-child) {
	margin-top: 0;
}

/* Accent 6px dots at a 18px indent, replacing the browser's own markers. */
.move-study-single__content ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--move-space-12, 0.75rem);
}
.move-study-single__content ul > li {
	position: relative;
	padding-inline-start: 18px;
}
.move-study-single__content ul > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.5em;
	width: 6px;
	height: 6px;
	border-radius: 100px;
	background: var(--move-color-accent, #689fdf);
}

/* A labelled block — the table, and the related-publications list. */
.move-study-single__section {
	display: flex;
	flex-direction: column;
	gap: var(--move-space-sm, 1rem);
}
.move-study-single__section-heading {
	margin: 0;
	font-size: var(--move-study-single-font-section);
	font-weight: var(--move-font-weight-regular, 400);
	letter-spacing: -0.04em;
	line-height: var(--move-line-relaxed, 1.5);
	color: var(--move-study-single-title);
}

/* Wrap carries the 8px-rounded outline and scrolls rather than the table
   shrinking — columns don't reflow, so width has to go somewhere narrow. */
.move-study-single__table-wrap {
	overflow-x: auto;
	border: var(--move-border-width, 1px) solid var(--move-study-single-border);
	border-radius: 0.5rem;
}
.move-study-single__table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--move-study-single-font-cell);
	letter-spacing: var(--move-letter-spacing-wide, 0.01em);
}
.move-study-single__table :where(th, td) {
	padding: var(--move-space-sm, 1rem);
	text-align: left;
	border-bottom: var(--move-border-width, 1px) solid var(--move-study-single-border);
	font-weight: var(--move-font-weight-regular, 400);
}
/* First cell in brand-high-emphasis, the rest in body colour — the design's two-tone row. */
.move-study-single__table :where(th, td):first-child {
	color: var(--move-color-dark, #0f2a4a);
}
.move-study-single__table td:not(:first-child) {
	color: var(--move-study-single-text);
}
/* Right-aligns the trailing cell, reading as alignment only in the design's
   two-column "centre / location" shape — `:nth-child(2):last-child` scopes
   to exactly that, so a third column doesn't strand one against the edge. */
.move-study-single__table tr > :nth-child(2):last-child {
	text-align: right;
}
.move-study-single__table thead th {
	background: var(--move-study-single-row-alt);
}
/* Striped from the first body row, whether or not a header row is on. */
.move-study-single__table tbody tr:nth-child(odd) :where(th, td) {
	background: var(--move-study-single-row-alt);
}
.move-study-single__table tbody tr:last-child :where(th, td) {
	border-bottom: none;
}

/* One hairline-separated row per publication, file icon beside the design's
   shared TextLink — not the card grid this page used to render. */
.move-study-single__pubs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--move-space-xs, 0.5rem);
}
.move-study-single__pub {
	padding: var(--move-space-12, 0.75rem);
	border-bottom: var(--move-border-width, 1px) solid var(--move-study-single-border);
}
.move-study-single__pub:last-child {
	border-bottom: none;
}
.move-study-single__pub a,
.move-study-single__pub-static {
	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-single-font-body);
	font-weight: var(--move-font-weight-regular, 400);
	color: var(--move-study-single-link);
}
/* The design's shared TextLink component (656:298): no underline in its
   Default state — the rule below the label is a separate zero-width bar
   there, not an underline on the text itself. */
.move-study-single__pub a {
	text-decoration: none;
}
.move-study-single__pub-static {
	color: var(--move-study-single-text);
}
.move-study-single__pub svg {
	width: 0.875rem;
	height: 0.875rem;
	flex: none;
}
.move-study-single__pub a:focus-visible {
	outline: 2px solid var(--move-study-single-link);
	outline-offset: 2px;
}

/* Closing row: external record as an outlined button left, modified date
   right, over a top hairline. */
.move-study-single__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--move-space-sm, 1rem);
	padding-top: var(--move-space-md, 1.5rem);
	border-top: var(--move-border-width, 1px) solid var(--move-study-single-border);
}
.move-study-single__external {
	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: var(--move-border-width, 1px) solid var(--move-study-single-border);
	border-radius: var(--move-radius, 0.75rem);
	background: var(--move-color-surface, #ffffff);
	color: var(--move-study-single-link);
	font-size: var(--move-study-single-font-external);
	font-weight: var(--move-font-weight-regular, 400);
	text-decoration: none;
}
.move-study-single__external:hover {
	border-color: var(--move-study-single-link);
}
.move-study-single__external svg {
	width: 0.875rem;
	height: 0.875rem;
	flex: none;
}
.move-study-single__external:focus-visible {
	outline: 2px solid var(--move-study-single-link);
	outline-offset: 2px;
}
/* Pushed to the right edge alone when there's no button beside it. Design's
   text/body at opacity 0.8 blends to 4.22:1, under AA at 13px — opacity
   dropped instead of colour changed, since full-strength text/body (6.86:1)
   is the smallest departure that clears AA. */
.move-study-single__updated {
	margin: 0 0 0 auto;
	font-size: var(--move-study-single-font-updated);
	color: var(--move-study-single-text);
}

/* @container, not @media: title and band label are descendants of the named
   container, and an element is never its own container. Same 768px
   threshold every other component uses. */
@container move-study-single (min-width: 768px) {
	.move-study-single__eyebrow {
		font-size: var(--move-study-single-font-eyebrow-lg);
		--move-em-size: var(--move-font-size-6xl, 4rem);
	}
	.move-study-single__title {
		font-size: var(--move-study-single-font-title-lg);
	}
}
