/* Justice Watch New Zealand — Site Styles */
:root {
  --color-navy: #1a2744;
  --color-dark: #0f1b2d;
  --color-gold: #c9a84c;
  --color-gold-light: #e6d18a;
  --color-white: #ffffff;
  --color-light: #f5f5f0;
  --color-mid: #e8e6e0;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-border: #d0cec8;
  --font-heading: "Georgia", "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* Header */
.site-header {
  background: var(--color-navy);
  padding: 1rem 0;
  border-bottom: 3px solid var(--color-gold);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Navigation */
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  color: var(--color-white);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 3px;
  transition: background 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(201, 168, 76, 0.2);
  color: var(--color-gold-light);
}

/* Main content */
.site-main { padding: 3rem 0; }
.site-main .container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-navy); line-height: 1.3; }
h1 { font-size: 2.2rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--color-gold); padding-bottom: 0.5rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }

p { margin-bottom: 1rem; }
blockquote {
  border-left: 4px solid var(--color-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-light);
  font-style: italic;
  color: var(--color-text-muted);
}
a { color: var(--color-navy); }
a:hover { color: var(--color-gold); }
ul, ol { margin: 0.5rem 0 1.5rem 1.5rem; }
li { margin-bottom: 0.4rem; }

/* Page hero */
.page-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}
.page-hero h1 { color: var(--color-white); border-bottom-color: var(--color-gold); display: inline-block; }
.page-hero p { color: var(--color-gold-light); font-size: 1.15rem; max-width: 700px; margin: 1rem auto 0; }

/* Investigation cards */
.investigation-list { list-style: none; margin: 0; padding: 0; }
.investigation-card {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
  transition: box-shadow 0.2s;
}
.investigation-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.investigation-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.investigation-card h3 a { text-decoration: none; color: var(--color-navy); }
.investigation-card h3 a:hover { color: var(--color-gold); }
.investigation-card .card-type {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}
.investigation-card .card-status {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Chronology */
.chronology-entry {
  border-left: 3px solid var(--color-mid);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.chronology-entry .entry-date {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Notice box — used for legal notices */
.notice-box {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 2.5rem 0;
  margin-top: 4rem;
  border-top: 3px solid var(--color-gold);
}
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-content a { color: var(--color-gold-light); }
.footer-content a:hover { color: var(--color-gold); }
.footer-legal { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* Responsive */
@media (max-width: 768px) {
  .site-header .container { flex-direction: column; text-align: center; }
  .site-nav ul { justify-content: center; }
  h1 { font-size: 1.7rem; }
  .page-hero { padding: 2.5rem 1.5rem; }
  .footer-content { flex-direction: column; text-align: center; }
}


/* Featured Publication */
.featured-publication {
  background: linear-gradient(135deg, #f8f6f0 0%, #f0ede4 100%);
  border-left: 4px solid #c9a84c;
  border-radius: 0 8px 8px 0;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
}
.featured-label {
  display: inline-block;
  background: #1a2744;
  color: #c9a84c;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.featured-publication h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a2744;
  font-size: 1.5rem;
  margin: 0.5rem 0 0.25rem;
}
.featured-subtitle {
  font-style: italic;
  color: #555;
  margin-bottom: 0.25rem;
}
.featured-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}
.featured-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: #1a2744;
  color: #fff;
}
.btn-primary:hover { background: #2a3a5c; }
.btn-secondary {
  background: transparent;
  color: #1a2744;
  border: 2px solid #1a2744;
}
.btn-secondary:hover { background: #1a2744; color: #fff; }

/* Letter Meta */
.letter-meta {
  background: #f8f6f0;
  border: 1px solid #e0dcd4;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.letter-meta p { margin: 0.25rem 0; font-size: 0.95rem; }

/* Document Actions */
.document-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* PDF Viewer */
.pdf-viewer {
  margin-bottom: 2rem;
}
.pdf-viewer iframe {
  display: block;
  max-width: 100%;
  min-height: 600px;
  background: #f5f5f5;
}

@media (max-width: 768px) {
  .featured-publication { padding: 1.5rem; }
  .featured-actions { flex-direction: column; }
  .btn { text-align: center; }
  .pdf-viewer iframe { min-height: 400px; }
}
