/* Docs article typography - follows 'Structr.org Documentation.dc.html' */

/* kicker (the chapter name above the title) */
.dv3-sheet .article>p:first-child {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin: 0 0 12px
}

/* title + lead */
.dv3-sheet .article>h1 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 14px;
  text-wrap: balance
}

.dv3-sheet .article>h1+p {
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
  margin-bottom: 20px
}

/* section headings: no rule line, anchor links look like plain headings */
.dv3-sheet .article>h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 700;
  margin: 44px 0 16px;
  padding-top: 0;
  border-top: 0
}

.dv3-sheet .article>h3 {
  margin: 30px 0 12px
}

.dv3-sheet .article> :is(h1, h2, h3, h4, h5, h6)>a[id] {
  color: inherit;
  text-decoration: none
}

/* plain lists: small neutral rings */
.dv3-sheet .article ul>li:nth-child(n) {
  --dv3-ring: var(--color-text-tertiary)
}

.dv3-sheet .article ul>li::before {
  width: 7px;
  height: 7px;
  top: .62em
}

/* the first section's list: card grid with coloured rings */
.dv3-sheet .article>h2:first-of-type+p+ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 8px;
  margin-bottom: 18px
}

.dv3-sheet .article>h2:first-of-type+p+ul>li {
  margin: 0;
  padding: 12px 14px 12px 36px;
  background: var(--color-background-primary);
  border: .5px solid var(--color-border-secondary);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5
}

.dv3-sheet .article>h2:first-of-type+p+ul>li::before {
  left: 14px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-width: 2px
}

.dv3-sheet .article>h2:first-of-type+p+ul>li:nth-child(6n+2) {
  --dv3-ring: var(--schema)
}

.dv3-sheet .article>h2:first-of-type+p+ul>li:nth-child(6n+3) {
  --dv3-ring: var(--screens)
}

.dv3-sheet .article>h2:first-of-type+p+ul>li:nth-child(6n+4) {
  --dv3-ring: var(--processes)
}

.dv3-sheet .article>h2:first-of-type+p+ul>li:nth-child(6n+5) {
  --dv3-ring: var(--data)
}

.dv3-sheet .article>h2:first-of-type+p+ul>li:nth-child(6n) {
  --dv3-ring: var(--permissions)
}

/* "Read more": label beside a row of pill links */
.dv3-sheet .article>h3:has(> a[id^="read-more"]) {
  float: left;
  margin: 0 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 30px
}

.dv3-sheet .article>h3:has(> a[id^="read-more"])+p {
  font-size: 0;
  line-height: 0;
  margin: 0 0 22px
}

.dv3-sheet .article>h3:has(> a[id^="read-more"])+p::after {
  content: "";
  display: block;
  clear: both
}

.dv3-sheet .article>h3:has(> a[id^="read-more"])+p>a {
  display: inline-block;
  vertical-align: top;
  margin: 0 10px 8px 0;
  font-size: 13.5px;
  line-height: 1.4;
  padding: 5px 12px;
  border: .5px solid var(--color-border-secondary);
  border-radius: 999px;
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  text-decoration: none
}

.dv3-sheet .article>h3:has(> a[id^="read-more"])+p>a:hover {
  background: var(--color-background-tertiary);
  color: var(--color-text-primary)
}

/* note / tip boxes */
.dv3-sheet .article blockquote {
  line-height: 1.55;
  margin: 4px 0 18px
}

.dv3-sheet .article blockquote>p {
  margin: 0
}

.dv3-sheet .article blockquote>p+p {
  margin-top: 8px
}

.dv3-sheet .article blockquote>p:first-child>strong:first-child {
  color: var(--color-text-info);
  font-weight: 600;
  margin-right: 4px
}

/* code blocks on a white card */
.dv3-sheet .article pre {
  background: var(--color-background-primary)
}