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

body {
    font-family: "SF Mono", "Cascadia Mono", "Menlo", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 16px;
}

/* nav */
nav {
    border-bottom: 1px solid #222;
    padding-bottom: 6px;
    margin-bottom: 16px;
}
nav .brand {
    font-weight: bold;
    margin-right: 16px;
}
nav a {
    color: #222;
    text-decoration: none;
    margin-right: 12px;
}
nav a:hover {
    text-decoration: underline;
}

/* headings */
h2 {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}
h2 small { font-weight: normal; letter-spacing: 0; text-transform: none; }

h4 {
    font-size: 13px;
    font-weight: bold;
    margin: 12px 0 6px;
}

/* stats */
.stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.stat {
    border: 1px solid #ccc;
    padding: 8px 14px;
}
.stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}
.stat-number {
    font-size: 20px;
    font-weight: bold;
}

/* tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 12px;
    border: 1px solid #222;
}
th, td {
    text-align: left;
    padding: 3px 8px;
    border: 1px solid #999;
}
th {
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid #222;
}
tr:hover { background: #f5f5f5; }

/* links */
a { color: #222; }


/* detail */
dl { margin-bottom: 12px; }
dt {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    margin-top: 6px;
}
dd { margin-left: 0; }

article {
    border: 1px solid #ccc;
    padding: 10px 14px;
    margin-bottom: 12px;
}
article header {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

/* grid */
.grid { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.grid > * { flex: 1; min-width: 280px; }

/* forms */
input, select, button {
    font-family: inherit;
    font-size: 12px;
    border: 1px solid #999;
    padding: 4px 8px;
    background: #fff;
    color: #222;
}
button {
    cursor: pointer;
    font-weight: bold;
}
button:hover { background: #222; color: #fff; }
label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
}
label input, label select {
    display: block;
    width: 100%;
    margin-top: 2px;
}

details {
    margin-bottom: 12px;
    border: 1px solid #ccc;
    padding: 6px 10px;
}
summary {
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    color: #666;
}

/* tags */
kbd {
    font-family: inherit;
    font-size: 11px;
    border: 1px solid #999;
    padding: 1px 5px;
    margin-right: 4px;
}

/* pre */
pre {
    font-family: inherit;
    font-size: 12px;
    white-space: pre-wrap;
    border: 1px solid #ccc;
    padding: 10px;
    background: #fafafa;
}

/* pagination */
nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

/* footer */
footer {
    border-top: 1px solid #ccc;
    padding-top: 6px;
    margin-top: 24px;
    font-size: 11px;
    color: #999;
}

/* overflow */
.overflow-auto { overflow-x: auto; }

/* hgroup */
hgroup { margin-bottom: 12px; }
hgroup p { font-size: 12px; color: #666; }
