/*
 * base.css — always-on: reset + brand tokens + shared header/footer.
 * Kept small (loads on every page). Per-template/component CSS is enqueued
 * conditionally elsewhere. Tokens prefer theme.json presets and fall back to the
 * literal brand value so this file renders correctly even without global styles.
 *
 * NOTE: intentionally NOT wrapped in @layer — WordPress emits its theme.json
 * global link/element styles unlayered, and unlayered rules always beat layered
 * ones. Keeping this unlayered lets the header/footer chrome win on specificity.
 */

/* ------------------------------------------------------------------ tokens */
:root {
	--xc-navy:        var(--wp--preset--color--navy, #273045);
	--xc-rich-black:  var(--wp--preset--color--rich-black, #111620);
	--xc-dark-grey:   var(--wp--preset--color--dark-grey, #1F242D);
	--xc-true-blue:   var(--wp--preset--color--true-blue, #015ADF);
	--xc-bright-blue: var(--wp--preset--color--bright-blue, #1A9CFC);
	--xc-slate:       var(--wp--preset--color--slate, #788196);
	--xc-soft-white:  var(--wp--preset--color--soft-white, #EEEFF2);
	--xc-off-white:   var(--wp--preset--color--off-white, #F9FDFF);
	--xc-white:       var(--wp--preset--color--white, #FFFFFF);

	/* Footer surface — a near-black slightly darker than rich-black. Not yet a
	   theme.json token; consider adding it. */
	--xc-footer-bg:   #0C111B;
	--xc-nav-ink:     #CFD6E2;   /* header nav resting color */
	--xc-footer-link: #C6CCD8;

	/* Unprefixed aliases.
	 *
	 * The homepage's section CSS was written against these short names while it
	 * lived inline in front-page.php, which defined them in its own :root. Now that
	 * those rules are shared (sections-shared.css) and other templates use the same
	 * vocabulary, the definitions have to be here — on the one stylesheet every page
	 * loads. Without this, `color: var(--off-white)` silently resolves to nothing
	 * outside the homepage and headings inherit a dark color on a dark background.
	 *
	 * Values come from the --xc-* aliases above, so theme.json stays the source of
	 * truth and there is only one place to change a brand color. */
	--navy:        var(--xc-navy);
	--rich-black:  var(--xc-rich-black);
	--dark-grey:   var(--xc-dark-grey);
	--true-blue:   var(--xc-true-blue);
	--bright-blue: var(--xc-bright-blue);
	--slate:       var(--xc-slate);
	--soft-white:  var(--xc-soft-white);
	--off-white:   var(--xc-off-white);

	--display: 'Saira', system-ui, sans-serif;
	--body:    'Inter', system-ui, sans-serif;

	--maxw: 1240px;

	--xc-line:  rgba(255, 255, 255, .10);
	--xc-line2: rgba(255, 255, 255, .06);

	--xc-display: var(--wp--preset--font-family--display, "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--xc-body:    var(--wp--preset--font-family--body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);

	--xc-pill: 999px;
	--xc-radius-sm: 8px;

	/*
	 * Stat-tile wash — the navy-to-blue gradient behind a big number.
	 *
	 * Defined here because TWO sections use it and they must not drift: the
	 * homepage's reviews.io tiles (.stat in sections-shared.css) and the About
	 * page's stat band (.abt-stat). Figma draws it as a wide soft ellipse clipped
	 * by each card (1092:10728); a vertical gradient is the same read at a
	 * fraction of the cost, and it is what the homepage already ships.
	 */
	--xc-stat-wash: linear-gradient(
		180deg,
		rgba(17, 22, 32, .92) 0%,
		rgba(17, 22, 32, .65) 15%,
		rgba(1, 90, 177, .18) 45%,
		rgba(1, 90, 177, .45) 72%,
		rgba(1, 90, 177, .6) 100%
	);

	/* Figma TOP NAV 864:6212 — 1240×78, py 18 + 42px CTAs */
	--xc-header-h: 78px;
	--xc-primary-hover: #0146b0;
}

/* ------------------------------------------------------------------- reset */
.xc-header *, .xc-footer * { margin: 0; }
.xc-header img, .xc-footer img,
.xc-header svg, .xc-footer svg { display: block; max-width: 100%; }
.xc-header ul, .xc-footer ul { list-style: none; padding: 0; }
.xc-header a, .xc-footer a { text-decoration: none; }
/* Logo always reads on the dark chrome — beat the theme.json global `a` color
   and any inherited body text color. */
.xc-header .xc-logo, .xc-footer .xc-logo { color: var(--xc-white); }
.xc-header button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/*
 * The clear (x) button every search field grows once you type in it.
 *
 * ONE RULE FOR THE WHOLE SITE, because there are eight search inputs (buy hub,
 * countries hub, glossary hub, blog hub + archives, help, site search, 404/500)
 * and they disagreed: help.css hid it, search.css faked the colour with
 * `filter: invert(1) opacity(.5)`, and the other six left Chrome's own dark-grey
 * glyph on a dark field, where it is all but invisible.
 *
 * The native glyph cannot be recoloured -- it is a UA-drawn image -- so it is
 * switched off and our own cross is drawn in its place, MASKED so the colour is
 * a real token (--xc-off-white, #F9FDFF) rather than a filter approximation.
 * mask (not background-image) is what lets one shape take any colour.
 *
 * Chrome/Safari/Edge only; Firefox draws no cancel button for type="search" and
 * this pseudo-element simply never matches there.
 */
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	cursor: pointer;
	background-color: var(--xc-off-white);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' stroke='%23000' stroke-width='1.7' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' stroke='%23000' stroke-width='1.7' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* -------------------------------------------------------------------- base */
/* Figma page chrome: 1240 content frame, 28px horizontal gutters (864:6212). */
.xc-container {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 28px;
	box-sizing: border-box;
}

/* Accessible skip link */
.xc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--xc-true-blue);
	color: var(--xc-white);
	border-radius: 0 0 var(--xc-radius-sm) 0;
	font-family: var(--xc-body);
}
.xc-skip-link:focus { left: 0; }

.xc-logo { display: inline-flex; align-items: center; color: var(--xc-white); line-height: 0; }
.xc-logo__svg { height: 30px; width: auto; } /* Figma logo frame 133.75×30 */

/* ---------- Buttons — Figma 864:6240 / 864:6242 (Saira 16 / py 13 / px 25) ---------- */
.xc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	font-family: var(--xc-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	padding: 13px 25px;
	min-height: 42px;
	border-radius: var(--xc-pill);
	border: 1px solid transparent;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.xc-btn:hover,
.xc-btn:focus,
.xc-btn:focus-visible {
	text-decoration: none;
}
.xc-btn--primary { background: var(--xc-true-blue); color: var(--xc-white); }
.xc-btn--primary:hover { background: var(--xc-primary-hover); }
.xc-btn--ghost {
	background: transparent;
	color: var(--xc-off-white);
	border-color: rgba(120, 129, 150, .35);
}
.xc-btn--ghost:hover { border-color: rgba(120, 129, 150, .7); }

/* ---------- Notification bar (site-wide notice) ----------
 *
 * NO FIGMA FRAME EXISTS for this one — it is the old site's WPFront bar rebuilt
 * in the site's own vocabulary: the brand blue the CTAs use, Inter at the footer's
 * size, the pill-round icon button the header already draws. Sits ABOVE the
 * sticky header in normal flow, so it scrolls away and the header takes over the
 * top of the viewport.
 *
 * The bar is always in the HTML. This class on <html>, set before first paint by
 * the inline script in inc/site-notice.php, is what hides it for a visitor who
 * has closed it — never JS removing an element after load, which is what made the
 * old bar shift the whole page down a moment after it painted.
 */
html.xc-notice-off .xc-notice { display: none; }

.xc-notice {
	position: relative;
	background: linear-gradient(90deg, #015ADF 0%, #0A72E6 52%, #1A9CFC 100%);
	color: var(--xc-white);
	font-family: var(--xc-body);
}
/*
 * TWO CLASSES, NOT ONE, and it matters: this element is also .xc-container, and
 * the mobile block further down this file sets `.xc-container { padding-inline:
 * 16px }`. Same specificity, later in the file — so a single-class selector here
 * lost, the 44px gutter that keeps the text clear of the close button was
 * replaced by 16px, and the last words ran underneath the button. (0,2,0) settles
 * it, the same fix the header's login link needed.
 */
.xc-notice .xc-notice__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding-block: 9px;
	/* Symmetric, so the centred text stays centred rather than being pushed off
	   axis by the close button sitting in the right-hand gutter. */
	padding-inline: 48px;
	text-align: center;
}
.xc-notice__text {
	margin: 0;                 /* the .xc-header/.xc-footer reset does not reach here */
	font-size: 13px;
	line-height: 1.45;
	letter-spacing: .01em;
	color: var(--xc-white);
}
.xc-notice__text strong { font-weight: 600; }
/* Beat theme.json's global link colour — a blue link on the blue band is invisible. */
.xc-notice__text a {
	color: var(--xc-white);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.xc-notice__text a:hover { color: rgba(255, 255, 255, .8); }

/*
 * Solid enough to be seen against the lighter right-hand end of the gradient —
 * a .12 white wash disappeared there, which on a bar the visitor is trying to
 * get rid of is the one control that must never be hard to find.
 */
.xc-notice__close {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: var(--xc-pill);
	background: rgba(3, 33, 82, .35);
	color: var(--xc-white);
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}
.xc-notice__close:hover {
	background: rgba(3, 33, 82, .6);
	border-color: rgba(255, 255, 255, .7);
}
.xc-notice__close:focus-visible {
	outline: 2px solid var(--xc-white);
	outline-offset: 2px;
}
.xc-notice__close svg { display: block; }

@media (max-width: 900px) {
	/* Three or four lines of text on a phone read better ranged left than centred. */
	.xc-notice .xc-notice__inner {
		justify-content: flex-start;
		align-items: flex-start;
		/* 16 left, 48 right: the button is 30px wide sitting 10px in, so this is
		   the gutter that keeps the last line clear of it. */
		padding-inline: 16px 48px;
		text-align: left;
	}
	.xc-notice__text { font-size: 12.5px; }
	.xc-notice__close {
		/* Pinned to the top line rather than the vertical middle of a four-line
		   block — on a phone the middle of the bar is the middle of the sentence. */
		top: 7px;
		right: 10px;
		transform: none;
	}
}

/* A notice bar is navigation furniture, not part of the document. */
@media print {
	.xc-notice { display: none; }
}

/* ---------- Header — Figma TOP NAV 864:6212 ---------- */
.xc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--xc-rich-black, #111620);
	border-bottom: 1px solid var(--xc-line);
	/*
	 * The dropdowns are absolutely positioned inside this element, and a CLOSED
	 * panel is still laid out — `opacity: 0` hides it, it does not remove it. A
	 * panel wider than the viewport therefore widened the DOCUMENT and put a
	 * horizontal scrollbar on every page. Clipped on x only (the panel is exactly
	 * viewport-wide, so nothing visible is lost) with y left visible so the panel
	 * can still hang below the bar.
	 */
	overflow-x: clip;
}
.xc-header--overlay {
	position: fixed;
	inset: 0 0 auto 0;   /* float over the hero; reserves no layout space */
	background: var(--xc-rich-black, #111620);
	border-bottom: 1px solid var(--xc-line);
}
.xc-header.is-menu-open {
	border-bottom-color: var(--xc-line);
}
.xc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	box-sizing: border-box;
	min-height: var(--xc-header-h);
	padding-block: 18px; /* Figma py-[18px] */
	padding-inline: 0;   /* horizontal gutters come from .xc-container (28px) */
}
.xc-header .xc-container {
	/* Lock header chrome to the same frame on every page (home + buy + programmatic). */
	max-width: 1240px;
	padding-inline: 28px;
}

.xc-nav__list { display: flex; gap: 28px; align-items: center; }
.xc-nav a {
	font-family: var(--xc-body);
	font-size: 14px;
	line-height: 1.25;
	font-weight: 400;
	color: var(--xc-nav-ink);
	transition: color .2s ease;
}
.xc-nav a:hover { color: var(--xc-white); }

.xc-header__cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Hamburger ---------- */
.xc-burger {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: var(--xc-radius-sm);
	background: rgba(255, 255, 255, .05);
	align-items: center;
	justify-content: center;
}
.xc-burger__box { position: relative; width: 20px; height: 14px; }
.xc-burger__line,
.xc-burger__line::before,
.xc-burger__line::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--xc-white);
	transition: transform .2s ease, opacity .2s ease;
}
.xc-burger__line { top: 6px; }
.xc-burger__line::before { top: -6px; }
.xc-burger__line::after  { top: 6px; }
/*
 * Open state — Figma 864:9047: the hamburger becomes an X in a bordered square,
 * not a filled tile. The bars fold into the cross; the middle one goes
 * transparent rather than `display:none` so the two pseudo-elements it owns
 * survive to be the arms.
 */
.xc-header.is-menu-open .xc-burger {
	background: transparent;
	border: 1px solid rgba(249, 253, 255, .25);
}
.xc-header.is-menu-open .xc-burger__line { background: transparent; }
.xc-header.is-menu-open .xc-burger__line::before { transform: translateY(6px) rotate(45deg); }
.xc-header.is-menu-open .xc-burger__line::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
/*
 * A FULL-HEIGHT PANEL THAT SCROLLS ITSELF. It used to be `inset: 100% 0 auto 0`
 * — height driven by its content — so a menu longer than the screen made the
 * PAGE scroll while the menu sat still. Pinned to the viewport instead, with the
 * document locked behind it (see .xc-menu-open) and overscroll contained so a
 * flick past the last item does not chain through to the page either.
 */
.xc-mobile-nav {
	/*
	 * GLUED TO THE HEADER, not to the viewport. `position: fixed` + a `top` read
	 * from --xc-header-h meant two elements positioned independently, and any
	 * disagreement between them — a taller bar, a broken sticky, a scrolled page —
	 * showed up as the menu covering the nav. Absolute + `top: 100%` cannot
	 * disagree: it is the header's own bottom edge, whatever that turns out to be.
	 *
	 * The height still comes from the viewport, because the panel has to fill the
	 * screen and scroll itself.
	 */
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: calc(100vh - var(--xc-header-h, 78px) - var(--xc-admin-bar, 0px));
	max-height: calc(100dvh - var(--xc-header-h, 78px) - var(--xc-admin-bar, 0px));
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: rgba(12, 17, 27, .98);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--xc-line);
	padding-block: 20px 0;
}
.xc-mobile-nav[hidden] { display: none; }

/* The document behind the open drawer. */
html.xc-menu-open,
html.xc-menu-open body { overflow: hidden; }

/*
 * …AND THE HEADER HAS TO BE PINNED WHILE IT IS.
 *
 * `overflow: hidden` on the scrolling element kills `position: sticky` for its
 * descendants: open the menu with the page already scrolled and the header fell
 * back to its natural place in the document — somewhere above the fold — while
 * the drawer, being fixed, stayed put. The two separated and the menu appeared
 * to cover the bar. Fixed while open, so both are anchored to the viewport and
 * cannot drift apart.
 */
html.xc-menu-open .xc-header {
	position: fixed;
	top: var(--xc-admin-bar, 0px);
	left: 0;
	right: 0;
}

/*
 * ⚠️ THE ADMIN BAR IS PART OF THE VIEWPORT WHEN LOGGED IN. It is fixed at the
 * top and WordPress pushes the document down for it, so pinning the header to
 * `top: 0` slid it up underneath — taking the drawer, which hangs off the
 * header, with it. 32px normally, 46px on the widths where WP makes it taller.
 */
body.admin-bar { --xc-admin-bar: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar { --xc-admin-bar: 46px; }
}

/*
 * Figma 809:5176 — "Get the app" is pinned to the foot of the menu, over the
 * scrolling content, so the primary action is reachable without scrolling to
 * the end of a list whose length the Data Matrix decides.
 */
/* The drawer's only child is the container <nav>, so the column that `margin-top:
   auto` pushes against has to be that, not the drawer itself. */
.xc-mobile-nav > nav {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 100%;
	box-sizing: border-box;
}

.xc-mobile-nav__foot {
	position: sticky;
	bottom: 0;
	margin-top: auto;
	/* Clear of the bottom edge, and of the home indicator on phones that have one
	   — env() resolves to 0 everywhere else, so it costs nothing. */
	padding: 16px 0 calc(32px + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(180deg, rgba(12, 17, 27, 0) 0%, rgba(12, 17, 27, .98) 22%);
}

.xc-header .xc-mobile-nav__app {
	display: flex;
	justify-content: center;
	width: 100%;
}
.xc-mobile-nav__list { display: flex; flex-direction: column; gap: 4px; }
/*
 * `> li >`, not a descendant selector: the wallet dropdown's cards are also <a>s
 * inside this list, and at (0,1,1) this rule outranked .xc-dd__item (0,1,0) —
 * so `display: block` flattened every card, stacking its icon above its title.
 * Restricting it to the drawer's own top-level rows leaves the cards alone.
 */
.xc-mobile-nav__list > li > a {
	/* Flex, not block: the frame gives every row a chevron on the right. */
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	font-family: var(--xc-display);
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--xc-soft-white);
	border-bottom: 1px solid var(--xc-line2);
}
.xc-mobile-nav__list > li > a:hover { color: var(--xc-white); }


/* ---------- Wallet nav dropdown — Figma 820:6076 (desktop) / 820:6004 (mobile) ----------
 * Opened by :hover and :focus-within, with no JS and no aria-expanded on desktop:
 * the panel's links stay in the tab order, so tabbing to them reveals it. The
 * mobile accordion is a real button (see site-nav.js) because there the panel is
 * genuinely hidden.
 */
/*
 * NOT positioned. The panel below is `top: 100%` of its containing block, and
 * that block has to be the sticky .xc-header so the menu opens at the BAR's
 * bottom edge — `position: relative` here made it the 18px-tall <li>, which is
 * why the old rule needed a `calc(100% + 18px)` fudge and still opened a third
 * of the way up the header.
 */
.xc-nav__has-dd { position: static; }

/*
 * A HOVER BRIDGE, and the panel does not work without one. The link is 18px tall
 * in the middle of a 78px bar, so between its bottom edge and the panel's top
 * lies the header's own padding — pointer over neither, `:hover` on the <li>
 * lost, panel gone before the mouse can reach it. Once the pointer IS inside the
 * panel there is no problem: the panel is a DOM descendant of the <li>, so it
 * keeps the hover itself.
 *
 * Anchored to the ANCHOR, not the row: it must be only as wide as the link, or a
 * strip across the whole header would swallow clicks on the other nav items
 * while a menu is open. Shown on hover only, for the same reason.
 */
/* inline-block so the bridge's containing block is the link's own box, not the
   line box it happens to sit in. */
.xc-nav__has-dd > a { position: relative; display: inline-block; }

.xc-nav__has-dd > a::after {
	content: "";
	position: absolute;
	top: 100%;
	left: -16px;
	right: -16px;
	/*
	 * Measured, not guessed: the link's box ends at y≈48 (17.5px of 14/1.25 text
	 * centred in the 78px bar) and the panel's top edge is y=81, so the gap is
	 * 33px. 40 overlaps the panel rather than meeting it exactly — a bridge that
	 * lands one subpixel short reopens the bug it exists to fix.
	 */
	height: 40px;
	display: none;
}

.xc-nav__has-dd:hover > a::after,
.xc-nav__has-dd:focus-within > a::after { display: block; }

/*
 * A FULL-BLEED BAR, not a floating card. Every dropdown frame draws it that way
 * (777:1630 sell, 809:5363 buy, 820:6076 wallet): the panel spans the viewport
 * and its content sits in the 1240 container.
 *
 * It also has to be. Centred on its own nav link (`left:50%` + translateX) a
 * panel wider than twice the distance from that link to the screen edge hangs
 * off it — which is what the wallet menu did on any viewport under ~1400px, and
 * what the four-column buy menu would do on all of them.
 *
 * Fixed to the header's height rather than the link's box, so the panel's top is
 * the bar's bottom whatever the link happens to be.
 */
.xc-dd {
	position: absolute;
	/* The header's own bottom edge, whatever height it computes to. */
	top: 100%;
	left: 0;
	right: 0;
	width: auto;
	padding: 32px 0;
	border-block: 1px solid var(--xc-line);
	background: var(--xc-footer-bg, #0c111b);   /* Figma panel fill */
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease;
	z-index: 120;
}

/*
 * ⚠️ NO `visibility: hidden` on the closed state, deliberately. It removes the
 * panel's links from the tab order, which means focus can never land inside —
 * so :focus-within can never fire and a keyboard user can never open the menu.
 * opacity + pointer-events hides it just as completely for the mouse, and the
 * links stay focusable, so the first Tab past "Wallet" reveals the panel.
 */

/*
 * A transparent bridge across the 18px gap: without it the panel closes the
 * instant the pointer leaves the link, before it can reach the panel.
 */
.xc-nav__has-dd:hover .xc-dd,
.xc-nav__has-dd:focus-within .xc-dd {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.xc-dd__inner { padding-inline: 0; max-width: none; }

/* Figma: Inter 14, 2px tracking, uppercase, slate. */
.xc-dd__eyebrow {
	margin: 0 0 8px;
	font-family: var(--xc-body);
	font-size: 14px;
	line-height: 1.25;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--xc-slate);
}

.xc-dd__grid { display: flex; gap: 24px; align-items: stretch; }

/* Figma 820:6085 — 84px tall, r12, 2% fill, 10% hairline, 17px pad, 18px gap. */
.xc-dd__item {
	display: flex;
	align-items: center;
	gap: 18px;
	box-sizing: border-box;
	flex: 1 1 0;
	min-width: 0;
	padding: 17px;
	border: 1px solid rgba(249, 253, 255, .1);
	border-radius: 12px;
	background: rgba(249, 253, 255, .05);
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease;
}

.xc-dd__item:hover,
.xc-dd__item:focus-visible {
	background: rgba(249, 253, 255, .09);
	border-color: rgba(26, 156, 252, .45);
}

.xc-dd__icon { flex: 0 0 32px; line-height: 0; }
/*
 * `object-fit: contain`, NOT a bare 32x32 — most of these menu icons are exported
 * from Figma with a non-square viewBox (all-crypto and cash-out are 18.2x28.5,
 * country 27.2x32.2), so forcing both axes to 32px stretched the artwork. The box
 * stays 32x32 for layout; the art fits its longest side inside it.
 */
.xc-dd__icon img { display: block; width: 32px; height: 32px; object-fit: contain; }

.xc-dd__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xc-dd__head { display: flex; align-items: center; gap: 8px; }

.xc-dd__title {
	font-family: var(--xc-display);
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	color: var(--xc-off-white);
	white-space: nowrap;
}

/* Figma 820:6091 — 8px uppercase pill, bright-blue at 15% on a 50% hairline. */
.xc-dd__badge {
	flex: 0 0 auto;
	padding: 3px 7px;
	border: 1px solid rgba(26, 156, 252, .5);
	border-radius: var(--xc-pill);
	background: rgba(26, 156, 252, .15);
	font-family: var(--xc-body);
	font-size: 8px;
	line-height: 1.25;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--xc-bright-blue);
}

.xc-dd__desc {
	font-family: var(--xc-body);
	font-size: 12px;
	line-height: 1.25;
	color: var(--xc-slate);
}

/* ---------- Sell dropdown — Figma 777:1630 ---------- */
/*
 * A columned panel rather than the wallet menu's single row of cards: a
 * "Popular" coin list on the left, then one card per group. The columns are
 * content-sized, because the coin list is as long as marketing has ticked
 * coins — see xcoins_theme_sell_menu().
 */
/*
 * WRAPS. The columns are content- and card-sized, so on a 1100px window the buy
 * menu's four of them came to ~1140px inside a 1044px container — see the
 * overflow note on .xc-header. Wrapping is the honest answer: a menu that has to
 * shrink its cards to fit is worse than one that takes two rows.
 */
.xc-dd__inner--cols {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px clamp(32px, 6vw, 112px);
}

.xc-dd__col { display: flex; flex-direction: column; }

.xc-dd__col--coins {
	flex: 0 0 auto;
	min-width: 138px;
	margin-right: auto;
}

.xc-dd__coins {
	list-style: none;
	margin: 0;
	padding: 0;
}

.xc-header .xc-dd__coin {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-radius: 8px;
	font-family: var(--xc-body);
	font-size: 14px;
	line-height: 1.25;
	color: #cfd6e2;
	text-decoration: none;
	white-space: nowrap;
	transition: color .18s ease;
}

.xc-header .xc-dd__coin:hover,
.xc-header .xc-dd__coin:focus-visible { color: var(--xc-off-white); }

.xc-dd__coin-icon { display: block; width: 24px; height: 24px; flex: 0 0 24px; }

/* Two classes: `.xc-nav a` (0,1,1) would otherwise win the colour and size. */
.xc-header .xc-dd__all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 12px 0;
	font-family: var(--xc-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	color: var(--xc-bright-blue);
	text-decoration: none;
	white-space: nowrap;
}

.xc-header .xc-dd__all:hover { color: #4fb5fd; }

/* The frame's 16px chevron, drawn rather than shipped as a ninth icon file. */
.xc-dd__all-arrow {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The card columns keep the frame's 344px card. */
.xc-dd__col .xc-dd__item { flex: 0 0 auto; width: 100%; max-width: 344px; }

/* Stacked in the mobile drawer — one column, no 112px gutters. */
.xc-mobile-dd__cols {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.xc-mobile-dd__cols .xc-dd__col .xc-dd__item { width: auto; }
.xc-mobile-dd__cols .xc-dd__col--browse,
.xc-mobile-dd__cols .xc-dd__col--links { flex: 0 0 auto; width: 100%; }

/* The mobile frame (809:4992) ends the Buy panel at "All payment methods" — the
   promo card is desktop-only, and stacked under six coins and five methods it
   would sit a screen and a half below the fold anyway. */
.xc-mobile-dd__cols .xc-dd__promo { display: none; }

/* ---------- Buy dropdown — Figma 809:5363 ---------- */
/*
 * Four columns: browse-by cards, popular coins, popular ways to pay, promo.
 * The link columns size to their content; the cards and the promo are fixed to
 * the frame's widths, and `justify-content: space-between` spreads what is left
 * rather than a fixed gutter — the coin and method columns are as tall and wide
 * as the Matrix makes them.
 */
.xc-dd--buy .xc-dd__inner--cols {
	gap: 32px 40px;
	justify-content: space-between;
}

.xc-dd__col--browse {
	flex: 0 1 344px;
	min-width: 0;
	gap: 12px;
}

.xc-dd__col--browse .xc-dd__item { width: 100%; }

.xc-dd__col--links { flex: 0 0 auto; }

/* The promo — Figma 809:5460: a card, not a column of loose text. */
.xc-dd__promo {
	flex: 0 1 296px;
	min-width: 0;
	box-sizing: border-box;
	gap: 8px;
	padding: 24px;
	border: 1px solid rgba(249, 253, 255, .1);
	border-radius: 12px;
	background: rgba(249, 253, 255, .05);
}

.xc-dd__promo-eyebrow {
	font-family: var(--xc-body);
	font-size: 14px;
	line-height: 1.25;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--xc-bright-blue);
}

.xc-dd__promo-title {
	font-family: var(--xc-display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	color: var(--xc-off-white);
}

.xc-dd__promo-body {
	font-family: var(--xc-body);
	font-size: 14px;
	line-height: 1.35;
	color: #cfd6e2;
}

.xc-header .xc-dd__promo-cta {
	justify-content: center;
	width: 100%;
	margin-top: 8px;
}

.xc-header .xc-dd__promo .xc-dd__all { align-self: center; }

/* ---------- Resources dropdown — Figma 1316:3409 desktop / 1316:3670 mobile ---------- */
.xc-dd--resources .xc-dd__inner--resources { padding-inline: 32px; }

.xc-dd__resources-body {
	display: flex;
	flex-direction: column;
}

.xc-dd__resources-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	column-gap: 32px;
}

.xc-dd__col--resources { min-width: 0; }

.xc-dd__col--resources-guides {
	grid-column: 1;
	justify-self: start;
	width: max-content;
	max-width: 280px;
}

.xc-dd__col--resources-learn {
	grid-column: 2;
	justify-self: center;
	width: 344px;
	max-width: 344px;
}

.xc-dd__col--resources-prices {
	grid-column: 3;
	justify-self: end;
}

.xc-dd__res-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.xc-header .xc-dd__res-link,
.xc-header .xc-dd__res-hub {
	display: flex;
	align-items: center;
	padding: 12px 0;
	border-radius: 8px;
	text-decoration: none;
	transition: color .18s ease;
}

.xc-header .xc-dd__res-link {
	font-family: var(--xc-body);
	font-size: 14px;
	line-height: 1.25;
	color: #cfd6e2;
}

.xc-header .xc-dd__res-link:hover,
.xc-header .xc-dd__res-link:focus-visible { color: var(--xc-off-white); }

.xc-header .xc-dd__res-hub {
	gap: 4px;
	font-family: var(--xc-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	color: var(--xc-bright-blue);
}

.xc-header .xc-dd__res-hub:hover,
.xc-header .xc-dd__res-hub:focus-visible { color: #4fb5fd; }

.xc-dd__col--resources-learn .xc-dd__latest { margin-top: 0; }

.xc-dd__latest {
	display: block;
	position: relative;
	box-sizing: border-box;
	min-height: 68px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(249, 253, 255, .05);
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease;
}

.xc-dd__latest:hover,
.xc-dd__latest:focus-visible {
	border-color: rgba(26, 156, 252, .45);
	background: rgba(26, 156, 252, .08);
}

.xc-dd__latest-range {
	display: block;
	font-family: var(--xc-body);
	font-size: 8px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--xc-bright-blue);
}

.xc-dd__latest-title {
	display: block;
	margin-top: 4px;
	font-family: var(--xc-display);
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	color: var(--xc-off-white);
}

.xc-dd__base-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .06);
}

.xc-header .xc-dd__base-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--xc-slate);
	border-radius: 999px;
	background: rgba(255, 255, 255, .02);
	font-family: var(--xc-body);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	color: #cfd6e2;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .18s ease, color .18s ease;
}

.xc-header .xc-dd__base-chip:hover,
.xc-header .xc-dd__base-chip:focus-visible {
	border-color: var(--xc-bright-blue);
	color: var(--xc-bright-blue);
}

/* Mobile accordion panel — Figma 1316:3670 */
.xc-mobile-dd--resources {
	margin-inline: -16px;
	padding: 20px 16px 21px;
	border-bottom: 1px solid rgba(255, 255, 255, .04);
	background: rgba(255, 255, 255, .02);
}

.xc-mobile-dd__res {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.xc-mobile-dd__res-group--learn {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.xc-mobile-dd--resources .xc-dd__latest {
	width: 100%;
	max-width: 343px;
}

.xc-mobile-dd--resources .xc-dd__res-link,
.xc-mobile-dd--resources .xc-dd__res-hub,
.xc-mobile-nav .xc-mobile-dd--resources .xc-dd__res-link,
.xc-mobile-nav .xc-mobile-dd--resources .xc-dd__res-hub {
	padding: 12px 0;
}

@media (max-width: 1100px) {
	.xc-dd__resources-grid {
		grid-template-columns: 1fr;
		row-gap: 20px;
	}

	.xc-dd__col--resources-guides,
	.xc-dd__col--resources-learn,
	.xc-dd__col--resources-prices {
		grid-column: 1;
		justify-self: stretch;
		width: auto;
		max-width: none;
	}
}

/* ---------- Mobile accordion — Figma 820:6004 ---------- */
/*
 * `.xc-mobile-nav` prefix is load-bearing: base.css resets `.xc-header button`
 * with `font: inherit; color: inherit` at (0,1,1), which outranks a lone
 * `.xc-mobile-nav__toggle` (0,1,0) — the Wallet row lost its type and rendered
 * small and muted next to the anchor rows. Two classes (0,2,0) win it back.
 */
.xc-mobile-nav .xc-mobile-nav__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--xc-line2);
	background: none;
	font-family: var(--xc-display);
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--xc-soft-white);
	text-align: left;
	cursor: pointer;
}

/* The frame turns the row bright blue while its panel is open. */
.xc-mobile-nav .xc-mobile-nav__toggle[aria-expanded="true"] { color: var(--xc-bright-blue); }

.xc-mobile-nav__chev {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .18s ease;
}

.xc-mobile-nav .xc-mobile-nav__toggle[aria-expanded="true"] .xc-mobile-nav__chev { transform: rotate(45deg); }

.xc-mobile-dd { padding: 16px 0 4px; }
.xc-mobile-dd[hidden] { display: none; }
.xc-mobile-dd__grid { display: flex; flex-direction: column; gap: 12px; }

/* Stacked and full-width here, so the desktop row's nowrap would overflow. */
.xc-mobile-dd .xc-dd__title { white-space: normal; }
.xc-mobile-dd .xc-dd__item { align-items: flex-start; }
.xc-mobile-dd .xc-dd__icon { margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
	.xc-dd,
	.xc-dd__item,
	.xc-mobile-nav__chev { transition: none; }
}

/* ---------- Footer — Figma 864:6817 (desktop) / 864:7464 (mobile) ---------- */
.xc-footer {
	position: relative;
	background: var(--xc-footer-bg);
	color: var(--xc-slate);
	padding-block: 96px 32px;
	font-family: var(--xc-body);
	overflow: hidden;
}
.xc-footer__fade {
	position: absolute;
	inset: 0 0 auto 0;
	height: 96px;
	pointer-events: none;
	z-index: 0;
	background: linear-gradient(180deg, #111620 0%, rgba(17, 22, 32, 0) 100%);
}
.xc-footer > .xc-container {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 48px;
	max-width: 1240px;
	padding-inline: 28px;
}
.xc-footer__top {
	display: flex;
	align-items: flex-start;
	gap: 60px;
}
.xc-footer__brand {
	flex: 0 0 auto;
	width: min(274px, 100%);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.xc-footer__logo .xc-logo__svg { height: 28px; width: auto; }
.xc-footer__availability {
	color: var(--xc-slate);
	font-size: .875rem; /* 14 */
	line-height: 1.25;
}

/* Figma: 36px icon frames desktop, 12px gap, soft-white outline glyph. */
.xc-social { display: flex; flex-wrap: wrap; gap: 3px; }
.xc-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--xc-soft-white);
	transition: color .2s ease;
}
.xc-social a:hover,
.xc-social a:focus-visible { color: var(--xc-bright-blue); }
.xc-social a:focus-visible { outline: 2px solid var(--xc-off-white); outline-offset: 2px; }
.xc-social__icon { width: 36px; height: 36px; }

.xc-footer__grid {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 15px;
}
.xc-footer__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.xc-footer__heading {
	font-family: var(--xc-body);
	font-size: .875rem; /* 14 */
	font-weight: 600;
	line-height: 1.25;
	color: var(--xc-slate);
}
.xc-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.xc-footer__link {
	font-size: .75rem; /* 12 */
	line-height: 1.25;
	color: var(--xc-off-white);
	transition: color .2s ease;
}
.xc-footer__link:hover,
.xc-footer__link:focus-visible { color: var(--xc-bright-blue); }
.xc-footer__link.is-featured {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--xc-display);
	font-size: .875rem; /* 14 */
	font-weight: 700;
	line-height: 1;
	color: var(--xc-off-white);
}
.xc-footer__link.is-featured::after {
	content: "→";
	font-family: var(--xc-display);
	font-weight: 700;
	line-height: 1;
}

.xc-footer__hubs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0 12px;
	font-size: .75rem; /* 12 */
	line-height: 1.25;
}
.xc-footer__hubs a {
	color: var(--xc-slate);
	display: inline-flex;
	align-items: center;
	min-height: 24px;          /* accessible tap-target size */
	padding-block: 4px;
	transition: color .2s ease;
}
.xc-footer__hubs a:hover,
.xc-footer__hubs a:focus-visible { color: var(--xc-soft-white); }
.xc-footer__hubs a:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 14px;
	margin-left: 12px;
	background: var(--xc-line);
}

.xc-footer__legal {
	padding-top: 21px;
	border-top: 1px solid rgba(249, 253, 255, .1);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}
.xc-footer__policy {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0 12px;
	font-size: .75rem;
	line-height: 1.25;
}
.xc-footer__policy a {
	color: var(--xc-slate);
	display: inline-flex;
	align-items: center;
	min-height: 24px;          /* accessible tap-target size */
	padding-block: 4px;
	transition: color .2s ease;
}
.xc-footer__policy a:hover,
.xc-footer__policy a:focus-visible { color: var(--xc-white); }
/*
 * Separators LEAD each item instead of trailing it. With a trailing ::after on
 * `a:not(:last-child)`, the last link kept a divider whenever the "Cookie
 * settings" button after it was hidden (it is hidden for every visitor whose
 * region gets no consent banner — see inc/cookie-settings.php), leaving a rule
 * dangling at the end of the bar. Leading separators travel with the item they
 * belong to, so anything that hides takes its divider with it.
 */
.xc-footer__policy a:not(:first-child)::before,
.xc-footer__policy .xc-footer__cookie::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 14px;
	margin-right: 12px;
	background: var(--xc-line);
}
/*
 * "Cookie settings" — Complianz's consent-withdrawal control, moved out of its
 * floating "Manage consent" pill and into this bar (see site-footer.php). It has
 * to be a <button> for the plugin's handler to see it, so it is dressed to be
 * indistinguishable from the policy links either side of it. The divider comes
 * from the rule above, on the link BEFORE it — the button is always last.
 */
.xc-footer__policy .xc-footer__cookie {
	appearance: none;
	background: none;
	border: 0;
	margin: 0;
	font: inherit;
	text-align: inherit;
	cursor: pointer;
	color: var(--xc-slate);
	display: inline-flex;
	align-items: center;
	min-height: 24px;          /* accessible tap-target size, as the links */
	padding: 4px 0;
	transition: color .2s ease;
}
.xc-footer__policy .xc-footer__cookie:hover,
.xc-footer__policy .xc-footer__cookie:focus-visible { color: var(--xc-white); }
/* [hidden] must beat the author `display` above — the same trap as the geo
   variants below. The button ships hidden and JS reveals it. */
.xc-footer__policy .xc-footer__cookie[hidden] { display: none; }
.xc-footer__copy {
	color: var(--xc-slate);
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.25;
}

.xc-footer__disclaimer {
	display: flex;
	flex-direction: column;
	gap: 1em;
	font-size: .75rem;
	line-height: 1.25;
	color: var(--xc-slate);
}
.xc-footer__disclaimer p { max-width: 100%; }
/* geo variants: [hidden] must beat the flex display above (JS toggles US vs default) */
.xc-footer__disclaimer[hidden] { display: none; }

/*
 * …AND SO MUST EVERY OTHER GEO-SWAPPED ELEMENT, wherever it lives.
 *
 * `hidden` is a UA rule (display:none) at the weakest possible priority, so ANY
 * author rule that sets `display` on the element beats it and the "hidden"
 * element stays on screen. That is not a hypothetical: the footer disclaimer
 * above needed patching for it, and the hero trust line hit it again — the JS
 * was setting hidden correctly the whole time.
 *
 * One rule for everything site-geo.js toggles, rather than a new selector each
 * time a geo block lands somewhere with a display of its own. !important because
 * the conflicting rule is unknowable from here: these elements are dropped into
 * heroes, footers and cards that each style their own children.
 */
[data-xc-legal][hidden],
[data-xc-office][hidden],
[data-xc-legalver][hidden],
[data-xc-reg][hidden],
[data-xc-trust][hidden],
[data-xc-video][hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.xc-nav { display: none; }
	/*
	 * .xc-header SCOPE IS LOAD-ORDER ARMOUR, not decoration. The mobile nav in the
	 * frames is logo + Sign up + burger — no "Log in". A bare `.xc-header__login`
	 * (0,1,0) ties with `.xc-btn { display: inline-flex }`, so ANY sheet that
	 * redefines .xc-btn after base.css wins on order alone and the button comes
	 * back. xcoins-pages.css does exactly that (deliberately — see its BUG #4
	 * note), which is why every programmatic page T1–T6 was showing "Log in" on
	 * mobile while the hand-built pages were not. (0,2,0) settles it for good.
	 */
	.xc-header .xc-header__login { display: none; }
	.xc-burger { display: inline-flex; }

	.xc-container,
	.xc-header .xc-container {
		padding-inline: 16px;
	}
	/* The mobile bar is shorter, and the drawer + dropdowns hang off this value —
	   so it is the VARIABLE that changes, not just this box's min-height. */
	:root { --xc-header-h: 68px; }

	.xc-header__inner {
		padding-block: 14px;
		min-height: var(--xc-header-h);
	}
	.xc-logo__svg { height: 24px; }

	.xc-footer { padding-block: 32px 100px; }
	.xc-footer__fade { height: 80px; }
	.xc-footer > .xc-container {
		gap: 48px;
		padding-inline: 16px;
	}
	.xc-footer__top {
		flex-direction: column;
		gap: 60px;
	}
	.xc-footer__brand { width: 100%; }
	.xc-footer__availability { font-size: 1rem; } /* 16 mobile */
	.xc-social a,
	.xc-social__icon { width: 48px; height: 48px; }
	.xc-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 24px;
	}
	/* Figma mobile: Company spans full width under the 2×2 link pairs. */
	.xc-footer__col:last-child { grid-column: 1 / -1; }
	.xc-footer__hubs { gap: 4px 12px; }
	.xc-footer__policy { gap: 8px 12px; }
}
@media (max-width: 480px) {
	.xc-footer__grid { gap: 40px 24px; }
}

/* ---------- Atlassian JSM chat (mobile) ----------
   embed.js sets inline bottom on #jsd-widget; override so the bubble clears
   the homepage sticky CTA (~60px) and the thumb zone on all mobile pages. */
@media (max-width: 960px) {
	#jsd-widget {
		bottom: 60px !important;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.xc-header, .xc-btn, .xc-nav a, .xc-social a,
	.xc-burger__line, .xc-burger__line::before, .xc-burger__line::after {
		transition: none;
	}
}

/* ---------- Scrollbar (global) — thin, dark-theme track ---------- */
html {
	scrollbar-width: thin;
	scrollbar-color: rgba(249, 253, 255, .22) transparent;
}

*::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

*::-webkit-scrollbar-track {
	background: transparent;
}

*::-webkit-scrollbar-thumb {
	background: rgba(249, 253, 255, .2);
	border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
	background: rgba(249, 253, 255, .35);
}

*::-webkit-scrollbar-corner {
	background: transparent;
}

/* ---------- Glass border utility (homepage USPs / buy cards / etc.) ----------
   Flat Figma fill/border (#F9FDFF 5%/10%) plus a ::before that fakes Figma's
   "Glass" effect as directional corner glints. Alias: .border-glass. */
.glass-border,
.border-glass {
	position: relative;
	border-radius: 12px;
	border: 1px solid rgba(249, 253, 255, .1);
}
.glass-border::before,
.border-glass::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	pointer-events: none;
	background:
		radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .32) 3%, rgba(255, 255, 255, .14) 45%, transparent 52%),
		radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .4) 3%, rgba(255, 255, 255, .16) 43%, transparent 46%),
		linear-gradient(135deg, rgba(249, 253, 255, .12) 50%, rgba(249, 253, 255, .14) 50%, rgba(249, 253, 255, .22) 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

/* Figma 1316:3615 — 14px radius; .glass-border defaults to 12px. */
.xc-dd__latest.glass-border { border-radius: 14px; }
