/* kea.css — Readable Technical
   Light theme, black text, Inter font, hckrnews sizing */

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

:root {
    --bg: #fafafa;
    --bg-alt: #f0f0f0;
    --fg: #000000;
    --fg-secondary: #222222;
    --fg-muted: #444444;
    --accent: #000000;
    --accent-dim: #333333;
    --border: #ddd;
    --card-bg: #fff;
    --card-header: #f8f8f8;
    --focus: #000000;
}

html {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', 'Inter Variable', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--fg); text-decoration: none; transition: color 0.15s ease; }
img { max-width: 100%; height: auto; display: block; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: #000; color: #fff; }
::placeholder { color: #555; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

.site-header {
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.site-header h1 {
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--fg);
    font-weight: 500;
    display: flex; align-items: center; gap: 8px;
}
.site-header h1::before { content: "┌─"; color: #555; }
.site-header h1 a { color: var(--fg); }
.site-header h2 {
    font-size: 13px;
    color: var(--fg);
    letter-spacing: 1px;
    margin-top: 4px;
    font-weight: 400;
}

.site-nav {
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.site-nav ul {
    list-style: none;
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
}
.site-nav li { border-right: 1px solid var(--border); }
.site-nav li:first-child { border-left: 1px solid var(--border); }
.site-nav li a {
    display: block;
    padding: 12px 18px;
    color: var(--fg);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 400;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.site-nav li a:hover { background: rgba(0,0,0,0.05); }
.site-nav li.active a { border-bottom-color: var(--fg); }

.site-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px;
    flex: 1;
}

.content-block { max-width: 720px; margin: 0 auto 40px; }
.content-block h3 {
    color: var(--fg);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-weight: 500;
}
.content-block p {
    color: var(--fg);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 14px;
}
.content-block h4 {
    color: var(--fg);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 0 8px;
    font-weight: 500;
}
.content-block ul {
    list-style: none;
    padding-left: 12px;
    border-left: 1px solid var(--border);
    margin: 10px 0;
}
.content-block li {
    color: var(--fg);
    font-size: 14px;
    padding: 3px 0 3px 10px;
}
.content-block li::before { content: "›"; color: #555; margin-right: 6px; }

.data-pre {
    background: var(--card-bg);
    padding: 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--fg);
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    color: var(--fg);
    font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', 'Courier New', monospace;
    margin: 12px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }
.card {
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--card-bg);
    transition: border-color 0.15s;
}
.card:hover { border-color: #555; }
.card-header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--card-header);
    min-height: 44px;
}
.card-header h3 {
    color: var(--fg);
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
    flex: 1;
}
.card-header .status {
    font-size: 11px;
    color: var(--fg);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.card iframe { width: 100%; border: none; display: block; }
.card .card-body { padding: 16px; font-size: 14px; color: var(--fg); line-height: 1.6; }
.card pre { margin: 0; background: transparent; padding: 14px 16px; font-size: 13px; line-height: 1.5; overflow-x: auto; max-height: 400px; font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', 'Courier New', monospace; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0; }
.data-table th {
    text-align: left;
    color: var(--fg);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.data-table td { color: var(--fg); padding: 8px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--bg-alt); }

.status-ok, .status-warn, .status-critical, .status-info { color: var(--fg); }

.site-footer {
    padding: 16px 24px;
    color: var(--fg);
    font-size: 11px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--bg-alt);
}
.site-footer::before { content: "─"; margin-right: 8px; color: #555; }

@media print {
    .site-nav, .site-footer { display: none; }
    body { background: white; color: black; }
    .card { break-inside: avoid; }
}

/* Mobile responsive — small screens (768px) */
@media (max-width: 768px) {
    html { font-size: 12px; }
    .site-header { padding: 8px 12px; }
    .site-header h1 { font-size: 14px; }
    .site-header h2 { font-size: 11px; }
    .site-nav ul { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .site-nav a { padding: 6px 10px; font-size: 9px; white-space: nowrap; }
    .site-container { padding: 0 10px; overflow-x: hidden; }
    .card-header { padding: 6px 10px; }
    .card .card-body { padding: 6px; font-size: 11px; }
    .site-footer { padding: 8px 10px; font-size: 9px; }
}

/* Mobile responsive — medium phones (480px) */
@media (max-width: 480px) {
    html { font-size: 11px; }
    .site-header { padding: 6px 10px; }
    .site-header h1 { font-size: 13px; }
    .site-header h2 { font-size: 10px; }
    .site-nav a { padding: 5px 8px; font-size: 8px; }
    .site-container { padding: 0 8px; overflow-x: hidden; }
    .card-header { padding: 4px 8px; }
    .card .card-body { padding: 4px; font-size: 10px; }
    .site-footer { padding: 6px 8px; font-size: 8px; }
}

/* Mobile responsive — very small screens (360px) */
@media (max-width: 360px) {
    html { font-size: 10px; }
    .site-header { padding: 4px 8px; }
    .site-header h1 { font-size: 12px; }
    .site-header h2 { font-size: 9px; }
    .site-nav a { padding: 4px 6px; font-size: 7px; }
    .site-container { padding: 0 6px; overflow-x: hidden; }
    .card-header { padding: 4px 6px; }
    .card .card-body { padding: 4px; font-size: 9px; }
    .site-footer { padding: 4px 6px; font-size: 7px; }
}
