* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: #f5f5f5;
  color: #222;
}
a { color: inherit; text-decoration: none; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1rem; }

header { background: #fff; border-bottom: 1px solid #ddd; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; gap: 1rem; }
.logo { font-weight: 800; letter-spacing: 0.04em; font-size: 1.1rem; }
nav ul { display: flex; gap: 1rem; list-style: none; font-size: 0.95rem; flex-wrap: wrap; }
nav a { padding: 0.25rem 0.5rem; border-radius: 4px; }
nav a.active { background: #222; color: #fff; }

main { flex: 1; padding: 1.5rem 0 2.5rem; }

.hero { margin-bottom: 1.25rem; }
.hero-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1rem; color: #555; max-width: 42rem; margin-bottom: 1rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.hero-note { font-size: 0.85rem; color: #777; }

.btn {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 4px;
  border: 1px solid #222;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: #222; color: #fff; border-color: #222; }
.btn-ghost { background: transparent; color: #222; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 1rem 1rem 1.1rem;
}
.card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: #444; margin-bottom: 0.5rem; }
.list { list-style: none; padding-left: 0; color: #444; font-size: 0.95rem; }
.list li { padding: 0.25rem 0; }
.muted { color: #666; font-size: 0.9rem; }

.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
@media (max-width: 900px) { .categories { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .categories { grid-template-columns: repeat(2, 1fr); } }

.cat {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 0.8rem;
  text-align: left;
}
.cat-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cat-sub { font-size: 0.8rem; color: #777; }

footer { border-top: 1px solid #ddd; background: #fff; padding: 0.75rem 0; font-size: 0.8rem; color: #666; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.footer-links a { margin-left: 0.75rem; }

.pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  color: #666;
  background: #fafafa;
  margin-left: 0.35rem;
}

.hr { height: 1px; background: #eee; margin: 0.75rem 0; }

/* Simple “classified” list styling */
.adlist { list-style: none; padding-left: 0; }
.aditem { padding: 0.65rem 0; border-top: 1px solid #eee; }
.aditem:first-child { border-top: none; }
.adtitle { font-weight: 700; }
.admeta { font-size: 0.85rem; color: #777; margin-top: 0.1rem; }
.adblurb { font-size: 0.95rem; color: #444; margin-top: 0.35rem; }

/* Form */
.formgrid { display: grid; gap: 0.75rem; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 0.95rem;
}
.smallnote { font-size: 0.85rem; color: #777; margin-top: 0.25rem; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  color: #555;
  background: #fafafa;
}