html {
  font-size: 16px;
}

body {
  font-family: monospace;
  margin: 4rem;
  padding: 0;
  font-size: 1rem;
  overflow-x: hidden;
  background: #fff;
  color: #000;
}

.center { text-align: center; }
.header-big { font-size: 4rem; font-weight: bold; margin-bottom: 0.375rem; }
.header-small { font-size: 1rem; font-weight: bold; margin-bottom: 0.375rem; }
.divider { border-top: 0.1875rem solid black; margin-top: 0.375rem; margin-bottom: 0.375rem; }
.divider_minor { border-top: 0.1875rem solid #ccc; margin-top: 0.375rem; margin-bottom: 0.375rem; }
.nav { margin-bottom: 0.375rem; font-size: 1rem; text-align: center; }
a { color: black; text-decoration: underline; }

.search-bar { margin: 0.375rem 0 0.75rem 0; }

.code-block { overflow-x: auto; width: 100%; white-space: pre; text-align: center; }
.code-block-abt { overflow-x: auto; width: 100%; white-space: pre-wrap; text-align: center; }

.hidden { display: none; }

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.875rem;
  justify-content: center;
}

.section-title {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1;
}

.section-header .search-bar {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 0.12rem 0.4rem;
  border: 1px solid #000;
  box-sizing: border-box;
  height: auto;
  transform: translateY(2px);
  margin: 0;
}

form.inline { display: inline; }

input[type="text"],
input[type="password"],
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 0.25rem 0.4rem;
  box-sizing: border-box;
}

button,
.button {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: #000;
  color: #fff;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button:disabled:hover {
  background: #fff;
  color: #000;
}

.nav a,
.nav form {
  margin: 0 0.5rem;
}

.error {
  text-align: center;
  margin: 0.75rem 0;
  font-weight: bold;
}

.stack {
  max-width: 28rem;
  margin: 1rem auto;
  text-align: left;
}

.stack label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.stack button {
  margin-top: 1rem;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
}

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

th {
  font-weight: bold;
}

.muted { color: #555; }

.draft-board {
  margin: 1rem 0;
}

.draft-meta {
  text-align: center;
  margin-bottom: 0.75rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pick-list, .player-block {
  margin: 0.75rem 0 1.25rem;
}

.winner-banner {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin: 1rem 0;
}

.trade-box {
  margin: 1rem auto;
  max-width: 48rem;
  text-align: left;
}

.trade-box select[multiple] {
  width: 100%;
  min-height: 10rem;
}

.note-unread {
  font-weight: bold;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  html { font-size: 8px; }
  body { margin: 1.5rem; }
}

@media (max-width: 400px) {
  html { font-size: 6px; }
}
