/* =============================================
   CAREERS — careers.html
   Same design language as the case studies pages; builds on style.css tokens.
   ============================================= */

:root {
  --cr-ink: #07162e;
  --cr-hl: #6cc2ff;
  --cr-line: #e6e8ee;
  --cr-soft: #f4f7fb;
  --cr-radius: 18px;
  --cr-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.cr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ─── Atoms ─── */
.cr-play {
  display: inline-block; width: 0; height: 0; margin-right: 0.5rem; vertical-align: 0.05em;
  border-style: solid; border-width: 0.36em 0 0.36em 0.58em; border-color: transparent transparent transparent currentColor;
}
.cr-kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 1rem; }
.cr-h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); max-width: 22ch; }
.cr-textlink { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; color: var(--accent-blue); text-decoration: none; }
.cr-textlink svg, .cr-band-link svg, .cr-hero-actions .btn svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--cr-ease);
}
.cr-textlink:hover svg, .cr-band-link:hover svg { transform: translateX(4px); }
.cr-linkbtn { font: inherit; font-weight: 600; color: var(--accent-blue); background: none; border: 0; padding: 0; cursor: pointer; }
.cr-linkbtn:hover { text-decoration: underline; }

/* ─── Hero ─── */
.cr-hero { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.cr-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.cr-hero-title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 14ch; margin-bottom: 1.4rem; }
.cr-hero-title span { color: var(--accent-blue); }
.cr-hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--text-secondary); max-width: 620px; margin-bottom: 2rem; }
.cr-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; }
.cr-hero-actions .btn:hover svg { transform: translateY(3px); }

.cr-hiring {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.2rem 0.9rem;
  padding: 1.4rem 1.6rem; min-width: 250px; border-radius: var(--cr-radius); text-decoration: none; color: var(--text-primary);
  background: #fff; border: 1px solid var(--cr-line); box-shadow: 0 20px 50px rgba(7, 22, 46, 0.07);
  transition: transform 0.4s var(--cr-ease), box-shadow 0.4s ease; animation: cr-rise 0.6s var(--cr-ease) both;
}
.cr-hiring[hidden] { display: none; }
.cr-hiring:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(7, 22, 46, 0.12); }
.cr-hiring-dot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); animation: cr-pulse 2s infinite; }
.cr-hiring-text { font-size: 1.05rem; font-weight: 600; }
.cr-hiring-text strong { font-size: 1.9rem; letter-spacing: -0.03em; color: var(--accent-blue); margin-right: 0.15rem; }
.cr-hiring-sub { font-size: 0.82rem; color: var(--text-muted); }
@keyframes cr-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); } 70% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
@keyframes cr-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ─── Open roles ─── */
.cr-roles { padding: clamp(3rem, 6vw, 5rem) 0; scroll-margin-top: var(--navbar-h); }
.cr-roles-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.cr-roles-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; margin: 0; }
.cr-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
  padding: 0.75rem; border-radius: var(--cr-radius); background: #fff; border: 1px solid var(--cr-line); box-shadow: 0 10px 30px rgba(7, 22, 46, 0.04);
}
.cr-tools[hidden] { display: none; }
.cr-search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.cr-search svg { position: absolute; left: 0.95rem; width: 17px; height: 17px; fill: none; stroke: var(--text-muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.cr-search input {
  width: 100%; height: 44px; font: inherit; font-size: 0.92rem; padding: 0 1rem 0 2.6rem; border-radius: 100px;
  border: 1px solid var(--accent-silver); background: #fff; color: var(--text-primary); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cr-search input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12); }
.cr-search input::-webkit-search-cancel-button { cursor: pointer; }
.cr-selects { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cr-select {
  position: relative; display: inline-flex; align-items: center; height: 44px; border-radius: 100px;
  border: 1px solid var(--accent-silver); background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; cursor: pointer;
}
.cr-select:hover { border-color: var(--accent-blue); }
.cr-select:focus-within { border-color: var(--accent-blue); box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12); }
.cr-select.is-set { background: var(--accent-blue-soft); border-color: var(--accent-blue); }
.cr-select-label { padding-left: 1rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; pointer-events: none; }
.cr-select select {
  appearance: none; -webkit-appearance: none; height: 100%; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 15px;
  border: 0; padding: 0 2.4rem 0 0.5rem; cursor: pointer; max-width: 15rem; text-overflow: ellipsis;
}
.cr-select select:focus { outline: none; }
.cr-select.is-set select { color: var(--accent-blue); }

.cr-resultbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 1.5rem; margin: 0 0.25rem 1rem; }
.cr-resultbar[hidden] { display: none; }
.cr-count { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.cr-resultbar .cr-linkbtn { font-size: 0.88rem; }

.cr-list { display: grid; gap: 1rem; }
.cr-job[hidden] { display: none; }
.cr-job-meta .cr-new {
  padding: 0.15rem 0.6rem; border-radius: 100px; background: var(--accent-blue); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.cr-nomatch { margin: 1.25rem 0 0; color: var(--text-secondary); }

/* Skeleton */
.cr-skel { display: grid; gap: 0.75rem; padding: 1.75rem; border-radius: var(--cr-radius); background: #fff; border: 1px solid var(--cr-line); }
.cr-skel span { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eef1f6 0%, #f7f9fc 50%, #eef1f6 100%); background-size: 200% 100%; animation: cr-shimmer 1.4s infinite linear; }
.cr-skel span:nth-child(1) { width: 38%; height: 20px; }
.cr-skel span:nth-child(2) { width: 24%; }
.cr-skel span:nth-child(3) { width: 72%; }
@keyframes cr-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Job card */
.cr-job {
  border-radius: var(--cr-radius); background: #fff; border: 1px solid var(--cr-line);
  scroll-margin-top: calc(var(--navbar-h) + 1rem); animation: cr-rise 0.5s var(--cr-ease) both;
  transition: border-color 0.25s ease, box-shadow 0.35s ease;
}
.cr-job:nth-child(2) { animation-delay: 0.06s; }
.cr-job:nth-child(3) { animation-delay: 0.12s; }
.cr-job:nth-child(n + 4) { animation-delay: 0.18s; }
.cr-job:hover { border-color: rgba(0, 102, 204, 0.35); box-shadow: 0 18px 45px rgba(7, 22, 46, 0.07); }
.cr-job.is-open { border-color: rgba(0, 102, 204, 0.45); box-shadow: 0 24px 60px rgba(7, 22, 46, 0.09); }
.cr-job[hidden] { display: none; }

.cr-job-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: clamp(1.25rem, 2.6vw, 1.75rem) clamp(1.25rem, 3vw, 2rem); }
.cr-job-title { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 0.6rem; }
.cr-job-titlebtn { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; letter-spacing: inherit; }
.cr-job-titlebtn:hover { color: var(--accent-blue); }
.cr-job-meta { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.cr-job-meta li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--text-secondary); }
.cr-job-meta svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cr-job-excerpt { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); max-width: 78ch; }
.cr-job.is-open .cr-job-excerpt { display: none; }

.cr-job-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
.cr-apply svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cr-job-actions .btn { justify-content: center; padding: 0.75rem 1.5rem; }
.cr-job-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; font: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--text-secondary); background: none; border: 0; padding: 0.45rem 0.75rem; border-radius: 100px; cursor: pointer; transition: color 0.2s ease, background 0.2s ease;
}
.cr-job-toggle:hover { color: var(--accent-blue); background: var(--accent-blue-soft); }
.cr-job-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--cr-ease); }
.cr-job.is-open .cr-job-toggle svg { transform: rotate(180deg); }

/* Expandable details (grid-rows trick animates to auto height) */
.cr-job-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--cr-ease); }
.cr-job.is-open .cr-job-details { grid-template-rows: 1fr; }
.cr-job-details-inner { overflow: hidden; min-height: 0; }
.cr-job-desc { display: grid; gap: 1.5rem; padding: 0.25rem clamp(1.25rem, 3vw, 2rem) 0; border-top: 1px solid transparent; }
.cr-job.is-open .cr-job-desc { border-top-color: var(--cr-line); padding-top: 1.5rem; }
.cr-sec h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 0.75rem; }
.cr-sec p { margin: 0; line-height: 1.75; color: var(--text-secondary); }
.cr-sec > p + p, .cr-sec > p + ul, .cr-sec > ul + p { margin-top: 0.75rem; }
.cr-sub { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin: 1.25rem 0 0.6rem; }
.cr-sec h4 + .cr-sub { margin-top: 0.25rem; }
.cr-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; columns: 1; }
.cr-bullets li { position: relative; padding-left: 1.2rem; line-height: 1.65; color: var(--text-secondary); font-size: 0.97rem; }
.cr-bullets li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-blue); }
.cr-job-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 1.5rem clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 2.6vw, 1.75rem); }
.cr-copy {
  display: inline-flex; align-items: center; gap: 0.45rem; font: inherit; font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
  background: none; border: 1px solid var(--cr-line); border-radius: 100px; padding: 0.6rem 1rem; cursor: pointer; transition: all 0.2s ease;
}
.cr-copy:hover { color: var(--accent-blue); border-color: var(--accent-blue); }
.cr-copy.is-done { color: #0a7a3f; border-color: #b7e3c8; background: #f0faf4; }
.cr-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Empty / error states */
.cr-state { text-align: center; padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; border-radius: var(--cr-radius); background: #fff; border: 1px dashed var(--accent-silver); }
.cr-state[hidden] { display: none; }
.cr-state h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.cr-state p { color: var(--text-secondary); max-width: 56ch; margin: 0 auto 1.5rem; line-height: 1.7; }

/* Fallback: Zoho's own widget, restyled to the theme (only shown if our parser can't read it) */
.cr-zoho[hidden] { display: none; }
.cr-zoho.is-raw { padding: 1.5rem; border-radius: var(--cr-radius); background: #fff; border: 1px solid var(--cr-line); }
.cr-zoho.is-raw .rec-what-where, .cr-zoho.is-raw .rec_filter_cls { display: none; }
.cr-zoho.is-raw ul { list-style: none; padding: 0; margin: 0; }
.cr-zoho.is-raw .rec-job-info { padding: 1.1rem 0; border-bottom: 1px solid var(--cr-line); }
.cr-zoho.is-raw .rec-job-info:last-child { border-bottom: 0; }
.cr-zoho.is-raw .rec-job-title a { font-size: 1.15rem; font-weight: 600; color: var(--accent-blue) !important; text-decoration: none; }
.cr-zoho.is-raw .zrsite_Location, .cr-zoho.is-raw .zrsite_Job_Type { font-size: 0.9rem; color: var(--text-secondary); margin-right: 1rem; }
.cr-zoho.is-raw .zrsite_Job_Description { font-size: 0.93rem; color: var(--text-muted); line-height: 1.6; margin-top: 0.4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-zoho.is-raw .zrsite_Date_Opened > .zrsite_Date_Opened { display: none; }

/* ─── How we work ─── */
.cr-values { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cr-values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.cr-value { padding: 1.75rem; border-radius: var(--cr-radius); background: var(--cr-soft); border: 1px solid var(--cr-line); transition: transform 0.35s var(--cr-ease); }
.cr-value:hover { transform: translateY(-4px); }
.cr-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--cr-line); font-size: 0.85rem; font-weight: 700; color: var(--accent-blue); margin-bottom: 1.25rem; }
.cr-value h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: 0.5rem; }
.cr-value p { font-size: 0.95rem; line-height: 1.65; color: var(--text-secondary); margin: 0; }

/* ─── What you'll work on ─── */
.cr-work { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cr-work-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.cr-work-card {
  display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--cr-radius); background: #fff; border: 1px solid var(--cr-line);
  text-decoration: none; color: var(--text-primary); transition: transform 0.35s var(--cr-ease), box-shadow 0.35s ease, border-color 0.25s ease;
}
.cr-work-card:hover { transform: translateY(-4px); border-color: rgba(0, 102, 204, 0.35); box-shadow: 0 20px 45px rgba(7, 22, 46, 0.08); }
.cr-work-card img, .cr-work-icon { width: 44px; height: 44px; object-fit: contain; margin-bottom: 1.1rem; }
.cr-work-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #eef5ff; }
.cr-work-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cr-work-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cr-work-card p { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); margin: 0 0 1.1rem; }
.cr-work-card .cr-textlink { margin-top: auto; font-size: 0.88rem; }
.cr-work-card:hover .cr-textlink svg { transform: translateX(4px); }

/* ─── Hiring process ─── */
.cr-process { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cr-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.cr-steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--accent-blue), #cfe3fb); z-index: 0; }
.cr-steps li { position: relative; z-index: 1; }
.cr-step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent-blue); color: var(--accent-blue); font-weight: 700; margin-bottom: 1.1rem;
}
.cr-steps li:last-child .cr-step-n { background: var(--accent-blue); color: #fff; }
.cr-steps h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.cr-steps p { font-size: 0.94rem; line-height: 1.65; color: var(--text-secondary); margin: 0; max-width: 32ch; }

/* ─── CTA band ─── */
.cr-band { position: relative; overflow: hidden; color: #fff; padding: clamp(2.25rem, 4vw, 3.25rem) 0; background: var(--accent-blue); }
/* style.css pads the last section before the footer (!important); keep the band evenly spaced */
.cr-band.cr-band { padding-bottom: clamp(2.25rem, 4vw, 3.25rem) !important; }
.cr-band::before, .cr-band::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); pointer-events: none; }
.cr-band::before { width: 620px; height: 620px; right: -160px; top: -260px; }
.cr-band::after { width: 380px; height: 380px; right: 60px; bottom: -260px; border-color: rgba(255, 255, 255, 0.12); }
.cr-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cr-band h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.03em; color: #fff; max-width: 24ch; margin: 0; }
.cr-band h2 span { color: #bfe2ff; }
.cr-band-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cr-btn-light { background: #fff; color: #0c2a55; border-color: #fff; }
.cr-btn-light:hover { background: #e9f3ff; color: var(--accent-blue); }
.cr-band-link { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none; }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .cr-work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .cr-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .cr-steps::before { display: none; }
}
@media (max-width: 860px) {
  .cr-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .cr-hiring { justify-self: start; }
  .cr-job-main { grid-template-columns: 1fr; }
  .cr-job-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .cr-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cr-values-grid, .cr-work-grid, .cr-steps { grid-template-columns: 1fr; }
  .cr-job-actions .btn { flex: 1 1 auto; }
  .cr-job-foot .btn { width: 100%; justify-content: center; }
  .cr-tools { padding: 0.6rem; }
  .cr-search { flex-basis: 100%; }
  .cr-selects { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .cr-select { min-width: 0; width: 100%; }
  .cr-select:last-child { grid-column: 1 / -1; }
  .cr-select select { flex: 1; max-width: none; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-hiring, .cr-job, .cr-skel span, .cr-hiring-dot { animation: none !important; }
  .cr-job-details, .cr-job-toggle svg, .cr-value, .cr-work-card, .cr-hiring { transition: none !important; }
  .cr-value:hover, .cr-work-card:hover, .cr-hiring:hover { transform: none; }
}
