/* ==========================================================================
   QUOTC — text pages: blog article and static pages (policies, docs)
   Uses tokens and components from main.css
   ========================================================================== */


/* Layout: container 1200, text column 800
   ========================================================================== */

.article {
  padding: 24px 0 var(--q-section-space);
}

.article__cover {
  margin: 24px 0 0;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 8 / 3;
  background: var(--q-surface-soft);
}

.article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body {
  max-width: 800px;
  margin: 40px auto 0;
}

/* static page (no cover): breadcrumbs sit on the text column, title right under them */
.article--page .breadcrumbs {
  max-width: 800px;
  margin: 0 auto;
}

.article--page .article__body {
  margin-top: 24px;
}

.article__lead {
  margin-top: 16px;
  font-size: 22px;
  line-height: 32px;
  color: var(--q-muted);
}

.article__head + .prose {
  margin-top: 32px;
}

@media (max-width: 767px) {
  .article__cover {
    border-radius: 8px;
    aspect-ratio: 16 / 9;
  }

  .article__body {
    margin-top: 32px;
  }

  .article__lead {
    font-size: 18px;
    line-height: 28px;
  }
}


/* Prose: typography of the text itself
   ========================================================================== */

.prose {
  color: var(--q-muted);
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: 48px;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--q-ink);
}

.prose h3 {
  margin-top: 32px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--q-ink);
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 12px;
}

.prose a {
  color: var(--q-action);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--q-ease);
}

.prose a:hover {
  color: var(--q-action-hover);
}

/* lists: marker indent 24px, 8px between items */

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
}

.prose li {
  position: relative;
  padding-left: 24px;
}

.prose ul li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--q-brand);
}

.prose ol {
  counter-reset: step;
}

.prose ol li {
  padding-left: 32px;
  counter-increment: step;
}

.prose ol li::before {
  content: counter(step) '.';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--q-brand);
  font-variant-numeric: tabular-nums;
}

/* tables scroll inside their own block on narrow screens */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--q-border);
  border-radius: 8px;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 22px;
}

.prose th,
.prose td {
  height: 52px;
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

.prose tr + tr,
.prose tbody tr {
  border-top: 1px solid var(--q-border);
}

.prose th + th,
.prose th + td,
.prose td + td {
  border-left: 1px solid var(--q-border);
}

.prose thead th {
  font-weight: 600;
  background: var(--q-surface-soft);
  color: var(--q-ink);
}

.prose tbody th {
  font-weight: 500;
  color: var(--q-ink);
}

@media (max-width: 767px) {
  .prose h2 {
    margin-top: 40px;
    font-size: 26px;
    line-height: 34px;
  }

  .prose h3 {
    margin-top: 28px;
    font-size: 18px;
    line-height: 26px;
  }
}
