/* =========================================================
   Careers site template (recruiter's own branded site).
   Colours come from the recruiter's settings: --brand, --brand-accent.
   ========================================================= */
:root {
  --brand: #0f766e;
  --brand-accent: #f59e0b;
  --text: #1a1d2e;
  --text-2: #4a4f63;
  --muted: #8a8fa3;
  --border: #e3e5ee;
  --surface: #f6f7f9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; color: var(--text); line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ad-text { white-space: pre-line; overflow-wrap: anywhere; }
.cs-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.demo-bar { background: #111827; color: #d1d5db; font-size: 13px; padding: 7px 24px; display: flex; justify-content: space-between; gap: 16px; }
.demo-bar b { color: #fff; font-family: ui-monospace, Consolas, monospace; font-weight: 500; }
.demo-bar a { color: #93c5fd; }

.cs-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-accent); color: #111; border: 0; border-radius: 8px; padding: 12px 22px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cs-btn:hover { filter: brightness(.95); text-decoration: none; }
.cs-btn-light { background: rgba(255, 255, 255, .15); color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); padding: 8px 16px; }
.cs-btn-block { width: 100%; }

/* Header */
.cs-header { background: var(--brand); color: #fff; }
.cs-header-inner { display: flex; align-items: center; gap: 36px; height: 72px; }
.cs-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 22px; }
.cs-brand:hover { text-decoration: none; }
.cs-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-accent); color: #111; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.cs-nav { display: flex; gap: 26px; margin-right: auto; }
.cs-nav a { color: rgba(255, 255, 255, .85); font-weight: 500; }
.cs-nav a.active, .cs-nav a:hover { color: #fff; text-decoration: none; box-shadow: 0 2px 0 var(--brand-accent); }

/* Hero */
.cs-hero { background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: #fff; padding: 56px 0 46px; }
.cs-hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 12px; max-width: 760px; }
.cs-hero p { font-size: 19px; opacity: .9; margin: 0 0 28px; max-width: 700px; }
.cs-search { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 10px; background: #fff; padding: 10px; border-radius: 12px; max-width: 860px; }
.cs-search input, .cs-search select { border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 16px; outline: 0; background: #fff; }
.cs-search input:focus, .cs-search select:focus { border-color: var(--brand); }
.cs-stats { display: flex; gap: 28px; margin-top: 22px; font-size: 15px; opacity: .9; }
.cs-stats b { font-size: 20px; }

/* List */
.cs-main { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 56px; align-items: start; }
.cs-side { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: sticky; top: 16px; }
.cs-side h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 10px; }
.cs-side ul { list-style: none; padding: 0; margin: 0 0 22px; }
.cs-side ul:last-child { margin-bottom: 0; }
.cs-side button, .cs-side a { width: 100%; display: flex; justify-content: space-between; gap: 10px; background: none; border: 0; padding: 8px 10px; border-radius: 6px; color: var(--text); cursor: pointer; text-align: left; text-decoration: none; }
.cs-side button:hover, .cs-side a:hover { background: var(--surface); }
.cs-side button.active, .cs-side a.active { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-weight: 700; }
.cs-side button span, .cs-side a span { color: var(--muted); font-size: 14px; }
.cs-list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cs-list-head h2 { margin: 0; font-size: 24px; }
.cs-list-head span { color: var(--muted); }
.cs-list { display: flex; flex-direction: column; gap: 12px; }
.cs-job-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--brand-accent); border-radius: 10px; padding: 18px 20px; color: var(--text); }
.cs-job-card:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.cs-job-card h3 { margin: 0 0 6px; font-size: 19px; color: var(--brand); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: 15px; }
.cs-pill { font-size: 13px; padding: 3px 10px; border-radius: 20px; background: var(--surface); color: var(--text-2); white-space: nowrap; }
.cs-pay { font-weight: 700; color: var(--text); white-space: nowrap; text-align: right; }
.cs-pay small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.cs-empty { background: #fff; border: 1px dashed var(--border); border-radius: 10px; padding: 40px; text-align: center; color: var(--text-2); }

/* Job view */
.cs-job { padding-top: 26px; padding-bottom: 56px; }
.cs-back { display: inline-block; margin-bottom: 18px; font-weight: 600; }
.cs-job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cs-job article { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.cs-cat { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--brand); }
.cs-job h1 { font-size: 34px; line-height: 1.15; margin: 6px 0 12px; }
.cs-text { margin-top: 24px; font-size: 17px; line-height: 1.65; }
.cs-apply, .cs-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.cs-apply { border-top: 4px solid var(--brand); display: flex; flex-direction: column; gap: 6px; position: sticky; top: 16px; }
.cs-apply h2 { margin: 0 0 8px; font-size: 20px; }
.cs-apply label { font-weight: 600; font-size: 14px; margin-top: 6px; }
.cs-apply input { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 15px; outline: 0; }
.cs-apply input:focus { border-color: var(--brand); }
.cs-apply input.bad { border-color: #dc2626; }
.cs-apply .cs-btn { margin-top: 12px; }
.cs-or { text-align: center; font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.cs-msg { background: #ecfdf5; color: #065f46; border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; font-weight: 600; }
.cs-box { margin-top: 18px; }
.cs-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.cs-box dt { color: var(--muted); }
.cs-box dd { margin: 0; font-weight: 600; }

/* ===== The company's choices (classes and variables on <html>, see careers/layout) ===== */
body { font-family: var(--cs-font, "Fira Sans", system-ui, sans-serif); background: var(--cs-bg, var(--surface)); }
.cs-logo { height: 44px; display: flex; align-items: center; background: #fff; border-radius: 8px; padding: 4px 8px; }
.cs-logo img { max-height: 36px; max-width: 160px; object-fit: contain; display: block; }
.cs-apply textarea { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 15px; outline: 0; resize: vertical; }
.cs-apply textarea:focus { border-color: var(--brand); }
.cs-msg.bad { background: #fef2f2; color: #991b1b; }
/* Header: in the main colour (default) or white */
.hd-white .cs-header { background: #fff; color: var(--text); border-bottom: 1px solid var(--border); }
.hd-white .cs-brand { color: var(--brand); }
.hd-white .cs-nav a { color: var(--text-2); }
.hd-white .cs-nav a.active, .hd-white .cs-nav a:hover { color: var(--brand); }
.hd-white .cs-btn-light { background: var(--brand); border-color: var(--brand); color: #fff; }
/* The top: gradient (default), one colour, or a picture with a dark layer */
.hero-solid .cs-hero { background: var(--brand); }
.hero-image .cs-hero { background: linear-gradient(rgba(0, 0, 0, var(--hero-dark, .45)), rgba(0, 0, 0, var(--hero-dark, .45))), var(--hero-img) center/cover no-repeat; }
.hs-compact .cs-hero { padding: 30px 0 28px; }
.hs-compact .cs-hero h1 { font-size: 34px; }
.hs-tall .cs-hero { padding: 100px 0 90px; }
.ha-center .cs-hero .cs-container { text-align: center; }
.ha-center .cs-hero h1, .ha-center .cs-hero p, .ha-center .cs-search { margin-left: auto; margin-right: auto; }
.ha-center .cs-stats { justify-content: center; }
/* Corners */
.r-square .cs-btn, .r-square .cs-search, .r-square .cs-search input, .r-square .cs-search select, .r-square .cs-side, .r-square .cs-job-card,
.r-square .cs-job article, .r-square .cs-apply, .r-square .cs-box, .r-square .cs-contact, .r-square .cs-empty, .r-square .cs-mark, .r-square .cs-logo { border-radius: 0; }
.r-round .cs-btn, .r-round .cs-search input, .r-round .cs-search select { border-radius: 999px; }
.r-round .cs-search, .r-round .cs-side, .r-round .cs-job-card, .r-round .cs-job article, .r-round .cs-apply, .r-round .cs-box, .r-round .cs-contact { border-radius: 20px; }
.r-round .cs-search { border-radius: 999px; }
.r-round .cs-mark { border-radius: 50%; }
/* Jobs as a compact list instead of cards */
.list-compact .cs-list { gap: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.list-compact .cs-job-card { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; border-left: 0; padding: 14px 18px; }
.list-compact .cs-job-card:last-child { border-bottom: 0; }
.list-compact .cs-job-card h3 { font-size: 17px; margin-bottom: 3px; }
.list-compact .cs-job-card:hover { box-shadow: none; background: color-mix(in srgb, var(--brand) 5%, #fff); }
/* Parts the company switched off */
.no-filters .cs-main { grid-template-columns: minmax(0, 1fr); }
.no-filters .cs-side { display: none; }
.no-stats .cs-stats { display: none; }
.no-about .cs-about, .no-about .cs-about-link { display: none; }

/* About + footer */
.cs-about { background: #fff; border-top: 1px solid var(--border); padding: 48px 0; }
.cs-about-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.cs-about h2 { margin: 0 0 10px; }
.cs-about p { color: var(--text-2); font-size: 17px; margin: 0; }
.cs-contact { background: var(--surface); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.cs-contact strong { font-size: 18px; }
.cs-footer { background: #111827; color: #9ca3af; padding: 20px 0; font-size: 14px; }
.cs-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cs-powered { display: inline-flex; align-items: center; gap: 8px; color: #9ca3af; }
.cs-powered img { height: 18px; background: #fff; border-radius: 4px; padding: 3px 6px; }
