/* Alagappa Careers — public site. Server-rendered; no framework. */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --brand: #0f62fe;
  --brand-ink: #0043ce;
  --link: #0066cc;
  --ok: #1d7a3a;
  --warn: #b25000;
  --radius: 14px;
  --max: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto,
    "Noto Sans", "Noto Sans Tamil", Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; line-height: 1.5; font-size: 17px; letter-spacing: -0.01em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgb(15 98 254 / 45%); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / 82%);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgb(0 0 0 / 8%); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; }
.top nav a { color: var(--ink); font-size: 14px; margin-left: 22px; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: none; }

/* Hero + search */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
.hero p { font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-2); margin: 0 auto; max-width: 720px; line-height: 1.35; }
.search { margin: 36px auto 0; max-width: 820px; background: var(--soft); border-radius: 20px; padding: 10px; }
.search .q { display: flex; gap: 8px; }
.search input[type=search] { flex: 1; font: inherit; font-size: 19px; border: 0; background: #fff; border-radius: 12px;
  padding: 14px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.search input[type=search]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 17px;
  font-weight: 500; border: 0; border-radius: 980px; padding: 12px 24px; background: var(--brand); color: #fff; cursor: pointer;
  white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--brand-ink); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn.ghost:hover { background: rgb(0 102 204 / 6%); }
.btn.block { width: 100%; padding: 15px 24px; }
.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.filters select { font: inherit; font-size: 15px; border: 0; border-radius: 10px; padding: 11px 12px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Results */
.results { padding: 24px 0 80px; }
.count { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin-bottom: 4px; }
.count h2 { font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.count a { font-size: 15px; }
.jobs { list-style: none; margin: 0; padding: 0; }
.job { border-bottom: 1px solid var(--line); }
.job a.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 22px 8px; color: var(--ink); border-radius: 12px; }
.job a.row:hover { background: var(--soft); text-decoration: none; }
.job .t { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; color: var(--link); }
.job .m { color: var(--ink-2); font-size: 15px; }
.job .r { text-align: right; font-size: 15px; color: var(--ink-2); grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.pill { display: inline-block; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 980px; background: var(--soft); color: var(--ink); }
.pill.soon { background: #fff4e5; color: var(--warn); }
.empty { text-align: center; padding: 64px 0; color: var(--ink-2); }
.empty h2 { color: var(--ink); font-size: 28px; margin: 0 0 8px; }

/* Job page */
.crumb { padding: 28px 0 0; font-size: 14px; }
.jobhead { padding: 18px 0 28px; border-bottom: 1px solid var(--line); }
.jobhead h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 12px; }
.jobhead .m { color: var(--ink-2); font-size: 19px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding: 36px 0 96px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 36px;
  border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 17px; white-space: pre-line; }
.prose h2 { font-size: 28px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose li { color: #333336; }
.prose ul, .prose ol { padding-left: 22px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--soft); border-radius: var(--radius); margin-top: 32px; }
.doc .ico { width: 44px; height: 54px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #c4242b; flex-shrink: 0; }
.doc strong { display: block; }
.side { position: sticky; top: 76px; align-self: start; }
.card { background: var(--soft); border-radius: 20px; padding: 26px; }
.card .due { font-size: 15px; color: var(--ink-2); margin: 0 0 18px; }
.card .due strong { color: var(--ink); }
.card .mail { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; overflow-wrap: break-word; }
.card h3 { font-size: 17px; margin: 26px 0 10px; }
.steps { margin: 0; padding-left: 20px; font-size: 15px; color: #333336; }
.steps li { margin-bottom: 6px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share a, .share button { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 980px; border: 0; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.share a:hover, .share button:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--ink-2); }
.notice { font-size: 13px; color: var(--ink-2); margin-top: 18px; }

/* Footer */
footer { background: var(--soft); color: var(--ink-2); font-size: 13px; padding: 28px 0 40px; }
footer p { margin: 6px 0; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .side { position: static; order: -1; }
  .filters { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .job a.row { grid-template-columns: 1fr; }
  .job .r { grid-row: auto; grid-column: auto; text-align: left; }
  .top nav a:not(:last-child) { display: none; }
  .hero { padding: 48px 0 28px; }
  .search .q { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .side .share, footer { display: none; } .layout { grid-template-columns: 1fr; } }

/* Structured job page (LinkedIn / Uber style) */
.org { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.orgmark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand);
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.chips li { font-size: 14px; padding: 6px 12px; border-radius: 980px; background: var(--soft); color: var(--ink); }
.prose .lead p, .lead { font-size: 21px; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; margin-top: 0; }
.prose section { margin-top: 40px; }
.prose section:first-child { margin-top: 0; }
.prose li { margin-bottom: 8px; }
.perks ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.perks li { background: var(--soft); border-radius: 12px; padding: 14px 16px 14px 44px; position: relative; margin: 0; }
.perks li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 14px; height: 8px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.keyfacts { margin-top: 48px; }
.keyfacts h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 12px; }
.job .snip { color: #333336; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; grid-column: 1; margin-top: 2px; }
@media (max-width: 860px) { .perks ul { grid-template-columns: 1fr; } }
.previewbar { background: #fff4e5; color: var(--warn); font-size: 14px; font-weight: 500; text-align: center; padding: 8px 16px; }

/* Apply form */
.apply { margin-top: 56px; padding: 32px; background: var(--soft); border-radius: 22px; scroll-margin-top: 72px; }
.apply h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 4px; }
.apply .sub { color: var(--ink-2); margin: 0 0 22px; }
.apply form { display: grid; gap: 16px; }
.apply .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.apply label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.apply input, .apply textarea { font: inherit; font-size: 17px; font-weight: 400; border: 0; border-radius: 12px;
  padding: 12px 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); width: 100%; }
.apply input:focus, .apply textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.apply input[type=file] { padding: 10px; font-size: 15px; }
.apply input[aria-invalid=true], .apply textarea[aria-invalid=true] { box-shadow: inset 0 0 0 2px #c4242b; }
.apply .err { color: #c4242b; font-size: 14px; font-weight: 400; }
.apply .err.general { background: #fdecec; padding: 12px 14px; border-radius: 12px; margin: 0 0 8px; }
.apply .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: #333336; }
.apply .consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; box-shadow: none; }
.apply .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply.done { background: #eef8f0; }
.apply.done h2 { color: var(--ok); }
@media (max-width: 860px) { .apply { padding: 22px; } .apply .grid { grid-template-columns: 1fr; } }

/* Job page call-to-action */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 28px 32px;
  border-radius: 22px; background: linear-gradient(135deg, #0043ce, #0f62fe); color: #fff; }
.cta h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.02em; color: #fff; }
.cta p { margin: 0; color: rgb(255 255 255 / 85%); }
.cta .btn { background: #fff; color: var(--brand-ink); }
.cta .btn:hover { background: #eef4ff; }

/* Typeform-style apply page */
.wiz { max-width: 640px; margin: 0 auto; padding: 40px 22px 96px; min-height: 70vh; }
.wizback { font-size: 15px; }
.eyebrow { margin: 28px 0 6px; color: var(--ink-2); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.wiz h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 10px; }
.wizmeta { color: var(--ink-2); margin: 0 0 28px; }
.bar { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; display: none; }
.bar span { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: 99px; transition: width .35s ease; }
.stepno { display: none; color: var(--ink-2); font-size: 14px; margin: 10px 0 0; }
.js .bar, .js .stepno { display: block; }
.step { border: 0; margin: 36px 0 0; padding: 0; display: grid; gap: 26px; min-width: 0; }
.step legend { font-size: 15px; font-weight: 600; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .08em; padding: 0; margin-bottom: 18px; }
.js .step legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.q { display: grid; gap: 8px; }
.ql { font-size: clamp(21px, 3vw, 26px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.qh { color: var(--ink-2); font-size: 15px; margin-top: -4px; }
.q input, .q textarea { font: inherit; font-size: clamp(19px, 2.6vw, 22px); border: 0; border-bottom: 2px solid var(--line);
  background: transparent; padding: 10px 2px; color: var(--ink); width: 100%; border-radius: 0; transition: border-color .15s; }
.q textarea { border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 18px; }
.q input:focus, .q textarea:focus { outline: none; border-color: var(--brand); }
.q input::placeholder, .q textarea::placeholder { color: #a1a1a6; }
.q input[aria-invalid=true], .q textarea[aria-invalid=true] { border-color: #c4242b; }
.drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px; border: 2px dashed var(--line);
  border-radius: 18px; background: var(--soft); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: #eef4ff; }
.drop.has { border-style: solid; border-color: var(--ok); background: #eef8f0; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop input:focus-visible + .dropic { outline: 3px solid rgb(15 98 254 / 45%); outline-offset: 3px; }
.dropic { width: 48px; height: 58px; flex-shrink: 0; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #c4242b; }
.dropt { display: grid; gap: 2px; }
.dropt strong { font-size: 18px; }
.dropf { color: var(--ink-2); font-size: 15px; word-break: break-word; }
.wiz .err { color: #c4242b; font-size: 15px; }
.wiz .err.general { background: #fdecec; padding: 14px 16px; border-radius: 14px; margin: 20px 0 0; }
.wiz .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: #333336; }
.wiz .consent input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.wiz .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wiznav { display: flex; align-items: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.wiznav [data-prev], .wiznav [data-next], .wiznav .kbd { display: none; }
.js .wiznav [data-prev]:not([hidden]), .js .wiznav [data-next]:not([hidden]) { display: inline-flex; }
.js .wiznav .kbd { display: inline; }
.wiznav [hidden] { display: none !important; }
.kbd { color: var(--ink-2); font-size: 14px; }
kbd { font: inherit; font-size: 13px; background: var(--soft); border-radius: 6px; padding: 2px 6px; box-shadow: inset 0 -1px 0 var(--line); }
.wizdone { text-align: center; padding: 48px 0; }
.wizdone h1 { margin-top: 20px; }
.wizdone p { color: #333336; font-size: 18px; max-width: 520px; margin: 10px auto; }
.tick { width: 72px; height: 72px; border-radius: 50%; background: #e6f4ea; margin: 0 auto; position: relative; }
.tick::after { content: ""; position: absolute; left: 24px; top: 20px; width: 24px; height: 13px; border-left: 4px solid var(--ok);
  border-bottom: 4px solid var(--ok); transform: rotate(-45deg); }
.wizacts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 860px) { .cta { flex-direction: column; align-items: flex-start; } .wiz { padding-top: 24px; } }
.step[hidden] { display: none; }
