:root {
  --navy: #1f3864;
  --gold: #9c7a2e;
  --grey: #595959;
  --light-grey: #f2f2f2;
  --red: #a3312a;
  --green: #2e7d4f;
}

* { box-sizing: border-box; }

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
  color: white;
  padding: 14px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar .brand { color: white; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.mvp-tag {
  background: var(--gold);
  color: #2b2000;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.topbar nav a, .topbar nav .link-button {
  color: white;
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.9rem;
}
.inline-form { display: inline; }
.link-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.container { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }

h1 { font-size: 1.6rem; color: var(--navy); }
h2 { font-size: 1.2rem; color: var(--navy); }

.card {
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.listing-card a { text-decoration: none; color: inherit; }
.listing-card h3 { margin: 4px 0; color: var(--navy); font-size: 1.05rem; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-live { background: #e5f5ec; color: var(--green); }
.badge-scheduled { background: #eef1f8; color: var(--navy); }
.badge-closed { background: #eee; color: var(--grey); }
.badge-receivership { background: #fbeaea; color: var(--red); }

.notice {
  background: #fbf6ea;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.notice.danger { background: #fbeaea; border-color: var(--red); }

.bid-room { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 720px) { .bid-room { grid-template-columns: 1fr; } }

.ticker { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow-y: auto; }
.ticker li { padding: 8px 10px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; font-size: 0.9rem; }
.ticker li:first-child { background: #f4fbf7; font-weight: 600; }

.countdown { font-size: 1.4rem; font-weight: 700; color: var(--navy); }

form.stacked label { display: block; margin-bottom: 12px; font-size: 0.9rem; }
form.stacked input, form.stacked select, form.stacked textarea {
  display: block; width: 100%; padding: 8px; margin-top: 4px;
  border: 1px solid #ccc; border-radius: 4px; font: inherit;
}
button.primary, input[type=submit].primary {
  background: var(--navy); color: white; border: none;
  padding: 10px 18px; border-radius: 6px; cursor: pointer; font-size: 0.95rem;
}
button.primary:hover { background: #16294a; }

table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; }
th { color: var(--grey); font-weight: 600; }

.footer { text-align: center; color: var(--grey); font-size: 0.75rem; padding: 24px; }
