/* =====================================================================
   JobX theme
   Colours come from the logo: ink black, X blue, pk green.
   ===================================================================== */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
	--ink: #0b0f14;
	--text: #1d2633;
	--muted: #5d6878;
	--faint: #8a94a3;
	--line: #e4e8ef;
	--line-2: #eef1f5;
	--bg: #ffffff;
	--soft: #f6f8fb;
	--blue: #0084fd;
	--blue-d: #0068c9;
	--blue-50: #ecf5ff;
	--blue-100: #d4e9ff;
	--green: #02a103;
	--green-d: #017d02;
	--green-50: #e8f7e8;
	--red: #dc3a41;
	--red-50: #fdeeee;
	--amber: #a86200;
	--amber-50: #fff4e0;

	--r-sm: 10px;
	--r: 14px;
	--r-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(11, 15, 20, .05);
	--shadow: 0 1px 2px rgba(11, 15, 20, .04), 0 12px 32px -16px rgba(11, 15, 20, .2);
	--shadow-lg: 0 2px 6px rgba(11, 15, 20, .05), 0 28px 60px -24px rgba(11, 15, 20, .3);
	--ease: cubic-bezier(.22, .8, .24, 1);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sticky-top: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	word-spacing: .05em;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue-100); color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn, .jobx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
	font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap;
	transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon, .jobx-btn .icon { width: 17px; height: 17px; }
.btn--primary, .jobx-btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 132, 253, .6); }
.btn--primary:hover, .jobx-btn--primary:hover { background: var(--blue-d); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(0, 104, 201, .7); }
.btn--ghost, .jobx-btn--ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn--ghost:hover, .jobx-btn--ghost:hover { color: var(--ink); border-color: #c9d1dc; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn--disabled { background: var(--soft); color: var(--faint); border-color: var(--line); cursor: not-allowed; }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--block, .jobx-btn--block { width: 100%; }
.btn:active, .jobx-btn:active { transform: translateY(0) scale(.98); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: var(--sticky-top); z-index: 60;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s var(--ease);
}
.admin-bar { --sticky-top: 32px; }
@media (max-width: 782px) { .admin-bar { --sticky-top: 46px; } }
@media (max-width: 600px) { .admin-bar { --sticky-top: 0px; } }
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(11, 15, 20, .35); }

.header-main { display: flex; align-items: center; gap: 28px; height: 72px; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__img { height: 34px; width: auto; display: block; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav .menu a {
	position: relative; display: block; padding: 8px 14px; border-radius: 8px;
	font-size: 15px; font-weight: 600; color: var(--text);
	transition: color .2s var(--ease), background-color .2s var(--ease);
}
.primary-nav .menu a:hover { color: var(--ink); background: var(--soft); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--ink); }
.primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after {
	content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px;
	border-radius: 50%; background: var(--blue);
}
.primary-nav__account { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-login { font-size: 15px; font-weight: 600; color: var(--text); }
.header-login:hover { color: var(--blue); }
.account-chip {
	display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px;
	border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 14px; font-weight: 700;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.account-chip:hover { color: var(--ink); border-color: #c9d1dc; box-shadow: var(--shadow-sm); }
.account-chip__avatar {
	width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
	background: var(--ink); color: #fff; font-size: 12.5px; letter-spacing: .02em;
}

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; margin: 0 auto; }
.nav-toggle__bars span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle__bars span:nth-child(3) { width: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { width: 18px; transform: translateY(-6px) rotate(-45deg); }

/* Category bar */
.catbar { position: relative; z-index: 1; border-top: 1px solid var(--line-2); }
.catbar__inner { display: flex; align-items: center; gap: 14px; height: 50px; }
.catbar__label { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.catbar__scroll {
	display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent 100%);
	padding: 0 40px 0 12px; margin-left: -12px;
}
.catbar__scroll::-webkit-scrollbar { display: none; }
.catbar__chip {
	flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
	font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.catbar__chip:hover { background: var(--soft); color: var(--ink); }
.catbar__chip.is-active { background: var(--ink); color: #fff; }
.catbar__count { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--line-2); color: var(--muted); }
.catbar__chip.is-active .catbar__count { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #f7fafe; padding: 64px 0 96px; }
.hero__grid-bg {
	position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(11, 15, 20, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 15, 20, .045) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 99px;
	background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text);
}
.eyebrow__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.eyebrow__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.hero__title { margin: 20px 0 18px; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; max-width: 12.5em; }
.hero__text { font-size: 18px; color: var(--muted); max-width: 33em; }

.hero-search {
	display: flex; align-items: stretch; gap: 6px; margin-top: 30px; padding: 7px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
	max-width: 620px;
}
.hero-search__field { display: flex; align-items: center; gap: 10px; flex: 1.3; min-width: 0; padding: 0 12px; color: var(--faint); }
.hero-search__field + .hero-search__field { border-left: 1px solid var(--line); }
.hero-search__field--select { flex: 1; }
.hero-search input, .hero-search select { width: 100%; height: 48px; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); min-width: 0; }
.hero-search select { cursor: pointer; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235d6878' stroke-width='1.8'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") right 2px center no-repeat; padding-right: 18px; }
.hero-search input::placeholder { color: var(--faint); }
.hero-search .btn { padding: 0 22px; }
.hero__popular { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero__popular a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.hero__popular a:hover { color: var(--ink); text-decoration-color: var(--blue); }

/* 3D scene */
.hero__visual { position: relative; height: 470px; }
.scene { position: absolute; inset: 0; perspective: 1300px; perspective-origin: 50% 40%; }
.scene__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); will-change: transform; }

.x3d { position: absolute; width: 240px; height: 240px; transform-style: preserve-3d; pointer-events: none; }
.x3d__body { position: absolute; inset: 0; transform-style: preserve-3d; animation: x-sway 10s ease-in-out infinite alternate; }
.x3d__layer { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--i) * -2.2px)); }
.x3d__layer path { fill: #00498c; }
.x3d__layer:nth-last-child(2) path { fill: #1f93ff; }
.x3d__layer.is-front path { fill: var(--blue); }
.scene__x { left: 50%; top: 44%; margin: -120px 0 0 -120px; transform: translateZ(-40px); }
.scene__ring {
	position: absolute; left: 50%; top: 78%; width: 380px; height: 380px; margin: -190px 0 0 -190px;
	border-radius: 50%; border: 1.5px dashed rgba(0, 132, 253, .35);
	background: radial-gradient(closest-side, rgba(0, 132, 253, .12), transparent 70%);
	transform: rotateX(76deg) translateZ(-60px); animation: ring-spin 40s linear infinite;
}

.float-card {
	position: absolute; width: 248px; padding: 14px 16px 14px; border-radius: var(--r);
	background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
	display: grid; gap: 4px; animation: bob 7s ease-in-out infinite;
	backface-visibility: hidden;
}
.float-card--1 { left: 0; top: 4%; transform: translateZ(70px); }
.float-card--2 { right: -2%; top: 36%; transform: translateZ(130px); animation-delay: -2.4s; }
.float-card--3 { left: 6%; bottom: 4%; transform: translateZ(90px); animation-delay: -4.6s; }
.float-card__cat { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.float-card__title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; padding-right: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.float-card__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.float-card__meta span { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--soft); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; }
.mini-badge { justify-self: start; margin-top: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.mini-badge.is-matched { background: var(--green-50); color: var(--green-d); }
.mini-badge.is-not-matched { background: var(--red-50); color: var(--red); }
.float-pill {
	position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 10px; border-radius: 99px;
	background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
	box-shadow: 0 16px 30px -14px rgba(11, 15, 20, .6); animation: bob 6s ease-in-out infinite;
}
.float-pill .icon { width: 15px; height: 15px; color: #3ddc3f; }
.float-pill--a { right: 4%; top: 6%; transform: translateZ(170px); animation-delay: -1.2s; }
.float-pill--b { right: 6%; bottom: 14%; transform: translateZ(60px); animation-delay: -3.3s; }
.float-pill--b .icon { color: #6bb8ff; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -44px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__grid { padding: 0; }
.stats .container { width: calc(100% - 48px); padding: 0; max-width: 1152px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.stat { display: grid; gap: 2px; padding: 22px 26px; border-left: 1px solid var(--line-2); }
.stat:first-child { border-left: 0; }
.stat__num { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat__label { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--cats { padding-top: 96px; }
.section--latest { background: var(--soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.65rem, 2.6vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; }
.section-head p { margin-top: 8px; color: var(--muted); max-width: 36em; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
	position: relative; display: grid; gap: 2px; padding: 22px; border-radius: 16px;
	background: #fff; border: 1px solid var(--line); color: var(--ink);
	transform-style: preserve-3d;
	transition: transform .5s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.cat-card:hover { color: var(--ink); border-color: var(--blue-100); box-shadow: var(--shadow); }
.cat-card__mono {
	width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
	background: var(--blue-50); color: var(--blue); font-weight: 800; font-size: 15px; letter-spacing: .02em;
	transform: translateZ(24px); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.cat-card:nth-child(3n+2) .cat-card__mono { background: var(--green-50); color: var(--green-d); }
.cat-card:nth-child(3n) .cat-card__mono { background: #eef0f3; color: var(--ink); }
.cat-card:hover .cat-card__mono { background: var(--ink); color: #fff; }
.cat-card__name { font-weight: 700; font-size: 16px; transform: translateZ(14px); }
.cat-card__count { font-size: 13.5px; color: var(--muted); }
.cat-card__arrow { position: absolute; top: 22px; right: 20px; color: var(--faint); transition: transform .35s var(--ease), color .3s; }
.cat-card:hover .cat-card__arrow { color: var(--blue); transform: translateX(3px); }

/* Job cards */
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.job-card {
	position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 16px;
	background: #fff; border: 1px solid var(--line); border-radius: 16px;
	transform-style: preserve-3d;
	transition: transform .5s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease), opacity .4s;
}
.job-card:hover { border-color: #d3e2f4; box-shadow: var(--shadow); }
.job-card.is-closed { opacity: .7; }
.job-card.is-hidden { display: none; }
.job-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.job-card__head { display: grid; gap: 4px; }
.job-card__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); justify-self: start; }
.job-card__title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.job-card__title a { color: var(--ink); background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.job-card__title a:hover { color: var(--ink); background-size: 100% 1.5px; }
.job-card__org { font-size: 14px; color: var(--muted); }
.job-card__org .sep { margin: 0 6px; color: var(--faint); }
.job-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.fact { background: var(--soft); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.fact--wide { grid-column: 1 / -1; }
.fact--seats { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fact dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.fact dt .icon { width: 14px; height: 14px; color: var(--faint); }
.fact dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.fact--seats dd { display: flex; align-items: center; gap: 10px; margin: 0; }
.fact--seats strong { font-size: 18px; }
.seat-split { display: flex; gap: 4px; }
.seat-split span { font-size: 11.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.job-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.fee { font-size: 14px; color: var(--muted); }
.fee strong { color: var(--ink); margin-left: 2px; }
.job-card__link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; }
.job-card__link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.job-card__link:hover .icon { transform: translateX(3px); }

/* Match badge */
.jobx-match {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; padding: 5px 11px 5px 9px; border-radius: 99px;
	font-size: 12.5px; font-weight: 700; line-height: 1.3; background: var(--soft); color: var(--muted);
}
a.jobx-match:hover { color: var(--blue); }
.jobx-match__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.jobx-match.is-matched { background: var(--green-50); color: var(--green-d); }
.jobx-match.is-matched .jobx-match__dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: ping 2.6s var(--ease) infinite; }
.jobx-match.is-not-matched { background: var(--red-50); color: var(--red); }
.jobx-match.is-pending { background: var(--amber-50); color: var(--amber); }
.jobx-match.is-not-matched:has(.jobx-match__why) { border-radius: 12px; }
.jobx-match__why { flex-basis: 100%; padding-left: 14px; font-weight: 500; opacity: .9; }
.jobx-match--lg { font-size: 14px; padding: 8px 15px 8px 12px; }
.jobx-match--lg .jobx-match__dot { width: 8px; height: 8px; }

.deadline { flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 0; white-space: nowrap; }
.deadline.is-soon { color: var(--amber); background: var(--amber-50); padding: 5px 10px; border-radius: 99px; }
.deadline.is-closed { color: var(--red); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tabs__btn {
	padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line); background: #fff;
	font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tabs__btn:hover { color: var(--ink); border-color: #c9d1dc; }
.tabs__btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 18px; box-shadow: 4px 4px 0 var(--blue); }
.step:nth-child(2) .step__num { box-shadow: 4px 4px 0 var(--green); }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* CTA */
.cta { padding: 0 0 96px; }
.cta__inner {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 24px;
	background: var(--ink); color: rgba(255, 255, 255, .75); border-radius: 26px; padding: 52px 56px;
	perspective: 900px;
}
.cta__inner::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000, transparent 70%);
	mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000, transparent 70%);
}
.cta h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.cta p { max-width: 32em; margin-bottom: 26px; }
.cta__copy { position: relative; }
.cta__x { position: relative; width: 180px; height: 180px; justify-self: center; }

/* ---------- Page hero / listing ---------- */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line-2); padding: 44px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.page-hero p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.filters__field { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--faint); background: #fff; transition: border-color .2s; }
.filters__field:focus-within { border-color: var(--blue); }
.filters__field--grow { flex: 1 1 240px; }
.filters__field input, .filters__field select { border: 0; outline: 0; background: transparent; height: 100%; font-size: 14.5px; color: var(--ink); min-width: 0; width: 100%; }
.filters__field select { cursor: pointer; }
.filters__toggles { display: flex; gap: 14px; padding: 0 8px; }
.filters .btn { height: 46px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__ui { position: relative; width: 36px; height: 21px; border-radius: 99px; background: #d5dbe3; transition: background-color .25s var(--ease); flex: none; }
.toggle__ui::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--blue); }
.toggle input:checked + .toggle__ui::after { transform: translateX(15px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--blue); outline-offset: 2px; }
.section--list { padding-top: 40px; }

.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--text); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
a.page-numbers:hover { border-color: #c9d1dc; color: var(--ink); }

.empty { text-align: center; padding: 56px 24px; border: 1px dashed #d3d9e2; border-radius: 18px; background: #fff; color: var(--muted); }
.empty h2 { font-size: 20px; margin-bottom: 6px; }
.empty .btn { margin-top: 18px; }

/* ---------- Single job ---------- */
.job-hero { background: var(--soft); border-bottom: 1px solid var(--line-2); padding: 30px 0 34px; }
.job-hero__badge { margin-bottom: 14px; }
.job-hero__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; max-width: 22em; }
.job-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.job-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.job-hero__meta .icon { color: var(--faint); }
.job-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.job-hero__actions .icon--brand { color: #1fa855; }

.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 32px; padding-bottom: 88px; align-items: start; }
.job-side { position: sticky; top: calc(var(--sticky-top) + 140px); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-bottom: 20px; }
.panel__title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 16px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facts-grid__item { background: var(--soft); border-radius: 12px; padding: 14px 16px; }
.facts-grid__item--wide { grid-column: 1 / -1; }
.facts-grid dt { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.facts-grid dt .icon { width: 16px; height: 16px; color: var(--faint); }
.facts-grid dd { margin: 6px 0 0; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.facts-grid dd small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.facts-grid dd small.is-closed { color: var(--red); }
.big { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.seat-bar { display: flex; gap: 3px; height: 9px; border-radius: 99px; overflow: hidden; margin: 12px 0 10px; background: var(--line); }
.seat-bar__part { width: 0; transition: width 1.2s var(--ease) .2s; }
.is-in .seat-bar__part, html:not(.js) .seat-bar__part { width: var(--w); }
.seat-bar__part--m { background: var(--blue); }
.seat-bar__part--f { background: var(--green); }
.seat-bar__part--o { background: #9aa6b6; }
.seat-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seat-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.seat-legend .m::before { background: var(--blue); }
.seat-legend .f::before { background: var(--green); }
.seat-legend .o::before { background: #9aa6b6; }

.advert { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.advert img { display: block; width: 100%; transition: transform .8s var(--ease); }
.advert:hover img { transform: scale(1.02); }
.advert__hint { position: absolute; right: 12px; bottom: 12px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.disclaimer { font-size: 13.5px; color: #774700; background: var(--amber-50); border-radius: 12px; padding: 12px 16px; }

.panel--eligibility { position: relative; overflow: hidden; }
.panel--eligibility::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--line); }
.panel--eligibility.is-matched::before { background: var(--green); }
.panel--eligibility.is-not_matched::before { background: var(--red); }
.panel--eligibility.is-incomplete::before { background: #f0a020; }
.panel--eligibility > p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.panel--eligibility .btn + .btn { margin-top: 8px; }
.checks { list-style: none; margin: 0 0 14px; padding: 0; }
.check { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.check:last-child { border-bottom: 0; }
.check__icon { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.check__icon .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.check.is-ok .check__icon { background: var(--green-50); color: var(--green-d); }
.check.is-fail .check__icon { background: var(--red-50); color: var(--red); }
.check strong { display: block; font-size: 14.5px; color: var(--ink); }
.check small { display: block; font-size: 13px; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 700; }
.related { list-style: none; margin: 0; padding: 0; }
.related li { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.related li:last-child { border-bottom: 0; padding-bottom: 0; }
.related a { display: block; font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.35; }
.related a:hover { color: var(--blue); }
.related span { font-size: 13px; color: var(--muted); }

/* ---------- Prose ---------- */
.section--page { padding: 48px 0 88px; }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 22px; font-weight: 800; margin-top: 2em; }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--soft); }
.prose .panel__title { font-size: 12.5px; font-weight: 700; margin: 0 0 16px; letter-spacing: .08em; }
.panel.prose > .panel__title + * { margin-top: 0; }
.post-list { display: grid; gap: 16px; }
.post-item { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; }
.post-item__date { font-size: 13px; color: var(--faint); }
.post-item h2 { font-size: 20px; margin: 4px 0 6px; }
.post-item h2 a { color: var(--ink); }
.post-item p { color: var(--muted); }

/* ---------- Auth pages + JobX Core forms ---------- */
.auth { background: var(--soft); padding: 44px 0 88px; }
.auth__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: stretch; }
.auth__side {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 540px; padding: 36px; border-radius: 24px; background: var(--ink); color: rgba(255, 255, 255, .78);
	perspective: 900px;
}
.auth__side::before {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000, transparent 75%);
}
.auth__x { position: absolute; left: 50%; top: 38px; width: 200px; height: 200px; margin-left: -100px; }
.auth__side-copy { position: relative; }
.auth__kicker { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.auth__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.auth__list li { display: flex; gap: 10px; }
.auth__list .icon { color: #3ddc3f; margin-top: 3px; }
.auth__card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px 44px; box-shadow: var(--shadow); }
.auth__title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.auth__sub { color: var(--muted); margin-top: 4px; }
.auth__card .jobx-form { margin-top: 26px; }

.jobx-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.jobx-form legend { padding: 0; margin-bottom: 14px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.jobx-field { margin-bottom: 16px; }
.jobx-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.jobx-field input, .jobx-field select {
	width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
	background: #fff; font-size: 15px; color: var(--ink);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.jobx-field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235d6878' stroke-width='1.8'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 36px; cursor: pointer; }
.jobx-field input:hover, .jobx-field select:hover { border-color: #c9d1dc; }
.jobx-field input:focus, .jobx-field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 132, 253, .14); }
.jobx-field input::placeholder { color: #a7b0bd; }
.jobx-field__aside { font-size: 13px; font-weight: 600; }
.jobx-optional { font-size: 12px; font-weight: 500; color: var(--faint); }
.jobx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jobx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jobx-check { display: flex; align-items: center; gap: 8px; margin: 2px 0 20px; font-size: 14px; color: var(--muted); cursor: pointer; }
.jobx-check input { width: 17px; height: 17px; accent-color: var(--blue); }
.jobx-form .jobx-btn { padding: 14px 22px; }
.jobx-form__alt { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--muted); }
.jobx-form__alt a { font-weight: 700; }
.jobx-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.jobx-form__status { margin-top: 14px; font-size: 13.5px; color: var(--amber); }
.jobx-privacy-note { font-size: 13.5px; color: var(--muted); background: var(--soft); border-radius: var(--r-sm); padding: 11px 14px; margin-bottom: 18px; }
.jobx-alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14.5px; margin-bottom: 18px; background: var(--blue-50); color: #0a4b88; }
.jobx-alert ul { margin: 0; padding-left: 18px; }
.jobx-alert--error { background: var(--red-50); color: #a1191f; }
.jobx-alert--success { background: var(--green-50); color: var(--green-d); }
.jobx-alert a { font-weight: 700; text-decoration: underline; }

/* ---------- 404 ---------- */
.notfound { padding: 80px 0 100px; text-align: center; background: var(--soft); }
.notfound__inner { display: grid; justify-items: center; gap: 14px; perspective: 900px; }
.notfound__x { position: relative; width: 150px; height: 150px; margin-bottom: 18px; }
.notfound h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
.notfound p { color: var(--muted); max-width: 30em; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); padding-top: 64px; font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .72); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand p { margin: 16px 0 20px; max-width: 26em; }
.site-footer h2 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .social { display: flex; gap: 8px; }
.site-footer .social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); transition: background-color .2s, color .2s, transform .3s var(--ease); }
.site-footer .social a:hover { background: var(--blue); transform: translateY(-2px); }
.site-footer .social .icon { width: 17px; height: 17px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; padding-bottom: 28px; font-size: 13.5px; }

/* ---------- Motion ---------- */
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes x-sway { 0% { transform: rotateY(-34deg) rotateX(8deg); } 100% { transform: rotateY(34deg) rotateX(-6deg); } }
@keyframes ring-spin { to { transform: rotateX(76deg) translateZ(-60px) rotateZ(360deg); } }
@keyframes card-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

.js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease), transform .5s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease); transition-delay: calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms), 0s, 0s, 0s; }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.job-card.is-entering { animation: card-in .5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.js [data-reveal] { opacity: 1; translate: none; }
	.x3d__body { transform: rotateY(-24deg) rotateX(6deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hero__inner { grid-template-columns: 1fr 1fr; }
	.float-card { width: 220px; }
	.cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; display: block; padding: 12px 20px 20px;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(11, 15, 20, .3);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
	}
	.primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .menu { flex-direction: column; gap: 2px; }
	.primary-nav .menu a { padding: 12px 10px; font-size: 16px; }
	.primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { left: auto; right: 12px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
	.primary-nav__account { display: grid; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
	.header-main { justify-content: space-between; }
	.nav-toggle { display: grid; place-items: center; }
	.header-login { display: none; }

	.hero { padding: 40px 0 88px; }
	.hero__inner { grid-template-columns: 1fr; gap: 12px; }
	.hero__visual { height: 400px; max-width: 560px; width: 100%; margin: 0 auto; }
	.stats__grid { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
	.job-grid { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr; }
	.job-layout { grid-template-columns: 1fr; }
	.job-side { position: static; }
	.facts-grid { grid-template-columns: 1fr 1fr; }
	.auth__grid { grid-template-columns: 1fr; }
	.auth__side { min-height: 0; padding-top: 220px; order: 2; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.cta__inner { grid-template-columns: 1fr; padding: 40px 32px; }
	.cta__x { display: none; }
}

@media (max-width: 640px) {
	.container { padding: 0 18px; }
	.header-main { height: 64px; gap: 12px; }
	.brand__img { height: 28px; }
	.header-actions .btn--sm { display: none; }
	.account-chip { padding: 3px; }
	.account-chip__label { display: none; }
	.catbar__label { display: none; }
	.catbar__scroll { padding-left: 18px; margin-left: -18px; }

	.hero__title { font-size: 2.15rem; }
	.hero__text { font-size: 16.5px; }
	.hero-search { flex-direction: column; padding: 8px; }
	.hero-search__field { padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
	.hero-search__field + .hero-search__field { border-left: 1px solid var(--line); }
	.hero-search .btn { height: 48px; }
	.hero__visual { height: 400px; margin-top: 28px; }
	.x3d { width: 170px; height: 170px; }
	.scene__x { top: 28%; margin: -85px 0 0 -85px; }
	.scene__ring { top: 66%; width: 280px; height: 280px; margin: -140px 0 0 -140px; }
	.float-card { width: 200px; padding: 11px 13px; }
	.float-card__title { font-size: 13.5px; }
	.float-card--1 { left: 2%; top: 46%; }
	.float-card--2 { right: 2%; top: 62%; }
	.float-card--3 { display: none; }
	.float-pill--a { right: 4%; top: 9%; }
	.float-pill--b { display: none; }
	.stats .container { width: calc(100% - 36px); }
	.stat { padding: 16px 18px; }
	.stat__num { font-size: 24px; }

	.section { padding: 64px 0; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.cat-card { padding: 16px; }
	.cat-card__arrow { display: none; }
	.job-grid { grid-template-columns: 1fr; }
	.filters__field, .filters .btn { flex: 1 1 100%; }
	.filters__toggles { flex: 1 1 100%; padding: 6px 4px; }
	.facts-grid { gap: 8px; }
	.facts-grid__item { padding: 12px 13px; }
	.facts-grid dd { font-size: 15px; }
	.job-hero__actions .btn { flex: 1 1 auto; }
	.auth { padding-top: 20px; }
	.auth__card { padding: 28px 22px; border-radius: 20px; }
	.jobx-row { grid-template-columns: 1fr; gap: 0; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =====================================================================
   v1.1 — menu dropdown, moving category bar, scholarships, MCQs,
   mock tests, study groups, donation popup
   ===================================================================== */

/* ---------- Dropdown menu ---------- */
.primary-nav .menu > li { position: relative; }
.primary-nav .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 4px; }
.primary-nav .menu-item-has-children > a::before {
	content: ""; order: 2; width: 7px; height: 7px; margin: -3px 0 0 4px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg); transition: transform .25s var(--ease); opacity: .7;
}
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 50%; min-width: 210px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s; z-index: 20;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.primary-nav .menu-item-has-children:hover > .sub-menu, .primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-nav .menu-item-has-children:hover > a::before { transform: rotate(225deg); margin-top: 3px; }
.primary-nav .sub-menu a { padding: 10px 12px; font-size: 14.5px; }
.primary-nav .sub-menu .current-menu-item > a::after { display: none; }
.primary-nav .sub-menu .current-menu-item > a { color: var(--blue); background: var(--blue-50); }

/* ---------- Moving category bar ---------- */
.catbar__scroll[data-marquee] { padding-left: 12px; }
.catbar__track { display: flex; width: max-content; }
.catbar__set { display: flex; gap: 4px; padding-right: 4px; }
.catbar__scroll.is-marquee { overflow: hidden; }
.catbar__scroll.is-marquee .catbar__track { animation: marquee var(--marquee-dur, 40s) linear infinite; will-change: transform; }
.catbar__scroll.is-marquee:hover .catbar__track,
.catbar__scroll.is-marquee:focus-within .catbar__track,
.catbar__scroll.is-marquee.is-paused .catbar__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Small helpers ---------- */
.small-note { font-size: 13px; color: var(--muted); margin: 10px 0 14px; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); border: 1px solid var(--line-2); }
.tag--blue { background: var(--blue-50); color: var(--blue-d); border-color: var(--blue-100); }
.tag--right { background: var(--green-50); color: var(--green-d); border-color: #c4ebc4; }
.tag--wrong { background: var(--red-50); color: var(--red); border-color: #f6c9cb; }
.tag--skipped { background: #f1f3f6; color: var(--muted); }
.jobx-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--blue); cursor: pointer; }
.jobx-linkbtn:hover { color: var(--blue-d); text-decoration: underline; }
.jobx-linkbtn[disabled] { color: var(--faint); cursor: default; text-decoration: none; }
.jobx-linkbtn--danger { color: var(--red); }
.jobx-btn--danger { background: var(--red); color: #fff; }
.jobx-btn--danger:hover { background: #b9262d; color: #fff; }
.jobx-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.jobx-turnstile { margin: 4px 0 16px; }
.empty--left { text-align: left; padding: 28px; }

/* ---------- Scholarships ---------- */
.sch-card__where { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-d); }
.sch-card__where .icon { width: 14px; height: 14px; }
.sch-card .fact dd.is-full { color: var(--green-d); }
.benefits { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: 12px; background: var(--green-50); color: #0d4f0e; }
.benefits .icon { color: var(--green); flex: none; margin-top: 2px; }
.benefits strong { display: block; color: var(--ink); }
.section--sch { padding-bottom: 40px; }

/* Prepare */
.prep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prep-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--text); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.prep-card:hover { color: var(--text); border-color: var(--blue-100); box-shadow: var(--shadow); }
.prep-card h3 { font-size: 20px; font-weight: 800; }
.prep-card p { color: var(--muted); flex: 1; }
.prep-card .link-arrow { margin-top: 6px; }
.prep-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue); transform: translateZ(26px); }
.prep-card__icon .icon { width: 24px; height: 24px; }
.prep-card--dark { background: var(--ink); border-color: var(--ink); }
.prep-card--dark h3 { color: #fff; }
.prep-card--dark p { color: rgba(255, 255, 255, .7); }
.prep-card--dark:hover { color: #fff; border-color: var(--ink); }
.prep-card--dark .prep-card__icon { background: rgba(255, 255, 255, .08); color: #6bb8ff; }
.prep-card--dark .link-arrow { color: #6bb8ff; }
.panel--prep .prep-list { list-style: none; margin: 0; padding: 0; }
.prep-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.panel--prep .btn + .btn { margin-top: 8px; }

/* App pages (past papers, tests, groups) */
.page-hero--app { padding: 36px 0 30px; }
.section--app { padding: 32px 0 88px; }
.app-jobx-groups .section--app { padding-top: 24px; }

/* ---------- Copy protection ---------- */
.jobx-protected .jobx-protect, .jobx-protected .jobx-protect * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.jobx-protected .jobx-protect img { pointer-events: none; }
.jobx-protected .jobx-protect {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='160'%3E%3Ctext x='10' y='90' transform='rotate(-18 130 80)' font-family='Arial' font-size='15' font-weight='700' fill='%230b0f14' fill-opacity='0.035'%3Ejobxportal.com%3C/text%3E%3C/svg%3E");
}
@media print {
	.jobx-protected .jobx-protect { display: none !important; }
	.jobx-protected .section--app::after { content: "Printing is disabled for this page. Visit jobxportal.com to read it online."; display: block; padding: 40px; font-size: 18px; }
}

/* ---------- Past papers / MCQ cards ---------- */
.pp__filters { margin-top: 0; margin-bottom: 18px; }
.pp__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pp__count { font-weight: 700; color: var(--ink); }
.pp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mcq { background-color: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.mcq__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mcq__num { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.mcq__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mcq__q { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.6; margin-bottom: 12px; overflow-x: auto; }
.mcq__img { margin: 0 0 14px; }
.mcq__img img { max-height: 340px; width: auto; border-radius: 10px; border: 1px solid var(--line); }
.mcq__opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mcq__opt { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid transparent; font-size: 15px; color: var(--text); transition: background-color .3s var(--ease), border-color .3s var(--ease); overflow-x: auto; }
.mcq__letter { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--muted); }
.mcq.is-revealed .mcq__opt.is-answer { background: var(--green-50); border-color: #a9dfaa; color: #0d4f0e; font-weight: 600; }
.mcq.is-revealed .mcq__opt.is-answer .mcq__letter { background: var(--green); border-color: var(--green); color: #fff; }
.mcq__opt.is-picked-wrong { background: var(--red-50); border-color: #f2b8bb; color: #8f1a1f; }
.mcq__opt.is-picked-wrong .mcq__letter { background: var(--red); border-color: var(--red); color: #fff; }
.mcq__you { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; white-space: nowrap; }
.mcq__foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.mcq__reveal { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; transition: border-color .2s, color .2s; }
.mcq__reveal:hover { border-color: var(--blue); color: var(--blue); }
.mcq__src { font-size: 13px; color: var(--faint); }
.mcq__explain { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--blue-50); color: #0a3f73; font-size: 14.5px; line-height: 1.65; }
.mcq.is-revealed .mcq__explain { display: block; animation: card-in .4s var(--ease) both; }
.mcq.state-wrong { border-left: 4px solid var(--red); }
.mcq.state-right { border-left: 4px solid var(--green); }
.mcq.state-skipped { border-left: 4px solid #c6cdd7; }
mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; max-width: 100%; }

/* ---------- Mock test builder ---------- */
.builder { display: grid; gap: 18px; padding-bottom: 96px; }
.builder__step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.builder__step header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.builder__step h2 { font-size: 18px; font-weight: 800; }
.builder__step header p { color: var(--muted); font-size: 14.5px; }
.builder__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; box-shadow: 3px 3px 0 var(--blue); }
.builder__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.builder__select { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.builder__select select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--text); transition: all .2s var(--ease); }
.chip:hover span { border-color: #c9d1dc; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.subject { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background-color .2s; }
.subject.is-on { border-color: var(--blue-100); background: var(--blue-50); }
.subject.is-empty { opacity: .55; }
.subject__info { display: grid; min-width: 0; }
.subject__info strong { font-size: 15px; color: var(--ink); }
.subject__info small { font-size: 12.5px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; flex: none; }
.stepper button { width: 36px; height: 38px; border: 0; background: none; font-size: 18px; font-weight: 700; color: var(--text); cursor: pointer; }
.stepper button:hover { background: var(--soft); }
.stepper input { width: 52px; height: 38px; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: center; font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.builder__summary {
	position: sticky; bottom: 16px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	padding: 14px 16px 14px 22px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 20px 40px -20px rgba(11, 15, 20, .6);
}
.builder__totals { display: flex; gap: 26px; }
.builder__totals div { display: flex; align-items: baseline; gap: 6px; }
.builder__totals span { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.builder__totals small { color: rgba(255, 255, 255, .65); font-size: 14px; }
.builder__warn { flex: 1 1 260px; font-size: 13.5px; color: #ffd27a; }
.builder__summary .jobx-btn { padding: 13px 26px; }

/* ---------- Test runner ---------- */
.runner__bar {
	position: sticky; top: calc(var(--sticky-top) + 122px); z-index: 20; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
	padding: 12px 14px 12px 18px; margin-bottom: 18px; border-radius: 16px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.runner__title { display: grid; flex: 1 1 200px; min-width: 0; }
.runner__title strong { color: var(--ink); }
.runner__title span { font-size: 13px; color: var(--muted); }
.runner__progress { position: relative; font-weight: 800; color: var(--ink); padding-bottom: 6px; min-width: 110px; }
.runner__progress small { font-weight: 500; color: var(--muted); }
.runner__progress i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.runner__progress i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--blue); transition: width .4s var(--ease); }
.runner__timer { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); padding: 6px 12px; border-radius: 10px; background: var(--soft); min-width: 92px; text-align: center; }
.runner__timer.is-low { color: #fff; background: var(--red); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.runner__body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; align-items: start; }
.runner__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rq { background-color: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; scroll-margin-top: calc(var(--sticky-top) + 220px); transition: border-color .3s; }
.rq.is-done { border-color: #cfe3fa; }
.rq__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rq__num { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); font-weight: 800; font-size: 13px; color: var(--ink); }
.rq.is-done .rq__num { background: var(--blue); border-color: var(--blue); color: #fff; }
.rq__sub { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rq__flag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.rq__flag input { accent-color: #f0a020; }
.rq__q { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.6; margin-bottom: 12px; overflow-x: auto; }
.rq__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rq__opt { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s; }
.rq__opt:hover { border-color: #b9c5d4; }
.rq__opt:active { transform: scale(.99); }
.rq__opt input { position: absolute; opacity: 0; pointer-events: none; }
.rq__letter { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--soft); font-size: 12.5px; font-weight: 800; color: var(--muted); transition: all .2s var(--ease); }
.rq__text { font-size: 15px; color: var(--text); padding-top: 2px; overflow-x: auto; }
.rq__opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.rq__opt:has(input:checked) .rq__letter { background: var(--blue); color: #fff; }
.rq__opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.rq__clear { margin-top: 10px; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--faint); cursor: pointer; visibility: hidden; }
.rq.is-done .rq__clear { visibility: visible; }
.rq__clear:hover { color: var(--red); }
.runner__nav { position: sticky; top: calc(var(--sticky-top) + 220px); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.runner__nav-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.runner__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-height: 46vh; overflow-y: auto; }
.runner__grid a { display: grid; place-items: center; height: 34px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text); }
.runner__grid a:hover { border-color: var(--blue); color: var(--blue); }
.runner__grid a.is-done { background: var(--blue); border-color: var(--blue); color: #fff; }
.runner__grid a.is-flag { box-shadow: inset 0 -3px 0 #f0a020; }
.runner__legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.runner__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); margin-right: 8px; vertical-align: -1px; }
.runner__legend i.is-done { background: var(--blue); border-color: var(--blue); }
.runner__legend i.is-flag { box-shadow: inset 0 -3px 0 #f0a020; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 15, 20, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); animation: modal-in .35s var(--ease) both; }
.modal__box h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.modal__box > p { color: var(--muted); }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal__x:hover { color: var(--ink); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal--donate .modal__box { text-align: center; max-width: 400px; }
.modal--donate .jobx-linkbtn { margin-top: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Donation box ---------- */
.donate { display: grid; justify-items: center; gap: 10px; text-align: center; }
.donate__cup { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff4e0; color: #a86200; }
.donate__cup svg { width: 30px; height: 30px; }
.donate__title { font-size: 22px; font-weight: 800; }
.donate__text { color: var(--muted); font-size: 15px; max-width: 30em; }
.donate__qr { margin: 6px 0; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.donate__qr img { display: block; width: 220px; max-width: 60vw; height: auto; border-radius: 8px; }
.donate__details { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--soft); border-radius: 10px; padding: 10px 14px; }
.section--page .donate { padding: 28px; border: 1px solid var(--line); border-radius: 20px; margin-top: 18px; }

/* ---------- Result ---------- */
.result { display: grid; gap: 20px; }
.result__hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 26px 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.ring { --c: var(--blue); width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); animation: ring-in 1.2s var(--ease) both; }
.tone-good .ring { --c: var(--green); }
.tone-low .ring { --c: var(--red); }
.ring__inner { width: 134px; height: 134px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; }
.ring__inner strong { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.ring__inner span { font-size: 12.5px; color: var(--muted); padding: 0 12px; }
@keyframes ring-in { from { transform: rotate(-90deg) scale(.85); opacity: 0; } }
.result__nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.result__nums div { padding: 14px; border-radius: 14px; background: var(--soft); display: grid; gap: 2px; }
.result__nums strong { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.result__nums span { font-size: 13px; color: var(--muted); }
.c-good { color: var(--green-d) !important; }
.c-bad { color: var(--red) !important; }
.result__subjects { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; }
.result__subjects h2, .review__head h2, .history h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.subbar { display: grid; grid-template-columns: 180px 1fr 60px; align-items: center; gap: 14px; padding: 7px 0; font-size: 14.5px; }
.subbar__name { font-weight: 600; color: var(--ink); }
.subbar__track { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.subbar__track i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--blue), #3aa0ff); animation: grow 1s var(--ease) both .2s; }
@keyframes grow { from { width: 0; } }
.subbar__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result__actions form { display: contents; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 14px; }
.review__head h2 { margin: 0; }
.review__head .tabs { margin: 0; }
.history { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.history ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history a { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-size: 14.5px; }
.history a:hover { border-color: var(--blue-100); color: var(--text); background: var(--blue-50); }
.history strong { color: var(--ink); }

/* ---------- Verify email ---------- */
.jobx-otp-input { font-size: 26px !important; font-weight: 800; letter-spacing: .5em; text-align: center; height: 60px !important; font-variant-numeric: tabular-nums; }
.jobx-resend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- Study groups ---------- */
.groups { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.groups__list h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.gcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.gcard:hover { color: var(--text); border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.gcard__mono { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 3px 3px 0 var(--blue); }
.gcard__mono--lg { width: 64px; height: 64px; font-size: 20px; border-radius: 18px; }
.gcard__body { display: grid; flex: 1; min-width: 0; }
.gcard__body strong { color: var(--ink); font-size: 16px; }
.gcard__body small { color: var(--muted); font-size: 13px; }
.gjoin { max-width: 460px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 10px; padding: 36px; }
.gjoin h2 { font-size: 24px; font-weight: 800; }
.gjoin p { color: var(--muted); margin-bottom: 8px; }
.groups-guest { text-align: center; padding: 48px 24px; border: 1px dashed #d3d9e2; border-radius: 20px; background: #fff; }
.groups-guest h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.groups-guest p { color: var(--muted); max-width: 34em; margin: 0 auto 18px; }
.groups-guest__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.gchat { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.gchat__main { display: flex; flex-direction: column; height: calc(100vh - var(--sticky-top) - 200px); min-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.gchat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.gchat__head .gcard__mono { width: 38px; height: 38px; font-size: 13px; border-radius: 11px; box-shadow: 2px 2px 0 var(--blue); }
.gchat__back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); font-size: 18px; }
.gchat__back:hover { background: var(--soft); color: var(--ink); }
.gchat__title { display: grid; flex: 1; min-width: 0; }
.gchat__title strong { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gchat__title small { color: var(--muted); font-size: 12.5px; }
.gchat__info { display: none; padding: 8px 12px; font-size: 13px; }
.gchat__msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: #f8fafc; background-image: radial-gradient(rgba(11, 15, 20, .045) 1px, transparent 1px); background-size: 18px 18px; scroll-behavior: smooth; }
.gchat__loading, .gchat__empty { margin: auto; color: var(--muted); font-size: 14.5px; text-align: center; }
.gmsg { max-width: 78%; align-self: flex-start; animation: card-in .35s var(--ease) both; }
.gmsg.is-mine { align-self: flex-end; }
.gmsg.is-mcq { max-width: min(520px, 92%); width: 100%; }
.gmsg__meta { display: flex; align-items: baseline; gap: 8px; margin: 0 4px 4px; font-size: 12px; color: var(--faint); }
.gmsg__meta strong { color: var(--muted); font-size: 12.5px; }
.gmsg.is-mine .gmsg__meta { justify-content: flex-end; }
.gmsg__del { border: 0; background: none; padding: 0; font-size: 12px; color: var(--faint); cursor: pointer; opacity: 0; transition: opacity .2s; }
.gmsg:hover .gmsg__del, .gmsg__del:focus { opacity: 1; }
.gmsg__del:hover { color: var(--red); }
.gmsg__bubble { padding: 10px 14px; border-radius: 16px 16px 16px 6px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.55; box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.gmsg.is-mine .gmsg__bubble { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 16px 16px 6px 16px; }
.gmsg__text { white-space: pre-wrap; }
.gmsg.is-mcq .gmsg__bubble, .gmsg.is-mcq.is-mine .gmsg__bubble { background: #fff; color: var(--text); border-color: var(--line); border-radius: 16px; padding: 14px; }
.gmsg.is-mcq.is-mine .gmsg__bubble { border-color: #b9d8fb; box-shadow: 0 0 0 3px var(--blue-50); }
.gmsg__kind { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--blue); background: var(--blue-50); padding: 2px 8px; border-radius: 6px; margin-bottom: 8px; }
.gmsg__q { font-weight: 700; color: var(--ink); margin-bottom: 10px; white-space: pre-wrap; }
.gmsg__opts { display: grid; gap: 6px; }
.gopt { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font: inherit; font-size: 14.5px; color: var(--text); cursor: pointer; overflow: hidden; transition: border-color .2s; }
.gopt:hover:not([disabled]) { border-color: var(--blue); }
.gopt[disabled] { cursor: default; }
.gopt__l { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--soft); font-size: 12px; font-weight: 800; color: var(--muted); }
.gopt__t { position: relative; z-index: 1; flex: 1; }
.gopt__n { position: relative; z-index: 1; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.gopt__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--blue-50); transition: width .6s var(--ease); }
.gopt.is-correct { border-color: var(--green); }
.gopt.is-correct .gopt__bar { background: var(--green-50); }
.gopt.is-correct .gopt__l { background: var(--green); color: #fff; }
.gopt.is-wrong { border-color: var(--red); }
.gopt.is-wrong .gopt__bar { background: var(--red-50); }
.gopt.is-wrong .gopt__l { background: var(--red); color: #fff; }
.gopt.is-picked:not(.is-correct):not(.is-wrong) { border-color: var(--blue); }
.gmsg__foot { margin-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.gmsg__foot.is-right { color: var(--green-d); }
.gmsg__foot.is-wrong { color: var(--red); }

.composer { border-top: 1px solid var(--line-2); padding: 10px 12px 12px; background: #fff; }
.composer__tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.composer__tabs button { border: 0; background: none; padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.composer__tabs button.is-active { background: var(--soft); color: var(--ink); }
.composer__text { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { width: 100%; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 15px; line-height: 1.45; max-height: 160px; transition: border-color .2s; }
.composer textarea:focus, .composer__opt input[type=text]:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 132, 253, .12); }
.composer__text .jobx-btn { height: 46px; }
.composer__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.composer__opt { position: relative; display: flex; align-items: center; gap: 0; }
.composer__opt input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.composer__opt span { position: absolute; left: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; transition: all .2s; }
.composer__opt input[type=radio]:checked + span { background: var(--green); color: #fff; }
.composer__opt input[type=radio]:focus-visible + span { outline: 2px solid var(--blue); }
.composer__opt input[type=text] { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px 0 42px; font-size: 14.5px; }
.composer__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.composer__row small { color: var(--muted); font-size: 12.5px; }
.composer__err { margin-top: 8px; font-size: 13.5px; color: var(--red); }
.gchat__side .panel { margin-bottom: 14px; }
.gchat__code { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.gchat__code strong { color: var(--ink); letter-spacing: .14em; font-size: 16px; margin-left: 4px; }
.gchat__invite { display: flex; gap: 6px; margin-bottom: 8px; }
.gchat__invite input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 13px; color: var(--muted); background: var(--soft); }
.gchat__invite .jobx-btn { padding: 8px 14px; }
.gchat__wa { margin-bottom: 12px; }
.gchat__add { display: flex; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.gchat__add input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 14px; }
.gchat__add .jobx-btn { padding: 8px 14px; }
.gmembers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 300px; overflow-y: auto; }
.gmembers li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.gmembers__av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue-d); font-weight: 800; font-size: 13px; flex: none; }
.gmembers__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.gmembers__rm { margin: 0; }
.gmembers__rm .jobx-linkbtn { font-size: 12.5px; color: var(--faint); }
.gmembers__rm .jobx-linkbtn:hover { color: var(--red); }
.gchat__danger { display: grid; gap: 10px; }
.gchat__danger details p { font-size: 13.5px; color: var(--muted); margin: 8px 0 10px; }
.gchat__danger summary { list-style: none; }
.gchat__danger summary::-webkit-details-marker { display: none; }

/* ---------- v1.1 responsive ---------- */
@media (max-width: 1100px) {
	.primary-nav .menu a { padding: 8px 10px; font-size: 14.5px; }
}
@media (max-width: 960px) {
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; display: none; background: transparent; }
	.primary-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
	.primary-nav .menu-item-has-children:hover > .sub-menu, .primary-nav .menu-item-has-children:focus-within > .sub-menu { transform: none; }
	.primary-nav .menu-item-has-children > a { display: flex; }
	.primary-nav .menu-item-has-children > a::before { margin-left: auto; }
	.prep-grid { grid-template-columns: 1fr; }
	.runner__bar { top: calc(var(--sticky-top) + 114px); }
	.runner__body { grid-template-columns: 1fr; }
	.runner__nav { display: none; }
	.result__hero { grid-template-columns: 1fr; justify-items: center; }
	.result__nums { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
	.groups { grid-template-columns: 1fr; }
	.gchat { grid-template-columns: 1fr; }
	.gchat__info { display: inline-flex; }
	.gchat__side { display: none; }
	.gchat__side.is-open { display: block; }
}
@media (max-width: 640px) {
	.mcq__opts, .rq__opts { grid-template-columns: 1fr; }
	.subjects { grid-template-columns: 1fr; }
	.builder__step { padding: 18px; }
	.builder__summary { bottom: 10px; padding: 12px 14px; }
	.builder__totals span { font-size: 22px; }
	.runner__bar { gap: 10px; padding: 10px 12px; top: calc(var(--sticky-top) + 106px); }
	.runner__title { display: none; }
	.runner__progress { min-width: 0; flex: 1; }
	.runner__timer { font-size: 18px; min-width: 76px; }
	.rq { padding: 16px; }
	.result__hero { padding: 22px 16px; }
	.result__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.subbar { grid-template-columns: 1fr 50px; }
	.subbar__track { grid-column: 1 / -1; grid-row: 2; }
	.gchat__main { height: calc(100vh - var(--sticky-top) - 170px); min-height: 460px; border-radius: 16px; }
	.gmsg { max-width: 90%; }
	.composer__opts { grid-template-columns: 1fr; }
	.composer__row small { display: none; }
	.history a { grid-template-columns: 1fr auto; }
	.history a span:nth-child(2) { display: none; }
}

/* Urdu / right-to-left MCQs */
.mcq__ex-text { display: block; margin-top: 2px; }
.mcq__opt-text, .rq__text, .gopt__t { flex: 1; }
[dir="auto"]:lang(ur), .mcq__q[dir="auto"], .mcq__opt-text[dir="auto"], .rq__q[dir="auto"], .rq__text[dir="auto"], .mcq__ex-text[dir="auto"] { unicode-bidi: plaintext; text-align: start; }
