:root {
  --brand: #0067b1;
  --brand-dark: #004e86;
  --ink: #1a1d21;
  --ink-muted: #5b6470;
  --line: #e2e6eb;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --radius: 10px;
  --maxw: 960px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.site-header {
  background: var(--brand);
  color: #fff;
  padding: 20px 0;
}

.site-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

main.wrap {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  margin: 0 0 8px;
}

.subtitle {
  color: var(--ink-muted);
  margin: 0 0 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

/* Campaign pages are the PDF and nothing else: fill the viewport edge to edge.
   Uses dvh so mobile browser chrome doesn't clip the viewer. */
body.pdf-only {
  margin: 0;
  background: #525659;
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: 100dvh;
  border: 0;
}

.pdf-fallback {
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(0, 103, 177, 0.08);
}

.campaign-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.campaign-list li + li {
  border-top: 1px solid var(--line);
}

.campaign-list a {
  display: block;
  padding: 16px 4px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.campaign-list a:hover,
.campaign-list a:focus {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

@media print {
  .site-header,
  .site-footer,
  .actions {
    display: none;
  }

  body {
    background: #fff;
  }

  .card {
    border: 0;
    padding: 0;
  }
}
