/* KerjaYuk — Tahap 1
   Palet: kertas hangat + tinta + satu aksen hijau tua.
   Sengaja tanpa gradien, tanpa kaca (glass), tanpa bayangan besar.
   Font: Plus Jakarta Sans (typeface Indonesia), self-hosted di css/fonts/,
   fallback sistem. */

/* Plus Jakarta Sans — self-hosted (variable font, 1 file per subset) */
@font-face{
  font-family:"Plus Jakarta Sans"; font-style:normal; font-weight:200 800; font-display:block;
  src:url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:"Plus Jakarta Sans"; font-style:normal; font-weight:200 800; font-display:block;
  src:url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root{
  --paper:#FAF7F0; --surface:#FFFFFF; --ink:#1B1A17; --muted:#6B6560;
  --line:#E7E1D6; --accent:#0C6B4A; --accent-ink:#FFFFFF;
  --accent-soft:#E3EFE8; --amber:#7A5200; --amber-soft:#FFF3D0;
  --danger:#9B2C2C; --radius:10px; --radius-sm:7px;
  --focus:#0C6B4A; --max:720px;
}
[data-theme="dark"]{
  --paper:#161513; --surface:#1E1C19; --ink:#F2EFE9; --muted:#A8A29A;
  --line:#35322D; --accent:#4CC38A; --accent-ink:#0B1F16;
  --accent-soft:#1D3A2E; --amber:#F2C14E; --amber-soft:#3A2F10;
  --danger:#F28B8B; --focus:#4CC38A;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
#view{min-height:60vh}
.empty-cta{display:inline-block;padding:12px 20px;text-decoration:none}
.detail-note{margin-top:16px}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px; line-height:1.55;
}
.wrap{max-width:var(--max); margin:0 auto; padding:0 16px}
a{color:var(--accent)}
a:visited{color:var(--accent)}
:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:4px}
.skip{position:absolute; left:-999px; top:0; background:var(--accent); color:var(--accent-ink); padding:10px 14px; z-index:99}
.skip:focus{left:8px; top:8px; color:var(--accent-ink)}

/* ---- Header ---- */
.topbar{background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20}
.topbar-in{display:flex; align-items:center; gap:12px; min-height:56px}
.brand{display:flex; align-items:baseline; gap:8px; text-decoration:none; color:var(--ink); margin-right:auto}
.brand-mark{display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:8px; background:var(--accent); color:var(--accent-ink); font-weight:800; font-size:17px; line-height:1; transform:translateY(4px)}
.brand-name{font-weight:800; font-size:20px; letter-spacing:-.02em}
.brand-yuk{color:var(--accent)}
.brand-tag{font-size:11px; font-weight:600; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:2px 8px; transform:translateY(-1px)}
.topnav{display:none; gap:4px}
.topnav a{color:var(--ink); text-decoration:none; font-weight:600; font-size:14px; padding:8px 10px; border-radius:8px}
.topnav a[aria-current="page"]{background:var(--accent-soft); color:var(--accent)}
.theme-btn{border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:999px; padding:8px 12px; font:inherit; font-size:13px; font-weight:600; cursor:pointer; min-height:40px}
.count-badge{display:inline-block; min-width:20px; padding:1px 6px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:11px; font-weight:700; text-align:center}

/* ---- Hero / pencarian ---- */
.hero{padding:28px 0 8px}
.hero h1{font-size:30px; line-height:1.15; letter-spacing:-.02em; margin:0 0 6px}
.hero h1 em{font-style:normal; color:var(--accent)}
.hero p{margin:0 0 16px; color:var(--muted); font-size:15px}
.search-row{display:flex; gap:8px}
.search-row input{
  flex:1; min-width:0; min-height:52px; padding:12px 14px; font:inherit;
  border:1.5px solid var(--line); border-radius:var(--radius); background:var(--surface); color:var(--ink);
}
.search-row input::placeholder{color:var(--muted)}
.search-btn{border:0; background:var(--accent); color:var(--accent-ink); border-radius:var(--radius); padding:0 20px; font:inherit; font-weight:700; cursor:pointer; min-height:52px}
.search-filters{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0 0}
.search-filters label{font-size:13px; font-weight:700; display:block; margin-bottom:5px}
.search-filters select{
  width:100%; min-height:48px; padding:10px 12px; font:inherit; font-size:15px;
  border:1.5px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink);
}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 4px}
.chip{border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:999px; padding:8px 14px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; min-height:40px}
.chip[aria-pressed="true"]{background:var(--ink); color:var(--paper); border-color:var(--ink)}
.filters-toggle{margin:10px 0 0; border:0; background:none; color:var(--accent); font:inherit; font-weight:700; padding:10px 0; cursor:pointer; text-align:left}
.filter-panel{border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:14px; margin:8px 0 4px; display:grid; gap:12px}
.filter-panel[hidden]{display:none}
.filter-panel label{font-size:13px; font-weight:700; display:block; margin-bottom:5px}
.filter-panel select, .filter-panel input[type="number"]{
  width:100%; min-height:44px; padding:9px 10px; font:inherit; font-size:15px;
  border:1.5px solid var(--line); border-radius:var(--radius-sm); background:var(--paper); color:var(--ink);
}
.filter-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.filter-actions{display:flex; gap:8px}
.btn-ghost{border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:var(--radius); padding:10px 16px; font:inherit; font-weight:600; cursor:pointer; min-height:44px}

/* ---- Daftar loker ---- */
.list-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:20px 0 10px}
.list-head h2{font-size:18px; margin:0}
.list-head span{color:var(--muted); font-size:14px}
.job-list{list-style:none; margin:0 0 24px; padding:0; display:grid; gap:10px}
.load-more-wrap{text-align:center; margin:0 0 24px}
.job{border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:14px 16px; content-visibility:auto; contain-intrinsic-size:auto 120px}
.job-top{display:flex; gap:10px; align-items:flex-start}
.job-top a.job-title{color:var(--ink); text-decoration:none; font-weight:700; font-size:17px; line-height:1.3}
.job-top a.job-title:hover{color:var(--accent); text-decoration:underline}
.job-company{color:var(--muted); font-size:14px; margin:3px 0 0}
.job-meta{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px}
.tag{font-size:12px; font-weight:600; border:1px solid var(--line); border-radius:999px; padding:3px 9px; color:var(--muted)}
.tag.salary{border-color:transparent; background:var(--accent-soft); color:var(--accent)}
.tag.new{border-color:transparent; background:var(--amber-soft); color:var(--amber)}
.job-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line)}
.job-date{font-size:13px; color:var(--muted)}
.save-btn{border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:999px; padding:8px 14px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; min-height:40px}
.save-btn[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:var(--accent-ink)}
.empty{border:1.5px dashed var(--line); border-radius:var(--radius); padding:28px 20px; text-align:center; margin:0 0 24px}
.empty h3{margin:0 0 6px; font-size:18px}
.empty p{margin:0 0 14px; color:var(--muted)}

/* ---- Detail ---- */
.back-link{display:inline-block; margin:20px 0 0; font-weight:600; text-decoration:none}
.detail{border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:20px 18px; margin:14px 0 24px}
.detail h1{font-size:24px; line-height:1.2; letter-spacing:-.01em; margin:0 0 4px}
.detail .job-company{font-size:15px}
.detail h2{font-size:16px; margin:20px 0 8px}
.detail p{margin:0 0 12px}
.detail ul{margin:0; padding-left:20px}
.detail li{margin-bottom:6px}
.apply-btn{display:block; text-align:center; background:var(--accent); color:var(--accent-ink); font-weight:700; font-size:16px; text-decoration:none; border-radius:var(--radius); padding:14px 18px; margin:18px 0 10px; min-height:52px}
.apply-btn:visited{color:var(--accent-ink)}
.source-note{font-size:13px; color:var(--muted); margin:0}
.detail-actions{display:flex; gap:8px; flex-wrap:wrap; margin-top:14px}
.status-row{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:16px; padding-top:14px; border-top:1px solid var(--line)}
.status-row label{font-weight:700; font-size:14px}
.status-row select{min-height:44px; padding:8px 10px; font:inherit; border:1.5px solid var(--line); border-radius:var(--radius-sm); background:var(--paper); color:var(--ink)}

/* ---- Halaman sederhana ---- */
.page{padding:24px 0}
.page h1{font-size:24px; letter-spacing:-.01em; margin:0 0 6px}
.page .lede{color:var(--muted); margin:0 0 18px}
.card{border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:16px; margin-bottom:12px}
.card h3{margin:0 0 4px; font-size:17px}
.card p{margin:0 0 8px; color:var(--muted); font-size:14px}
.form label{font-weight:700; font-size:14px; display:block; margin:14px 0 5px}
.form input, .form select, .form textarea{
  width:100%; min-height:48px; padding:11px 12px; font:inherit; font-size:15px;
  border:1.5px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink);
}
.form textarea{min-height:120px; resize:vertical}
.form .hint{font-size:13px; color:var(--muted); font-weight:400; margin-top:4px}
.form .submit{margin-top:18px; width:100%}
.notice{border-radius:var(--radius); padding:14px 16px; margin:0 0 16px; background:var(--accent-soft); color:var(--ink)}
.notice strong{display:block; margin-bottom:2px}
.tracker-row{display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.tracker-row select{min-height:44px; padding:8px 10px; font:inherit; border:1.5px solid var(--line); border-radius:var(--radius-sm); background:var(--paper); color:var(--ink)}
.keyword-row{display:flex; gap:8px; margin-bottom:8px}
.keyword-row input{flex:1; min-width:0; min-height:48px; padding:10px 12px; font:inherit; border:1.5px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink)}
.kw-list{list-style:none; margin:12px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px}
.kw-list li{display:flex; align-items:center; gap:6px; background:var(--accent-soft); border-radius:999px; padding:6px 6px 6px 12px; font-weight:600; font-size:14px}
.kw-list button{border:0; background:var(--surface); border-radius:50%; width:28px; height:28px; cursor:pointer; font:inherit; line-height:1}
.muted{color:var(--muted)} .small{font-size:13px}

/* ---- Footer & nav bawah ---- */
.footer{border-top:1px solid var(--line); padding:24px 0 96px; margin-top:8px}
.disclaimer{font-size:14px; background:var(--amber-soft); border-radius:var(--radius); padding:14px 16px; margin:0 0 14px}
.foot-note{font-size:13px; color:var(--muted); margin:0}
.bottomnav{position:fixed; left:0; right:0; bottom:0; z-index:20; display:flex; background:var(--surface); border-top:1px solid var(--line); padding-bottom:env(safe-area-inset-bottom)}
.bottomnav a{flex:1; text-align:center; padding:12px 4px 13px; color:var(--muted); text-decoration:none; font-size:13px; font-weight:700}
.bottomnav a[aria-current="page"]{color:var(--accent)}

@media (min-width:640px){
  .hero h1{font-size:36px}
  .topnav{display:flex}
  .bottomnav{display:none}
  .footer{padding-bottom:32px}
  .filter-panel{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce){ *{scroll-behavior:auto !important} }

/* ---- Skeleton loading (CLS) ----
   Tinggi disamakan dengan konten asli (diukur di situs live):
   hero 434px + kartu 200px di HP, hero 311px + kartu 181px di desktop,
   supaya footer tidak lompat saat daftar masuk. */
.skel-hero{height:434px}
.skel-card{height:200px; overflow:hidden}
.skel-bar{display:block; background:var(--line); border-radius:7px}
.skel-bar.b1{height:22px; width:70%; margin-bottom:14px}
.skel-bar.b2{height:16px; width:45%; margin-bottom:14px}
.skel-bar.b3{height:52px; width:100%; margin-bottom:14px}
.skel-bar.b4{height:36px; width:55%}
.skel-bar.b5{height:26px; width:60%; margin-bottom:14px}
.skel-bar.b6{height:40px; width:100%; margin-top:24px}
@media (min-width:640px){
  .skel-hero{height:311px}
  .skel-card{height:181px}
}
