/* -------- Base -------- */
:root {
  --bg: #fafbfc;
  --text: #1f2937;         /* slate-800 */
  --muted: #6b7280;        /* gray-500 */
  --link: #0a58ca;
  --card: #ffffff;
  --border: #e5e7eb;       /* gray-200 */
  --note-bg: #f6f8fa;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 40px;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* -------- Layout -------- */
.container {
  max-width: 980px;
  margin: 0 auto;
}

/* -------- Header -------- */
h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.2px;
}

.meta {
  color: var(--muted);
  margin-bottom: 18px;
}

/* -------- Notes / Callouts -------- */
.note {
  background: var(--note-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 18px 0 24px;
}

/* -------- List of Parts -------- */
.parts {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}

.parts li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  transition: box-shadow 160ms ease, transform 120ms ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parts li:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
  outline: none;
}

/* -------- Footer / Small text -------- */
small { color: var(--muted); }

/* -------- Full-Page Map (optional) -------- */
/* If you have a map page, wrap the map in #map and include this: */
/*
html, body, #map { height: 100%; margin: 0; }
.leaflet-control-container .legend {
  background:#fff; padding:8px 10px; border:1px solid var(--border);
  border-radius:6px; line-height:1.3;
}
.legend .row { display:flex; gap:6px; align-items:center; margin:2px 0; }
.swatch { width:12px; height:12px; border-radius:50%; border:1px solid #666; display:inline-block; }
*/
