/* Careers Site shell: header, Track tabs, footer. Listing card styles live in listing.css. */
:root {
  --cs-blue: #0089cf;
  --cs-text: #333;
  --cs-border: #e5e8eb;
  --cs-nav-active: #009be4;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--cs-text);
  background: #fff;
  font-variant-numeric: tabular-nums;
}
body.cs-modal-open, html.cs-modal-open { overflow: hidden; }

.cs-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--cs-border); }
body { padding-top: 60px; }
.cs-header-inner { max-width: 1140px; height: 60px; margin: 0 auto; padding: 5px 43px 8px 24px; display: flex; align-items: center; }
.cs-brand img { display: block; }
.cs-brand .cs-logo-mark { display: none; }
.cs-nav { display: flex; align-items: center; justify-content: center; flex: 1; }
.cs-nav a { color: #999; text-decoration: none; font-size: 19.2px; line-height: 28.8px; white-space: nowrap; padding: 8px 8px; }
.cs-nav a:hover { color: var(--cs-nav-active); }
.cs-nav a.active { color: var(--cs-nav-active); }
.cs-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cs-flag img { display: block; width: 20px; height: 20px; }
.cs-icon-btn { border: 0; background: transparent; padding: 0; cursor: pointer; line-height: 0; min-width: 26px; min-height: 26px; }
.cs-burger { display: none; width: 28px; height: 28px; flex-direction: column; justify-content: center; gap: 5px; }
.cs-burger span { display: block; height: 3px; background: #fd4f00; border-radius: 1px; }
.cs-search { display: flex; gap: 8px; max-width: 1140px; margin: 0 auto; padding: 10px 15px; background: #fff; border-top: 1px solid var(--cs-border); }
.cs-search[hidden] { display: none; }
.cs-search input[type=search] { flex: 1; font: inherit; padding: 8px 12px; border: 1px solid var(--cs-border); border-radius: 4px; min-height: 40px; }
.cs-search button { font: inherit; padding: 8px 18px; border: 0; border-radius: 4px; background: var(--cs-blue); color: #fff; cursor: pointer; min-height: 40px; }

.cs-main { max-width: 1200px; margin: 0 auto; padding: 32px 16px 56px; min-height: 60vh; }
.cs-title { text-align: center; font-size: 27px; font-weight: 600; color: var(--cs-blue); margin: 0 0 20px; letter-spacing: .04em; }

.cs-tabs { display: flex; justify-content: center; gap: 0; margin: 0 auto 16px; }
.cs-tab { font: inherit; font-size: 15px; padding: 10px 28px; border: 1px solid var(--cs-blue); background: #fff; color: var(--cs-blue); cursor: pointer; min-height: 44px; }
.cs-tab:first-child { border-radius: 4px 0 0 4px; }
.cs-tab:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
.cs-tab.is-active { background: var(--cs-blue); color: #fff; }
.cs-tab:focus-visible { outline: 3px solid #9fd8f5; outline-offset: 2px; }
.cs-panel[hidden] { display: none; }

.cs-container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.cs-blue { color: #009be4; }
.cs-orange { color: #fd590f; }
.cs-footer { background: #262b2f; color: #999; font-size: 16px; }
.cs-footer-main { padding: 60px 0; }
.cs-footer-row { display: flex; align-items: flex-start; margin: 0 auto; }
.cs-footer-company { flex: 0 0 33.333%; max-width: 33.333%; padding-right: 15px; }
.cs-footer-links { flex: 0 0 22.222%; max-width: 22.222%; padding: 0 15px; }
.cs-footer-follow { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 15px; }
.cs-footer-company img { display: block; margin-bottom: 16px; }
.cs-company-name { margin: 0 0 8px; color: #009be4; line-height: 24px; }
.cs-info { display: flex; gap: 10px; line-height: 24px; margin-top: 2px; }
.cs-info-icon { flex: 0 0 20px; text-align: center; color: #999; }
.cs-footer h2 { font-size: 16px; font-weight: 400; color: #fff; margin: 0 0 8px; }
.cs-footer-links ul { list-style: none; margin: 0; padding: 0; }
.cs-footer-links a { color: #999; text-decoration: none; font-size: 15.2px; line-height: 22.8px; }
.cs-footer-links a:hover { color: #fff; }
.cs-social { display: flex; flex-wrap: wrap; }
.cs-soc { position: relative; width: 34px; height: 34px; margin: 0 5px 5px 0; border-radius: 25px; display: block; transition: transform .2s; }
.cs-soc:hover { transform: scale(1.1); }
.cs-soc img { position: absolute; width: 16px; height: 16px; left: 50%; top: 50%; margin: -8px 0 0 -8px; }
.cs-soc-fb { background: #3b5998; }
.cs-soc-tw { background: #55acee; }
.cs-soc-yt { background: #bb0000; }
.cs-soc-ig { background: #125688; }
.cs-soc-tt { background: #fff; }
.cs-copy { background: #192027; text-align: center; padding: 10px 15px; font-size: 15.2px; color: #acacac; }

@media (max-width: 991px) {
  .cs-footer-row { flex-wrap: wrap; gap: 24px 0; }
  .cs-footer-company { flex-basis: 100%; max-width: 100%; }
  .cs-footer-links, .cs-footer-follow { flex: 0 0 50%; max-width: 50%; padding-left: 0; }
  .cs-header-inner { padding: 5px 15px 8px; }
  .cs-burger { display: flex; }
  .cs-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-top: 1px solid var(--cs-border); box-shadow: 0 8px 16px rgba(0,0,0,.08); padding: 6px 0; }
  .cs-nav.is-open { display: flex; }
  .cs-nav a { padding: 12px 20px; font-size: 17px; }
}
@media (max-width: 640px) {
  .cs-brand .cs-logo-full { display: none; }
  .cs-brand .cs-logo-mark { display: block; }
  .cs-footer-main { padding: 30px 0; }
  .cs-footer-links, .cs-footer-follow { flex-basis: 100%; max-width: 100%; }
  .pro-job-cards-container, .job-cards-container { grid-template-columns: 1fr !important; max-height: none !important; }
}

/* Apply Now bar and Consent Gate */
.cs-apply-bar { position: sticky; bottom: 0; z-index: 40; display: flex; justify-content: center; padding: 10px 16px; background: linear-gradient(to top, rgba(255,255,255,.95), rgba(255,255,255,0)); pointer-events: none; }
.cs-apply-btn { pointer-events: auto; font: inherit; font-size: 16px; font-weight: 500; min-height: 44px; padding: 10px 36px; border: 0; border-radius: 4px; background: var(--cs-blue); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,137,207,.35); }
.cs-apply-btn:hover { background: #0077b6; }
.cs-apply-btn:focus-visible { outline: 3px solid #9fd8f5; outline-offset: 2px; }

html.gdh-modal-open, body.gdh-modal-open { overflow: hidden; }
.cs-consent-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; touch-action: none; }
.cs-consent-overlay[hidden] { display: none; }
.cs-consent-box { position: relative; background: #fff; border-radius: 8px; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 24px 24px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.cs-consent-box h2 { font-size: 18px; font-weight: 600; color: var(--cs-blue); margin: 0 32px 12px 0; line-height: 1.4; }
.cs-consent-text { font-size: 14px; line-height: 1.7; }
.cs-consent-text p { margin: 0 0 10px; }
.cs-consent-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: #666; }
.cs-consent-check { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; font-size: 15px; font-weight: 500; cursor: pointer; }
.cs-consent-check input { width: 20px; height: 20px; }
.cs-consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cs-consent-go { flex: 1 1 180px; text-align: center; min-height: 44px; padding: 11px 16px; border-radius: 4px; background: var(--cs-blue); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.cs-consent-go.is-disabled { background: #c9d1d9; color: #fff; cursor: not-allowed; pointer-events: none; }
@media (max-width: 640px) { .cs-consent-box { padding: 20px 16px 16px; } }

/* Page height: let the page grow naturally (no nested scroll box) and keep the footer at the bottom on short pages */
.cs-main { min-height: calc(100vh - 60px - 343px); }
.pro-job-cards-container, .job-cards-container { max-height: none !important; overflow: visible !important; padding-right: 0 !important; }
