/* ============================================================
   Peptide landing-page styles. Shares tokens from style.css.
   Mobile-first; readable prose column; dose table scrolls on narrow screens.
   ============================================================ */

.pp-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  margin: 0;
  padding: 0;
}

.pp-waiver {
  background: rgba(255, 180, 60, 0.08);
  border-bottom: 1px solid rgba(255, 180, 60, 0.25);
  color: var(--text-dim);
  font-size: 12px;
  padding: 8px 16px;
  text-align: center;
}

.pp-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.pp-article { max-width: 720px; }

.pp-breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.pp-breadcrumbs a { color: var(--muted); text-decoration: none; }
.pp-breadcrumbs a:hover { color: var(--accent); }

.pp-h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--text);
}

.pp-aliases {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.pp-aliases span {
  display: inline-block;
  padding: 2px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-right: 4px;
  margin-bottom: 4px;
  font-size: 12px;
}

.pp-class { margin: 0 0 16px; }
.pp-class-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(76, 154, 255, 0.08);
  border: 1px solid rgba(76, 154, 255, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.pp-hero-cta { margin: 20px 0 36px; }
.pp-cta {
  display: inline-block;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 160ms ease;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.1));
}
.pp-cta:hover {
  background: var(--accent-hover, var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 154, 255, 0.25);
}
.pp-cta-large {
  padding: 18px 32px;
  font-size: 17px;
}

.pp-section {
  margin: 36px 0;
}
.pp-section h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(20px, 3vw, 24px);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
}
.pp-section h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--text);
  font-weight: 600;
}
.pp-section p { margin: 0 0 12px; color: var(--text-dim, var(--text)); }
.pp-section ul, .pp-section ol { margin: 0 0 12px; padding-left: 20px; color: var(--text-dim, var(--text)); }
.pp-section ul li, .pp-section ol li { margin-bottom: 6px; }

.pp-class-full { font-size: 14px; color: var(--muted); }

.pp-uses { list-style: none; padding: 0; margin: 0; }
.pp-use {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.pp-use-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.pp-tier {
  display: inline-block;
  padding: 1px 8px;
  background: var(--panel-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pp-studies {
  list-style: none;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  margin: 8px 0 0;
}
.pp-studies li { font-size: 14px; color: var(--text-dim); margin-bottom: 6px; }
.pp-citation { color: var(--muted); font-size: 12px; }

.pp-pmid {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 4px;
}
.pp-pmid:hover { text-decoration: underline; }
.pmid-inline {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(76, 154, 255, 0.08);
}
.pmid-inline:hover { background: rgba(76, 154, 255, 0.18); }

.pp-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
  -webkit-overflow-scrolling: touch;
}
.pp-dose-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.pp-dose-table th, .pp-dose-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.pp-dose-table th {
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-transform: none;
}
.pp-dose-table tr:last-child td { border-bottom: 0; }
.pp-tier-key {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.pp-tier-key code {
  padding: 1px 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

.pp-list { list-style: disc; padding-left: 20px; }
.pp-list li { margin-bottom: 6px; font-size: 14px; }

.pp-faq-item {
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.pp-faq-item h3 { margin: 0 0 6px; font-size: 15px; }
.pp-faq-item p { font-size: 14px; margin: 0 0 8px; }

.pp-refs { font-size: 13px; }
.pp-ref-list {
  list-style: none;
  padding-left: 0;
  counter-reset: ref;
}
.pp-ref-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 8px;
}
.pp-ref-num {
  position: absolute;
  left: 0;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.pp-ref-context { color: var(--muted); font-size: 12px; }

.pp-secondary-cta {
  margin: 36px 0;
  text-align: center;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.pp-related-card, .pp-component-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 160ms ease;
}
.pp-related-card:hover, .pp-component-card:hover {
  border-color: var(--accent-dim, var(--accent));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.1));
}
.pp-related-card strong, .pp-component-card strong { font-size: 15px; font-weight: 600; }
.pp-related-class { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pp-component-cta {
  margin-top: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.pp-stack-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.pp-component-missing { background: transparent; color: var(--muted); border-style: dashed; cursor: default; }
.pp-component-missing:hover { transform: none; box-shadow: none; border-color: var(--border); }
.pp-stack-purpose { font-size: 14px; color: var(--text-dim); font-style: italic; }
.pp-stack-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Index pages */
.pp-lede { font-size: 15px; color: var(--text-dim); margin-bottom: 20px; }
.pp-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.pp-index-card {
  display: block;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 160ms ease;
}
.pp-index-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.pp-index-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.pp-index-card p { margin: 0; font-size: 13px; color: var(--muted); }
.pp-badge {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-radius: 3px;
  vertical-align: middle;
}
.pp-badge-stack {
  color: var(--accent);
  background: rgba(76, 154, 255, 0.1);
  border: 1px solid rgba(76, 154, 255, 0.35);
}

.pp-footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  color: var(--muted);
  font-size: 12px;
  background: var(--bg);
}
.pp-footer-inner { max-width: 760px; margin: 0 auto; }
.pp-footer-dim { margin-top: 8px; color: var(--muted); opacity: 0.75; font-size: 11px; }
.pp-footer a { color: var(--muted); text-decoration: underline; }
.pp-footer a:hover { color: var(--accent); }

.pp-empty { color: var(--muted); font-style: italic; margin: 40px 0; text-align: center; }

@media (max-width: 640px) {
  .pp-main { padding: 16px 14px 80px; }
  .pp-h1 { font-size: 24px; }
  .pp-section h2 { font-size: 18px; }
  .pp-use-head { flex-direction: column; align-items: flex-start; }
}
