/* © 2026 Julee Singh. All rights reserved. Part of Sopana; see LICENSE.
   Sopana online: the design Lovable drafted (grey canvas, field colours, white cards), ported to plain CSS. */

/* ------------------------------------------------------------------ tokens */
:root {
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --background: #eceef1; --foreground: #14161c; --card: #fff; --muted: #e5e8ed; --muted-foreground: #585e6b;
  --border: #dde0e6; --border-strong: #c9ced8;
  --f100: #ede9fe; --f200: #ddd6fe; --f300: #c4b5fd; --f600: #7c3aed; --f700: #6d28d9; --f800: #5b21b6;
  --accent: var(--f100); --accent-foreground: var(--f800); --ring: var(--f600);
  --ok: #047857; --ok-bg: #ecfdf5; --warn: #b45309; --warn-bg: #fffbeb; --bad: #b91c1c; --bad-bg: #fef2f2;
  --info: #4338ca; --info-bg: #eef2ff; --mint: #a7f3d0;
  --shadow: 0 1px 2px rgba(20, 22, 28, .04); --shadow-2: 0 18px 50px rgba(20, 22, 28, .14);
  --yellow: #fcd34d; --yellow-stroke: #f59e0b;
  color-scheme: light;
}
.dark {
  color-scheme: dark;
  --background: #111318; --foreground: #eef0f4; --card: #1a1d24; --muted: #20242c; --muted-foreground: #a3a9b6;
  --border: #2a2f39; --border-strong: #3a404c;
  --accent: color-mix(in srgb, var(--f600) 16%, #1a1d24); --accent-foreground: var(--f300);
  --ok: #6ee7b7; --ok-bg: #12382d; --warn: #fcd34d; --warn-bg: #3b3017; --bad: #fca5a5; --bad-bg: #3c2025;
  --info: #c7d2fe; --info-bg: #292644; --mint: #134e3a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 18px 50px rgba(0, 0, 0, .5);
}

/* anything drawn in its own field's colours (a job card, a field chip, the guided start) tints its accents to match */
body [style*="--f100"] { --accent: var(--f100); --accent-foreground: var(--f800); }
.dark body [style*="--f100"] { --accent: color-mix(in srgb, var(--f600) 16%, #1a1d24); --accent-foreground: var(--f300); }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 100%; }
html[data-size="large"] { font-size: 112.5%; }
html[data-size="larger"] { font-size: 125%; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: 0; font-weight: 700; }
p { line-height: 1.65; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { min-height: 44px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px; background: var(--card); max-width: 100%; }
label { display: block; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
#main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(1240px, calc(100% - 64px)); margin: auto; }
.main { min-height: 55vh; padding-top: 36px; padding-bottom: 80px; }
.muted { color: var(--muted-foreground); }
.eyebrow { font-size: .86rem; font-weight: 600; margin-bottom: 12px; color: var(--muted-foreground); }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow-2); }
.skip-link:focus { top: 12px; }
.ic { width: 18px; height: 18px; }
.ic-sm { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .875rem; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform var(--dur-1) var(--ease-out); text-decoration: none; }
.btn:active:not([disabled]):not([aria-disabled="true"]) { transform: scale(.97); }
.btn-primary { background: var(--f700); color: #fff; }
.btn-primary:hover { background: var(--f800); }
.btn-outline { background: var(--card); border-color: var(--border-strong); color: var(--foreground); }
.btn-outline:hover { border-color: var(--f600); }
.btn-ghost { color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-link { min-height: 32px; padding: 0 6px; color: var(--accent-foreground); text-decoration: underline; text-underline-offset: 3px; }
.btn-icon { width: 44px; padding: 0; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: .95rem; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .8rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.count { display: inline-block; background: var(--muted); color: var(--foreground); padding: 2px 7px; border-radius: 999px; font-size: .72rem; font-weight: 600; }

/* ------------------------------------------------------------------ header */
.header { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.75rem; color: var(--foreground); }
.logo .mark { width: 34px; height: 38px; }
.logo .mark svg { width: 100%; height: 100%; }
.logo.big { font-size: 4rem; gap: 22px; }
.logo.big .mark { width: 85px; height: 95px; }
.preview-pill { font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: .88rem; font-weight: 600; }
.desktop-nav a { padding: 14px 0; color: var(--muted-foreground); }
.desktop-nav a:hover { color: var(--foreground); }
.desktop-nav a[aria-current="page"] { color: var(--f700); box-shadow: 0 2px var(--f600); }
.dark .desktop-nav a[aria-current="page"] { color: var(--f300); }
.header-controls { display: flex; align-items: center; gap: 4px; }
.mobile-menu { display: none; }
/* launch: a ribbon in the brand's colours while every tool is free. Its sheen, the hopping logo and the confetti all stop with reduced motion */
.launch-bar { position: relative; overflow: hidden; background: linear-gradient(100deg, #3730a3, #6d28d9 55%, #0369a1); color: #fff; font-size: .9rem; }
.launch-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .11) 50%, transparent 58%); transform: translateX(-100%); animation: launch-sheen 9s var(--ease-out) 1.2s infinite; pointer-events: none; }
.launch-inner { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; padding: 4px 48px 4px 0; }
.launch-mark { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 50%; }
.launch-mark .mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; animation: launch-hop 2.4s var(--ease-out) 1.6s 3; }
.launch-mark .mark svg { width: 20px; height: 20px; display: block; }
.launch-text { flex: 1 1 250px; margin: 0; padding: 6px 0; line-height: 1.4; }
.launch-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.launch-close { position: absolute; right: -8px; top: 0; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 50%; }
.launch-bar :focus-visible { outline-color: #fff; outline-offset: -2px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }
@media (max-width: 640px) {
  .launch-bar { font-size: .85rem; }
  .launch-inner { display: grid; grid-template-columns: 44px auto auto minmax(0, 1fr); align-items: center; gap: 0 12px; padding-right: 0; }
  .launch-text { grid-column: 2 / -1; margin-right: 44px; }
  .launch-text + .launch-link { grid-column: 2; justify-self: start; }
}
@keyframes launch-sheen { 0% { transform: translateX(-100%); } 18%, 100% { transform: translateX(100%); } }
@keyframes launch-hop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-7px); } 90% { transform: translateY(1px); } }
.private-banner { padding: 10px 24px; display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--accent); color: var(--accent-foreground); font-size: .85rem; }
.private-banner a { text-decoration: underline; font-weight: 600; }

/* popovers, the language menu, the display menu */
.pop { position: relative; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-2); padding: 14px; transform-origin: top right; animation: pop-in var(--dur-2) var(--ease-out) backwards; }
.pop-panel.left { left: 0; right: auto; transform-origin: top left; }
.pop-panel h3 { font-size: .95rem; margin-bottom: 12px; }
.menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-list .btn { justify-content: space-between; width: 100%; border-radius: 12px; }
.menu-list .btn span { font-size: .75rem; color: var(--muted-foreground); font-weight: 500; }
.menu-list .btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-foreground); }
.display-menu { width: 330px; }
.display-menu fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.display-menu legend { font-size: .8rem; font-weight: 600; margin-bottom: 8px; color: var(--muted-foreground); }
.segments { display: flex; gap: 4px; border: 1px solid var(--border); border-radius: 999px; padding: 4px; background: var(--background); flex-wrap: wrap; }
.segments .btn { flex: 1; min-height: 38px; padding: 0 10px; font-size: .8rem; }
.segments .btn[aria-pressed="true"], .segments .btn[aria-checked="true"], .field-rail .btn[aria-pressed="true"], .quick-filters .btn[aria-pressed="true"], .menu-chip[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-foreground); box-shadow: inset 0 0 0 2px var(--f600); border-color: transparent;
}
.display-menu p { font-size: .75rem; color: var(--muted-foreground); }
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(20, 22, 28, .45); display: flex; justify-content: flex-end; animation: fade var(--dur-2) ease backwards; }
.sheet-panel { width: min(360px, 88vw); height: 100%; background: var(--card); padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; animation: slide-in 320ms var(--ease-out) backwards; }
.sheet-panel h3 { font-size: .9rem; color: var(--muted-foreground); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; }

/* ------------------------------------------------------------------ private gate */
.private-gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; }
.private-brand { margin-bottom: 35px; }
.private-line { height: 1px; background: var(--border-strong); width: 70px; margin-bottom: 40px; }
.private-gate h1 { font-size: 2.4rem; max-width: 640px; margin-bottom: 18px; }
.private-gate > p:not(.eyebrow) { color: var(--muted-foreground); margin-bottom: 30px; }

/* ------------------------------------------------------------------ home: the headline, the route map and the three steps */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 56px; align-items: center; padding: 8px 0 34px; }
.hero-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.5rem, 4.9vw, 4.25rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; }
.hero-title em { font-style: normal; color: inherit; }
/* the headline is set as a flight of steps: each line starts a step further in */
.step-line { display: block; }
.step-line:nth-child(2) { padding-left: .9em; }
.step-line:nth-child(3) { padding-left: 1.8em; }
.hero-lede { font-size: 1.04rem; line-height: 1.7; color: var(--muted-foreground); max-width: 32em; }
.search-bar { display: flex; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 7px; gap: 6px; margin: 26px 0 28px; }
.search-input { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; padding-left: 8px; }
.search-input svg { color: var(--muted-foreground); }
.search-input input { border: 0; padding-left: 0; width: 100%; font-size: .92rem; background: transparent; }
.search-input input:focus-visible { outline-offset: -2px; }
.search-bar select { border: 0; border-left: 1px solid var(--border); border-radius: 0; max-width: 200px; font-size: .86rem; padding: 8px; background: transparent; }
.search-bar .btn { border-radius: 12px; }
.live-dot { background: #10b981; width: 8px; height: 8px; border-radius: 50%; flex: none; animation: pulse 1.8s var(--ease-out) 3; }
.scene-chip { position: absolute; bottom: 18px; left: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px 8px 8px; display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--accent-foreground); box-shadow: var(--shadow); }
.fi { width: 30px; height: 30px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-foreground); flex: none; }
.fi svg { width: 16px; height: 16px; }
.step-number { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-foreground); font-weight: 800; transition: background-color var(--dur-2), color var(--dur-2); }
/* the three questions as a staircase: each step a little higher than the last */
.stairs-title { font-size: .86rem; font-weight: 600; color: var(--muted-foreground); margin-bottom: 10px; }
.stairs ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.stair button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 20px; transition: border-color .2s, background-color .2s, transform var(--dur-1) var(--ease-out); }
.stair:nth-child(1) button { min-height: 104px; }
.stair:nth-child(2) button { min-height: 128px; }
.stair:nth-child(3) button { min-height: 152px; }
.stair button:hover { border-color: var(--f600); }
.stair button:active { transform: scale(.98); }
.stair-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-foreground); font-weight: 800; font-size: .85rem; flex: none; }
.stair-q { margin-top: auto; font-size: .78rem; font-weight: 600; color: var(--muted-foreground); }
.stair-a { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; color: var(--accent-foreground); }
.stair.done button { background: var(--accent); border-color: transparent; }
.stair.done .stair-n { background: var(--f700); color: #fff; }
.stair.done .stair-q { color: var(--accent-foreground); }
/* the route map: the UK and the seven countries that welcome UK graduates */
.hero-map { margin: 0; }
.hero-map figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .84rem; color: var(--muted-foreground); }
.route-map { position: relative; aspect-ratio: 640 / 400; background: var(--card); border: 1px solid var(--border); border-radius: 32px; }
.rm-svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
#rm-dots circle { fill: var(--border-strong); }
.rm-rings circle { fill: none; stroke: var(--f300); stroke-width: 1; stroke-dasharray: 3 7; opacity: .8; }
.rm-path { fill: none; stroke: var(--f300); stroke-width: 1.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.rm-draw { fill: none; stroke: var(--f600); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; }
.rm-comet { fill: none; stroke: var(--f800); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .05 3; stroke-dashoffset: .06; }
.rm-node { fill: var(--card); stroke: var(--f600); stroke-width: 3; }
.rm-hub { fill: var(--f700); }
.rm-pulse { fill: none; stroke: var(--f600); stroke-width: 2; opacity: 0; }
.rm-draw, .rm-node { transition: opacity .3s, stroke .3s, stroke-width .3s, fill .3s; }
.rm-svg:has(.rm-route.on) .rm-route:not(.on) .rm-draw { opacity: .35; }
.rm-route.on .rm-draw { stroke: var(--f800); stroke-width: 3; }
.rm-node.on { fill: var(--f600); }
.rm-labels { list-style: none; margin: 0; padding: 0; }
.rm-at { position: absolute; z-index: 1; }
.rm-b { transform: translate(-50%, 14px); }
.rm-t { transform: translate(-50%, calc(-100% - 14px)); }
.rm-l { transform: translate(calc(-100% - 14px), -50%); }
.rm-r { transform: translate(14px, -50%); }
.rm-label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border-strong); font-size: .8rem; font-weight: 600; white-space: nowrap; transition: border-color .2s, background-color .2s; }
.rm-label b { color: var(--accent-foreground); font-variant-numeric: tabular-nums; }
.rm-label:hover, .rm-label[aria-pressed="true"], .rm-label[aria-current="true"] { border-color: var(--f600); background: var(--accent); }
.hiring { display: flex; align-items: center; gap: 18px; padding: 6px 0 22px; border-bottom: 1px solid var(--border); }
.hiring h2 { font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.hiring-rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.hiring-rail::after { content: ""; flex: 0 0 40px; }
.hiring-rail .btn { flex-shrink: 0; font-size: .82rem; font-weight: 600; padding: 0 14px 0 6px; }
.mini-monogram { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--muted); font-weight: 800; font-size: .8rem; }

/* ------------------------------------------------------------------ the guided start: three questions in a dialog, climbing like the logo */
#results-title { scroll-margin-top: 96px; }
.guide-dialog { max-width: 880px; width: calc(100% - 32px); max-height: calc(100vh - 48px); padding: 0; border-radius: 28px; overflow: auto; }
.guide { padding: 28px; }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.guide-head h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.guide-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.guide-steps li:nth-child(1) { margin-top: 28px; }
.guide-steps li:nth-child(2) { margin-top: 14px; }
.guide-steps button { width: 100%; min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 20px; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2); }
.guide-steps button:not([disabled]):hover { border-color: var(--f600); }
.guide-steps button[disabled] { cursor: default; color: var(--muted-foreground); }
.guide-steps .current button { border-color: var(--f600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--f600) 22%, transparent); transform: translateY(-4px); }
.guide-steps b { display: block; font-family: var(--font-heading); font-size: 1rem; }
.guide-steps small { display: block; max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground); font-size: .82rem; }
.guide-steps .done .step-number, .guide-steps .current .step-number { background: var(--f700); color: #fff; }
.guide-steps .current .step-number { animation: ring 1.4s var(--ease-out) 2; }
.guide-panel { margin-top: 22px; }
.guide-panel.swap { animation: rise var(--dur-3) var(--ease-out) backwards; }
.guide-panel h3 { font-size: 1.3rem; }
.guide-panel h3[tabindex="-1"]:focus { outline: none; }
.guide-panel .hint { color: var(--muted-foreground); font-size: .92rem; margin: 6px 0 16px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { background: var(--card); border: 1px solid var(--border); font-size: .86rem; }
.choice:has(.fi) { padding-left: 6px; }
.choice sup { top: 0; font-size: .72rem; color: var(--muted-foreground); font-weight: 600; font-variant-numeric: tabular-nums; }
.choice[aria-pressed="true"] { background: var(--accent); color: var(--accent-foreground); box-shadow: inset 0 0 0 2px var(--f600); border-color: transparent; }
.choice[aria-pressed="true"] sup { color: var(--accent-foreground); }
.choice.zero:not([aria-pressed="true"]) { border-style: dashed; background: transparent; color: var(--muted-foreground); }
.visa-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.visa-choice { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-align: left; border: 1px solid var(--border); border-radius: 18px; background: var(--background); transition: border-color var(--dur-2), background-color var(--dur-2), transform var(--dur-1) var(--ease-out); }
.visa-choice:hover { border-color: var(--f600); }
.visa-choice:active { transform: scale(.98); }
.visa-choice b { font-size: .98rem; }
.visa-choice span { color: var(--muted-foreground); font-size: .86rem; line-height: 1.5; }
.visa-choice[aria-pressed="true"] { background: var(--accent); border-color: var(--f600); box-shadow: inset 0 0 0 1px var(--f600); }
.visa-choice[aria-pressed="true"] b { color: var(--accent-foreground); }
.guide-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }

/* ------------------------------------------------------------------ board: filters */
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 36px 0 18px; }
.board-head h2 { font-size: 1.9rem; letter-spacing: -.02em; }
.board-head h2:focus { outline: none; }
.board-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.board-list > .result-bar:first-child { padding-top: 0; }
.field-rail { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; }
.field-rail .btn { background: var(--card); border: 1px solid var(--border); font-size: .82rem; padding: 0 14px 0 6px; }
.field-rail .btn sup, .quick-filters .btn sup { top: 0; font-size: .72rem; color: var(--muted-foreground); font-weight: 600; font-variant-numeric: tabular-nums; }
.field-rail .btn[aria-pressed="true"] sup, .quick-filters .btn[aria-pressed="true"] sup { color: var(--accent-foreground); }
.field-rail .zero:not([aria-pressed="true"]) { border-style: dashed; background: transparent; color: var(--muted-foreground); }
.field-rail .zero:not([aria-pressed="true"]) .fi { filter: grayscale(1); opacity: .6; }
.quick-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 16px; }
.quick-filters .label { font-size: .84rem; font-weight: 600; color: var(--muted-foreground); margin-right: 4px; }
.quick-filters .btn { font-size: .8rem; min-height: 38px; }
.filter-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.filter-toolbar > .pop > .btn { font-size: .84rem; }
.filter-toolbar .on { background: var(--accent); color: var(--accent-foreground); border-color: transparent; box-shadow: inset 0 0 0 1px var(--f600); }
.filter-menu { width: 320px; max-height: 70vh; overflow-y: auto; }
.filter-menu label.select { font-size: .85rem; font-weight: 600; margin: 12px 0 0; }
.filter-menu select { display: block; width: 100%; margin-top: 6px; }
.check-option { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 8px 4px; font-size: .88rem; cursor: pointer; border-radius: 10px; }
.check-option:hover { background: var(--muted); }
.check-option input { min-height: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--f700); flex: none; }
.check-option small { display: block; color: var(--muted-foreground); font-size: .76rem; line-height: 1.5; }
.switch-row { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; cursor: pointer; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--border-strong); transition: background-color .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch[aria-checked="true"] { background: #047857; }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0 8px; flex-wrap: wrap; }
.result-bar label { display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.result-bar select { min-height: 40px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters .btn { min-height: 34px; font-size: .78rem; padding: 0 12px; }
.active-filters .chip { background: var(--accent); color: var(--accent-foreground); border-color: transparent; }
.hidden-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted-foreground); font-size: .86rem; margin: 10px 0 0; }
.group-heading { display: flex; align-items: baseline; gap: 14px; padding: 26px 0 14px; }
.group-heading h3 { font-size: 1.05rem; }
.group-heading h3 span { margin-left: 8px; color: var(--muted-foreground); font-family: var(--font-sans); font-size: .82rem; font-weight: 600; }
.group-heading p { font-size: .8rem; color: var(--muted-foreground); }
/* on wide screens the filters sit beside the results, as a quiet list */
@media (min-width: 1100px) {
  .board-body { grid-template-columns: 268px minmax(0, 1fr); gap: 40px; align-items: start; }
  .board-side .field-rail { flex-direction: column; flex-wrap: nowrap; gap: 2px; padding-bottom: 20px; }
  .board-side .field-rail .btn { justify-content: flex-start; width: 100%; min-height: 40px; background: transparent; border-color: transparent; }
  .board-side .field-rail .btn:hover { background: var(--card); }
  .board-side .field-rail .btn[aria-pressed="true"] { background: var(--accent); }
  .board-side .field-rail .btn sup { margin-left: auto; }
  .board-side .quick-filters .label { width: 100%; }
  .board-side .filter-toolbar { flex-direction: column; align-items: stretch; gap: 8px; border-bottom: 0; padding-bottom: 0; }
  .board-side .filter-toolbar > .pop > .btn { width: 100%; justify-content: space-between; }
  .board-side .switch-row { margin: 10px 0 0; align-items: flex-start; }
  .board-side .plus-strip { flex-direction: column; align-items: flex-start; border-style: solid; padding: 22px; }
  .board-side .plus-strip p { min-width: 0; }
  /* a short side column (the free preview's) stays in view; the members' long filter list scrolls with the page */
  .board-side:has(> .plus-strip) { position: sticky; top: 96px; }
}

/* ------------------------------------------------------------------ job cards */
.job-card { position: relative; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--f600); border-radius: 24px; padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 12px; box-shadow: var(--shadow); min-width: 0; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out); }
.job-card:hover { box-shadow: var(--shadow-2); }
@media (hover: hover) { .job-card:hover { transform: translateY(-2px); } }
.card-link { position: absolute; inset: 0; border-radius: 24px; z-index: 1; }
.card-link:focus-visible { outline-offset: -3px; }
.job-card .save { position: relative; z-index: 2; }
.monogram { display: grid; place-items: center; background: var(--accent); color: var(--f800); width: 48px; height: 48px; flex-shrink: 0; border-radius: 15px; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; }
.dark .monogram { color: var(--f300); }
.job-info { flex: 1; min-width: 0; }
.job-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--muted-foreground); margin-bottom: 8px; }
.job-kicker strong { color: var(--foreground); font-weight: 700; }
.field-text { color: var(--f800); font-weight: 600; }
.dark .field-text { color: var(--f300); }
.job-info h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--f800); font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.dark .job-info h3 { color: var(--f300); }
.job-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted-foreground); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 230px; text-align: right; }
.visa { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 11px; font-size: .74rem; font-weight: 700; line-height: 1.3; background: var(--muted); color: var(--muted-foreground); }
.visa.ring { box-shadow: inset 0 0 0 1px currentColor; }
.dot { width: 6px; height: 6px; flex-shrink: 0; background: currentColor; border-radius: 50%; }
.tone-ok { color: var(--ok); background: var(--ok-bg); }
.tone-warn { color: var(--warn); background: var(--warn-bg); }
.tone-bad { color: var(--bad); background: var(--bad-bg); }
.tone-info { color: var(--info); background: var(--info-bg); }
.deadline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: .78rem; font-weight: 600; }
.deadline.urgent { color: var(--bad); }
.deadline.soon { color: var(--warn); }
.deadline-bar { width: 120px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.deadline-bar span { display: block; background: var(--f600); height: 100%; border-radius: 4px; }
.new { background: #14161c; color: #fff; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: .7rem; }
.dark .new { background: #eef0f4; color: #14161c; }
.show-more { text-align: center; padding: 26px; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--card); border-top: 1px solid var(--border); padding-top: 48px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 40px; }
.footer-brand { max-width: 460px; }
.footer-brand p { font-size: .84rem; color: var(--muted-foreground); margin-top: 14px; }
.footer-brand .credits { color: var(--foreground); }
.footer-column { display: flex; flex-direction: column; gap: 10px; font-size: .86rem; }
.footer-column h2 { font-size: .9rem; margin-bottom: 6px; }
.footer-column a { color: var(--muted-foreground); min-height: 28px; display: inline-flex; align-items: center; }
.footer-column a:hover { color: var(--foreground); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 30px; font-size: .76rem; color: var(--muted-foreground); }

/* ------------------------------------------------------------------ page parts */
.page-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 48px; align-items: center; margin: 6px 0 40px; }
.page-heading h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.page-heading h1 em { font-style: normal; color: inherit; }
.page-heading .intro { margin-top: 16px; color: var(--muted-foreground); max-width: 40em; font-size: 1.04rem; line-height: 1.7; }
.page-note { margin-top: 14px; font-size: .84rem; color: var(--muted-foreground); }
.page-art { justify-self: end; width: 100%; max-width: 320px; }
.page-art .art svg, .page-art .fa { width: 100%; height: auto; display: block; }
.empty { padding: 70px 24px; text-align: center; background: var(--card); border: 1px dashed var(--border-strong); border-radius: 24px; margin: 20px 0; }
.empty h2 { font-size: 1.6rem; margin-bottom: 12px; }
.empty p { color: var(--muted-foreground); margin-bottom: 18px; }
.loading { display: grid; place-items: center; padding: 72px 0; }
.stair-loader { display: flex; align-items: flex-end; gap: 6px; height: 40px; }
.stair-loader i { display: block; width: 12px; border-radius: 4px; background: var(--f600); transform-origin: bottom; }
.stair-loader i:nth-child(1) { height: 14px; }
.stair-loader i:nth-child(2) { height: 26px; }
.stair-loader i:nth-child(3) { height: 40px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .84rem; margin: 0 0 22px; color: var(--muted-foreground); }
.breadcrumbs a:hover { color: var(--foreground); text-decoration: underline; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin: 34px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--muted-foreground); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; line-height: 1.65; }
.prose a, .html a, .link { color: var(--accent-foreground); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--foreground); }
.ok, .warn, .bad { font-weight: 700; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
mark.hl { background: none; color: inherit; }
a.ext::after { content: " ↗"; }
.section { margin: 36px 0; }
.section-title { font-size: 1.6rem; }
.section-sub { color: var(--muted-foreground); margin-top: 8px; max-width: 70ch; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ a job's page: the role on the left, the verdict and the button beside it */
.job-banner { height: 150px; border-radius: 28px; background: var(--accent); overflow: hidden; position: relative; margin-bottom: 30px; }
.job-banner .art, .job-banner .art svg { width: 100%; height: 100%; display: block; }
.job-banner .scene-chip { top: 18px; bottom: auto; }
/* the sponsor stamp lands from 1.5x its size: keep that moment from widening the page */
.job-page { overflow-x: clip; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "head aside" "main aside"; gap: 0 52px; align-items: start; }
.job-header { grid-area: head; min-width: 0; }
.job-main { grid-area: main; min-width: 0; }
.job-aside { grid-area: aside; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 28px; }
.company-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-weight: 700; }
.company-row .link { margin-left: auto; font-size: .86rem; font-weight: 600; }
.job-header h1 { font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; color: var(--f800); margin-bottom: 18px; }
.dark .job-header h1 { color: var(--f300); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.tag-field { background: var(--accent); color: var(--accent-foreground); text-decoration: underline; text-underline-offset: 3px; }
.tag-country, .tag-line { background: var(--card); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tag b { font-size: .68rem; letter-spacing: .04em; color: var(--muted-foreground); }
.job-main > section, .job-pair > section { padding: 28px 0; border-top: 1px solid var(--border); }
.job-main > section:first-child { margin-top: 30px; }
.job-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.job-pair > section:only-child { grid-column: 1 / -1; }
.job-main h2 { font-size: 1.3rem; margin-bottom: 14px; }
.job-main p { color: var(--muted-foreground); }
.job-main > .plus-lock { margin-top: 30px; padding: 30px; border-top: 0; }
.tick-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin: 18px 0 0; }
.tick-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; color: var(--muted-foreground); }
.tick-list svg { color: var(--f600); margin-top: 3px; }
.variants { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.visa-panel { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: var(--card); margin-top: 8px; }
.visa-head { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; }
.visa-head svg { width: 30px; height: 30px; }
.visa-head strong { display: block; font-size: 1.15rem; font-family: var(--font-heading); }
.visa-head span { display: block; font-size: .9rem; margin-top: 4px; color: var(--foreground); opacity: .85; }
.visa-panel dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 16px 24px; border-top: 1px solid var(--border); font-size: .9rem; line-height: 1.65; }
.visa-panel dt { font-weight: 700; }
.visa-panel dd { color: var(--muted-foreground); }
.visa-foot { padding: 14px 24px 18px; font-size: .8rem; line-height: 1.7; color: var(--muted-foreground); border-top: 1px solid var(--border); }
.source-note { font-size: .84rem; color: var(--muted-foreground); line-height: 1.8; padding: 22px 0; border-top: 1px solid var(--border); }
/* the visa verdict, stamped like a passport page */
.stamp { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed currentColor; border-radius: 18px; transform: rotate(-1.5deg); }
.stamp-icon svg { width: 34px; height: 34px; display: block; }
.stamp b { display: block; font-family: var(--font-heading); font-size: 1.12rem; line-height: 1.2; }
.stamp small { display: block; margin-top: 3px; font-size: .82rem; line-height: 1.45; color: var(--foreground); opacity: .85; }
.aside-facts > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--border); font-size: .9rem; }
.aside-facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-weight: 600; }
.aside-facts dd { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.aside-facts small { color: var(--muted-foreground); font-size: .8rem; }
.aside-facts .urgent strong { color: var(--bad); }
.aside-facts .soon strong { color: var(--warn); }
.job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.job-actions .btn-primary { width: 100%; }
/* similar roles, side by side */
.similar { margin-top: 52px; }
.similar h2 { font-size: 1.4rem; margin-bottom: 16px; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; }
.mini-card { position: relative; flex: 0 0 280px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--f600); border-radius: 20px; transition: box-shadow .25s, transform .25s var(--ease-out); }
.mini-card:hover { box-shadow: var(--shadow-2); }
@media (hover: hover) { .mini-card:hover { transform: translateY(-2px); } }
.mini-company { font-size: .8rem; font-weight: 700; color: var(--muted-foreground); }
.mini-card h3 { font-size: 1.02rem; line-height: 1.3; color: var(--f800); }
.dark .mini-card h3 { color: var(--f300); }
.mini-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ deadlines, shortlist, sponsors */
.deadline-group { margin: 26px 0; }
.deadline-group > h2 { font-size: 1.35rem; margin-bottom: 14px; }
.deadline-row { display: flex; align-items: center; gap: 18px; background: var(--card); padding: 18px 22px; border-radius: 22px; margin: 10px 0; border: 1px solid var(--border); border-left: 4px solid var(--f600); }
.date-block { min-width: 56px; text-align: center; display: flex; flex-direction: column; gap: 2px; color: var(--f800); }
.dark .date-block { color: var(--f300); }
.date-block b { font-size: 1.8rem; font-family: var(--font-heading); line-height: 1; }
.date-block span { font-size: .8rem; font-weight: 700; }
.deadline-job { flex: 1; min-width: 0; }
.deadline-job > span { font-size: .8rem; color: var(--muted-foreground); font-weight: 600; }
.deadline-job h3 { color: var(--f800); font-size: 1.08rem; margin-top: 4px; }
.dark .deadline-job h3 { color: var(--f300); }
.shortlist-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.saved-row { display: flex; justify-content: space-between; align-items: center; padding: 0 22px 16px; font-size: .84rem; color: var(--muted-foreground); }
.unavailable-role { background: var(--card); padding: 22px; border-radius: 22px; border: 1px solid var(--border); margin-bottom: 8px; }
.unavailable-role h3 { font-size: 1.1rem; margin-bottom: 6px; }
.sponsor-controls { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sponsor-controls .segments { flex: 0 0 auto; }
.register-search { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 260px; background: var(--card); padding: 7px 7px 7px 14px; border: 1px solid var(--border); border-radius: 18px; }
.register-search input { border: 0; flex: 1; min-width: 0; background: transparent; }
.register-note { padding: 20px 0; color: var(--muted-foreground); font-size: .88rem; border-bottom: 1px solid var(--border); }
.register-note p + p { margin-top: 6px; }
.sponsor-result { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 20px 22px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.sponsor-result h3 { font-size: 1.12rem; margin-bottom: 6px; }
.sponsor-result p { font-size: .84rem; color: var(--muted-foreground); margin-bottom: 10px; }
.sponsor-result .roles { width: 100%; font-weight: 600; }
.rating { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); align-self: flex-start; }

/* ------------------------------------------------------------------ content pages */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.figures > div { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 20px; }
.figures b { display: block; font-family: var(--font-heading); font-size: 1.8rem; letter-spacing: -.02em; color: var(--f700); margin-bottom: 6px; }
.dark .figures b { color: var(--f300); }
.figures span { font-size: .84rem; color: var(--muted-foreground); }
.checker { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; margin-top: 18px; }
.checker form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.checker .segments { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 18px; }
.checker .out { padding: 24px; background: var(--background); border-left: 1px solid var(--border); }
.checker label.field { font-weight: 600; font-size: .9rem; }
.checker label.field input { display: block; width: 100%; margin-top: 6px; }
.checker label.field small { font-weight: 500; color: var(--muted-foreground); margin-left: 6px; }
.verdict { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.verdict .visa { flex: none; }
.checker .note { font-size: .84rem; color: var(--muted-foreground); margin-top: 12px; }
/* the visa guide: the salary check first, the key numbers beside it, the two country guides side by side */
.visa-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.visa-top .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visa-guides { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 44px; }
.visa-side { display: grid; gap: 20px; }
.visa-col { max-width: none; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 26px 28px; }
.visa-col > h2:first-child { margin-top: 0; }
.visa-others h2 { font-size: 1.3rem; }
.route-list { margin-top: 14px; border-top: 1px solid var(--border); }
.route-list details { border-bottom: 1px solid var(--border); }
.route-list summary { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 0; cursor: pointer; list-style: none; }
.route-list summary::-webkit-details-marker { display: none; }
.route-list summary > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.route-list summary b { font-size: .98rem; }
.route-list summary small { font-size: .84rem; color: var(--muted-foreground); }
.route-list details > div { padding: 0 0 18px; font-size: .92rem; line-height: 1.65; color: var(--muted-foreground); }
.route-list details > div p + p { margin-top: 8px; }
.route-list details > div b { color: var(--foreground); }
.route-list .link { display: inline-block; margin-top: 10px; font-size: .9rem; }
/* countries: the map is the chooser, and the chosen country's guide sits beside it */
.explorer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.countries-map { margin: 0; position: sticky; top: 96px; }
.countries-map figcaption { margin-top: 12px; font-size: .84rem; color: var(--muted-foreground); }
.country-panel { background: var(--card); border: 1px solid var(--border); border-radius: 32px; padding: 30px 32px 28px; scroll-margin-top: 90px; }
/* the country's photo across the top of its guide: fades in when it arrives, then drifts very slowly */
.cp-photo { margin: -30px -32px 20px; }
.cp-photo-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 31px 31px 0 0; background: var(--muted); }
.cp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease-out); }
.cp-photo.in img { opacity: 1; animation: drift 26s ease-in-out infinite alternate; }
.cp-photo figcaption { font-size: .75rem; line-height: 1.4; color: var(--muted-foreground); padding: 8px 32px 0; min-height: 1.4em; }
.cp-photo figcaption .link { color: inherit; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translate(-1.2%, -.8%); } }
.cp-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 8px; }
.cp-head h2 { font-size: 1.9rem; letter-spacing: -.02em; }
.cp-grid { display: grid; column-gap: 28px; }
.cp-cell, .cp-check { padding: 16px 0; border-top: 1px solid var(--border); }
.cp-cell h3, .cp-check h3 { font-size: .98rem; margin-bottom: 6px; }
.cp-cell p { font-size: .94rem; line-height: 1.65; color: var(--muted-foreground); }
.cp-check { padding-bottom: 0; }
.cp-check ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cp-check a { font-size: .9rem; color: var(--accent-foreground); text-decoration: underline; text-underline-offset: 3px; }
.page-foot { margin-top: 28px; font-size: .86rem; color: var(--muted-foreground); }
/* about: the name and the people side by side, how it works as a flight of steps */
.about-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.name-card { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 28px; }
.glyph { font-family: "Bricolage Grotesque", "Noto Sans Devanagari", sans-serif; font-size: 4.2rem; font-weight: 800; color: var(--f700); text-align: center; line-height: 1.2; }
.dark .glyph { color: var(--f300); }
.name-card .pron { color: var(--muted-foreground); font-size: .9rem; }
.name-card p + p { margin-top: 8px; }
.about-people { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 26px; }
.about-people .section-title { font-size: 1.15rem; }
.people { display: grid; gap: 12px; }
.person { display: flex; align-items: center; gap: 14px; }
.person b { display: block; font-size: 1.02rem; }
.person span { color: var(--muted-foreground); font-size: .86rem; }
.stairway { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 18px; }
.stairway li { display: flex; flex-direction: column; gap: 12px; min-height: calc(200px + var(--i) * 34px); padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; color: var(--muted-foreground); font-size: .9rem; line-height: 1.6; }
.stairway li:last-child { background: var(--accent); border-color: transparent; color: var(--accent-foreground); }
.stairway b { color: var(--foreground); }
.stairway li:last-child b { color: var(--accent-foreground); }
.about-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.about-notes h2 { font-size: 1.15rem; margin-bottom: 8px; }
.about-notes p { font-size: .93rem; line-height: 1.7; color: var(--muted-foreground); }
.about-notes a { color: var(--accent-foreground); text-decoration: underline; text-underline-offset: 3px; }
.numbered { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.numbered li { counter-increment: step; display: flex; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; color: var(--muted-foreground); line-height: 1.65; }
.numbered li::before { content: counter(step); display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-foreground); font-weight: 800; }
.numbered b { color: var(--foreground); }
/* plans and their questions */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.plan-plus { box-shadow: inset 0 0 0 2px var(--f600); }
.plan-later { background: transparent; border-style: dashed; }
.plan-lead { font-weight: 600; margin-bottom: -6px; }
.plan-ask { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.plan-ask .btn { margin-top: 0; }
/* what Plus does for you: one tile per tool, each in a field colour */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.perk { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.perk h3 { font-size: 1.08rem; }
.perk p { color: var(--muted-foreground); }
.perk-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-foreground); margin-bottom: 4px; }
/* Request Plus: the short form */
.request-dialog { max-width: 580px; }
.request-dialog form { display: flex; flex-direction: column; gap: 14px; }
.request-dialog .actions { position: sticky; bottom: -28px; margin: 0 -28px -28px; padding: 14px 28px 28px; background: var(--card); }
.request-dialog p { margin-bottom: 0; }
.request-dialog .form-error:empty { display: none; }
.wants { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wants legend { font-weight: 600; margin-bottom: 8px; }
.want { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 44px; line-height: 1.3; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; }
.want:has(input:checked) { border-color: var(--f600); background: var(--accent); }
.want input { accent-color: var(--f600); width: 18px; height: 18px; flex: none; }
.demand-ranks { grid-template-columns: 2fr 1fr; }
.plan-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-price b { font-family: var(--font-heading); font-size: 2.6rem; letter-spacing: -.02em; }
.plan-price span { color: var(--muted-foreground); }
.badge { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); font-family: var(--font-sans); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; align-items: start; }
.faq-list details { background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 14px 22px; font-weight: 700; cursor: pointer; list-style: none; border-radius: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .route-list summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; font-weight: 500; color: var(--accent-foreground); transition: transform .2s var(--ease-out); }
.faq-list details[open] summary::after, .route-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div { padding: 0 22px 20px; color: var(--muted-foreground); line-height: 1.65; }
/* legal pages: the text, with a list of its parts that stays in view */
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc-title { font-size: .84rem; font-weight: 700; color: var(--muted-foreground); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; border-left: 2px solid var(--border); }
.toc-link { display: block; width: 100%; min-height: 36px; padding: 7px 12px; margin-left: -2px; border-left: 2px solid transparent; text-align: left; font-size: .88rem; color: var(--muted-foreground); }
.toc-link:hover { color: var(--foreground); border-left-color: var(--f600); }
.legal .prose section { scroll-margin-top: 100px; }
.legal .prose section:focus { outline: none; }
.legal .prose section:first-of-type h2 { margin-top: 0; }
.callout { background: var(--accent); color: var(--accent-foreground); border-radius: 16px; padding: 14px 18px; font-size: .9rem; margin-bottom: 20px; }
.callout.late { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.callout button { text-decoration: underline; font-weight: 700; color: inherit; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.platform { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.platform-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.platform h3 { font-size: 1.05rem; }
.platform h3 a:hover { text-decoration: underline; }
.covers { font-size: .7rem; padding: 4px 8px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); white-space: nowrap; font-weight: 600; }
.platform p { font-size: .86rem; color: var(--muted-foreground); }
.platform .go { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------ author area */
.author-wrap { display: flex; justify-content: center; padding: 20px 0 60px; }
.author-card { width: 460px; max-width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); }
.author-card > .logo { margin-bottom: 26px; }
.author-card h1 { font-size: 1.85rem; margin-bottom: 10px; }
.author-card .lead { color: var(--muted-foreground); font-size: .9rem; margin-bottom: 20px; }
.author-card form { display: flex; flex-direction: column; gap: 16px; }
.author-card label.field { font-size: .88rem; font-weight: 600; }
.author-card label.field input { width: 100%; margin-top: 6px; display: block; }
.auth-links { display: flex; flex-direction: column; align-items: center; margin-top: 16px; gap: 4px; }
.form-error { color: var(--bad); font-size: .86rem; font-weight: 600; }
.form-ok { color: var(--ok); font-size: .86rem; font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 18px 0; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 18px; }
.tile span { font-size: .8rem; color: var(--muted-foreground); font-weight: 600; }
.tile b { display: block; font-family: var(--font-heading); font-size: 2rem; margin: 6px 0; }
.tile small { font-size: .76rem; color: var(--muted-foreground); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.dash-head h2 { font-size: 1.7rem; }
.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 22px; margin: 12px 0; }
.chart-card h3 { font-size: 1rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chart-card h3 small { font-weight: 500; color: var(--muted-foreground); font-family: var(--font-sans); font-size: .78rem; }
.chart { width: 100%; height: auto; margin-top: 12px; }
.chart .grid { stroke: var(--border); }
.chart .axis { fill: var(--muted-foreground); font-size: 11px; font-family: var(--font-sans); }
.ranks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rank ol { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.rank li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .86rem; }
.rank .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--muted); overflow: hidden; }
.rank .bar i { display: block; height: 100%; background: var(--f600); border-radius: 6px; }
.rank .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .val { color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.health { display: flex; flex-direction: column; margin-top: 10px; }
.health > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); font-size: .88rem; }
.health b { text-align: right; }
.visibility-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.visibility-card h2 { font-size: 1.7rem; margin: 6px 0; }
.visibility-card .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* dialog and toast */
dialog { border: 0; border-radius: 24px; padding: 28px; max-width: 460px; width: calc(100% - 32px); background: var(--card); color: var(--foreground); box-shadow: var(--shadow-2); }
dialog::backdrop { background: rgba(20, 22, 28, .45); }
dialog h2 { font-size: 1.4rem; margin-bottom: 10px; }
dialog p { color: var(--muted-foreground); margin-bottom: 20px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); animation: toast-in var(--dur-2) var(--ease-out) backwards; background: #14161c; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: .9rem; font-weight: 600; z-index: 90; box-shadow: var(--shadow-2); }
.dark .toast { background: #eef0f4; color: #14161c; }

/* ------------------------------------------------------------------ illustrations (classes from the database SVGs) */
.art svg { width: 100%; height: auto; display: block; }
.sv-b1 { fill: var(--f100); } .sv-b2 { fill: var(--f200); } .sv-b3 { fill: var(--f300); }
.sv-b6 { fill: var(--f600); } .sv-b7 { fill: var(--f700); } .sv-b8 { fill: var(--f800); }
.sv-bw, .sv-c-card { fill: #fff; } .sv-bk { fill: #14161c; } .sv-by { fill: var(--yellow); }
.sv-c-soft { fill: var(--muted); } .sv-c-line { fill: var(--border-strong); } .sv-c-ink { fill: var(--foreground); }
.sv-s3 { stroke: var(--f300); } .sv-s6 { stroke: var(--f600); } .sv-s8 { stroke: var(--f800); }
.sv-sw { stroke: #fff; } .sv-sk { stroke: #14161c; } .sv-sy, .sv-sy2 { stroke: var(--yellow-stroke); }
.sv-lift { filter: drop-shadow(0 8px 12px rgba(20, 22, 28, .14)); }
.dark .sv-b1 { fill: color-mix(in srgb, var(--f600) 16%, #1a1d24); }
.dark .sv-b2 { fill: color-mix(in srgb, var(--f600) 32%, #1a1d24); }
.dark .sv-bw, .dark .sv-c-card { fill: #20242c; } .dark .sv-bk { fill: #eef0f4; } .dark .sv-sk { stroke: #eef0f4; } .dark .sv-sw { stroke: #20242c; }
.dark .sv-lift { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45)); }
/* on the dark card the soft grey would vanish, so the drawn lines step up a shade */
.dark .sv-c-soft { fill: #343a46; } .dark .sv-c-line { fill: #4b5262; }

/* ------------------------------------------------------------------ Sopana Plus: the free preview's locks, the account page, the dashboard */
.ic-xs { width: 12px; height: 12px; }
.nav-lock { display: inline-flex; margin-left: 5px; color: var(--muted-foreground); vertical-align: -1px; }
.lock-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-foreground); flex: none; }
.plus-tag, .plus-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); }
.plus-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; background: var(--card); border: 1px dashed var(--border-strong); border-radius: 20px; }
.plus-strip p { flex: 1; min-width: 220px; font-size: .88rem; color: var(--muted-foreground); }
.plus-strip b { color: var(--foreground); }
.plus-card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; margin: 22px 0 8px; padding: 30px; background: var(--card); border-radius: 28px; box-shadow: inset 0 0 0 2px var(--f600), var(--shadow); }
.plus-card h3 { font-size: 1.6rem; margin: 14px 0 6px; }
.plus-card p { color: var(--muted-foreground); }
.plus-card .tick-list { margin-top: 14px; gap: 8px; }
.plus-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.plus-signin { font-size: .86rem; color: var(--muted-foreground); }
.plus-lock { display: flex; gap: 18px; align-items: flex-start; margin: 26px 0; padding: 30px; background: var(--card); border-radius: 28px; box-shadow: inset 0 0 0 2px var(--f600), var(--shadow); }
.plus-lock > .lock-badge { width: 48px; height: 48px; }
.plus-lock > .lock-badge .ic { width: 22px; height: 22px; }
.plus-lock h2 { font-size: 1.55rem; margin-bottom: 8px; }
.plus-lock p { color: var(--muted-foreground); max-width: 62ch; }
.plus-lock .tick-list { margin: 14px 0 4px; }
.plus-lock .plus-signin { margin-top: 12px; }
.plus-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.header-plus { margin-right: 6px; }
.account-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; max-width: 1000px; margin: 6px auto 40px; align-items: start; }
.account-card { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.account-card.quiet { box-shadow: none; }
.account-card h1 { font-size: 1.7rem; overflow-wrap: anywhere; margin-bottom: 18px; }
.account-card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.account-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.account-card .callout { margin-bottom: 14px; }
.account-note { margin-top: 14px; }
.plan-status { border: 1px solid var(--border); border-radius: 22px; padding: 22px; background: var(--background); }
.plan-status p { color: var(--muted-foreground); }
.plan-status.on { background: var(--accent); border-color: transparent; box-shadow: inset 0 0 0 2px var(--f600); }
.plan-status.on p { color: var(--accent-foreground); }
.plan-status .plan-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--foreground); margin-bottom: 4px; }
.plan-status.on .plan-badge { color: var(--accent-foreground); }
.plan-status .muted { margin-top: 12px; font-size: .86rem; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.private-banner button { text-decoration: underline; font-weight: 600; color: inherit; min-height: 32px; }
.plus-admin { margin-top: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.plus-admin-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.plus-admin-head h2 { font-size: 1.7rem; margin: 6px 0; }
.plus-admin-head .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.plus-admin .dash-grid { grid-template-columns: repeat(4, 1fr); }
.plus-admin .callout { margin: 4px 0 0; }
.stripe-setup { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 6px; }
.stripe-setup summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; gap: 10px; }
.stripe-setup .setup-steps { margin: 6px 0 20px; }
.stripe-setup .setup-steps li > span { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; color: var(--foreground); background: var(--background); }
.events { display: flex; flex-wrap: wrap; gap: 6px; }
.events code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; background: var(--muted); color: var(--foreground); padding: 3px 8px; border-radius: 8px; }
.payments-form { display: grid; gap: 14px; max-width: 640px; }
.payments-form label.field { font-size: .88rem; font-weight: 600; }
.payments-form input { display: block; width: 100%; margin-top: 6px; }
.payments-form small { font-weight: 600; color: var(--ok); margin-left: 6px; }
.stripe-last { margin-top: 14px; font-size: .86rem; }
/* a Plus tool as free visitors see it: what it does, beside a small moving picture of it */
.locked { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 60px; align-items: center; padding: 18px 0 30px; }
.locked-copy h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin: 16px 0 14px; }
.locked-copy .intro { font-size: 1.05rem; line-height: 1.7; color: var(--muted-foreground); max-width: 34em; }
.locked-copy .tick-list { margin-top: 22px; }
.locked-price { margin-top: 22px; font-size: .95rem; }
.locked-copy .plus-signin { margin-top: 14px; }
.locked-art { justify-self: center; display: grid; place-items: center; width: 100%; max-width: 440px; aspect-ratio: 1; background: var(--card); border: 1px solid var(--border); border-radius: 44px; }
.locked-art .fa { width: 80%; height: auto; }
/* the pictures' parts */
.fa-ring { fill: none; stroke: var(--f300); stroke-width: 1.5; }
.fa-axis { fill: none; stroke: var(--f300); stroke-width: 1; stroke-dasharray: 3 6; }
.fa-wedge { fill: var(--f600); opacity: .16; }
.fa-beam { stroke: var(--f600); stroke-width: 2.5; stroke-linecap: round; }
.fa-blip, .fa-hub { fill: var(--f700); }
.fa-sheet { fill: var(--card); stroke: var(--border-strong); stroke-width: 1.5; }
.fa-sheet.s1 { stroke: var(--f600); }
.fa-bar { fill: var(--f300); }
.fa-bar.soft { fill: var(--muted); }
.fa-dot { fill: var(--f300); }
.fa-ribbon { fill: var(--f700); }
.fa-glass { fill: var(--accent); fill-opacity: .55; stroke: var(--f700); stroke-width: 5; }
.fa-handle { stroke: var(--f700); stroke-width: 9; stroke-linecap: round; }
.fa-lens { transform: translate(102px, 70px); }
.fa-check-ring { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 3; }
.fa-check { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.fa-tile { fill: var(--card); stroke: var(--border-strong); stroke-width: 1.5; }
.fa-cursor { fill: var(--foreground); stroke: var(--card); stroke-width: 2; stroke-linejoin: round; transform: translate(132px, 88px); }

/* ------------------------------------------------------------------ the CV checker (Sopana Plus): the form beside the score, the details below */
.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cv-input, .cv-result { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cv-input h2, .cv-result h2 { font-size: 1.3rem; letter-spacing: -.01em; }
.cv-result h2:focus { outline: none; }
.cv-drop { display: grid; justify-items: center; gap: 4px; padding: 24px 18px; text-align: center; border: 2px dashed var(--border-strong); border-radius: 20px; background: var(--background); cursor: pointer; transition: border-color .2s, background-color .2s; }
.cv-drop .ic { width: 26px; height: 26px; color: var(--accent-foreground); transform: rotate(-45deg); margin-bottom: 4px; }
.cv-drop span { font-size: .86rem; color: var(--muted-foreground); }
.cv-drop:hover, .cv-drop.over { border-color: var(--f600); background: var(--accent); }
.cv-drop:focus-within { outline: 3px solid var(--ring); outline-offset: 3px; }
.cv-file-note { display: flex; gap: 6px; align-items: flex-start; font-size: .86rem; color: var(--muted-foreground); }
.cv-file-note:empty { display: none; }
.cv-file-note .ic-sm { flex: none; margin-top: 3px; color: var(--ok); }
.cv-input .field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.cv-input textarea { width: 100%; min-height: 180px; resize: vertical; font-size: .9rem; line-height: 1.55; }
.cv-input select { width: 100%; }
.cv-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cv-jd summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; cursor: pointer; list-style: none; font-size: .9rem; font-weight: 700; }
.cv-jd summary::-webkit-details-marker { display: none; }
.cv-jd summary::after { content: "+"; font-size: 1.3rem; font-weight: 500; line-height: 1; color: var(--accent-foreground); transition: transform .2s var(--ease-out); }
.cv-jd[open] summary::after { transform: rotate(45deg); }
.cv-jd textarea { min-height: 120px; margin-top: 6px; }
.cv-input .btn-lg { align-self: flex-start; }
.cv-privacy { display: flex; gap: 8px; font-size: .84rem; color: var(--muted-foreground); }
.cv-privacy .ic-sm { flex: none; margin-top: 3px; }
.cv-what { list-style: none; padding: 0; }
.cv-what li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.cv-what li:first-child { border-top: 0; }
.cv-what span { color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-sub { font-size: 1rem; margin-top: 4px; }
.cv-hint { font-size: .88rem; line-height: 1.6; color: var(--muted-foreground); }
.cv-firms { list-style: none; padding: 0; display: grid; gap: 6px; }
.cv-firms li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; padding: 8px 12px; border-radius: 12px; background: var(--background); font-size: .9rem; }
.cv-firms span { font-size: .84rem; color: var(--muted-foreground); }
.cv-t-ok { --tone: var(--ok); --tone-bg: var(--ok-bg); } .cv-t-warn { --tone: var(--warn); --tone-bg: var(--warn-bg); }
.cv-t-bad { --tone: var(--bad); --tone-bg: var(--bad-bg); } .cv-t-none { --tone: var(--muted-foreground); --tone-bg: var(--muted); }
.cv-top { display: grid; justify-items: center; gap: 6px; text-align: center; }
.cv-score { position: relative; width: 150px; height: 150px; }
.cv-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cv-ring-bg { fill: none; stroke: var(--muted); stroke-width: 10; }
.cv-ring { fill: none; stroke: var(--tone); stroke-width: 10; stroke-linecap: round; stroke-dasharray: var(--score) 100; }
.cv-score span { position: absolute; inset: 0; display: grid; place-content: center; }
.cv-score b { font: 800 2.6rem/1 var(--font-heading); letter-spacing: -.03em; }
.cv-score small { font-size: .85rem; color: var(--muted-foreground); }
.cv-verdict { font-weight: 700; color: var(--tone); }
.cv-line { max-width: 34em; font-size: .92rem; color: var(--muted-foreground); }
.cv-cats { list-style: none; padding: 0; display: grid; gap: 10px; }
.cv-cats li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .9rem; }
.cv-cats b { font-variant-numeric: tabular-nums; }
.cv-cats i { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.cv-cats s { display: block; height: 100%; border-radius: inherit; background: var(--tone); transform-origin: left; }
.cv-first { list-style: none; padding: 0; display: grid; gap: 8px; counter-reset: fix; }
.cv-first li { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 46px; border-radius: 16px; background: var(--background); font-size: .9rem; counter-increment: fix; }
.cv-first li::before { content: counter(fix); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-foreground); font-size: .78rem; font-weight: 800; }
.cv-first span { color: var(--muted-foreground); }
.cv-gain { font-size: .8rem; font-style: normal; font-weight: 700; color: var(--ok); }
#cv-detail { margin-top: 24px; }
.cv-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.cv-tabs [role="tab"] { min-height: 44px; padding: 0 16px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-size: .92rem; font-weight: 600; color: var(--muted-foreground); }
.cv-tabs [role="tab"]:hover { color: var(--foreground); }
.cv-tabs [role="tab"][aria-selected="true"] { color: var(--foreground); border-bottom-color: var(--f600); }
.cv-panel { display: grid; gap: 14px; max-width: 900px; }
.cv-panel.cv-wide { max-width: none; }
.cv-panel:focus-visible { outline-offset: 6px; }
.cv-list { display: grid; gap: 8px; }
.cv-fixes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.cv-good { padding-bottom: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; }
.cv-good h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; font-size: 1rem; }
.cv-good h3 span, .cv-good summary em { font-size: .84rem; font-style: normal; font-weight: 500; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.cv-good details { border-top: 1px solid var(--border); }
.cv-good summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; cursor: pointer; list-style: none; font-size: .92rem; font-weight: 600; }
.cv-good summary::-webkit-details-marker { display: none; }
.cv-good summary span { flex: 1; }
.cv-good summary .ic-sm { flex: none; color: var(--ok); }
.cv-passed { display: grid; gap: 10px; margin: 0; padding: 0 18px 14px 44px; list-style: none; font-size: .88rem; line-height: 1.55; color: var(--muted-foreground); }
.cv-passed b { display: block; color: var(--foreground); font-weight: 600; }
.cv-check { background: var(--card); border: 1px solid var(--border); border-radius: 18px; }
.cv-check summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 18px; cursor: pointer; list-style: none; font-weight: 600; }
.cv-check summary::-webkit-details-marker { display: none; }
.cv-check summary > span:nth-child(2) { flex: 1; }
.cv-badge { flex: none; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--tone); background: var(--tone-bg); }
.cv-pts { font-size: .84rem; font-style: normal; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.cv-check > div { display: grid; gap: 10px; padding: 0 18px 18px; font-size: .92rem; line-height: 1.6; color: var(--muted-foreground); }
.cv-how b { color: var(--foreground); }
.cv-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv-ex p { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; font-size: .88rem; color: var(--foreground); }
.cv-ex p:only-child { grid-column: 1 / -1; }
.cv-ex span { font-size: .74rem; font-weight: 700; }
.cv-before { background: var(--bad-bg); }
.cv-before span { color: var(--bad); }
.cv-after { background: var(--ok-bg); }
.cv-after span { color: var(--ok); }
.cv-found { display: grid; gap: 6px; }
.cv-found > span { font-size: .78rem; font-weight: 700; color: var(--foreground); }
.cv-found q { display: block; padding: 8px 12px; border-left: 3px solid var(--warn); border-radius: 0 10px 10px 0; background: var(--background); font-size: .86rem; quotes: none; }
.cv-kind { margin-bottom: -6px; font-size: .84rem; font-weight: 700; color: var(--muted-foreground); }
.cv-kws { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cv-kw { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px dashed var(--border-strong); border-radius: 999px; background: var(--card); font-size: .86rem; }
.cv-kw span { font-size: .78rem; color: var(--muted-foreground); }
.cv-kw.has { border: 1px solid transparent; background: var(--ok-bg); }
.cv-kw.has .ic-sm { color: var(--ok); }
.cv-tip { padding: 14px 16px; border-radius: 16px; background: var(--accent); color: var(--accent-foreground); font-size: .9rem; }
.cv-tip p { margin-top: 4px; }
.cv-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: .84rem; }
.cv-read { max-height: 70vh; overflow: auto; padding: 18px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.7 var(--font-sans, inherit); background: var(--card); border: 1px solid var(--border); border-radius: 18px; }
.cv-mark { padding: 0 2px; border-radius: 4px; color: inherit; }
.cv-mark.key { background: color-mix(in srgb, var(--f600) 20%, transparent); }
.cv-mark.good { background: var(--ok-bg); box-shadow: inset 0 -2px 0 var(--ok); }
.cv-mark.weak { background: var(--warn-bg); box-shadow: inset 0 -2px 0 var(--warn); }
.cv-note { max-width: 70ch; padding: 10px 14px; border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: 0 12px 12px 0; background: var(--card); font-size: .86rem; }
/* the checker's picture: a CV being scanned, each line ticked, a score filling up */
.fa-tick.ok { fill: var(--ok); } .fa-tick.warn { fill: var(--warn); }
.fa-scan { fill: var(--f600); opacity: .5; }
.fa-score-bg { fill: var(--card); stroke: var(--muted); stroke-width: 7; }
.fa-score-val { fill: none; stroke: var(--ok); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 82 100; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
.fa-score-num { font: 800 20px var(--font-heading); fill: var(--foreground); }

/* ------------------------------------------------------------------ motion
   One opening on the home page (the headline climbs in step by step, the routes draw out from the UK, the three
   steps rise), lights travelling the routes now and then, the Plus tools' pictures moving gently, the visa stamp
   landing, pages gliding in, and replies to taps. "Motion: None" and the device's reduce-motion setting turn all of
   it off, leaving every picture complete and still. */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); --dur-1: 140ms; --dur-2: 240ms; --dur-3: 420ms; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes climb { from { opacity: 0; transform: translate(-16px, 24px); } to { opacity: 1; transform: none; } }
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop-dot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--f600) 45%, transparent); } to { box-shadow: 0 0 0 12px transparent; } }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } to { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }
@keyframes step-up { 0%, 100% { transform: scaleY(.45); opacity: .5; } 40% { transform: scaleY(1); opacity: 1; } }
@keyframes rm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rm-comet { 0% { stroke-dashoffset: .06; } 32%, 100% { stroke-dashoffset: -1; } }
@keyframes rm-ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blip { 0% { opacity: 0; transform: scale(.3); } 5% { opacity: 1; transform: scale(1.3); } 12% { transform: scale(1); } 60% { opacity: .85; } 100% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-44px); } 60% { opacity: 1; transform: translateY(4px); } 100% { transform: none; } }
@keyframes lens { 0%, 100% { transform: translate(102px, 70px); } 33% { transform: translate(132px, 116px); } 66% { transform: translate(96px, 158px); } }
@keyframes lit { 0%, 20%, 100% { fill: var(--card); } 6%, 14% { fill: var(--accent); } }
@keyframes cursor { 0%, 100% { transform: translate(72px, 88px); } 16.6% { transform: translate(132px, 88px); } 33.3% { transform: translate(192px, 88px); } 50% { transform: translate(72px, 154px); } 66.6% { transform: translate(132px, 154px); } 83.3% { transform: translate(192px, 154px); } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.5) rotate(-12deg); } 60% { opacity: 1; transform: scale(.96) rotate(-1deg); } 100% { transform: rotate(-1.5deg); } }
@keyframes art-pop { 0% { opacity: 0; transform: scale(.55); } 55% { opacity: 1; transform: scale(1.07); } 78% { transform: scale(.98); } 100% { transform: none; } }
@keyframes glow-in { from { transform: scale(.2); } to { transform: none; } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.3) rotate(16deg); } 55% { opacity: 1; transform: scale(.9) rotate(-4deg); } 78% { transform: scale(1.04) rotate(1deg); } 100% { transform: none; } }
@keyframes thud { 0%, 100% { transform: none; } 35% { transform: translate(-2px, 4px) rotate(-1deg); } 65% { transform: translate(1px, -1px); } }
@keyframes draw-in { 0% { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes fly-in { 0% { opacity: 0; transform: translate(-80px, 70px) scale(.4); } 70% { opacity: 1; } 100% { transform: none; } }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translate(3px, -5px); } }
@keyframes grow-up { from { transform: scaleY(0); } to { transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes hop {
  0% { opacity: 0; transform: translate(-160px, 113px); }
  8% { opacity: 1; transform: translate(-160px, 113px); }
  16% { transform: translate(-140px, 65px); }
  24% { transform: translate(-120px, 87px); }
  32% { transform: translate(-100px, 39px); }
  40% { transform: translate(-80px, 61px); }
  48% { transform: translate(-60px, 13px); }
  56% { transform: translate(-40px, 35px); }
  64% { transform: translate(-20px, -13px); }
  72% { transform: translate(0, 9px); }
  86% { transform: translate(0, -12px); }
  100% { opacity: 1; transform: none; }
}
@keyframes gem-pop { 0% { opacity: 0; transform: scale(.2) rotate(-24deg); } 60% { opacity: 1; transform: scale(1.12) rotate(6deg); } 80% { transform: scale(.97) rotate(-2deg); } 100% { transform: none; } }
@keyframes orbit-dash { to { stroke-dashoffset: -120; } }
@keyframes twinkle { 0%, 70%, 100% { opacity: 0; transform: scale(.2); } 80% { opacity: 1; transform: scale(1.15) rotate(45deg); } 90% { opacity: .9; transform: scale(.9) rotate(80deg); } }
@keyframes badge-pop { 0% { opacity: 0; transform: scale(0) rotate(-28deg); } 60% { opacity: 1; transform: scale(1.16) rotate(9deg); } 80% { transform: scale(.96) rotate(-3deg); } 100% { transform: none; } }
@keyframes coin-flip { 0% { opacity: 0; transform: scale(0); } 40% { opacity: 1; transform: scale(1.1); } 60% { transform: scaleX(.06); } 80% { transform: scaleX(1.04); } 100% { transform: none; } }
@keyframes scene-pop { 0% { opacity: 0; transform: translateX(60px) scale(.8); } 60% { opacity: 1; transform: scale(1.04); } 100% { transform: none; } }
@keyframes chip-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(96px); } }
@keyframes score-fill { from { stroke-dasharray: 0 100; } }
.page-enter { animation: rise var(--dur-3) var(--ease-out) backwards; }
.stair-loader i { animation: step-up 1.1s var(--ease-out) infinite; }
.stair-loader i:nth-child(2) { animation-delay: .15s; }
.stair-loader i:nth-child(3) { animation-delay: .3s; }
/* the home page's opening */
.intro .step-line { animation: climb 650ms var(--ease-out) backwards; }
.intro .step-line:nth-child(1) { animation-delay: 120ms; }
.intro .step-line:nth-child(2) { animation-delay: 260ms; }
.intro .step-line:nth-child(3) { animation-delay: 400ms; }
.intro .hero-lede { animation: rise 520ms var(--ease-out) 540ms backwards; }
.intro .search-bar { animation: rise 520ms var(--ease-out) 640ms backwards; }
.intro .stairs-title { animation: fade 400ms ease 720ms backwards; }
.intro .stair { animation: rise 560ms var(--ease-spring) backwards; }
.intro .stair:nth-child(1) { animation-delay: 780ms; }
.intro .stair:nth-child(2) { animation-delay: 880ms; }
.intro .stair:nth-child(3) { animation-delay: 980ms; }
.intro .hero-map { animation: fade 600ms ease 120ms backwards; }
.intro .hero-map figcaption { animation: fade 500ms ease 1.5s backwards; }
.intro .hiring { animation: fade 500ms ease 1.1s backwards; }
/* the route map draws itself from the UK outwards, then lights travel the routes now and then */
.route-map.animate .rm-draw { animation: rm-draw 900ms var(--ease-out) calc(300ms + var(--i) * 120ms) backwards; }
.route-map.animate .rm-node { transform-box: fill-box; transform-origin: center; animation: pop-dot 500ms var(--ease-spring) calc(1000ms + var(--i) * 120ms) backwards; }
.route-map.animate .rm-at { animation: fade 400ms ease calc(1100ms + var(--i) * 120ms) backwards; }
.rm-comet { animation: rm-comet 9s cubic-bezier(.45, 0, .25, 1) calc(2.2s + var(--i) * 1.3s) infinite; }
.rm-pulse { transform-box: fill-box; transform-origin: center; animation: rm-ping 2.4s var(--ease-out) 1s 3; }
/* the visa stamp lands once */
.stamp { animation: stamp 600ms var(--ease-spring) 250ms backwards; }
/* the Plus tools' pictures */
.fa-tick { transform-box: fill-box; transform-origin: center; animation: pop-dot 400ms var(--ease-spring) var(--d) backwards; }
.fa-scan { animation: scan 3.4s ease-in-out infinite; }
.fa-score-val { animation: score-fill 1.4s var(--ease-out) .6s backwards; }
.cv-ring { animation: score-fill 1s var(--ease-out) backwards; }
.cv-cats s { animation: fill-x 800ms var(--ease-out) 200ms backwards; }
.fa-sweep { transform-box: view-box; transform-origin: 120px 120px; animation: spin 4s linear infinite; }
.fa-blip { transform-box: fill-box; transform-origin: center; animation: blip 4s ease-out var(--d) infinite backwards; }
.fa-front { animation: float 5s ease-in-out 1s infinite; }
.fa-ribbon { animation: drop 700ms var(--ease-spring) 500ms backwards; }
.fa-lens { animation: lens 7s ease-in-out infinite; }
.fa-mark { transform-box: fill-box; transform-origin: center; animation: pop-dot 600ms var(--ease-spring) 1.4s backwards; }
.fa-tile { animation: lit 4.8s ease-in-out var(--d) infinite; }
.fa-cursor { animation: cursor 4.8s ease-in-out infinite; }
/* each page's heading: the words rise, the picture zooms in and pops, then acts out the page */
.page-heading-copy > *, .locked-copy > * { animation: rise 560ms var(--ease-out) backwards; }
.page-heading-copy > :nth-child(2), .locked-copy > :nth-child(2) { animation-delay: 90ms; }
.page-heading-copy > :nth-child(n+3), .locked-copy > :nth-child(n+3) { animation-delay: 180ms; }
.page-art > *, .locked-art { animation: art-pop 820ms var(--ease-out) 120ms backwards; }
.head-art :is(.a-glow, .a-stamp, .a-gem, .a-sparkle, .a-badge, .a-coin) { transform-box: fill-box; transform-origin: center; }
.head-art :is(.a-step, .a-bar, .a-door, .a-doc) { transform-box: fill-box; transform-origin: 50% 100%; }
.head-art .a-line { transform-box: fill-box; transform-origin: 0 50%; }
.head-art :is(.a-check, .a-sign, .a-draw) { stroke-dasharray: 1; }
.head-art .a-glow { animation: glow-in 1s var(--ease-out) 150ms backwards; }
.head-art .a-trail { animation: fade 900ms ease 500ms backwards; }
.head-art .a-fly { animation: fly-in 900ms var(--ease-out) 650ms backwards, bob 3.4s ease-in-out 1.6s infinite; }
/* visa: the stamp lands on the passport, the passport takes the knock, and the tick is written */
.head-art .a-stamp { animation: slam 640ms var(--ease-out) 650ms backwards; }
.head-art .a-thud { animation: thud 360ms ease-out 990ms, float 6s ease-in-out 1.6s infinite; }
.head-art .a-check { animation: draw-in 420ms var(--ease-out) 1250ms backwards; }
/* about: the steps rise one by one, the doorway opens, and a dot climbs up to it */
.head-art .a-step { animation: grow-up 560ms var(--ease-spring) calc(260ms + var(--d) * 110ms) backwards; }
.head-art .a-door { animation: rise-in 640ms var(--ease-out) 300ms backwards; }
.head-art .a-hop { animation: hop 1.6s ease-in-out 1s backwards; }
/* plans: the diamond pops and sparkles, its ring turns, and the badges flip in */
.head-art .a-gem { animation: gem-pop 820ms var(--ease-spring) 240ms backwards, float 6s ease-in-out 1.4s infinite; }
.head-art .a-orbit { animation: orbit-dash 6s linear infinite; }
.head-art .a-sparkle { opacity: 1; animation: twinkle 3.6s ease-in-out 1.2s infinite backwards; }
.head-art .a-sparkle + .a-sparkle { animation-delay: 2.6s; }
.head-art .a-badge { animation: badge-pop 680ms var(--ease-out) 860ms backwards; }
.head-art .a-coin { animation: coin-flip 900ms var(--ease-out) 1100ms backwards; }
/* terms and privacy: the page rises, its lines write themselves, it is signed, and the badge swings in */
.head-art .a-doc { animation: rise-in 650ms var(--ease-out) 180ms backwards, float 6s ease-in-out 1.6s infinite; }
.head-art .a-line { animation: grow-x 420ms var(--ease-out) calc(480ms + var(--d) * 80ms) backwards; }
.head-art .a-sign { animation: draw-in 700ms ease-in-out 1150ms backwards; }
/* the author dashboard: the bars grow and the trend is drawn */
.head-art .a-bar { animation: grow-up 560ms var(--ease-spring) calc(320ms + var(--d) * 100ms) backwards; }
.head-art .a-draw { animation: draw-in 800ms var(--ease-out) 900ms backwards; }
/* a job's banner: its scene zooms in from the side and the field's name slides in */
.job-banner .a-scene { transform-box: fill-box; transform-origin: center; animation: scene-pop 800ms var(--ease-out) 120ms backwards; }
.job-banner .scene-chip { animation: chip-in 520ms var(--ease-out) 380ms backwards; }
/* replies to taps */
#board-results.swap, .country-panel.swap { animation: rise 300ms var(--ease-out) backwards; }
.save.pop svg, .count.bump { animation: pop 420ms var(--ease-spring); }
.guide-dialog[open] { animation: pop-in var(--dur-2) var(--ease-out); }
/* cards rise into place as they scroll into view; the browser ties this to the scroll position, so nothing can be
   left hidden, and browsers without scroll-driven animation simply show the cards */
@supports (animation-timeline: view()) {
  html:not([data-motion="none"]) :is(.job-card, .deadline-row, .sponsor-result, .platform, .plan, .tile, .chart-card, .unavailable-role, .plus-card) {
    animation: rise var(--ease-out) backwards; animation-timeline: view(); animation-range: entry 0% entry 55%;
  }
  html:not([data-motion="none"]) .deadline-bar span { transform-origin: left; animation: fill-x var(--ease-out) backwards; animation-timeline: view(); animation-range: entry 40% cover 45%; }
}
html[data-motion="none"] *, html[data-motion="none"] *::before, html[data-motion="none"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .desktop-nav { gap: 14px; font-size: .8rem; }
  .header-inner { gap: 14px; }
  .job-side { max-width: 180px; }
  .switch-row { margin-left: 0; }
  .dash-grid { grid-template-columns: repeat(3, 1fr); }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .demand-ranks { grid-template-columns: 1fr; }
  .job-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 0 32px; }
  .stairway { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .stairway li { min-height: 0; }
  .hero { gap: 36px; }
  .explorer { grid-template-columns: 1fr; gap: 24px; }
  .countries-map { position: static; max-width: 760px; }
  .cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .container { width: calc(100% - 40px); }
  .desktop-nav { display: none; }
  .header-controls { margin-left: auto; }
  .mobile-menu { display: inline-flex; }
  .header-inner { min-height: 68px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .search-bar { flex-wrap: wrap; }
  .search-input { width: 100%; flex: auto; }
  .search-bar select { flex: 1; max-width: none; border-left: 0; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .checker { grid-template-columns: 1fr; }
  .checker .out { border-left: 0; border-top: 1px solid var(--border); }
  .visa-top, .visa-guides { grid-template-columns: 1fr; }
  .job-layout { grid-template-columns: 1fr; grid-template-areas: "head" "aside" "main"; gap: 22px; }
  .job-aside { position: static; }
  .job-main > section:first-child { margin-top: 8px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .about-top, .about-notes { grid-template-columns: 1fr; }
  .name-card { grid-template-columns: 1fr; text-align: center; }
  .stairway { grid-template-columns: 1fr; }
  .stairway li { margin-left: calc(var(--i) * 12px); }
  .plans, .faq-list, .account-wrap, .cv-layout, .cv-fixes { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .locked { grid-template-columns: 1fr; gap: 32px; }
  .locked-art { max-width: 360px; }
  .ranks { grid-template-columns: 1fr; }
  .visibility-card { grid-template-columns: 1fr; }
  .visibility-card .actions { justify-content: flex-start; }
  .plus-card { grid-template-columns: 1fr; gap: 18px; }
  .plus-admin-head { grid-template-columns: 1fr; }
  .plus-admin-head .actions { justify-content: flex-start; }
  .header-plus { display: none; }
  .page-heading { grid-template-columns: 1fr; gap: 18px; }
  .page-art { justify-self: start; max-width: 220px; }
}
@media (max-width: 639px) {
  .perks, .wants { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
  .main { padding-top: 18px; padding-bottom: 50px; }
  .logo { font-size: 1.5rem; }
  .logo .mark { width: 28px; height: 32px; }
  .preview-pill { display: none; }
  .header-controls .btn-label { display: none; }
  .header-inner { gap: 10px; }
  .header-controls { gap: 0; }
  .header-controls .btn { padding: 0 9px; }
  .header-controls .btn-icon { width: 42px; padding: 0; }
  .hero-title { font-size: 2.3rem; }
  .step-line:nth-child(2) { padding-left: .5em; }
  .step-line:nth-child(3) { padding-left: 1em; }
  /* on a phone the map keeps its routes, and the country names sit underneath as a row of buttons */
  .route-map { aspect-ratio: auto; display: flex; flex-direction: column; border-radius: 24px; }
  .route-map .rm-svg { position: relative; inset: auto; height: auto; aspect-ratio: 640 / 400; }
  .route-map .rm-labels { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px; }
  .route-map .rm-at { position: static; transform: none; }
  .stairs ol { gap: 6px; }
  .stair button { padding: 10px; border-radius: 16px; gap: 4px; }
  .stair:nth-child(1) button { min-height: 92px; }
  .stair:nth-child(2) button { min-height: 108px; }
  .stair:nth-child(3) button { min-height: 124px; }
  .stair-n { width: 26px; height: 26px; font-size: .78rem; }
  .stair-q { font-size: .72rem; }
  .stair-a { font-size: .86rem; }
  .guide-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; }
  .guide { padding: 20px 16px 28px; }
  .guide-head h2 { font-size: 1.35rem; }
  .guide-steps { gap: 6px; }
  .guide-steps li:nth-child(1) { margin-top: 14px; }
  .guide-steps li:nth-child(2) { margin-top: 7px; }
  .guide-steps button { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 10px; border-radius: 16px; }
  .guide-steps .step-number { min-width: 28px; height: 28px; font-size: .85rem; }
  .guide-steps b { font-size: .8rem; }
  .guide-steps small { max-width: 11ch; font-size: .72rem; }
  .guide-panel h3 { font-size: 1.12rem; }
  .guide-nav .btn-lg { flex: 1; }
  .visa-choices { grid-template-columns: 1fr; }
  .guide-panel .choice-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .guide-panel .choice { justify-content: flex-start; font-size: .8rem; padding-right: 10px; white-space: normal; text-align: left; line-height: 1.2; }
  .hiring { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hiring-rail { width: 100%; }
  .board-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .board-head h2 { font-size: 1.6rem; }
  /* on a phone the field and quick-filter chips scroll sideways in one row instead of filling the screen */
  .field-rail, .quick-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .field-rail::-webkit-scrollbar, .quick-filters::-webkit-scrollbar { display: none; }
  .field-rail .btn, .quick-filters .btn { flex-shrink: 0; }
  .quick-filters .label { flex-shrink: 0; }
  .field-rail .btn { font-size: .76rem; }
  .switch-row { width: 100%; }
  .job-card { flex-wrap: wrap; padding: 18px; gap: 12px; border-radius: 22px; }
  .job-card .monogram { width: 40px; height: 40px; font-size: 1.15rem; }
  .job-card .save { position: absolute; top: 8px; right: 8px; }
  .job-card .job-info { padding-right: 34px; }
  .job-info { width: calc(100% - 100px); flex: auto; }
  .job-info h3 { font-size: 1.08rem; }
  .job-side { width: 100%; max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; padding-left: 52px; }
  .deadline-bar { width: 90px; }
  .page-heading h1 { font-size: 2rem; }
  .page-art { max-width: 160px; }
  .job-banner { height: 120px; border-radius: 22px; margin-bottom: 22px; }
  .job-header h1 { font-size: 1.8rem; }
  .job-pair { grid-template-columns: 1fr; }
  .job-aside { padding: 20px; border-radius: 24px; }
  .aside-facts > div { grid-template-columns: 96px minmax(0, 1fr); }
  .visa-panel dl > div { grid-template-columns: 1fr; gap: 4px; }
  .deadline-row { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .deadline-job { width: calc(100% - 80px); flex: auto; }
  .deadline-row .visa, .deadline-row .btn { margin-left: 74px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures b { font-size: 1.45rem; }
  .cp-head h2 { font-size: 1.6rem; }
  .cv-input, .cv-result { padding: 20px; border-radius: 22px; }
  .cv-targets, .cv-ex { grid-template-columns: 1fr; }
  .cv-score { width: 128px; height: 128px; }
  .cv-input .btn-lg { align-self: stretch; }
  /* the three tabs share one row, each label wrapping onto two lines if it must */
  .cv-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .cv-tabs [role="tab"] { padding: 6px 4px; font-size: .84rem; line-height: 1.3; }
  .cp-grid { grid-template-columns: 1fr; }
  .country-panel { padding: 22px 20px 20px; border-radius: 24px; }
  .cp-photo { margin: -22px -20px 16px; }
  .cp-photo-frame { border-radius: 23px 23px 0 0; }
  .cp-photo figcaption { padding: 8px 20px 0; }
  .platforms { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .author-card { padding: 26px 20px; }
  .plus-card, .plus-lock { padding: 22px; border-radius: 24px; }
  .plus-lock { flex-direction: column; gap: 12px; }
  .job-main > .plus-lock { padding: 22px; }
  .plus-card h3, .plus-lock h2 { font-size: 1.3rem; }
  .plus-actions .btn, .plus-card-actions .btn { width: 100%; }
  .plus-card-actions { align-items: stretch; }
  .plus-admin { padding: 20px; }
  .plus-admin .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .account-card { padding: 22px; border-radius: 24px; }
  .locked-copy h1 { font-size: 2.2rem; }
  .locked-art { border-radius: 32px; }
  .private-gate h1 { font-size: 1.9rem; }
  .logo.big { font-size: 3rem; }
  .logo.big .mark { width: 64px; height: 72px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .display-menu { width: min(330px, calc(100vw - 24px)); }
  .pop-panel { position: fixed; left: 12px; right: 12px; top: 76px; width: auto; }
}

