/* man(1)-style article pages */

.man {
    /* width: min(72ch, 100%);
    margin-inline: auto;
    padding-block: 2rem 3rem;
    padding-inline: 1rem; */
    text-align: left;
    color: var(--fg);
    font-size: 0.95rem;
    line-height: 1.35;
}

.man .section-title {
    font-size: 1rem;
    text-align: center;
    padding-top: 0;
    margin-bottom: 0;
    flex: 1;
}

.man > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-top: 2.5rem;
}

.man > header .man-updated {
    flex: 0 0 18ch;
    color: var(--dim);
    font-size: 0.85rem;
    white-space: nowrap;
    text-transform: none;
}

.man > header > a {
    flex: 0 0 18ch;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: right;
}

.man-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    color: var(--fg-alt);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.man-head span:nth-child(2) {
    color: var(--dim);
    text-align: center;
}

.man-updated {
    text-transform: none;
    color: var(--dim);
}

.man-section {
    margin-bottom: 1.35rem;
}

.man-section > h2 {
    margin: 0 0 0.55rem;
    color: var(--fg-alt);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* hanging indent like troff man pages */
.man-section > p,
.man-section > ul,
.man-section > dl {
    margin: 0 0 0.65rem;
    padding-left: 5ch;
    max-width: 65ch;
}

.man-section > p:last-child,
.man-section > ul:last-child {
    margin-bottom: 0;
}

.man-name {
    color: var(--accent);
    font-weight: 700;
}

.man a {
    color: var(--accent);
}

.man a:hover {
    color: var(--accent-hover);
}

.man-dash {
    color: var(--dim);
}

.man-section ul {
    list-style: none;
}

.man-section li {
    position: relative;
    padding-left: 2ch;
}

.man-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--dim);
}

.man-footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--dim);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.section-header-image {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header-image img {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: 48px;
    max-width: none;
    min-width: 0;
    object-fit: contain;
    image-rendering: pixelated;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.man > header > a {
    text-align: left;
}

@media (max-width: 840px) {
    .man > header {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
    }

    .man > header > a,
    .man > header .man-updated {
        flex: none;
    }
}
