/* grow.jusanuva.website: a grow room at night. Deep leaf green, ripe-pistil amber for anything you can act on, frost for
   text. Loaded after the nova theme, and only on the grow address, so these tokens replace nova's everywhere. */
:root {
    --color-bg: #eef3ec; --color-surface: #fbfdfa; --color-surface-alt: #e4ebe1;
    --color-primary: #a4560f; --color-primary-alt: #86450a;
    --color-accent: #2f7a4b; --color-accent-alt: #24603a;
    --color-danger: #b4332a; --color-danger-alt: #94281f; --color-warning: #99660a;
    --color-text: #16241b; --color-text-muted: #55685a; --color-border: #d3ddd0; --color-border-focus: #a4560f;
    --color-sidebar-bg: #fbfdfa; --color-sidebar-text: #4a5d50; --color-sidebar-active: #a4560f;
    --color-sidebar-border: rgba(22,36,27,.09); --color-sidebar-section: #7d8f82; --color-sidebar-hover: rgba(22,36,27,.05);
    --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
    --radius-sm: 3px; --radius-md: 5px; --radius-lg: 8px; --radius-xl: 12px;
}
[data-theme="dark"] {
    --color-bg: #0e1c15; --color-surface: #15281e; --color-surface-alt: #1b3125;
    --color-primary: #eb9a3e; --color-primary-alt: #d4842b;
    --color-accent: #7cc46f; --color-accent-alt: #63ab58;
    --color-danger: #f0897e; --color-danger-alt: #e0675b; --color-warning: #e9c566;
    --color-text: #e8efe4; --color-text-muted: #9db0a2; --color-border: #274032; --color-border-focus: #eb9a3e;
    --color-sidebar-bg: #0b1711; --color-sidebar-text: #9db0a2; --color-sidebar-active: #eb9a3e;
    --color-sidebar-border: rgba(232,239,228,.07); --color-sidebar-section: rgba(232,239,228,.35); --color-sidebar-hover: rgba(232,239,228,.05);
}
body { font-family: var(--font-sans); }
h1, h2, h3, .page-title, .card-title, .sidebar-logo-text { font-family: var(--font-display); letter-spacing: -.01em; }
.sidebar-logo-icon { color: var(--color-primary); }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: #1a1006; font-weight: 600; }
.btn-primary:hover { background: var(--color-primary-alt); border-color: var(--color-primary-alt); }
:root:not([data-theme="dark"]) .btn-primary { color: #fff8ef; }
.data-table td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
[data-theme="dark"] ::selection { background: rgba(235,154,62,.3); color: #fff; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #274032; }
[data-theme="dark"] input:-webkit-autofill, [data-theme="dark"] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1b3125 inset; -webkit-text-fill-color: #e8efe4; caret-color: #e8efe4;
}

/* pages sit clear of the sidebar */
.admin-main > *:not(.page-header) { margin-left: 1rem; margin-right: 1rem; }
.admin-main > .page-header { margin-bottom: .9rem; }
.admin-main img[src*="/assets/grow/site/"] { width: 128px; height: 172px; object-fit: contain; background: radial-gradient(closest-side, rgba(124,196,111,.2), transparent); }
.sidebar-logout { font-size: .8rem; text-decoration: none; white-space: nowrap; }

/* the sidebar's group labels */
.grow-side-label { padding: .85rem 1rem .25rem; font: 500 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--color-sidebar-section); }

/* the login and register pages: their panels set their own colours, so these need the extra weight */
body .login-panel-left, body .reg-panel-left { background: #0b1711; color: #e8efe4; border-right-color: #274032; justify-content: flex-start; }
body .login-panel-left::before, body .reg-panel-left::before { display: none; }
.gl-auth-plant { display: block; width: min(100%, 340px); height: auto; margin: 2.5rem 0 1.5rem; }
.gl-auth-head { font: 700 2.3rem/1.08 var(--font-display); letter-spacing: -.02em; margin-bottom: .6rem; color: #e8efe4; }
.gl-auth-sub { color: #9db0a2; line-height: 1.55; margin: 0; max-width: 24rem; }

/* ── the home page ─────────────────────────────────────────────────────────────────────────────────── */
.gl { background: #0e1c15; color: #e8efe4; min-height: 100vh; overflow-x: hidden; }
.gl a:focus-visible, .gl input:focus-visible { outline: 2px solid #eb9a3e; outline-offset: 3px; }
.gl-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.gl-top { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; }
.gl-brand { font: 700 1.3rem var(--font-display); color: #e8efe4; text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.gl-brand i { width: .65rem; height: .65rem; background: #eb9a3e; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: block; }
.gl-top nav { display: flex; gap: 1.25rem; align-items: center; }
.gl-top nav a { color: #e8efe4; text-decoration: none; font-weight: 500; }
.gl-btn { display: inline-block; padding: .72rem 1.25rem; border-radius: 4px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.gl-btn-main { background: #eb9a3e; color: #1a1006 !important; }
.gl-btn-main:hover { background: #f2ae5e; }
.gl-btn-line { border-color: #3a5847; color: #e8efe4 !important; }
.gl-btn-line:hover { border-color: #e8efe4; }

.gl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 4px 36px; }
.gl-hero h1 { font: 700 clamp(2.5rem, 6.4vw, 4.9rem)/1.02 var(--font-display); margin: 0 0 1.1rem; letter-spacing: -.025em; text-wrap: balance; }
.gl-hero h1 em { font-style: normal; color: #eb9a3e; }
.gl-lead { font-size: 1.16rem; line-height: 1.55; color: #bccbbd; max-width: 34rem; margin: 0 0 1.6rem; }
.gl-cta { display: flex; gap: .6rem; flex-wrap: wrap; }

.gl-grow { position: relative; min-width: 0; }
.gl-stage { position: relative; aspect-ratio: 480/650; margin: 0 auto; width: min(100%, 380px, 62vh); }
.gl-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .28s linear; }
.gl-stage img.on { opacity: 1; }
.gl-glow { position: absolute; inset: 8% 2% 18%; background: radial-gradient(closest-side, rgba(124,196,111,.13), transparent); pointer-events: none; }
.gl-read { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--font-mono); margin-bottom: .45rem; }
.gl-read b { font-weight: 500; font-size: 1.5rem; color: #eb9a3e; font-variant-numeric: tabular-nums; }
.gl-read span { color: #bccbbd; font-size: .9rem; text-align: right; }
.gl-slider { width: 100%; accent-color: #eb9a3e; display: block; height: 28px; cursor: grab; }
.gl-hint { font: .78rem var(--font-mono); color: #7f9587; margin: .2rem 0 0; }

.gl-facts { border-block: 1px solid #274032; }
.gl-facts .gl-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; padding-block: 26px; }
.gl-facts b { display: block; font: 500 clamp(1.05rem, 2vw, 1.4rem) var(--font-mono); color: #e8efe4; white-space: nowrap; }
.gl-facts span { font-size: .9rem; color: #9db0a2; }

.gl-sec { padding-block: 72px 24px; }
.gl-sec h2 { font: 700 clamp(1.8rem, 4vw, 2.7rem)/1.08 var(--font-display); margin: 0 0 .7rem; letter-spacing: -.02em; text-wrap: balance; }
.gl-sec > .gl-wrap > p { color: #bccbbd; max-width: 40rem; font-size: 1.06rem; line-height: 1.55; margin: 0 0 2rem; }
.gl-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.gl-chain li { counter-increment: s; min-width: 0; }
.gl-chain .pic { height: 210px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: .9rem; }
.gl-chain img { max-height: 100%; max-width: 100%; object-fit: contain; }
.gl-chain h3 { font: 600 1.14rem var(--font-display); margin: 0 0 .3rem; color: #e8efe4; }
.gl-chain h3::before { content: counter(s); font: 500 .8rem var(--font-mono); color: #eb9a3e; margin-right: .5rem; }
.gl-chain p { margin: 0; font-size: .95rem; line-height: 1.5; color: #9db0a2; }

.gl-dash { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.gl-dash ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; color: #bccbbd; line-height: 1.5; }
.gl-dash li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50% 50% 50% 0; background: #eb9a3e; transform: rotate(-45deg) translateY(-1px); margin-right: .65rem; }
.gl-card { background: #15281e; border: 1px solid #274032; border-radius: 8px; padding: 18px; min-width: 0; }
.gl-card h3 { font: 600 1.05rem var(--font-display); margin: 0 0 .9rem; display: flex; justify-content: space-between; gap: .75rem; color: #e8efe4; }
.gl-card h3 small { font: 400 .72rem var(--font-mono); color: #7f9587; }
.gl-pot { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 11px; border-top: 1px solid #274032; }
.gl-pot img { width: 58px; height: 74px; object-fit: contain; }
.gl-pot b { display: block; font-weight: 600; color: #e8efe4; }
.gl-pot span { font-size: .84rem; color: #9db0a2; }
.gl-pot .bar { height: 5px; background: #274032; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.gl-pot .bar i { display: block; height: 100%; background: #7cc46f; }
.gl-pot code { font: 500 .8rem var(--font-mono); color: #eb9a3e; white-space: nowrap; }

.gl-end { padding-block: 72px; text-align: left; }
.gl-end .gl-wrap { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; border-top: 1px solid #274032; padding-top: 36px; }
.gl-end h2 { margin: 0; font: 700 clamp(1.6rem, 3.4vw, 2.2rem) var(--font-display); }
.gl-foot { padding-block: 0 32px; color: #7f9587; font-size: .85rem; line-height: 1.5; }
.gl-foot p { max-width: 44rem; margin: 0; }

@media (max-width: 860px) {
    .gl-hero, .gl-dash { grid-template-columns: minmax(0, 1fr); }
    .gl-hero { padding-top: 8px; }
    .gl-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gl-chain .pic { height: 160px; }
    .gl-stage { width: min(100%, 320px); }
    .gl-sec { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) { .gl-stage img { transition: none; } }
