/*
 * Job Radar storefront (mockups "6 · Featured + digest",
 * "D2 · Open cards" for the "More in …" list, and the filter bar:
 * "Filter B · Dropdown bar" with "Filter D · Phone" below 721px).
 *
 * Uses the active theme's colours and fonts when it defines the Branch Graph
 * tokens (--ts-*, --wp--preset--*), with the same values as fallbacks for any
 * other theme. All text/background pairs meet WCAG AA (4.5:1) on the dark
 * surfaces.
 */
.jr-board,
.jr-subscribe,
.jr-hero,
.jr-filters,
.jr-sheet {
	--jr-base: var(--ts-base, #0e1116);
	--jr-base-deep: var(--ts-base-deep, #0b0e12);
	--jr-surface: var(--ts-surface, #161b22);
	--jr-surface-alt: var(--ts-surface-alt, #12161c);
	--jr-border: var(--ts-border, #262c36);
	--jr-rule: #1a1f27;
	--jr-text: var(--ts-body, #c9d1d9);
	--jr-heading: var(--ts-contrast, #e6edf3);
	--jr-muted: var(--ts-muted, #9aa4b2);
	--jr-accent: var(--ts-engineering, #8ad1ff);
	--jr-career: var(--ts-career, #c4a7ff);
	--jr-ai: var(--ts-ai, #7ee2a8);
	--jr-yes: var(--ts-ai, #7ee2a8);
	--jr-yes-surface: var(--wp--preset--color--ai-surface, #0f1d17);
	--jr-yes-border: var(--wp--preset--color--ai-border, #1e3a2d);
	--jr-maybe: #e8c27a;
	--jr-accent-surface: #0f1a24;
	--jr-accent-border: #1f3448;
	--jr-hover: #1c222b;
	--jr-border-strong: #3a4352;
	/* Role cards: a touch above the page, under the featured card's surface. */
	--jr-card: #13181f;
	--jr-divider: #1f2630;
	--jr-mono: var(--wp--preset--font-family--geist-mono, "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace);

	color: var(--jr-text);
}

/*
 * One accent per list, from the theme palette (all above 10:1 on the dark
 * surfaces): Magento & Adobe Commerce blue (the theme's engineering/Magento
 * colour), E-commerce engineering mint, General IT violet. Set on the list's
 * section (jr-board--{list}) and on the subscribe box's feed links
 * (jr-subscribe__feed--{list}); read as --jr-list-accent.
 */
.jr-board--magento, .jr-subscribe__feed--magento { --jr-list-accent: var(--jr-accent); }
.jr-board--ecommerce, .jr-subscribe__feed--ecommerce { --jr-list-accent: var(--jr-ai); }
.jr-board--general, .jr-subscribe__feed--general { --jr-list-accent: var(--jr-career); }

/* The mockup's body text: 16px / 1.6 (the theme's is 17px / 1.65). */
.jr-board,
.jr-subscribe {
	font-size: 16px;
	line-height: 1.6;
}

/*
 * align="wide" / align="full" (shortcode attribute, adds core's alignwide /
 * alignfull class).
 *
 * In a constrained layout core already widens .alignwide children to
 * theme.json's wideSize, but only up to their parent's width. Branch Graph
 * nests the page content inside a constrained <article> that is itself
 * contentSize (760px) wide, so core's rule alone changes nothing. This breaks
 * the block out of that column instead: it is as wide as wideSize (or the
 * viewport, for full), minus the theme's side padding, and centred on the
 * column (which is centred on the page) with negative margins. Core's
 * constrained layout sets margin-inline: auto !important on its children,
 * so these margins need !important too. In a theme where .alignwide already
 * works, the result is the same width.
 */
.jr-board.alignwide,
.jr-subscribe.alignwide,
.jr-board.alignfull,
.jr-subscribe.alignfull {
	--jr-gutter: var(--wp--style--root--padding-left, 16px);
	--jr-align-width: min(var(--wp--style--global--wide-size, 1240px), calc(100vw - 2 * var(--jr-gutter)));

	box-sizing: border-box;
	width: var(--jr-align-width);
	max-width: none;
	margin-right: calc(50% - var(--jr-align-width) / 2) !important;
	margin-left: calc(50% - var(--jr-align-width) / 2) !important;
}
.jr-board.alignfull,
.jr-subscribe.alignfull {
	--jr-align-width: calc(100vw - 2 * var(--jr-gutter));
}

/* ---- "Job board" template and hero pattern --------------------------
 *
 * The template (templates/job-board.html) sets the width (wideSize) and the
 * top/bottom padding; here its sections stack without the theme's block gap,
 * because each section brings its own spacing, as in the mockup: the hero
 * 0 / 8px, each list 64px / 8px.
 */
.jr-job-board .jr-job-board__content > * { margin-block: 0; }

/* Hero row: headline left, subscribe box right; wraps on narrow screens. */
.jr-hero.jr-hero {
	gap: 32px 56px;
	align-items: center;
	padding-block-end: 8px;
}
.jr-hero > .jr-hero__copy { flex: 1 1 560px; min-width: 0; }
.jr-hero > .jr-hero__aside { flex: 1 1 360px; min-width: 0; }
.jr-hero .jr-hero__title {
	margin: 0;
	color: var(--jr-heading);
	font-size: clamp(34px, 4.5vw, 52px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.jr-hero .jr-hero__intro {
	max-width: 620px;
	margin: 18px 0 0;
	color: var(--jr-text);
	font-size: 18px;
	line-height: 1.6;
}

/* Visually hidden, read by screen readers. */
.jr-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---- List block ----------------------------------------------------- */

/* Spacing is padding, not margin, so a flow layout can't zero it on a first child. */
.jr-board { margin-block: 0; padding-block: 64px 8px; }
.jr-board__title { margin: 0; color: var(--jr-heading); font-size: 28px; font-weight: 600; line-height: 1.6; letter-spacing: normal; }
.jr-board__meta { color: var(--jr-muted); font-size: 16px; font-weight: 400; letter-spacing: normal; }
.jr-board__empty { margin: 24px 0 0; padding: 24px; border: 1px dashed var(--jr-border); border-radius: 12px; color: var(--jr-muted); }

/* Pick of the week card */
.jr-pick {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 48px;
	margin-top: 24px;
	padding: 28px;
	border: 1px solid var(--jr-border);
	border-radius: 16px;
	background: var(--jr-surface);
}
.jr-pick__main { flex: 1 1 440px; min-width: 0; }
.jr-pick__eyebrow {
	margin: 0;
	color: var(--jr-muted);
	font-family: var(--jr-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.jr-pick__title { margin: 8px 0 0; color: var(--jr-heading); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: normal; overflow-wrap: anywhere; }
.jr-pick__company { margin: 6px 0 0; color: var(--jr-muted); font-size: 17px; }
.jr-pick__note { max-width: 620px; margin-top: 18px; }
.jr-pick__note p { margin: 0 0 12px; }
.jr-pick__note p:last-child { margin-bottom: 0; }

.jr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.jr-chip {
	padding: 2px 8px;
	border: 1px solid var(--jr-border);
	border-radius: 6px;
	background: var(--jr-surface-alt);
	color: var(--jr-text);
	font-family: var(--jr-mono);
	font-size: 12px;
}

.jr-pick__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 22px 0 0; }
.jr-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 8px;
	background: var(--jr-heading);
	color: var(--jr-base-deep);
	font-weight: 600;
	text-decoration: none;
}
.jr-button:hover { background: #ffffff; color: var(--jr-base-deep); }
.jr-button:focus-visible { outline: 2px solid var(--jr-accent); outline-offset: 3px; color: var(--jr-base-deep); }
/* Outline variant (role cards' "Apply"), in the list's accent. */
.jr-button--outline {
	padding: 0 18px;
	border: 1px solid var(--jr-list-accent, var(--jr-accent));
	background: transparent;
	color: var(--jr-list-accent, var(--jr-accent));
}
.jr-button--outline:hover { border-color: var(--jr-heading); background: transparent; color: var(--jr-heading); }
.jr-button--outline:focus-visible { outline-color: var(--jr-list-accent, var(--jr-accent)); color: var(--jr-heading); }
.jr-pick__credit { color: var(--jr-muted); font-size: 14px; }

/* Facts grid: two columns beside the text, one column on phones. */
.jr-facts {
	display: grid;
	flex: 0 1 360px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
	align-content: start;
	margin: 0;
}
.jr-facts__item { min-width: 0; }
.jr-facts__item--wide { grid-column: 1 / -1; }
.jr-facts dt { color: var(--jr-muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.jr-facts dd { margin: 2px 0 0; color: var(--jr-heading); font-size: 15px; overflow-wrap: anywhere; }
/* Long values (older answers) stop at two lines; the title attribute has the full text. */
.jr-facts__value {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.jr-pill {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid var(--jr-yes-border);
	border-radius: 999px;
	background: var(--jr-yes-surface);
	color: var(--jr-yes);
	font-size: 12px;
	font-weight: 600;
}
.jr-pill--maybe { border-color: #4a3c1f; background: #1d1810; color: var(--jr-maybe); }
/* "Remote" highlight: the engineering accent (#8ad1ff on #0f1a24, about 11:1). */
.jr-pill--remote { border-color: #1f3a4f; background: #0f1a24; color: var(--jr-accent); }
/* Brazil and Remote pills side by side, wherever they sit. */
.jr-pills { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }

/* ---- "More in …" role cards (mockup "D2 · Open cards") -------------- *
 *
 * Each role is its own card: a header that always shows (title · company,
 * the "Pay · Workplace · Region · Level" summary, pills, the Hide/Details
 * toggle and an outline "Apply") and a body, open on load, with the note,
 * chips, source and the facts. job-radar-cards.js collapses one card to its
 * header ([hidden] on the body, jr-role--closed on the card); without the
 * script every card is open and the toggle stays hidden.
 *
 * The selectors are scoped under .jr-more / .jr-board so the theme's own
 * h4, list-item and button styles can't win over them.
 */
.jr-more__head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: baseline;
	justify-content: space-between;
	margin: 40px 0 0;
}
.jr-board .jr-more__title { margin: 0; color: var(--jr-muted); font-size: 16px; font-weight: 600; line-height: 1.6; letter-spacing: normal; }
.jr-board .jr-more__legend { margin: 0; color: var(--jr-muted); font-size: 13px; }

.jr-board .jr-more {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.jr-more > .jr-role {
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 20px 24px;
	border: 1px solid var(--jr-border);
	border-radius: 14px;
	background: var(--jr-card);
	transition: border-color 0.15s ease;
}
.jr-more > .jr-role:hover { border-color: var(--jr-border-strong); }

/* Header: title and summary on the left; pills, toggle and Apply on the
   right, dropping under the title when there's no room. */
.jr-role__head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.jr-role__heading { flex: 1 1 380px; min-width: 0; }
.jr-more .jr-role__title { margin: 0; color: var(--jr-heading); font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: normal; overflow-wrap: anywhere; }
.jr-role__company { color: var(--jr-muted); font-weight: 400; }
.jr-more .jr-role__summary { margin: 2px 0 0; color: var(--jr-text); font-size: 14px; overflow-wrap: anywhere; }
.jr-role__actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.jr-role__actions .jr-pill { white-space: nowrap; }
.jr-role__actions .jr-button { white-space: nowrap; }

/* Hide / Details: a quiet outline button with a chevron that points up while open. */
.jr-board .jr-role__toggle {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--jr-border);
	border-radius: 8px;
	background: transparent;
	color: var(--jr-text);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.jr-board .jr-role__toggle:hover { border-color: var(--jr-border-strong); background: transparent; color: var(--jr-heading); }
.jr-board .jr-role__toggle:focus-visible { outline: 2px solid var(--jr-list-accent, var(--jr-accent)); outline-offset: 2px; }
.jr-role__caret {
	width: 6px;
	height: 6px;
	margin-top: 3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-135deg);
	transition: transform 0.15s ease;
}
.jr-role__toggle[aria-expanded="false"] .jr-role__caret { margin-top: -3px; transform: rotate(45deg); }

/* Body: note, chips and source on the left, the facts on the right; the
   facts drop under the text on narrow screens. */
.jr-role__body {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 48px;
	margin-top: 16px;
	padding-top: 18px;
	border-top: 1px solid var(--jr-divider);
}
.jr-role__about { flex: 1 1 520px; min-width: 0; }
.jr-role__note { max-width: 680px; }
.jr-role__note p { margin: 0 0 12px; }
.jr-role__note p:last-child { margin-bottom: 0; }
.jr-role__about .jr-chips { margin-top: 14px; }
.jr-role__about > .jr-chips:first-child { margin-top: 0; }
.jr-more .jr-role__source { margin: 12px 0 0; color: var(--jr-muted); font-size: 13px; }
.jr-role__about > .jr-role__source:first-child { margin-top: 0; }
.jr-role__facts.jr-facts { flex: 0 1 340px; gap: 14px 20px; }
.jr-role__facts dd { font-size: 14px; }

/* "Show 20 more (55 left)" under the cards (job-radar-lists.js reveals it; hidden without JS).
   After a click, focus moves to the first revealed job's title (tabindex="-1"). */
.jr-showmore { display: flex; justify-content: center; margin: 32px 0 0; }
.jr-showmore__button { cursor: pointer; font: inherit; font-weight: 600; }
.jr-pick__title[tabindex="-1"]:focus,
.jr-role__title[tabindex="-1"]:focus { outline: 2px solid var(--jr-list-accent, var(--jr-accent)); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 720px) {
	.jr-more > .jr-role { padding: 16px; }
	.jr-role__heading { flex-basis: 100%; }
	.jr-role__about { flex-basis: 100%; }
	.jr-role__facts.jr-facts { flex-basis: 100%; }
}

/* ---- Subscribe box -------------------------------------------------- */

.jr-subscribe {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border: 1px solid var(--jr-border);
	border-radius: 14px;
	background: var(--jr-surface);
}
.jr-subscribe__title { margin: 0; color: var(--jr-heading); font-weight: 600; }
.jr-subscribe__rss { margin: 0; color: var(--jr-muted); font-size: 13px; }

/* Without the email form: a short line, then one 44px RSS button per list
   (the same row height as the form's field and button). */
.jr-subscribe__lead { margin: 0; color: var(--jr-muted); font-size: 14px; }
.jr-subscribe__feeds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.jr-subscribe__feeds .jr-subscribe__feed {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--jr-border);
	border-radius: 8px;
	background: var(--jr-base-deep);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.jr-subscribe__feeds .jr-subscribe__feed:focus-visible { outline: 2px solid var(--jr-accent); outline-offset: 2px; }
/* The list's accent (see --jr-list-accent at the top). */
.jr-subscribe__feed { color: var(--jr-list-accent, var(--jr-accent)); }
.jr-subscribe__feed:hover, .jr-subscribe__feed:focus-visible { color: var(--jr-heading); }

/* Jetpack's form (jetpack/subscriptions block): field and button on one row
   that wraps, 44px touch targets, theme colours. */
.jr-subscribe .wp-block-jetpack-subscriptions { margin: 0; }
.jr-subscribe .wp-block-jetpack-subscriptions__form-elements { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-subscribe .wp-block-jetpack-subscriptions__form-elements p { flex: 0 0 auto; margin: 0; }
.jr-subscribe .wp-block-jetpack-subscriptions__form-elements #subscribe-email { flex: 1 1 200px; }
.jr-subscribe .wp-block-jetpack-subscriptions input[type="email"] {
	box-sizing: border-box;
	width: 100% !important; /* Jetpack sets an inline width. */
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--jr-border);
	border-radius: 8px;
	background: var(--jr-base-deep);
	color: var(--jr-heading);
	font: inherit;
	font-size: 15px;
}
.jr-subscribe .wp-block-jetpack-subscriptions input[type="email"]::placeholder { color: var(--jr-muted); opacity: 1; }
.jr-subscribe .wp-block-jetpack-subscriptions button[type="submit"] {
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: var(--jr-yes);
	color: var(--jr-base-deep);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.jr-subscribe .wp-block-jetpack-subscriptions input[type="email"]:focus-visible,
.jr-subscribe .wp-block-jetpack-subscriptions button[type="submit"]:focus-visible {
	outline: 2px solid var(--jr-accent);
	outline-offset: 2px;
}

/* ---- Filter bar ([job_radar_filters]) ------------------------------- *
 *
 * Mockup "Filter B · Dropdown bar" above 720px, "Filter D · Phone" (a
 * "Filters" button and a bottom sheet) at 720px and below. The bar is sticky
 * under the theme's sticky header: Branch Graph publishes where content
 * starts below it as --ts-header-offset (admin bar + 64px header); other
 * themes stick at the top. Its z-index stays under the header's (100), so the
 * header and its mobile menu always paint above it.
 *
 * Contrast on the dark surfaces: text #e6edf3 / #c9d1d9 above 11:1, muted
 * #9aa4b2 above 6.8:1, the accent #8ad1ff on #0f1a24 about 10.6:1, a pressed
 * chip's count #3a4352 on #e6edf3 about 8.4:1. Every control is at least 44px.
 */

/* The script shows and hides jobs, options and messages with [hidden];
   it must win over the display set on cards, chips and rows. */
.jr-filters[hidden],
.jr-filters [hidden],
.jr-sheet [hidden],
.jr-board [hidden] { display: none !important; }

.jr-filters {
	position: sticky;
	top: var(--ts-header-offset, 0px);
	z-index: 50;
	margin-block: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--jr-border);
	background: var(--jr-base);
	font-size: 16px;
	line-height: 1.6;
}
.jr-job-board .jr-filters { margin-top: 32px; }

.jr-filters__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.jr-filters__total { margin-left: auto; color: var(--jr-muted); font-size: 14px; }

/* Dropdown toggles */
.jr-dd { position: relative; }
.jr-dd__toggle {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--jr-border);
	border-radius: 10px;
	background: var(--jr-surface);
	color: var(--jr-heading);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.jr-dd__toggle:hover { border-color: var(--jr-border-strong); }
.jr-dd.is-active .jr-dd__toggle { border-color: var(--jr-accent); background: var(--jr-accent-surface); }
.jr-dd__label { color: var(--jr-muted); }
.jr-dd__caret { transition: transform 0.15s ease; }
.jr-dd__toggle[aria-expanded="true"] .jr-dd__caret { transform: rotate(180deg); }

/* Popover of options */
.jr-dd__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 2px;
	box-sizing: border-box;
	min-width: 240px;
	max-width: calc(100vw - 32px);
	padding: 8px;
	border: 1px solid var(--jr-border);
	border-radius: 12px;
	background: var(--jr-surface);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.jr-dd__menu.is-end { right: 0; left: auto; }
.jr-opt {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--jr-text);
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}
.jr-opt:hover { background: var(--jr-hover); }
.jr-opt[aria-pressed="true"] { background: var(--jr-accent-surface); color: var(--jr-accent); font-weight: 600; }
.jr-opt__n,
.jr-chipbtn__n { color: var(--jr-muted); font-family: var(--jr-mono); font-size: 12px; }

/* Active-filter chips and "Clear all" */
.jr-filters__active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.jr-filters__tags { display: contents; }
.jr-tag {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--jr-accent-border);
	border-radius: 999px;
	background: var(--jr-accent-surface);
	color: var(--jr-accent);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.jr-tag:hover { border-color: var(--jr-accent); }
.jr-filters__clear {
	min-height: 44px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	background: none;
	color: var(--jr-accent);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.jr-filters__clear:hover { color: var(--jr-heading); text-decoration: underline; }

.jr-dd__toggle:focus-visible,
.jr-opt:focus-visible,
.jr-tag:focus-visible,
.jr-filters__clear:focus-visible,
.jr-filters__open:focus-visible,
.jr-chipbtn:focus-visible,
.jr-sheet__done:focus-visible {
	outline: 2px solid var(--jr-accent);
	outline-offset: 2px;
}

/* Phone toolbar: hidden above 720px */
.jr-filters__phone { display: none; }
.jr-filters__open {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--jr-accent);
	border-radius: 999px;
	background: var(--jr-accent-surface);
	color: var(--jr-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.jr-filters__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--jr-accent);
	color: var(--jr-base-deep);
	font-size: 12px;
}

/* Bottom sheet (a modal <dialog>) */
.jr-sheet {
	position: fixed;
	inset: auto 0 0;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: min(640px, 85vh);
	max-height: 85vh;
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--jr-border);
	border-radius: 18px 18px 0 0;
	background: var(--jr-surface);
	color: var(--jr-text);
	font-size: 15px;
	line-height: 1.5;
}
.jr-sheet::backdrop { background: rgba(0, 0, 0, 0.55); }
.jr-sheet[open] { display: block; }
html.jr-sheet-open { overflow: hidden; }
.jr-sheet__panel { display: flex; flex-direction: column; height: 100%; }
.jr-sheet__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 6px;
	border-bottom: 1px solid #1f2630;
}
.jr-sheet__grip {
	position: absolute;
	top: 6px;
	left: 50%;
	width: 40px;
	height: 4px;
	margin-left: -20px;
	border-radius: 4px;
	background: var(--jr-border-strong);
}
.jr-sheet__title { margin: 0; color: var(--jr-heading); font-size: 17px; font-weight: 600; line-height: 44px; letter-spacing: normal; }
.jr-sheet__title:focus { outline: none; }
.jr-sheet__body { flex: 1; overflow-y: auto; padding: 6px 16px; overscroll-behavior: contain; }
.jr-sheet__group { padding: 12px 0; border-bottom: 1px solid #1f2630; }
.jr-sheet__group:last-child { border-bottom: 0; }
.jr-sheet__label { margin: 0 0 8px; color: var(--jr-muted); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.jr-sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-chipbtn {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--jr-border);
	border-radius: 999px;
	background: transparent;
	color: var(--jr-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.jr-chipbtn:hover { border-color: var(--jr-border-strong); color: var(--jr-heading); }
.jr-chipbtn[aria-pressed="true"] { border-color: var(--jr-heading); background: var(--jr-heading); color: var(--jr-base-deep); font-weight: 600; }
.jr-chipbtn[aria-pressed="true"] .jr-chipbtn__n { color: var(--jr-border-strong); }
.jr-sheet__foot { padding: 12px 16px 18px; border-top: 1px solid #1f2630; }
.jr-sheet__done {
	width: 100%;
	min-height: 48px;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: var(--jr-heading);
	color: var(--jr-base-deep);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

/* "No roles in this list match your filters." */
.jr-board__nomatch { margin-top: 18px; padding: 18px; }

@media (max-width: 720px) {
	.jr-filters { padding: 10px 0; }
	.jr-job-board .jr-filters { margin-top: 20px; }
	.jr-filters__bar { display: none; }
	.jr-filters__phone { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
	.jr-dd__caret,
	.jr-role__caret,
	.jr-more > .jr-role { transition: none; }
}
