/* v42 - tier-1 OEM polish: calmer type, one card system, clear focus, Careers openings */

/* ---------- foundations ---------- */
html{scroll-padding-top:92px}
html body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html body :focus-visible{outline:3px solid #3f7d05;outline-offset:3px;border-radius:4px}
html body .page-hero :focus-visible,html body .hero-reference :focus-visible,html body .footer :focus-visible{outline-color:#a6ee2e}

/* ---------- header: quiet until the page scrolls, then a soft shadow ---------- */
html body .header{transition:box-shadow .2s ease,background-color .2s ease}
html body .header.is-scrolled{box-shadow:0 8px 28px rgba(10,18,7,.10)}

/* ---------- type scale and rhythm ---------- */
html body .page-hero h1{font-size:clamp(2.2rem,4.2vw,3.5rem);line-height:1.08;letter-spacing:-.02em}
html body .section-head h2,html body .section > .container > h2{line-height:1.15;letter-spacing:-.015em}
html body .section{padding:84px 0}
html body .section-head{margin-bottom:34px}
html body .lead{line-height:1.6}

/* ---------- one card system: even radius, soft layered shadow, steady hover ---------- */
html body .card,html body .v20-tcard{border-radius:12px;border-color:#d6dccd;box-shadow:0 1px 2px rgba(10,18,7,.04),0 10px 28px rgba(10,18,7,.05)}
html body .card:hover,html body .v20-tcard:hover{border-color:#a9c28f;box-shadow:0 1px 2px rgba(10,18,7,.05),0 16px 36px rgba(10,18,7,.09)}
html body .grid-2,html body .grid-3,html body .grid-4,html body .v20-tgrid{align-items:stretch}

/* ---------- buttons: one height, one weight ---------- */
html body .btn{font-weight:700;border-radius:10px;transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease,color .18s ease}
html body .btn:active{transform:translateY(0)}

/* ---------- Careers: hero actions ---------- */
.careers-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}

/* ---------- Careers: open positions ---------- */
.openings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0 0;align-items:stretch}
.opening-card{display:flex;flex-direction:column;gap:10px;padding:24px;background:#fff;border:1px solid #d6dccd;border-top:4px solid #7acc05;border-radius:12px;box-shadow:0 1px 2px rgba(10,18,7,.04),0 10px 28px rgba(10,18,7,.05);transition:box-shadow .2s ease,border-color .2s ease}
.opening-card:hover{border-color:#a9c28f;box-shadow:0 1px 2px rgba(10,18,7,.05),0 16px 36px rgba(10,18,7,.09)}
.opening-card.is-open{border-top-color:#3f7d05}
.opening-team{align-self:flex-start;padding:4px 10px;border-radius:999px;border:1px solid #d3e0b7;background:#eef4e1;color:#2d5a0b;font-size:.78rem;font-weight:700;line-height:1.3}
.opening-card h3{margin:2px 0 0;font-size:1.22rem;line-height:1.28;letter-spacing:-.005em;text-transform:none;color:#0c1207}
.opening-card .opening-summary{margin:0;font-size:.95rem;line-height:1.55}
.opening-skills{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:2px 0 0;padding:0}
body[data-v20] .opening-skills li{margin:0;padding:4px 10px;border-radius:999px;border:1px solid #d3e0b7;background:#eef4e1;color:#2d4a14!important;font-size:.76rem;font-weight:700;line-height:1.3}
.opening-detail{margin-top:4px;padding:14px 16px;background:#f6f9ee;border-left:3px solid #7acc05;border-radius:6px}
.opening-detail[hidden]{display:none}
.opening-detail h4{margin:0 0 6px;font-size:.88rem;line-height:1.3;text-transform:none;letter-spacing:0;color:#2d5a0b}
.opening-detail ul{margin:0 0 12px;padding-left:18px}
.opening-detail li{margin:4px 0;font-size:.9rem;line-height:1.45}
.opening-detail p{margin:0;font-size:.9rem;line-height:1.5}
.opening-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:auto;padding-top:14px}
.opening-apply{min-width:120px;justify-content:center}
.opening-toggle{display:inline-flex;align-items:center;gap:8px;padding:8px 2px;border:0;border-radius:6px;background:transparent;color:#2d5a0b;font:inherit;font-size:.9rem;font-weight:800;cursor:pointer}
.opening-toggle:hover{color:#16330a;text-decoration:underline;text-underline-offset:4px}
.opening-toggle:after{content:"";width:8px;height:8px;margin-top:-3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s ease}
.opening-toggle[aria-expanded="true"]:after{margin-top:3px;transform:rotate(-135deg)}

/* ---------- Careers: profile call-to-action ---------- */
.careers-cta{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:28px;padding:26px 28px;border:1px solid #d3e0b7;border-left:4px solid #7acc05;border-radius:12px;background:#f3f8e8}
.careers-cta h3{margin:0 0 6px;font-size:1.25rem;line-height:1.25;text-transform:none;letter-spacing:-.005em;color:#0c1207}
.careers-cta p{margin:0;max-width:70ch;font-size:.95rem;line-height:1.55}
.careers-cta .btn{flex:0 0 auto}
@media(max-width:760px){.careers-cta{flex-direction:column;align-items:flex-start}.careers-cta .btn{width:100%;justify-content:center}}

/* ---------- Contact: banner shown when arriving from an Apply button ---------- */
.apply-banner{color:#1b2615!important;margin:0 0 18px;padding:14px 16px;border:1px solid #d3e0b7;border-left:4px solid #7acc05;border-radius:8px;background:#f3f8e8;font-size:.95rem;line-height:1.5}
.apply-banner b{color:#0c1207!important}
.apply-banner a{margin-left:8px;font-weight:700;color:#2d5a0b;white-space:nowrap}

@media(max-width:1020px){.openings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  html body .section{padding:60px 0}
  .openings-grid{grid-template-columns:1fr}
  .careers-hero-actions .btn,.opening-apply{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){
  html body .header,html body .btn,.opening-card,.opening-toggle:after{transition:none}
}
