/* Karir Jobaloka — gaya dasar tanpa proses build. Warna mengikuti desain UI/UX. */
:root {
  --ink: #13213C;
  --muted: #4A5568;
  --line: #E3E7EE;
  --line-soft: #EEF0F4;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --primary: #0B6E4F;
  --primary-dark: #08533B;
  --primary-soft: #E7F3EE;
  --deep: #0B3B2E;
  --accent: #F2A541;
  --danger: #B91C1C;
  --radius: 14px;
}

* { box-sizing: border-box; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.bold { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Isi halaman mengisi sisa tinggi layar agar footer selalu di bawah. */
body > main, body > .page { flex: 1 0 auto; width: 100%; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #CBD2DC; }
.btn-outline:hover { background: var(--bg); color: var(--ink); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #0a1426; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #e0932c; color: var(--ink); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #FEF2F2; color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-link { background: none; border: 0; color: var(--primary); padding: 0; min-height: 0; font-weight: 700; cursor: pointer; font: inherit; }
.btn-block { width: 100%; }

/* Cards & badges */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-lg { border-radius: 20px; padding: 28px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #F1F3F6; color: #374151; white-space: nowrap; }
.badge-green { background: #DCFCE7; color: #14532D; }
.badge-blue { background: #DBEAFE; color: #1E3A8A; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-navy { background: #13213C; color: #FFFFFF; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.chip { display: inline-block; padding: 6px 10px; border-radius: 8px; background: #F1F3F6; color: #374151; font-size: 13px; font-weight: 600; }
.logo-tile { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }

/* Forms */
label { font-weight: 600; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #CBD2DC; border-radius: 10px; padding: 11px 13px; min-height: 46px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.error { color: var(--danger); font-size: 13px; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; font-size: 15px; padding-bottom: 8px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.alert-success { background: #DCFCE7; color: #14532D; }
.alert-error { background: #FEE2E2; color: #991B1B; }
.alert-info { background: #DBEAFE; color: #1E3A8A; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }

/* Hero */
.hero { background: var(--deep); color: #fff; }
.hero .container { padding-top: 64px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.hero .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9FE0C4; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 760px; }
.hero p.lead { font-size: 18px; color: #D5EDE3; max-width: 620px; }
.search-box { background: #fff; border-radius: 16px; padding: 10px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.search-box input { border: 0; background: var(--bg); flex: 1 1 220px; }
.search-box .btn { min-height: 52px; padding: 0 28px; }

/* Layout with sidebar */
.page { padding-top: 28px; padding-bottom: 64px; }
.with-sidebar { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sidebar { flex: 1 1 220px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar a { min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.sidebar a:hover { background: var(--bg); }
.sidebar a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.sidebar .label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px 4px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Job card */
.job-card { display: flex; flex-direction: column; gap: 12px; }
.job-card .title { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.job-card .title:hover { color: var(--primary); }
.job-card .foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.salary { font-weight: 700; color: var(--primary); }

/* Board */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; min-width: 1000px; }
.board-col { background: #EEF0F4; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }

/* Stats */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .value { font-size: 28px; font-weight: 800; }

/* Toggle switch for modules */
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: 0 0 52px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CBD2DC; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer { font-size: 15px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col h2 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.footer-col a { min-height: 32px; display: flex; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 14px; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 8px 0 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #CBD2DC; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); background: #fff; }
.pagination .current span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled span { color: #9CA3AF; }

details summary { cursor: pointer; font-weight: 700; }
.progress { height: 8px; border-radius: 999px; background: var(--line); }
.progress > div { height: 8px; border-radius: 999px; background: var(--primary); }
.prose { line-height: 1.7; color: #374151; white-space: pre-line; }
.legal { line-height: 1.7; color: #374151; }
.legal h1, .legal h2 { color: var(--ink); }
.legal h2 { font-size: 18px; margin-top: 8px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; }
.tabs a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-weight: 700; font-size: 15px; color: var(--muted); text-decoration: none; }
.tabs a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(19, 33, 60, .12); }

/* Identitas akun di header */
.account-chip { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; text-decoration: none; color: var(--ink); padding: 4px 8px; border-radius: 10px; max-width: 340px; min-width: 0; }
.account-chip:hover { background: #F1F3F6; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); }
.bell:hover { background: #F1F3F6; }
.bell-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #B91C1C; color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.notification { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.notification:hover { background: #F1F3F6; }
.notification.unread { background: #E7F3EE; font-weight: 600; }
.account-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-name .bold { overflow: hidden; text-overflow: ellipsis; }

/* Daftar pasangan label-nilai (faktur, akun) */
.pay-info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
.pay-info dt { color: var(--muted); }
.pay-info dd { margin: 0; overflow-wrap: anywhere; }

/* Popup masuk/daftar untuk tamu */
[data-auth-gate] { cursor: pointer; }
.auth-gate { border: 0; border-radius: 20px; padding: 32px 28px 28px; width: min(420px, calc(100vw - 32px)); box-sizing: border-box; text-align: center; color: var(--ink); box-shadow: 0 24px 60px rgba(19,33,60,.25); }
.auth-gate::backdrop { background: rgba(19,33,60,.55); }
.auth-gate h2 { font-size: 22px; margin: 14px 0 8px; }
.auth-gate p { margin: 0 0 20px; line-height: 1.6; }
.auth-gate-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.auth-gate-close button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 10px; }
.auth-gate-close button:hover { background: #F1F3F6; }
.contact-list { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.btn-google { gap: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lang-switch { display: inline-flex; border: 1px solid #CBD2DC; border-radius: 10px; overflow: hidden; }
.lang-switch a { min-width: 44px; min-height: 40px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Header: menu akun (inisial + dropdown) dan menu lipat di layar sempit */
.header-menu { display: contents; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.nav a.current { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.for-employers { font-weight: 700; color: var(--ink); text-decoration: none; padding: 10px 4px; }
.for-employers:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 6px; order: 3; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #CBD2DC; border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: #F1F3F6; }
.account-menu[open] .chevron { transform: rotate(180deg); }
.avatar { width: 34px; height: 34px; border-radius: 8px; background: #DCE7F7; color: #13213C; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.avatar-lg { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 300px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(19,33,60,.16); padding: 8px; display: flex; flex-direction: column; }
.account-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.account-head:hover { background: #F1F3F6; }
.account-head .account-chip { padding: 0; max-width: 220px; }
.account-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; padding: 6px 0; }
.account-links a { min-height: 42px; padding: 0 12px; display: flex; align-items: center; border-radius: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.account-links a:hover { background: #F1F3F6; }
.account-links a.active { color: var(--primary-dark); font-weight: 700; }
.account-links .label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px 2px; }
.account-logout { width: 100%; min-height: 44px; text-align: left; padding: 0 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.account-logout:hover { background: #F1F3F6; }
@media (max-width: 760px) {
  .site-header .container { gap: 0 8px; }
  .site-header .nav, .header-tools { display: none; }
  .header-actions { margin-left: auto; order: 0; }
  .menu-btn { display: inline-flex; }
  .header-menu { display: none; order: 5; flex-direction: column; align-items: stretch; gap: 14px; width: 100%; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 12px; }
  .header-menu.open, .header-menu.open .header-tools { display: flex; }
  .header-menu.open .nav { display: flex; flex-direction: column; gap: 0; }
  .header-menu .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .header-tools { flex-direction: column; align-items: stretch; }
  .header-tools .lang-switch { align-self: flex-start; }
  .header-tools .btn { width: 100%; }
  .for-employers { text-align: center; }
  .account-menu .chevron { display: none; }
  .account-dropdown { position: fixed; top: 64px; right: 16px; }
}

.job-detail { flex-direction: row-reverse; }

/* Kotak cari besar (beranda pencari kerja dan halaman cari) */
.search-band { background: var(--deep); }
.search-band .container { padding-top: 28px; padding-bottom: 28px; }
.search-band-form { display: flex; flex-wrap: wrap; gap: 12px; }
.search-field { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 0 16px; color: var(--muted); flex: 1 1 200px; min-height: 52px; }
.search-field-q { flex: 3 1 300px; }
.search-field input { border: 0; padding: 0; min-height: 52px; background: transparent; box-shadow: none; outline: none; flex: 1; min-width: 0; font-size: 16px; }
.search-field:focus-within { box-shadow: 0 0 0 3px #9FE0C4; }
.search-band-btn { min-height: 52px; padding: 0 36px; font-size: 16px; }
.section-title { font-size: 22px; }
.saved-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.saved-card:hover { border-color: var(--primary); }
.filter-panel summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::after { content: "▾"; color: var(--muted); }
.filter-panel[open] summary::after { content: "▴"; }
@media (max-width: 760px) {
  .search-band .container { padding-top: 16px; padding-bottom: 16px; }
  .search-band-form { gap: 8px; }
  .search-band-btn { width: 100%; }
  /* Menu dashboard jadi deretan tab yang bisa digeser, bukan daftar setinggi layar. */
  .sidebar { flex-direction: row; overflow-x: auto; padding: 6px; gap: 4px; flex-basis: 100%; scrollbar-width: none; }
  .sidebar .label { display: none; }
  .sidebar a { white-space: nowrap; flex: none; min-height: 40px; }
  /* Detail lowongan: judul dulu, lalu tombol lamar, lalu isi. */
  .job-detail { flex-direction: column; }
  .job-detail > aside, .job-detail > article { display: contents; }
  .job-detail .job-head { order: 1; }
  .job-detail .apply-card { order: 2; }
  .job-detail > article > * { order: 3; }
  .job-detail .scam-card { order: 4; }
  .job-detail .job-head, .job-detail .apply-card, .job-detail .scam-card, .job-detail > article > * { width: 100%; }
}
.nav-dashboard { font-weight: 700 !important; }
.account-links .nav-dashboard { gap: 10px; }
.account-go { margin-left: auto; font-size: 22px; color: var(--muted); }
.account-links a { justify-content: space-between; }
.mobile-only { display: none !important; }
@media (max-width: 760px) { .header-menu .nav a.mobile-only { display: block !important; } }
