@charset "UTF-8";
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ── Page layout ── */
.silk-detail-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

/* ── Hero bar ── */
.silk-hero {
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--silk-border);
  margin-bottom: 1.5rem;
}

.silk-hero__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.silk-hero__time {
  margin-left: auto;
  font-size: 12px;
  color: var(--silk-text-muted);
}

.silk-hero__path {
  font-family: Fantasque, monospace;
  font-size: 1.1rem;
  color: var(--silk-text-primary);
  word-break: break-all;
  margin-bottom: 10px;
}

.silk-hero__metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.silk-hero__metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--silk-text-secondary);
}
.silk-hero__metric--bad {
  color: var(--silk-perf-very-bad);
}
.silk-hero__metric--warn {
  color: var(--silk-perf-ok);
}

/* ── Sections ── */
.silk-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.silk-section {
  background: var(--silk-surface);
  border: 1px solid var(--silk-border);
  border-radius: var(--silk-card-radius, 8px);
  overflow: hidden;
}
.silk-section__heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--silk-text-secondary);
  padding: 10px 16px;
  margin: 0;
  border-bottom: 1px solid var(--silk-border);
  background: var(--silk-filter-bg);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Code / pre ── */
.silk-pre {
  margin: 0;
  padding: 1rem;
  background: var(--silk-surface) !important;
  font-family: Fantasque, monospace;
  font-size: 13px;
  color: var(--silk-text-primary);
  overflow-x: auto;
}
.silk-pre code {
  background: transparent !important;
  padding: 0 !important;
  color: inherit;
}

/* ── Headers table ── */
.silk-headers {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: Fantasque, monospace;
}

.silk-headers__row {
  border-bottom: 1px solid var(--silk-border);
}
.silk-headers__row:last-child {
  border-bottom: none;
}
.silk-headers__row:hover td {
  background: var(--silk-row-hover-bg);
}

.silk-headers__key {
  font-weight: 600;
  color: var(--silk-text-secondary);
  padding: 7px 12px 7px 16px;
  white-space: nowrap;
  width: 200px;
  vertical-align: top;
}

.silk-headers__val {
  color: var(--silk-text-primary);
  padding: 7px 16px 7px 0;
  word-break: break-all;
}

/* ── Detail note ── */
.silk-detail-note {
  font-size: 13px;
  font-style: italic;
  color: var(--silk-text-muted);
  padding: 0.75rem 1rem;
  margin: 0;
  border-bottom: 1px solid var(--silk-border);
}
.silk-detail-note a {
  color: var(--silk-perf-ok);
}

/* ── Shared badge styles (also defined in requests.scss) ── */
.silk-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.silk-badge--method.silk-badge--get {
  background: var(--silk-method-get-bg);
  color: var(--silk-method-get);
}
.silk-badge--method.silk-badge--post {
  background: var(--silk-method-post-bg);
  color: var(--silk-method-post);
}
.silk-badge--method.silk-badge--put {
  background: var(--silk-method-put-bg);
  color: var(--silk-method-put);
}
.silk-badge--method.silk-badge--patch {
  background: var(--silk-method-patch-bg);
  color: var(--silk-method-patch);
}
.silk-badge--method.silk-badge--delete {
  background: var(--silk-method-delete-bg);
  color: var(--silk-method-delete);
}
.silk-badge--status.silk-badge--status-2xx {
  background: var(--silk-status-2xx-bg);
  color: var(--silk-status-2xx);
}
.silk-badge--status.silk-badge--status-3xx {
  background: var(--silk-status-3xx-bg);
  color: var(--silk-status-3xx);
}
.silk-badge--status.silk-badge--status-4xx {
  background: var(--silk-status-4xx-bg);
  color: var(--silk-status-4xx);
}
.silk-badge--status.silk-badge--status-5xx {
  background: var(--silk-status-5xx-bg);
  color: var(--silk-status-5xx);
}

.silk-unit {
  font-size: 10px;
  opacity: 0.75;
}

.silk-icon--sm {
  width: 13px;
  height: 13px;
}

/* ── N+1 hero metric pill ── */
.silk-hero__metric--n1 {
  color: var(--silk-perf-ok) !important;
  font-weight: 600;
}

.silk-n1-link {
  text-decoration: none;
}
.silk-n1-link:hover {
  text-decoration: underline;
  color: var(--silk-perf-bad) !important;
}