/* =====================================================================
   DOSIK TECHNOLOGY · PAGE CSS · CAREERS (/careers): why Dosik, the job cards, the application form (CV upload)
   ===================================================================== */

/* why Dosik: four reasons */
.cwhy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cwhy__item { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.cwhy__item h3 { font: var(--fw-semibold) 1.08rem/1.35 var(--f-display); color: var(--text); }
.cwhy__item p { font-size: var(--fz-sm); line-height: 1.6; color: var(--text-2); }

/* the job cards */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.job { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.job__head { display: flex; align-items: center; gap: 14px; }
.job__tag { font: var(--fw-medium) var(--fz-xs)/1.3 var(--f-display); color: var(--link); }
.job__title { font: var(--fw-bold) clamp(1.25rem, 1.05rem + .6vw, 1.55rem)/1.3 var(--f-display); color: var(--text); }
.job__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; padding: 0; list-style: none; }
.job__meta li { padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--fz-xs); color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); }
.job__lead { font-size: 1.04rem; line-height: 1.7; color: var(--text); font-weight: var(--fw-medium); }
.job h4 { margin-top: 8px; font: var(--fw-semibold) .98rem/1.3 var(--f-display); color: var(--text); }
.job p { line-height: 1.7; color: var(--text-2); }
.job__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.job__list li { position: relative; padding-inline-start: 22px; line-height: 1.6; color: var(--text-2); }
.job__list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal-500); transform: rotate(45deg); }
.job__list--plus li::before { background: var(--sky-400, #5cb8e6); }
.job__cta { align-self: flex-start; margin-top: 6px; }

/* the full ad, folded: "read more" opens it in place; closed, the toggle and the button sit at the foot so the three cards line up */
.job__more { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.job__toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; border-radius: var(--r-s, 6px);
  font: var(--fw-semibold) .98rem/1.3 var(--f-display); color: var(--link);
}
.job__toggle::-webkit-details-marker { display: none; }
.job__toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.job__toggle:focus-visible { outline: 2px solid var(--focus, var(--link)); outline-offset: 3px; }
.job__toggle .ico { width: 18px; height: 18px; transition: transform .25s ease; }
.job__more[open] .job__toggle .ico { transform: rotate(180deg); }
.job__toggle-close, .job__more[open] .job__toggle-open { display: none; }
.job__more[open] .job__toggle-close { display: inline; }
.job__body { display: grid; gap: 10px; padding-top: 6px; }
.job__more[open] .job__body { animation: job-open .3s ease; }
@keyframes job-open { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .job__more[open] .job__body { animation: none; } .job__toggle .ico { transition: none; } }

/* the application form */
.apply { max-width: 820px; }
#apply { scroll-margin-top: var(--hdr-h); }
.career-form .form-done { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--r-m); background: var(--accent-tint-2, #e6f6f3); color: var(--text); }
.career-form .form-done .ico { width: 22px; height: 22px; color: var(--teal-700); flex: none; }
.career-form input[type="file"] { padding: 10px 12px; height: auto; cursor: pointer; }
.career-form input[type="file"]::file-selector-button {
  margin-inline-end: 12px; padding: 8px 16px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font: var(--fw-medium) var(--fz-sm)/1.2 var(--f-display); color: var(--text-on-accent); background: var(--teal-700);
}
.field__hint { font-size: var(--fz-xs); color: var(--text-3); }

@media (max-width: 1100px) { .cwhy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .jobs { grid-template-columns: minmax(0, 1fr); max-width: 760px; } }
@media (max-width: 560px) { .cwhy { grid-template-columns: minmax(0, 1fr); } }
