/* CCA Workbench — matches conestogacapital.com */

:root {
  --navy: #131e29;
  --blue: #3e81c3;
  --blue-hover: #346fa8;
  --muted: #75777b;
  --line: #e4e6e8;
  --bg: #ffffff;
  --surface: #f7f8f9;
  --text: #131e29;
  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 15px/1.55 var(--font-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(880px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* —— Header —— */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.75rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.hero-mark {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
  margin-top: 0.15rem;
}

.brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: 0;
}

.brand #firm {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.brand #brandName {
  display: block;
}

.hero-line {
  margin: 0;
  max-width: 36em;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--muted);
}

/* —— Catalog —— */
.catalog {
  padding: 1.75rem 0 3rem;
}

.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem 0.65rem;
  color: var(--muted);
}

.tab:hover { color: var(--navy); }

.tab[aria-selected="true"] {
  color: var(--navy);
  border-bottom-color: var(--blue);
}

.tab-blurb {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.card-main {
  min-width: 0;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}

.badge {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.badge.soon { color: var(--muted); }

.card p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 42em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.45rem;
}

.tag {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.3rem 0.45rem;
}

.meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-self: center;
}

.harness {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.harness-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.harness-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--navy); }

.btn[disabled],
.btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 1.1rem 0 2rem;
}

.footer code {
  font-size: 0.85em;
  background: var(--surface);
  padding: 0.1em 0.35em;
}

.empty {
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .hero-mark {
    width: 56px;
    height: 56px;
  }

  .card {
    grid-template-columns: 1fr;
  }
  .actions {
    justify-content: flex-start;
    margin-top: 0.35rem;
  }

  .harness,
  .harness-btns {
    align-items: flex-start;
    justify-content: flex-start;
  }
}
