/* ═══════════════════════════════════════════════════════════════════
   DRDM — Daily Edition & Reports
   One readable typography system. Helvetica. All CAPS labels.
   Black on white. Clean. Permanent.

   RENDERING OWNERSHIP
   - CSS (this file): owns all visual APPEARANCE.
   - Generator (drdm_hugo.py): owns content STRUCTURE — emits
     semantic HTML with class names, no inline styles.
   - Hugo templates: own page RENDERING — layout, header, footer.
   - JavaScript: NOT used for static formatting.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
  background: #fff;
  color: #1a1a1a;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 40px 24px;
}

a {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: underline;
}

a:hover { text-decoration: underline; }

.site-wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* ── Memo page shell ──────────────────────────────────────────────── */

.memo {
  max-width: 720px;
  margin: 0 auto 28px;
}

.memo-body {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: #1a1a1a;
}

.memo-body p {
  margin: 0 0 1em;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: #1a1a1a;
}

.memo-body hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

.memo-body strong {
  font-weight: 600;
}

.memo-body em {
  font-style: normal;
  font-weight: 500;
}

.memo-body a {
  font-weight: 500;
  text-decoration: underline;
}

/* ── Dialogue lines ───────────────────────────────────────────────── */

.dialogue-line {
  margin: 0 0 1em;
}

.dialogue-line .speaker {
  font-weight: 600;
}

/* ── Dashboard block ──────────────────────────────────────────────── */

.dashboard-block {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 1em;
  padding: 12px 16px;
  border-top: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  white-space: pre-wrap;
  overflow: auto;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  font-weight: 400;
  color: #1a1a1a;
}

/* ── Report reveal block ──────────────────────────────────────────── */

.report-reveal {
  margin: 1.4em 0;
}

.report-reveal .report-id {
  font-weight: 600;
  margin: 0;
}

.report-reveal .report-subject {
  font-weight: 600;
  margin: 0 0 0.5em;
}

.report-reveal h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 0.4em;
  padding: 0;
  border-bottom: none;
}

.report-reveal h2 a {
  text-decoration: underline;
}

.report-reveal .report-excerpt {
  margin: 0 0 0.6em;
  font-style: italic;
}

/* ── Report files block ───────────────────────────────────────────── */

.report-files {
  margin: 1.4em 0;
}

.report-files h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.5em;
  color: #1a1a1a;
  border: none;
  padding: 0;
}

.report-files ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}

.report-files li {
  margin-bottom: 0.35em;
  font-size: 16px;
}

.report-files a {
  text-decoration: underline;
}

/* ── Footer (shared) ──────────────────────────────────────────────── */

.memo-footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 2px solid #1a1a1a;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.memo-footer p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 4px;
}

.memo-footer a {
  color: #555;
  font-size: 12px;
  text-decoration: none;
}

.memo-footer a:hover {
  text-decoration: underline;
}

.memo-footer .sep {
  margin: 0 4px;
  color: #bbb;
}


/* ═══════════════════════════════════════════════════════════════════
   DRDM — Reports (permanent public record / reference library)
   ═══════════════════════════════════════════════════════════════════ */

.memo.report-page {
  background: #fff;
}

.memo.report-page .memo-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
}

.memo.report-page .memo-body p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0 0 1em;
}

.memo.report-page .memo-body h1,
.memo.report-page .memo-body h2,
.memo.report-page .memo-body h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  margin: 1.8em 0 0.6em;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}

.memo.report-page .memo-body h1 { font-size: 22px; }
.memo.report-page .memo-body h2 { font-size: 15px; }
.memo.report-page .memo-body h3 { font-size: 15px; }

.memo.report-page .memo-body ul,
.memo.report-page .memo-body ol {
  font-size: 18px;
  margin: 0 0 1em;
  padding-left: 28px;
}

.memo.report-page .memo-body li {
  font-size: 18px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.4em;
}

.memo.report-page .memo-body a {
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: underline;
}

.memo.report-page .memo-body hr {
  border: none;
  border-top: 1px solid #999;
  margin: 20px 0;
}

.memo.report-page .memo-body strong { font-weight: 600; }

.memo.report-page .memo-body em {
  font-style: normal;
  font-weight: 500;
}

.memo.report-page .memo-footer {
  max-width: 720px;
  margin: 0 auto;
}

.memo.report-page .memo-footer p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
}

.memo.report-page .memo-footer a {
  color: #555;
  font-size: 12px;
}

/* ── Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  body {
    padding: 28px 18px;
  }

  .memo {
    max-width: 100%;
  }

  .dashboard-block {
    font-size: 12px;
    padding: 10px 12px;
  }

  .report-files li {
    font-size: 15px;
  }
}

}


/* ── Links inside dashboard (Black Friday) ──────────────── */
.dashboard-block a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

/* Records Search */
.records-search {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid #ccc;
  background: #fff;
}
.records-search-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}

/* ── Reports list / Knowledge Base ─────────────────────────── */

.kb-page {
  max-width: 860px;
  margin: 0 auto;
}

.kb-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid #1a1a1a;
}

.kb-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.kb-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.kb-nav {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.kb-nav a {
  text-decoration: none;
  color: #555;
  margin-right: 18px;
}

.kb-nav a:hover {
  text-decoration: underline;
}

.kb-nav .sep {
  color: #ccc;
  margin-right: 18px;
}

/* ── Records Search ───────────────────────────────────────── */

.kb-search-section {
  margin-bottom: 32px;
  border: 1px solid #ccc;
  padding: 16px 20px;
}

.kb-search-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}

/* ── Browse By Subject ────────────────────────────────────── */

.kb-subjects {
  margin-bottom: 32px;
}

.kb-subjects h2, .kb-popular-tags h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  color: #1a1a1a;
}

.kb-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 18px;
}

.kb-subject-link {
  display: block;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.kb-subject-link:hover {
  background: #f8f8f8;
}

.kb-subject-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #1a1a1a;
  display: block;
}

.kb-subject-count {
  font-size: 11px;
  color: #888;
  display: block;
  margin-top: 1px;
}

/* ── Popular Tags ──────────────────────────────────────────── */

.kb-tag-cloud {
  margin-bottom: 32px;
}

.kb-tag-link {
  display: inline-block;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  padding: 4px 10px;
  margin: 0 6px 8px 0;
  border: 1px solid #ccc;
  color: #555;
  white-space: nowrap;
}

.kb-tag-link:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.kb-tag-count {
  color: #999;
  font-size: 10px;
}

/* ── Section heading for grouped reports ──────────────────── */

.kb-section-heading {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #1a1a1a;
  color: #1a1a1a;
}

/* ── Report Row ────────────────────────────────────────────── */

.kb-report-row {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kb-report-row:last-child {
  border-bottom: none;
}

.kb-report-row a {
  text-decoration: underline;
  color: #1a1a1a;
}

.kb-report-question {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.kb-report-meta {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.kb-report-meta .kb-subject-tag {
  font-weight: 600;
  color: #555;
}

.kb-report-meta .kb-sep {
  margin: 0 3px;
  color: #ccc;
}

.kb-report-meta .kb-report-id {
  color: #aaa;
}

/* ── Pagination ────────────────────────────────────────────── */

.kb-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
  padding: 12px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
  font-weight: 600;
}

.kb-pagination a {
  text-decoration: none;
  color: #1a1a1a;
}

.kb-pagination a:hover {
  text-decoration: underline;
}

.kb-pagination .kb-page-info {
  color: #888;
  font-weight: 400;
}

.kb-pagination-empty {
  color: #aaa;
}

/* ── Taxonomy / Subject pages ──────────────────────────────── */

.kb-tax-header {
  margin-bottom: 24px;
}

.kb-tax-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.kb-tax-count {
  font-size: 13px;
  color: #666;
  margin: 0 0 2px;
}

.kb-tax-desc {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.kb-tax-related {
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px solid #eee;
}

.kb-tax-related h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 8px;
}

/* ── Subject index page ────────────────────────────────────── */

.kb-subject-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.kb-subject-card {
  display: block;
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid #eee;
}

.kb-subject-card:hover {
  background: #f8f8f8;
  border-color: #ccc;
}

/* ── Mobile ────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .kb-subject-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .kb-report-question {
    font-size: 16px;
  }

  .kb-header {
    padding-bottom: 10px;
  }

  .kb-title {
    font-size: 17px;
  }

  .kb-nav {
    font-size: 12px;
    line-height: 2;
  }

  .kb-page {
    padding: 0;
  }

  .kb-pagination {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ── Reports list / Knowledge Base ─────────────────────────── */

.kb-page {
  max-width: 860px;
  margin: 0 auto;
}

.kb-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid #1a1a1a;
}

.kb-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.kb-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.kb-nav {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.kb-nav a {
  text-decoration: none;
  color: #555;
  margin-right: 18px;
}

.kb-nav a:hover {
  text-decoration: underline;
}

.kb-nav .sep {
  color: #ccc;
  margin-right: 18px;
}

/* ── Records Search ───────────────────────────────────────── */

.kb-search-section {
  margin-bottom: 32px;
  border: 1px solid #ccc;
  padding: 16px 20px;
}

.kb-search-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}

/* ── Browse By Subject ────────────────────────────────────── */

.kb-subjects {
  margin-bottom: 32px;
}

.kb-subjects h2, .kb-popular-tags h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  color: #1a1a1a;
}

.kb-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 18px;
}

.kb-subject-link {
  display: block;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.kb-subject-link:hover {
  background: #f8f8f8;
}

.kb-subject-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #1a1a1a;
  display: block;
}

.kb-subject-count {
  font-size: 11px;
  color: #888;
  display: block;
  margin-top: 1px;
}

/* ── Popular Tags ──────────────────────────────────────────── */

.kb-tag-cloud {
  margin-bottom: 32px;
}

.kb-tag-link {
  display: inline-block;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  padding: 4px 10px;
  margin: 0 6px 8px 0;
  border: 1px solid #ccc;
  color: #555;
  white-space: nowrap;
}

.kb-tag-link:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.kb-tag-count {
  color: #999;
  font-size: 10px;
}

/* ── Section heading for grouped reports ──────────────────── */

.kb-section-heading {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #1a1a1a;
  color: #1a1a1a;
}

/* ── Report Row ────────────────────────────────────────────── */

.kb-report-row {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kb-report-row:last-child {
  border-bottom: none;
}

.kb-report-row a {
  text-decoration: underline;
  color: #1a1a1a;
}

.kb-report-question {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.kb-report-meta {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.kb-report-meta .kb-subject-tag {
  font-weight: 600;
  color: #555;
}

.kb-report-meta .kb-sep {
  margin: 0 3px;
  color: #ccc;
}

.kb-report-meta .kb-report-id {
  color: #aaa;
}

/* ── Pagination ────────────────────────────────────────────── */

.kb-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
  padding: 12px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
  font-weight: 600;
}

.kb-pagination a {
  text-decoration: none;
  color: #1a1a1a;
}

.kb-pagination a:hover {
  text-decoration: underline;
}

.kb-pagination .kb-page-info {
  color: #888;
  font-weight: 400;
}

.kb-pagination-empty {
  color: #aaa;
}

/* ── Taxonomy / Subject pages ──────────────────────────────── */

.kb-tax-header {
  margin-bottom: 24px;
}

.kb-tax-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.kb-tax-count {
  font-size: 13px;
  color: #666;
  margin: 0 0 2px;
}

.kb-tax-desc {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.kb-tax-related {
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px solid #eee;
}

.kb-tax-related h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 8px;
}

/* ── Subject index page ────────────────────────────────────── */

.kb-subject-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.kb-subject-card {
  display: block;
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid #eee;
}

.kb-subject-card:hover {
  background: #f8f8f8;
  border-color: #ccc;
}

/* ── Mobile ────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .kb-subject-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .kb-report-question {
    font-size: 16px;
  }

  .kb-header {
    padding-bottom: 10px;
  }

  .kb-title {
    font-size: 17px;
  }

  .kb-nav {
    font-size: 12px;
    line-height: 2;
  }

  .kb-page {
    padding: 0;
  }

  .kb-pagination {
    flex-wrap: wrap;
    gap: 6px;
  }
}
