/* Public plugin catalogue at `/` — rendered by app/routes-home.js. External file
   because the hub's CSP blocks inline styles. */

:root {
    --bg: #f6f7f9;
    --card: #ffffff;
    --text: #1d2327;
    --muted: #5c6670;
    --border: #dcdfe3;
    --accent: #2563eb;
    --free-bg: #e7f6ec;
    --free-text: #1d6b39;
    --lic-bg: #eef2ff;
    --lic-text: #3730a3;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14171a;
        --card: #1d2125;
        --text: #e8eaed;
        --muted: #a0a8b0;
        --border: #2f353b;
        --accent: #7aa2ff;
        --free-bg: #173524;
        --free-text: #8fdca9;
        --lic-bg: #232a4a;
        --lic-text: #b9c3ff;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.brand {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 4px;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

h1 { margin: 0 0 8px; font-size: 28px; }
.intro { margin: 0 0 32px; color: var(--muted); }

.plugin, .how {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

/* Keeps a /#<slug> jump from landing flush against the top edge. */
.plugin { scroll-margin-top: 24px; }
.plugin:target { border-color: var(--accent); }

.plugin header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.plugin h2, .how h2 { margin: 0; font-size: 20px; }
.how h2 { margin-bottom: 8px; }
.how p { margin: 0; }

.description { margin: 12px 0 0; }

.access {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.access.free     { background: var(--free-bg); color: var(--free-text); }
.access.licensed { background: var(--lic-bg);  color: var(--lic-text); }

.meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 14px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
}

.empty { color: var(--muted); }

.get-license { margin: 12px 0 0; font-size: 14px; }
.get-license a { color: var(--accent); font-weight: 600; text-decoration: none; }
