/* =========== Base =========== */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #222;
  background: #f7f7f9;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

.site-header, .site-footer {
  background: rgb(193, 31, 47);
  color: #fff;
}
.site-header .container, .site-footer .container {
  display:flex; align-items:center; gap:16px; justify-content:space-between;
  padding: 16px 0;
}
.site-header nav a { color:#cbd5e1; text-decoration:none; margin-right:14px; }
.site-header nav a:hover { color:#fff; }

h1 { font-size: 1.75rem; margin: 0; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 10px; }
.muted { color:#6b7280; }
.note { margin-top:10px; }

/* =========== Layout =========== */
.panel {
  background:#fff; border:1px solid #e5e7eb; border-radius:12px;
  padding:18px; margin:18px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.grid-2 {
  display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin:12px 0;
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.form-row { display:flex; flex-direction:column; gap:8px; }
.form-row.align-end { justify-content:flex-end; }

input, select, button {
  font: inherit;
}
input, select {
  border:1px solid #d1d5db; border-radius:8px; padding:10px 12px; background:#fff;
}
input:focus, select:focus { outline: 2px solid #a5b4fc; border-color:#818cf8; }

.btn {
  border:none; border-radius:10px; padding:10px 14px; cursor:pointer;
  background:#111827; color:#fff; font-weight:600;
}
.btn:hover { opacity:.96; }
.btn-primary { background:#2563eb; }
.btn-outline {
  background:#fff; color:#111827; border:1px solid #e5e7eb;
}
.btn-outline:hover { background:#f3f4f6; }

.card {
  border:1px solid #e5e7eb; border-radius:12px; padding:14px; margin-top:14px;
}
.hidden { display:none; }

.brand-links { display:flex; flex-wrap:wrap; gap:10px; }

/* =========== Swatches & Matches =========== */
.swatch-row { display:flex; gap:12px; align-items:center; }
.swatch {
  width:56px; height:56px; border-radius:8px; border:1px solid rgba(0,0,0,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.swatch-info { font-size:.95rem; }
.swatch-info code { background:#f3f4f6; padding:2px 6px; border-radius:6px; }

.match-list { display:grid; gap:12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .match-list { grid-template-columns: 1fr; } }

.match {
  display:flex; gap:12px; align-items:center; border:1px solid #e5e7eb;
  border-radius:12px; padding:12px;
}
.match .meta { font-size:.95rem; }
.match .percent { font-weight:700; }

.cta { text-align:center; }

/* =========== Tables (Charts) =========== */
.table-wrap { overflow:auto; border:1px solid #e5e7eb; border-radius:12px; }
table { width:100%; border-collapse:collapse; }
th, td { padding:10px 12px; border-bottom:1px solid #f1f5f9; text-align:left; }
tbody tr:hover { background:#fafafa; }
th { background:#f8fafc; font-weight:700; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.controls { display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 14px; }
.watermark-logo {
  position: fixed;
  bottom: 10px;
  right: 10px;
  opacity: 0.12;
  width: 120px; /* adjust size if needed */
  pointer-events: none; /* makes sure clicks go through it */
  z-index: 50;
}
