section.labelborder { position: relative; overflow: visible; margin-top: 1.66em; padding: 1ex 0.95ex; border: 0.1em solid var(--foreground); border-radius: 4px; header { margin-bottom: 0.2em; & > * { position: absolute; top: -0.66em; margin: 0; background: var(--background-lighter); font-weight: 600; line-height: 1; padding: 0 0.75ex; } h3 { left: 1ex; } } }