/* Shared look for every page. Loaded after each page's own styles. */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #070b16; --surface: rgba(20, 28, 48, .72); --line: rgba(148, 163, 184, .16);
  --text: #eef2fb; --muted: #9fabc3; --a: #7c8cff; --b: #34d8e8; --accent: #8fd8ff;
  --gradient: linear-gradient(120deg, var(--a), var(--b));
}
html {
  min-height: 100%; background-color: var(--bg); background-repeat: no-repeat;
  background-image: radial-gradient(900px 420px at 15% -5%, rgba(124, 140, 255, .22), transparent 70%),
                    radial-gradient(800px 380px at 90% 0%, rgba(52, 216, 232, .16), transparent 70%);
}
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif; color: var(--text); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; background: transparent;
}
h1, h2, h3, .masthead a { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; letter-spacing: -.02em; }
h1 { font-weight: 700; }
p, small, .meta { color: var(--muted); }
a { color: var(--accent); text-underline-offset: 3px; }

.masthead { border: 0; padding: 30px 16px 20px; margin-bottom: 8px; position: relative; }
.masthead::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 88px; height: 3px; margin-left: -44px; border-radius: 3px; background: var(--gradient); }
.masthead .name { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(34px, 8vw, 52px); }
.masthead .tagline { color: var(--text); font-size: clamp(18px, 4.5vw, 23px); }

header.wrap { text-align: center; }
header.wrap h1 { margin-top: 20px; }
nav#accounts:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; font-size: 0 !important; }
nav#accounts a { font-size: 13.5px; font-weight: 500; color: var(--text) !important; text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
nav#accounts a:hover { border-color: var(--a); }

input:not([type=checkbox]):not([type=file]), select, textarea {
  font-family: inherit; color: var(--text); background: rgba(10, 16, 32, .85) !important;
  border: 1px solid var(--line) !important; border-radius: 12px !important; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--a) !important; box-shadow: 0 0 0 3px rgba(124, 140, 255, .25); }
input[type=checkbox] { accent-color: var(--a); }
:focus-visible { outline: 2px solid var(--b); outline-offset: 2px; }
button { background: var(--gradient); color: #06101f; border: 0; border-radius: 12px; font-family: inherit; font-weight: 600; transition: transform .15s, filter .15s; }
button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
button.plain, #clear { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
button.danger { background: #4c1424; color: #ffd9e0; border: 1px solid #8b2c45; }

.filters, .alerts, form#form, form#profile, form#job { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; backdrop-filter: blur(8px); }
.filters label { font-size: 14px; color: var(--muted); }
#count { font-weight: 600; color: var(--muted); }
li, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, transform .15s, box-shadow .15s; }
ul#jobs li:hover, .card:hover { border-color: rgba(124, 140, 255, .55); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
li a { font-family: "Space Grotesk", "Inter", sans-serif; color: var(--text); }
li a:hover { color: var(--accent); }
.tags span { background: rgba(148, 163, 184, .12); border: 1px solid var(--line); color: #cfd8ea; }
.tags span.level { background: rgba(124, 140, 255, .18); border-color: rgba(124, 140, 255, .45); color: #dfe4ff; font-weight: 600; }
.warning { background: rgba(251, 191, 36, .08); border-left: 3px solid #fbbf24; border-radius: 0 12px 12px 0; padding: 10px 14px; }
#message { background: #101830; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; z-index: 5; }
#message:empty { display: none; }

.sitebar { background: rgba(9, 14, 28, .86); backdrop-filter: blur(12px); border-top: 1px solid var(--line); color: var(--muted); }
.sitebar a { color: var(--accent); text-decoration: none; }
.sitebar a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; transform: none !important; } }

/* Faint AI/ML artwork behind every page; it stays put while the page scrolls. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("/bg-ai.svg") center / cover no-repeat; opacity: .38;
}
@media (max-width: 700px) { body::before { opacity: .24; } }

.sponsor { display: grid; gap: 2px; padding: 14px 18px; margin: 14px 0; border: 1px solid rgba(251, 191, 36, .45); border-radius: 16px; background: var(--surface); }
.sponsor a { font-weight: 700; font-size: 18px; }
.sponsor span { color: var(--muted); }
.tags span.sponsored { background: rgba(251, 191, 36, .16); border-color: rgba(251, 191, 36, .5); color: #fde8a8; font-weight: 600; }
ul#jobs li.featured { border-color: rgba(251, 191, 36, .5); }
table.prices { width: 100%; border-collapse: collapse; margin: 14px 0; }
.prices td, .prices th { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
/* Numbered steps are ordinary text, not job cards. */
ol li { background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 6px; }
ol li a { font-family: inherit; color: var(--accent); }

/* Contact us chat */
.chat-open { padding: 5px 16px; margin-right: 10px; border-radius: 99px; font-size: 13px; cursor: pointer; }
.chat { position: fixed; z-index: 20; right: 16px; bottom: 76px; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 110px)); display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #0e1529; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); text-align: left; }
.chat[hidden] { display: none; }
.chat-title { display: flex; justify-content: space-between; align-items: center; }
.chat-title button { margin: 0; padding: 5px 12px; }
.chat-note { margin: 0; font-size: 12px; line-height: 1.45; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.chat-line { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-line.assistant { align-self: flex-start; background: rgba(148, 163, 184, .14); }
.chat-line.user { align-self: flex-end; background: rgba(124, 140, 255, .28); }
form.chat-form { display: flex; gap: 8px; align-items: flex-end; margin: 0; padding: 0; background: none; border: 0; backdrop-filter: none; }
form.chat-form textarea { flex: 1; width: auto; margin: 0; padding: 9px 10px; resize: none; font-size: 14px; }
form.chat-form button { margin: 0; padding: 10px 16px; }

/* Weekly email panel: fixed on the left of wide screens, under the header on narrow ones. */
aside.weekly { max-width: 560px; margin: 14px auto; padding: 18px; background: rgba(16, 23, 42, .94); border: 1px solid rgba(124, 140, 255, .4); border-radius: 18px; text-align: left; }
aside.weekly h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
aside.weekly p { margin: 0 0 10px; font-size: 13.5px; }
aside.weekly small { display: block; font-size: 12px; }
aside.weekly form { display: flex; flex-direction: column; gap: 8px; margin: 0 0 6px; padding: 0; background: none; border: 0; backdrop-filter: none; }
aside.weekly input[type=email] { width: 100%; flex: none; margin: 0; padding: 10px 12px; }
aside.weekly button { margin: 0; padding: 10px; }
aside.weekly .trap { position: absolute; left: -9999px; }
.weekly-status:empty { display: none; }
@media (min-width: 1100px) {
  body.with-weekly { padding-left: 300px; }
  aside.weekly { position: fixed; z-index: 15; left: 16px; top: 50%; transform: translateY(-50%) !important; width: 268px; max-height: calc(100vh - 100px); overflow-y: auto; margin: 0; }
}
@media (max-width: 600px) { body { padding-bottom: 150px !important; } .chat { bottom: 120px; height: min(520px, calc(100vh - 140px)); } }
@media (max-width: 599px) { aside.weekly { margin: 14px 14px; } }

/* News and training bands above the job search */
.band { margin: 18px 0; text-align: left; min-width: 0; }
.band[hidden] { display: none; }
.band-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.band-head h2 { margin: 0 0 8px; font-size: 19px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
#headlines a { flex: 0 0 250px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; scroll-snap-align: start; }
#headlines a:hover { border-color: var(--a); }
#headlines small { color: var(--accent); font-size: 12px; }
#headlines span { color: var(--text); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.chips a { flex: 0 0 auto; padding: 8px 14px; font-size: 13.5px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; }
.chips a:hover { border-color: var(--b); }
