/* The Invisible Labor Audit - Printable worksheet
   Light cream background, dark ink text, optimized for letter-size paper */

:root {
  --paper:        #fdf6e9;
  --paper-edge:   #f3eada;
  --ink:          #1a1421;
  --ink-soft:     #5a4f63;
  --accent:       #d23e8b;
  --rule:         #2a2233;
  --rule-light:   rgba(26, 20, 33, 0.18);
}

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

body {
  background: var(--paper-edge);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 11pt;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.sheet {
  background: var(--paper);
  max-width: 8.5in;
  margin: 0.5in auto;
  padding: 0.4in 0.5in 0.35in;
  box-shadow: 0 8px 32px rgba(26, 20, 33, 0.18);
  min-height: 10.5in;
  position: relative;
}

/* Header */

.sheet-header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5em;
  margin-bottom: 0.8em;
  position: relative;
}
.sheet-eyebrow {
  font-family: 'Caveat', cursive;
  font-weight: 400;
  font-size: 18pt;
  color: var(--accent);
  margin: 0 0 0.05em;
  line-height: 1;
  letter-spacing: 0.01em;
}
.sheet-header h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 26pt;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sheet-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 11pt;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.25em 0 0;
}

/* Intro */

.sheet-intro {
  margin: 0.6em 0 0.7em;
}
.sheet-intro p {
  margin: 0 0 0.4em;
  color: var(--ink);
  font-size: 10pt;
  line-height: 1.42;
}
.sheet-instruction {
  background: rgba(210, 62, 139, 0.07);
  border-left: 3px solid var(--accent);
  padding: 0.5em 0.75em;
  font-size: 9.5pt !important;
  margin-top: 0.55em !important;
  border-radius: 0 4px 4px 0;
}

/* Table */

.sheet-audit { margin: 0.6em 0; }
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5pt;
  table-layout: fixed;
}
.audit-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 10pt;
  letter-spacing: 0.04em;
  padding: 0.6em 0.7em;
  text-align: left;
  vertical-align: middle;
  line-height: 1.2;
  border: 1px solid var(--ink);
}
.audit-table .th-sub {
  font-weight: 400;
  font-size: 8.5pt;
  opacity: 0.78;
  letter-spacing: 0.02em;
  text-transform: none;
}
.audit-table .col-drain { width: 46%; }
.audit-table .col-ai    { width: 22%; text-align: center; }
.audit-table .col-try   { width: 32%; }

.audit-table tbody td {
  border: 1px solid var(--rule-light);
  padding: 0.28em 0.55em;
  height: 0.36in;
  vertical-align: top;
  background: var(--paper);
}
.audit-table tbody td.col-ai,
.audit-table tbody tr td:nth-child(2) {
  text-align: center;
}
.audit-table .example-row td {
  background: rgba(210, 62, 139, 0.05);
  color: var(--ink-soft);
  font-size: 9.5pt;
}
.audit-table .example-row em { font-style: italic; }

/* Prompt box (below table) */

.sheet-prompt {
  margin: 0.9em 0 0.5em;
  padding: 0.8em 1em 0.85em 1.05em;
  background: rgba(210, 62, 139, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  page-break-inside: avoid;
  page-break-before: always;
  break-before: page;
}
.sheet-prompt .prompt-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14pt;
  color: var(--ink);
  margin: 0 0 0.2em;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.sheet-prompt .prompt-subline {
  font-family: 'Poppins', sans-serif;
  font-size: 10.5pt;
  color: var(--ink-soft);
  margin: 0 0 0.8em;
  line-height: 1.4;
}
.sheet-prompt .prompt-code {
  font-family: 'Poppins', sans-serif;
  font-size: 10pt;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  padding: 0.8em 1em;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Closing */

.sheet-close {
  margin: 0.7em 0 0.4em;
  text-align: center;
  page-break-inside: avoid;
}
.close-line {
  font-family: 'Poppins', sans-serif;
  font-size: 10.5pt;
  margin: 0 0 0.3em;
  color: var(--ink);
}
.close-quote {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 18pt;
  color: var(--accent);
  margin: 0;
  line-height: 1.15;
}

/* Footer */

.sheet-footer {
  margin-top: 0.7em;
  padding-top: 0.5em;
  border-top: 1px solid var(--rule-light);
  text-align: center;
  font-size: 8.5pt;
  color: var(--ink-soft);
}
.sheet-footer p { margin: 0; }

/* Print actions (hidden on print) */

.print-actions {
  max-width: 8.5in;
  margin: 0 auto 1in;
  padding: 0 0.65in;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.btn-back, .btn-print {
  display: inline-block;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-back {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-light);
}
.btn-back:hover { background: rgba(26, 20, 33, 0.06); }
.btn-print {
  background: var(--accent);
  color: white;
}
.btn-print:hover { background: #b53077; }

/* Print rules */

@media print {
  body { background: white; }
  .sheet {
    margin: 0;
    box-shadow: none;
    max-width: none;
    width: 100%;
    padding: 0.45in 0.55in;
    min-height: 0;
  }
  .no-print, .print-actions { display: none !important; }
  @page { size: letter; margin: 0; }
}
