/* Man page resume styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #fff;
    padding: 2rem 1rem;
}

.manpage {
    max-width: 80ch;
    margin: 0 auto;
}

/* Header and footer: three-column layout like real man pages */
.man-header,
.man-footer {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding: 0.5rem 0;
}

.man-header {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.man-footer {
    border-top: none;
    margin-top: 1.5rem;
}

/* Section headers: bold, uppercase, no indent (like groff .SH) */
h2 {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 0;
}

/* Pre-formatted content blocks */
.man-content {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
}

/* Links: look like underlined terminal text */
a {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 2px;
}

a:hover {
    color: #0054a6;
}

/* Bold text within pre blocks */
b {
    font-weight: bold;
}

/* Responsive: smaller screens */
@media (max-width: 700px) {
    body {
        font-size: 12px;
        padding: 1rem 0.75rem;
    }

    .man-header,
    .man-footer {
        font-size: 11px;
    }
}

/* Print stylesheet */
@media print {
    body {
        font-size: 11px;
        padding: 0;
        color: #000;
        background: #fff;
    }

    .manpage {
        max-width: none;
    }

    a {
        text-decoration: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555;
    }

    .man-header,
    .man-footer {
        font-size: 10px;
    }
}
