/* Purpose-built stylesheet for the server-rendered /jobs pages.
   Tokens are copied (not imported) from jobapi-static/html/style.css so the
   server stays deployable without a matching static deploy. Keep the values in
   step with that file by hand; there are deliberately only a handful. */
:root {
  --bg:      #0d1117;
  --surface: #161b22;
  --border:  #30363d;
  --text:    #e6edf3;
  --muted:   #8b949e;
  --link:    #58a6ff;
  --success: #3fb950;
  --r:       6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  /* A single measure so the list reads as a document, not a dashboard. */
  max-width: 70ch;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.masthead { border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.masthead a { color: var(--text); font-weight: 700; }
.masthead span { color: var(--success); }

h1 { font-size: 1.5rem; line-height: 1.3; margin-bottom: .25rem; }
h2 { font-size: 1.1rem; line-height: 1.3; }
h3 { font-size: .95rem; margin: 1.5rem 0 .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.muted { color: var(--muted); font-size: .9rem; }

/* Tag bar and tag lists — links, never widgets. */
.tags { margin-bottom: 1.5rem; font-size: .9rem; }
.tags a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .1rem .5rem;
  margin: 0 .25rem .35rem 0;
  background: var(--surface);
}

.filters { margin-bottom: 1.5rem; font-size: .9rem; color: var(--muted); }

article {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
article h2 { margin-bottom: .25rem; }
article p { margin: .25rem 0; }

dl { margin: .75rem 0; }
dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-top: .5rem; }
dd { margin-left: 0; }

ul { margin: .5rem 0 .5rem 1.25rem; }
li { margin: .15rem 0; }

/* body is plain text (see openapi.yaml) — preserve the author's line breaks
   without letting long lines force a horizontal scroll. */
.job-body { white-space: pre-wrap; margin: .75rem 0; }

.apply {
  display: inline-block;
  margin: 1rem 0;
  padding: .5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

nav.pager { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; }

footer { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 1rem; }
