/* Utiliy research pages — PDP Index, UPRS spec, embed */
.research-page { background: var(--bg); color: var(--ink); }
.research-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}
.research-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}
.research-glow-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(124, 58, 237, .2), transparent 70%);
  top: -120px; right: 10%;
}
.research-hero-inner { position: relative; max-width: 820px; }
.research-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}
.research-back:hover { color: var(--accent); }
.research-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.research-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
}
.research-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}
.research-hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.research-body { padding-bottom: 4rem; }
.research-article { padding: 1.75rem 2rem; margin-top: .5rem; }
.research-prose { max-width: 72ch; }
.research-prose h2 { margin-top: 2rem; font-size: 1.35rem; color: var(--ink); }
.research-prose h3 { margin-top: 1.5rem; font-size: 1.1rem; color: var(--ink); }
.research-prose p, .research-prose li { line-height: 1.65; color: var(--muted); }
.research-prose a { color: var(--accent); }
.research-prose strong { color: var(--ink); }

/* PDP Index stats */
.pdp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.pdp-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.pdp-stat-card strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.pdp-stat-card span { font-size: .8rem; color: var(--muted); }

.pdp-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.pdp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.pdp-table th, .pdp-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
}
.pdp-table th { color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.pdp-table a { color: var(--accent); word-break: break-all; }
.pdp-score { font-variant-numeric: tabular-nums; font-weight: 600; }
.pdp-score--good { color: #15803d; }
.pdp-score--warn { color: #b45309; }
.pdp-score--bad { color: #b91c1c; }
.pdp-status-badge {
  display: inline-block;
  font-size: .7rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, .1);
  color: #b91c1c;
}
.pdp-retailer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.pdp-retailer-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}
.pdp-retailer-card h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--ink); }
.pdp-retailer-card dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; font-size: .85rem; }
.pdp-retailer-card dt { color: var(--muted); }
.pdp-retailer-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.pdp-downloads { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.pdp-citation-box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(124, 58, 237, .06);
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: var(--ink);
}

/* UPRS rules table */
.uprs-table { font-size: .82rem; }
.uprs-id { font-family: ui-monospace, monospace; color: var(--accent); white-space: nowrap; }

/* Embed badge */
.embed-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: 1.5rem 0;
  background: #f8f7fc;
  border-radius: 12px;
  border: 1px dashed var(--line);
}
.embed-form { display: grid; gap: 1rem; max-width: 480px; margin: 1.5rem 0; }
.embed-form label { display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
.embed-form input {
  padding: .6rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.embed-code {
  width: 100%;
  min-height: 100px;
  font-family: ui-monospace, monospace;
  font-size: .78rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fafafa;
  color: #27272a;
}

.utiliy-badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .85rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: var(--shadow);
}
.utiliy-badge:hover { border-color: rgba(124, 58, 237, .35); }
.utiliy-badge-score {
  font-weight: 700;
  font-size: 1.15rem;
  color: #7c3aed;
}
.utiliy-badge-label { color: var(--muted); font-size: 11px; }
.utiliy-badge-brand { font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  .research-article { padding: 1.25rem; }
}
