/* Jobs view shared by Eco, Geo and UN Atlas. Colours follow each atlas through custom properties. */
.atlas-jobs { --job-accent: #45e8ca; --job-card: #082a32; --job-border: #15505a; --job-text: #e4fff7; --job-muted: #b9d8d3; }
.geo-mode .atlas-jobs { --job-accent: #ffb84d; --job-card: #262c35; --job-border: rgba(255,153,0,.35); --job-text: #f6efe4; --job-muted: #d3c8b8; }
.un-atlas-mode .atlas-jobs { --job-accent: #009edb; --job-card: var(--paper, #fff); --job-border: rgba(0,158,219,.35); --job-text: var(--ink, #102b49); --job-muted: #4b6177; }

.atlas-jobs-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.atlas-jobs-search input, .atlas-jobs-search select { flex: 1 1 200px; min-height: 40px; padding: 8px 11px; border: 1px solid var(--job-border); border-radius: 8px; background: var(--job-card); color: var(--job-text); font: inherit; }
.atlas-jobs-search select { flex: 0 1 220px; }
.atlas-jobs-search select option { background: var(--job-card); color: var(--job-text); }
.atlas-jobs-search button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--job-accent); color: #04161b; font: inherit; font-weight: 700; cursor: pointer; }
.atlas-jobs-search button:disabled { opacity: .75; cursor: progress; }
.atlas-jobs-spin { display: inline-block; animation: atlas-jobs-spin 1s linear infinite; }
@keyframes atlas-jobs-spin { to { transform: rotate(360deg); } }

.atlas-jobs-agents { list-style: none; margin: 0 0 12px; padding: 10px 12px; border: 1px dashed var(--job-border); border-radius: 10px; display: grid; gap: 6px; font-size: .82rem; }
.atlas-jobs-agents li { display: grid; grid-template-columns: minmax(110px, auto) 1fr auto; gap: 10px; align-items: baseline; }
.atlas-jobs-agents li strong { color: var(--job-accent); }
.atlas-jobs-agents li span { opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-jobs-agents li:not(.done) span::before { content: '● '; color: var(--job-accent); animation: atlas-jobs-pulse 1.2s ease-in-out infinite; }
.atlas-jobs-agents em { font-style: normal; opacity: .8; }
@keyframes atlas-jobs-pulse { 50% { opacity: .25; } }

.atlas-jobs-notice, .atlas-jobs-empty, .atlas-jobs-sources { opacity: .8; font-size: .82rem; margin: 0 0 10px; }
.atlas-jobs-heading { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: .95rem; }
.atlas-jobs-heading span { padding: 1px 8px; border-radius: 99px; background: var(--job-border); font-size: .75rem; }
.atlas-jobs-map { height: 360px; margin: 0 0 12px; border-radius: 12px; overflow: hidden; position: relative; }

.atlas-job { margin: 0 0 10px; padding: 13px 15px; border: 1px solid var(--job-border); border-radius: 11px; background: var(--job-card); color: var(--job-text); }
.atlas-job:hover { border-color: var(--job-accent); }
.atlas-job-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .74rem; color: var(--job-muted); text-transform: uppercase; letter-spacing: .02em; }
.atlas-job-badge { color: var(--job-accent); font-weight: 700; }
.atlas-job-ai .atlas-job-badge::before { content: '✦ '; }
.atlas-job-title { display: block; margin: 6px 0 4px; color: inherit; font-size: 1rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.atlas-job-title:hover { text-decoration: underline; }
.atlas-job-place { font-size: .84rem; color: var(--job-muted); }
.atlas-job-pay { margin-top: 5px; color: var(--job-text); font-size: .9rem; font-weight: 700; }
.atlas-job-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.atlas-job-chips span { padding: 2px 8px; border: 1px solid var(--job-border); border-radius: 99px; color: var(--job-muted); font-size: .74rem; }
.atlas-job-summary { margin: 6px 0 0; font-size: .84rem; line-height: 1.45; color: var(--job-muted); }
.atlas-job-apply { display: inline-flex; gap: 5px; margin-top: 8px; color: var(--job-accent); font-size: .8rem; font-weight: 700; text-decoration: none; }
.atlas-jobs-more { width: 100%; padding: 10px; border: 1px solid var(--job-border); border-radius: 9px; background: transparent; color: var(--job-accent); font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 600px) {
  .atlas-jobs-search button { flex: 1 1 100%; }
  .atlas-jobs-agents li { grid-template-columns: 1fr auto; }
  .atlas-jobs-agents li span { grid-column: 1 / -1; grid-row: 2; }
  .atlas-jobs-map { height: 280px; }
}

/* Job cards open the AI details modal. */
.atlas-job { cursor: pointer; }
button.atlas-job-title { padding: 0; border: 0; background: none; font: inherit; font-size: 1rem; font-weight: 700; text-align: left; cursor: pointer; }

.atlas-job-modal-overlay { --job-accent: #45e8ca; --job-card: #082a32; --job-border: #15505a; --job-text: #e4fff7; --job-muted: #b9d8d3; position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .72); }
.atlas-job-modal-geo { --job-accent: #ffb84d; --job-card: #262c35; --job-border: rgba(255,153,0,.35); --job-text: #f6efe4; --job-muted: #d3c8b8; }
.atlas-job-modal-un { --job-accent: #009edb; --job-card: #fff; --job-border: rgba(0,158,219,.35); --job-text: #102b49; --job-muted: #4b6177; }
.atlas-job-modal { width: min(620px, 100%); max-height: min(86vh, 900px); overflow-y: auto; padding: 18px 20px 20px; border: 1px solid var(--job-border); border-radius: 14px; background: var(--job-card); color: var(--job-text); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); animation: atlas-job-modal-in .18s ease-out; }
@keyframes atlas-job-modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.atlas-job-modal header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.atlas-job-modal-close { flex: none; width: 34px; height: 34px; border: 1px solid var(--job-border); border-radius: 50%; background: transparent; color: var(--job-text); cursor: pointer; }
.atlas-job-modal h2 { margin: 8px 0 6px; font-size: 1.25rem; line-height: 1.3; }
.atlas-job-modal-details { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--job-border); border-radius: 11px; }
.atlas-job-modal-details h3 { margin: 0 0 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--job-accent); }
.atlas-job-modal-details h4 { margin: 14px 0 4px; font-size: .88rem; }
.atlas-job-modal-details p, .atlas-job-modal-details li { font-size: .9rem; line-height: 1.5; }
.atlas-job-modal-details p { margin: 0 0 6px; }
.atlas-job-modal-details ul { margin: 0 0 6px; padding-left: 20px; }
.atlas-job-modal-details dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0 0; }
.atlas-job-modal-details dl div { padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--job-border) 45%, transparent); }
.atlas-job-modal-details dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--job-muted); }
.atlas-job-modal-details dd { margin: 2px 0 0; font-size: .88rem; font-weight: 700; }
.atlas-job-modal-status, .atlas-job-modal-source { color: var(--job-muted); }
.atlas-job-modal-source { margin-top: 12px !important; font-size: .76rem !important; }
.atlas-job-modal-apply { display: flex; justify-content: center; gap: 6px; padding: 11px; border-radius: 9px; background: var(--job-accent); color: #04161b; font-weight: 700; text-decoration: none; }
@media (max-width: 600px) { .atlas-job-modal-overlay { align-items: flex-end; padding: 0; } .atlas-job-modal { max-height: 90vh; border-radius: 14px 14px 0 0; } }
