/* ==========================================================================
   Standalone document page — dark shell around the shared .waf-prose styles
   from css/modals.css. The document body itself is fetched at runtime by
   js/doc-page.js from the admin-managed /api/documents/:slug endpoint.
   ========================================================================== */

/* This page deliberately skips styles.css / tailwind.css (it needs none of the
   landing-page CSS), so it carries its own box-sizing reset. */
.doc-page,
.doc-page *,
.doc-page *::before,
.doc-page *::after {
  box-sizing: border-box;
}

html {
  background: #1e1e1e;
}

body.doc-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.doc-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 28px clamp(20px, 6vw, 64px);
}

/* The logo SVGs are preserveAspectRatio="none" with no intrinsic size, so both
   dimensions must be set. These match their viewBoxes (41.83x24 / 141.16x13.94)
   and reproduce the nav's mark:word proportions. */
.doc-page-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.doc-page-logo img {
  display: block;
  flex-shrink: 0;
}

.doc-page-logo-mark {
  width: 41.83px;
  height: 24px;
}

.doc-page-logo-word {
  width: 141.16px;
  height: 13.94px;
}

@media (max-width: 420px) {
  .doc-page-logo-mark {
    width: 34.86px;
    height: 20px;
  }
  .doc-page-logo-word {
    width: 117.63px;
    height: 11.61px;
  }
}

.doc-page-main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 64px) 64px;
}

.doc-page-card {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
}

@media (min-width: 768px) {
  .doc-page-card {
    padding: 48px;
  }
}

/* The fetched markdown supplies its own <h1>, so the page adds no heading. */
.doc-page-footer {
  padding: 0 clamp(20px, 6vw, 64px) 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.doc-page-footer p {
  margin: 0;
}

.doc-page-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.doc-page :focus-visible {
  outline: 2px solid #25cc9d;
  outline-offset: 3px;
}
