/* General Page */
body {
  background: #e0e0e0; /* gray background */
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* white paper container */
main {
  background: #fff;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  border-radius: 4px;
  position: relative; /* needed for watermark positioning */
  overflow: hidden;   /* keeps watermark inside */
}

.paper {
  position: relative;
  background: white;
  margin: 40px auto;
  padding: 40px;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.paper::before {
  content: "UNCLASSIFIED";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 4em;
  color: rgba(0, 0, 0, 0.08); /* light gray, transparent */
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}

.paper * {
  position: relative;
  z-index: 1;
}

/* "Paper" Effect */
.briefing {
  background: #ffffff;
  margin: 40px auto;
  padding: 40px;
  max-width: 800px;
  border: 1px solid #bbb;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.15);
}

/* Header/Footer */
header, footer {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 10px 0;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background-color: #f9f9f9;
  padding: 1rem;
}

header nav a, footer nav a {
  color: #000;
  text-decoration: underline;
  margin: 0 10px;
}

header nav a:hover, footer nav a:hover {
  text-decoration: none;
}

.content {
  position: relative;
  background: white;
  padding: 40px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.content p, 
.content h1, 
.content h2 {
  position: relative;
  z-index: 1; /* ensures readable text */
}

/* watermark for both screen + print */
main::before {
  content: "UNCLASSIFIED";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 5rem;
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
  color: rgba(0, 0, 0, 0.08); /* faint, not distracting */
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* Print Styles */
 @media print {
  body {
    margin: 0; /* reset body */
  }

  @page {
    margin: 1in; /* enforce 1" margins top, bottom, left, right */
  }

  header {
    margin-bottom: 0.25in; /* small controlled gap */
  }

  main {
    margin: 0;          /* let @page handle margins */
    padding: 0;         /* no extra padding at print */
    box-shadow: none;   /* clean print */
    border: none;
  }
}