/* SYNC Careers — client-facing light theme.
   Palette: white base · ink #1A1A1A · red #FF4121 (act) · green #01F081 (done)
   · orange #FF9700 (in-progress / highlights) · lime #AFF152 (sparingly). */

:root {
  --ink: #1A1A1A;
  --muted: #6E6E6E;
  --line: #E4E4E4;
  --surface: #F6F6F4;
  --red: #FF4121;
  --red-dark: #E0391D;
  --green: #01F081;
  --green-ink: #013D22;
  --orange: #FF9700;
  --lime: #AFF152;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Beatrice', 'Noto Sans Arabic', -apple-system, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 28px 18px 70px; }
.wrap-wide { max-width: 720px; margin: 0 auto; padding: 28px 18px 70px; }

/* ── header ── */
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.brand img { width: 40px; height: 40px; }
.brand span { font-weight: 800; font-size: 14px; letter-spacing: .04em; }

h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 17px; font-weight: 800; margin: 26px 0 10px; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.small { font-size: 12px; color: var(--muted); }
.tiny { font-size: 11px; color: var(--muted); }

/* ── step tracker (signature) ── */
.steps { display: flex; gap: 4px; margin: 18px 0 26px; }
.steps .st {
  flex: 1; padding: 7px 4px 6px; text-align: center; font-size: 11px; font-weight: 800;
  background: var(--surface); color: var(--muted); border-top: 3px solid var(--line);
}
.steps .st.done { background: var(--green); color: var(--green-ink); border-top-color: var(--green-ink); }
.steps .st.now { background: var(--ink); color: #fff; border-top-color: var(--orange); }

/* ── cards & blocks ── */
.card { border: 1px solid var(--line); background: #fff; padding: 18px; margin-bottom: 14px; }
.card-ink { border: 2px solid var(--ink); }
.card-soft { background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.notice-green { background: #E9FCF3; border: 1px solid var(--green); padding: 14px 16px; margin-bottom: 14px; }
.notice-orange { background: #FFF4E0; border: 1px solid var(--orange); padding: 14px 16px; margin-bottom: 14px; }
.notice-red { background: #FFF0ED; border: 1px solid var(--red); padding: 14px 16px; margin-bottom: 14px; }

/* ── product picker ── */
.pick { display: block; cursor: pointer; margin-bottom: 12px; }
.pick input { position: absolute; opacity: 0; }
.pick .box { border: 2px solid var(--line); padding: 16px; transition: border-color .15s, background .15s; }
.pick input:checked + .box { border-color: var(--red); background: #FFF8F6; }
.pick input:focus-visible + .box { outline: 3px solid var(--orange); outline-offset: 2px; }
.pick .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pick .name { font-weight: 800; font-size: 15px; }
.pick .price { font-weight: 800; color: var(--red); font-size: 16px; white-space: nowrap; }
.pick ul { margin: 8px 0 0; padding: 0 18px 0 0; color: var(--muted); font-size: 12.5px; }
[dir="ltr"] .pick ul { padding: 0 0 0 18px; }
.pick li { margin: 3px 0; }

/* ── proof strip ── */
.proof { display: flex; gap: 6px; margin: 18px 0 24px; }
.proof div { flex: 1; text-align: center; background: var(--surface); padding: 12px 4px 10px; border-bottom: 3px solid var(--green); }
.proof b { display: block; font-size: 20px; color: var(--ink); }
.proof span { font-size: 10.5px; color: var(--muted); }

/* ── forms ── */
label.f { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 5px; }
label.f .req { color: var(--red); }
label.f .opt { color: var(--muted); font-weight: 400; font-size: 11px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input:not([type]), textarea, select {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 14px;
  border: 1px solid #C9C9C9; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); border-width: 2px; padding: 10px 11px; }
textarea { resize: vertical; }
input[type="file"] { width: 100%; font-size: 12px; color: var(--muted); padding: 8px 0; }
input[type="file"]::file-selector-button {
  font: inherit; font-size: 12px; font-weight: 700; border: 2px solid var(--ink);
  background: #fff; color: var(--ink); padding: 7px 14px; margin-inline-end: 10px; cursor: pointer;
}
.hint { font-size: 11px; color: var(--muted); margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 460px) { .grid2 { grid-template-columns: 1fr; } }

/* ── buttons ── */
.btn { display: block; width: 100%; padding: 14px; font: inherit; font-size: 15px; font-weight: 800;
       border: none; cursor: pointer; text-align: center; text-decoration: none; transition: background .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover { background: #00d873; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn[disabled] { opacity: .75; cursor: wait; }
.btn-inline { display: inline-block; width: auto; padding: 10px 22px; font-size: 13px; }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ── working / wait state ── */
.working { display: none; align-items: center; gap: 10px; margin-top: 12px;
           background: #FFF4E0; border: 1px solid var(--orange); padding: 12px 14px; font-size: 13px; }
.working.on { display: flex; }
.spinner { width: 16px; height: 16px; border: 3px solid var(--orange); border-top-color: transparent;
           border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ── error state (never looks broken) ── */
.oops { display: none; margin-top: 12px; background: #FFF0ED; border: 2px solid var(--red); padding: 14px 16px; }
.oops.on { display: block; }
.oops b { display: block; font-size: 14px; margin-bottom: 3px; }
.oops p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }

/* ── chips / badges ── */
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 9px; background: var(--surface); color: var(--ink); margin: 2px; }
.chip-green { background: var(--green); color: var(--green-ink); }
.chip-orange { background: #FFF4E0; color: #8A5200; border: 1px solid var(--orange); }
.chip-red { background: #FFF0ED; color: var(--red-dark); }
.chip-lime { background: var(--lime); color: var(--ink); }

/* ── job cards ── */
.job { display: block; border: 1px solid var(--line); padding: 16px; margin-bottom: 10px;
       text-decoration: none; color: var(--ink); transition: border-color .15s; }
.job:hover { border-color: var(--red); }
.job .t { font-weight: 800; font-size: 16px; }
.job .c { color: var(--muted); font-size: 13px; margin: 1px 0 8px; }

/* ── payment rows ── */
.payrow { display: flex; justify-content: space-between; align-items: center; gap: 10px;
          padding: 12px 0; border-bottom: 1px solid var(--line); }
.payrow:last-child { border-bottom: none; }
.payrow .k { font-size: 11px; color: var(--muted); }
.payrow .v { font-weight: 800; font-size: 14px; direction: ltr; }

.copybtn { font: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--line);
           background: var(--surface); padding: 7px 14px; cursor: pointer; }
.copybtn:hover { background: var(--line); }

.divider { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
.foot { text-align: center; font-size: 11px; color: #B5B5B5; margin-top: 44px; }
.foot a { color: var(--muted); }
a.plain { color: var(--red-dark); font-weight: 700; text-decoration: none; }
a.plain:hover { text-decoration: underline; }

.done-panel { background: var(--green); color: var(--green-ink); padding: 26px 20px; text-align: center; }
.done-panel b { display: block; font-size: 20px; margin-bottom: 4px; }
.done-panel p { margin: 0; font-size: 13px; }

.arrow-r::after { content: " ⟵"; }
[dir="ltr"] .arrow-r::after { content: " ⟶"; }

/* ── centered prominent brand header (public forms) ── */
.brand-center { text-align: center; margin-bottom: 18px; }
.brand-center img { width: 64px; height: 64px; }
.brand-center .bc-name { display: block; font-weight: 800; font-size: 13px; letter-spacing: .14em; margin-top: 6px; }
.title-center { text-align: center; }
.title-center h1 { font-size: 28px; }
.title-center .sub { margin-bottom: 14px; }

/* ── company logo tile (placeholder = first letter) ── */
.logo-tile { width: 52px; height: 52px; flex-shrink: 0; border: 2px solid var(--ink);
             display: flex; align-items: center; justify-content: center;
             font-weight: 800; font-size: 22px; background: var(--surface); overflow: hidden; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-tile.lg { width: 76px; height: 76px; font-size: 30px; }

/* ── featured job cards ── */
.job-featured { border: 2px solid var(--ink); position: relative; }
.job-featured:hover { border-color: var(--red); }
.job .head { display: flex; gap: 12px; align-items: center; }
.feat-flag { position: absolute; top: -1px; inset-inline-start: -1px;
             background: var(--orange); color: #fff; font-size: 10px; font-weight: 800;
             padding: 3px 10px; letter-spacing: .06em; }
.sec-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted);
             text-transform: uppercase; margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-label::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ── job page poster ── */
.job-poster { width: 100%; border: 1px solid var(--line); margin: 14px 0; display: block; }

/* ── employer: featured timer + expandable applicant cards ── */
.timer-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
              padding: 6px 12px; background: #FFF4E0; border: 1px solid var(--orange); color: #8A5200; }
.timer-chip.off { background: var(--surface); border-color: var(--line); color: var(--muted); }
.app-card summary { list-style: none; cursor: pointer; }
.app-card summary::-webkit-details-marker { display: none; }
.app-card .expand-hint { font-size: 11px; color: var(--muted); }
.app-card[open] .expand-hint { display: none; }
.app-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
             gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.app-facts .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.app-facts .v { font-size: 13px; font-weight: 700; }
.glossary { font-size: 11px; color: var(--muted); background: var(--surface);
            border: 1px solid var(--line); padding: 8px 12px; margin: 10px 0 18px; }

/* ── design gallery (employer review) ── */
.design-gallery { position: relative; margin-top: 10px; }
.design-gallery img { width: 100%; max-width: 420px; border: 1px solid var(--line); display: block; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
               background: rgba(26,26,26,.75); color: #fff; border: none; font-size: 18px; cursor: pointer;
               display: flex; align-items: center; justify-content: center; }
.gallery-nav:hover { background: var(--ink); }
.gallery-nav.prev { left: 4px; }
.gallery-nav.next { right: 4px; }
.gallery-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); cursor: pointer; }
.gallery-dots span.active { background: var(--ink); }
.gallery-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs img { width: 56px; height: 56px; object-fit: cover; border: 2px solid var(--line); cursor: pointer; }
.gallery-thumbs img.active { border-color: var(--ink); }
.comment-history { margin-top: 10px; }
.comment-bubble { background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; margin-bottom: 6px; font-size: 12px; }
.comment-bubble .cb-time { font-size: 10px; color: var(--muted); }
