:root { --bg: #ffffff; --fg: #f2f2f2; --muted: #9a9a9a; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header { 
  padding: 16px; 
  border-bottom: 2px solid #000;
  flex-direction: column; /* Stack title and subtitle */
  align-items: center;    /* Center horizontally */
  justify-content: center;
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

header .subtitle {
  font-size: 18px;
  color: var(--muted);
}

header a { 
  color: var(--muted); 
  text-decoration: none; 
  font-size: 14px; 
}

header a:hover { text-decoration: underline; }

/* Make the "CLASSIFIED" header text black and larger */
header strong {
  color: #000 !important;
  font-size: 32px;
  letter-spacing: 1px;
  line-height: 1;
}

.subject-label {
  color: #000000; /* red color for SUBJECT */
  font-weight: bold;
  margin-right: 6px; /* space between label and sentence */
}


main { 
  flex: 1; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 24px; 
  overflow: hidden; 
}

.page {
  position: relative;
  width: min(1000px, 92vw);
  max-height: 80vh;
  overflow: auto;
  line-height: 1.8;
  font-size: 18px;
}

.page::-webkit-scrollbar { width: 8px; height: 8px; }
.page::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.block { margin-bottom: 10px; }

/* Base layer: fully redacted */
.redacted { background: #000; color: transparent; padding: 2px 0; }


/* Overlay sits over base text but scrolls with it */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}


.overlay .plain {
  color: var(--fg);
}

/* Lens masking */
.overlay {
  -webkit-mask-image: radial-gradient(
    circle 80px at var(--mx, -200px) var(--my, -200px),
    #000 98%, transparent 100%
  );
  mask-image: radial-gradient(
    circle 80px at var(--mx, -200px) var(--my, -200px),
    #000 98%, transparent 100%
  );
}

.lens { 
  position: fixed; 
  border: 2px solid #fff; 
  border-radius: 50%; 
  width: 160px; 
  height: 160px; 
  pointer-events: none; 
  box-shadow: 0 0 0 2px #000 inset; 
}

.hint { 
  position: fixed; 
  bottom: 12px; 
  right: 12px; 
  color: var(--muted); 
  font-size: 13px; 
}
