/* Hallmark · doc: the Read mode, one quiet column at a 62ch measure, regular-weight heads, hairlines between the parts and nothing boxed */

/* ---------- the column ---------- */

.doc { padding-block: var(--section-gap-s) 0; }
.doc__in { max-width: calc(var(--measure) + 2 * var(--gutter)); font-size: var(--text-md); line-height: 1.7; }
.doc__in > * + * { margin-top: var(--space-lg); }

.doc h1 { font-size: var(--text-display-s); font-weight: var(--display-weight); line-height: 1.15; text-wrap: balance; }
.doc h1[tabindex="-1"]:focus { outline: none; }
.doc h2 { font-size: var(--text-xl); font-weight: var(--display-weight); line-height: 1.3; text-wrap: balance; }
.doc .lead { max-width: var(--measure); }
.doc__in > .doc__note { margin-top: var(--space-md); }
.doc__note { font-size: var(--text-sm); line-height: 1.6; color: var(--color-muted); }
.doc__in > .doc__intro { margin-top: var(--space-xl); }

/* ---------- the contents list on the long pages ---------- */

.doc__in > .doc__toc { margin-top: var(--space-2xl); }
.doc .doc__toc-title { font: var(--weight-body) var(--text-sm)/1.4 var(--font-body); letter-spacing: 0; color: var(--color-muted); }
.doc__toc ol { display: grid; margin-top: var(--space-xs); }
.doc__toc a { display: flex; align-items: center; min-height: 48px; text-decoration: none; }
.doc__toc a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.doc__toc a:active { color: var(--color-ink-2); }
.doc__toc a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- the parts, a hairline between each ---------- */

.doc__in > .doc__part { margin-top: var(--space-2xl); padding-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.doc__part > * + * { margin-top: var(--space-md); }
.doc__part > h2 + * { margin-top: var(--space-lg); }

.doc ul:not([class]) { display: grid; gap: var(--space-sm); padding-inline-start: var(--space-lg); list-style: disc; }
.doc ul:not([class]) li { max-width: var(--measure); padding-inline-start: var(--space-2xs); }
.doc ul:not([class]) li::marker { color: var(--color-muted); }

/* a term and its meaning: the lead word in the body face at 500, the text under it */
.doc__terms { display: grid; gap: var(--space-lg); margin: 0; }
.doc__terms > * { margin: 0; }
.doc__terms dt { font-weight: 500; }
.doc__terms dt + dd { margin-top: calc(-1 * var(--space-md)); }

.doc__in a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.doc__in a:not([class]):hover { text-decoration-thickness: 2px; }
.doc__in a:not([class]):active { color: var(--color-ink-2); }
.doc__in a:not([class]):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- the foot of the page ---------- */

.doc__in > .doc__meta { margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.doc__meta { font-size: var(--text-sm); color: var(--color-muted); }

/* the way on from a short page (the 404, the sent request) */
.doc__in > .doc__links { margin-top: var(--space-2xl); }
.doc__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); }

/* ---------- the cancel form ---------- */

.doc__in > .form { margin-top: var(--space-2xl); max-width: var(--measure); }
.doc .form__privacy { line-height: 1.6; }

@media print {
  .doc__toc { display: none; }
  .doc { padding-block: 0; }
}
