/* Shared worksheet styles — Leadership Isn't Personal companion assets */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #2D2D2D;
  --ink-soft: #555;
  --ink-mute: #888;
  --coral: #F06050;
  --cream: #EDEBE6;
  --cream-deep: #D9D5CA;
  --paper: #FDFBF5;
  --rule: #CFC9BC;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 11pt;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 8.5in;
  min-height: 11in;
  padding: 0.55in 0.7in 0.75in;
  margin: 0.25in auto;
  background: var(--paper);
  page-break-after: always;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.page:last-of-type { page-break-after: auto; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 9pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 14pt;
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 40pt;
  line-height: 1.02;
  font-weight: 400;
  margin: 0 0 10pt;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22pt;
  line-height: 1.15;
  font-weight: 400;
  margin: 18pt 0 8pt;
  color: var(--ink);
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 16pt 0 6pt;
  color: var(--ink);
}

p { margin: 0 0 10pt; }

.subtitle {
  font-size: 13pt;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 5.5in;
  margin-bottom: 26pt;
}

.hero {
  margin: 10pt 0 20pt;
  position: relative;
}
.hero img {
  width: 100%;
  display: block;
}

.lede {
  font-size: 12pt;
  line-height: 1.55;
  color: var(--ink);
  max-width: 6.2in;
}

.instructions {
  background: var(--cream);
  border-left: 3px solid var(--coral);
  padding: 12pt 14pt;
  font-size: 10.5pt;
  margin: 16pt 0 20pt;
  color: var(--ink-soft);
  line-height: 1.5;
}
.instructions strong { color: var(--ink); }

.rule {
  height: 1px;
  background: var(--rule);
  margin: 24pt 0 18pt;
  border: none;
}

/* Row with number + label + field */
.row {
  display: grid;
  grid-template-columns: 28pt 1fr;
  gap: 12pt;
  align-items: start;
  padding: 10pt 0;
  border-bottom: 1px dashed var(--cream-deep);
}
.row .num {
  font-family: 'DM Serif Display', serif;
  font-size: 18pt;
  line-height: 1;
  color: var(--coral);
}
.row .body { padding-top: 2pt; }
.row .label {
  font-weight: 600;
  font-size: 11pt;
  color: var(--ink);
  margin-bottom: 3pt;
}
.row .hint {
  font-size: 9.5pt;
  color: var(--ink-mute);
  margin-bottom: 6pt;
  line-height: 1.4;
}

/* Fillable lines */
.lines {
  border-bottom: 1px solid var(--rule);
  height: 22pt;
}
.lines.double { height: 44pt; border-top: 1px solid var(--rule); background: repeating-linear-gradient(to bottom, transparent, transparent 21pt, var(--rule) 21pt, var(--rule) 22pt); }

/* Yes/No boxes */
.yn {
  display: inline-flex;
  gap: 10pt;
  margin-left: 10pt;
  font-size: 10pt;
  color: var(--ink-soft);
}
.yn .box {
  display: inline-flex;
  align-items: center;
  gap: 4pt;
}
.yn .checkbox {
  width: 11pt;
  height: 11pt;
  border: 1.5px solid var(--ink);
  display: inline-block;
  border-radius: 2pt;
}

/* Score scale */
.scale {
  display: flex;
  gap: 6pt;
  margin-top: 4pt;
}
.scale .tick {
  width: 22pt;
  height: 22pt;
  border: 1.5px solid var(--ink);
  border-radius: 3pt;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10pt;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Quadrant grid for 2x2 labels */
.quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10pt;
  margin: 14pt 0;
}
.quad-cell {
  border: 1px solid var(--rule);
  padding: 12pt 14pt;
  background: var(--paper);
}
.quad-cell.win {
  border: 1.5px solid var(--coral);
  background: #FFF7F4;
}
.quad-cell .tag {
  font-size: 9pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 4pt;
}
.quad-cell.win .tag { color: var(--coral); }
.quad-cell .name {
  font-family: 'DM Serif Display', serif;
  font-size: 16pt;
  margin-bottom: 4pt;
  color: var(--ink);
}
.quad-cell p { font-size: 10pt; margin: 0; color: var(--ink-soft); }

/* Signal cards (for drift signals reference) */
.signal {
  display: grid;
  grid-template-columns: 24pt 1fr;
  gap: 12pt;
  padding: 12pt 0;
  border-bottom: 1px dashed var(--cream-deep);
}
.signal .idx {
  font-family: 'DM Serif Display', serif;
  font-size: 18pt;
  color: var(--coral);
  line-height: 1;
}
.signal .name {
  font-weight: 700;
  font-size: 11.5pt;
  margin-bottom: 2pt;
}
.signal .sounds {
  font-size: 10pt;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 4pt;
}
.signal .means, .signal .action {
  font-size: 10.5pt;
  color: var(--ink);
  margin-bottom: 3pt;
}
.signal .label-inline {
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 9pt;
  letter-spacing: 0.06em;
  margin-right: 4pt;
}

.footer {
  position: absolute;
  bottom: 0.45in;
  left: 0.7in;
  right: 0.7in;
  font-size: 8.5pt;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--cream-deep);
  padding-top: 8pt;
}
.footer strong { color: var(--ink); font-weight: 600; }
.footer a { color: var(--coral); text-decoration: none; }

.cover .footer { border-top: none; }

@media print {
  html, body { background: var(--paper); }
  .page {
    margin: 0;
    box-shadow: none;
    padding: 0.4in 0.7in 0.5in;
    min-height: 0;
    height: auto;
  }
  /* Footer flows inline with content + never orphans to its own page. */
  .footer {
    position: static;
    left: auto; right: auto; bottom: auto;
    margin-top: 8pt;
    padding-top: 6pt;
    page-break-before: avoid;
    break-before: avoid;
  }
  /* Tighter row spacing in print to keep worksheet pages under 11in. */
  .row { padding: 7pt 0; }
  .lines { height: 18pt; }
  .lines.double { height: 36pt; }
  .instructions { padding: 10pt 12pt; margin: 10pt 0 14pt; }
  .signal { padding: 4pt 0; gap: 10pt; }
  .signal .name { margin-bottom: 2pt; }
  .signal .sounds { margin-bottom: 2pt; }
  .signal .means, .signal .action { margin-top: 2pt; }
  .signal .means, .signal .action, .signal .sounds { line-height: 1.4; }
  .dep-row { padding: 8pt 0; }
  /* New section → new printed page (first section flows from top). */
  .page + .page { page-break-before: always; }
  .eyebrow, h1, h2, h3 { page-break-after: avoid; break-after: avoid; }
  .row, .signal, .dep-row, .station, .quad-cell, .band, .score-band { page-break-inside: avoid; break-inside: avoid; }
  @page { size: Letter; margin: 0; }
}
