/* ============================================================
   Technical Library — maker directory (page-scoped)
   Follows DESIGN.md: directory rows, monogram blocks,
   anchor sub-nav, cool palette only.
   ============================================================ */

/* --- anchor sub-nav --- */
.tl-nav {
  background: var(--surface-2, #FFFFFF);
  border-bottom: 1px solid var(--border, #E2E8F0);
}

.tl-nav__inner {
  display: flex;
  gap: 8px 28px;
  overflow-x: auto;
  padding: 14px 24px;
  -webkit-overflow-scrolling: touch;
}

.tl-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #6B7A8C);
  text-decoration: none;
  white-space: nowrap;
}

.tl-nav a:hover {
  color: var(--accent, #1A73B7);
}

/* --- directory rows --- */
.tl-list {
  display: grid;
  gap: 16px;
  max-width: 1000px;
}

.tl-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface-2, #FFFFFF);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(10, 37, 64, 0.06), 0 8px 24px rgba(10, 37, 64, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tl-row:hover {
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.08), 0 16px 40px rgba(10, 37, 64, 0.08);
  transform: translateY(-2px);
}

.tl-row__mono {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.15;
  padding: 4px;
}

.tl-row__mono--primary { background: var(--primary, #0A2540); }
.tl-row__mono--accent  { background: var(--accent, #1A73B7); }
.tl-row__mono--deep    { background: var(--accent-600, #155A91); }

.tl-row__body {
  min-width: 0;
  flex: 1;
}

.tl-row__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong, #0F1B2D);
}

.tl-row__desc {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body, #3B4A5C);
}

.tl-row__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-row__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent, #1A73B7);
  background: var(--surface, #F8FAFC);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 8px;
  padding: 7px 12px;
  text-decoration: none;
}

.tl-row__links a:hover {
  border-color: var(--accent, #1A73B7);
  background: var(--accent-light, #E8F2FB);
}

/* --- nameplate note --- */
.tl-note {
  max-width: 900px;
  margin: 1.25rem 0 0;
  font-size: 14px;
  color: var(--text-muted, #6B7A8C);
}

.tl-note code {
  background: var(--surface, #F8FAFC);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.92em;
  color: var(--text-strong, #0F1B2D);
}

@media (max-width: 640px) {
  .tl-row {
    padding: 18px;
    gap: 14px;
  }
  .tl-row__mono {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 12px;
  }
  .tl-row__title {
    font-size: 16px;
  }
  .tl-row__links a {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Maker identity blocks use real marks where available and restrained wordmarks otherwise. */
.tl-row__mono.tl-row__brand { display: grid; place-items: center; background: #fff; border: 1px solid var(--border, #E2E8F0); overflow: hidden; }
.tl-row__brand img { width: 90%; height: 74%; object-fit: contain; }
.tl-row__wordmark { color: var(--primary, #0A2540); font-size: 11px; font-weight: 800; line-height: 1.15; letter-spacing: .04em; text-align: center; }
@media (max-width: 640px) { .tl-row__brand img { width: 92%; height: 74%; } }
