/* Loker Kampus — gaya utama (mobile-first, mode gelap otomatis) */
:root {
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #f0f2ed;
  --text: #13201b;
  --muted: #5b6963;
  --line: #e1e5df;
  --primary: #0b6e4f;
  --primary-hover: #095c42;
  --primary-ink: #ffffff;
  --primary-soft: #e2f1ea;
  --accent: #e8962e;
  --warn: #9a4d00;
  --warn-soft: #fff3df;
  --danger: #b93815;
  --good: #11744f;
  --good-soft: #def3e8;
  --wa: #128c4a;
  --shadow: 0 1px 2px rgb(16 32 24 / 6%), 0 4px 16px rgb(16 32 24 / 6%);
  --radius: 14px;
  --radius-sm: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
/* Tema gelap: diatur lewat <html data-theme="dark"> (saklar di header / pengaturan). */
:root[data-theme="dark"] {
  --bg: #0e1814;
  --surface: #15221d;
  --surface-2: #1b2a24;
  --text: #e6eee9;
  --muted: #9db0a7;
  --line: #26372f;
  --primary: #36c78b;
  --primary-hover: #52d89f;
  --primary-ink: #04150e;
  --primary-soft: #173a2c;
  --accent: #f0ac4d;
  --warn: #f3b768;
  --warn-soft: #33260f;
  --danger: #ff8a65;
  --good: #5ad6a0;
  --good-soft: #173a2c;
  --wa: #25b865;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  outline: none;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
}
h2 {
  font-size: 1.2rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 0.6em;
}
a {
  color: var(--primary);
}
img,
svg {
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 760px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.center {
  text-align: center;
}
.sr-only,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand b {
  color: var(--primary);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:not(.btn):hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav a[aria-current="page"]:not(.btn) {
  color: var(--primary);
}
.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-icon {
  display: none;
}
@media (max-width: 640px) {
  .nav a[data-nav="cari"] {
    display: none;
  }
  .nav a:not(.btn) {
    padding: 8px;
  }
  .nav a:not(.btn) span {
    display: none;
  }
  .nav-icon {
    display: inline;
    width: 22px;
    height: 22px;
  }
  .nav .btn span {
    display: none;
  }
  .nav .btn {
    padding: 8px 10px;
  }
  .brand span {
    font-size: 1rem;
  }
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: transparent;
}
.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}
.btn-wa:hover {
  filter: brightness(1.06);
  border-color: var(--wa);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 13px 22px;
  font-size: 1.02rem;
}
.btn-block {
  display: flex;
  width: 100%;
}
.danger {
  color: var(--danger);
}
.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wrap-row {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 14px;
}
.stack-sm {
  display: grid;
  gap: 8px;
}

/* ---------- Input ---------- */
.input,
.select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
textarea.input {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.input-lg {
  padding: 14px 14px 14px 44px;
  font-size: 1.05rem;
  border-radius: 12px;
}
[aria-invalid="true"] {
  border-color: var(--danger) !important;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.label {
  font-weight: 600;
  font-size: 0.93rem;
}
.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.field-error {
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}
.check,
.radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.95rem;
}
.check input,
.radio input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
  flex: none;
}
.checks {
  gap: 10px;
}
.radios {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.counter {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
.counter.ok {
  color: var(--good);
}
.grid-2,
.grid-3 {
  display: grid;
  gap: 0 12px;
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Pilihan berbentuk kartu (radio) */
.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-item span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.93rem;
  background: var(--surface);
}
.choice-item input:checked + span {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}
.choice-item input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
}

/* ---------- Pencarian kampus ---------- */
.picker {
  position: relative;
  width: 100%;
}
.picker .input:not(.input-lg) {
  padding-left: 12px;
}
.suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: min(420px, 60vh);
  overflow: auto;
  text-align: left;
}
.suggest-item {
  display: grid;
  gap: 1px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.suggest-item:hover,
.suggest-item[aria-selected="true"] {
  background: var(--primary-soft);
}
.suggest-name {
  font-weight: 600;
}
.suggest-meta {
  font-size: 0.84rem;
  color: var(--muted);
}
.suggest-foot {
  padding: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

/* ---------- Beranda ---------- */
.hero {
  background:
    radial-gradient(900px 300px at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(700px 320px at 0% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%);
  padding: 44px 0 30px;
}
.hero-inner {
  max-width: 820px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  letter-spacing: -0.025em;
}
.hl {
  color: var(--primary);
}
.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
  margin-inline: auto;
}
.page-head .lead {
  margin-inline: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.hero-search {
  margin: 24px auto 10px;
  max-width: 640px;
}
.hero-search-box {
  position: relative;
}
.hero-search-icon {
  position: absolute;
  left: 15px;
  top: 16px;
  z-index: 1;
  color: var(--muted);
  pointer-events: none;
}
.hero-search .input-lg {
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--line));
}
.hero-search-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.recent {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
  font-size: 0.9rem;
}
.hero-stats {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.section {
  padding: 28px 16px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title {
  margin-top: 28px;
}
.features {
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 12px;
}
.feature-icon .icon {
  width: 22px;
  height: 22px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #0a3d2c));
  color: var(--primary-ink);
}
.cta p {
  margin: 0;
  opacity: 0.9;
  max-width: 560px;
}
.cta .btn-primary {
  background: var(--primary-ink);
  color: var(--primary);
  border-color: var(--primary-ink);
}

/* ---------- Chip ---------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--primary);
}
.chip[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.chip-n {
  font-size: 0.78rem;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.chip[aria-pressed="true"] .chip-n {
  background: color-mix(in srgb, var(--bg) 22%, transparent);
  color: inherit;
}

/* ---------- Hasil ---------- */
.results {
  padding-top: 22px;
  padding-bottom: 40px;
}
.results-head {
  margin-bottom: 14px;
}
.results-head h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}
.h1-short {
  font-weight: 500;
}
.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin: 2px 0 6px -10px;
}
.change-box {
  margin-top: 10px;
  max-width: 560px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.toolbar-right {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar .select {
  width: auto;
  padding: 7px 10px;
  font-size: 0.9rem;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 0.75rem;
}
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 11px;
  border: 1px solid var(--line);
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}
.filters {
  display: grid;
  gap: 0 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 760px) {
  .filters {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .filters .checks,
  .filters-actions {
    grid-column: 1 / -1;
  }
}
.filters-actions {
  display: flex;
  gap: 8px;
}
.city-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -4px 0 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.9rem;
}
.city-note .icon {
  color: var(--primary);
}
.summary {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 6px 0 10px;
}
.list {
  display: grid;
  gap: 12px;
}
@media (min-width: 820px) {
  .results .list,
  .section .list {
    grid-template-columns: 1fr 1fr;
  }
}
.dim {
  opacity: 0.7;
}
.more {
  margin-top: 16px;
}

/* ---------- Kartu lowongan ---------- */
.job-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
a.job-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: var(--shadow);
}
.job-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.job-title {
  font-size: 1.05rem;
  margin: 0;
}
.job-company {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}
.job-time {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.job-salary {
  margin: 0;
  font-weight: 700;
  color: var(--good);
}
.job-salary.muted {
  font-weight: 500;
  color: var(--muted);
}
.job-where {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 0;
  font-size: 0.9rem;
}
.job-where .icon {
  margin-top: 3px;
  color: var(--primary);
}
.job-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.urgent {
  color: var(--warn);
  font-weight: 600;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
}
.badge-part_time {
  background: #dff3e9;
  color: #0b6040;
}
.badge-magang {
  background: #e2ecff;
  color: #1f4fb8;
}
.badge-freelance {
  background: #f0e6ff;
  color: #6633b0;
}
.badge-kontrak {
  background: #fff0d9;
  color: #8a4b00;
}
.badge-full_time {
  background: #e6e9ee;
  color: #2f3b4a;
}
:root[data-theme="dark"] .badge-part_time {
  background: #163a2b;
  color: #7fe0b3;
}
:root[data-theme="dark"] .badge-magang {
  background: #1b2a4a;
  color: #9ab9ff;
}
:root[data-theme="dark"] .badge-freelance {
  background: #2c2042;
  color: #c9a8ff;
}
:root[data-theme="dark"] .badge-kontrak {
  background: #3a2a12;
  color: #f5c27a;
}
:root[data-theme="dark"] .badge-full_time {
  background: #252c36;
  color: #c2cad6;
}
.badge-good {
  background: var(--good-soft);
  color: var(--good);
}
.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge-muted {
  background: var(--surface-2);
  color: var(--muted);
}
.badge-soft {
  background: transparent;
  border: 1px solid var(--line);
}

/* Skeleton */
.skeleton .sk,
.skeleton-head .sk {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2));
  background-size: 200% 100%;
  animation: sk 1.2s infinite linear;
}
.sk-1 {
  width: 60%;
  height: 18px !important;
}
.sk-2 {
  width: 40%;
}
.sk-3 {
  width: 80%;
}
.skeleton-head {
  display: grid;
  gap: 10px;
  padding: 20px 0;
}
@keyframes sk {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton .sk,
  .skeleton-head .sk {
    animation: none;
  }
}

/* Kosong / error */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-sm {
  padding: 22px;
}
.empty p {
  color: var(--muted);
  max-width: 480px;
  margin-inline: auto;
}
.empty-art {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 10px;
}
.empty-art .icon {
  width: 26px;
  height: 26px;
}
.empty-art.err {
  background: var(--warn-soft);
  color: var(--warn);
}
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- Peta ---------- */
.map {
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-2);
  z-index: 0;
  position: relative;
}
.map-lg {
  height: min(70vh, 620px);
}
.map-pick {
  height: 320px;
}
.map[data-note]:not([data-note=""])::after {
  content: attr(data-note);
  position: absolute;
  z-index: 500;
  left: 10px;
  bottom: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.pin span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.pin-campus span {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 17px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 25%);
}
.pin:not(.pin-campus) span {
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
}
.pin-magang span {
  background: #3d6fe0 !important;
}
.pin-freelance span {
  background: #8a4fd8 !important;
}
.pin-part_time span {
  background: #12a06b !important;
}
.popup {
  display: grid;
  gap: 2px;
  font-family: var(--font);
}
.leaflet-container {
  font-family: var(--font);
}
.leaflet-container a {
  color: var(--primary);
}
.pin-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 4px 0;
  font-size: 0.92rem;
}

/* ---------- Detail ---------- */
.detail {
  padding-top: 16px;
  padding-bottom: 48px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.detail-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
  .detail-side {
    position: sticky;
    top: 78px;
  }
}
.detail-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.detail-main h1 {
  font-size: clamp(1.45rem, 4vw, 2rem);
}
.detail-main .eyebrow {
  color: var(--muted);
  font-size: 0.95rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.fact {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.fact dt {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fact dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.block {
  margin-top: 22px;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.distance {
  margin-bottom: 10px;
}
.distance-main {
  font-size: 1.02rem;
}
.distance-main strong {
  font-size: 1.2rem;
  color: var(--primary);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.apply-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.safety {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  font-size: 0.88rem;
}
.safety .icon {
  color: var(--primary);
  width: 22px;
  height: 22px;
}
.safety p {
  margin: 4px 0;
  color: var(--muted);
}
.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  font-size: 0.93rem;
}
.banner > .icon {
  margin-top: 2px;
}
.banner ul {
  margin: 6px 0;
  padding-left: 18px;
}
.banner p {
  margin: 4px 0 0;
}
.banner-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.banner-warn ul,
.banner-warn p {
  color: var(--text);
}
.banner-info {
  background: var(--primary-soft);
}
.banner-muted {
  background: var(--surface-2);
  color: var(--muted);
}
.warn-text {
  color: var(--warn);
  font-weight: 600;
}

/* ---------- Form pasang ---------- */
.page-head {
  padding: 24px 0 10px;
}
.post-form {
  display: grid;
  gap: 16px;
  padding-bottom: 48px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
fieldset.card {
  margin: 0;
  min-width: 0;
}
fieldset.card legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 0;
}
fieldset.card legend + * {
  clear: both;
}
.step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
}
.loc-box {
  display: grid;
  gap: 4px;
}
.agree {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: var(--primary-soft);
}
.form-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.form-submit p {
  margin: 0;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row .input {
  font-size: 0.88rem;
}
.success {
  text-align: center;
  margin: 30px 0 48px;
}
.success .row {
  justify-content: center;
}
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  margin-bottom: 10px;
}
.success-icon .icon {
  width: 34px;
  height: 34px;
}
.secret {
  text-align: left;
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.secret p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Kelola ---------- */
.manage-item {
  display: grid;
  gap: 8px;
}
.manage-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.manage-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.manage-item p {
  margin: 0;
}
.import {
  margin-top: 20px;
}
.import summary {
  cursor: pointer;
  font-weight: 600;
}
.import form {
  margin-top: 12px;
}
.saved-past {
  display: grid;
  gap: 4px;
}

/* ---------- Tentang ---------- */
.prose-page {
  padding-bottom: 48px;
}
.prose-page .card {
  margin-bottom: 14px;
}
.prose-page li {
  margin-bottom: 6px;
}
.prose-page h2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Modal ---------- */
.modal {
  border: 0;
  padding: 0;
  width: min(520px, calc(100vw - 24px));
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}
.modal::backdrop {
  background: rgb(8 16 12 / 55%);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 0 20px;
}
.modal-head h2 {
  margin: 0;
}
.modal-body {
  padding: 12px 20px 20px;
}

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.93rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: opacity 0.4s, transform 0.4s;
  animation: toast-in 0.25s ease-out;
}
.toast-error {
  background: var(--danger);
  color: #fff;
}
.toast.out {
  opacity: 0;
  transform: translateY(8px);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer p {
  margin: 0;
  text-align: center;
}
.footer b {
  color: var(--text);
}
.page-loading {
  padding: 40px 16px;
  color: var(--muted);
}

/* ---------- Admin ---------- */
.admin {
  padding-bottom: 48px;
}
.admin-login {
  max-width: 440px;
  margin: 40px auto;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.stat {
  display: grid;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.stat strong {
  font-size: 1.6rem;
  line-height: 1.1;
}
.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}
.stat-warn {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: var(--warn-soft);
}
.section-block {
  margin-top: 26px;
}
.admin-item {
  display: grid;
  gap: 8px;
}
.admin-item p {
  margin: 0;
}
.admin-item details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-item details > * + * {
  margin-top: 8px;
}
.reports {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
}
.log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}
.log code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
}
.modal-wide {
  width: min(720px, calc(100vw - 24px));
}
.modal .map {
  height: 300px;
  margin-top: 8px;
}

/* ---------- Flyer ---------- */
.job-card.has-flyer {
  grid-template-columns: minmax(0, 1fr) 88px;
  column-gap: 14px;
}
.job-card.has-flyer > * {
  grid-column: 1;
}
.job-card.has-flyer > .job-thumb {
  grid-column: 2;
  grid-row: 1 / span 6;
  width: 88px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);
}
.flyer-figure {
  display: block;
  margin: 16px 0 4px;
  max-width: 420px;
}
.flyer-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.flyer-editor {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 560px) {
  .flyer-editor {
    grid-template-columns: 220px 1fr;
  }
}
.flyer-preview img,
.flyer-empty {
  display: block;
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.flyer-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  aspect-ratio: 4 / 5;
  color: var(--muted);
  background: var(--surface-2);
  border-style: dashed;
  font-size: 0.9rem;
}
.flyer-empty .icon {
  width: 32px;
  height: 32px;
}
.success-flyer {
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.success-flyer img {
  width: 120px;
  height: auto;
  border-radius: 10px;
}
.admin-flyer {
  width: 110px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* ---------- Header: saklar tema & menu pengaturan ---------- */
.topbar-inner .nav {
  margin-left: auto;
}
.tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.theme-switch {
  padding: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 999px;
}
.ts-track {
  position: relative;
  display: block;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: background 0.25s;
}
.ts-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.6, 1), background 0.25s;
}
/* Ikon di dalam jempol saklar = mode yang sedang aktif */
.ts-icon {
  grid-area: 1 / 1;
  width: 14px;
  height: 14px;
  transition: opacity 0.2s;
}
.ts-sun {
  color: #e8962e;
}
.ts-moon {
  color: #f3e7a0;
  opacity: 0;
}
.theme-switch[aria-checked="true"] .ts-track {
  background: #1f3a30;
}
.theme-switch[aria-checked="true"] .ts-thumb {
  transform: translateX(26px);
  background: #0e1814;
}
.theme-switch[aria-checked="true"] .ts-sun {
  opacity: 0;
}
.theme-switch[aria-checked="true"] .ts-moon {
  opacity: 1;
}
.kebab .icon {
  width: 22px;
  height: 22px;
}
.menu {
  position: fixed;
  z-index: 60;
  top: 64px;
  right: max(12px, calc((100vw - 1120px) / 2 + 8px));
  width: min(320px, calc(100vw - 24px));
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgb(0 0 0 / 22%);
  animation: menu-in 0.16s ease-out;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.menu-head {
  padding: 8px 10px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-item:hover,
.menu-item:focus-visible {
  background: var(--surface-2);
}
.menu-item:disabled {
  cursor: default;
  opacity: 0.75;
}
.menu-item > .icon {
  margin-top: 2px;
  color: var(--primary);
  width: 20px;
  height: 20px;
}
.menu-item span {
  display: grid;
}
.menu-item small {
  color: var(--muted);
  font-size: 0.82rem;
}
.menu-install {
  background: var(--primary-soft);
  margin-bottom: 4px;
}
.menu-install.pulse {
  animation: pulse 1.2s ease-in-out 3;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 35%, transparent);
  }
}
.menu-group {
  display: grid;
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 4px 0;
}
.menu-label {
  font-size: 0.85rem;
  font-weight: 600;
}
.menu-seg {
  display: flex;
}
.menu-seg button {
  flex: 1;
  justify-content: center;
}
.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.install-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.install-steps .step {
  flex: none;
}
@media (max-width: 640px) {
  .nav a[data-nav="tentang"] {
    display: none; /* ada di menu ⋮ */
  }
  .tools {
    margin-left: 2px;
    gap: 0;
  }
  .ts-track {
    width: 48px;
  }
  .theme-switch[aria-checked="true"] .ts-thumb {
    transform: translateX(20px);
  }
}
@media (max-width: 420px) {
  .brand span {
    display: none;
  }
  .nav a:not(.btn) {
    padding: 8px 6px;
  }
}

/* ---------- Splash screen ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: radial-gradient(800px 500px at 50% 35%, #12885f, #064a33 70%);
  color: #fff;
  transition: opacity 0.4s ease, visibility 0.4s;
  /* Cadangan bila JavaScript gagal: hilang sendiri setelah 4 detik */
  animation: splash-auto-out 0.4s 4s forwards;
}
.no-splash .splash {
  display: none;
}
.splash.hide {
  opacity: 0;
  visibility: hidden;
}
@keyframes splash-auto-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.splash-inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  animation: splash-pop 0.6s cubic-bezier(0.2, 1.3, 0.5, 1) both;
}
.splash-inner img {
  border-radius: 24px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 35%);
}
.splash-name {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.splash-name b {
  color: #9ff0c8;
}
.splash-tag {
  opacity: 0.85;
  font-size: 0.98rem;
}
.splash-bar {
  width: 140px;
  height: 4px;
  margin-top: 18px;
  border-radius: 99px;
  background: rgb(255 255 255 / 20%);
  overflow: hidden;
}
.splash-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 99px;
  background: #e8962e;
  animation: splash-load 1s ease-in-out infinite;
}
@keyframes splash-pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}
@keyframes splash-load {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

/* ---------- Ajakan pasang aplikasi ---------- */
.nudge {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: min(460px, calc(100vw - 24px));
  padding: 14px 14px 14px 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgb(0 0 0 / 25%);
  animation: nudge-in 0.35s cubic-bezier(0.2, 1.2, 0.5, 1);
  transition: opacity 0.3s, transform 0.3s;
}
.nudge.out {
  opacity: 0;
  transform: translate(-50%, 16px);
}
@keyframes nudge-in {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
}
.nudge img {
  border-radius: 12px;
  flex: none;
}
.nudge-body {
  display: grid;
  gap: 4px;
  flex: 1;
}
.nudge-body p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.nudge-x {
  width: 30px;
  height: 30px;
  margin: -4px -4px 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .splash-inner,
  .splash-bar span,
  .nudge,
  .menu {
    animation: none;
  }
}
