/**
 * MOVE Components — global styles.
 *
 * Everything here reaches every document the same way tokens.css does (see
 * Blocks_Loader::register_styles) — `move-block-tokens` depends on this
 * file's handle, and every component stylesheet already depends on
 * `move-block-tokens`, so nothing that lives here needs its own enqueue.
 *
 * Three kinds of rule belong in this file and nowhere else:
 *  - Utility classes with no component-specific value to express
 *    (`.move-sr-only`, `.move-balance`, `.move-hide-*`).
 *  - Document-level state no single block owns (`body`, the skip-link
 *    focus target, view transitions).
 *  - Components genuinely shared by more than one block/template, where a
 *    per-block copy would drift (the breadcrumb, the button shell, the
 *    carousel arrow/pagination, the Figma text-style layer).
 *
 * tokens.css holds only design tokens — colour, type scale, spacing, radii —
 * never a rule. A rule that reads a token belongs here, not there, even if
 * every value it uses is a `var()`.
 *
 * Handle: `move-block-global`.
 */

/* Screen-reader-only text. Consolidated from fourteen identical copies.
 * Plain specificity, not `:where()` — nothing should unhide this by
 * accident; a component that needs to reveal it overrides on its own class
 * alongside this one, which then wins on specificity. */
.move-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Balanced line breaks for headings and titles. Browsers cap it at a few
   lines, so it is safe on long strings, and degrades to normal wrapping
   where unsupported. Reserved for headings/titles, matching every existing
   use — not for body copy, which browsers balance far less predictably. */
.move-balance {
	text-wrap: balance;
}

/* Breadcrumb trail. Shared by the Page Header block and the Study single
   template (Markup::render_breadcrumb()) — both draw Figma's Breadcrumb
   component (node 661:11957), one implementation instead of two drifting
   copies. Spacing: band pads 24px block, row gaps 4px, each crumb pads 4px. */
.move-breadcrumb {
	background: var(--move-color-surface, #ffffff);
}
.move-breadcrumb-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--move-space-4, 0.25rem);
	margin: 0;
	max-width: var(--move-container-max, 1312px);
	margin-inline: auto;
	padding: var(--move-space-md, 1.5rem) var(--move-container-gutter, 2rem);
	/* Label/label-14: line-height 1 is load-bearing — at `normal` crumbs
	   render ~40% taller than the design draws them. */
	font-size: var(--move-font-size-sm, 0.875rem);
	font-weight: var(--move-font-weight-regular, 400);
	line-height: 1;
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	color: var(--move-color-text-muted, #5c738f);
}
.move-breadcrumb-list li {
	padding: var(--move-space-4, 0.25rem);
}
/* Separator is its own Figma style, not the crumb's: Tagline/tagline-12.
   Figma binds the separator's colour to the crumb it introduces, not a
   fixed tone: muted ahead of an ordinary link, accent ahead of the current
   crumb (measured on both the 2-crumb About instance and the 3-crumb Study
   instance — the middle "Pesquisa" separator is muted, only the last is
   accent). Default here covers every link-to-link separator; the rule below
   re-colours only the one immediately before the final, current crumb. */
.move-breadcrumb-list li:not(:last-child)::after {
	content: "/";
	margin-left: var(--move-space-xs, 0.5rem);
	font-size: var(--move-font-size-xs, 0.75rem);
	letter-spacing: var(--move-letter-spacing-loose, 0.05em);
	color: var(--move-color-text-muted, #5c738f);
}
.move-breadcrumb-list li:nth-last-child(2)::after {
	color: var(--move-color-accent, #689fdf);
}
.move-breadcrumb-list a {
	color: inherit;
	text-decoration: none;
	/* SC 2.5.8, belt-and-braces (trail arguably qualifies for the "inline"
	   exception already) — it's the only way back up the hierarchy, worth
	   making comfortably clickable regardless. */
	position: relative;
	transition: color var(--move-transition, 150ms ease);
}
.move-breadcrumb-list a::after {
	content: "";
	position: absolute;
	/* 14px crumb box; -5px top/bottom reaches 14+10=24px, the SC 2.5.8 minimum. */
	inset: -5px 0;
}
.move-breadcrumb-list a:hover,
.move-breadcrumb-list a:focus-visible {
	color: var(--move-color-accent, #689fdf);
}
/* Current crumb is plain text, not a link — Figma draws it in the accent
   colour itself (node 661:11957), not --move-color-accent-text. No bold, no
   underline. #689fdf is 2.76:1 on white, under AA for 14px text: adopted as
   drawn and catalogued for the designer (Asana 1218298975248337). */
.move-breadcrumb-list [aria-current="page"] {
	color: var(--move-color-accent, #689fdf);
	font-weight: var(--move-font-weight-regular, 400);
	text-decoration: none;
}

/* Title-band background graphic — Figma "Animação Hero". Shared by the Page
   Header block and the Study single template for the same reason the
   breadcrumb above is: the file draws one frame, byte-identical and
   identically placed on all six internal sections and on the study detail
   band, which measures the same 1440x147 (node ids in
   Markup::render_hero_graphic(), which emits the markup).

   Decorative only: the wrapper is aria-hidden and the SVG focusable="false",
   so none of it is in the accessibility tree or the tab order.

   No animation. Figma names the frame "Animação Hero" and its layers
   -base/-tracer, the same idiom as the animated "Scene 5 — Fluxo contínuo",
   but ships no timeline on it (get_motion_context returns nothing) and draws
   it static — confirmed in the file 2026-09-08. Do not "restore" a cycle here
   from the CTA banner's scene: that was inferred, and the file says no.

   Computed against the navy band both hosts paint (#0f2a4a), for the record
   rather than as a gate — Figma's palette is adopted as drawn: #A4C6EC
   8.18:1, #2C4F7D 1.74:1, and the accent line (#689fdf by default) 5.25:1. */
.move-hero-band {
	/* The graphic is absolutely positioned against this, and Figma's band is
	   `overflow-clip` (the art is drawn taller than the band and runs off all
	   four edges). On the Page Header the sticky sub-nav is a sibling of the
	   band, not a child, so clipping here cannot trap it. Each host still
	   raises its own content above the graphic (z-index on its inner rail) —
	   that is the host's box, not this one. */
	position: relative;
	overflow: hidden;
}
.move-hero-graphic {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}
.move-hero-graphic svg {
	display: block;
	width: 100%;
	height: 100%;
	color: var(--move-color-accent, #689fdf); /* the accent strokes' currentColor */
}

/* <main> is tabindex="-1" so the skip link can focus it; without this,
   Chrome/Safari ring the whole page after the jump. Real controls keep theirs. */
#move-main-content:focus {
	outline: none;
}

/* Base typography for anything no component owns — without it, stray text
   falls back to Times New Roman. Components set their own font in `rem` and
   override rather than inherit. */
body {
	font-family: var(--move-font-base);
	color: var(--move-color-text, #475c76);
}

/* Rosario's one job sitewide: emphasis spans inside otherwise-Work-Sans text
 * (see tokens.css). `Markup::kses_inline()` restricts every rich WYSIWYG
 * field to strong/b/em/i/a/br, so this one rule reaches every <em>/<i>.
 *
 * Family alone isn't enough — the design's emphasis is family + weight +
 * (usually) size, and swapping only the family left spans at the parent's
 * own weight/size, reading flat against Figma. Weight/size are therefore
 * per-component custom properties set on each block's own root class, never
 * on :root (same cascade trap as the shared classes below). Tracking is the
 * one constant, flat -1px, so it's the default here rather than a knob.
 */
em, i {
	font-family: var(--move-font-heading);
	font-weight: var(--move-em-weight, inherit);
	font-size: var(--move-em-size, inherit);
	letter-spacing: var(--move-em-tracking, -1px);
	/* Some emphasis runs are also a different colour (About's "Who we are").
	   `inherit` is a no-op until a component opts in. */
	color: var(--move-em-color, inherit);
}

/* Second emphasis level: some bands run three treatments in one sentence
 * (roman, roman, Rosario italic), and `<em>` only reaches the last one.
 * `<strong>` carries the middle — already in kses_inline()'s allowlist and
 * on both TinyMCE toolbars, so an editor authors it with plain bold; nested
 * inside `<em>` it composes for the quote's heaviest run.
 *
 * Every knob defaults to `inherit` (no-op elsewhere). Family is deliberately
 * not set: standalone `<strong>` keeps the band's body face, nested inside
 * `<em>` it inherits Rosario. Set these on the block's own root class, never
 * `:root`, same reason as the em/i rule above.
 */
strong, b {
	font-weight: var(--move-strong-weight, inherit);
	font-size: var(--move-strong-size, inherit);
	letter-spacing: var(--move-strong-tracking, inherit);
}

/**
 * The Figma text styles, complete (2026-09-01) — all 19 named styles,
 * transcribed 1:1 from the cached get_design_context dumps in
 * tmp/figma/design-context/.
 *
 * A Figma text style is family + size + weight + line-height + tracking
 * together, not just a size; the theme used to tokenise only the size scale
 * and leave the rest at browser defaults, which is what read as flat and
 * loose against the design (found on header/footer, then Page Header).
 *
 * Usage: put the class on the element, or where a component must keep its
 * own selector, copy the four declarations and reference the same tokens. A
 * component departing from a style should override just the one property so
 * the departure shows in the diff.
 *
 * Tracking is `em` throughout — Figma states these as percentages of font
 * size, and `em` is CSS's own percent-of-font-size unit.
 */

/* Headings — sans-serif (Work Sans Regular). The design's default heading
   voice: large and light, never bold. */
.move-type-h1 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-6xl, 4rem);       /* 64px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: var(--move-line-snug, 1.3);
	letter-spacing: var(--move-letter-spacing-tighter, -0.02em);
}
.move-type-h3 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-4xl, 2.5rem);     /* 40px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: var(--move-line-tight, 1.2);
	letter-spacing: var(--move-letter-spacing-tightest, -0.04em);
}
.move-type-h4 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-3xl, 2rem);       /* 32px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: var(--move-line-snug, 1.3);
	letter-spacing: var(--move-letter-spacing-tighter, -0.02em);
}
.move-type-h5 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-xl, 1.5rem);      /* 24px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: var(--move-line-snug, 1.3);
	letter-spacing: var(--move-letter-spacing-tighter, -0.02em);
}
.move-type-h6 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-md, 1.125rem);    /* 18px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: var(--move-line-relaxed, 1.5);
	letter-spacing: var(--move-letter-spacing-tighter, -0.02em);
}

/* Headings — serif (Rosario Medium). The emphasis voice. These are the whole
   heading in Figma only where a heading is set in Rosario outright; the far
   more common case is a Rosario run *inside* a sans-serif heading, which is
   the `em, i` device above, not these. */
.move-type-h3-serif {
	font-family: var(--move-font-heading);
	font-size: var(--move-font-size-4xl, 2.5rem);     /* 40px */
	font-weight: var(--move-font-weight-medium, 500);
	line-height: var(--move-line-snug, 1.3);
	letter-spacing: -1px; /* letter-spacing/tight is an absolute -1px here, not a percentage — the one place the file mixes conventions. */
}
.move-type-h4-serif {
	font-family: var(--move-font-heading);
	font-size: var(--move-font-size-3xl, 2rem);       /* 32px */
	font-weight: var(--move-font-weight-medium, 500);
	line-height: var(--move-line-snug, 1.3);
	letter-spacing: -1px; /* as above. */
}

/* Subtitles — the step between a heading and body copy. */
.move-type-subtitle-16 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-base, 1rem);      /* 16px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: var(--move-line-relaxed, 1.5);
	letter-spacing: var(--move-letter-spacing-wide, 0.01em);
}
.move-type-subtitle-20 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-lg, 1.25rem);     /* 20px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: var(--move-line-relaxed, 1.5);
	letter-spacing: var(--move-letter-spacing-tightest, -0.04em);
}
.move-type-subtitle-28 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-2xl, 1.75rem);    /* 28px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: var(--move-line-snug, 1.3);
	letter-spacing: var(--move-letter-spacing-crushed, -0.05em);
}

/* Labels — UI text that sits on a single line: nav links, tabs, buttons,
   breadcrumbs. Line-height 1 is deliberate and is what the build kept
   missing; at `normal` these run ~40% taller than the design draws them. */
.move-type-label-14 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-sm, 0.875rem);    /* 14px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: 1;
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
}
.move-type-label-16 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-base, 1rem);      /* 16px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: 1;
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
}

/* Taglines — the uppercase eyebrows. Positive tracking, and the only place
   the design goes above 400 in small text. */
.move-type-tagline-12 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-xs, 0.75rem);     /* 12px */
	font-weight: var(--move-font-weight-regular, 400);
	line-height: 1;
	letter-spacing: var(--move-letter-spacing-loose, 0.05em);
	text-transform: uppercase;
}
.move-type-tagline-14 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-sm, 0.875rem);    /* 14px */
	font-weight: var(--move-font-weight-semibold, 600);
	line-height: 1;
	letter-spacing: var(--move-letter-spacing-looser, 0.15em);
	text-transform: uppercase;
}

/* Body text — Work Sans Light throughout. The 12/14/16 steps sit at 1.4,
   the 18/20 steps at 1.5; that step change is the design's, not a rounding. */
.move-type-text-12 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-xs, 0.75rem);     /* 12px */
	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);
}
.move-type-text-14 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-sm, 0.875rem);    /* 14px */
	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);
}
.move-type-text-16 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-base, 1rem);      /* 16px */
	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);
}
.move-type-text-18 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-md, 1.125rem);    /* 18px */
	font-weight: var(--move-font-weight-light, 300);
	line-height: var(--move-line-relaxed, 1.5);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
}
.move-type-text-20 {
	font-family: var(--move-font-base);
	font-size: var(--move-font-size-lg, 1.25rem);     /* 20px */
	font-weight: var(--move-font-weight-light, 300);
	line-height: var(--move-line-relaxed, 1.5);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
}

/* B3 of the layout-handoff editor rules: core/columns is allowlisted
   (Blocks_Loader::allowed_block_types()) but has no `__container` of its own
   to carry the rail. No MOVE block nests one, so this is safe unscoped. */
.wp-block-columns {
	max-width: var(--move-container-max, 1200px);
	margin-inline: auto;
	padding-inline: var(--move-container-gutter, 2rem);
}
/* Study single's own prose column is already 65ch (study-single.css); a
   Columns block dropped in there needs to escape that width, not compound it. */
.move-study-single__content .wp-block-columns {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

/* Shared card shell — Team Grid, Events List, Publication Grid (cards mode)
   and the Study single template's related-publications list were
   re-declaring this and drifting apart on padding and borders, visibly
   misaligning the grids. Fellow Grid draws its own card independently, not
   on this shell. Blocks add their own `.move-<block>-card` alongside
   `.move-card` for anything genuinely specific, and set --move-card-grid-gap
   on their own root, never :root, to recolour/resize without leaking into
   every other grid sharing the class. */
.move-card {
	display: flex;
	flex-direction: column;
	background: var(--move-card-shell-bg, transparent);
	border: var(--move-border-width, 1px) solid var(--move-card-shell-border, var(--move-color-border, #e3e7ec));
	border-radius: var(--move-card-shell-radius, var(--move-radius, 0.75rem));
	padding: var(--move-card-shell-padding, 0.75rem);
	/* The grid stretches cards to equal height; this keeps their content
	   top-aligned rather than centred in the leftover space. */
	height: 100%;
}

.move-card-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--move-card-grid-gap, 1rem);
}
/* `:where()` keeps this at zero specificity so a block's own column-count
   rule always wins regardless of its own specificity or this file's load
   order relative to the block's. */
:where(.move-card-grid) {
	grid-template-columns: 1fr;
}

/* Shared button shell — every solid CTA button declared the same box model
   with only its colour pair different, same drift .move-card fixes. A
   component sets --move-button-bg / --move-button-text (rarely
   --move-button-font-size) on its own root to recolour. */
.move-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	/* Figma: gap/16 inline, gap/12 block, on every button in the design. */
	padding: var(--move-space-12, 0.75rem) var(--move-space-sm, 1rem);
	font-size: var(--move-button-font-size, var(--move-font-size-base, 1rem));
	/* min-height keeps the 2.5.8 target, so tightening the line-box changes
	   the hit area not at all. */
	line-height: 1;
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	/* Regular, not 600 — Figma's button labels are Work Sans Regular. */
	font-weight: var(--move-font-weight-regular, 400);
	text-decoration: none;
	border: var(--move-border-width, 1px) solid transparent;
	border-radius: var(--move-radius, 0.75rem);
	background: var(--move-button-bg, var(--move-color-accent, #689fdf));
	color: var(--move-button-text, var(--move-color-accent-contrast, #061b33));
}
.move-button:hover {
	filter: brightness(0.92);
}
.move-button:focus-visible {
	outline: 2px solid var(--move-button-focus-color, var(--move-color-focus, #315179));
	outline-offset: 2px;
}

/* Shared carousel arrow — the prev/next disc button, identical across every
   Swiper-driven block. Colour via currentColor; size overridable through
   --move-carousel-arrow-size. */
.move-carousel-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--move-carousel-arrow-size, 1.75rem);
	height: var(--move-carousel-arrow-size, 1.75rem);
	min-width: var(--move-target-min, 24px);
	min-height: var(--move-target-min, 24px);
	/* Overridable per component (Study Carousel is 48px rounded squares, the
	   rest are small discs). Set on the block's own arrow class, never on
	   :root — that would reach every block sharing this class. */
	border-radius: var(--move-carousel-arrow-radius, 50%);
	border: var(--move-border-width, 1px) solid var(--move-carousel-arrow-border, var(--move-color-border, #e3e7ec));
	background: #fff;
	cursor: pointer;
	color: inherit;
}
.move-carousel-arrow svg {
	width: 0.75rem;
	height: 0.75rem;
}
/* Swiper sets this when there is nowhere further to go. */
.move-carousel-arrow.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
}
.move-carousel-arrow:hover {
	border-color: currentColor;
}
.move-carousel-arrow:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}

/* Shared carousel pagination dots. Team Grid's mobile-only carousel and
   Study Carousel both use it; the latter overrides size/colour locally but
   inherits the hit-area below. */
.move-carousel-pagination {
	position: relative;
	margin-top: var(--move-space-sm, 1rem);
	text-align: center;
}
.move-carousel-pagination .swiper-pagination-bullet {
	background: currentColor;
	opacity: 0.4;
	/* SC 2.5.8: Swiper's bullet is 8x8px with no position of its own, so this
	   is needed before the ::after hit-area below has anything to anchor to. */
	position: relative;
}
/* Hit-area pseudo-element (same pattern as the footer email/breadcrumb
   links): padding would grow the visible dot. -8px reaches 24x24 from an
   8px dot; adjacent hit areas then overlap, which SC 2.5.8 permits. */
.move-carousel-pagination .swiper-pagination-bullet::after {
	content: "";
	position: absolute;
	inset: -8px;
}
.move-carousel-pagination .swiper-pagination-bullet-active {
	opacity: 1;
}

/* B5 of the layout-handoff editor rules: per-breakpoint block visibility.
 * Page layout, not a component concern — plain `@media`, not `@container`.
 * Three mutually exclusive bands matching every component's own thresholds.
 *
 * `!important`: a block's own root rule can set `display` to anything
 * (page-header sets `display: contents`, equal specificity, later in the
 * cascade) — this override must always win.
 *
 * `display: none` removes the block from the a11y tree too — the field
 * group's own instructions (acf-json/group_move_visibility.json) warn
 * editors a block hidden at one breakpoint must never be the only place
 * some information appears.
 */
@media (max-width: 767.98px) {
	.move-hide-mobile {
		display: none !important;
	}
}
@media (min-width: 768px) and (max-width: 1023.98px) {
	.move-hide-tablet {
		display: none !important;
	}
}
@media (min-width: 1024px) {
	.move-hide-desktop {
		display: none !important;
	}
}

/* Cross-document page transitions: same-origin nav animates instead of
   flashing white. No JS; unsupported browsers ignore the at-rule. Pairs
   with the speculation rules in Blocks_Loader::speculation_rules_config(). */
@view-transition {
	navigation: auto;
}

/* Old page leaves faster than the new one arrives, so incoming content never
   waits on an empty frame. The 8px rise moves only the snapshot, no CLS. */
@keyframes move-view-out {
	to {
		opacity: 0;
	}
}
@keyframes move-view-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

::view-transition-old(root) {
	animation: move-view-out 140ms ease both;
}
::view-transition-new(root) {
	animation: move-view-in 260ms cubic-bezier(0.2, 0, 0, 1) both;
}

/* SC 2.3.3. Opts out of the mechanism, not just the animation — `animation:
   none` alone still snapshots and holds first paint. The animation reset
   stays as a fallback for engines without nested `@view-transition`. */
@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}

	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
}
