.tpl-idx-hero {
  background: #0a1628;
  color: #fff;
  padding: 64px 0 48px;
}
.tpl-idx-hero .f3-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.tpl-idx-hero h1 {
  font-family: 'Canela', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 300;
  margin: 0 0 8px;
}
.tpl-idx-hero p {
  font-size: 1.05rem;
  opacity: 0.7;
  margin: 0;
}

.tpl-idx-body {
  background: #f5f2ec;
  padding: 64px 0;
}
.tpl-idx-body .f3-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.tpl-idx-section {
  margin-bottom: 56px;
}
.tpl-idx-section:last-child {
  margin-bottom: 0;
}
.tpl-idx-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 8px;
}
.tpl-idx-section-title {
  font-family: 'Canela', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #0a1628;
  margin: 0 0 24px;
}

.tpl-idx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.tpl-idx-card {
  background: #fff;
  border: 1px solid #e5e2dc;
  border-radius: 4px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}
.tpl-idx-card:hover {
  border-color: #0a1628;
  box-shadow: 0 2px 8px rgba(10,22,40,0.08);
}
.tpl-idx-card-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 6px;
}
.tpl-idx-card-name {
  font-family: 'Canela', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #0a1628;
  margin: 0 0 8px;
}
.tpl-idx-card-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.tpl-idx-card-example {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #9ca3af;
  margin: 12px 0 0;
}

.tpl-idx-prompt-card {
  background: #fff;
  border: 1px solid #e5e2dc;
  border-radius: 4px;
  padding: 28px 24px;
}
.tpl-idx-prompt-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 20px 0 6px;
}
.tpl-idx-prompt-label:first-of-type {
  margin-top: 16px;
}
.tpl-idx-prompt-subject {
  font-size: 0.95rem;
  color: #0a1628;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}
.tpl-idx-prompt-pre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  background: #0a1628;
  color: #e2e8f0;
  padding: 14px 18px;
  border-radius: 4px;
  overflow-x: auto;
  max-height: 200px;
  overflow-y: auto;
  margin: 6px 0 0;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.tpl-idx-prompt-edit {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 4px 0 0;
  line-height: 1.5;
}
.tpl-idx-prompt-edit code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82em;
  background: #f3f1eb;
  padding: 2px 6px;
  border-radius: 3px;
  color: #0a1628;
}

.tpl-idx-instructions {
  background: #fff;
  border: 1px solid #e5e2dc;
  border-radius: 4px;
  padding: 32px 28px;
}
.tpl-idx-instructions p {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 16px;
}
.tpl-idx-instructions h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0a1628;
  margin: 24px 0 8px;
}
.tpl-idx-instructions h4:first-child {
  margin-top: 0;
}
.tpl-idx-instructions code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82em;
  background: #f3f1eb;
  padding: 2px 6px;
  border-radius: 3px;
  color: #0a1628;
}
.tpl-idx-instructions pre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  background: #0a1628;
  color: #e2e8f0;
  padding: 14px 18px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 8px 0 12px;
  line-height: 1.55;
}
.tpl-idx-instructions p:last-child {
  margin-bottom: 0;
}

@media (max-width: 680px) {
  .tpl-idx-grid {
    grid-template-columns: 1fr;
  }
  .tpl-idx-hero h1 {
    font-size: 1.75rem;
  }
}
