/* ==========================================================================
   PRESSZARE — Careers page
   --------------------------------------------------------------------------
   Loaded only by /careers/. Everything here is scoped under `.careers` so it
   cannot reach any other page: the site design system in site.css is unchanged,
   and deleting this file plus the page removes every trace of the recruitment
   work.

   The one new thing is a yellow accent. Recruitment copy has to feel warmer
   than product copy, and navy/blue alone reads corporate. It stays an accent —
   rules, badges, the hiring flag — never a background behind body text.
   ========================================================================== */

.careers {
  /* Navy on amber is 9.7:1, so the accent can carry text where it needs to.
     The dim variant is for hairlines and tints only. */
  --amber: #ffc233;
  --amber-strong: #f0ad15;
  --amber-dim: rgba(255, 194, 51, 0.16);
  --amber-ink: #101d35;
}

/* ------------------------------------------------------------------- hero */

.careers-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background: var(--navy);
  color: #c9d4e4;
}

/* Column rules, same newspaper grid the homepage hero uses, plus one warm
   wash from the corner so the band does not read as a flat navy slab. */
.careers-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 20%
  );
}

.careers-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(255, 194, 51, 0.1), transparent 70%);
  pointer-events: none;
}

.careers-hero > .wrap {
  position: relative;
}

.careers-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 60px;
  align-items: center;
}

.careers-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}

/* "WE ARE HIRING!" — the flag above the headline. */
.hiring-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hiring-flag .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-ink);
  flex: none;
}

.careers-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.careers-roles {
  font-family: var(--font-serif);
  font-size: clamp(1.14rem, 2.1vw, 1.5rem);
  line-height: 1.38;
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 20px;
}

.careers-hero .lede {
  color: #aebdd1;
  max-width: 56ch;
}

.careers-hero .btn-row {
  margin-top: 30px;
}

/* Amber CTA: navy label on amber, which clears AA comfortably. */
.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}

.btn-amber:hover {
  background: var(--amber-strong);
  border-color: var(--amber-strong);
}

.careers-hero-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: #aebdd1;
}

.careers-hero-tagline::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--amber);
  flex: none;
}

/* The hero visual: a mocked pipeline card. Illustrative, labelled as such. */
.pipeline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r);
  padding: 22px;
  backdrop-filter: blur(2px);
}

.pipeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pipeline-head .t {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.pipeline-head .s {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa4be;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.pipeline-row:last-child {
  border-bottom: 0;
}

.pipeline-row .n {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--amber);
}

.pipeline-row .l {
  font-size: 0.9rem;
  color: #d7e0ec;
}

.pipeline-row .m {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa4be;
  white-space: nowrap;
}

/* ------------------------------------------------------------- why join */

.careers .why-card {
  position: relative;
  padding-top: 30px;
}

/* A short amber rule above each benefit card, instead of another icon tile. */
.careers .why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  width: 34px;
  height: 3px;
  background: var(--amber);
}

/* --------------------------------------------------------- position cards */

.position-card {
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.position-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* The second card takes the navy treatment so the two positions read as
   genuinely different openings rather than one card duplicated. */
.position-card.ink {
  background: var(--navy);
  border-color: var(--navy);
  color: #c9d4e4;
}

.position-card.ink h3,
.position-card.ink .pc-title {
  color: var(--white);
}

.position-card .pc-flag {
  display: inline-block;
  align-self: start;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--amber-dim);
  color: #7a5200;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.position-card.ink .pc-flag {
  background: var(--amber);
  color: var(--amber-ink);
}

.position-card .pc-title {
  font-family: var(--font-serif);
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}

.position-card .pc-cat {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-700);
  letter-spacing: 0.01em;
}

.position-card.ink .pc-cat {
  color: var(--amber);
}

.position-card p {
  color: var(--muted);
  margin: 0;
}

.position-card.ink p {
  color: #aebdd1;
}

/* --------------------------------------------------------- job description */

.jd {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

/* Left rail: the title block, sticky on desktop so the role stays visible
   while the reader is deep in a long responsibilities list. */
.jd-rail {
  position: sticky;
  top: 92px;
  border-left: 3px solid var(--amber);
  padding-left: 24px;
}

.jd-rail h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: 12px;
}

.jd-rail .cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-700);
  line-height: 1.55;
  margin-bottom: 22px;
}

.jd-block + .jd-block {
  margin-top: 36px;
}

.jd-block h3 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

/* Responsibility / qualification lists. Square amber markers rather than
   bullets — these lists are long and need a light visual rhythm. */
.jd-list {
  list-style: none;
  display: grid;
  gap: 11px;
}

.jd-list li {
  position: relative;
  padding-left: 22px;
  color: #3c4a60;
  font-size: 0.97rem;
  line-height: 1.6;
}

.jd-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber);
}

.jd-list.plain li::before {
  background: none;
  border: 1.5px solid var(--line-strong);
}

/* "Ideal candidate" — a quiet pull-out at the end of each description. */
.jd-ideal {
  margin-top: 36px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--r-sm);
  background: var(--bg);
}

.jd-ideal h3 {
  border: 0;
  padding: 0;
  margin-bottom: 8px;
}

.jd-ideal p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--navy);
  margin: 0;
}

/* --------------------------------------------------------- market + sell */

.careers .market-card .icon-tile,
.careers .sell-card .icon-tile {
  background: var(--amber-dim);
  border-color: rgba(240, 173, 21, 0.4);
  color: #7a5200;
}

.careers .sell-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.careers .sell-card h3 {
  font-size: 1rem;
}

.careers .sell-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* ------------------------------------------------------------- the form */

.apply {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.apply-shell {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.apply-head {
  padding: 32px 36px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: #c9d4e4;
}

.apply-head h2 {
  color: var(--white);
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.apply-head p {
  margin: 0;
  color: #aebdd1;
}

.apply-body {
  padding: 32px 36px 36px;
}

/* Three labelled field groups: personal, professional, resume. */
.form-section + .form-section {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.form-section > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 22px;
}

.form-section > h3 .step {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* Phone fields carry a fixed +91 prefix. The country code is not editable
   because the roles are India-based; a free-text code is one more thing to
   validate for no benefit here. */
.phone-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.phone-wrap .cc {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--bg);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.phone-wrap input {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* "Same as mobile" — a small inline toggle above the WhatsApp field. */
.same-as {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
}

.same-as input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* Resume drop zone. A styled label over a real file input, so the native
   file picker and keyboard activation both still work. */
.file-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px 22px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.file-drop:hover,
.file-drop.is-over {
  border-color: var(--blue);
  background: var(--blue-50);
}

.file-drop input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop .fd-icon {
  width: 34px;
  height: 34px;
  color: var(--blue-700);
}

.file-drop .fd-main {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.file-drop .fd-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.file-drop.has-file {
  border-style: solid;
  border-color: var(--ok-line);
  background: var(--ok-bg);
}

.file-drop.has-file .fd-icon,
.file-drop.has-file .fd-main {
  color: #14532c;
}

/* ----------------------------------------------------------- consent box */

.consent-box {
  margin-top: 34px;
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
}

.consent-box > h3 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}

.consent-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.88rem;
  line-height: 1.62;
  color: #3c4a60;
}

.consent-item + .consent-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.consent-item input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--blue);
}

.consent-item .opt {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--planned-bg);
  color: var(--planned);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* The recruitment privacy notice, inline and collapsible. */
.notice-details {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
}

.notice-details > summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--navy);
}

.notice-details > summary:hover {
  background: var(--bg);
}

.notice-details .nd-body {
  padding: 4px 18px 20px;
  font-size: 0.86rem;
  line-height: 1.68;
  color: #3c4a60;
}

.notice-details .nd-body dt {
  font-weight: 650;
  color: var(--navy);
  margin-top: 14px;
}

.notice-details .nd-body dd {
  margin: 4px 0 0;
}

/* --------------------------------------------------------- submit + state */

.apply-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.apply-actions .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner shown only while a submission is in flight. */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.is-sending .spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error summary above the submit button, listing every failed field as a
   link so a keyboard user can jump straight to it. */
.error-summary {
  display: none;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid #f3c6c2;
  border-left: 4px solid #c0392b;
  border-radius: var(--r-sm);
  background: #fdeceb;
}

.error-summary.is-shown {
  display: block;
}

.error-summary h3 {
  font-size: 0.95rem;
  color: #8e2a20;
  margin-bottom: 10px;
}

.error-summary ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.error-summary a {
  color: #8e2a20;
  font-size: 0.88rem;
  font-weight: 600;
}

/* --------------------------------------------------------- success panel */

.apply-success {
  display: none;
  padding: 48px 36px 52px;
  text-align: center;
}

.apply-success.is-shown {
  display: block;
}

.apply-success .tick-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 2px solid var(--ok-line);
  color: var(--ok);
}

.apply-success .tick-ring svg {
  width: 32px;
  height: 32px;
}

.apply-success h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.apply-success p {
  max-width: 54ch;
  margin: 0 auto 1em;
  color: #3c4a60;
}

/* The application reference, which is the one thing on this panel the
   candidate may need to write down. */
.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 8px;
  padding: 12px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
}

.ref-chip .k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ref-chip .v {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.success-tagline {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-700);
}

/* ----------------------------------------------------------- final CTA */

.careers-final {
  background: var(--navy);
  color: #c9d4e4;
  text-align: center;
  padding: 92px 0;
  position: relative;
  overflow: hidden;
}

.careers-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 20%
  );
}

.careers-final > .wrap {
  position: relative;
}

.careers-final h2 {
  color: var(--white);
  margin-bottom: 18px;
}

.careers-final .lede {
  color: #aebdd1;
  max-width: 58ch;
  margin: 0 auto 30px;
}

.careers-final .btn-row {
  justify-content: center;
}

/* A yellow underline device used on the two dark bands' headings. */
.amber-underline {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--amber);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .careers-hero-grid,
  .jd {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Sticky only makes sense beside the content, not above it. */
  .jd-rail {
    position: static;
  }
}

@media (max-width: 760px) {
  .careers-hero {
    padding: 48px 0 60px;
  }

  .apply-head,
  .apply-body,
  .apply-success {
    padding-left: 18px;
    padding-right: 18px;
  }

  .apply-body {
    padding-top: 26px;
  }

  .position-card {
    padding: 26px;
  }

  .consent-box {
    padding: 20px 18px;
  }

  .careers-final {
    padding: 64px 0;
  }

  /* The stage label would otherwise hold the pipeline card open wider than the
     screen; let each row stack instead. */
  .pipeline-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .pipeline-row .m {
    grid-column: 2;
    white-space: normal;
  }

  /* "CREATE • VERIFY • PUBLISH • EVERYWHERE" at 0.2em tracking is wider than a
     small phone. Loosen it and let it wrap onto two lines. */
  .success-tagline {
    letter-spacing: 0.12em;
    line-height: 1.8;
  }

  .jd-rail {
    padding-left: 18px;
  }

  /* Full-width tap targets on the submit row. */
  .apply-actions .btn {
    flex: 1 1 100%;
  }
}
