/* Shared styles for luminetric.com. Colors come from the MD3 tokens in tailwind-config.js;
   the values below repeat a few of them because plain CSS cannot read Tailwind's config. */
:root {
    --primary: #154212;
    --on-surface: #191c18;
    --on-surface-variant: #42493e;
    --outline-variant: #c2c9bb;
    --surface: #f9faf2;
    --surface-container: #edefe7;
    --surface-container-low: #f3f4ed;
    --primary-fixed: #bcf0ae;
}
body { background: var(--surface); color: var(--on-surface); }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}
.modal-overlay { background-color: rgba(25, 28, 24, 0.4); backdrop-filter: blur(4px); }

/* Docs body */
.doc { font-family: Inter, sans-serif; line-height: 1.65; }
.doc p { overflow-wrap: break-word; }
.doc h1 { font-family: Manrope, sans-serif; font-weight: 700; font-size: 2.25rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.doc h2 { font-family: Manrope, sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.3; margin: 2.75rem 0 1rem; scroll-margin-top: 6rem; }
.doc h3 { font-family: Manrope, sans-serif; font-weight: 600; font-size: 1.15rem; margin: 2rem 0 0.75rem; scroll-margin-top: 6rem; }
.doc p, .doc ul, .doc ol { margin: 0 0 1rem; }
.doc ul { list-style: disc; padding-left: 1.4rem; }
.doc ol { list-style: decimal; padding-left: 1.4rem; }
.doc li { margin: 0.35rem 0; }
.doc a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.doc strong { font-weight: 650; }
.doc code { font-family: 'JetBrains Mono', monospace; font-size: 0.86em; background: var(--surface-container); border-radius: 4px; padding: 0.1em 0.35em; }
.doc p code, .doc li code { overflow-wrap: anywhere; }
.doc pre { background: #ffffff; border: 1px solid var(--outline-variant); border-radius: 8px; padding: 1rem 1.1rem; overflow-x: auto; margin: 0 0 1.25rem; font-size: 0.85rem; line-height: 1.55; }
.doc pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.doc .table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--outline-variant); border-radius: 8px; background: #fff; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doc th { text-align: left; font-weight: 600; background: var(--surface-container-low); }
.doc th, .doc td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--outline-variant); vertical-align: top; }
.doc tr:last-child td { border-bottom: none; }
.doc td code { white-space: nowrap; }
.doc td:first-child { white-space: nowrap; }
.doc figure { margin: 1.5rem 0; }
.doc figure svg { width: 100%; height: auto; display: block; }
.doc figcaption { font-size: 0.85rem; color: var(--on-surface-variant); margin-top: 0.5rem; }
.hljs { background: transparent !important; }
@media (max-width: 640px) {
    /* On a phone a wide table scrolls inside its box; give columns room rather than one word per line. */
    .doc td, .doc th { min-width: 8.5rem; }
}
