/* Docs: sections 64 px apart, each under a display-face title; the schematic is four equal cards. */
.docs section { margin-top: var(--s8); }
.docs section > p, .docs section > .prompts, .docs section > table, .docs section > .howto, .docs .head p { max-width: 72ch; }
.steps { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.steps:empty { display: none; }
.steps .card { position: relative; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5) var(--s6) var(--s6); }
.steps .card::before { content: ""; position: absolute; inset: 0; border: 3px solid var(--ink); pointer-events: none; }
.steps .card .k { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.steps .card .work { width: 179.4px; align-self: center; }
.steps .card p { margin: 0; font-size: 16px; }
.steps blockquote { margin: 0; flex: 1; display: flex; align-items: center; font-size: 20px; line-height: 1.4; min-height: 179px; }
.steps .score { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 96px !important; line-height: 1; color: var(--brass-dark); min-height: 179px; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin: var(--s5) 0 0; align-items: stretch; }
.rule { position: relative; padding: var(--s5) 0 0; }
.rule::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ink); }
.rule .big { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; margin: 0 0 var(--s3); }
.rule p { margin: 0; }
.docs section > p.rules-more { margin-top: var(--s6); max-width: none; }
.prompts { display: grid; gap: var(--s5); margin: var(--s5) 0; }
.prompts figure { margin: 0; }
.prompts figcaption { font-weight: 600; font-size: 16px; margin-bottom: var(--s2); }
.prompts pre { margin: 0; padding: var(--s4) var(--s5); white-space: pre-wrap; font-size: 16px; line-height: 1.5; background: var(--field); border-left: 6px solid var(--brass); }
.swatches { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s4) var(--s3); max-width: 960px; }
.swatches li { display: flex; flex-direction: column; gap: var(--s1); font-size: 16px; }
.swatches .chip { display: block; aspect-ratio: 1; box-shadow: inset 0 0 0 3px var(--ink); }
table.split { border-collapse: collapse; width: 100%; max-width: 820px; margin: var(--s5) 0; font-size: 18px; }
table.split th, table.split td { text-align: left; padding: var(--s4) var(--s6) var(--s4) 0; vertical-align: middle; }
table.split th, table.split td { position: relative; }
table.split td::after, table.split th::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--shadow); }
table.split thead th::after { height: 3px; background: var(--ink); }
table.split thead th { font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
table.split .n { font-size: 32px; font-weight: 700; text-align: right; width: 120px; padding-right: 0; }
.howto { max-width: 72ch; padding-left: 1.4em; }
.howto li { margin-bottom: var(--s3); }
.docs .linkrow { display: grid; gap: var(--s3); max-width: 620px; margin-top: var(--s5); }
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .rules { grid-template-columns: 1fr; } .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
