/* Yioras Docs — static knowledge base styled to match the yioras Paymenter theme.
   Tokens mirror theme/views/layouts colors (light + .dark). No build step. */

:root {
    --color-primary: 145 72% 40%;
    --color-secondary: 165 80% 38%;
    --color-neutral: 220 22% 88%;
    --color-base: 240 24% 12%;
    --color-muted: 240 8% 45%;
    --color-inverted: 0 0% 100%;
    --color-success: 142 71% 45%;
    --color-error: 0 75% 60%;
    --color-warning: 25 95% 53%;
    --color-info: 210 100% 60%;
    --color-background: 0 0% 100%;
    --color-background-secondary: 220 24% 97%;
}

.dark {
    --color-primary: 146 84% 52%;
    --color-secondary: 166 90% 48%;
    --color-neutral: 240 14% 20%;
    --color-base: 0 0% 98%;
    --color-muted: 240 10% 64%;
    --color-inverted: 240 28% 6%;
    --color-background: 240 26% 6%;
    --color-background-secondary: 240 22% 9%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: hsl(var(--color-background));
    color: hsl(var(--color-base));
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
    font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
    line-height: 1.2;
}

a { color: hsl(var(--color-primary)); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: hsl(var(--color-background) / 0.75);
    border-bottom: 1px solid hsl(var(--color-neutral) / 0.6);
}

.site-header .inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wordmark {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, hsl(var(--color-primary)), hsl(var(--color-secondary)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wordmark:hover { text-decoration: none; }

.wordmark .docs-tag {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: hsl(var(--color-muted));
    font-weight: 500;
}

.site-nav {
    margin-left: auto;
    display: flex;
    gap: 1.25rem;
    font-size: 0.92rem;
}
.site-nav a { color: hsl(var(--color-muted)); }
.site-nav a:hover { color: hsl(var(--color-base)); text-decoration: none; }

/* ---------- aurora backdrop ---------- */

body { overflow-x: hidden; }

.aurora {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 34rem;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
.aurora::before, .aurora::after {
    content: "";
    position: absolute;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.14;
}
.aurora::before {
    background: hsl(var(--color-primary));
    top: -28rem;
    left: calc(50% - 36rem);
}
.aurora::after {
    background: hsl(var(--color-secondary));
    top: -32rem;
    right: calc(50% - 36rem);
}

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

main {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

main.article { max-width: 780px; }

.breadcrumbs {
    font-size: 0.85rem;
    color: hsl(var(--color-muted));
    margin-bottom: 1.5rem;
}
.breadcrumbs a { color: hsl(var(--color-muted)); }
.breadcrumbs a:hover { color: hsl(var(--color-primary)); }

/* ---------- index hero + cards ---------- */

.hero { text-align: center; margin: 2rem 0 3rem; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    margin: 0 0 0.75rem;
}

.hero h1 .accent {
    background: linear-gradient(90deg, hsl(var(--color-primary)), hsl(var(--color-secondary)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: hsl(var(--color-muted));
    max-width: 34rem;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.card {
    display: block;
    background: hsl(var(--color-background-secondary));
    border: 1px solid hsl(var(--color-neutral) / 0.7);
    border-radius: 1rem;
    padding: 1.5rem;
    color: hsl(var(--color-base));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    text-decoration: none;
    border-color: hsl(var(--color-primary) / 0.6);
    box-shadow: 0 0 32px -8px hsl(var(--color-primary) / 0.35);
    transform: translateY(-2px);
}
.card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    color: hsl(var(--color-primary));
    background: hsl(var(--color-primary) / 0.1);
    border: 1px solid hsl(var(--color-primary) / 0.3);
}
.card .icon svg { width: 1.35rem; height: 1.35rem; }
.card h2 { font-size: 1.1rem; margin: 0.75rem 0 0.35rem; }
.card p { font-size: 0.9rem; color: hsl(var(--color-muted)); margin: 0; }

/* ---------- article typography ---------- */

.article h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 0.5rem; }

.article .lede {
    color: hsl(var(--color-muted));
    font-size: 1.05rem;
    margin: 0 0 2rem;
}

.article h2 {
    font-size: 1.3rem;
    margin: 2.25rem 0 0.75rem;
    padding-top: 0.5rem;
}

.article ol.steps { padding-left: 1.4rem; }
.article ol.steps > li { margin: 0.65rem 0; }

.article ul { padding-left: 1.3rem; }
.article ul > li { margin: 0.4rem 0; }

code, .chip {
    font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: hsl(var(--color-background-secondary));
    border: 1px solid hsl(var(--color-neutral) / 0.8);
    border-radius: 0.375rem;
    padding: 0.12rem 0.4rem;
    white-space: nowrap;
}

pre {
    background: hsl(var(--color-background-secondary));
    border: 1px solid hsl(var(--color-neutral) / 0.8);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}
pre code { background: none; border: none; padding: 0; white-space: pre; }

/* path chips like: Startup → MINECRAFT_VERSION */
.path {
    font-size: 0.85em;
    font-weight: 600;
    background: hsl(var(--color-primary) / 0.1);
    border: 1px solid hsl(var(--color-primary) / 0.35);
    color: hsl(var(--color-primary));
    border-radius: 0.375rem;
    padding: 0.1rem 0.45rem;
    white-space: nowrap;
}

/* ---------- callouts ---------- */

.callout {
    border-radius: 0.75rem;
    border: 1px solid;
    padding: 0.9rem 1.15rem;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}
.callout strong:first-child { display: block; margin-bottom: 0.25rem; }
.callout.info {
    background: hsl(var(--color-info) / 0.08);
    border-color: hsl(var(--color-info) / 0.35);
}
.callout.warn {
    background: hsl(var(--color-warning) / 0.08);
    border-color: hsl(var(--color-warning) / 0.4);
}

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 1rem 0;
}
th, td {
    text-align: left;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid hsl(var(--color-neutral) / 0.6);
}
th { font-weight: 600; color: hsl(var(--color-muted)); font-size: 0.85rem; }

/* ---------- next/help footer blocks ---------- */

.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--color-neutral) / 0.6);
    font-size: 0.92rem;
    color: hsl(var(--color-muted));
}

/* ---------- site footer ---------- */

.site-footer {
    border-top: 1px solid hsl(var(--color-neutral) / 0.6);
    font-size: 0.85rem;
    color: hsl(var(--color-muted));
}
.site-footer .inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}
.site-footer a { color: hsl(var(--color-muted)); }
.site-footer a:hover { color: hsl(var(--color-primary)); }
