/* ============================================================
   SkinQ Rx — Clinical Study Page Shared Styles
   Used by all individual study detail pages
   ============================================================ */

/* ── Breadcrumb ────────────────────────────────────────────── */
.study-breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: white;
}

.study-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-light);
}

.study-breadcrumb-inner a { color: var(--ink-light); transition: color 0.12s; }
.study-breadcrumb-inner a:hover { color: var(--brand); }
.study-breadcrumb-sep { opacity: 0.4; }
.study-breadcrumb-current { color: var(--ink); }

/* ── Study Hero ────────────────────────────────────────────── */
.study-hero {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 64px 0 0;
}

.study-hero-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 48px;
}

.study-hero-product {
  position: sticky;
  top: 100px;
}

.study-hero-product-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 16px;
}

.study-hero-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.study-hero-product-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}

.study-hero-product-range {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.study-hero-content {}

.study-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.study-hero-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
}

.study-hero-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 640px;
}

.study-hero-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 600px;
  margin-bottom: 36px;
}

/* Quick outcome chips */
.study-outcome-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.study-outcome-chip {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  min-width: 120px;
}

.study-outcome-chip-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 5px;
}

.study-outcome-chip-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-light);
  line-height: 1.3;
}

/* Study meta row */
.study-hero-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  flex-wrap: wrap;
}

.study-hero-meta-item {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--border);
}

.study-hero-meta-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.study-meta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 3px;
}

.study-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ── Section Shared ─────────────────────────────────────────── */
.study-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.study-section:last-child { border-bottom: none; }

.study-section-bg { background: var(--bg); }
.study-section-white { background: white; }
.study-section-dark { background: var(--ink); color: white; }

.study-section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}

.study-section-dark .study-section-eyebrow { color: rgba(255,255,255,0.4); }

.study-section-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 48px;
}

.study-section-dark .study-section-title { color: white; }

/* ── Key Outcome Stat Blocks ─────────────────────────────────── */
.stat-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 56px;
}

.stat-block {
  background: white;
  padding: 36px 28px;
  position: relative;
}

.stat-block-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.stat-block-instrument {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.stat-block-number {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-block-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 4px;
}

.stat-block-detail {
  font-size: 11px;
  color: var(--ink-light);
  font-weight: 500;
}

/* ── SVG Line Chart ──────────────────────────────────────────── */
.chart-block {
  margin-bottom: 48px;
}

.chart-block-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.chart-svg-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 24px 24px 8px;
  overflow: hidden;
}

.chart-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG Chart elements */
.chart-grid-line { stroke: var(--border); stroke-width: 1; }
.chart-axis-line { stroke: var(--border); stroke-width: 1; }
.chart-data-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-data-line-2 { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5,3; }
.chart-dot { r: 5; }
.chart-dot-2 { r: 4; }
.chart-label-text { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600; fill: var(--ink-light); }
.chart-value-text { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; }
.chart-legend-text { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600; fill: var(--ink-mid); }

/* ── Clinical Summary Columns ────────────────────────────────── */
.summary-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.summary-col {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
}

.summary-col:last-child { border-right: none; }

.summary-col-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}

.summary-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}

.summary-col-body {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ── Study Design Grid ──────────────────────────────────────── */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.design-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 24px 20px;
}

.design-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--ink-mid);
}

.design-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 6px;
}

.design-card-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.design-card-sub {
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 3px;
  font-weight: 500;
}

/* ── Tolerability / Safety ──────────────────────────────────── */
.tolerability-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

.zero-ae-callout {
  text-align: center;
  flex-shrink: 0;
}

.zero-ae-number {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--acne);
  display: block;
}

.zero-ae-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 6px;
  display: block;
}

.tolerability-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tolerability-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
}

.tolerability-point-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acne);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── PDF Download ────────────────────────────────────────────── */
.download-section {
  padding: 48px 0;
  background: white;
  border-top: 1px solid var(--border);
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.download-text-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.download-text-sub {
  font-size: 12px;
  color: var(--ink-light);
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.download-btn:hover { background: var(--ink); color: white; }

/* ── Related Section ─────────────────────────────────────────── */
.related-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.related-pill {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mid);
  background: white;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.related-pill:hover { border-color: var(--brand); color: var(--brand); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .study-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .study-hero-product { position: static; display: flex; gap: 16px; align-items: center; }
  .study-hero-product-img { width: 80px; height: 80px; margin-bottom: 0; flex-shrink: 0; }
  .study-outcome-chips { gap: 8px; }
  .study-outcome-chip { min-width: 100px; padding: 12px 14px; }
  .stat-blocks { grid-template-columns: 1fr 1fr; }
  .summary-cols { grid-template-columns: 1fr; }
  .summary-col { border-right: none; border-bottom: 1px solid var(--border); }
  .summary-col:last-child { border-bottom: none; }
  .design-grid { grid-template-columns: 1fr 1fr; }
  .tolerability-inner { grid-template-columns: 1fr; gap: 32px; }
  .zero-ae-number { font-size: 56px; }
  .study-section { padding: 48px 0; }
  .download-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stat-blocks { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr; }
}
