/* Whitepaper-specific layer (keeps site styling intact) */

/* Narrower measure = more “whitepaper” and less “docs” */
.wp .md-content__inner {
  max-width: 860px;
}

/* Whitepaper title block */
.wp .wp-meta {
  margin: 1rem 0 2rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--patreon-border-strong);
  border-radius: 16px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color--light);
}

/* Make the H1 feel like a report title */
.wp h1 {
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

/* Executive callouts (blockquote) */
.wp blockquote {
  border-left: 4px solid var(--patreon-ink);
  background: rgba(6, 16, 44, 0.04);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

/* Admonitions a bit more “report-like” */
.wp .admonition,
.wp details {
  border-radius: 16px;
}

/* Figure captions */
.wp figure {
  margin: 1.2rem 0;
}
.wp figcaption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
}

/* Section separators */
.wp hr {
  border: none;
  border-top: 1px solid var(--patreon-border);
  margin: 2rem 0;
}

/* Print tuning (helps PDF export tools and browser print-to-pdf) */
@media print {
  /* Hide navigation chrome */
  .md-header,
  .md-tabs,
  .md-sidebar,
  .md-footer,
  .md-search,
  .md-top {
    display: none !important;
  }

  /* Expand content */
  .md-main__inner,
  .md-content {
    margin: 0 !important;
  }

  .wp .md-content__inner {
    max-width: none;
  }

  /* Links print cleanly */
  .md-typeset a {
    color: var(--md-default-fg-color);
    text-decoration: none;
  }

    /* Disable CSS grid layouts for WeasyPrint */
  .md-typeset .grid,
  .md-typeset .grid > ul,
  .md-typeset .grid.cards > ul {
    display: block !important;
  }

  .md-typeset .grid > ul > li,
  .md-typeset .grid.cards > ul > li {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 12px;
  }
}
