/* paperHTML/paper.css — shared paper-layout CSS for all paperHTML artifacts.
 *
 * Extracted 2026-06-09 from the canonical core of substrate-law-2026 (x4
 * variants) + healthcare-mode-2-2026 (x2 variants). Per-paper widgets
 * (.substrate-hero, .refactor-target, etc.) remain in each paper's <style> block.
 *
 * Versioned via ?v=YYYY-MM-DD querystring on the <link> tag in each paper's <head>,
 * matching the convention used for paperHTML/toolbar.{js,css}.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  color: #1a1a1a;
  background: #f9f7f4;
  padding-bottom: 80px;
}

#paper-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* --- Paper header (label, h1, subtitle, meta) --- */

.paper-header {
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.paper-header h1 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.paper-header .subtitle {
  font-size: 1.1rem;
  color: #555;
  font-style: italic;
  margin-bottom: 18px;
}

.paper-header .paper-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #888;
  margin-bottom: 16px;
}

.paper-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: #666;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* --- Status badges --- */

.status-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid #ddd;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}

.status-badge.draft { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.status-badge.terse { background: #eef2ff; border-color: #6366f1; color: #3730a3; }

/* --- Abstract block --- */

.abstract {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.abstract h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}

.abstract p { font-size: 0.95rem; color: #333; }

/* --- Series-note callout --- */

.series-note {
  background: #f3f4f6;
  border-left: 4px solid #6b7280;
  padding: 14px 18px;
  margin: 0 0 28px;
  font-size: 0.93rem;
  color: #444;
}

/* --- Body typography --- */

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: #333;
}

p { margin-bottom: 16px; }

.section-number {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: -8px 0 18px;
}

/* --- Two-column table (with optional caption + row-anchor emphasis) --- */

.two-column-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.94rem;
}

.two-column-table caption {
  caption-side: top;
  text-align: left;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  padding: 14px 18px 12px;
  background: #fafafa;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom: 1px solid #e5e5e5;
}

.two-column-table caption .gloss {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.93rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
  margin-top: 4px;
}

.two-column-table th {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
  width: 50%;
}

.two-column-table td {
  padding: 10px 16px;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0;
}

.two-column-table tr:last-child td { border-bottom: none; }

.two-column-table td + td {
  border-left: 1px solid #f0f0f0;
}

/* Row anchor -- visual emphasis on a specific row */
.two-column-table tr.row-anchor td {
  background: #fef3c7;
  position: relative;
}
.two-column-table tr.row-anchor td:first-child {
  border-left: 3px solid #b45309;
  padding-left: 14px;
}
.two-column-table tr.row-anchor td strong {
  color: #92400e;
}
.two-column-table tr.row-anchor td + td {
  border-left-color: #f0e6c4;
}

/* --- Coda callout --- */

.coda {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 22px 26px;
  margin: 36px 0 24px;
  font-style: italic;
  color: #333;
}

.coda strong { font-style: normal; }

/* --- References --- */

.refs {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #ddd;
  font-size: 0.92rem;
}

.refs h2 {
  font-size: 1rem;
  border: none;
  padding: 0;
  margin: 0 0 14px;
}

.refs ol { padding-left: 24px; color: #444; }
.refs li { margin-bottom: 8px; }

em { font-style: italic; }
