/* Techne Path brand tokens — §7 of code-spec.md. Amber is an accent only. */
:root {
  --ink: #1B2A41;
  --amber: #D97D2E;
  --blue: #3D6A94;
  --slate: #55677A;
  --paper: #FAF7F2;
  --chalk: #E6E0D6;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 26px;
}

a {
  color: var(--blue);
}

/* Slim brand bar shown above Scalar on reference pages. */
.tp-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--chalk);
}

.tp-topbar img {
  height: 28px;
  display: block;
}

.tp-topbar .tp-topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.tp-topbar .tp-topbar-spacer {
  flex: 1;
}

.tp-topbar a {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}

.tp-topbar a:hover {
  color: var(--amber);
}

/* Landing page */
.tp-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tp-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.tp-header img {
  height: 32px;
  display: block;
}

.tp-header nav a {
  margin-left: 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.tp-kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin: 24px 0 0;
}

.tp-kicker-rule {
  width: 48px;
  height: 2px;
  background: var(--amber);
  border: 0;
  margin: 12px 0 0;
}

.tp-landing h1 {
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
  margin: 16px 0 0;
  color: var(--ink);
}

.tp-lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--slate);
  max-width: 640px;
  margin: 16px 0 0;
}

.tp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.tp-card {
  border: 1px solid var(--chalk);
  background: var(--paper);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.tp-card h2 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.tp-card .tp-card-desc {
  color: var(--slate);
  margin: 8px 0 0;
}

.tp-card .tp-card-stats {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--chalk);
  font-size: 14px;
  color: var(--slate);
  font-feature-settings: 'tnum';
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-card .tp-card-stats strong {
  color: var(--ink);
  font-weight: 600;
}

.tp-card .tp-portal-chip {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 10px;
  border: 1px solid var(--chalk);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
  width: fit-content;
}

.tp-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  width: fit-content;
  border: 0;
}

.tp-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.tp-sync-panel {
  margin-top: 40px;
  border: 1px solid var(--chalk);
  padding: 28px;
  max-width: 640px;
}

.tp-sync-panel h2 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  margin: 0 0 8px;
}

.tp-sync-panel code {
  font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--chalk);
  color: var(--ink);
  padding: 2px 6px;
}

.tp-footer {
  background: var(--ink);
  color: #FFFFFF;
  padding: 40px 24px;
}

.tp-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid var(--chalk);
  padding-top: 24px;
}

.tp-footer img {
  height: 24px;
  display: block;
}

.tp-tagline {
  margin: 12px 0 0;
  font-size: 14px;
  color: #FFFFFF;
}

.tp-footer .tp-meta {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #FFFFFF;
  opacity: 0.65;
}

.tp-footer .tp-meta a {
  color: inherit;
  text-decoration: underline;
}

/* Family spec index (/docs/:family) */
.tp-spec-index {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.tp-spec-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--chalk);
}

.tp-spec-item {
  border-bottom: 1px solid var(--chalk);
}

.tp-spec-item a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 8px;
  text-decoration: none;
}

.tp-spec-item a:hover {
  background: rgba(27, 42, 65, 0.04);
}

.tp-spec-item a:hover .tp-spec-cta {
  color: var(--amber);
}

.tp-spec-name {
  flex: 1;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--ink);
}

.tp-spec-meta {
  font-size: 14px;
  color: var(--slate);
  font-feature-settings: 'tnum';
  white-space: nowrap;
}

.tp-spec-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

/* Sync status page (/sync-status) */
.tp-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.tp-status-card {
  border: 1px solid var(--chalk);
  padding: 20px 24px;
}

.tp-status-label {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
}

.tp-status-value {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  color: var(--ink);
  font-feature-settings: 'tnum';
}

.tp-section-title {
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  color: var(--ink);
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--chalk);
}

.tp-status-rows {
  margin-top: 8px;
  border-top: 1px solid var(--chalk);
}

.tp-status-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--chalk);
}

.tp-status-note {
  margin: 16px 0 0;
  color: var(--slate);
}

.tp-change-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-change-list li {
  border: 1px solid var(--chalk);
  padding: 4px 10px;
  font-size: 14px;
  color: var(--slate);
  font-feature-settings: 'tnum';
}
