/* Open positions popup (Timo 2026-11-04 23:56: "a small popup window for the open jobs … the overview of all the positions,
   click one, it opens the jobcard, apply opens a small contact funnel in the popup, no uploads"). jobs.js builds .jb-ov.
   Look: the about section's dark (uu.css tokens), the hub's 12px card with a hairline and a second hairline just outside,
   violet accent, one expo-out curve. */
.jb-ov { --ink: #f7f8f8; --dim: #8a8f98; --mute: #62666d; --line: rgba(255,255,255,.1); --outer: rgba(255,255,255,.04);
  --sel: rgba(255,255,255,.06); --ac: #9850F3; --e-out: cubic-bezier(.16, 1, .3, 1);
  position: fixed; inset: 0; z-index: 10040; display: grid; place-items: center; padding: 16px; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.jb-ov[hidden] { display: none; }
.jb-ov, .jb-ov * { cursor: auto; box-sizing: border-box; }
.jb-ov :is(a, button, label:has(input)) { cursor: pointer; }
.jb-ov :is(input, textarea) { cursor: text; }
html.jb-lock, html.jb-lock body { overflow: hidden; }

.jb-fx { position: absolute; inset: 0; background: rgba(0,0,0,0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background .4s ease, backdrop-filter .4s ease, -webkit-backdrop-filter .4s ease; }
.jb-ov.jb-on .jb-fx { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.jb { position: relative; width: min(940px, 100%); max-height: min(640px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto 1fr;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 55%), #0b0b0c;
  border: 1px solid var(--line); outline: 1px solid var(--outer); outline-offset: 5px; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); opacity: 0; transform: translateY(12px) scale(.985);
  transition: opacity .3s ease, transform .3s ease; }
.jb-ov.jb-on .jb { opacity: 1; transform: none; transition: opacity .5s var(--e-out), transform .6s var(--e-out); }
.jb::before { content: ""; position: absolute; top: -1px; right: -1px; width: 220px; height: 160px; border-radius: 0 14px 0 0; pointer-events: none;
  background: radial-gradient(80% 80% at 100% 0, rgba(152,80,243,.16), transparent 70%); }

.jb-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.jb-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); min-width: 0; }
.jb-crumb b { font-weight: 500; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-back, .jb-x { font: inherit; font-size: 13px; color: var(--dim); background: none; border: 0; padding: 4px 0; transition: color .25s var(--e-out); }
.jb-back:hover, .jb-x:hover { color: var(--ink); }
.jb-x { font-size: 20px; line-height: 1; padding: 2px 4px; }

.jb-body { position: relative; overflow: auto; padding: 26px 28px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.jb-view { display: grid; gap: 18px; animation: jb-in .5s var(--e-out) both; }
@keyframes jb-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.jb-eye { margin: 0; font-size: 13px; color: var(--mute); }
.jb-h { margin: 0; font-size: clamp(24px, 4vw, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.jb-h i { font-family: 'Very Vogue Display', serif; font-style: italic; font-weight: 400; color: var(--ac); letter-spacing: 0; }
.jb-lead { margin: -6px 0 0; font-size: 15px; line-height: 1.55; color: var(--dim); }

/* the overview: one row per position */
.jb-list { display: grid; gap: 12px; margin-top: 4px; }
.jb-row, .jb-in, .jb-chip { color: var(--ink); background: rgba(255,255,255,.02); border: 1px solid var(--line); outline: 1px solid var(--outer);
  outline-offset: 4px; font-family: inherit; transition: background .3s var(--e-out), border-color .3s var(--e-out); }
.jb-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; text-align: left; font: inherit;
  border-radius: 12px; padding: 18px 20px; }
.jb-row:hover, .jb-row:focus-visible { background: var(--sel); border-color: rgba(255,255,255,.22); }
.jb-row b { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.jb-row span { grid-column: 1; font-size: 14px; line-height: 1.45; color: var(--dim); }
.jb-row i { grid-column: 2; grid-row: 1 / span 3; font-style: normal; color: var(--dim); transition: transform .3s var(--e-out), color .3s; }
.jb-row:hover i { transform: translateX(3px); color: var(--ink); }
.jb-tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jb-tag { font-size: 12px; line-height: 1; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
.jb-tag.ac { color: #d9c2ff; border-color: rgba(152,80,243,.45); background: rgba(152,80,243,.1); }

/* wide layout (Timo 2026-11-05 00:04 "more horizontal"): positions side by side, the card's facts in three columns */
.jb-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.jb-row { grid-template-columns: 1fr; align-content: start; gap: 6px; }
.jb-row i { grid-column: 1; grid-row: auto; margin-top: 10px; font-size: 14px; }
.jb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.jb-head .jb-lead { margin: 8px 0 0; }
.jb-head .jb-h i { font-size: .7em; }
.jb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.jb-cols .jb-sec li { font-size: 14px; }
.jb-intra { margin: 0; font-size: 14px; color: var(--dim); }
.jb-intra b { font-weight: 500; color: var(--ink); }
.jb-two { grid-template-columns: 1fr 1fr !important; }
.jb-asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.jb-asks .jb-q { align-content: start; }
.jb-asks .jb-chips { gap: 6px; align-items: flex-start; }
.jb-asks .jb-chip { padding: 10px 11px; font-size: 13px; }
/* the job card */
.jb-sec { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.jb-sec h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--mute); letter-spacing: .02em; }
.jb-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.jb-sec li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: rgba(247,248,248,.86); }
.jb-sec li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--ac); opacity: .8; }
.jb-sec p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(247,248,248,.86); }
.jb-foot { position: sticky; bottom: -24px; margin: 0 -28px -24px; padding: 14px 28px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(rgba(11,11,12,0), #0b0b0c 30%); }
.jb-foot small { font-size: 12px; color: var(--mute); }

.jb-go { font: inherit; font-size: 15px; font-weight: 500; color: #0b0b0c; background: var(--ink); border: 0; border-radius: 10px; padding: 13px 20px;
  display: inline-flex; align-items: center; gap: 8px; transition: transform .3s var(--e-out), opacity .3s; }
.jb-go:hover { transform: translateY(-1px); }
.jb-go:disabled { opacity: .5; transform: none; }
.jb-go i { font-style: normal; }

/* the small funnel */
.jb-f { display: grid; gap: 14px; }
.jb-f label { display: grid; gap: 7px; font-size: 13px; color: var(--dim); }
.jb-f label em { font-style: normal; color: var(--mute); }
.jb-in { font-size: 15px; line-height: 1.4; border-radius: 10px; padding: 12px 14px; width: 100%; }
.jb-in::placeholder { color: var(--mute); }
.jb-in:focus { outline-color: rgba(152,80,243,.35); border-color: rgba(152,80,243,.6); }
textarea.jb-in { resize: vertical; min-height: 84px; }
.jb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jb-q { display: grid; gap: 9px; font-size: 13px; color: var(--dim); }
.jb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jb-chip { font-size: 14px; line-height: 1; border-radius: 10px; padding: 11px 13px; }
.jb-chip:hover { border-color: rgba(255,255,255,.25); }
.jb-chip[aria-pressed="true"] { background: rgba(152,80,243,.14); border-color: var(--ac); }
.jb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.jb-err { margin: 0; font-size: 13px; color: #f08a2e; }
.jb-ok { display: grid; gap: 14px; justify-items: start; }
.jb-ok .jb-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(152,80,243,.5);
  background: rgba(152,80,243,.12); color: #d9c2ff; font-size: 20px; }

@media (max-width: 720px) {
  .jb-ov { padding: 0; place-items: end stretch; }
  .jb { width: 100%; max-height: 92dvh; border-radius: 14px 14px 0 0; outline: 0; transform: translateY(40px); }
  .jb-two { grid-template-columns: 1fr !important; }
  .jb-cols, .jb-asks { grid-template-columns: 1fr; gap: 14px; }
  .jb-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .jb-body { padding: 22px 18px 22px; }
  .jb-foot { margin: 0 -18px -22px; padding: 14px 18px 20px; }
  .jb-row { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .jb, .jb-fx, .jb-view { transition: none !important; animation: none !important; } }
