/* ============================================================
   /data.html — "Porn recovery in numbers"
   Citation-rich landing page. Tables-as-content with primary
   sources linked from every row. Built for AI crawlers + skeptical
   readers. Tone: factual, dense, scannable. Not marketing.
   ============================================================ */

.data-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}

/* Hero */
.data-hero { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.data-hero .eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin: 0 0 18px;
}
.data-hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--ink-1);
  text-wrap: balance;
}
.data-hero .lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.data-hero-meta {
  font-size: 13px !important;
  color: var(--ink-3) !important;
  letter-spacing: 0.02em;
  margin: 0 !important;
}
.data-hero-meta a { color: var(--blue, #4DA3FF); text-decoration: none; }
.data-hero-meta a:hover { opacity: 0.8; }

/* Each section */
.data-section {
  margin: 0 0 56px;
}
.data-section h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin: 0 0 20px;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid var(--line-1);
  border-radius: 12px;
  overflow: hidden;
}
.data-table thead th {
  background: rgba(255,255,255,0.04);
  color: var(--ink-3);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-1);
}
.data-table tbody td {
  padding: 18px 18px;
  border-bottom: 1px solid var(--line-1);
  color: var(--ink-2);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* First column = the finding/number — slightly emphasized */
.data-table tbody td:first-child {
  color: var(--ink-1);
  font-weight: 400;
}
.data-table tbody td:first-child strong {
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--ink-1);
  display: inline-block;
}

/* Source column links */
.data-table tbody td:last-child {
  color: var(--ink-3);
  font-size: 13px;
  white-space: normal;
}
.data-table tbody td:last-child a {
  color: var(--blue, #4DA3FF);
  text-decoration: none;
  font-weight: 500;
}
.data-table tbody td:last-child a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.data-table tbody td:last-child em {
  color: var(--ink-3);
  font-style: italic;
}

/* Inline code (e.g. Course.allCourses.count) */
.data-table code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--ink-2);
}

/* Footer / build-process note */
.data-foot {
  margin: 56px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line-1);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.data-foot h2 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 0 0 14px;
}
.data-foot p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.data-foot p a {
  color: var(--blue, #4DA3FF);
  text-decoration: none;
}
.data-foot p a:hover { text-decoration: underline; }
.data-foot code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--ink-2); }

/* Mobile — stack tables to 2 visual columns by collapsing the
   middle "what it means" column under the finding. */
@media (max-width: 760px) {
  .data-page { padding: 120px 16px 72px; }
  .data-hero { margin-bottom: 48px; }
  .data-section h2 { font-size: 1.25rem; }
  .data-table { font-size: 13.5px; }
  .data-table thead { display: none; }
  .data-table tbody td {
    display: block;
    padding: 12px 16px;
    border-bottom: 0;
  }
  .data-table tbody tr {
    display: block;
    border-bottom: 1px solid var(--line-1);
    padding: 12px 0;
  }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table tbody td:first-child {
    padding-top: 16px;
    padding-bottom: 4px;
  }
  .data-table tbody td:nth-child(2) {
    padding-top: 4px;
    padding-bottom: 4px;
    color: var(--ink-3);
    font-style: italic;
    font-size: 12.5px;
  }
  .data-table tbody td:last-child {
    padding-top: 8px;
    padding-bottom: 16px;
  }
}
