/* pine-mushroom-v3 site stylesheet.
 *
 * Kept small and self-contained; no web fonts, no CDN hits. The
 * palette matches v2 for apples-to-apples comparison.
 */

:root {
    --fg:      #1f2937;
    --muted:   #6b7280;
    --bg:      #fafaf7;
    --accent:  #7f4f24;   /* saffron-milkcap brown */
    --accent2: #c19751;
    --border:  #d6d3d1;
    --error:   #b91c1c;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
a:hover { color: var(--accent2); }

main {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 20px;
}

main.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--fg);
    margin: 0 0 0.4em 0;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.3rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; margin-top: 1.2em; color: var(--muted); }

code, pre {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: #f1efe9;
    padding: 1px 4px;
    border-radius: 3px;
}

/* --- Dashboard layout ------------------------------------------------- */

header.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

header.site .brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
}

.version-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.85rem;
}

.version-toggle a {
    padding: 5px 12px;
    color: var(--muted);
    text-decoration: none;
}

.version-toggle a.active {
    background: var(--accent);
    color: #fff;
}

.meta-row {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.station-card {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 14px 0;
}

.species-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #eeecea;
}

.species-row:first-child { border-top: 0; }

.species-row .name {
    font-style: italic;
    color: var(--fg);
}

.bar-row {
    display: flex;
    gap: 3px;
    height: 22px;
}

.bar-row .cell {
    flex: 1;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.15;
}

.alert {
    background: #fef2e6;
    border-left: 3px solid var(--accent2);
    padding: 10px 14px;
    border-radius: 4px;
    margin: 14px 0;
    font-size: 0.92rem;
}

.error {
    color: var(--error);
}

footer.site {
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 24px 12px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
