/* JobsArmada — home page
   Built from Design/JobsArmada Purple Job Board Interface.png */

:root {
  --purple: #6c1bd0;
  --purple-bright: #8a2bec;
  --purple-deep: #5510ab;
  --purple-ink: #5a14b8;
  --grad: linear-gradient(180deg, #7d24e2 0%, #5a10b4 100%);
  --lav-50: #f8f5fe;
  --lav-100: #f1eafd;
  --lav-200: #e6dafb;
  --ink: #17123a;
  --text: #2b2647;
  --muted: #5f5a78;
  --line: #e9e6f2;
  --white: #fff;
  --green: #1f9a3d;
  --green-bg: #e2f6e5;
  --navy: #151033;
  --navy-line: #2f2a52;
  --radius: 16px;
  --shadow-sm: 0 2px 6px rgba(40, 20, 90, .08);
  --shadow-md: 0 8px 24px rgba(60, 25, 130, .12);
  --wrap: 1440px;
  --gutter: 30px;
  --text-size: 16.5px;   /* normal text: job card descriptions, footer */
  --section-space: 90px; /* vertical gap after every section */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(124, 36, 226, .45);
  outline-offset: 2px;
}

/* ---------- Section spacing ----------
   Every page section carries .section. It is the only source of
   vertical spacing between sections (and before the footer). */

.section { margin: 0 0 var(--section-space); padding-top: 0; padding-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--grad);
  box-shadow: 0 6px 14px rgba(92, 16, 180, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(92, 16, 180, .34); }

.btn-white {
  color: var(--purple);
  background: var(--white);
  box-shadow: 0 6px 16px rgba(30, 5, 80, .25);
}
.btn-white:hover { transform: translateY(-1px); }

/* ---------- Header ---------- */

.site-header { padding: 32px 0; }  /* same space above and below the nav bar */

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
}
.brand img { width: 44px; height: 44px; }
.brand span span { color: var(--purple); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--lav-50); color: var(--purple); }
.main-nav a.is-active { background: var(--lav-100); color: var(--purple); }
.main-nav .icon { width: 16px; height: 16px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.icon-btn:hover { background: var(--lav-50); }
.icon-btn .icon { width: 23px; height: 23px; }
.icon-btn .dot {
  position: absolute;
  top: 6px; right: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ef2b3c;
  border: 2px solid var(--white);
}

.btn-soft {
  padding: 9px 15px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  background: #f2f0f8;
}
.btn-soft:hover { background: var(--lav-100); color: var(--purple); }
.btn-soft .icon { width: 18px; height: 18px; }

.btn-account {
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.btn-account .icon { width: 19px; height: 19px; }
.btn-account .chev { width: 16px; height: 16px; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero-card {
  padding: 56px 48px;
  border-radius: var(--radius);
  background:
    radial-gradient(900px 420px at 100% 0%, #efe6fd 0%, rgba(239, 230, 253, 0) 70%),
    linear-gradient(180deg, #f0e9fd 0%, #f6f2fe 100%);
}

.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--lav-200);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(36px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.080;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero h1 span { color: var(--purple-ink); }

.hero-lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.720vw, 19.5px);
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--ink);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 42px;
  margin-top: 26px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}
.hero-points .icon { width: 23px; height: 23px; color: var(--purple); stroke-width: 2.4; }

.search {
  display: flex;
  align-items: center;
  margin-top: 34px;
  padding: 6px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 24px;
  color: var(--ink);
}
.search-field .icon { width: 24px; height: 24px; }
.search-field--keyword { flex: 1.5 1 0; }
.search-field--location {
  flex: 1 1 0;
  position: relative;
  border-left: 1px solid #d9d5e6;
  padding-left: 30px;
}

.search input,
.search select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  letter-spacing: -.015em;
  color: var(--ink);
}
.search input::placeholder { color: var(--text); opacity: 1; }
.search select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
  cursor: pointer;
}
.search-field--location .chev {
  position: absolute;
  right: 22px;
  width: 18px; height: 18px;
  pointer-events: none;
}
.search-field:focus-within { color: var(--purple); }

.btn-search {
  flex: none;
  min-width: 200px;
  height: 46px;
  padding: 0 34px;
  font-size: 17px;
  letter-spacing: -.02em;
}

.popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 24px;
  padding-left: 8px;
}
.popular strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.chip {
  padding: 6px 17px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.chip:hover { color: var(--purple); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(60, 25, 130, .14); }

/* ---------- Hiring banner ---------- */

.hiring-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 48px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(180deg, #8427e6 0%, #6614c6 55%, #570fb0 100%);
  box-shadow: 0 10px 24px rgba(87, 15, 176, .22);
}

.hiring-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 76px;
  height: 70px;
  border-radius: 14px;
  color: var(--purple);
  background: #ece2fc;
}
.hiring-icon .icon { width: 42px; height: 42px; stroke-width: 1.9; }

.hiring-text {
  flex: 1;
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, .55);
}
.hiring-text h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.hiring-text p {
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .95);
}

.btn-post {
  min-width: 168px;
  height: 48px;
  padding: 0 34px;
  font-size: 18.500px;
  letter-spacing: -.03em;
}

/* ---------- Jobs ---------- */


.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
  color: var(--ink);
}
.section-head p {
  margin-top: 4px;
  font-size: 18.500px;
  letter-spacing: -.02em;
  color: var(--text);
}
.link-all {
  flex: none;
  font-size: 18.500px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--purple);
}
.link-all:hover { text-decoration: underline; }

.job-list { display: grid; gap: 20px; }

.job-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  column-gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(40, 20, 90, .05);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.job-card:hover { border-color: #d9cdf5; box-shadow: var(--shadow-md); }

.job-logo {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 74px;
  margin-top: 2px;
  border-radius: 14px;
}
.job-logo .icon { width: 42px; height: 42px; stroke-width: 1.9; }
.job-logo--purple { color: #7a3ee6; background: #e4dcfb; }
.job-logo--pink   { color: #e6246f; background: #fde0ea; }
.job-logo--green  { color: #20a33f; background: #dff5e1; }

.job-main { grid-row: 1; grid-column: 2; min-width: 0; }

.job-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.035em;
  color: var(--ink);
}
.job-title a:hover { color: var(--purple); }

.job-company {
  margin-top: 3px;
  font-size: 15.5px;
  letter-spacing: -.015em;
  color: var(--text);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 13px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
  background: #f3f1f8;
}
.tag .icon { width: 18px; height: 18px; }
.tag--pay { color: var(--green); background: var(--green-bg); }

.job-save {
  grid-row: 1;
  grid-column: 3;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}
.job-save:hover { background: var(--lav-50); color: var(--purple); }
.job-save .icon { width: 25px; height: 25px; }
.job-save[aria-pressed="true"] { color: var(--purple); }
.job-save[aria-pressed="true"] .icon { fill: currentColor; }

.job-foot {
  grid-row: 2;
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
}
.job-desc {
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--text);
}
.job-date {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 9px;
  font-size: 15.5px;
  letter-spacing: -.015em;
  color: var(--text);
}
.job-date .icon { width: 21px; height: 21px; }

.btn-details {
  flex: none;
  min-width: 112px;
  height: 40px;
  padding: 0 28px;
  font-size: 17px;
  letter-spacing: -.03em;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 66px 0 78px;
  color: #e9e6f5;
  background: var(--navy);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.25fr 2.75fr 1.5fr;
}

.footer-brand { padding-right: 28px; }
.footer-brand .brand { font-size: 22px; font-weight: 600; color: var(--white); }
.footer-brand .brand img { width: 40px; height: 40px; }
.footer-brand p {
  margin-top: 12px;
  font-size: var(--text-size);
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--white);
}

.social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--white);
  background: #2a2550;
  transition: background-color .15s ease;
}
.social a:hover { background: var(--purple); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 0 36px;
  border-left: 1px solid var(--navy-line);
  border-right: 1px solid var(--navy-line);
}
.site-footer h3 {
  margin-bottom: 10px;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--white);
}
.footer-links a {
  display: inline-block;
  padding: 2px 0;
  font-size: var(--text-size);
  letter-spacing: -.02em;
  white-space: nowrap;
  color: #eceaf6;
}
.footer-links a:hover { color: #c9a6ff; }

.footer-alerts { padding-left: 28px; }
.footer-alerts p {
  font-size: var(--text-size);
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--white);
}

.subscribe {
  display: flex;
  margin-top: 12px;
  padding: 3px;
  border-radius: 9px;
  background: var(--white);
}
.subscribe input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--ink);
}
.subscribe input::placeholder { color: #77738c; opacity: 1; }
.subscribe .btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: var(--text-size);
  letter-spacing: -.02em;
  box-shadow: none;
}
.subscribe:focus-within { box-shadow: 0 0 0 3px rgba(138, 43, 236, .5); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--navy-line);
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--white);
}

.prefs { display: flex; align-items: center; }
.pref {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px 0 0;
  color: var(--white);
}
.pref + .pref {
  margin-left: 26px;
  padding-left: 26px;
  border-left: 1px solid var(--navy-line);
}
.pref .icon { width: 20px; height: 20px; }
.pref .chev { width: 16px; height: 16px; pointer-events: none; margin-left: -22px; }
.pref select {
  appearance: none;
  -webkit-appearance: none;
  padding: 2px 26px 2px 0;
  border: 0;
  background: transparent;
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--white);
  cursor: pointer;
}
.pref select option { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .footer-brand { padding-right: 20px; }
  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 24px 0 0;
    border: 0;
    border-top: 1px solid var(--navy-line);
  }
  .footer-alerts { padding-left: 20px; border-left: 1px solid var(--navy-line); }
}

@media (max-width: 1100px) {
  .header-row { gap: 12px; }
  .brand { font-size: 25px; }
  .main-nav { gap: 0; }
  .brand { gap: 9px; }
  .brand img { width: 40px; height: 40px; }
  .main-nav a { padding: 9px 9px; font-size: 14px; }
  .header-actions { gap: 6px; }
  .btn-soft, .btn-account { gap: 6px; padding: 9px 11px; font-size: 14px; }
}

@media (max-width: 990px) {
  .btn-soft span { display: none; }
}

@media (max-width: 940px) {
  :root { --gutter: 20px; }

  .header-row { flex-wrap: wrap; }
  .brand { margin-right: auto; }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }
  .main-nav {
    display: none;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }

  .search-field { padding: 0 14px; }
  .search-field--keyword { flex: 1.100 1 0; }
  .search-field--location { padding-left: 18px; }
  .search-field--location .chev { right: 12px; }
  .btn-search { min-width: 0; padding: 0 26px; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .brand { font-size: 23px; }
  .brand img { width: 38px; height: 38px; }
  .btn-account span { display: none; }
  .btn-account { padding: 9px 12px; }

  .hero-card { padding: 32px 18px; }
  .eyebrow { font-size: 13px; }
  .hero-lead { font-size: 17px; }
  .hero-points { flex-direction: column; }

  .search {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 22px;
  }
  .search-field { padding: 2px 14px; }
  .search-field--location {
    padding-left: 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .search-field--location .chev { right: 14px; }
  .btn-search { width: 100%; margin-top: 8px; }
  .popular { padding-left: 0; }

  .hiring-card {
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 20px;
  }
  .hiring-icon { width: 60px; height: 56px; }
  .hiring-icon .icon { width: 32px; height: 32px; }
  .hiring-text { flex: 1 1 60%; padding-left: 16px; }
  .hiring-text h2 { font-size: 23px; }
  .hiring-text p { font-size: 16px; }
  .btn-post { width: 100%; }

  .section-head { align-items: flex-end; }
  .section-head h2 { font-size: 25px; }
  .section-head p, .link-all { font-size: 16px; }

  .job-card {
    grid-template-columns: 56px 1fr auto;
    column-gap: 14px;
    padding: 16px;
  }
  .job-logo { width: 56px; height: 54px; }
  .job-logo .icon { width: 30px; height: 30px; }
  .job-title { font-size: 18px; }
  .job-foot { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 12px; }
  .btn-details { width: 100%; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { padding-right: 0; }
  .footer-links { grid-row: auto; grid-template-columns: repeat(2, 1fr); }
  .footer-alerts {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--navy-line);
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .header-row { gap: 8px; }
  .header-actions { gap: 6px; }
  .btn-soft { display: none; }
  .brand { font-size: 21px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =====================================================================
   Inner pages (generated by ../build.py)
   ===================================================================== */

:root { --control-h: 46px; }   /* one height for every field and button in a row */

/* ---------- Nav dropdown ---------- */

.nav-drop { position: relative; }
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu,
.nav-drop.is-open .nav-menu { display: flex; }
.main-nav .nav-menu a { padding: 10px 12px; }

/* ---------- Buttons (inner pages) ---------- */

.btn-md { height: var(--control-h); padding: 0 26px; font-size: 16px; letter-spacing: -.02em; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14.5px; letter-spacing: -.02em; }
.btn-block { width: 100%; }
.btn-outline {
  color: var(--purple);
  background: var(--white);
  box-shadow: inset 0 0 0 1.500px #d9c8f7;
}
.btn-outline:hover { background: var(--lav-50); box-shadow: inset 0 0 0 1.500px var(--purple); }
.btn-plain { color: var(--ink); background: #f2f0f8; }
.btn-plain:hover { background: var(--lav-100); color: var(--purple); }
.btn-danger { color: #c22537; background: #fdecee; }
.btn-danger:hover { background: #fbd9dd; }
.btn .icon { width: 18px; height: 18px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: #f2f0f8;
}
.icon-action:hover { color: var(--purple); background: var(--lav-100); }
.icon-action--danger:hover { color: #c22537; background: #fdecee; }
.icon-action .icon { width: 18px; height: 18px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Page head ---------- */

.page-head {
  padding: 40px 48px;
  border-radius: var(--radius);
  background:
    radial-gradient(900px 420px at 100% 0%, #efe6fd 0%, rgba(239, 230, 253, 0) 70%),
    linear-gradient(180deg, #f0e9fd 0%, #f6f2fe 100%);
}
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14.5px;
  letter-spacing: -.015em;
  color: var(--muted);
}
.breadcrumb a { color: var(--purple); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .icon { width: 14px; height: 14px; transform: rotate(-90deg); }
.page-head h1 {
  font-size: clamp(28px, 3.400vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--ink);
}
.page-head .page-sub {
  margin-top: 10px;
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--text);
}
.page-head .page-sub a { color: var(--purple); font-weight: 600; }
.page-head .page-sub a:hover { text-decoration: underline; }
.page-body { margin-top: 32px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

/* ---------- Panels ---------- */

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(40, 20, 90, .05);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
}
.panel-head h2, .panel > h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.panel > h2 { margin-bottom: 18px; }
.panel-head p, .panel-note {
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--muted);
}
.panel-head > div > p { margin-top: 3px; }
.panel h3 {
  margin: 26px 0 14px;
  font-size: 18.500px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.panel h3:first-child { margin-top: 0; }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 20px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2; }
.col-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.field .req { color: #d62a45; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row a, .text-link { font-size: 14.5px; font-weight: 600; color: var(--purple); }
.label-row a:hover, .text-link:hover { text-decoration: underline; }

.input, .select, .textarea {
  width: 100%;
  height: var(--control-h);
  padding: 0 14px;
  border: 1px solid #d9d5e6;
  border-radius: 12px;
  outline: 0;
  background: var(--white);
  font-size: 16px;
  letter-spacing: -.015em;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: #8a86a0; opacity: 1; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 3px rgba(138, 43, 236, .18);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317123a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 18px;
  cursor: pointer;
}
.textarea { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.textarea--sm { min-height: 92px; }
.input[readonly] { background: #f6f4fb; color: var(--muted); }
.field-hint { font-size: 14px; letter-spacing: -.01em; color: var(--muted); }
.field-error { font-size: 14px; font-weight: 600; color: #c22537; }
.is-invalid { border-color: #d62a45; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--ink);
  cursor: pointer;
}
.check input { width: 20px; height: 20px; accent-color: var(--purple); }
.check-row { display: flex; flex-wrap: wrap; gap: 14px 32px; }

.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-flex;
  align-items: center;
  height: var(--control-h);
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px #d9d5e6;
}
.choice input:checked + span { color: var(--white); background: var(--grad); box-shadow: none; }
.choice input:focus-visible + span { outline: 3px solid rgba(124, 36, 226, .45); outline-offset: 2px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.inline-form { display: flex; align-items: flex-end; gap: 12px; }
.inline-form .field { flex: 1; }
.repeat-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: start; margin-bottom: 12px; }
.repeat-row--1 { grid-template-columns: 1fr auto; }
.repeat-row .icon-action { width: var(--control-h); height: var(--control-h); }
.divider { height: 1px; margin: 28px 0; border: 0; background: var(--line); }

/* drag-and-drop upload box */
.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 28px 20px;
  border: 2px dashed #d3c3f3;
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--text);
  background: var(--lav-50);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.file-drop:hover, .file-drop.is-drag, .file-drop:focus-within { border-color: var(--purple); background: var(--lav-100); }
.file-drop input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-drop .icon { width: 34px; height: 34px; color: var(--purple); stroke-width: 1.700; }
.file-drop strong { color: var(--purple); }
.file-drop small { font-size: 14px; color: var(--muted); }
.file-drop .file-drop-name { font-weight: 700; color: var(--ink); }
.file-drop .file-drop-name:empty { display: none; }
.file-drop--compact { flex-direction: row; flex-wrap: wrap; padding: 16px 20px; gap: 8px 14px; }
.upload-row { display: flex; align-items: center; gap: 18px; }
.thumb {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  font-size: 28px;
  font-weight: 700;
  color: var(--purple);
  background: var(--lav-200);
}

/* ---------- Alerts and badges ---------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--ink);
  background: var(--lav-100);
}
.alert .icon { margin-top: 2px; color: var(--purple); }
.alert--success { background: var(--green-bg); }
.alert--success .icon { color: var(--green); }
.alert--warning { background: #fff3d6; }
.alert--warning .icon { color: #b77400; }
.alert a { color: var(--purple); font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--purple);
  background: var(--lav-100);
}
.badge--green { color: var(--green); background: var(--green-bg); }
.badge--amber { color: #a66a00; background: #fff0cc; }
.badge--red { color: #c22537; background: #fdecee; }
.badge--grey { color: var(--muted); background: #f0eef6; }
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--purple);
}

/* ---------- Tables ---------- */

.table-wrap { position: relative; overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; }
.data th {
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.data td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--text);
}
.data tr:last-child td { border-bottom: 0; }
.data th:first-child, .data td:first-child { padding-left: 0; }
.data th:last-child, .data td:last-child { padding-right: 0; }
.data td a.cell-title { font-weight: 700; color: var(--ink); }
.data td a.cell-title:hover { color: var(--purple); }
.data .cell-sub { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.data .num { text-align: center; }
.empty {
  padding: 36px 20px;
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--text-size);
  letter-spacing: -.02em;
  color: var(--muted);
  background: var(--lav-50);
}
.empty .btn { margin-top: 14px; }

/* ---------- Tags, pager ---------- */

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip--line { box-shadow: inset 0 0 0 1px var(--line); background: var(--lav-50); }
.chip--line:hover { box-shadow: inset 0 0 0 1px var(--purple); }
.chip small { margin-left: 6px; font-size: 13px; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pager a:hover { color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.pager .is-current { color: var(--white); background: var(--grad); box-shadow: none; }
.pager .is-off { color: #b5b1c6; }
.pager .icon { width: 18px; height: 18px; }

/* ---------- Job listing extras ---------- */

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.results-bar h2 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.results-bar p { font-size: var(--text-size); letter-spacing: -.02em; color: var(--muted); }
.job-company a:hover, .tag a:hover { color: var(--purple); }
.job-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.skill {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--purple);
  background: var(--lav-100);
}
a.skill:hover { background: var(--lav-200); }
.job-actions { display: flex; flex: none; gap: 10px; }
.job-card--featured { border-color: #cdb4f6; background: linear-gradient(180deg, #fbf8ff 0%, #fff 60%); }

/* ---------- Job detail ---------- */

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.detail-aside { display: grid; gap: 24px; position: sticky; top: 24px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 0; }
.kv dt { font-size: 15px; letter-spacing: -.015em; color: var(--muted); }
.kv dd { margin: 0; font-size: var(--text-size); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.kv dd a { color: var(--purple); }
.kv dd a:hover { text-decoration: underline; }
.kv--stack { grid-template-columns: 180px 1fr; }
.kv--stack dd { font-weight: 400; color: var(--text); }
.kv--stack dd strong { color: var(--ink); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--lav-50);
}
.stat b { display: block; font-size: 24px; letter-spacing: -.03em; color: var(--ink); }
.stat span { font-size: 14.5px; letter-spacing: -.01em; color: var(--muted); }
.aside-actions { display: grid; gap: 10px; margin-top: 22px; }
.aside-actions .split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.company-mini { display: flex; align-items: center; gap: 14px; }
.company-mini .job-logo { width: 60px; height: 58px; margin: 0; }
.company-mini .job-logo .icon { width: 30px; height: 30px; }
.company-mini b { display: block; font-size: 17.5px; letter-spacing: -.03em; color: var(--ink); }
.company-mini span { font-size: 15px; color: var(--muted); }

.prose { font-size: var(--text-size); line-height: 1.65; letter-spacing: -.015em; color: var(--text); }
.prose > * + * { margin-top: 14px; }
.prose h2, .prose h3, .prose h4 { margin-top: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.prose h2 { font-size: 23px; }
.prose h3 { font-size: 19.5px; }
.prose h4 { font-size: 17.5px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li > p { margin-top: 6px; }
.prose a { color: var(--purple); font-weight: 600; }
.prose strong { color: var(--ink); }

/* comments */
.comments { display: grid; gap: 22px; }
.comment { display: flex; gap: 14px; }
.comment .avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: var(--purple);
  background: var(--lav-200);
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.comment-meta b { font-size: 16px; letter-spacing: -.02em; color: var(--ink); }
.comment-meta time { font-size: 14px; color: var(--muted); }
.comment-body p { margin-top: 4px; font-size: var(--text-size); letter-spacing: -.02em; }
.comment-body .btn { margin-top: 10px; }
.comment-replies { display: grid; gap: 18px; margin-top: 18px; padding-left: 18px; border-left: 2px solid var(--lav-200); }

/* ---------- Employer profile ---------- */

.profile-top { display: flex; gap: 28px; align-items: flex-start; }
.profile-top .thumb { width: 112px; height: 112px; font-size: 38px; border-radius: 24px; }
.profile-top .prose { flex: 1; }
.fact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }

/* ---------- Account area ---------- */

.account { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.side {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(40, 20, 90, .05);
}
.side-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 18px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-user .avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--white);
  background: var(--grad);
}
.side-user b { display: block; font-size: 16.5px; letter-spacing: -.03em; color: var(--ink); }
.side-user span { font-size: 14px; color: var(--muted); }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.side-nav a:hover { color: var(--purple); background: var(--lav-50); }
.side-nav a.is-active { color: var(--purple); background: var(--lav-100); }
.side-nav .icon { width: 20px; height: 20px; }
.side-nav hr { height: 1px; margin: 10px 0; border: 0; background: var(--line); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toolbar .select { width: auto; min-width: 200px; }

/* ---------- Auth ---------- */

.auth { display: flex; justify-content: center; }
.auth-card {
  width: 100%;
  max-width: 540px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.auth-card .auth-sub { margin-top: 6px; font-size: var(--text-size); letter-spacing: -.02em; color: var(--muted); }
.auth-card form { display: grid; gap: 18px; margin-top: 26px; }
.auth-card .auth-foot { margin-top: 22px; text-align: center; font-size: var(--text-size); letter-spacing: -.02em; color: var(--text); }
.auth-card .auth-foot a { color: var(--purple); font-weight: 700; }
.btn-google {
  width: 100%;
  margin-top: 26px;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px #d9d5e6;
}
.btn-google:hover { background: var(--lav-50); }
.btn-google svg { width: 20px; height: 20px; }
.or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or + form { margin-top: 20px; }
.code-input { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: .5em; }
.criteria { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.criteria li { display: flex; align-items: center; gap: 8px; }
.criteria .icon { width: 15px; height: 15px; color: #b5b1c6; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 48px; }
.pass-wrap button {
  position: absolute;
  top: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--control-h);
  height: var(--control-h);
  border: 0;
  background: transparent;
  color: var(--muted);
}

/* ---------- Search panel ---------- */

.filter .form-grid { align-items: end; }
.filter .btn { width: 100%; }

/* ---------- Pages index ---------- */

.page-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.page-list ul { display: grid; gap: 8px; }
.page-list a { font-size: var(--text-size); font-weight: 600; color: var(--purple); }
.page-list a:hover { text-decoration: underline; }
.page-list small { display: block; font-size: 14px; color: var(--muted); }

/* ---------- Inner pages: responsive ---------- */

@media (max-width: 1100px) {
  .detail { grid-template-columns: minmax(0, 1fr) 320px; }
  .account { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
  .form-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .nav-drop { display: block; }
  .nav-menu { position: static; display: flex; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .detail, .account { grid-template-columns: minmax(0, 1fr); }
  .detail-aside, .side { position: static; }
  .side-nav { grid-template-columns: repeat(2, 1fr); }
  .side-nav hr { display: none; }
  .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-row { grid-template-columns: repeat(2, 1fr); }
  .page-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .page-head { padding: 28px 18px; }
  .page-head-row { flex-direction: column; align-items: stretch; }
  .panel { padding: 20px 16px; }
  .auth-card { padding: 28px 18px; }
  .form-grid--2, .form-grid--3, .form-grid--4 { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: auto; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .repeat-row { grid-template-columns: 1fr auto; }
  .repeat-row > :first-child { grid-column: 1 / -1; }
  .repeat-row--1 > :first-child { grid-column: auto; }
  .profile-top { flex-direction: column; }
  .kv--stack { grid-template-columns: 1fr; gap: 4px 0; }
  .kv--stack dd { margin-bottom: 12px; }
  .side-nav { grid-template-columns: 1fr; }
  .job-actions { width: 100%; }
  .job-actions .btn { flex: 1; }
  .upload-row { flex-direction: column; align-items: stretch; }
  .page-list { grid-template-columns: 1fr; }
  .data th, .data td { padding-left: 10px; padding-right: 10px; }
}

.label-row a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.label-row a .icon { width: 17px; height: 17px; }
[hidden] { display: none !important; }

/* ---------- Light / dark mode switch (header) ---------- */

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

@media (max-width: 480px) {
  .header-actions { gap: 2px; }
  .header-actions .icon-btn { width: 36px; }
  .btn-account .chev { display: none; }
}
