* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #222;
    background: #ffffff;
}

.site-header {
    background: linear-gradient(180deg, #3a5f82 0%, #2c4a63 100%);
    color: #fff;
    padding: 14px 24px 10px;
}

.brand { font-size: 26px; font-weight: bold; }
.brand-useless { color: #ffffff; }
.brand-pkg { color: #ffd27a; }

.tagline { font-style: italic; font-size: 12px; color: #cfe0ee; margin-top: 4px; }

.site-nav {
    background: #dfe9f2;
    border-bottom: 1px solid #b9cddc;
    padding: 6px 20px;
}
.site-nav a {
    color: #1a4f7a;
    font-weight: bold;
    text-decoration: none;
    margin-right: 22px;
    font-size: 13px;
}
.site-nav a:hover, .site-nav a.active { text-decoration: underline; }

.page-wrap { display: flex; min-height: 70vh; }

.sidebar {
    width: 210px;
    padding: 18px 14px;
    border-right: 1px solid #e0e0e0;
    background: #fbfbfb;
}
.side-group { margin-bottom: 20px; }
.side-heading {
    font-weight: bold;
    color: #555;
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 6px; }
.sidebar a { color: #1a4f7a; text-decoration: none; font-size: 13px; }
.sidebar a:hover { text-decoration: underline; }

.content { flex: 1; padding: 24px 32px; max-width: 860px; }

.section-title {
    background: #dbe8f5;
    border: 1px solid #aecbe3;
    color: #1a4f7a;
    font-weight: bold;
    padding: 6px 12px;
    margin: 22px 0 12px;
    font-size: 14px;
}
.content > .section-title:first-child { margin-top: 0; }

code, .mono {
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    background: #fdf3ea;
    color: #a35a26;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 13px;
}

pre {
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    background: #f6f8fa;
    border: 1px solid #dfe4e8;
    padding: 12px;
    overflow-x: auto;
    font-size: 13px;
    color: #333;
}

.notice {
    background: #f4f4f4;
    border: 1px solid #d8d8d8;
    padding: 10px 12px;
    font-size: 12px;
    color: #555;
    margin: 16px 0;
}

table.pkg-table, table.info-table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0 20px;
}
table.pkg-table th, table.pkg-table td,
table.info-table th, table.info-table td {
    border: 1px solid #cddce9;
    padding: 6px 10px;
    text-align: left;
    font-size: 13px;
}
table.pkg-table th, table.info-table th {
    background: #3a5f82;
    color: #fff;
}
table.pkg-table tr:nth-child(even), table.info-table tr:nth-child(even) { background: #f7fafd; }

.btn {
    display: inline-block;
    background: #eef4fa;
    border: 1px solid #9fb9d0;
    color: #1a4f7a;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: #dfeaf5; }
.btn.danger { color: #a12b2b; border-color: #d9a3a3; background: #fbeeee; }
.btn.danger:hover { background: #f7dcdc; }

form.stacked label { display: block; margin: 10px 0 4px; font-weight: bold; font-size: 13px; }
form.stacked input[type=text],
form.stacked input[type=email],
form.stacked input[type=password],
form.stacked select,
form.stacked textarea {
    width: 100%;
    max-width: 520px;
    padding: 6px 8px;
    border: 1px solid #b9c7d4;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
}
form.stacked textarea { font-family: monospace; min-height: 220px; }

.alert-error {
    background: #fbeeee; border: 1px solid #d9a3a3; color: #8a2020;
    padding: 8px 12px; margin: 14px 0; font-size: 13px;
}
.alert-success {
    background: #eaf6ea; border: 1px solid #a9d3a9; color: #1e5e1e;
    padding: 8px 12px; margin: 14px 0; font-size: 13px;
}

.site-footer {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
}
.site-footer a { color: #1a4f7a; }

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 8px;
}
.badge.public { background: #eaf6ea; color: #1e5e1e; border: 1px solid #a9d3a9; }
.badge.private { background: #fbeeee; color: #8a2020; border: 1px solid #d9a3a3; }
