/* ============================================================
   CheckDeck — styled to match the Breaker Toolbox Help Site
   Brand: navy #223974 / #16274f, red #e62d2c, amber #c9711f
   Type: Space Grotesk (headings), Inter (body), IBM Plex Mono (labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #f6f7fb;
  --line: #e5e8f0;
  --text: #1a2340;
  --muted: #667085;
  --navy: #223974;
  --navy-deep: #16274f;
  --navy-tint: #eaeefa;
  --live: #e62d2c;
  --live-tint: #fdecec;
  --live-dim: #f7c9c8;
  --amber: #c9711f;
  --amber-tint: #fbf0e3;
  --amber-dim: #f0d3ac;
  --mono-bg: #f6f7fb;
  --shadow: 0 1px 2px rgba(20,26,60,0.04), 0 1px 1px rgba(20,26,60,0.03);
  --shadow-hover: 0 10px 24px rgba(20,26,60,0.09), 0 2px 6px rgba(20,26,60,0.06);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

a { color: var(--live); }
img, svg { display: block; max-width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-deep);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.brand .wordmark b {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.brand .wordmark span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #a9b3d6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-pills a {
  text-decoration: none;
  color: #c3cbe6;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: all .15s ease;
  white-space: nowrap;
}
.nav-pills a:hover, .nav-pills a.active {
  color: #ffffff; border-color: var(--live); background: rgba(230,45,44,0.18);
}

/* ---------- breadcrumb ---------- */
.crumb {
  max-width: 880px;
  margin: 22px auto 0;
  padding: 0 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--live); }
.crumb span.sep { margin: 0 6px; color: var(--line); }

/* ---------- hero ---------- */
main { max-width: 880px; margin: 0 auto; padding: 0 24px 90px; }

.hero { padding: 40px 0 8px; }
.eyebrow {
  color: var(--live);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
}
h1.page-title {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  max-width: 640px;
  margin: 0 0 14px;
}
.lede { color: var(--muted); font-size: 16px; max-width: 560px; }

/* ---------- global player search ---------- */
.global-search {
  margin-top: 34px;
  max-width: 560px;
  position: relative;
}
.global-search label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.global-search .input-wrap { display: flex; gap: 10px; }
.global-search input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.global-search input:focus {
  outline: none;
  border-color: var(--live);
  box-shadow: 0 0 0 3px rgba(230,45,44,0.14);
}
.search-results {
  margin-top: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: none;
  box-shadow: var(--shadow-hover);
}
.search-results.open { display: block; }
.search-results .result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.search-results .result:last-child { border-bottom: none; }
.search-results .result:hover { background: var(--bg-alt); }
.search-results .result .who { font-weight: 600; color: var(--navy); }
.search-results .result .where {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.search-results .result .kind-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--live-tint);
  color: var(--live);
  border: 1px solid var(--live-dim);
  margin-right: 8px;
}
.search-results .no-results {
  padding: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
.search-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- choice cards (landing page) ---------- */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.choice-card:hover { border-color: var(--live); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.choice-card .card-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--live);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.choice-card h2 { font-size: 22px; }
.choice-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
.choice-card .go { font-size: 12.5px; color: var(--live); font-weight: 600; margin-top: auto; padding-top: 10px; }
.choice-card .go::after { content: " →"; }

/* ---------- product tile grid (dock pattern) ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0 6px; }
.filter-row button {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-row button.active, .filter-row button:hover {
  color: #ffffff; border-color: var(--live); background: var(--live);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.product-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 15px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.product-tile:hover { border-color: var(--live); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.product-tile.disabled { opacity: .6; pointer-events: none; }

.product-tile .status {
  display: flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-tile .status .led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); border: 1px solid var(--line);
}
.product-tile:hover .status .led { background: var(--live); border-color: var(--live); box-shadow: 0 0 6px rgba(230,45,44,0.5); }

.product-tile .product-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); }
.product-tile .count { font-size: 12px; color: var(--muted); }
.product-tile .go { font-size: 11.5px; color: var(--live); font-weight: 600; }
.product-tile .soon {
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--amber); border: 1px solid var(--amber-dim); background: var(--amber-tint);
  padding: 2px 7px; border-radius: 999px; align-self: flex-start;
}

/* ---------- section (checklist detail pages) ---------- */
.section { padding: 40px 0 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.section-head .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--live);
  border: 1px solid var(--live-dim);
  background: var(--live-tint);
  padding: 3px 9px;
  border-radius: 6px;
}
.detail-stat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}
.detail-stat strong {
  color: var(--navy); font-size: 20px; display: block;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
}

.search-box { margin: 18px 0 6px; display: flex; gap: 10px; }
.search-box input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.search-box input:focus { outline: none; border-color: var(--live); box-shadow: 0 0 0 3px rgba(230,45,44,0.14); }

.rc-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14.5px;
}
.rc-table thead th, .data-table th {
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
}
.rc-table tbody td, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.rc-table tbody tr:hover { background: var(--bg-alt); }
.rc-table .num { font-family: 'IBM Plex Mono', monospace; color: var(--muted); white-space: nowrap; }
.rc-table .player { font-weight: 600; color: var(--navy); }
.rc-table .team { color: var(--muted); }

.tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 8px;
  background: var(--amber-tint);
  color: var(--amber);
  border: 1px solid var(--amber-dim);
}

.empty-row td {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

/* ---------- callout / coming-soon box ---------- */
.callout {
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  margin: 24px 0;
  border: 1px solid;
  display: flex; gap: 12px;
}
.callout .icon { font-family: 'IBM Plex Mono', monospace; font-weight: 700; flex-shrink: 0; }
.callout.note { background: var(--navy-tint); border-color: #c7d1ef; color: var(--navy); }
.callout.note .icon { color: var(--navy); }

.coming-soon-box {
  margin-top: 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  color: var(--muted);
  background: var(--panel-2);
}
.coming-soon-box .mono {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber);
}

.back-to-dock {
  display: inline-block;
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}
.back-to-dock:hover { color: var(--live); border-color: var(--live); }

/* ---------- footer ---------- */
footer { background: var(--navy-deep); margin-top: 40px; }
footer .footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 50px;
  color: #a9b3d6;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer a { color: #a9b3d6; text-decoration: none; }
footer a:hover { color: #ffffff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
