/* ============================================================
   Public careers portal — its OWN design surface.
   Professional, full-bleed, brand-themed (à la modern ATS).
   Brand color is injected at runtime via --portal-primary.
   ============================================================ */
html, body { margin: 0; padding: 0; }
.portal {
  --portal-primary: #ff56ae;
  --portal-primary-2: #ff7eb6;
  --portal-primary-soft: #fff0f7;
  --pc-text: #15181d;
  --pc-muted: #6b7280;
  --pc-faint: #9aa1ab;
  --pc-border: #e7e9ee;
  --pc-bg: #ffffff;
  --pc-bg-alt: #f6f7f9;
  --pc-radius: 16px;
  --pc-shadow: 0 1px 2px rgba(16,18,20,.04), 0 8px 24px rgba(16,18,20,.06);
  font-family: var(--font-family);
  color: var(--pc-text);
  background: var(--pc-bg);
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.portal * { box-sizing: border-box; }
.portal button { font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
[data-home] { cursor: pointer; }
.pf-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- hero ---------- */
.pf-hero { position: relative; width: 100%; height: 280px; background: linear-gradient(120deg, var(--portal-primary), var(--portal-primary-2)); background-size: cover; background-position: center; }
.pf-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.32)); }
.pf-hero.noimg { height: 180px; }

/* ---------- brand bar (logo card overlapping hero) ---------- */
.pf-brand { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -52px; position: relative; z-index: 2; }
.pf-logo { width: 92px; height: 92px; border-radius: 22px; background: var(--pc-bg); box-shadow: var(--pc-shadow); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 44px; line-height: 1; border: 1px solid var(--pc-border); }
.pf-logo.grad { background: linear-gradient(135deg, var(--portal-primary-2), var(--portal-primary)); color: #fff; }
.pf-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pf-company { font-size: 28px; font-weight: 760; letter-spacing: -.02em; margin-top: 16px; }
.pf-tag { font-size: 15px; color: var(--pc-muted); margin-top: 4px; }
/* compact header (inner pages) */
.pf-topbar { border-bottom: 1px solid var(--pc-border); }
.pf-topbar-in { max-width: 1180px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.pf-topbar .pf-logo { width: 40px; height: 40px; border-radius: 11px; font-size: 22px; box-shadow: none; }
.pf-topbar .pf-logo img { padding: 5px; }
.pf-topbar-name { font-size: 17px; font-weight: 720; letter-spacing: -.01em; }

/* ======================================================
   Company-profile header (LinkedIn/Contra style) + jobs grid
   ====================================================== */
.cp-header { position: relative; border-bottom: 1px solid var(--pc-border); margin-bottom: 8px; }
.cp-cover { width: 100%; height: 220px; background: linear-gradient(120deg, #14171c, #2a2f38); background-size: cover; background-position: center; }
.cp-header-in { position: relative; padding-bottom: 26px; }
.cp-logo {
  width: 128px; height: 128px; border-radius: 50%; background: var(--pc-bg);
  box-shadow: 0 4px 18px rgba(16,18,20,.14); border: 4px solid var(--pc-bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 54px; line-height: 1; margin-top: -64px; position: relative; z-index: 2;
}
.cp-logo.grad { background: linear-gradient(135deg, var(--portal-primary-2), var(--portal-primary)); color: #fff; }
/* uploaded logo shows in full (never cropped), centered on white inside the circle */
.cp-logo img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.cp-idrow { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.cp-id { min-width: 0; }
.cp-name { font-size: 30px; font-weight: 780; letter-spacing: -.02em; line-height: 1.15; }
.cp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px; }
.cp-hmeta { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--pc-muted); }
.cp-hmeta i { font-size: 16px; color: var(--pc-faint); }
.cp-hlink { text-decoration: none; }
.cp-hlink:hover { color: var(--portal-primary); }
.cp-hlink:hover i { color: var(--portal-primary); }
.cp-about { max-width: 780px; margin: 16px 0 0; font-size: 15.5px; line-height: 1.65; color: #3b424c; white-space: pre-line; }
.cp-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; flex-shrink: 0;
  border-radius: 999px; background: #14171c; color: #fff; font-size: 15px; font-weight: 640;
  transition: transform .12s, background .12s;
}
.cp-cta:hover { transform: translateY(-1px); background: #000; }
.cp-cta i { transition: transform .14s; }
.cp-cta:hover i { transform: translateX(3px); }

/* jobs section */
.cp-jobs-sec { padding-top: 30px; scroll-margin-top: 12px; }
.cp-jobs-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.cp-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.cp-search { position: relative; flex: 1; min-width: 240px; }
.cp-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--pc-faint); font-size: 18px; }
.cp-search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--pc-border); border-radius: 12px; font-size: 15px; outline: none; background: var(--pc-bg); transition: border-color .15s, box-shadow .15s; }
.cp-search input:focus { border-color: var(--portal-primary); box-shadow: 0 0 0 3px var(--portal-primary-soft); }
.cp-select-wrap { position: relative; }
.cp-select-wrap > i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--pc-faint); font-size: 14px; }
.cp-select { height: 48px; min-width: 210px; padding: 0 38px 0 16px; border: 1px solid var(--pc-border); border-radius: 12px; font-size: 15px; background: var(--pc-bg); color: var(--pc-text); outline: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cp-select:focus { border-color: var(--portal-primary); box-shadow: 0 0 0 3px var(--portal-primary-soft); }

.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; }
.cp-card {
  display: flex; flex-direction: column; text-align: left; padding: 20px; border: 1px solid var(--pc-border);
  border-radius: 16px; background: var(--pc-bg); box-shadow: 0 1px 2px rgba(16,18,20,.03);
  transition: transform .14s, box-shadow .14s, border-color .14s; min-height: 168px;
}
.cp-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 14px 32px rgba(16,18,20,.12); }
.cp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cp-card-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--pc-bg-alt); border: 1px solid var(--pc-border); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 22px; flex-shrink: 0; }
.cp-card-logo.grad { background: linear-gradient(135deg, var(--portal-primary-2), var(--portal-primary)); color: #fff; }
.cp-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cp-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 640; white-space: nowrap; }
.cp-card-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.cp-card-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; }
.cp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--pc-bg-alt); color: var(--pc-muted); font-size: 12.5px; font-weight: 500; }
.cp-chip i { font-size: 13px; color: var(--pc-faint); }
.cp-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; color: var(--portal-primary); font-size: 13.5px; font-weight: 640; }
.cp-card-cta i { transition: transform .14s; }
.cp-card:hover .cp-card-cta i { transform: translateX(3px); }
.cp-empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--pc-muted); font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cp-empty i { font-size: 30px; color: var(--pc-faint); }
.pf-detail-dept { margin: 4px 0 12px; }

@media (max-width: 640px) {
  .cp-cover { height: 150px; }
  .cp-logo { width: 96px; height: 96px; margin-top: -52px; font-size: 42px; }
  .cp-logo img { padding: 12px; }
  .cp-cta { width: 100%; justify-content: center; }
  .cp-name { font-size: 25px; }
  .cp-grid { grid-template-columns: 1fr; }
  .cp-select, .cp-search { width: 100%; }
  .cp-select-wrap { flex: 1; }
}

/* ---------- generic section ---------- */
.pf-section { padding: 40px 0; }
.pf-section.alt { background: var(--pc-bg-alt); }
.pf-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--portal-primary); margin-bottom: 10px; }
.pf-h2 { font-size: 24px; font-weight: 740; letter-spacing: -.02em; }
.pf-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pf-count { font-size: 14px; color: var(--pc-muted); font-weight: 500; }

/* ---------- intro ---------- */
.pf-intro { max-width: 920px; margin: 0 auto; text-align: center; padding: 48px 16px 8px; }
.pf-intro .pf-lead { font-size: 16px; line-height: 1.7; color: #3b424c; white-space: pre-line; }

/* ---------- jobs ---------- */
.pf-search { position: relative; margin-bottom: 14px; }
.pf-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--pc-faint); font-size: 18px; }
.pf-search input { width: 100%; height: 50px; padding: 0 16px 0 44px; border: 1px solid var(--pc-border); border-radius: 12px; font-size: 15px; outline: none; background: var(--pc-bg); transition: border-color .15s, box-shadow .15s; }
.pf-search input:focus { border-color: var(--portal-primary); box-shadow: 0 0 0 3px var(--portal-primary-soft); }
.pf-jobs { display: flex; flex-direction: column; gap: 12px; }
.pf-job { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 20px 22px; border: 1px solid var(--pc-border); border-radius: 14px; background: var(--pc-bg); box-shadow: 0 1px 2px rgba(16,18,20,.03); transition: transform .14s, box-shadow .14s, border-color .14s; }
.pf-job:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 10px 28px rgba(16,18,20,.10); }
.pf-job-main { flex: 1; min-width: 0; }
.pf-job-title { font-size: 16.5px; font-weight: 680; letter-spacing: -.01em; }
.pf-job-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 9px; }
.pf-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--pc-muted); background: var(--pc-bg-alt); padding: 4px 10px; border-radius: 999px; }
.pf-chip i { color: var(--pc-faint); }
.pf-job-go { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pc-faint); background: transparent; font-size: 17px; transition: transform .14s, color .14s, background .14s; }
.pf-job:hover .pf-job-go { color: var(--portal-primary); background: var(--portal-primary-soft); transform: translateX(3px); }
.pf-empty { padding: 40px 20px; text-align: center; color: var(--pc-muted); border: 1px dashed var(--pc-border); border-radius: 14px; }

/* ---------- testimonials ---------- */
/* testimonials — centered heading + auto-scrolling marquee with faded edges */
.pf-tm-sec .pf-sec-head { justify-content: center; text-align: center; }
.pf-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.pf-marquee-rows { display: flex; flex-direction: column; gap: 20px; }
.pf-marquee-track { display: flex; gap: 20px; width: max-content; padding: 8px 20px; animation: pf-marquee linear infinite; will-change: transform; }
.pf-marquee-track.rev { animation-direction: reverse; } /* second row scrolls the opposite way */
.pf-marquee-track.paused { animation-play-state: paused; } /* toggled by clicking a card */
@keyframes pf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.pf-tm-card {
  width: 320px; max-width: 82vw; flex-shrink: 0; display: flex; flex-direction: column; cursor: pointer;
  background: var(--pc-bg); border: 1px solid var(--pc-border); border-radius: 18px;
  padding: 20px 20px 17px; box-shadow: 0 1px 2px rgba(16,18,20,.04), 0 10px 26px rgba(16,18,20,.05); margin: 0;
}
.pf-tm-mark { font-size: 26px; color: var(--portal-primary); line-height: 1; margin-bottom: 9px; }
.pf-tm-text { font-size: 13.5px; line-height: 1.5; color: #2b323b; margin: 0; flex: 1; font-weight: 500; }
.pf-tm-foot { display: flex; align-items: center; gap: 11px; margin-top: 15px; }
.pf-tm-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--portal-primary-2), var(--portal-primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; overflow: hidden; }
.pf-tm-av.has-photo { background: var(--pc-bg-alt); }
.pf-tm-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-tm-who { display: flex; flex-direction: column; min-width: 0; }
.pf-tm-name { font-weight: 700; font-size: 13.5px; }
.pf-tm-role { font-size: 12px; color: var(--pc-muted); margin-top: 1px; }
@media (prefers-reduced-motion: reduce) {
  .pf-marquee { overflow-x: auto; }
  .pf-marquee-track { animation: none; }
}

/* ---------- video ---------- */
.pf-yt { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: var(--pc-radius); overflow: hidden; box-shadow: var(--pc-shadow); }
.pf-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.pf-foot { margin-top: auto; border-top: 1px solid var(--pc-border); padding: 26px 16px; text-align: center; font-size: 13px; color: var(--pc-faint); line-height: 1.5; }

/* ---------- detail ---------- */
.pf-back { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; color: var(--pc-muted); font-size: 14px; font-weight: 600; padding: 8px 0; margin: 24px 0 4px; }
.pf-back:hover { color: var(--pc-text); }
.pf-detail { max-width: 760px; margin: 0 auto; padding-bottom: 120px; }
.pf-detail-title { font-size: 32px; font-weight: 760; letter-spacing: -.025em; line-height: 1.12; margin-top: 6px; }
.pf-detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.pf-detail-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; background: var(--pc-bg-alt); border: 1px solid var(--pc-border); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #4b5563; }
.pf-detail-chip i { color: var(--portal-primary); }
.pf-desc { font-size: 16px; line-height: 1.7; color: #3b424c; white-space: pre-line; }
.pf-desc-h { font-weight: 720; color: var(--pc-text); font-size: 17px; }
.pf-h3 { font-size: 17px; font-weight: 720; margin: 28px 0 12px; }
.pf-reqs { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.pf-reqs li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: #3b424c; line-height: 1.5; }
.pf-reqs li i { color: var(--portal-primary); margin-top: 3px; flex-shrink: 0; }
.pf-lgpd { margin-top: 28px; font-size: 13px; color: var(--pc-faint); line-height: 1.6; }

/* sticky apply bar */
.pf-sticky { position: sticky; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.86); backdrop-filter: blur(8px); border-top: 1px solid var(--pc-border); padding: 14px 16px; z-index: 5; }
.pf-sticky-in { max-width: 760px; margin: 0 auto; }

/* buttons */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 12px; background-color: var(--portal-primary); background-image: linear-gradient(135deg, var(--portal-primary-2), var(--portal-primary)); color: #fff; font-size: 16px; font-weight: 680; box-shadow: 0 6px 18px rgba(0,0,0,.16); transition: filter .12s, transform .12s; }
.pf-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.pf-btn.ghost { background: var(--pc-bg); background-image: none; color: var(--pc-text); border: 1px solid var(--pc-border); box-shadow: none; width: auto; padding: 0 22px; }
.pf-btn.ghost:hover { background: var(--pc-bg-alt); }

/* ---------- apply form ---------- */
.pf-form { max-width: 620px; margin: 0 auto; padding-bottom: 60px; display: flex; flex-direction: column; gap: 18px; }
.pf-field { display: flex; flex-direction: column; gap: 7px; }
.pf-req { color: #dc2626; font-weight: 700; margin-left: 2px; }
.pf-field > span { font-size: 14px; font-weight: 650; color: #2b313a; }
.pf-field input, .pf-cv-text { width: 100%; padding: 13px 15px; border: 1px solid var(--pc-border); border-radius: 11px; outline: none; font-size: 15px; background: var(--pc-bg); font-family: inherit; }
.pf-field input:focus, .pf-cv-text:focus { border-color: var(--portal-primary); box-shadow: 0 0 0 3px var(--portal-primary-soft); }
.pf-cv-toggle { display: flex; gap: 8px; }
.pf-cvt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 11px; background: var(--pc-bg); border: 1px solid var(--pc-border); font-size: 14px; font-weight: 600; color: var(--pc-muted); }
.pf-cvt.on { border-color: var(--portal-primary); color: var(--portal-primary); background: var(--portal-primary-soft); }
.pf-cv-drop { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px; border: 1.5px dashed var(--pc-border); border-radius: 12px; color: var(--pc-muted); font-size: 14px; cursor: pointer; }
.pf-cv-drop:hover { border-color: var(--portal-primary); }
.pf-cv-text { margin-top: 10px; resize: vertical; }
.pf-qs { display: flex; flex-direction: column; gap: 12px; }
.pf-q { background: var(--pc-bg); border: 1px solid var(--pc-border); border-radius: 12px; padding: 14px 16px; }
.pf-q-label { font-size: 15px; margin-bottom: 10px; font-weight: 500; }
.pf-q-opts { display: flex; gap: 20px; }
.pf-q-opts label { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: #3b424c; cursor: pointer; }
.pf-q-opts input { accent-color: var(--portal-primary); }
.pf-consent { font-size: 13px; color: var(--pc-muted); line-height: 1.5; }
.pf-err { display: block; font-size: 12.5px; font-weight: 500; color: #e5484d; min-height: 1px; }
.pf-err:not(:empty) { margin-top: 2px; }
.pf-field input.invalid { border-color: #e5484d; }
.pf-field input.invalid:focus { box-shadow: 0 0 0 3px rgba(229,72,77,.14); }

/* ---------- confirmation ---------- */
.pf-done { max-width: 520px; margin: 0 auto; text-align: center; padding: 70px 24px; }
.pf-check { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--portal-primary-2), var(--portal-primary)); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.16); color: #fff; font-size: 34px; }
.pf-done h2 { font-size: 24px; font-weight: 740; letter-spacing: -.02em; }
.pf-done p { font-size: 16px; color: var(--pc-muted); line-height: 1.6; margin: 10px auto 22px; max-width: 380px; }

.pf-state { max-width: 600px; margin: 0 auto; padding: 80px 24px; text-align: center; color: var(--pc-muted); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .pf-hero { height: 200px; }
  .pf-company { font-size: 24px; }
  .pf-h2 { font-size: 21px; }
  .pf-detail-title { font-size: 26px; }
  .pf-section { padding: 32px 0; }
  .pf-job { padding: 16px; }
}
