/* Tool detail page — extends styles.css */

.tp-breadcrumb {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--muted);
  padding: 24px 0 8px;
}
.tp-breadcrumb a { color: var(--muted-2); transition: color .15s ease; }
.tp-breadcrumb a:hover { color: var(--accent); }
.tp-breadcrumb .sep { color: var(--border-2); }
.tp-breadcrumb .here { color: var(--text); }

.tp-hero {
  padding: 32px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tp-hero::before {
  content: "";
  position: absolute; left: var(--pad-x); top: 0;
  width: 80px; height: 1px; background: var(--accent);
}

.tp-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  color: var(--muted-2);
  margin-bottom: 28px;
}
.tp-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: .9;
  letter-spacing: .005em;
  margin: 0 0 24px;
  text-transform: uppercase;
  text-wrap: balance;
}
.tp-tagline {
  max-width: 720px;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 40px;
}

.tp-spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.tp-spec-cell {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
}
.tp-spec-cell:last-child { border-right: 0; }
.tp-spec-cell .k { color: var(--muted); font-size: 10px; letter-spacing: .22em; }
.tp-spec-cell .v { color: var(--text); font-size: 14px; margin-top: 6px; letter-spacing: .04em; }

.tp-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* SECTION shell */
.tp-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.tp-section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: .95;
  margin: 0 0 40px;
  letter-spacing: .005em;
}

/* CODE BLOCK */
.tp-code {
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  position: relative;
}
.tp-code-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--muted);
}
.tp-code-head .file { color: var(--text); }
.tp-code-head .lang { color: var(--accent); }
.tp-code-body {
  padding: 20px 22px;
  overflow-x: auto;
  color: var(--text);
  white-space: pre;
  tab-size: 2;
}
.tp-code-body .com { color: var(--muted); }
.tp-code-body .kw { color: var(--accent); }
.tp-code-body .str { color: #FFB84D; }
.tp-code-body .fn { color: #00E5FF; }
.tp-code-body .pun { color: var(--muted-2); }

/* FEATURE GRID */
.tp-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.tp-feat {
  padding: 36px 30px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background .2s ease;
}
.tp-feat:hover { background: var(--surface); }
.tp-feat-id {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--accent);
  margin-bottom: 18px;
}
.tp-feat-name {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: .005em;
}
.tp-feat-desc {
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* CONFIG TABLE */
.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid var(--border);
}
.tp-table th, .tp-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.tp-table th {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--muted-2);
  background: var(--surface);
  text-transform: uppercase;
}
.tp-table td { color: var(--text); }
.tp-table td .name { color: var(--accent); }
.tp-table td .type { color: var(--muted); font-size: 11px; }
.tp-table td .req { color: #FF5C5C; font-size: 10px; letter-spacing: .18em; }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table tr:hover td { background: var(--surface-2); }

/* USE CASE LIST */
.tp-uses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.tp-use {
  background: var(--bg);
  padding: 28px 28px;
}
.tp-use-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 12px;
}
.tp-use h4 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 10px;
  letter-spacing: .005em;
}
.tp-use p {
  color: var(--muted-2);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

/* SOFT CTA */
.tp-soft-cta {
  padding: 80px 0 100px;
  text-align: left;
}
.tp-soft-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.tp-soft-cta-h {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .005em;
  margin: 0;
  max-width: 60%;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .tp-spec { grid-template-columns: 1fr 1fr; }
  .tp-spec-cell:nth-child(2) { border-right: 0; }
  .tp-spec-cell:nth-child(1), .tp-spec-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .tp-feat-grid { grid-template-columns: 1fr; }
  .tp-uses { grid-template-columns: 1fr; }
  .tp-table { font-size: 11.5px; }
  .tp-table th, .tp-table td { padding: 10px 12px; }
}
