/* ZS Remote: pure black, cyan, native HTML. No external fonts or scripts. */
:root {
  color-scheme: dark;
  --black: #000000;
  --cyan: #56f5f2;
  --cyan-soft: #a0e0df;
  --cyan-muted: #78abae;
  --line: #164449;
  --panel: #040b0c;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  color: var(--cyan-soft);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 240px;
  background: var(--black);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

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

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: #000000f2;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--cyan);
  font-weight: 650;
  letter-spacing: -.01em;
}

.brand:hover { text-decoration: none; }
.brand img { display: block; }

.lang-nav { display: inline-flex; align-items: center; gap: .4rem; }
.lang-nav a {
  padding: .15rem .55rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  font-size: .75rem;
  letter-spacing: .04em;
}
.lang-nav a:hover { border-color: var(--cyan); text-decoration: none; }

.source-nav { display: flex; gap: .25rem; }
.source-nav a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: .4rem;
}
.source-nav a:hover { border-color: var(--line); background: #56f5f210; }
.source-nav svg {
  width: 19px;
  height: 19px;
}

/* Layout */
.workspace {
  width: min(100% - 3rem, 58rem);
  min-height: calc(100svh - 120px);
  margin-inline: auto;
  padding: 2.5rem 0 5rem;
}

.workspace.results { padding-top: 1.5rem; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
}

.hero-logo { margin-bottom: 1.25rem; }

h1 {
  margin: 0 0 1.2rem;
  text-align: center;
  font-size: min(clamp(2.6rem, 8vw, 5rem), 18vw);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.1;
}

.wordmark {
  display: inline-block;
  position: relative;
  color: var(--cyan);
  text-decoration: none !important;
  animation: breathe 7s ease-in-out infinite;
}

.wordmark::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 22%;
  left: 39%;
  bottom: -.23em;
  background: var(--cyan);
  opacity: .4;
  animation: line 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { text-shadow: 0 0 0 #56f5f200; }
  50% { text-shadow: 0 0 34px #56f5f24d; }
}

@keyframes line {
  0%, 100% { opacity: .2; }
  50% { opacity: .65; }
}

.tagline {
  margin: 0 0 2rem;
  color: var(--cyan-muted);
  font-size: 1.02rem;
  text-align: center;
  line-height: 1.6;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.4rem;
  margin: 1.1rem 0 0;
  font-size: .9rem;
}

/* Search */
.search-bar {
  display: flex;
  align-items: center;
  width: min(100%, 38rem);
  min-height: 4.2rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--black);
  padding: .38rem .48rem .38rem 1.55rem;
  transition: border-color .2s, box-shadow .2s;
}

.search-bar:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px #56f5f20b;
}

.search-bar.compact { min-height: 3.4rem; border-radius: .95rem; }

.search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--cyan-soft);
  font: inherit;
  font-size: 1.05rem;
  padding: .6rem .75rem;
}

.search-bar input[type="search"]::placeholder { color: var(--cyan-muted); opacity: .7; }

.search-bar input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-bar button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: .8rem;
  background: #56f5f20f;
  cursor: pointer;
}

.search-bar.compact button { width: 2.5rem; height: 2.5rem; }
.search-bar button:hover { background: #56f5f21f; }
.search-bar button svg { width: 1.35rem; height: 1.35rem; stroke: var(--cyan); stroke-width: 1.8; }
.search-bar.compact button svg { width: 1.1rem; height: 1.1rem; }

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem auto 0;
  flex-wrap: wrap;
}

.stat {
  min-width: 11rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  text-align: center;
  background: var(--panel);
}

.stat strong {
  display: block;
  color: var(--cyan);
  font-size: 1.7rem;
  font-weight: 650;
}

.stat span { color: var(--cyan-muted); font-size: .85rem; }

/* Filters */
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem 1.4rem;
  margin: 1rem 0 0;
  font-size: .92rem;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-group legend {
  float: left;
  padding: 0;
  color: var(--cyan-muted);
  font-size: .85rem;
  line-height: 1.9rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--cyan-soft);
  cursor: pointer;
}

.check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--cyan);
}

.check small { color: var(--cyan-muted); font-size: .75rem; }

.sort-label { display: inline-flex; align-items: center; gap: .5rem; color: var(--cyan-muted); }

.sort-label select {
  background: var(--black);
  color: var(--cyan-soft);
  border: 1px solid var(--line);
  border-radius: .5rem;
  font: inherit;
  padding: .35rem .5rem;
}

.select-label { display: inline-flex; align-items: center; gap: .5rem; color: var(--cyan-muted); }

.select-label select {
  background: var(--black);
  color: var(--cyan-soft);
  border: 1px solid var(--line);
  border-radius: .5rem;
  font: inherit;
  padding: .35rem .5rem;
}

.btn {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1px solid var(--cyan);
  border-radius: .6rem;
  background: #56f5f20f;
  color: var(--cyan);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}

.btn:hover { background: #56f5f21f; text-decoration: none; }
.btn.ghost { border-color: var(--line); color: var(--cyan-muted); background: transparent; }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.apply { font-size: 1rem; padding: .7rem 1.4rem; }

/* Results */
.search-head { margin-bottom: 1.5rem; }
.result-count { color: var(--cyan-muted); font-size: .92rem; margin: 1.5rem 0 1rem; }

.job-list { display: grid; gap: .9rem; }

.job-card {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--panel);
}

.job-card:hover { border-color: #1f5b60; }

.job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.job-head h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.45;
}

.job-head h1 {
  margin: 0;
  text-align: left;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -.03em;
  line-height: 1.2;
}

.badge {
  flex-shrink: 0;
  padding: .18rem .55rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--cyan-muted);
  font-size: .72rem;
  white-space: nowrap;
}

.job-company { margin: .45rem 0 0; color: var(--cyan-muted); font-size: .88rem; }

.chip {
  padding: .06rem .4rem;
  border: 1px solid #1f5b60;
  border-radius: .4rem;
  color: var(--cyan);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.chip.region { border-style: dashed; color: var(--cyan-muted); }

.job-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .55rem 0 0; }

.tag {
  padding: .12rem .45rem;
  border-radius: .4rem;
  background: #56f5f20a;
  color: var(--cyan-muted);
  font-size: .72rem;
}

.job-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .75rem 0 0;
  padding-top: .7rem;
  border-top: 1px solid #0d2426;
}

.salary { font-weight: 600; font-size: .9rem; }
.salary.has { color: var(--cyan); }
.salary.none { color: var(--cyan-muted); font-weight: 400; }
.job-date { color: var(--cyan-muted); font-size: .8rem; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1.75rem 0 0;
}

.page {
  min-width: 2.4rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  text-align: center;
  font-size: .88rem;
}

.page:hover { border-color: var(--cyan); text-decoration: none; }
.page.current { border-color: var(--cyan); background: #56f5f20f; color: var(--cyan); }

/* Job detail */
.job-page { padding-top: 1.5rem; }
.back { margin: 0 0 1.2rem; font-size: .92rem; }

.job-detail {
  padding: 1.6rem 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: .9rem;
  margin: 1.4rem 0 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid #0d2426;
  border-radius: .8rem;
}

.meta-grid div { margin: 0; }
.meta-grid dt { color: var(--cyan-muted); font-size: .78rem; margin-bottom: .2rem; }
.meta-grid dd { margin: 0; font-size: .95rem; }

.apply-row { margin: 0 0 1.4rem; }

.description {
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: .95rem;
  color: var(--cyan-soft);
  overflow-wrap: anywhere;
}

.disclaimer {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #0d2426;
  color: var(--cyan-muted);
  font-size: .82rem;
}

/* About */
.about h1 { text-align: center; }
.about-card {
  margin: 0 0 1.1rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--panel);
}

.about-card h2 { margin: 0 0 .7rem; font-size: 1.05rem; color: var(--cyan); }
.about-card p, .about-card li { line-height: 1.7; font-size: .94rem; }
.about-card ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.about-card .source-list { columns: 2; list-style: none; padding: 0; }

.dim { color: var(--cyan-muted); }
.more { margin: 1.4rem 0 0; text-align: center; }

/* Error page */
.error-page { text-align: center; }
.error-code { font-size: 5rem; margin-bottom: .5rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 1.5rem 2.2rem;
  text-align: center;
  color: var(--cyan-muted);
  font-size: .86rem;
  line-height: 1.7;
}

.footer p { margin: .2rem 0; }

/* Recent section */
.recent { margin-top: 3.5rem; }
.recent h2 {
  margin: 0 0 1rem;
  text-align: center;
  color: var(--cyan-muted);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.empty {
  padding: 2.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  text-align: center;
  color: var(--cyan-muted);
}

@media (max-width: 640px) {
  .workspace { width: min(100% - 1.5rem, 58rem); }
  .stats { gap: .6rem; }
  .stat { min-width: 9rem; padding: .8rem .9rem; }
  .job-head { flex-direction: column; gap: .45rem; }
  .job-foot { flex-direction: column; align-items: flex-start; gap: .3rem; }
}
