/* TechFresher Jobs — professional, fast, mobile first. */
:root {
  --navy: #0b1b33;
  --navy-2: #13294b;
  --ink: #0f1d33;
  --ink-2: #3b4a62;
  --muted: #6a7488;
  --line: #e4e8ef;
  --line-2: #eef1f5;
  --bg: #f4f6fa;
  --card: #ffffff;
  --brand: #0e7c5a;
  --brand-2: #0b6a4c;
  --brand-soft: #e6f5ef;
  --link: #1a56db;
  --amber: #9a5b00;
  --amber-soft: #fff4e0;
  --amber-line: #f5ddb0;
  --red: #b42318;
  --red-soft: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 29, 51, .05), 0 1px 3px rgba(15, 29, 51, .04);
  --shadow-lg: 0 10px 30px -12px rgba(15, 29, 51, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 24px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.break { word-break: break-all; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
main { min-height: 60vh; }

/* ---------- top bar & header ---------- */
.topbar { background: #07142a; color: #a9b6cc; font-size: .8rem; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar-note { display: inline-flex; align-items: center; gap: 6px; }
.topbar-note svg { color: #5fd0a3; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a { color: #cfd8e6; }
@media (max-width: 600px) { .topbar-links { display: none; } }

.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #12a274, var(--brand)); color: #fff; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-sub { font-size: .74rem; color: #93a3bd; font-weight: 500; letter-spacing: .02em; }
.search { position: relative; margin-left: auto; display: flex; align-items: center; flex: 1; max-width: 460px; background: #fff; border-radius: 10px; padding: 4px; }
.search-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { flex: 1; min-width: 0; border: 0; padding: 9px 10px 9px 38px; font: inherit; font-size: .95rem; color: var(--ink); background: transparent; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 7px; cursor: pointer; }
.search button:hover { background: var(--brand-2); }

.main-nav { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.06); }
.nav-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.main-nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; color: #c9d3e3; padding: 12px 14px; white-space: nowrap; font-weight: 500; font-size: .93rem; }
.main-nav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.05); }
.main-nav a[aria-current] { color: #fff; }
.main-nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #2fc58f; }

@media (max-width: 640px) {
  .site-header { position: static; }
  .header-row { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .brand-sub { display: none; }
}

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(47,197,143,.18), transparent 60%), linear-gradient(180deg, var(--navy-2), #10233f); color: #fff; padding: 44px 0 52px; }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; } }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7fe0bb; background: rgba(47,197,143,.12); border: 1px solid rgba(47,197,143,.3); padding: 4px 10px; border-radius: 999px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; max-width: 640px; }
.hero-lead { color: #c2cde0; font-size: 1.05rem; max-width: 600px; margin: 0 0 22px; }
.hero-search { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 12px; max-width: 580px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 10px 12px; color: var(--ink); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: .85rem; color: #93a3bd; }
.hero-tags a { color: #dfe6f1; border: 1px solid rgba(255,255,255,.16); padding: 3px 11px; border-radius: 999px; }
.hero-tags a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(4px); }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: #a9b6cc; font-size: .86rem; }
.stat-warn strong { color: #ffc56b; }

/* ---------- category strip ---------- */
.cat-strip { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: -52px 0 20px; position: relative; }
@media (min-width: 700px) { .cat-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .cat-strip { grid-template-columns: repeat(6, 1fr); } }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-lg); display: grid; gap: 2px; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.cat-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.cat-count { color: var(--muted); font-size: .8rem; }

/* ---------- panels & lists ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.panel h2 { font-size: 1.08rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.panel-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.panel-icon-admit_card { background: #e9efff; color: #2d5bd7; }
.panel-icon-result { background: #fff3df; color: #b06a00; }
.panel-icon-exam_update { background: #f3ebff; color: #7344c9; }
.more { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.board { display: grid; grid-template-columns: 1fr; gap: 18px; }
.board .panel { margin: 0; }
@media (min-width: 860px) { .board { grid-template-columns: 1fr 1fr; } }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.post-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.post-link { flex: 1; min-width: 0; color: var(--ink); }
.post-link:hover { text-decoration: none; }
.post-link:hover .post-title { color: var(--link); }
.post-title { display: block; font-weight: 600; line-height: 1.4; }
.post-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--muted); font-size: .84rem; margin-top: 3px; }
.post-row.is-closed .post-title { color: var(--muted); font-weight: 500; }
.empty { color: var(--muted); padding: 14px 0 4px; margin: 0; }

.badge { flex: none; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; margin-top: 2px; border: 1px solid transparent; }
.badge-open { background: var(--brand-soft); color: var(--brand); border-color: #c7e9da; }
.badge-soon { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.badge-urgent { background: var(--red-soft); color: var(--red); border-color: #f6cdc8; }
.badge-closed { background: #eef0f4; color: var(--muted); border-color: #e1e5ec; }
.badge-type { background: #eaf0fe; color: #2d5bd7; border-color: #d6e1fc; }

/* ---------- closing soon ---------- */
.closing { background: var(--card); border: 1px solid var(--amber-line); border-left: 4px solid #e89a1c; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.closing-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--amber); margin-bottom: 6px; }
.closing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.closing-list li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.closing-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.closing-list a { color: var(--ink); display: grid; min-width: 0; }
.closing-list a:hover { text-decoration: none; }
.closing-list a:hover .closing-title { color: var(--link); }
.closing-title { font-weight: 600; }
.closing-meta { color: var(--muted); font-size: .84rem; }

/* ---------- trust row ---------- */
.trust { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 24px 0 18px; }
@media (min-width: 820px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.trust-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.trust h3 { font-size: .98rem; margin-bottom: 3px; }
.trust p { margin: 0; color: var(--ink-2); font-size: .9rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 1px solid var(--brand); padding: 10px 20px; border-radius: 9px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-align: center; transition: background .15s; }
.btn:hover { background: var(--brand-2); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f7f9fc; }
.btn-danger { background: #fff; color: var(--red); border-color: #f1c4bf; }
.btn-danger:hover { background: var(--red-soft); }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; padding: 0; }

/* ---------- breadcrumbs, titles, pager ---------- */
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-2); }
.page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-tight { margin-bottom: 16px; }
.chip { background: var(--card); border: 1px solid var(--line); color: var(--ink-2); padding: 6px 13px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.chip:hover, .chip-on { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip-on { background: var(--brand-soft); }
.pager { display: flex; justify-content: center; gap: 18px; align-items: center; margin-top: 8px; font-weight: 500; }

/* ---------- post page ---------- */
.post-layout { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; margin-bottom: 20px; }
@media (min-width: 960px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; } .post-side { position: sticky; top: 140px; } }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .post { padding: 20px 16px; } }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.tag { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--navy-2); padding: 4px 10px; border-radius: 6px; }
.tag-soft { background: var(--brand-soft); color: var(--brand); }
.post-tags .badge { margin-top: 0; }
.post-head h1 { font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -.025em; }
.post-sub { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 20px; font-size: .92rem; }
.post-sub span { display: inline-flex; align-items: center; gap: 6px; }
.post-sub svg { color: var(--muted); }
.editor-note { border: 1px solid #c7e9da; border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 12px 16px; border-radius: 10px; margin: 0 0 8px; }
.editor-note p { margin: 0; }
.editor-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); margin-bottom: 2px !important; }
.notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; }
.notice-closed { background: #eef0f4; color: var(--ink-2); border: 1px solid #e1e5ec; }
.block { margin-top: 26px; }
.block h2 { font-size: 1.12rem; font-weight: 700; padding-left: 12px; border-left: 4px solid var(--brand); margin-bottom: 12px; }
.kv { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kv th, .kv td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { width: 38%; color: var(--ink-2); font-weight: 600; background: #f8fafc; border-right: 1px solid var(--line); }
.kv-links td a { font-weight: 600; }
.steps { padding-left: 0; margin: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem; margin-top: 1px; }
.ad { margin: 24px 0; min-height: 90px; }

.post-side { display: grid; gap: 16px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.side-label { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.glance { margin: 0 0 14px; display: grid; gap: 0; }
.glance div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.glance div:last-child { border-bottom: 0; }
.glance dt { color: var(--muted); font-size: .9rem; }
.glance dd { margin: 0; font-weight: 700; text-align: right; }
.glance-key dd { color: var(--brand); }
.side-actions { display: grid; gap: 8px; }
.share { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.share-btn { display: grid; place-items: center; padding: 9px 4px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.share-btn:hover { background: #f7f9fc; text-decoration: none; }
.share-wa { color: #128c4b; }
.share-tg { color: #1f86c7; }
.side-tg { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.side-tg p { color: #b9c5d8; font-size: .9rem; margin: 4px 0 12px; }

.tg-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--navy-2); color: #fff; border-radius: var(--radius); padding: 20px 24px; }
.tg-cta p { margin: 2px 0 0; color: #b9c5d8; }

/* ---------- prose pages ---------- */
.prose { padding: 28px; }
.prose h2 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose li { margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #a9b6cc; padding: 44px 0 0; font-size: .92rem; }
.site-footer a { color: #d6deea; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; } .footer-about { grid-column: auto; } }
.brand-footer { margin-bottom: 12px; }
.brand-footer .brand-mark { width: 34px; height: 34px; }
.footer-about p { max-width: 380px; margin: 0; }
.footer-head { font-weight: 700; color: #fff; margin: 0 0 10px; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 18px; padding-bottom: 22px; font-size: .82rem; color: #8494ad; }

/* ---------- flashes ---------- */
.flashes { display: grid; gap: 8px; margin: 16px 0 0; }
.flash { padding: 11px 16px; border-radius: 10px; border: 1px solid; }
.flash-ok { background: var(--brand-soft); border-color: #b9e2d1; color: #0b5c40; }
.flash-error { background: var(--red-soft); border-color: #f4c3bd; color: var(--red); }
.flash-warn { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }

/* ---------- admin ---------- */
.admin-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.admin-bar form { margin-left: auto; }
.inline { display: inline; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { padding: 7px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.tab-on { border-color: var(--navy); color: var(--navy); font-weight: 700; }
.count { background: var(--bg); border-radius: 999px; padding: 0 7px; font-size: .8rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 640px) { .admin-table th:nth-child(2), .admin-table td:nth-child(2), .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; } }
.state { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.state-draft { background: var(--amber-soft); color: var(--amber); }
.state-published { background: var(--brand-soft); color: var(--brand); }
.state-rejected { background: var(--red-soft); color: var(--red); }

.form { display: grid; gap: 14px; }
.fld { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.hint { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 9px 12px; border: 1px solid #cfd5df; border-radius: 9px; background: #fff; font-weight: 400;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(14,124,90,.18); border-color: var(--brand); }
.search input[type=search], .hero-search input[type=search] { border: 0; background: transparent; border-radius: 0; }
.search input[type=search] { padding: 9px 10px 9px 38px; }
.hero-search input[type=search] { padding: 10px 12px; }
.search input:focus, .hero-search input:focus { outline: none; }
.form label { display: grid; gap: 5px; }
.row2, .row3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } }
.edit-grid { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .edit-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .side { position: sticky; top: 140px; } }
.side .panel h2 { font-size: 1rem; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.raw { white-space: pre-wrap; font-size: .78rem; max-height: 360px; overflow: auto; background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 0; }

/* =====================================================================
   UI/UX pass 2: page headers, filters, list layout, pager, apply bar
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #2fc58f; outline-offset: 2px; border-radius: 4px; }
html { scroll-padding-top: 140px; }
.ico { flex: none; vertical-align: -2px; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(0,0,0,.45); }

/* page header strip */
.page-hero { background: radial-gradient(900px 260px at 90% -20%, rgba(47,197,143,.16), transparent 60%), linear-gradient(180deg, var(--navy-2), #10233f); color: #fff; padding: 22px 0 30px; }
.page-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.page-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fe0bb; margin: 0 0 6px; }
.page-lead { color: #c2cde0; max-width: 680px; margin: 0; }
.crumbs-dark { margin-bottom: 16px; color: #93a3bd; }
.crumbs-dark a { color: #c9d3e3; }
.crumbs-dark [aria-current] { color: #fff; }
.hero-search-sm { margin-top: 18px; max-width: 560px; }
.page-tight { padding-top: 20px; }

/* toolbar & filters */
.toolbar { display: grid; gap: 12px; margin-bottom: 16px; }
.filter-chips { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.fchip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); padding: 7px 13px; border-radius: 999px; font-size: .87rem; font-weight: 500; }
.fchip span { background: var(--line-2); color: var(--muted); border-radius: 999px; padding: 0 7px; font-size: .76rem; font-weight: 600; }
.fchip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.fchip-on { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.fchip-on:hover { color: #fff; }
.fchip-on span { background: rgba(255,255,255,.16); color: #fff; }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.result-count { margin: 0; color: var(--ink-2); font-size: .93rem; }
.result-count strong { color: var(--ink); }
.toolbar-actions { display: flex; align-items: center; gap: 14px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9rem; font-weight: 500; user-select: none; }
.toggle:hover { text-decoration: none; color: var(--ink); }
.toggle-track { width: 36px; height: 20px; border-radius: 999px; background: #cfd5df; position: relative; transition: background .15s; }
.toggle-dot { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.toggle-on .toggle-track { background: var(--brand); }
.toggle-on .toggle-dot { left: 18px; }
.sort select { width: auto; padding: 7px 34px 7px 12px; font-size: .9rem; font-weight: 500; border-radius: 9px; background-color: #fff; cursor: pointer; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }

/* list layout */
.list-layout, .info-layout { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .list-layout, .info-layout { grid-template-columns: minmax(0, 1fr) 300px; } .list-side, .info-side { position: sticky; top: 140px; } }
.list-panel { margin: 0; padding-top: 6px; padding-bottom: 6px; }
.list-side, .info-side { display: grid; gap: 16px; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 500; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--link); text-decoration: none; }
.side-links a[aria-current] { color: var(--brand); font-weight: 700; }
.side-links .ico { color: var(--muted); }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.tips li { display: flex; gap: 9px; }
.tips li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c5a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* richer job rows */
.post-row { padding: 15px 0; }
.post-row:first-child { padding-top: 12px; }
.list-panel .post-row { padding-left: 4px; padding-right: 4px; }
.post-meta { gap: 4px 16px; }
.post-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .ico { color: #9aa4b6; }
.meta-date { color: var(--ink-2); font-weight: 500; }
.new-tag { display: inline-block; vertical-align: 2px; margin-left: 4px; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #e5484d; padding: 2px 6px; border-radius: 4px; }
.post-side-badge { flex: none; display: flex; }
.post-row.is-closed .meta-date { color: var(--muted); font-weight: 400; }

/* empty state */
.empty-state { text-align: center; padding: 40px 16px 28px; }
.empty-state h2 { font-size: 1.15rem; margin-top: 12px; }
.empty-state p { color: var(--ink-2); max-width: 460px; margin: 6px auto 14px; }
.empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--line-2); color: var(--muted); }

/* numbered pager */
.pager { flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pg { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .92rem; }
.pg:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pg-on { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.pg-gap { border: 0; background: none; min-width: 20px; padding: 0; color: var(--muted); }
.pg-off { color: #b3bbc8; pointer-events: none; }

/* info pages */
.prose { margin: 0; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.updated { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; }

/* 404 */
.notfound { text-align: center; padding: 48px 20px; max-width: 620px; margin: 20px auto; }
.nf-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 8px; background: linear-gradient(135deg, var(--brand), var(--navy-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-search { margin: 20px auto; border: 1px solid var(--line); box-shadow: none; }
.nf-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* mobile apply bar on job pages */
.apply-bar { display: none; }
@media (max-width: 959px) {
  .apply-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -12px rgba(15,29,51,.25); }
  .apply-bar-text { display: grid; line-height: 1.25; }
  .apply-bar-text span { font-size: .75rem; color: var(--muted); }
  .apply-bar .btn { padding: 11px 22px; }
  body:has(.apply-bar) { padding-bottom: 72px; }
  body:has(.apply-bar) .to-top { bottom: 86px; }
}

/* back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-2); color: #fff; box-shadow: var(--shadow-lg); }
.to-top:hover { background: var(--brand); text-decoration: none; }
.to-top[hidden] { display: none; }


@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* refinements */
@media (min-width: 760px) { .filter-chips { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 759px) {
  .nav-row, .filter-chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .kv th { width: 42%; }
}

/* compact header on list pages: breadcrumb + title only */
.page-hero-compact { padding: 16px 0 22px; }
.page-hero-compact .crumbs-dark { margin-bottom: 8px; }
.page-hero-compact h1 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2rem); }
html { scroll-padding-top: 110px; }

/* walk-in city filter */
.city-filter { display: grid; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.city-label { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.city-chips .fchip { background: #f8fafc; }
.city-chips .fchip-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.panel-icon-walk_in { background: #e6f6fb; color: #0f7896; }
.board .panel:last-child:nth-child(odd) { grid-column: 1 / -1; }
.panel-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: .85rem; color: var(--muted); }
.panel-cities a { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--ink-2); font-weight: 500; }
.panel-cities a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* WhatsApp share box (admin) */
.wa-text { width: 100%; font: inherit; font-size: .9rem; line-height: 1.45; padding: .6rem .7rem; border: 1px solid var(--line, #d0d7de);
  border-radius: 8px; background: var(--bg-soft, #f6f8fa); color: inherit; resize: vertical; margin-bottom: .6rem; }

/* WhatsApp join buttons */
.btn-wa { background: #1a8f4c; border-color: #1a8f4c; color: #fff; }
.btn-wa:hover { background: #157a40; }
.side-card .btn-block + .btn-block { margin-top: 8px; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Walk-ins: state / city chooser and date groups */
.place-filter { gap: 10px; }
.place-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.place-pick select { flex: 1 1 220px; max-width: 340px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); }
.place-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; }
.place-head { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .place-row { grid-template-columns: 1fr; gap: 4px; } }
.date-group { display: flex; align-items: center; gap: 8px; margin: 18px 4px 6px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.date-group:first-child { margin-top: 4px; }
.date-group span { background: var(--line-2); color: var(--muted); border-radius: 999px; padding: 0 8px; font-size: .74rem; }
.date-today { color: #b42318; }
.date-past { color: var(--muted); }

/* Job page: official-link tag and "Job summary" box */
.tag-official { background: #e8f7ef; color: #0b6a4c; border: 1px solid #bfe6d2; }
.jsum { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; box-shadow: var(--shadow); }
.jsum-title { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jsum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin: 0; }
.jsum-grid div { min-width: 0; }
.jsum-grid .g-wide { grid-column: 1 / -1; }
.jsum-grid dt { font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.jsum-grid dd { margin: 0; color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.jsum-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jsum-warn { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff7e6; color: #8a5a00; font-size: .84rem; }

/* Deadlines calendar page */
.dl-panel { padding: 8px 18px 16px; }
.dl-list { list-style: none; margin: 0 0 6px; padding: 0; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.dl-row:last-child { border-bottom: 0; }
.dl-kind { flex: 0 0 auto; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eef2ff; color: #3949ab; white-space: nowrap; }
.dl-last-date { background: #fdecea; color: #b42318; }
.dl-walk-in { background: #e8f7ef; color: #0b6a4c; }
.dl-register-by { background: #fff4e5; color: #8a5a00; }
.dl-title { flex: 1 1 auto; min-width: 0; color: var(--ink); font-weight: 600; }
.dl-cal { flex: 0 0 auto; font-size: 1.15rem; text-decoration: none; padding: 4px 6px; border-radius: 8px; }
.dl-cal:hover { background: var(--line-2); text-decoration: none; }
.closing-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.closing-head .view-all { font-size: .88rem; font-weight: 600; }
@media (max-width: 560px) {
  .dl-row { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 4px; }
  .dl-kind { grid-column: 1; grid-row: 1; justify-self: start; }
  .dl-title { grid-column: 1; grid-row: 2; }
  .dl-cal { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.place-filter .place-row { grid-template-columns: 70px 1fr; }
@media (max-width: 560px) { .place-filter .place-row { grid-template-columns: 1fr; } }

/* small phones: never let a long word, link or table push the page sideways */
.post-layout > *, .list-layout > *, .info-layout > * { min-width: 0; }
.kv td, .kv th, .post h1, .post-sub span, .jsum-grid dd { overflow-wrap: anywhere; }
@media (max-width: 760px) { .post-layout, .list-layout, .info-layout { grid-template-columns: minmax(0, 1fr); } }

.tool-card { display: block; color: var(--ink); background: linear-gradient(160deg, var(--brand-soft) 0%, #fff 60%); border-color: #cfe9de; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-card, .tool-card:hover, .tool-card * { text-decoration: none !important; }
.tool-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tool-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.tool-head { display: flex; gap: 12px; align-items: flex-start; }
.tool-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(14,124,90,.6); }
.tool-text { min-width: 0; }
.tool-kicker { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-2); background: #fff; border: 1px solid #cfe9de; border-radius: 999px; padding: 2px 8px; }
.tool-head strong { display: block; font-size: 1.05rem; line-height: 1.3; margin-top: 6px; color: var(--ink); }
.tool-sub { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.tool-list { display: grid; gap: 7px; margin: 14px 0 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; }
.tool-list span { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.tool-list svg { flex: none; color: var(--brand); }
.tool-cta { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem; transition: background .15s; }
.tool-card:hover .tool-cta { background: var(--brand-2); }
.tool-card:hover .tool-cta svg { transform: translate(2px, -2px); }
.tool-cta svg { transition: transform .15s; }
.apply-tip { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; background: var(--brand-soft); border: 1px solid #cfe9de; border-radius: 10px; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.apply-tip svg { flex: none; margin-top: 2px; color: var(--brand); }
.apply-tip a { font-weight: 600; color: var(--brand-2); }
