/* =====================================================================
   Careers page (page-careers.php). Uses the palette tokens from palette.css.
   ===================================================================== */
.cr-page{--cr-wrap:var(--wrap,min(1400px,calc(100% - 120px)));--cr-gut:max(60px,calc((100vw - 1400px) / 2));}
@media(max-width:1024px){.cr-page{--cr-gut:24px;}}
@media(max-width:768px){.cr-page{--cr-gut:16px;}}
.cr-wrap{width:var(--cr-wrap);margin:0 auto;}
.cr-label{font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--teal);margin-bottom:12px;}
.cr-head{text-align:center;max-width:720px;margin:0 auto 40px;}
.cr-head h2{font-size:var(--fs-h2,clamp(28px,3.1vw,42px));font-weight:800;letter-spacing:-.02em;line-height:1.15;color:var(--t1);margin:0 0 12px;}
.cr-head p{font-size:16px;line-height:1.7;color:var(--t2);margin:0;}
.cr-sec{padding:clamp(56px,6.5vw,88px) 0;background:var(--bg);}
.cr-alt{background:var(--bg2);}

/* Hero */
.cr-hero{position:relative;overflow:hidden;background:linear-gradient(100deg,var(--bg2) 0%,var(--bg2) 46%,var(--bg4) 100%);}
.cr-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:40px;min-height:clamp(380px,46vw,500px);}
.cr-hero-copy{padding:48px 0;}
.cr-hero h1{font-size:var(--fs-h1,clamp(32px,3.4vw,46px));font-weight:800;letter-spacing:-.02em;line-height:1.12;color:var(--t1);margin:0 0 18px;}
.cr-hero h1 .t{color:var(--teal);}.cr-hero h1 .r{color:var(--red);}
.cr-hero p{font-size:17px;line-height:1.7;color:var(--t2);max-width:520px;margin:0 0 28px;}
.cr-actions{display:flex;flex-wrap:wrap;gap:14px;}
.cr-life-btn{gap:10px;}
.cr-life-btn .play{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--teal-btn);color:#fff;}
.cr-life-btn .play svg{width:14px;height:14px;}
.cr-hero-media{position:relative;align-self:stretch;margin-right:calc(-1 * var(--cr-gut));}
.cr-hero-media img{width:100%;height:100%;min-height:380px;object-fit:cover;object-position:center;display:block;
  clip-path:polygon(14% 0,100% 0,100% 100%,0 100%);}
.cr-hero-media::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,var(--bg2) 0%,transparent 22%);clip-path:polygon(14% 0,100% 0,100% 100%,0 100%);}
.cr-hero-badge{position:absolute;z-index:2;right:calc(var(--cr-gut) + 8px);bottom:36px;display:flex;align-items:center;gap:14px;
  padding:18px 22px;border-radius:16px;background:var(--bg3);border:1px solid var(--bdr2);box-shadow:0 18px 40px rgba(11,25,48,.16);}
.cr-hero-badge svg{width:36px;height:36px;color:var(--teal);}
.cr-hero-badge span{font-size:13px;font-weight:700;line-height:1.45;color:var(--t1);}

/* Why join */
.cr-why{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px;}
.cr-why-item{text-align:center;padding:8px 6px;}
.cr-why-ic{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--bg4);color:var(--teal);margin-bottom:16px;
  box-shadow:0 0 0 6px color-mix(in srgb,var(--teal-btn) 7%,transparent);transition:transform .25s,background .25s,color .25s;}
.cr-why-ic svg{width:26px;height:26px;}
.cr-why-item:hover .cr-why-ic{transform:translateY(-3px);background:var(--teal-btn);color:#fff;}
.cr-why-item h3{font-size:15px;font-weight:800;line-height:1.3;color:var(--t1);margin:0 0 8px;}
.cr-why-item p{font-size:13px;line-height:1.6;color:var(--t2);margin:0;}

/* Openings: Zoho Recruit widget styled as a card grid */
.cr-board{min-height:120px;}
.cr-loading{text-align:center;color:var(--t3);padding:40px 0;}
.cr-board .embed_jobs_head,.cr-board .embed_jobs_head2,.cr-board .embed_jobs_head3{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;max-width:none!important;width:auto!important;font-family:inherit!important;}
.cr-board *{font-family:inherit!important;}
/* filters / search the widget may add */
.cr-board .rec_facet_group,.cr-board .rec-job-filter,.cr-board .zr_fillayout_info,.cr-board .rec-what-where{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 22px!important;padding:14px!important;border-radius:14px;background:var(--bg3);border:1px solid var(--bdr2);}
.cr-board input[type=text],.cr-board input[type=search],.cr-board select{height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--bdr2);background:var(--bg);color:var(--t1);font-size:14px;}
.cr-board button,.cr-board input[type=button],.cr-board input[type=submit]{height:44px;padding:0 22px;border-radius:10px;border:0;background:var(--teal-btn);color:#fff;font-weight:700;cursor:pointer;}
.cr-board .rec-grp-heading,.cr-board .rec-grp-name{font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--teal)!important;margin:18px 0 12px;}
.cr-board .rec-grp-cnt{color:var(--t3);margin-left:6px;}
/* any element that directly holds job items becomes a 3-column grid */
.cr-board :has(> ul.rec-job-info){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.cr-board ul.rec-job-info{position:relative;list-style:none;margin:0!important;padding:22px 22px 20px 82px!important;display:flex;flex-direction:column;gap:8px;min-height:190px;
  border-radius:16px;background:var(--bg3);border:1px solid var(--bdr2);box-shadow:var(--card-shadow);transition:transform .25s,border-color .25s,box-shadow .25s;}
.cr-board ul.rec-job-info:hover{transform:translateY(-4px);border-color:rgba(8,127,140,.4);box-shadow:0 18px 40px rgba(11,25,48,.12);}
.cr-board ul.rec-job-info::before{content:"";position:absolute;left:22px;top:22px;width:44px;height:44px;border-radius:12px;background:var(--bg4) center/22px no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087F8C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 012-2h4a2 2 0 012 2v2M3 13h18'/%3E%3C/svg%3E");}
.cr-board ul.rec-job-info li{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:13px;line-height:1.5;color:var(--t2);}
.cr-board li.rec-job-title a,.cr-board li.rec-job-title{font-size:16px!important;font-weight:800!important;line-height:1.3;color:var(--t1)!important;text-decoration:none!important;}
.cr-board li.rec-job-title a:hover{color:var(--teal)!important;}
.cr-board ul.rec-job-info li.zrsite_Job_Type{align-self:flex-start;padding:3px 10px!important;border-radius:999px;background:var(--bg4)!important;color:var(--teal)!important;font-size:12px;font-weight:700;}
.cr-board li.zrsite_Location,.cr-board li.zrsite_Work_Experience,.cr-board li.zrsite_Date_Opened{display:inline-flex;align-items:center;gap:6px;color:var(--t2);}
.cr-board li.zrsite_Location::before{content:"";width:14px;height:14px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352657B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0114 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat;}
.cr-board li.zrsite_Work_Experience::before{content:"";width:14px;height:14px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352657B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 012-2h4a2 2 0 012 2v2'/%3E%3C/svg%3E") center/contain no-repeat;}
.cr-board li.zrsite_Job_Description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
/* actions added by careers.js */
.cr-board ul.rec-job-info li.cr-job-actions{margin-top:auto!important;padding-top:12px!important;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.cr-job-actions .cr-view{font-size:13px;font-weight:700;color:var(--teal)!important;text-decoration:none;}
.cr-job-actions .cr-view:hover{text-decoration:underline;}
.cr-job-actions .cr-apply{display:inline-flex;align-items:center;padding:9px 18px;border-radius:8px;background:var(--red);color:#fff!important;font-size:13px;font-weight:700;text-decoration:none;transition:background .2s;}
.cr-job-actions .cr-apply:hover{background:#066F7A;}
.cr-board .rec_no_jobs{grid-column:1/-1;text-align:center;padding:40px 20px;border-radius:16px;background:var(--bg3);border:1px dashed var(--bdr3);color:var(--t2);}

/* Don't see the right role */
.cr-cv{display:flex;align-items:center;gap:20px;margin-top:28px;padding:22px 28px;border-radius:16px;background:var(--bg4);border:1px solid var(--bdr2);}
.cr-cv-ic{display:grid;place-items:center;flex-shrink:0;width:52px;height:52px;color:var(--teal);}
.cr-cv-ic svg{width:40px;height:40px;}
.cr-cv h3{font-size:16px;font-weight:800;color:var(--t1);margin:0 0 4px;}
.cr-cv p{font-size:14px;color:var(--t2);margin:0;}
.cr-cv .btn-secondary{margin-left:auto;flex-shrink:0;border-color:var(--teal-btn)!important;color:var(--teal)!important;background:transparent!important;}

/* Life at Trivecta */
.cr-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.cr-gallery figure{margin:0;border-radius:14px;overflow:hidden;aspect-ratio:4/3;box-shadow:var(--card-shadow);}
.cr-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease;}
.cr-gallery figure:hover img{transform:scale(1.05);}

/* Join our team banner */
.cr-join{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:22px;padding:34px 40px;border-radius:20px;
  background:linear-gradient(110deg,#0B1930 0%,#0E2A44 60%,#0F4A57 100%);color:#fff;}
.cr-join::after{content:"";position:absolute;right:-60px;top:-40px;width:340px;height:240px;background:linear-gradient(135deg,rgba(109,224,214,.18),rgba(8,127,140,0));transform:skewX(-24deg);pointer-events:none;}
.cr-join .cr-label{color:#6DE0D6;margin-bottom:8px;}
.cr-join h2{font-size:clamp(22px,2.2vw,28px);font-weight:800;color:#fff;margin:0 0 8px;}
.cr-join p{font-size:15px;color:#C6D5E3;margin:0;}
.cr-join-btn{position:relative;z-index:1;flex-shrink:0;display:inline-flex;align-items:center;gap:8px;padding:13px 26px;border-radius:10px;background:#fff;color:#0B1930!important;font-size:14px;font-weight:700;text-decoration:none;transition:transform .2s;}
.cr-join-btn:hover{transform:translateY(-2px);}

/* Responsive */
@media(max-width:1100px){
  .cr-why{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:36px;}
  .cr-board :has(> ul.rec-job-info){grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:900px){
  .cr-hero-grid{grid-template-columns:1fr;gap:0;min-height:0;}
  .cr-hero-copy{padding:44px 0 28px;}
  .cr-hero-media{margin:0 calc(-1 * var(--cr-gut));}
  .cr-hero-media img{min-height:260px;max-height:340px;clip-path:none;}
  .cr-hero-media::before{display:none;}
  .cr-hero-badge{right:16px;bottom:16px;padding:12px 16px;}
  .cr-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cr-cv{flex-wrap:wrap;}.cr-cv .btn-secondary{margin-left:0;}
  .cr-join{flex-direction:column;align-items:flex-start;padding:28px 24px;}
}
@media(max-width:620px){
  .cr-why{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px;}
  .cr-board :has(> ul.rec-job-info){grid-template-columns:1fr;}
}

/* Oct 23: Life at Trivecta — mosaic of 5 photos (big celebration photo + 4) */
.cr-gallery{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);}
.cr-gallery figure{aspect-ratio:3/2;}
.cr-gallery figure.big{grid-column:span 2;grid-row:span 2;aspect-ratio:auto;}
@media(max-width:900px){.cr-gallery{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;}.cr-gallery figure.big{grid-column:1/-1;grid-row:auto;aspect-ratio:3/2;}}

/* Share Your CV pop-up */
.cv-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;}
.cv-modal[hidden]{display:none;}
.cv-backdrop{position:absolute;inset:0;background:rgba(6,16,31,.6);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);}
.cv-box{position:relative;width:min(760px,100%);max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:var(--bg3);border:1px solid var(--bdr2);border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);overflow:hidden;}
.cv-head{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid var(--bdr2);}
.cv-head h2{margin:0;font-size:20px;font-weight:800;color:var(--t1);}
.cv-x{width:38px;height:38px;border-radius:10px;border:1px solid var(--bdr2);background:var(--fill1);color:var(--t1);font-size:24px;line-height:1;cursor:pointer;}
.cv-x:hover{border-color:var(--teal-btn);color:var(--teal);}
.cv-body{overflow:auto;padding:8px 8px 0;background:#fff;}
.cv-body iframe{display:block;}
body .cv-head h2{font-size:20px!important;line-height:1.3!important;letter-spacing:-.01em!important;}

/* Oct 30: "Loading openings…" is our own placeholder; hide it as soon as Zoho Recruit adds the job list, and remove the extra space */
.cr-board{min-height:0!important;}
.cr-loading{padding:14px 0!important;margin:0!important;font-size:14px;}
#rec_job_listing_div:has(> :not(.cr-loading)) > .cr-loading{display:none!important;}
.cr-board .embed_jobs_head,.cr-board .embed_jobs_head2,.cr-board .embed_jobs_head3{min-height:0!important;height:auto!important;}
.cr-board #rec_job_listing_div{min-height:0!important;}
#openings .cr-head{margin-bottom:24px;}
#openings .cr-cv{margin-top:20px;}

/* v1.18.3 — CV pop-up: one scrollbar only (Zoho's), smaller title */
html body .cv-modal .cv-box{height:min(860px,calc(100vh - 40px));max-height:none;}
html body .cv-modal .cv-body{flex:1;min-height:0;overflow:hidden;padding:0;}
html body .cv-modal .cv-body > div{height:100%;}
html body .cv-modal .cv-body iframe{height:100%!important;width:100%;border:0;}
html body .cv-modal .cv-head{padding:12px 18px;}
html body .cv-modal .cv-head h2{font-size:18px!important;line-height:1.3!important;font-weight:700!important;letter-spacing:0!important;margin:0!important;}
html body .cv-modal .cv-x{width:34px;height:34px;font-size:22px;}
@media(max-width:600px){html body .cv-modal{padding:10px;}html body .cv-modal .cv-box{height:calc(100vh - 20px);}}

/* v1.18.5 — Share your CV: full screen on phones so the Zoho form isn't squeezed or cut */
@media(max-width:768px){
  html body .cv-modal{padding:0!important;}
  html body .cv-modal .cv-box{width:100vw!important;max-width:100vw!important;height:100dvh!important;border-radius:0!important;border:0!important;}
  html body .cv-modal .cv-body,html body .cv-modal .cv-body iframe{width:100%!important;min-width:100%!important;overflow-x:hidden;}
}
/* Zoho job list: filter dropdown hidden by careers.js; also hide a bare <select> before the script runs */
.cr-board #rec_job_listing_div select{display:none!important;}
/* scaled Zoho form on small phones (set by careers.js) */
html body .cv-modal .cv-body > div.cv-scaled{position:relative;overflow:hidden;}
html body .cv-modal .cv-body > div.cv-scaled iframe{width:var(--zw)!important;min-width:var(--zw)!important;max-width:none!important;height:calc(100% / var(--s))!important;transform:scale(var(--s));transform-origin:0 0;}
