/* The public example pages (stage 0.7), shared since 2 Nov 2026 by the
   qualitative results page and the literature dashboard, and the staff
   control that publishes them. The colours fall back to the
   brand values where a page does not define the --doksa-* variables. */

/* 17 Nov 2026 (Oliver: the boxed notice read like a note to the team): each
   example says what it is in two sentences to the visitor under the title,
   and the way on closes the header. No box, no chip. */
.example-intro {
  margin: 0.25rem 0 0;
  max-width: 48rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--doksa-gray-dark, #374151);
}

.dark .example-intro,
.dashboard-container .example-intro {
  color: #d1d5db;  /* the literature dashboard is dark in both themes without the site look */
}

.example-intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.example-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

/* The way on at the end of both example pages */
.example-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.example-cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 0.375rem;
  background: var(--doksa-gold-light, #FFD700);
  color: var(--doksa-navy, #1B365D) !important;
  text-decoration: none !important;
  font-weight: 600;
  white-space: nowrap;
}

.example-cta:hover {
  background: #ffe34d;
}

.example-alt {
  color: #e5e7eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.example-alt:hover {
  color: var(--doksa-gold-light, #FFD700);
}

/* The end of the example page: the documents, source and licence */
.example-documents {
  background: var(--doksa-gray-light, #F8F9FA);
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--doksa-gray-dark, #374151);
  line-height: 1.55;
  scroll-margin-top: 6rem;
}

.dark .example-documents {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

.example-documents h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--doksa-navy, #1B365D);
  margin-bottom: 0.5rem;
}

.dark .example-documents h2 {
  color: var(--doksa-gold-light, #FFD700);
}

.example-documents p + ul,
.example-documents ul + p,
.example-documents p + p {
  margin-top: 0.5rem;
}

.example-documents ul {
  list-style: disc;
  margin-left: 1.25rem;
}

.example-documents a:not(.example-cta) {
  color: var(--doksa-navy, #1B365D);
  text-decoration: underline;
}

.dark .example-documents a:not(.example-cta) {
  color: var(--doksa-gold-light, #FFD700);
}

.example-documents .example-banner-actions {
  margin-top: 1rem;
}

.example-source {
  font-size: 0.75rem;
  color: var(--doksa-gray-medium, #6B7280);
}

.publish-example {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--doksa-gray-medium, #6B7280);
}

.publish-example summary {
  cursor: pointer;
}

.publish-example label {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
}

.publish-example select {
  display: block;
  max-width: 100%;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--doksa-gray-light, #d1d5db);
  border-radius: 0.375rem;
  background: transparent;
  color: inherit;
}

.publish-example button {
  margin-top: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--doksa-gold, #B8860B);
  color: var(--doksa-gold, #B8860B);
  background: transparent;
  font-weight: 600;
}

/* The literature example (2 Nov 2026): the research question under the
   heading, and the numbered list of papers at the end */
.example-question {
  margin: 0.75rem 0 0;
  max-width: 60rem;
  color: #f3f4f6;
  font-size: 1rem;
  line-height: 1.55;
}

.example-documents ol.example-papers {
  list-style: decimal;
  margin: 0.5rem 0 0 1.5rem;
}

.example-documents ol.example-papers li + li {
  margin-top: 0.375rem;
}

.example-documents ol.example-papers + p {
  margin-top: 0.75rem;
}
