/* --------------------------------------------------
   Name: nss_2025_doc.css
   Purpose: Add doc + letter styling on top of explainer.css
   -------------------------------------------------- */

@import url("./explainer.css");

/* Canonical document background */
body {
  background: #ffffff;
}


/* Keep pages comfortable on mobile */
main {
  max-width: 1180px;   /* increase from ~980px */
  margin: 0 auto;
  padding: 18px 20px;
}

/* Document images (cover, TOC scan, etc.) */
.doc-img {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 14px auto;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.figure-caption {
  font-size: 0.95rem;
  opacity: 0.85;
  margin: -6px auto 18px auto;
  max-width: 980px;
}

/* Visually distinct letter block (verbatim text, just styled) */
.letter {
  margin: 18px auto 22px auto;
  padding: 18px 16px;
  max-width: 980px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.70);
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
}

.letter .letterhead {
  text-align: center;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 10px;
}

.letter .letterhead .sub {
  display: block;
  font-weight: 600;
  letter-spacing: 0.10em;
  margin-top: 4px;
  opacity: 0.9;
}

.letter p {
  line-height: 1.55;
  margin: 12px 0;
}

.letter .closing {
  margin-top: 16px;
}

.letter .signature {
  margin-top: 14px;
  font-weight: 700;
}

.letter .sigline {
  margin-top: 6px;
  opacity: 0.95;
}

/* Optional: make TOC list tighter on mobile if you have a text TOC */
.toc {
  margin: 10px 0 18px 0;
  padding: 0;
  list-style: none;
}
.toc li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
