/* ==========================================================================
   LSCC — Mock Applicant Portal /4 (archive.lscc/4)
   Emulated Ashby-style job page + application form.
   No data is transmitted; submission is simulated client-side.
   ========================================================================== */

* { box-sizing: border-box; }

:root {
  --accent: #d94f43;
  --accent-dark: #c44237;
  --accent-soft: rgba(217, 79, 67, 0.08);
  --blue: #2e7bd6;
  --text: #2b2b2b;
  --text-dim: #626262;
  --text-faint: #9a9a9a;
  --border: #e4e4e4;
  --surface: #ffffff;
  --bg: #f7f7f8;
  --ok: #1f9d61;
  --radius: 10px;
}

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.req { color: var(--accent); }
.small { font-size: 12.5px; color: var(--text-dim); }

/* ---- top bar ---- */
.ab-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.ab-header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 58px;
  display: flex; align-items: center; gap: 22px;
}
.ab-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.ab-logo .mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.ab-nav { display: flex; gap: 20px; font-size: 13.5px; flex: 1; }
.ab-nav a { color: var(--text-dim); }
.ab-nav a:hover { color: var(--text); text-decoration: none; }
.ab-header-cta { font-size: 13.5px; color: var(--text-dim); white-space: nowrap; }
.ab-header-cta a { color: var(--text); font-weight: 600; }

/* ---- hero ---- */
.ab-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.ab-hero-inner { max-width: 1080px; margin: 0 auto; padding: 34px 24px 30px; }
.ab-hero-inner h1 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.15;
}
.ab-company { font-size: 15px; color: var(--text-dim); margin-top: 8px; }
.ab-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ab-tag {
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-dim); background: #fbfbfb;
}
.ab-tag.dark { background: var(--text); border-color: var(--text); color: #fff; font-weight: 600; }

/* ---- main layout ---- */
.ab-wrap { max-width: 1080px; margin: 0 auto; padding: 34px 24px 70px; display: grid; grid-template-columns: 1fr 460px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .ab-wrap { grid-template-columns: 1fr; } }

/* ---- left: job content ---- */
.ab-content h2 {
  font-size: 19px; margin: 30px 0 10px;
}
.ab-content h2:first-child { margin-top: 0; }
.ab-content h3 { font-size: 15px; margin: 20px 0 6px; }
.ab-content p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 12px; }
.ab-content ul { margin: 0 0 12px; padding-left: 20px; color: var(--text-dim); font-size: 14.5px; }
.ab-content li { margin-bottom: 6px; }
.ab-benefit { display: flex; gap: 12px; margin-bottom: 12px; font-size: 14px; color: var(--text); }
.ab-benefit .emoji { font-size: 16px; }
.ab-cta-mid { margin-top: 32px; }

/* ---- right: application ---- */
.ab-apply {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 26px 20px;
  position: sticky; top: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.ab-apply-title { font-size: 18px; margin-bottom: 2px; }
.ab-apply-sub { font-size: 13px; color: var(--text-faint); margin-bottom: 20px; }

.ab-field { margin-bottom: 16px; }
.ab-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.ab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .ab-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; padding: 10px 12px; font-size: 14.5px; font-family: inherit; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: auto; }
.ab-field .hint { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

.ab-upload {
  border: 1.5px dashed var(--border); border-radius: 10px; padding: 22px;
  text-align: center; background: #fcfcfc; cursor: pointer;
}
.ab-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.ab-upload input[type="file"] { display: none; }
.ab-upload .u-icon { font-size: 24px; }
.ab-upload p { margin: 6px 0 0; font-size: 13.5px; color: var(--text-dim); }
.ab-upload .u-note { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.ab-file-added { display: none; margin-top: 8px; font-size: 13px; color: var(--ok); }

.ab-yn { display: flex; gap: 22px; }
.ab-yn label { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.ab-yn input { width: 16px; height: 16px; accent-color: var(--accent); }

.ab-collapse { border-top: 1px solid var(--border); margin-top: 6px; }
.ab-collapse summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; padding: 14px 0; color: var(--text-dim);
}
.ab-collapse[open] summary { color: var(--text); }
.ab-demo { padding-bottom: 14px; }
.ab-demo .opt-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 12px; }
.ab-demo .opt-list:last-child { padding-bottom: 0; }
.ab-demo label.opt { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-dim); }
.ab-demo label.opt input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.ab-demo .lbl { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }

.ab-submit {
  display: block; width: 100%; padding: 13px 16px; margin-top: 4px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  border: none; border-radius: 8px; cursor: pointer;
  color: #fff; background: var(--accent);
}
.ab-submit:hover { background: var(--accent-dark); }
.ab-submit:disabled { opacity: 0.55; cursor: wait; }
.ab-apply-foot { font-size: 11.5px; color: var(--text-faint); text-align: center; margin-top: 12px; line-height: 1.6; }

/* ---- success ---- */
.ab-success { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 46px 36px; text-align: center; max-width: 560px; margin: 0 auto; }
.ab-success .check {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: #fff;
  font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ab-success h2 { font-size: 21px; margin-bottom: 8px; }
.ab-success p { color: var(--text-dim); font-size: 14.5px; max-width: 440px; margin: 0 auto; }
.ab-success .again { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--blue); }

/* ---- footer ---- */
.ab-foot { border-top: 1px solid var(--border); background: var(--surface); }
.ab-foot-inner { max-width: 1080px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: 12px; color: var(--text-faint); }
.ab-foot-inner .disc { flex-basis: 100%; font-size: 11.5px; line-height: 1.6; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
