/* meshkit.org styles. Chrome (palette, header, nav, cards, footer) mirrors
   gmrs.io's styles.css on this same server so the two sites feel related. */

:root {
    --base03: #002b36;
    --base02: #073642;
    --base01: #586e75;
    --base00: #657b83;
    --base0:  #839496;
    --base1:  #93a1a1;
    --base2:  #eee8d5;
    --base3:  #fdf6e3;
    --yellow: #b58900;
    --orange: #cb4b16;
    --red:    #dc322f;
    --blue:   #268bd2;
    --cyan:   #2aa198;
    --green:  #859900;
    --violet: #6c71c4;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--base03);
    color: var(--base0);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 12px;
    width: 100%;
    flex: 1;
}

/* Header (same chrome as gmrs.io) */
.site-header {
    text-align: center;
    padding: 32px 20px 16px;
}

.site-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--base1);
    letter-spacing: -0.5px;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.site-title span {
    color: var(--cyan);
}

.site-subtitle {
    font-size: 15px;
    color: var(--base01);
    margin-top: 4px;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--base01);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--base1);
    background: var(--base02);
}

.nav-link.active {
    color: var(--cyan);
    background: var(--base02);
    font-weight: 600;
}

/* Hero */
.hero {
    text-align: center;
    max-width: 640px;
    margin: 8px auto 32px;
}

.hero p {
    font-size: 16px;
    line-height: 1.6;
}

.hero .hero-sub {
    font-size: 14px;
    color: var(--base01);
    margin-top: 10px;
}

.hero a {
    color: var(--cyan);
    text-decoration: none;
}

.hero a:hover {
    text-decoration: underline;
}

/* Section headings */
.section {
    margin-bottom: 36px;
}

.section > h2 {
    color: var(--base1);
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-note {
    font-size: 13px;
    color: var(--base01);
    margin: -6px 0 12px;
}

/* Cards (base02 surface, 8px radius, like gmrs.io stat cards) */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.card {
    background: var(--base02);
    border-radius: 8px;
    padding: 20px;
}

.card h3 {
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 6px;
}

.card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--base0);
    margin-bottom: 12px;
}

/* Single accent for both ecosystems (no favorites): cyan, same as the site title */
.card h3 { color: var(--cyan); }

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-links a {
    display: inline-block;
    background: var(--base03);
    border: 1px solid var(--base01);
    color: var(--base1);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s;
}

.card-links a:hover { border-color: var(--cyan); color: var(--cyan); }

/* Guide lists */
.guide-list {
    background: var(--base02);
    border-radius: 8px;
    overflow: hidden;
}

.guide-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(88, 110, 117, 0.25);
    color: var(--base0);
    text-decoration: none;
}

.guide-row:last-child {
    border-bottom: none;
}

a.guide-row {
    transition: background 0.15s;
}

a.guide-row:hover {
    background: rgba(0, 43, 54, 0.5);
}

.guide-row .guide-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--base1);
}

.guide-row .guide-desc {
    font-size: 13px;
    color: var(--base01);
    margin-top: 2px;
}

.soon-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--yellow);
    background: rgba(181, 137, 0, 0.15);
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Footer (same chrome as gmrs.io) */
.site-footer {
    text-align: center;
    padding: 16px 20px;
    font-size: 12px;
    color: var(--base01);
}

.site-footer a {
    color: var(--base01);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--base0);
}

@media (max-width: 600px) {
    .site-header { padding: 24px 16px 12px; }
    .site-title { font-size: 28px; }
    .site-nav { flex-wrap: wrap; }
    .card-grid { grid-template-columns: 1fr; }
    .hero p { font-size: 15px; }
}

/* Guide article pages (shell adapted from gmrs.io's guide styles) */
.guide-breadcrumb { font-size: 13px; margin: 8px 0 20px; color: var(--base0); }
.guide-breadcrumb a { color: var(--cyan); text-decoration: none; }
.guide-breadcrumb a:hover { text-decoration: underline; }
.guide-breadcrumb .sep { color: var(--base01); margin: 0 6px; }

.guide-body { max-width: 720px; margin: 0 auto; }
.guide-body h1 { color: var(--base1); font-size: 1.6em; margin: 0 0 6px; }
.guide-body .guide-category-label { color: var(--base01); font-size: 13px; margin-bottom: 20px; }
.guide-body h3 { color: var(--base1); font-size: 1em; margin: 20px 0 8px; }
.guide-body p, .guide-body li { color: var(--base0); line-height: 1.7; font-size: 14px; }
.guide-body p { margin-bottom: 12px; }
.guide-body ul, .guide-body ol { margin: 0 0 12px 20px; }
.guide-body li { margin-bottom: 4px; }
.guide-body a { color: var(--blue); text-decoration: none; }
.guide-body a:hover { text-decoration: underline; }
.guide-body code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    background: var(--base02);
    padding: 1px 5px;
    border-radius: 4px;
}

.guide-callout {
    background: var(--base02);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    border-left: 3px solid var(--cyan);
}
.guide-callout p { margin-bottom: 0; }

.guide-stub {
    background: var(--base02);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
}
.guide-stub p { color: var(--base01); font-size: 14px; margin: 0; }
.guide-stub a { color: var(--cyan); text-decoration: none; }

.guide-table { width: 100%; font-size: 13px; margin: 12px 0; border-collapse: collapse; }
.guide-table th { text-align: left; padding: 6px 10px; color: var(--base01); font-size: 11px; text-transform: uppercase; border-bottom: 1px solid var(--base02); }
.guide-table td { padding: 5px 10px; border-bottom: 1px solid var(--base02); color: var(--base0); }

.guide-nav { display: flex; justify-content: space-between; gap: 12px; max-width: 720px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--base02); }
.guide-nav a { color: var(--cyan); text-decoration: none; font-size: 14px; }
.guide-nav a:hover { text-decoration: underline; }
.guide-nav .prev::before { content: '\2190\00a0'; }
.guide-nav .next::after { content: '\00a0\2192'; }

/* Editorial TODO markers: loud on purpose so unverified facts get reviewed */
.todo {
    background: rgba(181, 137, 0, 0.2);
    color: var(--yellow);
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}
