/* Priolix Developer Portal styles. Scoped to .dev-* classes so they don't
   collide with the consumer site CSS. */

.dev-hero {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}
.dev-hero h1 {
  font-size: 2.25rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.dev-hero-sub {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.55;
}
.dev-hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.dev-hero-note { color: #6b7280; font-size: 0.95rem; margin: 0; }

.dev-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
}
.dev-tile {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
}
.dev-tile h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.dev-tile p { margin: 0 0 0.75rem; color: #4b5563; }
.dev-tile ul { margin: 0 0 0.75rem 1.25rem; padding: 0; color: #374151; }
.dev-tile a { font-weight: 600; color: #0d9488; text-decoration: none; }

.dev-quickstart, .dev-quotas, .dev-page { margin: 0 0 2rem; }

.dev-code, .dev-output {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  font: 0.85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: auto;
  white-space: pre;
}
.dev-output { min-height: 80px; max-height: 400px; }

.dev-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
.dev-table th, .dev-table td { border-bottom: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; text-align: left; }
.dev-table thead th { background: #f9fafb; font-weight: 600; }

.dev-pg-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 0 0 1.25rem;
  background: #fff;
}
.dev-pg-card h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }

.dev-form { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; margin: 0.5rem 0 0.75rem; }
.dev-form label { display: flex; flex-direction: column; font-size: 0.85rem; color: #374151; gap: 0.25rem; }
.dev-form input { padding: 0.5rem 0.6rem; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; font-size: 0.95rem; min-width: 180px; }
.dev-form button { padding: 0.55rem 1rem; background: #0d9488; color: #fff; border: 0; border-radius: 6px; font-weight: 600; cursor: pointer; }
.dev-form button:hover { background: #0f766e; }

.dev-key-row { display: flex; gap: 0.5rem; align-items: center; margin: 1rem 0 1.5rem; flex-wrap: wrap; }
.dev-key-row input { flex: 1; min-width: 280px; padding: 0.55rem 0.7rem; border: 1px solid #d1d5db; border-radius: 6px; font-family: ui-monospace, monospace; }
.dev-key-row button { padding: 0.55rem 1rem; background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 6px; cursor: pointer; }

.dev-key-issued { background: #ecfdf5; border: 1px solid #10b981; padding: 1.5rem; border-radius: 10px; }
.dev-key-block { background: #064e3b !important; color: #d1fae5 !important; word-break: break-all; white-space: pre-wrap; }
.dev-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 0.75rem 1rem; border-radius: 6px; margin: 0.5rem 0 1rem; }

.dev-toc { display: flex; gap: 1rem; margin: 0.5rem 0 1.5rem; flex-wrap: wrap; }
.dev-toc a { font-weight: 600; color: #0d9488; text-decoration: none; }

.dev-md h1 { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.dev-md h2 { font-size: 1.2rem; margin: 1.25rem 0 0.5rem; padding-top: 0.25rem; border-top: 1px solid #e5e7eb; }
.dev-md h3 { font-size: 1.05rem; margin: 1rem 0 0.4rem; }
.dev-md pre { background: #0f172a; color: #e5e7eb; padding: 0.85rem; border-radius: 6px; overflow-x: auto; }
.dev-md code { background: #f3f4f6; padding: 0.05rem 0.35rem; border-radius: 4px; font: 0.85em ui-monospace, monospace; }
.dev-md pre code { background: transparent; padding: 0; }
.dev-md table { border-collapse: collapse; margin: 0.5rem 0 1rem; }
.dev-md th, .dev-md td { border: 1px solid #e5e7eb; padding: 0.4rem 0.7rem; }
.dev-md a { color: #0d9488; }

.dev-swagger-frame { width: 100%; height: 80vh; border: 1px solid #e5e7eb; border-radius: 10px; margin-top: 1rem; }

.btn { display: inline-block; padding: 0.6rem 1.1rem; border-radius: 8px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; }
.btn-primary { background: #0d9488; color: #fff; }
.btn-primary:hover { background: #0f766e; color: #fff; }
.btn-secondary { background: #f3f4f6; color: #111827; border: 1px solid #d1d5db; }
.btn-secondary:hover { background: #e5e7eb; }
.btn-tertiary { background: transparent; color: #0d9488; }
.btn-tertiary:hover { text-decoration: underline; }

/* Tile links (use-case sub-pages) */
a.dev-tile { display: block; color: inherit; text-decoration: none; transition: transform 0.12s ease, border-color 0.12s ease; }
a.dev-tile:hover { transform: translateY(-2px); border-color: #0d9488; }
a.dev-tile h2 { color: #0d9488; }

/* Code-sample language tabs */
.dev-tabs { display: flex; gap: 0.25rem; margin-bottom: 0; border-bottom: 1px solid #e5e7eb; }
.dev-tab {
  background: transparent; border: 0; padding: 0.55rem 1rem;
  color: #6b7280; font-weight: 600; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.dev-tab.active { color: #0d9488; border-bottom-color: #0d9488; }
.dev-tab-panel { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

/* FAQ accordion */
.dev-faq { margin: 0 0 2rem; }
.dev-faq h2 { margin-bottom: 0.75rem; }
.dev-faq details {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #fff;
}
.dev-faq summary { font-weight: 600; cursor: pointer; padding: 0.25rem 0; color: #0f172a; }
.dev-faq details[open] summary { color: #0d9488; }
.dev-faq details p { margin: 0.5rem 0 0.25rem; color: #374151; line-height: 1.55; }

/* Changelog */
.dev-changelog-entry { scroll-margin-top: 80px; }
.dev-changelog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.dev-changelog-head h2 { margin: 0; }
.dev-changelog-meta { color: #6b7280; font-size: 0.9rem; display: inline-flex; gap: 0.6rem; align-items: baseline; }
.dev-changelog-meta code { background: #f3f4f6; padding: 0.05rem 0.4rem; border-radius: 4px; }
.dev-changelog-section { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 1rem 0 0.25rem; }
.dev-section-added       { color: #047857; }
.dev-section-changed     { color: #1d4ed8; }
.dev-section-fixed       { color: #92400e; }
.dev-section-deprecated  { color: #6b21a8; }
.dev-section-security    { color: #b91c1c; }

/* Eval reports */
.dev-eval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.dev-eval-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dev-eval-card-head h2 { margin: 0; font-size: 1.1rem; }
.dev-eval-score { font-size: 2rem; font-weight: 700; line-height: 1; }
.dev-eval-score-missing { color: #9ca3af; }
.dev-eval-overall { display: flex; gap: 1.5rem; align-items: center; }
.dev-eval-overall-score { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.dev-eval-overall h2 { margin: 0 0 0.25rem; }
.dev-eval-tier-green       { border-left: 4px solid #10b981; }
.dev-eval-tier-green .dev-eval-score, .dev-eval-tier-green .dev-eval-overall-score { color: #047857; }
.dev-eval-tier-amber       { border-left: 4px solid #f59e0b; }
.dev-eval-tier-amber .dev-eval-score, .dev-eval-tier-amber .dev-eval-overall-score { color: #b45309; }
.dev-eval-tier-red         { border-left: 4px solid #ef4444; }
.dev-eval-tier-red .dev-eval-score, .dev-eval-tier-red .dev-eval-overall-score { color: #b91c1c; }
.dev-eval-tier-unknown     { border-left: 4px solid #d1d5db; }
.dev-eval-note { font-size: 0.9rem; color: #4b5563; }
.dev-eval-meta { font-size: 0.85rem; color: #6b7280; margin-top: 0.5rem; }
.dev-eval-missing { color: #6b21a8; font-size: 0.9rem; }
