/* Aplikuok Jobs – board, cards, swipe, job page */
:root {
  --aj-bg: #f3f3f6;
  --aj-card: #ffffff;
  --aj-soft: #f4f4f7;
  --aj-line: #e7e7ec;
  --aj-ink: #0b0b10;
  --aj-ink-2: #3d3d48;
  --aj-muted: #8a8a96;
  --aj-brand: #443eff;
  --aj-love: #ff3b5c;
  --aj-radius: 28px;
  --aj-shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 12px 32px -12px rgba(16, 16, 24, .12);
}

.aj, .aj * { box-sizing: border-box; }
body.aj {
  margin: 0; background: var(--aj-bg); color: var(--aj-ink);
  font: 16px/1.55 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.aj a { color: inherit; }
.aj h1, .aj h2, .aj h3, .aj p, .aj ul, .aj dl { margin: 0; }
.aj ul { padding: 0; list-style: none; }
.aj-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Header */
.aj-top { position: sticky; top: 0; z-index: 30; background: rgba(243, 243, 246, .85); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(0,0,0,.04); }
.aj-top__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.aj-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.aj-logo__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--aj-ink); color: #fff; font-size: 18px; line-height: 1; padding-bottom: 3px; }
.aj-nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; color: var(--aj-ink-2); }
.aj-nav a { text-decoration: none; }
.aj-nav a:hover { color: var(--aj-ink); }
.aj-saved-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--aj-line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 14px/1 inherit; color: var(--aj-ink); cursor: pointer; }
.aj-saved-btn svg { color: var(--aj-love); }
.aj-saved-btn b { min-width: 20px; height: 20px; border-radius: 10px; background: var(--aj-ink); color: #fff; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }

/* Hero + search */
.aj-hero { padding: 44px 0 20px; }
.aj-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--aj-muted); margin-bottom: 14px; }
.aj-crumbs a { text-decoration: none; }
.aj-crumbs a:hover { color: var(--aj-ink); }
.aj-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; max-width: 16ch; }
.aj-hero__sub { margin-top: 14px; color: var(--aj-ink-2); font-size: 16px; }
.aj-hero__intro { margin-top: 8px; color: var(--aj-muted); max-width: 70ch; }
.aj-search { margin-top: 28px; display: grid; grid-template-columns: minmax(220px, 2.2fr) repeat(4, minmax(130px, 1fr)) auto; gap: 8px; background: #fff; border-radius: 22px; padding: 8px; box-shadow: var(--aj-shadow); }
.aj-search__q { display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--aj-muted); }
.aj-search input, .aj-search select { width: 100%; border: 0; background: transparent; font: 500 15px/1.2 inherit; color: var(--aj-ink); height: 48px; outline: none; }
.aj-search select { background: var(--aj-soft); border-radius: 14px; padding: 0 12px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.aj-search input:focus-visible, .aj-search select:focus-visible { box-shadow: inset 0 0 0 2px var(--aj-ink); border-radius: 14px; }
.aj-chips { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.aj-chips::-webkit-scrollbar { display: none; }
.aj-chip { flex: none; text-decoration: none; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--aj-line); font-size: 14px; font-weight: 600; color: var(--aj-ink-2); white-space: nowrap; }
.aj-chip:hover { border-color: #c9c9d2; }
.aj-chip.is-on { background: var(--aj-ink); border-color: var(--aj-ink); color: #fff; }

/* Buttons */
.aj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 16px; border: 0; font: 700 15px/1 inherit; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.aj-btn:active { transform: scale(.98); }
.aj-btn--dark { background: var(--aj-ink); color: #fff !important; }
.aj-btn--dark:hover { background: #26262f; }
.aj-btn--ghost { background: var(--aj-soft); color: var(--aj-ink); }
.aj-btn--ghost[aria-pressed="true"] { color: var(--aj-love); }
.aj-btn--block { width: 100%; }
.aj-icon-btn { border: 0; background: var(--aj-soft); width: 36px; height: 36px; border-radius: 12px; cursor: pointer; font-size: 16px; }

/* Board */
.aj-board { padding-bottom: 40px; }
.aj-board__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.aj-view { display: inline-flex; background: #fff; border-radius: 14px; padding: 4px; border: 1px solid var(--aj-line); }
.aj-view button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; border-radius: 10px; padding: 8px 14px; font: 600 14px/1 inherit; color: var(--aj-ink-2); cursor: pointer; }
.aj-view button.is-on { background: var(--aj-ink); color: #fff; }
.aj-stat { font-size: 14px; color: var(--aj-ink-2); }
.aj-stat span { color: var(--aj-muted); }
.aj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }

/* Card (after the reference: white top, soft bottom tray, black CTA) */
.aj-card { display: flex; flex-direction: column; background: var(--aj-soft); border-radius: var(--aj-radius); box-shadow: var(--aj-shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.aj-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(16,16,24,.04), 0 22px 44px -18px rgba(16,16,24,.22); }
.aj-card__top { background: var(--aj-card); border-radius: var(--aj-radius); padding: 22px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.aj-card__head { display: flex; align-items: center; gap: 12px; }
.aj-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--aj-line); display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 14px; color: var(--aj-ink-2); }
.aj-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.aj-avatar--lg { width: 56px; height: 56px; }
.aj-card__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.aj-card__company { font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aj-card__ago { font-size: 13px; color: var(--aj-muted); }
.aj-heart { margin-left: auto; flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--aj-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--aj-ink); }
.aj-heart svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.aj-heart[aria-pressed="true"] { color: var(--aj-love); border-color: #ffd0d9; background: #fff5f7; }
.aj-heart[aria-pressed="true"] svg path { fill: currentColor; }
.aj-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.aj-pills li, .aj-pills a { display: inline-block; }
.aj-pills a, .aj-pills li:not(:has(a)) { padding: 6px 12px; border-radius: 999px; background: var(--aj-soft); font-size: 13px; font-weight: 600; color: #6b6b78; text-decoration: none; }
.aj-pills a:hover { background: #e9e9ef; color: var(--aj-ink); }
.aj-pills--soft li { background: #fff !important; border: 1px solid var(--aj-line); }
.aj-card__title { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.aj-card__title a { text-decoration: none; }
.aj-card__title a::after { content: ""; position: absolute; inset: 0; }
.aj-card__top { position: relative; }
.aj-card__head, .aj-pills { position: relative; z-index: 1; }
.aj-card__sum { color: var(--aj-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aj-card__bottom { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.aj-card__pay { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aj-pay { font-size: 15px; color: var(--aj-muted); }
.aj-pay strong { font-size: 26px; color: var(--aj-ink); letter-spacing: -.02em; font-weight: 800; }
.aj-pay--none { font-size: 14px; }
.aj-pay--lg strong { font-size: 32px; }
.aj-tag { flex: none; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.aj-empty { grid-column: 1 / -1; background: #fff; border-radius: var(--aj-radius); padding: 48px; text-align: center; }
.aj-empty h2 { font-size: 22px; margin-bottom: 8px; }

.aj-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.aj-pages a, .aj-pages span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 14px; background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.aj-pages .current { background: var(--aj-ink); color: #fff; }

/* Swipe */
.aj-swipe { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 10px 0 20px; }
.aj-swipe[hidden] { display: none; }
.aj-swipe__deck { position: relative; width: min(420px, 100%); height: 540px; }
.aj-swipe__deck .aj-card { position: absolute; inset: 0; touch-action: pan-y; user-select: none; cursor: grab; will-change: transform; }
.aj-swipe__deck .aj-card:hover { transform: none; }
.aj-swipe__deck .aj-card.is-drag { cursor: grabbing; transition: none; }
.aj-swipe__deck .aj-card .aj-card__sum { -webkit-line-clamp: 5; }
.aj-swipe__deck .aj-card:nth-last-child(2) { transform: scale(.95) translateY(14px); }
.aj-swipe__deck .aj-card:nth-last-child(3) { transform: scale(.9) translateY(28px); }
.aj-swipe__deck .aj-card:nth-last-child(n+4) { opacity: 0; }
.aj-stamp { position: absolute; top: 26px; z-index: 3; padding: 6px 14px; border: 3px solid; border-radius: 12px; font-weight: 800; font-size: 20px; letter-spacing: .04em; opacity: 0; pointer-events: none; text-transform: uppercase; }
.aj-stamp--save { left: 22px; color: var(--aj-love); transform: rotate(-12deg); }
.aj-stamp--skip { right: 22px; color: var(--aj-muted); transform: rotate(12deg); }
.aj-swipe__actions { display: flex; gap: 18px; align-items: center; }
.aj-round { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--aj-shadow); display: grid; place-items: center; font-size: 22px; cursor: pointer; transition: transform .15s ease; }
.aj-round:hover { transform: scale(1.06); }
.aj-round--open { width: 50px; height: 50px; font-size: 18px; }
.aj-round--save { color: var(--aj-love); }
.aj-swipe__hint { font-size: 13px; color: var(--aj-muted); text-align: center; }
.aj-swipe__done { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: #fff; border-radius: var(--aj-radius); padding: 32px; }

/* Internal links */
.aj-links { display: grid; gap: 32px; padding: 20px 0 60px; }
.aj-links h2 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 14px; }
.aj-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.aj-cloud a { display: inline-flex; gap: 6px; align-items: center; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; text-decoration: none; }
.aj-cloud a:hover { background: var(--aj-ink); color: #fff; }
.aj-cloud span { color: var(--aj-muted); font-weight: 500; font-size: 13px; }

/* Job page */
.aj-job { padding: 32px 0 60px; }
.aj-job__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 8px; }
.aj-job__main { background: #fff; border-radius: var(--aj-radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--aj-shadow); }
.aj-job__head { display: flex; flex-direction: column; gap: 18px; padding-bottom: 26px; border-bottom: 1px dashed var(--aj-line); margin-bottom: 26px; }
.aj-job__head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.aj-lead { font-size: 19px; line-height: 1.55; color: var(--aj-ink-2); margin-bottom: 18px !important; }
.aj-prose { color: var(--aj-ink-2); }
.aj-prose p { margin: 0 0 16px; }
.aj-prose h2, .aj-h2 { font-size: 20px; color: var(--aj-ink); letter-spacing: -.01em; margin: 30px 0 12px !important; }
.aj-prose ul { display: grid; gap: 10px; }
.aj-prose li { position: relative; padding-left: 26px; }
.aj-prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--aj-ink); }
.aj-source { margin-top: 32px !important; padding: 16px 18px; background: var(--aj-soft); border-radius: 16px; font-size: 13px; color: var(--aj-muted); }
.aj-job__side { position: sticky; top: 88px; display: grid; gap: 16px; }
.aj-apply, .aj-side-card { background: #fff; border-radius: var(--aj-radius); padding: 24px; box-shadow: var(--aj-shadow); display: grid; gap: 12px; }
.aj-muted { color: var(--aj-muted); font-size: 14px; margin-top: -8px !important; }
.aj-facts { display: grid; gap: 0; margin: 6px 0 8px !important; }
.aj-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--aj-line); font-size: 14px; }
.aj-facts dt { color: var(--aj-muted); }
.aj-facts dd { margin: 0; font-weight: 600; text-align: right; }
.aj-side-card h2 { font-size: 18px; }
.aj-side-card p { color: var(--aj-muted); font-size: 14px; }
.aj-side-card a { font-weight: 700; font-size: 14px; text-decoration: none; }
.aj-expired { background: #fff4e5; color: #7a4a00; border-radius: 16px; padding: 14px 18px; margin: 10px 0 16px; }
.aj-similar { margin-top: 48px; }
.aj-sticky { display: none; }

/* Saved drawer */
.aj-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(11, 11, 16, .35); display: flex; justify-content: flex-end; }
.aj-drawer[hidden] { display: none; }
.aj-drawer__panel { width: min(420px, 100%); height: 100%; background: var(--aj-bg); padding: 22px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.aj-drawer__head { display: flex; justify-content: space-between; align-items: center; }
.aj-drawer__head h2 { font-size: 22px; }
.aj-drawer__list { display: grid; gap: 10px; }
.aj-saved-item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; text-decoration: none; }
.aj-saved-item b { display: block; font-size: 15px; line-height: 1.3; }
.aj-saved-item small { color: var(--aj-muted); }
.aj-saved-item button { margin-left: auto; }
.aj-drawer__note { font-size: 13px; color: var(--aj-muted); }

/* Footer */
.aj-foot { background: #fff; padding: 40px 0; margin-top: 20px; }
.aj-foot__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.aj-foot p { color: var(--aj-muted); font-size: 14px; max-width: 60ch; margin-top: 12px; }

@media (max-width: 1080px) {
  .aj-search { grid-template-columns: 1fr 1fr; }
  .aj-search__q { grid-column: 1 / -1; background: var(--aj-soft); border-radius: 14px; }
  .aj-search button { grid-column: 1 / -1; }
  .aj-job__grid { grid-template-columns: 1fr; }
  .aj-job__side { position: static; }
}
@media (max-width: 640px) {
  .aj-nav { display: none; }
  .aj-saved-btn span { display: none; }
  .aj-hero { padding-top: 28px; }
  .aj-grid { grid-template-columns: 1fr; }
  .aj-card__title { font-size: 18px; }
  .aj-swipe__deck { height: 500px; }
  .aj-sticky { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; }
  .aj-job { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .aj-card, .aj-btn, .aj-round { transition: none; }
}
.aj-swipe__deck .aj-card__title a::after { display: none; }
.aj-swipe__deck .aj-card img { pointer-events: none; }
