/*
 * This file is part of GNU gumdrop, a multipurpose Java server.
 * 
 * GNU gumdrop is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * GNU gumdrop is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with gumdrop; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

/* ── Base ── */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    background-color: #fcfcfc;
    text-align: justify;
    line-height: 1.6;
    max-width: 52em;
    margin: 0 auto;
    padding: 1.5em 2em 2em;
}

/* ── Typography ── */

h1, h2, h3, h4 {
    color: #2a5438;
    font-weight: 600;
    text-align: left;
}

h1 { font-size: 1.8em; margin: 0; }
h2 { font-size: 1.5em; margin-top: 1.8em; }
h3 { font-size: 1.25em; margin-top: 1.6em; border-bottom: 1px solid #dde4dd; padding-bottom: 0.3em; }
h4 { font-size: 1.05em; margin-top: 1.4em; color: #3d6b4a; }

p { margin: 0.8em 0; }

/* ── Links ── */

a:link    { color: #2a5438; }
a:visited { color: #3d6b4a; }
a:hover   { color: #4caf50; }
a:active  { color: #1f4029; }

/* ── Header ── */

header {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding-bottom: 0.8em;
    margin-bottom: 0.4em;
    border-bottom: 3px solid #2a5438;
}

header img {
    width: 56px;
    height: auto;
    flex-shrink: 0;
}

header h1 {
    border: none;
    padding: 0;
}

/* ── Back link / breadcrumb ── */

.back-link {
    font-size: 0.9em;
    margin: 0.3em 0 1.2em;
    text-align: left;
}

/* ── Code ── */

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    background: #f0f4f0;
    padding: 0.15em 0.35em;
    border-radius: 3px;
}

pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85em;
    line-height: 1.5;
    background: #f5f7f5;
    border: 1px solid #dde4dd;
    border-left: 3px solid #3d6b4a;
    border-radius: 4px;
    padding: 1em 1.2em;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* ── Tables ── */

table {
    border-collapse: collapse;
    width: auto;
    margin: 1em 0;
}

th, td {
    padding: 0.5em 0.8em;
    text-align: left;
    border: 1px solid #c8d0c8;
}

th {
    background: #e8f0e8;
    color: #2a5438;
    font-weight: 600;
}

tr:nth-child(even) td {
    background: #f8faf8;
}

/* ── Lists ── */

ul, ol {
    padding-left: 1.8em;
}

li {
    margin: 0.3em 0;
}

/* ── Images ── */

img {
    border: none;
    outline: none;
    max-width: 100%;
    height: auto;
}

/* ── Footer ── */

.server-info {
    margin-top: 3em;
    padding-top: 0.8em;
    border-top: 1px solid #dde4dd;
    font-size: 0.85em;
    color: #6a7a6a;
    text-align: center;
}

/* ── Utility ── */

.center { text-align: center; }

.heading {
    background: #e8f0e8;
    margin-top: 0.5em;
    margin-bottom: 1em;
    padding: 0.3em 0.6em;
    border-radius: 3px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
    body {
        padding: 1em;
    }

    header img {
        width: 40px;
    }

    h1 { font-size: 1.4em; }

    pre {
        padding: 0.7em;
        font-size: 0.8em;
    }
}
