/* ================================================================
   recruitment.css — the look of the Recruitment & Appointments pages.
   Sits on top of main.css + app-menu.css (HR pages) and stands alone
   on the public pages (apply.html, apply-questionnaire.html).
   Everything uses the system's variables, so dark mode just works.
   ================================================================ */

:root {
  --rc-red:   #c1272e;
  --rc-red-d: #a52218;
  --rc-ink:   #141414;
  --rc-gold:  #c1272e;
}

/* ---------- stage / score ---------- */
.rc-score { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; font-weight: 800; font-size: .8rem; border: 3px solid var(--color-border); flex: none; }
.rc-score.success { border-color: #059669; color: #059669; }
.rc-score.warning { border-color: #d97706; color: #d97706; }
.rc-score.danger  { border-color: #dc2626; color: #dc2626; }
.rc-score.gray    { color: var(--color-text-muted); }

/* ---------- KPI strip ---------- */
.rc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.rc-kpi { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-lg);
  padding: .85rem 1rem; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: box-shadow .15s, transform .15s; }
.rc-kpi:hover, .rc-kpi:focus-visible { box-shadow: var(--shadow-md); transform: translateY(-2px); outline: none; }
.rc-kpi.active { border-color: var(--rc-red); box-shadow: 0 0 0 2px rgba(203,45,33,.18); }
.rc-kpi .l { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }
.rc-kpi .v { font-size: 1.7rem; font-weight: 800; line-height: 1.15; }
.rc-kpi .s { font-size: .74rem; color: var(--color-text-muted); }

/* ---------- pipeline (funnel) ---------- */
.rc-funnel { display: flex; gap: 2px; margin-bottom: 1.25rem; overflow-x: auto; }
.rc-funnel button { flex: 1 1 0; min-width: 96px; border: none; cursor: pointer; padding: .7rem .5rem .6rem;
  background: var(--color-surface); border: 1px solid var(--color-border); font: inherit; color: inherit; text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.rc-funnel button:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.rc-funnel button:hover { background: var(--color-bg); }
.rc-funnel button.active { background: var(--rc-ink); color: #fff; }
.rc-funnel .n { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.rc-funnel .t { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }

/* ---------- applicant rows / cards ---------- */
.rc-list { display: grid; }
.rc-row { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) minmax(0, 1.6fr) 90px 120px 110px;
  gap: .9rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--color-border); cursor: pointer; }
.rc-row:hover, .rc-row:focus-visible { background: var(--color-bg); outline: none; }
.rc-row.head { cursor: default; background: var(--color-bg); font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--color-text-muted); padding-top: .55rem; padding-bottom: .55rem; }
.rc-row.head:hover { background: var(--color-bg); }
.rc-row.head .sortable { cursor: pointer; user-select: none; }
.rc-row.head .sortable:hover { color: var(--color-text); }
.rc-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-sub  { font-size: .76rem; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex: none; }
.rc-chips { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.rc-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .68rem; font-weight: 700; padding: .12rem .45rem;
  border-radius: 999px; background: var(--color-gray-100); color: var(--color-gray-600); }
.rc-chip.ok { background: var(--color-success-light); color: var(--color-success); }
.rc-chip.warn { background: var(--color-warning-light); color: var(--color-warning); }
.rc-chip.bad { background: var(--color-danger-light); color: var(--color-danger); }
.rc-chip.off { opacity: .55; }
@media (max-width: 900px) {
  .rc-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .rc-row > :nth-child(3), .rc-row > :nth-child(4), .rc-row > :nth-child(6) { display: none; }
  .rc-row.head { display: none; }
}

/* ---------- bulk bar ---------- */
.rc-bulk { display: flex; gap: .6rem; align-items: center; padding: .6rem 1rem; background: var(--rc-ink); color: #fff;
  border-radius: var(--r-md); margin-bottom: .75rem; flex-wrap: wrap; }
.rc-bulk[hidden] { display: none; }

/* ---------- file (drawer-style modal) ---------- */
.rc-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-border); margin: 0 -1.5rem 1.25rem; padding: 0 1.5rem; overflow-x: auto; }
.rc-tab { border: none; background: none; cursor: pointer; padding: .65rem 1rem; font-size: .84rem; font-weight: 600;
  color: var(--color-text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.rc-tab:hover { color: var(--color-text); }
.rc-tab.active { color: var(--rc-red); border-bottom-color: var(--rc-red); }
.rc-tab .n { background: var(--color-gray-200); color: var(--color-gray-700); border-radius: 999px; font-size: .66rem; padding: 0 .4rem; margin-left: .3rem; }
.rc-pane[hidden] { display: none; }

.rc-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.rc-head .rc-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
.rc-head h3 { margin: 0; font-size: 1.15rem; }
.rc-head p { margin: .1rem 0 0; font-size: .82rem; color: var(--color-text-muted); }
.rc-head .grow { flex: 1; min-width: 200px; }

.rc-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .85rem 1.25rem; margin-bottom: 1rem; }
.rc-kv .k { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }
.rc-kv .v { font-size: .9rem; word-break: break-word; }
.rc-kv .span { grid-column: 1 / -1; }

.rc-section { margin: 1.25rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--color-border);
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.rc-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.rc-next { display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; border-radius: var(--r-md); margin-bottom: 1rem;
  background: var(--color-primary-lighter); border: 1px solid var(--color-primary-light); flex-wrap: wrap; }
.rc-next .grow { flex: 1; min-width: 180px; font-size: .86rem; }

.rc-doc { display: flex; align-items: center; gap: .75rem; padding: .55rem .25rem; border-bottom: 1px solid var(--color-border); }
.rc-doc:last-child { border-bottom: none; }
.rc-doc .grow { flex: 1; min-width: 0; }
.rc-doc .nm { font-weight: 600; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-doc .mt { font-size: .72rem; color: var(--color-text-muted); }

.rc-timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--color-border); }
.rc-timeline li { position: relative; padding: 0 0 .9rem 1rem; font-size: .84rem; }
.rc-timeline li::before { content: ''; position: absolute; left: -1.38rem; top: .3rem; width: 10px; height: 10px; border-radius: 50%;
  background: var(--rc-red); border: 2px solid var(--color-surface); }
.rc-timeline .when { font-size: .72rem; color: var(--color-text-muted); }

.rc-qa { margin-bottom: .8rem; }
.rc-qa .q { font-size: .8rem; color: var(--color-text-muted); }
.rc-qa .a { font-size: .92rem; font-weight: 600; }
.rc-qa .a .flag { color: var(--color-danger); font-size: .74rem; font-weight: 700; margin-left: .35rem; }

.rc-vet { display: grid; grid-template-columns: minmax(0, 1fr) 150px 130px; gap: .6rem; align-items: center;
  padding: .45rem 0; border-bottom: 1px solid var(--color-border); font-size: .86rem; }
.rc-vet:last-child { border-bottom: none; }
@media (max-width: 560px) { .rc-vet { grid-template-columns: 1fr 1fr; } .rc-vet > :first-child { grid-column: 1 / -1; } }

.rc-iv { border: 1px solid var(--color-border); border-radius: var(--r-md); padding: .85rem 1rem; margin-bottom: .75rem; }
.rc-iv-head { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.rc-iv-head .grow { flex: 1; min-width: 160px; }

.rc-flag-box { background: var(--color-warning-light); border: 1px solid #f5d38a; color: #7a4a05; border-radius: var(--r-md);
  padding: .6rem .85rem; font-size: .82rem; margin-bottom: .85rem; }
.rc-flag-box ul { margin: .25rem 0 0 1.1rem; list-style: disc; }

/* ---------- rating buttons (1-5) ---------- */
.rc-rate { display: flex; gap: .35rem; flex-wrap: wrap; }
.rc-rate label { position: relative; cursor: pointer; }
.rc-rate input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rc-rate span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: .4rem .5rem;
  border: 1.5px solid var(--color-border); border-radius: var(--r-md); background: var(--color-surface); font-size: .68rem; line-height: 1.15; }
.rc-rate span b { font-size: 1.05rem; }
.rc-rate input:checked + span { background: var(--rc-ink); border-color: var(--rc-ink); color: #fff; }
.rc-rate input:focus-visible + span { outline: 2px solid var(--rc-red); outline-offset: 2px; }
.rc-comp { padding: .85rem 0; border-bottom: 1px solid var(--color-border); }
.rc-comp:last-child { border-bottom: none; }
.rc-comp .t { font-weight: 700; font-size: .9rem; }
.rc-comp .h { font-size: .76rem; color: var(--color-text-muted); margin-bottom: .45rem; }
.rc-comp .w { font-size: .68rem; color: var(--color-text-muted); font-weight: 600; }

.rc-livescore { position: sticky; bottom: 0; background: var(--color-surface); border-top: 1px solid var(--color-border);
  padding: .7rem 1rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; z-index: 5; }
.rc-livescore .big { font-size: 1.6rem; font-weight: 800; }

/* ---------- signature ---------- */
.rc-sig { border: 1.5px dashed var(--color-gray-400); border-radius: var(--r-md); background: #fff; position: relative; }
.rc-sig canvas { width: 100%; height: 130px; display: block; border-radius: var(--r-md); }
.rc-sig .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9ca3af;
  font-size: .85rem; pointer-events: none; }
.rc-sig.filled .ph { display: none; }

/* ================================================================
   PUBLIC PAGES  (apply.html / apply-questionnaire.html)
   ================================================================ */
body.rc-public { background: var(--color-bg); min-height: 100vh; }
.rc-hero { background: var(--rc-ink); color: #fff; position: relative; overflow: hidden; }
.rc-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, #c1272e 0 25%, #262626 25% 50%, #6B7280 50% 75%, #B38327 75% 100%); }
.rc-hero-in { max-width: 1040px; margin: 0 auto; padding: 1.75rem 1.25rem 2.25rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.rc-hero img { height: 84px; width: auto; border-radius: 4px; }
.rc-hero h1 { color: #fff; margin: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.rc-hero p { color: #fff; margin: .4rem 0 0; opacity: .82; font-size: .98rem; max-width: 640px; }
.rc-hero .grow { flex: 1; min-width: 240px; }

.rc-wrap { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.rc-narrow { max-width: 780px; }

.rc-search { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.rc-search input, .rc-search select { flex: 1; min-width: 180px; }
.rc-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1rem; }
.rc-job { background: var(--color-surface); border: 1px solid var(--color-border); border-top: 4px solid #c1272e;
  border-radius: var(--r-lg); padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; transition: box-shadow .15s, transform .15s; }
.rc-job:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rc-job h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.rc-job .meta { display: flex; gap: .35rem; flex-wrap: wrap; }
.rc-job .desc { font-size: .84rem; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-job .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .55rem;
  border-top: 1px solid var(--color-border); font-size: .76rem; color: var(--color-text-muted); }
.rc-closing { font-weight: 700; }
.rc-closing.soon { color: var(--color-danger); }

.rc-detail h2 { font-size: 1.5rem; margin: 0 0 .25rem; }
.rc-detail .block { margin: 1.1rem 0; }
.rc-detail .block h4 { margin: 0 0 .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.rc-detail .block p { white-space: pre-wrap; margin: 0; font-size: .94rem; }

/* stepper */
.rc-steps { display: flex; gap: .25rem; margin-bottom: 1.25rem; counter-reset: s; }
.rc-steps li { flex: 1; text-align: center; font-size: .7rem; font-weight: 700; color: var(--color-text-muted); position: relative; padding-top: 1.85rem; list-style: none; }
.rc-steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--color-gray-200); color: var(--color-gray-600);
  display: flex; align-items: center; justify-content: center; font-size: .74rem; }
.rc-steps li::after { content: ''; position: absolute; top: .77rem; left: calc(50% + .9rem); right: calc(-50% + .9rem); height: 2px; background: var(--color-gray-200); }
.rc-steps li:last-child::after { display: none; }
.rc-steps li.done::before { background: #059669; color: #fff; content: '✓'; }
.rc-steps li.done::after { background: #059669; }
.rc-steps li.now { color: var(--color-text); }
.rc-steps li.now::before { background: var(--rc-red); color: #fff; }
@media (max-width: 640px) { .rc-steps li { font-size: 0; } .rc-steps li::before { font-size: .74rem; } }

.rc-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.rc-card h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.rc-card .lead { color: var(--color-text-secondary); font-size: .9rem; margin-bottom: 1.25rem; }
.rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.rc-grid .full { grid-column: 1 / -1; }
.rc-grid .third { grid-column: span 1; }
@media (max-width: 640px) { .rc-grid { grid-template-columns: 1fr; } }
.rc-req { color: var(--rc-red); }
.rc-help { font-size: .76rem; color: var(--color-text-muted); margin-top: .2rem; }
.rc-err { font-size: .78rem; color: var(--color-danger); margin-top: .2rem; }
.rc-sub-h { margin: 1.4rem 0 .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }

.rc-repeat { border: 1px solid var(--color-border); border-radius: var(--r-md); padding: .9rem; margin-bottom: .75rem; background: var(--color-bg); }
.rc-repeat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-weight: 700; font-size: .84rem; }

.rc-choices { display: grid; gap: .45rem; }
.rc-choice { display: flex; gap: .65rem; align-items: flex-start; padding: .65rem .8rem; border: 1.5px solid var(--color-border);
  border-radius: var(--r-md); cursor: pointer; background: var(--color-surface); font-size: .9rem; }
.rc-choice:hover { border-color: var(--color-gray-400); }
.rc-choice input { margin-top: .2rem; accent-color: var(--rc-red); }
.rc-choice:has(input:checked) { border-color: var(--rc-red); background: rgba(203,45,33,.06); }
.rc-q { margin-bottom: 1.5rem; }
.rc-q > .t { font-weight: 700; margin-bottom: .5rem; }

.rc-drop { border: 2px dashed var(--color-gray-300); border-radius: var(--r-lg); padding: 1rem; background: var(--color-bg); }
.rc-drop .row { display: flex; gap: .75rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--color-border); flex-wrap: wrap; }
.rc-drop .row:last-child { border-bottom: none; }
.rc-drop .lbl { flex: 1; min-width: 180px; font-size: .88rem; font-weight: 600; }
.rc-drop .lbl small { display: block; font-weight: 400; color: var(--color-text-muted); }
.rc-drop .files { font-size: .78rem; color: var(--color-text-secondary); }
.rc-drop .files .f { display: inline-flex; gap: .3rem; align-items: center; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: .12rem .5rem; margin: .15rem .25rem 0 0; }
.rc-drop .files .f button { border: none; background: none; cursor: pointer; color: var(--color-danger); font-size: .9rem; line-height: 1; }

.rc-popia { max-height: 260px; overflow-y: auto; border: 1px solid var(--color-border); border-radius: var(--r-md); padding: 1rem;
  background: var(--color-bg); font-size: .84rem; }
.rc-popia h4 { margin: .8rem 0 .15rem; font-size: .82rem; }
.rc-popia h4:first-child { margin-top: 0; }
.rc-popia p { margin: 0; color: var(--color-text-secondary); }

.rc-check { display: flex; gap: .6rem; align-items: flex-start; margin: .7rem 0; font-size: .88rem; cursor: pointer; }
.rc-check input { margin-top: .25rem; accent-color: var(--rc-red); width: 1.05rem; height: 1.05rem; flex: none; }

.rc-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn-rc { background: var(--rc-red); border-color: var(--rc-red); color: #fff; }
.btn-rc:hover:not(:disabled) { background: var(--rc-red-d); border-color: var(--rc-red-d); color: #fff; }

.rc-done { text-align: center; padding: 2rem 1rem; }
.rc-done .tick { width: 72px; height: 72px; border-radius: 50%; background: #d1fae5; color: #059669; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.rc-ref { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 1.2rem; letter-spacing: .06em;
  background: var(--color-bg); border: 1px dashed var(--color-gray-400); border-radius: var(--r-md); padding: .4rem .9rem; margin: .5rem 0 1rem; }

.rc-foot { text-align: center; font-size: .76rem; color: var(--color-text-muted); padding: 1.5rem 1rem; }
.rc-foot a { color: inherit; }

/* honeypot — never shown to people */
.rc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- interview form page ---------- */
.rc-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .85rem 1rem; }
.rc-checks { display: grid; gap: .1rem; }

/* ---------- print ---------- */
@media print {
  .sidebar, .topbar, .sidebar-overlay, .no-print, .rc-livescore, .mobile-menu-btn { display: none !important; }
  .main-content { margin: 0 !important; }
  body { background: #fff !important; }
}

/* ================================================================
   JOB ADVERTISEMENT  (advert.js) — the company's advert layout
   ================================================================ */
.ad-doc { max-width: 820px; margin: 0 auto; background: #fff; color: #1f2933; font-size: .94rem; line-height: 1.6; }
.ad-letterhead { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; padding-bottom: .7rem; border-bottom: 1px solid #e3e3e3; }
.ad-letterhead img { height: 64px; width: auto; max-width: 120px; object-fit: contain; background: #fff; }
.ad-letterhead b { display: block; font-size: 1rem; color: #111; }
.ad-letterhead small { display: block; color: #6b7280; font-size: .78rem; margin-top: .15rem; }
.ad-banner { border: 1px solid #e3e3e3; border-top: 5px solid var(--rc-red); background: linear-gradient(#fff, #fafafa);
  text-align: center; padding: 1.1rem 1rem .9rem; margin-bottom: 1.25rem; border-radius: 2px; }
.ad-banner span { display: block; color: var(--rc-red); font-size: 1.75rem; font-weight: 800; letter-spacing: .06em; line-height: 1.1; }
.ad-banner small { display: inline-block; margin-top: .45rem; padding: .12rem .8rem; border: 1px solid #cfcfcf; border-radius: 999px;
  color: #555; font-weight: 700; letter-spacing: .14em; font-size: .68rem; background: #fff; }
.ad-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 .3rem; padding-bottom: .55rem; border-bottom: 2px solid var(--rc-red); color: #111; line-height: 1.3; }
.ad-title span { font-weight: 600; color: #444; }
.ad-salary { display: inline-block; margin: .65rem 0 .25rem; padding: .3rem .75rem; background: #f6f3ee; border-left: 3px solid var(--rc-gold); font-size: .88rem; }
.ad-meta { font-size: .76rem; color: #7b8794; margin: .2rem 0 .4rem; letter-spacing: .01em; }

.ad-sec { margin-top: 1.5rem; break-inside: avoid-page; }
.ad-sec h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .65rem; color: #111; font-size: .8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em; }
.ad-sec h3::before { content: ''; width: 4px; height: 1.05em; background: var(--rc-red); border-radius: 2px; flex: none; }
.ad-sec h3::after { content: ''; flex: 1; height: 1px; background: #e3e3e3; }
.ad-sec p { margin: 0 0 .45rem; color: #323f4b; }

.ad-grp { margin: 0 0 1rem; padding: .1rem 0 .1rem .9rem; border-left: 2px solid #ececec; }
.ad-grp:last-child { margin-bottom: .2rem; }
.ad-sec h4 { margin: 0 0 .4rem; font-size: .9rem; font-weight: 700; color: var(--rc-red); letter-spacing: .01em; }

.ad-sec ul { list-style: none; margin: 0; padding: 0; }
.ad-sec li { position: relative; padding: .22rem 0 .22rem 1.35rem; color: #323f4b; break-inside: avoid; }
.ad-sec li::before { content: ''; position: absolute; left: .15rem; top: .82em; width: 6px; height: 6px; background: var(--rc-red);
  transform: rotate(45deg); border-radius: 1px; }
.ad-sec li b { color: #111; font-weight: 700; }
.ad-sec ul.ad-cols { columns: 2; column-gap: 2rem; }
@media (max-width: 560px) { .ad-sec ul.ad-cols { columns: 1; } .ad-banner span { font-size: 1.35rem; } }

.ad-notes { margin-top: 1.75rem; padding: .85rem 1rem; background: #f7f7f7; border-radius: 4px; border-left: 3px solid #cfcfcf;
  font-size: .78rem; color: #52606d; line-height: 1.5; }
.ad-notes p { margin: 0 0 .3rem; }
.ad-notes p:last-child { margin: 0; }
.ad-enq { margin-top: .9rem; font-size: .86rem; }
.ad-close { margin-top: 1.1rem; padding-top: .8rem; border-top: 2px solid var(--rc-red); font-size: .95rem; color: #111; }
.ad-apply { margin-top: 1.1rem; }

/* editor */
.ad-ed-sec { border: 1px solid var(--color-border); border-radius: var(--r-md); padding: .75rem; margin-bottom: .75rem; background: var(--color-surface); }
.ad-ed-head { display: flex; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.ad-ed-head .form-control { flex: 1; }
.ad-ed-group { border-left: 3px solid var(--rc-red); padding-left: .6rem; margin: .5rem 0; }
.ad-ed-actions { margin-bottom: .5rem; }

/* print only the advert */
@media print {
  body.ad-printing > *:not(#ad-print-root) { display: none !important; }
  body.ad-printing #ad-print-root { display: block !important; }
  #ad-print-root .ad-doc { max-width: none; font-size: 10.5pt; }
  #ad-print-root .ad-banner span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #ad-print-root .ad-sec li::before, #ad-print-root .ad-sec h3::before, #ad-print-root .ad-banner, #ad-print-root .ad-salary { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
#ad-print-root { display: none; }

/* ---------- application form: photo, camera, upload polish ---------- */
.rc-photo { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; padding: 1rem; margin-bottom: 1rem;
  border: 1.5px solid var(--color-border); border-radius: var(--r-lg); background: var(--color-surface); }
.rc-photo .pic { width: 96px; height: 128px; flex: none; border-radius: 14px; background: var(--color-bg); border: 2px dashed var(--color-gray-300);
  display: grid; place-items: center; overflow: hidden; color: var(--color-text-muted); font-size: .7rem; text-align: center; padding: .4rem; }
.rc-photo .pic.has { border: 2px solid #059669; padding: 0; }
.rc-photo .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-photo .body { flex: 1; min-width: 200px; }
.rc-photo h3 { margin: 0 0 .2rem; font-size: 1rem; }
.rc-photo p { margin: 0 0 .65rem; font-size: .82rem; color: var(--color-text-secondary); }
.rc-photo .acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.rc-drop .row.over { background: rgba(203,45,33,.06); outline: 2px dashed var(--rc-red); outline-offset: -2px; border-radius: 8px; }
.rc-drop .acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.rc-drop .files .f.sm { padding-left: .25rem; }
.rc-drop .files img.th { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; }
.rc-review { border: 1px solid var(--color-border); border-radius: var(--r-md); background: var(--color-bg); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .84rem; }
.rc-review dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; margin: 0; }
.rc-review dt { color: var(--color-text-muted); }
.rc-review dd { margin: 0; overflow-wrap: anywhere; }
.rc-review .edit { float: right; font-size: .75rem; }
.rc-prog { height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; width: min(320px, 80vw); margin: .8rem auto 0; }
.rc-prog > i { display: block; height: 100%; width: 0; background: var(--rc-gold); transition: width .25s; }

/* camera modal */
body.cap-open { overflow: hidden; }
.cap { position: fixed; inset: 0; z-index: 10000; background: #0b0b0b; color: #fff; display: flex; flex-direction: column; }
.cap-top { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; padding-top: max(.75rem, env(safe-area-inset-top)); }
.cap-title { flex: 1; font-weight: 800; }
.cap-x { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.cap-count { font-size: .78rem; font-weight: 700; background: var(--rc-red); padding: .2rem .6rem; border-radius: 99px; }
.cap-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.cap-stage video, .cap-stage .cap-still { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cap-stage video.mirror { transform: scaleX(-1); }
.cap-guide { position: absolute; pointer-events: none; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.cap-guide.oval { width: min(62vw, 300px); aspect-ratio: 3/4; border-radius: 50%; }
.cap-guide.rect { width: min(86vw, 640px); height: min(60vh, 460px); border-radius: 14px; }
.cap-count-down { position: absolute; font-size: 6rem; font-weight: 800; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.cap-msg { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: rgba(203,45,33,.92); padding: .8rem 1rem; border-radius: 12px; font-size: .88rem; }
.cap-tip { padding: .6rem 1.25rem; font-size: .8rem; text-align: center; color: rgba(255,255,255,.78); }
.cap-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
.cap-bar[hidden] { display: none; }
.cap-spacer { width: 96px; }
.cap-btn { border: 0; border-radius: 99px; padding: .75rem 1.25rem; font: inherit; font-weight: 700; cursor: pointer; min-width: 96px; }
.cap-btn.ghost { background: rgba(255,255,255,.14); color: #fff; }
.cap-btn.solid { background: var(--rc-red); color: #fff; }
.cap-shutter { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.2); cursor: pointer; }
.cap-shutter:active { background: #fff; }
.cap-shutter:disabled { opacity: .4; }
