/* NearX website theme: one palette for every page, taken from the NearX mobile app.
   App colours: white background, #111827 text, #64748B secondary text, #E2E8F0 borders,
   #F0064D brand pink (the "X" in the logo and the primary buttons).
   Loaded after the main stylesheet so these tokens replace the original dark ones. */
:root,
.dark {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #111827;
  --card: #ffffff;
  --card-foreground: #111827;
  --popover: #ffffff;
  --popover-foreground: #111827;
  --primary: #f0064d;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #334155;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --accent: #0d9488;
  --accent-foreground: #111827;
  --destructive: #ef4444;
  --border: #e2e8f0;
  --input: #cbd5e1;
  --ring: #f0064d;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html, body { background: #ffffff; }

/* The dark theme used a 1px white highlight on cards; on white it only adds noise. */
.hairline { box-shadow: none; }

/* Logo: the app header draws "Near" in #111111 and "X" in #F0064D, extra bold, tight spacing. */
.nearx-wordmark {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111111;
  white-space: nowrap;
}
.nearx-wordmark > span { color: #f0064d; }
/* NearX logo mark shown before the wordmark everywhere it appears. */
.nearx-wordmark::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.32em;
  vertical-align: -0.22em;
  border-radius: 0.26em;
  background: url("/assets/nearx-logo-mark.png") center / contain no-repeat;
}

/* Accent is used as text (check icons) and as a hover background; keep text teal, hover neutral. */
.bg-accent, .hover\:bg-accent:hover, a.\[a\&\]\:hover\:bg-accent:hover { background-color: #f1f5f9; }

/* About page sections */
.nx-about-band { border-top: 1px solid var(--border); }
.nx-about-wrap { width: 100%; max-width: none; margin: 0; padding: 4rem var(--nx-gutter); }
@media (min-width: 640px) { .nx-about-wrap { padding-block: 5rem; } }
.nx-about-eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin: 0; }
.nx-about-h2 { margin: 1rem 0 0; max-width: 42rem; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--foreground); }
.nx-about-lede { margin: 1.25rem 0 0; max-width: 46rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-foreground); }
.nx-about-grid { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .nx-about-grid { grid-template-columns: repeat(3, 1fr); } }
.nx-about-card { position: relative; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 1.75rem; }
.nx-about-card h3 { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--foreground); }
.nx-about-card p { margin: .75rem 0 0; font-size: .9375rem; line-height: 1.65; color: var(--muted-foreground); }
.nx-about-num { display: inline-flex; width: 2rem; height: 2rem; margin-bottom: 1rem; border-radius: 999px; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-foreground); font-weight: 700; font-size: .9rem; }
.nx-about-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; font-size: .9375rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.nx-about-link:hover { text-decoration: underline; }
.nx-about-cta .nx-about-wrap { text-align: center; }
.nx-about-cta .nx-about-h2 { margin-left: auto; margin-right: auto; }
.nx-about-btn { display: inline-flex; margin-top: 1.75rem; min-height: 3rem; align-items: center; padding: 0 1.75rem; border-radius: .75rem; background: var(--primary); color: var(--primary-foreground); font-weight: 600; text-decoration: none; }
.nx-about-btn:hover { filter: brightness(.94); }

/* ---------------------------------------------------------------------------
   Full-screen layout
   Every page now uses the whole browser window: header, content and footer share one
   fluid gutter (no centred 1152px column with empty margins), and the sign-in / sign-up
   pages fill the window height as a split screen.
--------------------------------------------------------------------------- */
:root {
  --nx-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --nx-header: 65px;
}
html, body, #root { min-height: 100%; }

.max-w-6xl { max-width: none; width: 100%; padding-inline: var(--nx-gutter); }

/* Footer: same gutter as the header, real padding (the utility classes it used are not in the stylesheet) */
.nx-footer-inner { padding-block: 2rem 1.5rem; }
.nx-footer-inner nav[aria-label="Footer navigation"] { margin-left: auto; }

/* Sign-in / sign-up: split screen that fills the window under the header */
div.flex-1:has(> .nx-auth) { display: flex; flex-direction: column; }
.nx-auth {
  flex: 1 1 auto; width: 100%;
  min-height: calc(100svh - var(--nx-header));
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.nx-auth-aside { display: none; }
.nx-auth-panel {
  display: flex; min-width: 0;
  padding: clamp(1.5rem, 5vh, 4rem) var(--nx-gutter);
  background: #ffffff;
}
.nx-auth-fade { margin: auto; width: 100%; max-width: 30rem; }
.nx-auth-card { margin: auto; width: 100%; max-width: 30rem; background: transparent; border: 0; padding: 0; }
.nx-auth-fade > .nx-auth-card { max-width: none; }
.nx-auth-card-wide { max-width: 44rem; }
.nx-auth-card h1 { letter-spacing: -.02em; }
@media (min-width: 1024px) {
  .nx-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nx-auth-aside {
    display: block; position: sticky; top: var(--nx-header); align-self: start;
    height: calc(100svh - var(--nx-header)); overflow: hidden; background: #111827;
  }
  .nx-auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .nx-auth-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,24,39,.82) 0%, rgba(17,24,39,.35) 38%, rgba(17,24,39,0) 70%); }
  .nx-auth-aside-copy { position: absolute; z-index: 1; left: var(--nx-gutter); right: var(--nx-gutter); bottom: clamp(2rem, 7vh, 4.5rem); color: #ffffff; }
  .nx-auth-aside-title { margin: 0; max-width: 30rem; font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
  .nx-auth-aside-title span { color: #f0064d; }
  .nx-auth-aside-text { margin: 1rem 0 0; max-width: 28rem; font-size: 1.0625rem; line-height: 1.6; color: rgba(255,255,255,.85); }
  .nx-auth-panel { padding-inline: clamp(2rem, 5vw, 6rem); }
  .nx-auth-wizard { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

/* Wide FAQ blocks use the whole width instead of a centred 768px column */
.mx-auto.max-w-3xl { max-width: none; margin-inline: 0; }
@media (min-width: 1024px) {
  .mx-auto.max-w-3xl > [data-slot="accordion"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
}

/* Header: nine items do not fit side by side below 1024px, so tablets use the menu button like phones */
header a { white-space: nowrap; }
header > nav[aria-label="Mobile navigation"] { padding-inline: var(--nx-gutter); }
@media (min-width: 768px) and (max-width: 1023.98px) {
  header > div > nav[aria-label="Main navigation"],
  header > div > div.hidden { display: none; }
  header > div > button[aria-label$="navigation"] { display: inline-flex; }
  header > nav[aria-label="Mobile navigation"] { display: block; }
}

/* Sign-in / sign-up on phones and tablets: form starts near the top instead of floating in the middle */
@media (max-width: 1023.98px) {
  .nx-auth-panel { align-items: flex-start; padding-top: clamp(2rem, 8vh, 5rem); }
  .nx-auth-fade, .nx-auth-card { margin-top: 0; }
}

/* Email links and the Contact us section */
.nx-mail { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nx-mail:hover { filter: brightness(.9); }
.nx-contact { margin: 4rem calc(var(--nx-gutter) * -1) 0; border-block: 1px solid var(--border); background: #f8fafc; scroll-margin-top: var(--nx-header); }
.nx-contact-grid { display: grid; gap: 2.5rem; padding: 4rem var(--nx-gutter); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .nx-contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 7rem); padding-block: 5rem; align-items: start; } }
.nx-contact-h2 { margin: 1rem 0 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--foreground); }
.nx-contact-lede { margin: 1.25rem 0 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-foreground); }
.nx-contact-direct { margin: 1.5rem 0 0; font-size: 1.0625rem; color: var(--foreground); overflow-wrap: anywhere; }
.nx-contact-note { margin: 1rem 0 0; font-size: .875rem; color: var(--muted-foreground); }
.nx-contact-form { display: flex; flex-direction: column; gap: .5rem; border: 1px solid var(--border); border-radius: 1.25rem; background: #fff; padding: clamp(1.25rem, 3vw, 2rem); }
.nx-contact-form label { margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--foreground); }
.nx-contact-form select, .nx-contact-form textarea { width: 100%; border: 1px solid var(--input); border-radius: .75rem; background: #fff; padding: .75rem .875rem; font: inherit; font-size: .9375rem; color: var(--foreground); }
.nx-contact-form select { min-height: 3rem; }
.nx-contact-form textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.nx-contact-form select:focus, .nx-contact-form textarea:focus { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.nx-contact-count { margin: 0; text-align: right; font-size: .75rem; color: var(--muted-foreground); }
.nx-contact-error { margin: 0; font-size: .875rem; color: var(--destructive); }
.nx-contact-ok { margin: 0; border-radius: .75rem; background: #f0fdf4; padding: .75rem .875rem; font-size: .875rem; line-height: 1.5; color: #166534; }
.nx-contact-btn { margin-top: .75rem; min-height: 3.25rem; border: 0; border-radius: .75rem; background: var(--primary); color: var(--primary-foreground); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
.nx-contact-btn:hover { filter: brightness(.94); }

/* The sticky header must be opaque: the blur utility is not in the stylesheet, so page text showed through it */
header.sticky { background: #ffffff; }

/* Live camera check: a true full-window layer on every device (dynamic viewport height, safe areas, no page scroll behind it) */
body:has(.nx-live-dialog) { overflow: hidden; }
.nx-live-dialog {
  position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column;
  width: 100%; height: 100vh; height: 100dvh; background: #050607; color: #fff;
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
.nx-live-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .75rem max(1rem, env(safe-area-inset-left)); background: #0b0c0d; }
.nx-live-title { margin: 0; font-size: 1rem; font-weight: 700; }
.nx-live-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.nx-live-link { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid #64748b; border-radius: .75rem; color: #f1f5f9; font-size: .875rem; font-weight: 600; text-decoration: none; }
.nx-live-link:hover { background: #1e293b; }
.nx-live-result { min-height: 44px; padding: .5rem 1rem; border: 0; border-radius: .75rem; background: #f0064d; color: #ffffff; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.nx-live-result:disabled { opacity: .6; cursor: default; }
/* Result panel shown inside the camera window after "Show my result" */
.nx-live-outcome { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(5, 6, 7, .94); overflow: auto; }
.nx-live-outcome-card { width: min(100%, 420px); padding: 1.75rem 1.5rem; border-radius: 1.25rem; background: #ffffff; color: #111827; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.nx-live-badge { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 999px; background: #dc2626; color: #ffffff; font-size: 1.75rem; font-weight: 700; line-height: 1; }
.nx-live-passed .nx-live-badge { background: #16a34a; }
.nx-live-notfinished .nx-live-badge { background: #f59e0b; }
.nx-live-spinner { width: 44px; height: 44px; margin: 0 auto 1rem; border: 4px solid #e2e8f0; border-top-color: #f0064d; border-radius: 999px; animation: nx-spin .9s linear infinite; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nx-live-spinner { animation-duration: 3s; } }
.nx-live-outcome-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.nx-live-outcome-text { margin: .6rem 0 0; font-size: .95rem; line-height: 1.5; color: #475569; }
.nx-live-outcome-btn { margin-top: 1.25rem; width: 100%; min-height: 52px; border: 0; border-radius: .85rem; background: #f0064d; color: #ffffff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.nx-live-outcome-link { margin-top: .5rem; min-height: 44px; padding: 0 1rem; border: 0; background: none; color: #475569; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.nx-live-close { min-height: 44px; padding: .5rem 1rem; border: 0; border-radius: .75rem; background: #ffffff; color: #111827; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.nx-live-tip { flex: 0 0 auto; margin: 0; padding: .5rem 1rem; background: #111315; color: #cbd5e1; font-size: .8125rem; line-height: 1.45; }
/* The camera page is placed in a centred column whose width follows the window height. The camera box on
   that page grows with its width, so on a wide screen it became taller than the window and pushed the
   Start video check button out of view. A column this wide keeps the whole camera box and the button on screen. */
.nx-live-stage { flex: 1 1 0; min-height: 0; display: flex; justify-content: center; overflow: auto; background: #000; }
.nx-live-frame { flex: 0 0 auto; display: block; min-height: 0; height: 100%; width: min(100%, 640px, max(320px, calc((100vh - 200px) * .7))); width: min(100%, 640px, max(320px, calc((100dvh - 200px) * .7))); border: 0; background: #000; }
@media (max-width: 480px) { .nx-live-tip { font-size: .75rem; padding: .4rem .75rem; } .nx-live-frame { width: 100%; } }

/* Utility classes the sign-up steps use that the compiled stylesheet does not include
   (this is why the notice and location boxes had no padding and error/success messages had no tint) */
.p-4 { padding: 1rem; }
.min-h-12 { min-height: 3rem; }
.ml-3 { margin-left: .75rem; }
.bg-green-50 { background-color: #f0fdf4; }
.text-green-800 { color: #166534; }
.bg-secondary\/30 { background-color: rgba(241, 245, 249, .6); }
.bg-destructive\/5 { background-color: rgba(239, 68, 68, .06); }
.border-destructive\/30 { border-color: rgba(239, 68, 68, .3); }
.transition-opacity { transition: opacity .15s ease; }
.disabled\:opacity-60:disabled { opacity: .6; }
@media (min-width: 640px) { .sm\:text-base { font-size: 1rem; line-height: 1.5rem; } }

/* Home page photo cards: the pictures were sizing the row by their own height, so on shorter
   screens (e.g. 1366x768) the cards grew taller than the hero and the footer cut the bottom
   corners off flat. The pictures now fill the card instead of setting its height, so the card
   always fits the hero and both ends have the same rounded corners. */
.nearx-home-photo-panel { min-height: 0; }
.nearx-home-photo-grid { min-height: 0; grid-template-rows: minmax(0, 1fr); }
.nearx-home-photo-card { min-height: 0; height: 100%; isolation: isolate; }
.nearx-home-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* Footer language picker was wider than its column on phones and ran off the screen */
.max-w-full { max-width: 100%; }
footer label select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

/* Short phones (e.g. iPhone SE, 360x640): the one-screen home layout left the photos only a thin
   strip, so on these screens the page scrolls and the photos keep a proper size. */
@media (max-width: 639px) and (max-height: 740px) {
  body:has(.nearx-home-page) { height: auto; min-height: 100svh; overflow-x: hidden; overflow-y: auto; }
  body:has(.nearx-home-page) #root,
  body:has(.nearx-home-page) #root > div.flex { height: auto; min-height: 100svh; overflow: visible; }
  body:has(.nearx-home-page) #root > div.flex > div.flex-1 { overflow: visible; }
  .nearx-home-page { height: auto; overflow: visible; }
  .nearx-home-hero-section { flex: 0 0 auto; }
  .nearx-home-hero-content { height: auto; }
  .nearx-home-photo-panel { height: auto; }
  .nearx-home-photo-grid { height: clamp(230px, 64vw, 300px); }
}

/* Welcome screen at the end of sign-up: a warm greeting */
.nx-welcome { text-align: left; }
.nx-welcome-body { margin: 1rem 0 0; font-size: 1rem; line-height: 1.65; color: #475569; }
.nx-welcome-card { margin-top: 1.5rem; padding: 1.1rem 1.25rem; text-align: left; border: 1px solid #fbd0dc; border-radius: 1rem; background: #fff5f8; }
.nx-welcome-card-title { margin: 0; font-size: 1rem; font-weight: 700; color: #be0a3f; }
.nx-welcome-card-text { margin: .35rem 0 0; font-size: .9rem; line-height: 1.5; color: #475569; }
.nx-welcome-list { display: grid; gap: .4rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.nx-welcome-list li { display: flex; align-items: center; gap: .65rem; font-weight: 600; color: #111827; }

/* Sign-up pickers: birthday lists, phone country + number, height unit switch */
.nx-dob { margin: 0; padding: 0; border: 0; min-width: 0; }
.nx-dob legend { padding: 0; }
.nx-dob-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: .6rem; margin-top: .5rem; }
.nx-dob-field { display: block; min-width: 0; font-size: .8rem; font-weight: 600; color: #475569; }
.nx-dob-field select { width: 100%; min-width: 0; margin-top: .35rem; font-size: 1rem; font-weight: 400; color: #111827; }
@media (max-width: 420px) { .nx-dob-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: .4rem; } }
#nx-phone-country { width: 100%; min-width: 0; font-size: 1rem; }
.nx-phone-row { display: flex; align-items: stretch; margin-top: .5rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--background); overflow: hidden; }
.nx-phone-row:focus-within { border-color: var(--primary); }
.nx-phone-dial { display: flex; align-items: center; padding: 0 .9rem; font-weight: 600; color: #334155; background: #f1f5f9; border-right: 1px solid var(--border); white-space: nowrap; }
.nx-phone-input { flex: 1 1 auto; min-width: 0; padding: .8rem 1rem; font-size: 1rem; color: #111827; background: transparent; border: 0; outline: 0; }
.nx-unit-row { display: inline-flex; gap: .25rem; margin: .25rem 0 .75rem; padding: .25rem; border-radius: .75rem; background: #f1f5f9; }
.nx-unit-btn { min-width: 4.5rem; padding: .5rem 1rem; font-size: .9rem; font-weight: 600; color: #475569; background: transparent; border: 0; border-radius: .6rem; cursor: pointer; }
.nx-unit-btn.is-on { color: #fff; background: #f0064d; }
#nx-height { width: 100%; font-size: 1rem; }

.nx-pick-block { margin-top: 1.5rem; }

/* Legal documents are shown in English only; this notice appears above them in French / Afrikaans. */
main[data-nx-legal]::before {
  content: attr(data-nx-legal);
  display: block;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.85rem 1.25rem;
  background: #fff7e6;
  border-bottom: 1px solid #f1d9a8;
  color: #6b4b00;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

/* Footer language picker: keep long names (e.g. Slovenščina) from being clipped in the narrow phone footer column. */
@media (max-width: 480px) {
  select.mt-2.max-w-full.rounded { font-size: 12px; padding-left: 4px; padding-right: 0; }
}

/* Legal Information page: company facts, document links and inline links inside policy text. */
.nx-inline-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.nx-inline-link:hover { text-decoration-thickness: 2px; }
.nx-facts { margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 0 1.25rem; }
.nx-facts-row { display: grid; gap: 0.25rem; padding: 0.85rem 0; border-top: 1px solid var(--border); }
.nx-facts-row:first-child { border-top: 0; }
.nx-facts-term { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.nx-facts-value { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
@media (min-width: 640px) { .nx-facts-row { grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; } }
.nx-doc-links { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.nx-doc-links .nx-inline-link { text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.nx-doc-links .nx-inline-link:hover { text-decoration: underline; }

/* Careers page (/careers): open positions and the application form */
.nx-career-jobs { padding: 4rem var(--nx-gutter); }
@media (min-width: 640px) { .nx-career-jobs { padding-block: 5rem; } }
.nx-career-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .nx-career-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nx-career-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 1.75rem; }
.nx-career-card h3 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--foreground); overflow-wrap: anywhere; }
.nx-career-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.nx-career-meta li { border: 1px solid var(--border); border-radius: 999px; background: var(--secondary); padding: .25rem .75rem; font-size: .8125rem; font-weight: 600; color: var(--secondary-foreground); }
.nx-career-summary { margin: 1rem 0 0; font-size: .9375rem; line-height: 1.65; color: var(--muted-foreground); white-space: pre-line; overflow-wrap: anywhere; }
.nx-career-detail { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.nx-career-detail p { margin: .75rem 0 0; font-size: .9375rem; line-height: 1.7; color: var(--secondary-foreground); }
.nx-career-pre { white-space: pre-line; overflow-wrap: anywhere; }
.nx-career-detail h4 { margin: 1.25rem 0 0; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--foreground); }
.nx-career-detail ul { margin: .5rem 0 0; padding-inline-start: 1.25rem; }
.nx-career-detail li { margin: .35rem 0 0; font-size: .9375rem; line-height: 1.6; color: var(--secondary-foreground); overflow-wrap: anywhere; }
.nx-career-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; padding-top: 1.5rem; }
.nx-career-btn, .nx-career-btn-ghost { min-height: 2.75rem; padding: 0 1.25rem; border-radius: .75rem; font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.nx-career-btn { border: 0; background: var(--primary); color: var(--primary-foreground); }
.nx-career-btn:hover { filter: brightness(.94); }
.nx-career-btn:disabled { opacity: .6; cursor: default; }
.nx-career-btn-ghost { border: 1px solid var(--input); background: #ffffff; color: var(--foreground); }
.nx-career-btn-ghost:hover { background: var(--secondary); }
.nx-career-note { margin: 2rem 0 0; border: 1px dashed var(--input); border-radius: 1rem; background: var(--muted); padding: 1.5rem; font-size: 1rem; line-height: 1.65; color: var(--muted-foreground); }
.nx-career-apply { border-top: 1px solid var(--border); background: #f8fafc; scroll-margin-top: var(--nx-header); }
.nx-career-apply-grid { display: grid; gap: 2.5rem; padding: 4rem var(--nx-gutter); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .nx-career-apply-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 6vw, 7rem); padding-block: 5rem; align-items: start; } }
.nx-career-side { margin: 1.5rem 0 0; font-size: 1rem; }
.nx-career-form { display: flex; flex-direction: column; gap: .5rem; min-width: 0; border: 1px solid var(--border); border-radius: 1.25rem; background: #ffffff; padding: clamp(1.25rem, 3vw, 2rem); }
.nx-career-label { margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--foreground); }
.nx-career-form input[type="text"], .nx-career-form input[type="email"], .nx-career-form input[type="tel"], .nx-career-form input[type="url"], .nx-career-form select, .nx-career-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--input); border-radius: .75rem; background: #ffffff; padding: .75rem .875rem; font: inherit; font-size: .9375rem; color: var(--foreground);
}
.nx-career-form input[type="text"], .nx-career-form input[type="email"], .nx-career-form input[type="tel"], .nx-career-form input[type="url"], .nx-career-form select { min-height: 3rem; }
.nx-career-form textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.nx-career-form input[type="file"] { width: 100%; box-sizing: border-box; border: 1px dashed var(--input); border-radius: .75rem; background: #f8fafc; padding: .65rem .75rem; font: inherit; font-size: .875rem; color: var(--secondary-foreground); }
.nx-career-form input:focus, .nx-career-form select:focus, .nx-career-form textarea:focus { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.nx-career-form [aria-invalid="true"] { border-color: var(--destructive); }
.nx-career-hint { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted-foreground); }
.nx-career-error { margin: 0; font-size: .875rem; color: var(--destructive); }
.nx-career-error-box { border-radius: .75rem; background: rgba(239, 68, 68, .06); border: 1px solid rgba(239, 68, 68, .3); padding: .75rem .875rem; line-height: 1.5; }
.nx-career-picked { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font-size: .875rem; color: var(--foreground); }
.nx-career-filename { overflow-wrap: anywhere; font-weight: 600; }
.nx-career-link { border: 0; background: none; padding: .25rem 0; color: var(--primary); font: inherit; font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nx-career-check { display: flex; align-items: flex-start; gap: .75rem; margin-top: .75rem; font-size: .875rem; line-height: 1.5; color: var(--secondary-foreground); cursor: pointer; }
.nx-career-check input { flex: none; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--primary); }
.nx-career-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.nx-career-submit { margin-top: .75rem; min-height: 3.25rem; font-size: 1rem; }
.nx-career-done { align-items: flex-start; gap: .75rem; }
.nx-career-done h3 { margin: 0; font-size: 1.5rem; font-weight: 700; color: #166534; }
.nx-career-done p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--secondary-foreground); }
.nx-career-done .nx-career-btn { margin-top: .5rem; }

/* Footer brand: logo mark only (the name is already in the header), and the
   brand block lines up with the top of the link columns instead of sitting
   in the middle of them. The link keeps aria-label="NearX home". */
footer .nearx-wordmark { display: inline-flex; font-size: 0; line-height: 0; }
footer .nearx-wordmark::before {
  width: 2.75rem;
  height: 2.75rem;
  margin-right: 0;
  vertical-align: top;
  border-radius: 0.7rem;
}
body #root > div.flex > footer > div.nx-footer-inner > div:first-child { align-items: start; }

/* Brand lockup: logo on the left, slogan beside it on two balanced lines,
   both centred on one axis. The home-page selector is repeated because
   index CSS styles the home footer with a more specific selector. */
#root > div.flex > footer > div.nx-footer-inner > div:first-child > div:first-child,
body:has(.nearx-home-page) #root > div.flex > footer > div.nx-footer-inner > div:first-child > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  max-width: 18rem;
}
#root > div.flex > footer > div.nx-footer-inner > div:first-child > div:first-child > a {
  flex: none;
  display: block;
  border-radius: 0.8rem;
  box-shadow: 0 4px 14px rgba(240, 6, 77, 0.18);
}
footer .nx-footer-inner .nearx-wordmark::before {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
}
#root > div.flex > footer > div.nx-footer-inner > div:first-child > div:first-child > p,
body:has(.nearx-home-page) #root > div.flex > footer > div.nx-footer-inner > div:first-child > div:first-child > p {
  margin: 0;
  max-width: 10.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: #334155;
  text-wrap: balance;
}
/* Phones: the columns stack under the lockup, so give it some room. */
@media (max-width: 767px) {
  #root > div.flex > footer > div.nx-footer-inner > div:first-child > div:first-child,
  body:has(.nearx-home-page) #root > div.flex > footer > div.nx-footer-inner > div:first-child > div:first-child {
    margin-bottom: 0.75rem;
  }
}
