/* Dynamic jobs (DB) — v20261010a */
.job-hero-img { margin: 0 0 1.25rem; border-radius: var(--radius, 14px); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.job-hero-img img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; background: #0B2A4A; }
.job-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.job-actions .btn { display: inline-block; text-align: center; }
.job-actions .btn .ta { display: inline; }
.list-item.has-thumb { display: grid; grid-template-columns: 132px 1fr; gap: 1rem; align-items: start; }
.job-thumb { display: block; width: 132px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #0B2A4A; }
.job-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-job-thumb { width: 56px; height: 70px; border-radius: 8px; object-fit: cover; float: right; margin-left: .75rem; border: 1px solid var(--border); }
@media (max-width: 560px) {
  .list-item.has-thumb { grid-template-columns: 84px 1fr; gap: .75rem; }
  .job-thumb { width: 84px; }
}
/* Job views + likes (v20261016a) */
.job-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: -.5rem 0 1.25rem; }
.job-stats[hidden] { display: none !important; }
.job-views { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--white, #fff); color: var(--text); font-size: .9rem; }
.job-views b, .job-like b { font-variant-numeric: tabular-nums; }
.job-like { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid #e11d48; background: transparent; color: #be123c; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.job-like:hover { background: rgba(225, 29, 72, .08); }
.job-like:active { transform: scale(.96); }
.job-like:focus-visible { outline: none; box-shadow: var(--focus); }
.job-like .job-like-ic { filter: grayscale(1) opacity(.65); transition: filter .15s ease; }
.job-like.is-liked { background: #e11d48; color: #fff; }
.job-like.is-liked .job-like-ic { filter: none; }
.job-like[disabled] { opacity: .7; cursor: progress; }
.job-stats .ta { font-family: var(--font-ta); font-weight: 500; }
.job-mini-stats { display: inline-flex; gap: .55rem; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .job-views { background: var(--d-card, #111c2b); color: var(--d-text, #e6edf5); }
html[data-theme="dark"] .job-like { color: #fda4af; border-color: #fb7185; }
html[data-theme="dark"] .job-like.is-liked { background: #e11d48; color: #fff; border-color: #e11d48; }
@media (max-width: 560px) { .job-stats { gap: .45rem; } .job-views, .job-like { font-size: .85rem; padding: .38rem .7rem; } }

.home-job-sum { margin: .25rem 0 .4rem; font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-intro p, .job-howto p { white-space: normal; }
/* Jobs list pager (v20261017a) */
.pager { margin: 1.5rem 0 .5rem; text-align: center; }
.pager-info { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.pager li { margin: 0; }
.pager-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; min-height: 2.6rem; padding: .35rem .8rem; border-radius: 10px; border: 1px solid var(--border); background: var(--white, #fff); color: var(--primary, #0B2A4A); font-weight: 600; text-decoration: none; }
a.pager-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
a.pager-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.pager-btn.is-current { background: var(--accent, #0D9488); border-color: var(--accent, #0D9488); color: #fff; }
.pager-btn.is-disabled { opacity: .45; cursor: default; }
.pager-gap { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 .2rem; color: var(--muted); }
html[data-theme="dark"] .pager-btn { background: var(--d-card, #111c2b); color: var(--d-text, #e6edf5); }
html[data-theme="dark"] a.pager-btn:hover { color: #5eead4; border-color: #2dd4bf; }
html[data-theme="dark"] .pager-btn.is-current { background: #0d9488; border-color: #0d9488; color: #fff; }
@media (max-width: 560px) { .pager-btn { min-width: 2.4rem; min-height: 2.4rem; padding: .3rem .6rem; font-size: .9rem; } }

/* Multi-district table in a job post (lines "A | B | C"), 2026-10-19 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.5rem 0 1rem; border: 1px solid var(--border); border-radius: 10px; }
.job-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
.job-table th, .job-table td { padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.job-table thead th { background: var(--surface); color: var(--primary); font-weight: 700; white-space: nowrap; }
.job-table tbody th { font-weight: 600; white-space: nowrap; }
.job-table tbody tr:last-child th, .job-table tbody tr:last-child td { border-bottom: 0; }
html[data-theme="dark"] .table-scroll { border-color: rgba(148, 163, 184, .28); }
html[data-theme="dark"] .job-table thead th { background: var(--d-card-2, #17263a); color: var(--d-text, #e6edf5); }
html[data-theme="dark"] .job-table th, html[data-theme="dark"] .job-table td { border-bottom-color: rgba(148, 163, 184, .2); color: var(--d-text, #e6edf5); }
.detail-layout > .prose { min-width: 0; } /* let wide tables scroll inside the article instead of widening the page */
.table-scroll { max-width: 100%; }
@media (max-width: 600px) {
  .job-table { min-width: 0; font-size: 0.85rem; }
  .job-table thead { display: none; }
  .job-table, .job-table tbody, .job-table tr, .job-table th, .job-table td { display: block; width: 100%; }
  .job-table tr { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--border); }
  .job-table tbody th, .job-table td { padding: 0.15rem 0; border: 0; white-space: normal; }
  .job-table tbody th { font-size: 0.95rem; }
  .job-table td::before { content: attr(data-label) ": "; font-weight: 600; }
}
html[data-theme="dark"] .job-table tr { border-bottom-color: rgba(148, 163, 184, .2); }
