/* Basic, plain styling. */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
  margin: 0;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1rem; }
a { color: #1a5fb4; }

hr { border: 0; border-top: 1px solid #e0e0e0; margin: 2rem 0; }

/* Form */
form { margin: 1rem 0; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.field { margin-bottom: 1rem; }

input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
}

.amount { display: flex; align-items: center; }
.amount .cur { padding: 0 0.4rem 0 0; font-size: 1.1rem; }

.buttons { display: flex; gap: 0.5rem; }
button {
  padding: 0.55rem 1rem;
  font-size: 1rem;
  border: 1px solid #1a5fb4;
  border-radius: 4px;
  background: #1a5fb4;
  color: #fff;
  cursor: pointer;
}
button.secondary { background: #fff; color: #1a5fb4; }
button:hover { opacity: 0.9; }

.note { color: #666; font-size: 0.9rem; }

.error {
  border: 1px solid #c00;
  background: #fdecec;
  color: #900;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Stats */
.total { font-size: 1.4rem; font-weight: 700; }

/* Donations table */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #e0e0e0; }
th { font-size: 0.85rem; color: #666; text-transform: uppercase; letter-spacing: 0.03em; }
td.amount-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.anon { color: #777; font-style: italic; }
.tag { color: #666; font-size: 0.85rem; }

canvas { max-width: 100%; }

footer { color: #666; font-size: 0.85rem; margin-top: 3rem; }
