/* The jobs list as a tidy page. Body text is 20px or larger. Colors are checked for contrast. */
:root {
  --text: #111111;
  --soft: #333333;
  --paper: #ffffff;
  --line: #4b5563;
  --brand: #0b3b8c;
  --on-brand: #ffffff;
  --panel: #f1f4f9;
  --note-bg: #fff4d6;
  --note-line: #7a4b00;
  --ready-bg: #dcfce7; --ready-text: #14532d;
  --part-bg: #fff4d6; --part-text: #6b3f00;
  --shop-bg: #dbeafe; --shop-text: #1e3a8a;
  --picked-bg: #eeeeee; --picked-text: #333333;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.25rem; line-height: 1.5; overflow-wrap: anywhere; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 0.5rem; top: -5rem; background: var(--paper); color: var(--text); padding: 0.75rem 1rem; border: 2px solid var(--text); z-index: 2; }
.skip-link:focus { top: 0.5rem; }

.label { background: var(--note-bg); border-bottom: 3px solid var(--note-line); padding: 0.75rem 1rem; }
.label p { margin: 0 auto; max-width: 64rem; }

main { max-width: 64rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1rem; }

.filters { display: grid; gap: 1rem; background: var(--panel); border: 2px solid var(--line); border-radius: 0.5rem; padding: 1rem; margin: 1rem 0; }
.field label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.field input, .field select { width: 100%; min-height: 48px; font: inherit; color: var(--text); background: var(--paper); border: 2px solid var(--line); border-radius: 0.5rem; padding: 0.5rem 0.75rem; }
.filters button { justify-self: start; min-height: 48px; font: inherit; color: var(--on-brand); background: var(--brand); border: 2px solid var(--brand); border-radius: 0.5rem; padding: 0.5rem 1rem; cursor: pointer; }
.count { font-weight: 700; min-height: 1.5em; }

.jobs { width: 100%; border-collapse: collapse; }
.jobs th, .jobs td { text-align: left; vertical-align: top; padding: 0.75rem; border-bottom: 2px solid var(--line); }
.jobs thead th { background: var(--panel); }
.jobs td a { display: inline-block; min-height: 44px; padding: 0.4rem 0; }
.problem { color: var(--soft); }
.tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-weight: 700; border: 2px solid currentColor; }
.tag-ready { background: var(--ready-bg); color: var(--ready-text); }
.tag-part { background: var(--part-bg); color: var(--part-text); }
.tag-shop { background: var(--shop-bg); color: var(--shop-text); }
.tag-picked { background: var(--picked-bg); color: var(--picked-text); }

.none { font-weight: 700; padding: 1rem; border: 2px dashed var(--line); }
.about { border-top: 2px solid var(--line); margin-top: 2rem; }

/* On narrow screens each job is a card, with its labels shown. */
@media (max-width: 52rem) {
  .jobs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .jobs, .jobs tbody, .jobs tr, .jobs td { display: block; width: 100%; }
  .jobs tr { border: 2px solid var(--line); border-radius: 0.5rem; margin-bottom: 1rem; padding: 0.5rem 0.75rem; }
  .jobs td { border: 0; padding: 0.35rem 0; }
  .jobs td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 1.125rem; color: var(--soft); }
  .jobs td:empty { display: none; }
}

@media (min-width: 40rem) {
  .filters { grid-template-columns: 2fr 1fr auto; align-items: end; }
  h1 { font-size: 2.5rem; }
}

@media print {
  body { font-size: 11pt; }
  .skip-link, .filters, .count { display: none !important; }
  .label { background: #ffffff; border: 1px solid #000000; }
  .jobs, .jobs thead, .jobs tbody, .jobs tr, .jobs td { color: #000000; }
  .jobs tr { break-inside: avoid; }
  .jobs td a { min-height: 0; padding: 0; color: #000000; }
  .tag { background: #ffffff !important; color: #000000 !important; }
}
