/* The whole site's styling: plain, readable and free of scripts. */

body {
  margin: 0 auto;
  max-width: 60rem;
  padding: 0 1rem;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: #1d1d1f;
  background: #fff;
}

a {
  color: #0b57d0;
}

header.site {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 1.25rem;
  font-weight: bold;
}

header.site a {
  color: inherit;
  text-decoration: none;
}

footer.site {
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.875rem;
  color: #555;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.1rem;
  margin: 0;
}

input,
select,
textarea,
button {
  font: inherit;
}

input[type="text"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea {
  padding: 0.3rem 0.5rem;
  border: 1px solid #aaa;
  border-radius: 4px;
}

button {
  padding: 0.3rem 0.9rem;
  border: 1px solid #0b57d0;
  border-radius: 4px;
  background: #0b57d0;
  color: #fff;
  cursor: pointer;
}

form.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0 0.5rem;
}

form.filters input[type="search"] {
  flex: 1 1 18rem;
}

p.count,
p.meta {
  color: #555;
}

ol.postings,
ol.preview {
  list-style: none;
  padding: 0;
}

ol.postings > li,
ol.preview > li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

p.meta {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

ul.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

ul.tags a {
  display: inline-block;
  padding: 0 0.5rem;
  border-radius: 1rem;
  background: #eef2f8;
  font-size: 0.8rem;
  text-decoration: none;
}

nav.pages {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

p.banner {
  padding: 0.75rem 1rem;
  border: 1px solid #e0b252;
  border-radius: 4px;
  background: #fff7e0;
}

a.apply {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  background: #0b57d0;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

p.attribution,
p.no-description {
  color: #555;
}

div.description {
  margin-top: 1.5rem;
  overflow-wrap: anywhere;
}

nav.admin {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}

nav.admin form {
  margin-left: auto;
}

p.error,
p.notice {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  white-space: pre-wrap;
}

p.error {
  border: 1px solid #d93025;
  background: #fce8e6;
}

p.notice {
  border: 1px solid #188038;
  background: #e6f4ea;
}

p.heartbeat.stale {
  color: #d93025;
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

form.source,
form.sign-in {
  display: grid;
  gap: 0.35rem;
  max-width: 40rem;
}

form.source label,
form.sign-in label {
  margin-top: 0.5rem;
}

form.source textarea {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

div.buttons,
div.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0;
}

form.purge button {
  border-color: #d93025;
  background: #d93025;
}

details.help {
  margin: 2rem 0;
}

details.help pre {
  overflow-x: auto;
  padding: 0.75rem;
  background: #f6f8fa;
  font-size: 0.8rem;
}
