/* ---------- Job ad (job.php): text of the ad and the application form ---------- */
.jobad__txt { display: grid; align-content: start; gap: 18px; color: var(--fg-2); }
.jobad__txt h2, .jobad__txt h3, .jobad__txt h4 { margin-top: 14px; font-family: var(--f-cond); font-stretch: 62%; font-weight: 800; text-transform: uppercase; line-height: 1.1; color: var(--fg); }
.jobad__txt h2 { font-size: var(--fs-h3); }
.jobad__txt h3, .jobad__txt h4 { font-size: var(--fs-h3-s); }
.jobad__txt ul, .jobad__txt ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.jobad__txt ul { list-style: square; }
.jobad__txt ol { list-style: decimal; }
.jobad__txt li::marker { color: var(--yellow); }
.jobad__txt a { box-shadow: inset 0 -1px 0 var(--yellow); text-decoration: none; color: var(--fg); }
.jobad__txt strong, .jobad__txt b { color: var(--fg); }
/* The intro of an ad (paragraphs before the first heading) is set bold in Talentlyft; here it is a larger
   regular lead instead (Matej, 30. 11. 2026.). */
.jobad__txt > p:not(h2 ~ p, h3 ~ p, h4 ~ p) { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; color: var(--fg); }
.jobad__txt > p:not(h2 ~ p, h3 ~ p, h4 ~ p) :is(strong, b) { font-weight: 400; }

/* Text of the ad and the form side by side, half and half; one column on narrow screens. */
.jobapply__g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.jobapply__side { display: grid; gap: 28px; scroll-margin-top: 90px; }
.jobapply__side .h2 { font-size: var(--fs-h2-side); }
.jobapply .form { grid-column: auto; }
.jobform input[type=tel], .jobform input[type=date], .jobform input[type=file] { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); background: rgba(11,11,12,0.55); color: var(--fg); font: inherit; border-radius: 0; transition: border-color .2s, box-shadow .2s; }
.jobform input[type=date] { color-scheme: dark; }
.jobform input[type=file]::file-selector-button { margin-right: 14px; padding: 6px 12px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font: inherit; cursor: pointer; }
.jobform textarea { min-height: 140px; }
.jobform__hint { font-size: var(--fs-xs); color: var(--fg-3); }
.jobform .check--radio input { border-radius: 50%; }
.jobform .check--radio input:checked { background: var(--yellow) radial-gradient(circle, var(--ink-1) 0 3px, transparent 4px); }
.jobform .form__set[data-invalid] legend { color: var(--danger); }
.jobform__policy { font-size: var(--fs-sm); color: var(--fg-2); }
.jobform__policy summary { cursor: pointer; color: var(--fg); }
.jobform__policy > div { margin-top: 12px; max-height: 320px; overflow: auto; padding: 14px; border: 1px solid var(--line-2); display: grid; gap: 12px; }
.jobform__policy a { color: var(--fg); }
.jobform button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 960px) { .jobapply__g { grid-template-columns: minmax(0, 1fr); } }

/* The ad and the form stand on the light background (Matej, 30. 11. 2026.): dark text and lines, the form is a
   white sheet, the darker yellow carries the details. The page hero above stays dark. */
.sec.jobapply { --fg: var(--ink-1); --fg-2: rgba(20,20,20,0.76); --fg-3: rgba(20,20,20,0.6); --line: rgba(20,20,20,0.12); --line-2: rgba(20,20,20,0.3); --danger: #B3261E; color: var(--fg); border-top: 0;
  background: radial-gradient(60% 50% at 0% 0%, #FFE7B0 0%, rgba(255,231,176,0) 70%), radial-gradient(50% 50% at 100% 100%, #DCDBFF 0%, rgba(220,219,255,0) 70%), var(--paper); }
.sec.jobapply::before { border-inline-color: rgba(20,20,20,0.16); }
.jobapply .it { color: var(--yellow-30); }
.jobapply :focus-visible { box-shadow: 0 0 0 5px var(--ink-1); }
.jobad__txt li::marker { color: var(--yellow-30); }
.jobad__txt a { box-shadow: inset 0 -1px 0 var(--yellow-30); }
.jobapply .glass { background: #fff; border-color: var(--line-2); box-shadow: 0 18px 50px -30px rgba(20,20,20,0.35); backdrop-filter: none; -webkit-backdrop-filter: none; }
.jobapply .glass::after { content: none; }
.jobapply .form :is(input[type=text], input[type=email], input[type=tel], input[type=date], input[type=file], textarea, select), .jobapply .form .check input { background-color: #fff; }
.jobapply .form .check input:checked { background-color: var(--yellow); }
.jobapply .form select option { background: #fff; color: var(--ink-1); }
.jobapply .form :is(input, textarea, select):focus { border-color: var(--yellow-30); box-shadow: 0 0 0 4px rgba(254,168,0,0.28); }
.jobform input[type=date] { color-scheme: light; }
.jobapply .form__note--ok { border-color: var(--yellow-30); }

/* The form in parts: the fields, each question with options, the consents, then the button. A line separates the
   parts; options stand in two columns; the policy text hangs under the consent it belongs to. */
.jobform .form__set { padding-top: 22px; border-top: 1px solid var(--line); }
.jobform .form__set legend { float: left; width: 100%; margin-bottom: 14px; font-weight: 700; }
.jobform .form__set legend + * { clear: both; }
.jobform .form__set:not(.jobform__consents) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.jobform .form__set:not(.jobform__consents) legend { grid-column: 1 / -1; }
.jobform__consents { gap: 14px; }
.jobform__consents .check { align-items: start; font-size: var(--fs-sm); line-height: 1.5; color: var(--fg-2); }
.jobform__consents .check input { margin-top: 1px; }
.jobform__consents .jobform__policy { margin: -6px 0 2px 34px; }
.jobform > .btn { margin-top: 10px; }
@media (max-width: 520px) { .jobform .form__set:not(.jobform__consents) { grid-template-columns: minmax(0, 1fr); } }

/* Pictures from the ad text (TalentLyft, stored in the media library by fd_tl_sync): full column width at most. */
.jobad__img { display: block; max-width: 100%; height: auto; }

/* The form follows the reader (Marko, 30. 11. 2026.). It is taller than the screen, so it is a two-way sticky column:
   reading down, it scrolls with the page until its end (the send button) is in view and stays there; scrolling up,
   it comes back down until its top is in view again. job-form.js sets --jobside-top; without JS it is a plain column. */
/* .sec clips with overflow: hidden, which turns sticky off; clip cuts the same way and keeps sticky working. */
.sec.jobapply { overflow: clip; }
@media (min-width: 961px) {
  .jobapply__side { position: sticky; top: var(--jobside-top, 92px); }
}
/* One column: a floating "Prijavi se" at the bottom of the screen while the ad is read, gone once the form is in view. */
.jobcta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out); }
.jobcta[hidden] { display: none; }
.jobcta.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 961px) { .jobcta { display: none; } }
@media (prefers-reduced-motion: reduce) { .jobcta { transition: none; } }
