/* D-216: an opening's public page — the landing page an advert links to. emsy-cf's own sheet, on tokens.css: the
   sign-in page's wash, one column, the job, one call to action, the form. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.job-body { font-family: "Inter", system-ui, sans-serif; color: var(--text-heading); background: var(--emsy-white); -webkit-font-smoothing: antialiased; }
/* Owner, 20 Oct 2026: a plain white page, no colour wash behind the heading. */
.job-wash { display: none; }
.job-wrap { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 40px 20px 24px; }
.job-hero { text-align: center; padding: 16px 0 28px; }
.job-company { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--violet-fg); letter-spacing: 0.02em; }
.job-hero h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-strong); }
.job-meta { margin: 10px 0 0; font-size: 14px; color: var(--text-body); }
.job-pay { margin: 12px 0 0; font-size: 17px; font-weight: 700; color: var(--text-strong); }
.job-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 22px; padding: 0 28px; border-radius: var(--radius-pill); background: var(--gradient-cta); color: var(--emsy-white); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-cta); }
.job-cta:hover { filter: brightness(1.05); }
.job-card { background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-2xl); padding: 22px; margin: 0 0 18px; }
.job-card h2 { margin: 0 0 10px; font-size: 16px; color: var(--text-strong); }
.job-card h2 + .job-text + h2 { margin-top: 22px; }
/* Owner, 20 Oct 2026: the Overview and Application tabs sit on the page itself, no box around them. */
.job-card.job-plain { background: none; border: 0; border-radius: 0; padding: 0; }
.job-text { white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; }
.job-form { display: flex; flex-direction: column; gap: 14px; }
.job-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-heading); }
.job-field input, .job-field textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--text-strong); width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-card); border-radius: var(--radius-xl); background: var(--emsy-white); }
.job-field textarea { min-height: 96px; resize: vertical; }
.job-field input:focus, .job-field textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.job-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; color: var(--text-body); }
.job-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--emsy-purple); }
.job-submit { font: inherit; min-height: 50px; border: 0; border-radius: var(--radius-pill); background: var(--gradient-cta); color: var(--emsy-white); font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-cta); }
.job-submit:hover { filter: brightness(1.05); }
.job-err { font-size: 12.5px; font-weight: 500; color: var(--danger-strong); }
.job-err-block { display: block; padding: 10px 14px; border-radius: var(--radius-xl); background: #fef2f2; margin: 0 0 14px; }
/* The honeypot: out of sight, out of the tab order, out of the accessibility tree. */
.job-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.job-thanks { text-align: center; margin-top: 60px; }
.job-thanks h1 { font-size: 24px; color: var(--text-strong); margin: 0 0 12px; }
.job-thanks p { font-size: 14.5px; line-height: 1.7; }
.job-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 20px 32px; font-size: 12px; color: var(--text-body); }
.job-foot-mark { display: inline-flex; width: 18px; height: 18px; border-radius: 5px; background: var(--emsy-purple); padding: 3px; }
.job-foot-mark svg { width: 100%; height: 100%; fill: var(--emsy-white); }
@media (max-width: 520px) {
  .job-wrap { padding-top: 28px; }
  .job-hero h1 { font-size: 26px; }
  .job-cta { width: 100%; }
  .job-card { padding: 18px; }
}

/* D-217: after Ashby — the company's logo over the page, the job's facts in a column beside its description, Overview
   and Application as tabs, and the careers page's list. One column on a phone, the facts above. */
.job-brand { position: relative; z-index: 1; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; max-width: 960px; margin: 0 auto; padding: 20px 20px 0; }
.job-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-heading); text-decoration: none; font-size: 20px; }
a.job-back:hover { background: var(--emsy-purple-faint); }
.job-logo { justify-self: center; max-height: 52px; max-width: 220px; object-fit: contain; }
.job-brand-name { justify-self: center; font-size: 22px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; }
.job-wrap { max-width: 960px; }
.job-title { margin: 20px 0 22px; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-strong); }
.job-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.job-facts { position: sticky; top: 20px; }
.job-fact { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--border-card); }
.job-fact span { font-size: 12px; color: var(--text-body); }
.job-fact strong { font-size: 14px; font-weight: 500; color: var(--text-strong); }
.job-company-line { margin: 14px 0 0; font-size: 12.5px; color: var(--text-body); }
.job-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border-card); margin: 0 0 18px; }
.job-tabs a { padding: 10px 2px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-body); font-size: 14px; font-weight: 600; text-decoration: none; }
.job-tabs a[aria-current="page"] { color: var(--text-strong); border-bottom-color: var(--emsy-purple); }
.job-main .job-card .job-cta { margin-top: 24px; }
.job-file input[type="file"] { min-height: 0; padding: 14px; border-style: dashed; background: var(--emsy-purple-faint); }
.job-yesno { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 14px; }
.job-yesno legend { width: 100%; font-size: 13px; font-weight: 500; color: var(--text-heading); margin-bottom: 6px; padding: 0; }
.job-yesno label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 400; }
.job-yesno .job-err { width: 100%; }
.careers-list { display: flex; flex-direction: column; gap: 10px; }
.careers-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-2xl); color: var(--text-heading); text-decoration: none; }
.careers-item:hover { border-color: var(--emsy-purple-mid); }
.careers-item strong { font-size: 16px; color: var(--text-strong); }
.careers-item span { font-size: 13px; color: var(--text-body); }
@media (max-width: 760px) {
  .job-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .job-facts { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .job-company-line { grid-column: 1 / -1; }
  .job-title { font-size: 23px; margin: 14px 0 12px; }
}
/* A radio is a radio, not a field: the field rule's width and height stop at it. */
.job-yesno input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--emsy-purple); }
.job-file input[type="file"]::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; color: var(--text-strong); background: var(--emsy-white); border: 1px solid var(--border-card); border-radius: var(--radius-pill); padding: 8px 16px; margin-right: 10px; cursor: pointer; }

/* D-524: the job site (jobs.emsy.my) — its bar, the search with its filters, the job cards, paging and states. */
.jobs-nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 980px; margin: 0 auto; padding: 14px 20px; }
.jobs-nav-home { display: inline-flex; align-items: center; gap: 8px; color: var(--text-strong); text-decoration: none; min-height: 44px; }
.jobs-nav-home strong { font-size: 16px; letter-spacing: -0.01em; }
.jobs-nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.jobs-nav-links a { font-size: 14px; color: var(--text-body); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.jobs-nav-links a:hover { color: var(--text-strong); }
.jobs-hero { text-align: center; padding: 12px 0 22px; }
.jobs-hero h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-strong); }
.jobs-search { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 18px; margin: 0 0 14px; background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-2xl); }
.jobs-search .job-submit { min-height: 46px; padding: 0 24px; }
.jobs-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.jobs-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-heading); }
.jobs-filters select { font: inherit; font-size: 14px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-card); border-radius: var(--radius-xl); background: var(--emsy-white); color: var(--text-strong); }
.jobs-filters select:focus, .jobs-search input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.jobs-clear { font-size: 14px; color: var(--text-body); min-height: 44px; display: inline-flex; align-items: center; }
.market-count { margin: 0 0 12px; font-size: 13px; color: var(--text-body); }
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.jobs-card { padding: 18px 20px; background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-2xl); }
.jobs-card:hover { border-color: var(--emsy-purple-mid); }
.jobs-card h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.jobs-card h2 a { color: var(--text-strong); text-decoration: none; }
.jobs-card h2 a:hover { text-decoration: underline; }
.jobs-card-co { margin: 4px 0 0; font-size: 14px; color: var(--text-heading); }
.jobs-card-co a { color: inherit; }
.jobs-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.jobs-tag { font-size: 12px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--emsy-purple-light); color: var(--text-heading); }
.jobs-tag-pay { font-weight: 600; }
.jobs-card-snip { margin: 10px 0 0; font-size: 14px; color: var(--text-body); line-height: 1.5; }
.jobs-card-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: 13px; color: var(--text-body); }
.jobs-card-foot a { color: var(--text-body); }
.jobs-pages { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 20px 0 0; font-size: 14px; }
.jobs-pages a { min-height: 44px; display: inline-flex; align-items: center; }
.jobs-states { margin: 28px 0 0; }
.jobs-states h2 { font-size: 16px; margin: 0 0 8px; color: var(--text-strong); }
.jobs-states p { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; }
.jobs-states a { min-height: 32px; display: inline-flex; align-items: center; color: var(--text-heading); }
.jobs-states a[aria-current="page"] { font-weight: 600; color: var(--text-strong); }
@media (max-width: 760px) {
  .jobs-search { grid-template-columns: minmax(0, 1fr); }
  .jobs-filters label { flex: 1 1 140px; }
  .jobs-nav { padding: 10px 16px; }
  .jobs-nav-links { gap: 12px; }
}
