/* Loker Loibe — gaya dasar, mobile-first */
:root {
  --paper: #f5f7f4;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #5b6672;
  --line: #dde3dc;
  --green: #0b7a55;
  --green-deep: #075c40;
  --green-soft: #e3f2ea;
  --amber: #f2b33d;
  --amber-soft: #fff4dc;
  --warn: #b4402a;
  --warn-soft: #fbe9e5;
  --radius: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--green-deep); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--green-deep); }
.brand span { font-size: .8rem; color: var(--muted); }
.top nav { display: flex; gap: 4px; align-items: center; }
.top nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .95rem; }
.top nav a:hover { background: var(--paper); }
.top nav .hide-sm { display: none; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px;
  padding: 11px 18px; font: 600 1rem var(--font); cursor: pointer; text-decoration: none; background: var(--green); color: #fff; }
.btn:hover { background: var(--green-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.small { padding: 7px 12px; font-size: .88rem; }
.btn.danger { background: var(--warn); }
.btn.block { width: 100%; }
.top nav .btn { padding: 8px 12px; color: #fff; font-size: .9rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
input[type=text], input[type=search], input[type=email], input[type=url], input[type=number], input[type=password],
select, textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  font: 1rem var(--font); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; }
textarea { min-height: 180px; resize: vertical; }
.hint { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.field { margin-bottom: 16px; }
.row2 { display: grid; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 5px; width: 18px; height: 18px; }

/* Hero */
.hero { background: var(--green-deep); color: #fff; padding: 36px 0 28px; }
.hero h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.02em; font-weight: 800; max-width: 18ch; }
.hero p { margin: 0 0 20px; color: #cfe8dc; max-width: 52ch; }
.search { display: grid; gap: 8px; background: #fff; padding: 8px; border-radius: 12px; }
.search input { border: 0; background: var(--paper); }
.search .btn { padding: 13px 22px; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cities a { color: #fff; text-decoration: none; font-size: .9rem; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); }
.cities a:hover { background: rgba(255,255,255,.12); }

/* Layout */
.page { padding: 24px 0 48px; }
.grid { display: grid; gap: 28px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.head h1, .head h2 { font-size: 1.35rem; margin: 0; letter-spacing: -0.01em; }
.count { color: var(--muted); font-size: .9rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* Filter */
.filters { margin-bottom: 16px; }
.filters summary { cursor: pointer; font-weight: 600; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters[open] summary { border-radius: 8px 8px 0 0; }
.filters .body { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; padding: 14px; display: grid; gap: 12px; }

/* Job list */
.jobs { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.job { position: relative; padding: 16px 18px; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; }
.job.featured { background: var(--amber-soft); box-shadow: inset 4px 0 0 var(--amber); }
.job h3 { margin: 0 0 2px; font-size: 1.06rem; line-height: 1.35; }
.job h3 a { color: var(--ink); text-decoration: none; }
.job h3 a::after { content: ""; position: absolute; inset: 0; }
.job h3 a:hover { color: var(--green-deep); text-decoration: underline; }
.company { color: var(--muted); margin: 0 0 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.meta .salary { color: var(--green-deep); font-weight: 700; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--green-soft); color: var(--green-deep); vertical-align: middle; }
.tag.amber { background: var(--amber); color: #3b2800; }
.empty { padding: 32px 20px; text-align: center; }
.empty p { color: var(--muted); }

/* Side lists */
.side h2 { font-size: 1rem; margin: 0 0 10px; }
.side ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.side li { padding: 4px 0; break-inside: avoid; font-size: .93rem; }
.side li a { text-decoration: none; color: var(--ink); }
.side li a:hover { color: var(--green-deep); text-decoration: underline; }
.side li span { color: var(--muted); font-size: .82rem; }
.side .panel + .panel { margin-top: 16px; }
.side li.on a { color: var(--green-deep); font-weight: 700; }

/* Pagination (template default CI4) */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 20px 0 0; }
.pagination li a, .pagination li span { display: block; padding: 7px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination li.active a { background: var(--green); border-color: var(--green); color: #fff; }

/* Job detail */
.detail h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.015em; }
.detail .company { font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.apply { display: grid; gap: 8px; margin: 18px 0; }
.safe { background: var(--warn-soft); border-radius: 8px; padding: 12px 14px; font-size: .92rem; }
.safe strong { color: var(--warn); }
.desc { margin-top: 22px; }
.desc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.desc ul, .desc ol { padding-left: 22px; }
.desc p, .desc li { max-width: 72ch; }
.closed { background: var(--paper); border: 1px dashed var(--muted); border-radius: 8px; padding: 12px 14px; margin: 14px 0; }
.report summary { cursor: pointer; color: var(--muted); font-size: .9rem; margin-top: 24px; }
.report form { margin-top: 12px; }
.flash { background: var(--green-soft); color: var(--green-deep); padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.flash.err { background: var(--warn-soft); color: var(--warn); }
.flash ul { margin: 0; padding-left: 18px; }
.prose { max-width: 70ch; }
.prose h1 { font-size: 1.6rem; line-height: 1.2; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }

/* Admin */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 16px 0; }
.admin-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.admin-nav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stats b { display: block; font-size: 1.6rem; }
.stats span { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); font-weight: 700; white-space: nowrap; }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
td .actions form { margin: 0; }
.warn-text { color: var(--warn); font-size: .85rem; }
.log { background: var(--ink); color: #e6ece8; padding: 12px; border-radius: 8px; font: .85rem/1.5 ui-monospace, monospace; white-space: pre-wrap; margin-bottom: 16px; }

@media (min-width: 640px) {
  .top nav .hide-sm { display: inline-block; }
  .search { grid-template-columns: 1.4fr 1fr auto; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .apply { grid-template-columns: auto auto; justify-content: start; }
  .filters .body { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
  .stats { grid-template-columns: repeat(5, 1fr); }
  .hero h1 { font-size: 2.6rem; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .side ul { columns: 1; }
  .hero { padding: 52px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Hasil Careerjet */
.cj { margin-top: 28px; }
.cj .head h2 { font-size: 1.1rem; }
.cj-desc { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.cj .hint { margin-top: 8px; }

/* ===== Beranda: papan lowongan ===== */
.hero2 { background: var(--green-deep); color: #fff; padding: 32px 0 36px; overflow: hidden; }
.hero2-grid { display: grid; gap: 26px; }
.hero2 h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 12px; max-width: 13ch; }
.hero2-lead { color: #cfe6da; margin: 0 0 20px; max-width: 46ch; font-size: 1.05rem; }
.hero2-lead strong { color: #fff; }
.search2 { display: grid; gap: 2px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 14px 32px rgba(0, 0, 0, .22); }
.search2-field { padding: 8px 12px 6px; }
.search2-field label { font-size: .75rem; font-weight: 700; color: var(--muted); margin: 0; }
.search2-field input { border: 0; padding: 2px 0 4px; font-size: 1.05rem; background: transparent; }
.search2-field input:focus { outline: none; }
.search2-field:focus-within { background: var(--paper); border-radius: 10px; }
.search2 .btn { padding: 14px 22px; border-radius: 10px; }
.hero2 .cities { margin-top: 14px; }

/* Kertas lowongan yang "ditempel" di papan */
.board { display: flex; gap: 14px; overflow-x: auto; padding: 16px 4px 10px; margin: 0 -4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.notice { --r: -1deg; position: relative; flex: 0 0 236px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px;
  background: #fffcf1; color: var(--ink); text-decoration: none; border-radius: 3px; padding: 24px 18px 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 12px 22px rgba(0, 0, 0, .25); transform: rotate(var(--r));
  animation: pinned .5s cubic-bezier(.2, .9, .3, 1.2) backwards; transition: transform .2s; }
.notice.n1 { --r: 1.2deg; animation-delay: .08s; }
.notice.n2 { --r: -.6deg; animation-delay: .16s; }
.notice:hover, .notice:focus-visible { transform: rotate(0) translateY(-3px); color: var(--ink); z-index: 2; }
.pin { position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9b8c, #d63b2c 60%, #8f1f15); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); }
.notice-label { font-size: .75rem; font-weight: 700; color: #c2352a; }
.notice-title { font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.notice-company { color: var(--muted); font-size: .92rem; }
.notice-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #d9d3bf; font-size: .85rem; color: var(--muted); }
.notice-meta b { color: var(--green-deep); }
@keyframes pinned { from { opacity: 0; transform: translateY(-16px) rotate(calc(var(--r) * 4)); } }

/* Jaminan aman */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item p { margin: 0; font-size: .9rem; color: var(--muted); }
.trust-item b { display: block; color: var(--ink); font-size: .98rem; }

/* Bidang */
.cats { padding: 28px 0 0; }
.cats h2 { font-size: 1.35rem; margin: 0 0 14px; letter-spacing: -0.01em; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 8px; padding: 13px 14px; text-decoration: none; color: var(--ink); }
.cat:hover { border-color: var(--green); color: var(--ink); background: var(--green-soft); }
.cat-name { font-weight: 700; line-height: 1.25; }
.cat-count { color: var(--muted); font-size: .85rem; }

/* Ajakan pemberi kerja */
.employer { background: var(--ink); color: #fff; padding: 34px 0; }
.employer-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.employer h2 { margin: 0 0 4px; font-size: 1.4rem; letter-spacing: -0.01em; }
.employer p { margin: 0; color: #c5cfca; max-width: 52ch; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--green-soft); color: var(--green-deep); }
.hide-hero { display: none; }

@media (min-width: 640px) {
  .search2 { grid-template-columns: 1.3fr 1fr auto; align-items: center; }
  .search2-field + .search2-field { border-left: 1px solid var(--line); }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero2 { padding: 56px 0 64px; }
  .hero2-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
  .board { display: block; position: relative; height: 370px; overflow: visible; padding: 0; margin: 0; }
  .notice { position: absolute; width: 270px; }
  .notice.n0 { top: 0; left: 4%; --r: -3deg; }
  .notice.n1 { top: 115px; left: 36%; --r: 2.5deg; }
  .notice.n2 { top: 228px; left: 8%; --r: -1.5deg; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .notice { animation: none; transition: none; }
}

/* ===== Daftar lowongan: kartu dengan monogram ===== */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.list-head h1, .list-head h2 { font-size: 1.4rem; margin: 0; letter-spacing: -0.015em; line-height: 1.2; }
.list-head .hint { margin: 2px 0 0; }
.count-chip { flex: none; font-size: .82rem; font-weight: 700; color: var(--green-deep); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; }

.jlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jcard { position: relative; display: flex; gap: 14px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; transition: border-color .15s, box-shadow .15s; }
.jcard:hover { border-color: #b9cfc3; box-shadow: 0 6px 18px rgba(23, 33, 43, .07); }
.jcard.is-featured { background: #fffbef; border-color: #f0d48f; }
.jcard.is-featured::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--amber); }

.mono { --h: 150; flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  background: hsl(var(--h) 55% 92%); color: hsl(var(--h) 55% 26%); }
.mono-muted { background: hsl(var(--h) 12% 93%); color: hsl(var(--h) 12% 35%); }

.jcard-body { min-width: 0; flex: 1; }
.jcard-top { display: flex; gap: 6px; }
.jcard-top:empty { display: none; }
.jcard-top + h3 { margin-top: 6px; }
.jcard h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
.jcard h3 a { color: var(--ink); text-decoration: none; }
.jcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.jcard h3 a:hover { color: var(--green-deep); }
.jcard-company { margin: 2px 0 10px; color: var(--muted); font-size: .93rem; overflow-wrap: anywhere; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: #3f4b56; background: var(--paper);
  border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.chips svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips .chip-salary { color: var(--green-deep); font-weight: 700; background: var(--green-soft); border-color: transparent; }

.jcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.jcard-salary { font-weight: 800; color: var(--green-deep); font-size: .98rem; }
.jcard-salary.is-empty { font-weight: 500; color: var(--muted); font-size: .85rem; }
.jcard-time { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.jcard-ext { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jcard-ext svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Daftar mitra: lebih tenang agar lowongan sendiri tetap menonjol */
.cj { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--line); }
.jlist-partner .jcard { background: transparent; border-style: dashed; }
.jlist-partner .jcard:hover { background: var(--surface); border-style: solid; }
.jcard-desc { margin: 10px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cj-credit { margin-top: 12px; }

/* Lowongan serupa di halaman detail */
.jlist-compact .jcard { padding: 12px; gap: 10px; }
.jlist-compact .mono { width: 36px; height: 36px; border-radius: 9px; font-size: .8rem; }
.jlist-compact .chips li:not(.chip-loc) { display: none; }

/* Paginasi */
.pagination li a, .pagination li span { min-width: 40px; text-align: center; border-radius: 10px; }

@media (min-width: 640px) {
  .jcard { padding: 18px 20px; gap: 16px; }
  .mono { width: 52px; height: 52px; font-size: 1.05rem; }
}
