/* TODO: finalize per SPEC §5 / SPEC §6/M2 task 8 — monospace body, blue
   #0000EE links, max-width ~72ch, black on white. */

body {
  font-family: "OfficeCodeProNF", "Office Code Pro", "OfficeCodePro Nerd Font", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: #000;
  background: #fff;
  max-width: 72ch;
  margin: 2em auto;
  padding: 0 1em;
  line-height: 1.5;
}

a {
  color: #0000EE;
}

a:visited {
  color: #551A8B;
}

h1, h2 {
  font-weight: normal;
}

ul {
  padding-left: 1.25em;
}

footer {
  margin-top: 3em;
  border-top: 1px solid #ccc;
  padding-top: 1em;
  font-size: 0.9em;
}

.user-strip {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 1em;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 0.5em;
}
.breadcrumb {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 1em;
}
.breadcrumb .here {
  color: #000;
}
.inline-form {
  display: inline;
}
.link-button {
  background: none;
  border: none;
  color: #0000EE;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.link-button:visited,
.link-button:hover {
  color: #551A8B;
}

.form-error {
  color: #b00;
  font-size: 0.9em;
  margin-left: 0.5em;
}
.form-success {
  color: #060;
}

h1.state-gone {
  font-style: italic;
  color: #666;
}
h1.state-imaginary {
  color: #537;
}
.state-label {
  font-size: 0.85em;
  color: #888;
}
li.state-gone a {
  font-style: italic;
}
.state-form {
  margin-top: 1em;
  font-size: 0.9em;
  color: #888;
}

.msg-hidden {
  color: #aaa;
  font-style: italic;
}
.link-button.small {
  font-size: 0.85em;
  margin-left: 0.5em;
  color: #888;
}
.link-button.small:hover {
  color: #0000EE;
}

.admin-list {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9em;
}
.admin-list th,
.admin-list td {
  border-bottom: 1px dotted #ddd;
  padding: 0.35em 0.5em;
  text-align: left;
  vertical-align: top;
}
.admin-body {
  max-width: 40ch;
  overflow-wrap: anywhere;
}

.paper-prompt {
  font-style: italic;
  color: #555;
  border-left: 2px solid #ddd;
  padding-left: 0.75em;
  margin: 1em 0;
}
.first-page-flash {
  background: #fffbe6;
  border: 1px solid #f0d97a;
  padding: 0.5em 0.75em;
  margin-bottom: 1em;
  font-size: 0.95em;
}

ul.countries {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5em;
}
ul.countries li {
  margin: 0.25em 0;
}

.messages {
  list-style: none;
  padding-left: 0;
}
.messages li {
  margin-bottom: 0.5em;
}
.messages li.pinned {
  border-left: 3px solid #888;
  padding-left: 0.5em;
}
.msg-meta {
  color: #888;
}
.msg-body {
  white-space: pre-wrap;
}
textarea {
  font: inherit;
  padding: 0.4em;
  border: 1px solid #aaa;
}
input[type="text"],
input[type="email"],
input[type="password"] {
  font: inherit;
  padding: 0.25em 0.4em;
  border: 1px solid #aaa;
  width: 24ch;
}
/* Keep inputs and textareas inside their container on narrow viewports.
   Several inline widths (60ch textareas, 48ch /me path field) would
   otherwise force a horizontal scroll on phones. max-width wins over
   a fixed width when the parent is narrower, so this is a pure clamp. */
input, textarea, select {
  max-width: 100%;
  box-sizing: border-box;
}

.compass {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.25em;
  margin: 1em 0;
  border: 1px dotted #ccc;
}
.compass .cell {
  padding: 0.5em;
  min-height: 2em;
  border: 1px dotted #eee;
}
.compass .cell.here {
  text-align: center;
  color: #999;
  align-self: center;
}
.compass .cell.n,
.compass .cell.s {
  text-align: center;
}
.compass .cell.w,
.compass .cell.nw,
.compass .cell.sw {
  text-align: right;
}
