/* ═════════════════════════════════════════════════
 * DRDM.CC — DOT MATRIX PRINTED GREENBAR THEME
 * Continuous fanfold paper from a forgotten printer
 * ═════════════════════════════════════════════════ */

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

/* ── DIM ROOM BACKGROUND ── */
body {
  background: #2a2a2a;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 14px;
  line-height: 28px;
  color: #1e1e1e;
  min-height: 100vh;
  padding: 40px 0;
  text-shadow: 0 0 0.5px rgba(0,0,0,0.08);
}

/* ── CONTINUOUS GREENBAR PAPER ROLL ── */
.site-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  background: #f7f5f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  padding: 40px 60px 60px;
  overflow: hidden;
}

/* ── TRACTOR FEED HOLES (left & right) ── */
.site-wrap::before,
.site-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 10px,
    #f0f0f0 10px,
    #f0f0f0 20px,
    transparent 20px,
    transparent 36px
  );
  z-index: 5;
  pointer-events: none;
  border-left: 1px solid rgba(0,0,0,0.06);
  border-right: 1px solid rgba(0,0,0,0.06);
}

.site-wrap::before {
  left: 8px;
}

.site-wrap::after {
  right: 8px;
}

/* Tractor hole inner shadow effect */
.tractor-hole {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 6;
  pointer-events: none;
}

.tractor-hole.left { left: 8px; }
.tractor-hole.right { right: 8px; }

/* ── PRINTER ALIGNMENT MARKS (right side) ── */
.printer-marks {
  position: absolute;
  right: 28px;
  top: 60px;
  font-family: "Courier New", monospace;
  font-size: 8px;
  color: rgba(0,0,0,0.12);
  line-height: 28px;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  z-index: 3;
  pointer-events: none;
}

/* ── TEXT CONTENT AREA ── */
.content-area {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── TOPBAR ── */
.site-topbar { display: none; }

/* ── MEMO HEADER ── */
.masthead-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
  color: #4a4a4a;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 28px;
}

.masthead-rule {
  border: none;
  border-top: 2px dashed #1e1e1e;
  margin: 0 0 14px 0;
  line-height: 0;
  height: 0;
}

.masthead-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
  text-align: left;
  line-height: 28px;
  margin: 4px 0;
}

.masthead-title a {
  color: #1e1e1e !important;
  text-decoration: none;
}
.masthead-title a:hover {
  color: #2E7D32;
  text-decoration: underline;
}

.masthead-tagline {
  font-size: 12px;
  color: #555;
  line-height: 28px;
  margin: 0 0 14px 0;
}

.masthead-tagline a {
  color: #1e1e1e !important;
  text-decoration: none;
}

.memo-interoffice {
  font-size: 12px;
  line-height: 28px;
  color: #1e1e1e;
  margin: 4px 0;
}

.memo-interoffice div {
  line-height: 28px;
}

.interoffice-stamp-row {
  text-align: right;
}

.stamp-classified {
  border: 2px solid rgba(180,30,30,0.5);
  color: rgba(180,30,30,0.6);
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 3px;
  display: inline-block;
  text-transform: uppercase;
  line-height: 24px;
  transform: rotate(-1deg);
}

/* ── MEMO BODY ── */
.memo-body {
  font-size: 14px;
  line-height: 28px;
  color: #1e1e1e;
  position: relative;
  overflow: visible;
}

.memo-body p {
  margin: 0 0 14px 0;
  line-height: 28px;
}

}

.memo-body a {
  color: #1e1e1e;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.memo-body a:hover {
  color: #2E7D32;
}

.memo-body h2, .memo-body h3 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 28px;
  margin: 0 0 14px 0;
  border-bottom: 1px dashed #aaa;
}

/* ── PERFORATION BETWEEN POSTS ── */
.perforation {
  border: none;
  border-top: 1px dashed #888;
  margin: 8px 0;
  position: relative;
  text-align: center;
  line-height: 4px;
  height: 4px;
}

.perforation::after {
  content: '• • • ❖ • • •';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #f7f5f0;
  font-size: 10px;
  color: #999;
  letter-spacing: 6px;
}

/* ── POST FOOTER ── */
.memo-post-footer {
  clear: both;
  margin-top: 8px;
}

.post-footer-content {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 10px;
  color: #666;
  line-height: 24px;
}

.post-footer-content span {
  display: block;
}

/* ── BLINKING CURSOR (printer still running) ── */
.blinking-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: #1e1e1e;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── MEMO CONTAINER ── */
.memo {
  position: relative;
  background: #f7f5f0;
  margin-bottom: 84px;
  padding: 0;
}

.memo::before {
  display: none;
}

.memo > * {
  position: relative;
  z-index: 1;
}

.memo-archived {
  opacity: 0.85;
}

/* ── PAGINATION ── */
.memo-pagination {
  border-top: 1px dashed #888;
  padding: 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 28px;
  margin-top: 8px;
}

.memo-pagination a {
  color: #333;
  text-decoration: none;
}
.memo-pagination a:hover {
  text-decoration: underline;
}

.memo-pagination-placeholder { flex: 1; }

/* ── SITE FOOTER ── */
.site-footer {
  margin-top: 16px;
  border-top: 2px dashed #1e1e1e;
  padding: 8px 0;
  text-align: center;
  font-size: 11px;
  color: #555;
  line-height: 28px;
}

/* ── LINKS ── */
a { color: #1e1e1e; }
a:hover { color: #2E7D32; }

/* ── STYLED BLOCK ELEMENTS ── */
.memo-body blockquote {
  border-left: 3px solid #888;
  padding-left: 16px;
  margin: 0 0 14px 0;
  color: #555;
}

.memo-body img {
  max-width: 100%;
  height: auto;
}

.memo-body ul, .memo-body ol {
  margin-left: 28px;
}

.memo-body pre, .memo-body code {
  font-family: "Courier New", monospace;
  font-size: 13px;
  background: rgba(0,0,0,0.03);
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  body { padding: 20px 0; }
  .site-wrap { padding: 24px 36px 40px; }
  .site-wrap::before, .site-wrap::after { width: 10px; }
  .site-wrap::before { left: 4px; }
  .site-wrap::after { right: 4px; }
  .printer-marks { display: none; }
  .procurement-card {
    float: none;
    width: 100%;
    margin: 8px 0;
  }
}

@media (max-width: 500px) {
  body { font-size: 12px; }
  .site-wrap { padding: 16px 20px 32px; }
  .site-wrap::before, .site-wrap::after { display: none; }
  .masthead-title { font-size: 14px; }
}

/* ── PROCUREMENT ASCII BLOCK (dot-matrix style) ── */
.procurement-block {
  font-family: "Courier New", "Courier Prime", monospace;
  font-size: 14px;
  line-height: 28px;
  color: #1e1e1e;
  background: #f7f5f0;
  border: none;
  padding: 8px 0;
  margin: 8px 0;
  overflow: hidden;
  white-space: pre;
}

/* ── PROCUREMENT ASCII BLOCK ── */
.procurement-block {
  font-family: "Courier New", "Courier Prime", monospace;
  font-size: 14px;
  line-height: 28px;
  color: #1e1e1e;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 8px 0;
  padding: 8px 0;
  overflow: hidden;
  white-space: pre;
  float: none;
}
