/* Operation STARFALL — Leaked Document Repository
   Minimal, functional. This is not a friendly site.  */

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

body {
  background-color: #f4f0e8;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: #1a1a1a;
  padding: 0;
}

a { color: #8b0000; text-decoration: underline; }
a:hover { color: #cc0000; }
a:visited { color: #660000; }

/* ── Site header ── */
#site-header {
  background-color: #1a1a1a;
  padding: 14px 24px;
  border-bottom: 3px solid #8b0000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#site-title-text {
  color: #f0ebe0;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#site-title-text span {
  color: #cc4444;
}

#site-tagline {
  color: #666;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 3px;
}

#header-stamp {
  text-align: right;
  color: #8b0000;
  font-size: 10px;
  letter-spacing: 1px;
  border: 1px solid #8b0000;
  padding: 4px 8px;
  opacity: 0.8;
}

/* ── Nav ── */
#nav-strip {
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
  padding: 0 24px;
  display: flex;
  gap: 0;
}

#nav-strip a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 11px;
  color: #aaa;
  text-decoration: none;
  letter-spacing: 1px;
  border-right: 1px solid #333;
}

#nav-strip a:hover, #nav-strip a.active {
  color: #f0ebe0;
  background-color: #2a2a2a;
  text-decoration: none;
}

/* ── Wrapper ── */
#main-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px;
}

/* ── Warning banner ── */
.warning-banner {
  background-color: #fff8e8;
  border: 1px solid #cc8800;
  border-left: 4px solid #cc8800;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 11px;
  color: #664400;
  line-height: 1.6;
}

/* ── Section heading ── */
.section-head {
  border-bottom: 1px solid #aaa;
  margin-bottom: 14px;
  padding-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-head h2 {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a1a;
}

.section-head .meta {
  font-size: 10px;
  color: #888;
}

/* ── Document list ── */
.doc-list {
  margin-bottom: 24px;
}

.doc-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-bottom: none;
  background-color: #faf7f0;
  gap: 12px;
}

.doc-row:last-child { border-bottom: 1px solid #ccc; }
.doc-row:hover { background-color: #f5f0e5; }
.doc-row.locked { opacity: 0.6; }

.doc-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #8b0000;
}

.doc-icon.locked-icon { color: #999; }

.doc-info { flex: 1; min-width: 0; }

.doc-title {
  font-size: 13px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.doc-title a { color: #8b0000; text-decoration: none; }
.doc-title a:hover { text-decoration: underline; }

.doc-meta {
  font-size: 10px;
  color: #666;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.doc-summary {
  font-size: 11px;
  color: #444;
  line-height: 1.5;
}

.doc-badge {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 6px;
  border: 1px solid;
  text-align: center;
  white-space: nowrap;
  margin-top: 2px;
}

.badge-avail { border-color: #336633; color: #336633; background: #efffef; }
.badge-locked { border-color: #999; color: #999; background: #f5f5f5; }
.badge-partial { border-color: #886600; color: #886600; background: #fffbe0; }
.badge-classified { border-color: #8b0000; color: #8b0000; background: #fff5f5; }

/* ── Memo pages ── */
.memo-page {
  background-color: #fefcf6;
  border: 1px solid #ccc;
  padding: 28px 32px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  box-shadow: 2px 2px 0 #ccc;
}

.memo-stamp {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 14px;
  font-weight: bold;
  color: #8b0000;
  border: 2px solid #8b0000;
  padding: 5px 10px;
  letter-spacing: 2px;
  opacity: 0.7;
  transform: rotate(-3deg);
}

.memo-header-table td {
  padding: 2px 0;
  font-size: 11px;
  vertical-align: top;
}

.memo-header-table td:first-child {
  width: 80px;
  color: #555;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.memo-divider {
  border: none;
  border-top: 1px solid #aaa;
  margin: 14px 0;
}

.memo-body {
  font-size: 12px;
  line-height: 1.8;
}

.memo-body p { margin-bottom: 12px; }

.redact {
  background-color: #1a1a1a;
  color: #1a1a1a;
  user-select: none;
  cursor: default;
  padding: 0 1px;
}

/* The redact bars have data-width attributes used by the puzzle */
.redact-bar {
  display: inline-block;
  background-color: #1a1a1a;
  height: 12px;
  vertical-align: middle;
  margin: 0 1px;
}

.memo-footer {
  margin-top: 20px;
  font-size: 11px;
  color: #888;
  border-top: 1px solid #ddd;
  padding-top: 8px;
}

/* ── Access gate ── */
#access-gate {
  background-color: #0a0a0a;
  color: #cccccc;
  border: 1px solid #444;
  padding: 20px 24px;
  margin: 20px 0;
  font-family: "Courier New", Courier, monospace;
}

#access-gate h2 {
  color: #cc4444;
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 12px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
}

#access-gate p { font-size: 11px; color: #999; line-height: 1.7; margin-bottom: 10px; }

.access-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}

#code-input {
  flex: 1;
  background: #000;
  border: 1px solid #444;
  color: #cccccc;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  padding: 7px 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  outline: none;
}

#code-input:focus { border-color: #8b0000; }

#access-btn {
  background: #1a1a1a;
  border: 1px solid #555;
  color: #cccccc;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  padding: 7px 16px;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#access-btn:hover { background: #2a0000; border-color: #8b0000; color: #ff4444; }

.access-log {
  background: #000;
  border: 1px solid #222;
  padding: 8px 10px;
  font-size: 10px;
  color: #555;
  min-height: 60px;
  max-height: 80px;
  overflow-y: auto;
  margin-top: 10px;
}

.access-log p { margin: 0 0 2px; }
.log-ok { color: #336633; }
.log-err { color: #8b0000; }
.log-warn { color: #886600; }

/* ── Pixel puzzle section ── */
#pixel-puzzle { display: none; }
#pixel-puzzle.visible { display: block; }

.pixel-ruler {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.px-seg {
  background-color: #1a1a1a;
  height: 12px;
  display: inline-block;
  border: 1px solid #333;
}

.px-number {
  font-size: 9px;
  color: #666;
  min-width: 20px;
  text-align: center;
}

/* ── Footer ── */
#site-footer {
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  padding: 10px 24px;
  text-align: center;
  font-size: 10px;
  color: #444;
  letter-spacing: 1px;
  margin-top: 30px;
}

#site-footer a { color: #666; }
