/* Loaded only on: Careers page and job detail pages. Split out of the original theme.css; the base styles stay in ../theme.css. */
/* Careers page — ported from the supplied thomsun-careers.html, restyled onto
   the same editorial tokens as .about/.contact (cream/navy/red) so the three
   pages feel like one flow rather than three palettes. Everything is scoped
   under .careers to avoid colliding with shared site classes (.hero, .why,
   .reveal), and the page's own <nav>/<footer> markup is dropped in favor of
   the shared SiteHeader/SiteFooter components. */

.careers{
  --cream:#F7F5EF;
  --cream-deep:#F1EEE6;
  --navy:#14161F;
  --navy-soft:#3C3F4C;
  --gray:#5F636D; /* darkened from the about/contact #767A85 — that tone sits at ~3.9:1 on --cream, short of WCAG AA's 4.5:1 for body text; this hits ~5.5:1. */
  --red:#E14A2E;
  --red-soft:#FF8A6B;
  --red-dim:rgba(225,74,46,0.10);
  --white:#FFFFFF;
  --line:rgba(20,22,31,0.1);
  --line-dark:rgba(255,255,255,0.14);
  background:var(--cream);
  color:var(--navy);
  font-family:var(--font-inter),sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  padding-top:92px;
}
@media (max-width:760px){ .careers{padding-top:72px;} }

.careers-crumb{padding:26px clamp(24px,6vw,110px) 0;max-width:1600px;margin:0 auto}

.careers .container{max-width:1280px;margin:0 auto;padding:0 clamp(24px,6vw,64px);}
.careers section{padding:110px 0;}

.careers .eyebrow{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:3px;text-transform:uppercase;color:var(--red);font-weight:700;margin-bottom:22px;}
.careers .eyebrow .dash{width:22px;height:2px;background:var(--red);display:inline-block;}
.careers .eyebrow.on-dark{color:var(--red-soft);}
.careers .eyebrow.on-dark .dash{background:var(--red-soft);}

.careers .btn-primary,.careers .btn-secondary{cursor:pointer;font-family:var(--font-inter),sans-serif;}
.careers .btn-primary{background:var(--red);color:var(--white);padding:16px 30px;border:none;border-radius:100px;font-size:15px;font-weight:700;display:inline-flex;align-items:center;gap:8px;transition:transform .2s ease, box-shadow .2s ease;}
.careers .btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(225,74,46,.28);}
.careers .btn-secondary{background:transparent;border:1.5px solid var(--line);color:var(--navy);padding:15px 28px;border-radius:100px;font-size:15px;font-weight:700;display:inline-flex;align-items:center;gap:8px;transition:border-color .2s ease, transform .2s ease;}
.careers .btn-secondary:hover{border-color:var(--navy);transform:translateY(-2px);}
.careers .btn-secondary.on-dark{border-color:var(--line-dark);color:var(--white);}
.careers .btn-secondary.on-dark:hover{border-color:var(--white);}

.careers .text-link{
  font-weight:700;color:var(--navy);position:relative;padding-bottom:2px;
  background-image:linear-gradient(var(--red), var(--red));
  background-size:0% 2px;background-repeat:no-repeat;background-position:left bottom;
  transition:background-size .3s ease;
}
.careers .text-link:hover{background-size:100% 2px;}
.careers .text-link.on-dark{color:var(--white);background-image:linear-gradient(var(--red-soft), var(--red-soft));}

/* ---------- HERO ---------- */
/* .hero collides with the homepage's .hero (min-height/display/grid/background/position/isolation) — reset those explicitly since CSS cascades per-property, not per-rule. */
.careers .hero{padding-top:40px;padding-bottom:100px;min-height:auto;display:block;background:none;position:static;isolation:auto;}
.careers .hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center;}
.careers .hero h1{font-size:60px;line-height:1.05;font-weight:800;letter-spacing:-1.6px;margin:0 0 24px;}
.careers .hero .lede{font-size:18px;color:var(--gray);line-height:1.6;max-width:460px;margin:0 0 36px;}
.careers .hero-ctas{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.careers .hero-ctas svg{width:18px;height:18px;}

.careers .hero-visual{position:relative;height:460px;}
.careers .hv-block{position:absolute;border-radius:22px;overflow:hidden;box-shadow:0 30px 60px -20px rgba(20,22,31,.35);background:var(--navy);}
.careers .hv-1{width:78%;height:72%;top:0;right:0;}
.careers .hv-2{width:52%;height:46%;bottom:0;left:0;border:1px solid var(--line);}
.careers .hv-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
/* Darkens the top of the photo so the white badge/caption stay legible over whatever the photo looks like there; fades out by mid-height so the rest of the photo reads clearly. */
.careers .hv-scrim{position:absolute;inset:0;background:linear-gradient(180deg, rgba(11,13,20,.65) 0%, rgba(11,13,20,.2) 32%, transparent 55%);}
.careers .hv-tag{
  position:absolute;top:20px;left:20px;background:var(--white);color:var(--navy);
  font-size:12px;font-weight:700;padding:8px 14px;border-radius:100px;display:flex;align-items:center;gap:7px;
}
.careers .hv-tag::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--red);}
/* Anchored under the badge rather than at hv-1's bottom-left — hv-2 (painted after hv-1 in the DOM) sits directly on top of that corner and would otherwise blot out most of the caption text. */
.careers .hv-caption{position:absolute;left:22px;top:64px;color:var(--white);font-size:13px;font-weight:600;opacity:.9;}

@media (max-width:900px){
  .careers .hero-grid{grid-template-columns:1fr;gap:40px;}
  .careers .hero-visual{height:320px;order:-1;}
}
@media (max-width:760px){
  .careers .hero h1{font-size:38px;letter-spacing:-1px;}
  .careers .hero .lede{max-width:none;}
}

/* ---------- LIFE AT THOMSUN ---------- */
.careers .life{background:var(--cream-deep);}
.careers .life-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:64px;align-items:center;}
.careers .life-copy h2{font-size:38px;font-weight:800;letter-spacing:-1px;margin:0 0 22px;}
.careers .life-copy p{font-size:16px;color:var(--gray);line-height:1.65;margin:0 0 16px;max-width:460px;}
.careers .life-visual{
  position:relative;height:420px;border-radius:22px;overflow:hidden;border:1px solid var(--line);
  background:var(--cream-deep);
}
.careers .life-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.careers .life-visual .frame-note{
  position:absolute;right:18px;top:18px;font-size:12px;font-weight:700;color:var(--navy-soft);
  background:rgba(247,245,239,0.8);padding:6px 12px;border-radius:100px;
}

@media (max-width:900px){
  .careers .life-grid{grid-template-columns:1fr;gap:32px;}
  .careers .life-visual{height:280px;order:-1;}
}

/* ---------- WHY THOMSUN ---------- */
.careers .why{background:var(--navy);color:var(--white);}
/* .why-head collides with the homepage's .why-head (display:grid/grid-template-columns) — reset it back to a simple block. */
.careers .why-head{display:block;max-width:620px;margin-bottom:50px;}
.careers .why-head h2{font-size:36px;font-weight:800;letter-spacing:-1px;margin:0;color:var(--white);}
.careers .why-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:1px;background:var(--line-dark);border:1px solid var(--line-dark);}
.careers .why-card{background:var(--navy);padding:36px 32px;transition:background .3s ease;}
.careers .why-card:hover{background:#1C2130;}
.careers .why-card .icon{width:38px;height:38px;margin-bottom:22px;color:var(--red-soft);}
.careers .why-card h3{font-size:18px;font-weight:700;color:var(--white);margin:0 0 10px;}
.careers .why-card p{font-size:14.5px;color:#AEB2C0;max-width:280px;margin:0;}

@media (max-width:900px){ .careers .why-grid{grid-template-columns:1fr;} }

/* ---------- OPENINGS ---------- */
.careers .openings-head{max-width:600px;margin-bottom:44px;}
.careers .openings-head h2{font-size:36px;font-weight:800;letter-spacing:-1px;margin:0 0 12px;}
.careers .openings-head p{font-size:16px;color:var(--gray);margin:0;}

.careers .job-controls{
  display:flex;flex-wrap:wrap;gap:14px;margin-bottom:40px;padding:20px;
  background:var(--white);border:1px solid var(--line);border-radius:16px;
}
.careers .search-field{
  flex:1 1 260px;display:flex;align-items:center;gap:10px;
  border:1.5px solid var(--line);border-radius:12px;padding:12px 16px;background:var(--cream);
}
.careers .search-field svg{width:18px;height:18px;color:var(--gray);flex-shrink:0;}
.careers .search-field input{border:none;background:none;outline:none;font-family:inherit;font-size:15px;width:100%;color:var(--navy);}
.careers .filter-select{
  border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;font-size:14px;font-weight:600;
  background:var(--cream) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M0 0l5 6 5-6z" fill="%23767A85"/></svg>') no-repeat right 14px center;
  appearance:none;color:var(--navy-soft);min-width:160px;cursor:pointer;font-family:var(--font-inter),sans-serif;
}

.careers .job-list{display:grid;gap:14px;}
.careers .job-card{
  display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;
  padding:26px 28px;border:1px solid var(--line);border-radius:16px;background:var(--white);
  transition:border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.careers .job-card:hover{border-color:var(--navy);transform:translateX(4px);box-shadow:0 12px 30px -18px rgba(20,22,31,.3);}
.careers .job-card h3{font-size:19px;font-weight:700;margin:0 0 10px;}
.careers .job-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:13px;color:var(--gray);}
.careers .job-meta span{display:flex;align-items:center;gap:6px;padding:5px 12px;background:var(--cream-deep);border-radius:100px;color:var(--navy-soft);}
.careers .job-card .actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;}
.careers .job-card .view{font-size:14.5px;font-weight:700;white-space:nowrap;display:flex;align-items:center;gap:6px;color:var(--navy);}
.careers .job-card:hover .view{color:var(--red);}
.careers .job-card .apply-link{font-size:13px;font-weight:600;color:var(--gray);white-space:nowrap;}
.careers .job-card .apply-link:hover{color:var(--red);}
.careers .load-more-wrap{text-align:center;margin-top:36px;}
.careers .no-jobs{color:var(--gray);font-size:15px;margin:0;}

@media (max-width:700px){
  .careers .job-card{grid-template-columns:1fr;}
  .careers .job-card .actions{flex-direction:row;align-items:center;margin-top:10px;}
  .careers .job-controls{flex-direction:column;}
  /* .search-field's flex-basis:260px targets a *width* in the desktop row layout; in this
     column layout the same flex-basis would instead impose a 260px *height*, since flex-basis
     tracks the main axis. Reset it to a natural content height at 100% width. */
  .careers .search-field{flex:none;width:100%;}
  .careers .filter-select{width:100%;}
}

/* ---------- FOLLOW US ---------- */
.careers .social{background:var(--cream-deep);}
.careers .social-head{max-width:600px;margin-bottom:44px;}
.careers .social-head h2{font-size:36px;font-weight:800;letter-spacing:-1px;margin:0 0 12px;}
.careers .social-head p{font-size:16px;color:var(--gray);margin:0;}

.careers .social-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;}
.careers .social-card{border-radius:22px;padding:38px;min-height:260px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;}
.careers .social-card h3{font-size:22px;font-weight:800;margin:14px 0 10px;}
.careers .social-card p{font-size:15px;max-width:340px;margin:0;}
.careers .icon-badge{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;}
.careers .icon-badge svg{width:22px;height:22px;}

.careers .linkedin-card{background:var(--navy);color:var(--white);border:1px solid var(--line-dark);}
.careers .linkedin-card p{color:#AEB2C0;}
.careers .linkedin-card .icon-badge{background:#22273A;color:#7FA8D6;}
.careers .linkedin-card .btn-secondary{margin-top:24px;align-self:flex-start;}

.careers .instagram-card{background:linear-gradient(135deg, #F6EADF 0%, #EDD7C2 45%, #E4C6D9 100%);color:var(--navy);border:1px solid var(--line);}
.careers .instagram-card .icon-badge{background:var(--white);color:#B85C8A;}
.careers .instagram-card p{color:var(--navy-soft);}
.careers .instagram-card .btn-secondary{margin-top:24px;align-self:flex-start;}

@media (max-width:900px){ .careers .social-grid{grid-template-columns:1fr;} }

/* ---------- MOMENTS ---------- */
.careers .moments-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:26px;flex-wrap:wrap;gap:12px;}
.careers .moments-head h3{font-size:20px;font-weight:700;margin:0;}
.careers .moments-head .handle{color:var(--red);font-weight:700;}
.careers .moments-grid{display:grid;grid-template-columns:repeat(4, 1fr);grid-auto-rows:140px;gap:12px;}
.careers .moment-tile{position:relative;border-radius:12px;overflow:hidden;background:var(--cream-deep);}
.careers .moment-tile .fill{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.careers .moment-tile:hover .fill{transform:scale(1.08);}
.careers .moment-tile:nth-child(1){grid-row:span 2;}
.careers .load-more-wrap.moments{margin-top:28px;}

@media (max-width:900px){ .careers .moments-grid{grid-template-columns:repeat(2, 1fr);grid-auto-rows:130px;} }

/* ---------- FINAL CTA ---------- */
.careers .final-cta{position:relative;background:var(--navy);color:var(--white);overflow:hidden;text-align:center;}
.careers .final-cta::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 20% 20%, rgba(225,74,46,.22), transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(255,255,255,.06), transparent 50%);
}
.careers .final-cta-inner{position:relative;z-index:1;max-width:620px;margin:0 auto;}
.careers .final-cta h2{font-size:44px;font-weight:800;letter-spacing:-1.2px;margin:0 0 18px;color:var(--white);}
.careers .final-cta p{font-size:17px;color:#C7CCD8;margin:0 0 36px;}
.careers .final-cta .hero-ctas{justify-content:center;}

@media (max-width:760px){
  .careers .life-copy h2,.careers .why-head h2,.careers .openings-head h2,.careers .social-head h2{font-size:28px;}
  .careers .final-cta h2{font-size:32px;}
}

/* ---------- JOB DETAIL PAGE (/careers/explore-opening/jobs/[slug]) ---------- */
/* A single, narrower reading column reads better for long-form job descriptions than the 1280px section width used on the rest of the careers page. */
.careers.job-detail .container{max-width:820px;}

.careers .job-hero{padding-top:40px;padding-bottom:44px;}
.careers .back-link{display:inline-flex;margin-bottom:28px;font-size:14px;}
.careers .job-hero h1{font-size:40px;font-weight:800;letter-spacing:-1px;line-height:1.15;margin:0 0 24px;}
.careers .job-hero .job-meta{margin-bottom:32px;}
.careers .job-hero .btn-primary{margin-top:4px;}

.careers .job-body{padding-top:0;padding-bottom:20px;}
.careers .job-section{padding:32px 0;border-bottom:1px solid var(--line);}
.careers .job-section:first-child{padding-top:0;}
.careers .job-section:last-child{border-bottom:none;}
.careers .job-section h2{font-size:21px;font-weight:800;letter-spacing:-.3px;margin:0 0 16px;}
.careers .job-section p{font-size:15.5px;color:var(--navy-soft);line-height:1.7;margin:0 0 14px;}
.careers .job-section p:last-child{margin-bottom:0;}
.careers .job-section ul{margin:0;padding-left:22px;display:grid;gap:10px;}
.careers .job-section li{font-size:15px;color:var(--navy-soft);line-height:1.6;}
.careers .job-section li ul{margin-top:8px;padding-left:20px;gap:6px;}
.careers .job-section li li{font-size:14px;color:var(--gray);}

.careers .tag-list{display:flex;flex-wrap:wrap;gap:8px;}
.careers .tag-list span{font-size:12.5px;font-weight:600;color:var(--navy-soft);background:var(--cream-deep);border:1px solid var(--line);padding:7px 14px;border-radius:100px;}

.careers .job-cta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding-top:12px;padding-bottom:100px;}

@media (max-width:760px){
  .careers .job-hero h1{font-size:28px;}
  .careers .job-section h2{font-size:19px;}
  .careers .job-cta{padding-bottom:70px;}
}


/* Above-the-fold hero must paint without waiting for JS (reveal-on-scroll would keep it at opacity:0 until main.js runs). */
.hero .reveal{opacity:1;transform:none}
