/**
 * Vertex Portal — User instruction PDFs
 * Branded styling matching Vertex Surveys (gunmetal, gold).
 * Print → Save as PDF for branded PDFs.
 */
:root {
  --gold-primary: #E6B800;
  --gold-secondary: #DAA520;
  --gold-alpha-25: rgba(230, 184, 0, 0.25);
  --gold-alpha-90: rgba(230, 184, 0, 0.9);
  --gunmetal-dark: #2C3E50;
  --gunmetal-medium: #34495e;
  --gunmetal-card: #2a3640;
  --gunmetal-deep: #1a252f;
  --bg-darkest: #0f1419;
  --bg-darker: #1a252f;
  --bg-medium: #2C3E50;
  --text-light: rgba(255, 255, 255, 0.95);
  --text-medium: rgba(255, 255, 255, 0.78);
  --font-base: 1rem;
  --font-md: 1.25rem;
  --font-lg: 1.5rem;
  --font-xl: 1.75rem;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #0f1419 0%, #1a252f 25%, #2C3E50 50%, #34495e 75%, #2C3E50 100%);
  color: var(--text-light);
  font-size: var(--font-base);
  line-height: 1.5;
  padding: var(--space-xl);
  min-height: 100vh;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.instructions-header {
  text-align: center;
  padding: var(--space-lg) 0;
  border-bottom: 2px solid var(--gold-alpha-25);
  margin-bottom: var(--space-xl);
}

.instructions-header .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.instructions-header .brand-logo {
  width: 48px;
  height: 48px;
}

.instructions-header .brand-text {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.instructions-header .brand-tagline {
  font-size: 0.8rem;
  color: var(--text-medium);
  margin-top: 2px;
}

.instructions-header h1 {
  font-size: var(--font-xl);
  font-weight: 800;
  color: #fff;
  margin-top: var(--space-md);
}

.instructions-header .role-badge {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 4px 12px;
  background: var(--gold-alpha-25);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
}

.instructions-body {
  max-width: 720px;
  margin: 0 auto;
}

.instructions-body h2 {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--gold-primary);
  margin: var(--space-lg) 0 var(--space-sm);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-alpha-25);
}

.instructions-body h2:first-of-type { margin-top: 0; }

.instructions-body p, .instructions-body li {
  margin-bottom: var(--space-sm);
  color: var(--text-light);
}

.instructions-body ul {
  margin: var(--space-sm) 0 var(--space-md);
  padding-left: var(--space-lg);
}

.instructions-body strong { color: #fff; }
.instructions-body code {
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold-light, #F4E4BC);
}

.instructions-body ul.compact-list {
  margin: var(--space-sm) 0 var(--space-md);
  padding-left: var(--space-lg);
}

.instructions-body .task-list {
  list-style: none;
  padding-left: 0;
}

.instructions-body .task-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: var(--space-sm);
}

.instructions-body .task-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-weight: 700;
}

.instructions-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gold-alpha-25);
  font-size: 0.8rem;
  color: var(--text-medium);
  text-align: center;
}

@media print {
  body {
    background: #fff;
    color: #111;
    padding: 16px;
  }
  .instructions-header {
    border-bottom-color: var(--gold-primary);
    padding-bottom: 12px;
  }
  .instructions-header .brand-text,
  .instructions-header h1 { color: #1a252f; }
  .instructions-header .brand-tagline { color: #444; }
  .instructions-body h2 { color: #1a252f; }
  .instructions-body p,
  .instructions-body li { color: #222; }
  .instructions-body strong { color: #000; }
  .instructions-footer { color: #666; border-top-color: #ccc; }
  a { color: #0066cc; }
}
