/* 24Jobs public site — hand-written, no framework, ~10KB. */
:root {
  --brand: #047857; --brand-600: #059669; --brand-50: #ecfdf5; --brand-100: #d1fae5; --brand-900: #064e3b;
  --gold: #b45309; --gold-50: #fffbeb;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --card: #fff;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 4px 16px rgb(15 23 42 / .05);
  --shadow-lg: 0 8px 30px rgb(15 23 42 / .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Myanmar", "Myanmar Text", "Pyidaungsu", "Padauk", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
[lang="my"], .prose { line-height: 1.85; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding-block: 40px; }
.section-tint { background: #fff; border-block: 1px solid var(--line); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 60ch; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 2px; font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none !important; }
.brand-mark { background: var(--brand); color: #fff; border-radius: 8px; padding: 0 7px; margin-right: 3px; }
.brand-light { color: #fff; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover, .main-nav a.active { background: var(--brand-50); color: var(--brand); text-decoration: none; }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 11px 18px; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgb(4 120 87 / .25); }
.btn-primary:hover { background: var(--brand-900); }
.btn-outline { border-color: var(--brand-100); color: var(--brand); background: #fff; }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-50); }
.btn-ghost { background: #f1f5f9; color: var(--ink-2); }
.btn-ghost:hover { background: #e2e8f0; }
.btn-light { background: #fff; color: var(--brand-900); }
.btn-sm { padding: 7px 12px; font-size: .875rem; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; font-weight: 600; }
.chip:hover, .chip-active { border-color: var(--brand); color: var(--brand); background: var(--brand-50); text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: #f1f5f9; color: var(--ink-2); vertical-align: middle; }
.badge-gold { background: var(--gold-50); color: var(--gold); border: 1px solid #fde68a; }
.badge-green { background: var(--brand-50); color: var(--brand); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Hero & search */
.hero { background: radial-gradient(1200px 400px at 80% -10%, #a7f3d0 0, transparent 60%), linear-gradient(135deg, var(--brand-900), var(--brand) 60%, #0d9488); color: #fff; padding: 56px 0 64px; }
.hero-inner { max-width: 860px; }
.eyebrow { display: inline-block; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .25); padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.hero-title { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); margin: 16px 0 24px; }
.hero-sub { display: block; font-size: .5em; font-weight: 600; opacity: .9; margin-top: 10px; line-height: 1.7; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: var(--radius); padding: 6px 6px 6px 16px; box-shadow: var(--shadow-lg); color: var(--muted); max-width: 720px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.02rem; padding: 10px 4px; color: var(--ink); background: transparent; }
.search-compact { box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 16px; }
.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.hero .quick-links .muted { color: rgb(255 255 255 / .8); }
.hero .chip { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .25); color: #fff; }
.hero .chip:hover { background: #fff; color: var(--brand); }

/* Section heads */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 1.45rem; }
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.result-count { color: var(--ink-2); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #cbd5e1; }
.breadcrumbs a { color: var(--muted); }

/* Job cards */
.job-list { display: grid; gap: 12px; }
.job-card { position: relative; display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.job-card:hover { border-color: #6ee7b7; box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.job-card.is-featured { border-left: 4px solid #f59e0b; }
.job-card-body { flex: 1; min-width: 0; }
.job-card-title { margin: 0 0 2px; font-size: 1.06rem; }
.job-card-title a { color: var(--ink); }
.job-card:hover .job-card-title a { color: var(--brand); text-decoration: none; }
.job-card-company { margin: 0 0 8px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.job-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: .8rem; white-space: nowrap; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .875rem; }
.meta li { display: inline-flex; align-items: center; gap: 5px; }
.meta-salary { color: var(--brand) !important; font-weight: 700; }
.meta-lg { font-size: .95rem; gap: 8px 20px; }
.logo { flex: none; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.logo-fallback { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand); font-weight: 800; font-size: 1.3rem; }

/* Tiles & employer grid */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; }
.tile:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; box-shadow: var(--shadow); }
.tile-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tile-count { flex: none; font-size: .8rem; color: var(--muted); font-weight: 600; }
.employer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.employer-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.employer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.employer-card-title { margin: 8px 0 0; font-size: 1rem; }
.employer-card-title a { color: var(--ink); }
.employer-card .muted { margin: 0; }

/* Layout with sidebar */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sidebar { display: grid; gap: 16px; position: sticky; top: 84px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel-accent { background: linear-gradient(160deg, var(--brand-50), #fff); border-color: var(--brand-100); }
.panel-title { font-size: 1rem; margin-bottom: 10px; }
.panel-company { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.panel-company .panel-title { margin: 0; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.link-list li:last-child { border: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Job detail */
.page-head-job { padding-bottom: 28px; }
.job-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.job-hero-body { flex: 1; min-width: 260px; }
.job-hero h1 { margin-bottom: 4px; }
.job-hero-company { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.notice { background: var(--gold-50); border: 1px solid #fde68a; color: #78350f; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; }
.facts > div { background: #fff; padding: 14px 16px; }
.facts dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 650; }
.fact-salary { color: var(--brand); }
.facts-stack { grid-template-columns: 1fr; margin: 0; }
.facts-stack dd { word-break: break-word; }
.content-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.content-block > h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.prose { color: var(--ink-2); overflow-wrap: anywhere; }
.prose-plain { white-space: pre-line; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.apply-bar { position: fixed; inset: auto 0 0 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgb(15 23 42 / .08); padding: 10px 0; transform: translateY(110%); transition: transform .25s; }
.apply-bar.show { transform: none; }
.apply-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.apply-bar-inner div { display: flex; flex-direction: column; min-width: 0; }
.apply-bar-inner strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Employer profile */
.company-cover { height: 200px; background: linear-gradient(135deg, var(--brand-900), var(--brand) 60%, #0d9488) center / cover no-repeat; }
.company-head { display: flex; gap: 20px; align-items: flex-end; margin-top: -48px; flex-wrap: wrap; }
.company-head .logo { border: 4px solid #fff; box-shadow: var(--shadow-lg); }
.company-head-body { flex: 1; min-width: 260px; padding-top: 56px; }
.company-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Pagination, empty, error */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; }
.page-link { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 650; }
.page-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-link.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-gap { padding: 8px 4px; color: var(--muted); }
.empty { text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: 40px 20px; }
.error-page { text-align: center; max-width: 720px; display: flex; flex-direction: column; align-items: center; padding-block: 72px; }
.error-code { font-size: 5rem; font-weight: 900; color: var(--brand-100); line-height: 1; margin: 0; }
.error-page .search { width: 100%; margin: 20px 0; }
.error-actions { display: flex; gap: 10px; justify-content: center; }
.error-page .quick-links { justify-content: center; }

/* CTA band & footer */
.cta-band { background: var(--brand-900); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner p { color: #a7f3d0; margin: 0; max-width: 60ch; }
.site-footer { background: #0b1220; color: #cbd5e1; padding: 48px 0 0; margin-top: 40px; }
.cta-band + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.footer-grid li { padding: 3px 0; }
.footer-grid a { color: #cbd5e1; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid .muted { color: #94a3b8; font-size: .92rem; margin-top: 12px; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 36px; padding: 18px 16px; font-size: .85rem; color: #64748b; }

/* Responsive */
@media (max-width: 960px) {
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding-block: 28px; }
  .header-inner { gap: 10px; }
  .header-cta span { display: none; }
  .main-nav a { padding: 8px; }
  .job-card { padding: 14px; gap: 12px; }
  .job-card .logo { width: 44px; height: 44px; }
  .job-card-side { display: none; }
  .search { padding-left: 12px; }
  .search .btn { padding: 10px 14px; }
  .hero { padding: 36px 0 44px; }
  .content-block { padding: 18px; }
  .job-hero .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .company-cover { height: 140px; }
}
@media (min-width: 641px) { .apply-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
