/* Jobs: public list, single job page and the admin form. Builds on css/pages.css. */

.jobs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.jobs-count { font-size: 15px; color: var(--sw-text); }
.jobs-list { display: grid; gap: 16px; margin-top: 28px; }
.job-card, .ja-job { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 26px 28px; border: 1px solid var(--sw-line); border-radius: 14px; background: rgba(255, 255, 255, .86); box-shadow: 0 14px 34px rgba(30, 60, 110, .09); }
.job-card h2, .ja-job h3 { font-size: 22px; line-height: 1.2; }
.job-title { color: inherit !important; text-decoration: none; }
.job-title:hover { color: var(--sw-cyan) !important; }
.job-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.job-chips li { padding: 6px 13px; border: 1px solid var(--sw-line); border-radius: 30px; background: rgba(255, 255, 255, .7); font-size: 13.5px; }
.job-actions, .ja-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.job-actions .sw-btn, .ja-actions .sw-btn { height: 46px; padding: 0 20px; font-size: 15px; cursor: pointer; }
.jobs-empty { margin-top: 28px; padding: 44px 28px; border: 1px dashed var(--sw-line); border-radius: 14px; text-align: center; font-size: 17px; line-height: 1.6; }
.pg-hero .job-chips { margin-top: 22px; }
.pg-hero .job-chips li { font-size: 15px; padding: 8px 16px; }

/* single job page */
.job-body { max-width: 780px; font-size: 17px; line-height: 1.75; }
.job-body p { margin-top: 16px; }
.job-body ul { margin: 14px 0 0; padding-left: 24px; }
.job-body li { margin-top: 6px; }
.job-ref { margin-top: 36px !important; padding-top: 18px; border-top: 1px solid var(--sw-line); font-size: 14px; }

/* admin */
.ja-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.ja-panel { position: relative; padding: 28px 30px 30px; border: 1px solid var(--sw-line); border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: 0 14px 34px rgba(30, 60, 110, .09); }
.ja-panel h2 { font-size: 22px; }
.ja-panel label { display: block; margin-top: 16px; font-size: 14px; }
.ja-panel label span { color: var(--sw-text); }
.ja-panel input[type="text"], .ja-panel input[type="password"], .ja-panel input[type="email"], .ja-panel input[type="url"], .ja-panel input[type="number"], .ja-panel input[type="date"], .ja-panel select, .ja-panel textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #8293a1; border-radius: 6px; background: #fff; color: #0e1821; font: 15px var(--f-foot); }
.ja-panel textarea { resize: vertical; }
.ja-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.ja-check { display: flex !important; align-items: center; gap: 10px; }
.ja-check input { width: 18px; height: 18px; }
.ja-hint { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--sw-text); }
.ja-token { display: flex; gap: 10px; align-items: flex-end; }
.ja-token label { flex: 1; margin-top: 0; }
.ja-panel .sw-btn { cursor: pointer; }
.ja-form .sw-btn-primary { width: 100%; margin-top: 24px; justify-content: center; }
.ja-status { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.ja-status.ok, .ja-google.ok, .ja-msg.ok { color: #0b7a3b; }
.ja-status.ok { background: rgba(15, 157, 77, .1); }
.ja-status.warn { background: rgba(181, 106, 0, .12); color: #7a4700; }
.ja-google.warn, .ja-msg.warn { color: #8a5200; }
.ja-msg { min-height: 22px; margin-top: 14px; font-size: 15px; line-height: 1.5; }
.ja-msg.error { color: #d81b45; }
.ja-list { display: grid; gap: 12px; margin-top: 18px; }
.ja-job { padding: 18px 20px; box-shadow: none; }
.ja-job h3 { font-size: 18px; }
.ja-job p { margin-top: 6px; font-size: 13.5px; }
.ja-delete { border-color: #d81b45 !important; color: #d81b45 !important; }
.ja-delete[data-armed="1"] { background: #d81b45 !important; color: #fff !important; }
.ja-none { font-size: 15px; color: var(--sw-text); }
@media (max-width: 980px) { .ja-grid { grid-template-columns: 1fr; } }

/* dark theme */
html[data-theme="dark"] .job-card, html[data-theme="dark"] .ja-job, html[data-theme="dark"] .ja-panel { background: rgba(5, 10, 28, .7); box-shadow: none; }
html[data-theme="dark"] .job-chips li { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .ja-status.warn { color: #ffcf8a; }
html[data-theme="dark"] .ja-status.ok, html[data-theme="dark"] .ja-google.ok, html[data-theme="dark"] .ja-msg.ok { color: #3df27a; }

/* card titles and admin panel titles do not take the section-title rule */
html[data-theme="lite"] .job-card h2::after, html[data-theme="lite"] .ja-panel h2::after { display: none; }

/* Google button before Google has listed the job: greyed out, not clickable */
.sw-btn.job-google-pending, html[data-theme="lite"] .sw-btn.job-google-pending { background: rgba(128, 138, 150, .16); border-color: rgba(128, 138, 150, .35); color: #8a94a3; cursor: default; pointer-events: auto; box-shadow: none; transform: none; }
.sw-btn.job-google-pending::before { content: ""; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #a9b2bf; animation: job-pending 1.4s ease-in-out infinite; }
@keyframes job-pending { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .sw-btn.job-google-pending::before { animation: none; } }
