/* =============================================================
   UNIFY NOW (rec2rec): brand layer on top of /shared/system.css
   Default brand tokens apply. This file holds the logo lockup and
   the few components the system does not have yet:
   .page (sub-page opening), .list (bullet list), .doc-body (legal
   pages), .facts (deflist with the key facts next to a title),
   .row-pay / .row-link (vacancy rows), .form-status.
   Nothing here changes a size, colour or spacing token.
   ============================================================= */

/* ---------- Logo: the group lockup from /shared/logo/inline.json (colours in system.css) ---------- */
.logo { display: inline-flex; align-items: center; color: inherit; }
.logo-svg { height: 1.9rem; width: auto; }
.foot-brand .logo-svg { height: 2.25rem; }
@media (max-width: 720px) { .nav-logo .logo-svg { height: 1.6rem; } }

/* The site logo is the Unify Now logo already; the group link lives in the menu foot and the footer line */
.nav > .nav-group { display: none; }

/* ---------- Sub-page opening ---------- */
.page { padding-top: calc(var(--nav-h) + var(--s7)); padding-bottom: var(--block); }
.page .h1 { max-width: 12em; }
.page .split-body .lede { max-width: 26em; }

/* ---------- Key facts next to a title (vacancy, contact) ---------- */
.facts > div { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.facts dd a { white-space: nowrap; }

/* ---------- Vacancies: locations in the left column, the roles in the right one ---------- */
.vac { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s5); align-items: start; margin-top: var(--s6); }
.vac-loc, .rows--vac { grid-column: 1 / -1; }
.vac--full { margin-top: 0; }
.vac--full .vac-loc, .vac--full .rows--vac { grid-column: 1 / -1; }
.vac-loc { display: flex; gap: var(--s4); align-items: baseline; }
.vac-loc .label { flex: none; }
.vac-loc-list { font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--muted); }
.rows--vac .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) 0; }
.rows--vac .row-title { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); line-height: 1.15; letter-spacing: -.018em; }
.rows--vac .row-go { flex: none; display: inline-flex; }
.rows--vac .row-go .arr { width: 1.05rem; height: 1.05rem; }
@media (max-width: 900px) { .vac-loc, .rows--vac { grid-column: 1 / -1; } .vac-loc { display: block; } .vac-loc .label { margin-bottom: var(--s2); } }
.row-link { transition: color .25s ease; }
.row-link:hover, .row-link:focus-visible { color: var(--accent); }
.row-pay { font-family: var(--sans); font-weight: 600; font-size: var(--fs-body); line-height: 1.4; }
.row-meta { color: var(--ink); }
.job-sec { margin-top: var(--block); }
.job-h { padding-top: .25em; }

/* ---------- Bullet list ---------- */
.list { max-width: var(--measure); }
.list li { position: relative; padding-left: 1.35em; }
.list li + li { margin-top: .45em; }
.list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: var(--ink); }
.band-ink .list li::before { background: var(--on-ink); }
p + .list, .list + p { margin-top: 1em; }

/* ---------- Forms ---------- */
.form .actions { align-items: center; }
.form .actions .small { max-width: 24em; color: var(--muted); }
.form-status { border-left: 2px solid var(--accent); padding-left: var(--s4); }
select.input { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315191B' stroke-width='1.5'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") right center/1rem no-repeat; padding-right: 1.75rem; cursor: pointer; }

/* ---------- Legal pages ---------- */
.doc-body { border-top: 1px solid var(--line); }
.doc-body section { padding: var(--s5) 0 calc(var(--s5) + .2rem); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--gap); row-gap: var(--s3); }
.doc-body p, .doc-body .list { max-width: var(--measure); }
.doc-body .sub { font-family: var(--sans); font-weight: 600; }
.doc-body p + .sub { margin-top: 1.2em; }
@media (max-width: 720px) { .doc-body section { grid-template-columns: 1fr; } }

/* ---------- Services on the Your talent page ---------- */
.svc { padding-top: var(--block); border-top: 1px solid var(--line); }
.svc + .svc { margin-top: var(--block); }
.svc .h2 { margin-top: var(--s4); }

/* Dark opening band on sub-pages */
.band-ink .facts > div { border-bottom-color: var(--line); }
.band-ink .facts dd a { color: var(--on-ink); }
.band-ink .svc { border-top-color: var(--line); }

/* ---------- Brand tile (system component, DESIGN_SYSTEM.md section 11): the Unify Now tile mark,
   paper at 5% with the glyph cut out in the band colour ---------- */
.band-ink .brand-tile .un-tile { fill: rgb(241 243 238 / .05); }
.band-ink .brand-tile .un-glyph { fill: var(--band); }

/* ---------- Copper as a constant mark: the hairline that opens every section ---------- */
.sec-head .rule { background: var(--accent); }

/* ---------- Vacancy rows: salary straight under the cities on small screens ---------- */
.rows--vac .row-pay { margin-top: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Home hero from tablet up: text on the band at the left, the film in full at the right ---------- */
@media (min-width: 721px) and (max-width: 999px) {
  /* Tablets: the whole frame across the top, so all three people are in view, then the text */
  .hero--side.hero--media { min-height: 0; }
  .hero--side.hero--media .media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .hero--side.hero--media .veil { background: linear-gradient(to bottom, rgb(var(--veil) / 0) 0%, rgb(var(--veil) / 0) 72%, rgb(var(--veil) / .7) 92%, rgb(var(--veil)) 99%); }
}
@media (min-width: 1000px) {
  /* Desktop: the film fills the whole first screen; the text sits on it at the bottom, on a fade to the band colour */
  .hero--side.hero--media { min-height: 100vh; min-height: 100svh; justify-content: flex-end; }
  .hero--side.hero--media .media { position: absolute; inset: var(--nav-h) 0 0 0; margin: 0; height: auto; min-height: 0; flex: none; z-index: -1; }
  .hero--side.hero--media .media img, .hero--side.hero--media .media video { object-position: 50% 0%; }
  .hero--side.hero--media .veil { inset: 0; background: linear-gradient(to bottom, rgb(var(--veil) / 0) 0%, rgb(var(--veil) / 0) 52%, rgb(var(--veil) / .5) 67%, rgb(var(--veil) / .84) 80%, rgb(var(--veil) / .95) 91%, rgb(var(--veil)) 100%); }
  /* One text group: label directly above the headline at the left, lede and buttons at the right, all on one baseline */
  .hero--side.hero--media .hero-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s4); align-items: end; padding-top: 0; padding-bottom: var(--s6); }
  .hero--side.hero--media .hero-top { grid-column: 1 / 8; grid-row: 1; display: block; }
  .hero--side.hero--media .hero-grid { display: contents; }
  .hero--side.hero--media .hero-h { grid-column: 1 / 8; grid-row: 2; }
  .hero--side.hero--media .hero-side { grid-column: 8 / -1; grid-row: 1 / span 2; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  /* Low screens: a smaller headline so it stays under the hands and cups */
  .hero--side.hero--media .h1 { font-size: clamp(2rem, 1rem + 2.1vw, 2.9rem); }
  .hero--side.hero--media .hero-wrap { padding-bottom: var(--s5); row-gap: var(--s3); }
  .hero--side.hero--media .hero-side .lede { font-size: 1.05rem; }
  .hero--side.hero--media .hero-side .actions { margin-top: var(--s4); }
  .hero--side.hero--media .veil { background: linear-gradient(to bottom, rgb(var(--veil) / 0) 0%, rgb(var(--veil) / 0) 60%, rgb(var(--veil) / .6) 74%, rgb(var(--veil) / .9) 87%, rgb(var(--veil)) 100%); }
}
.hero--side .hero-side .lede { text-wrap: balance; }
