/* Vazirmatn (SIL Open Font License, see /vazirmatn-license.txt) for the Farsi pages */
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 400; font-display: swap; src: url(/vazirmatn-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 400; font-display: swap; src: url(/vazirmatn-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 600; font-display: swap; src: url(/vazirmatn-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 600; font-display: swap; src: url(/vazirmatn-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 700; font-display: swap; src: url(/vazirmatn-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 700; font-display: swap; src: url(/vazirmatn-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 800; font-display: swap; src: url(/vazirmatn-arabic-800.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 800; font-display: swap; src: url(/vazirmatn-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #0f1b2d;
  --ink2: #3b4a5e;
  --muted: #6b7a8f;
  --line: #e3e8ef;
  --bg: #f5f7fa;
  --card: #fff;
  --red: #d52b1e;
  --red-dark: #b0221a;
  --green: #11795a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 14px rgba(15, 27, 45, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin: .3em 0 .2em; }
h2 { font-size: 1.25rem; margin: 1.6em 0 .7em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* header */
.top { background: var(--ink); color: #fff; padding-bottom: 18px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { color: #fff; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.leaf { width: 30px; height: 30px; border-radius: 8px; background: var(--red); display: grid; place-items: center; }
.leaf svg { width: 20px; height: 20px; fill: #fff; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: #cfd8e3; font-weight: 500; font-size: .95rem; }
.top nav a:hover { color: #fff; }
.search { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; }
.search input {
  width: 100%; height: 50px; border: 0; border-radius: 10px; padding: 0 16px;
  font-size: 1rem; color: var(--ink); background: #fff;
}
.search input:focus { outline: 3px solid #f5b8b3; }
.search button {
  height: 50px; border: 0; border-radius: 10px; padding: 0 26px; font-weight: 700; font-size: 1rem;
  background: var(--red); color: #fff; cursor: pointer;
}
.search button:hover { background: var(--red-dark); }

/* home */
.hero { padding: 28px 0 6px; }
.lead { font-size: 1.1rem; color: var(--ink2); max-width: 760px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  color: var(--ink); font-size: .92rem;
}
.chip span { color: var(--muted); font-size: .85em; margin-left: 4px; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.grid.prov { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  color: var(--ink); display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow);
}
.tile span { color: var(--muted); font-size: .9rem; }
.tile:hover { border-color: var(--red); text-decoration: none; }
.two { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }

/* lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow);
}
.card:hover { border-color: #c7d0dc; }
.card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.card h3 a { color: var(--ink); }
.meta { margin: 0; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .95rem; }
.meta .emp { font-weight: 600; }
.meta .agency { color: var(--muted); font-size: .85em; }
.meta .loc::before { content: "📍 "; font-size: .85em; }
.row { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pay { color: var(--green); font-weight: 700; margin-right: 6px; }
.tag { background: #eef2f7; color: var(--ink2); border-radius: 6px; padding: 2px 8px; font-size: .82rem; }
.when { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.links li span { color: var(--muted); font-size: .9rem; }
.links.small li { padding: 5px 0; font-size: .93rem; }
.links.cols { columns: 3 240px; column-gap: 28px; }
.links.cols li { break-inside: avoid; }
.links a.on { font-weight: 700; color: var(--ink); }
.btn {
  display: inline-block; border: 1px solid var(--ink); color: var(--ink); border-radius: 10px;
  padding: 10px 18px; font-weight: 600; margin-top: 14px;
}
.btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; font-size: 1.05rem; padding: 13px 24px; }
.btn.primary:hover { background: var(--red-dark); }

/* search page */
.crumbs { font-size: .88rem; color: var(--muted); margin-top: 20px; }
.count { color: var(--ink2); margin: 0 0 18px; }
.results { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 14px; position: sticky; top: 12px; }
.filters h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg a { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .88rem; color: var(--ink2); }
.seg a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg a:hover { text-decoration: none; border-color: var(--ink); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 22px 0; color: var(--muted); }
.pager a { font-weight: 600; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }

/* job page */
.job { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; margin-bottom: 30px; }
.job-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px 26px; box-shadow: var(--shadow); }
.meta.big { font-size: 1.05rem; }
.pay.big { font-size: 1.3rem; margin: 10px 0 0; }
.note { background: #fff8e6; border: 1px solid #f3e1a6; border-radius: 10px; padding: 10px 14px; font-size: .9rem; color: #6a5414; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 22px; margin: 0; }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.facts.more dd { font-weight: 400; }
.list.compact .card { padding: 12px 14px; }
.list.compact .card h3 { font-size: 1rem; }
.prose { max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 28px 20px; margin: 20px 0 30px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0 34px; color: var(--muted); font-size: .88rem; background: #fff; }

@media (max-width: 900px) {
  .two, .job, .results { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 640px) {
  .search { grid-template-columns: 1fr; }
  .top nav { gap: 12px; }
  .top nav a { font-size: .88rem; }
  .top-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .job-main { padding: 16px; }
}

/* v5 additions */
.logo img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.top nav a.lang { border: 1px solid #3a4a62; border-radius: 8px; padding: 2px 10px; }
.when { color: var(--muted); font-size: .85rem; }
/* Honeypot field: hidden without pushing it off-screen (left: -9999px made right-to-left pages 10,000px wide on phones) */
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.alert-box { margin: 22px 0 6px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 14px 18px; }
.alert-box h3 { margin: 0 0 4px; font-size: 1.05rem; }
.alert-box p { margin: 0 0 10px; color: var(--ink2); font-size: .93rem; }
.alert-row { display: flex; gap: 8px; flex-wrap: wrap; }
.alert-row input { flex: 1 1 220px; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 1rem; }
.alert-row button, .form button { height: 44px; border: 0; border-radius: 10px; padding: 0 18px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.alert-row button:hover { background: #24344c; }
.form label { display: block; font-weight: 600; margin: 12px 0; }
.form input, .form textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.error { color: var(--red-dark); font-weight: 600; }
.ad { margin: 6px 0; min-height: 90px; }
.filter-box { width: 100%; max-width: 420px; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: 1rem; margin: 6px 0 18px; }

/* salaries */
.sal-cards { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin: 14px 0 8px; }
.sal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.sal-card span { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.sal-card strong { display: block; font-size: 1.35rem; margin-top: 4px; }
.sal-card em { display: block; font-style: normal; color: var(--ink2); font-size: .9rem; margin-top: 2px; }
.sal-card.main { border-color: #b7e0cf; background: #f2fbf7; }
.sal-card.main strong { color: var(--green); font-size: 1.8rem; }
.vs { font-weight: 600; }
.sal-two { margin-top: 10px; }
.sal-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.sal-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.sal-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.sal-table td:nth-child(2) { font-weight: 700; color: var(--green); white-space: nowrap; }
.sal-table tr:last-child td { border-bottom: 0; }
.bar { display: block; width: 140px; height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.trend { display: flex; align-items: flex-end; gap: 4px; height: 170px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 26px; }
.trend div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.trend i { display: block; width: 100%; max-width: 26px; background: #9fd4bf; border-radius: 4px 4px 0 0; }
.trend div:last-child i { background: var(--green); }
.trend b { font-size: .65rem; color: var(--muted); font-weight: 600; }
.trend span { position: absolute; bottom: -20px; font-size: .62rem; color: var(--muted); white-space: nowrap; }
.sal-teaser { display: block; background: #f2fbf7; border: 1px solid #b7e0cf; border-radius: var(--radius); padding: 12px 16px; margin: 0 0 14px; color: var(--ink); }
.sal-teaser:hover { text-decoration: none; border-color: var(--green); }
.sal-teaser span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sal-teaser strong { display: block; font-size: 1.4rem; color: var(--green); }
.sal-teaser em { font-style: normal; color: #1d4ed8; font-size: .92rem; }
.results .sal-teaser { max-width: 420px; }

@media (max-width: 900px) {
  .sal-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .trend b { display: none; }
}

/* v6: fair pay, saved, tools, insights */
.card { position: relative; }
.save { position: absolute; top: 12px; right: 12px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 9px; font-size: .82rem; color: var(--ink2); cursor: pointer; }
.save.on { background: #fff8e6; border-color: #f3e1a6; color: #8a6a00; }
.save.big { position: static; font-size: 1rem; padding: 12px 18px; border-radius: 10px; vertical-align: middle; }
.card h3 { padding-right: 84px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fair { border-radius: 6px; padding: 2px 8px; font-size: .8rem; font-weight: 600; }
.fair.up { background: #e7f6ef; color: var(--green); }
.fair.down { background: #fdf0e6; color: #a2520f; }
.fair-line { margin: 8px 0 0; font-weight: 600; color: var(--ink2); }
.fair-line.up { color: var(--green); }
.fair-line.down { color: #a2520f; }
.dist { color: var(--ink2); font-weight: 600; }
.insights { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; margin: 12px 0; }
.insights p { margin: 8px 0; }
.small { font-size: .85rem; }
.chips.small .chip { font-size: .84rem; padding: 4px 11px; }
.near { display: flex; gap: 6px; flex-wrap: wrap; }
.near input { width: 96px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; text-transform: uppercase; }
.near select { height: 34px; border: 1px solid var(--line); border-radius: 8px; }
.near button { height: 34px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; padding: 0 12px; font-weight: 600; cursor: pointer; }
.linkbtn { background: none; border: 0; color: #1d4ed8; cursor: pointer; padding: 0; font: inherit; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.tool:hover { border-color: var(--red); text-decoration: none; }
.tool span { color: var(--ink2); font-size: .92rem; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 10px 0 18px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.calc input, .calc select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; }
.calc .btn { margin: 0; height: 42px; padding: 0 18px; }
.th-table { max-width: 520px; margin-top: 12px; }
.th-table td:nth-child(2) { text-align: right; color: var(--ink); }
.th-table td.neg { color: #a2520f; }
.th-table tr.total td { font-weight: 800; font-size: 1.05rem; color: var(--green); border-top: 2px solid var(--line); }
.form textarea { min-height: 200px; }
.trend-head { font-weight: 700; }
.trend-head.up { color: var(--green); }
.trend-head.down { color: #a2520f; }
.trend.counts i { background: #c9d5e6; }
.trend.counts div:last-child i { background: var(--ink); }
@media (max-width: 640px) { .card h3 { padding-right: 70px; } .save { top: 10px; right: 10px; } }

/* v7: employer jobs, featured, forms */
.tag.live { background: #e7f6ef; color: var(--green); font-weight: 600; }
.tag.feat { background: #fff3c4; color: #7a5a00; font-weight: 700; }
.grid.live { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.desc { background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; max-height: 640px; overflow: auto; }
.desc p { margin: 10px 0; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.form select { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }

/* v8: Farsi (right-to-left) and newcomer guide */
[dir=rtl] body { font-family: Vazirmatn, Tahoma, "Segoe UI", system-ui, sans-serif; }
[dir=rtl] .chip span { margin-left: 0; margin-right: 4px; }
[dir=rtl] .pay { margin-right: 0; margin-left: 6px; }
[dir=rtl] .alert-box { border-left: 1px solid var(--line); border-right: 4px solid var(--red); }
[dir=rtl] .sal-table th { text-align: right; }
[dir=rtl] .save { right: auto; left: 12px; }
[dir=rtl] .card h3 { padding-right: 0; padding-left: 84px; }
[dir=rtl] .th-table td:nth-child(2) { text-align: left; }
[dir=rtl] input[name=amount], [dir=rtl] input[name=near], [dir=rtl] input[type=email], [dir=rtl] input[type=url] { direction: ltr; text-align: right; }
@media (max-width: 640px) { [dir=rtl] .card h3 { padding-left: 70px; } [dir=rtl] .save { left: 10px; right: auto; } }
.top nav a[lang] { font-weight: 600; }
.steps { padding-inline-start: 1.2em; }
.steps li { margin: 0 0 18px; }
.steps h2 { font-size: 1.1rem; margin: 0 0 4px; }
.note { background: #fff8e6; border: 1px solid #f0d58a; border-radius: var(--radius); padding: 12px 16px; }
.free-tag { color: var(--green); }

/* Employer account */
.acc-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.acc-top form { margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.acc-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.acc-item.hl { border-color: var(--red); box-shadow: 0 0 0 2px rgba(213, 43, 30, .12); }
.acc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 1.05rem; }
.acc-st { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.acc-st.live { background: #e6f6ec; color: #17693a; }
.acc-st.wait { background: #fff4d6; color: #7a5a00; }
.acc-st.off { background: #eef0f3; color: #5b6472; }
.acc-item .small, p.small { font-size: .85rem; margin-top: 2px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.acc-actions form { margin: 0; }
.acc-actions .btn { margin: 0; padding: 8px 14px; font-size: .9rem; }
.acc-actions .btn.primary { padding: 8px 16px; font-size: .95rem; }
.acc-actions button { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.acc-actions button.link-danger { border-color: transparent; color: var(--red-dark); text-decoration: underline; }
.form input[readonly] { background: #f4f5f7; color: var(--muted); }

/* Admin */
.adm { padding-bottom: 32px; }
.adm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.adm-top form { margin: 0; }
.adm-tabs, .adm-range { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; align-items: center; }
.adm-tabs a, .adm-range a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.adm-tabs a[aria-current], .adm-range a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.adm-range .muted { margin-left: 6px; }
.adm-attn { margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile-l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.tile-v { font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile-s { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 8px; margin: 0 0 18px; }
.chart figcaption { font-weight: 700; margin-bottom: 6px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart svg text { font-size: 11px; fill: #6b7280; font-variant-numeric: tabular-nums; }
.chart svg .grid { stroke: #e5e7eb; stroke-width: 1; }
.chart svg .bar:hover path { opacity: .8; }
.chart details { margin-top: 6px; font-size: .85rem; }
.chart summary { cursor: pointer; color: var(--muted); }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; }
.adm-scroll { overflow-x: auto; margin-bottom: 14px; }
.adm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; }
.adm-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.adm-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table td button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: .85rem; }
.adm .btn { margin: 0 6px 6px 0; }

/* AI */
.ai-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); border-radius: 6px; padding: 2px 7px; vertical-align: middle; }
.ai-box { background: #fff; border: 1px solid #ddd6fe; border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; box-shadow: 0 1px 0 rgba(124, 58, 237, .06); }
.hero .ai-box { color: var(--ink); }
.ai-box label { display: block; font-weight: 700; margin-bottom: 8px; }
.ai-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-row input { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; }
.ai-row button { height: 44px; border: 0; border-radius: 10px; padding: 0 18px; background: #6d28d9; color: #fff; font-weight: 700; cursor: pointer; }
.ai-row button:disabled, .ai-job button:disabled, .form button:disabled { opacity: .6; cursor: progress; }
.ai-box.compact { padding: 10px 12px; margin: 10px 0 14px; }
.ai-box p { margin: 6px 0 0; }
.ai-note { margin: 8px 0; }
.ai-job { border: 1px solid #ddd6fe; background: #faf8ff; border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.ai-job h2 { font-size: 1.05rem; margin: 0 0 10px; }
.ai-job form { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-job p { margin: 0; }
.ai-job select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; background: #fff; }
.ai-job .btn, .ai-job button.btn { margin: 0; }
.ai-result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 12px; margin: 14px 0 22px; }
.ai-result h2 { font-size: 1.15rem; margin-top: 18px; }
.ai-result h3 { font-size: 1rem; margin-top: 14px; }
.ai-matches { list-style: none; padding: 0; display: grid; gap: 10px; }
.ai-matches li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fit { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #eef0f3; color: #4b5563; white-space: nowrap; }
.fit.high { background: #e6f6ec; color: #17693a; }
textarea.letter { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; line-height: 1.55; }
.prose.wide { max-width: 860px; }
.meter { height: 10px; background: #eef0f3; border-radius: 999px; overflow: hidden; margin: -6px 0 8px; }
.meter span { display: block; height: 100%; background: #7c3aed; border-radius: 999px; }
.ai-job .btn, .ai-job button.btn { font-size: .95rem; padding: 9px 16px; height: auto; line-height: 1.3; border-radius: 10px; }
.tile-v .tile-small { font-size: 1rem; font-weight: 700; word-break: break-all; }
.meta .cat { color: var(--muted); font-size: .9em; margin-right: 10px; }

/* Accounts */
.auth { max-width: 460px; }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; padding: 12px 16px; margin: 14px 0 4px; }
.btn.google:hover { background: #f6f7f9; color: var(--ink); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 10px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px !important; }
[dir=rtl] .pw input { padding-right: 12px !important; padding-left: 46px !important; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-40%); height: 34px !important; width: 36px; padding: 0 !important; border: 0; border-radius: 8px !important; background: transparent !important; color: var(--muted) !important; display: flex; align-items: center; justify-content: center; cursor: pointer; }
[dir=rtl] .pw-eye { right: auto; left: 6px; }
.pw-eye:hover { color: var(--ink) !important; background: #f1f3f6 !important; }
.link-login { margin: 18px 0; }
.link-login summary { cursor: pointer; color: var(--muted); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
label.check input { width: auto !important; margin: 0 !important; }
.ua-tabs .adm-link { margin-left: auto; }
[dir=rtl] .ua-tabs .adm-link { margin-left: 0; margin-right: auto; }
.ua-track { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.ua-track select, .ua-track input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: .9rem; background: #fff; }
.ua-track input { flex: 1 1 200px; min-width: 0; }
.ua-track button { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.ua-track button.link-danger { border-color: transparent; color: var(--red-dark); text-decoration: underline; }
.ua-pre { white-space: pre-wrap; font: inherit; font-size: .9rem; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: 320px; overflow: auto; }
.btn.danger { background: #fff; border-color: var(--red); color: var(--red-dark); }
.btn.danger:hover { background: var(--red); color: #fff; }
a.tile { text-decoration: none; color: inherit; }
a.tile:hover { border-color: #c7cfdb; }
/* Header: room for the Account link without wrapping */
.logo { white-space: nowrap; flex-shrink: 0; }
.top nav { align-items: center; justify-content: flex-end; }
@media (max-width: 1240px) and (min-width: 641px) { .top nav { gap: 13px; } .top nav a { font-size: .9rem; } }
.top nav a.nav-acc { color: #fff; font-weight: 600; }
.top nav a.nav-cv { color: #fff; font-weight: 700; background: #6d28d9; border-radius: 999px; padding: 4px 12px; }
.top nav a.nav-cv:hover { background: #5b21b6; text-decoration: none; }
.related { margin-top: 28px; padding-top: 6px; border-top: 2px dashed var(--line); } .related h2 { margin-bottom: 2px; } .related .card { margin-top: 10px; }

/* Typing suggestions, near me, map */
.search label { position: relative; display: block; }
.search label .geo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 1.1rem; padding: 0; }
[dir=rtl] .search label .geo { right: auto; left: 6px; }
.search label .geo:hover { background: #f1f3f6; }
.search input[name=where] { padding-right: 44px; }
[dir=rtl] .search input[name=where] { padding-right: 14px; padding-left: 44px; }
ul.sg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 27, 45, .18); max-height: 340px; overflow: auto; }
ul.sg li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); cursor: pointer; font-size: .95rem; }
ul.sg li small { color: var(--muted); font-variant-numeric: tabular-nums; }
ul.sg li.on, ul.sg li:hover { background: #f1f4f8; }
ul.sg li.sg-none, ul.sg li.sg-none:hover { background: #fff7e6; color: #7a4b00; cursor: default; white-space: normal; font-size: .9rem; }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.count-row .count { margin: 0; }
.map-btn { margin: 0; padding: 7px 14px; font-size: .9rem; }
#jobmap { height: 420px; border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0 16px; background: #eef2f6; z-index: 1; }
#jobmap > p { padding: 16px; }

[dir=rtl] body, [dir=rtl] input, [dir=rtl] button, [dir=rtl] select, [dir=rtl] textarea { font-family: Vazirmatn, Tahoma, sans-serif; }
[dir=rtl] body { line-height: 1.75; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { line-height: 1.5; letter-spacing: 0; }

/* ---- apply on this site and the AI resume builder */
.btn.ai { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.btn.ai:hover { background: #5b21b6; }
.btn.big { font-size: 1.1rem; padding: 14px 28px; }
.ap-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.ap-choices h3 { margin: 0 0 6px; }
.ap-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 14px; }
.form label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.form label.inline select { width: auto; }
.ap-sent { color: #1d6b3a; margin-top: 4px; }
.ap-cover { white-space: normal; background: #f7f8fa; border-radius: 10px; padding: 12px 14px; margin-top: 8px; line-height: 1.55; }
.ap-item details summary { cursor: pointer; font-weight: 600; margin-top: 8px; }
.rb-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rb-tips ul { margin: 6px 0 0; }
.rb-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 10px 0; }
.rb-form .rb-bar:first-of-type { position: sticky; top: 0; z-index: 5; background: var(--bg, #f5f7fa); }
.rb-form .row2 { grid-template-columns: 1fr 1fr; }
.rb-block { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 8px; margin: 0 0 12px; background: #fff; }
.rb-block legend { font-weight: 700; padding: 0 6px; }
.rb-add > summary { cursor: pointer; font-weight: 600; color: var(--red); margin: 4px 0 12px; }
.form label.check.small { font-weight: 500; }
@media (max-width: 640px) { .rb-form .row2 { grid-template-columns: 1fr; gap: 0; } }

.form label textarea { font-weight: 400; line-height: 1.5; }

/* ---- immigration: employers list, notes and tags */
.tag.immig { background: #eef6ff; color: #1d4ed8; border-color: #c7dcff; }
.immig-note { background: #eef6ff; border: 1px solid #c7dcff; border-radius: 12px; padding: 10px 14px; margin: 12px 0; line-height: 1.5; }
.immig-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.immig-side h2 { font-size: 1.05rem; margin: 0 0 6px; }
.immig-side p { margin: 6px 0; }
.immig-cta { display: flex; flex-direction: column; gap: 4px; background: #eef6ff; border: 1px solid #c7dcff; border-radius: 14px; padding: 14px 16px; margin: 14px 0 18px; color: var(--ink); text-decoration: none; }
.immig-cta:hover { border-color: #1d4ed8; text-decoration: none; }
.immig-cta span { color: var(--muted); }
.immig-box { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px 10px; margin: 12px 0; }
.immig-box legend { font-weight: 700; padding: 0 6px; }
.lmia-form { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .9fr auto; gap: 10px; align-items: end; margin: 12px 0; }
.lmia-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; position: relative; }
.lmia-form input, .lmia-form select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; }
.lmia-form .btn { height: 42px; padding: 0 18px; }
.lmia-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.lmia-card .acc-actions { margin-top: 8px; }
.note.warn { background: #fff7e6; border-color: #f3d38a; }
.chips-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip small { color: var(--muted); margin-inline-start: 4px; }
@media (max-width: 860px) { .lmia-form { grid-template-columns: 1fr 1fr; } .lmia-form .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .lmia-form { grid-template-columns: 1fr; } }
.aip-list { padding-inline-start: 20px; line-height: 1.9; }
.tag.pil { background: #f0f9ff; color: #026aa2; border-color: #b9e6fe; }
.tag.hiring { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.tag.nohire { background: #f2f4f7; color: #475467; border-color: #e4e7ec; }
.pil-card { border-inline-start: 3px solid #0ba5ec; }
.tag.aip { background: #ecfdf3; color: #067647; border-color: #abefc6; text-decoration: none; }
a.tag.aip:hover { background: #d1fadf; }
.aip-card { border-inline-start: 3px solid #12b76a; }
.aip-card h3 + .muted { margin: -2px 0 4px; }
.im-jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; font-size: .92rem; color: var(--muted, #667085); }
.im-jump a { padding: 6px 12px; border: 1px solid var(--line, #e4e7ec); border-radius: 999px; text-decoration: none; background: #fff; font-weight: 600; }
.im-jump a:hover { border-color: #98a2b3; }
.im-jump em { display: block; font-style: normal; font-weight: 500; font-size: .78rem; color: var(--muted, #667085); }
.im-jump a { line-height: 1.25; }
.im-sep { background: #f0f9ff; border: 1px solid #b9e6fe; color: #065986; border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
#aip, #rcip { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--line, #e4e7ec); }
.im-jump small { font-weight: 500; color: var(--muted, #667085); margin-inline-start: 2px; }
#aip, #lmia, #rcip { scroll-margin-top: 80px; }

/* ---- about this occupation (job pages) */
.occ { margin: 26px 0 8px; }
.occ h3 { font-size: 1rem; margin: 16px 0 6px; }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 10px 0 6px; }
.occ-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.occ-k { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.occ-stars { font-size: 1.25rem; color: #e7a400; letter-spacing: 1px; }
.occ-stars span { color: #d9dee6; }
.occ-stars strong { font-size: 1rem; color: var(--ink); letter-spacing: 0; margin-inline-start: 6px; }
.occ-stars.s1, .occ-stars.s2 { color: #c2410c; }
.occ-card details summary { cursor: pointer; font-size: .9rem; margin-top: 6px; color: var(--link, #1d4ed8); }
.occ-text { font-size: .9rem; line-height: 1.5; margin-top: 6px; }
.occ-text p, .occ-text ul { margin: 6px 0; }
.occ-wage { display: flex; justify-content: space-between; gap: 6px; text-align: center; }
.occ-wage span { display: block; font-size: .75rem; color: var(--muted); }
.occ-wage b { font-size: .98rem; }
.occ-bar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #fde2e2, #e6f4ea 50%, #d1fae5); margin: 10px 0 2px; }
.occ-bar i { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--ink); transform: translateX(-2px); }
[dir=rtl] .occ-bar i { transform: translateX(2px); }
.occ-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.occ-list li { margin: 4px 0; }
.occ-desc ul { margin: 4px 0 8px; padding-inline-start: 20px; line-height: 1.55; }
.occ-wage b { white-space: nowrap; unicode-bidi: isolate; }
@media (max-width: 480px) { .occ-wage b { font-size: .88rem; } }
.lmia-sub { font-size: 1rem; margin: 16px 0 4px; }
.big-count { font-size: 1.1rem; font-weight: 700; margin-top: 14px; }

/* ===== header, refreshed (Nov 2026) ===== */
.top { background: radial-gradient(1200px 300px at 85% -40%, rgba(109, 40, 217, .35), transparent 60%), linear-gradient(180deg, #0f1b2d, #13233a); }
.top-row { padding-top: 12px; padding-bottom: 12px; }
.top .logo { font-size: 1.2rem; letter-spacing: -.01em; }
.top nav.nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.top nav .nav-link, .top nav .nav-more > summary { color: #d5deea; font-weight: 600; font-size: .93rem; padding: 7px 11px; border-radius: 999px; transition: background .15s, color .15s; white-space: nowrap; }
.top nav .nav-link:hover, .top nav .nav-more > summary:hover, .top nav .nav-more[open] > summary { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary span { font-size: .75em; opacity: .8; }
.nav-menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 60; min-width: 220px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 27, 45, .28); padding: 6px; display: grid; }
.top nav .nav-menu a { color: var(--ink); font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 10px; white-space: nowrap; }
.top nav .nav-menu a:hover { background: #f1f4f8; text-decoration: none; }
.top nav a.nav-pill { color: #fff; font-weight: 700; font-size: .9rem; padding: 7px 14px; border-radius: 999px; margin-inline-start: 4px; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.top nav a.nav-pill:hover { text-decoration: none; transform: translateY(-1px); }
.top nav a.nav-im { background: rgba(56, 189, 248, .14); border: 1px solid rgba(56, 189, 248, .45); color: #d6f1ff; }
.top nav a.nav-im:hover { background: rgba(56, 189, 248, .24); }
.top nav a.nav-cv { background: linear-gradient(135deg, #7c3aed, #6d28d9); box-shadow: 0 6px 18px rgba(124, 58, 237, .35); padding: 7px 14px; }
.top nav a.nav-cv:hover { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.top nav a.nav-acc { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; font-size: .92rem; padding: 4px 12px 4px 4px; margin-inline-start: 6px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; white-space: nowrap; }
[dir=rtl] .top nav a.nav-acc { padding: 4px 4px 4px 12px; }
.top nav a.nav-acc:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.top nav a.nav-acc .avatar { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: .8rem; }
.lang-toggle { display: inline-flex; margin-inline-start: 8px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden; }
.top nav .lang-toggle a.lang { border: 0; border-radius: 0; padding: 5px 11px; color: #d5deea; font-weight: 700; font-size: .85rem; }
.top nav .lang-toggle a.lang + a.lang { border-inline-start: 1px solid rgba(255, 255, 255, .22); }
.top nav .lang-toggle a.lang:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
@media (max-width: 1100px) { .top-row { flex-wrap: wrap; } .top nav.nav { flex-wrap: wrap; row-gap: 6px; } }
@media (max-width: 640px) {
  .top-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .top nav.nav { gap: 2px; }
  .top nav .nav-link, .top nav .nav-more > summary { padding: 6px 9px; font-size: .88rem; }
  .top nav a.nav-pill { padding: 6px 11px; font-size: .85rem; }
  .nav-menu { inset-inline-start: auto; }
}

/* ===== job page top, refreshed ===== */
.job-main h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; margin: 2px 0 10px; }
.job-main .meta.big { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.job-main .meta.big > span { display: inline-flex; align-items: center; gap: 4px; background: #f1f4f8; border-radius: 999px; padding: 5px 12px; font-size: .95rem; color: var(--ink2, #334155); }
.job-main .meta.big > span.emp { background: #eef2ff; color: #3730a3; font-weight: 700; }
.job-main .meta.big > span::before { margin: 0; }
.job-main .pay.big { display: inline-block; font-size: 1.55rem; font-weight: 800; color: var(--green); margin: 14px 0 0; letter-spacing: -.01em; }
.job-main .fair-line { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 7px 12px; border-radius: 12px; font-size: .92rem; font-weight: 600; background: #f1f5f9; color: var(--ink2, #334155); }
.job-main .fair-line::before { content: "📊"; }
.job-main .fair-line.up { background: #e8f7ee; color: #146c3a; }
.job-main .fair-line.down { background: #fff4e5; color: #92400e; }
.job-main .when { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.chip-sm { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.job-main .actions { margin: 18px 0 6px; gap: 10px; }
.job-main .actions .btn.primary { padding: 14px 26px; font-size: 1.05rem; font-weight: 700; border-radius: 12px; background: linear-gradient(135deg, #e5352c, #c81e17); border: 0; box-shadow: 0 8px 20px rgba(215, 38, 30, .28); transition: transform .15s, box-shadow .15s; }
.job-main .actions .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(215, 38, 30, .34); text-decoration: none; }
.job-main .actions .save.big { height: 50px; padding: 0 20px; border-radius: 12px; font-weight: 600; }

/* AI help card */
.ai-job { background: linear-gradient(135deg, #f7f3ff, #eef4ff); border: 1px solid #e0d7fe; border-radius: 16px; padding: 14px 16px; margin: 16px 0; }
.ai-job-h { font-weight: 800; font-size: 1.02rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.ai-job-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ai-job-row form { display: inline-flex; align-items: stretch; margin: 0; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 27, 45, .06); }
.ai-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 1px solid #d9ccfb; background: #fff; color: #4c1d95; font: inherit; font-weight: 700; font-size: .95rem; border-radius: 12px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.ai-btn:hover { background: #f5f0ff; border-color: #a78bfa; text-decoration: none; transform: translateY(-1px); }
.ai-job-row form .ai-btn { border-start-end-radius: 0; border-end-end-radius: 0; }
.ai-job-row .ai-lang { height: 44px; border: 1px solid #d9ccfb; border-inline-start: 0; border-start-end-radius: 12px; border-end-end-radius: 12px; background: #fff; color: #4c1d95; font: inherit; font-weight: 600; font-size: .9rem; padding: 0 10px; cursor: pointer; }
.ai-job .ai-wait { margin: 8px 0 0; }
.ai-job button:disabled { opacity: .6; cursor: progress; }
.job-main .actions .btn.primary { height: 52px; padding: 0 26px; display: inline-flex; align-items: center; }
.job-main .actions .save.big { height: 52px; }
.job-main .meta.big > span { border-radius: 12px; }
@media (max-width: 640px) {
  .top nav.nav { justify-content: flex-start; }
  .job-main .actions { flex-wrap: nowrap; }
  .job-main .actions .btn.primary { flex: 1; justify-content: center; padding: 0 14px; font-size: 1rem; }
  .job-main .actions .save.big { flex: 0 0 auto; padding: 0 14px; }
  .ai-job-row { flex-direction: column; align-items: stretch; }
  .ai-job-row form { display: flex; }
  .ai-job-row form .ai-btn { flex: 1; justify-content: center; }
  .ai-job-row > .ai-btn { justify-content: center; }
}
.all-cities > summary { cursor: pointer; font-weight: 600; color: var(--link, #1d4ed8); margin: 6px 0; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on small { color: #cbd5e1; }
.lmia-result { background: #eef6ff; border: 1px solid #c7dcff; border-radius: 12px; padding: 10px 14px; font-size: 1.05rem; margin: 6px 0 10px; }
.lmia-result a { margin-inline-start: 8px; font-size: .92rem; }

/* Immigration employers: overview + one page per program */
.im-hero { border-radius: 18px; padding: 22px 24px; margin: 6px 0 16px; color: #fff; background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.im-hero h1 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; color: #fff; }
.im-hero p { margin: 0; max-width: 780px; color: rgba(255,255,255,.88); line-height: 1.55; }
.im-hero a { color: #fff; text-decoration: underline; }
.im-hero-lmia { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.im-hero-aip { background: linear-gradient(135deg, #065f46, #10b981); }
.im-hero-pil { background: linear-gradient(135deg, #0c4a6e, #0284c7); }
.im-badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); margin-inline-end: 6px; vertical-align: 1px; }
.im-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 0 16px; background: #fff; border: 1px solid var(--line, #e4e7ec); border-radius: 14px; scrollbar-width: none; }
.im-tabs a { flex: 0 0 auto; padding: 9px 14px; border-radius: 10px; font-weight: 600; color: var(--ink, #101828); text-decoration: none; white-space: nowrap; }
.im-tabs a:hover { background: #f2f4f7; text-decoration: none; }
.im-tabs a small { color: var(--muted, #667085); font-weight: 500; margin-inline-start: 2px; }
.im-tabs a.on { background: #0f172a; color: #fff; }
.im-tabs a.on small { color: rgba(255,255,255,.75); }
.im-tabs a.t-lmia.on { background: #1d4ed8; } .im-tabs a.t-aip.on { background: #047857; } .im-tabs a.t-pil.on { background: #0369a1; }
.im-h2 { margin: 8px 0 12px; }
.im-programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.im-prog { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line, #e4e7ec); color: var(--ink, #101828); text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: transform .12s, box-shadow .12s; border-top: 4px solid #2563eb; }
.im-prog:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.10); text-decoration: none; }
.im-prog-aip { border-top-color: #10b981; } .im-prog-pil { border-top-color: #0284c7; }
.im-prog-icon { font-size: 1.8rem; line-height: 1; }
.im-prog strong { font-size: 1.15rem; }
.im-prog .im-badge { align-self: flex-start; background: #eff4ff; color: #1d4ed8; border-color: #c7d7fe; }
.im-prog-aip .im-badge { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.im-prog-pil .im-badge { background: #f0f9ff; color: #026aa2; border-color: #b9e6fe; }
.im-prog-n { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.im-prog-n small { font-size: .95rem; font-weight: 600; color: var(--muted, #667085); }
.im-prog-p { color: var(--muted, #475467); line-height: 1.5; flex: 1; }
.im-prog-go { font-weight: 700; color: #1d4ed8; }
.im-prog-aip .im-prog-go { color: #047857; } .im-prog-pil .im-prog-go { color: #0369a1; }
.im-search { background: #fff; border: 1px solid var(--line, #e4e7ec); border-radius: 16px; padding: 16px 18px; margin: 0 0 18px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.im-search .lmia-form { margin: 0 0 10px; }
.im-search .chips { margin-bottom: 0; }
.im-search .lmia-result { margin: 8px 0 10px; }
.im-search-p { margin: 0 0 10px; color: var(--muted, #475467); }
.lmia-form.im-form-2 { grid-template-columns: 1.4fr 1.2fr auto; }
.im-occs { margin: 10px 0; }
.im-occs > summary { font-weight: 700; }
.im-onsite { background: #f8fafc; border: 1px solid var(--line, #e4e7ec); border-radius: 16px; padding: 4px 20px 8px; margin: 18px 0; }
@media (max-width: 860px) { .im-programs { grid-template-columns: 1fr; } .lmia-form.im-form-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lmia-form.im-form-2 { grid-template-columns: 1fr; } .im-hero { padding: 18px; } }
