/* Print-friendly styles for DPIA support pack documents */
:root {
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #1e3a8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.55;
  color: var(--text);
  background: #f8fafc;
}

.dpia-doc-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.dpia-doc-toolbar a,
.dpia-doc-toolbar button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
}

.dpia-doc-toolbar a {
  color: var(--primary);
  text-decoration: none;
}

.dpia-doc-toolbar button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
}

.dpia-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  background: #fff;
}

.dpia-doc h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.dpia-doc .meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.dpia-doc h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
  page-break-after: avoid;
}

.dpia-doc h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  page-break-after: avoid;
}

.dpia-doc p,
.dpia-doc li {
  margin: 0 0 0.75rem;
}

.dpia-doc ul,
.dpia-doc ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.dpia-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.dpia-doc th,
.dpia-doc td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.dpia-doc th {
  background: #f8fafc;
  font-weight: 600;
}

.dpia-doc .fill {
  display: inline-block;
  min-width: 12rem;
  border-bottom: 1px solid #94a3b8;
  color: var(--muted);
}

.dpia-doc .note {
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.dpia-doc .small {
  font-size: 0.85rem;
  color: var(--muted);
}

@media print {
  body { background: #fff; }
  .dpia-doc-toolbar { display: none !important; }
  .dpia-doc {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .dpia-doc h2 { page-break-before: auto; }
  a { color: inherit; text-decoration: none; }
}
