/* Lawtech careers — dedicated frontend styles for the Manatal-synced vacancy pages.
   Deployed to wwwroot/css/lawtech-careers.css via the Umbraco Management API and
   referenced from the CareersListing and Vacancy templates. Namespaced under
   .lt-* so it never leaks into shared Lawtech components. Built from the site's own
   design system (Poppins/Open Sans, #2a317d/#1e2358, .container, .btn, .card, .hero). */

.lt-careers { --lt-brand: #2a317d; --lt-brand-dark: #1e2358; --lt-hover: #7a75a9; --lt-ink: #333; --lt-muted: #6c6f86; --lt-line: #e2e4ee; --lt-bg: #ededed; }

/* ---- Intro ------------------------------------------------------------- */
.lt-intro__lead { max-width: 760px; font-size: 18px; line-height: 170%; color: var(--lt-ink); margin: 0; }
.lt-intro .btn { margin-top: 28px; }

/* ---- Section heading --------------------------------------------------- */
.lt-section-head { margin-bottom: 32px; }
.lt-section-head h2 { color: var(--lt-brand-dark); margin: 0; }
.lt-section-head p { margin: 12px 0 0; color: var(--lt-muted); font-size: 17px; }

/* ---- Filter bar -------------------------------------------------------- */
.lt-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 20px; padding: 24px; background: #fff;
  border: 1px solid var(--lt-line); box-shadow: 0 4px 25px rgba(30, 35, 88, .08); margin-bottom: 28px; }
.lt-filters__field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 220px; min-width: 0; }
.lt-filters__field label { font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--lt-brand-dark); }
.lt-filters__field input, .lt-filters__field select { height: 48px; padding: 0 16px; font-size: 16px; font-family: inherit;
  color: var(--lt-ink); background: #fff; border: 1.5px solid var(--lt-line); border-radius: 0; -webkit-appearance: none; appearance: none; }
.lt-filters__field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232a317d' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
.lt-filters__field input:hover, .lt-filters__field select:hover { border-color: #c7cbe0; }
.lt-filters__actions { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; margin-left: auto; padding-bottom: 1px; }
.lt-filters__count { font-size: 15px; color: var(--lt-muted); white-space: nowrap; }
.lt-filters__count strong { color: var(--lt-brand-dark); font-size: 18px; }
.lt-filters__clear { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--lt-brand); cursor: pointer; white-space: nowrap; }
.lt-filters__clear:hover { color: var(--lt-hover); text-decoration: underline; }
.lt-filters__clear[hidden] { display: none; }

/* ---- Vacancy list ------------------------------------------------------ */
.lt-vacancy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lt-vacancy-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 104px; padding: 26px 30px; background: #fff; border: 1px solid var(--lt-line); border-left: 4px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.lt-vacancy-row:hover { border-left-color: var(--lt-brand); box-shadow: 0 6px 28px rgba(30, 35, 88, .16); transform: translateY(-1px); }
.lt-vacancy-row[hidden] { display: none; }
.lt-vacancy-row__body { min-width: 0; }
.lt-vacancy-row__title { font-family: Poppins, sans-serif; font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--lt-brand-dark); margin: 0; }
.lt-vacancy-row__link { color: inherit; text-decoration: none; }
.lt-vacancy-row__link::after { content: ""; position: absolute; inset: 0; } /* stretched, whole row is one tab stop */
.lt-vacancy-row:hover .lt-vacancy-row__title { color: var(--lt-brand); }
.lt-vacancy-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0; font-size: 15.5px; color: var(--lt-muted); }
.lt-vacancy-row__loc { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #4a4e69; }
.lt-vacancy-row__loc svg { flex: 0 0 auto; }
.lt-vacancy-row__tag { position: relative; }
.lt-vacancy-row__tag::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #b7bad0; margin-right: 15px; vertical-align: middle; }
.lt-vacancy-row__action { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--lt-brand); white-space: nowrap; }
.lt-vacancy-row__action svg { transition: transform .2s ease; }
.lt-vacancy-row:hover .lt-vacancy-row__action { color: var(--lt-hover); }
.lt-vacancy-row:hover .lt-vacancy-row__action svg { transform: translateX(4px); }

/* ---- No results -------------------------------------------------------- */
.lt-vacancy-empty { text-align: center; padding: 56px 24px; background: #fff; border: 1px dashed #c7cbe0; color: var(--lt-muted); }
.lt-vacancy-empty[hidden] { display: none; }
.lt-vacancy-empty strong { display: block; color: var(--lt-brand-dark); font-family: Poppins, sans-serif; font-size: 22px; font-weight: 600; margin-bottom: 8px; }

/* ---- Focus (keyboard) -------------------------------------------------- */
.lt-careers a:focus-visible, .lt-careers button:focus-visible, .lt-careers input:focus-visible,
.lt-careers select:focus-visible, .lt-vacancy-row:focus-within { outline: 3px solid var(--lt-brand); outline-offset: 3px; }
.lt-filters__field input:focus-visible, .lt-filters__field select:focus-visible { outline-offset: 0; border-color: var(--lt-brand); }

/* ---- Vacancy detail ---------------------------------------------------- */
.lt-detail-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin-top: 18px; }
.lt-detail-hero__meta span { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; }
.lt-detail-hero__meta .lt-div { width: 1px; height: 22px; background: rgba(255, 255, 255, .5); }
.lt-detail-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.lt-back-link { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; text-decoration: none; opacity: .9; }
.lt-back-link:hover { color: #fff; opacity: 1; text-decoration: underline; }

.lt-detail-body { padding: 80px 0; }
.lt-vacancy-body { color: #45485c; font-size: 17px; line-height: 175%; }
.lt-vacancy-body p { margin: 0 0 20px; }
.lt-vacancy-body ul, .lt-vacancy-body ol { margin: 0 0 24px; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.lt-vacancy-body ul { list-style: disc; } .lt-vacancy-body ol { list-style: decimal; }
.lt-vacancy-body li::marker { color: var(--lt-brand-dark); }
.lt-vacancy-body a { color: var(--lt-brand); text-decoration: underline; }
.lt-vacancy-body__heading { font-family: Poppins, sans-serif; font-size: 25px; font-weight: 600; line-height: 1.25;
  color: var(--lt-brand-dark); margin: 40px 0 18px; padding-top: 32px; border-top: 1px solid var(--lt-line); }
.lt-vacancy-body__heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Application panel (sticky sidebar) */
.lt-apply-panel { background: #fff; box-shadow: 0 4px 25px rgba(0, 0, 0, .12); border-top: 4px solid var(--lt-brand); padding: 32px; }
.lt-apply-panel__title { font-family: Poppins, sans-serif; font-size: 21px; font-weight: 600; color: var(--lt-brand-dark); margin: 0 0 20px; }
.lt-apply-panel dl { margin: 0 0 26px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.lt-apply-panel dt { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--lt-muted); margin-bottom: 3px; }
.lt-apply-panel dd { margin: 0; font-size: 17px; color: var(--lt-ink); font-weight: 600; }
.lt-apply-panel .btn { width: 100%; margin: 0; }
.lt-apply-panel__note { margin: 16px 0 0; font-size: 13.5px; color: var(--lt-muted); line-height: 1.5; }
@media (min-width: 992px) { .lt-apply-panel { position: sticky; top: 148px; } }
/* Below the sticky breakpoint the card stacks at the foot of the content, so its
   apply action would only repeat the hero button — hide it there (hero remains). */
@media (max-width: 991.98px) { .lt-apply-panel__apply { display: none; } }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 991.98px) {
  .lt-apply-panel { margin-top: 40px; }
}
@media (max-width: 767.98px) {
  .lt-filters { padding: 20px; gap: 14px; }
  .lt-filters__field { flex: 1 1 100%; }
  .lt-filters__actions { margin-left: 0; width: 100%; justify-content: space-between; }
  .lt-vacancy-row { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; min-height: 0; }
  .lt-vacancy-row__title { font-size: 21px; }
  .lt-vacancy-row__action { color: var(--lt-brand); }
  .lt-detail-body { padding: 48px 0; }
  .lt-vacancy-body__heading { font-size: 22px; }
}
